/* ==========================================================================
   Fahrschule AZAD · Göttingen — Design-System "Flottenbeschriftung"
   Overhaul 2026-07-12 · Ambition T2 (Modern Product Web)

   Design-Anker (gesehen, /srv/design-corpus):
   - cosmos.png (_progressive)            — bildreine Dichte: die Bestanden-Wand
   - teenage-engineering.png (motion/tech)— Poster-Grotesk, Mono-Labels, Rot nur als Stempel
   - carl-hansen-s-n.png (editorial-lux)  — echtes Foto trägt den Hero, Sandstein-Wärme

   Refusals (Enforcement): kein Amber, keine Gradienten, keine Pills,
   keine Rundungen > 4px, keine kursiven Akzentwörter, keine auto-fit-Card-Grids,
   keine Icon-Tiles, keine erfundenen Trust-Signale, keine Emoji,
   max. 2 dunkle Sections pro Seite.

   Typo: Archivo (Display) × Hanken Grotesk (Body) × Geist Mono (Stempel/Zahlen)
   ========================================================================== */

/* ---- Fonts (self-hosted via /srv/assets/fonts fonts-sync, variable) ---- */
@font-face{font-family:"Archivo";font-style:normal;font-weight:100 900;font-display:swap;src:url("/assets/fonts/archivo/latin-wght-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Archivo";font-style:italic;font-weight:100 900;font-display:swap;src:url("/assets/fonts/archivo/latin-wght-italic.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+2074,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:100 900;font-display:swap;src:url("/assets/fonts/archivo/latin-ext-wght-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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:"Archivo";font-style:italic;font-weight:100 900;font-display:swap;src:url("/assets/fonts/archivo/latin-ext-wght-italic.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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:"Hanken Grotesk";font-style:normal;font-weight:100 900;font-display:swap;src:url("/assets/fonts/hanken-grotesk/latin-wght-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Hanken Grotesk";font-style:italic;font-weight:100 900;font-display:swap;src:url("/assets/fonts/hanken-grotesk/latin-wght-italic.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Hanken Grotesk";font-style:normal;font-weight:100 900;font-display:swap;src:url("/assets/fonts/hanken-grotesk/latin-ext-wght-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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:"Hanken Grotesk";font-style:italic;font-weight:100 900;font-display:swap;src:url("/assets/fonts/hanken-grotesk/latin-ext-wght-italic.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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:"Geist Mono";font-style:normal;font-weight:100 900;font-display:swap;src:url("/assets/fonts/geist-mono/latin-wght-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:100 900;font-display:swap;src:url("/assets/fonts/geist-mono/latin-ext-wght-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,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;}

/* ---- Tokens ---- */
:root {
  /* Flächen - Sandstein + Asphalt (Ladenlokal + Lack der Flotte) */
  --paper:        oklch(96.5% 0.012 85);
  --paper-2:      oklch(93%   0.018 85);
  --surface:      oklch(99%   0.004 85);
  --asphalt:      oklch(17%   0.004 70);
  --asphalt-2:    oklch(12.5% 0.004 70);
  --line:         oklch(85%   0.015 85);
  --line-strong:  oklch(66%   0.02  85);

  /* Tinte */
  --ink:          oklch(21% 0.01  70);
  --ink-2:        oklch(35% 0.012 70);
  --muted:        oklch(48% 0.014 75);
  --on-asphalt:   oklch(96.5% 0.012 85);
  --on-asphalt-2: oklch(96.5% 0.012 85 / .72);
  --on-asphalt-line: oklch(96.5% 0.012 85 / .16);

  /* Marke - weiß/rot auf schwarz (Flottenbeschriftung). EINE Akzentfarbe. */
  --signal:       oklch(54% 0.21 27);
  --signal-down:  oklch(48% 0.2  27);
  --signal-text:  oklch(46% 0.19 27);
  --signal-soft:  oklch(93% 0.03 27);

  /* Kanten - Schild, nicht Pille */
  --r-0: 0; --r-1: 2px; --r-2: 4px;

  /* Type */
  --font-display: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-hero:  clamp(2.75rem, 9vw, 6.75rem);
  --fs-h2:    clamp(1.9rem, 3.6vw + .4rem, 3.4rem);
  --fs-h3:    clamp(1.25rem, 1.1vw + .9rem, 1.6rem);
  --fs-lead:  clamp(1.08rem, .7vw + .9rem, 1.28rem);
  --fs-body:  1.0625rem;
  --fs-stamp: .75rem;

  --lh-display: .96;
  --lh-body: 1.6;

  /* Raum */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;
  --wrap: 1280px; --wrap-narrow: 860px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  /* Ein Foto-Schatten, sonst keine */
  --shadow-photo: 0 24px 48px -24px oklch(17% 0.004 70 / .35);

  /* EINE Easing-Sprache für Reveals + Hovers (settle-out) */
  --ease: cubic-bezier(.19, .71, .22, 1);
  /* EINE UI-Dauer für Hover/Press/Focus - überall dieselbe */
  --dur-ui: 150ms;

  color-scheme: light;
  /* sanfte Scrollbar im Sandstein/Signal-Schema (Firefox + moderne Chromium) */
  scrollbar-color: var(--line-strong) transparent;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { min-height: 100dvh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--signal); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- Base ---- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 430;
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: var(--lh-display);
  color: var(--ink);
  margin: 0;
}
h1 { font-size: var(--fs-hero); font-weight: 860; font-stretch: 92%; }
h2 { font-size: var(--fs-h2); font-weight: 820; font-stretch: 94%; line-height: 1.02; }
h3 { font-size: var(--fs-h3); font-weight: 750; letter-spacing: -0.012em; line-height: 1.12; }
h4 { font-size: 1.05rem; letter-spacing: 0; line-height: 1.3; font-weight: 700; }

p { margin: 0 0 1rem; color: var(--ink-2); }
strong { color: var(--ink); font-weight: 700; }
small, .small { font-size: 0.875rem; color: var(--muted); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.ink-red { color: var(--signal-text); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: var(--gutter); }

/* ---- Mono-Stempel & Plaketten ---- */
.stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stamp-red { color: var(--signal-text); }
.plate {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  font-weight: 560;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--asphalt);
  color: var(--on-asphalt);
  padding: .3rem .6rem;
  border-radius: var(--r-1);
}
.plate-red { background: var(--signal); color: oklch(99% 0.004 85); }
/* Hairline-Outline-Stempel: alle Kategorien außer BESTANDEN */
.plate-line {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  font-weight: 540;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: .24rem .55rem;
  border-radius: var(--r-1);
}

/* ---- Buttons: eckig, Schilderkante ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 640;
  font-size: .98rem;
  letter-spacing: .01em;
  border-radius: var(--r-1);
  white-space: nowrap;
  text-align: center;
  transition: background var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease),
              border-color var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease);
}
.btn-signal { background: var(--signal); color: oklch(99% 0.004 85); }
.btn-signal:hover { background: var(--signal-down); }
.btn-dark { background: var(--asphalt); color: var(--on-asphalt); }
.btn-dark:hover { background: var(--asphalt-2); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }
.btn.block { display: flex; width: 100%; }
/* Physischer Press-State: der Button gibt beim Drücken nach (transform only) */
.btn:active { transform: translateY(1px); }
.tel-link {
  font-family: var(--font-mono);
  font-weight: 560;
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--ink);
  border-bottom: 2px solid var(--signal);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color var(--dur-ui) var(--ease);
}
.tel-link:hover { color: var(--signal-text); }

/* ---- Skip link ---- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--asphalt); color: var(--on-asphalt);
  padding: .8rem 1.2rem; font-weight: 600; z-index: 1000;
}
.skip:focus { left: 0; }

/* ---- Honeypot: greift auf das Input selbst (Fix des Sichtbarkeits-Bugs) ---- */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---- Header: TE-Spaltenverzeichnis (Mono-Topzeile + nummerierte Split-Nav) ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-top { border-bottom: 1px solid var(--line); }
.nav-top-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding-block: .34rem;
  font-family: var(--font-mono);
  font-size: .62rem; font-weight: 520;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  min-width: 0;
}
.nav-top-row .nt-tel { color: var(--ink); }
.nav-top-row .nt-tel:hover { color: var(--signal-text); }
.nav-top-row .nt-lbl { color: var(--signal-text); margin-right: .35rem; }
.nav-row {
  display: flex; align-items: stretch; gap: 1.1rem;
  padding-block: .55rem;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-plate {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  background: var(--asphalt);
  padding: .42rem .7rem .45rem;
  border-radius: var(--r-1);
  line-height: 1;
}
.brand-plate strong {
  font-family: var(--font-display);
  font-weight: 830; font-stretch: 92%;
  font-size: 1.02rem; letter-spacing: .045em;
  color: var(--signal);
}
.brand-plate span {
  font-family: var(--font-mono);
  font-size: .58rem; font-weight: 540; letter-spacing: .3em;
  color: var(--on-asphalt);
  margin-top: .22rem;
  text-transform: uppercase;
}
.nav-links { display: flex; margin-inline: auto; align-self: stretch; }
.nav-links a {
  display: flex; flex-direction: column; justify-content: center; gap: .24rem;
  padding: .3rem clamp(.7rem, 1.3vw, 1.2rem) .35rem;
  border-left: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: .93rem; font-weight: 620;
  line-height: 1;
  color: var(--ink-2);
  transition: color .15s;
}
.nav-links a:last-child { border-right: 1px solid var(--line); }
.nav-links .nl-num {
  font-family: var(--font-mono);
  font-size: .55rem; font-weight: 540;
  letter-spacing: .24em;
  color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); }
.nav-links a.is-active .nl-num { color: var(--signal-text); }
.nav-cta { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.nav-cta .btn { min-height: 44px; padding: .55rem 1.2rem; font-size: .92rem; }

.nav-toggle {
  display: none;
  align-items: center; gap: .6rem;
  min-height: 44px; padding: 0 .15rem;
  margin-left: auto;
}
.nav-toggle .nt-word {
  font-family: var(--font-mono);
  font-size: .64rem; font-weight: 560;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink);
}
.nav-toggle .nt-lines { display: inline-flex; flex-direction: column; gap: 5px; }
.nav-toggle .nt-lines span { width: 22px; height: 2px; background: var(--ink); transition: transform .22s, opacity .22s; }
.nav-toggle[aria-expanded="true"] .nt-lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nt-lines span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nt-lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column;
  padding: .5rem var(--gutter) 1.4rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav a:not(.btn) {
  display: grid; grid-template-columns: 2.4rem 1fr; align-items: baseline;
  padding: .85rem 0;
  font-family: var(--font-display); font-weight: 640; font-size: 1.15rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .nl-num {
  font-family: var(--font-mono);
  font-size: .62rem; font-weight: 540;
  letter-spacing: .2em;
  color: var(--muted);
}
.mobile-nav a.is-active { color: var(--signal-text); }
.mobile-nav a.is-active .nl-num { color: var(--signal-text); }
.mobile-nav .btn { margin-top: 1rem; }

@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-row { padding-block: .5rem; }
}
@media (max-width: 720px) {
  .nav-top-row .nt-mid { display: none; }
}

/* ---- Sticky Mobile-Leiste (nur Marketing-Routen, nur mobil):
   EIN roter Primär-Button + Telefon als Mono-Textlink - keine
   Zwei-Quadrate-Formel ---- */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  grid-template-columns: auto 1fr;
  background: var(--asphalt);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 54px;
  transition: transform var(--dur-ui) var(--ease), background var(--dur-ui) var(--ease);
}
.mobile-bar a:active { transform: translateY(1px); }
.mobile-bar .mb-tel {
  color: var(--on-asphalt);
  font-family: var(--font-mono);
  font-size: .8rem; font-weight: 540;
  letter-spacing: .1em; text-transform: uppercase;
  padding-inline: 1.2rem;
}
.mobile-bar .mb-tel span {
  border-bottom: 1px solid var(--signal);
  padding-bottom: 2px;
}
.mobile-bar .mb-go  {
  background: var(--signal); color: oklch(99% 0.004 85);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
}
@media (max-width: 720px) {
  body:not([data-page="legal"]) .mobile-bar { display: grid; }
  /* Fixed-Leiste darf NIE Inhalt überdecken: Platz am Seitenende reservieren
     (Bar 54px + Sicherheitsrand, gemessen gegen letzte Preiszeile) */
  body:not([data-page="legal"]) { padding-bottom: 76px; }
  html { scroll-padding-bottom: 80px; }
}

/* ---- Fahrbahn-Mittellinie (Motion-Signatur, Seitenrückgrat aller Routen):
   Die Basislinie (rl-base) ist IMMER statisch sichtbar - auch ohne JS.
   Der Scroll-Draw (rl-draw, Signalrot, per Mask + stroke-dashoffset) wird
   von app.js an den Scroll-Progress gekoppelt (rAF + Lerp): die Linie
   "zeichnet" sich beim Scrollen die Seite hinunter - kräftig genug, dass
   sie als Signatur trägt. Ohne JS bleibt nur die Basislinie stehen. ---- */
.roadline {
  position: absolute;
  top: 0; bottom: 0;
  left: clamp(14px, 2.6vw, 44px);
  width: 6px;
  pointer-events: none;
  z-index: 1;
}
.roadline svg { width: 100%; height: 100%; }
/* Kontrast+Gewicht der Basislinie angehoben (Critic theorie+preise):
   dunklere Tinte statt Hairline-Grau, damit die Signatur statisch registriert */
.roadline .rl-base { opacity: .5; }
.roadline .rl-draw { visibility: hidden; stroke: var(--signal); }
@media (max-width: 1179px) {
  /* schmalere Mobile-/Tablet-Variante statt display:none */
  .roadline { left: 8px; width: 4px; }
  .roadline .rl-base { opacity: .46; }
}
body[data-page="home"] .roadline { top: max(560px, min(92svh, 860px)); }
@media (max-width: 720px) {
  body[data-page="home"] .roadline { top: 620px; }
}
@media (prefers-reduced-motion: reduce) {
  /* statisch VOLL gezeichnet */
  .roadline .rl-draw { visibility: visible !important; clip-path: none !important; }
  .roadline .rl-base { opacity: .26; }
}
/* PRIMÄRPFAD Scroll-Draw: clip-path DIREKT am roten Strich statt SVG-Mask.
   Chromium repaintet CSS-animierte Elemente in <mask>/<defs> nicht zuverlässig
   (der Draw blieb unsichtbar, FEHLER-127-Verwandtschaft) - inset()-Clip auf dem
   Element selbst läuft auf dem Compositor und erhält das Dash-Muster.
   Nativer Pfad: animation-timeline: scroll(); Fallback: app.js schreibt
   --rl-progress per rAF, der Clip rechnet daraus. */
.roadline .rl-draw { clip-path: inset(0 0 calc(100% - var(--rl-progress, 0%)) 0); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .roadline .rl-draw {
      visibility: visible;
      animation: rl-scrub linear both;
      animation-timeline: scroll(root block);
    }
  }
}
@keyframes rl-scrub {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0% 0); }
}
main { position: relative; }

/* ---- Sections ---- */
.section { padding-block: clamp(3.2rem, 7vw, 6.5rem); position: relative; }
.section-tight { padding-block: clamp(2.2rem, 4.5vw, 4rem); }
.section-head { margin-bottom: clamp(1.8rem, 4vw, 3.2rem); }
.section-head .stamp { display: block; margin-bottom: .9rem; }
.section-head h2 { max-width: 22ch; }
.section-head .lead { margin-top: 1rem; margin-bottom: 0; }

/* Sandstein-Fläche */
.band-sand { background: var(--paper-2); }
/* Asphalt-Fläche (max 2 pro Seite) */
.band-dark { background: var(--asphalt); color: var(--on-asphalt); position: relative; isolation: isolate; }
/* Feines Film-Grain auf dem Asphalt (data-URI-SVG-Noise, CSP img-src self+data:):
   liegt ZWISCHEN Asphalt-Fläche und Inhalt (z-index 0 vs. 1) - blendet per
   overlay nur mit dem Lack, nie mit der Schrift; static, kein Motion. */
.band-dark::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.band-dark > * { position: relative; z-index: 1; }
.band-dark h2, .band-dark h3 { color: var(--on-asphalt); }
.band-dark p { color: var(--on-asphalt-2); }
.band-dark .stamp { color: var(--on-asphalt-2); }

/* ---- Hero (Start): echtes Foto full-bleed, Schild-Plate unten links ---- */
.hero {
  position: relative;
  /* px-Fallback zuerst: schützt Browser/Capture-Umgebungen, in denen svh nicht auflöst */
  min-height: 640px;
  min-height: max(560px, min(92svh, 860px));
  background: var(--asphalt);
}
.hero picture, .hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
}
.hero-plate {
  position: absolute;
  left: 0; bottom: clamp(1.2rem, 5vh, 4rem);
  max-width: min(680px, 92%);
  background: var(--paper);
  padding: clamp(1.4rem, 3vw, 2.6rem) clamp(1.2rem, 3vw, 2.8rem) clamp(1.5rem, 3vw, 2.6rem) var(--gutter);
  border-radius: 0 var(--r-1) var(--r-1) 0;
}
@media (min-width: 1380px) {
  .hero-plate { left: calc((100vw - var(--wrap)) / 2); padding-left: clamp(1.4rem, 3vw, 2.8rem); border-radius: var(--r-1); }
}
.hero-plate .stamp { display: block; margin-bottom: 1rem; }
.hero-plate h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  margin-bottom: 1.1rem;
}
.hero-plate .lead { margin-bottom: 1.4rem; max-width: 46ch; }
.hero-cta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.hero-facts {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  /* 390px: das Foto trägt den ersten Screen (Hochformat-Beschnitt), die
     Schild-Plate folgt im Fluss darunter. Höhe so bemessen, dass die ERSTE
     Headline-Zeile über der fixen Mobile-Leiste sichtbar bleibt. */
  .hero { min-height: 0; }
  .hero picture { position: relative; inset: auto; display: block; }
  .hero img {
    position: static;
    height: 460px; /* px-Fallback für Umgebungen ohne svh-Auflösung */
    height: min(calc(100svh - 310px), 540px);
    object-position: 66% 40%;
  }
  .hero-plate {
    position: static;
    max-width: none;
    border-radius: 0;
    padding: 1.6rem var(--gutter) 1.8rem;
  }
  .hero-plate h1 { font-size: clamp(2.35rem, 10.5vw, 3.2rem); }
  .hero-facts { margin-top: 1.2rem; }
}

/* ---- Foto-Band (Unterseiten-Auftakt / Zwischenbild, full-bleed) ---- */
.photo-band { position: relative; overflow: hidden; }
.photo-band img { width: 100%; height: clamp(260px, 46vw, 560px); object-fit: cover; }
.photo-band .band-stamp {
  position: absolute; left: var(--gutter); bottom: 1rem;
}
/* Klassen-Detail: engerer Bildausschnitt (Beschriftung statt Pflaster),
   auf Mobile trägt das Hochformat-Derivat full-bleed den ersten Screen.
   Markup-Kette verifiziert: die -portrait-480/780-Sources greifen per
   media (max-width:720px) VOR den Querformaten (Source-Reihenfolge im <picture>). */
.photo-band-cls img { object-position: 50% 42%; }
@media (max-width: 720px) {
  .photo-band-cls img {
    height: auto;
    aspect-ratio: 4 / 5;
    /* px-Fallback zuerst; svh-Variante besitzt den ersten Screen */
    min-height: 520px;
    min-height: min(78svh, 660px);
    object-fit: cover;
  }
}
/* Layering (b197-Finding, Template-weit): der Mono-Stempel straddelt die
   OBERE Foto-Kante (Papier→Foto) statt im Bild zu schweben - immer sichtbar.
   Das overflow-Clipping (Hover-Scale) übernimmt das <picture>, damit der
   überstehende Stempel nicht abgeschnitten wird. */
.photo-band-cls { overflow: visible; }
.photo-band-cls picture { display: block; overflow: hidden; }
.photo-band.photo-band-cls .band-stamp {
  top: 0; bottom: auto;
  transform: translateY(-50%);
  opacity: 1;
}
.photo-band-short img { height: clamp(240px, 34vw, 420px); }

/* ---- Page-Head (Unterseiten) ---- */
.page-head { padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(1.4rem, 3vw, 2.2rem); }
.crumbs {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
}
.crumbs a:hover { color: var(--signal-text); }
.crumbs span { margin-inline: .5rem; opacity: .5; }
.page-head h1 { max-width: 16ch; }
.page-head .lead { margin-top: 1.3rem; margin-bottom: 0; }
/* Klassen-Detail: vertikaler Rhythmus über der H1 gestrafft (top-light-Fix),
   das Foto rückt @390 höher in den ersten Screen */
.page-head-cls { padding-top: clamp(1.3rem, 2.6vw, 2.4rem); }
.page-head-cls .crumbs { margin-bottom: 1rem; }
.page-head-cls .lead { margin-top: 1.1rem; }

/* ---- Ledger: nummerierte Hairline-Zeilen statt Icon-Grid ---- */
.ledger { border-top: 1px solid var(--line-strong); }
.ledger-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 1.6fr;
  gap: 1.2rem;
  align-items: baseline;
  padding-block: clamp(1.1rem, 2.4vw, 1.8rem);
  border-bottom: 1px solid var(--line);
}
.ledger-row .num {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
  letter-spacing: .08em; color: var(--signal-text);
}
.ledger-row h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
.ledger-row p { margin: 0; font-size: .98rem; }
@media (max-width: 720px) {
  .ledger-row { grid-template-columns: 3rem 1fr; }
  .ledger-row p { grid-column: 2; }
}
/* Rhythmusbruch im Werte-Ledger (uber-uns @1440): EINE Zeile trägt eine
   übergroße Display-Ziffer - bricht die vier identischen Zeilen auf */
@media (min-width: 881px) {
  .ledger-row-feature { grid-template-columns: 10rem 1fr 1.6fr; align-items: center; padding-block: clamp(1.6rem, 3.2vw, 2.8rem); }
  .ledger-row-feature .num {
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 5.5vw, 5.4rem);
    font-weight: 860; font-stretch: 92%;
    letter-spacing: -0.02em; line-height: .85;
  }
}

/* ---- Querverweis-Ledger (Klassen-Detail): Pfeil + Label gruppiert,
   ANSEHEN rechtsbündig, ganze Zeile klickbar mit Hover-Zug ---- */
.xlink { border-top: 1px solid var(--line-strong); }
.xlink-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: transform .22s var(--ease);
}
.xlink-row .lbl {
  display: inline-flex; align-items: baseline; gap: .7rem;
  font-family: var(--font-display);
  font-weight: 680; font-size: 1.08rem;
  min-width: 0;
}
.xlink-row .arrow {
  font-family: var(--font-mono);
  color: var(--signal-text);
  flex-shrink: 0;
  transition: transform .22s var(--ease);
}
.xlink-row .go {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 560;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--signal-text);
  border-bottom: 1px solid var(--signal);
  padding-bottom: 2px;
  flex-shrink: 0;
  white-space: nowrap;
}
.xlink-row:hover { transform: translateX(6px); }
.xlink-row:hover .arrow { transform: translateX(4px); }
.xlink-row:hover .lbl { color: var(--signal-text); }
@media (max-width: 520px) {
  .xlink-row { gap: .8rem; }
  .xlink-row .lbl { font-size: 1rem; }
}

/* ---- Datenblatt (Klassen, TE-Katalog-Logik) ---- */
.sheet {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: var(--surface);
  display: grid;
  grid-template-columns: 1.05fr 1.3fr .9fr;
  overflow: hidden;
}
.sheet + .sheet { margin-top: clamp(1.2rem, 2.5vw, 2rem); }
.sheet-photo { position: relative; min-height: 260px; }
.sheet-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet-main { padding: clamp(1.3rem, 2.6vw, 2.2rem); min-width: 0; }
.sheet-main .plate { margin-bottom: 1rem; }
.sheet-main h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); margin-bottom: .6rem; }
.sheet-main p { font-size: .98rem; margin-bottom: 1.2rem; }
.sheet-link {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 560;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--signal-text);
  border-bottom: 1px solid var(--signal);
  padding-bottom: 2px;
}
.sheet-link:hover { color: var(--signal-down); }
.sheet-spec {
  border-left: 1px solid var(--line);
  padding: clamp(1.3rem, 2.6vw, 2rem) clamp(1.1rem, 2vw, 1.6rem);
  background: var(--paper-2);
  min-width: 0;
}
.spec-row { padding-block: .65rem; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 540;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .2rem;
}
.spec-row dd { margin: 0; font-size: .92rem; color: var(--ink); font-weight: 520; }
@media (max-width: 960px) {
  .sheet { grid-template-columns: 1fr 1fr; }
  .sheet-photo { grid-column: 1 / -1; aspect-ratio: 16 / 7; min-height: 0; }
  .sheet-spec { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .sheet { grid-template-columns: 1fr; }
  .sheet-photo { aspect-ratio: 16 / 9; }
}
/* Variante: ein Band gespiegelt (Foto rechts) - bricht den Uniform-Rhythmus */
@media (min-width: 961px) {
  .sheet-flip { grid-template-columns: 1.3fr .9fr 1.05fr; }
  .sheet-flip .sheet-main { order: 1; }
  .sheet-flip .sheet-spec { order: 2; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .sheet-flip .sheet-photo { order: 3; }
}

/* ---- Spezifikations-Tafel (Detailseiten, sticky) ---- */
.spec-panel {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  padding: 1.5rem 1.4rem;
}
.spec-panel h3 { font-size: 1rem; margin-bottom: .8rem; }
.spec-panel .btn { margin-top: 1.2rem; }
/* Sekundäraktion als Mono-Textlink statt zweitem Button (Hero-Formel-Echo raus).
   Flex-zentriert mit min-height 48px: garantiertes Touch-Target >= 44px @390 (i5) */
.spec-plink {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: .35rem;
  padding: .8rem .5rem;
  min-height: 48px;
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 560;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
}
.spec-plink span { border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.spec-plink:hover { color: var(--signal-text); }
.spec-plink:hover span { border-color: var(--signal); }
.sticky-col { position: sticky; top: 110px; }

/* Rail-Füllung unter der Spec-Tafel: Büro-Foto + Mono-Kontaktzeilen
   (balanciert die rechte Spalte gegen den langen Fließtext @1440) */
.aside-photo {
  position: relative;
  border-radius: var(--r-1);
  overflow: hidden;
  margin-top: 1rem;
}
.aside-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .32s var(--ease); }
.aside-photo .band-stamp { position: absolute; left: 10px; bottom: 10px; opacity: 0; transition: opacity .25s var(--ease); }
.aside-photo:hover img { transform: translateY(-4px) scale(1.02); }
.aside-photo:hover .band-stamp { opacity: 1; }
@media (hover: none) { .aside-photo .band-stamp { opacity: 1; } }
.aside-contact { margin-top: 1rem; border-top: 1px solid var(--line-strong); }
.aside-contact .contact-row { grid-template-columns: 4.6rem 1fr; padding-block: .7rem; }
.aside-contact .val { font-size: .92rem; }
@media (max-width: 880px) {
  /* Rail-Füllung ist ein Desktop-Balance-Device - mobil steht die Spec-Tafel
     vor dem Text, mehr Rail würde den Inhalt nur nach unten schieben */
  .aside-photo, .aside-contact { display: none; }
}

/* ---- Klassen-Detail: Datenblatt-Split ---- */
.klasse-grid {
  display: grid;
  grid-template-columns: 1.55fr .9fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}
.klasse-grid > * { min-width: 0; }
@media (min-width: 881px) {
  /* Overlap-Device: die Spez-Tafel ragt sichtbar in die Foto-Kante hinein
     (i3: Layering statt statischem Stapeln neben dem Hero) */
  .klasse-grid .sticky-col { margin-top: calc(-1 * clamp(7rem, 13vw, 12.5rem)); }
}
@media (max-width: 880px) {
  .klasse-grid { grid-template-columns: 1fr; }
  /* Spec-Tafel mobil VOR dem Fließtext (Konzept §10) */
  .klasse-grid .sticky-col { position: static; order: -1; }
}

/* ---- 4 Schritte: Asphalt + Fahrbahn-Mittellinie ---- */
.steps-band { position: relative; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  position: relative;
  padding-top: 2.6rem;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 1rem; left: 0; right: 0;
  height: 4px;
  background-image: repeating-linear-gradient(to right, var(--on-asphalt) 0 26px, transparent 26px 50px);
  opacity: .85;
}
.step { min-width: 0; }
.step .num {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 540;
  letter-spacing: .14em;
  color: var(--signal);
  filter: brightness(1.5);
  margin-bottom: .7rem;
}
.step h3 { color: var(--on-asphalt); margin-bottom: .5rem; font-size: 1.25rem; }
.step p { font-size: .95rem; margin-bottom: .8rem; }
.step a {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 540;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-asphalt);
  border-bottom: 1px solid var(--on-asphalt-2);
  padding-bottom: 2px;
}
.step a:hover { border-color: var(--signal); color: var(--signal); filter: brightness(1.6); }
@media (max-width: 880px) {
  .steps-grid { grid-template-columns: 1fr 1fr; row-gap: 2.2rem; }
}
@media (max-width: 520px) {
  .steps-grid { grid-template-columns: 1fr; padding-left: 1.6rem; padding-top: 0; }
  .steps-grid::before {
    top: 0; bottom: 0; left: 2px; right: auto;
    width: 4px; height: auto;
    background-image: repeating-linear-gradient(to bottom, var(--on-asphalt) 0 22px, transparent 22px 42px);
  }
}

/* ---- Asphalt-Spec-Tafel (Theorie/Lernmittel): dunkler Split statt
   viertem Hairline-Ledger - bricht den Uniform-Rhythmus der Seite ---- */
.dark-split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: start;
}
.dark-split > * { min-width: 0; }
.dark-spec { border-top: 1px solid var(--on-asphalt-line); }
.dark-spec-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--on-asphalt-line);
}
.dark-spec-row .num {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 540;
  letter-spacing: .12em;
  color: var(--signal);
  filter: brightness(1.5);
}
.dark-spec-row h3 { color: var(--on-asphalt); font-size: 1.12rem; margin-bottom: .3rem; }
.dark-spec-row p { grid-column: 2; margin: 0; font-size: .95rem; }
@media (max-width: 820px) { .dark-split { grid-template-columns: 1fr; } }

/* ---- Foto-Duo (Theorie: Ladenlokal + Büro-Beratung, echtes Material) ---- */
.photo-duo {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 6px;
}
.photo-duo figure {
  position: relative;
  margin: 0; min-width: 0;
  border-radius: var(--r-1);
  overflow: hidden;
}
.photo-duo img {
  width: 100%; height: 100%;
  min-height: 0;
  height: clamp(260px, 32vw, 440px);
  object-fit: cover;
  transition: transform .32s var(--ease);
}
.photo-duo figcaption {
  position: absolute; left: 10px; bottom: 10px;
}
.photo-duo figure:hover img { transform: translateY(-4px) scale(1.02); }
.photo-duo figcaption .plate { opacity: 0; transition: opacity .25s var(--ease); }
.photo-duo figure:hover figcaption .plate { opacity: 1; }
@media (hover: none) { .photo-duo figcaption .plate { opacity: 1; } }
@media (max-width: 640px) {
  .photo-duo { grid-template-columns: 1fr; }
  .photo-duo img { height: auto; aspect-ratio: 16 / 10; }
}

/* ---- Bestanden-Wand (progressive Geste, Cosmos) ---- */
.wall-head { margin-bottom: clamp(1.2rem, 2.5vw, 2rem); }
.wall-head h2 { max-width: none; }
.wall {
  columns: 4;
  column-gap: 6px;
}
.wall figure {
  margin: 0 0 6px;
  position: relative;
  break-inside: avoid;
  background: var(--paper-2);
  border-radius: var(--r-1);
  overflow: hidden;
}
.wall figure { transition: transform .3s var(--ease); }
.wall img {
  width: 100%;
  transition: transform .3s var(--ease);
}
.wall figcaption {
  position: absolute; left: 8px; bottom: 8px;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 560;
  letter-spacing: .14em; text-transform: uppercase;
  /* voll deckender Ink-Scrim hinter dem Mono-Stempel (Lesbarkeit auf hellen Fotos) */
  background: var(--asphalt);
  color: var(--on-asphalt);
  padding: .26rem .5rem;
  border-radius: var(--r-1);
  opacity: 0;
  transition: opacity .22s ease;
}
.wall figure:hover { transform: translateY(-4px); }
.wall figure:hover img { transform: scale(1.02); }
.wall figure:hover figcaption { opacity: 1; }
@media (hover: none) { .wall figcaption { opacity: 1; } }
@media (max-width: 1100px) { .wall { columns: 3; } }
@media (max-width: 700px)  { .wall { columns: 2; } }
/* Kompakt-Echo: bündiger 3er-Streifen (gemeinsame Grundlinie, kein Masonry-Loch) */
.wall-compact {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.wall-compact figure { margin: 0; min-width: 0; }
.wall-compact img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 640px) {
  /* @390: 1 großes + 2 halbe Fotos statt 3 Mini-Kacheln - die beiden
     2-up-Crops quadratisch und damit deutlich größer (i3: Gesichter/Stempel
     lesbar), Stempel bleibt sichtbar */
  .wall-compact { grid-template-columns: 1fr 1fr; }
  .wall-compact figure:first-child { grid-column: 1 / -1; }
  .wall-compact figure:first-child img { aspect-ratio: 16 / 10; }
  .wall-compact figure:not(:first-child) img { aspect-ratio: 1 / 1; }
  .wall-compact figcaption { font-size: .6rem; padding: .2rem .45rem; left: 6px; bottom: 6px; }
}
/* News-Variante (Cosmos-Dichte): 1 breites + 2 schmalere Crops statt 3 gleicher
   Kacheln - gemeinsame Höhe, die Beschnitte variieren über die Spaltenbreiten.
   Höhe angehoben (i5): das Band soll voller ausspielen */
@media (min-width: 641px) {
  .wall-varied { grid-template-columns: 1.7fr 1fr 1fr; }
  .wall-varied img { height: clamp(270px, 27vw, 420px); aspect-ratio: auto; }
}
/* Full-bleed-Variante (news, i5): Fotos laufen bis an die Viewport-Kanten,
   kein Wrap-Gutter - Cosmos-Dichte; unten bleibt ein schmaler Sandstein-Auslauf */
.wall-bleed { padding-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
.wall-bleed figure { border-radius: 0; }

/* ---- EINE Hover-Sprache: Foto hebt 4px, Mono-Stempel blendet ein ---- */
.sheet-photo img, .photo-band img, .signup-photo img, .contact-photo img,
.team-photo-card img, .split-53 .photo img { transition: transform .32s var(--ease); }
.sheet:hover .sheet-photo img,
.photo-band:hover img,
.signup-photo:hover img,
.contact-photo:hover img,
.team-photo-card:hover img,
.split-53 .photo:hover img { transform: translateY(-4px) scale(1.02); }
.photo-band .band-stamp, .signup-photo .band-stamp { opacity: 0; transition: opacity .25s var(--ease); }
.photo-band:hover .band-stamp, .signup-photo:hover .band-stamp { opacity: 1; }
@media (hover: none) {
  .photo-band .band-stamp, .signup-photo .band-stamp { opacity: 1; }
}

/* ---- Overlap-Devices: Tafel/Foto ragt über die Sektionsgrenze ---- */
.pull-up { position: relative; z-index: 2; margin-top: calc(-1 * clamp(2.4rem, 6vw, 4.5rem)); }
.pull-down { position: relative; z-index: 2; margin-bottom: calc(-1 * clamp(2.4rem, 6vw, 4.5rem)); }

/* ---- Team: Foto + Typo-Plakette (kein Fake-Avatar) ---- */
.team-split {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: stretch;
}
.team-photo-card { position: relative; border-radius: var(--r-1); overflow: hidden; }
/* Quelle des Azad-Nahporträts ist nahezu quadratisch (1080x1068) und bereits
   ein enger Headshot - 1:1 statt 4:3 vermeidet den Zusatz-Zoom, der das
   Gesicht randlos beschnitt (Kinn/Haaransatz oben und unten). */
.team-photo-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; object-position: 50% 40%; }
.team-photo-card .team-caption {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: var(--asphalt);
  padding: .9rem 1.2rem;
}
.team-caption h3 { color: var(--on-asphalt); font-size: 1.15rem; }
.team-caption .stamp { color: var(--on-asphalt-2); display: block; margin-top: .25rem; }
.team-plaque {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: var(--surface);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 280px;
  position: relative;
}
.team-plaque::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--signal);
}
.team-plaque .stamp { display: block; margin-bottom: auto; }
.team-plaque h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin: 1.6rem 0 .3rem; }
.team-plaque .role { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal-text); margin-bottom: .9rem; }
.team-plaque p { margin: 0; font-size: .96rem; }
/* Mono-Spec-Zeilen balancieren die Plakette gegen die Foto-Karte */
.team-plaque .plaque-spec { margin: 1.3rem 0 0; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .team-split { grid-template-columns: 1fr; } }

/* ---- Zitate als Belegzettel ---- */
.slips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.9rem, 1.6vw, 1.4rem);
}
.slip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--asphalt);
  border-radius: var(--r-1);
  padding: 1.4rem 1.4rem 1.2rem;
  margin: 0;
  min-width: 0;
}
.slip .stamp { display: block; margin-bottom: .8rem; }
.slip blockquote { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink); font-weight: 480; }
.slips-note { margin-top: 1.2rem; }
.slips-note a { border-bottom: 1px solid var(--line-strong); }
.slips-note a:hover { border-color: var(--signal); color: var(--signal-text); }
@media (max-width: 880px) { .slips { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq { display: grid; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem .2rem;
  font-family: var(--font-display);
  font-weight: 660; font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  color: var(--ink);
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem; font-weight: 400;
  color: var(--signal-text);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 .2rem 1.3rem; color: var(--ink-2); font-size: .98rem; max-width: 70ch; }

/* ---- Formulare ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: block; min-width: 0; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 540;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .4rem;
  color: var(--ink-2);
}
.field label .req { color: var(--signal-text); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  padding: .8rem .9rem;
  min-height: 48px;
  transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.consent input { margin-top: .25rem; accent-color: var(--signal); width: 18px; height: 18px; flex-shrink: 0; }
.consent a { text-decoration: underline; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { font-size: .94rem; color: var(--muted); }
.form-status.ok { color: var(--ink); font-weight: 600; }
.form-status.err { color: var(--signal-text); font-weight: 600; }

/* Anmeldung: Sandstein-Split mit echtem Foto */
.signup-split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}
.signup-photo { position: relative; border-radius: var(--r-1); overflow: hidden; }
.signup-photo img { width: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.signup-photo .band-stamp { position: absolute; left: 12px; bottom: 12px; }
@media (max-width: 880px) {
  .signup-split { grid-template-columns: 1fr; }
  .signup-photo { order: 2; max-width: 420px; }
  .signup-photo img { aspect-ratio: 4 / 5; }
}

/* ---- Theorie-Termintafel (Zentrum der Seite) ---- */
.ttable-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: var(--surface);
}
.ttable {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
}
.ttable th {
  text-align: left;
  font-size: .68rem; font-weight: 560;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--on-asphalt);
  background: var(--asphalt);
  padding: .85rem 1.1rem;
}
.ttable td {
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
  color: var(--ink);
}
.ttable tbody tr:nth-child(even) td { background: var(--paper); }
.ttable tbody tr:last-child td { border-bottom: 0; }
.ttable td:nth-child(1), .ttable td:nth-child(2) { white-space: nowrap; font-weight: 540; }
.ttable td:nth-child(1) { position: sticky; left: 0; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.ttable tbody tr:nth-child(even) td:nth-child(1) { background: var(--paper); }
.ttable .plate-red { font-size: .72rem; padding: .18rem .5rem; }
.ttable td:nth-child(4) { font-family: var(--font-body); font-size: .98rem; min-width: 18rem; }
/* Thema-Spalte bekommt Luft zur Tafelkante (rechter Auslauf-Gutter) */
.ttable th:last-child, .ttable td:last-child { padding-right: clamp(1.1rem, 3vw, 3rem); }
/* Sichtbare Scroll-Affordance auf Mobile */
.swipe-hint { display: none; }
@media (max-width: 720px) {
  .swipe-hint {
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--font-mono); font-size: .66rem; font-weight: 540;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 .5rem;
  }
  .swipe-hint::after { content: "→"; color: var(--signal-text); }
  .ttable-wrap { scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
}

/* ---- Kopf-Grid: Mono-Index/Spec-Plakette verankert die rechte Hero-Fläche ---- */
.head-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
.head-index { margin: 0; padding: 0; min-width: 300px; }
.head-index ul { list-style: none; margin: 0; padding: 0; }
.head-index .head-index-title {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem; font-weight: 560;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--signal-text);
  padding-bottom: .5rem;
}
.head-index li {
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 540;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2);
}
.head-index li:first-of-type { border-top: 2px solid var(--asphalt); }
.head-index li:last-of-type { border-bottom: 0; } /* Baseline = Hero-Baseline, kein Schweberand */
.head-index li > a, .head-index li > .row {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; align-items: baseline;
  padding-block: .6rem;
  color: inherit;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.head-index li > a:hover { color: var(--signal-text); transform: translateX(4px); }
.head-index .num { color: var(--signal-text); }
@media (max-width: 880px) {
  .head-grid { grid-template-columns: 1fr; }
  .head-index { display: none; }
}
/* Preistafel-Index vertikal an die H1 gekoppelt: Oberkante auf H1-Höhe
   (margin-top = Crumbs-Zeile + Abstand) statt end-aligned mit totem Raum darüber (i5) */
@media (min-width: 881px) {
  body[data-page="preise"] .head-grid { align-items: start; }
  body[data-page="preise"] .head-index { margin-top: 2.55rem; }
}

/* Klassen-Detail: Klassen-Code-Plakette hält die rechte Hero-Spannung
   (BE-Void-Fix) OHNE die Spec-Tafel zu duplizieren - reine Typo-Plakette,
   keine Faktenzeile doppelt (Kill-Liste i3, gilt für B/BE/B197) */
.head-plaque { min-width: 220px; }
/* Spezifität (0,2,0): muss die .founding-plaque-Mobile-Regel (display:block,
   steht später in der Datei) sicher schlagen */
@media (max-width: 880px) { .founding-plaque.head-plaque { display: none; } }

/* Über uns: Gründungsjahr-Plakette (SEIT 2021, belegt) */
.founding-plaque {
  text-align: right;
  border-top: 4px solid var(--signal);
  padding-top: 1rem;
  min-width: 220px;
}
.founding-plaque .lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 560;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.founding-plaque .yr {
  display: block;
  font-family: var(--font-display);
  font-weight: 860; font-stretch: 92%;
  font-size: clamp(3.2rem, 5.5vw, 5.2rem);
  line-height: .9;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.founding-plaque .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: .64rem; font-weight: 540;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--signal-text);
  margin-top: .55rem;
}
@media (max-width: 880px) {
  .founding-plaque { display: block; text-align: left; margin-top: 1.6rem; min-width: 0; }
}
/* uber-uns @1440: SEIT-2021-Plakette an die Headline gekoppelt - Oberkante der
   roten Plaketten-Linie auf H1-Oberkante (Crumbs-Offset), die "2021"-Baseline
   läuft mit der ersten Headline-Zeile statt end-aligned unter totem Raum zu hängen (i5) */
@media (min-width: 881px) {
  body[data-page="uber-uns"] .head-grid { align-items: start; }
  body[data-page="uber-uns"] .founding-plaque { margin-top: 2.55rem; }
}

/* ---- Preistafel (ein gedrucktes Blatt, keine 3 Karten) ---- */
.price-split {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}
/* Gedrucktes Blatt: nur top/bottom-Hairlines (kein Karten-Rahmen),
   Asphalt-Kopfleiste zieht die Marken-Wärme in den ersten Screen */
.price-sheet {
  background: var(--surface);
  border-block: 1px solid var(--line-strong);
  border-inline: 0;
  border-radius: 0;
  padding: 0 clamp(1.4rem, 3vw, 2.6rem) clamp(1.4rem, 3vw, 2.6rem);
}
.price-sheet .sheet-title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  background: var(--asphalt);
  margin: 0 calc(-1 * clamp(1.4rem, 3vw, 2.6rem)) .4rem;
  padding: 1.05rem clamp(1.4rem, 3vw, 2.6rem) 1.1rem;
}
.price-sheet .sheet-title h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); color: var(--on-asphalt); }
.price-sheet .sheet-title .stamp { color: var(--on-asphalt-2); }
.price-group-title {
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 560;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--signal-text);
  padding-top: 1.6rem;
  margin-bottom: .3rem;
}
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem;
  padding-block: .75rem;
  border-bottom: 1px solid var(--line);
}
.price-row .name { font-size: .98rem; color: var(--ink); min-width: 0; }
.price-row .name .note { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.price-row .price {
  font-family: var(--font-mono); font-weight: 600; font-size: 1rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
.price-margin-note {
  margin-top: 1.6rem;
  border-left: 3px solid var(--signal);
  padding: .2rem 0 .2rem 1rem;
  font-size: .92rem;
  color: var(--ink-2);
}
.price-aside { display: grid; gap: 1rem; align-content: start; }
/* Foto verlängert (5/8 statt 3/4): die rechte Spalte läuft mit der Preistafel
   aus statt unter der Caption in ein Void zu fallen (i3 @1440) */
.price-aside .signup-photo img { aspect-ratio: 5 / 8; }
.price-aside .small { margin: 0; }
@media (max-width: 880px) {
  .price-split { grid-template-columns: 1fr; }
  .price-aside { max-width: 420px; }
  /* Overlap-Device nur auf Desktop - mobil würde das Foto die Tafel überlagern */
  .price-aside.pull-up { margin-top: 0; }
}

/* ---- News-Ledger: Mono-Datum + Zeilen-Index füllen den Gutter,
   Titelspalte begrenzt, Rubrik-Stempel rechtsbündig, Hover-Zug ---- */
.news-ledger { border-top: 1px solid var(--line-strong); }
.news-row {
  display: grid;
  /* Datum-Spalte wächst mit dem längsten Datum (i3: "14. November 2025"
     kollidierte mit dem Zeilen-Index bei fixen 7rem).
     +1 Spalte (i5): Mono-Lesezeit füllt die Lücke vor dem Kategorie-Stempel */
  grid-template-columns: minmax(7rem, max-content) 2.8rem minmax(0, 1fr) max-content auto;
  gap: 1.1rem;
  align-items: baseline;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--line);
  transition: transform .22s var(--ease);
}
.news-row:hover { transform: translateX(6px); }
.news-row .date {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.news-row .idx {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 540;
  letter-spacing: .08em;
  color: var(--signal-text);
  transition: transform .22s var(--ease);
}
.news-row:hover .idx { transform: translateX(3px); }
.news-row h3 { font-size: clamp(1.15rem, 1.8vw, 1.55rem); grid-column: 3; }
.news-row h3 a:hover { color: var(--signal-text); }
.news-row .excerpt { grid-column: 3; margin: .3rem 0 0; font-size: .95rem; max-width: 58ch; }
/* Lesezeit (aus Wortzahl berechnet, i5): Mono-Meta zwischen Titelblock und Stempel */
.news-row .rmin {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 540;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  justify-self: end;
}
.news-row .plate-red, .news-row .plate, .news-row .plate-line { justify-self: end; }
@media (max-width: 720px) {
  .news-row { grid-template-columns: 1fr auto; }
  .news-row:hover { transform: none; }
  .news-row .date { grid-column: 1; }
  .news-row .idx { display: none; }
  /* mobil entfällt die Lesezeit - Zeile 1 gehört Datum + Stempel, kein Meta-Gedränge */
  .news-row .rmin { display: none; }
  .news-row h3 { grid-column: 1 / -1; }
  .news-row .excerpt { grid-column: 1 / -1; }
  .news-row .plate-red, .news-row .plate, .news-row .plate-line { grid-row: 1; grid-column: 2; }
}

/* ---- Artikel ---- */
.article { padding-block: clamp(1.2rem, 3vw, 2.2rem) clamp(2rem, 5vw, 4rem); }
/* Lesemaß ~660px (schmaler als wrap-narrow) */
.article.wrap-narrow { max-width: calc(660px + 2 * var(--gutter)); }

/* Post-Split @≥1180: Lesemaß links, sticky Mono-Meta-Rail rechts -
   die rechte Fläche wird verankert statt leer zu bleiben */
.post-grid { display: block; }
@media (min-width: 1180px) {
  .post-grid {
    display: grid;
    grid-template-columns: minmax(0, 720px) 240px;
    gap: clamp(2.5rem, 6vw, 6rem);
    justify-content: center;
    align-items: start;
  }
  .post-grid .article { max-width: none; margin-inline: 0; }
}
.post-rail { display: none; }
@media (min-width: 1180px) {
  .post-rail {
    display: block;
    position: sticky; top: 120px;
    margin-top: clamp(4rem, 8vw, 7rem);
    border-left: 1px dashed var(--line-strong);
    padding-left: 1.4rem;
  }
  .post-rail .rail-row { padding-block: .75rem; border-bottom: 1px solid var(--line); }
  .post-rail .rail-row:first-child { padding-top: 0; }
  .post-rail .rail-lbl {
    display: block;
    font-family: var(--font-mono);
    font-size: .62rem; font-weight: 560;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .3rem;
  }
  .post-rail .rail-val {
    font-family: var(--font-mono);
    font-size: .84rem; font-weight: 540;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
  }
  .post-rail .rail-val a { border-bottom: 1px solid var(--line-strong); }
  .post-rail .rail-val a:hover { color: var(--signal-text); border-color: var(--signal); }
  .post-rail .plate, .post-rail .plate-red, .post-rail .plate-line { margin-top: .1rem; }
  /* Datum/Rubrik stehen im Rail - nicht doppelt über der Headline */
  .post-grid .article-meta { display: none; }
}
.article .article-meta {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
}
.article h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 1.6rem; max-width: 20ch; }
.article p { font-size: 1.06rem; line-height: 1.75; color: var(--ink); margin-bottom: 1.4rem; max-width: 70ch; }
.article h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin: 2.2rem 0 .8rem; }
.article ul { padding-left: 1.2rem; margin-bottom: 1.4rem; color: var(--ink); }
.article li { margin-bottom: .4rem; }
.article a { border-bottom: 1px solid var(--line-strong); }
.article a:hover { color: var(--signal-text); border-color: var(--signal); }
.article-end {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line-strong);
  margin-top: 2.6rem;
  padding-top: 1.4rem;
}
.article-end .back {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 540;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2);
}
.article-end .back:hover { color: var(--signal-text); }
/* Related-News-Ledger (datierte Mono-Zeilen mit Index + Hover-Zug) */
.related { margin-top: 2.6rem; }
.related .stamp { display: block; margin-bottom: .7rem; }
.related-row {
  display: grid; grid-template-columns: 2.4rem 7.5rem 1fr; gap: 1rem; align-items: baseline;
  padding-block: .85rem;
  border-bottom: 1px solid var(--line);
  transition: transform .22s var(--ease);
}
.related-row:hover { transform: translateX(6px); }
.related-row:first-of-type { border-top: 1px solid var(--line-strong); }
.related-row .idx {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 540;
  letter-spacing: .08em;
  color: var(--signal-text);
}
.related-row .date {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.related-row .title { font-family: var(--font-mono); font-size: .9rem; font-weight: 540; color: var(--ink); }
.related-row:hover .title { color: var(--signal-text); }
/* .related-row ist selbst der Link - kein Unterstrich aus .article a */
.article .related-row { border-bottom: 1px solid var(--line); }
.article .related-row:hover { color: inherit; border-color: var(--line); }
@media (max-width: 520px) {
  .related-row { grid-template-columns: 2.4rem 1fr; gap: .3rem 1rem; }
  .related-row:hover { transform: none; }
  .related-row .date { grid-column: 2; }
  .related-row .title { grid-column: 2; }
}

/* ---- Kontakt-Ledger ---- */
.contact-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-ledger { border-top: 1px solid var(--line-strong); }
.contact-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact-row .lbl {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 560;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--signal-text);
}
.contact-row .val { font-size: 1.02rem; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.contact-row .val a { border-bottom: 1px solid var(--line-strong); }
.contact-row .val a:hover { color: var(--signal-text); border-color: var(--signal); }
.contact-row .val .small { display: block; margin-top: .2rem; }
.contact-photo { margin-top: 1.4rem; border-radius: var(--r-1); overflow: hidden; position: relative; }
.contact-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.theorie-plaque {
  margin-top: 1.4rem;
  background: var(--asphalt);
  color: var(--on-asphalt);
  border-radius: var(--r-1);
  padding: 1.3rem 1.4rem;
}
.theorie-plaque .stamp { color: var(--on-asphalt-2); display: block; margin-bottom: .5rem; }
.theorie-plaque p { color: var(--on-asphalt-2); margin: 0; font-size: .96rem; }
.theorie-plaque a { color: var(--on-asphalt); border-bottom: 1px solid var(--on-asphalt-2); }
.form-panel {
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.form-panel h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 1.4rem; }
@media (min-width: 881px) {
  /* Overlap-Device: das Formular-Panel ragt über das Ladenlokal-Foto-Band */
  body[data-page="kontakt"] .form-panel { margin-top: calc(-1 * clamp(4rem, 9vw, 8rem)); position: relative; z-index: 2; }
}
@media (max-width: 880px) { .contact-split { grid-template-columns: 1fr; } }

/* ---- Asphalt-CTA mit Foto (kein Glow-Klon) ---- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .cta-bg { position: absolute; inset: 0; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.cta-band .cta-inner { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); }
.cta-band h2 { max-width: 18ch; }
.cta-band p { max-width: 52ch; }
.cta-band .hero-cta { margin-top: 1.6rem; }
.cta-band .tel-link { color: var(--on-asphalt); border-bottom-color: var(--signal); }
.cta-band .tel-link:hover { color: var(--on-asphalt); opacity: .85; }
/* Linksseitiger Ink-Scrim hinter dem CTA-Fließtext: sichert die Lesbarkeit auf
   dem unruhigen Foto (uber-uns "Werde Teil unserer Geschichte", i5).
   Funktionaler Lesbarkeits-Scrim per Orchestrator-Direktive - KEIN Deko-Gradient. */
.cta-band .cta-scrim {
  background: linear-gradient(to right,
    oklch(12.5% 0.004 70 / .82) 0%,
    oklch(12.5% 0.004 70 / .6) 60%,
    oklch(12.5% 0.004 70 / 0) 100%);
  color: var(--on-asphalt);
  padding: .6rem 2.6rem .6rem .9rem;
  margin-left: -.9rem;
  border-radius: var(--r-1);
}
/* einzeilige Telefon-Variante (Klassen-Detail) */
.cta-line { text-align: left; }
.cta-line .big-tel {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 830; font-stretch: 92%;
  font-size: clamp(1.9rem, 6vw, 4.2rem);
  letter-spacing: -0.02em;
  color: var(--on-asphalt);
  border-bottom: 4px solid var(--signal);
  line-height: 1.15;
  margin-top: .6rem;
  font-variant-numeric: tabular-nums;
}
.cta-line .big-tel:hover { color: var(--signal); filter: brightness(1.5); }

/* ---- Split-Layouts (Über uns u.a.) ---- */
.split-53 {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}
.split-53 > * { min-width: 0; }
.split-53 .photo { border-radius: var(--r-1); overflow: hidden; position: relative; }
.split-53 .photo img { width: 100%; object-fit: cover; }
.split-53 .photo .band-stamp { position: absolute; left: 12px; bottom: 12px; opacity: 0; transition: opacity .25s var(--ease); }
.split-53 .photo:hover .band-stamp { opacity: 1; }
@media (hover: none) { .split-53 .photo .band-stamp { opacity: 1; } }
/* Auftakt-Variante: das FOTO trägt das 5fr-Gewicht (Über uns) */
.split-53.photo-lead { grid-template-columns: 5fr 4fr; align-items: stretch; }
.split-53.photo-lead .photo img { height: 100%; min-height: 460px; }
@media (max-width: 820px) {
  /* FEHLER-019-Fix: .split-53.photo-lead (0,2,0) schlug den 1-Spalten-Override
     (0,1,0) - deshalb renderte uber-uns @390 als gequetschte 2-Spalten-Zeile.
     Der Override braucht dieselbe Spezifität. */
  .split-53, .split-53.photo-lead { grid-template-columns: 1fr; }
  .split-53.photo-lead .photo img { min-height: 0; aspect-ratio: 4 / 5; }
}

/* ---- Legal (T0) ---- */
body[data-page="legal"] .page-head { padding-top: clamp(1.4rem, 3vw, 2.2rem); }
.legal { padding-block: clamp(1.2rem, 2.5vw, 2rem) clamp(2.6rem, 5vw, 4rem); }
.legal h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 2rem; }
.legal h2 {
  font-size: 1.15rem;
  margin: 3.2rem 0 .7rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 720px) {
  .legal h2 { padding-top: calc(1.6rem + 8px); }
}
.legal p, .legal li { font-size: .98rem; color: var(--ink-2); }
.legal ul { padding-left: 1.2rem; margin-bottom: 1.2rem; }
.legal a { border-bottom: 1px solid var(--line-strong); }
.legal a:hover { color: var(--signal-text); border-color: var(--signal); }
/* Sprungliste: Mono-Ziffern + Hairline-Zeilen */
.legal-toc {
  list-style: none;
  margin: 1.8rem 0 0; padding: 0;
  border-top: 1px solid var(--line);
  counter-reset: toc;
}
.legal-toc li { counter-increment: toc; margin: 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.legal-toc a {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: .6rem; align-items: baseline;
  padding: .6rem .1rem;
  border-bottom: 0;
  color: var(--ink-2);
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 540;
  letter-spacing: .12em;
  color: var(--signal-text);
}
.legal-toc a:hover { color: var(--signal-text); }

/* ---- Footer (bündig - kein Dead-Cream-Void vor dem Footer) ---- */
.footer {
  background: var(--asphalt-2);
  color: var(--on-asphalt-2);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block: clamp(2.6rem, 5vw, 4rem) 2.6rem;
}
.footer .brand-plate { background: oklch(99% 0.004 85 / .06); }
.footer-claim { margin-top: 1.2rem; max-width: 30ch; font-size: .94rem; }
.footer h4 {
  color: var(--on-asphalt);
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 540;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-nav { list-style: none; display: grid; gap: .45rem; font-size: .94rem; }
.footer-nav a:hover { color: var(--on-asphalt); }
.footer-contact { list-style: none; display: grid; gap: .6rem; font-size: .94rem; }
.footer-contact li { display: grid; grid-template-columns: 5.2rem 1fr; gap: .8rem; align-items: baseline; }
.footer-contact .lbl {
  font-family: var(--font-mono); font-size: .64rem; font-weight: 540;
  letter-spacing: .14em; text-transform: uppercase;
  color: oklch(96.5% 0.012 85 / .45);
}
.footer-contact a { border-bottom: 1px solid var(--on-asphalt-line); overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--on-asphalt); border-color: var(--signal); }
.footer-meta {
  border-top: 1px solid var(--on-asphalt-line);
  padding-block: 1.4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem;
  color: oklch(96.5% 0.012 85 / .5);
}
.footer-meta a { border-bottom: 1px solid transparent; }
.footer-meta a:hover { color: var(--on-asphalt); border-color: var(--signal); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- 404 ---- */
.page-404 { text-align: left; padding-block: clamp(3rem, 8vw, 6rem); }
.page-404 .code {
  font-family: var(--font-mono); font-weight: 560; font-size: .8rem;
  letter-spacing: .14em; color: var(--signal-text);
  margin-bottom: 1rem; display: block;
}
.page-404 h1 { margin-bottom: 1rem; }
.page-404 .hero-cta { margin-top: 1.8rem; }

/* ---- Reveals: der Hidden-State (.pre) wird AUSSCHLIESSLICH per JS gesetzt -
   und erst NACH der IntersectionObserver-Registrierung. Ohne JS, ohne IO,
   bei reduced-motion oder wenn IO nie feuert ist der Content IMMER sichtbar. ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal, .reveal-stagger > * { transition: opacity .65s var(--ease), transform .65s var(--ease); }
  .reveal.pre { opacity: 0; transform: translateY(18px); }
  /* Direktionale Choreografie - EINE Easing-Sprache, verschiedene Wege:
     Spec-Tafeln sliden von rechts ein, Fotos setzen sich per Scale,
     Ledger-Zeilen kaskadieren (Delays via JS-Batch + Stagger-Container). */
  .reveal-left.pre  { transform: translateX(-28px); }
  .reveal-right.pre { transform: translateX(32px); }
  .reveal-scale.pre { transform: scale(1.035); }
  .reveal-2 { transition-delay: .08s; }
  .reveal-3 { transition-delay: .16s; }
  .reveal-stagger.pre > * { opacity: 0; transform: translateY(14px); }
  .reveal-stagger > *:nth-child(2) { transition-delay: .07s; }
  .reveal-stagger > *:nth-child(3) { transition-delay: .14s; }
  .reveal-stagger > *:nth-child(4) { transition-delay: .21s; }
  .reveal-stagger > *:nth-child(5) { transition-delay: .28s; }
  .reveal-stagger > *:nth-child(6) { transition-delay: .35s; }
  .reveal-stagger > *:nth-child(7) { transition-delay: .42s; }
  .reveal-stagger > *:nth-child(n+8) { transition-delay: .49s; }
  /* Nach dem Einblenden fallen die Kaskaden-Delays weg,
     damit Hover-Transforms (Foto-Lift) sofort feuern */
  .reveal-stagger.settled > * { transition-delay: 0s; }
}

/* ---- Print ---- */
@media print {
  .nav, .footer, .mobile-bar, .roadline, .cta-band, form { display: none !important; }
  body { color: black; background: white; }
  a { color: black; text-decoration: underline; }
}

/* ---- A11y utility ---- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ============================================================
   PASS B (2026-07-13) - Cross-Document View Transitions.
   App-artige Navigation, progressive Enhancement (Browser ohne
   Support navigieren normal). ~220ms Fade+Slide, EINE Easing-
   Sprache (--ease). Header/Footer/Mobile-Bar sind benannt und
   bleiben stehen - nur der Inhalt (root) blendet über.
   reduced-motion → kein Übergang (sofortiger Wechsel).
   ============================================================ */
@view-transition { navigation: auto; }

.nav        { view-transition-name: site-header; }
.footer     { view-transition-name: site-footer; }
.mobile-bar { view-transition-name: mobile-bar; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(*) {
    animation-duration: .22s;
    animation-timing-function: var(--ease);
  }
  ::view-transition-old(root) { animation-name: vt-out; }
  ::view-transition-new(root) { animation-name: vt-in; }
}
@keyframes vt-out { to   { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}
