/* ============================================================================
   SCHAAF GABELSTAPLER · main.css
   Design-System „Schwerlast-Plakat" (design/DESIGN-SYSTEM.md)
   Struktur: 1 Tokens · 2 Fonts · 3 Reset/Base · 4 Typografie · 5 Layout
             6 Header/Nav · 7 Footer · 8 Bausteine · 9 Sektions-Patterns
             10 Formulare · 11 Utilities · 12 Motion/Reduced · 13 Print
   ========================================================================== */

/* 1 ─── TOKENS ───────────────────────────────────────────────────────────── */
:root {
  --rot: #e7302a;
  --rot-tief: #c2241f;
  --rot-dunkel: #9e1b17;
  --kohle: #16171a;
  --stahl: #23252a;
  --schiefer: #3a3d43;
  --asphalt: #5c5f64;
  --nebel: #9a9da3;
  --beton: #f2f1ee;
  --beton-hell: #faf9f8;
  --weiss: #ffffff;
  --linie: #e2e0dc;
  --linie-dunkel: #2c2e33;
  --scrim: linear-gradient(180deg, rgba(22,23,26,0) 0%, rgba(22,23,26,.72) 78%);

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-text: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --fs-display-xl: clamp(3.25rem, 9vw, 8.5rem);
  --fs-display-l: clamp(2.5rem, 6vw, 5.5rem);
  --fs-display-m: clamp(1.9rem, 3.6vw, 3.25rem);
  --fs-display-s: clamp(1.55rem, 2.6vw, 2.25rem);
  --fs-h3: clamp(1.3rem, 1.6vw, 1.6rem);
  --fs-h4: 1.125rem;
  --fs-body: 1.0625rem;
  --fs-klein: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-riesenzahl: clamp(4.5rem, 15vw, 14rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --sektion-y: clamp(4rem, 9vw, 8.5rem);
  --sektion-y-knapp: clamp(2.5rem, 6vw, 5rem);

  --bahn: 75rem;          /* 1200px Standardbahn */
  --bahn-breit: 90rem;    /* 1440px */
  --mass-lesetext: 42rem; /* ~65 Zeichen */
  --rand: clamp(1.25rem, 4vw, 2.5rem);

  --versatz: 10px;        /* Signatur-Versatzblock */
  --ease: cubic-bezier(.25,.6,.3,1);
  --dauer: .25s;
  --header-h: 76px;
}

/* 2 ─── FONTS (lokal, OFL; Anhang A) ─────────────────────────────────────── */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/anton-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/anton-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 3 ─── RESET / BASE ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: 430;
  line-height: 1.7;
  color: var(--kohle);
  background: var(--beton);
  overflow-x: clip; /* Layering ohne horizontalen Body-Scroll (Leitplanke 7.2/6) */
}
img, picture, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
::selection { background: var(--rot); color: var(--weiss); }
.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--kohle); color: var(--weiss);
  padding: var(--s-3) var(--s-5); font-weight: 700; text-decoration: none;
}
.skiplink:focus-visible { left: 0; }

/* 4 ─── TYPOGRAFIE ──────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; overflow-wrap: break-word; }
.display-xl, .display-l, .display-m, .display-s, .riesenzahl {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .96;
  letter-spacing: .004em;
  text-transform: uppercase;
}
.display-xl { font-size: var(--fs-display-xl); }
.display-l  { font-size: var(--fs-display-l); }
.display-m  { font-size: var(--fs-display-m); }
.display-s  { font-size: var(--fs-display-s); }
.riesenzahl { font-size: var(--fs-riesenzahl); line-height: .9; }
.display-outline {
  color: transparent;
  -webkit-text-stroke: 2px currentColor;
}
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }
p, li { max-width: var(--mass-lesetext); }
.lesetext > * + * { margin-top: var(--s-4); }
.lesetext h2, .lesetext h3 { margin-top: var(--s-7); }
strong { font-weight: 700; }
small, .klein { font-size: var(--fs-klein); }

.label {
  font-size: var(--fs-label);
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--asphalt);
}
.label--hell { color: var(--nebel); }
.kennziffer {
  display: inline-flex; align-items: center; gap: var(--s-3);
}
.kennziffer::before {
  content: ""; width: 22px; height: 3px; background: var(--rot); flex: none;
}
.text-link {
  font-weight: 700; color: var(--kohle);
  text-decoration: underline; text-decoration-color: var(--rot);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.text-link:hover { color: var(--rot-tief); }
.zahl { font-variant-numeric: tabular-nums lining-nums; }

/* 5 ─── LAYOUT-PRIMITIVE ─────────────────────────────────────────────────── */
.bahn { width: min(var(--bahn), 100% - 2 * var(--rand)); margin-inline: auto; }
.bahn--breit { width: min(var(--bahn-breit), 100% - 2 * var(--rand)); margin-inline: auto; }
.bahn--lese { width: min(var(--mass-lesetext), 100% - 2 * var(--rand)); margin-inline: auto; }
.sektion { padding-block: var(--sektion-y); position: relative; }
.sektion--knapp { padding-block: var(--sektion-y-knapp); }
.sektion--kohle { background: var(--kohle); color: var(--weiss); }
.sektion--kohle .label { color: var(--nebel); }
.sektion--kohle .text-link { color: var(--weiss); }
.sektion--stahl { background: var(--stahl); color: var(--weiss); }
.sektion--hell { background: var(--beton-hell); }
.sektion--weiss { background: var(--weiss); }
.sektion--rot { background: var(--rot-tief); color: var(--weiss); } /* rot-tief statt rot: AA-Kontrast für Fließtext */
.sektion--rot .kurzgesagt { background: rgba(0,0,0,.16); }
.sektion-kopf { margin-bottom: clamp(2rem, 5vw, 4rem); }
.sektion-kopf .label { display: block; margin-bottom: var(--s-4); }
.sektion-kopf--split {
  display: flex; flex-wrap: wrap; gap: var(--s-5);
  align-items: flex-end; justify-content: space-between;
}
.spalten { display: grid; gap: clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 800px) {
  .spalten--2 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .spalten--2-1 { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
  .spalten--1-2 { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
  .spalten--5-7 { grid-template-columns: minmax(0,5fr) minmax(0,7fr); }
  .spalten--7-5 { grid-template-columns: minmax(0,7fr) minmax(0,5fr); }
}
.mitte { text-align: center; }
.mitte p, .mitte li { margin-inline: auto; }

/* 6 ─── KNÖPFE (Header/Nav des alten Systems ersetzt durch neu-basis.css) ── */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: .7rem 1.5rem;
  font-weight: 700; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  background: var(--rot); color: var(--weiss);
  transition: background var(--dauer) var(--ease), translate .15s var(--ease), color var(--dauer);
}
.knopf:hover { background: var(--rot-tief); translate: 0 -2px; }
.knopf:active { translate: 0 0; }
.knopf--kontur {
  background: transparent; color: var(--kohle); border-color: currentColor;
}
.knopf--kontur:hover { background: var(--kohle); color: var(--weiss); border-color: var(--kohle); }
.sektion--kohle .knopf--kontur, .header .knopf--kontur { color: var(--weiss); }
.sektion--kohle .knopf--kontur:hover, .header .knopf--kontur:hover { background: var(--weiss); color: var(--kohle); border-color: var(--weiss); }
.knopf--gross { min-height: 56px; padding: .9rem 2rem; font-size: 1.02rem; }

/* 8 ─── BAUSTEINE ────────────────────────────────────────────────────────── */

/* Kurz gesagt (Quick Answer, GEO) */
.kurzgesagt {
  background: var(--beton-hell); border-left: 4px solid var(--rot);
  padding: var(--s-5) var(--s-6);
  max-width: 52rem;
}
.sektion--kohle .kurzgesagt { background: var(--stahl); }
.kurzgesagt .label { display: block; margin-bottom: var(--s-2); }
.kurzgesagt p { font-size: 1.15rem; line-height: 1.65; font-weight: 500; max-width: none; }

/* Versatz-Block (Signatur) */
.versatz { position: relative; }
.versatz::before {
  content: ""; position: absolute; inset: 0;
  translate: var(--versatz) var(--versatz);
  background: var(--rot); z-index: -1;
}
.versatz--kohle::before { background: var(--kohle); }

/* Bemaßungs-Linie */
.mass {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-label); font-weight: 650; letter-spacing: .09em;
  text-transform: uppercase; color: var(--asphalt); /* nowrap entfernt: sprengte mobil den Layout-Viewport */
}
.mass::before, .mass::after {
  content: ""; height: 1px; background: currentColor; flex: 1; min-width: 28px;
  box-shadow: 0 -4px 0 -0.5px currentColor inset; /* Endstriche via Pseudo unten */
}
.mass::before { border-left: 1px solid currentColor; height: 9px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; box-shadow: none; border-right: 0; }
.mass::after { border-right: 1px solid currentColor; height: 9px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; box-shadow: none; }
.sektion--kohle .mass { color: var(--nebel); }
.mass--rot { color: var(--rot); }

/* Breadcrumb */
.breadcrumb { padding-top: var(--s-4); font-size: .9rem; color: var(--asphalt); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--nebel); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--rot-tief); text-decoration: underline; }
.sektion--kohle .breadcrumb, .hero .breadcrumb { color: var(--nebel); }

/* Portal-Baustein (Systemwechsel erkennbar, 0.4) */
.portal {
  background: var(--kohle); color: var(--weiss);
  padding: var(--s-6); display: grid; gap: var(--s-4);
  border-top: 4px solid var(--rot);
}
@media (min-width: 800px) { .portal { grid-template-columns: 1fr auto; align-items: center; } }
.portal .label { color: var(--nebel); display: block; margin-bottom: var(--s-2); }
.portal p { color: var(--nebel); font-size: .97rem; max-width: 46rem; }
.portal strong { color: var(--weiss); }
.portal__hinweis { font-size: .85rem; color: var(--nebel); }

/* Ansprechpartner-Karte (P20) */
.person-reihe { display: grid; gap: var(--s-5); grid-template-columns: repeat(2, minmax(0,1fr)); } /* auch mobil 2-spaltig: Portraits nie full width */
@media (max-width: 639.98px) {
  .person-reihe { gap: var(--s-3); }
  .person__daten { padding: var(--s-3); }
  .person__name { font-size: .95rem; }
  .person__funktion, .person__tel { font-size: .85rem; }
}
@media (min-width: 1000px) { .person-reihe--3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .person-reihe--4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.person {
  background: var(--weiss); border: 1px solid var(--linie);
  display: flex; flex-direction: column;
}
.sektion--kohle .person { background: var(--stahl); border-color: var(--linie-dunkel); }
.person__bild { aspect-ratio: 4 / 5; overflow: hidden; background: var(--beton); }
.person__bild img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.person__bild--leer {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 3rem; color: var(--nebel);
  background: repeating-linear-gradient(45deg, var(--beton), var(--beton) 12px, var(--beton-hell) 12px, var(--beton-hell) 24px);
}
.person__daten { padding: var(--s-4) var(--s-5) var(--s-5); display: grid; gap: 2px; }
.person__daten .label { color: var(--rot); }
.person__name { font-size: 1.15rem; font-weight: 700; }
.person__funktion { color: var(--asphalt); font-size: .95rem; }
.sektion--kohle .person__funktion { color: var(--nebel); }
.person__tel { margin-top: var(--s-3); font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.person__tel:hover { color: var(--rot-tief); }

/* Standort-Duo (P21) */
.duo { display: grid; gap: var(--s-5); }
@media (min-width: 800px) { .duo { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.duo__karte {
  position: relative; min-height: 380px; display: flex; align-items: flex-end;
  color: var(--weiss); text-decoration: none; overflow: hidden; background: var(--stahl);
}
.duo__karte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo__karte::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.duo__inhalt { position: relative; z-index: 1; padding: var(--s-6); display: grid; gap: var(--s-2); width: 100%; }
.duo__inhalt .display-s { color: var(--weiss); }
.duo__inhalt address { font-style: normal; font-size: .97rem; color: #d8d9dc; }
.duo__inhalt .tel { font-size: 1.35rem; font-weight: 700; color: var(--weiss); text-decoration: none; }
.duo__inhalt .tel:hover { color: var(--rot); }
.duo__region { position: absolute; top: var(--s-5); left: var(--s-6); z-index: 1; }
.duo__region .label { color: var(--weiss); background: var(--rot); padding: .35rem .7rem; }

/* Zahlenband (P16) */
.zahlenband { display: grid; gap: var(--s-6); }
@media (min-width: 640px) { .zahlenband { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .zahlenband--4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.zahlenband__wert {
  font-family: var(--font-display); font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: .95; color: var(--rot);
}
.zahlenband__wert small { font-size: .45em; }
.zahlenband__kontext { margin-top: var(--s-2); color: var(--asphalt); font-size: .97rem; max-width: 22rem; }
.sektion--kohle .zahlenband__kontext { color: var(--nebel); }

/* Marquee (P11) */
.marquee { overflow: hidden; border-block: 1px solid var(--linie); padding-block: var(--s-4); }
.sektion--kohle .marquee { border-color: var(--linie-dunkel); }
.marquee__spur { display: flex; gap: var(--s-8); width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__spur, .marquee.ist-pausiert .marquee__spur { animation-play-state: paused; }
.marquee__eintrag {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-transform: uppercase; white-space: nowrap; color: var(--asphalt);
  display: inline-flex; align-items: center; gap: var(--s-8);
}
.marquee__eintrag::after { content: ""; width: 10px; height: 10px; background: var(--rot); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__stopp { border: 1px solid var(--linie); background: none; padding: .3rem .6rem; font-size: .8rem; cursor: pointer; margin-top: var(--s-2); }

/* Tabellen / Matrix (P22) */
.tabelle-rahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--linie); background: var(--weiss); }
.tabelle-rahmen::after { content: ""; }
table.matrix { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .97rem; }
table.matrix caption {
  text-align: left; padding: var(--s-4) var(--s-5);
  font-weight: 700; font-size: 1.05rem; background: var(--weiss);
}
table.matrix th, table.matrix td { padding: .8rem var(--s-5); text-align: left; border-top: 1px solid var(--linie); vertical-align: top; }
table.matrix thead th {
  background: var(--kohle); color: var(--weiss); font-size: var(--fs-label);
  letter-spacing: .07em; text-transform: uppercase; border-top: 0; white-space: nowrap;
}
table.matrix tbody tr:nth-child(even) { background: var(--beton-hell); }
table.matrix td.zahl, table.matrix th.zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabelle-hinweis { font-size: .85rem; color: var(--asphalt); margin-top: var(--s-2); }

/* Spec-Karte (P23) */
.spec {
  background: var(--weiss); border: 1px solid var(--linie); padding: var(--s-6);
  display: grid; gap: var(--s-4);
}
.sektion--kohle .spec { background: var(--stahl); border-color: var(--linie-dunkel); }
.spec__werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s-4); border-top: 1px solid var(--linie); padding-top: var(--s-4); }
.spec__werte .label { hyphens: auto; overflow-wrap: anywhere; } /* lange Wörter (z. B. Höchstgeschwindigkeit) in schmalen Spalten umbrechen */
.sektion--kohle .spec__werte { border-color: var(--linie-dunkel); }
.spec__wert .zahl { font-family: var(--font-display); font-size: 1.9rem; display: block; }
.spec__wert .label { font-size: .72rem; }

/* Akkordeon / FAQ (P19) */
.akkordeon { border-top: 1px solid var(--linie); }
.sektion--kohle .akkordeon { border-color: var(--linie-dunkel); }
.akkordeon details { border-bottom: 1px solid var(--linie); }
.sektion--kohle .akkordeon details { border-color: var(--linie-dunkel); }
.akkordeon summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: var(--s-4);
  padding: var(--s-5) 0; font-weight: 700; font-size: 1.1rem;
}
.akkordeon summary::-webkit-details-marker { display: none; }
.akkordeon summary::before {
  content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--rot);
  line-height: 1; flex: none; width: 1.2em; transition: rotate var(--dauer) var(--ease);
}
.akkordeon details[open] summary::before { rotate: 45deg; }
.akkordeon__inhalt { padding: 0 0 var(--s-5) calc(1.2em + var(--s-4)); }
.akkordeon__inhalt > * + * { margin-top: var(--s-3); }

/* Tabs (P18) */
.tabs__leiste { display: flex; flex-wrap: wrap; gap: var(--s-2); border-bottom: 2px solid var(--linie); }
.sektion--kohle .tabs__leiste { border-color: var(--linie-dunkel); }
.tabs__tab {
  background: none; border: 0; cursor: pointer; padding: var(--s-3) var(--s-5);
  font-weight: 700; font-size: 1rem; color: var(--asphalt);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tabs__tab[aria-selected="true"] { color: inherit; border-color: var(--rot); }
.tabs__panel { padding-top: var(--s-6); }
.js .tabs__panel[hidden] { display: none; }
/* [hidden] muss auch dann greifen, wenn eine Klasse display setzt (.person hat
   display:flex, Filterergebnisse blieben sonst sichtbar). Browser-Vorgabe ist
   nur display:none ohne Gewicht. */
[hidden] { display: none !important; }
.no-js .tabs__leiste { display: none; }
.no-js .tabs__panel > .h3 { margin-bottom: var(--s-4); }

/* Timeline (P15) */
.timeline { position: relative; display: grid; gap: var(--s-8); }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 8px; width: 2px; background: var(--linie); }
.timeline__eintrag { position: relative; padding-left: var(--s-7); }
.timeline__eintrag::before {
  content: ""; position: absolute; left: 0; top: .8rem; width: 18px; height: 18px;
  background: var(--rot);
}
.timeline__jahr {
  font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1; color: var(--kohle); opacity: .18;
  position: absolute; right: 0; top: -0.5em; pointer-events: none;
}
@media (min-width: 900px) {
  .timeline::before { left: 50%; }
  .timeline__eintrag { width: calc(50% - var(--s-7)); padding-left: 0; }
  .timeline__eintrag:nth-child(odd) { margin-left: auto; padding-left: var(--s-7); }
  .timeline__eintrag:nth-child(even) { text-align: right; padding-right: var(--s-7); }
  .timeline__eintrag:nth-child(even)::before { left: auto; right: -9px; }
  .timeline__eintrag:nth-child(odd)::before { left: -9px; }
  .timeline__eintrag:nth-child(even) p { margin-left: auto; }
}

/* Hotspots (P06) */
.hotspot-buehne { position: relative; max-width: 56rem; margin-inline: auto; }
.hotspot {
  position: absolute; width: 34px; height: 34px; border: 0; cursor: pointer;
  background: var(--rot); color: var(--weiss); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(231, 48, 42, .3);
}
.hotspot:hover { background: var(--rot-tief); }
.hotspot__popover {
  position: absolute; z-index: 5; width: min(300px, 80vw);
  background: var(--kohle); color: var(--weiss); padding: var(--s-4) var(--s-5);
  font-size: .95rem; display: none;
}
.hotspot__popover.ist-offen { display: block; }
.hotspot__popover strong { display: block; margin-bottom: var(--s-1); }
.hotspot-legende { margin-top: var(--s-5); display: grid; gap: var(--s-2); }
.hotspot-legende li { display: flex; gap: var(--s-3); font-size: .97rem; }
.hotspot-legende .nr { flex: none; width: 26px; height: 26px; background: var(--rot); color: var(--weiss); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.js .hotspot-legende--nur-fallback { position: absolute; left: -9999px; }

/* Horizontale Schiene (P04) */
.schiene { position: relative; }
.schiene__spur {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(320px, 78vw);
  gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--s-4); cursor: grab;
  scrollbar-color: var(--rot) var(--linie);
}
.schiene__spur > * { scroll-snap-align: start; }
.schiene__spur.ist-gepackt { cursor: grabbing; scroll-snap-type: none; }
.schiene__pfeile { display: flex; gap: var(--s-2); }
.schiene__pfeil {
  width: 48px; height: 48px; border: 1px solid currentColor; background: none;
  cursor: pointer; font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
}
.schiene__pfeil:hover { background: var(--kohle); color: var(--weiss); border-color: var(--kohle); }
.sektion--kohle .schiene__pfeil:hover { background: var(--weiss); color: var(--kohle); border-color: var(--weiss); }
.klasse-karte {
  background: var(--weiss); border: 1px solid var(--linie);
  display: flex; flex-direction: column; min-height: 100%;
  text-decoration: none; color: inherit;
}
.sektion--kohle .klasse-karte { background: var(--stahl); border-color: var(--linie-dunkel); color: var(--weiss); }
.klasse-karte__bild { aspect-ratio: 4 / 3; background: var(--beton-hell); display: flex; align-items: center; justify-content: center; padding: var(--s-4); }
.klasse-karte__bild img { max-height: 100%; width: auto; object-fit: contain; }
.klasse-karte__inhalt { padding: var(--s-4) var(--s-5) var(--s-5); display: grid; gap: var(--s-2); }
.klasse-karte:hover .klasse-karte__titel { color: var(--rot-tief); }
.klasse-karte__titel { font-weight: 700; font-size: 1.1rem; }
.klasse-karte__meta { font-size: .9rem; color: var(--asphalt); }
.sektion--kohle .klasse-karte__meta { color: var(--nebel); }

/* Bento (P05) */
.bento { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.bento__zelle {
  position: relative; overflow: hidden; background: var(--kohle); color: var(--weiss);
  min-height: 240px; display: flex; align-items: flex-end; text-decoration: none;
}
.bento__zelle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.bento__zelle::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.bento__zelle:hover img { scale: 1.04; }
.bento__inhalt { position: relative; z-index: 1; padding: var(--s-5); width: 100%; }
.bento__inhalt .display-s { color: var(--weiss); }
.bento__inhalt p { color: #d8d9dc; font-size: .95rem; margin-top: var(--s-1); max-width: 30rem; }
.bento__pfeil { position: absolute; top: var(--s-4); right: var(--s-4); z-index: 1; font-size: 1.4rem; color: var(--weiss); opacity: 0; translate: -6px 6px; transition: opacity var(--dauer), translate var(--dauer) var(--ease); }
.bento__zelle:hover .bento__pfeil { opacity: 1; translate: 0 0; }
@media (min-width: 720px) {
  .bento__zelle--breit { grid-column: span 4; }
  .bento__zelle--schmal { grid-column: span 2; }
  .bento__zelle--halb { grid-column: span 3; }
  .bento__zelle--hoch { min-height: 340px; }
}
/* Bento-Variante: Freisteller-Gerät statt Vollbild */
.bento__zelle--geraet { background: var(--stahl); }
.bento__zelle--geraet::after { background: linear-gradient(180deg, rgba(22,23,26,0) 40%, rgba(22,23,26,.55) 100%); }
.bento__zelle--geraet .bento__geraet {
  position: absolute; right: 6%; top: 10%; height: 62%; width: auto; object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.35));
  transition: translate .5s var(--ease);
}
.bento__zelle--geraet:hover .bento__geraet { translate: 0 -6px; }

/* Bento-Variante: reine Typo-Kachel (Typografie als Bild) */
.bento__zelle--typo { background: var(--rot); }
.bento__zelle--typo::before {
  content: attr(data-wort); position: absolute; right: -4%; top: -14%;
  font-family: var(--font-display); text-transform: uppercase; line-height: .85;
  font-size: clamp(4.5rem, 9vw, 8rem); color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.5); pointer-events: none;
  white-space: pre-line; text-align: right;
}
.bento__zelle--typo::after { background: linear-gradient(180deg, rgba(158,27,23,0) 30%, rgba(158,27,23,.55) 100%); }

/* Standort-Duo ohne Foto (typografische Karte, ehrlich statt Fremdbild) */
.duo__karte--typo { background: var(--kohle); }
.duo__karte--typo::before {
  content: "RM"; position: absolute; right: -2%; top: -12%;
  font-family: var(--font-display); font-size: clamp(10rem, 24vw, 20rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--schiefer); pointer-events: none;
}
.duo__karte--typo::after { background: linear-gradient(180deg, rgba(22,23,26,0) 30%, rgba(22,23,26,.5) 100%); }

/* Hinweis-Band als Link */
a.hinweis-band { display: block; text-decoration: none; }
a.hinweis-band:hover h3 { color: var(--rot-tief); }
.hinweis-band--kohle { border-left-color: var(--kohle); }

/* Stacking Cards (P03) */
.stapel { display: grid; gap: var(--s-5); }
.stapel__karte {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--weiss); border: 1px solid var(--linie);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid; gap: var(--s-3);
}
.sektion--kohle .stapel__karte { background: var(--stahl); border-color: var(--linie-dunkel); }
.stapel__karte:nth-child(2) { top: calc(var(--header-h) + 44px); }
.stapel__karte:nth-child(3) { top: calc(var(--header-h) + 64px); }
.stapel__karte:nth-child(4) { top: calc(var(--header-h) + 84px); }
.stapel__karte .kennziffer { color: var(--rot); font-weight: 650; }

/* Grid-Schutz: einspaltige Basis darf nie breiter als der Container werden */
.spalten, .duo, .zahlenband, .bento, .stapel, .weiche, .feld-reihe, .timeline, .schritt-liste { grid-template-columns: minmax(0, 1fr); }
.spalten > *, .person-reihe > *, .duo > *, .zahlenband > *, .bento > *, .stapel > *, .weiche > *, .feld-reihe > *, .timeline > *, .schritt-liste > * { min-width: 0; }

/* Sticky-Split (P12) */
.sticky-split { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
.sticky-split > * { min-width: 0; }
@media (min-width: 900px) {
  .sticky-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .sticky-split__fix { position: sticky; top: calc(var(--header-h) + 32px); }
}
.schritt-liste { display: grid; gap: var(--s-6); counter-reset: schritt; }
.schritt {
  position: relative; padding-left: 4.2rem; counter-increment: schritt;
  min-height: 3.4rem;
}
.schritt::before {
  content: counter(schritt, decimal-leading-zero);
  position: absolute; left: 0; top: -.35rem;
  font-family: var(--font-display); font-size: 2.6rem; color: var(--rot);
}
.schritt h3 { margin-bottom: var(--s-1); }
.schritt p { color: var(--asphalt); }
.sektion--kohle .schritt p { color: var(--nebel); }

/* Scrollspy-Navigation */
.scrollspy {
  position: sticky; top: var(--header-h); z-index: 60;
  background: var(--beton); border-bottom: 1px solid var(--linie);
  overflow-x: auto; white-space: nowrap;
}
.scrollspy ul { display: flex; gap: var(--s-2); width: max-content; padding-block: 0; }
.scrollspy a {
  display: block; padding: .8rem var(--s-4); font-size: .92rem; font-weight: 600;
  color: var(--asphalt); text-decoration: none; border-bottom: 3px solid transparent;
}
.scrollspy a.ist-aktiv, .scrollspy a:hover { color: var(--kohle); border-color: var(--rot); }

/* Vergleichs-Slider (P14) */
.vergleich { position: relative; overflow: hidden; max-width: 56rem; margin-inline: auto; }
.vergleich img { width: 100%; height: auto; display: block; }
.vergleich__nachher { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.vergleich__regler { position: absolute; inset: 0; width: 100%; appearance: none; background: none; cursor: ew-resize; margin: 0; }
.vergleich__regler::-webkit-slider-thumb { appearance: none; width: 4px; height: 100vh; background: var(--rot); }
.vergleich__griff {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  width: 44px; height: 44px; background: var(--rot); color: var(--weiss);
  display: flex; align-items: center; justify-content: center; pointer-events: none; font-weight: 700;
}
.vergleich__label { position: absolute; top: var(--s-3); font-size: var(--fs-label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--kohle); color: var(--weiss); padding: .3rem .6rem; }
.vergleich__label--vorher { left: var(--s-3); }
.vergleich__label--nachher { right: var(--s-3); }

/* Galerie + Filter (P17) */
.filterleiste { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filterleiste button {
  border: 1px solid var(--linie); background: var(--weiss); padding: .5rem 1rem;
  cursor: pointer; font-weight: 600; font-size: .92rem;
}
.filterleiste button[aria-pressed="true"] { background: var(--kohle); color: var(--weiss); border-color: var(--kohle); }
.galerie { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.galerie figure { position: relative; overflow: hidden; background: var(--beton-hell); border: 1px solid var(--linie); margin: 0; }
.galerie img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.galerie figcaption { padding: var(--s-2) var(--s-3); font-size: .88rem; color: var(--asphalt); }

/* Aktions-Badge / Hinweis */
.aktion-badge {
  display: inline-flex; align-items: center; gap: var(--s-3);
  background: var(--rot); color: var(--weiss); font-weight: 700;
  padding: .5rem 1rem; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem;
}
.hinweis-band {
  border: 1px solid var(--linie);
  border-left: 6px solid var(--rot);
  background: var(--beton-hell); padding: var(--s-4) var(--s-5);
  font-size: .97rem;
}

/* Karten-Consent (Klick-zum-Laden) */
.karte-consent {
  position: relative; aspect-ratio: 16 / 9; background: var(--stahl);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--weiss); padding: var(--s-6); overflow: hidden;
}
.karte-consent__bg { position: absolute; inset: 0; opacity: .35; background: repeating-linear-gradient(45deg, var(--kohle), var(--kohle) 2px, var(--stahl) 2px, var(--stahl) 14px); }
.karte-consent__inhalt { position: relative; display: grid; gap: var(--s-3); justify-items: center; max-width: 34rem; }
.karte-consent__inhalt p { font-size: .92rem; color: var(--nebel); }
.karte-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* CTA-Schluss-Sektion */
.cta-schluss { text-align: center; }
.cta-schluss .display-l { margin-bottom: var(--s-4); }
.cta-schluss__wege { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-6); }
.cta-schluss__tel { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-7); justify-content: center; }
.cta-schluss__tel a { color: inherit; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.cta-schluss__tel .label { display: block; }

/* 9 ─── HERO-PATTERNS ────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--kohle); color: var(--weiss); overflow: clip; }
.hero__medien { position: absolute; inset: 0; }
.hero__medien img { width: 100%; height: 100%; object-fit: cover; }
.hero__medien::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,23,26,.88) 0%, rgba(22,23,26,.55) 55%, rgba(22,23,26,.25) 100%); }
.hero--voll .hero__medien::after { background: var(--scrim); }
.hero__inhalt { position: relative; z-index: 1; padding-block: clamp(5rem, 12vw, 10rem) clamp(3.5rem, 9vw, 7rem); }
.hero__inhalt .label { color: var(--weiss); }
.hero h1 { color: var(--weiss); }
.hero__sub { margin-top: var(--s-5); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 38rem; color: #e6e7e9; }
.hero__aktionen { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__meta { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); color: var(--nebel); font-size: .95rem; }
.hero__meta a { color: var(--weiss); text-decoration: none; font-weight: 700; }

/* Split-Hero: Riesen-Typo neben Freisteller */
.hero--split .hero__raster {
  display: grid; gap: var(--s-6); align-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(4rem, 9vw, 7rem) 0;
}
.hero--split .hero__raster > * { min-width: 0; }
@media (min-width: 900px) { .hero--split .hero__raster { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero__freisteller { position: relative; z-index: 1; margin-bottom: calc(-1 * clamp(2rem, 6vw, 5rem)); }
.hero__freisteller img { margin-inline: auto; max-height: 520px; width: auto; }
.hero__wort-hinter {
  position: absolute; inset: auto 0 0 0; z-index: 0; overflow: hidden;
  font-family: var(--font-display); text-transform: uppercase; line-height: .8;
  font-size: clamp(6rem, 22vw, 20rem); color: transparent;
  -webkit-text-stroke: 1px var(--schiefer); pointer-events: none; user-select: none;
  translate: 0 18%;
}

/* Full-Bleed-Bildband (P08) */
.bildband { position: relative; min-height: clamp(320px, 55vh, 560px); display: flex; align-items: flex-end; color: var(--weiss); overflow: hidden; background: var(--kohle); }
.bildband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bildband::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
@media (max-width: 700px) {
  /* Schmale Bestandsbänder (1920x191) nicht extrem zoomen: flacher + stärkerer Scrim */
  .bildband { min-height: 240px; }
  .bildband img { opacity: .55; }
  .bildband::after { background: linear-gradient(180deg, rgba(22,23,26,.2) 0%, rgba(22,23,26,.85) 80%); }
}
.bildband__inhalt { position: relative; z-index: 1; padding-block: var(--s-7); width: 100%; }
.bildband__inhalt .display-l, .bildband__inhalt .display-m { color: var(--weiss); }

/* Layering: Freisteller ragt über Sektionsgrenze (P10) */
.ueberlapp { position: relative; z-index: 2; }
.ueberlapp--hoch { margin-top: calc(-1 * clamp(3rem, 8vw, 6rem)); }
.ueberlapp--tief { margin-bottom: calc(-1 * clamp(3rem, 8vw, 6rem)); }

/* Farbflächen-Kapitelwechsel (P09): über .sektion--rot/--kohle + Kennziffer */

/* 10 ─── FORMULARE ───────────────────────────────────────────────────────── */
.formular { display: grid; gap: var(--s-5); }
.feld { display: grid; gap: var(--s-2); }
.feld label { font-weight: 650; font-size: .95rem; }
.feld .pflicht { color: var(--rot); }
.feld input, .feld select, .feld textarea {
  min-height: 52px; padding: .75rem 1rem;
  border: 1px solid var(--linie); border-radius: 2px; background: var(--weiss);
  width: 100%;
}
.feld textarea { min-height: 140px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 3px solid var(--rot); outline-offset: 1px; border-color: var(--rot); }
.feld--fehler input, .feld--fehler textarea, .feld--fehler select { border-color: var(--rot); }
.feld__fehler { color: var(--rot-dunkel); font-size: .9rem; font-weight: 600; }
.feld-reihe { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .feld-reihe { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.checkfeld { display: flex; gap: var(--s-3); align-items: flex-start; font-size: .92rem; }
.checkfeld input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--rot); }
.checkfeld p { max-width: none; color: var(--asphalt); }
.sektion--kohle .checkfeld p, .sektion--kohle .formular__meta { color: var(--nebel); }
.sektion--kohle .feld label { color: var(--weiss); }
.hp-feld { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.formular__meta { font-size: .88rem; color: var(--asphalt); }
.formular-erfolg { border-left: 4px solid #2e7d32; background: var(--beton-hell); padding: var(--s-5); }
.formular-fehler { border-left: 4px solid var(--rot); background: var(--beton-hell); padding: var(--s-5); }

/* Anfrage-Weiche / Wizard (P24) */
.weiche { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .weiche { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.weiche__karte {
  display: flex; flex-direction: column; gap: var(--s-2);
  background: var(--weiss); border: 1px solid var(--linie);
  padding: var(--s-6); text-decoration: none; color: inherit; cursor: pointer; text-align: left;
}
.weiche__karte:hover { border-color: var(--kohle); }
.weiche__karte .kennziffer { color: var(--rot); font-weight: 650; }
.weiche__karte h3 { font-size: 1.25rem; }
.weiche__karte p { color: var(--asphalt); font-size: .95rem; }
.weiche__karte[aria-pressed="true"] { border: 2px solid var(--rot); }
.wizard-schritte { display: flex; gap: var(--s-4); margin-bottom: var(--s-6); flex-wrap: wrap; }
.wizard-schritte li { display: flex; align-items: center; gap: var(--s-2); font-size: .9rem; font-weight: 600; color: var(--asphalt); }
.wizard-schritte li.ist-aktiv { color: var(--kohle); }
.wizard-schritte li.ist-aktiv .nr { background: var(--rot); color: var(--weiss); }
.wizard-schritte .nr { width: 26px; height: 26px; border: 1px solid var(--linie); display: flex; align-items: center; justify-content: center; font-size: .8rem; }

/* 11 ─── UTILITIES ───────────────────────────────────────────────────────── */
.nur-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.abstand-oben { margin-top: var(--s-7); }
.abstand-oben-klein { margin-top: var(--s-5); }
.max-lese { max-width: var(--mass-lesetext); }
.rot { color: var(--rot); }
.uebergang-band { height: clamp(3rem, 8vw, 6rem); }
hr.trennlinie { border: 0; border-top: 1px solid var(--linie); margin-block: var(--s-7); }

/* 12 ─── MOTION / REDUCED MOTION ─────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].ist-sichtbar { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal-gruppe] > * { opacity: 0; transform: translateY(24px); }
.js [data-reveal-gruppe].ist-sichtbar > * { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal-gruppe].ist-sichtbar > *:nth-child(2) { transition-delay: .07s; }
.js [data-reveal-gruppe].ist-sichtbar > *:nth-child(3) { transition-delay: .14s; }
.js [data-reveal-gruppe].ist-sichtbar > *:nth-child(4) { transition-delay: .21s; }
.js [data-reveal-gruppe].ist-sichtbar > *:nth-child(5) { transition-delay: .28s; }
.js [data-reveal-gruppe].ist-sichtbar > *:nth-child(6) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js [data-reveal-gruppe] > * { opacity: 1 !important; transform: none !important; }
  .marquee__spur { animation: none; }
  .stapel__karte { position: static; }
}

/* 13 ─── PRINT (Basis) ───────────────────────────────────────────────────── */
@media print {
  .kopf, .mob-nav, .fussneu, .scrollspy, .hero__aktionen, .knopf { display: none !important; }
  body { background: #fff; color: #000; }
  .sektion { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
