/* ==========================================================================
   AuPro — sections.css
   Layout der Startseiten-Sektionen 7.2–7.10. Reihenfolge = Scroll-Reihenfolge.
   Mobile-First; Breakpoints 480 / 768 / 1024 / 1280 (§9).
   ========================================================================== */

/* ==========================================================================
   7.2 HERO (dunkel)
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 900px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--sp-7));
  padding-bottom: var(--sp-9);
  background: var(--hero-bg);
  color: var(--white);
  overflow: clip;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .42;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(30,30,30,.55) 0%, rgba(54,64,62,.65) 55%, rgba(30,30,30,.85) 100%),
    radial-gradient(120% 80% at 20% 30%, rgba(19,104,84,.35), transparent 60%);
}
/* Hero: alles linksbündig gestapelt — Claim, dann Sub-Headline, dann CTA.
   Kein eigenes max-width → Inhalt sitzt am linken Container-Rand (bündig mit Logo),
   Textbreite wird über die einzelnen Elemente begrenzt. */
.hero__inner { position: relative; z-index: 1; }
.hero__inner .eyebrow,
.hero__claim { max-width: 20ch; }
.hero__claim {
  font-size: clamp(2rem, 7vw, 5rem);
  line-height: 1.04;
  margin-block: var(--sp-3) var(--sp-5);
  color: var(--green-on-dark);
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
/* Sub-Headline: klar dem Claim untergeordnet (Roboto Regular, kleiner, schmaler) */
.hero__sub {
  font-family: var(--ff-body);
  font-weight: var(--fw-regular);
  font-size: clamp(1.05rem, 1.5vw, 1.375rem);
  line-height: 1.45;
  color: var(--offwhite);
  max-width: 56ch;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-6);
  text-transform: none;
}
.hero .eyebrow { color: var(--green-on-dark); }

/* Mobile: langen Hero-CTA umbrechen lassen statt abschneiden */
@media (max-width: 560px) {
  .hero .btn--cream { white-space: normal; }
}

/* ==========================================================================
   7.3 PROBLEM / LÖSUNG (hell)
   ========================================================================== */
.problem { position: relative; overflow: clip; }

/* Bildmarke-Wasserzeichen rechts (größer, Stil wie Footer) */
.problem::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 6%;
  width: clamp(300px, 40vw, 580px);
  aspect-ratio: 1;
  background-image: url("../img/logo/bildmarke.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: .07;
  pointer-events: none;
  z-index: 0;
}

.problem .container { position: relative; z-index: 1; }

/* Headline: rechts ausgerichtet, max 70% → links bleibt Luft */
.problem__h2 {
  max-width: 70%;
  margin-left: auto;
  text-align: right;
  margin-bottom: var(--sp-7);
}

/* Body: links ausgerichtet, max 80% → rechts bleibt Luft */
.problem__body { max-width: 80%; }
.problem__body .eyebrow { margin-bottom: var(--sp-4); }
.problem__body .lead { margin-block: var(--sp-5) var(--sp-6); }

/* Unteres Raster: Bild-Wabe links + Lösungstext rechts */
.problem__bottom { display: grid; gap: var(--sp-7); }
.problem__img { width: 100%; max-width: 260px; }

@media (min-width: 640px) {
  .problem__bottom { grid-template-columns: auto 1fr; align-items: start; }
}

@media (max-width: 899px) {
  .problem__h2 { max-width: 100%; margin-left: 0; text-align: left; }
  .problem__body { max-width: 100%; }
  .problem__img { margin-inline: auto; }
}

/* ==========================================================================
   7.4 LEISTUNGEN — Honeycomb (3 oben / 2 unten, versetzt & überlappend)
   ========================================================================== */
.leistungen__head { margin-bottom: var(--sp-8); }
.leistungen__head .eyebrow { margin-top: var(--sp-3); }

.honeycomb {
  --hex-w: clamp(150px, 24vw, 280px);
  --hex-h: calc(var(--hex-w) * 1.1547);
  --hc-gap: clamp(12px, 1.5vw, 22px);
  display: grid;
  grid-template-columns: repeat(3, var(--hex-w));
  column-gap: var(--hc-gap);
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  list-style: none;
  padding: 0;
}
.honeycomb__cell { width: var(--hex-w); }

/* untere Reihe: um halbe Wabe einrücken + nach oben überlappen */
.honeycomb__cell:nth-child(4),
.honeycomb__cell:nth-child(5) {
  margin-top: calc(var(--hex-h) * -0.22);
  transform: translateX(calc((var(--hex-w) + var(--hc-gap)) / 2));
}
.honeycomb__cell:nth-child(4) { grid-column: 1; }
.honeycomb__cell:nth-child(5) { grid-column: 2; }

/* Tablet: 2 pro Reihe, ohne Versatz */
@media (max-width: 900px) {
  .honeycomb {
    --hex-w: clamp(200px, 42vw, 320px);
    grid-template-columns: repeat(2, var(--hex-w));
  }
  .honeycomb__cell:nth-child(n) { grid-column: auto; transform: none; margin-top: 0; }
  .honeycomb__cell:nth-child(even) { margin-top: calc(var(--hex-h) * 0.18); }
}
/* Phone: 1 Spalte, Form bleibt erhalten */
@media (max-width: 560px) {
  .honeycomb {
    --hex-w: min(78vw, 320px);
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: var(--sp-4);
  }
  .honeycomb__cell:nth-child(n) { margin-top: 0; }
}

/* ==========================================================================
   7.5 TRUST-BAND (dunkel)
   ========================================================================== */
.trust { padding-bottom: var(--section-pad); }
.trust__band {
  width: 100%;
  aspect-ratio: 21 / 6;
  max-height: 360px;
  overflow: hidden;
}
.trust__band img { width: 100%; height: 100%; object-fit: cover; }
.trust__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  padding: 0;
  margin-top: var(--section-pad);
  list-style: none;
}
.trust__logos .placeholder { flex: 0 1 160px; }
.trust__note {
  margin: var(--sp-5) auto 0;
  max-width: none;
  text-align: center;
  font-size: var(--fs-small);
  font-style: italic;
  color: var(--gray-mid);
}

@media (max-width: 560px) {
  .trust__logos { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; }
  .trust__logos .placeholder { flex: 0 0 70%; scroll-snap-align: center; }
}

/* ==========================================================================
   7.6 TESTIMONIAL (dunkel)
   ========================================================================== */
.testimonial__inner { display: grid; gap: var(--sp-7); align-items: center; }
.testimonial__quote p {
  font-family: var(--ff-display);
  font-weight: var(--fw-medium);
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  line-height: 1.3;
  color: var(--green-mid);
  max-width: 22ch;
}
.testimonial__quote strong { color: var(--white); font-weight: var(--fw-bold); }
.testimonial__cite {
  display: block;
  margin-top: var(--sp-6);
  font-family: var(--ff-body);
  font-style: normal;
  font-size: var(--fs-small);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.testimonial__portrait { width: min(300px, 70%); justify-self: center; }

@media (min-width: 768px) {
  .testimonial__inner { grid-template-columns: 1fr auto; }
  .testimonial__portrait { width: 320px; justify-self: end; }
}

/* ==========================================================================
   7.7 PROJEKTE (hell)
   ========================================================================== */
.projekte__head { margin-bottom: var(--sp-8); }
.projekte__head .eyebrow { margin-top: var(--sp-3); }
.projekte__grid { display: grid; gap: var(--sp-5); }
@media (min-width: 680px)  { .projekte__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .projekte__grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   7.8 DMU-ORIENTIERUNGSHILFE (hell)
   ========================================================================== */
.dmu__head { position: relative; z-index: 3; margin-bottom: var(--sp-8); max-width: min(100%, 72rem); margin-left: auto; text-align: right; }
.dmu__head .eyebrow { margin-top: var(--sp-3); }

/* 3-Waben-Cluster.
   Mobile-First: Lupen-Icon oben, darunter zwei gestapelte Rechteck-Karten (B2).
   Desktop: Honeycomb mit zentraler Lupe vorne, Themen-Waben dahinter versetzt (B1). */
.dmu__hexes {
  --dmu-hex: clamp(260px, 32vw, 440px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}

/* Lupe-Wabe (Deko) */
.dmu__search-hex {
  position: relative;
  flex: none;
  width: 72px;            /* mobile: kleines Icon oben (flat-top) */
  aspect-ratio: 231 / 200;
}
.dmu__search-hex .hex__shape path { fill: var(--green-light); stroke: none; }
.dmu__search-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dmu__search-icon svg { width: 46%; height: 46%; color: var(--green-dark); }

/* Mobile: Themen-Waben → einfache Rechteck-Karten (keine Hexagon-Form) */
.dmu__hexes .hex-info {
  width: 100%;
  max-width: 520px;
  aspect-ratio: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.dmu__hexes .hex-info .hex__shape { display: none; }
.dmu__hexes .hex-info .hex__content {
  position: static;
  padding: var(--sp-6);
  gap: var(--sp-4);
}
.dmu__hexes .hex-info--dark  { background: var(--gray-dark); }
.dmu__hexes .hex-info--light { background: var(--green-light); }
.dmu__hexes .hex-info--mid   { background: var(--green-mid); }

/* Desktop: kompaktes Bienenwaben-Cluster aus LIEGENDEN (flat-top) Waben mit
   natürlichem Abstand (berühren sich NICHT). Anordnung: Lupe oben rechts,
   Techniker mitte links, Entscheider unten rechts. Flat-top → W=Breite,
   H=0.866·W; die beiden rechten Waben sind direkte Nachbarn → kompakt statt hoch. */
@media (min-width: 761px) {
  .dmu__hexes {
    --w: clamp(300px, 34vw, 480px);
    --h: calc(var(--w) * 0.8658);
    --g: 1.07;                       /* Spalt-Faktor → natürlicher Abstand */
    display: block;
    position: relative;
    width: calc((1 + 0.75 * var(--g)) * var(--w));
    height: calc((1 + var(--g)) * var(--h));
    /* Headline sitzt tiefer (via .dmu__head margin-top), Cluster um denselben Betrag
       höher gezogen → Waben bleiben an Ort, Headline ragt weiter in die Lupe-Wabe. */
    margin: calc(-0.26 * var(--h) - var(--sp-8) - var(--sp-4)) auto 0;
    gap: 0;
  }

  .dmu__head { margin-top: calc(var(--sp-8) + var(--sp-4)); }

  .dmu__hexes .hex-info,
  .dmu__search-hex {
    position: absolute;
    width: var(--w);
    aspect-ratio: 231 / 200;         /* flat-top */
    margin: 0;
    transform: none;
  }

  /* Themen-Waben zurück zur Hexagon-Form, Text + Button zentriert */
  .dmu__hexes .hex-info {
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .dmu__hexes .hex-info .hex__shape { display: block; }
  .dmu__hexes .hex-info .hex__content {
    position: absolute; inset: 0;
    padding: 13% 16%;
    gap: var(--sp-2);
    align-items: center;
    text-align: center;
  }

  /* Flat-top-Positionen: Techniker links, Lupe = NO-Nachbar, Entscheider = SO-Nachbar.
     Versatz ±(0.75·W, 0.5·H) · g → gleichmäßiger natürlicher Spalt. */
  .dmu__search-hex                     { left: calc(0.75 * var(--g) * var(--w)); top: 0;                               z-index: 1; }
  .dmu__hexes [data-dmu="techniker"]   { left: 0;                                 top: calc(0.5 * var(--g) * var(--h)); z-index: 2; }
  .dmu__hexes [data-dmu="entscheider"] { left: calc(0.75 * var(--g) * var(--w)); top: calc(var(--g) * var(--h));       z-index: 2; }

  /* Lupe-Icon unten links */
  .dmu__search-icon {
    position: absolute;
    inset: auto auto 22% 22%;
    display: block;
  }
  .dmu__search-icon svg { width: calc(var(--w) * 0.2); height: auto; }
}

/* ==========================================================================
   7.9 ÜBER-UNS-TEASER (hell)
   ========================================================================== */
.ueber__grid { display: grid; gap: var(--sp-7); align-items: center; }
.ueber__text .eyebrow { margin-top: var(--sp-2); }
.ueber__text .lead { margin-block: var(--sp-5); }
.ueber__media img { width: 100%; border-radius: var(--radius-card); box-shadow: var(--shadow-md); }
.ueber__wm { width: 40vw; max-width: 520px; bottom: -14%; left: -10%; }
@media (min-width: 900px) {
  .ueber__grid { grid-template-columns: 1.1fr 1fr; }
}

/* ==========================================================================
   7.10 KONTAKT (hell)
   ========================================================================== */
.kontakt { overflow: clip; position: relative; }

/* Hintergrund-Watermark rechts oben */
.kontakt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/logo/bildmarke.svg");
  background-repeat: no-repeat;
  background-position: 110% -10%;
  background-size: 45vw;
  opacity: .04;
  pointer-events: none;
  z-index: 0;
}

.kontakt__inner { display: grid; gap: var(--sp-7); position: relative; z-index: 1; }
.kontakt__head { max-width: 70ch; margin-inline: auto; text-align: center; }
.kontakt__head .eyebrow { margin-top: var(--sp-3); }
.kontakt__head .lead { margin-top: var(--sp-5); text-align: left; }
/* Headline auf Spaltenbreite begrenzen, damit sie nicht in die Deko-Wabe läuft */
.kontakt__head .display { font-size: clamp(2.25rem, 4.4vw, 4rem); }
.kontakt__form { max-width: 720px; width: 100%; }

/* großes dunkles Deko-Hexagon links, angeschnitten */
.kontakt__deco {
  position: absolute;
  z-index: 0;
  width: clamp(360px, 34vw, 460px);
  aspect-ratio: 200 / 231;
  /* tiefer gesetzt → Wabe liegt unter dem Text, nicht dahinter */
  top: 46%;
  left: auto;
  /* rechter Rand ~130px ab Viewport-links → Wabe klar als Wabe erkennbar, aber nicht unter dem Text */
  right: calc(100% - 130px);
  color: var(--gray-dark);
  pointer-events: none;
}
.kontakt__deco .hex__shape path { fill: currentColor; stroke: none; }
/* Mobile: Deko-Wabe ausblenden, damit sie den Lead-Text nicht überdeckt */
@media (max-width: 979px) { .kontakt__deco { display: none; } }

@media (min-width: 980px) {
  .kontakt__head { text-align: left; margin-inline: 0; max-width: 48ch; }
  .kontakt__head .lead { text-align: left; }
  /* Spaltenverhältnis leicht zugunsten des Formulars (D3) */
  .kontakt__inner { grid-template-columns: 1fr 1.1fr; align-items: start; gap: var(--sp-8); }
}

/* ==========================================================================
   PHASE 2 — UNTERSEITEN
   Page-Hero, Leistungs-Reihen, Stats, FAQ, CTA-Band, Branchen/Team-Raster
   ========================================================================== */

/* --- Page-Hero (dunkel, mit Foto + Overlay) --- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(340px, 48vh, 560px);
  padding-top: calc(var(--header-h) + var(--sp-7));
  padding-bottom: var(--sp-8);
  background: var(--hero-bg);
  color: var(--white);
  overflow: clip;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--ph-img);
  background-size: cover;
  background-position: center;
  opacity: .4;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,30,30,.5) 0%, rgba(54,64,62,.7) 60%, rgba(30,30,30,.88) 100%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--green-on-dark); }
.page-hero__h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 20ch; margin-top: var(--sp-3); }
.page-hero__lead { max-width: 52ch; margin-top: var(--sp-4); color: var(--offwhite); font-size: var(--fs-lead); line-height: 1.5; }

/* --- Leistungs-Reihen (Übersicht: Bild + Text alternierend) --- */
.svc-rows { display: grid; gap: clamp(var(--sp-8), 8vw, var(--sp-10)); }
.svc-row { display: grid; gap: var(--sp-6); align-items: center; }
.svc-row__media img { width: 100%; border-radius: var(--radius-card); box-shadow: var(--shadow-md); }
.svc-row__body .eyebrow { margin-bottom: var(--sp-3); }
.svc-row__body h2 { margin-bottom: var(--sp-4); }
.svc-row__body p { margin-bottom: var(--sp-5); }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 1fr 1fr; gap: var(--sp-9); }
  .svc-row:nth-child(even) .svc-row__media { order: 2; }
}

/* --- Hex-Bullet-Liste (Leistungsumfang) --- */
.hex-list { display: grid; gap: var(--sp-3); padding: 0; list-style: none; max-width: 68ch; }
.hex-list li { position: relative; padding-left: 1.6em; }
.hex-list li::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 13px; height: 15px;
  background: var(--green-mid);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* --- Kennzahlen --- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--sp-6); margin-top: var(--sp-8); text-align: center; }
.stat__num { display: block; font-family: var(--ff-display); font-weight: var(--fw-black); font-size: clamp(2rem, 4vw, 3.2rem); color: var(--green-dark); }
.section--dark .stat__num, .section--black .stat__num { color: var(--green-on-dark); }
.stat__label { display: block; margin-top: var(--sp-2); font-size: var(--fs-small); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .06em; }

/* --- FAQ (natives details/summary) --- */
.faq { display: grid; gap: var(--sp-3); max-width: 820px; margin-top: var(--sp-7); }
.faq__item { background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius-card); overflow: clip; }
.faq__item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5);
  font-family: var(--ff-display); font-weight: var(--fw-semibold);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.5em; line-height: 1; color: var(--green-dark); transition: transform var(--dur-fast) var(--ease-soft); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item > p { padding: 0 var(--sp-5) var(--sp-5); color: var(--color-text-muted); max-width: none; }

/* --- CTA-Band (dunkel, vor dem Footer) --- */
.cta-band__inner { display: grid; gap: var(--sp-6); align-items: center; justify-items: start; }
.cta-band .display { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 18ch; }
.cta-band .eyebrow { margin-top: var(--sp-3); }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } }

/* --- Branchen-Raster --- */
.branchen__grid { display: grid; gap: var(--sp-5); margin-top: var(--sp-8); }
@media (min-width: 680px)  { .branchen__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .branchen__grid { grid-template-columns: repeat(3, 1fr); } }
.branche-card h3 { color: var(--green-dark); }

/* --- Team-Raster (Platzhalter-Porträts) --- */
.team__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-6); margin-top: var(--sp-8); }
.team-card { text-align: center; }
.team-card .placeholder { aspect-ratio: 1; border-radius: var(--radius-card); }
.team-card figcaption { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--color-text-muted); }

/* Branchen/Werte-Kacheln: einheitliche Größe über alle Reihen */
.branchen__grid { grid-auto-rows: 1fr; align-items: stretch; }
.branche-card { height: 100%; }

/* Zertifikats-Band kompakt (Unterseiten, ohne Foto-Band davor) */
.trust--compact { padding-block: var(--section-pad); }
.trust--compact .trust__logos { margin-top: 0; }
