:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: #2f2d2c;
}

.home-page {
  min-height: 100vh;
}

.home-hero {
  background-color: #e9e8e2;
  min-height: 100vh;
  position: relative;
  background-image: url("assets/startseite.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.hero-copy {
  background: rgba(255, 255, 255, 0.88);
  bottom: clamp(2rem, 6vw, 5rem);
  left: clamp(1.25rem, 7vw, 8rem);
  max-width: 34rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  position: absolute;
}

.hero-copy h1,
.landing-hero h1 {
  font-size: clamp(1.55rem, 2.7vw, 2.8rem);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 1rem;
}

.hero-copy p:not(.section-kicker),
.landing-hero p {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.58;
  margin: 0 0 1.35rem;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.button-link,
.text-link {
  color: #282625;
  font-size: 0.98rem;
  text-decoration: none;
}

.button-link {
  background: #9a3f23;
  color: #ffffff;
  display: inline-block;
  padding: 0.82rem 1.05rem;
}

.text-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.18rem;
}

.site-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  left: clamp(1.25rem, 4vw, 4rem);
  position: fixed;
  right: clamp(1.25rem, 5vw, 5rem);
  top: clamp(1.25rem, 4vw, 4rem);
  z-index: 10;
}

.brand {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  width: clamp(8rem, 11vw, 12rem);
}

.brand img {
  display: block;
  height: auto;
  max-width: 100%;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.4vw, 2.75rem);
  padding-top: clamp(0.8rem, 1.6vw, 1.4rem);
}

.site-nav a,
.nav-toggle {
  color: #282625;
  font-size: clamp(1rem, 1.3vw, 1.28rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 0.25rem;
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  gap: 0.45rem;
  padding: 0.25rem 0;
}

.nav-toggle span:first-child {
  font-size: 1.2em;
  line-height: 1;
}

.about-section {
  align-items: center;
  background: #ffffff;
  display: grid;
  min-height: 100vh;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 7vw, 8rem);
  scroll-margin-top: 1rem;
}

.about-inner {
  align-items: center;
  column-gap: clamp(3rem, 9vw, 9rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.92fr);
  margin: 0 auto;
  max-width: 72rem;
  width: 100%;
}

.about-copy {
  max-width: 34rem;
}

.about-copy h1,
.about-copy h2 {
  font-size: clamp(1.55rem, 2.25vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 1.8rem;
}

.about-copy p {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  margin: 0 0 1.45rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  display: block;
  filter: sepia(0.7) saturate(0.8);
  height: auto;
  max-width: 100%;
  width: 100%;
}

.leistungen-section {
  background-color: #ffffff;
  background-image: linear-gradient(rgba(255, 255, 255, 0.69), rgba(255, 255, 255, 0.69)), url("assets/leistungen-hintergrund.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 8vw, 9rem);
  scroll-margin-top: 1rem;
}

.leistungen-inner {
  margin: 0 auto;
  max-width: 72rem;
}

.leistungen-inner h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 clamp(2.75rem, 5vw, 4.5rem);
  max-width: 24ch;
}

.leistungen-grid {
  column-gap: clamp(3rem, 9vw, 9rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: clamp(2rem, 4vw, 3.5rem);
}

.leistung-item h3 {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

.leistung-item p,
.leistungen-note {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  margin: 0;
}

.leistungen-note {
  margin-top: clamp(3rem, 6vw, 5rem);
  max-width: 52rem;
}

.energy-section,
.detail-section,
.local-section,
.faq-section {
  background: #ffffff;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 8vw, 9rem);
  scroll-margin-top: 1rem;
}

.energy-section {
  background: #f6f5f2;
}

.energy-inner,
.detail-inner,
.process-inner,
.local-inner,
.faq-inner,
.landing-inner {
  margin: 0 auto;
  max-width: 72rem;
}

.energy-inner h2,
.detail-inner h2,
.process-inner h2,
.local-inner h2,
.faq-inner h2 {
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  font-weight: 400;
  line-height: 1.22;
  margin: 0 0 1.4rem;
  max-width: 26ch;
}

.energy-lead,
.local-inner p {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  margin: 0;
  max-width: 46rem;
}

.energy-grid,
.detail-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.energy-item h3,
.detail-grid h3 {
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

.energy-item p,
.detail-grid p,
.process-list,
.faq-section p {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.62;
  margin: 0;
}

.energy-cta {
  border-top: 1px solid rgba(47, 45, 44, 0.22);
  display: flex;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.4rem);
}

.energy-cta p {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.58;
  margin: 0;
  max-width: 42rem;
}

.services-section {
  background: #f6f5f2;
  min-height: 100vh;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 8vw, 9rem);
  scroll-margin-top: 1rem;
}

.services-inner,
.contact-inner {
  margin: 0 auto;
  max-width: 72rem;
}

.section-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.services-inner h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.8rem);
  font-weight: 400;
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
}

.contact-section {
  align-items: center;
  background: #ffffff;
  display: grid;
  min-height: 100vh;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 8vw, 9rem);
  position: relative;
  scroll-margin-top: 1rem;
}

.contact-inner {
  text-align: center;
  width: 100%;
}

.contact-inner h2 {
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  font-weight: 400;
  margin: 0 0 1rem;
}

.contact-direct {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  margin: 0 auto clamp(1.5rem, 3vw, 2.4rem);
}

.contact-direct a {
  color: inherit;
}

.business-card {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: min(32.76rem, 100%);
  width: 100%;
}

.legal-links {
  align-items: center;
  bottom: clamp(1rem, 2.5vw, 2rem);
  color: #6b6560;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.8rem;
  position: absolute;
  right: clamp(1.25rem, 4vw, 4rem);
}

.legal-links a {
  color: inherit;
  text-decoration: none;
}

.impressum-page {
  background: #ffffff;
}

.impressum-main {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: clamp(7rem, 12vw, 10rem) clamp(1.5rem, 8vw, 9rem) clamp(4rem, 8vw, 7rem);
}

.impressum-copy {
  margin: 0 auto;
  max-width: 42rem;
  width: 100%;
}

.impressum-copy h1 {
  font-size: clamp(1.05rem, 1.8vw, 1.8rem);
  font-weight: 400;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.impressum-copy h2 {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  margin: 1.8rem 0 0.55rem;
}

.impressum-copy p {
  font-size: clamp(0.85rem, 1vw, 0.98rem);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.project-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 58rem;
}

.project-card-item {
  min-width: 0;
}

.project-click-hint {
  display: none;
}

.project-card-title {
  display: none;
}

.project-card {
  aspect-ratio: 16 / 10;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-decoration: none;
  text-align: left;
  width: 100%;
}

.project-card img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .project-card img {
    transition: opacity 180ms ease;
  }

  .project-card-title {
    align-items: center;
    background: #211712;
    color: #ffffff;
    display: flex;
    font-size: clamp(0.9rem, 1.35vw, 1.2rem);
    inset: 0;
    justify-content: center;
    line-height: 1.35;
    opacity: 0;
    padding: 1.5rem;
    position: absolute;
    text-align: center;
    transition: opacity 180ms ease;
    z-index: 2;
  }

  .project-card:hover img,
  .project-card:focus-visible img {
    opacity: 0;
  }

  .project-card:hover .project-card-title,
  .project-card:focus-visible .project-card-title {
    opacity: 1;
  }
}

.project-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.3rem;
}

.project-page {
  background: #ffffff;
}

.project-main {
  margin: 0 auto;
  max-width: 72rem;
  padding: clamp(10rem, 15vw, 13rem) clamp(1.5rem, 8vw, 9rem) clamp(5rem, 10vw, 9rem);
}

.project-main h1,
.project-main h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  max-width: 28ch;
}

.project-cover,
.project-visual {
  margin: 0;
}

.project-cover img,
.project-visual img {
  display: block;
  height: auto;
  width: 100%;
}

.project-cover img {
  max-height: 46rem;
  object-fit: cover;
}

.project-intro {
  margin: clamp(2.5rem, 6vw, 5rem) 0;
  max-width: 46rem;
}

.project-intro p {
  font-size: 0.75rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.project-intro p:last-child {
  margin-bottom: 0;
}

.project-gallery {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(3.5rem, 8vw, 7rem) 0;
}

.project-gallery img {
  aspect-ratio: 4 / 3;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.project-cover figcaption,
.project-visual figcaption {
  font-size: 0.75rem;
  margin-top: 0.8rem;
}

.project-dialog {
  background: #ffffff;
  border: 0;
  height: 100svh;
  margin: 0;
  max-height: none;
  max-width: none;
  overflow: auto;
  padding: 0;
  width: 100vw;
}

.project-dialog::backdrop {
  background: rgba(20, 20, 20, 0.25);
}

.project-dialog-content {
  min-height: 100%;
  position: relative;
}

.project-dialog .project-main {
  padding-top: clamp(6.5rem, 11vw, 9rem);
}

.dialog-close {
  background: transparent;
  border: 0;
  color: #2f2d2c;
  cursor: pointer;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  padding: 0;
  position: fixed;
  right: clamp(1.25rem, 5vw, 5rem);
  top: clamp(1.25rem, 4vw, 4rem);
  z-index: 2;
}

.scroll-top {
  align-items: center;
  background: #9a3f23;
  border: 0;
  border-radius: 50%;
  bottom: clamp(1.25rem, 3vw, 2.4rem);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-size: 1.45rem;
  height: 2.8rem;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  position: fixed;
  right: clamp(1.25rem, 3vw, 2.4rem);
  transform: translateY(0.4rem);
  transition: opacity 160ms ease, transform 160ms ease;
  width: 2.8rem;
  z-index: 12;
}

.scroll-top span {
  display: block;
  line-height: 1;
  transform: translateY(0.08rem);
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top[hidden] {
  display: none;
}

.sub-page {
  background: #ffffff;
}

.landing-hero {
  background-color: #e9e8e2;
  background-image: linear-gradient(rgba(233, 232, 226, 0.5), rgba(233, 232, 226, 0.5)), url("assets/leistungen-hintergrund.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: clamp(9rem, 15vw, 13rem) clamp(1.5rem, 8vw, 9rem) clamp(5rem, 10vw, 8rem);
}

.landing-inner {
  max-width: 46rem;
}

.process-section {
  background: #f6f5f2;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 8vw, 9rem);
}

.process-list {
  display: grid;
  gap: 1rem;
  list-style-position: inside;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 0;
}

.faq-section details {
  border-top: 1px solid rgba(47, 45, 44, 0.22);
  padding: 1.1rem 0;
}

.faq-section details:last-child {
  border-bottom: 1px solid rgba(47, 45, 44, 0.22);
}

.faq-section summary {
  cursor: pointer;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: 700;
}

.faq-section details p {
  margin-top: 0.8rem;
  max-width: 48rem;
}

.compact-contact {
  min-height: auto;
}

@media (max-width: 760px) {
  .home-hero {
    background-position: 42% center;
  }

  .hero-copy {
    bottom: 1.25rem;
    left: 1.25rem;
    max-width: calc(100% - 2.5rem);
    padding: 1rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: row;
    left: 1.25rem;
    right: 1.25rem;
    top: 1.25rem;
  }

  .brand {
    width: 8.5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    align-items: flex-end;
    display: none !important;
    flex-direction: column;
    gap: 0.65rem;
    position: absolute;
    right: 0;
    top: 2.1rem;
    padding-top: 0.25rem;
  }

  .nav-open .site-nav {
    display: flex !important;
  }
}

@media (max-width: 700px) {
  .about-section {
    display: block;
    min-height: auto;
    padding-bottom: 4.5rem;
    padding-top: 4.5rem;
  }

  .about-inner {
    gap: 2.5rem;
    grid-template-columns: 1fr;
  }

  .about-portrait {
    max-width: 19rem;
  }

  .dialog-close {
    right: 1.25rem;
    top: 1.25rem;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
    max-width: 32rem;
  }

  .leistungen-grid {
    grid-template-columns: 1fr;
  }

  .energy-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .energy-cta {
    display: block;
  }

  .energy-cta .button-link {
    margin-top: 1.25rem;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .project-card-title {
    display: none;
  }

  .project-click-hint {
    color: #ffffff;
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    position: absolute;
    right: 0.7rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
    top: 0.6rem;
    z-index: 3;
  }
}
