/* ════════════════════════════════════════════════════════════════
   Edulia landing — „Aus Chaos wird Ordnung"
   Ein Film über deinen Dienstag. Die ganze Seite hängt an EINER
   Variable: --chaos (1 → 0). Papier + Tinte, ein Signalrot.
   Basiszustand (ohne JS / reduced motion) = das Filmposter:
   alles lesbar, nichts bewegt sich. Das Kino ist Enhancement.
   ════════════════════════════════════════════════════════════════ */

/* ── Self-hosted fonts (kein Third-Party-Request — DSGVO) ── */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2"), url("/fonts/JetBrainsMono-Regular.ttf") format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/JetBrainsMono-Medium.woff2") format("woff2"), url("/fonts/JetBrainsMono-Medium.ttf") format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/JetBrainsMono-SemiBold.woff2") format("woff2"), url("/fonts/JetBrainsMono-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/JetBrainsMono-Bold.woff2") format("woff2"), url("/fonts/JetBrainsMono-Bold.ttf") format("truetype"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/InstrumentSerif-Regular.woff2") format("woff2"), url("/fonts/InstrumentSerif-Regular.ttf") format("truetype"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/InstrumentSerif-Italic.woff2") format("woff2"), url("/fonts/InstrumentSerif-Italic.ttf") format("truetype"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/Caveat-Medium.woff2") format("woff2"); }

/* ── Tokens ── */
:root {
  --paper:       #F4F3EF;   /* geordnete Welt */
  --paper-2:     #ECEBE5;
  --paper-chaos: #F1EDE3;   /* Welt bei --chaos: 1 */
  --surface:     #FFFFFF;
  --ink:         #161513;
  --ink-chaos:   #2A2822;
  --ink-2:       #6C6A63;
  --ink-3:       #9A988F;
  --line:        #DEDCD4;
  --line-2:      #CBC9BF;
  --red:         #E2402A;
  --red-2:       #C2331F;
  --red-wash:    #FBE9E5;

  --mono:   "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif:  "Instrument Serif", Georgia, serif;
  --sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --scrawl: "Caveat", "Comic Sans MS", cursive;

  --ease-out-expo:   cubic-bezier(.16, 1, .3, 1);
  --ease-in-out-soft: cubic-bezier(.65, 0, .35, 1);

  --header-h: 66px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.js) { scroll-behavior: smooth; }
}

body {
  /* Die Welt-Variablen. JS interpoliert sie schrittweise pro Akt. */
  --chaos: 0;
  --world-rot-scale: 0;
  --noise-opacity: 0.015;
  background: color-mix(in oklab, var(--paper) calc((1 - var(--chaos)) * 100%), var(--paper-chaos));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film-Modus startet im Chaos */
html.js:not(.reduced) body { --chaos: 1; --world-rot-scale: 1; --noise-opacity: 0.05; }

a { color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  padding: 10px 16px; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.noscript-note {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.5;
  padding: 12px 18px; text-align: center;
}
.noscript-note a { color: #FF8A76; }

/* ── Typo-Grundgerüst ── */
.display {
  font-family: var(--mono); font-weight: 600;
  line-height: 1.14; letter-spacing: -0.6px; margin: 0;
}
.display em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--red); letter-spacing: 0; font-size: 1.12em; line-height: 1;
}
h2.display { font-size: clamp(30px, 4.2vw, 48px); }

.eyebrow {
  display: block; margin-bottom: 14px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 1.9px; text-transform: uppercase; color: var(--ink-2);
}
.section-head { max-width: 720px; margin: 0 0 52px; }
.section-head p { color: var(--ink-2); font-size: 16.5px; margin: 18px 0 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.act-copy h2.display { position: relative; display: inline-block; }

.chap {
  display: block; margin-bottom: 16px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink-2);
}
.chap b { color: var(--red-2); font-weight: 600; } /* AA: 4.99:1 auf Papier */
/* Poster: das Chaos-Meter erzählt statisch pro Kapitel weiter */
html:not(.js) .act .chap::after, html.reduced .act .chap::after {
  color: var(--ink-3); letter-spacing: 1px; font-weight: 500;
}
html:not(.js) .act--1 .chap::after, html.reduced .act--1 .chap::after { content: " · Chaos\00a064\00a0%"; }
html:not(.js) .act--2 .chap::after, html.reduced .act--2 .chap::after { content: " · Chaos\00a041\00a0%"; }
html:not(.js) .act--3 .chap::after, html.reduced .act--3 .chap::after { content: " · Chaos\00a022\00a0%"; }
html:not(.js) .act--4 .chap::after, html.reduced .act--4 .chap::after { content: " · Chaos\00a09\00a0%"; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.7px; text-transform: uppercase; color: var(--ink-2);
}
.chip::before { content: ""; width: 6px; height: 6px; background: var(--red); flex-shrink: 0; }

/* ── Der rote Stift (SVG-Striche, zeichnen sich im Film selbst) ── */
.pen { position: absolute; overflow: visible; pointer-events: none; }
.pen path {
  fill: none; stroke: var(--red); stroke-linecap: round;
  stroke-width: 3;
}
.pen--strike  { left: -2%; bottom: 0.28em; width: 104%; height: 0.5em; }
.pen--under   { left: 0; bottom: -0.28em; width: min(60%, 300px); height: 12px; }
.pen--total   { width: 100%; bottom: -6px; }
.pen--check   { position: static; display: inline-block; width: 20px; height: 16px; vertical-align: -2px; margin-left: 6px; }
.pen--circle  { left: -6%; top: -18%; width: 112%; height: 136%; }
.pen--circle path { stroke-width: 3; opacity: 0.9; }

/* ── Wordmark + Cursor ── */
.wordmark {
  display: inline-flex; align-items: baseline; gap: 0.16em;
  font-family: var(--mono); font-weight: 600; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.cur { display: inline-block; width: 0.34em; height: 0.72em; background: var(--red); }
@keyframes blink { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
.cur.blink, .tcur { animation: blink 1.1s steps(1) infinite; }
html.reduced .cur.blink, html.reduced .tcur, html:not(.js) .cur.blink { animation: none; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(244, 243, 239, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
html.js:not(.reduced) .site-header {
  background: transparent; border-bottom-color: transparent;
  transition: background .4s ease, border-color .4s ease;
}
html.js:not(.reduced) .site-header.solid {
  background: rgba(244, 243, 239, 0.92); border-bottom-color: var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { text-decoration: none; }
.brand .wordmark { font-size: 23px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink);
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 10px 14px;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--paper-2); }
.nav a.active { color: var(--red-2); }
.nav .nav-cta { background: var(--ink); color: var(--paper); font-weight: 600; border: 1px solid var(--ink); }
.nav .nav-cta:hover { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 760px) { .nav a.nav-link { display: none; } }

/* ── Grain overlay ── */
.grain {
  position: fixed; inset: -50px; z-index: 80; pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}
html:not(.js) .grain, html.reduced .grain { display: none; }

/* ── Der Protagonist ── */
.protagonist {
  position: fixed; left: 0; top: 0; z-index: 85;
  width: 18px; height: 34px; background: var(--red);
  pointer-events: none; opacity: 0;
  will-change: transform;
}
.protagonist.idle { animation: blink 1.1s steps(1) infinite; }
.protagonist.on { opacity: 1; }
html:not(.js) .protagonist, html.reduced .protagonist { display: none; }

/* ── Chaos Meter ── */
.meter {
  position: fixed; top: calc(var(--header-h) + 12px); right: 18px; z-index: 88;
  font-family: var(--mono);
}
html:not(.js) .meter, html.reduced .meter { display: none; }
.meter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  border: 1px solid var(--line-2); cursor: pointer;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.2px; color: var(--ink);
  padding: 7px 10px; min-height: 34px;
}
.meter-btn:hover { border-color: var(--ink); }
.meter-blocks { display: inline-flex; gap: 2px; }
.meter-blocks i {
  width: 7px; height: 12px; background: var(--red);
  border: 1px solid var(--red);
  transition: background .3s ease, border-color .3s ease;
}
.meter-blocks i.off { background: transparent; border-color: var(--line-2); }
.meter-num { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.meter.done .meter-word, .meter.done .meter-num { color: var(--red-2); }
.meter-index {
  list-style: none; margin: 6px 0 0; padding: 6px;
  background: var(--paper); border: 1px solid var(--ink);
}
.meter-index a {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.6px;
  color: var(--ink); text-decoration: none; padding: 7px 9px;
}
.meter-index a:hover { background: var(--paper-2); }
.mi-cur { width: 7px; height: 13px; background: transparent; flex-shrink: 0; }
.meter-index li.now .mi-cur { background: var(--red); }
@media (max-width: 760px) {
  .meter { right: 10px; top: calc(var(--header-h) + 8px); }
  .meter-word { display: none; }
  .meter-btn { font-size: 10px; padding: 6px 8px; }
}

/* ════════════════════════════════════════════════════════════════
   AKTE — Grundlayout
   Basis (Poster): normaler Fluss, Diptychon Chaos → Ordnung.
   Film (html.js:not(.reduced)): 100vh-Bühne, Requisiten absolut.
   ════════════════════════════════════════════════════════════════ */

.act { position: relative; }
.act-pin { position: relative; }

/* — Poster-Basis — */
.act { padding: 72px 0; border-bottom: 1px solid var(--line); }
.act-pin { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.act-copy { max-width: 560px; margin: 0 0 40px; }
.act-stage { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }
.act-stage > .prop { order: 0; }
.act-stage::after {
  content: "→"; order: 1; width: 100%;
  font-family: var(--mono); font-weight: 700; font-size: 30px; color: var(--red);
  text-align: center; padding: 8px 0;
}
.act--0 .act-stage::after { content: none; }
.act-stage > .panel, .act-stage > .sheet, .act-stage > .browser { order: 2; }
.act-hint { display: none; }
.push-chip, .sepa-chip, .kpi-fly { order: 3; }

/* — Film-Modus — */
html.js:not(.reduced) .act { padding: 0; border-bottom: 0; }
html.js:not(.reduced) .act-pin {
  height: 100svh; max-width: none; padding: 0;
  overflow: hidden;
}
html.js:not(.reduced) .act-stage {
  position: absolute; inset: 0; display: block;
}
html.js:not(.reduced) .act-stage::after { content: none; }
html.js:not(.reduced) .act-copy {
  position: absolute; z-index: 6;
  left: max(24px, 5vw); bottom: 9svh;
  max-width: 500px; margin: 0;
  opacity: 0; transform: translateY(24px);
}
html.js:not(.reduced) .act-hint {
  display: block; position: absolute; z-index: 6;
  left: 50%; bottom: 18px; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-2);
}
@keyframes hintnudge { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }
html.js:not(.reduced) .act-hint { animation: hintnudge 2.2s var(--ease-in-out-soft) infinite; }

/* ── Requisiten: Chaos-Physik ──
   rotate/translate über eigene CSS-Properties → kollidieren nicht mit
   GSAP-transform. --rm ist der Pro-Element-Multiplikator (LIFT dreht auf 0°),
   --pokex/y die Maus-Abstoßung, --dx/--dy der Idle-Drift. */
@property --dx { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --dy { syntax: "<length>"; inherits: false; initial-value: 0px; }
/* Deklarierte Startwerte, damit GSAP echte Ausgangswerte lesen kann */
.prop, .mwin { --sel: 0; --rm: 1; }
.prop {
  rotate: calc(var(--rot, 0deg) * var(--world-rot-scale, 0) * var(--rm, 1));
  translate: calc(var(--dx, 0px) + var(--pokex, 0px)) calc(var(--dy, 0px) + var(--pokey, 0px));
  box-shadow: 0 calc(var(--chaos) * 3px) calc(var(--chaos) * 9px) rgb(40 34 24 / calc(var(--chaos) * 0.16));
}
/* Poster (ohne JS / reduced): eingefrorene Rotation, kein Drift */
html:not(.js) .prop, html.reduced .prop { rotate: var(--rot, 0deg); translate: none; }
html.js:not(.reduced) .act-stage .prop {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%);
  margin: 0;
}
@keyframes drift {
  0%   { --dx: 0px;  --dy: 0px; }
  25%  { --dx: 3px;  --dy: -4px; }
  50%  { --dx: -2px; --dy: 3px; }
  75%  { --dx: -4px; --dy: -2px; }
  100% { --dx: 0px;  --dy: 0px; }
}
/* Drift nur, wenn @property unterstützt wird (JS setzt .cpreg) — sonst statisch */
html.js.cpreg:not(.reduced) .prop[data-prop] {
  animation: drift var(--drift-t, 7s) var(--ease-in-out-soft) infinite;
  animation-delay: var(--drift-d, 0s);
}
html.js:not(.reduced) .stage-frozen .prop[data-prop],
html.js:not(.reduced) .stage-off .prop[data-prop],
html.js:not(.reduced) .prop.working { animation-play-state: paused; }
@keyframes jit {
  0%, 100% { margin-top: 0; }
  33% { margin-top: -1.5px; }
  66% { margin-top: 1.2px; }
}
html.js.cpreg:not(.reduced) .prop.jit {
  animation: drift var(--drift-t, 7s) var(--ease-in-out-soft) infinite, jit .35s ease-in-out 1;
}
html.js:not(.cpreg):not(.reduced) .prop.jit { animation: jit .35s ease-in-out 1; }

/* Auswahl-Wash: wie Text markieren (JS treibt --sel 0→1) */
.prop::before, .mwin::before {
  content: ""; position: absolute; inset: -3px; z-index: 5;
  background: rgb(226 64 42 / 0.32);
  transform: scaleX(var(--sel, 0)); transform-origin: left center;
  pointer-events: none;
}

/* ── Sticky Notes ── */
.note {
  width: 148px; min-height: 118px; padding: 14px 13px 18px;
  font-family: var(--scrawl); font-size: 21px; line-height: 1.15;
  color: var(--ink-chaos);
  background: #FBF3C2;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 86% 100%, 0 100%);
}
.note--b { background: #F6E3C0; }
.note--c { background: #DDEBD3; }
.note--d { background: #F2D8CE; font-weight: 700; }
.note::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 21px; height: 22px;
  background: rgb(40 34 24 / 0.09);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ── Mini-Chats (Akt 0) & Messenger-Fenster (Akt 2) ── */
.mini-chat, .mwin {
  background: #E9F4E4; border: 1px solid #C9DCC2;
  font-family: var(--sans);
}
.mini-chat { width: 190px; font-size: 12px; }
.mc-bar, .mw-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #CFE7C6; padding: 7px 10px;
  font-weight: 600; font-size: 11.5px; color: #23301F;
  white-space: nowrap; overflow: hidden;
}
.mc-badge {
  flex-shrink: 0; min-width: 19px; height: 19px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; border-radius: 50%;
  font-family: var(--mono); font-style: normal; font-size: 10.5px; font-weight: 700;
}
.mc-line { display: block; padding: 8px 10px 10px; color: #40483C; }
.mwin { width: min(330px, 34vw); }
.mw-body { padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.mw-msg {
  margin: 0; background: #fff; border: 1px solid #D9E6D4;
  padding: 8px 11px; font-size: 12.5px; color: #333B30;
  border-radius: 0 9px 9px 9px; max-width: 92%;
}
.mw-voice {
  margin: 0; display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid #D9E6D4; border-radius: 0 9px 9px 9px;
  padding: 8px 11px; max-width: 92%;
}
.mv-play { font-size: 11px; color: #40483C; }
.mv-wave { display: inline-flex; align-items: center; gap: 2px; }
.mv-wave i { width: 3px; background: #7CA36E; height: 6px; }
.mv-wave i:nth-child(2n) { height: 12px; }
.mv-wave i:nth-child(3n) { height: 9px; }
.mv-wave i:nth-child(5n) { height: 15px; }
.mv-len { font-family: var(--mono); font-size: 10.5px; color: #6B7565; }

/* ── Excel-Fragment ── */
.excel {
  display: grid; grid-template-columns: repeat(4, 62px);
  background: #FFFFFF; border: 1px solid #B9C4CE; gap: 1px; padding: 1px;
}
.excel i {
  background: #F4F7FA; outline: 1px solid #D6DEE6;
  font-family: var(--mono); font-style: normal; font-size: 10.5px;
  color: #39434D; padding: 5px 6px; text-align: right;
  overflow: hidden; white-space: nowrap;
}
.excel i:nth-child(-n+4) { background: #E4EAF0; font-weight: 600; text-align: center; }
.excel i.err { color: var(--red); font-weight: 700; }

/* ── Zerknüllte Rechnung (klein, Akt 0) ── */
.crumple {
  width: 150px; height: 200px; background: #FDFCF7;
  border: 1px solid var(--line-2);
}
.crumple i {
  position: absolute; inset: 0; background: rgb(40 34 24 / 0.05);
}
.crumple i:nth-child(1) { clip-path: polygon(0 0, 55% 12%, 30% 48%, 0 38%); }
.crumple i:nth-child(2) { clip-path: polygon(55% 12%, 100% 0, 100% 42%, 62% 55%); background: rgb(40 34 24 / 0.08); }
.crumple i:nth-child(3) { clip-path: polygon(0 38%, 42% 52%, 20% 100%, 0 100%); }
.crumple i:nth-child(4) { clip-path: polygon(62% 55%, 100% 42%, 100% 100%, 45% 100%); background: rgb(40 34 24 / 0.07); }
.cr-label {
  position: absolute; left: 10px; top: 12px;
  font-family: var(--scrawl); font-size: 19px; color: var(--ink-chaos);
}

/* ── Abreißkalender ── */
.torn-cal {
  width: 128px; padding: 16px 12px 12px; text-align: center;
  background: #FDFCF7; border: 1px solid var(--line-2);
  clip-path: polygon(0 7%, 6% 0, 14% 6%, 24% 1%, 33% 7%, 44% 0, 55% 6%, 66% 1%, 76% 7%, 87% 1%, 94% 6%, 100% 2%, 100% 100%, 0 100%);
}
.tc-mon { display: block; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--red); }
.tc-day { display: block; font-family: var(--mono); font-size: 52px; font-weight: 700; line-height: 1.1; color: var(--ink-chaos); }
.tc-note { display: block; font-family: var(--scrawl); font-size: 18px; color: var(--red-2); }
.torn-cal .shard { position: absolute; inset: 0; background: #FDFCF7; border: 1px solid var(--line-2); opacity: 0; pointer-events: none; }
.torn-cal .shard:nth-of-type(1) { clip-path: polygon(0 0, 52% 0, 40% 44%, 0 36%); }
.torn-cal .shard:nth-of-type(2) { clip-path: polygon(52% 0, 100% 0, 100% 40%, 40% 44%); }
.torn-cal .shard:nth-of-type(3) { clip-path: polygon(0 36%, 40% 44%, 30% 100%, 0 100%); }
.torn-cal .shard:nth-of-type(4) { clip-path: polygon(40% 44%, 100% 40%, 100% 72%, 55% 78%); }
.torn-cal .shard:nth-of-type(5) { clip-path: polygon(55% 78%, 100% 72%, 100% 100%, 30% 100%); }

/* ── Verpasster Anruf ── */
.misscall {
  width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-chaos);
}
.misscall svg { width: 26px; height: 26px; }
.misscall .mc-badge { position: absolute; top: -8px; right: -8px; }
@keyframes badgepulse { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.22); } 16% { transform: scale(1); } }
html.js:not(.reduced) .misscall .mc-badge { animation: badgepulse 7s ease-in-out infinite; }

/* ── Set dressing ── */
.coffee {
  width: 110px; height: 110px; border-radius: 50%;
  border: 9px solid rgb(110 74 32 / 0.14);
  box-shadow: none !important;
}
.clip { width: 30px; color: var(--ink-3); box-shadow: none !important; }
.clip svg { width: 100%; }

/* ── Panels (die geordnete Welt) ── */
.panel { background: var(--surface); border: 1px solid var(--ink); }
.panel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--ink);
}
.panel-bar .pt { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; position: relative; }
.panel-bar .pd { display: flex; gap: 5px; }
.panel-bar .pd i { width: 8px; height: 8px; border: 1px solid var(--ink); }
.panel-bar .pd i:first-child { background: var(--red); border-color: var(--red); }

/* Wochen-Panel (Akt 1) */
.week { width: min(460px, 92vw); }
html.js:not(.reduced) .week { position: absolute; right: 5vw; top: 14svh; z-index: 4; }
.week .panel-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.wrow {
  display: grid; grid-template-columns: 34px 96px 1fr auto; gap: 10px; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  padding: 11px 12px;
}
.wd { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--red); }
.wt { font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
.wmain b { display: block; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: -0.2px; }
.wmain em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-2); }
.wtag {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.9px; text-transform: uppercase;
  border: 1px solid var(--ink); padding: 5px 8px; color: var(--ink);
}
.wtag--group { background: var(--ink); color: var(--paper); }
.wtag--join { background: var(--red); border-color: var(--red); color: #fff; }
.wtag--off { border-color: var(--line-2); color: var(--ink-3); }
.wrow--cancel .wmain b { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.wrow--cancel .wmain em { color: var(--red-2); }

.push-chip, .sepa-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  padding: 10px 14px;
}
html.js:not(.reduced) .push-chip { position: absolute; z-index: 7; left: 14%; top: 78%; opacity: 0; }
html.js:not(.reduced) .sepa-chip { position: absolute; z-index: 7; right: 8vw; top: 16svh; opacity: 0; }

/* Edulia-Chat (Akt 2) */
.echat { width: min(400px, 92vw); }
html.js:not(.reduced) .echat { position: absolute; right: 6vw; top: 12svh; z-index: 4; opacity: 0; }
.echat .panel-body { padding: 16px 14px; min-height: 280px; }
.msg { background: var(--surface); border: 1px solid var(--line); padding: 12px 13px; margin-bottom: 9px; position: relative; }
.msg .who { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.msg .who .d { width: 7px; height: 7px; flex-shrink: 0; }
.msg .who .n { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.4px; text-transform: uppercase; }
.msg .who .t { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); margin-left: auto; }
.msg .body { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.msg .ticks { font-family: var(--mono); font-size: 10px; color: var(--ink-3); text-align: right; margin-top: 4px; }
.msg .ticks.read { color: var(--red); }
.msg--mine { background: var(--ink); border-color: var(--ink); margin-left: 26px; }
.msg--mine .who .n, .msg--mine .body { color: var(--paper); }
.msg--mine .who .t { color: rgb(244 243 239 / 0.5); }
.msg--mine .ticks { color: rgb(244 243 239 / 0.55); }
.msg--mine .ticks.read { color: #FF8A76; }
.typing { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 9px; }
.typing .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink-3); }
.typing .dots { display: inline-flex; gap: 4px; }
.typing .dots i { width: 5px; height: 5px; background: var(--ink-3); }
@keyframes tybounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
html.js:not(.reduced) .typing .dots i { animation: tybounce 1.1s ease-in-out infinite; }
html.js:not(.reduced) .typing .dots i:nth-child(2) { animation-delay: .15s; }
html.js:not(.reduced) .typing .dots i:nth-child(3) { animation-delay: .3s; }
.filechip {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 9px;
  border: 1px solid var(--ink); background: var(--paper);
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 9px 12px;
}
.filechip i { font-style: normal; background: var(--red); color: #fff; font-size: 9px; font-weight: 700; padding: 3px 5px; }
html.js:not(.reduced) .echat .step { opacity: 0; transform: translateY(10px); }

/* ── Akt 3: das Blatt ── */
.sheet {
  position: relative; width: min(430px, 92vw);
  background: #FDFCF9; border: 1px solid var(--line-2);
}
html.js:not(.reduced) .sheet {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%;
  z-index: 4; width: min(430px, 40vw);
}
.sheet-doc { padding: 26px 24px 22px; position: relative; }
.sheet-shards { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.sheet-shards i { position: absolute; inset: 0; background: #F6F2E6; border: 1px solid var(--line-2); }
.sheet-shards i:nth-child(1) { clip-path: polygon(0 0, 38% 0, 30% 26%, 0 22%); }
.sheet-shards i:nth-child(2) { clip-path: polygon(38% 0, 74% 0, 66% 22%, 30% 26%); }
.sheet-shards i:nth-child(3) { clip-path: polygon(74% 0, 100% 0, 100% 24%, 66% 22%); }
.sheet-shards i:nth-child(4) { clip-path: polygon(0 22%, 30% 26%, 26% 56%, 0 52%); }
.sheet-shards i:nth-child(5) { clip-path: polygon(30% 26%, 66% 22%, 62% 54%, 26% 56%); }
.sheet-shards i:nth-child(6) { clip-path: polygon(66% 22%, 100% 24%, 100% 55%, 62% 54%); }
.sheet-shards i:nth-child(7) { clip-path: polygon(0 52%, 62% 54%, 55% 100%, 0 100%); }
.sheet-shards i:nth-child(8) { clip-path: polygon(62% 54%, 100% 55%, 100% 100%, 55% 100%); }
html:not(.js) .sheet-shards, html.reduced .sheet-shards { display: none; }

.inv-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 14px; }
.inv-head .it { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.inv-head .in { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.inv-line { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.inv-line .desc { color: var(--ink-2); }
.inv-line .amt { font-weight: 600; }
.inv-total { display: flex; justify-content: space-between; padding-top: 13px; font-family: var(--mono); font-size: 14px; font-weight: 600; }
.inv-total > span:first-child { position: relative; }
.inv-vat { display: flex; justify-content: space-between; margin-top: 3px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.inv-stamp {
  position: absolute; right: 16px; bottom: 34px; z-index: 4;
  font-family: var(--mono); font-size: 16px; font-weight: 700; letter-spacing: 3px;
  color: var(--red); border: 2.5px solid var(--red); padding: 8px 15px;
  background: rgb(255 255 255 / 0.82);
  rotate: -2deg;
}
html.js:not(.reduced) .inv-stamp { opacity: 0; }
.inv-stamp .fleck { position: absolute; width: 3px; height: 3px; background: var(--red); opacity: 0; }
.inv-stamp .fleck:nth-child(1) { left: -8px; top: -5px; }
.inv-stamp .fleck:nth-child(2) { right: -7px; top: 40%; }
.inv-stamp .fleck:nth-child(3) { left: 30%; bottom: -7px; }
.inv-stamp .fleck:nth-child(4) { right: -10px; bottom: -4px; }
.inv-stamp .fleck:nth-child(5) { left: -5px; bottom: 30%; }
html.js:not(.reduced) .a3-note { z-index: 5; }

.calc {
  width: 120px; padding: 10px; background: #3B3A36; border: 1px solid #26251F;
}
.calc-lcd {
  display: block; background: #C9D2B8; color: #26251F;
  font-family: var(--mono); font-size: 16px; font-weight: 600; text-align: right;
  padding: 6px 8px; margin-bottom: 8px;
}
.calc-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.calc-keys i { height: 16px; background: #55534C; }
.calc-keys i:last-child { background: var(--red); }

.stamp-pad { width: 92px; height: 62px; background: #8F2517; border: 1px solid #6E1C11; padding: 7px; }
.stamp-pad i { display: block; width: 100%; height: 100%; background: #B62E1B; }
html.js:not(.reduced) .stamp-pad { position: absolute; left: var(--x); top: var(--y); }
html:not(.js) .stamp-pad, html.reduced .stamp-pad { display: none; }

/* ── Akt 4: die dunkle Sequenz ── */
.act--4 { background: var(--ink); color: var(--paper); }
.act--4 .chap, .act--4 .display { color: var(--paper); }
.act--4 .chap b { color: #FF8A76; } /* AA auf Tinte: 7.95:1 */
.act--4 .chip { background: transparent; border-color: rgb(244 243 239 / 0.25); color: rgb(244 243 239 / 0.75); }
.act--4 .act-hint { color: rgb(244 243 239 / 0.55); }

.kpi-fly {
  font-family: var(--mono); font-weight: 700; color: var(--paper);
  font-size: clamp(28px, 4.6vw, 58px); letter-spacing: -1px;
}
html.js:not(.reduced) .kpi-fly {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%;
  z-index: 5; opacity: 0;
}
html:not(.js) .kpi-fly, html.reduced .kpi-fly { display: none; }

.browser { width: min(760px, 94vw); background: #201F1C; border: 1px solid #3A3833; }
html.js:not(.reduced) .browser {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  z-index: 4;
}
.browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid #3A3833;
}
.browser-bar .bd { display: flex; gap: 5px; }
.browser-bar .bd i { width: 8px; height: 8px; border: 1px solid #55534C; }
.browser-bar .bd i:first-child { background: var(--red); border-color: var(--red); }
.burl { font-family: var(--mono); font-size: 10.5px; color: #8B897F; letter-spacing: 0.5px; }
.browser-body { padding: 16px; display: grid; grid-template-columns: 1fr 220px; gap: 14px; }
.kpis { grid-column: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { background: #2A2925; border: 1px solid #3A3833; padding: 13px 14px; }
.kpi .k-label { display: block; font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 1.1px; text-transform: uppercase; color: #8B897F; margin-bottom: 7px; }
.kpi .k-value { font-family: var(--mono); font-size: 21px; font-weight: 600; letter-spacing: -0.5px; color: var(--paper); font-variant-numeric: tabular-nums; }
.kpi--hot { background: var(--red); border-color: var(--red); }
.kpi--hot .k-label { color: rgb(255 255 255 / 0.75); }
.kpi--hot .k-value { color: #fff; }
.bars { grid-column: 1; display: flex; align-items: flex-end; gap: 6px; height: 92px; padding: 14px 15px 12px; background: #2A2925; border: 1px solid #3A3833; }
.bars i { flex: 1; background: #6C6A63; height: var(--h, 30%); transform-origin: bottom; }
.bars i:last-child { background: var(--red); }
.bars-label { grid-column: 1; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #6C6A63; }
.feed { grid-column: 2; grid-row: 1 / span 3; list-style: none; margin: 0; padding: 12px; background: #2A2925; border: 1px solid #3A3833; display: flex; flex-direction: column; gap: 10px; }
.feed li { font-family: var(--mono); font-size: 10.5px; line-height: 1.5; color: #C9C7BD; border-bottom: 1px solid #3A3833; padding-bottom: 9px; }
.feed li:last-child { border-bottom: 0; padding-bottom: 0; }
.feed .f-t { display: block; color: #6C6A63; font-size: 9px; letter-spacing: 1px; }
.a4-excel { z-index: 5; }
@media (max-width: 760px) {
  .browser-body { grid-template-columns: 1fr; }
  .feed { grid-column: 1; grid-row: auto; }
}

/* ── Statement ── */
.statement { background: var(--paper); }
html.js:not(.reduced) .statement { height: 190vh; background: transparent; }
html.js:not(.reduced) .statement .statement-pin {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center;
}
.statement { padding: 110px 0; }
html.js:not(.reduced) .statement { padding: 0; }
.statement p {
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.45; letter-spacing: -0.5px;
  max-width: 940px; margin: 0;
}
.statement em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1em; color: var(--red); position: relative; }
.statement .sw { color: var(--line-2); transition: color .3s ease; }
.statement .sw.lit { color: var(--ink); }
.statement em .sw.lit { color: var(--red); }
html:not(.js) .statement .sw, html.reduced .statement .sw { color: var(--ink); }
html:not(.js) .statement em .sw, html.reduced .statement em .sw { color: var(--red); }

/* ── Akt 0 Spezifika ── */
.a0-copy { z-index: 6; }
html.js:not(.reduced) .a0-copy {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  bottom: auto; max-width: none; width: min(860px, 92vw);
  text-align: center; opacity: 1;
}
.a0-head { font-size: clamp(26px, 5vw, 72px); }
.a0-line1 { display: inline-block; position: relative; }
@media (min-width: 761px) { .a0-line1 { white-space: nowrap; } }
html:not(.js) .a0-copy, html.reduced .a0-copy { max-width: 860px; }
html.js:not(.reduced) .a0-line1 { rotate: -1.2deg; }
.pen--strike path { visibility: hidden; }
html:not(.js) .pen--strike, html.reduced .pen--strike { display: none; }
.a0-line2 { display: block; margin-top: 26px; font-size: 0.62em; color: var(--ink); }
.a0-line2 .tcur { display: inline-block; width: 0.42em; height: 0.82em; background: var(--red); vertical-align: -0.08em; margin-left: 2px; }
html:not(.js) .a0-line2 .tcur, html.reduced .a0-line2 .tcur { display: none; }

/* ── Akt 5: Stille ── */
.act--5 { border-bottom: 0; background: var(--paper); }
html.js:not(.reduced) .act--5 .a5-pin {
  height: 100svh; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.a5-pin { padding: 120px 24px; text-align: center; }
html.js:not(.reduced) .a5-pin { padding: 0 24px; }
.a5-thesis { font-size: clamp(30px, 4.8vw, 62px); line-height: 1.3; }
.a5-thesis .t2 { position: relative; display: inline-block; }
.pen--circle path { visibility: hidden; }
html:not(.js) .pen--circle path, html.reduced .pen--circle path { visibility: visible; }

/* ── Trust ── */
.trust-sec { padding: 104px 0; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.trust-item h3 { font-family: var(--mono); font-size: 16px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.2px; }
.trust-item p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.icon-tile {
  width: 42px; height: 42px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink); background: var(--surface); color: var(--ink);
}
.icon-tile svg { width: 21px; height: 21px; }
.icon-tile--ink { background: var(--ink); color: var(--paper); }
html.js:not(.reduced) [data-rise] { opacity: 0; transform: translateY(26px); }
html.js:not(.reduced) [data-rise].in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out-expo), transform .8s var(--ease-out-expo); }

/* ── FAQ (Ledger) ── */
.faq-sec { padding: 104px 0; }
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); padding: 4px 22px; margin-bottom: 10px; }
.faq details[open] { border-color: var(--ink); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .f-idx { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--red-2); letter-spacing: 1px; flex-shrink: 0; }
.faq summary .mark {
  flex-shrink: 0; width: 26px; height: 26px; margin-left: auto;
  background: var(--paper-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 17px; color: var(--ink-2); transition: transform .2s ease;
}
.faq details[open] summary .mark { transform: rotate(45deg); color: var(--red); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); font-size: 14.5px; }
.faq details a { color: var(--red-2); text-underline-offset: 2px; }

/* ── Conversion zone ── */
.conv { padding: 104px 0 120px; background: var(--paper); position: relative; }
.anchor-mark { display: block; height: 0; }
.door-toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  max-width: 620px; margin: 0 auto 56px;
  border: 1px solid var(--ink); background: var(--surface);
}
.door-tab {
  position: relative; z-index: 2;
  font-family: var(--mono); font-size: clamp(10px, 1.4vw, 12.5px); font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-2); padding: 17px 10px;
  transition: color .25s ease;
  min-height: 52px;
}
.door-tab[aria-selected="true"] { color: var(--paper); }
.door-knob {
  position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 50%;
  background: var(--ink);
  transition: transform .45s var(--ease-out-expo);
}
.door-toggle[data-door="inst"] .door-knob { transform: translateX(100%); }
.door-tab::after { content: "▌"; color: var(--red); margin-left: 8px; opacity: 0; }
.door-tab[aria-selected="true"]::after { opacity: 1; animation: blink 1.1s steps(1) infinite; }
html.reduced .door-tab[aria-selected="true"]::after { animation: none; }
html:not(.js) .door-toggle { display: none; }

.conv-grid { display: grid; gap: 72px; }
.conv-panel { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: start; scroll-margin-top: calc(var(--header-h) + 90px); }
html.js .conv-panel[data-hidden] { display: none; }
.conv-intro h3.display { font-size: clamp(26px, 3.4vw, 40px); }
.conv-intro .lede { color: var(--ink-2); font-size: 16px; margin: 16px 0 0; max-width: 440px; }
.points { list-style: none; padding: 0; margin: 28px 0 0; }
.points li { position: relative; padding-left: 30px; font-size: 14.5px; color: var(--ink-2); margin-bottom: 11px; }
.points li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 11px;
}
.conv-alt {
  margin: 26px 0 0; padding: 14px 16px; max-width: 440px;
  border: 1px dashed var(--line-2); font-size: 13.5px; color: var(--ink-2);
}
.conv-alt a { color: var(--ink); font-weight: 600; }

.conv-form { padding: 30px; }
.card--letter { position: relative; padding-top: 58px; background: #FDFCF9; }
.letter-head {
  position: absolute; top: 16px; left: 30px;
  font-family: var(--scrawl); font-size: 23px; color: var(--ink-2);
}
.form-progress { display: flex; gap: 7px; margin-bottom: 22px; }
.form-progress i { width: 9px; height: 9px; border: 1px solid var(--ink); background: transparent; border-radius: 50%; }
.form-progress i.on { background: var(--red); border-color: var(--red); }
.form-error {
  background: var(--red-wash); border: 1px solid var(--red);
  color: var(--red-2); font-size: 13.5px; padding: 11px 14px; margin-bottom: 18px;
}
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.form-error.shake { animation: shake .18s linear 1; }
html.reduced .form-error.shake { animation: none; }

.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-2);
}
.field label .opt { color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%;
  background: var(--paper); border: 1px solid var(--line-2); color: var(--ink);
  font-family: var(--sans); font-size: 16px;
  padding: 12px 14px; border-radius: 0;
  transition: border-color .12s ease;
  min-height: 46px;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--red); }
#r-code {
  font-family: var(--mono); font-size: 22px; letter-spacing: 14px; text-align: center;
  background-image: repeating-linear-gradient(to right, transparent 0 4px, transparent 4px);
}
.strength { display: flex; gap: 4px; margin-top: 8px; }
.strength i { width: 20px; height: 8px; background: transparent; border: 1px solid var(--line-2); }
.strength i.on { background: var(--red); border-color: var(--red); }
.strength i.on.ok { background: var(--ink); border-color: var(--ink); }

.reg-note {
  margin: 0 0 18px; font-size: 14px; color: var(--ink-2);
  background: var(--paper-2); border: 1px solid var(--line); padding: 11px 14px;
}
.reg-note strong { color: var(--ink); word-break: break-all; }
.reg-check {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 4px 0 14px; font-size: 13.5px; color: var(--ink-2); cursor: pointer;
}
.reg-check input { margin: 2px 0 0; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--ink); }
.reg-check a { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 54px; padding: 0 26px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink);
  transition: opacity .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
}
.btn:active { opacity: 0.82; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--red); border-color: var(--red); color: #fff; }
.conv-form .btn { width: 100%; margin-top: 6px; }
.form-hint { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-2); text-align: center; }
.form-hint a { color: var(--ink-2); }

.conv-success { padding: 48px 30px 40px; text-align: center; position: relative; }
.success-stamp {
  display: inline-block; margin-bottom: 24px;
  font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: 3px;
  color: var(--red); border: 2.5px solid var(--red); padding: 8px 16px;
  rotate: -2deg;
}
@keyframes stampin { from { opacity: 0; scale: 1.6; } to { opacity: 1; scale: 1; } }
html.js:not(.reduced) .conv-success:not(.hidden) .success-stamp { animation: stampin .24s cubic-bezier(.2, 1.4, .4, 1) both; }
.conv-success h3 { font-family: var(--mono); font-weight: 600; font-size: 22px; margin: 0 0 10px; letter-spacing: -0.3px; }
.conv-success p { margin: 0 auto; color: var(--ink-2); font-size: 15px; max-width: 400px; }
.success-actions { display: flex; flex-direction: column; gap: 14px; align-items: center; margin-top: 26px; }
.dash-link { font-size: 13.5px; color: var(--ink-2); }
.dash-link a { color: var(--ink); }

.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  min-height: 60px; padding: 0 26px;
  text-decoration: none; border: 1px solid var(--ink);
  transition: opacity .12s ease;
}
.appstore:active { opacity: 0.85; }
.appstore svg { width: 24px; height: 28px; }
.appstore .lines { text-align: left; line-height: 1.15; }
.appstore .s { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: rgb(244 243 239 / 0.6); }
.appstore .l { display: block; font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
#reg-success .appstore { background: var(--ink); }

/* Brief-Faltung beim Absenden */
@keyframes letterfold {
  0% { transform: none; opacity: 1; }
  45% { transform: perspective(900px) rotateX(28deg) translateY(6px); opacity: 1; }
  100% { transform: perspective(900px) rotateX(28deg) translateY(60px); opacity: 0; }
}
html.js:not(.reduced) .card--letter.fold { animation: letterfold .55s var(--ease-in-out-soft) both; transform-origin: top center; }

/* ── Filmstreifen ── */
.filmstrip-sec { padding: 104px 0 90px; background: var(--paper-2); border-top: 1px solid var(--line); overflow: hidden; }
.fs-head { margin-bottom: 44px; }
.filmstrip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.frame {
  position: relative; background: var(--surface); border: 1px solid var(--ink);
  padding: 40px 20px 34px;
}
.frame::before, .frame::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background-image: radial-gradient(circle at 8px 7px, var(--paper-2) 4px, transparent 4.5px);
  background-size: 26px 14px; background-repeat: repeat-x;
  background-color: var(--ink);
}
.frame::before { top: 0; }
.frame::after { bottom: 0; }
.frame .f-no { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--red-2); letter-spacing: 1px; }
.frame h3 { font-family: var(--mono); font-size: 15.5px; font-weight: 600; letter-spacing: -0.2px; margin: 10px 0 7px; }
.frame p { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }

/* Film-Modus: horizontale Fahrt */
html.js:not(.reduced) .filmstrip-pin { position: relative; }
html.js.strip-h .filmstrip {
  display: flex; gap: 18px; max-width: none;
  padding: 0 max(24px, 6vw); width: max-content;
}
html.js.strip-h .frame { width: 300px; flex-shrink: 0; }
/* Mobile: swipe carousel */
html.js.touch:not(.reduced) .filmstrip {
  display: flex; gap: 14px; overflow-x: auto; max-width: none;
  scroll-snap-type: x mandatory; padding: 0 24px 18px;
  -webkit-overflow-scrolling: touch;
}
html.js.touch:not(.reduced) .frame { width: 78vw; max-width: 320px; flex-shrink: 0; scroll-snap-align: center; }

/* ── Ticker ── */
.ticker {
  background: var(--ink); color: var(--paper);
  overflow: hidden; white-space: nowrap; padding: 13px 0;
}
.ticker-track { display: inline-flex; }
html.js:not(.reduced) .ticker-track { animation: marquee 30s linear infinite; will-change: transform; }
html.js:not(.reduced) .ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
html:not(.js) .ticker-track, html.reduced .ticker-track { white-space: normal; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.ticker-track span {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 1.6px; text-transform: uppercase; padding: 0 18px;
}
.ticker-track b { color: #FF8A76; font-weight: 600; }

/* ── End credits ── */
.credits { background: var(--ink); color: var(--paper); padding: 90px 0 100px; text-align: center; overflow: hidden; }
.credits-roll { max-width: 720px; margin: 0 auto 64px; }
.credits-roll p {
  margin: 0 0 26px; font-family: var(--mono); font-size: clamp(12px, 1.6vw, 15px);
  font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase;
}
.credits-roll p span { display: block; font-size: 0.72em; color: rgb(244 243 239 / 0.5); letter-spacing: 3.5px; margin-bottom: 5px; }
.credits-roll .cr-note { color: rgb(244 243 239 / 0.85); }
html.js:not(.reduced) .credits-roll p { opacity: 0; transform: translateY(18px); }
.credits-cta h2 { color: var(--paper); margin-bottom: 6px; }
.credits-cta h2 em { color: var(--red); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.credits .appstore { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.credits .appstore .s { color: var(--ink-2); }
.cta-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 0 26px;
  border: 1px solid rgb(244 243 239 / 0.4); color: var(--paper);
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  text-decoration: none; transition: border-color .12s ease, background .12s ease;
}
.cta-ghost:hover { border-color: var(--paper); background: rgb(244 243 239 / 0.06); }
.soon { display: block; margin-top: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: rgb(244 243 239 / 0.5); }

/* ── Footer ── */
.site-footer { padding: 64px 0 48px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-mark {
  display: flex; align-items: baseline; gap: 0.14em;
  width: 100%; background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--mono); font-weight: 700; color: var(--ink);
  font-size: clamp(56px, 16vw, 220px); letter-spacing: -0.04em; line-height: 1;
  text-align: left;
}
.footer-mark .cur { width: 0.3em; height: 0.68em; background: var(--red); flex-shrink: 0; }
.footer-cols {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  align-items: center; justify-content: space-between;
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-nav a {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase;
  text-decoration: none; padding: 9px 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .12s ease;
}
.footer-nav a:hover { border-color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.footer-bottom a { color: var(--red-2); text-decoration: underline; text-underline-offset: 2px; }

/* ── Mobile CTA bar ── */
.mobi-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none; gap: 10px; align-items: stretch;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgb(244 243 239 / 0.95); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mobi-cta.show { display: flex; }
.mobi-cta .appstore--slim {
  flex: 1; min-height: 46px; padding: 0 14px; gap: 8px; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
}
.mobi-cta .appstore--slim svg { width: 15px; height: 18px; }
.mobi-cta .btn { flex: 1.2; min-height: 46px; font-size: 11.5px; padding: 0 12px; }
@media (min-width: 761px) { .mobi-cta.show { display: none; } }

/* ── Responsive: Film-Layout ── */
@media (max-width: 960px) {
  html.js:not(.reduced) .act-copy { max-width: 420px; bottom: 12svh; }
  html.js:not(.reduced) .week { right: 3vw; top: 10svh; width: min(400px, 60vw); }
  html.js:not(.reduced) .echat { right: 3vw; width: min(360px, 58vw); }
  .mwin { width: min(280px, 44vw); }
}
@media (max-width: 760px) {
  .conv-panel { grid-template-columns: 1fr; gap: 32px; }
  .trust-grid { grid-template-columns: 1fr; }
  .filmstrip { grid-template-columns: 1fr 1fr; }
  .act-stage > .prop { transform-origin: center; }
  .note { width: 124px; min-height: 100px; font-size: 18px; padding: 11px 11px 15px; }
  .excel { grid-template-columns: repeat(4, 48px); }
  .excel i { font-size: 9px; padding: 4px 5px; }
  /* Film mobile: gleiche gepinnte 100svh-Bühne wie Desktop (Scroll = Playhead),
     Copy überlagert die Bühne unten — als Karte, damit sie über den
     Requisiten lesbar bleibt. Requisiten kompakter. */
  html.js:not(.reduced) .act-copy {
    left: 20px; right: 20px; bottom: 11svh; max-width: none;
    padding: 16px; background: rgb(244 243 239 / 0.94);
    border: 1px solid var(--line);
  }
  html.js:not(.reduced) .act--4 .act-copy {
    background: rgb(22 21 19 / 0.94); border-color: rgb(244 243 239 / 0.25);
  }
  /* Akt 0 trägt beide Klassen (act-copy a0-copy): Karte neutralisieren,
     zentrierte Hero-Position aus der Basisregel wiederherstellen */
  html.js:not(.reduced) .a0-copy {
    left: 50%; right: auto; top: 50%; bottom: auto;
    transform: translate(-50%, -50%);
    padding: 0; background: none; border: 0;
  }
  /* Scroll-Hinweis über die fixe Mobile-CTA-Leiste heben */
  html.js:not(.reduced) .act-hint { bottom: 78px; }
  html.js:not(.reduced) .week { position: absolute; right: 4vw; top: 6svh; width: min(340px, 88vw); }
  html.js:not(.reduced) .echat { right: 4vw; top: 8svh; width: min(330px, 88vw); }
  html.js:not(.reduced) .sheet { width: min(330px, 86vw); }
  html.js:not(.reduced) .browser { width: 94vw; }
  .mwin { width: min(290px, 74vw); }
  [data-lite-hide] { display: none !important; }
  /* Requisiten nicht aus dem Viewport hängen lassen */
  html.js:not(.reduced) .act-stage .prop { left: min(var(--x, 50%), calc(100% - 132px)); }
  html.js:not(.reduced) .act-stage .mini-chat { width: 160px; left: min(var(--x, 50%), calc(100% - 168px)); }
  html.js:not(.reduced) .act-stage .mwin { left: min(var(--x, 50%), calc(100% - 76vw)); }
}
@media (max-width: 460px) {
  .container { padding: 0 18px; }
  .filmstrip { grid-template-columns: 1fr; }
  .wrow { grid-template-columns: 30px 82px 1fr; }
  .wrow .wtag { grid-column: 3; justify-self: start; }
}

/* Lite-Modus (schwache Geräte): weniger Requisiten, kein Drift */
html.lite [data-lite-hide] { display: none !important; }
html.lite .prop[data-prop] { animation: none !important; }
html.lite .grain { display: none; }

/* ── Reduced motion: das Poster ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}
html.reduced [data-rise] { opacity: 1; transform: none; }

/* ── Print: ein sauberes Faktenblatt ── */
@media print {
  .grain, .protagonist, .meter, .act-hint, .mobi-cta, .skip-link,
  .ticker, .credits-roll, .door-toggle, .stamp-pad, .site-header .nav, .push-chip,
  .act-stage > .prop, .act-stage::after { display: none !important; }
  body { background: #fff; color: #000; }
  .act, .trust-sec, .faq-sec, .conv, .credits, .filmstrip-sec { padding: 18px 0; border: 0; }
  .act--4, .credits { background: #fff; color: #000; }
  .act--4 .display, .credits-cta h2 { color: #000; }
  .act--4 .chip { color: #333; border-color: #999; }
  .act--4 .chap { color: #000; }
  .faq details { page-break-inside: avoid; }
  /* Film-Modus neutralisieren: Poster-Layout erzwingen (schlägt GSAP-Inline-Styles) */
  html.js .act-pin { height: auto !important; min-height: 0 !important; overflow: visible !important; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
  html.js .act-stage { position: relative !important; inset: auto !important; height: auto !important; display: block; opacity: 1 !important; }
  html.js .act-copy, html.js .a0-copy {
    position: static !important; transform: none !important; translate: none !important;
    opacity: 1 !important; max-width: 640px; margin: 0 0 24px; text-align: left; width: auto;
  }
  html.js .week, html.js .echat, html.js .sheet, html.js .browser {
    position: static !important; translate: none !important; transform: none !important;
    opacity: 1 !important; margin: 0 0 18px;
  }
  html.js .echat .step, html.js .wrow, html.js .inv-line, html.js .inv-total, html.js .inv-vat,
  html.js .kpi, html.js .feed li { opacity: 1 !important; transform: none !important; }
  html.js .statement { height: auto !important; padding: 18px 0 !important; }
  html.js .statement .statement-pin { position: static !important; height: auto !important; }
  html.js .act--5 .a5-pin { height: auto !important; overflow: visible !important; }
  html.js .filmstrip { display: grid !important; grid-template-columns: repeat(2, 1fr); width: auto !important; transform: none !important; padding: 0 24px; }
  html.js .credits-roll p { opacity: 1 !important; transform: none !important; }
  html.js .conv-panel[data-hidden] { display: grid !important; }
}
