@font-face{font-family:'Barlow Condensed';font-style:normal;font-display:swap;font-weight:500;src:url(schriften/barlow-condensed-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-display:swap;font-weight:500;src:url(schriften/barlow-condensed-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-display:swap;font-weight:600;src:url(schriften/barlow-condensed-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-display:swap;font-weight:600;src:url(schriften/barlow-condensed-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-display:swap;font-weight:700;src:url(schriften/barlow-condensed-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-display:swap;font-weight:700;src:url(schriften/barlow-condensed-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-display:swap;font-weight:400;src:url(schriften/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-display:swap;font-weight:400;src:url(schriften/ibm-plex-mono-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-display:swap;font-weight:500;src:url(schriften/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-display:swap;font-weight:500;src:url(schriften/ibm-plex-mono-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:400;src:url(schriften/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:400;src:url(schriften/ibm-plex-sans-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:500;src:url(schriften/ibm-plex-sans-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:500;src:url(schriften/ibm-plex-sans-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:600;src:url(schriften/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-display:swap;font-weight:600;src:url(schriften/ibm-plex-sans-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
:root {
  --ink: #f4f2ec;
  --soft: #b9b7b0;
  --mute: #7c7a74;
  --line: rgba(244, 242, 236, 0.18);
  --hair: rgba(244, 242, 236, 0.09);
  --acc: #4f8cff;
  --red: #e5383b;
  --ok: #3fd08c;
  --warn: #ff9a3d;
  --gap: #ff5d5f;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: clamp(20px, 3.4vw, 56px);
  --top: 68px;
  --bot: 22px;
  --colL: min(370px, 27vw);
  --colR: min(330px, 24vw);
  --out: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  background: #000;
  color: var(--ink);
  font: 400 16px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* Bühnenlicht: ein weicher Lichtkegel von oben, sonst Schwarz. */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 38%, rgba(255, 255, 255, .07), transparent 70%);
  transition: opacity 1s;
}
body[data-act='map']::before { opacity: 0; }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 8; box-shadow: inset 0 0 16vw rgba(0, 0, 0, .8); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

#stage, #globe { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#stage { transition: opacity .45s; }
#stage.cut { opacity: 0; transition: opacity .18s; }
#stage.is-hidden { opacity: 0; pointer-events: none; transition: opacity .9s; }
#globe { opacity: 0; pointer-events: none; transition: opacity 1.1s; }
body[data-act='map'] #globe { opacity: 1; pointer-events: auto; cursor: grab; }
#globe.grab { cursor: grabbing; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Bildrahmen: vier Eckmarken wie im Sucher einer Kamera */
.frame { position: fixed; inset: 16px; z-index: 29; pointer-events: none; }
.frame i { position: absolute; width: 12px; height: 12px; border: 0 solid rgba(244, 242, 236, .32); }
.frame i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.frame i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.frame i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.frame i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }

.kicker, .head, .where { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.kicker, .where { color: var(--acc); }
.head { color: var(--mute); }

/* ---------- Kopfzeile: Titel links, Zähler rechts ---------- */
.top { position: fixed; left: 0; right: 0; top: 0; height: var(--top); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px var(--pad) 0; }
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand b { font: 700 19px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.brand span { font: 400 11px var(--mono); letter-spacing: .06em; color: var(--mute); }

/* ---------- Fußzeile: vier Kapitel, das aktive klappt auf ---------- */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; height: var(--bot); z-index: 30; display: flex; align-items: flex-end; gap: 26px; padding: 0 var(--pad) 20px; }
.ticks { flex: 1; display: flex; gap: 16px; min-width: 0; }
.grp { flex: 1 1 0; min-width: 0; transition: flex-grow .8s var(--out); }
.grp.on.multi { flex-grow: 2.8; }
.glab { display: flex; align-items: baseline; gap: 7px; width: 100%; margin-bottom: 4px; font: 600 15px var(--display); letter-spacing: .1em; text-transform: uppercase; text-align: left; color: var(--mute); white-space: nowrap; overflow: hidden; transition: color .3s; }
.glab i { font: 400 10px var(--mono); font-style: normal; letter-spacing: .06em; }
.glab em { flex: 1; min-width: 0; margin-left: 8px; padding-left: 12px; text-align: left; overflow: hidden; text-overflow: ellipsis; font: 400 10.5px var(--mono); font-style: normal; letter-spacing: .08em; color: var(--soft); }
.glab:hover, .grp.on .glab { color: var(--ink); }
.grp.on .glab i { color: var(--acc); }
.row { display: flex; gap: 4px; height: 18px; }
.row button { flex: 1; position: relative; }
.row button::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line); transition: background .4s, height .3s, margin .3s; }
.row button.done::after { background: rgba(244, 242, 236, .6); }
.row button.on::after, .grp.on .all::after { background: var(--acc); height: 4px; margin-top: -2px; box-shadow: 0 0 12px rgba(79, 140, 255, .7); }
.row button:hover::after { background: var(--ink); }
.grp.on.multi .all, .grp:not(.on) .row button:not(.all) { display: none; }
.nav { width: 48px; height: 40px; border: 1px solid var(--line); font-size: 17px; transition: border-color .3s, color .3s, background .3s, opacity .3s; }
.nav + .nav { margin-left: -18px; }
.nav:hover:not(:disabled) { border-color: var(--ink); color: #000; background: var(--ink); }
.nav:disabled { opacity: .25; cursor: default; }

/* ---------- Kapitel ---------- */
.act { position: fixed; inset: var(--top) 0 var(--bot); z-index: 10; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .7s, visibility 0s .7s; }
body[data-act='intro'] .act-intro, body[data-act='parts'] .act-parts,
body[data-act='map'] .act-map, body[data-act='end'] .act-end { opacity: 1; visibility: visible; transition: opacity .9s .25s; }
.act > * { pointer-events: auto; }

/* 01 Das Auto */
.act-intro { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 0 var(--pad) clamp(16px, 4vh, 44px); }
.act-intro h1 { font: 700 clamp(44px, 6.6vw, 118px)/.88 var(--display); text-transform: uppercase; margin: 16px 0 20px; }
.act-intro h1 span { display: block; opacity: 0; transform: translateY(.35em); }
body[data-act='intro'] .act-intro h1 span { animation: rise 1s var(--out) forwards; }
.act-intro h1 span:nth-child(1) { animation-delay: .35s; }
.act-intro h1 span:nth-child(2) { animation-delay: .55s; }
.act-intro h1 span:nth-child(3) { animation-delay: .75s; color: var(--acc); }
@keyframes rise { to { opacity: 1; transform: none; } }
.lede { max-width: 40ch; font-size: clamp(16px, 1.4vw, 20px); color: var(--soft); margin-bottom: 24px; }
.start { display: flex; align-items: center; gap: 18px; }
.hint { font: 400 11px var(--mono); letter-spacing: .08em; color: var(--mute); }
.cta { font: 700 19px var(--display); letter-spacing: .1em; text-transform: uppercase; color: #000; background: var(--ink); padding: 13px 24px 12px; transition: background .25s; }
.cta b { display: inline-block; margin-left: 12px; font-family: var(--text); font-weight: 400; transition: transform .25s; }
.cta:hover { background: var(--acc); }
.cta:hover b { transform: translateX(5px); }

/* 02 Die Teile: Explosionsansicht */
.act-parts { pointer-events: none; }
.ovhead { position: absolute; left: var(--pad); top: 10px; transition: opacity .5s, transform .6s var(--out); pointer-events: none !important; }
.ovhead h2 { font: 700 clamp(40px, 4.6vw, 76px)/.9 var(--display); text-transform: uppercase; margin: 8px 0 8px; }
.ovhead p:last-child { color: var(--soft); font-size: 16px; }
body.has-part .ovhead { opacity: 0; transform: translateY(-12px); }

/* Schilder an den Teilen und Beschriftungen am herausgezogenen Teil */
#labels { position: fixed; inset: 0; z-index: 11; pointer-events: none; transition: opacity .4s; }
body:not([data-act='parts']) #labels { opacity: 0; visibility: hidden; }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lines path { fill: none; stroke: rgba(244, 242, 236, .45); stroke-width: 1; transition: stroke .25s, opacity .5s; }
.lines circle { fill: var(--ink); transition: fill .25s, opacity .5s; }
.lines circle.t { stroke: rgba(244, 242, 236, .22); stroke-width: 7; cursor: pointer; }
.lines .hot { stroke: var(--acc); }
.lines circle.hot { fill: var(--acc); stroke: rgba(79, 140, 255, .3); }
.tag, .lines .t, .note3d, .lines .n { opacity: 0; }
.tag { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px 0; text-align: left; white-space: nowrap; transition: opacity .5s; }
.tag.l { text-align: right; align-items: flex-end; }
.tag b { font: 700 clamp(17px, 1.45vw, 23px)/1 var(--display); letter-spacing: .05em; text-transform: uppercase; text-shadow: 0 0 10px #000, 0 0 3px #000; transition: color .25s; }
.tag small { font: 400 10.5px var(--mono); letter-spacing: .06em; color: var(--soft); text-shadow: 0 0 8px #000, 0 0 2px #000; transition: color .25s; }
.tag:hover b, .tag.hot b { color: var(--acc); }
#labels[data-mode='tags'] .tag, #labels[data-mode='tags'] .lines .t { opacity: 1; transition: opacity .8s 1.1s, stroke .25s, fill .25s; }
#labels[data-mode='tags'] .tag, #labels[data-mode='tags'] circle.t { pointer-events: auto; }
.note3d { position: absolute; left: 0; top: 0; padding: 3px 8px 2px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--ink); background: rgba(0, 0, 0, .55); border: 1px solid var(--line); transition: opacity .4s; }
#labels.ready .note3d, #labels.ready .lines .n { opacity: 1; transition: opacity .8s; }
.lines path.n { stroke: rgba(244, 242, 236, .6); }
.chips { display: none; }

/* 02 Die Teile: ein Bauteil. Links der Titel, rechts die Fakten, unten der Weg. */
.back { position: absolute; z-index: 2; left: var(--pad); top: 10px; display: flex; align-items: center; gap: 14px; padding: 13px 24px 12px 20px; color: #000; background: var(--ink); border: 1px solid var(--ink); font: 700 19px var(--display); letter-spacing: .1em; text-transform: uppercase; opacity: 0; pointer-events: none !important; transition: opacity .4s, border-color .3s, color .3s; }
.back b { font: 400 19px var(--text); transition: transform .25s; }
.back:hover b { transform: translateX(-5px); }
body.has-part .back { opacity: 1; pointer-events: auto !important; }
.back:hover { border-color: var(--acc); background: var(--acc); }

.detail { position: absolute; inset: 0; opacity: 0; pointer-events: none !important; transition: opacity .4s; }
body.has-part .detail { opacity: 1; }
.detail > * { position: absolute; }
.detail::before, .detail::after { content: ''; position: absolute; top: calc(var(--top) * -1); bottom: calc(var(--bot) * -1); pointer-events: none; }
.detail::before { left: 0; width: calc(var(--colL) + var(--pad) * 2 + 80px); background: linear-gradient(90deg, rgba(0, 0, 0, .88) 55%, transparent); }
.detail::after { right: 0; width: calc(var(--colR) + var(--pad) * 2 + 90px); background: linear-gradient(270deg, rgba(0, 0, 0, .92) 62%, transparent); }
body.has-part .d-facts { pointer-events: auto; }
.detail > * > * { opacity: 0; transform: translateY(12px); }
.detail.in > * > * { opacity: 1; transform: none; transition: opacity .7s, transform .7s var(--out); }
.detail.in .d-title > :nth-child(2) { transition-delay: .08s; }
.detail.in .d-title > :nth-child(3) { transition-delay: .16s; }
.detail.in .d-facts > * { transition-delay: .3s; }
.detail.in .d-facts > :nth-child(n+3) { transition-delay: .4s; }
.detail.in .d-way > * { transition-delay: .5s; }

.d-title { left: var(--pad); top: 76px; width: var(--colL); }
.where { display: flex; gap: 12px; }
.where span { color: var(--mute); white-space: nowrap; }
.d-title h2 { font: 700 clamp(34px, 3.5vw, 56px)/.9 var(--display); text-transform: uppercase; margin: 12px 0 16px; hyphens: auto; overflow-wrap: break-word; }
.lead { font-size: 16.5px; line-height: 1.48; color: var(--soft); text-shadow: 0 0 12px #000; }

.d-facts { right: var(--pad); top: 10px; bottom: 0; width: var(--colR); overflow-y: auto; scrollbar-width: none; }
.d-facts::-webkit-scrollbar { display: none; }
.stat { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.stat b { display: flex; align-items: baseline; gap: 10px; font: 700 clamp(64px, 6.4vw, 104px)/.82 var(--display); font-variant-numeric: tabular-nums; }
.stat b i { font: 600 clamp(20px, 1.7vw, 26px)/1 var(--display); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.stat span { display: block; margin-top: 12px; font-size: 14.5px; line-height: 1.4; color: var(--soft); max-width: 26ch; }
.euhead { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--acc); }
.stars { width: 22px; height: 22px; fill: var(--acc); }
.eu { margin-bottom: 16px; }
.eu h4 { font: 700 25px/1.02 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.eu p { font-size: 14px; line-height: 1.46; color: var(--soft); margin-top: 6px; }
.note { font-size: 14.5px; color: var(--soft); border-left: 2px solid var(--line); padding-left: 14px; margin-bottom: 16px; }
.mini-slot { margin: 20px 0 0; border: 1px solid var(--hair); background: rgba(6, 6, 6, .8); }
#minimap { display: block; width: 100%; height: auto; aspect-ratio: 480 / 250; }
.d-facts details { margin: 16px 0 8px; font-size: 13px; }
.d-facts summary { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); cursor: pointer; }
.d-facts details a { display: block; color: var(--soft); margin-top: 8px; text-underline-offset: 3px; }
.d-facts details a:hover { color: var(--ink); }

/* Der Weg: Stationen von links nach rechts, die letzte ist das Werk */
.d-way { left: var(--pad); right: calc(var(--colR) + var(--pad) * 2); bottom: 4px; z-index: 1; }
.d-title, .d-facts { z-index: 1; }
.d-way .head { margin-bottom: 16px; }
.d-way ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 236px)); }
.d-way li { position: relative; padding: 16px 22px 0 0; border-top: 1px solid var(--line); }
.d-way li::before { content: ''; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.d-way li:not(.last)::after { content: ''; position: absolute; right: 8px; top: -4px; width: 7px; height: 7px; border-top: 1px solid var(--soft); border-right: 1px solid var(--soft); transform: rotate(45deg); }
.d-way li.last { border-top-color: var(--acc); }
.d-way li.last::before { background: var(--acc); box-shadow: 0 0 0 5px rgba(79, 140, 255, .22); }
.cc { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 5px; font: 500 11px var(--mono); color: #000; background: var(--ink); }
li.last .cc { background: var(--acc); }
.d-way h4 { font: 700 21px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; margin-top: 9px; }
.d-way em { display: block; font: 400 11px/1.4 var(--mono); font-style: normal; letter-spacing: .04em; color: var(--acc); margin-top: 3px; }
.d-way li p { font-size: 12.5px; line-height: 1.42; color: var(--soft); margin-top: 6px; max-width: 30ch; text-shadow: 0 0 10px #000; }

/* Kleine Karte im Faktenfeld */
.c { fill: #131313; stroke: #2e2e2e; stroke-width: .5; vector-effect: non-scaling-stroke; }
.c.eu { fill: #17233f; stroke: #3f578c; }
.route { fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.dot { transition: opacity .6s; }
.dot circle { fill: var(--ink); }
.dot text { font: 500 11px var(--mono); fill: var(--ink); paint-order: stroke; stroke: #000; stroke-width: 3px; }
.dot.hub circle { fill: var(--acc); }
.dot.hub text { font-size: 12px; fill: var(--acc); }

/* 03 Das Netz */
#globe-labels { position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: 0; transition: opacity .6s; }
body[data-act='map'] #globe-labels { opacity: 1; }
.glabel { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .5s; }
.glabel.on { opacity: 1; transition: opacity .9s .2s; }
.glabel span { position: absolute; left: 14px; top: -11px; white-space: nowrap; font: 600 16px/22px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-shadow: 0 0 6px #000, 0 0 2px #000; }
.glabel.left span { left: auto; right: 14px; text-align: right; }
.glabel b, .glabel i { display: block; font-style: normal; }
.glabel.raw span { top: -20px; }
.glabel.raw b { font: 700 24px/1 var(--display); letter-spacing: .05em; }
.glabel.raw i { font: 400 11px/1.5 var(--mono); letter-spacing: .1em; color: var(--acc); margin-top: 3px; }
.glabel.hub span { top: -52px; left: -4px; }
.glabel.hub b { font: 700 24px/1 var(--display); color: var(--acc); }
.glabel.hub i { font: 400 10.5px/1.4 var(--mono); letter-spacing: .1em; color: var(--soft); margin-top: 2px; }
.glabel.customs span { left: 0; top: -50px; transform: translateX(-50%); font: 500 11px/22px var(--mono); letter-spacing: .14em; color: var(--acc); border: 1px dashed var(--acc); padding: 1px 10px; background: rgba(0, 0, 0, .7); text-shadow: none; }
.glabel.country span { left: 0; top: 0; transform: translate(-50%, -50%); text-align: center; }
.glabel.country b { font: 600 13px/1.2 var(--display); letter-spacing: .34em; margin-right: -.34em; color: rgba(244, 242, 236, .34); }
.glabel.country.main b { font-size: 17px; color: rgba(244, 242, 236, .72); }
.cur { display: inline-block !important; margin-top: 5px; padding: 0 8px; font: 500 10.5px/18px var(--mono); letter-spacing: .1em; color: var(--acc); border: 1px solid rgba(79, 140, 255, .6); background: rgba(0, 0, 0, .55); text-shadow: none; transition: color .5s, border-color .5s; }
body.no-eu .cur { color: #fff; border-color: var(--red); background: rgba(229, 56, 59, .5); }
.glabel.stop span { left: 12px; top: -22px; padding: 0 7px; font: 500 10px/17px var(--mono); letter-spacing: .12em; color: #fff; background: var(--red); text-shadow: none; }
.glabel.stop.left span { left: auto; right: 12px; }
.glabel.stop.up span { left: -6px; top: -36px; }
.scrim { position: absolute; inset: calc(var(--top) * -1) auto calc(var(--bot) * -1) 0; width: 46%; background: linear-gradient(90deg, rgba(0, 0, 0, .9) 20%, transparent); pointer-events: none; }
.mapcopy { position: absolute; left: var(--pad); top: 10px; width: min(430px, 36vw); }
.mapcopy h2 { font: 700 clamp(40px, 4.6vw, 76px)/.9 var(--display); text-transform: uppercase; margin: 8px 0 14px; }
.mapcopy p:not(.kicker) { color: var(--soft); font-size: 17px; line-height: 1.45; }
body.no-eu .mapcopy .kicker, body.no-eu .counters b { color: var(--red); }
.switch { display: inline-flex; margin-top: 24px; border: 1px solid var(--line); background: rgba(0, 0, 0, .5); }
.switch { white-space: nowrap; }
.switch u { text-decoration: none; }
.switch i { font: 400 10px var(--mono); font-style: normal; margin-right: 8px; opacity: .6; }
.switch button { font: 600 16px var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 11px 16px 10px; color: var(--mute); transition: background .3s, color .3s; }
.switch button:hover { color: var(--ink); }
.switch button.on { background: var(--ink); color: #000; }
body.no-eu .switch button.on { background: var(--red); color: #fff; }
.counters { position: absolute; left: var(--pad); bottom: 6px; display: flex; opacity: 0; transition: opacity .6s; }
.counters.show { opacity: 1; }
.counters div { padding: 14px clamp(16px, 2.4vw, 36px) 0 0; margin-right: clamp(16px, 2.4vw, 36px); border-top: 1px solid var(--line); }
.counters b { display: block; font: 700 clamp(54px, 6.2vw, 104px)/.86 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; transition: color .6s; }
.counters span { display: block; max-width: 16ch; font: 400 11px/1.4 var(--mono); letter-spacing: .04em; color: var(--soft); margin-top: 8px; }
.maphint { position: absolute; right: var(--pad); bottom: 30px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--line); background: rgba(0, 0, 0, .55); pointer-events: none !important; transition: opacity .8s; }
.maphint b { font-weight: 500; color: var(--acc); }
.maphint i { width: 1px; height: 12px; margin: 0 6px; background: var(--line); }
#globe.touched ~ .act-map .maphint { opacity: 0; }
.glabel.raw.on { pointer-events: auto; cursor: pointer; }
.glabel.raw span { transition: transform .25s var(--out); }
.glabel.raw:hover span { transform: translateY(-3px); }
.glabel.raw:hover i { color: var(--ink); }
.mapnote { position: absolute; right: var(--pad); bottom: 4px; font: 400 11px var(--mono); color: var(--mute); }

/* 04 Fazit */
.act-end { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 var(--pad); }
.act-end h2 { font: 700 clamp(32px, 3.8vw, 62px)/1 var(--display); text-transform: uppercase; max-width: 21ch; margin: 16px 0 26px; }
.slogan { font: 500 14px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin-bottom: 30px; }
.ghost { font: 600 16px var(--display); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); padding: 11px 16px 10px; transition: border-color .3s, color .3s; }
.ghost:hover { border-color: var(--acc); color: var(--acc); }

dialog { margin: auto; width: min(680px, 92vw); max-height: 84vh; padding: 28px 30px; background: #0c0c0c; color: var(--ink); border: 1px solid var(--line); }
dialog::backdrop { background: rgba(0, 0, 0, .8); }
dialog header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
dialog h3 { font: 700 30px var(--display); text-transform: uppercase; }
dialog header button { font-size: 26px; line-height: 1; padding: 4px 10px; }
dialog p { font-size: 14px; color: var(--soft); }
dialog ul { margin: 16px 0; padding-left: 18px; display: grid; gap: 7px; font-size: 14px; }
dialog a { color: var(--ink); text-underline-offset: 3px; }
.credit { font: 400 11px/1.5 var(--mono) !important; color: var(--mute) !important; }

.missing { position: fixed; left: 50%; top: 80px; transform: translateX(-50%); z-index: 35; font: 400 12px var(--mono); color: var(--mute); background: #000; border: 1px dashed var(--line); padding: 7px 12px; white-space: nowrap; }
.missing code { color: var(--acc); }
.slowhint { position: fixed; left: 50%; top: 74px; transform: translateX(-50%); z-index: 36; display: flex; align-items: flex-start; gap: 14px; width: min(620px, calc(100vw - 32px)); padding: 12px 12px 12px 16px; font-size: 13.5px; line-height: 1.45; color: var(--soft); background: rgba(0, 0, 0, .92); border: 1px solid var(--warn); }
.slowhint[hidden] { display: none; }
.slowhint b { color: var(--warn); font-weight: 600; }
.slowhint button { flex: none; width: 26px; height: 26px; font-size: 20px; line-height: 1; color: var(--soft); border: 1px solid var(--line); }
.slowhint button:hover { color: #000; background: var(--ink); }
.grain { display: none; }
body.lowfx::before, body.lowfx::after { display: none; }
.missing.loading { top: auto; bottom: 26px; color: var(--soft); border-style: solid; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }


/* Tastenhinweis oben rechts */
.keys { display: flex; gap: 22px; font: 400 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.keys span { display: flex; align-items: center; gap: 5px; }
.keys kbd { display: grid; place-items: center; width: 22px; height: 22px; font: 400 11px var(--text); color: var(--soft); border: 1px solid var(--line); }
.keys kbd + kbd { margin-right: 5px; }
.keys b { font-weight: 400; }
.keys .sub { opacity: 0; transition: opacity .5s; }
body[data-act='parts'] .keys .sub, body[data-act='map'] .keys .sub { opacity: 1; }
.keys .sub kbd { color: var(--acc); border-color: rgba(79, 140, 255, .55); }



/* ---------- Stand eines Bauteils: gibt es schon · im Aufbau · Lücke ---------- */
.st { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.s-ok { --s: var(--ok); } .s-warn { --s: var(--warn); } .s-gap { --s: var(--gap); }
.st.s-ok, .st.s-warn, .st.s-gap { background: var(--s); box-shadow: 0 0 9px var(--s); }
.lines circle.t.s-ok, .lines circle.t.s-warn, .lines circle.t.s-gap { fill: var(--s); }
#labels[data-mode='tags'] .off { opacity: .14; }
.tag small { letter-spacing: .14em; }
.filter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; pointer-events: auto; }
.filter button { display: inline-flex; align-items: center; padding: 6px 11px 5px; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--line); background: rgba(0, 0, 0, .5); transition: border-color .3s, color .3s, background .3s; }
.filter button b { margin-left: 8px; font-weight: 400; color: var(--mute); }
.filter button:hover { color: var(--ink); border-color: var(--soft); }
.filter button.on { color: #000; background: var(--ink); border-color: var(--ink); }
.filter button.on b { color: #000; }
body.has-part .filter { pointer-events: none; }
.pill { display: inline-flex; align-items: center; margin-bottom: 14px; padding: 5px 12px 4px 10px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--s); border: 1px solid var(--s); background: rgba(0, 0, 0, .5); }

/* Länderschild wie ein Kennzeichen: blaues EU-Band, Ländercode */
.plate { display: inline-flex; height: 21px; border: 1px solid var(--ink); border-radius: 3px; overflow: hidden; font: 700 13px/19px var(--display); letter-spacing: .06em; background: var(--ink); color: #000; }
.plate i { display: grid; place-items: center; width: 14px; font: 400 8px var(--text); font-style: normal; color: #ffd84a; background: #1b3fa8; }
.plate b { padding: 0 6px; min-width: 26px; text-align: center; }

/* Herkunft: je Lieferland ein Feld */
.d-way ol { grid-template-columns: repeat(var(--n), minmax(0, 200px)); }
.d-way li { padding-right: 16px; }
.d-way li::before { top: -3px; width: 5px; height: 5px; background: var(--acc); }
.d-way li::after { display: none !important; }
.d-way li h4 { font-size: 19px; }
.eutext { font-size: 15px; line-height: 1.48; color: var(--ink); margin-bottom: 18px; }
.fix { margin-bottom: 16px; padding: 2px 0 2px 14px; border-left: 2px solid var(--s); }
.fix .head { margin-bottom: 6px; color: var(--s); }
.fix p:last-child { font-size: 13.5px; line-height: 1.45; color: var(--soft); }
.stat b i { color: var(--acc); }
#minimap { aspect-ratio: 480 / 380; }
.c.on { fill: #2c4fb3; stroke: #86a9ff; }
.route { stroke: #fff; stroke-width: 1.4; }

/* ---------- Das Netz: Länderauswahl rechts ---------- */
.scrim.right { inset: calc(var(--top) * -1) 0 calc(var(--bot) * -1) auto; width: 30%; background: linear-gradient(270deg, rgba(0, 0, 0, .88) 30%, transparent); }
.mapside { position: absolute; right: var(--pad); top: 10px; width: 232px; display: flex; flex-direction: column; max-height: calc(100% - 34px); }
.mapside .head { margin-bottom: 10px; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.tiles > * { aspect-ratio: 1; display: grid; place-items: center; font: 600 13px var(--display); letter-spacing: .05em; }
.tiles span { color: rgba(244, 242, 236, .22); border: 1px solid var(--hair); }
.tiles button { color: var(--ink); background: rgba(79, 140, 255, .26); border: 1px solid rgba(79, 140, 255, .6); transition: background .25s, color .25s, border-color .25s, opacity .25s; }
.tiles button:hover { background: var(--acc); color: #000; }
.tiles.picked button:not(.on) { opacity: .45; }
.tiles button.on { background: var(--ink); border-color: var(--ink); color: #000; }
body.no-eu .tiles button:not(.on) { background: rgba(229, 56, 59, .22); border-color: rgba(229, 56, 59, .65); }
.ccard { margin-top: 16px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.ccard::-webkit-scrollbar { display: none; }
.cchint { font-size: 13px; line-height: 1.45; color: var(--mute); }
.cchead { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cchead h3 { flex: 1; font: 700 24px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.cchead button { width: 26px; height: 26px; font-size: 20px; line-height: 1; color: var(--soft); border: 1px solid var(--line); }
.cchead button:hover { color: #000; background: var(--ink); }
.ccard ul { list-style: none; padding: 0; margin: 8px 0 0; }
.ccard li { display: grid; grid-template-columns: 17px 1fr; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.ccard li .st { margin: 5px 0 0; }
.ccard li b { font: 600 15px/1.15 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.ccard li em { grid-column: 2; font: 400 10.5px/1.4 var(--mono); font-style: normal; color: var(--soft); }
.ccfoot { margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--soft); }
.ccfoot b { color: var(--acc); font-weight: 500; }
body.no-eu .ccfoot b { color: var(--red); }
.maphint { right: auto; left: 50%; bottom: 6px; transform: translateX(-50%); white-space: nowrap; }


/* Schilder auf der Karte */
.glabel.country.on { pointer-events: auto; cursor: pointer; }
.glabel.country b { font-size: 14px; letter-spacing: .26em; margin-right: -.26em; color: rgba(244, 242, 236, .78); transition: color .25s; }
.glabel.country:hover b, .glabel.country.sel b { color: #fff; }
.glabel.country.sel .cur { color: #000; background: var(--ink); border-color: var(--ink); }
.glabel.site span { left: 10px; top: -13px; transform: translateY(var(--dy, 0px)); }
#globe-labels.dense .glabel.site i { display: none; }
#globe-labels.dense .glabel.site span { top: -8px; }
.glabel.site b { font: 600 14px/1.1 var(--display); letter-spacing: .06em; }
.glabel.site i { font: 400 9.5px/1.4 var(--mono); letter-spacing: .08em; color: var(--acc); text-transform: uppercase; }
body.no-eu .glabel.site i { color: #ff8d8f; }


/* ---------- Reiter oben: frei zwischen den vier Bereichen wechseln ---------- */
.tabs { display: flex; gap: 2px; }
.tabs button { padding: 9px 16px 7px; font: 600 16px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); border-bottom: 2px solid transparent; transition: color .3s, border-color .3s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--acc); }

/* ---------- Leiste mit allen Teilen: bleibt stehen, auch wenn ein Teil offen ist ---------- */
body[data-act='parts'] { --bot: 62px; }
.dock { position: fixed; left: var(--pad); right: var(--pad); bottom: 14px; z-index: 30; display: flex; gap: 3px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
body[data-act='parts'] .dock { opacity: 1; visibility: visible; transition: opacity .7s .3s; }
.dock button { flex: 1 1 0; min-width: 0; height: 38px; display: flex; align-items: center; justify-content: center; padding: 2px 4px 0; font: 600 14px var(--display); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; color: var(--soft); border-top: 2px solid var(--line); background: rgba(0, 0, 0, .45); transition: color .25s, background .25s, border-color .25s, opacity .3s; }
.dock .st { width: 7px; height: 7px; margin-right: 7px; }
.dock button:hover { color: var(--ink); border-top-color: var(--soft); background: rgba(255, 255, 255, .08); }
.dock button.on { color: #000; background: var(--ink); border-top-color: var(--ink); }
.dock button.off { opacity: .28; }

/* ---------- Der Weg eines Teils in Schritten ---------- */
.wayhead { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.d-way .wayhead .head { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 6px; font: 600 14px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line); background: rgba(0, 0, 0, .5); pointer-events: auto; transition: background .25s, color .25s, border-color .25s; }
.more b { font: 400 14px var(--text); transition: transform .25s; }
.more:hover { color: #000; background: var(--ink); border-color: var(--ink); }
.more:hover b { transform: translateX(4px); }
.d-way ol { grid-template-columns: repeat(var(--n), minmax(0, 320px)); }
.d-way li p { max-width: none; }
.d-way li { padding: 16px 20px 0 0; }
.d-way li::before { display: none; }
.d-way li u { position: absolute; left: 0; top: -11px; display: grid; place-items: center; width: 21px; height: 21px; font: 500 11px var(--mono); text-decoration: none; color: #000; background: var(--ink); }
.d-way li h4 { margin-top: 6px; font-size: 21px; }
.plates { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.d-way li em { margin-top: 6px; }
.d-way li p.what { color: var(--ink); }
.d-way li p.why { color: var(--soft); }
.d-way li p.why b { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); margin-right: 4px; }
.d-way li .more { margin-top: 10px; }
body.has-part .d-way { pointer-events: auto; }
.fix { margin-bottom: 20px; }
.d-facts details { margin-top: 22px; }
.fix.later { border-left-color: var(--line); }
.fix.later .head { color: var(--mute); }
.d-facts { top: 14px; }

/* ---------- Netz: Bauteile wählen, Weg als Liste ---------- */
#globe-labels[data-step='1'] .glabel.country:not(.sel) .cur { display: none !important; }
.mapside .head.second { margin-top: 14px; }
/* Ist etwas gewählt, macht die andere Auswahl Platz für die Karte dazu. */
.mapside[data-kind='part'] .tiles, .mapside[data-kind='part'] .head:first-child, .mapside[data-kind='cc'] .pchips, .mapside[data-kind='cc'] .head.second { display: none; }
.mapside[data-kind='part'] .head.second { margin-top: 0; }
.tiles > * { aspect-ratio: auto !important; height: 27px; }
.pchips { display: flex; flex-wrap: wrap; gap: 4px; }
.pchips button { display: inline-flex; align-items: center; padding: 5px 8px 4px; font: 600 12.5px var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--line); background: rgba(0, 0, 0, .5); transition: color .25s, background .25s, border-color .25s, opacity .25s; }
.pchips .st { width: 6px; height: 6px; margin-right: 6px; }
.pchips button:hover { color: var(--ink); border-color: var(--soft); }
.pchips button.on { color: #000; background: var(--ink); border-color: var(--ink); }
.mapside.picked .pchips button:not(.on), .mapside.picked .tiles button:not(.on) { opacity: .45; }
.cchead .st { margin: 0; }
.ccard li button { display: grid; grid-template-columns: 17px 1fr; width: 100%; text-align: left; }
.ccard li button:hover b { color: var(--acc); }
.ccard li { display: block; }
.chain { list-style: none; padding: 0; margin: 10px 0 0; }
.chain li { position: relative; display: block !important; padding: 0 0 12px 30px !important; border: 0 !important; }
.chain li::before { content: ''; position: absolute; left: 9px; top: 20px; bottom: -2px; width: 1px; background: var(--line); }
.chain li:last-child::before { display: none; }
.chain u { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 19px; height: 19px; font: 500 10.5px var(--mono); text-decoration: none; color: #000; background: var(--ink); }
.chain li:last-child u { background: var(--acc); }
.chain b { display: block; }
.ccard .more { margin-top: 12px; }
.mapcopy h2 { font-size: clamp(34px, 3.7vw, 60px); }
.glabel.site u { display: none; text-decoration: none; }
#globe-labels[data-mode='part'] .glabel.site u { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 6px; font: 500 10px var(--mono); letter-spacing: 0; color: #000; background: var(--ink); text-shadow: none; vertical-align: 2px; }
#globe-labels[data-mode='part'] .glabel.site i.p, #globe-labels[data-mode='cc'] .glabel.site i.s { display: none; }


/* ---------- Stand jedes einzelnen Schritts: auf den ersten Blick ---------- */
.d-way li.s-ok, .d-way li.s-warn, .d-way li.s-gap { border-top: 2px solid var(--s); }
.d-way li.s-ok u, .d-way li.s-warn u, .d-way li.s-gap u, .d-way li.last u { top: -12px; background: var(--s); }
.sst { display: flex; align-items: center; gap: 7px; margin-top: 2px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--s); }
.sst::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--s); box-shadow: 0 0 8px var(--s); }
.d-way li.s-warn h4, .d-way li.s-gap h4 { color: var(--s); }
.d-way li p.todo { margin-top: 5px; padding: 3px 8px 2px; display: inline-block; font-size: 12.5px; font-weight: 500; line-height: 1.35; color: #000; background: var(--s); max-width: none; text-shadow: none; }
/* Lösungsweg direkt unter dem, was fehlt */
.d-way li p.todo { display: block; margin-right: 0; }
.d-way li p.solve { margin-top: 0; padding: 4px 8px 4px 7px; font-size: 12.5px; line-height: 1.35; color: var(--ink); border: 1px solid var(--s); border-top: 0; background: rgba(0, 0, 0, .6); max-width: none; }
.solve b, .chain small b { margin-right: 7px; font: 500 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--s); }
.chain small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--ink); }
.sum { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.sum.open { color: var(--warn); }
.chain li.s-warn u, .chain li.s-gap u, .chain li.s-ok u { background: var(--s) !important; }
.chain li.s-warn em, .chain li.s-gap em { color: var(--s); }
.glabel.site u.s-ok { background: var(--ok) !important; }
.glabel.site u.s-warn { background: var(--warn) !important; }
.glabel.site u.s-gap { background: var(--gap) !important; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font: 400 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.legend span { display: inline-flex; align-items: center; }
.legend .st { width: 6px; height: 6px; margin-right: 6px; }

/* ---------- Lesbarkeit ---------- */
.d-way li p { font-size: 13px; }
.d-way li em { font-size: 11.5px; }
.fix p:last-child { font-size: 14px; }
.d-facts { scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-right: 6px; }
.ccard { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.tag small { font-size: 11px; }


/* Dunkler Grund hinter den Schritten, damit das Auto dahinter den Text nicht stört */
@media (min-width: 901px) {
  .d-way { left: 0; bottom: 0; padding: 34px 0 6px var(--pad); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8) 46px, rgba(0, 0, 0, .9)); }
}

/* ---------- Fazit: die drei Zahlen hinter den drei Aussagen ---------- */
.act-end h2 { font-size: clamp(30px, 3.3vw, 54px); margin: 14px 0 26px; }
.proof { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 210px)); gap: 26px; }
.proof li { padding-top: 12px; border-top: 2px solid var(--red); }
.proof b { display: block; font: 700 clamp(36px, 3.4vw, 54px)/.9 var(--display); color: var(--red); font-variant-numeric: tabular-nums; }
.proof b i { font: 600 17px var(--display); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.proof em { display: block; margin-top: 6px; font: 500 11px var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.proof p { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--soft); }
.proof strong { color: var(--ink); font-weight: 600; }
.mapnote { max-width: 46ch; text-align: right; line-height: 1.5; }

/* ---------- Niedrige oder mittelbreite Fenster: knapper ---------- */
@media (min-width: 901px) and (max-height: 780px), (min-width: 901px) and (max-width: 1180px) {
  .d-way li .why { display: none; }
  .dock button { font-size: 12.5px; letter-spacing: .04em; }
  .dock .st { margin-right: 5px; }
  .lead { font-size: 15px; }
  .eu p { font-size: 13px; }
  .brand span { display: none; }
}

/* ---------- Handy und schmale Fenster ---------- */
@media (max-width: 900px) {
  :root { --top: 54px; --bot: 58px; --pad: 18px; }
  body[data-act='parts'] { --bot: 104px; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; height: 50px; gap: 0; background: #000; border-top: 1px solid var(--line); }
  .tabs button { flex: 1; padding: 0; font-size: 14px; border-bottom: 0; border-top: 2px solid transparent; }
  .tabs button.on { border-top-color: var(--acc); }
  .dock { left: 0; right: 0; bottom: 58px; gap: 6px; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; }
  .dock::-webkit-scrollbar { display: none; }
  .dock button { flex: none; padding: 2px 12px 0; border: 1px solid var(--line); background: rgba(0, 0, 0, .75); }
  .wayhead { flex-wrap: wrap; gap: 8px; }
  .d-way li u { position: static; grid-row: 1 / span 5; }
  .d-way li { grid-template-columns: 30px 1fr !important; padding-bottom: 18px !important; }
  .d-way li > :not(u) { grid-column: 2; }
  .d-way .plate { grid-row: auto !important; }
  .pchips, .mapside .head.second, .legend { display: none; }
  .d-way li.s-ok, .d-way li.s-warn, .d-way li.s-gap { border-top: 0; }
  .sum { width: 100%; }
  .mapcopy h2 { font-size: 34px; }
  .frame { inset: 8px; }
  .top { padding-top: 4px; }
  .brand b { font-size: 16px; }
  .brand span { display: none; }
  .keys { display: none; }
  .bottom { align-items: center; gap: 14px; padding-bottom: 6px; }
  .ticks { gap: 8px; }
  .grp { min-width: 0; }
  .glab { font-size: 12px; gap: 5px; margin-bottom: 0; }
  .glab em, .grp:not(.on) .glab span { display: none; }
  .grp.on, .grp.on.multi { flex-grow: 3.4; }
  .act-intro .kicker { text-shadow: 0 0 8px #000, 0 0 3px #000; }
  .row { gap: 3px; height: 22px; }
  .nav { width: 50px; height: 40px; }
  .nav + .nav { margin-left: -6px; }

  .act-intro h1 { font-size: clamp(42px, 13.5vw, 74px); margin: 12px 0 14px; }
  .lede { font-size: 15px; margin-bottom: 18px; }
  .hint { display: none; }

  .ovhead { top: 4px; }
  .ovhead h2 { font-size: 40px; }
  .ovhead p:last-child { font-size: 14px; }
  .tag, .lines .t, .note3d, .lines .n { display: none; }
  .chips { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; gap: 8px; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; transition: opacity .4s; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; padding: 9px 13px 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, .7); font: 600 15px var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
  body.has-part .chips { opacity: 0; pointer-events: none; }

  .back { top: 2px; padding: 10px 16px 9px 13px; font-size: 16px; }
  /* Die drei Felder werden zu einem Blatt, das von unten kommt. */
  .detail { inset: auto 0 0 0; height: 54%; overflow-y: auto; scrollbar-width: none; padding: 22px var(--pad) 20px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .92) 26px, #000 70px); }
  .detail::-webkit-scrollbar { display: none; }
  body.has-part .detail { pointer-events: auto !important; }
  .detail > * { position: static; width: auto; }
  .detail::before, .detail::after { display: none; }
  .d-facts { overflow: visible; }
  .d-title h2 { font-size: 44px; margin: 6px 0 10px; }
  .lead { font-size: 15.5px; margin-bottom: 22px; }
  .d-way { margin-bottom: 24px; }
  .d-way .head { margin-bottom: 12px; }
  .d-way ol { display: block; }
  .d-way li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 0 0 14px; border: 0; }
  .d-way li::before, .d-way li::after { display: none; }
  .d-way li:not(.last) .cc::after { content: ''; position: absolute; left: 14.5px; top: 24px; bottom: 2px; width: 1px; background: var(--line); }
  .d-way .cc { grid-row: 1 / span 3; align-self: start; }
  .d-way h4 { font-size: 19px; margin-top: 0; }
  .d-way li p { font-size: 13.5px; max-width: none; margin-top: 3px; }
  .stat b { font-size: 68px; }

  .scrim { width: 100%; height: 52%; inset: calc(var(--top) * -1) 0 auto 0; background: linear-gradient(180deg, rgba(0, 0, 0, .95) 50%, transparent); }
  .mapcopy { width: auto; right: var(--pad); top: 0; }
  .mapcopy h2 { font-size: 38px; margin: 6px 0 8px; }
  .mapcopy p:not(.kicker) { font-size: 14.5px; }
  .switch { margin-top: 14px; }
  .switch button { font-size: 14px; padding: 9px 11px 8px; }
  .switch u { display: none; }
  .switch i { margin-right: 6px; }
  .counters { bottom: 4px; }
  .counters div { padding-top: 8px; padding-right: 14px; margin-right: 14px; }
  .counters b { font-size: 44px; }
  .counters span { font-size: 10px; max-width: 13ch; }
  .mapnote, .scrim.right, .mapside .head, .cchint { display: none; }
  .mapside { left: 0; right: 0; top: auto; bottom: 92px; width: auto; max-height: none; }
  .counters:not(.show) ~ .mapside { bottom: 8px; }
  .tiles { display: flex; gap: 6px; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tiles > * { flex: none; aspect-ratio: auto; padding: 7px 10px 6px; background-color: rgba(0, 0, 0, .7); }
  .tiles span, .tiles i { display: none; }
  .mapside { flex-direction: column-reverse; }
  .ccard { margin: 0 var(--pad) 8px; padding: 0 12px; overflow: visible; background: rgba(0, 0, 0, .82); border: 1px solid var(--line); }
  .ccard ul, .ccard .chain { display: none; }
  .ccard .more { margin: 0 0 10px; }
  .ccard .cchead { border-bottom: 0; padding-bottom: 4px; }
  .ccard .ccfoot { margin-top: 0; }
  .ccard:empty { display: none; }
  .ccard .cchead { padding-top: 10px; }
  .ccard .ccfoot { margin-bottom: 10px; }
  .filter { margin-top: 10px; }
  .filter button { padding: 5px 8px 4px; font-size: 9.5px; }
  .pill { margin-bottom: 8px; }
  .d-way li { grid-template-columns: 48px 1fr; }
  .d-way .plate { grid-row: 1 / span 3; align-self: start; }
  .chips .st { margin-right: 7px; }
  .maphint { display: none; }
  .counters.show ~ .maphint { display: none; }
  .glabel span { font-size: 13px; }
  .glabel.raw b, .glabel.hub b { font-size: 17px; }
  .glabel.hub span { top: -44px; }
  .glabel .cur, .glabel.site i { display: none !important; }
  .glabel.country b { font-size: 10px; letter-spacing: .12em; margin-right: 0; }
  .glabel.site b { font-size: 12px; }
  .glabel.customs span { transform: translateX(-22%); }

  .act-end { justify-content: flex-end; padding-bottom: 24px; }
  .act-end h2 { font-size: 27px; margin: 8px 0 14px; }
  .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
  .proof b { font-size: 30px; }
  .proof b i { display: block; margin-top: 4px; font-size: 12px; }
  .proof em { font-size: 9px; letter-spacing: .06em; }
  .proof p { font-size: 12px; }
  .slogan { font-size: 11px; margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
}
