/* ============================================================================
   Uncle Savvy — Entwurf "Signal"
   Liegt über tokens.css, app.css und dash.css. Der Hero bleibt deren Sache;
   ab der Bilanz gehört alles hier her. Präfix s- für Bausteine, sx- für die
   gebauten Bildschirme, damit nichts mit app.css kollidiert.

   Haltung: tiefschwarzer Grund, Licht kommt nur von dem, was arbeitet. Die
   Ampel bleibt Ampel (grün allein, gelb du, rot Stopp), weil die Texte sie
   beim Namen nennen; Cyan und Violett sind das Signal und die KI.
   ========================================================================== */

/* Farbübergänge des Umgebungslichts brauchen registrierte Eigenschaften,
   sonst springt eine Custom Property, statt zu überblenden. */
@property --a1 { syntax: '<color>'; inherits: true; initial-value: #0E7C86; }
@property --a2 { syntax: '<color>'; inherits: true; initial-value: #3A5BFF; }

html.sg {
  --background-default: #04070A;
  --background-secondary: #070C10;
  --text-default: #EAF4F6;
  --text-subdued: #A3B5BA;
  --text-accent: #3FE0F0;
  --border-subdued: rgb(150 220 230 / .10);

  --s-bg: #04070A;
  --s-ink: #EAF4F6;
  --s-soft: #A3B5BA;
  --s-dim: #6E8389;
  --s-line: rgb(150 220 230 / .10);
  --s-line2: rgb(150 220 230 / .18);
  --s-cyan: #3FE0F0;
  --s-petrol: #0E7C86;
  --s-violet: #8F7CFF;
  --s-ok: #3DDC97;
  --s-amber: #FFB547;
  --s-coral: #FF6B5A;
  --s-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --s-ease: cubic-bezier(.2, .8, .2, 1);
  --s-wrap: 1200px;
  --s-pad: clamp(20px, 5vw, 64px);

  background: var(--s-bg);
}
.sg body { background: var(--s-bg); color: var(--s-ink); }
.sg #theme-scroller { background: transparent; transition: none; }
.sg main, .sg .s-foot { position: relative; z-index: 1; }
/* Kein overflow-x: clip an main: Safari auf dem iPhone lässt jede geheftete
   Bühne darin beim Scrollen zittern (WebKit-Bug 247130). Was über den Rand
   fliegt, schneidet sein eigener Abschnitt ab (Bilanz, Kosten) oder die Bühne
   selbst (Blätter, Karten, Kette). Ohne das zoomt ein Telefon die Seite heraus. */
.s-ambient { overflow: hidden; }
.sg ::selection { background: var(--s-cyan); color: #031014; }
.sg :focus-visible { outline-color: var(--s-cyan); }

/* ═══════════════════════════════════════════════════════════ GRUNDLAGEN ══ */

.s-wrap { max-width: var(--s-wrap); margin-inline: auto; padding-inline: var(--s-pad); }
.s-sect { padding-block: clamp(96px, 14vh, 180px); }

.s-kick {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--s-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--s-cyan);
}
.s-kick > i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-ok); box-shadow: 0 0 12px var(--s-ok); animation: s-puls 2s infinite; }
.s-num {
  display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding-inline: 6px;
  border: 1px solid var(--s-line2); border-radius: 6px; color: var(--s-ink); letter-spacing: .04em;
  background: rgb(63 224 240 / .06);
}
@keyframes s-puls { 50% { opacity: .35; } }

.s-h {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.1rem + 4.6vw, 5.4rem);
  font-weight: 500; line-height: .98; letter-spacing: -.038em;
  color: var(--s-ink);
  text-wrap: balance;
}
.s-h--xl { font-size: clamp(3rem, 1rem + 7vw, 8rem); }
/* Das hervorgehobene Ende jeder Zeile trägt den Verlauf. Kein Kursiv: der
   Verlauf ist die Betonung. */
.s-h em, .s-zitat em {
  font-style: normal;
  background: linear-gradient(100deg, var(--s-cyan) 0%, #7FD8FF 20%, var(--s-violet) 50%, #7FD8FF 80%, var(--s-cyan) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: s-fluss 9s linear infinite;
}
/* Der Verlauf wandert langsam durch das Wort: Strom in der Leitung. */
@keyframes s-fluss { to { background-position: -200% 0; } }
.s-lede { margin-top: 24px; max-width: 58ch; font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); line-height: 1.55; color: var(--s-soft); }
.s-strong { color: var(--s-ink); font-weight: 500; }
.s-head { max-width: 900px; margin-bottom: clamp(48px, 8vh, 88px); }

/* ═══════════════════════════════════════════════════════════ GLAS ═════════ */
/* Keine backdrop-filter auf den Karten: über dem bewegten Hintergrund kostet
   jede Unschärfe pro Bild die ganze Fläche, auf dem Telefon sichtbar. Der
   leicht gefüllte Grund reicht, das Licht macht der Rand. */
.s-glass {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgb(160 230 240 / .055), rgb(160 230 240 / .018));
  border: 1px solid var(--s-line2);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 30px 80px -40px rgb(0 0 0 / .8);
}
/* Lichtkegel unter dem Zeiger, Fläche und Rand. --mx/--my aus signal.js. */
.s-glass::before, .s-glass::after {
  content: ""; position: absolute; border-radius: inherit; pointer-events: none;
  opacity: var(--spot, 0); transition: opacity .35s var(--s-ease);
}
.s-glass::before {
  inset: 0; z-index: -1;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgb(63 224 240 / .09), transparent 60%);
}
.s-glass::after {
  inset: -1px; padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgb(63 224 240 / .85), rgb(143 124 255 / .35) 35%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ═══════════════════════════════════════════════════════ LEISTE + KNÖPFE ══ */

.sg .nav {
  top: 12px; margin: 12px auto 0; width: min(1240px, calc(100% - 24px));
  height: 60px; padding-left: 22px; padding-right: 8px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background-color .4s var(--s-ease), border-color .4s var(--s-ease), box-shadow .4s var(--s-ease);
}
.sg .nav[data-over-hero] { background: rgb(4 7 10 / .18); border-color: rgb(255 255 255 / .12); backdrop-filter: blur(14px); }
.sg .nav[data-solid] {
  background: rgb(6 11 14 / .72); border-color: var(--s-line2);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .05);
}
/* Das Logo ist Funks Kopf (Pixel 1:3): die Antenne glimmt, die Augen schauen
   ab und zu nach links und rechts und blinzeln. step-end hält jeden Stand bis zum
   nächsten, so springt es wie Pixelkunst statt zu gleiten. */
.sg .nav__glyph { width: 36px; height: 27px; border: 0; border-radius: 0; overflow: visible; filter: drop-shadow(0 0 6px rgb(63 224 240 / .5)); }
.sg .nav__antenne { animation: s-bot-glimm 1.6s steps(2) infinite; }
.sg .nav__augen { transform-box: fill-box; transform-origin: center; animation: s-funk-blick 7s step-end infinite; }
@keyframes s-funk-blick {
  0%, 58%, 88%, 100% { transform: none; }
  40% { transform: translateX(-1px); }
  50% { transform: translateX(1px); }
  86% { transform: scaleY(.2); }
}
.sg .nav__link { position: relative; color: var(--s-soft); }
.sg .nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--s-cyan), transparent);
  transform: scaleX(0); transition: transform .35s var(--s-ease);
}
.sg .nav__link:hover::after { transform: scaleX(1); }
@media (max-width: 560px) { .sg .nav { padding-left: 14px; } }

.sg .btn { height: 46px; font-weight: 600; letter-spacing: .005em; transition: transform .25s var(--s-ease), box-shadow .3s var(--s-ease), background-color .2s, filter .2s; }
.sg .btn--lg { height: 56px; padding-inline: 30px; }
.sg .btn--primary {
  color: #031014;
  /* Zwei Ebenen: oben ein Lichtstreif, der alle paar Sekunden durchläuft,
     darunter der Verlauf. Als Hintergrund statt Pseudo-Element, weil
     ::before beim Abschluss-Knopf schon den Saum trägt. */
  background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .6) 50%, transparent 58%) no-repeat,
              linear-gradient(120deg, #6FF0FA 0%, #3FD6EA 38%, #8C9BFF 100%);
  background-size: 260% 100%, 100% 100%; background-position: 160% 0, 0 0;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 0 0 1px rgb(63 224 240 / .4), 0 12px 34px -10px rgb(63 224 240 / .65);
  animation: s-schein 5s 2s var(--s-ease) infinite;
}
@keyframes s-schein { 0% { background-position: 160% 0, 0 0; } 28%, 100% { background-position: -60% 0, 0 0; } }
.sg .btn--primary:hover { background-image: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .6) 50%, transparent 58%), linear-gradient(120deg, #8AF5FC 0%, #52DFF0 38%, #A0ADFF 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), 0 0 0 1px rgb(63 224 240 / .6), 0 16px 44px -10px rgb(63 224 240 / .85); }
.sg .btn--ghost, .sg .btn--onDark {
  color: var(--s-ink); background: rgb(160 230 240 / .06);
  box-shadow: inset 0 0 0 1px var(--s-line2);
}
.sg .btn--ghost:hover, .sg .btn--onDark:hover { background: rgb(160 230 240 / .12); box-shadow: inset 0 0 0 1px rgb(63 224 240 / .5); }
.sg .btn--onDark { background: rgb(4 7 10 / .3); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }

/* ═══════════════════════════════════════════════════════════ HERO ═════════ */
/* Geometrie und Ablauf bleiben exakt wie im vorigen Design (index-alt.html). Hier nur Schrift und
   der Auftritt der Zeilen beim Laden. */
.sg .hero h1 {
  font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5.6rem); letter-spacing: -.04em; line-height: .98;
  text-shadow: none; filter: drop-shadow(0 6px 30px rgb(2 6 8 / .55));
  background: linear-gradient(100deg, #fff 0%, #fff 38%, #9FF3FB 50%, #fff 62%, #fff 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: s-glanz 7s 1.6s var(--s-ease) infinite;
}
@keyframes s-glanz { 0% { background-position: 100% 0; } 30%, 100% { background-position: 0 0; } }
.sg .hero__trust i { background: var(--s-ok); box-shadow: 0 0 10px var(--s-ok); }
.sg .hero__content > * { animation: s-auftritt 1.1s var(--s-ease) both; }
.sg .hero__content > :nth-child(2) { animation-delay: .15s; }
.sg .hero__content > :nth-child(3) { animation-delay: .3s; }
.sg .hero__content > :nth-child(4) { animation-delay: .45s; }
@keyframes s-auftritt { from { opacity: 0; transform: translateY(26px); filter: blur(10px); } }
/* Ohne den Abstand der alten Bilanz schließt die Seite direkt an den Graphen an. */
.sg .hero__unter p b { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }

/* Handy: app.js staucht den Fortschritt auf den Teil, in dem etwas passiert
   (data-kompakt). 200vh heißt eine Bildschirmhöhe Wischen für die Anfahrt —
   vorher waren es 260vh, davon eine ganze Höhe Stillstand. */
@media (max-width: 700px) {
  .sg .hero[data-kompakt] { height: 200vh; }
}

/* ═══════════════════════════════════════════════════ UMGEBUNG + FORTSCHRITT */

.s-ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--s-ease); }
/* Ein weicher Lichtfleck folgt dem Zeiger, hinter dem Inhalt. Ein kleines
   Element verschoben statt eines bildschirmgroßen Verlaufs neu gemalt. */
.s-licht {
  position: absolute; left: 0; top: 0; width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(63 224 240 / .10), rgb(143 124 255 / .05) 50%, transparent);
  transform: translate3d(var(--lx, 50vw), var(--ly, 50vh), 0); transition: opacity .6s;
}
body[data-nach-hero] .s-ambient { opacity: 1; }
body[data-scene="cyan"]   { --a1: #0E7C86; --a2: #2F5BFF; }
body[data-scene="coral"]  { --a1: #A33A2A; --a2: #4A2A78; }
body[data-scene="violet"] { --a1: #4E3FD0; --a2: #0E7C86; }
body[data-scene="amber"]  { --a1: #A06A10; --a2: #0E7C86; }
.s-aurora {
  position: absolute; inset: -25%;
  background:
    radial-gradient(38% 32% at 18% 28%, color-mix(in srgb, var(--a1) 34%, transparent), transparent 70%),
    radial-gradient(34% 30% at 84% 74%, color-mix(in srgb, var(--a2) 26%, transparent), transparent 70%);
  transition: --a1 1.6s var(--s-ease), --a2 1.6s var(--s-ease);
  animation: s-drift 38s ease-in-out infinite alternate;
}
@keyframes s-drift { to { transform: translate3d(6%, -4%, 0) rotate(8deg) scale(1.08); } }
.s-net { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Körnung gegen Banding in den großen Verläufen. Als Kachel, nicht als Filter. */
.s-grain {
  position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.s-progress { position: fixed; z-index: 120; inset: 0 0 auto 0; height: 2px; pointer-events: none; }
.s-progress i {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--s-petrol), var(--s-cyan), var(--s-violet));
  box-shadow: 0 0 12px rgb(63 224 240 / .8);
}

/* Die Leiste links: die Seite als Ablauf. Jede Sektion ein Knoten, der
   erledigt wird, wenn man an ihm vorbei ist. Nur auf breiten Schirmen, wo
   der Rand Platz hat. */
.s-rail {
  position: fixed; z-index: 90; left: 26px; top: 50%; transform: translateY(-50%);
  /* visibility, damit die unsichtbare Leiste auch für die Tab-Taste weg ist */
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s var(--s-ease), visibility 0s .6s;
}
body[data-nach-hero] .s-rail { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
/* Während der waagerechten Fahrt laufen Karten unter der Leiste durch;
   die Fahrt hat unten ihren eigenen Zähler. */
body[data-fahrt] .s-rail { opacity: 0; visibility: hidden; pointer-events: none; transition-delay: 0s, .6s; }
.s-rail__line { position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--s-line2); }
/* Der Funke: die Spitze des Fortschritts, wie das Paket auf der Kette */
.s-rail__line::after {
  content: ""; position: absolute; left: -3px; top: calc(var(--f, 0) * 100% - 3px); width: 7px; height: 7px; border-radius: 50%;
  background: #E9FDFF; box-shadow: 0 0 10px 2px var(--s-cyan), 0 0 22px 4px rgb(63 224 240 / .45);
}
.s-rail__line i { position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(var(--f, 0)); background: linear-gradient(var(--s-cyan), var(--s-violet)); box-shadow: 0 0 10px var(--s-cyan); }
.s-rail ol { position: relative; display: grid; gap: 22px; }
.s-rail a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.s-rail a > i {
  width: 11px; height: 11px; border-radius: 50%; flex: none;
  background: var(--s-bg); border: 1px solid var(--s-dim);
  transition: background-color .4s, border-color .4s, box-shadow .4s, transform .4s var(--s-ease);
}
.s-rail a > span {
  font-family: var(--s-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--s-soft); padding: 4px 9px; border-radius: 6px; background: rgb(4 7 10 / .8); border: 1px solid var(--s-line2);
  opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--s-ease);
}
.s-rail li[data-done] a > i { background: var(--s-cyan); border-color: var(--s-cyan); box-shadow: 0 0 10px rgb(63 224 240 / .7); animation: s-ping .9s var(--s-ease); }
@keyframes s-ping { from { box-shadow: 0 0 0 0 rgb(63 224 240 / .8), 0 0 10px rgb(63 224 240 / .7); } to { box-shadow: 0 0 0 14px rgb(63 224 240 / 0), 0 0 10px rgb(63 224 240 / .7); } }
.s-rail li[data-now] a > i { background: var(--s-bg); border-color: var(--s-cyan); transform: scale(1.35); box-shadow: 0 0 0 4px rgb(63 224 240 / .15), 0 0 16px var(--s-cyan); }
.s-rail li[data-zeig] a > span, .s-rail a:hover > span, .s-rail a:focus-visible > span { opacity: 1; transform: none; }
@media (max-width: 1279px) { .s-rail { display: none; } }

/* ═══════════════════════════════════════════════════════════ EINBLENDUNG ═ */

.s-rise { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity 1s var(--s-ease), transform 1.1s var(--s-ease), filter 1s var(--s-ease); transition-delay: calc(var(--d, 0) * 1ms); }
.s-rise[data-in] { opacity: 1; transform: none; filter: none; }
/* Wörter steigen einzeln aus einer Maske. Die Hülle schneidet, das Wort
   darin fährt hoch: so wirkt die Zeile gesetzt, nicht eingeblendet. */
.s-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.s-split .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s var(--s-ease); transition-delay: calc(var(--i) * 55ms); }
.s-split[data-in] .w > span { transform: none; }
/* em mit Verlauf: der Verlauf muss am Wort sitzen, nicht an der em, sonst
   wird er pro Wort neu gestreckt und wirkt geflickt. */
.s-split em .w > span, .s-scrub em .w {
  background: linear-gradient(100deg, var(--s-cyan) 0%, #7FD8FF 40%, var(--s-violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.s-split em, .s-scrub em { background: none; color: inherit; }
/* Gescrubbte Zeilen: Wörter leuchten mit dem Scrollen auf. */
.s-scrub .w { opacity: var(--o, .14); transition: opacity .15s linear; }

/* ═══════════════════════════════════════════════════════════ HEFTEN ═══════ */

.s-pin { position: relative; height: calc(var(--len, 300) * 1vh); height: calc(var(--len, 300) * 1svh); }
.s-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ═══════════════════════════════════════════════════════════ BILANZ ═══════ */

.s-bilanz { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); overflow-x: clip; position: relative; }
/* Übergang vom Hero: dessen Grund endet hart, darunter beginnt das Umgebungslicht.
   Ein Verlauf aus der Grundfarbe blendet Licht und Sterne weich ein. */
.s-bilanz::before {
  content: ""; position: absolute; inset: 0 0 auto; height: clamp(260px, 50vh, 520px); z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--s-bg) 0%, rgb(4 7 10 / .82) 25%, rgb(4 7 10 / .5) 52%, rgb(4 7 10 / .2) 78%, rgb(4 7 10 / 0) 100%);
}
.s-zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--s-line); }
.s-zahlen li { padding: 28px 28px 8px 0; }
.s-zahlen li + li { padding-left: 28px; border-left: 1px solid var(--s-line); }
.s-zahl {
  display: block; font-family: var(--font-display); font-weight: 500; font-variant-numeric: tabular-nums;
  font-size: clamp(5rem, 2rem + 11vw, 13rem); line-height: .86; letter-spacing: -.06em;
  background: linear-gradient(180deg, #fff 10%, var(--s-cyan) 120%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 40px rgb(63 224 240 / .25));
}
.s-zahl[data-fertig] { animation: s-bluete 1.4s var(--s-ease); }
.s-zahlen li[data-k="du"] .s-zahl[data-fertig] { animation-name: s-bluete-du; }
@keyframes s-bluete { 30% { filter: drop-shadow(0 0 28px rgb(63 224 240 / .9)) brightness(1.25); } }
@keyframes s-bluete-du { 30% { filter: drop-shadow(0 0 28px rgb(255 181 71 / .9)) brightness(1.2); } }
.s-zahlen li[data-k="du"] .s-zahl { background-image: linear-gradient(180deg, #FFE3B0 0%, var(--s-amber) 100%); filter: drop-shadow(0 0 40px rgb(255 181 71 / .25)); }
.s-zahlen li[data-k="null"] .s-zahl { background: none; color: transparent; -webkit-text-stroke: 1.5px rgb(234 244 246 / .7); filter: none; }
.s-zahlen p { margin-top: 18px; color: var(--s-soft); line-height: 1.45; max-width: 30ch; }
.s-zahlen p b { display: block; color: var(--s-ink); font-weight: 600; }
.s-bilanz__satz { margin-top: 48px; }

/* Das Protokoll als zwei Bänder, die in die Tiefe kippen. */
.s-log { margin-top: clamp(56px, 9vh, 96px); perspective: 900px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.s-log__tilt { transform: rotateX(22deg) rotateZ(-3deg) scale(1.08); transform-origin: 50% 100%; display: grid; gap: 14px; }
.s-log__row { display: flex; gap: 14px; padding-right: 14px; width: max-content; animation: s-band 60s linear infinite; }
.s-log__row[data-dir="r"] { animation-direction: reverse; animation-duration: 70s; }
@keyframes s-band { to { transform: translateX(-50%); } }
.s-log__item {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 12px 18px; border-radius: 12px; border: 1px solid var(--s-line2);
  background: rgb(10 18 22 / .75);
  font-family: var(--s-mono); font-size: 13px; color: var(--s-soft);
}
.s-log__item b { color: var(--s-ink); font-weight: 600; }
.s-log__item i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-ok); box-shadow: 0 0 10px var(--s-ok); flex: none; }
.s-log__item[data-wait] i { background: var(--s-amber); box-shadow: 0 0 10px var(--s-amber); }
.s-log__item[data-wait] b { color: var(--s-amber); }

/* ═══════════════════════════════════════════════════════ 01 · STAPEL ══════ */

.s-stapel .s-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px;
  max-width: var(--s-wrap); margin-inline: auto; padding: 90px var(--s-pad) 40px;
}
.s-stapel__text .s-h { font-size: clamp(2.4rem, 1.1rem + 3.8vw, 4.6rem); }
.s-stapel__text [data-phase] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--s-ease), transform .8s var(--s-ease); }
.s-stapel__text [data-phase][data-an] { opacity: 1; transform: none; }
.s-stapel__text .s-strong { margin-top: 16px; }
.s-pile { position: relative; height: min(560px, 70svh); }
.s-sheet {
  position: absolute; left: 50%; top: 50%; width: 300px; margin: -58px 0 0 -150px;
  display: grid; gap: 4px; padding: 13px 16px 14px;
  border-radius: 14px; background: linear-gradient(180deg, #F6FAFA, #E8EFF0); color: #13202A;
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -14px rgb(0 0 0 / .7), 0 0 0 1px rgb(0 0 0 / .2);
  will-change: transform; transform: translate(0, 120vh);
  transition: background-color .5s, color .5s, box-shadow .5s;
}
.s-sheet__k { display: flex; justify-content: space-between; gap: 10px; font-family: var(--s-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #5A6A72; position: relative; }
.s-sheet__k b { color: #8C600C; font-weight: 700; text-transform: none; letter-spacing: 0; transition: opacity .4s; }
.s-sheet__k b[data-stopp] { color: #C23A28; }
.s-sheet__k s {
  position: absolute; right: 0; top: -2px; text-decoration: none; text-transform: none; letter-spacing: .02em;
  padding: 2px 9px; border-radius: 999px; font-weight: 700; color: #052A1C; background: var(--s-ok);
  opacity: 0; transform: scale(.6); transition: opacity .4s, transform .5s var(--s-ease);
}
.s-sheet__t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.s-sheet__s { font-size: 12.5px; color: #4C5C64; line-height: 1.4; }
/* Geordnet: dunkle Karten, Etikett des Ablaufs statt Alter. */
.s-pile[data-ordnung] .s-sheet { background: #0C171C; color: var(--s-ink); box-shadow: 0 0 0 1px rgb(61 220 151 / .35), 0 14px 30px -14px rgb(0 0 0 / .9); }
.s-pile[data-ordnung] .s-sheet__k { color: var(--s-dim); }
.s-pile[data-ordnung] .s-sheet__k b { opacity: 0; }
.s-pile[data-ordnung] .s-sheet__k s { opacity: 1; transform: none; }
.s-pile[data-ordnung] .s-sheet__s { color: var(--s-soft); }
.s-pile__cap {
  position: absolute; left: 0; right: 0; bottom: -6px; text-align: center;
  font-family: var(--s-mono); font-size: 12px; color: var(--s-dim); opacity: var(--cap, 0);
}

/* ═══════════════════════════════════════════════ 02 · WAAGERECHTE FAHRT ═══ */

.s-fahrt .s-stage { display: flex; flex-direction: column; justify-content: center; }
.s-track {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); width: max-content;
  padding-inline: max(var(--s-pad), calc((100vw - var(--s-wrap)) / 2 + var(--s-pad)));
  padding-top: 40px; will-change: transform;
}
.s-hintro { flex: 0 0 min(560px, 84vw); }
.s-hintro .s-h { font-size: clamp(2.4rem, 1.1rem + 3.8vw, 4.8rem); }
.s-hint { display: flex; align-items: center; gap: 14px; margin-top: 40px; font-family: var(--s-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--s-dim); }
.s-hint i { width: 64px; height: 1px; background: linear-gradient(90deg, var(--s-cyan), transparent); position: relative; overflow: hidden; }
.s-hint i::after { content: ""; position: absolute; inset: 0; width: 30%; background: #fff; animation: s-hint 1.8s var(--s-ease) infinite; }
@keyframes s-hint { from { transform: translateX(-100%); } to { transform: translateX(350%); } }

.s-card {
  flex: 0 0 min(1060px, 86vw); height: min(600px, 72svh);
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 44px); align-items: center;
  padding: clamp(20px, 3vw, 40px);
  transform-origin: 50% 50%; will-change: transform, opacity;
  transition: border-color .6s var(--s-ease), box-shadow .6s var(--s-ease);
}
.s-card[data-active] {
  border-color: rgb(63 224 240 / .32);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 30px 80px -40px rgb(0 0 0 / .8), 0 0 90px -30px rgb(63 224 240 / .45);
}
.s-card__n { font-family: var(--s-mono); font-size: 13px; color: var(--s-cyan); letter-spacing: .1em; }
.s-card__n i { font-style: normal; color: var(--s-dim); }
.s-card h3 { margin: 14px 0 24px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 1rem + 1.8vw, 2.7rem); line-height: 1.02; letter-spacing: -.03em; }
.s-teil { padding: 14px 0; border-top: 1px solid var(--s-line); }
.s-teil b { display: flex; align-items: center; gap: 8px; font-family: var(--s-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--s-ok); font-weight: 500; }
.s-teil b i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.s-teil[data-k="du"] b { color: var(--s-amber); }
.s-teil p { margin-top: 6px; color: var(--s-soft); line-height: 1.5; font-size: .98rem; }
.s-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 14px; border-top: 1px solid var(--s-line); }
.s-chips span { font-family: var(--s-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--s-dim); margin-right: 4px; }
.s-chips b { font-weight: 500; font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--s-line2); color: var(--s-ink); background: rgb(160 230 240 / .04); }

.s-hbar {
  position: absolute; left: 50%; bottom: max(24px, 4svh); transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; font-family: var(--s-mono); font-size: 12px; color: var(--s-dim);
}
.s-hbar__n { color: var(--s-ink); min-width: 2ch; }
.s-hbar__line { width: min(260px, 40vw); height: 2px; border-radius: 2px; background: var(--s-line2); overflow: hidden; }
.s-hbar__line i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--f, 0)); background: linear-gradient(90deg, var(--s-cyan), var(--s-violet)); }

/* ═══════════════════════════════════════════ GEBAUTE BILDSCHIRME (sx) ═════ */
/* Dunkle Oberflächen, wie ein echtes Werkzeug bei Nacht. Die Ampelfarben
   bleiben, weil sie hier Zustände sind und keine Dekoration. */

.sx {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #0D181D, #081115);
  border: 1px solid var(--s-line2);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .9), 0 0 80px -30px rgb(63 224 240 / .28), inset 0 1px 0 rgb(255 255 255 / .05);
  font-size: 12.5px; line-height: 1.4; color: var(--s-ink); text-align: left;
}
.sx__bar { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-bottom: 1px solid var(--s-line); font-weight: 600; font-size: 12px; background: rgb(255 255 255 / .02); }
.sx__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-ok); box-shadow: 0 0 8px var(--s-ok); }
.sx[data-heute] .sx__bar i { background: var(--s-coral); box-shadow: 0 0 8px var(--s-coral); }
.sx__bar em { margin-left: auto; font-style: normal; font-weight: 500; color: var(--s-dim); font-size: 11px; font-family: var(--s-mono); }
.sx__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 7px; padding: 14px; }
.sx__foot { padding: 10px 14px; border-top: 1px solid var(--s-line); font-size: 11.5px; color: var(--s-dim); }
.sx__foot b { color: var(--s-ink); font-weight: 600; }

.sx__row {
  position: relative; display: flex; align-items: center; gap: 9px; min-width: 0;
  padding: 8px 10px; border-radius: 9px; border: 1px solid var(--s-line); background: rgb(255 255 255 / .025);
}
.sx__row[data-wait] { border-color: rgb(255 181 71 / .35); background: rgb(255 181 71 / .07); }
.sx__row[data-stopp] { border-color: rgb(255 107 90 / .35); background: rgb(255 107 90 / .07); }
.sx__t { flex: none; font-family: var(--s-mono); font-size: 10.5px; color: var(--s-dim); min-width: 4.4ch; }
.sx__what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx__row > em { flex: none; font-style: normal; font-weight: 600; font-size: 11px; color: var(--s-coral); }
.sx__row[data-wait] > em { color: var(--s-amber); }
.sx__chip { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; color: var(--s-soft); background: rgb(255 255 255 / .06); }
.sx__st { flex: none; display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--s-ok); }
.sx__st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.sx__st[data-wait], .sx__row[data-wait] .sx__st { color: var(--s-amber); }
.sx__st[data-aus] { color: var(--s-dim); }
.sx__note {
  display: grid; grid-template-rows: 0fr; overflow: hidden; margin-top: -7px;
  font-size: 11.5px; line-height: 1.45; color: var(--s-soft);
  border-radius: 9px; border: 1px solid transparent; padding-inline: 11px;
}
.sx__note b { color: var(--s-amber); }

.sx__read { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
.sx__doc { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; background: #EEF3F3; padding: 10px 9px; display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.sx__doc i { display: block; height: 3px; border-radius: 2px; background: #C9D3D6; }
.sx__doc i:nth-child(1) { width: 62%; height: 6px; background: #8FA0A6; }
.sx__doc i:nth-child(4) { width: 78%; } .sx__doc i:nth-child(6) { width: 45%; }
.sx__doc i:nth-child(7) { width: 52%; height: 6px; background: #8FA0A6; margin-top: auto; }
.sx__scan { position: absolute; left: 0; right: 0; top: 0; height: 26%; background: linear-gradient(180deg, transparent, rgb(63 224 240 / .55) 85%, var(--s-cyan)); opacity: 0; mix-blend-mode: multiply; }
.sx__kv { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sx__kv > div { display: flex; align-items: baseline; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid var(--s-line); min-width: 0; }
.sx__kv > div:last-child { border-bottom: 0; }
.sx__kv span { flex: none; width: 78px; font-size: 10.5px; color: var(--s-dim); font-family: var(--s-mono); }
.sx__kv b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sx__draft { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--s-line); background: rgb(255 255 255 / .02); }
.sx__draftK { font-family: var(--s-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--s-dim); }
.sx__btns { display: flex; gap: 8px; }
.sx__btn { padding: 7px 14px; border-radius: 8px; font-size: 11.5px; font-weight: 600; color: var(--s-soft); box-shadow: inset 0 0 0 1px var(--s-line2); }
.sx__btn--go { display: grid; color: #031014; background: var(--s-cyan); box-shadow: 0 0 20px -4px rgb(63 224 240 / .7); }
.sx__btn--go > span { grid-area: 1 / 1; transition: opacity .3s, transform .3s var(--s-ease); }
.sx__btn--go > span + span { opacity: 0; transform: translateY(8px); }

.sx__week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.sx__day { display: grid; gap: 5px; }
.sx__day > span { font-family: var(--s-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--s-dim); }
.sx__day b { height: 40px; display: grid; place-items: center; border-radius: 7px; font-size: 10.5px; font-weight: 500; color: var(--s-dim); background: rgb(255 255 255 / .03); border: 1px solid var(--s-line); font-family: var(--s-mono); }
.sx__day b[data-voll] { background: rgb(255 255 255 / .07); color: #5D7177; }
.sx__day b[data-neu] { color: var(--s-cyan); }

.sx__body--chat { gap: 8px; }
.sx__msg { max-width: 84%; padding: 8px 11px; border-radius: 12px 12px 12px 4px; font-size: 12px; line-height: 1.4; background: rgb(255 255 255 / .07); align-self: flex-start; }
.sx__msg[data-uns], .sx__msg--auto { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: linear-gradient(135deg, rgb(63 224 240 / .22), rgb(143 124 255 / .2)); border: 1px solid rgb(63 224 240 / .3); }
.sx__msg--auto { margin-top: 10px; }
.sx__tipp { align-self: flex-end; display: flex; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgb(63 224 240 / .12); }
.sx__tipp i { width: 5px; height: 5px; border-radius: 50%; background: var(--s-cyan); animation: s-tipp 1s infinite; }
.sx__tipp i:nth-child(2) { animation-delay: .15s; } .sx__tipp i:nth-child(3) { animation-delay: .3s; }
@keyframes s-tipp { 50% { transform: translateY(-3px); opacity: .4; } }
.sx__handover { align-self: center; display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--s-amber); border: 1px dashed rgb(255 181 71 / .5); }
.sx__handover i { width: 6px; height: 6px; border-radius: 50%; background: var(--s-amber); box-shadow: 0 0 8px var(--s-amber); }

.sx__cursor { position: absolute; z-index: 3; width: 18px; height: 22px; right: 30px; top: 50%; opacity: 0; pointer-events: none; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .6)); }
.sx__cursor path { fill: #fff; stroke: #0A1418; stroke-width: 1.3; stroke-linejoin: round; }
.sx__draft .sx__cursor { right: auto; left: 52px; top: auto; bottom: 8px; }
.sx__klick { position: absolute; z-index: 2; width: 34px; height: 34px; margin: -17px 0 0 -17px; right: 31px; top: 50%; border-radius: 50%; border: 2px solid var(--s-cyan); opacity: 0; pointer-events: none; transform: translateX(17px); }
.sx__draft .sx__klick { right: auto; left: 52px; top: auto; bottom: 20px; transform: none; }

/* ── Abspielen, sobald die Karte in der Mitte steht ───────────────────── */
/* Was einläuft, steht in Ruhe gedimmt da — die Nachbarkarten sollen nicht
   leer aussehen — und leuchtet erst unter [data-active] auf. Verlässt die
   Karte die Mitte, fällt sie zurück und spielt beim nächsten Mal neu.
   Tippen und Übergabe sind Ereignisse, kein Inhalt: die bleiben unsichtbar. */
.s-card .sx :is(.sx__row, .sx__kv > div, .sx__day, .sx__msg, .sx__draftK, .sx__btns) { opacity: .32; transform: translateY(8px); }
.s-card .sx :is(.sx__tipp, .sx__handover) { opacity: 0; transform: translateY(8px); }
.s-card[data-active] .sx :is(.sx__row, .sx__kv > div, .sx__day, .sx__msg, .sx__draftK, .sx__btns) { animation: s-ein .55s var(--s-ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 250ms); }
@keyframes s-ein { to { opacity: 1; transform: none; } }

/* Posteingang: Zeiger auf die Reklamation, Klick, Zusammenfassung klappt auf */
.s-card[data-active] [aria-label^="Posteingang"] .sx__cursor { animation: s-zeiger 1.3s 1.2s var(--s-ease) forwards; }
.s-card[data-active] [aria-label^="Posteingang"] .sx__klick { animation: s-klick .6s 2.4s ease-out forwards; }
.s-card[data-active] [aria-label^="Posteingang"] .sx__note { animation: s-auf .6s 2.6s var(--s-ease) forwards; }
.s-card[data-active] [aria-label^="Posteingang"] .sx__row[data-wait] { animation: s-ein .55s var(--s-ease) forwards, s-wahl .6s 2.4s forwards; animation-delay: 470ms, 2.4s; }
@keyframes s-zeiger { from { opacity: 0; transform: translate(-150px, 120px); } 15% { opacity: 1; } to { opacity: 1; transform: translate(0, -2px); } }
@keyframes s-klick { from { opacity: .9; transform: translateX(17px) scale(.3); } to { opacity: 0; transform: translateX(17px) scale(1.6); } }
@keyframes s-auf { to { grid-template-rows: 1fr; margin-top: 0; padding-block: 9px; border-color: rgb(255 181 71 / .3); background: rgb(255 181 71 / .05); } }
@keyframes s-wahl { to { box-shadow: 0 0 0 1px var(--s-amber), 0 0 24px -6px var(--s-amber); } }
.sx__note > * { min-height: 0; }

/* Beleg: der Scanner fährt, dann füllen sich die Felder wie getippt */
.s-card[data-active] .sx__scan { animation: s-scan 1.6s .3s var(--s-ease) 2 both; }
@keyframes s-scan { 0% { opacity: 0; transform: translateY(-100%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(380%); } }
.s-card[data-active] .sx__read .sx__kv > div { animation-delay: calc(var(--i) * 380ms + 700ms); }
.s-card[data-active] .sx__read .sx__kv b { animation: s-tippen .7s steps(18) both; animation-delay: calc(var(--i) * 380ms + 820ms); }
@keyframes s-tippen { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Angebot: Zeiger auf Freigeben, Klick, Knopf wechselt */
.s-card[data-active] .sx__draft .sx__cursor { animation: s-zeiger2 1.2s 1.4s var(--s-ease) forwards; }
.s-card[data-active] .sx__draft .sx__klick { animation: s-klick2 .6s 2.6s ease-out forwards; }
.s-card[data-active] .sx__btn--go { animation: s-gruen .4s 2.6s forwards; }
.s-card[data-active] .sx__btn--go > span:first-child { animation: s-weg .3s 2.6s forwards; }
.s-card[data-active] .sx__btn--go > span + span { animation: s-hin .35s 2.7s var(--s-ease) forwards; }
@keyframes s-zeiger2 { from { opacity: 0; transform: translate(170px, 90px); } 15% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes s-klick2 { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }
@keyframes s-gruen { to { background: var(--s-ok); box-shadow: 0 0 26px -2px rgb(61 220 151 / .8); } }
@keyframes s-weg { to { opacity: 0; transform: translateY(-8px); } }
@keyframes s-hin { to { opacity: 1; transform: none; } }

/* Termine: der Wunschtermin ist belegt, die Alternative leuchtet auf */
.s-card[data-active] .sx__day b[data-wunsch] { animation: s-nein .5s 1.3s 2 both; }
.s-card[data-active] .sx__day b[data-neu] { animation: s-ja .8s 1.9s var(--s-ease) forwards; }
.s-card[data-active] .sx__msg--auto { animation-delay: 2.4s; }
@keyframes s-nein { 0%, 100% { transform: none; } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } 50% { color: var(--s-coral); border-color: var(--s-coral); background: rgb(255 107 90 / .12); } }
@keyframes s-ja { to { color: #031014; background: var(--s-cyan); border-color: var(--s-cyan); box-shadow: 0 0 24px -4px var(--s-cyan); } }

/* Chat: Frage, Tippen, Antwort, Rückfrage, Übergabe */
.s-card[data-active] .sx__body--chat .sx__msg { animation-delay: calc(var(--i) * 900ms + 300ms); }
.s-card[data-active] .sx__tipp { animation: s-ein .3s 1.1s forwards, s-weg .3s 1.9s forwards; }
.s-card[data-active] .sx__body--chat .sx__msg[data-uns] { animation-delay: 2.1s; margin-top: -30px; }
.s-card[data-active] .sx__handover { animation: s-ein .5s 3.9s var(--s-ease) forwards; }

/* ═══════════════════════════════════════════════════════════ 03 · KETTE ═══ */

.s-kette .s-head { margin-bottom: 0; padding-top: clamp(96px, 14vh, 180px); }
.s-kette__pin { margin-top: 24px; }
.s-graph { position: absolute; inset: 0; }
.s-graph svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* Punktraster der Editor-Leinwand, mit Vignette. */
.s-kette .s-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(150 220 230 / .16) 1px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 65% at 50% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(70% 65% at 50% 50%, #000 30%, transparent 100%);
}
.g-kante { fill: none; stroke: rgb(150 220 230 / .14); stroke-width: 1.5; }
.g-kante--an { fill: none; stroke: url(#g-verlauf); stroke-width: 2; stroke-linecap: round; }
.g-kante--warte { stroke: var(--s-amber); stroke-dasharray: 4 5; stroke-width: 1.5; fill: none; opacity: .8; }
.g-kante--warte[data-lauf] { animation: s-ameisen .9s linear infinite; }
@keyframes s-ameisen { to { stroke-dashoffset: -18; } }
.g-knoten rect { fill: #0B161A; stroke: rgb(150 220 230 / .32); stroke-width: 1; transition: stroke .4s, fill .4s; }
.g-knoten text { fill: var(--s-ink); font-family: var(--s-mono); font-size: 13px; font-weight: 600; }
.g-knoten .g-sub { fill: var(--s-dim); font-family: var(--font-sans); font-size: 12px; font-weight: 400; }
.g-knoten .g-badge rect { stroke: none; }
.g-knoten .g-badge text { font-size: 10px; font-weight: 700; fill: #0A0A14; }
.g-knoten[data-ki] rect.g-box { stroke: var(--s-violet); fill: #120F26; }
.g-knoten[data-ki] { filter: drop-shadow(0 0 14px rgb(143 124 255 / .55)); }
.g-knoten[data-ki] .g-badge rect { fill: var(--s-violet); }
.g-knoten[data-du] rect.g-box { stroke: var(--s-amber); fill: #1C1508; }
.g-knoten[data-du] .g-badge rect { fill: var(--s-amber); }
.g-knoten[data-heiss] rect.g-box { stroke: var(--s-cyan); fill: #0B2328; }
.g-knoten[data-heiss] { filter: drop-shadow(0 0 16px rgb(63 224 240 / .7)); }
.g-paket circle:first-child { fill: url(#g-halo); }
.g-paket circle:last-child { fill: #fff; }
/* Der ganze Ablauf: kleinere Knoten mit Symbol. */
.g-dn rect { fill: #0A1418; stroke: rgb(150 220 230 / .26); }
.g-dn text { fill: var(--s-ink); font-family: var(--s-mono); font-size: 11px; font-weight: 600; }
.g-dn .g-sub { fill: var(--s-dim); font-family: var(--font-sans); font-size: 10px; font-weight: 400; }
.g-dn path.g-ico { fill: none; stroke: var(--s-soft); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.g-dn[data-typ="ki"] rect { stroke: var(--s-violet); fill: #120F26; }
.g-dn[data-typ="ki"] path.g-ico { stroke: var(--s-violet); }
.g-dn[data-typ="human"] rect { stroke: var(--s-amber); fill: #1C1508; }
.g-dn[data-typ="human"] path.g-ico { stroke: var(--s-amber); }
.g-dn[data-typ="trigger"] path.g-ico { stroke: var(--s-cyan); }
.g-dn[data-run] rect { stroke: var(--s-ok); fill: #0B2219; }
.g-dn[data-run] { filter: drop-shadow(0 0 10px rgb(61 220 151 / .55)); }
.g-dn[data-typ="human"][data-run] rect { stroke: var(--s-amber); fill: #2A1E07; }
.g-dkante { fill: none; stroke: rgb(150 220 230 / .2); stroke-width: 1.3; }
.g-dkante[data-run] { stroke: var(--s-ok); }
.g-funke { fill: #fff; }

.s-graph__hud {
  position: absolute; top: max(88px, 11svh); left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; font-family: var(--s-mono); font-size: 12px; color: var(--s-soft);
}
.s-graph__hud > span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--s-line2); background: rgb(4 7 10 / .7); }
.s-graph__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-amber); box-shadow: 0 0 10px var(--s-amber); animation: s-puls 1.2s infinite; }
.s-graph__live[data-laeuft] i { background: var(--s-ok); box-shadow: 0 0 10px var(--s-ok); }
.s-graph__count b { color: var(--s-ink); font-variant-numeric: tabular-nums; }
.s-graph__cap {
  position: absolute; left: 50%; bottom: max(28px, 5svh); transform: translateX(-50%);
  width: min(720px, calc(100% - 40px)); text-align: center; color: var(--s-soft); font-size: .98rem; line-height: 1.5;
  display: grid;
}
.s-graph__cap > span { grid-area: 1 / 1; transition: opacity .6s var(--s-ease), transform .6s var(--s-ease); }
.s-graph__cap b { color: var(--s-ink); font-weight: 600; }
.s-graph__cap > [data-cap="b"] { opacity: 0; transform: translateY(10px); }
.s-graph__cap[data-b] > [data-cap="a"] { opacity: 0; transform: translateY(-10px); }
.s-graph__cap[data-b] > [data-cap="b"] { opacity: 1; transform: none; }

.s-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: clamp(96px, 14vh, 160px); }
.s-tile { padding: 30px 28px 32px; }
.s-tile h3 { margin-top: 22px; font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.s-tile p { margin-top: 10px; color: var(--s-soft); line-height: 1.55; font-size: .97rem; }
.s-tile__ico { width: 46px; height: 46px; fill: none; stroke: var(--s-cyan); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgb(63 224 240 / .6)); }
.s-tile[data-ton="violet"] .s-tile__ico { stroke: var(--s-violet); filter: drop-shadow(0 0 10px rgb(143 124 255 / .7)); }
.s-tile[data-ton="amber"] .s-tile__ico { stroke: var(--s-amber); filter: drop-shadow(0 0 10px rgb(255 181 71 / .6)); }
.s-tile__ico path, .s-tile__ico circle { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.8s .3s var(--s-ease); }
.s-tile[data-in] .s-tile__ico path, .s-tile[data-in] .s-tile__ico circle { stroke-dashoffset: 0; }

/* ═══════════════════════════════════════════════════════ 04 · DREI STUFEN ═ */

.s-pult { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
.s-regeln { padding: 26px; display: grid; gap: 22px; }
.s-regeln__demo { display: flex; align-items: center; gap: 8px; font-family: var(--s-mono); font-size: 11px; color: var(--s-cyan); letter-spacing: .04em; }
.s-regeln__demo i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-cyan); box-shadow: 0 0 10px var(--s-cyan); animation: s-puls 1s infinite; }
.s-regel { display: grid; gap: 10px; }
.s-regel__k { font-weight: 600; }
.s-regel__s { font-size: .86rem; color: var(--s-dim); line-height: 1.45; }
.s-regel__fest { font-size: .86rem; color: var(--s-soft); line-height: 1.5; padding-top: 18px; border-top: 1px solid var(--s-line); }
.s-regel__fest b { color: var(--s-ink); }

.s-seg { position: relative; display: flex; padding: 4px; gap: 4px; border-radius: 12px; background: rgb(0 0 0 / .35); border: 1px solid var(--s-line); }
.s-seg button {
  position: relative; z-index: 1; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding-inline: 10px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--s-dim);
  transition: color .3s, background-color .3s, box-shadow .3s;
}
.s-seg button:hover { color: var(--s-ink); }
.s-seg button i { width: 8px; height: 8px; border-radius: 50%; }
.s-seg i[data-g] { background: var(--s-ok); } .s-seg i[data-a] { background: var(--s-amber); } .s-seg i[data-r] { background: var(--s-coral); }
.s-seg button[aria-pressed="true"] { color: var(--s-ink); background: rgb(160 230 240 / .1); box-shadow: inset 0 0 0 1px rgb(63 224 240 / .45), 0 0 18px -6px rgb(63 224 240 / .6); }
.s-seg button[aria-pressed="true"] i { box-shadow: 0 0 10px currentColor; }
.s-seg button[aria-pressed="true"] i[data-g] { box-shadow: 0 0 10px var(--s-ok); } .s-seg button[aria-pressed="true"] i[data-a] { box-shadow: 0 0 10px var(--s-amber); } .s-seg button[aria-pressed="true"] i[data-r] { box-shadow: 0 0 10px var(--s-coral); }

.s-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.s-lane { --ton: var(--s-ok); min-height: 420px; padding: 14px; border-radius: 20px; border: 1px solid var(--s-line); background: rgb(255 255 255 / .02); display: flex; flex-direction: column; }
.s-lane[data-lane="gelb"] { --ton: var(--s-amber); }
.s-lane[data-lane="rot"] { --ton: var(--s-coral); }
.s-lane__k { display: flex; align-items: center; gap: 9px; padding: 4px 4px 14px; font-weight: 600; font-size: .92rem; }
.s-lane__k i { width: 9px; height: 9px; border-radius: 50%; background: var(--ton); box-shadow: 0 0 12px var(--ton); }
.s-lane__k b[data-bump] { animation: s-bump .5s var(--s-ease); }
@keyframes s-bump { 35% { transform: scale(1.3); box-shadow: 0 0 18px var(--ton); } }
.s-lane__k b { margin-left: auto; min-width: 28px; height: 24px; display: grid; place-items: center; border-radius: 8px; font-family: var(--s-mono); font-size: .8rem; color: var(--ton); background: color-mix(in srgb, var(--ton) 12%, transparent); }
.s-lane__list { display: grid; gap: 8px; align-content: start; }
.s-lane__leer { display: none; margin: auto 0; text-align: center; font-size: .85rem; color: var(--s-dim); padding: 20px 8px; }
.s-lane__list:empty + .s-lane__leer { display: block; }
.s-fall {
  --ton: var(--s-amber);
  position: relative; display: grid; gap: 3px; padding: 11px 12px 11px 14px; border-radius: 12px;
  background: #0B1519; border: 1px solid var(--s-line2);
  transition: transform .75s var(--s-ease), box-shadow .5s, border-color .5s;
}
.s-fall::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--ton); box-shadow: 0 0 10px var(--ton); }
.s-fall[data-stufe="gruen"] { --ton: var(--s-ok); }
.s-fall[data-stufe="rot"] { --ton: var(--s-coral); }
.s-fall[data-neu-hier] { border-color: color-mix(in srgb, var(--ton) 60%, transparent); box-shadow: 0 0 30px -8px var(--ton); }
.s-fall__k { display: flex; justify-content: space-between; font-family: var(--s-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--s-dim); }
.s-fall__k em { font-style: normal; color: var(--s-ink); letter-spacing: 0; }
.s-fall__t { font-size: .9rem; font-weight: 500; line-height: 1.3; }
.s-fall__s { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.s-fall__s span { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; color: var(--s-soft); background: rgb(255 255 255 / .05); }
.s-stufen__satz { margin-top: 40px; }

/* ═══════════════════════════════════════════════════════════ 05 · KOSTEN ══ */

.s-kosten__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.s-schritte { position: relative; display: grid; gap: 30px; padding-left: 40px; }
.s-schritte::before, .s-schritte::after { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.s-schritte::before { background: var(--s-line2); }
.s-schritte::after { background: linear-gradient(var(--s-cyan), var(--s-violet)); transform-origin: 50% 0; transform: scaleY(var(--f, 0)); box-shadow: 0 0 12px var(--s-cyan); }
.s-schritte li { position: relative; opacity: .35; transition: opacity .6s var(--s-ease); }
.s-schritte li[data-on] { opacity: 1; }
.s-schritte li > i { position: absolute; left: -36px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--s-bg); border: 2px solid var(--s-dim); transition: all .5s var(--s-ease); }
.s-schritte li[data-on] > i { border-color: var(--s-cyan); background: var(--s-cyan); box-shadow: 0 0 0 5px rgb(63 224 240 / .15), 0 0 16px var(--s-cyan); }
.s-schritte b { font-family: var(--s-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--s-cyan); font-weight: 500; }
.s-schritte h3 { margin-top: 6px; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.s-schritte p { margin-top: 6px; color: var(--s-soft); line-height: 1.55; }

.s-doc { position: relative; margin-top: 48px; padding: 26px 28px; border-radius: 18px; background: linear-gradient(180deg, #F5F9F9, #E6EEEF); color: #13202A; box-shadow: 0 30px 70px -30px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .2); rotate: -1.2deg; }
.s-doc__k { display: flex; justify-content: space-between; font-family: var(--s-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #5A6A72; }
.s-doc__t { margin: 14px 0 12px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; letter-spacing: -.02em; }
.s-doc__row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid #D3DCDE; font-size: .92rem; }
.s-doc__row b { font-weight: 700; }
.s-doc__row b[data-null] { color: #0E7C86; }
.s-doc__foot { margin-top: 10px; font-size: .8rem; color: #5A6A72; line-height: 1.45; }
/* Der Stempel fällt, wenn das Blatt ins Bild kommt. */
.s-stempel {
  position: absolute; right: 22px; top: 54px; padding: 6px 16px; border: 3px solid #0E7C86; border-radius: 8px;
  font-family: var(--s-mono); font-weight: 800; font-size: 1.05rem; letter-spacing: .2em; text-transform: uppercase; color: #0E7C86;
  transform: rotate(-12deg) scale(2.6); opacity: 0; mix-blend-mode: multiply;
}
.s-doc[data-in] .s-stempel { animation: s-stempel .45s .9s cubic-bezier(.5, 0, .75, 0) forwards; }
@keyframes s-stempel { 70% { opacity: .9; transform: rotate(-12deg) scale(.92); } 100% { opacity: .85; transform: rotate(-12deg) scale(1); } }
.s-doc[data-in] { animation: s-wackel .3s 1.35s ease-out; }
@keyframes s-wackel { 40% { transform: translateY(3px); } }

.s-calc { padding: clamp(24px, 3vw, 36px); position: sticky; top: 100px; }
.s-calc h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; letter-spacing: -.02em; }
.s-calc__io { display: grid; gap: 22px; margin-top: 24px; }
.s-calc label { display: grid; gap: 10px; font-size: .92rem; color: var(--s-soft); line-height: 1.45; }
.s-calc__val { font-size: .92rem; color: var(--s-soft); }
.s-calc__val b { color: var(--s-ink); font-size: 1.1rem; }
.s-calc input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; cursor: pointer;
  background: linear-gradient(90deg, var(--s-cyan), var(--s-violet)) 0 / var(--val, 20%) 100% no-repeat, rgb(255 255 255 / .1);
}
.s-calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgb(63 224 240 / .25), 0 0 20px var(--s-cyan); }
.s-calc input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgb(63 224 240 / .25), 0 0 20px var(--s-cyan); }
.s-calc__eur { display: inline-flex; align-items: center; gap: 10px; color: var(--s-ink); }
.s-calc input[type="number"] { width: 110px; height: 44px; padding-inline: 14px; border-radius: 10px; border: 1px solid var(--s-line2); background: rgb(0 0 0 / .35); color: var(--s-ink); font: inherit; font-size: 1.05rem; }
.s-calc input[type="number"]:focus { outline: none; border-color: var(--s-cyan); box-shadow: 0 0 0 3px rgb(63 224 240 / .2); }
.s-calc__out { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--s-line); }
.s-calc__zahl { display: flex; align-items: baseline; gap: 12px; }
.s-calc__zahl span { font-family: var(--font-display); font-size: clamp(3.4rem, 2rem + 4vw, 5.4rem); font-weight: 500; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, var(--s-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-calc__zahl span { filter: drop-shadow(0 0 calc(var(--glow, 0) * 36px) rgb(63 224 240 / .55)); transition: filter .6s var(--s-ease); }
.s-calc__zahl small { color: var(--s-soft); font-size: .95rem; }
.s-calc__sub { margin-top: 10px; color: var(--s-soft); line-height: 1.5; }
.s-calc__sub b { color: var(--s-ink); }
.s-waffel { display: grid; grid-template-columns: repeat(23, minmax(0, 1fr)); gap: 3px; margin-top: 22px; }
.s-waffel i { aspect-ratio: 1; border-radius: 2px; background: rgb(255 255 255 / .06); transition: background-color .35s, box-shadow .35s; transition-delay: calc(var(--i) * 2.5ms); }
.s-waffel i[data-on] { background: var(--s-cyan); box-shadow: 0 0 6px rgb(63 224 240 / .6); }
.s-waffel__k { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--s-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--s-dim); }
.s-calc__note { margin: 22px 0 20px; font-size: .9rem; color: var(--s-soft); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════ 06 · BEISPIELE ═══ */

.s-seg--tabs { display: inline-flex; flex-wrap: wrap; max-width: 100%; margin-bottom: 26px; }
.s-seg--tabs button { flex: none; padding-inline: 18px; }
.s-seg--tabs button[aria-selected="true"] { color: #031014; }
.s-seg__glow { position: absolute; z-index: 0; top: 4px; height: 38px; left: 0; width: 0; border-radius: 9px; background: linear-gradient(120deg, #6FF0FA, #8C9BFF); box-shadow: 0 0 24px -4px rgb(63 224 240 / .7); transition: transform .5s var(--s-ease), width .5s var(--s-ease), top .5s var(--s-ease); }
.s-tab { display: none; }
.s-tab[data-on] { display: block; animation: s-ein .6s var(--s-ease); }

.s-cmp { position: relative; display: grid; border-radius: 18px; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.s-cmp > .s-cmp__a, .s-cmp > .s-cmp__b { grid-area: 1 / 1; }
.s-cmp .sx { height: 100%; font-size: 14px; }
.s-cmp .sx__body { padding: 18px; gap: 10px; }
.s-cmp .sx__row { padding: 12px 14px; }
.s-cmp__b { clip-path: inset(0 0 0 var(--x)); }
.s-cmp__lab {
  position: absolute; top: -14px; z-index: 3; padding: 5px 12px; border-radius: 999px; font-family: var(--s-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--s-bg); border: 1px solid var(--s-line2);
}
.s-cmp__lab[data-s="a"] { left: 18px; color: var(--s-coral); }
.s-cmp__lab[data-s="b"] { right: 18px; color: var(--s-ok); }
.s-cmp__handle {
  position: absolute; z-index: 4; top: -8px; bottom: -8px; left: var(--x); width: 44px; margin-left: -22px;
  border: 0; background: none; padding: 0; cursor: ew-resize;
}
.s-cmp__handle::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--s-cyan), var(--s-violet)); box-shadow: 0 0 16px var(--s-cyan); }
.s-cmp__handle i { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #0B1519; border: 2px solid var(--s-cyan); box-shadow: 0 0 24px rgb(63 224 240 / .6); }
.s-cmp__handle i::before, .s-cmp__handle i::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; margin-top: -6px; }
.s-cmp__handle i::before { left: 5px; border-right-color: var(--s-cyan); }
.s-cmp__handle i::after { right: 5px; border-left-color: var(--s-cyan); }
.s-fazit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.s-fazit p { color: var(--s-soft); line-height: 1.5; }
.s-fazit p b { display: block; font-family: var(--s-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--s-amber); font-weight: 500; margin-bottom: 6px; }
.s-fakt { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); line-height: 1.12; letter-spacing: -.02em; color: var(--s-ink) !important; }
.s-fakt span { display: block; margin-top: 8px; font-family: var(--font-sans); font-size: 1rem; letter-spacing: 0; color: var(--s-soft); }

/* ═══════════════════════════════════════════════════════════ 07 · PERSON ══ */

.s-person__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.s-portrait { position: sticky; top: 110px; margin: 0; }
.s-portrait__bild {
  display: block; position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  clip-path: circle(var(--r, 22%) at 50% 46%);
}
.s-portrait__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(var(--z, 1.18)); filter: saturate(.85) contrast(1.05); }
.s-portrait__bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(4 7 10 / .75)), radial-gradient(120% 80% at 50% 0%, transparent 50%, rgb(14 124 134 / .25)); }
/* Ein Ring aus Licht, der um das Bild läuft, solange es sich öffnet. */
.s-portrait::before {
  content: ""; position: absolute; inset: -2px; border-radius: 30px; z-index: -1; opacity: var(--ring, 0);
  background: conic-gradient(from var(--w, 0deg), transparent 0 60%, var(--s-cyan) 75%, var(--s-violet) 85%, transparent 95%);
  filter: blur(8px);
}
.s-portrait figcaption { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--s-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--s-dim); }
.s-zitat {
  margin: 44px 0 0; font-family: var(--font-display); font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.8rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 500; color: var(--s-ink);
}
.s-zitat__wer { margin-top: 14px; font-family: var(--s-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--s-cyan); }
.s-versprechen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.s-versprechen li { padding: 18px 20px; border-radius: 16px; font-size: .95rem; color: var(--s-soft); line-height: 1.4; }
.s-versprechen b { display: block; margin-bottom: 4px; font-family: var(--s-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--s-cyan); font-weight: 500; }
.s-werkzeug { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--s-line); }
.s-werkzeug > span { font-family: var(--s-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--s-dim); }
.s-werkzeug p { margin-top: 8px; color: var(--s-soft); line-height: 1.55; }
.s-werkzeug p b { color: var(--s-ink); }

/* ═══════════════════════════════════════════════════════════ 08 · FRAGEN ══ */

.s-faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.s-faq__side { position: sticky; top: 100px; }
.s-faq__side a { color: var(--s-cyan); }
.s-nicht { display: grid; gap: 18px; margin-top: 40px; }
.s-nicht li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.s-nicht li > i { position: relative; width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgb(255 107 90 / .4); background: rgb(255 107 90 / .08); }
.s-nicht li > i::before, .s-nicht li > i::after { content: ""; position: absolute; left: 7px; right: 7px; top: 13px; height: 2px; border-radius: 2px; background: var(--s-coral); transform: rotate(45deg) scaleX(0); transition: transform .5s .4s var(--s-ease); }
.s-nicht li > i::after { transform: rotate(-45deg) scaleX(0); transition-delay: .55s; }
.s-nicht li[data-in] > i::before { transform: rotate(45deg) scaleX(1); }
.s-nicht li[data-in] > i::after { transform: rotate(-45deg) scaleX(1); }
.s-nicht span { color: var(--s-soft); line-height: 1.5; font-size: .95rem; }
.s-nicht b { display: block; color: var(--s-ink); font-weight: 600; margin-bottom: 2px; }
.s-qa { border-top: 1px solid var(--s-line); }
.s-qa__item { border-bottom: 1px solid var(--s-line); }
.s-qa__item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; font-size: 1.1rem; font-weight: 500; color: var(--s-ink); transition: color .3s; }
.s-qa__item button:hover { color: var(--s-cyan); }
.s-qa__item button i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--s-line2); transition: transform .5s var(--s-ease), border-color .3s, background-color .3s; }
.s-qa__item button i::before, .s-qa__item button i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; }
.s-qa__item button i::after { transform: rotate(90deg); }
.s-qa__item[data-open] button i { transform: rotate(135deg); border-color: var(--s-cyan); background: rgb(63 224 240 / .1); color: var(--s-cyan); }
.s-qa__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--s-ease); }
.s-qa__body > div { overflow: hidden; }
.s-qa__item[data-open] .s-qa__body { grid-template-rows: 1fr; }
.s-qa__body p { padding: 0 60px 26px 4px; color: var(--s-soft); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════ SCHLUSS ══════ */

.s-schluss { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; text-align: center; padding-block: 140px; overflow: clip; }
.s-orbit { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-schluss__in { position: relative; z-index: 1; display: grid; justify-items: center; width: 100%; }
.s-schluss__row .btn { white-space: normal; text-align: center; }
.s-schluss .s-kick { justify-content: center; }
.s-schluss .s-h { max-width: 14ch; }
.s-schluss__lede { margin-inline: auto; text-align: center; max-width: 52ch; }
.s-schluss__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.s-schluss__note { margin-top: 18px; font-size: .9rem; color: var(--s-dim); }
/* Ein Lichtsaum läuft um den Hauptknopf. */
.s-cta { position: relative; isolation: isolate; }
.s-cta::before { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: inherit; background: conic-gradient(from var(--w, 0deg), var(--s-cyan), var(--s-violet), transparent 40%, var(--s-cyan)); filter: blur(6px); opacity: .9; animation: s-saum 3s linear infinite; }
@property --w { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@keyframes s-saum { to { --w: 360deg; } }

/* ═══════════════════════════════════════════════════════════ FUNK ═════════ */
/* Der Pixel-Roboter aus signal.js. Er hängt im Element seiner Station; die
   zwei Gastgeber ohne eigene Lage bekommen sie hier. */
#bilanz > .s-wrap, #s-pult { position: relative; }
.s-bot {
  position: absolute; left: 0; top: 0; z-index: 6; width: 72px; height: 72px; pointer-events: none; will-change: transform;
  filter: drop-shadow(0 0 6px rgb(63 224 240 / .55)) drop-shadow(0 0 18px rgb(63 224 240 / .18));
}
.s-bot__in { width: 100%; height: 100%; transform-origin: 50% 0; }
.s-bot__in[data-stand] { transform-origin: 50% 100%; }
.s-bot__in[data-squash] { animation: s-bot-squash .28s ease-out; }
.s-bot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.s-bot rect { shape-rendering: crispEdges; }
.s-bot .s-bot-a { animation: s-bot-glimm 1.6s steps(2) infinite; }
.s-bot .s-bot-g { animation: s-bot-glimm 2.4s ease-in-out infinite; }
/* Düse beim Hochfliegen */
.s-bot__flamme { position: absolute; left: 50%; bottom: -10px; width: 8px; height: 12px; margin-left: -4px; opacity: 0;
  background: linear-gradient(var(--s-amber), var(--s-coral) 60%, transparent); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.s-bot[data-flug] .s-bot__flamme { opacity: 1; animation: s-bot-flacker .08s steps(2) infinite; }
/* Teleskoparm: setzt die Hand der Pose "tipp" (Zeile 10 von 16) nach rechts fort */
.s-bot__arm { position: absolute; left: 100%; top: 62.5%; width: 0; height: 6.25%; background: #B9D3D8; box-shadow: inset -6px 0 0 #DCEEF1; transition: width .15s steps(5); }
.s-bot-funke { position: absolute; z-index: 7; width: 6px; height: 6px; margin: -3px 0 0 -3px; pointer-events: none;
  background: var(--s-cyan); box-shadow: 0 0 10px var(--s-cyan); animation: s-bot-funke .6s ease-out forwards; }
/* Ein Wort, an dem er rüttelt. inline-block, weil gescrubbte Wörter sonst keinen transform annehmen. */
.sg .w[data-wackel] { display: inline-block; transform-origin: 50% 100%; animation: s-bot-wackel .9s both; }
@keyframes s-bot-glimm { 50% { opacity: .35; } }
@keyframes s-bot-squash { 30% { transform: scale(1.18, .78); } 70% { transform: scale(.94, 1.06); } }
@keyframes s-bot-flacker { 50% { transform: scaleY(.6); } }
@keyframes s-bot-funke { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@keyframes s-bot-wackel { 15% { transform: rotate(-10deg) translateY(2px); } 35% { transform: rotate(8deg); } 55% { transform: rotate(-5deg); } 75% { transform: rotate(3deg); } 100% { transform: none; } }
@media (max-width: 760px) { .s-bot { width: 48px; height: 48px; } }
@media (prefers-reduced-motion: reduce) {
  .s-bot .s-bot-a, .s-bot .s-bot-g, .s-bot__in[data-squash], .sg .w[data-wackel] { animation: none; }
}

/* ═══════════════════════════════════════════════════════════ FUSS ═════════ */

.s-foot { padding-top: 80px; border-top: 1px solid var(--s-line); background: linear-gradient(180deg, transparent, rgb(14 124 134 / .08)); overflow: clip; }
.s-foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; }
.s-foot__claim { margin-top: 18px; max-width: 34ch; color: var(--s-soft); line-height: 1.5; }
.s-foot__ort { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--s-mono); font-size: 12px; color: var(--s-dim); }
.s-foot__ort i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-ok); box-shadow: 0 0 10px var(--s-ok); animation: s-puls 2s infinite; }
.s-foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.s-foot__cols h4 { font-family: var(--s-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--s-dim); font-weight: 500; }
.s-foot__cols ul { display: grid; gap: 10px; margin-top: 16px; font-size: .92rem; color: var(--s-soft); }
.s-foot__cols a { text-decoration: none; transition: color .2s; }
.s-foot__cols a:hover { color: var(--s-cyan); }
.s-foot__mark {
  margin: 60px 0 0; padding-bottom: .1em; font-family: var(--font-display); font-weight: 600; font-size: 17.5vw; line-height: .78; letter-spacing: -.06em; white-space: nowrap; text-align: center;
  background: linear-gradient(180deg, rgb(234 244 246 / .9) 0%, rgb(63 224 240 / .5) 45%, transparent 92%);
  background-size: 100% 200%; background-position: 0 var(--bp, 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* Volle Fensterbreite: die Schrift wächst mit 17.5vw, also muss es der Grund
     des Verlaufs (background-clip: text) auch, sonst wird sie rechts unsichtbar */
  transform: translateY(var(--ty, 30%)); margin-inline: calc(50% - 50vw);
}
.s-foot__legal { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; padding: 22px 0 28px; border-top: 1px solid var(--s-line); font-size: .82rem; color: var(--s-dim); position: relative; z-index: 1; background: var(--s-bg);
  /* Der Grund, aus dem die Wortmarke steigt, reicht über die volle Breite */
  box-shadow: 0 0 0 100vmax var(--s-bg); clip-path: inset(0 -100vmax -100vmax); }
.s-foot__legal a { color: inherit; }
.s-foot__ki { display: flex; align-items: center; gap: 8px; }
.s-foot__ki i { width: 7px; height: 7px; border-radius: 50%; background: var(--s-violet); box-shadow: 0 0 10px var(--s-violet); flex: none; }

/* ═══════════════════════════════════════════════════════════ SCHMAL ═══════ */

@media (max-width: 1000px) {
  .s-pult, .s-kosten__grid, .s-person__grid, .s-faq__grid { grid-template-columns: minmax(0, 1fr); }
  .s-calc, .s-portrait, .s-faq__side { position: relative; top: 0; }
  /* Der Stempel wartet groß gezoomt auf seinen Fall und ragt dabei über den
     Rand. Hier steht nichts mehr geheftet, also darf der Abschnitt schneiden. */
  .s-kosten { overflow-x: clip; }
  .s-portrait { max-width: 520px; }
  .s-bento { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .s-zahlen { grid-template-columns: minmax(0, 1fr); }
  .s-zahlen li, .s-zahlen li + li { padding: 22px 0; border-left: 0; border-top: 1px solid var(--s-line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: end; }
  .s-zahlen li:first-child { border-top: 0; }
  .s-zahl { font-size: clamp(4.4rem, 22vw, 7rem); min-width: 1.15ch; }
  .s-zahlen p { margin-top: 0; font-size: .95rem; }
  .s-log__item { font-size: 12px; padding: 10px 14px; }

  /* Stapel: Zeile oben, Blätter darunter. */
  .s-stapel .s-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 8px; padding-top: 92px; padding-bottom: 20px; }
  .s-stapel__text .s-h { font-size: clamp(2rem, 9vw, 2.8rem); margin-top: 12px; }
  .s-stapel__text .s-lede { font-size: .95rem; margin-top: 12px; }
  /* Beide Absätze teilen sich eine Rasterzelle: der längere hält den Platz
     frei, damit die Blätter nicht über dem Text landen. */
  .s-stapel__text { display: grid; min-height: 0; }
  .s-stapel__text > * { grid-column: 1; }
  .s-stapel__text [data-phase] { grid-row: 3; }
  .s-pile { height: 100%; min-height: 0; }
  .s-sheet { width: 250px; margin-left: -125px; padding: 10px 13px 11px; }
  .s-sheet__t { font-size: 13.5px; } .s-sheet__s { font-size: 11.5px; }

  .s-card { flex-basis: 86vw; height: auto; max-height: 80svh; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; padding: 20px 18px; }
  .s-card h3 { margin: 6px 0 10px; font-size: 1.55rem; }
  .s-teil { padding: 9px 0; } .s-teil p { font-size: .88rem; margin-top: 3px; }
  .s-chips { display: none; }
  .sx { font-size: 11.5px; }
  .sx__body { padding: 10px; gap: 6px; }
  .sx__row { padding: 6px 8px; }
  .sx__chip { display: none; }
  .sx__read { grid-template-columns: 70px minmax(0, 1fr); }
  .sx__day b { height: 32px; }
  /* Chat-Karte: die Übergabe steht schon im Verlauf, die Fußzeile wiederholt sie nur */
  .sx__body--chat + .sx__foot { display: none; }
  .sx__body--chat { gap: 4px; }
  .sx__handover { margin-top: 0; }

  .s-board { grid-template-columns: minmax(0, 1fr); }
  .s-lane { min-height: 0; }
  .s-lane__leer { padding: 6px; }
  .s-fazit { grid-template-columns: minmax(0, 1fr); }
  .s-cmp .sx { font-size: 12px; }
  .s-cmp .sx__body { padding: 12px; }
  .s-cmp .sx__row { padding: 9px 10px; }
  .s-versprechen { grid-template-columns: minmax(0, 1fr); }
  .s-qa__body p { padding-right: 8px; }
  .s-foot__top, .s-foot__cols { grid-template-columns: minmax(0, 1fr); }
  .s-graph__hud { top: 84px; }
  .s-graph__cap { font-size: .88rem; }
}

/* Kleine Telefone: Text, beide Teile und der Bildschirm passen nicht in die
   Karte. Der zweite Teil und die Fußzeile des Bildschirms gehen zuerst. */
@media (max-width: 760px) and (max-height: 740px) {
  .s-card .s-teil[data-k="du"], .s-card .sx__foot { display: none; }
}
/* Passt trotzdem eine Karte nicht auf den Schirm, setzt signal.js data-stapel:
   keine Fahrt, die Karten stehen untereinander */
.s-fahrt[data-stapel] { height: auto; }
.s-fahrt[data-stapel] .s-stage { position: relative; height: auto; overflow: visible; padding-block: 40px; }
.s-fahrt[data-stapel] .s-track { width: auto; flex-direction: column; align-items: stretch; transform: none !important; }
.s-fahrt[data-stapel] .s-card { flex-basis: auto; height: auto; max-height: none; transform: none !important; opacity: 1 !important; }
.s-fahrt[data-stapel] :is(.s-hbar, .s-hint) { display: none; }

/* Auf dem Telefon ist die Bühne schmal und schnell erfasst: kürzerer Weg
   durch die Kette, sonst wischt man lange über denselben Zustand. */
@media (max-width: 760px) {
  .s-kette__pin { --len: 300 !important; }
}

/* Nur für Vorleseprogramme */
.s-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ═══════════════════════════════════════════════════ WENIGER BEWEGUNG ═════ */
/* Kein Heften, kein Scrub, keine Schleifen. Alles steht im Endzustand und
   in normaler Reihenfolge da; signal.js schaltet seine Szenen ab. */
@media (prefers-reduced-motion: reduce) {
  .s-pin { height: auto !important; }
  .s-stage { position: relative; height: auto; overflow: visible; }
  .s-rise, .s-split .w > span { opacity: 1; transform: none; filter: none; transition: none; }
  .s-scrub .w { opacity: 1; }
  .s-log__row, .s-aurora, .sg .hero h1, .s-cta::before, .sg .nav__antenne, .sg .nav__augen, .s-hint i::after,
  .s-h em, .s-zitat em, .sg .btn--primary, .s-zahl[data-fertig], .s-rail li[data-done] a > i, .g-kante--warte[data-lauf] { animation: none; }
  .s-licht, .s-rail__line::after { display: none; }
  .s-sheet { opacity: 1 !important; }
  .s-lane__k b[data-bump] { animation: none; }
  .s-stapel .s-stage { padding-block: 40px; }
  .s-stapel__text [data-phase] { opacity: 1; transform: none; position: static; }
  .s-pile { height: auto; display: grid; gap: 10px; }
  .s-sheet { position: relative; left: auto; top: auto; margin: 0; width: auto; transform: none !important; }
  .s-pile__cap { position: static; opacity: 1; }
  .s-fahrt .s-stage { padding-block: 40px; }
  .s-track { width: auto; flex-direction: column; align-items: stretch; transform: none !important; }
  .s-card { flex-basis: auto; height: auto; transform: none !important; opacity: 1 !important; }
  .s-card .sx :is(.sx__row, .sx__kv > div, .sx__day, .sx__msg, .sx__handover, .sx__draftK, .sx__btns) { opacity: 1; transform: none; animation: none !important; }
  .s-card .sx__tipp, .sx__cursor, .sx__klick, .s-hbar, .s-hint { display: none; }
  .sx__note { grid-template-rows: 1fr; margin-top: 0; padding-block: 9px; }
  .s-kette__pin .s-stage { height: 80vh; }
  .s-portrait__bild { clip-path: none; }
  .s-portrait__bild img { transform: none; }
  .s-foot__mark { transform: none; background-position: 0 0; }
  .s-stempel { opacity: .85; transform: rotate(-12deg); }
}
