/*
Theme Name: KMLDEV
Author: Your Name
Description: A custom theme for Konzept mit Lerke, migrated from Webflow.
Version: 1.0
*/

/* Add any custom CSS below this line */

html {
  overflow-x: hidden;
  overflow-x: clip;
}

/* Keep em-based Webflow typography aligned with its 1600px content cap. */
@media only screen and (min-width: 1600px) {
  body {
    font-size: 16px;
  }
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10001;
  padding: 0.75rem 1rem;
  color: #111;
  background: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mode-switch {
  visibility: hidden;
  pointer-events: none;
}

.loader .loader-img {
  filter: invert(1);
}

.hero-note h1.p1 {
  margin: 0;
  font-weight: inherit;
}

@media (max-width: 991px) {
  .home .inv-section .reel {
    width: min(72vw, 40vh, 460px);
    max-width: none;
    height: auto;
    max-height: none;
    aspect-ratio: 36 / 65;
  }
}

.work-name a {
  color: inherit;
  text-decoration: none;
}

.work-excerpt {
  margin-top: 0.75rem;
}

.work-gallery-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  flex: none;
  margin: 0;
  padding: 0.7rem 1rem;
  color: #111;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.25);
  border-radius: 999px;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.work-gallery-button:hover,
.work-gallery-button:focus-visible {
  background: #fff;
}

.work-gallery-button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .work-section .work-top-img {
    flex: none;
    width: auto;
    height: auto;
    max-height: 72%;
    object-fit: contain;
  }

  .work-section .inv-container.has-work-excerpt {
    padding-bottom: clamp(9rem, 12vw, 12rem);
  }

  .work-section .work-excerpt {
    position: absolute;
    top: calc(100% + 3.5rem);
    left: 50%;
    width: 100%;
    max-width: 36rem;
    margin: 0;
    color: var(--black);
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.45;
    text-align: center;
    transform: translateX(-50%);
  }
}

.project-slider-popup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.85);
  transition: opacity 0.3s ease;
}

.project-slider-popup.is-open {
  display: flex;
  opacity: 1;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.popup-content-wrap {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 80%;
}

.close-popup-button {
  position: absolute;
  top: -10px;
  right: -40px;
  z-index: 10001;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.kml-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0 !important;
}

.kml-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.kml-slide {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 100%;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 10px;
}

.kml-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  border-radius: 0 !important;
}

.kml-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 50px;
  height: 50px;
  color: #333;
  font-size: 24px;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.5);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease;
}

.kml-slider-arrow:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.kml-slider-arrow.is-prev {
  left: 20px;
}

.kml-slider-arrow.is-next {
  right: 20px;
}

.kml-slider-arrow.is-hidden {
  display: none;
}

@media (max-width: 767px) {
  .work-section .work-top-img {
    display: none !important;
  }

  .work-section .work-wrap,
  .work-section .work-wrap.is-minus-5,
  .work-section .work-wrap.is-minus-20,
  .work-section .work-wrap.is-plus-8 {
    margin-bottom: 4rem;
  }

  .work-section .inv-container.has-work-excerpt {
    padding-bottom: 0;
  }

  .work-section .work-item,
  .work-section .work-item.is-xs,
  .work-section .work-item.is-l,
  .work-section .work-item.is-s {
    height: auto;
    max-height: none;
  }

  .work-section .work-link {
    flex: none;
    height: 122em;
    max-height: 516px;
  }

  .work-section .work-name {
    position: static;
    inset: auto;
    width: 100%;
    margin-top: 1.5rem;
    transform: none;
  }

  .work-section .work-excerpt {
    position: static;
    width: 100%;
    max-width: 36rem;
    margin: 1rem auto 0;
    color: var(--black);
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 1.45;
    text-align: center;
    transform: none;
  }

  .work-section .work-gallery-button {
    top: 0.75rem;
    right: 0.75rem;
    max-width: calc(100% - 1.5rem);
    min-height: 44px;
    padding: 0.7rem 0.9rem;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .close-popup-button {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    color: #333;
    font-size: 28px;
    line-height: 35px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
  }
}

/* --- Contact Page Button Styling --- */
.contact-button-wrap {
  display: flex;
  justify-content: center;
  gap: 20px; /* Space between buttons */
  margin: 40px 0;
  flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
}

.contact-button-wrap .button {
  text-decoration: none;
  min-width: 200px; /* Give buttons a minimum width */
  text-align: center;
}

/* --- Structural Fix for Contact Section on Contact Page --- */
.is-contact-page .contact-section {
  position: relative;
  height: auto;
  min-height: 48vh;
  padding: 80px 0;
  background-color: #1e1e1e;
}

.is-contact-page .contact-section.has-project-brief {
  height: auto;
  min-height: 48vh;
}

.contact-section.has-project-brief .contact-container {
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.contact-section.has-project-brief .contact-link-wrap {
  margin-bottom: 0;
}

.contact-section.has-project-brief .contact-button-wrap {
  margin-top: 0;
  margin-bottom: 0;
}

.contact-project-brief {
  color: #fff;
  width: min(100%, 48rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.contact-project-kicker {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-project-brief h2 {
  margin: 0 0 1.5rem;
  font-family: Clashgrotesk, sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.contact-project-brief p,
.contact-project-brief li {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.6;
}

.contact-project-brief ul {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
}

/* --- Media Query for Mobile Devices --- */
@media screen and (max-width: 767px) {
  .is-contact-page .contact-section {
    padding: 60px 15px 24px;
  }

  .is-contact-page .contact-link-wrap {
    margin-bottom: 1rem;
  }

  .contact-button-wrap {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center; /* Center-align the stacked buttons */
    gap: 15px; /* Adjust gap for vertical layout */
    margin: 30px 20px; /* Adjust margin for mobile */
  }

  .contact-button-wrap .button {
    width: 100%; /* Make buttons take full width */
    max-width: 400px; /* Optional: prevent buttons from being too wide on tablets */
  }

  .is-contact-page .copyright-div {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-top: 1.5rem;
    color: #fff;
    text-align: center;
  }

  .is-contact-page .copyright-div .credit-link {
    margin-left: 0;
  }
}

/* About page: editorial company profile within the exported Webflow shell. */
.about-photo-hero {
  isolation: isolate;
  background: #111;
  overflow: hidden;
}

.about-photo-hero-media,
.about-photo-hero-shade {
  position: absolute;
  inset: 0;
}

.about-photo-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.about-photo-hero-shade {
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.3) 46%, rgba(0, 0, 0, 0.04) 74%);
}

.container.about-photo-hero-container {
  z-index: 2;
  justify-content: flex-start;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 8vw, 8rem);
  background-color: transparent !important;
}

.about-photo-hero-copy {
  width: min(42%, 36rem);
  min-width: 0;
  color: #fff;
}

.about-photo-hero-copy h1 {
  margin: 0 0 clamp(1.5rem, 3vw, 3rem);
  font-family: Clashgrotesk, sans-serif;
  font-size: clamp(3.5rem, 6.5vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.86;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.about-photo-hero-copy > p:last-child {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.6;
}

.about-statement-section {
  padding-top: clamp(7rem, 12vw, 13rem);
  padding-bottom: clamp(7rem, 12vw, 13rem);
}

.about-statement-section .container {
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.about-statement-row {
  align-items: flex-end;
  gap: clamp(2rem, 5vw, 6rem);
  min-width: 0;
}

.about-statement-row .clash-xl,
.about-statement-row .ivy-xl {
  margin: 0;
  padding-right: 0;
  font-size: clamp(5rem, 12vw, 13rem);
  line-height: 0.82;
  white-space: nowrap;
}

.about-statement-row.is-top {
  justify-content: space-between;
}

.about-statement-row.is-middle {
  justify-content: center;
  align-items: baseline;
  padding-left: clamp(2rem, 8vw, 9rem);
}

.about-statement-row.is-middle .ivy-xl {
  font-size: clamp(4rem, 8vw, 9rem);
}

.about-statement-row.is-bottom {
  justify-content: flex-end;
  padding-right: clamp(1rem, 10vw, 11rem);
}

.about-statement-copy {
  width: min(32%, 30rem);
  padding-bottom: clamp(0.5rem, 1.5vw, 1.5rem);
  color: #fff;
}

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

.about-intro-section,
.about-process-section,
.about-services-section,
.about-values-section {
  padding-top: clamp(6rem, 11vw, 12rem);
  padding-bottom: clamp(6rem, 11vw, 12rem);
}

.about-split {
  align-items: flex-start;
  gap: clamp(3rem, 8vw, 9rem);
}

.about-section-heading {
  min-width: 0;
  max-width: 45rem;
}

.about-page .about-section-heading,
.about-page .about-section-copy,
.about-page .about-process-grid,
.about-page .about-service-list,
.about-page .about-values-list,
.about-page .about-cta-section .txt-div {
  color: #fff;
}

.about-section-heading .clash.is-4-5 {
  margin: 0;
  text-align: left;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.about-kicker {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.about-section-copy {
  max-width: 45rem;
}

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

.about-section-copy .p20 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.4;
}

.about-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-top: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.about-process-grid article {
  min-width: 0;
  padding: clamp(2rem, 4vw, 4rem);
}

.about-process-grid article + article {
  border-left: 1px solid currentColor;
}

.about-process-grid span,
.about-service-number {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.about-process-grid h3 {
  margin: clamp(4rem, 8vw, 8rem) 0 1.5rem;
  font-family: Clashgrotesk, sans-serif;
  font-size: clamp(2rem, 4vw, 4.75rem);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: break-word;
}

.about-process-grid p,
.about-values-list p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.about-service-list {
  width: 100%;
  margin-top: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid currentColor;
}

.about-service-item {
  display: grid;
  grid-template-columns: 4rem minmax(14rem, 0.8fr) minmax(18rem, 1fr) 2rem;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  min-height: 9rem;
  padding: 2rem 0;
  color: inherit;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.about-service-item > * {
  min-width: 0;
}

.about-service-item h3 {
  margin: 0;
  font-family: Clashgrotesk, sans-serif;
  font-size: clamp(2rem, 3.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: break-word;
}

.about-service-item p {
  max-width: 38rem;
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.6;
}

.about-service-arrow {
  font-size: 1.75rem;
  transition: transform 180ms ease;
}

.about-service-item:hover .about-service-arrow,
.about-service-item:focus-visible .about-service-arrow {
  transform: translate(0.25rem, -0.25rem);
}

.about-values-list {
  border-top: 1px solid currentColor;
}

.about-values-list article {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid currentColor;
}

.about-values-list h3 {
  margin: 0;
  font-family: Clashgrotesk, sans-serif;
  font-size: clamp(1.75rem, 3vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: break-word;
}

.about-cta-section .txt-div {
  max-width: 58rem;
}

.section.about-cta-section {
  padding-bottom: max(42rem, 90vh);
}

.about-cta-section h2.p3 {
  margin-top: 0;
  font-weight: 400;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.about-contact-button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  min-width: min(100%, 20rem);
  min-height: 52px;
  margin-top: 2rem;
  padding: 0.9rem 1.4rem;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  transition: padding 180ms ease;
}

.about-contact-button:hover,
.about-contact-button:focus-visible {
  padding-right: 1.1rem;
  padding-left: 1.7rem;
}

.about-contact-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media screen and (min-width: 768px) and (max-width: 1100px) {
  .about-photo-hero-copy {
    width: min(52%, 34rem);
  }

  .about-photo-hero-copy h1 {
    font-size: clamp(3.5rem, 7.5vw, 5.25rem);
  }

  .about-split {
    gap: 3rem;
  }

  .about-section-heading .clash.is-4-5 {
    font-size: clamp(2.75rem, 6vw, 4rem);
  }

  .about-process-grid h3 {
    font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  }

  .about-statement-row .clash-xl,
  .about-statement-row .ivy-xl {
    font-size: clamp(4.5rem, 11vw, 7.5rem);
  }

  .about-statement-copy {
    width: min(36%, 23rem);
  }

  .about-service-item {
    grid-template-columns: 3rem minmax(0, 1fr) 1.5rem;
  }

  .about-service-item p {
    grid-column: 2 / -1;
  }
}

@media screen and (max-width: 767px) {
  .about-photo-hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    background: #111 !important;
  }

  .about-photo-hero-media {
    position: relative;
    flex: none;
    width: 100%;
    aspect-ratio: 1672 / 941;
  }

  .about-photo-hero-media img {
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .about-photo-hero-shade {
    display: none;
  }

  .container.about-photo-hero-container {
    position: relative;
    flex: 1;
    align-items: flex-end;
    height: auto;
    min-height: 27rem;
    padding-bottom: 5rem;
  }

  .about-photo-hero-copy {
    width: 100%;
  }

  .about-photo-hero-copy h1 {
    font-size: clamp(3.25rem, 15vw, 5.5rem);
    line-height: 0.9;
  }

  .about-statement-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .about-statement-section .container {
    gap: 1.5rem;
  }

  .about-statement-row,
  .about-statement-row.is-middle,
  .about-statement-row.is-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-right: 0;
    padding-left: 0;
  }

  .about-statement-row .clash-xl,
  .about-statement-row .ivy-xl,
  .about-statement-row.is-middle .ivy-xl {
    font-size: clamp(3.25rem, 15vw, 5rem);
    line-height: 0.9;
    white-space: normal;
  }

  .about-statement-row.is-middle {
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
    justify-content: flex-start;
    gap: 0.25rem;
  }

  .about-statement-row.is-middle .ivy-xl {
    font-size: clamp(2.75rem, 13vw, 4.25rem);
  }

  .about-statement-copy {
    width: min(calc(100% - 3rem), 27rem);
    padding-bottom: 0;
  }

  .about-split {
    flex-direction: column;
    gap: 3rem;
  }

  .about-split .d40,
  .about-split .d50 {
    width: 100%;
    margin: 0;
  }

  .about-section-heading .clash.is-4-5 {
    font-size: clamp(2.4rem, 12vw, 4rem);
    line-height: 1;
  }

  .about-process-grid {
    grid-template-columns: 1fr;
  }

  .about-process-grid article {
    padding: 2rem 0;
  }

  .about-process-grid article + article {
    border-top: 1px solid currentColor;
    border-left: 0;
  }

  .about-process-grid h3 {
    margin-top: 3rem;
  }

  .about-service-item {
    grid-template-columns: 2.5rem 1fr 1.5rem;
    gap: 0.75rem;
    min-height: 0;
  }

  .about-service-item h3 {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .about-service-item p {
    grid-column: 2 / -1;
  }

  .about-values-list article {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-contact-button {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    box-sizing: border-box;
  }

  .section.about-cta-section {
    padding-bottom: max(36rem, 95vh);
  }

}

/* --- Project Modal Styles --- */
.menu-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
}

.menu-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .brand {
    width: 150px;
  }

  .menu-button {
    width: calc(164.06px - 7.04vw);
  }
}

@media screen and (max-width: 767px) {
  .nav-footer {
    padding-top: 1vh;
  }

  .nav-contact-div {
    padding-top: 1vh;
  }

  .nav-footer-footer {
    padding-bottom: 0;
  }

  .brand {
    width: clamp(108px, 26vw, 150px);
    max-width: none;
  }

  .brand > .mob-brand-img,
  .menu-button > .mob-brand-img {
    width: 100%;
    max-width: none;
  }

  .menu-button {
    align-items: flex-start;
    justify-content: flex-end;
    width: clamp(82px, 22vw, 110px);
    max-width: none;
    min-height: 48px;
    display: flex;
  }
}

.project-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal-wrapper.is-open {
    opacity: 1;
    visibility: visible;
}

.project-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.project-modal-content {
    position: relative;
    background: #ffffff;
    padding: 50px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    color: #333;
    border-radius: 5px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.project-modal-wrapper.is-open .project-modal-content {
    transform: scale(1);
}

.project-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.project-modal-close:hover {
    color: #000;
}

.project-modal-body {
    margin-top: 20px;
}

.project-modal-gallery .w-slider-arrow-left .w-icon-slider-left::before {
    content: ''; /* This is the correct icon code from the Webflow stylesheet */
    transform: rotate(180deg);
    display: inline-block;
}

.project-modal-gallery .w-slider-arrow-left,
.project-modal-gallery .w-slider-arrow-right {
    opacity: 1;
    color: white;
    font-size: 50px; /* Make arrows larger */
    z-index: 100; /* Ensure they are on top of images */
}

.project-modal-gallery .w-slider-arrow-left:hover,
.project-modal-gallery .w-slider-arrow-right:hover {
    color: #ccc; /* Add a subtle hover effect */
}

.project-modal-gallery .w-slider {
    margin-bottom: 30px; /* Add space between slider and description */
}

.project-modal-gallery .w-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Optional: light background for the slide area */
}

.project-modal-gallery .w-slide img {
    max-width: 100%;
    max-height: 60vh; /* Prevent images from making the modal too tall */
    width: auto;
    height: auto;
    object-fit: contain; /* Ensure the whole image is visible */
}

.project-modal-description {
    font-size: 16px;
    line-height: 1.6;
}

@media screen and (max-width: 767px) {
    .project-modal-content {
        padding: 30px;
    }
    .project-modal-body {
        grid-template-columns: 1fr;
    }
}

/* Project detail pages */
body.single-work {
  overflow-x: hidden;
  overflow-x: clip;
}

.project-detail-hero .container {
  align-items: flex-end;
}

.project-detail-hero .mbm-ex-div {
  width: 100%;
  min-width: 0;
}

.project-detail-kicker {
  position: relative;
  width: 100%;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  font-size: 0.85rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.project-detail-kicker span {
  margin: 0 0.45rem;
}

.project-detail-title {
  width: 100%;
  max-width: 12ch;
  overflow-wrap: anywhere;
}

.project-detail-cover .bg-full-img {
  opacity: 1;
}

.project-detail-intro-grid {
  align-items: flex-start;
  gap: 5rem;
}

.project-detail-facts {
  color: var(--white);
  width: min(38%, 30rem);
  margin: 0;
}

.project-detail-fact {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) 1.2fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid currentColor;
}

.project-detail-fact:last-child {
  border-bottom: 1px solid currentColor;
}

.project-detail-fact dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

.project-detail-fact dd {
  margin: 0;
  font-size: 1rem;
}

.project-detail-fact a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.project-detail-lead {
  color: var(--white);
  width: min(52%, 48rem);
}

.project-detail-editor {
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.project-detail-editor > :first-child {
  margin-top: 0;
}

.project-detail-editor > :last-child {
  margin-bottom: 0;
}

.project-detail-heading {
  width: 100%;
  margin-bottom: 5rem;
}

.project-detail-gallery-section .project-detail-heading {
  padding-left: clamp(2rem, 6vw, 7rem);
}

.project-detail-story,
.project-detail-story .container,
.project-detail-quote-section,
.project-detail-quote-section .container {
  color: var(--white);
}

.project-detail-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.project-detail-story-item {
  min-height: 18rem;
  padding: 2.5rem 3rem 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.project-detail-story-item:nth-child(even) {
  padding-right: 0;
  padding-left: 3rem;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.project-detail-story-item h3 {
  margin-bottom: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.project-detail-story-item p {
  max-width: 38rem;
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.7rem);
  line-height: 1.45;
}

.project-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
}

.project-detail-gallery-item {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
}

.project-detail-gallery-item.is-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.project-detail-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-quote {
  color: var(--white);
  width: min(100%, 70rem);
  margin: 0 auto;
  text-align: center;
}

.project-detail-quote-section,
.single-work .project-detail > .section:last-child {
  padding-bottom: max(12em, 18vw);
}

.single-work .project-detail > .section:last-child {
  padding-bottom: max(12em, 18vw, calc(50vh + 12vw));
}

.project-detail-quote p {
  margin: 0 0 2rem;
  font-family: ivypresto-display, sans-serif;
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 1.08;
}

.project-detail-quote cite {
  display: block;
  color: inherit;
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

footer.is-animated-bubble .top-bubble {
  transform: rotateY(45deg);
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}

@media screen and (max-width: 991px) {
  .project-detail-intro-grid {
    gap: 3rem;
  }

  .project-detail-facts,
  .project-detail-lead {
    width: 100%;
  }

  .project-detail-story-item {
    min-height: 14rem;
  }

}

@media screen and (max-width: 767px) {
  .project-detail-kicker {
    font-size: 0.7rem;
    margin-bottom: 1.5rem;
  }

  .project-detail-title {
    max-width: 100%;
  }

  .project-detail-intro-grid {
    gap: 3.5rem;
  }

  .project-detail-fact {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .project-detail-heading {
    margin-bottom: 3rem;
  }

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

  .project-detail-story-item,
  .project-detail-story-item:nth-child(even) {
    min-height: 0;
    padding: 2rem 0;
    border-left: 0;
  }

  .project-detail-gallery-item,
  .project-detail-gallery-item.is-wide {
    grid-column: auto;
    aspect-ratio: 4 / 5;
  }

  .project-detail-gallery-section .project-detail-heading {
    padding-left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer.is-animated-bubble .top-bubble,
  footer.is-animated-bubble .top-bubble-wrap {
    transform: none;
  }

}

/* Bodensysteme service page */
.bodensystem-section,
.bodensystem-section .container,
.bodensystem-section .mbm-ex,
.bodensystem-section .mbm-ex-div {
  color: #fff;
}

/* Match the Home page's two-card scroll range for Webflow action a-83. */
.page-id-11 .project-list > .project-item:only-child .project-pad {
  height: 240vh;
}

.bodensystem-intro,
.bodensystem-reference-content {
  align-items: flex-start;
  gap: clamp(3rem, 8vw, 8rem);
}

.section.is-b-less.bodensystem-section {
  padding-bottom: 2rem;
}

.bodensystem-heading {
  max-width: 52rem;
}

.bodensystem-kicker {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bodensystem-copy {
  max-width: 48rem;
}

.bodensystem-service-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.bodensystem-service-groups > div {
  padding-top: 1.5rem;
  border-top: 1px solid currentColor;
}

.bodensystem-service-groups h3 {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bodensystem-service-groups ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.8;
}

.bodensystem-service-groups li > span,
.bodensystem-service-groups li > a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: inherit;
}

.bodensystem-service-groups li > a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.bodensystem-service-groups li > a span {
  flex: none;
}

.bodensystem-copy p,
.bodensystem-note p,
.bodensystem-reference-copy p,
.bodensystem-checks p,
.bodensystem-faq-item p,
.bodensystem-inquiry-copy p,
.lichtplanung-process p,
.visualisierung-process p {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.65;
}

.bodensystem-suitability {
  align-items: flex-start;
}

.bodensystem-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-top: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid currentColor;
}

.bodensystem-checks > div {
  padding: 2rem clamp(1.5rem, 3vw, 3rem) 2rem 0;
  border-bottom: 1px solid currentColor;
}

.bodensystem-checks > div + div {
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid currentColor;
}

.bodensystem-checks h3,
.bodensystem-facts dt {
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bodensystem-checks p {
  margin: 0;
  line-height: 1.6;
}

.bodensystem-note {
  max-width: 48rem;
  margin-top: 2rem;
}

.bodensystem-reference-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
  gap: 2rem;
  width: 100%;
  margin: clamp(3rem, 6vw, 6rem) 0;
}

.bodensystem-reference-images figure {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
}

.bodensystem-reference-images img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bodensystem-reference-content {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  width: 100%;
}

.bodensystem-facts {
  margin: 0;
}

.bodensystem-facts > div {
  display: grid;
  grid-template-columns: minmax(5rem, 0.8fr) 1.2fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid currentColor;
}

.bodensystem-facts > div:last-child {
  border-bottom: 1px solid currentColor;
}

.bodensystem-facts dt,
.bodensystem-facts dd {
  margin: 0;
}

.bodensystem-text-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.bodensystem-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 7rem) clamp(1.5rem, 3vw, 3rem);
  width: 100%;
  margin-top: clamp(3rem, 6vw, 6rem);
}

.bodensystem-project-card:nth-child(even) {
  transform: translateY(clamp(2rem, 5vw, 5rem));
}

.bodensystem-project-card-link {
  color: inherit;
  text-decoration: none;
}

.bodensystem-project-card-image {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
}

.bodensystem-project-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bodensystem-project-card-link:hover .bodensystem-project-card-image img {
  transform: scale(1.03);
}

.bodensystem-project-card-copy {
  padding-top: 1.5rem;
}

.bodensystem-project-type,
.bodensystem-project-meta,
.bodensystem-project-link-text {
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bodensystem-project-type {
  margin: 0 0 0.75rem;
}

.bodensystem-project-card h3 {
  margin: 0;
  font-family: Clashgrotesk, sans-serif;
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.bodensystem-project-meta {
  margin: 1rem 0 0;
  opacity: 0.72;
}

.bodensystem-project-link-text {
  display: inline-block;
  margin-top: 1.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
}

.home-reference-section {
  padding-top: clamp(5rem, 10vw, 10rem);
}

.project-frame.has-responsive-image {
  background-image: none;
}

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

.home-intro-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: clamp(2rem, 4vw, 4rem);
}

.home-whatsapp-cta {
  width: auto;
  min-height: 48px;
  border: 1px solid currentColor;
  background: transparent;
  color: #fff;
}

.home-whatsapp-cta,
.home-reference-actions .button,
.bodensystem-contact {
  margin-left: 0;
  margin-right: 0;
}

#wa_button.whatsapp-float {
  position: fixed;
  right: calc(clamp(20px, 2vw, 28px) + env(safe-area-inset-right, 0px));
  bottom: calc(clamp(88px, 8vw, 112px) + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(48px, 13vw, 56px);
  height: clamp(48px, 13vw, 56px);
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px rgb(0 0 0 / 22%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.94);
  transition: opacity 250ms ease, transform 250ms ease, visibility 250ms;
}

#wa_button.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid #25d366;
  border-radius: inherit;
  pointer-events: none;
  animation: whatsapp-ring 2.4s ease-out infinite;
}

#wa_button.whatsapp-float.is-visible:not(.is-menu-open) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#wa_button.whatsapp-float:hover,
#wa_button.whatsapp-float:focus-visible {
  background: #1fbd5a;
  transform: translateY(-2px) scale(1.02);
}

#wa_button.whatsapp-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

#wa_button.whatsapp-float svg {
  width: 29px;
  height: 29px;
}

@keyframes whatsapp-ring {
  0% {
    opacity: 0.65;
    transform: scale(0.88);
  }

  75%,
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

@media (max-width: 767px) {
  .home-intro-actions {
    justify-content: flex-start;
  }

  .home-whatsapp-cta {
    max-width: 100%;
    padding: 16px 24px;
    white-space: normal;
    line-height: 1.25;
  }

}

@media (prefers-reduced-motion: reduce) {
  #wa_button.whatsapp-float {
    transition: none;
  }

  #wa_button.whatsapp-float::before {
    animation: none;
    opacity: 0.45;
  }
}

.home-reference-section .mbm-ex,
.home-reference-section .mbm-ex-div {
  color: #fff;
}

.home-reference-heading {
  max-width: 52rem;
}

.home-reference-grid .bodensystem-project-card:nth-child(even) {
  margin-top: clamp(2rem, 5vw, 5rem);
  transform: none;
}

.home-reference-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-top: clamp(7rem, 12vw, 12rem);
  padding-top: 2rem;
  border-top: 1px solid currentColor;
}

.home-reference-cta > p {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.5;
}

.home-reference-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1.5rem;
}

.bodensystem-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-top: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid currentColor;
}

.bodensystem-faq-item {
  color: #fff;
  min-height: 16rem;
  padding: clamp(2rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem) clamp(2rem, 4vw, 4rem) 0;
  border-bottom: 1px solid currentColor;
}

.bodensystem-faq-item:nth-child(even) {
  padding-right: 0;
  padding-left: clamp(2rem, 4vw, 4rem);
  border-left: 1px solid currentColor;
}

.bodensystem-faq-item h3 {
  margin: 0 0 1.5rem;
  font-family: Clashgrotesk, sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2.25rem);
  font-weight: 400;
  line-height: 1.15;
}

.bodensystem-faq-item p,
.bodensystem-inquiry-copy p {
  margin: 0;
  line-height: 1.65;
}

.bodensystem-inquiry {
  align-items: flex-start;
  gap: clamp(3rem, 8vw, 8rem);
}

.bodensystem-inquiry-copy {
  max-width: 48rem;
}

.bodensystem-inquiry-text {
  color: #fff;
}

.bodensystem-inquiry-text p + p {
  margin-top: 1rem;
}

.bodensystem-contact {
  width: auto;
  max-width: 100%;
  min-width: 0;
  height: auto;
  margin-top: 1rem;
  white-space: normal;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
}

/* Shared Bodensysteme child-page template */
.bodensystem-detail .container.is-project-hero {
  align-items: flex-end;
}

.bodensystem-detail-kicker {
  position: relative;
  width: 100%;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  color: var(--white);
  font-size: 0.8rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bodensystem-detail-title {
  max-width: 14ch;
  overflow-wrap: anywhere;
}

.bodensystem-detail-cover .bg-full-img {
  opacity: 1;
}

.bodensystem-detail-content {
  align-items: flex-start;
  gap: clamp(3rem, 8vw, 8rem);
}

.bodensystem-detail > .section:last-child {
  padding-bottom: max(14em, 28vw);
}

.bodensystem-detail-content .mbm-ex,
.bodensystem-detail-content .mbm-ex-div {
  color: var(--white);
}

.bodensystem-detail-copy {
  max-width: 52rem;
}

.bodensystem-detail-editor {
  font-size: 1.05rem;
  line-height: 1.7;
}

.bodensystem-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}

.bodensystem-detail-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media screen and (max-width: 991px) {
  .page-id-11 .project-list > .project-item:only-child .project-pad {
    height: 210vh;
  }
}

@media screen and (max-width: 767px) {
  .page-id-11 .project-list > .project-item:only-child .project-pad {
    height: 204vh;
  }

  .section.is-b-less.bodensystem-section {
    padding-bottom: 1.5rem;
  }

  .bodensystem-intro,
  .bodensystem-reference-content {
    gap: 3rem;
  }

  .bodensystem-intro {
    flex-direction: column;
    justify-content: flex-start;
  }

  .bodensystem-intro .d40,
  .bodensystem-intro .d50 {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .bodensystem-heading,
  .bodensystem-kicker {
    width: 100%;
    max-width: none;
    margin-left: 0;
    padding-left: 0;
    text-align: left;
  }

  .bodensystem-heading .clash.is-4-5 {
    margin-left: 0;
    font-size: clamp(2.25rem, 11vw, 3.75rem);
    line-height: 1;
    text-align: left;
  }

  .bodensystem-kicker,
  .bodensystem-service-groups h3,
  .bodensystem-checks h3,
  .bodensystem-facts dt {
    font-size: 0.75rem;
  }

  .bodensystem-copy p,
  .bodensystem-service-groups,
  .bodensystem-checks p,
  .bodensystem-note p,
  .bodensystem-reference-copy p,
  .bodensystem-facts dd {
    font-size: 1rem;
    line-height: 1.65;
  }

  .bodensystem-copy .p20 {
    font-size: 1.05rem;
  }

  .bodensystem-contact {
    width: calc(100% - 1.5rem);
    max-width: 20rem;
    margin: 1rem auto 0;
    padding: 12px 16px;
    font-size: 12px;
    line-height: 1.3;
  }

  .bodensystem-checks,
  .bodensystem-reference-content,
  .bodensystem-service-groups,
  .bodensystem-project-grid,
  .bodensystem-faq-grid {
    grid-template-columns: 1fr;
  }

  .bodensystem-project-grid {
    gap: 3rem;
  }

  .bodensystem-project-card:nth-child(even) {
    transform: none;
  }

  .bodensystem-project-card h3 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .home-reference-cta,
  .home-reference-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-reference-cta {
    gap: 2rem;
    margin-top: 4rem;
  }

  .home-reference-grid .bodensystem-project-card:nth-child(even) {
    margin-top: 0;
  }

  .home-reference-actions .button {
    align-self: flex-start;
    width: auto;
    min-height: 48px;
    margin: 0;
    padding: 13px 22px;
    font-size: 14px;
    line-height: 1.2;
    white-space: normal;
  }

  .home-reference-actions .bodensystem-text-link {
    display: flex;
    align-items: center;
    align-self: flex-start;
    min-height: 44px;
    padding: 8px 0;
    font-size: 16px;
    line-height: 1.4;
  }

  .bodensystem-faq-item,
  .bodensystem-faq-item:nth-child(even) {
    min-height: 0;
    padding: 2rem 0;
    border-left: 0;
  }

  .bodensystem-faq-item p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .bodensystem-inquiry {
    flex-direction: column;
  }

  .bodensystem-inquiry .d40,
  .bodensystem-inquiry .d50 {
    width: 100%;
  }

  .bodensystem-checks > div,
  .bodensystem-checks > div + div {
    padding: 1.5rem 0;
    border-left: 0;
  }

  .bodensystem-reference-images {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bodensystem-reference-images figure {
    aspect-ratio: 4 / 5;
  }

  .bodensystem-detail-kicker {
    margin-bottom: 1.5rem;
    font-size: 0.7rem;
  }

  .bodensystem-detail-title {
    max-width: 100%;
  }

  .bodensystem-detail-content .d40,
  .bodensystem-detail-content .d50 {
    width: 100%;
  }

  .bodensystem-detail-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 1.05rem;
  }

  .bodensystem-detail-links a {
    width: 100%;
    padding: 0.65rem 0;
    border-bottom: 1px solid currentColor;
    text-decoration: none;
  }
}

/* Spanndecken hub: shared information hierarchy with a surface-led layout. */
.spanndecken-hub-cover .bg-full-img {
  opacity: 1;
}

.spanndecken-system-container {
  display: block;
  padding-top: clamp(3rem, 7vw, 8rem);
}

.spanndecken-system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  width: 100%;
  min-width: 0;
}

.spanndecken-system-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: clamp(24rem, 40vw, 38rem);
  padding: clamp(2rem, 4vw, 4rem);
  border: 1px solid currentColor;
  border-radius: 50% 50% 0 0 / 24% 24% 0 0;
}

.spanndecken-system-card.is-wall {
  margin-top: clamp(3rem, 7vw, 8rem);
  border-radius: 0 0 50% 50% / 0 0 24% 24%;
}

.spanndecken-system-number {
  margin: 0 0 auto;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.spanndecken-system-card h3 {
  margin: 3rem 0 1.5rem;
  font-family: Clashgrotesk, sans-serif;
  font-size: clamp(2.75rem, 6vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.spanndecken-system-card p:not(.spanndecken-system-number) {
  max-width: 36rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.spanndecken-system-card a {
  align-self: flex-start;
  max-width: 100%;
  min-height: 44px;
  margin-top: 2rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.spanndecken-hub .bodensystem-project-card:nth-child(even) {
  transform: none;
}

.spanndecken-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;
  margin-top: clamp(3rem, 6vw, 6rem);
}

.spanndecken-gallery figure {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
}

.spanndecken-gallery figure:nth-child(3n + 1) {
  aspect-ratio: 16 / 9;
  grid-column: 1 / -1;
}

.spanndecken-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 767px) {
  .spanndecken-system-container {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .spanndecken-system-grid,
  .spanndecken-gallery {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .spanndecken-system-card,
  .spanndecken-system-card.is-wall {
    min-height: 26rem;
    margin-top: 0;
    padding: 2rem 1.25rem;
    border-radius: min(22vw, 6rem) min(22vw, 6rem) 0 0;
    overflow: hidden;
  }

  .spanndecken-system-card.is-wall {
    border-radius: 0 0 min(22vw, 6rem) min(22vw, 6rem);
  }

  .spanndecken-system-card h3 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .spanndecken-system-card a {
    width: 100%;
  }

  .spanndecken-system-card .spanndecken-system-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.25;
    text-decoration: none;
  }

  .spanndecken-system-link span:first-child {
    min-width: 0;
  }

  .spanndecken-system-link span:last-child {
    flex: none;
  }

  .spanndecken-hub .bodensystem-contact {
    display: flex;
    width: 100%;
    max-width: none;
    min-height: 48px;
    margin-right: 0;
    margin-left: 0;
    padding: 14px 18px;
    background-color: #fff;
    color: #000;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
  }

  .spanndecken-gallery figure:nth-child(3n + 1) {
    aspect-ratio: 4 / 5;
    grid-column: auto;
  }
}

/* Lichtplanung hub: measured grids and light-point details distinguish the service. */
.lichtplanung-hub-cover .bg-full-img,
.visualisierung-hub-cover .bg-full-img {
  opacity: 1;
}

.lichtplanung-hub .section.is-project-hero .clash.is-8 {
  max-width: 14ch;
  font-size: clamp(4.5rem, 12vw, 12rem);
  overflow-wrap: anywhere;
}

.lichtplanung-credential-container {
  display: block;
  padding-top: clamp(4rem, 8vw, 9rem);
}

.lichtplanung-credential {
  display: grid;
  grid-template-columns: auto minmax(8rem, 0.6fr) minmax(0, 2fr) minmax(10rem, 0.7fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  width: 100%;
  padding: clamp(2rem, 4vw, 4rem) 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.lichtplanung-credential-mark {
  width: 0.75rem;
  height: 0.75rem;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 0.6rem transparent, 0 0 0 0.65rem currentColor;
}

.lichtplanung-credential p,
.lichtplanung-credential span:last-child {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lichtplanung-credential h2 {
  margin: 0;
  font-family: Clashgrotesk, sans-serif;
  font-size: clamp(2.5rem, 6vw, 6.5rem);
  font-weight: 400;
  line-height: 0.9;
}

.lichtplanung-process,
.visualisierung-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin-top: clamp(3rem, 7vw, 7rem);
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.lichtplanung-process article,
.visualisierung-process article {
  min-height: clamp(22rem, 32vw, 34rem);
  padding: 2rem clamp(1.25rem, 2.5vw, 2.5rem);
}

.lichtplanung-process article + article,
.visualisierung-process article + article {
  border-left: 1px solid currentColor;
}

.lichtplanung-process article > span,
.visualisierung-process article > span {
  display: block;
  margin-bottom: clamp(5rem, 10vw, 10rem);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.lichtplanung-process h3,
.visualisierung-process h3 {
  margin: 0 0 1.5rem;
  font-family: Clashgrotesk, sans-serif;
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.lichtplanung-process p,
.visualisierung-process p {
  margin: 0;
  line-height: 1.65;
}

@media screen and (max-width: 991px) {
  .lichtplanung-credential {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .lichtplanung-credential h2,
  .lichtplanung-credential span:last-child {
    grid-column: 2;
  }

  .lichtplanung-process,
  .visualisierung-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lichtplanung-process article:nth-child(3),
  .visualisierung-process article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid currentColor;
  }

  .lichtplanung-process article:nth-child(4),
  .visualisierung-process article:nth-child(4) {
    border-top: 1px solid currentColor;
  }
}

@media screen and (max-width: 767px) {
  .lichtplanung-hub .section.is-project-hero .clash.is-8 {
    max-width: 100%;
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .lichtplanung-credential {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 2rem 0;
  }

  .lichtplanung-credential h2 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .lichtplanung-process,
  .visualisierung-process {
    grid-template-columns: 1fr;
  }

  .lichtplanung-process article,
  .lichtplanung-process article + article,
  .lichtplanung-process article:nth-child(3),
  .visualisierung-process article,
  .visualisierung-process article + article,
  .visualisierung-process article:nth-child(3) {
    min-height: 0;
    padding: 2rem 0;
    border-top: 1px solid currentColor;
    border-left: 0;
  }

  .lichtplanung-process article:first-child,
  .visualisierung-process article:first-child {
    border-top: 0;
  }

  .lichtplanung-process article > span,
  .visualisierung-process article > span {
    margin-bottom: 4rem;
  }
}

.visualisierung-hub .section.is-project-hero .clash.is-8 {
  max-width: 100%;
  font-size: clamp(2rem, 9vw, 10rem);
  overflow-wrap: anywhere;
}

.visualisierung-process h3 {
  overflow-wrap: anywhere;
}

/* WhatsApp assistant: use the service-page rhythm without imitating an app UI. */
.whatsapp-assistent-cover .bg-full-img {
  opacity: 1;
}

.whatsapp-assistent-hub .section.is-project-hero .clash.is-8 {
  max-width: 12ch;
  font-size: clamp(3.5rem, 9vw, 10rem);
  overflow-wrap: anywhere;
}

.whatsapp-assistent-provider .bodensystem-facts {
  width: 100%;
}

.whatsapp-assistent-provider .bodensystem-facts a {
  color: inherit;
}

.whatsapp-assistent-inquiry {
  padding-bottom: max(15vw, 8rem);
}

/* Margin preserves the shared backdrop for exclusion-blended card text. */
.visualisierung-hub .bodensystem-project-card:nth-child(even) {
  transform: none;
  margin-top: 4rem;
}

/* Also protect the inquiry when no related service cards are published. */
.visualisierung-inquiry-section {
  padding-bottom: max(15vw, 8rem);
}

@media screen and (max-width: 767px) {
  .whatsapp-assistent-hub .section.is-project-hero .clash.is-8 {
    max-width: 100%;
    font-size: clamp(2.65rem, 13vw, 4.75rem);
  }

  .visualisierung-hub .bodensystem-project-card:nth-child(even) {
    margin-top: 0;
  }
}

.is-home-hero .hero-img-div {
  will-change: transform;
}

.is-home-hero .hero-img-div .full-img {
  will-change: transform, opacity;
}
