/* Lieferungen-Monitor – Fallblattanzeiger (Abfahrtstafel).
   Schiefergrund, schwarze Klappen, Bernsteingelb und Weiß.
   IBM Plex Mono 500 auf den Klappen, Instrument Sans für Text. */

/* ---------- Seitenwechsel: diese Welt fährt von unten herein, die vorige Seite tritt zurück (View Transitions; ohne Unterstützung oder bei reduzierter Bewegung normaler Seitenaufruf) ---------- */
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  ::view-transition{background:#f4f2ec}
  ::view-transition-old(root){animation:sw-zurueck .6s cubic-bezier(.5,0,.2,1) both;mix-blend-mode:normal}
  ::view-transition-new(root){animation:sw-herein .8s cubic-bezier(.16,1,.3,1) .05s both;mix-blend-mode:normal}
}
@keyframes sw-zurueck{to{transform:translateY(-4%) scale(.9);opacity:.2}}
@keyframes sw-herein{from{transform:translateY(100%)}}

@font-face { font-family: "LF Mono"; src: url(../fonts/ibm-plex-mono-normal-500-latin.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "LF Sans"; src: url(../fonts/instrument-sans-normal-400_700-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --slate: #1c2126; --slate-2: #232930; --line: #39424b;
  --flap: #0f1215; --flap-top: #171b20; --seam: #040506;
  --amber: #ffc53d; --amber-top: #ffcf5c; --white: #f4f2ec; --grey: #aab3bc; --soft: #d3d8dc;
  --mono: "LF Mono", ui-monospace, Consolas, monospace;
  --sans: "LF Sans", "Segoe UI", system-ui, sans-serif;
  --hc: clamp(22px, calc((100vw - 40px) / 11.8), 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--white); font: 400 17px/1.6 var(--sans); overflow-x: clip;
  background: radial-gradient(70% 560px at 10% -90px, rgba(255, 197, 61, .07), transparent 70%) no-repeat, var(--slate);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--sans); font-weight: 700; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 32px, 1240px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nb { white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Klappe ---------- */
.fc {
  --s: var(--c, 32px);
  position: relative; flex: none; display: inline-grid; place-items: center;
  width: var(--s); height: calc(var(--s) * 1.42); border-radius: calc(var(--s) * .1);
  background: linear-gradient(180deg, var(--flap-top) 0 50%, var(--flap) 50% 100%);
  box-shadow: 0 calc(var(--s) * .05) calc(var(--s) * .09) rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: var(--white); font: 500 calc(var(--s) * 1.06)/1 var(--mono); font-style: normal;
  perspective: calc(var(--s) * 6);
}
.fc::after { /* Trennfuge */
  content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 50%;
  height: max(1px, calc(var(--s) * .045)); transform: translateY(-50%);
  background: var(--seam); box-shadow: 0 1px 0 rgba(255, 255, 255, .05);
}
.fc::before { /* Achslager links und rechts */
  content: ""; position: absolute; z-index: 4; top: 50%; left: calc(var(--s) * -.03); right: calc(var(--s) * -.03);
  height: calc(var(--s) * .22); transform: translateY(-50%);
  border-inline: max(1px, calc(var(--s) * .05)) solid #2e353c; pointer-events: none;
}
.h { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; font-weight: inherit; color: var(--white); background: var(--flap-top); backface-visibility: hidden; }
.h.t, .h.ft { top: 0; border-radius: calc(var(--s) * .1) calc(var(--s) * .1) 0 0; }
.h.b, .h.fb { bottom: 0; background: var(--flap); border-radius: 0 0 calc(var(--s) * .1) calc(var(--s) * .1); }
.h u { position: absolute; left: 0; right: 0; height: 200%; display: grid; place-items: center; text-decoration: none; }
.h.t u, .h.ft u { top: 0; }
.h.b u, .h.fb u { top: -100%; }
.h.ft, .h.fb { z-index: 2; visibility: hidden; }
.h.ft { transform-origin: 50% 100%; }
.h.fb { transform-origin: 50% 0; }
.fl .h.ft, .fl .h.fb { visibility: visible; }
.h.ft::after, .h.fb::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--sh, 0); }
/* Bernsteinfelder (Farbklappe), Hinweisfelder, Kopf- und Hervorhebungsschrift */
.fc.lit { background: linear-gradient(180deg, var(--amber-top) 0 50%, var(--amber) 50% 100%); }
.h.am { background: var(--amber); }
.h.t.am, .h.ft.am { background: var(--amber-top); }
.fc.hd, .fc.hd .h, .fc.old, .fc.old .h { color: var(--amber); }
.fc.hi { background: linear-gradient(180deg, var(--amber-top) 0 50%, var(--amber) 50% 100%); color: var(--flap); }
.fc.hi .h { background: var(--amber); color: var(--flap); }
.fc.hi .h.t, .fc.hi .h.ft { background: var(--amber-top); }
.lf-pre .hf .fc { color: transparent; }

/* ---------- Kopf ---------- */
.skip { position: absolute; left: 16px; top: -80px; z-index: 30; padding: 12px 18px; border-radius: 6px; background: var(--amber); color: var(--flap); font: 600 16px/1.2 var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }
/* Kopfzeile: links „← Profil“, rechts „Demo“ und der Name als Weg zur Startseite
   (eine Grammatik für alle Projektseiten, 31.10.2026: volle Breite, gleicher Seitenabstand, jedes Ziel ≥ 44 px) */
.lf-top { display: flex; align-items: center; gap: 16px; padding: 18px clamp(16px, 3vw, 40px); }
.lf-back {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px;
  border: 1px solid rgba(244, 242, 236, .26); border-radius: 6px; text-decoration: none;
  font: 600 16px/1 var(--sans); color: var(--white); background: rgba(255, 255, 255, .03);
  transition: border-color .2s, background-color .2s;
}
.lf-back:hover { border-color: var(--amber); background: rgba(255, 197, 61, .08); }
.lf-back.demo{margin-left:auto;white-space:nowrap;gap:0} /* Bedien-Demo mit Fantasiedaten (demo-lieferungen.html), steht direkt vor dem Namen */
@media (max-width:599px){.demo-zusatz{display:none}}
.lf-back .i { width: 20px; height: 20px; }
.lf-who { display: inline-flex; align-items: center; min-height: 44px; font: 600 12px/1.2 var(--sans); letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; color: var(--grey); text-decoration: none; }
.lf-who:hover { color: var(--white); text-decoration: underline; text-underline-offset: .3em; }
/* schmale Handys: alle drei Ziele in einer Zeile, der Name ungekürzt */
@media (max-width: 399.98px) {
  .lf-top { gap: 8px; }
  .lf-top .lf-back { gap: 6px; padding: 0 12px 0 10px; font-size: 15px; }
  .lf-top .lf-back.demo { padding: 0 12px; }
  .lf-top .lf-back .i { width: 18px; height: 18px; }
  .lf-who { letter-spacing: .06em; }
}
@media (max-width: 359.98px) { .lf-who { font-size: 11px; letter-spacing: .04em; } }

/* ---------- Hero: die Frage als Klappenzeile ---------- */
.lf-hero { padding-top: clamp(16px, 4vh, 48px); }
.sign { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sign-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: var(--amber); color: var(--flap); }
.sign-ic .i { width: 24px; height: 24px; }
.sign-name { font: 700 clamp(19px, 1vw + 12px, 24px)/1.2 var(--sans); }
.sign-cat { margin-left: auto; font: 500 13px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.hf { --c: var(--hc); display: flex; flex-wrap: wrap; align-items: flex-start; gap: calc(var(--hc) * .24) calc(var(--hc) * .5); margin-top: clamp(28px, 6vh, 64px); }
.w { display: flex; gap: calc(var(--c) * .08); }
.br { flex-basis: 100%; height: 0; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: clamp(28px, 5vh, 52px); }
.lead { max-width: 48ch; font-size: clamp(18px, 12px + .6vw, 22px); line-height: 1.5; color: var(--soft); }
.cue {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 6px;
  background: var(--amber); color: var(--flap); font: 700 16px/1 var(--sans); text-decoration: none;
}
.cue:hover { background: var(--amber-top); }
.cue .i { width: 20px; height: 20px; }
.edge { /* Bahnsteigkante */
  margin-top: clamp(44px, 9vh, 96px); height: 6px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 36px, transparent 36px 54px);
  box-shadow: 0 -12px 0 -10px rgba(244, 242, 236, .35);
}

/* ---------- Abfahrtstafel ---------- */
.lf-monitor { padding-top: clamp(64px, 11vh, 128px); }
.m-head { max-width: 760px; }
.eyebrow { font: 500 13px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.m-head h2, .m-text h2, .sec-head h2 { margin-top: 12px; font-size: clamp(2rem, 1rem + 3vw, 3.6rem); line-height: 1.04; }
.m-intro { margin-top: 18px; max-width: 60ch; font-size: 18px; color: var(--grey); }
.lf-scrolly { position: relative; margin-top: clamp(24px, 5vh, 56px); }

.tafel {
  width: var(--tw, 100%); container-type: inline-size; border-radius: clamp(8px, 1.4vw, 14px);
  background: linear-gradient(180deg, #262c33, #1f2429);
  box-shadow: 0 0 0 1px #0a0c0e, 0 0 0 4px #2f363d, 0 0 0 5px #0a0c0e, 0 50px 90px -40px rgba(0, 0, 0, .95);
}
.t-in { --c: 3.2cqw; display: grid; gap: calc(var(--c) * .32); padding: calc(var(--c) * 1.2); }
.t-head { display: flex; align-items: center; gap: calc(var(--c) * .55); padding-bottom: calc(var(--c) * .55); margin-bottom: calc(var(--c) * .25); border-bottom: 1px solid var(--line); }
.t-ic { display: grid; place-items: center; width: calc(var(--c) * 1.7); height: calc(var(--c) * 1.7); border-radius: calc(var(--c) * .22); background: var(--amber); color: var(--flap); }
.t-ic .i { width: 62%; height: 62%; }
.t-title { font: 700 max(14px, calc(var(--c) * 1.45))/1 var(--sans); letter-spacing: -.01em; }
.t-sub { padding-top: .3em; font: 500 max(9px, calc(var(--c) * .62))/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.clock { margin-left: auto; width: calc(var(--c) * 2.1); height: calc(var(--c) * 2.1); }
.cl-f { fill: var(--flap); stroke: #3d454e; stroke-width: .8; }
.cl-t { fill: none; stroke: var(--white); stroke-width: 1; stroke-linecap: round; }
.cl-h path, .cl-m path { fill: none; stroke: var(--white); stroke-linecap: round; }
.cl-h path { stroke-width: 1.9; }
.cl-m path { stroke-width: 1.2; }
.cl-c { fill: var(--amber); }
.cl-h, .cl-m { transform-box: view-box; transform-origin: 12px 12px; transition: transform .9s cubic-bezier(.5, 0, .2, 1); }
.cl-m { transform: rotate(510deg); }
.cl-h { transform: rotate(162.5deg); }
.row { display: flex; gap: calc(var(--c) * .8); }
.seg { display: flex; gap: calc(var(--c) * .1); }
.hd-row { padding-bottom: calc(var(--c) * .32); margin-bottom: calc(var(--c) * .12); border-bottom: 1px solid rgba(255, 197, 61, .35); }
.t-foot { display: flex; align-items: center; gap: calc(var(--c) * .6); margin-top: calc(var(--c) * .3); padding-top: calc(var(--c) * .55); border-top: 1px solid var(--line); }
.t-lab { font: 600 max(10px, calc(var(--c) * .66))/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
.gauge { display: flex; gap: calc(var(--c) * .14); }
.gauge .fc { --s: max(7px, calc(var(--c) * .62)); }

/* Schritte */
.lf-steps { list-style: none; margin: 0; padding: 0; }
.s-card { position: relative; }
.s-lab { display: flex; align-items: center; gap: 12px; font: 600 15px/1.2 var(--sans); letter-spacing: .02em; color: var(--amber); }
.no { --c: 20px; display: inline-flex; gap: 2px; }
.lf-step h3 { margin-top: 16px; font-size: clamp(1.7rem, 1rem + 1.7vw, 2.6rem); line-height: 1.06; }
.s-f { margin-top: 14px; max-width: 34ch; font-size: clamp(18px, 16px + .3vw, 20px); font-weight: 500; line-height: 1.5; }
.s-d { margin-top: 12px; max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--soft); }
.s-im { margin-top: 12px; max-width: 46ch; font-size: 16px; line-height: 1.55; color: var(--grey); }
.s-card::before { content: ""; position: absolute; background: rgba(244, 242, 236, .12); transition: background-color .3s; }
.lf-step.is-on .s-card::before { background: var(--amber); }

@media (min-width: 900px) {
  :root { --hc: min(76px, calc((min(100vw, 1272px) - 40px) / 16.2)); }
  .lf-scrolly { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
  .lf-stage { grid-column: 2; grid-row: 1; position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
  .tafel { --tw: min(100%, 780px); }
  .lf-steps { grid-column: 1; grid-row: 1; padding: 20vh 0 38vh; }
  .lf-step { min-height: 78vh; display: flex; align-items: center; }
  .s-card { padding-left: 30px; }
  .s-card::before { left: 0; top: 4px; bottom: 4px; width: 3px; }
}
@media (max-width: 899.98px) {
  .br { display: none; }
  .lf-stage {
    position: sticky; top: 0; z-index: 2; margin-inline: -12px; padding: 12px 0 22px;
    background: linear-gradient(180deg, var(--slate) 0, var(--slate) calc(100% - 22px), rgba(28, 33, 38, 0));
  }
  .tafel { --tw: min(100% - 12px, 640px); margin-inline: auto; }
  .lf-steps { padding: 4svh 0 24svh; }
  .lf-step { min-height: 66svh; padding-top: 10svh; }
  .s-card { padding: 22px 20px; border-radius: 10px; background: var(--slate-2); box-shadow: 0 0 0 1px rgba(244, 242, 236, .08) inset; }
  .s-card::before { left: 20px; right: 20px; top: 0; height: 3px; }
}

/* ---------- Die Demo: Ansicht mit Fantasiedaten ---------- */
.lf-motif { padding-block: clamp(80px, 14vh, 150px); }
.motif-grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
.m-fig { margin: 0; padding: 10px; border-radius: 10px; background: var(--flap); box-shadow: 0 0 0 1px #343c44, 0 40px 80px -40px #000; }
.m-link { display: block; overflow: hidden; border-radius: 4px; }
.m-link img { display: block; width: 100%; height: auto; }
.m-fig figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 6px 4px; font-size: 16px; color: var(--grey); }
.m-fig strong { font-weight: 600; color: var(--white); }
.m-text > p:not(.eyebrow) { margin-top: 18px; max-width: 58ch; font-size: 18px; color: var(--soft); }
.m-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.m-list li { display: flex; align-items: center; gap: 14px; font-size: 17px; line-height: 1.45; }
.m-list .no { --c: 18px; }
@media (min-width: 900px) { .motif-grid { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); } }

/* ---------- Leitsatz als Klappentafel: ÄLTESTE / ZUERST, je Zeile ein Wort (Breite der Tafel ≈ 9,1 Klappen) ---------- */
.lf-close { padding-block: clamp(88px, 14vh, 160px) clamp(64px, 11vh, 128px); }
.sign-board {
  --c: clamp(24px, calc((100vw - 48px) / 9.6), 64px);
  width: fit-content; max-width: 100%; margin-inline: auto; padding: calc(var(--c) * .8);
  display: grid; gap: calc(var(--c) * .3); justify-items: center; border-radius: 10px;
  background: linear-gradient(180deg, #262c33, #1f2429);
  box-shadow: 0 0 0 1px #0a0c0e, 0 0 0 4px #2f363d, 0 0 0 5px #0a0c0e, 0 40px 70px -40px #000;
}
.hf2 { display: flex; gap: calc(var(--c) * .5); }
.sign-board .fc, .sign-board .h { color: var(--amber); }

/* =====================================================================
   Ausbau: Ausgangslage, Im Detail, Zusammenspiel, Technik & Rolle,
   Weitere Projekte – alles in derselben Bahnhofswelt.
   Startzustände für Bewegung setzt nur das Skript (Klasse .pre).
   ===================================================================== */
.sec { padding-top: clamp(88px, 14vh, 160px); }
.sec-head { max-width: 760px; }
.sec-intro { margin-top: 18px; max-width: 60ch; font-size: 18px; color: var(--grey); }
.prose p { max-width: 62ch; font-size: 18px; line-height: 1.65; color: var(--soft); }
.prose p + p { margin-top: 1em; }
.board {
  border-radius: 14px; background: linear-gradient(180deg, #262c33, #1f2429);
  box-shadow: 0 0 0 1px #0a0c0e, 0 0 0 4px #2f363d, 0 0 0 5px #0a0c0e, 0 40px 80px -40px rgba(0, 0, 0, .95);
}
.sc-head, .lauf-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sc-t, .lauf-t { font: 700 clamp(17px, .6vw + 13px, 22px)/1.1 var(--sans); }
.sc-s, .lauf-s, .n-l, .lamp, .rp-l { font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }

/* ---------- Ausgangslage: Weg einer Lieferung ---------- */
.lage-grid { display: grid; gap: 22px; }
.lauf { margin-top: clamp(44px, 8vh, 88px); padding: clamp(18px, 2.6vw, 34px); }
.lauf-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 5px; background: var(--amber); color: var(--flap); }
.lauf-ic .i { width: 20px; height: 20px; }
.lauf-s { margin-left: auto; }
.halte { --c: clamp(15px, 4.4vw, 21px); --tk: calc(var(--c) * 2.84 + 8px); position: relative; list-style: none; margin: 0; padding: 0; display: grid; }
.halt { position: relative; display: flex; }
.h-tok { display: flex; gap: 8px; }
.tok { display: flex; gap: calc(var(--c) * .1); }
.h-dot { position: relative; z-index: 1; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--slate); box-shadow: inset 0 0 0 3px var(--grey); }
.halt:last-child .h-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 197, 61, .22); }
.h-name { font: 600 16px/1.25 var(--sans); color: var(--soft); }
.halte::before { /* Gleis */
  content: ""; position: absolute; background: repeating-linear-gradient(90deg, rgba(255, 197, 61, .75) 0 16px, transparent 16px 24px);
  transition: transform 1.1s cubic-bezier(.5, 0, .2, 1);
}
.lauf.pre .tok { opacity: 0; }
@media (min-width: 720px) {
  .halte { grid-template-columns: repeat(5, minmax(0, 1fr)); padding-top: 26px; }
  .halt { flex-direction: column; align-items: flex-start; gap: 14px; }
  .h-tok { flex-direction: column-reverse; height: var(--tk); }
  .halte::before { left: 9px; right: calc(20% - 9px); top: calc(26px + var(--tk) + 14px + 7.5px); height: 3px; transform-origin: 0 50%; }
  .lauf.pre .halte::before { transform: scaleX(0); }
}
@media (max-width: 719.98px) {
  .halte { --row: calc(var(--c) * 1.42 + 14px); padding-top: 18px; }
  .halt { align-items: center; gap: 14px; min-height: var(--row); }
  .h-dot { order: -1; }
  .h-name { flex: 1 1 auto; min-width: 0; }
  .h-tok { order: 2; }
  .halte::before {
    left: 7.5px; width: 3px; top: calc(18px + var(--row) / 2); bottom: calc(var(--row) / 2); transform-origin: 50% 0;
    background: repeating-linear-gradient(180deg, rgba(255, 197, 61, .75) 0 12px, transparent 12px 18px);
  }
  .lauf.pre .halte::before { transform: scaleY(0); }
}
@media (min-width: 900px) {
  .lage-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 5vw, 88px); }
  .lage-grid .prose { padding-top: 32px; }
}

/* ---------- Im Detail: drei kleine Szenen an der Tafel ---------- */
.d-list { display: grid; gap: clamp(64px, 11vh, 120px); margin-top: clamp(40px, 7vh, 80px); }
.d-item { display: grid; gap: 26px; align-items: center; }
.d-scene { container-type: inline-size; position: relative; display: grid; align-content: center; gap: 22px; min-height: 230px; padding: clamp(16px, 2.4vw, 28px); }
.d-lab { display: flex; align-items: center; gap: 12px; font: 600 15px/1.2 var(--sans); letter-spacing: .02em; color: var(--amber); }
.d-text h3 { margin-top: 14px; font-size: clamp(1.6rem, 1rem + 1.5vw, 2.4rem); line-height: 1.08; }
.d-text > p:last-child { margin-top: 14px; max-width: 54ch; font-size: 18px; line-height: 1.65; color: var(--soft); }
@media (min-width: 900px) {
  .d-item { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 5vw, 88px); }
  .d-item:nth-child(even) .d-scene { order: 2; }
}
@media (max-width: 899.98px) { .d-scene { min-height: 200px; } }
/* Szene 1: Datenweg mit Lampe */
.lamp { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.lamp i { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 197, 61, .2), 0 0 14px rgba(255, 197, 61, .75); transition: background-color .5s, box-shadow .5s; }
.lamp.off { color: var(--grey); }
.lamp.off i { background: #3d454e; box-shadow: none; }
.path { --c: min(26px, calc(100cqw / 23)); display: flex; align-items: flex-start; gap: calc(var(--c) * .5); }
.node { flex: none; display: grid; justify-items: center; gap: 10px; }
.n-l { font-size: 12px; letter-spacing: .08em; color: var(--grey); }
.wire { position: relative; flex: 1 1 0; min-width: calc(var(--c) * 1.2); height: calc(var(--c) * 1.42); }
.wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, rgba(255, 197, 61, .6) 0 6px, transparent 6px 11px); }
.pulse { position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px 2px rgba(255, 197, 61, .7); }
@container (max-width: 380px) { /* schmal: der Datenweg läuft senkrecht */
  .path { --c: min(22px, calc((100cqw - 96px) / 7.7)); flex-direction: column; gap: 6px; }
  .node { grid-template-columns: calc(var(--c) * 7.7) auto; justify-items: start; align-items: center; gap: 14px; }
  .wire { flex: none; width: 2px; min-width: 0; height: 30px; margin-left: calc(var(--c) * 1.55); }
  .wire::before { inset: 0; height: auto; margin: 0; background: repeating-linear-gradient(180deg, rgba(255, 197, 61, .6) 0 6px, transparent 6px 11px); }
  .pulse { left: 50%; top: 0; margin: 0 0 0 -5px; }
}
/* Szene 2: Tagesbericht aus dem Schlitz, Abruf-Knopf */
.sc-report { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 18px clamp(16px, 3vw, 32px); }
.rp-slot { display: block; height: 14px; border-radius: 7px; background: #07090a; box-shadow: inset 0 2px 4px #000, 0 1px 0 rgba(255, 255, 255, .07); }
.rp-win { overflow: hidden; margin: -7px 10px 0; padding: 7px 0 16px; }
.slip { display: grid; gap: 10px; padding: 14px 14px 12px; border-radius: 0 0 4px 4px; background: var(--white); color: var(--flap); box-shadow: 0 12px 18px -12px #000; transition: transform 1.3s cubic-bezier(.25, .7, .2, 1); }
.sc-report.pre .slip { transform: translateY(-104%); }
.sl-h { padding-bottom: 8px; border-bottom: 1px dashed rgba(15, 18, 21, .3); font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.sl-r { display: flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--sans); }
.sl-r b { font-weight: 600; }
.sl-r i { flex: 1; border-bottom: 2px dotted rgba(15, 18, 21, .35); }
.sl-r u { flex: none; width: 34px; height: 16px; border: 1.5px solid rgba(15, 18, 21, .45); border-radius: 3px; }
.sl-f { display: flex; align-items: center; gap: 6px; padding-top: 2px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #4a525a; }
.sl-f .i { width: 16px; height: 16px; }
.rp-call { display: grid; justify-items: start; gap: 14px; padding-top: 4px; }
.rp-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 20px; background: var(--amber); color: var(--flap); font: 700 15px/1 var(--sans); box-shadow: 0 4px 0 #a87a14, 0 10px 18px -8px #000; transition: transform .14s, box-shadow .14s; }
.rp-btn.press { transform: translateY(3px); box-shadow: 0 1px 0 #a87a14, 0 4px 8px -6px #000; }
.rp-bars { --c: min(16px, calc(100cqw / 22)); display: flex; align-items: flex-end; gap: calc(var(--c) * .35); padding: calc(var(--c) * .6); border-radius: 8px; background: var(--flap); box-shadow: inset 0 0 0 1px #2f363d; }
.rp-col { display: flex; flex-direction: column-reverse; gap: calc(var(--c) * .14); }
.rp-l { font-size: 12px; letter-spacing: .08em; color: var(--grey); }
@media (max-width: 559.98px) {
  .sc-report { grid-template-columns: minmax(0, 1fr); }
  .rp-call { grid-template-columns: auto auto; align-items: center; justify-content: start; column-gap: 18px; }
  .rp-l { grid-column: 1 / -1; }
}
/* Szene 3: Meldung mit zwei Direktlinks */
.sc-addr { --c: min(24px, calc(100cqw / 17.6)); }
.ad-row { display: flex; gap: calc(var(--c) * .6); }
.ad-links { position: relative; display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0 0 calc(var(--c) * 3.9); }
.ad-links::before {
  content: ""; position: absolute; left: calc(var(--c) * 1.5); top: 0; height: 35px; width: calc(var(--c) * 2.1);
  border-left: 2px dashed rgba(255, 197, 61, .65); border-bottom: 2px dashed rgba(255, 197, 61, .65); border-bottom-left-radius: 8px;
  transform-origin: 0 0; transition: transform .45s ease-out;
}
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border-radius: 6px; background: rgba(255, 197, 61, .08); box-shadow: inset 0 0 0 1px rgba(255, 197, 61, .6); color: var(--amber); font: 600 15px/1 var(--sans); transition: transform .55s cubic-bezier(.3, .8, .2, 1) .3s, opacity .35s .3s; }
.chip .i { width: 16px; height: 16px; }
.chip + .chip { transition-delay: .55s; }
.sc-addr.pre .chip { opacity: 0; transform: translateX(-16px); }
.sc-addr.pre .ad-links::before { transform: scaleY(0); }

/* ---------- Zusammenspiel: Zuglauf mit Anschlüssen ---------- */
.route { --c: 22px; --g: 30px; list-style: none; margin: clamp(36px, 6vh, 64px) 0 0; padding: 0; display: grid; gap: var(--g); }
.stop { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "dot code" ". name" ". text"; gap: 10px 18px; align-items: center; }
.st-code { grid-area: code; display: flex; gap: calc(var(--c) * .1); }
.st-dot { grid-area: dot; position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--slate); box-shadow: inset 0 0 0 4px var(--grey); }
.st-n { grid-area: name; font-size: clamp(20px, .8vw + 15px, 24px); line-height: 1.2; }
.st-n a { text-decoration: underline 1px rgba(244, 242, 236, .35); text-underline-offset: 5px; transition: text-decoration-color .2s; }
.st-n a::after { content: ""; position: absolute; inset: -12px -14px; border-radius: 10px; }
.stop:hover .st-n a { text-decoration-color: var(--amber); }
.st-t { grid-area: text; max-width: 46ch; font-size: 16px; line-height: 1.55; color: var(--soft); }
.here .st-dot { background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 197, 61, .22); }
.here .st-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--amber); opacity: 0; }
.here.ping .st-dot::after { animation: lf-ping 1.1s ease-out 1; }
.here .st-t { font-weight: 600; color: var(--amber); }
@keyframes lf-ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
.stop:not(:last-child)::before { /* Gleisstück zur nächsten Station */
  content: ""; position: absolute; left: 10.5px; top: calc(var(--c) * .71); width: 3px; height: calc(100% + var(--g));
  background: repeating-linear-gradient(180deg, rgba(255, 197, 61, .7) 0 12px, transparent 12px 18px);
  transform-origin: 50% 0; transition: transform .45s linear;
}
.stop:nth-child(2)::before { transition-delay: .45s; }
.stop:nth-child(3)::before { transition-delay: .9s; }
.stop:nth-child(4)::before { transition-delay: 1.35s; }
.route.pre .stop::before { transform: scaleY(0); }
@media (min-width: 1100px) {
  .route { --g: 28px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stop { grid-template-columns: minmax(0, 1fr); grid-template-areas: "code" "dot" "name" "text"; align-items: start; align-content: start; row-gap: 14px; }
  .stop:not(:last-child)::before {
    left: 12px; top: calc(var(--c) * 1.42 + 14px + 10.5px); width: calc(100% + var(--g)); height: 3px; transform-origin: 0 50%;
    background: repeating-linear-gradient(90deg, rgba(255, 197, 61, .7) 0 16px, transparent 16px 24px);
  }
  .route.pre .stop::before { transform: scaleX(0); }
}

/* ---------- Technik & Rolle: der gelbe Aushang ---------- */
.aushang { max-width: 940px; margin-inline: auto; padding: clamp(22px, 4vw, 52px); border-radius: 6px; background: var(--amber); color: var(--flap); box-shadow: 0 34px 70px -34px #000, inset 0 0 0 1px rgba(0, 0, 0, .1); }
.a-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; padding-bottom: 20px; border-bottom: 3px solid var(--flap); }
.a-k { font: 500 13px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.aushang h2 { margin-top: 10px; font-size: clamp(2rem, 1rem + 3vw, 3.4rem); line-height: 1; }
.a-stamp { --c: clamp(17px, 1.6vw + 8px, 26px); display: flex; gap: calc(var(--c) * .45); }
.a-list { margin: 0; }
.a-list > div { display: grid; grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr); gap: 4px 24px; padding: 14px 0 15px; border-bottom: 1px solid rgba(15, 18, 21, .22); }
.a-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.a-list dt { padding-top: 3px; font: 500 15px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.a-list dd { margin: 0; font: 500 18px/1.5 var(--sans); }
@media (max-width: 640px) { .a-list > div { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Weitere Projekte: vorheriger und nächster Halt ---------- */
.lf-more { padding-bottom: clamp(56px, 9vh, 104px); }
.hops { display: grid; gap: 14px; margin-top: 18px; }
.hop { display: grid; align-content: start; gap: 14px; padding: 22px 24px 24px; border-radius: 10px; background: var(--slate-2); box-shadow: inset 0 0 0 1px rgba(244, 242, 236, .1); text-decoration: none; transition: box-shadow .2s, background-color .2s; }
.hop:hover { background: #283038; box-shadow: inset 0 0 0 1px var(--amber); }
.hop-k { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.hop-k .i { width: 18px; height: 18px; }
.hop-code { --c: clamp(22px, 1.4vw + 14px, 30px); display: flex; gap: calc(var(--c) * .1); }
.hop-n { font: 700 clamp(20px, 1vw + 14px, 26px)/1.2 var(--sans); }
.hop.all { align-content: center; }
@media (max-width: 759.98px) { .hop.all { order: 3; } }
@media (min-width: 760px) {
  .hops { grid-template-columns: minmax(0, 1fr) minmax(0, .62fr) minmax(0, 1fr); }
  .hop.next { justify-items: end; text-align: right; }
  .hop.all { justify-items: center; text-align: center; }
}

/* ---------- Fuß ---------- */
.lf-foot { border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-block: 28px 44px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; font: 500 16px/1.3 var(--sans); text-underline-offset: 4px; text-decoration-color: rgba(244, 242, 236, .4); }
.foot-nav a:hover { text-decoration-color: var(--amber); }
.foot-who { margin-left: auto; font: 600 12px/1.2 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--grey); }

@media (max-width: 640px) {
  .sign-cat { margin-left: 0; flex-basis: 100%; }
  .foot-who { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cl-h, .cl-m, .s-card::before, .lf-back, .halte::before, .lamp i, .slip, .rp-btn, .ad-links::before, .chip, .st-n a, .stop::before, .hop { transition: none; }
}

/* ---------- Druck ----------
   Auf Papier wird der Bahnhof hell: kein Schiefergrund (auch nicht als dunkler Seitenrand aus color-scheme dark),
   Schrift dunkel, Bernstein als Schrift dunkler (AA auf Weiß).
   Die Klappen bleiben Klappen, aber hell mit feinem Rand, Fuge und dunklem Zeichen; Bernsteinfelder, Lampe, Gleise
   und Symbole werden mitgedruckt (sie sind Hintergründe und tragen die Aussage). Tafeln und Bretter bekommen statt
   Schiefer und Tiefenschatten einen Rahmen, der gelbe Aushang einen Bernsteinrand. Die Tafel steht nicht mehr über
   den Schritten; das Skript setzt Tafel und Szenen beim Drucken in den Endzustand. */
@media print{
  :root{color-scheme:light;--slate:#fff;--slate-2:#fff;--soft:#2b3137;--grey:#4b545c;--amber-d:#7f5600}
  html{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  html,body{background:#fff}
  body{zoom:.8;color:#14181c}
  .skip,.lf-back,.cue,.pulse{display:none}
  .fc{background:linear-gradient(180deg,#fff 0 50%,#eceef0 50% 100%);box-shadow:inset 0 0 0 1px #9aa3ab;color:#14181c}
  .fc::after{background:#9aa3ab;box-shadow:none}
  .h{background:#fff;color:#14181c}
  .h.b,.h.fb{background:#eceef0}
  .h.am{background:var(--amber)}
  .fc.hd,.fc.hd .h,.fc.old,.fc.old .h,.sign-board .fc,.sign-board .h{color:var(--amber-d)}
  .sign-cat,.eyebrow,.t-sub,.s-lab,.d-lab,.sc-s,.lauf-s,.lamp,.hop-k,.here .st-t{color:var(--amber-d)}
  .m-fig strong{color:#14181c}
  .tafel,.board,.sign-board,.rp-bars,.m-fig{background:none;box-shadow:inset 0 0 0 1.5px #6b747c}
  .m-fig{width:min(100%,460px)}
  .cl-f{fill:#fff;stroke:#6b747c}
  .cl-t,.cl-h path,.cl-m path{stroke:#14181c}
  .chip{background:none;color:var(--amber-d);box-shadow:inset 0 0 0 1px var(--amber-d)}
  .aushang{background:#fff;box-shadow:inset 0 0 0 4px var(--amber)}
  .hop,.s-card{background:none;box-shadow:inset 0 0 0 1px #a7afb6}
  .s-card::before,.lf-step.is-on .s-card::before{background:var(--amber)}
  .lf-stage{position:static;height:auto;margin-inline:0;padding:0 0 8px;background:none}
  .lf-steps{padding:0}
  .lf-step{min-height:0;padding-top:14px}
  .lf-monitor,.sec{padding-top:48px}
  .lf-motif{padding-block:48px}
  .lf-close{padding-block:48px 32px}
  .lf-more{padding-bottom:24px}
  .foot-row{padding-block:16px 0}
  .d-list{gap:40px}
  .edge{margin-top:32px}
  h2,h3,.eyebrow,.s-lab,.d-lab,.m-head,.sec-head{break-after:avoid}
  h2,h3,.m-head,.sec-head,.tafel,.lauf,.s-card,.d-scene,.m-fig,.m-list,.stop,.a-head,.a-list>div,.sign-board,.hops{break-inside:avoid}
}
