/* ============================================================
   JROVS – jrovs.de · V5 „Die Akte"
   Scroll-Kino: Frage → Suche → Beleg → Stempel.
   Palette „Leitstand bei Nacht": Nachtgrün, Signalgrün,
   Papierweiß für Dokumente, Amber für „nicht belegbar".
   ============================================================ */

/* ---------- Fonts (self-hosted, DSGVO-konform) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%;
  font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --night: #0b110d;
  --night-2: #101a14;
  --night-3: #16221a;
  --paper: #f4f5f2;
  --card: #ffffff;
  --ink: #1b221e;
  --soft: #4c564f;
  --fog: #9fb0a5;
  --fog-dim: #6d7d72;
  --glow: #43e08c;
  --glow-deep: #1e6b4a;
  --glow-tint: #e6efe8;
  --amber: #e0a13e;
  --amber-deep: #a85c14;
  --amber-tint: #f6ecdd;
  --line-d: rgba(255,255,255,0.09);
  --line-l: #d9ddd6;
  --radius: 12px;
  --maxw: 1180px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Plex Mono", "SFMono-Regular", Consolas, monospace;
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--night);
  color: #e8ede9;
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--glow); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--glow);
  color: var(--night); padding: 10px 16px; z-index: 100; font-weight: 700;
}
.skip:focus { left: 0; }
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--glow); box-shadow: 0 0 12px var(--glow);
  z-index: 60; pointer-events: none;
}

/* ---------- Typo ---------- */
h1, h2, h3 { line-height: 1.05; margin: 0 0 0.5em; }
h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  font-weight: 780; font-stretch: 114%;
  text-transform: uppercase; letter-spacing: 0;
}
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); max-width: 62ch; }
.serif {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  font-size: 1.06em; color: var(--glow);
}
.tab {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--fog-dim);
  margin-bottom: 28px;
}
.tab::after { content: ""; flex: 1; height: 1px; background: var(--line-d); }
.light .tab { color: var(--soft); }
.light .tab::after { background: #c3cabf; }

/* Stempel-Chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 6px 12px; border-radius: 3px; white-space: nowrap;
  transform: rotate(-1.2deg);
}
.chip--ok { color: var(--glow); border: 1.5px solid rgba(67,224,140,0.6); background: rgba(67,224,140,0.07); }
.chip--warn { color: var(--amber); border: 1.5px dashed rgba(224,161,62,0.6); transform: rotate(0.9deg); }
.light .chip--ok { color: var(--glow-deep); border-color: #9cc7ab; background: var(--glow-tint); }
.light .chip--warn { color: var(--amber-deep); border-color: #d9b988; background: var(--amber-tint); }

/* ---------- Abschnittsfarben ---------- */
.dark { background: var(--night); color: #e8ede9; }
.dark .lede { color: var(--fog); }
.light { background: var(--paper); color: var(--ink); }
.light .lede { color: var(--soft); }
.light a { color: var(--glow-deep); }
section { padding: clamp(64px, 8vw, 110px) 0; position: relative; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,17,13,0.84);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-d);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: #fff; }
.brand strong { font-weight: 820; font-stretch: 120%; letter-spacing: 0.03em; font-size: 1.3rem; }
.brand span { font-family: var(--mono); font-size: 0.64rem; color: var(--fog-dim); letter-spacing: 0.16em; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
  text-decoration: none; color: #d7ded8; font-weight: 500; font-size: 0.93rem;
  padding: 8px 13px; border-radius: 8px;
}
.nav a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav a.cta {
  background: var(--glow); color: var(--night); font-weight: 700; margin-left: 8px;
  box-shadow: 0 0 22px rgba(67,224,140,0.3);
}
.nav a.cta:hover { background: #5cf0a3; color: var(--night); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-d);
  border-radius: 8px; padding: 8px 12px; font-family: var(--mono);
  font-size: 0.8rem; cursor: pointer; color: #e8ede9;
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 12px 24px 18px;
    background: var(--night-2); border-bottom: 1px solid var(--line-d);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px; }
  .nav a.cta { margin-left: 0; text-align: center; }
}

/* ---------- Intro (kompakter Auftakt vor dem Film) ---------- */
.intro {
  min-height: calc(100svh - 64px);
  display: flex; align-items: center; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 900px 520px at 70% 20%, rgba(67,224,140,0.08), transparent 60%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    var(--night);
  background-size: auto, 56px 56px, 56px 56px, auto;
}
.intro .wrap { padding-top: 40px; padding-bottom: 90px; }
.statusline {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em;
  color: var(--fog-dim); text-transform: uppercase; margin-bottom: 26px;
  display: flex; align-items: center; gap: 10px;
}
.statusline .live {
  width: 9px; height: 9px; border-radius: 50%; background: var(--glow);
  box-shadow: 0 0 12px var(--glow); animation: pulse 2.2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.35 } }
.intro h1 {
  font-size: clamp(3rem, 9.5vw, 7rem);
  font-weight: 830; font-stretch: 118%;
  text-transform: uppercase; line-height: 0.94; letter-spacing: 0;
  margin: 0 0 26px; color: #fff; max-width: 14ch;
}
.intro h1 .ok { color: var(--glow); text-shadow: 0 0 44px rgba(67,224,140,0.45); }
.intro h1 .serif { font-size: 0.92em; color: var(--fog); text-shadow: none; }
.intro .lede { color: var(--fog); max-width: 56ch; }
.intro .lede b { color: #fff; font-weight: 650; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 24px; border-radius: 10px; font-size: 1rem;
  border: 1.5px solid transparent;
  transition: transform 0.16s ease-out, background 0.2s ease;
  will-change: transform;
}
.btn--primary { background: var(--glow); color: var(--night); box-shadow: 0 0 30px rgba(67,224,140,0.3); }
.btn--primary:hover { background: #5cf0a3; color: var(--night); }
.btn--ghost { border-color: rgba(255,255,255,0.28); color: #fff; }
.btn--ghost:hover { border-color: var(--glow); color: var(--glow); }
.light .btn--primary { background: var(--glow-deep); color: #fff; box-shadow: none; }
.light .btn--primary:hover { background: #145036; }
.light .btn--ghost { border-color: #b9c0b6; color: var(--ink); }
.trust-line {
  margin-top: 26px; font-family: var(--mono); font-size: 0.76rem;
  color: var(--fog-dim); letter-spacing: 0.05em;
}
.trust-line b { color: var(--glow); font-weight: 500; }
.scrollcue {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 26px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em;
  color: var(--fog-dim); text-transform: uppercase; display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.scrollcue::after {
  content: ""; width: 1px; height: 42px;
  background: linear-gradient(var(--glow), transparent);
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }

/* ============================================================
   DIE SZENEN (Scroll-Kino)
   Aufbau: .scene (hoch) > .stage (sticky, 100svh)
   JS setzt Stile über Scroll-Fortschritt.
   ============================================================ */
.scene { position: relative; }
.scene .stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.scene--1 { height: 340svh; background: var(--night); }
.scene--2 { height: 320svh; background: #0c1210; }
.scene-label {
  position: absolute; top: 86px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.22em;
  color: var(--fog-dim); text-transform: uppercase; margin: 0;
}
.scene-label b { color: var(--glow); font-weight: 500; }
.scene--2 .scene-label b { color: var(--amber); }

/* Treibende Dokumente im Hintergrund */
.drift { position: absolute; inset: 0; pointer-events: none; }
.drift .doc {
  position: absolute; background: var(--night-3); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px; padding: 12px;
}
.drift .doc i { display: block; height: 5px; background: rgba(255,255,255,0.06); margin-bottom: 8px; border-radius: 2px; }

/* Die Frage */
.sc-q {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 0 24px; text-align: center; will-change: transform, opacity;
}
.sc-q h2 {
  font-size: clamp(2rem, 6.2vw, 4.6rem);
  font-weight: 820; font-stretch: 114%; line-height: 1.02;
  max-width: 1050px; margin: 0; color: #fff; position: relative;
}
.sc-q .serif { color: var(--glow); }
.scene--2 .sc-q .serif { color: var(--amber); }
.scan {
  position: absolute; left: -4%; right: -4%; height: 2px; top: 55%;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  box-shadow: 0 0 26px var(--glow); opacity: 0; will-change: transform, opacity;
}
.scene--2 .scan { background: linear-gradient(90deg, transparent, var(--amber), transparent); box-shadow: 0 0 26px var(--amber); }
.sc-status {
  position: absolute; bottom: 64px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.18em;
  color: var(--fog-dim); text-transform: uppercase; will-change: opacity;
}
.sc-status b { color: var(--glow); font-weight: 500; }
.scene--2 .sc-status b { color: var(--amber); }

/* Das Dokument */
.sc-doc {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px; will-change: transform, opacity;
}
.sheet {
  width: min(620px, 94vw); background: #fdfdfb; color: var(--ink);
  border-radius: 6px; padding: clamp(28px, 4.5vw, 52px) clamp(24px, 4.5vw, 56px);
  position: relative;
  box-shadow: 0 60px 140px -40px rgba(0,0,0,0.9), 0 0 80px -30px rgba(67,224,140,0.25);
}
.scene--2 .sheet { box-shadow: 0 60px 140px -40px rgba(0,0,0,0.9), 0 0 80px -30px rgba(224,161,62,0.2); }
.sheet h4 {
  font-family: var(--mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.14em; color: var(--soft); margin: 0 0 20px; text-transform: uppercase;
}
.sheet .line { height: 9px; background: #e8e6dd; border-radius: 2px; margin-bottom: 12px; }
.sheet .line.short { width: 68%; }
.sheet .mark {
  display: block; position: relative; font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.6; margin: 12px 0 16px; padding: 4px 8px 4px 12px;
  border-left: 3px solid var(--glow-deep); overflow: hidden;
}
.sheet .mark::before {
  content: ""; position: absolute; inset: 0; background: var(--glow-tint);
  transform-origin: left; transform: scaleX(var(--mark, 0)); z-index: -1;
}
.scene--2 .sheet .mark { border-left-color: var(--amber-deep); }
.scene--2 .sheet .mark::before { background: var(--amber-tint); }
.sheet .mark.gap {
  border-left-style: dashed; color: var(--soft); font-style: italic;
}
.stamp {
  position: absolute; right: -22px; top: 84px;
  border: 5px solid var(--glow-deep); color: var(--glow-deep);
  padding: 12px 24px; border-radius: 6px;
  font-weight: 830; font-stretch: 112%; font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  text-transform: uppercase; letter-spacing: 0.03em;
  background: rgba(253,253,251,0.92);
  transform: rotate(-9deg); opacity: 0; will-change: transform, opacity;
}
.stamp small {
  display: block; font-family: var(--mono); font-weight: 500;
  font-size: 0.68rem; letter-spacing: 0.1em; margin-top: 6px;
}
.stamp--warn { border-color: var(--amber-deep); color: var(--amber-deep); border-style: dashed; transform: rotate(6deg); }
@keyframes slam { 0% { transform: translateY(0) } 30% { transform: translateY(5px) scale(0.995) } 100% { transform: translateY(0) } }
.sheet.slammed { animation: slam 0.28s ease-out; }
.sc-fund {
  margin-top: 22px; font-family: var(--mono); font-size: 0.74rem;
  color: var(--soft); letter-spacing: 0.06em; opacity: 0; will-change: opacity;
}

/* Statische Fallback-Darstellung (reduced motion) */
.scenes-static .scene { height: auto !important; }
.scenes-static .scene .stage { position: static; height: auto; padding: 90px 0 70px; flex-direction: column; gap: 40px; }
.scenes-static .scene-label { position: static; }
.scenes-static .sc-q, .scenes-static .sc-doc { position: static; padding: 0 24px; }
.scenes-static .sc-q h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.scenes-static .stamp { opacity: 1; }
.scenes-static .sheet .mark::before { transform: scaleX(1); }
.scenes-static .sc-fund { opacity: 1; }
.scenes-static .sc-status, .scenes-static .scan { display: none; }

/* ---------- Beleg-Laufband ---------- */
.marquee {
  border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d);
  background: var(--night-2); overflow: hidden; padding: 15px 0;
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; padding: 0 24px; }
}

/* ---------- Zahlenband ---------- */
.statband { background: var(--night-2); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 34px 26px 30px; border-right: 1px solid var(--line-d); }
.stat:last-child { border-right: 0; }
@media (max-width: 880px) {
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-d); }
}
.stat b {
  display: block; font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 830;
  font-stretch: 116%; color: var(--glow); line-height: 1; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 0.9rem; color: var(--fog); }

/* ---------- Karten & Raster ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line-l);
  border-radius: var(--radius); padding: 26px 26px 22px; color: var(--ink);
}
.card p { color: var(--soft); font-size: 0.98rem; margin-bottom: 0; }
.dark .card { background: var(--night-2); border-color: var(--line-d); color: #e8ede9; }
.dark .card p { color: var(--fog); }
.card .num {
  font-family: var(--mono); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.08em;
  color: var(--glow); display: inline-block; margin-bottom: 14px;
}
.light .card .num { color: var(--glow-deep); }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } }
.bento .card { border-top: 4px solid var(--glow-deep); }
.bento h3 { font-size: 1.3rem; font-stretch: 110%; }
.bento .big { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 820; font-stretch: 118%; color: var(--glow-deep); line-height: 1; margin: 4px 0 14px; }

.defbox {
  margin-top: 28px; background: var(--night-3); border: 1px solid var(--line-d);
  border-left: 4px solid var(--glow); border-radius: 10px; padding: 22px 24px;
}
.defbox .tab { margin-bottom: 12px; }
.defbox p { margin: 0; color: var(--fog); max-width: 80ch; }
.defbox dfn { font-style: normal; font-weight: 650; color: #fff; }

/* ---------- Demos ---------- */
.demo-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, #131c16, #0e1611);
  border: 1px solid rgba(67,224,140,0.25); border-radius: var(--radius);
  padding: 32px 30px 28px; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.demo-card:hover { transform: translateY(-4px); box-shadow: 0 0 60px -18px rgba(67,224,140,0.4); }
.demo-card h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-stretch: 112%; text-transform: uppercase; margin-bottom: 4px; color: #fff; }
.demo-card p { color: var(--fog); margin: 0; }
.demo-card .btn { align-self: flex-start; margin-top: 12px; }
.demo-note { margin-top: 22px; font-family: var(--mono); font-size: 0.76rem; color: var(--fog-dim); }

/* ---------- Einsatzfelder ---------- */
.fields { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 20px; padding: 0; list-style: none; }
.fields li {
  font-family: var(--mono); font-size: 0.84rem; font-weight: 500;
  background: var(--card); border: 1px solid #c3cabf;
  border-radius: 999px; padding: 10px 18px; color: var(--ink);
}

/* ---------- Prüfliste ---------- */
.checklist { margin: 8px 0 0; padding: 0; list-style: none; }
.checklist li {
  display: grid; grid-template-columns: 30px 240px 1fr; gap: 16px;
  padding: 20px 4px; border-bottom: 1px solid var(--line-l); align-items: baseline;
}
.checklist li:first-child { border-top: 1px solid var(--line-l); }
.checklist .tick { color: var(--glow-deep); font-weight: 800; font-size: 1.1rem; }
.checklist .what { font-weight: 700; font-stretch: 106%; }
.checklist .how { color: var(--soft); font-size: 0.98rem; }
@media (max-width: 780px) {
  .checklist li { grid-template-columns: 26px 1fr; }
  .checklist .how { grid-column: 2; }
}

/* ---------- Über ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(30px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.35;
  color: #f0f4f0; margin: 0 0 16px;
}
.quote .hl { color: var(--glow); }
.byline { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fog-dim); margin-bottom: 24px; }
.about .facts { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.about .facts li {
  font-family: var(--mono); font-size: 0.78rem; color: var(--fog);
  border-left: 3px solid rgba(67,224,140,0.45); padding-left: 14px; letter-spacing: 0.04em;
}

/* ---------- Preise ---------- */
.price { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; font-stretch: 112%; margin: 6px 0 12px; color: var(--ink); }
.price small { font-size: 0.85rem; font-weight: 500; color: var(--soft); font-stretch: 100%; }
.price-note { margin-top: 20px; font-family: var(--mono); font-size: 0.76rem; color: var(--soft); max-width: 72ch; }

/* ---------- FAQ ---------- */
.faq { margin-top: 6px; }
.faq details { border-bottom: 1px solid var(--line-l); }
.faq details:first-child { border-top: 1px solid var(--line-l); }
.faq summary {
  cursor: pointer; padding: 20px 4px; font-weight: 700; font-size: 1.04rem;
  list-style: none; display: flex; gap: 18px; align-items: baseline; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .no { font-family: var(--mono); font-weight: 500; font-size: 0.76rem; color: var(--glow-deep); flex: 0 0 44px; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--glow-deep); margin-left: auto; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 4px 20px 62px; color: var(--soft); max-width: 80ch; }
@media (max-width: 640px) { .faq details > div { padding-left: 4px; } }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Kontakt & Footer ---------- */
.contact-hero h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); color: #fff; }
.contact-lines { margin-top: 30px; font-family: var(--mono); font-size: 0.88rem; display: grid; gap: 10px; color: var(--fog); }
.contact-lines a { color: #e8ede9; }
.site-foot { padding: 36px 0 50px; border-top: 1px solid var(--line-d); background: var(--night); }
.site-foot .wrap {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-family: var(--mono); font-size: 0.76rem; color: var(--fog-dim);
}
.site-foot a { color: var(--fog); }
.site-foot nav { display: flex; gap: 18px; }

/* ---------- Rechtsseiten ---------- */
body.light-page { background: var(--paper); color: var(--ink); }
body.light-page .site-head { background: rgba(244,245,242,0.9); border-bottom-color: var(--line-l); }
body.light-page .brand { color: var(--ink); }
body.light-page .brand span { color: var(--soft); }
body.light-page .nav a { color: var(--ink); }
body.light-page .nav a:hover { background: #e6e9e3; }
body.light-page .site-foot { background: var(--paper); border-top-color: var(--line-l); }
body.light-page .site-foot a, body.light-page .site-foot .wrap { color: var(--soft); }
.legal { padding: clamp(40px, 6vw, 72px) 0 90px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 780; font-stretch: 114%; text-transform: uppercase; margin-bottom: 30px; }
.legal h2 { font-size: 1.2rem; margin-top: 42px; text-transform: none; font-stretch: 104%; font-weight: 700; }
.legal p, .legal li { color: var(--soft); }
.legal a { color: var(--glow-deep); }
.legal .todo {
  background: var(--amber-tint); border: 1px dashed var(--amber-deep);
  border-radius: 8px; padding: 12px 16px;
  font-family: var(--mono); font-size: 0.82rem; color: var(--amber-deep);
}

/* ---------- Choreografie ---------- */
@media (prefers-reduced-motion: no-preference) {
  .intro h1 .w { display: inline-block; overflow: clip; vertical-align: bottom; padding-bottom: 0.22em; margin-bottom: -0.22em; }
  .intro h1 .w > span {
    display: inline-block; transform: translateY(112%);
    animation: rise 0.85s cubic-bezier(.2,.75,.2,1) forwards;
  }
  @keyframes rise { to { transform: translateY(0); } }
  .intro .statusline { opacity: 0; animation: fadein 0.6s ease 0.1s forwards; }
  .intro .lede, .intro .btn-row, .intro .trust-line {
    opacity: 0; transform: translateY(16px);
    animation: fadeup 0.7s cubic-bezier(.2,.7,.3,1) forwards;
  }
  .intro .lede { animation-delay: 0.7s; }
  .intro .btn-row { animation-delay: 0.85s; }
  .intro .trust-line { animation-delay: 1s; }
  @keyframes fadeup { to { opacity: 1; transform: none; } }
  @keyframes fadein { to { opacity: 1; } }
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal:nth-child(2) { transition-delay: 0.08s; }
  .reveal:nth-child(3) { transition-delay: 0.16s; }
}

/* ============================================================
   FEINSCHLIFF — Material, Korn, Mikro-Details
   ============================================================ */

/* Textauswahl & Scrollbalken */
::selection { background: var(--glow); color: var(--night); }
html { scrollbar-color: #2a3a30 var(--night); scrollbar-width: thin; }

/* Filmkorn über der ganzen Seite (statisch, unmerklich, macht Flächen „materialhaft") */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 80; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035; mix-blend-mode: overlay;
}

/* Ausgewogene Zeilenumbrüche in großen Zeilen */
h1, h2, .sc-q h2, .quote { text-wrap: balance; }

/* Sanfte Übergänge zwischen Hell und Dunkel */
section.light { box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }
.statband { box-shadow: inset 0 24px 40px -30px rgba(0,0,0,0.6), inset 0 -24px 40px -30px rgba(0,0,0,0.6); }

/* ---------- Papier-Material für den Bogen ---------- */
.sheet {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0) 60px),
    repeating-linear-gradient(180deg, #fdfdfa 0 3px, #fbfbf7 3px 6px);
  border: 1px solid #eceadf;
}
.sheet::before {                      /* Heftrand links wie im Formularordner */
  content: ""; position: absolute; top: 0; bottom: 0; left: 34px;
  width: 1px; background: rgba(30, 107, 74, 0.16);
}
.sheet::after {                       /* weiche Auflagekante unten */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -14px; height: 14px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(0,0,0,0.45), transparent 70%);
  z-index: -1;
}
.sheet h4 {
  padding-bottom: 12px; border-bottom: 1px solid #e2dfd3;
  position: relative;
}
.sheet h4::after {                    /* doppelte Kopflinie wie im Formularkopf */
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: #e2dfd3;
}

/* ---------- Stempel wie gedruckte Farbe ---------- */
.stamp {
  background: transparent; mix-blend-mode: multiply;
  box-shadow: inset 0 0 0 2px rgba(253,253,251,0.9), inset 0 0 0 3px currentColor; /* Doppelring */
  text-shadow: 0 0 1px currentColor;
}
.stamp::after {                       /* ungleichmäßiger Farbauftrag */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='90' height='90' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5; mix-blend-mode: screen;
}
@keyframes ink { 0% { filter: drop-shadow(0 0 0 currentColor); } 40% { filter: drop-shadow(0 2px 10px rgba(30,107,74,0.35)); } 100% { filter: none; } }
.stamp.inked { animation: ink 0.5s ease-out; }
.stamp--warn.inked { animation: none; }

/* ---------- Szenen-Mikrodetails ---------- */
.scan { height: 2px; }
.scan::after {                        /* Nachleucht-Echo der Scan-Linie */
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px;
  background: inherit; opacity: 0.35; filter: blur(1px);
}
.sc-doc { will-change: transform, opacity, filter; }
.scene .stage {
  background: radial-gradient(120% 90% at 50% 110%, rgba(0,0,0,0.45), transparent 55%); /* leichte Vignette */
}
.sc-q h2 { letter-spacing: -0.005em; }

/* ---------- Komponenten-Politur ---------- */
.card { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; position: relative; overflow: hidden; }
.card::before {                       /* feine Lichtkante oben */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(67,224,140,0.35), transparent);
  opacity: 0; transition: opacity 0.25s ease;
}
.card:hover { transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.light .card:hover { border-color: #b9c0b6; box-shadow: 0 16px 40px -24px rgba(27,34,30,0.35); }
.dark .card:hover { border-color: rgba(67,224,140,0.35); }

.btn { letter-spacing: 0.01em; }
.btn--primary:hover { box-shadow: 0 6px 34px rgba(67,224,140,0.4); }
.light .btn--primary:hover { box-shadow: 0 10px 28px -12px rgba(30,107,74,0.5); }

.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

.stat { position: relative; }
.stat::before {
  content: ""; position: absolute; top: 26px; left: 26px; width: 22px; height: 2px;
  background: rgba(67,224,140,0.5);
}
.stat b { margin-top: 14px; }

.faq summary { transition: color 0.2s ease; }
.faq summary:hover { color: var(--glow-deep); }
.faq details > div { line-height: 1.7; }

.demo-card .btn { position: relative; }
.contact-hero { position: relative; }
.contact-hero::before {
  content: ""; position: absolute; inset: -40px -24px; z-index: -1;
  background: radial-gradient(700px 380px at 30% 20%, rgba(67,224,140,0.07), transparent 65%);
}

/* Kopfzeile: Haarlinie mit Glühen in der Mitte */
.site-head { border-bottom: 0; }
.site-head::after {
  content: ""; display: block; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(67,224,140,0.35) 50%, transparent);
}

/* ---------- Logo & Portrait & Demo-Raster (Ergänzung) ---------- */
.brand { align-items: center; }
.brand .logo { height: 38px; width: auto; margin-right: 2px; filter: drop-shadow(0 0 10px rgba(67,224,140,0.15)); }
.footbrand { display: inline-flex; align-items: center; gap: 10px; }
.footlogo { height: 22px; width: auto; opacity: 0.85; }
body.light-page .brand .logo { filter: none; }

.portrait { margin: 0; max-width: 420px; }
.portrait img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line-d);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.portrait figcaption {
  margin-top: 14px; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.14em; color: var(--fog-dim);
}

.demo-grid .demo-card { padding: 26px 24px 24px; gap: 10px; }
.demo-grid .demo-card h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.demo-grid .demo-card .btn { margin-top: 8px; padding: 12px 20px; font-size: 0.92rem; }

/* ---------- Preis-Staffelung (Ergänzung) ---------- */
.subtab { margin-top: 44px; }
.tabnote { text-transform: none; letter-spacing: 0.04em; color: #8a948c; }
.feats { margin: 10px 0 4px; padding: 0; list-style: none; display: grid; gap: 9px; }
.feats li {
  font-size: 0.95rem; color: var(--soft); padding-left: 22px; position: relative;
}
.feats li::before {
  content: "✓"; position: absolute; left: 0; color: var(--glow-deep); font-weight: 800;
}
.price-tiers .card { display: flex; flex-direction: column; }
.card--reco {
  border: 2px solid var(--glow-deep); position: relative; overflow: visible;
  box-shadow: 0 18px 44px -24px rgba(30,107,74,0.4);
}
.reco-chip {
  position: absolute; top: -12px; right: 18px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--glow-deep); color: #fff; padding: 5px 12px; border-radius: 999px;
}
.card--wide {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.card--wide h3 { margin-bottom: 0; }
.card--wide .num { margin-bottom: 8px; }
