@charset "UTF-8";
/* ==========================================================================
   BOMA Objektservice, Backnang — styles.css
   Ein einziges Stylesheet für alle Seiten. Keine externen Requests.

   Struktur, Raster und Interaktionsmuster folgen dem SIW-Design-System.
   Die Farbwelt ist eigenständig: Lime/Oliv als Akzent, Anthrazit/Schiefer
   als Kontrastfläche, weißer Grund — abgeleitet von der BOMA-Visitenkarte.
   ========================================================================== */

/* --------------------------------------------------------------------------
   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
   Alle Werte gegen WCAG AA (4.5:1 für Text) nachgerechnet.
   -------------------------------------------------------------------------- */
:root {
  /* Markenfarben — exakt aus dem offiziellen Logo (BoMa_Logo_final.pdf,
     Illustrator 2020) übernommen. Die CMYK-Originalfarben ergeben ICC-
     verwaltet umgerechnet Lime #CEDC5E und Schiefergrau #4C5B60. */
  --lime: #CEDC5E;
  --lime-hell: #DAE964;   /* Hover  */
  --lime-aktiv: #BECA56;  /* :active */
  /* Das Marken-Lime erreicht auf Weiß nur 1.44:1 und ist deshalb
     ausschließlich Fläche, nie Text. Für Text auf hellem Grund dient diese
     abgedunkelte Fassung: 5.15:1 auf --paper, 4.70:1 auf --paper-alt. */
  --lime-tief: #6B7231;

  --ink: #1B1F22;         /* 16.59:1 auf --paper */
  --ink-70: #4F565C;      /*  7.45:1 auf --paper */
  --paper: #FFFFFF;
  --paper-alt: #F4F5F1;   /* sehr helles Grau */

  /* Kontrastfläche: das Schiefergrau des Logos. --night ist dieselbe Farbe
     um 26 % abgedunkelt, damit große Flächen genug Tiefe bekommen;
     --night-alt ist der Logo-Ton unverändert. */
  --night: #384347;       /* Weiß darauf: 10.18:1 · Lime darauf: 6.80:1 */
  --night-alt: #4C5B60;   /* Weiß darauf:  7.06:1 · Lime darauf: 4.72:1 */
  --paper-dim: #C9D0CE;   /*  6.50:1 auf --night, 4.51:1 auf --night-alt */

  --line: rgba(27, 31, 34, .13);
  --line-strong: rgba(27, 31, 34, .24);
  --line-dark: rgba(255, 255, 255, .18);

  /* 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;
  --sec-tight: 40px;    /* gestauchte Sektion, aufs 8px-Raster gelegt */
  --sec-half: 32px;
}

@media (min-width: 768px) {
  :root { --section: 120px; --gutter: 40px; --header-h: 84px; --sec-tight: 72px; --sec-half: 64px; }
}
@media (min-width: 1280px) {
  :root { --section: 160px; --gutter: 64px; --header-h: 92px; --sec-tight: 96px; --sec-half: 88px; }
}

/* --------------------------------------------------------------------------
   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; }

/* Das hidden-Attribut muss auch dann greifen, wenn eine Klassenregel weiter
   unten display setzt — Autorenregeln überstimmen sonst das display:none des
   Browsers, und per JavaScript ausgeblendete Elemente blieben sichtbar
   (betraf den Ladebutton unter den Galerien). */
[hidden] { display: none !important; }

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 — „Wasserschadensanierung“, „Estrichtrocknung“ —
     dürfen die Spalte nie sprengen */
  overflow-wrap: break-word;
}
/* Trennung nur dort, wo die Spalten wirklich schmal sind */
@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); line-height: 1.2; }
h4 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); letter-spacing: -.02em; line-height: 1.3; }
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(--lime); color: var(--ink); }

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

/* --------------------------------------------------------------------------
   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: var(--sec-tight); }
.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); }
.section--dark p { color: rgba(255, 255, 255, .86); }

.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(--lime);
}
.label--center { justify-content: center; }
/* Alle dunklen Kontexte müssen hier gelistet sein, sonst steht das Label
   dunkelgrau auf Anthrazit. */
.section--dark .label,
.chain .label,
.facts .label,
.cta-band .label,
.footer .label { color: var(--paper-dim); }
.hero .label, .pagehead .label { color: rgba(255, 255, 255, .94); }

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

.lead-quote {
  border-left: 3px solid var(--lime);
  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 Lime-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(--lime);
}
.section--dark .ticks li { border-color: var(--line-dark); }

/* Zweispaltige Variante für längere Aufzählungen. Die Breite des Containers
   entscheidet über den Umbruch, nicht die des Fensters — die Liste steht je
   nach Seite neben einem Bild oder in voller Breite. */
.ticks-host { container-type: inline-size; }

@container (min-width: 560px) {
  .ticks--two {
    /* .ticks selbst ist ein Blockelement — ohne display:grid bliebe
       grid-template-columns wirkungslos */
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(24px, 3vw, 48px);
  }
  .ticks--two li { max-width: none; border-top: 0; border-bottom: 1px solid var(--line); }
  .ticks--two li:nth-child(1),
  .ticks--two li:nth-child(2) { border-top: 1px solid var(--line); }
  .ticks--two li:last-child { border-bottom: 1px solid var(--line); }
}

/* Zielgruppen u. ä. — kurze Begriffe als Pillen */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips li {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-70);
}
.section--dark .chips li,
.chain .chips li { border-color: var(--line-dark); color: var(--paper-dim); }

/* --------------------------------------------------------------------------
   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(--lime);
  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);
}
@media (hover: hover) {
  .btn:hover { background: var(--lime-hell); }
}
.btn:active { background: var(--lime-aktiv); }

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

.btn--on-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, .36);
  color: var(--paper);
}
@media (hover: hover) {
  .btn--on-dark:hover { background: transparent; border-color: var(--paper); }
}

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

/* Textlink mit wachsendem Lime-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(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.tlink:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) {
  .tlink:hover::after { transform: scaleX(1); }
}
.tlink .arrow { transition: transform .28s var(--ease); display: inline-block; }
@media (hover: hover) {
  .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(--lime-tief);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
@media (hover: hover) {
  .prose a:hover, .rte a:hover { text-decoration-thickness: 2px; }
}
.section--dark .prose a:not(.btn):not(.tlink) { color: var(--lime); }

/* --------------------------------------------------------------------------
   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 die helle Navigation über dem Hero lesbar bleibt */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(16, 19, 21, .58), rgba(16, 19, 21, 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;
}

/* Wortmarke + offizielle Unterzeile.
   Im Header steht die Wortmarke ohne Unterzeile (logo-wortmarke.svg); die
   Unterzeile des vollständigen Lockups wäre bei Headergröße nur rund 2,5 px
   hoch. Sie kommt deshalb als echter Text darunter — scharf in jeder Größe,
   vorlesbar und in der Hausschrift. Footer und mobiles Menü nutzen dagegen
   das vollständige Lockup (logo-invers.svg), dort ist Platz dafür. */
.brand {
  flex: none;
  display: grid;
  gap: 6px;
  margin-right: auto;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: clamp(128px, 12vw, 164px);
  height: auto;
}
.brand__sub {
  font-family: var(--font-text);
  font-size: clamp(.5rem, .44rem + .2vw, .5625rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.header.is-solid .brand__sub,
.header--static .brand__sub { color: var(--ink-70); }

/* 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(--lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .24s var(--ease);
  }
  .nav__link:focus-visible::after { transform: scaleX(1); }
  @media (hover: hover) {
    .nav__link:hover::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: 232px;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: 0 12px 28px rgba(27, 31, 34, .12);
    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.is-open > .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  @media (hover: hover) {
    .nav__item:hover > .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);
  }
  @media (hover: hover) {
    .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(--lime);
  }
}

/* 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); }
@media (hover: hover) {
  .header__tel:hover { color: var(--lime); }
  .header.is-solid .header__tel:hover,
  .header--static .header__tel:hover { color: var(--lime-tief); }
}
@media (min-width: 1200px) { .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(--lime); }
.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(--lime); border-left-color: var(--lime); }
.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__list > li:nth-child(6) { transition-delay: .33s; }
.mobilenav.is-open .mobilenav__foot { transition-delay: .38s; }

.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 .mobilenav__foot a überschreiben — heller Text auf Lime ergäbe
     sonst nur rund 1.9: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;
}
.mobilenav__hours {
  color: var(--paper-dim);
  font-size: .875rem;
}

/* --------------------------------------------------------------------------
   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);
}
/* Das gesamte Bildmaterial liegt im Hochformat vor. Ein 21:9-Hero wie bei SIW
   würde daraus nur ein schmales Band herausschneiden. Die Höhe orientiert sich
   deshalb am Viewport statt an der Breite — der Zuschnitt bleibt dadurch auch
   auf großen Schirmen bei etwa 2,4:1 statt 2,9:1. Siehe OFFENE-PUNKTE.md. */
@media (min-width: 768px) {
  .hero {
    min-height: max(620px, 68svh);
    padding-bottom: var(--sp-12);
  }
}
@media (min-width: 1280px) {
  .hero { min-height: max(700px, 72svh); }
}
/* Flache Fenster (Smartphone im Querformat): eine feste Mindesthöhe ergäbe
   dort einen Hero über zwei Bildschirmlängen. */
@media (max-height: 560px) {
  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + var(--sp-2));
    padding-bottom: var(--sp-5);
  }
  .hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--sp-2); }
  .hero__text { font-size: 1rem; margin-bottom: var(--sp-2); }
  .hero__trust {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-top: var(--sp-3);
    padding-top: var(--sp-2);
  }
  .pagehead h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
/* Bildausschnitt je Aufnahme feinjustieren. Nötig, weil alle Quellen im
   Hochformat vorliegen und der Bildgegenstand nicht immer in der Mitte sitzt. */
.hero__media--top img,
.pagehead__media--top img { object-position: 50% 24%; }
.hero__media--bottom img,
.pagehead__media--bottom img { object-position: 50% 76%; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* neutraler dunkler Scrim von links, kein Farbverlauf */
  background:
    linear-gradient(90deg, rgba(14, 17, 18, .88) 0%, rgba(14, 17, 18, .72) 34%, rgba(14, 17, 18, .36) 62%, rgba(14, 17, 18, .14) 100%),
    linear-gradient(to top, rgba(14, 17, 18, .58) 0%, rgba(14, 17, 18, 0) 45%);
}
@media (max-width: 767px) {
  .hero__scrim {
    background:
      linear-gradient(to top, rgba(14, 17, 18, .91) 8%, rgba(14, 17, 18, .64) 46%, rgba(14, 17, 18, .40) 100%);
  }
}

.hero__inner { position: relative; max-width: 800px; }
.hero h1 { color: #fff; margin-bottom: var(--sp-3); }
.hero__claim {
  display: block;
  color: var(--lime);
}
.hero__text {
  font-size: clamp(1.0625rem, 1rem + .5vw, 1.3125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .94);
  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, .24);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .94);
}
.hero__trust li { display: flex; align-items: center; gap: 18px; }
/* Trennstriche erst, wenn die Punkte tatsächlich nebeneinander stehen */
@media (min-width: 1200px) {
  .hero__trust li:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 13px;
    background: rgba(255, 255, 255, .4);
  }
}
@media (max-width: 1199px) {
  .hero__trust { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Kurze Hochformate (iPhone SE u. ä.): Hero verdichten, damit auch die
   Trust-Zeile ohne Scrollen sichtbar ist. */
@media (min-height: 561px) and (max-height: 720px) and (max-width: 767px) {
  .hero {
    padding-top: calc(var(--header-h) + var(--sp-3));
    padding-bottom: var(--sp-4);
  }
  .hero .label { margin-bottom: var(--sp-2); }
  .hero h1 { font-size: clamp(1.9rem, 1.2rem + 3.6vw, 2.6rem); margin-bottom: var(--sp-2); }
  .hero__text { font-size: 1rem; line-height: 1.5; margin-bottom: var(--sp-3); }
  .hero__cta { gap: 12px; }
  .hero__cta .btn { min-height: 48px; padding-block: 12px; }
  .hero__trust {
    margin-top: var(--sp-3);
    padding-top: var(--sp-2);
    gap: 6px;
    font-size: .75rem;
  }
}

/* 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(460px, 54svh); padding-bottom: var(--sp-10); }
}
@media (min-width: 1280px) { .pagehead { min-height: max(520px, 58svh); } }
@media (max-height: 560px) {
  .pagehead {
    min-height: 0;
    padding-top: calc(var(--header-h) + var(--sp-5));
    padding-bottom: var(--sp-5);
  }
}
.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. */
  background:
    linear-gradient(90deg, rgba(14, 17, 18, .92) 0%, rgba(14, 17, 18, .76) 45%, rgba(14, 17, 18, .36) 100%),
    linear-gradient(to top, rgba(14, 17, 18, .58), rgba(14, 17, 18, .20) 55%, rgba(14, 17, 18, .44) 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, .94);
  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, .95);
  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; }
@media (hover: hover) {
  .crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
.crumbs--light { color: var(--ink-70); }

/* --------------------------------------------------------------------------
   10. Vertrauensband (Zahlen / Kernaussagen)
   -------------------------------------------------------------------------- */
.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(--lime);
  margin-bottom: 14px;
}
.facts__label {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
  max-width: 30ch;
}

/* --------------------------------------------------------------------------
   11. Leistungs-Spalten und Bausteinliste
   -------------------------------------------------------------------------- */
.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); }
}
@media (hover: hover) {
  .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);
}
@media (hover: hover) {
  .pillar:hover .pillar__num { color: var(--lime-tief); }
}
.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(--lime-tief);
}
.pillar__more .arrow { transition: transform .28s var(--ease); }
@media (hover: hover) {
  .pillar:hover .pillar__more .arrow { transform: translateX(4px); }
}

/* Leistungsbausteine als Sprungliste */
.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(--lime);
  transition: width .22s var(--ease);
}
.modules a::after {
  content: '→';
  position: absolute;
  right: 4px;
  opacity: 0;
  transform: translateX(-6px);
  color: var(--lime-tief);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
@media (hover: hover) {
  .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); }
}

/* --------------------------------------------------------------------------
   12. Prozesskette — das zentrale USP-Element
   Nummernkreis auf der Verbindungslinie, Titel darunter, Beschreibung
   aufklappbar. Das Auf- und Zuklappen laeuft ueber grid-template-rows
   0fr -> 1fr: animierbar, ohne Hoehenmessung und ohne Inline-Styles
   (die CSP verbietet style-Attribute).
   Mobil eine senkrechte Schiene, ab 1024px zwei Reihen a vier Schritten.
   -------------------------------------------------------------------------- */
.chain { background: var(--night); color: var(--paper); }
.chain h2 { color: var(--paper); }
.chain__intro { max-width: 62ch; color: rgba(255, 255, 255, .86); }

.chain__list {
  position: relative;
  list-style: none;
  display: grid;
  margin-top: var(--sp-8);
}
.chain__step { position: relative; padding: 0 0 var(--sp-4) 68px; }

/* Nummernkreis */
.chain__node {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 0 0 6px rgba(206, 220, 94, .13);
}

/* Senkrechte Schiene zwischen den Kreisen (mobil) */
.chain__list::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 26px;
  width: 2px;
  background: linear-gradient(to bottom, var(--lime), rgba(206, 220, 94, .2));
}

.chain__title { margin: 0; }
.chain__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.chain__toggle .nav__caret {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--lime);
  transition: transform .3s var(--ease);
}
.chain__toggle[aria-expanded='true'] .nav__caret { transform: rotate(180deg); }
@media (hover: hover) {
  .chain__toggle:hover { color: var(--lime); }
}

/* Aufklappen ohne Hoehenmessung */
.chain__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .34s var(--ease);
}
.chain__panel.is-open { grid-template-rows: 1fr; }
.chain__panel-inner { overflow: hidden; min-height: 0; }
.chain__panel.is-open .chain__panel-inner { padding-top: 6px; }

.chain__text {
  font-size: .9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .8);
  max-width: 40ch;
  margin: 0;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .chain__list { grid-template-columns: 1fr 1fr; column-gap: var(--sp-6); }
  .chain__list::before { display: none; }
}

@media (min-width: 1024px) {
  .chain__list {
    grid-template-columns: repeat(4, 1fr);
    column-gap: clamp(20px, 2.2vw, 36px);
    row-gap: var(--sp-6);
  }
  .chain__list::before { display: none; }
  .chain__step { padding: 66px 0 0 0; }
  /* Waagerechte Schiene auf Kreismitte bis zum naechsten Knoten */
  .chain__step::after {
    content: '';
    position: absolute;
    left: 60px;
    right: calc(-1 * clamp(20px, 2.2vw, 36px));
    top: 25px;
    height: 2px;
    background: var(--line-dark);
  }
  .chain__step:nth-child(4n)::after { display: none; }
  .chain__step:last-child::after { display: none; }
  .chain__text { max-width: none; }
}

.chain__foot {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: var(--sp-4);
  align-items: center;
}
@media (min-width: 900px) {
  .chain__foot { grid-template-columns: 1fr auto; gap: var(--sp-8); }
}
.chain__foot p { color: rgba(255, 255, 255, .86); margin: 0; max-width: 62ch; }

/* --------------------------------------------------------------------------
   13. Zwei-Spalten-Bausteine und Werte
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: var(--sp-6);
  /* oben ausrichten statt zentrieren — bei langen Textspalten rutschte das
     Bild sonst weit nach unten und stand neben dem Leerraum */
  align-items: start;
}
@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);
}

/* Zwei Aufnahmen in einer Medienspalte. Gebraucht fuer Vorher/Nachher, wenn
   die Kameraposition abweicht: Der Zieh-Regler (.compare) blendet zwei
   deckungsgleiche Bilder ineinander und scheidet damit aus. Nebeneinander
   gestellt bleibt der Vergleich ehrlich — jede Aufnahme ist vollstaendig zu
   sehen und traegt ihre eigene Bildunterschrift. */
.medienpaar { display: grid; gap: var(--sp-3); }
@media (min-width: 520px) { .medienpaar { grid-template-columns: 1fr 1fr; } }
.medienpaar figure { margin: 0; min-width: 0; }
.medienpaar figcaption {
  margin-top: 10px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--ink-70);
}

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

.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(--lime-tief);
  display: block;
  margin-bottom: var(--sp-3);
}
.value h3 { margin-bottom: 12px; }
.value p { color: var(--ink-70); font-size: .9688rem; }
/* Werteblock auf dunklem Grund */
.section--dark .values { border-color: var(--line-dark); }
.section--dark .value { border-color: var(--line-dark); }
.section--dark .value__num { color: var(--lime); }
.section--dark .value p { color: rgba(255, 255, 255, .82); }

/* --------------------------------------------------------------------------
   14. Vorher / Nachher — Zieh-Regler
   Der Regler ist ein echtes <input type="range">, das deckungsgleich über der
   Bildfläche liegt. Das erledigt Maus, Finger und Tastatur in einem: Ziehen,
   Tippen an eine Stelle und die Pfeiltasten funktionieren nativ, ohne eigene
   Ereignisbehandlung, und der Regler ist von Haus aus vorlesbar.

   Die Reglerstellung steht in --pos und wird von script.js über
   element.style.setProperty() gesetzt. Das ist mit der strikten CSP vereinbar:
   style-src 'self' blockiert das style-ATTRIBUT und <style>-Elemente, nicht die
   CSSOM-Schnittstelle (nachgemessen gegen den ausgelieferten Header).

   Ohne JavaScript stehen beide Aufnahmen vollständig untereinander.
   -------------------------------------------------------------------------- */
.compare { margin: 0; }
.compare__stage {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-alt);
  /* auf Touch nicht die Seite mitscrollen, während waagerecht gezogen wird */
  touch-action: pan-y;
}
.compare__layer { position: absolute; inset: 0; }
.compare__layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Die Vorher-Aufnahme liegt oben und wird von rechts beschnitten. clip-path
   statt Breitenbegrenzung: so bleibt das Bild unverzerrt, egal wo der Regler
   steht. */
.compare__layer--vorher { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

/* Trennkante mit Griff */
.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--lime);
  z-index: 2;
  pointer-events: none;
}
.compare__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(14, 17, 18, .35);
}
.compare__grip svg { width: 20px; height: 12px; }
/* Rückmeldung, solange gezogen wird */
.compare.is-greifend .compare__grip { transform: translate(-50%, -50%) scale(1.08); }
.compare__grip { transition: transform .16s var(--ease); }

/* Beschriftungen links und rechts */
.compare__tag {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 7px 13px;
  border-radius: 2px;
  background: rgba(14, 17, 18, .82);
  color: #fff;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity .2s var(--ease);
}
.compare__tag--vorher { left: 12px; }
.compare__tag--nachher { right: 12px; }

/* Der Regler selbst — unsichtbar, aber vollflächig bedienbar.
   Der Schieber ist 1px breit, damit Wert 0 und 100 exakt auf die Bildkanten
   fallen; sichtbar ist stattdessen .compare__divider. */
.compare__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: ew-resize;
}
.compare__range::-webkit-slider-runnable-track { height: 100%; background: transparent; border: 0; }
.compare__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1px;
  height: 100%;
  background: transparent;
  border: 0;
}
.compare__range::-moz-range-track { height: 100%; background: transparent; border: 0; }
.compare__range::-moz-range-thumb { width: 1px; height: 100%; background: transparent; border: 0; border-radius: 0; }
.compare__range:focus { outline: none; }
.compare__range:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.compare__caption {
  margin-top: var(--sp-2);
  font-size: .875rem;
  color: var(--ink-70);
}
.compare__hinweis {
  display: block;
  margin-top: 4px;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-70);
}
/* Ohne aktives Skript ist der Hinweis „ziehen" irreführend */
.compare:not(.is-ready) .compare__hinweis { display: none; }

@media (prefers-reduced-motion: reduce) {
  .compare__grip { transition: none; }
}
/* Zwei Vergleiche nebeneinander; ab 640px zweispaltig */
.compare-pair { display: grid; gap: 12px; }
@media (min-width: 640px) { .compare-pair { grid-template-columns: 1fr 1fr; gap: 16px; } }
.compare-pair figure { margin: 0; }
.compare-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.compare-pair figcaption {
  margin-top: 10px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-70);
}

/* --------------------------------------------------------------------------
   15. Referenz-Kacheln (große Bildflächen)
   -------------------------------------------------------------------------- */
.refsplit { display: grid; gap: 2px; }
@media (min-width: 768px) { .refsplit { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .refsplit--three { grid-template-columns: repeat(3, 1fr); } }

.refcard {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--night);
  /* Bezugsgröße für die Überschrift: die Kachel selbst. An der Fensterbreite
     bemessen stand die Schrift im Dreispalter schon am Maximum, während die
     Kachel noch schmal war — „Hausmeisterservice" lief dann heraus. */
  container-type: inline-size;
}
@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);
}
@media (hover: hover) {
  .refcard:hover img { transform: scale(1.03); }
}
.refcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 17, 18, .84) 0%, rgba(14, 17, 18, .32) 46%, rgba(14, 17, 18, .12) 100%);
}
.refcard__body {
  position: relative;
  z-index: 1;
  /* ebenfalls kachelrelativ: an der Fensterbreite bemessen fraß die Polsterung
     im Dreispalter fast 30 % der schmalen Kachel und ließ dem Titel zu wenig */
  padding: clamp(20px, 7cqi, 48px);
  width: 100%;
}
.refcard__title {
  font-family: var(--font-display);
  /* cqi = 1 % der Kachelbreite. 8.6cqi ist nachgemessen: „Hausmeisterservice"
     ist 9,03 px breit je 1 px Schriftgröße, das engste Textfeld misst 291 px —
     der Titel bleibt damit auf jeder Breite einzeilig. Die vw-Zeile davor
     greift, wenn ein Browser keine Container-Queries beherrscht. */
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2.5rem);
  font-size: clamp(1.25rem, 8.6cqi, 2.5rem);
  font-weight: 600;
  letter-spacing: -.03em;
  display: inline-block;
  padding-bottom: 10px;
  position: relative;
  /* Letzte Rückfallebene, falls später ein längerer Titel dazukommt: lieber
     umbrechen als abschneiden. Die Trennstellen stehen als &shy; im Markup,
     damit deutsche Komposita richtig brechen — hyphens:auto trennte
     „Hausmeisterser-vice". */
  overflow-wrap: break-word;
}
.refcard__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--ease);
}
@media (hover: hover) {
  .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, .9);
}

/* --------------------------------------------------------------------------
   16. 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. Der Zuschnitt auf 4:3 passiert beim
   Export, 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);
}
@media (hover: hover) {
  .gallery__btn:hover img { transform: scale(1.03); }
}
.gallery__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(14, 17, 18, 0);
  transition: background .3s var(--ease);
}
@media (hover: hover) {
  .gallery__btn:hover::after { background: rgba(14, 17, 18, .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: #171C1E;
  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, .85); }
.lightbox__stage { position: relative; min-height: 0; overflow: hidden; }
/* Absolut positioniert mit object-fit: contain — dadurch passt sich jedes
   Hoch- und Querformat sicher ein. */
.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, .8);
  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, .3);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
@media (hover: hover) {
  .lb-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .62); }
}
.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; }
}

/* Filterleiste über der Galerie */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: var(--sp-5);
}
.filters a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-70);
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
@media (hover: hover) {
  .filters a:hover { border-color: var(--ink); color: var(--ink); }
}
.filters a[aria-current='true'] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   17. 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); } }

.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;
}
.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;
}
.member__contact a {
  text-decoration: none;
  color: var(--ink-70);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
@media (hover: hover) {
  .member__contact a:hover { color: var(--lime-tief); text-decoration: underline; text-underline-offset: 3px; }
}

/* --------------------------------------------------------------------------
   18. Leistungsabschnitte
   -------------------------------------------------------------------------- */
.svc { padding-block: var(--section); border-top: 1px solid var(--line); }
/* Der erste Abschnitt schließt direkt an das Titelbild an — dort wirkte der
   volle Sektionsabstand wie ein Loch zwischen Bild und Inhalt. */
.svc:first-of-type { border-top: 0; padding-top: var(--sec-half); }
.svc__num {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--lime-tief);
  display: block;
  margin-bottom: var(--sp-2);
}
/* Aufgabenliste über die volle Sektionsbreite, unter Bild und Text */
.svc__list { margin-top: var(--sp-8); }
@media (max-width: 767px) { .svc__list { margin-top: var(--sp-5); } }

/* „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(--lime-tief);
  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); }

/* --------------------------------------------------------------------------
   19. 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 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; }
@media (hover: hover) {
  .datalist a:hover { color: var(--lime-tief); text-decoration: underline; text-underline-offset: 3px; }
}
.section--dark .datalist > li { border-color: var(--line-dark); }
.section--dark .datalist dt, .section--dark .datalist__key { color: var(--paper-dim); }

/* 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(--lime-tief); }

.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='%234F565C' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 44px;
}
@media (hover: hover) {
  .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(--lime-tief);
  box-shadow: 0 0 0 3px rgba(107, 114, 49, .16);
  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(--lime-tief);
  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(--lime);
  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;
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.mapbox picture, .mapbox img { display: block; width: 100%; height: 100%; }
.mapbox img { object-fit: cover; }

/* --------------------------------------------------------------------------
   20. Bild-Platzhalter (gestaltet, kein Layout-Shift)
   Für Leistungen, zu denen noch kein Bildmaterial vorliegt.
   -------------------------------------------------------------------------- */
.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(--lime);
  flex: none;
}
/* Auf der hellgrauen Sektionsfläche würde der Platzhalter sonst mit dem
   Hintergrund verschmelzen — dort tauschen Fläche und Beschriftung. */
.section--alt .ph { background-color: var(--paper); }
.section--alt .ph__label { background: var(--paper-alt); }

.ph--4x5 { aspect-ratio: 4 / 5; }
.ph--3x2 { aspect-ratio: 3 / 2; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--16x9 { aspect-ratio: 16 / 9; }

/* --------------------------------------------------------------------------
   21. CTA-Band und Querverweise
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--night);
  color: var(--paper);
  /* CTA-Band und Footer sind beide dunkel und stoßen aneinander — großzügige
     Polsterung ließe daraus einen sehr schweren Block am Seitenende werden. */
  padding-block: var(--sec-half);
}
.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: 20ch; color: var(--paper); }
.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(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
@media (hover: hover) {
  .cta-band__tel:hover::after { transform: scaleX(1); }
}

.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);
}
@media (hover: hover) {
  .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(--lime-tief); transition: transform .28s var(--ease); }
@media (hover: hover) {
  .crosslink:hover .arrow { transform: translateX(4px); }
}

/* --------------------------------------------------------------------------
   22. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--night);
  color: var(--paper);
  padding-top: var(--sp-8);
}
.footer__grid {
  display: grid;
  gap: var(--sp-6);
  padding-bottom: var(--sp-8);
}
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1.1fr .9fr 1.1fr; 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);
}
/* Im Footer steht das vollständige Lockup — die Unterzeile ist dort Teil
   der Grafik und braucht keinen zusätzlichen HTML-Text. */
.footer__brand img { width: clamp(196px, 22vw, 232px); }
.footer address { font-style: normal; color: rgba(255, 255, 255, .86); font-size: .875rem; line-height: 1.65; }
.footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
@media (hover: hover) {
  .footer a:hover { color: var(--lime); }
}
.footer__links { list-style: none; display: grid; gap: 0; font-size: .875rem; }
.footer__links a { display: inline-flex; align-items: center; min-height: 28px; }

.footer__hours { list-style: none; font-size: .875rem; color: rgba(255, 255, 255, .86); display: grid; gap: 4px; }
.footer__hours span { color: var(--paper-dim); }

.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; }
@media (hover: hover) {
  .wowobot a:hover { color: #22b8e0; text-decoration: underline; text-underline-offset: 3px; }
}

/* --------------------------------------------------------------------------
   23. Hinweisblock (z. B. Rechtstext-Platzhalter)
   -------------------------------------------------------------------------- */
.notice {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--lime);
  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; }

/* --------------------------------------------------------------------------
   24. 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;
  /* das helle Lime erreicht auf Papier nur 1.78:1 — für Text zu wenig */
  color: var(--lime-tief);
  margin-bottom: var(--sp-3);
}

/* --------------------------------------------------------------------------
   25. 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-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mb-3 { margin-bottom: var(--sp-3); }
.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(255, 255, 255, .86); }
.rule { border-top: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.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)); }

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

/* --------------------------------------------------------------------------
   26. 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 { transform: none; }
}

/* --------------------------------------------------------------------------
   27. Mobile Dichte
   Auf kleinen Displays summieren sich die großzügigen Desktop-Abstände zu
   sehr langen Seiten. Der Rhythmus bleibt erhalten, wird aber gestaucht.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root { --section: 56px; }

  .duo { gap: var(--sp-5); }
  .duo.mb-10 { margin-bottom: var(--sp-6); }
  .duo.mb-8 { margin-bottom: var(--sp-5); }
  .label { margin-bottom: var(--sp-2); }

  .pillar { padding-block: var(--sp-4); gap: 6px; }
  .pillar__more { padding-top: var(--sp-2); }
  .value { padding-block: var(--sp-4); }
  .value__num { margin-bottom: var(--sp-2); }
  .value h3 { margin-bottom: 8px; }

  .modules a { min-height: 52px; padding-block: 12px; }

  .facts { padding-block: var(--sp-8); }
  .facts__grid { gap: var(--sp-5); }
  .facts__num { margin-bottom: 8px; }

  /* Prozesskette */
  .chain__list { margin-top: var(--sp-5); }
  .chain__step { padding-left: 62px; padding-bottom: var(--sp-2); }
  .chain__node { width: 46px; height: 46px; font-size: .9375rem; }
  .chain__list::before { left: 22px; top: 46px; bottom: 23px; }
  .chain__toggle { min-height: 46px; }
  .chain__foot { margin-top: var(--sp-5); padding-top: var(--sp-3); }

  .crosslink { padding-block: var(--sp-4); }
  .cta-band { padding-block: var(--sp-8); }
  .cta-band__inner { gap: var(--sp-4); }

  .contact-grid { gap: var(--sp-6); }
  .datalist > li { padding-block: 12px; }

  .team { gap: var(--sp-5); }

  .mt-10 { margin-top: var(--sp-6); }
  .mt-8 { margin-top: var(--sp-5); }

  /* Footer — vier gestapelte Spalten wären der längste Block überhaupt.
     Einspaltig, aber die Linkliste selbst zweispaltig: die Adresse braucht
     die volle Breite (Telefonnummern dürfen nicht umbrechen), kurze Links
     passen bequem nebeneinander. */
  .footer { padding-top: var(--sp-8); }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    padding-bottom: var(--sp-6);
  }
  .footer__links { grid-template-columns: 1fr 1fr; column-gap: var(--sp-3); }
  .footer address { white-space: normal; line-height: 1.6; }
  .footer address a { white-space: nowrap; }
  .footer__brand { grid-column: 1 / -1; }
  /* 208px ergeben eine Unterzeile von rund 10px — auch mobil lesbar */
  .footer__brand img { width: 208px; }
  .footer h2, .footer h3 { margin-bottom: var(--sp-2); }
  .footer__links a { min-height: 36px; }

  /* Datenlisten zweispaltig — gestapelt brauchte jede Zeile 90px */
  .datalist > li {
    grid-template-columns: 104px 1fr;
    gap: 14px;
    align-items: baseline;
  }
  .datalist dt, .datalist__key { font-size: .6875rem; letter-spacing: .08em; }
}

/* --------------------------------------------------------------------------
   28. Touch-Ziele — auf Zeigegeräten ohne feine Auflösung mindestens 44px
   -------------------------------------------------------------------------- */
@media (pointer: coarse), (max-width: 1023px) {
  .brand { min-height: 44px; align-content: center; }
  .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; }
}

/* --------------------------------------------------------------------------
   29. Tap-Feedback — Ersatz für die auf Touch gekapselten Hover-Zustände.
   Nur transform/opacity; die kurze transition-Angabe übersteuert während
   des Drückens die langsamen Reveal-Transitionen der Karten.
   -------------------------------------------------------------------------- */
@media (hover: none) {
  .pillar:active,
  .crosslink:active,
  .refcard:active,
  .gallery__btn:active,
  .modules a:active,
  .footer__links a:active,
  .mobilenav__link:active,
  .mobilenav__sub a:active,
  .tlink:active,
  .datalist a:active,
  .filters a:active,
  .member__contact a:active {
    opacity: .55;
    transition: opacity .08s var(--ease);
  }
  .btn:active,
  .lb-btn:active,
  .burger:active,
  .clamped__toggle:active,
  .mobilenav__toggle:active {
    transform: scale(.96);
    transition: transform .08s var(--ease);
  }
}

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