/* Rahmen-Gestaltung: Tokens der Werkschau (Nacht, Türkis, Bernstein). Außerhalb des Canvas werden nur transform/opacity animiert. */
@font-face{font-family:"Bricolage Grotesque";src:url(fonts/BricolageGrotesque.woff2) format("woff2");font-weight:600 800;font-display:swap}
@font-face{font-family:Lato;src:url(fonts/Lato-Regular.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Lato;src:url(fonts/Lato-Bold.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url(fonts/JetBrainsMono-Medium.woff2) format("woff2");font-weight:500;font-display:swap}

:root{
  --nacht:#0e1a2b;--nacht-2:#16273d;--nacht-3:#22384f;
  --tuerkis:#0f7d73;--tuerkis-hell:#5fd0c2;--bernstein:#d9922e;--bernstein-text:#8a5712;--bernstein-hell:#f0b45a;--koralle:#e0675a;
  --papier:#f5f7f8;--weiss:#fff;--tinte:#0e1a2b;--grau:#4a5a6a;--linie:#d5dde2;--hellgrau:#c4d1dc;
  --kopf:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;--text:Lato,"Segoe UI",system-ui,sans-serif;--mono:"JetBrains Mono",Consolas,monospace;
  --breite:min(1240px,100% - 3rem);--navh:3.2rem
}
*{box-sizing:border-box}
/* Runde 7: Hintergrund der Leinwand = Nacht (kein Weiß über der Kopfleiste); kein weiches Scrollen, sonst hinkt die Kopfleiste im Bild hinterher (gemessen: 24 helle Zeilen) */
html{-webkit-text-size-adjust:100%;scroll-padding-top:4rem;background:var(--nacht)}
body{margin:0;background:var(--papier);color:var(--tinte);font:400 1.0625rem/1.6 var(--text);overflow-wrap:anywhere}
a{color:var(--tuerkis)}a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--bernstein);outline-offset:2px;border-radius:2px}
.skip{position:absolute;left:-999px;top:0;background:var(--weiss);color:var(--tinte);padding:.6rem 1rem;z-index:30}
.skip:focus{left:.5rem;top:.5rem}
.wrap{width:var(--breite);margin-inline:auto}

/* Navigation: bleibt stehen, zeigt den aktiven Abschnitt, trägt die kleine Umschaltung "Einfache Ansicht" */
nav.sprung{background:var(--nacht-2);position:sticky;top:0;z-index:20;border-bottom:1px solid #2a4560}
.nav-in{display:flex;align-items:center;gap:1rem;width:var(--breite);margin-inline:auto;min-height:var(--navh)}
nav.sprung ul{list-style:none;margin:0;padding:0;display:flex;gap:.1rem;overflow-x:auto;flex:1;scrollbar-width:none}
nav.sprung ul::-webkit-scrollbar{display:none}
nav.sprung a{display:block;padding:.75rem .7rem;color:var(--hellgrau);text-decoration:none;font:500 .84rem var(--mono);white-space:nowrap;border-bottom:3px solid transparent}
nav.sprung a:hover,nav.sprung a:focus-visible{color:var(--tuerkis-hell)}
nav.sprung a[aria-current=true]{color:#fff;border-bottom-color:var(--tuerkis-hell)}
.ansicht{display:none;flex:none;background:transparent;color:var(--hellgrau);border:1.5px solid #5d7389;border-radius:999px;padding:.35rem .85rem;font:700 .8rem var(--text);cursor:pointer;min-height:36px}
.js .ansicht{display:inline-block}
.ansicht[aria-pressed=true]{background:var(--tuerkis-hell);color:var(--nacht);border-color:var(--tuerkis-hell)}

/* Bühne: Kopf, 01 und 02 stehen links, das Hauptbild bleibt rechts stehen */
.dunkel{background:radial-gradient(1200px 600px at 78% 8%,#16314d 0,transparent 60%),var(--nacht);color:#e8eef3;position:relative;isolation:isolate}
.dunkel::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.09;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")}
.dunkel a{color:var(--tuerkis-hell)}
.raum-in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:2.5rem;width:var(--breite);margin-inline:auto;padding-bottom:3rem}
.no-js .bild,.no-js .steuer,.no-js .bandzeile,.no-js .bild-kleb{display:none}
.herobild+.bild-kleb{margin-top:0}.herobild .stand-zeile{font:500 .75rem var(--mono);color:#9fb0c7;margin:.7rem 0 0}
.herobild svg{width:100%;height:auto;display:block;border-radius:12px;box-shadow:0 20px 60px -20px rgba(0,0,0,.6),0 0 0 1px #2a4560}
.spalte-bild{padding-top:2.6rem}
.bild-kleb{position:sticky;top:calc(var(--navh) + 1.2rem)}
.kopf{padding:3rem 0 1rem}
.marke{font:700 .8rem var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--tuerkis-hell);margin:0 0 .8rem}
h1{font:800 clamp(2rem,3.2vw,3.1rem)/1.06 var(--kopf);margin:0;text-wrap:balance}
h1 .zl{display:block;overflow:hidden;padding-bottom:.08em}
.js h1 .zl>span{display:block;animation:zeile .9s cubic-bezier(.2,.75,.2,1) both;animation-delay:calc(var(--i)*.14s + .05s)}
@keyframes zeile{from{transform:translateY(108%);opacity:0}to{transform:none;opacity:1}}
.unter{max-width:44ch;margin:1.1rem 0 0;color:var(--hellgrau);font-size:1.1rem}
.ehrlich{margin:1.2rem 0 0;font:500 .78rem/1.5 var(--mono);color:#a9bccb;max-width:44ch}

section.abs{padding:2.6rem 0;position:relative}
.dunkel section.abs{border-top:1px solid #2a4560}
.hell{background:var(--papier);color:var(--tinte)}
.hell.alt{background:var(--weiss)}
section.hell{padding:4rem 0;border-bottom:1px solid var(--linie)}
h2{font:800 clamp(1.5rem,2.6vw,2.1rem)/1.15 var(--kopf);margin:0 0 1.2rem;display:flex;gap:.8rem;align-items:baseline;text-wrap:balance}
h2 .nr{font:500 1rem var(--mono);color:var(--tuerkis)}
.dunkel h2 .nr{color:var(--tuerkis-hell)}
h3{font:700 1.15rem var(--kopf);margin:1.6rem 0 .5rem}
p{margin:.6rem 0;max-width:68ch}
.antwort{border-left:5px solid var(--tuerkis);padding:.4rem 0 .4rem 1rem;font-size:1.12rem}
.dunkel .antwort{border-color:var(--tuerkis-hell)}
.zitat{font:700 1.45rem/1.3 var(--kopf);margin:.4rem 0 1rem}
.dunkel small{color:#a9bccb}
code,kbd,pre{font-family:var(--mono)}
pre{background:var(--nacht);color:#dce8f0;padding:1rem 1.2rem;overflow-x:auto;border-radius:8px;font-size:.88rem;line-height:1.5}
:not(pre)>code{background:#e8eef1;padding:.1em .35em;border-radius:3px;font-size:.9em;color:var(--tinte)}
.dunkel :not(pre)>code{background:#22384f;color:#e8eef3}

/* 12er-Raster der hellen Abschnitte: Text über 7 Spalten, Randspalte über 5 */
.gitter{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1.6rem 2rem;align-items:start}
.haupt{grid-column:1/span 7;min-width:0}
.rand{grid-column:8/span 5;min-width:0}
.breit{grid-column:1/-1;min-width:0}
.haupt>:first-child,.rand>:first-child{margin-top:0}
.merk{border-left:5px solid #3f5a74;padding:.2rem 0 .2rem 1.1rem;font:700 1.35rem/1.35 var(--kopf);margin:0 0 1.2rem;max-width:30ch}
.rand h3{margin-top:0}
.rand ul{padding-left:1.1rem;margin:.4rem 0}
.rand li{margin:.4rem 0}
.kasten{background:var(--weiss);border:1px solid var(--linie);border-radius:10px;padding:1.1rem 1.2rem}
.hell.alt .kasten{background:var(--papier)}

/* Hauptbild */
.bild{background:var(--nacht);border-radius:12px;position:relative;overflow:hidden;aspect-ratio:16/10;color:#dce8f0;box-shadow:0 20px 60px -20px rgba(0,0,0,.6),0 0 0 1px #2a4560}
.bild canvas,.bild svg.b2d{position:absolute;inset:0;width:100%;height:100%;display:block}
.bild{display:none}.js .bild{display:block}
.bild canvas{opacity:0;transition:opacity .6s}
[data-stufe="2"] .bild canvas{opacity:1}
[data-stufe="2"] .bild svg.b2d{visibility:hidden}
.stufenmarke{font:500 .72rem var(--mono);color:#8ba1b4;margin:0;white-space:nowrap}
.bandzeile{display:none;align-items:center;gap:1rem;margin-top:.7rem}.js .bandzeile{display:flex}
.band{list-style:none;margin:0;padding:0;flex:1;display:flex;gap:3px}
.band li{flex:1;height:6px;border-radius:3px;background:#2a4560;transition:background .3s}
.band li.da{background:var(--tuerkis-hell)}.band li.da.zweifel{background:var(--bernstein)}
.band li.aktiv{box-shadow:0 0 8px 1px rgba(95,208,194,.7)}.band li.aktiv.zweifel{box-shadow:0 0 8px 1px rgba(217,146,46,.7)}
.bildfolge{margin:1.2rem 0 0}
.js .bildfolge{display:none}
.js.druck .bildfolge{display:block}
@media print{.bildfolge{display:block!important}.bild,.steuer,.protokoll{display:none}}
.nur-ohne-js{display:block}.js .nur-ohne-js{display:none}
.nur-mit-js{display:none}.js .nur-mit-js{display:block}.js .steuer.nur-mit-js{display:flex}
.folge{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:.9rem;list-style:none;margin:1rem 0;padding:0;counter-reset:f}
.folge li{background:var(--nacht-2);color:#dce8f0;border-radius:8px;padding:.7rem;counter-increment:f}
.folge svg{width:100%;height:auto;display:block;background:var(--nacht);border-radius:5px}
.folge b{display:block;font:700 .95rem var(--kopf);margin:.5rem 0 .2rem;color:var(--tuerkis-hell)}
.folge b::before{content:counter(f) ". "}
.folge span{font-size:.9rem;color:var(--hellgrau)}

/* Steuerleiste: eine Zeile, Segmente statt Auswahlfelder */
.steuer{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin:.9rem 0 0}
.steuer button{font:700 .82rem var(--text);cursor:pointer;min-height:40px;color:var(--hellgrau);background:transparent;border:0}
.steuer svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:block}
.steuer .primaer{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .95rem .4rem .75rem;border-radius:999px;background:var(--tuerkis-hell);color:var(--nacht)}
.steuer .primaer:hover{background:#7fe0d3}
.steuer .ico{width:40px;border-radius:50%;border:1.5px solid #3f5a74;display:inline-flex;align-items:center;justify-content:center;padding:0}
.steuer .ico:hover{border-color:var(--tuerkis-hell);color:#fff}
.seg{display:inline-flex;border:1.5px solid #3f5a74;border-radius:999px;overflow:hidden}
.seg button{padding:.35rem .7rem;min-height:37px}
.seg button+button{border-left:1.5px solid #3f5a74}
.seg button[aria-pressed=true]{background:#22384f;color:#fff;box-shadow:inset 0 -2px 0 var(--tuerkis-hell)}
.seg button:not([aria-pressed=true]):hover{color:#fff}
.schritt-jetzt{margin:.7rem 0 0;font-weight:700;min-height:3.2em;font-size:.95rem;line-height:1.45;color:#e8eef3;max-width:none}

/* Protokoll: aktiver Schritt hervorgehoben, oben weicher Verlauf statt harter Kante */
.protokoll{position:relative;margin-top:1.2rem;background:rgba(255,255,255,.04);border:1px solid #2a4560;border-radius:12px;padding:1rem 1rem 1.2rem;max-height:none;overflow:visible}
.protokoll h3{margin:.8rem 0 .6rem;font-size:1rem;color:#fff}
.protokoll ol{list-style:none;margin:0;padding:0}
.protokoll li{border-left:3px solid #2a4560;padding:.45rem .7rem;margin:0 0 .35rem;font-size:.92rem;color:#a9bccb;border-radius:0 6px 6px 0}
.protokoll li.da{color:#dce8f0;border-color:var(--tuerkis-hell)}
.protokoll li.da.zweifel{border-color:var(--bernstein)}
.protokoll li[aria-current=step]{background:rgba(95,208,194,.14);color:#fff}
.protokoll li[aria-current=step].zweifel{background:rgba(217,146,46,.18)}
.protokoll li b{display:block}
.protokoll li .t{font:500 .74rem var(--mono);color:#a9bccb;display:flex;align-items:center;gap:.4rem}.protokoll li .t .ms{margin-left:auto;font-weight:700;color:#dce8f0}.sy{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
details.liste{margin-top:1.4rem}
details.liste summary{cursor:pointer;font:700 1.05rem var(--kopf);padding:.3rem 0}
.filter{display:flex;gap:.4rem;flex-wrap:wrap;margin:.6rem 0}
.filter button{font:700 .85rem var(--text);padding:.4rem .9rem;border-radius:999px;border:1.5px solid #3f5a74;background:transparent;color:var(--hellgrau);cursor:pointer;min-height:38px}
.filter button[aria-pressed=true]{background:#e8eef3;color:var(--nacht)}
.tabw{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:.94rem}
th,td{text-align:left;padding:.6rem .8rem;border-bottom:1px solid var(--linie);vertical-align:top}
th{font:700 .82rem var(--mono);background:#e8eef1;color:var(--tinte)}
.dunkel th,.dunkel td{border-color:#2a4560}
.dunkel th{background:#1b3149;color:#dce8f0}
.linkbtn{background:none;border:0;padding:0;font:700 .94rem var(--mono);color:var(--tuerkis);text-decoration:underline;cursor:pointer;min-height:28px}
.dunkel .linkbtn{color:var(--tuerkis-hell)}
td.pr{color:var(--bernstein-text);font-weight:700}td.au{color:var(--tuerkis);font-weight:700}
.dunkel td.pr{color:var(--bernstein-hell)}.dunkel td.au{color:var(--tuerkis-hell)}

/* 04 Karten: gleich hoch, zwei schmale Balken je Karte */
.karten{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:1rem;margin:0;padding:0;list-style:none}
.karte{background:var(--weiss);border:1px solid var(--linie);border-top:5px solid var(--tuerkis);border-radius:10px;padding:1rem 1rem 1.1rem;display:flex;flex-direction:column;gap:.6rem}
.hell.alt .karte{background:var(--papier)}
.karte.annahme{border-top-color:var(--bernstein)}
.karte .name{font:700 1rem/1.25 var(--kopf);min-height:2.5em}
.vergleich{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.seite{display:flex;gap:.5rem;align-items:flex-end;min-width:0}
.balken{flex:none;width:14px;height:84px;background:#e2e9ed;border-radius:7px;position:relative;overflow:hidden}
.balken i{position:absolute;inset:0;border-radius:7px;background:var(--tuerkis);transform-origin:bottom;transform:scaleY(var(--p))}
.seite.zwei .balken i{background:repeating-linear-gradient(135deg,#4a5a6a 0 4px,#6b7c8c 4px 8px)}
.js .karte:not(.sichtbar) .balken i{transform:scaleY(0)}
.balken i{transition:transform 1.1s cubic-bezier(.2,.7,.2,1)}
.seite .txt{display:flex;flex-direction:column;min-width:0}
.seite .wer{font:500 .68rem/1.2 var(--mono);color:var(--grau);min-height:2.4em}
.seite .zahl{font:800 28px/1.05 var(--kopf);font-variant-numeric:tabular-nums;letter-spacing:-.01em;color:var(--tuerkis);white-space:nowrap}
.seite.zwei .zahl{color:#4a5a6a}
.seite .klein{font-size:.8rem;color:var(--grau);min-height:1.3em}
.karte .erkl{font-size:.9rem;color:var(--grau);margin:0}
.arch{width:100%;height:auto;background:var(--nacht);border-radius:12px}
.fuss{background:var(--nacht);color:var(--hellgrau);padding:2rem 0;font-size:.92rem}
.fuss a{color:var(--tuerkis-hell)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@media (max-width:1100px){
  .steuer{gap:.35rem}.seg button{padding:.35rem .55rem}
}
@media (max-width:980px){
  :root{--breite:min(720px,100% - 2rem)}
  .raum-in{grid-template-columns:minmax(0,1fr);gap:0}
  .spalte-bild{padding-top:0}
  .bild-kleb{position:static;padding:.6rem 0 .3rem}
  .bild{border-radius:8px}
  .steuer{position:fixed;left:0;right:0;bottom:0;z-index:25;background:#0b1626;border-top:1px solid #2a4560;padding:.45rem .8rem;margin:0;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;scrollbar-width:none}
  .steuer>*{flex:none}
  body{padding-bottom:3.6rem}
  .schritt-jetzt{font-size:.82rem;min-height:2.6em;margin:.4rem 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .gitter{grid-template-columns:minmax(0,1fr)}
  .haupt,.rand,.breit{grid-column:1/-1}
  .kopf{padding-top:1.6rem}
}
@media (max-width:480px){
  body{font-size:1rem}section.hell{padding:2.6rem 0}h2{flex-direction:column;gap:.1rem}.protokoll{max-height:none}
  .nav-in{gap:.4rem}.ansicht{padding:.3rem .6rem;font-size:.74rem}
  #seg-tempo,#seg-umfang{display:none}.steuer{gap:.5rem;justify-content:center}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Balkenhöhen und Zeilenverzögerung als Klassen: die CSP erlaubt keine style-Attribute */
.b0{--p:0}.b1{--p:0.01}.b2{--p:0.02}.b3{--p:0.03}.b4{--p:0.04}.b5{--p:0.05}.b6{--p:0.06}.b7{--p:0.07}.b8{--p:0.08}.b9{--p:0.09}.b10{--p:0.1}.b11{--p:0.11}.b12{--p:0.12}.b13{--p:0.13}.b14{--p:0.14}.b15{--p:0.15}.b16{--p:0.16}.b17{--p:0.17}.b18{--p:0.18}.b19{--p:0.19}.b20{--p:0.2}.b21{--p:0.21}.b22{--p:0.22}.b23{--p:0.23}.b24{--p:0.24}.b25{--p:0.25}.b26{--p:0.26}.b27{--p:0.27}.b28{--p:0.28}.b29{--p:0.29}.b30{--p:0.3}.b31{--p:0.31}.b32{--p:0.32}.b33{--p:0.33}.b34{--p:0.34}.b35{--p:0.35}.b36{--p:0.36}.b37{--p:0.37}.b38{--p:0.38}.b39{--p:0.39}.b40{--p:0.4}.b41{--p:0.41}.b42{--p:0.42}.b43{--p:0.43}.b44{--p:0.44}.b45{--p:0.45}.b46{--p:0.46}.b47{--p:0.47}.b48{--p:0.48}.b49{--p:0.49}.b50{--p:0.5}.b51{--p:0.51}.b52{--p:0.52}.b53{--p:0.53}.b54{--p:0.54}.b55{--p:0.55}.b56{--p:0.56}.b57{--p:0.57}.b58{--p:0.58}.b59{--p:0.59}.b60{--p:0.6}.b61{--p:0.61}.b62{--p:0.62}.b63{--p:0.63}.b64{--p:0.64}.b65{--p:0.65}.b66{--p:0.66}.b67{--p:0.67}.b68{--p:0.68}.b69{--p:0.69}.b70{--p:0.7}.b71{--p:0.71}.b72{--p:0.72}.b73{--p:0.73}.b74{--p:0.74}.b75{--p:0.75}.b76{--p:0.76}.b77{--p:0.77}.b78{--p:0.78}.b79{--p:0.79}.b80{--p:0.8}.b81{--p:0.81}.b82{--p:0.82}.b83{--p:0.83}.b84{--p:0.84}.b85{--p:0.85}.b86{--p:0.86}.b87{--p:0.87}.b88{--p:0.88}.b89{--p:0.89}.b90{--p:0.9}.b91{--p:0.91}.b92{--p:0.92}.b93{--p:0.93}.b94{--p:0.94}.b95{--p:0.95}.b96{--p:0.96}.b97{--p:0.97}.b98{--p:0.98}.b99{--p:0.99}.b100{--p:1}
h1 .zl:nth-child(1){--i:0}h1 .zl:nth-child(2){--i:1}h1 .zl:nth-child(3){--i:2}h1 .zl:nth-child(4){--i:3}h1 .zl:nth-child(5){--i:4}h1 .zl:nth-child(6){--i:5}

/* Poster unter dem Hauptbild (optional, web-demo/poster.*) */
.bild .poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
[data-stufe="1"] .bild .poster{opacity:.35}
[data-stufe="2"] .bild .poster{visibility:hidden}

/* Silbentrennung nur von Hand, Wörter wie "Sprachmodell" brechen nie mitten im Wort */
body{hyphens:manual;overflow-wrap:normal;word-break:normal}
.karte,.karte *{hyphens:none}

/* Abschnittswechsel: 02 dunkle Bühne, weicher Übergang nach 03 (160 px), 07 und Fuß dunkel als Schlussbühne */
#a03{position:relative;padding-top:calc(4rem + 80px)}
#a03::before{content:"";position:absolute;left:0;right:0;top:0;height:64px;background:linear-gradient(to bottom,rgba(14,26,43,.22),transparent);box-shadow:inset 0 1px 0 rgba(95,208,194,.18);pointer-events:none}
#a03>.wrap{position:relative}
section.schluss{background:var(--nacht);color:#e8eef3;border-bottom:0;border-top:1px solid #2a4560}
.schluss h2 .nr{color:var(--tuerkis-hell)}
.schluss a{color:var(--tuerkis-hell)}
.schluss pre{background:#0b1626;border:1px solid #2a4560}
.schluss .kasten,.schluss .karte{background:var(--nacht-2);border-color:#2a4560;color:#e8eef3}
.schluss code{color:#dce8f0}
.schluss p,.schluss li{color:#dce8f0}

@media (max-width:600px){
  .bild{aspect-ratio:9/13}
  .spalte-bild{position:static}
  .spalte-text{display:contents}.kopf{order:0}.spalte-bild{order:1}.spalte-text>section{order:2}
  .schritt-jetzt{min-height:0}
}

.navz{display:none;font:700 .95rem var(--mono);color:#fff;letter-spacing:.06em}
@media (max-width:600px){nav.sprung ul{display:none}.navz{display:block;flex:1}}

.stufenmarke{display:none}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.seite .zahl .pz{font-size:.6em;margin-left:2px}
pre{padding-bottom:20px}
#a03::before{height:1px!important;background:#2a4560!important;box-shadow:0 1px 0 #dbe3e8!important}
@media (max-width:480px){
  .steuer{flex-wrap:wrap!important;overflow:visible!important;justify-content:center;gap:6px 8px;padding:.4rem .6rem}
  #seg-tempo,#seg-umfang{display:inline-flex!important}
  .steuer button{min-height:44px;font-size:.8rem}.steuer .ico{width:44px;height:44px}
  .seg button{min-width:44px;font-size:.75rem;padding:.35rem .6rem}
  .kopf{padding:1.6rem 0 .4rem}.kopf .unter{font-size:.95rem;line-height:1.45;margin:.5rem 0}.kopf .ehrlich{font-size:.72rem;margin:.4rem 0 0}
  .bild{aspect-ratio:9/12.5}
}
.seite{gap:.4rem}.balken{width:12px}

/* Runde 6 */
/* breite Bildschirme: ab 1600 px bleibt der Inhalt mittig, Kopfzeile ebenso (max. 1440 px) */
@media (min-width:1600px){:root{--breite:min(1440px,100% - 4rem)}}
/* Blattkopf bleibt unter der Kopfleiste frei (Kopfleiste 51 px, Rand 72 px) */
#bild,.bild-kleb{scroll-margin-top:4.5rem}
/* Tabelle "Alle Dokumente": feste Spalten 30/13/17/40 % (Runde 7: Grund breiter, höchstens 2 Zeilen), Grund bricht um statt abzuschneiden */
table#liste{table-layout:fixed}
table#liste th:nth-child(1){width:30%}table#liste th:nth-child(2){width:13%}table#liste th:nth-child(3){width:17%}table#liste th:nth-child(4){width:40%}
table#liste th,table#liste td{padding:.5rem .45rem;font-size:.88rem;overflow-wrap:anywhere}
table#liste .linkbtn{font-size:.86rem}
table#liste td:nth-child(4){overflow-wrap:break-word;hyphens:manual}
/* Handy: die Tabelle wird zu Karten, nichts läuft über */
@media (max-width:600px){
  .tabw{overflow:visible}
  table#liste,table#liste tbody,table#liste tr,table#liste td{display:block;width:100%}
  table#liste thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  table#liste tr{border:1px solid #2a4560;border-radius:10px;padding:.5rem .7rem;margin:0 0 .6rem;background:rgba(255,255,255,.03)}
  table#liste td{border:0;padding:.15rem 0}
  table#liste td:nth-child(2)::before,table#liste td:nth-child(3)::before,table#liste td:nth-child(4)::before{color:#a9bccb;font:500 .78rem var(--mono)}
  table#liste td:nth-child(2)::before{content:"Art"}table#liste td:nth-child(3)::before{content:"Ergebnis"}table#liste td:nth-child(4)::before{content:"Grund"}
  table#liste td:nth-child(2),table#liste td:nth-child(3),table#liste td:nth-child(4){display:grid;grid-template-columns:4.6rem 1fr;align-items:baseline}
}
table#liste td:nth-child(4){hyphens:auto;-webkit-hyphens:auto;padding-left:.3rem;padding-right:.3rem}

/* Runde 7: Desktop – "Grund" steht als volle Zeile unter Dokument, Art und Ergebnis (höchstens 2 Zeilen je Grund, gemessen bei 1366 px) */
@media (min-width:601px){
  table#liste,table#liste thead,table#liste tbody{display:block}
  table#liste tr{display:grid;grid-template-columns:minmax(0,1fr) 8.4rem 8.6rem;column-gap:.5rem;align-items:baseline;border-bottom:1px solid #2a4560;padding:.1rem 0 .35rem}
  table#liste th,table#liste td{border:0;width:auto}
  table#liste thead tr{padding:0}table#liste thead th{border-bottom:0}
  table#liste th:nth-child(1),table#liste th:nth-child(2),table#liste th:nth-child(3){width:auto}
  table#liste th:nth-child(4){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);padding:0}
  table#liste td:nth-child(4){grid-column:1/-1;padding:0 .45rem .1rem;font-size:.84rem;color:#a9bccb;line-height:1.45}
  table#liste td:nth-child(4)::before{content:"Grund: ";font-family:var(--mono);font-size:.78rem;color:#7f95a8}
}
.befund h3{font:700 1.25rem/1.25 var(--kopf);margin:1.6rem 0 .6rem}.befund p{max-width:68ch}
.befundbild{margin:1rem 0}.befundbild svg{width:100%;max-width:760px;height:auto;background:var(--weiss);border:1px solid var(--linie);border-radius:10px}
.befundbild figcaption{font-size:.9rem;color:var(--grau);margin-top:.4rem}
@media (max-width:640px){.befundbild{overflow-x:auto;-webkit-overflow-scrolling:touch}.befundbild svg{min-width:600px}.befundbild:focus-visible{outline:2px solid var(--akzent,#0f766e);outline-offset:2px}}
.befundreihe{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:2rem;align-items:center;margin-top:1.4rem}
.befundreihe .befundbild{grid-column:auto;margin:0}.befundreihe .befundbild svg{max-width:none}.befundreihe .befund h3{margin-top:0}
@media (max-width:900px){.befundreihe{grid-template-columns:minmax(0,1fr);gap:1rem}}
/* Spur je Protokollschritt (aufklappbar, nur wenn der Schritt Messwerte trägt) */
details.spur{margin:.25rem 0 0;font-size:.82rem}
details.spur summary{cursor:pointer;color:var(--teal,#0f7d73);font-weight:700}
details.spur dl{display:grid;grid-template-columns:max-content 1fr;gap:.1rem .7rem;margin:.3rem 0 0}
details.spur dt{opacity:.7}details.spur dd{margin:0}

/* Runde 8 (Northlightframe 12.11.: schicker, professioneller): Festbreitenschrift nur noch für Code und Zeitstempel, ruhigere Flächen, mehr Luft, Tabellen und Karten als gefasste Flächen */
:root{--schatten:0 1px 2px rgba(14,26,43,.05),0 10px 28px -14px rgba(14,26,43,.18);--rund:14px}
body{font-size:1.075rem;line-height:1.65;-webkit-font-smoothing:antialiased}
nav.sprung{background:#101d30;border-bottom-color:rgba(255,255,255,.08)}
nav.sprung a{font:700 .86rem var(--text);letter-spacing:.01em;padding:.8rem .8rem;border-bottom-width:2px}
.ansicht{border-width:1px;border-color:rgba(255,255,255,.28)}
.dunkel{background:radial-gradient(900px 520px at 82% 0,#1b3a5a 0,transparent 62%),radial-gradient(700px 480px at 0 30%,rgba(15,125,115,.16) 0,transparent 60%),var(--nacht)}
.dunkel::before{opacity:.05}
.raum-in{gap:3.5rem;padding-bottom:4.5rem}
.kopf{padding:4.2rem 0 1.6rem}
.marke{font:700 .78rem var(--text);letter-spacing:.16em;display:inline-flex;align-items:center;gap:.7rem;margin-bottom:1.3rem}
.marke::before{content:"";width:2rem;height:2px;background:currentColor;opacity:.7}
h1{font-size:clamp(2.1rem,3.3vw,3.25rem);line-height:1.04;letter-spacing:-.015em}
.unter{font-size:1.16rem;line-height:1.55;color:#d3dee7;margin-top:1.4rem}
.ehrlich{font:400 .9rem/1.55 var(--text);color:#a9bccb;margin-top:1.6rem;padding:.9rem 1rem;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:rgba(255,255,255,.035);max-width:46ch}
section.abs{padding:3.2rem 0}
.dunkel section.abs{border-top-color:rgba(255,255,255,.09)}
section.hell{padding:5.5rem 0}
h2{flex-direction:column;gap:.55rem;align-items:flex-start;letter-spacing:-.01em;margin-bottom:1.5rem}
h2 .nr{font:700 .78rem var(--text);letter-spacing:.16em;display:inline-flex;align-items:center;gap:.7rem}
h2 .nr::after{content:"";width:2rem;height:2px;background:currentColor;opacity:.55}
h3{font-size:1.18rem;letter-spacing:-.005em}
.antwort{border-left-width:3px;padding-left:1.2rem;font-size:1.14rem}
.zitat{font-size:1.5rem;line-height:1.28;letter-spacing:-.01em}
.merk{border-left:3px solid var(--tuerkis);font-size:1.4rem;letter-spacing:-.01em;padding-left:1.2rem}
.gitter{gap:2rem 3rem}
.kasten{border-radius:var(--rund);padding:1.4rem 1.5rem;box-shadow:var(--schatten)}
.rand li{margin:.5rem 0}
.bild,.herobild svg{border-radius:var(--rund);box-shadow:0 30px 70px -28px rgba(0,0,0,.75),0 0 0 1px rgba(255,255,255,.1)}
.protokoll{border-color:rgba(255,255,255,.1);border-radius:var(--rund);padding:1.1rem 1.2rem 1.3rem;background:rgba(255,255,255,.035)}
.protokoll li{border-left-width:2px;padding:.55rem .9rem}
.tabw{border:1px solid var(--linie);border-radius:var(--rund);background:var(--weiss);box-shadow:var(--schatten)}
.dunkel .tabw,.schluss .tabw{background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.1);box-shadow:none}
th,td{padding:.8rem 1rem}
th{font:700 .74rem/1.3 var(--text);letter-spacing:.08em;text-transform:uppercase;background:#eef2f4;color:var(--grau)}
.dunkel th{background:rgba(255,255,255,.05);color:#a9bccb}
.tabw tr:last-child>td,.tabw tr:last-child>th{border-bottom:0}
.linkbtn{font-family:var(--text)}
.karten{gap:1.2rem}
.karte{border:1px solid var(--linie);border-top:1px solid var(--linie);border-radius:var(--rund);padding:1.3rem 1.3rem 1.4rem;box-shadow:var(--schatten);position:relative;overflow:hidden}
.karte::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--tuerkis)}
.karte.annahme::before{background:var(--bernstein)}
.karte .name{font:700 .8rem/1.35 var(--text);letter-spacing:.06em;text-transform:uppercase;color:var(--grau);min-height:2.7em}
.seite .wer{font:700 .7rem/1.2 var(--text);letter-spacing:.04em}
.seite .zahl{font-size:2rem;letter-spacing:-.02em}
.befundbild svg{border-radius:var(--rund);box-shadow:var(--schatten)}
.stufenmarke{font-family:var(--text);font-weight:700}
pre{border-radius:12px;padding:1.2rem 1.4rem}
.fuss{padding:2.6rem 0;border-top:1px solid rgba(255,255,255,.08)}
@media (max-width:980px){.raum-in{gap:0;padding-bottom:3rem}.kopf{padding:2.2rem 0 1rem}section.hell{padding:3.6rem 0}}
@media (max-width:480px){section.hell{padding:2.8rem 0}.ehrlich{font-size:.86rem}th,td{padding:.6rem .7rem}}

/* Runde 9 (Zweiturteil 12.11.): Kennzahlwerte auf einer Linie, Codekasten mit einem Rahmen, Diagrammbeschriftung mit Lichthof. */
.karte .name{min-height:0}
.karte .vergleich{margin-top:auto}
.tabw:has(>pre){border:0;box-shadow:none;background:none;border-radius:0;overflow:visible}
.tabw>pre{margin:0}
.befundbild svg text{paint-order:stroke;stroke:#fff;stroke-width:.22em;stroke-linejoin:round}

/* Runde 10 (Northlightframe 12.11.: beim hellen Layout bleiben): Kopfbereich, Leiste, Ablaufbild, Protokoll und Fuß hell. */
html{background:var(--papier)}
nav.sprung{background:rgba(255,255,255,.94);border-bottom:1px solid var(--linie);backdrop-filter:saturate(1.2) blur(8px)}
nav.sprung a{color:var(--grau)}
nav.sprung a:hover,nav.sprung a:focus-visible{color:var(--tuerkis)}
nav.sprung a[aria-current=true]{color:var(--tinte);border-bottom-color:var(--tuerkis)}
.navz{color:var(--tinte)}
.ansicht{color:var(--grau);border-color:var(--linie)}
.ansicht[aria-pressed=true]{background:var(--tuerkis);color:#fff;border-color:var(--tuerkis)}
.dunkel{background:linear-gradient(180deg,#fff 0,var(--papier) 420px);color:var(--tinte)}
.dunkel::before{display:none}
.dunkel a,.dunkel .linkbtn,.schluss a,.fuss a{color:var(--tuerkis)}
.marke,.dunkel h2 .nr,.schluss h2 .nr{color:var(--tuerkis)}
.unter{color:var(--grau)}
.dunkel .antwort{border-color:var(--tuerkis)}
.dunkel section.abs{border-top-color:var(--linie)}
.ehrlich{color:var(--grau);border-color:var(--linie);background:var(--weiss)}
.bild,.herobild svg,.arch{background:var(--weiss);color:var(--tinte);box-shadow:var(--schatten),0 0 0 1px var(--linie)}
.herobild .stand-zeile{color:var(--grau)}
.steuer button{color:var(--grau)}
.steuer .primaer{background:var(--tuerkis);color:#fff}
.steuer .primaer:hover{background:#0c6a61}
.steuer .ico,.seg{border-color:var(--linie);background:var(--weiss)}
.steuer .ico:hover{border-color:var(--tuerkis);color:var(--tinte)}
.seg button+button{border-left-color:var(--linie)}
.seg button[aria-pressed=true]{background:#e4f1ef;color:var(--tinte);box-shadow:inset 0 -2px 0 var(--tuerkis)}
.seg button:not([aria-pressed=true]):hover{color:var(--tinte)}
.schritt-jetzt{color:var(--tinte)}
.protokoll{background:var(--weiss);border-color:var(--linie);box-shadow:var(--schatten)}
.protokoll h3{color:var(--tinte)}
.protokoll li{border-left-color:var(--linie);color:var(--grau)}
.protokoll li.da{color:var(--tinte);border-color:var(--tuerkis)}
.protokoll li[aria-current=step]{background:rgba(15,125,115,.09);color:var(--tinte)}
.protokoll li[aria-current=step].zweifel{background:rgba(217,146,46,.14)}
.protokoll li .t{color:var(--grau)}.protokoll li .t .ms{color:var(--tinte)}
.filter button{border-color:var(--linie);color:var(--grau);background:var(--weiss)}
.filter button[aria-pressed=true]{background:var(--tinte);color:#fff;border-color:var(--tinte)}
.dunkel th{background:var(--papier);color:var(--grau)}
.dunkel td.pr{color:var(--bernstein-text)}.dunkel td.au{color:var(--tuerkis)}
.dunkel .tabw,.schluss .tabw{background:var(--weiss);border-color:var(--linie);box-shadow:var(--schatten)}
.band li.da{background:var(--tuerkis)}
pre,.schluss pre{background:#eef2f4;color:var(--tinte);border:1px solid var(--linie)}
.folge li{background:var(--weiss);color:var(--tinte);border:1px solid var(--linie)}
.folge svg{background:var(--papier)}
.folge b{color:var(--tuerkis)}.folge span{color:var(--grau)}
section.schluss{background:var(--weiss);color:var(--tinte);border-top:1px solid var(--linie)}
.schluss .kasten,.schluss .karte{background:var(--papier);border-color:var(--linie);color:var(--tinte)}
.fuss{background:var(--papier);color:var(--grau);border-top:1px solid var(--linie)}
@media (max-width:980px){.steuer{background:rgba(255,255,255,.97);border-top-color:var(--linie)}table#liste tr{border-color:var(--linie);background:var(--weiss)}}
.band li{background:#dfe6ea}
.band li.aktiv{box-shadow:0 0 0 2px rgba(15,125,115,.18)}.band li.aktiv.zweifel{box-shadow:0 0 0 2px rgba(217,146,46,.22)}
@media (min-width:981px){.raum-in{grid-template-columns:minmax(0,5fr) minmax(0,8fr);gap:2.2rem}}
/* Runde 10b (Zweiturteil 12.11.): Abschnitt 07 lesbar, Restlinien hell, Schrittzeile ruhiger. */
.schluss p,.schluss li,.schluss code{color:var(--tinte)}
#a03::before{background:var(--linie)!important;box-shadow:none!important}
.dunkel th,.dunkel td{border-color:var(--linie)}
.schritt-jetzt{font-weight:400;max-width:62ch}
@media (max-width:980px){table#liste tr{border-bottom-color:var(--linie)}}
.dunkel small{color:var(--grau)}
.dunkel :not(pre)>code{background:#e7ecef;color:var(--tinte)}
@media (max-width:980px){table#liste td:nth-child(2)::before,table#liste td:nth-child(3)::before,table#liste td:nth-child(4)::before,table#liste td:nth-child(4){color:var(--grau)}}
table#liste td:nth-child(4),table#liste td:nth-child(2)::before,table#liste td:nth-child(3)::before,table#liste td:nth-child(4)::before{color:var(--grau)}
details.spur dt{opacity:1;color:var(--grau)}details.spur summary{color:#0b665e}
