/* ================= SprintVision · Simulator =================
   Eigene Regeln nur mit den Variablen aus fsp/tokens.css. Bausteine kommen aus fsp/components.css.
   Schriften: selbst gehostet, Dateien liegen beim Bauen unter fonts/. */

@font-face { font-family: "FSP Fuge"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/fsp-fuge.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono Variable"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }

/* ---------- Seite ---------- */
.page { display: flex; flex-direction: column; gap: 28px; padding-top: 16px; padding-bottom: 40px; }
@media (min-width: 900px) { .page { padding-top: 32px; gap: 36px; } }
.hinweis { font: 500 13px/1.45 var(--sans); color: var(--muted); padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r12); background: var(--surface); }
.intro { display: flex; flex-direction: column; gap: 10px; }
.intro .lead { max-width: 60ch; }
/* Markenname in FSP Fuge (nur Versalien, ein Schnitt). Kleinbuchstaben der Schrift zeigen dieselben Formen wie die Versalien. */
.intro .title { font-family: var(--display); font-weight: 400; font-synthesis: none; }
.foot { border-top: 1px solid var(--line); padding-top: 16px; }

.stage { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .stage { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 48px; } }
.phone-col, .watch-col { min-width: 0; }
.watch-col { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Gemeinsame Kleinteile ---------- */
.card { min-width: 0; }
.rule { height: 1px; background: var(--line); }
.note { font: 400 13px/1.45 var(--sans); color: var(--muted); padding-left: 10px; border-left: 3px solid var(--warn); }
.axis { display: flex; justify-content: space-between; font: 500 11px/1.2 var(--mono); color: var(--faint); }
.btn.block { display: flex; width: 100%; }
.btn.small { min-height: 44px; }
button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.dash-leer[hidden], #dash-body[hidden] { display: none !important; }

/* ---------- Handy ---------- */
.browser.phone { max-width: 380px; margin: 0 auto; }
.browser.phone .view { aspect-ratio: auto; border-radius: 20px; overflow: hidden; }
.scr { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.scr .card { padding: 12px; gap: 10px; border-radius: var(--r14); }
.ph-head { flex-direction: row !important; align-items: center; justify-content: space-between; padding: 6px 6px 6px 12px !important; }
.ph-link { display: flex; align-items: center; gap: 8px; font: 600 13px/1.3 var(--sans); color: var(--ink); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--acc-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.banner { flex-direction: row !important; align-items: center; justify-content: space-between; padding: 12px 14px !important; }
.btime { font: 900 34px/1 var(--cond); color: var(--ink); min-width: 6ch; text-align: right; }
.badge { align-self: flex-start; white-space: normal; max-width: 100%; min-height: 32px; padding: 6px 12px; font-size: 12px; line-height: 1.3; }
.chip.solid.badge { font-size: 12px; }

.cam { position: relative; height: 150px; border-radius: var(--r12); background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.cam .lane { position: absolute; left: 0; right: 0; height: 1px; background: var(--inactive); }
.cam .fline { position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed var(--faint); }
.cam .fline span { position: absolute; left: 6px; bottom: 6px; font: 500 11px/1.2 var(--mono); color: var(--faint); white-space: nowrap; }
.cam .barrier { position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--acc); transition: background-color .15s; }
.cam .barrier[data-s="idle"] { width: 0; margin-left: 0; border-left: 2px dashed var(--faint); background: none; }
.cam .barrier[data-s="stab"] { background: var(--mid); }
.cam .barrier[data-s="trig"] { width: 6px; margin-left: -3px; }
.cam-lbl { position: absolute; left: 8px; top: 6px; font: 500 11px/1.2 var(--mono); color: var(--ink); white-space: nowrap; }
.runner { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--ink); }
.runner::before, .runner::after { content: ""; position: absolute; right: 100%; margin-right: 4px; height: 2px; border-radius: 1px; background: var(--faint); }
.runner::before { top: 3px; width: 16px; }
.runner::after { top: 12px; width: 10px; }

.bahn { position: relative; height: 56px; margin-top: 4px; }
.bahn-track { position: absolute; left: 0; right: 0; top: 10px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bahn-done { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--muted); }
.bahn-dot { position: absolute; top: 6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ink); left: 0; }
.bahn-ticks { position: absolute; left: 0; right: 0; top: 24px; display: flex; justify-content: space-between; font: 500 11px/1.2 var(--mono); color: var(--faint); }
.bahn-pos { position: absolute; left: 0; right: 0; top: 36px; }

.strip { position: relative; height: 176px; border-radius: var(--r12); background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.strip .ax { position: absolute; left: 72px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.strip .tk { position: absolute; left: 6px; width: 56px; text-align: right; font: 500 11px/1 var(--mono); color: var(--muted); white-space: nowrap; transform: translateY(-50%); }
.strip .tl { position: absolute; left: 66px; width: 6px; height: 1px; background: var(--faint); transform: translateY(-50%); }
.strip .slit { position: absolute; left: 84px; right: 12px; top: 0; bottom: 0; background: var(--surface); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.strip .trig { position: absolute; left: 72px; right: 12px; top: 50%; height: 2px; margin-top: -1px; background: var(--acc); }
.strip .rn { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--ink); }
.strip .rn::before, .strip .rn::after { content: ""; position: absolute; right: 100%; margin-right: 4px; height: 2px; border-radius: 1px; background: var(--faint); }
.strip .rn::before { top: 3px; width: 16px; }
.strip .rn::after { top: 12px; width: 10px; }

.set { gap: 16px !important; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font: 600 14px/1.3 var(--sans); color: var(--ink); }
.field input[type="range"] { width: 100%; min-height: 44px; margin: 0; accent-color: var(--acc); }
.field .hint { font-size: 12px; }

/* Auswertung */
.ph-bar { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.ph-bar .h2 { font: 700 16px/1.3 var(--sans); }
.big { font: 900 60px/0.95 var(--cond); letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 359px) { .big { font-size: 52px; } }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.trio > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trio dt { font: 500 11px/1.3 var(--sans); color: var(--muted); }
.trio dd { margin: 0; font: 800 17px/1.15 var(--cond); color: var(--ink); overflow-wrap: anywhere; }
.tiles .tile { padding: 10px; }
.tiles .tile b { font-size: 28px; }
.tiles .tile span { font-size: 11px; }
.gchart { display: block; width: 100%; height: 110px; }
.gchart .gbase { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
#gpath { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.phases { display: flex; flex-direction: column; gap: 12px; }
.phrow { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.phrow .ph-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.phrow .ph-h b { font: 600 13px/1.3 var(--sans); color: var(--ink); }
.phrow .ph-h .num { font: 800 18px/1 var(--cond); color: var(--ink); white-space: nowrap; }
.phrow small { display: block; font: 400 12px/1.4 var(--sans); color: var(--muted); }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--muted); }
.lrows .lrow { width: 100%; cursor: pointer; text-align: left; min-height: 56px; }
.lrows .lrow[aria-current="true"] { border-color: var(--acc); background: var(--acc-soft); }
.lrows .lrow .cell { font-size: 18px; }
.dash-leer .sub { color: var(--muted); }

/* ---------- Uhr ---------- */
.watch { position: relative; width: min(100%, 300px); padding: 14px; border-radius: 52px; background: var(--surface); border: 1px solid var(--line); }
.face { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.wv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 26px; text-align: center; }
.wv .kick { font-size: 11px; }
.wh { font: 900 30px/0.98 var(--cond); color: var(--ink); max-width: 14ch; overflow-wrap: break-word; }
.wh.acc { color: var(--acc-ink); font-size: 40px; }
.wsub { font: 400 13px/1.35 var(--sans); color: var(--muted); max-width: 24ch; }
.wtime { font: 900 46px/1 var(--cond); color: var(--ink); min-width: 5ch; }
.wstats { display: flex; gap: 18px; justify-content: center; }
.wstats.three { gap: 10px; }
.wstats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.wstats b { font: 800 22px/1 var(--cond); color: var(--ink); }
.wstats.three b { font-size: 18px; }
.wstats span { font: 500 11px/1.2 var(--sans); color: var(--muted); }
.wv .cta { min-height: 52px; padding: 0 20px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.dots i.on { background: var(--acc); }

.ctrl { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; }
.ctrl .seg { display: flex; width: 100%; }
.ctrl .seg > * { flex: 1; min-height: 44px; }
.steps { width: 100%; max-width: 520px; }
.steps .lrow { cursor: default; }
