: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;
}

.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 {
  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;
}

.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 clamp(1.5rem, 3vw, 2.4rem);
  text-transform: lowercase;
}

.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 {
  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;
  transition: opacity 180ms ease;
  width: 100%;
}

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

.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 {
  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-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;
}

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

  .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;
  }
}
