/* ============================================================================
   Regain Automation — Website v3 "NACHTSCHICHT" (Jury-Spec 17.07.2026)
   ----------------------------------------------------------------------------
   Motion-Gesetz: Bewegung ist entweder ARBEIT (Maschinentakt, linear) oder
   ANTWORT (auf Eingabe, weiches Easing) — nie Deko.
   Ehrlichkeits-Gesetz: echte Uhr nur in der Zeit-Zeile; alles Geskriptete
   traegt Szenario-Zeit + sichtbares Label "Beispielablauf".
   Farb-Gesetze aus tokens.json: Gold-TEXT nur auf Obsidian (8,76:1) — darum
   ist der Hero dunkel: dort liegt das gesamte Drama-Budget der Palette.
   Kein Verlauf (Range-Fill nutzt einen HARTEN Farbwechsel, keinen Ramp).
   Radius 0 ueberall — die Marke ist print-geboren.
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---------------------------------------------------------------- */
:root {
  --parchment: #fcf0da;
  --white: #ffffff;
  --obsidian: #161616;
  --ink-strong: #161616;
  --ink-body: #564f43;
  --ink-muted: #736b5f;
  --gold: #e8a938;
  --hairline: #d7d3cc;
  --ink-inverse: #fcf0da;
  --ink-inverse-body: rgba(252, 240, 218, 0.82);
  --ink-inverse-soft: rgba(252, 240, 218, 0.65);
  --hairline-inverse: rgba(252, 240, 218, 0.18);
  --panel-inverse: rgba(252, 240, 218, 0.04);

  --shadow-soft: 0 1px 1px rgba(30, 22, 8, 0.08), 0 16px 32px -8px rgba(30, 22, 8, 0.12);
  --shadow-deep: 0 2px 4px rgba(30, 22, 8, 0.08), 0 32px 64px -16px rgba(30, 22, 8, 0.22);
  --shadow-hover: 0 2px 3px rgba(30, 22, 8, 0.08), 0 24px 44px -10px rgba(30, 22, 8, 0.18);

  --t-xs: 0.8125rem;
  --t-sm: 0.875rem;
  --t-body: 1rem;      /* 16px — Fliesstext eine Stufe kleiner (B, 20.07.2026); war 1.0625rem/17px */
  --t-lead: 1.125rem;  /* 18px — Lead eine Stufe kleiner (B); war 1.1875rem/19px */
  --t-h3: 1.625rem;
  --t-h2: clamp(2rem, 1.2rem + 2.9vw, 3.25rem);
  --t-display: clamp(2.4rem, 1.35rem + 3.8vw, 4.25rem);
  --t-h1: clamp(2.75rem, 1.1rem + 4.9vw, 4.6rem); /* deutsche Zeilenlaengen: "Ihre Zeit zurueck." setzt das Limit */
  --t-step: clamp(3.25rem, 2.5rem + 2.8vw, 5rem);

  --ease-human: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Livos Kurve — Antworten */
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-swap: cubic-bezier(0.44, 0, 0.56, 1);

  --measure: 34em;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 4.5rem;
  --wrap: 75rem;
}

/* ---- Reset ------------------------------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* overflow-x doppelt: hidden = Fallback, clip = kein Scroll-Container -> iOS kann NICHT
   mehr seitlich hinausziehen (Gummiband-Panning); hidden nur auf body reichte dort nicht. */
html { -webkit-text-size-adjust: 100%; color-scheme: light; overflow-x: hidden; overflow-x: clip; }
/* Smooth-Scroll nur, wenn Bewegung erlaubt ist (Reduced-Motion-Gesetz gilt auch für Anker) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-strong);
  background: var(--parchment);
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* Touch: 300ms-Delay/Doppeltipp-Zoom weg, Tap-Flash bewusst aus (Slider ausgenommen) */
a, button, summary, [role="switch"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* Skip-Link: erst bei Tastatur-Fokus sichtbar */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--obsidian);
  color: var(--parchment);
  padding: 0.75rem 1.25rem;
  font-size: var(--t-sm);
  font-weight: 700;
  transition: transform 0.15s var(--ease-ui);
}
.skip-link:focus { transform: translateY(0); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
/* Nur für Screenreader (Rechner-Endwert-Ansage) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
section { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ---- Typo ------------------------------------------------------------------- */
h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: var(--t-h2); letter-spacing: -0.025em; }
h3 { font-size: var(--t-h3); }
p { max-width: var(--measure); color: var(--ink-body); text-wrap: pretty; }
strong { font-weight: 700; color: var(--ink-strong); }
.lead { font-size: var(--t-lead); line-height: 1.7; }
.kicker {
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: none;
}
.chip {
  display: inline-block;
  padding: 0.5rem 1rem 0.45rem;
  border: 2px solid var(--gold);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-strong);
  line-height: 1;
  white-space: nowrap;
}

/* ---- Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.75rem;
  padding: 0.9rem 2rem;
  font: 700 1.125rem/1.2 "Poppins", sans-serif;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
              transform 0.15s var(--ease-ui), box-shadow 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--ink-strong); }
.btn-gold:hover { transform: scale(1.03); box-shadow: 0 8px 32px rgba(232, 169, 56, 0.25); }
.btn-ghost { border-color: rgba(252, 240, 218, 0.5); color: var(--ink-inverse); }
.btn-ghost:hover { border-color: var(--parchment); background: rgba(252, 240, 218, 0.06); }
.btn-obsidian { background: var(--obsidian); color: var(--parchment); box-shadow: 0 2px 4px rgba(30,22,8,.14), 0 24px 48px -12px rgba(30,22,8,.28); }
.btn-obsidian:hover { transform: scale(1.03); }
.btn-nav { min-height: 2.875rem; padding: 0.5rem 1.3rem; font-size: 0.9375rem; }

/* ---- Header (zwei Zustaende: ueber dem dunklen Hero / danach solide) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; }
.brand img { height: 2.15rem; width: auto; }
.brand .brand-dark { display: none; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink-body);
}
.site-nav a:not(.btn):hover { color: var(--ink-strong); }
.site-nav .btn-nav { border-color: var(--obsidian); color: var(--ink-strong); }
.site-nav .btn-nav:hover { background: var(--obsidian); color: var(--parchment); }

.site-header.on-dark-header {
  /* über dem Video: dunkle Frost-Leiste (0.48) + volle Gold-Naht — Classic, Nav hell */
  background: rgba(22, 22, 22, 0.48);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--gold);
}
.on-dark-header .brand .brand-dark { display: block; }
.on-dark-header .brand .brand-light { display: none; }
.on-dark-header .site-nav a:not(.btn) { color: var(--ink-inverse-soft); }
.on-dark-header .site-nav a:not(.btn):hover { color: var(--ink-inverse); }
.on-dark-header .site-nav .btn-nav { border-color: var(--gold); color: var(--ink-inverse); }
.on-dark-header .site-nav .btn-nav:hover { background: rgba(232, 169, 56, 0.14); color: var(--ink-inverse); border-color: var(--gold); }
/* Über dem Hero KEINEN Header-CTA — das Panel hat schon einen (keine Doppelung); erscheint erst danach */
.site-header.on-dark-header .site-nav .btn-nav { display: none; }

/* Hamburger — nur Mobile sichtbar (siehe @media 64rem). Farbe folgt dem Header-Zustand. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;   /* volles Touch-Ziel */
  margin-right: -0.5rem;       /* optische Kante zur Wrap-Padding */
  color: var(--ink-strong);
  flex-shrink: 0;
}
.on-dark-header .nav-toggle { color: var(--ink-inverse); }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: currentColor;
  transition: transform 0.28s var(--ease-ui), opacity 0.16s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-lock { overflow: hidden; }

/* ---- HERO: Nachtschicht -------------------------------------------------------- */
.hero {
  /* Justierung Hüseyin (18.07.2026): Glas-Panel + V3-Video, Classic-Frostleiste */
  --glass-blur: 12px; --glass-tint: 0.3; --glass-sat: 1; --panel-w: 42%;
  --scrim: 0.56; --glow: 0.2; --video-blur: 0px; --seam: 0.5;
  position: relative;
  margin-top: calc(-1 * var(--header-h)); /* Video liegt full-bleed HINTER der Frost-Leiste */
  min-height: 100svh;
  background: var(--obsidian);
  color: var(--ink-inverse);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video, .hero-poster {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(var(--video-blur)) saturate(0.9) brightness(0.82);
}
.hero-poster { position: absolute; inset: 0; background: center / cover no-repeat; display: none; }
/* Scrim = Lesbarkeit (kein Marken-Verlauf): rechts leichte Vignette, oben/unten minimal */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(22, 22, 22, 0) 52%, rgba(22, 22, 22, var(--scrim)) 100%),
    linear-gradient(0deg, rgba(22, 22, 22, 0.22), rgba(22, 22, 22, 0) 12%);
}
.hero-glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(38% 46% at 70% 52%, rgba(232, 169, 56, var(--glow)), rgba(232, 169, 56, 0) 70%);
  opacity: 0.85;
}
/* Milchglas-Panel trägt die Copy — Video dahinter gefrostet (Lesbarkeits-Substrat) */
.hero-panel {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 4;
  width: var(--panel-w);
  display: flex; align-items: center;
  padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  padding-top: var(--header-h); /* Inhalt zentriert UNTER der Frostleiste, nicht dahinter (720p-safe) */
  padding-right: 2.5rem;
  background: rgba(22, 22, 22, var(--glass-tint));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border-right: 1px solid rgba(232, 169, 56, var(--seam));
  box-shadow: 1px 0 40px rgba(0, 0, 0, 0.25);
}
/* Abstands-Hierarchie statt Einheitslueke: eng in der Gruppe, Luft zwischen den
   Gruppen. gap:0 — jeder Zeilenabstand wird per margin-top unten explizit gesetzt. */
.hero-copy { display: flex; flex-direction: column; gap: 0; align-items: flex-start; max-width: 38rem; width: 100%; transform: translateY(-8px); } /* optische statt mathematischer Mitte (kopflastiger Block) */
/* Idle-Glühen atmet weiter (nur wenn Motion erlaubt) — der „fertig"-Puls */
@media (prefers-reduced-motion: no-preference) {
  .hero-glow { animation: heroBreathe 6s ease-in-out infinite; }
}
@keyframes heroBreathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
/* Reduced Motion: kein Video, Standbild (aufgelöstes Flowchart) statt Autoplay */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-poster { display: block; }
}
.hero .kicker { color: var(--ink-inverse-soft); }
/* Option B (18.07.2026, Panel-Direktive): Kicker gestrichen, H1 ist der Einstieg —
   44px Deckel (clamp), Display-Leading 1.05, Bruch nach „sich" per <br> erzwungen.
   44px = Aufmerksamkeit; das Drama kommt aus Contrast + Negativraum, nicht aus pt. */
.hero h1 { color: var(--ink-inverse); font-size: clamp(1.9rem, 0.9rem + 2.8vw, 2.75rem); line-height: 1.05; letter-spacing: -0.03em; margin-top: 0; }
.hero-br { display: block; content: ""; }
.hero h1 .gold { color: var(--gold); } /* die einzige legale Gold-Text-Stelle (8,76:1) */
.hero h1 .w { display: inline-block; }
.hero-u { position: relative; }
.hero-u::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.08em;
  bottom: -0.06em;
  height: 3px;
  background: var(--gold);
  transform-origin: left;
}
.hero-sub { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-inverse-body); max-width: 30em; margin-top: 2rem; }
/* Mobile-Video-Fenster (Option A, 20.07.2026): Desktop aus — dort läuft das Video als Bühne */
.hero-shot { display: none; }
.hero-shot video { display: block; width: 100%; height: auto; }
/* Der Schnitt (grüne Linie): Text-Gruppe endet, Handlungs-Gruppe beginnt — die
   staerkste Zaesur der Spalte, damit der Block die Panel-Hoehe fuellt (720p-safe). */
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 5rem; }
.hero-micro { font-size: var(--t-sm); color: var(--ink-inverse-soft); margin-top: 1rem; }
.hero-person { display: flex; align-items: center; gap: 0.9rem; margin-top: 4rem; }
.hero-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.hero-person p { font-size: var(--t-sm); line-height: 1.45; color: var(--ink-inverse-soft); max-width: none; }
.hero-person strong { display: block; color: var(--ink-inverse); font-size: 1rem; }
.hero-baseline { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); z-index: 5; }

/* Orbit-CTA: brandkonformer Ersatz fuer Livos Conic-Border — ein Gold-Komet
   umrundet den Button EINMAL beim Boot und je einmal pro Hover. Kein Verlauf. */
.orbit-wrap { position: relative; display: inline-flex; }
.orbit { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); pointer-events: none; overflow: visible; }
.orbit rect {
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 26 74;
  stroke-dashoffset: 0;
  opacity: 0;
}

/* ---- Terminal (nur noch das Mini im Vorgehen — Hero-Terminal seit v5 gestrichen) --- */
.terminal {
  position: relative;
  background: var(--panel-inverse);
  border: 1px solid rgba(252, 240, 218, 0.22);
  padding: 1.4rem;
}
.terminal-head { display: flex; align-items: center; gap: 0.75rem; }
.terminal-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-inverse-soft);
}
.terminal-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--obsidian); /* einzige Tinte auf Gold */
  padding: 0.2rem 0.5rem;
}
.terminal-window { margin-top: 0.9rem; height: 220px; overflow: hidden; }
.terminal-mini .terminal-window { height: 176px; }
.terminal-log { transition: transform 0.4s var(--ease-human); }
.terminal-log li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  height: 44px;
  padding-right: 28px;
  position: relative;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ink-inverse-body);
  transition: opacity 0.4s ease;
}
.terminal-log .t { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold); flex-shrink: 0; }
.terminal-log .x { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terminal-log li.dim { opacity: 0.35; }
.terminal-log li.done::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 0.55em;
  width: 0.75em;
  height: 0.4em;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.terminal-log li.typing::after {
  content: "\2026";
  position: absolute;
  right: 6px;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---- Boot-Choreografie (nur mit JS + Motion erlaubt; sonst steht alles) ----------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero .w {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(8px);
    animation: wordIn 0.6s var(--ease-human) forwards;
    animation-delay: calc(100ms + var(--wi) * 70ms);
  }
  html.js .hero .boot {
    opacity: 0;
    transform: translateY(12px);
    animation: bootIn 0.5s var(--ease-human) forwards;
    animation-delay: calc(250ms + var(--bt) * 180ms);
  }
  html.js .hero-u::after { transform: scaleX(0); animation: lineIn 0.4s ease-out 750ms forwards; }
  html.js .orbit rect { animation: orbit 1.2s linear 800ms 1 both, orbitOut 0.3s linear 2000ms forwards; }
  .orbit-wrap:hover .orbit rect, .orbit-wrap:focus-within .orbit rect { opacity: 1; animation: orbit 1.2s linear; }
  html.js [data-reveal] { opacity: 0; transform: translateY(18px); }
  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s var(--ease-human), transform 0.6s var(--ease-human);
    transition-delay: calc(var(--stagger, 0) * 90ms);
  }
}
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes bootIn { to { opacity: 1; transform: none; } }
@keyframes lineIn { to { transform: scaleX(1); } }
@keyframes orbit { from { opacity: 1; stroke-dashoffset: 0; } to { opacity: 1; stroke-dashoffset: -100; } }
@keyframes orbitOut { from { opacity: 1; } to { opacity: 0; } }

/* ---- Sektionen ---------------------------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section-white { background: var(--white); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .chip { margin-bottom: 1.5rem; }
.section-head p { margin-top: 1.25rem; }

/* ---- Schmerz -------------------------------------------------------------------------- */
.section-pain { padding-block: clamp(6rem, 11vw, 10rem); }
.section-pain h2 { font-size: var(--t-display); }
.pain-list { max-width: 54rem; }
.pain-list li {
  position: relative;
  border-top: 1px solid var(--hairline);
  padding: clamp(1.5rem, 3vw, 2.1rem) 0 clamp(1.5rem, 3vw, 2.1rem) 3rem;
  font-size: clamp(1.375rem, 1rem + 1.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.pain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(clamp(1.5rem, 3vw, 2.1rem) + 0.28em);
  width: 24px;
  height: 24px;
  background: var(--gold); /* Flaeche >= 24px = legal */
}
.pain-list li:last-child { border-bottom: 1px solid var(--hairline); }
.pain-bridge { margin-top: 2.5rem; font-size: var(--t-lead); }

/* ---- Leitstand (Leistungen): dunkle Insel, Chat + Service-Videos -------------------------
   Abnahme Hüseyin 19./20.07.2026 (Exploration 1·L2). BEWUSSTE Ausnahme vom Radius-0-Gesetz:
   die Insel ist ein Bildschirm-Objekt (Leitstand), kein Print-Artefakt — Radien sind Teil
   der abgenommenen Anmutung. Videos: self-hosted, ohne Tonspur, Poster = Endzustand. */
.leitstand {
  position: relative; isolation: isolate; background: var(--obsidian);
  border-radius: 28px; padding: clamp(1.6rem, 4vw, 3.75rem); overflow: hidden;
  color: var(--ink-inverse);
  box-shadow: 0 1px 0 rgba(252, 240, 218, 0.05) inset, 0 24px 60px -20px rgba(20, 12, 0, 0.5);
}
.leitstand::before {
  content: ""; position: absolute; inset: -12%; z-index: -2;
  background:
    radial-gradient(58% 46% at 8% -4%, rgba(232, 169, 56, 0.11), transparent 62%),
    radial-gradient(46% 58% at 104% 26%, rgba(232, 169, 56, 0.08), transparent 58%),
    radial-gradient(70% 62% at 82% 108%, rgba(232, 169, 56, 0.09), transparent 60%);
}
.leitstand::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.5; 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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  .leitstand::before { animation: aurora 18s var(--ease-human) infinite alternate; }
}
@keyframes aurora { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }

.ls-head { margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
/* Zweispaltige Kopfzeile: H2 links, Beschreibung rechts baseline-bündig — nutzt die
   volle Inselbreite mit Absicht, hält die H2 aber im lesbaren Measure (Chris Do). */
.ls-head-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: end; }
.ls-head-row p { margin: 0 0 0.35rem; font-size: var(--t-lead); line-height: 1.55; color: var(--ink-inverse-body); max-width: 34em; }
.ls-eyebrow { display: inline-block; font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.ls-head h2 { font-size: clamp(2rem, 1.2rem + 2.7vw, 3rem); color: var(--ink-inverse); max-width: 15em; }
.ls-head .em { color: var(--ink-inverse); font-weight: 700; }

.ls-board { display: flex; flex-direction: column; gap: clamp(1.1rem, 2.2vw, 1.6rem); --demo-h: 27rem; }
.ip {
  position: relative; background: #1c1c1c; border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: inset 0 1px 0 rgba(252, 240, 218, 0.08);
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}
.ip::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(232, 169, 56, 0.4), transparent); opacity: 0.72; transition: opacity 0.3s ease; }
.ip:hover::before { opacity: 1; }

.ip-marker { display: flex; align-items: baseline; gap: 0.85rem; margin-bottom: 1.1rem; }
.ip-no { font-size: clamp(3rem, 2rem + 3vw, 4.25rem); font-weight: 700; line-height: 0.85; letter-spacing: -0.03em; background: linear-gradient(175deg, var(--parchment) 8%, var(--gold) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ip-label { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.ip h3 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.5rem); color: var(--ink-inverse); margin-bottom: 1.25rem; }
.ip-bullets { display: flex; flex-direction: column; gap: 0.7rem; }
.ip-bullets li { position: relative; padding-left: 1.5rem; font-size: var(--t-body); line-height: 1.65; color: var(--ink-inverse-body); }
.ip-bullets li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--gold); }

.ip-demo { min-width: 0; }
.ip-shot { position: relative; height: var(--demo-h); border-radius: 16px; overflow: hidden; border: 1px solid var(--hairline-inverse); background: #0f0f0f; box-shadow: inset 0 1px 0 rgba(252, 240, 218, 0.06); display: grid; place-items: center; }
.ip-shot img, .ip-shot video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ip-shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(232, 169, 56, 0.12), inset 0 0 40px -12px rgba(232, 169, 56, 0.25); }
/* Video-Kanten unsichtbar: Prozesse-Slot liegt exakt auf dem gemessenen Video-Schwarz;
   Strategie (1:1-Ambient) füllt den Slot absolut + symmetrisch beschnitten. */
.ip-shot--pz { background: #0a0a0a; }
.ip-shot--cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Markus-Chat (01) — Szenario-Zeit + Label "Nachgestelltes Beispiel" (Ehrlichkeits-Gesetz) */
.agent-chat {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--hairline-inverse);
  background: radial-gradient(120% 90% at 85% 4%, rgba(232, 169, 56, 0.10), transparent 55%), #0f0f0f;
  box-shadow: inset 0 1px 0 rgba(252, 240, 218, 0.06);
  padding: clamp(0.8rem, 1.8vw, 1.1rem);
  height: var(--demo-h); /* fixe Höhe = exakt wie die Video-Slots 02/03 */
  display: flex; flex-direction: column; gap: 0.4rem;
}
.agent-chat::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(232, 169, 56, 0.12), inset 0 0 44px -14px rgba(232, 169, 56, 0.28); }
.ac-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 0.35rem 0.6rem; flex-wrap: wrap; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(252, 240, 218, 0.08); flex-shrink: 0; }
.ac-peer { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.ac-peer-name { min-width: 0; }
/* Ein-Gold-Gesetz: kein zweites Hell-Gold, kein Verlauf — reine Gold-Fläche (QA-Fix 20.07.2026) */
.ac-mono { position: relative; width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: var(--obsidian); background: var(--gold); box-shadow: 0 0 20px -6px rgba(232, 169, 56, 0.6); }
.ac-mono::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: #57d07f; border: 2px solid #0f0f0f; }
.ac-peer-name { font-size: 0.9rem; font-weight: 700; color: var(--ink-inverse); line-height: 1.15; }
.ac-role { font-weight: 400; color: var(--ink-inverse-soft); }
.ac-head .ac-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-inverse-soft); white-space: nowrap; }
.ac-thread { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.32rem; flex: 1; overflow: hidden; justify-content: flex-start; }
.ac-row { display: flex; gap: 0.5rem; align-items: flex-end; }
.ac-in { justify-content: flex-start; }
.ac-out { justify-content: flex-end; }
.ac-bubble { max-width: 83%; padding: 0.4rem 0.62rem; border-radius: 12px; font-size: 0.82rem; line-height: 1.3; color: var(--ink-inverse); }
.ac-bubble p { margin: 0; color: inherit; max-width: none; }
.ac-time { display: block; margin-top: 0.18rem; font-size: 0.6rem; letter-spacing: 0.02em; color: var(--ink-inverse-soft); }
.ac-check { color: var(--gold); font-weight: 700; letter-spacing: -0.05em; }
.ac-boss { background: rgba(252, 240, 218, 0.10); border: 1px solid rgba(252, 240, 218, 0.12); border-bottom-right-radius: 5px; }
.ac-agent { background: rgba(232, 169, 56, 0.07); border: 1px solid rgba(232, 169, 56, 0.34); border-bottom-left-radius: 5px; box-shadow: 0 0 26px -12px rgba(232, 169, 56, 0.5); }
.ac-typing-row { display: none; }
.ac-typing { display: inline-flex; align-items: center; gap: 0.65rem; }
.ac-dots { display: inline-flex; gap: 0.28rem; }
.ac-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: block; animation: acdot 1.25s var(--ease-human) infinite; }
.ac-dots i:nth-child(2) { animation-delay: 0.16s; }
.ac-dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes acdot { 0%, 60%, 100% { opacity: 0.28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ac-status { font-size: 0.78rem; color: var(--ink-inverse-soft); white-space: nowrap; }
.ac-draft { border-left: 3px solid var(--gold); border-bottom-left-radius: 5px; }
.ac-draft-tag { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.2rem; }
.ac-done { border-color: rgba(232, 169, 56, 0.5); }
.ac-receipt { display: block; margin-top: 0.3rem; padding-top: 0.3rem; border-top: 1px solid rgba(232, 169, 56, 0.2); font-size: 0.64rem; color: rgba(232, 169, 56, 0.85); letter-spacing: 0.01em; }
/* Motion-Gate: ohne .anim (JS) steht der komplette Verlauf — reduced-motion & no-JS sehen alles */
.agent-chat.anim .ac-row { opacity: 0; transform: translateY(10px) scale(0.985); transition: opacity 0.42s var(--ease-human), transform 0.42s var(--ease-human); }
.agent-chat.anim .ac-row.in { opacity: 1; transform: none; }

.ls-foot { margin-top: clamp(2.25rem, 4.5vw, 3.5rem); padding-top: clamp(1.75rem, 3.5vw, 2.75rem); border-top: 1px solid var(--hairline-inverse); display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.ls-foot .btn-gold { border-radius: 12px; }
.ls-foot p { font-size: var(--t-sm); color: var(--ink-inverse-soft); margin: 0; max-width: none; }

@media (prefers-reduced-motion: reduce) {
  .ac-dots i { animation: none; opacity: 0.7; }
}
@media (max-width: 56rem) {
  .ls-head-row { grid-template-columns: 1fr; gap: 0; align-items: start; }
  .ls-head-row p { margin-top: 1.15rem; }
  .ip { grid-template-columns: 1fr; gap: 1.75rem; }
  .ls-board { --demo-h: auto; }
  .agent-chat { min-height: 20rem; }
  .ip-shot { height: auto; }
  .ip-shot img, .ip-shot video { height: auto; }
  /* Strategie (03): Video ist physisch 1:1 (Ambient-Blur-Füllung), der 16:9-Kern sitzt MITTIG
     im Quadrat. Das Fenster ist 16:9, das Video füllt es per cover -> mittiger Beschnitt zeigt
     genau den Kern (Bug-Report Hüseyin 20.07.2026). WICHTIG: height:100% zurücksetzen — sonst
     greift oben `height:auto` und das Quadrat wird oben-verankert (schwarze Kante + Stationen weg). */
  .ip-shot--cover { aspect-ratio: 16 / 9; height: auto; }
  .ip-shot--cover video { height: 100%; object-fit: cover; object-position: 50% 50%; }
}

/* ---- Rechner ------------------------------------------------------------------------------ */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 4.5vw, 4rem); align-items: start; }
.calc-presets { display: flex; flex-wrap: wrap; border: 1px solid var(--hairline); margin-bottom: 2rem; }
.calc-presets button {
  flex: 1 1 auto;
  min-height: 2.875rem;              /* Touch-Ziel */
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-muted);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.calc-presets button + button { border-left: 1px solid var(--hairline); }
.calc-presets button.is-on { background: var(--obsidian); color: var(--parchment); }
.calc-presets button:active { transform: none; }
.calc-slider { margin-bottom: 1.75rem; }
.calc-slider label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: var(--t-body); color: var(--ink-body); margin-bottom: 0.6rem; }
.calc-slider output { font-weight: 700; color: var(--ink-strong); font-variant-numeric: tabular-nums; font-size: 1.25rem; }
.calc-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px; /* Klickziel */
  background: transparent;
  cursor: pointer;
  --fill: 50%;
}
.calc-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  /* harter Farbwechsel, kein Ramp — brandkonform */
  background: linear-gradient(to right, var(--gold) var(--fill), var(--hairline) var(--fill));
}
.calc-slider input[type="range"]::-moz-range-track { height: 4px; background: var(--hairline); }
.calc-slider input[type="range"]::-moz-range-progress { height: 4px; background: var(--gold); }
.calc-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--obsidian);
  margin-top: -9px;
}
.calc-slider input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; background: var(--obsidian); border: 0; border-radius: 0; }
.calc-slider input[type="range"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.calc-formula { font-size: 0.9375rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.calc-privacy { font-size: var(--t-xs); color: var(--ink-muted); margin-top: 0.5rem; }
.calc-result { display: flex; flex-direction: column; gap: 1.4rem; }
.calc-tile { background: var(--gold); padding: clamp(1.75rem, 3.5vw, 2.5rem); display: flex; flex-direction: column; gap: 1.4rem; }
.calc-tile p { color: var(--ink-strong); font-size: 1rem; }
.calc-num span { display: block; font-size: clamp(2.5rem, 2rem + 1.8vw, 3.5rem); font-weight: 700; line-height: 1; color: var(--ink-strong); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.calc-num em { display: block; font-style: normal; font-size: var(--t-sm); color: var(--ink-strong); margin-top: 0.35rem; }
.calc-bridge { font-size: 1rem; }
.calc-result .btn { align-self: flex-start; }

/* ---- Vorgehen (dunkel) + Aus-Schalter ------------------------------------------------------ */
.section-dark { background: var(--obsidian); color: var(--ink-inverse); padding-block: clamp(5.5rem, 11vw, 10rem); }
.section-dark h2, .section-dark h3 { color: var(--ink-inverse); }
.section-dark p { color: var(--ink-inverse-body); }
.manifesto { font-size: var(--t-display); max-width: 16em; }
.manifesto .gold-word { color: var(--gold); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4.5vw, 3.5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.step { border-top: 1px solid var(--hairline-inverse); padding-top: 1.75rem; }
.step-no { font-size: var(--t-step); font-weight: 700; line-height: 0.95; letter-spacing: -0.02em; color: var(--gold); display: block; }
.step h3 { margin-block: 1rem 0.6rem; }

.switch-block {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--hairline-inverse);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: start;
}
.switch-copy { display: flex; flex-direction: column; gap: 1rem; }
.switch-row { display: flex; align-items: center; gap: 1.25rem; margin-block: 0.5rem; }
.switch { position: relative; width: 96px; height: 52px; flex-shrink: 0; }
.switch-track {
  position: absolute;
  inset: 0;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.switch-track em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--obsidian);
}
.switch-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 44px;
  height: 44px;
  background: var(--obsidian);
  transition: transform 0.3s var(--ease-ui);
}
.switch[aria-checked="true"] .switch-knob { transform: translateX(44px); }
.switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.switch-status { font-size: 1rem; color: var(--ink-inverse); min-height: 1.6em; }
.switch-vows li { color: var(--ink-inverse-body); opacity: 0.5; transition: opacity 0.4s ease calc(var(--vi, 0) * 300ms); }
.switch-vows.lit li { opacity: 1; }

/* Check-Listen (hell + dunkel) */
.check-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.4rem; }
.check-list li { position: relative; padding-left: 1.8rem; color: var(--ink-body); max-width: 44em; }
.on-dark .check-list li { color: var(--ink-inverse-body); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.9em;
  height: 0.5em;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---- Gruender: Kinosektion ------------------------------------------------------------------ */
.founder-cinema { background: var(--white); padding-block: var(--section-y) 0; }
.cinema { display: grid; grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr); align-items: center; }
.cinema-photo { grid-column: 2; grid-row: 1; overflow: hidden; }
.cinema-photo img { width: 100%; height: min(70vh, 38rem); object-fit: cover; object-position: 50% 28%; }
@media (prefers-reduced-motion: no-preference) {
  html.js .cinema-photo img { transform: scale(1.05); transition: transform 1.4s ease-out; }
  html.js .cinema-photo.is-in img { transform: scale(1); }
}
.cinema-block {
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
  background: var(--obsidian);
  color: var(--ink-inverse);
  padding: clamp(2rem, 4vw, 3.5rem);
  margin-right: -80px;
  margin-left: var(--gutter);
}
.cinema-block h2 { color: var(--ink-inverse); font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.25rem); overflow-wrap: break-word; }
.cinema-gold { color: var(--gold); font-weight: 700; font-size: var(--t-lead); margin-top: 0.5rem; max-width: none; }
.cinema-facts { margin-top: 1.5rem; gap: 0.9rem; }
.cinema-link {
  display: inline-block;
  margin-top: 1.6rem;
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--ink-inverse-body);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cinema-link:hover { color: var(--ink-inverse); }
.founder-bio-wrap { padding-block: clamp(3rem, 6vw, 5rem); }
.founder-bio { display: flex; flex-direction: column; gap: 1.2rem; max-width: 60ch; }

/* ---- FAQ -------------------------------------------------------------------------------------- */
.faq { max-width: 48rem; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}
.faq summary::after { content: "+"; flex-shrink: 0; font-weight: 400; color: var(--ink-muted); font-size: 1.75rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover::after { color: var(--ink-strong); }
.faq details p { padding-bottom: 1.6rem; }

/* ---- Gold-Poster ------------------------------------------------------------------------------- */
.section-gold { background: var(--gold); padding-block: clamp(5.5rem, 11vw, 10rem); }
.section-gold h2 { font-size: var(--t-display); max-width: 14em; color: var(--ink-strong); }
.section-gold p { color: var(--ink-strong); }
.cta-final { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.cta-final p { max-width: 30em; }
.cta-calc-note { font-size: 0.9375rem; font-weight: 700; }
.cta-mail { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; color: var(--ink-strong); }

/* ---- Footer ------------------------------------------------------------------------------------- */
.site-footer { background: var(--obsidian); color: var(--ink-inverse-body); padding-block: 3.5rem 2.5rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-top img { height: 1.5rem; width: auto; }
.footer-mail { color: var(--ink-inverse); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal {
  margin-top: 2.75rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline-inverse);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: var(--t-sm);
}
.footer-legal nav { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--ink-inverse-body); }
.footer-legal a:hover { color: var(--ink-inverse); }

/* ---- Branchen-Seiten (SEO-Landingpages, 20.07.2026) ---------------------------------------------- */
/* Mini-Hero: wie der index-Hero HINTER die Frostleiste gelegt (sonst staende der
   transparente on-dark-Header auf Parchment und wirkte milchig-falsch). */
.branch-hero {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(3.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.branch-hero .kicker { color: var(--gold); margin-bottom: 1.25rem; } /* Gold-Text auf Obsidian: legal */
.branch-hero .lead { margin-top: 1.5rem; max-width: 38em; }
.branch-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.branch-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3rem); }
.branch-block h3 { margin-bottom: 0.9rem; }
.branch-note { margin-top: 2.5rem; max-width: 44em; }
.branch-note + .branch-note { margin-top: 0.75rem; }
.branch-note a { font-weight: 700; text-underline-offset: 3px; }
/* Footer-Branchen-Zeile (alle Seiten) */
.footer-branchen { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-top: 2rem; font-size: var(--t-sm); }
.footer-branchen span { color: var(--ink-inverse-soft); }
.footer-branchen a { color: var(--ink-inverse-body); text-decoration: underline; text-underline-offset: 3px; }
.footer-branchen a:hover { color: var(--ink-inverse); }
.footer-branchen a[aria-current="page"] { color: var(--ink-inverse); font-weight: 700; text-decoration: none; }
/* Kontextzeile unter dem Rechner (index) */
.branchen-line { margin-top: 2.5rem; font-size: var(--t-sm); color: var(--ink-muted); max-width: none; }
.branchen-line a { color: var(--ink-body); font-weight: 700; text-underline-offset: 3px; }
.branchen-line a:hover { color: var(--ink-strong); }

/* ---- Legal-Seiten -------------------------------------------------------------------------------- */
.legal-page { padding-block: var(--section-y); }
.legal-page .wrap > * + * { margin-top: 1.1rem; }
.legal-page h1 { font-size: var(--t-h2); margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin-top: 2.5rem; }
.legal-page h2 + p { margin-top: 0.6rem; }
.legal-todo { border: 2px solid var(--gold); background: var(--white); padding: 1.5rem; max-width: 46rem; box-shadow: var(--shadow-soft); }
.founder-link { display: inline-block; margin-top: 1rem; font-size: var(--t-sm); font-weight: 700; color: var(--ink-body); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Responsive ----------------------------------------------------------------------------------- */
@media (max-width: 64rem) {
  /* Mobile-Navigation: Hamburger sichtbar, Nav wird zum Overlay-Panel */
  .nav-toggle { display: inline-flex; }
  /* No-JS-Fallback: ohne JS gäbe es sonst GAR KEINE Navigation (Panel öffnet nur per JS).
     Dann: Hamburger weg, Links als schlichte Zeile im Header-Fluss (QA-Fix 20.07.2026). */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem 1rem;
    background: transparent;
    border-bottom: 0;
    padding: 0;
    max-height: none;
    box-shadow: none;
  }
  html:not(.js) .site-header .site-nav a:not(.btn) { display: inline; border: 0; padding: 0.25rem 0; font-size: 0.875rem; }
  html:not(.js) .site-header .site-nav .btn-nav { display: none !important; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--obsidian);
    border-bottom: 1px solid var(--gold);
    padding: 0.25rem var(--gutter) 1.75rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.24s var(--ease-ui), visibility 0s linear 0.24s;
    box-shadow: 0 26px 44px -18px rgba(0, 0, 0, 0.7);
  }
  .site-header.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, transform 0.24s var(--ease-ui);
  }
  /* Panel-Links: groß, gestapelt, volle Touch-Zeilen — schlägt das Desktop-display:none */
  .site-header .site-nav a:not(.btn) {
    display: block;
    font-size: 1.1875rem;
    font-weight: 400;
    color: var(--ink-inverse);
    padding: 1.05rem 0.2rem;
    border-top: 1px solid var(--hairline-inverse);
  }
  .site-header .site-nav a:not(.btn):first-of-type { border-top: 0; }
  /* CTA im Panel immer sichtbar (auch über dem Hero) — schlägt on-dark-header:none */
  .site-header .site-nav .btn-nav {
    display: inline-flex !important;
    width: 100%;
    margin-top: 1.4rem;
    min-height: 3.5rem;
    border-color: var(--gold);
    color: var(--ink-inverse);
  }
  .site-header .site-nav .btn-nav:active { background: rgba(232, 169, 56, 0.14); }

  /* Panel in den FLUSS (statt absolute top/bottom): mit dem Video-Fenster ist der Inhalt
     höher als 100svh — absolut + align-center lief oben/unten raus (H1 unterm Header). */
  .hero-panel {
    position: static;
    width: 100%;
    min-height: 100svh;
    padding-right: var(--gutter);
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 2.5rem;
    background: rgba(22, 22, 22, calc(var(--glass-tint) + 0.45));
    border-right: none;
  }
  /* Hero-Video als Fenster im Textfluss (Option A): Hintergrund-Video aus (hinterm 75%-Glas
     unsichtbar, kostet nur GPU) — die Bühne wird flaches Obsidian, das Fenster zeigt den Film. */
  .hero { background: var(--obsidian); }
  .hero-media { display: none; }
  .hero-shot {
    display: block;
    align-self: stretch;
    margin-top: 1.9rem;
    border: 1px solid rgba(232, 169, 56, 0.35); /* Gold-Keyline, Radius 0 — print-geboren */
    box-shadow: 0 0 44px -14px rgba(232, 169, 56, 0.3);
    background: #0a0a0a;
  }
  /* Gestraffte Abstände, damit der CTA im ersten Screen bleibt (Desktop: 5rem/4rem) */
  .hero-cta-row { margin-top: 1.75rem; }
  .hero-person { margin-top: 2.5rem; }
  .calc { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .switch-block { grid-template-columns: 1fr; }
  .cinema { grid-template-columns: 1fr; }
  .cinema-photo { grid-column: 1; grid-row: 1; }
  .cinema-photo img { height: auto; aspect-ratio: 4 / 5; }
  .cinema-block { grid-column: 1; grid-row: 2; margin: -40px var(--gutter) 0; }
  .branch-blocks { grid-template-columns: 1fr; }
}
@media (max-width: 36rem) {
  .chip { font-size: 0.6875rem; letter-spacing: 0.12em; }
  /* .terminal-mini nötig: sonst verliert die Regel gegen .terminal-mini .terminal-window (Specificity) */
  .terminal-mini .terminal-window { height: 132px; }
  .hero-cta-row { align-self: stretch; flex-direction: column; align-items: stretch; }
  .orbit-wrap { display: flex; }
  .orbit-wrap .btn { flex: 1; }
  .cta-final .btn { align-self: stretch; }
  /* Branchen-Presets stapeln = große Touch-Ziele statt Quetsch-Zeile */
  .calc-presets { flex-direction: column; }
  .calc-presets button + button { border-left: 0; border-top: 1px solid var(--hairline); }
  .branch-cta { flex-direction: column; align-items: stretch; }
}
/* Touch-Geräte: keine klebenden :hover-Skalierungen (Tap lässt Buttons sonst vergrößert stehen).
   Nur zurücksetzen, was der jeweilige Hover HINZUFÜGT — Grund-Schatten (btn-obsidian) bleibt. */
@media (hover: none) {
  .btn-gold:hover { transform: none; box-shadow: none; } /* Hover-Glow weg, Basis hat keinen */
  .btn-obsidian:hover { transform: none; }               /* Basis-Schatten NICHT anfassen */
  .btn-gold:active, .btn-obsidian:active, .btn-ghost:active { transform: scale(0.97); }
}
