/* Prototyp C „Scroll-Storytelling“ – ergänzt das Basis-Stylesheet aus Prototyp A */
:root { --header-h: 71px; }
html { scroll-padding-top: var(--header-h); }

/* Header mit Kapitelnavigation und Lesefortschritt */
.story-header { flex-wrap: nowrap; }
.chapters { display: flex; gap: 6px; margin-left: auto; }
.chapters a { position: relative; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--black); font-size: 13px; font-weight: 400; padding: 6px 10px; border-radius: 999px; transition: background .3s, color .3s; }
.chapters a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--blu); transition: background .3s; }
.chapters a.active { background: var(--blu); color: var(--white); }
.chapters a.active::before { background: var(--white); border-color: var(--white); }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--blu); }

/* Szenen: hohe Sektion, darin eine klebende Bühne */
.scene { position: relative; height: 320vh; }
.scene-chaos { height: 260vh; }
.scene-calm { height: 200vh; }
.stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); overflow: hidden; padding: clamp(24px, 4vw, 56px) max(16px, calc((100% - var(--max)) / 2)); display: flex; flex-direction: column; justify-content: center; }
.stage.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.stage.split.reverse .copy { order: 2; }

.scene-chaos, .scene-svc { background: var(--dark-blu); color: var(--white); }
.scene-sec, .scene-ops, .scene-calm { background: var(--white); }

.chapter-no { text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; font-weight: 400; margin: 0 0 12px; color: var(--blu); }
.scene-svc .chapter-no { color: var(--white); }
.scene h2 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.05; margin: 0 0 20px; }
.scene p { font-size: clamp(15px, 1.4vw, 18px); max-width: 56ch; }
.reveal-text, [data-at] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-text.on, [data-at].on { opacity: 1; transform: none; }

/* Kapitel 0: Chaos */
.scene-chaos .stage { justify-content: flex-start; }
.clock { display: flex; flex-direction: column; font-family: var(--font-head); margin-bottom: 16px; }
.clock-time { font-weight: 700; font-size: clamp(56px, 10vw, 120px); line-height: .9; letter-spacing: 2px; }
.clock-day { text-transform: uppercase; letter-spacing: 3px; font-size: 14px; margin-top: 6px; }
.chaos-copy { position: relative; z-index: 2; max-width: 620px; }
.chaos-copy h1 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.02; margin: 8px 0 14px; }
.lead-in { font-size: 18px; margin: 0; }
.counter { font-family: var(--font-head); font-size: 34px; display: inline-block; min-width: 2.2ch; }
.notifications { position: absolute; inset: 0; pointer-events: none; }
.note { position: absolute; width: min(300px, 70vw); background: var(--white); color: var(--black); border-left: 5px solid var(--blu); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; line-height: 1.4; box-shadow: 0 14px 30px rgba(0,0,0,.35); opacity: 0; will-change: transform, opacity; }
.note b { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--blu); margin-bottom: 2px; }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin: 0; white-space: nowrap; transition: opacity .3s; }
.scroll-hint span { display: inline-block; animation: bob 1.6s infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* Kapitel 1: Schild */
.shield-wrap { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 28px; align-items: center; }
.shield { width: 100%; height: auto; overflow: visible; }
.shield-outline, .shield-check { fill: none; stroke: var(--blu); stroke-linecap: round; stroke-linejoin: round; }
.shield-outline { stroke-width: 6; stroke-dasharray: 700; stroke-dashoffset: calc(700 * (1 - var(--p-shield, 0))); }
.shield-check { stroke-width: 10; stroke-dasharray: 140; stroke-dashoffset: calc(140 * (1 - var(--p-check, 0))); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; font-size: 15px; font-weight: 400; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--blu); color: var(--white); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.proof { margin-top: 28px; font-weight: 400; }
.proof span { font-family: var(--font-head); font-weight: 700; color: var(--blu); font-size: 26px; margin-right: 6px; }

/* Kapitel 2: Board */
.board { position: relative; height: min(58svh, 460px); border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); }
.lanes { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); opacity: var(--p-lanes, 0); transition: opacity .2s; }
.lanes span { border-right: 1px dashed rgba(255,255,255,.3); padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }
.lanes span:last-child { border-right: 0; }
.ticket { position: absolute; left: 0; top: 0; width: calc((100% - 48px) / 3); padding: 8px 10px; border-radius: var(--radius); background: var(--white); color: var(--black); font-size: 12px; line-height: 1.3; box-shadow: 0 6px 18px rgba(0,0,0,.25); will-change: transform; }
.ticket i { font-style: normal; display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--blu); font-weight: 700; }
.big-proof { margin: 0 0 8px; font-weight: 400; }
.big-proof span { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 3vw, 38px); margin-right: 8px; }

/* Kapitel 3: Last und Übergabe */
.load { margin-bottom: 28px; }
.load-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 400; margin-bottom: 8px; }
.load-head strong { font-family: var(--font-head); font-size: 34px; color: var(--blu); }
.load-bar { height: 14px; border-radius: 7px; background: var(--grey); overflow: hidden; }
.load-bar span { display: block; height: 100%; width: 100%; background: var(--dark-blu); border-radius: 7px; transition: width .15s linear; }
.handover { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.col { border: 1px solid var(--grey); border-radius: var(--radius); padding: 14px; min-height: 250px; }
.col h3 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--dark-blu); }
.col-blu { border-color: var(--blu); }
.col-blu h3 b { color: var(--blu); }
.col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.col li { font-size: 13px; font-weight: 400; padding: 8px 10px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--grey); animation: pop .4s var(--ease); }
.col li.project { border-color: var(--blu); color: var(--blu); font-weight: 700; }
.col-blu li { background: var(--blu); color: var(--white); border-color: var(--blu); }

/* Kapitel 4: Ruhe */
.stage.calm { align-items: flex-start; }
.calm-clock .clock-time { color: var(--blu); }
.scene-calm h2 { max-width: 22ch; }
.calm-facts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; max-width: 640px; }
.calm-facts li { position: relative; padding-left: 26px; font-size: clamp(15px, 1.4vw, 18px); }
.calm-facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 9px; background: var(--blu); transform: skewX(-25deg); }
.calm-cta .btn { background: var(--blu); color: var(--white); }
.calm-cta .btn:hover { background: var(--dark-blu); }

/* Responsive */
@media (max-width: 1100px) { .chapters a span { display: none; } .chapters a { padding: 8px; } }
@media (max-width: 900px) {
  .stage.split { grid-template-columns: 1fr; align-content: center; gap: 18px; }
  .stage.split.reverse .copy { order: 0; }
  .scene h2 { font-size: clamp(22px, 6vw, 30px); margin-bottom: 10px; }
  .scene p { font-size: 14px; margin: 0 0 8px; }
  .copy > p:not(.chapter-no) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .shield-wrap { grid-template-columns: 90px 1fr; gap: 14px; }
  .checks li { font-size: 13px; }
  .board { height: 36svh; }
  .ticket { font-size: 10px; padding: 5px 6px; }
  .col { min-height: 170px; padding: 10px; }
  .col li { font-size: 11px; padding: 6px 8px; }
  .load { margin-bottom: 14px; }
  .proof { margin-top: 12px; }
}
@media (max-width: 600px) {
  .story-header .btn-small { display: none; }
  .chapters { gap: 2px; }
}

/* Weniger Bewegung: keine klebenden Bühnen, alles im Endzustand */
@media (prefers-reduced-motion: reduce) {
  .scene { height: auto; }
  .stage { position: static; height: auto; min-height: 0; padding-top: 64px; padding-bottom: 64px; }
  .reveal-text, [data-at] { opacity: 1; transform: none; }
  .notifications { display: none; }
  .scroll-hint { display: none; }
}
