@charset "UTF-8";
/* ==========================================================================
   Schwäbische ImmobilienWert GmbH — styles.css
   Ein einziges Stylesheet für alle Seiten. Keine externen Requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Schriften — lokal, DSGVO-konform, kein CDN
   Archivo (Display) und Inter (Text), beide SIL Open Font License 1.1
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Design-Token — die einzige Stelle, an der Farben definiert werden
   -------------------------------------------------------------------------- */
:root {
  /* Markenfarbe: exakt aus siw-logo.svg ausgelesen (.st0{fill:#95C11F}) */
  --gruen: #95C11F;
  /* 38 % abgedunkelt — erreicht 4.94:1 auf --paper, 4.56:1 auf --paper-alt */
  --gruen-dunkel: #5C7713;

  --ink: #101310;
  --ink-70: #43473F;
  --paper: #FBFBF9;
  --paper-alt: #F2F2EE;
  --night: #14170F;
  --night-alt: #1C2016;
  --line: rgba(16, 19, 16, .12);
  --line-strong: rgba(16, 19, 16, .22);
  --line-dark: rgba(251, 251, 249, .16);
  --paper-dim: #B4BAAE; /* 9.12:1 auf --night */

  /* Typografie */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Spacing-Skala, 8px-Basis */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-15: 120px;
  --sp-20: 160px;

  --section: 80px;      /* vertikaler Rhythmus, per Breakpoint erhöht */
  --gutter: 20px;       /* äußeres Padding */
  --content: 1280px;
  --bleed: 1920px;
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .3, 1);
  --radius: 4px;
  --film-overlap: 0px;   /* ab 1024px auf 120px gesetzt */
}

@media (min-width: 768px) {
  :root { --section: 120px; --gutter: 40px; --header-h: 84px; }
}
@media (min-width: 1024px) {
  :root { --film-overlap: 120px; }
}
@media (min-width: 1280px) {
  :root { --section: 160px; --gutter: 64px; --header-h: 92px; }
}

/* --------------------------------------------------------------------------
   3. Reset / Grundlagen
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  /* reserviert die Scrollbar dauerhaft — kein Versatz beim Scroll-Lock,
     und kein JavaScript muss padding-right setzen (strikte CSP) */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
  /* Lange deutsche Komposita dürfen die Spalte nie sprengen */
  overflow-wrap: break-word;
}
/* Trennung nur dort, wo die Spalten wirklich schmal sind. Auf breiten
   Schirmen würde sonst auch „kompetent" unnötig getrennt. */
@media (max-width: 1023px) {
  h1, h2, h3, h4 { hyphens: auto; }
}

h1 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.9vw, 3.25rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); }
h4 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); letter-spacing: -.02em; }
h5, h6 { font-size: 1.0625rem; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; }

strong, b { font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--gruen); color: var(--ink); }

/* Fokus — nie global entfernen */
:focus-visible {
  outline: 2px solid var(--gruen-dunkel);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.footer :focus-visible,
.film :focus-visible,
.lightbox :focus-visible,
.mobilenav :focus-visible {
  outline-color: var(--gruen);
}

/* --------------------------------------------------------------------------
   4. Layout-Primitive
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  /* als Flex-Kind sonst min-width:auto — lange Wörter würden das Layout aufziehen */
  min-width: 0;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--bleed {
  max-width: calc(var(--bleed) + var(--gutter) * 2);
}
.wrap--narrow {
  max-width: calc(820px + var(--gutter) * 2);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .62); }
.section--dark { background: var(--night); color: var(--paper); }
.section--alt { background: var(--paper-alt); }

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }

.measure { max-width: 68ch; }
.measure-narrow { max-width: 54ch; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 200;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform .16s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* --------------------------------------------------------------------------
   5. Typografische Bausteine
   -------------------------------------------------------------------------- */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-text);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-70);
  margin: 0 0 var(--sp-3);
}
.label::before {
  content: '';
  flex: none;
  width: 24px;
  height: 2px;
  background: var(--gruen);
}
.label--center { justify-content: center; }
/* Alle dunklen Kontexte müssen hier gelistet sein, sonst steht das Label
   dunkelgrau auf dunkelgrün-schwarz. */
.section--dark .label,
.film .label,
.facts .label,
.cta-band .label,
.footer .label { color: var(--paper-dim); }
.hero .label, .pagehead .label { color: rgba(255, 255, 255, .92); }

.lede {
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink);
}

.lead-quote {
  border-left: 3px solid var(--gruen);
  padding-left: clamp(20px, 3vw, 32px);
  font-size: clamp(1.125rem, 1rem + .6vw, 1.4375rem);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -.012em;
  margin-bottom: var(--sp-5);
}

.prose > * + * { margin-top: 1.1em; }
.prose p { max-width: 68ch; }
.prose h3 { margin-top: 2em; margin-bottom: .55em; }
.prose h3:first-child { margin-top: 0; }
.prose strong { font-weight: 600; }

/* Aufzählung mit grünem Marker */
.ticks { list-style: none; }
.ticks li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-top: 1px solid var(--line);
  max-width: 68ch;
}
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25px;
  width: 8px;
  height: 2px;
  background: var(--gruen);
}

/* --------------------------------------------------------------------------
   6. Buttons und Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--gruen);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.btn:hover { background: #A6D42A; }
.btn:active { background: #86B015; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: transparent; border-color: var(--ink); }

.btn--on-dark {
  background: transparent;
  border-color: rgba(251, 251, 249, .32);
  color: var(--paper);
}
.btn--on-dark:hover { background: transparent; border-color: var(--paper); }

.btn--wide { width: 100%; }

/* Textlink mit wachsendem grünem Unterstrich */
.tlink {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 3px;
}
.tlink::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gruen);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.tlink:hover::after, .tlink:focus-visible::after { transform: scaleX(1); }
.tlink .arrow { transition: transform .28s var(--ease); display: inline-block; }
.tlink:hover .arrow { transform: translateX(4px); }

/* Inline-Links im Fließtext */
.prose a:not(.btn):not(.tlink),
.rte a:not(.btn):not(.tlink) {
  color: var(--gruen-dunkel);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover, .rte a:hover { text-decoration-thickness: 2px; }

/* --------------------------------------------------------------------------
   7. Header und Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.header::before {
  /* weicher Scrim, damit helle Navigation über hellem Hero lesbar bleibt */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 12, 9, .55), rgba(10, 12, 9, 0));
  opacity: 1;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.header.is-solid {
  background: var(--paper);
  border-bottom-color: var(--line);
}
.header.is-solid::before { opacity: 0; }

/* Seiten ohne Bild-Hero starten direkt im hellen Zustand */
.header.header--static {
  background: var(--paper);
  border-bottom-color: var(--line);
}
.header.header--static::before { opacity: 0; }

.header__inner {
  width: 100%;
  max-width: calc(var(--bleed) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  position: relative;
}

.brand {
  flex: none;
  display: block;
  line-height: 0;
  margin-right: auto;
}
.brand img {
  width: clamp(132px, 12vw, 168px);
  height: auto;
}

/* Hauptnavigation (Desktop) */
.nav { display: none; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .nav__list {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 34px);
    list-style: none;
  }
  .nav__item { position: relative; }
  .nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
    padding: 10px 0;
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    transition: color .2s var(--ease);
  }
  .header.is-solid .nav__link,
  .header--static .nav__link { color: var(--ink); }

  .nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--gruen);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .24s var(--ease);
  }
  .nav__link:hover::after,
  .nav__link:focus-visible::after { transform: scaleX(1); }
  .nav__link[aria-current='page']::after,
  .nav__link.is-active::after { transform: scaleX(1); }

  .nav__caret {
    width: 9px;
    height: 9px;
    flex: none;
    transition: transform .24s var(--ease);
  }
  .nav__item.is-open .nav__caret { transform: rotate(180deg); }

  /* Dropdown */
  .nav__sub {
    position: absolute;
    top: calc(100% + 12px);
    left: -18px;
    min-width: 216px;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: 0 12px 28px rgba(16, 19, 16, .09);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  /* Kein :focus-within — sonst könnte ein per Tastatur geöffnetes Dropdown
     mit demselben Button nicht wieder geschlossen werden. Den Fokusfall
     übernimmt script.js. */
  .nav__item:hover > .nav__sub,
  .nav__item.is-open > .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav__sub a {
    display: block;
    padding: 11px 16px;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-radius: 2px;
    transition: background .16s var(--ease);
  }
  .nav__sub a:hover { background: var(--paper-alt); }
  .nav__sub a[aria-current='page'] {
    background: var(--paper-alt);
    box-shadow: inset 2px 0 0 var(--gruen);
  }
}

/* Header-Aktionen rechts */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
}
.header__tel {
  display: none;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.header.is-solid .header__tel,
.header--static .header__tel { color: var(--ink); }
.header__tel:hover { color: var(--gruen); }
@media (min-width: 1280px) { .header__tel { display: inline-block; } }

.header__cta { display: none; }
@media (min-width: 1024px) {
  .header__cta {
    display: inline-flex;
    min-height: 44px;
    padding: 11px 22px;
    font-size: .875rem;
  }
}

/* Burger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 10px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: background .3s var(--ease), transform .3s var(--ease), opacity .2s var(--ease);
}
.header.is-solid .burger span,
.header--static .burger span { background: var(--ink); }
.burger[aria-expanded='true'] span { background: var(--paper); }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   8. Mobiles Menü — vollflächiges Overlay
   -------------------------------------------------------------------------- */
.mobilenav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--night);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(var(--sp-5) + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.mobilenav.is-open { opacity: 1; visibility: visible; }
@media (min-width: 1024px) { .mobilenav { display: none; } }

.mobilenav__list { list-style: none; border-top: 1px solid var(--line-dark); }
.mobilenav__list > li { border-bottom: 1px solid var(--line-dark); }

.mobilenav__link,
.mobilenav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 16px 0;
  background: none;
  border: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.mobilenav__link[aria-current='page'] { color: var(--gruen); }
.mobilenav__toggle .nav__caret { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.mobilenav__toggle[aria-expanded='true'] .nav__caret { transform: rotate(180deg); }

.mobilenav__sub {
  list-style: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height .34s var(--ease);
}
.mobilenav__sub.is-open { max-height: 340px; }
.mobilenav__sub a {
  display: block;
  min-height: 48px;
  padding: 12px 0 12px 20px;
  border-left: 2px solid var(--line-dark);
  margin-bottom: 4px;
  color: var(--paper-dim);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}
.mobilenav__sub a[aria-current='page'] { color: var(--gruen); border-left-color: var(--gruen); }
.mobilenav__sub li:last-child a { margin-bottom: 16px; }

/* Gestaffelte Einblendung der Menüpunkte */
.mobilenav__list > li,
.mobilenav__foot {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobilenav.is-open .mobilenav__list > li,
.mobilenav.is-open .mobilenav__foot { opacity: 1; transform: none; }
.mobilenav.is-open .mobilenav__list > li:nth-child(1) { transition-delay: .08s; }
.mobilenav.is-open .mobilenav__list > li:nth-child(2) { transition-delay: .13s; }
.mobilenav.is-open .mobilenav__list > li:nth-child(3) { transition-delay: .18s; }
.mobilenav.is-open .mobilenav__list > li:nth-child(4) { transition-delay: .23s; }
.mobilenav.is-open .mobilenav__list > li:nth-child(5) { transition-delay: .28s; }
.mobilenav.is-open .mobilenav__foot { transition-delay: .34s; }

.mobilenav__foot {
  margin-top: auto;
  padding-top: var(--sp-6);
  display: grid;
  gap: var(--sp-2);
}
.mobilenav__foot a {
  color: var(--paper);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.mobilenav__foot .btn {
  margin-top: var(--sp-2);
  /* muss die Regel .mobilenav__foot a überschreiben — heller Text auf Grün
     ergäbe sonst nur 2:1 statt der nötigen 4.5:1 */
  color: var(--ink);
}
.mobilenav__addr {
  color: var(--paper-dim);
  font-size: .9375rem;
  line-height: 1.6;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  /* min-height statt aspect-ratio: die Sektion darf mit dem Inhalt wachsen */
  min-height: 100svh;
  padding-top: calc(var(--header-h) + var(--sp-8));
  padding-bottom: var(--sp-10);
  color: #fff;
  background: var(--night);
}
@media (min-width: 768px) {
  .hero {
    /* 21:9 als Zielproportion, nach unten durch den Inhalt abgesichert */
    min-height: max(700px, 42.86vw);
    padding-bottom: var(--sp-12);
  }
}
@media (min-width: 1024px) {
  /* Platz für das um --film-overlap nach oben ragende Videomodul */
  .hero { padding-bottom: calc(var(--sp-10) + var(--film-overlap)); }
}
@media (min-width: 1280px) {
  .hero { min-height: max(760px, 42.86vw); }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* neutraler dunkler Scrim von links, kein Farbverlauf */
  background:
    linear-gradient(90deg, rgba(8, 10, 7, .86) 0%, rgba(8, 10, 7, .70) 34%, rgba(8, 10, 7, .34) 62%, rgba(8, 10, 7, .12) 100%),
    linear-gradient(to top, rgba(8, 10, 7, .55) 0%, rgba(8, 10, 7, 0) 45%);
}
@media (max-width: 767px) {
  .hero__scrim {
    background:
      linear-gradient(to top, rgba(8, 10, 7, .90) 8%, rgba(8, 10, 7, .62) 46%, rgba(8, 10, 7, .38) 100%);
  }
}

.hero__inner { position: relative; max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: var(--sp-3); }
.hero__text {
  font-size: clamp(1.0625rem, 1rem + .5vw, 1.3125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .93);
  max-width: 60ch;
  margin-bottom: var(--sp-5);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.hero__cta .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero__cta .btn { flex: 0 0 auto; } }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  list-style: none;
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}
.hero__trust li { display: flex; align-items: center; gap: 18px; }
/* Trennstriche erst, wenn die Punkte tatsächlich nebeneinander stehen —
   sonst hängt auf schmalen Displays ein Strich am Zeilenende. */
@media (min-width: 1200px) {
  .hero__trust li:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 13px;
    background: rgba(255, 255, 255, .38);
  }
}
@media (max-width: 1199px) {
  .hero__trust { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Kleiner Seitenkopf für Unterseiten */
.pagehead {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 58svh;
  padding-top: calc(var(--header-h) + var(--sp-8));
  padding-bottom: var(--sp-8);
  color: #fff;
  background: var(--night);
}
@media (min-width: 768px) {
  .pagehead { min-height: max(480px, 38vw); padding-bottom: var(--sp-10); }
}
@media (min-width: 1280px) { .pagehead { min-height: max(540px, 34vw); } }
.pagehead__inner { max-width: 900px; min-width: 0; }
.pagehead__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Kräftig genug, damit heller Text auch über den hellsten Titelbildern
     sicher über 4.5:1 bleibt (nachgemessen an den gerenderten Pixeln). */
  background:
    linear-gradient(90deg, rgba(8, 10, 7, .90) 0%, rgba(8, 10, 7, .74) 45%, rgba(8, 10, 7, .34) 100%),
    linear-gradient(to top, rgba(8, 10, 7, .55), rgba(8, 10, 7, .18) 55%, rgba(8, 10, 7, .42) 100%);
}
.pagehead h1 { color: #fff; }
.pagehead__sub {
  margin-top: var(--sp-3);
  font-size: clamp(1.0625rem, 1rem + .45vw, 1.25rem);
  color: rgba(255, 255, 255, .93);
  max-width: 56ch;
}

/* Brotkrümel */
.crumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .94);
  margin-bottom: var(--sp-4);
}
/* align-items:center, damit die vergrößerten Touch-Ziele die Zeile
   nicht gegen die Trennzeichen verschieben */
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li:not(:last-child)::after { content: '/'; opacity: .55; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   10. Imagefilm-Modul
   -------------------------------------------------------------------------- */
.film { background: var(--night); color: var(--paper); padding-bottom: var(--section); }
.film__frame {
  max-width: 1120px;
  margin-inline: auto;
  padding: 10px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--night-alt);
}
@media (min-width: 1024px) {
  .film__frame { margin-top: calc(var(--film-overlap) * -1); padding: 14px; }
}
@media (max-width: 1023px) {
  .film { padding-top: calc(var(--section) * .7); }
}

.film__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0B0D08;
  border-radius: 2px;
}
.film__stage img,
.film__stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film__stage video { object-fit: contain; background: #000; }

/* Dezenter Scrim auf dem Vorschaubild, damit sich der Play-Button sicher
   abhebt. Er verschwindet mit dem Bild, sobald das <video> eingesetzt wird. */
.film__stage:has(img)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 50%, rgba(8, 10, 7, .42), rgba(8, 10, 7, 0) 72%),
    linear-gradient(to top, rgba(8, 10, 7, .34), rgba(8, 10, 7, .06) 46%);
}
.film__play { z-index: 1; }

.film__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gruen);
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease);
}
@media (min-width: 768px) { .film__play { width: 88px; height: 88px; } }
.film__play::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(149, 193, 31, .5);
  transition: inset .28s var(--ease), border-color .28s var(--ease);
}
.film__play:hover { transform: translate(-50%, -50%) scale(1.04); }
.film__play:hover::before { inset: -20px; border-color: rgba(149, 193, 31, .8); }
.film__play svg { width: 22px; height: 26px; margin-left: 4px; }
@media (min-width: 768px) { .film__play svg { width: 26px; height: 30px; } }
/* Ohne Videodatei: bewusst gesetzter Platzhalter statt ausgegrautem Button —
   klare grüne Kontur, damit das Modul fertig und nicht defekt wirkt. */
.film__play[aria-disabled='true'] {
  cursor: default;
  background: transparent;
  border: 2px solid var(--gruen);
  color: var(--gruen);
}
.film__play[aria-disabled='true']::before { border-color: rgba(149, 193, 31, .28); }
.film__play[aria-disabled='true']:hover { transform: translate(-50%, -50%); }
.film__play[aria-disabled='true']:hover::before { inset: -12px; border-color: rgba(149, 193, 31, .28); }

.film__note {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  background: linear-gradient(to top, rgba(8, 10, 7, .8), rgba(8, 10, 7, 0));
  text-align: center;
}

.film__intro { max-width: 700px; padding-top: var(--sp-10); }
.film__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  max-width: 1120px;
  margin: var(--sp-3) auto 0;
  font-size: .875rem;
  color: var(--paper-dim);
}

/* Bestandstext neben dem Film */
.film__body {
  max-width: 1120px;
  margin: var(--sp-10) auto 0;
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 900px) {
  .film__body { grid-template-columns: 1fr 1.15fr; gap: var(--sp-10); align-items: start; }
}
.film__body p { color: rgba(251, 251, 249, .84); }
.film__body h2 { max-width: 15ch; }

/* --------------------------------------------------------------------------
   11. Vertrauensband (Zahlen)
   -------------------------------------------------------------------------- */
.facts {
  background: var(--night-alt);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding-block: var(--sp-10);
}
.facts__grid {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 768px) {
  .facts__grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .facts__item + .facts__item {
    border-left: 1px solid var(--line-dark);
    padding-left: clamp(24px, 4vw, 56px);
  }
  .facts__item:not(:last-child) { padding-right: clamp(24px, 4vw, 56px); }
}
.facts__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.8rem + 4vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .95;
  color: var(--gruen);
  margin-bottom: 14px;
}
.facts__label {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(251, 251, 249, .82);
  max-width: 30ch;
}

/* --------------------------------------------------------------------------
   12. Leistungs-Spalten (3 Kernbereiche)
   -------------------------------------------------------------------------- */
.pillars { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .2s var(--ease);
}
@media (min-width: 900px) {
  .pillar {
    padding: var(--sp-8) clamp(24px, 3vw, 44px);
    border-bottom: 0;
  }
  .pillar + .pillar { border-left: 1px solid var(--line); }
  .pillar:first-child { padding-left: 0; }
  .pillar:last-child { padding-right: 0; }
  .pillars { border-bottom: 1px solid var(--line); }
}
.pillar:hover { background: var(--paper-alt); }
.pillar__num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--line-strong);
  transition: color .2s var(--ease);
}
.pillar:hover .pillar__num { color: var(--gruen); }
.pillar h3 { margin-bottom: 2px; }
.pillar p { color: var(--ink-70); font-size: .9688rem; max-width: 38ch; }
.pillar__more {
  margin-top: auto;
  padding-top: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gruen-dunkel);
}
.pillar__more .arrow { transition: transform .28s var(--ease); }
.pillar:hover .pillar__more .arrow { transform: translateX(4px); }

/* Neun Leistungsbausteine */
.modules {
  display: grid;
  list-style: none;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .modules { grid-template-columns: 1fr 1fr; column-gap: var(--sp-10); } }
.modules li { border-bottom: 1px solid var(--line); }
.modules a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 16px 30px 16px 22px;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  transition: padding-left .22s var(--ease), background .2s var(--ease);
}
.modules a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 2px;
  background: var(--gruen);
  transition: width .22s var(--ease);
}
.modules a::after {
  content: '→';
  position: absolute;
  right: 4px;
  opacity: 0;
  transform: translateX(-6px);
  color: var(--gruen-dunkel);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.modules a:hover { padding-left: 30px; background: var(--paper-alt); }
.modules a:hover::before { width: 16px; }
.modules a:hover::after { opacity: 1; transform: translateX(0); }

/* --------------------------------------------------------------------------
   13. Zwei-Spalten-Bausteine (Text/Bild)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); }
  .split--media-left .split__media { order: -1; }
}
.split__media { position: relative; }
.split__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.duo {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 900px) {
  .duo { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
}

/* Drei Säulen (Werte) */
.values { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value {
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .value { padding: var(--sp-8) clamp(24px, 3vw, 44px); border-bottom: 0; }
  .value + .value { border-left: 1px solid var(--line); }
  .value:first-child { padding-left: 0; }
  .value:last-child { padding-right: 0; }
  .values { border-bottom: 1px solid var(--line); }
}
.value__num {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gruen-dunkel);
  display: block;
  margin-bottom: var(--sp-3);
}
.value h3 { margin-bottom: 12px; }
.value p { color: var(--ink-70); font-size: .9688rem; }

/* --------------------------------------------------------------------------
   14. Referenz-Split (zwei große Bildflächen)
   -------------------------------------------------------------------------- */
.refsplit { display: grid; gap: 2px; }
@media (min-width: 768px) { .refsplit { grid-template-columns: 1fr 1fr; } }

.refcard {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--night);
}
@media (min-width: 768px) { .refcard { aspect-ratio: 5 / 4; } }
.refcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.refcard:hover img { transform: scale(1.03); }
.refcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 7, .82) 0%, rgba(8, 10, 7, .30) 46%, rgba(8, 10, 7, .12) 100%);
}
.refcard__body {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 48px);
  width: 100%;
}
.refcard__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.03em;
  display: inline-block;
  padding-bottom: 10px;
  position: relative;
}
.refcard__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gruen);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--ease);
}
.refcard:hover .refcard__title::after { transform: scaleX(1); }
.refcard__meta {
  display: block;
  margin-top: 6px;
  font-size: .875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}

/* --------------------------------------------------------------------------
   15. Galerie und Lightbox
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  list-style: none;
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.gallery li.is-hidden { display: none; }

.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-alt);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}
/* Einheitliche Kachelhöhe: gemischte Seitenverhältnisse würden die Rasterzeile
   auf das höchste Bild aufziehen und darunter Lücken hinterlassen.
   Der Zuschnitt auf 4:3 passiert serverseitig entropiebasiert, die Lightbox
   zeigt anschließend das vollständige Bild. */
.gallery__btn img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery__btn:hover img { transform: scale(1.03); }
.gallery__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 7, 0);
  transition: background .3s var(--ease);
}
.gallery__btn:hover::after { background: rgba(8, 10, 7, .12); }

.gallery__more { margin-top: var(--sp-6); display: flex; justify-content: center; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  /* über dem Header (100) und deckend, damit nichts durchscheint */
  z-index: 300;
  display: none;
  background: #070904;
  color: #fff;
}
/* minmax(0,1fr): sonst wächst die Bildzeile mit dem Bild und hohe
   Hochformate laufen unten aus dem Fenster */
.lightbox.is-open { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  font-size: .875rem;
  letter-spacing: .12em;
}
.lightbox__count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .82); }
.lightbox__stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}
/* Absolut positioniert mit object-fit: contain — dadurch passt sich jedes
   Hoch- und Querformat sicher ein, ohne dass eine prozentuale max-height
   gegen eine unbestimmte Zeilenhöhe rechnen muss. */
.lightbox__stage img {
  position: absolute;
  inset: 0 8px;
  width: calc(100% - 16px);
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
}
@media (min-width: 768px) {
  /* Platz für die Pfeile am Rand */
  .lightbox__stage img { inset: 0 88px; width: calc(100% - 176px); }
}
.lightbox__foot {
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  font-size: .875rem;
  color: rgba(255, 255, 255, .78);
  text-align: center;
  min-height: 52px;
}
.lb-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.lb-btn svg { width: 18px; height: 18px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
@media (min-width: 768px) {
  .lightbox__nav--prev { left: 24px; }
  .lightbox__nav--next { right: 24px; }
}

/* --------------------------------------------------------------------------
   16. Team
   -------------------------------------------------------------------------- */
.team { display: grid; gap: var(--sp-6) var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(3, 1fr); } }

.member { display: flex; flex-direction: column; }
.member__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-alt);
  margin-bottom: var(--sp-3);
}
.member__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .4s var(--ease), transform .5s var(--ease);
}
.member:hover .member__media img,
.member:focus-within .member__media img { filter: grayscale(0); }

.member__name { margin-bottom: 2px; }
.member__role {
  font-size: .9375rem;
  color: var(--ink-70);
  margin-bottom: var(--sp-2);
}
.member__contact {
  display: grid;
  gap: 2px;
  font-size: .9375rem;
  margin-bottom: var(--sp-2);
}
.member__contact a {
  text-decoration: none;
  color: var(--ink-70);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.member__contact a:hover { color: var(--gruen-dunkel); text-decoration: underline; text-underline-offset: 3px; }

.member__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 12px 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--gruen-dunkel);
  font-family: var(--font-text);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.member__toggle .nav__caret { width: 11px; height: 11px; transition: transform .3s var(--ease); }
.member__toggle[aria-expanded='true'] .nav__caret { transform: rotate(180deg); }

/* Auf- und Zuklappen ohne JavaScript-Stilschreibungen (strikte CSP):
   grid-template-rows 0fr → 1fr ist animierbar und braucht keine Höhenmessung. */
.member__vita {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.member__toggle[aria-expanded='true'] + .member__vita { grid-template-rows: 1fr; }
.member__vita-inner { overflow: hidden; min-height: 0; }
.member__toggle[aria-expanded='true'] + .member__vita .member__vita-inner {
  padding: var(--sp-2) 0 var(--sp-3);
}

/* Vita: mobil gestapelte Paare, ab 640px zweispaltig */
.vita { list-style: none; display: grid; gap: 0; }
.vita li {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
  line-height: 1.5;
}
.vita li:first-child { border-top: 1px solid var(--line); }
.vita__jahr {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .04em;
  color: var(--gruen-dunkel);
}
.vita__station { color: var(--ink-70); }
@media (min-width: 640px) {
  .vita li { grid-template-columns: 108px 1fr; gap: 16px; align-items: baseline; }
}

/* --------------------------------------------------------------------------
   17. Sticky-Subnavigation (Leistungsseiten)
   -------------------------------------------------------------------------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.subnav__list {
  display: flex;
  gap: 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-block: 10px;
}
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  white-space: nowrap;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-70);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.subnav__list a:hover { color: var(--ink); background: var(--paper-alt); }
.subnav__list a.is-current {
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: inset 0 -2px 0 var(--gruen);
}
@media (min-width: 1024px) {
  .subnav__list { padding-block: 12px; gap: 8px; }
}

/* Leistungsabschnitt */
.svc { padding-block: var(--section); border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; }
.svc__num {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gruen-dunkel);
  display: block;
  margin-bottom: var(--sp-2);
}

/* "Mehr anzeigen" für lange Texte (nur mobil aktiv) */
.clamped { position: relative; }
.clamped__body { overflow: hidden; }
.clamped.is-collapsed .clamped__body {
  max-height: 13.5em;
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 66%, transparent 100%);
}
.clamped__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: var(--sp-2);
  padding: 12px 0;
  background: none;
  border: 0;
  color: var(--gruen-dunkel);
  font-family: var(--font-text);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.clamped.is-active .clamped__toggle { display: inline-flex; }
.clamped__toggle .nav__caret { width: 11px; height: 11px; transition: transform .3s var(--ease); }
.clamped__toggle[aria-expanded='true'] .nav__caret { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   18. Standort, Kontakt, Formular
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--sp-8); }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 104px); align-items: start; }
}

.datalist { list-style: none; display: grid; gap: 0; }
.datalist > li {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.datalist > li:first-child { border-top: 1px solid var(--line); }
@media (min-width: 480px) {
  /* 172px trägt auch das längste Label („Eintragung im Handelsregister"
     bricht dort sauber um) ohne in die Wertspalte zu laufen */
  .datalist > li { grid-template-columns: 172px 1fr; gap: 20px; align-items: baseline; }
}
.datalist dt, .datalist__key {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--ink-70);
  overflow-wrap: break-word;
}
.datalist dd, .datalist__val { margin: 0; }
.datalist a { text-decoration: none; }
.datalist a:hover { color: var(--gruen-dunkel); text-decoration: underline; text-underline-offset: 3px; }

/* Formular */
.form { display: grid; gap: var(--sp-3); }
.field { display: grid; gap: 7px; }
.field label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.field .req { color: var(--gruen-dunkel); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2343473F' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 44px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-70); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gruen-dunkel);
  box-shadow: 0 0 0 3px rgba(92, 119, 19, .14);
  outline: none;
}
.field input[aria-invalid='true'],
.field select[aria-invalid='true'],
.field textarea[aria-invalid='true'] { border-color: #B02A1E; }

.field__error {
  display: none;
  font-size: .875rem;
  line-height: 1.4;
  color: #8E2118;
}
.field__error::before { content: '✕  '; font-weight: 700; }
.field.has-error .field__error { display: block; }

.field--check {
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding-top: var(--sp-1);
}
.field--check input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--gruen-dunkel);
  flex: none;
}
.field--check label {
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-70);
  line-height: 1.55;
}
.field--check .field__error { grid-column: 1 / -1; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__row { display: grid; gap: var(--sp-3); }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }

.form__status {
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gruen);
  border-radius: var(--radius);
  background: var(--paper-alt);
  font-size: .9375rem;
  line-height: 1.55;
}
.form__status[data-state='error'] { border-left-color: #B02A1E; }
.form__status:empty { display: none; }

.form__hint { font-size: .875rem; color: var(--ink-70); }

/* Standortfläche */
.mapbox {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
  display: grid;
  place-items: center;
  overflow: hidden;
}
@media (min-width: 900px) { .mapbox { aspect-ratio: 4 / 3; } }

/* --------------------------------------------------------------------------
   19. Bild-Platzhalter (gestaltet, kein Layout-Shift)
   -------------------------------------------------------------------------- */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  background-color: var(--paper-alt);
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-70);
  overflow: hidden;
}
.ph--dark {
  background-color: var(--night-alt);
  background-image:
    linear-gradient(to right, var(--line-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-dark) 1px, transparent 1px);
  border-color: var(--line-dark);
  color: var(--paper-dim);
}
.ph__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}
.ph--dark .ph__label { background: var(--night); border-color: var(--line-dark); }
.ph__label::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--gruen);
  flex: none;
}
.ph--4x5 { aspect-ratio: 4 / 5; }
.ph--3x2 { aspect-ratio: 3 / 2; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--16x9 { aspect-ratio: 16 / 9; }

/* --------------------------------------------------------------------------
   20. CTA-Band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--night);
  color: var(--paper);
  padding-block: calc(var(--section) * .8);
}
.cta-band__inner { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: 1fr auto; gap: var(--sp-10); }
}
.cta-band h2 { max-width: 18ch; }
.cta-band__actions { display: grid; gap: var(--sp-3); justify-items: start; }
@media (min-width: 900px) { .cta-band__actions { justify-items: end; } }
.cta-band__tel {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--paper);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}
.cta-band__tel::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gruen);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.cta-band__tel:hover::after { transform: scaleX(1); }

/* Querverweise */
.crosslinks { display: grid; gap: 2px; }
@media (min-width: 768px) { .crosslinks { grid-template-columns: 1fr 1fr; } }
.crosslink {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--sp-6) var(--sp-5) var(--sp-6) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background .2s var(--ease), padding-left .22s var(--ease);
}
.crosslink:hover { background: var(--paper-alt); padding-left: var(--sp-3); }
.crosslink__k {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.crosslink__t {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + .9vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -.025em;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.crosslink .arrow { color: var(--gruen-dunkel); transition: transform .28s var(--ease); }
.crosslink:hover .arrow { transform: translateX(4px); }

/* Partnerlogos */
.partners {
  display: grid;
  gap: var(--sp-5) var(--sp-8);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: center;
  list-style: none;
}
.partners img {
  max-height: 46px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.partners li:hover img { filter: grayscale(0); opacity: 1; }

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--night);
  color: var(--paper);
  padding-top: var(--sp-12);
}
.footer__grid {
  display: grid;
  gap: var(--sp-8);
  padding-bottom: var(--sp-10);
}
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.35fr 1fr 1fr 1.05fr; gap: var(--sp-6); } }

.footer h2, .footer h3 {
  font-size: .8125rem;
  font-family: var(--font-text);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: var(--sp-3);
}
.footer__brand img { width: 176px; margin-bottom: var(--sp-3); }
.footer__claim {
  color: rgba(251, 251, 249, .82);
  font-size: .9688rem;
  max-width: 34ch;
}
.footer address { font-style: normal; color: rgba(251, 251, 249, .82); font-size: .9688rem; line-height: 1.75; }
.footer a { color: rgba(251, 251, 249, .88); text-decoration: none; }
.footer a:hover { color: var(--gruen); }
.footer__links { list-style: none; display: grid; gap: 2px; font-size: .9688rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 32px; }

.footer__badge img {
  width: 150px;
  background: var(--paper);
  padding: 10px 12px;
  border-radius: var(--radius);
}
.footer__badge figcaption {
  margin-top: 10px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--paper-dim);
  max-width: 26ch;
}
.footer__social {
  display: flex;
  gap: 10px;
  list-style: none;
  margin-top: var(--sp-4);
}
.footer__social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.footer__social a:hover { border-color: var(--gruen); background: rgba(149, 193, 31, .12); }
.footer__social svg { width: 19px; height: 19px; }

.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
  justify-items: center;
  text-align: center;
  font-size: .875rem;
  color: var(--paper-dim);
}
@media (min-width: 768px) {
  .footer__bottom {
    grid-template-columns: 1fr auto;
    justify-items: start;
    text-align: left;
    align-items: center;
  }
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; align-items: center; }
@media (min-width: 768px) { .footer__legal { justify-content: flex-start; } }
.footer__legal a { min-height: 32px; display: inline-flex; align-items: center; }

.wowobot { color: var(--paper-dim); }
.wowobot a { color: #22b8e0; font-weight: 500; }
.wowobot a:hover { color: #22b8e0; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   22. Hinweisblock (z. B. Datenschutz-Platzhalter)
   -------------------------------------------------------------------------- */
.notice {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gruen);
  border-radius: var(--radius);
  background: var(--paper-alt);
  padding: clamp(20px, 3vw, 32px);
}
.notice h2, .notice h3 { margin-bottom: 12px; }
.notice p { color: var(--ink-70); }
.notice p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   23. 404
   -------------------------------------------------------------------------- */
.err {
  min-height: 76svh;
  display: grid;
  align-content: center;
  padding-top: calc(var(--header-h) + var(--sp-10));
  padding-bottom: var(--sp-10);
}
.err__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 2rem + 12vw, 9rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .9;
  /* helles Markengrün erreicht auf Papier nur 2:1 — für Text zu wenig */
  color: var(--gruen-dunkel);
  margin-bottom: var(--sp-3);
}

/* --------------------------------------------------------------------------
   24. Utilities
   -------------------------------------------------------------------------- */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.stack-2 > * + * { margin-top: var(--sp-2); }
.stack-3 > * + * { margin-top: var(--sp-3); }
.stack-5 > * + * { margin-top: var(--sp-5); }
.stack-6 > * + * { margin-top: var(--sp-6); }
.stack-8 > * + * { margin-top: var(--sp-8); }
.mt-3 { margin-top: var(--sp-3); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mb-10 { margin-bottom: var(--sp-10); }
.m-0 { margin: 0; }
.mw-18ch { max-width: 18ch; }
.mw-20ch { max-width: 20ch; }
.fs-small { font-size: .9375rem; }
.c-ink { color: var(--ink); }
.list-plain { list-style: none; }
.text-dim { color: var(--ink-70); }
.on-night-dim { color: rgba(251, 251, 249, .84); }
.lede--on-dark { color: var(--paper); }
.crumbs--light { color: var(--ink-70); }
.rule { border-top: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* Textspalte auf Rechtsseiten */
.col-narrow { max-width: 820px; }

/* Sektion, die direkt unter dem festen Header beginnt */
.section--below-header { padding-top: calc(var(--header-h) + var(--sp-10)); }

/* Adresszeile mit Route-Button */
.addr-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   25. Scroll-Reveal — nur mit JS aktiv, einmalig
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Stagger rein über CSS — kein JS schreibt inline styles (strikte CSP) */
.js .reveal:nth-child(2) { transition-delay: 60ms; }
.js .reveal:nth-child(3) { transition-delay: 120ms; }
.js .reveal:nth-child(4) { transition-delay: 180ms; }
.js .reveal:nth-child(5) { transition-delay: 240ms; }
.js .reveal:nth-child(6) { transition-delay: 300ms; }
.js .reveal:nth-child(n+7) { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .mobilenav__list > li, .mobilenav__foot { opacity: 1; transform: none; }
  .refcard:hover img, .gallery__btn:hover img, .member:hover .member__media img { transform: none; }
}

/* --------------------------------------------------------------------------
   26. Touch-Ziele — auf Zeigegeräten ohne feine Auflösung mindestens 44px
   -------------------------------------------------------------------------- */
@media (pointer: coarse), (max-width: 1023px) {
  .brand { display: flex; align-items: center; min-height: 44px; }
  .tlink,
  .cta-band__tel,
  .crumbs a,
  .footer__legal a,
  .footer__links a,
  .wowobot a,
  .datalist a,
  .member__contact a,
  .footer address a,
  .mobilenav__addr a,
  .pillar__more {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .tlink { align-items: center; }
  /* Fließtext-Links bleiben inline — sie sind keine eigenständigen Ziele */
  .prose a:not(.btn):not(.tlink),
  .rte a:not(.btn):not(.tlink),
  .field--check label a { min-height: 0; display: inline; }
}

/* Druck */
@media print {
  .header, .mobilenav, .subnav, .film, .cta-band, .footer__social, .burger { display: none !important; }
  body { color: #000; background: #fff; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: .8em; }
}
