/* Code Stroke – NeuroVerse Workshop */
:root {
  --bg: #0b0f16; --panel: #121925; --panel2: #18212f; --line: rgba(255,255,255,.09); --text: #e8edf4; --muted: #8d99ab;
  --accent: #4cc9f0; --accent2: #2a9fd6; --good: #3ddc97; --bad: #ff6b6b; --warn: #ffd166; --red: #ef476f;
  --r: 10px; --left: 440px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
[hidden] { display: none !important; }

/* Kopfzeile */
#top { position: fixed; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; gap: 18px; padding: 0 16px; background: rgba(11,15,22,.96); border-bottom: 1px solid var(--line); z-index: 20; }
.brand { display: flex; flex-direction: column; line-height: 1.1; min-width: 150px; }
.brand b { font-size: 18px; letter-spacing: .3px; }
.brand b::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 2px; box-shadow: 0 0 0 4px rgba(239,71,111,.18); }
.brand span { font-size: 12px; color: var(--muted); }
.hud { display: flex; gap: 6px; flex: 1; justify-content: center; }
.hud-i { display: flex; flex-direction: column; align-items: center; padding: 3px 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); min-width: 104px; }
.hud-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); white-space: nowrap; }
.hud-i b { font-size: 17px; font-variant-numeric: tabular-nums; }
.hud-i.neur b { color: var(--red); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.team { font-weight: 600; color: var(--accent); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 5px 10px; cursor: pointer; color: var(--muted); font-weight: 600; }
.lang button.on { background: var(--accent); color: #04121a; }

/* Stationen */
#steps { position: fixed; top: 56px; left: 0; right: 0; height: 38px; display: flex; align-items: center; gap: 4px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line); z-index: 19; overflow-x: auto; }
.st-case { font-weight: 700; margin-right: 10px; white-space: nowrap; }
.st { display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 20px; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.st i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; background: var(--panel2); border: 1px solid var(--line); }
.st.past { color: var(--text); }
.st.past i { background: rgba(61,220,151,.2); border-color: rgba(61,220,151,.5); color: var(--good); }
.st.now { background: rgba(76,201,240,.13); color: #fff; font-weight: 600; }
.st.now i { background: var(--accent); color: #04121a; border-color: var(--accent); }

/* Seiten */
#main { position: fixed; top: 56px; left: 0; right: 0; bottom: 0; }
body[data-page="play"] #main { top: 94px; }
.page { position: absolute; inset: 0; overflow: auto; }

/* Knöpfe */
.btn { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-block; transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { border-color: rgba(76,201,240,.5); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); color: #04121a; border-color: var(--accent); font-weight: 650; }
.btn.primary:hover:not(:disabled) { background: #6fd6f5; }
.btn.ghost { background: none; }
.btn.big { padding: 12px 20px; font-size: 16px; width: 100%; margin-top: 12px; }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.btn.next { margin-top: 14px; width: 100%; padding: 11px; font-size: 15.5px; }

/* Startseite */
.start-grid { max-width: 1180px; margin: 0 auto; padding: 40px 24px 48px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; }
.kicker { text-transform: uppercase; letter-spacing: 1.2px; font-size: 12.5px; color: var(--accent); font-weight: 700; }
h1 { font-size: 44px; line-height: 1.08; margin: 8px 0 14px; letter-spacing: -.5px; }
.lead { font-size: 17px; color: #cfd7e3; max-width: 560px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.fact b { display: block; font-size: 24px; color: var(--red); font-variant-numeric: tabular-nums; }
.fact span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }
.join { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.join label > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.join input:not([type=radio]) { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.join input:focus { outline: 2px solid rgba(76,201,240,.45); border-color: transparent; }
.case-pick { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.pk input { margin: 0; accent-color: var(--accent); }
.pk { display: flex; gap: 8px; align-items: center; cursor: pointer; padding: 5px 4px; border-radius: 6px; }
.pk:hover { background: var(--panel2); }
.pk em { font-style: normal; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 15px; }
.how ol { margin: 0; padding-left: 20px; }
.how li { margin: 4px 0; }
.role-list { display: flex; flex-direction: column; gap: 8px; }
.role { display: flex; flex-direction: column; border-left: 3px solid var(--accent); padding-left: 10px; }
.role span { color: var(--muted); font-size: 13.5px; }
#sNote { margin-top: 12px; }

/* Fallbearbeitung */
#play { display: grid; grid-template-columns: var(--left) 1fr; overflow: hidden; }
.play-l { overflow: auto; padding: 16px 18px 40px; border-right: 1px solid var(--line); background: var(--panel); }
.case-k { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); font-weight: 700; }
.case-head h2 { margin: 2px 0 12px; font-size: 22px; }
.task { margin: 0 0 12px; color: #d7deea; }
.lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; margin: 10px 0 4px; }
.card.rep p, .card.learn p { margin: 4px 0 0; }
.q { margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.q-t { font-weight: 650; margin-bottom: 8px; }
.q-o { display: flex; flex-direction: column; gap: 6px; }
.q-o.row { flex-direction: row; margin-top: 8px; }
.opt { text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; cursor: pointer; line-height: 1.35; }
.opt:hover:not(:disabled) { border-color: rgba(76,201,240,.6); }
.opt:disabled { cursor: default; }
.opt.ok { border-color: var(--good); background: rgba(61,220,151,.12); }
.opt.bad { border-color: var(--bad); background: rgba(255,107,107,.1); text-decoration: line-through; opacity: .8; }
.opt.sm { padding: 6px 11px; font-size: 14px; }
.opt.primary { background: var(--accent); color: #04121a; border-color: var(--accent); font-weight: 600; }
.opt.ghost { background: none; }
.fb { margin-top: 8px; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; line-height: 1.45; }
.fb.good { background: rgba(61,220,151,.1); border-left: 3px solid var(--good); }
.fb.bad { background: rgba(255,107,107,.08); border-left: 3px solid var(--bad); }
.hint { font-size: 14px; color: var(--warn); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 18px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: rgba(76,201,240,.18); border-color: var(--accent); }
.nav-pos { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.nav-pos b { font-size: 17px; color: var(--warn); display: block; }
.nav-pos .lbl { margin: 0; }
.chain { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tx { padding-left: 20px; margin: 6px 0; }
.tx li { margin: 6px 0; color: var(--muted); }
.tx li.done { color: var(--good); }
.tx li.done::after { content: '  ✓'; }
.tx li.now { color: var(--text); }
.roi-tab { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-variant-numeric: tabular-nums; }
.roi-tab i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

/* Bühne rechts: Bildgebung + Patiententafel */
.play-r { position: relative; overflow: hidden; background: #000; }
.viewer { position: absolute; inset: 0; }
.viewer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.board { position: absolute; inset: 0; z-index: 5; overflow: auto; background: var(--bg); padding: 24px; display: none; }
.play-r.board-on .board { display: block; }
.vbar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; z-index: 4; pointer-events: none; }
.vb-g { display: flex; background: rgba(18,25,37,.92); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; pointer-events: auto; }
.vb { background: none; border: 0; border-right: 1px solid var(--line); padding: 7px 12px; cursor: pointer; font-size: 13.5px; color: #d7deea; }
.vb:last-child { border-right: 0; }
.vb:hover { background: rgba(76,201,240,.12); }
.vb.on { background: rgba(76,201,240,.22); color: #fff; }
.vb-h { font-size: 12.5px; color: var(--muted); background: rgba(18,25,37,.85); padding: 6px 10px; border-radius: 8px; }
.vload { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; background: rgba(0,0,0,.82); z-index: 6; transition: opacity .3s; font-size: 16px; }
.vload.off { opacity: 0; pointer-events: none; }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mark { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid var(--good); box-shadow: 0 0 0 3px rgba(0,0,0,.55), 0 0 18px rgba(61,220,151,.6); pointer-events: none; z-index: 3; animation: pulse 1.4s ease-in-out infinite; }
.mark.sol { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(0,0,0,.55), 0 0 18px rgba(255,209,102,.6); }
@keyframes pulse { 50% { transform: scale(1.15); } }

/* Patiententafel (Monitor) */
.monitor { max-width: 760px; margin: 0 auto; }
.mon-h { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; font-size: 12.5px; font-weight: 700; }
.mon-h b { font-size: 28px; color: var(--good); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.mon-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.mon-v { background: #050a0f; border: 1px solid rgba(61,220,151,.25); border-radius: 8px; padding: 9px 12px; }
.mon-v span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.mon-v b { color: var(--good); font-size: 18px; font-variant-numeric: tabular-nums; }
.mon-s { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.mon-s span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.mon-s p { margin: 4px 0 0; }
.exam { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 14px; }
.ex { text-align: left; background: var(--panel); border: 1px dashed rgba(76,201,240,.45); border-radius: 8px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-height: 64px; }
.ex:hover { background: var(--panel2); }
.ex em { font-style: normal; color: var(--accent); font-size: 13px; }
.ex.seen { border-style: solid; border-color: var(--line); cursor: default; background: var(--panel2); }
.ex.seen span { color: #dfe6f0; font-size: 14px; line-height: 1.4; }

/* Ergebnis */
.result { max-width: 720px; margin: 0 auto; }
.res-big { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 14px; }
.res-big span { color: var(--muted); text-transform: uppercase; font-size: 12.5px; letter-spacing: .6px; font-weight: 700; }
.res-big b { font-size: 48px; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.res-big em { font-style: normal; color: var(--good); }
.res-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.res-t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.res-t td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.res-neur { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; background: rgba(239,71,111,.08); border: 1px solid rgba(239,71,111,.3); border-radius: 8px; padding: 10px 12px; gap: 12px; }
.res-neur b { font-size: 22px; color: var(--red); white-space: nowrap; }
.res-msg { margin-top: 12px; color: #d7deea; }

/* Abschluss */
.fin { max-width: 1180px; margin: 0 auto; padding: 32px 24px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.code { margin: 16px 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.code span { color: var(--muted); font-size: 13.5px; }
.code b { font-size: 26px; letter-spacing: 1.5px; font-variant-numeric: tabular-nums; }
.why { display: flex; flex-direction: column; gap: 10px; }
.why-i { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 8px; padding: 10px 14px; }
.why-i p { margin: 3px 0 0; color: #cfd7e3; }
.refs { margin: 14px 0; }
.refs summary { cursor: pointer; color: var(--muted); }
.refs li { margin: 4px 0; font-size: 14px; }
.lb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lb th { text-align: left; font-size: 12px; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.lb td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.lb tr:nth-child(1) td:first-child, .lb tr:nth-child(2) td:first-child, .lb tr:nth-child(3) td:first-child { color: var(--warn); font-weight: 700; }
.lb tr.me td { background: rgba(76,201,240,.12); }
.live { font-size: 11px; text-transform: uppercase; color: var(--good); border: 1px solid var(--good); border-radius: 10px; padding: 1px 7px; vertical-align: 3px; margin-left: 6px; }

/* Tutor-Ansicht */
.ldw { max-width: 1320px; margin: 0 auto; padding: 28px 24px 48px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; }
.big-url, .big-room, .timer { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 12px; }
.big-url span, .big-room span, .timer > span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.big-url b { font-size: 26px; word-break: break-all; color: var(--accent); }
.big-room b { font-size: 46px; letter-spacing: 6px; margin-right: 14px; }
.timer b { font-size: 64px; font-variant-numeric: tabular-nums; line-height: 1.1; display: block; }
.timer b.end { color: var(--red); }
.plan { padding-left: 20px; }
.plan li { margin: 5px 0; }
#ldForm input { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 160px; }
.over { position: fixed; inset: 0; background: rgba(5,8,12,.97); z-index: 50; overflow: auto; }
.over-in { max-width: 980px; margin: 0 auto; padding: 48px 24px; }
.over-in .why-i b { font-size: 22px; }
.over-in .why-i p { font-size: 18px; }

/* Hinweis */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: #2a1c22; border: 1px solid rgba(255,107,107,.5); color: #ffd9d9; padding: 9px 16px; border-radius: 10px; z-index: 60; opacity: 0; transition: opacity .25s, transform .25s; font-weight: 600; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Kleinere Laptops / Tablets */
@media (max-width: 1280px) { :root { --left: 380px; } .hud-i { min-width: 86px; padding: 3px 8px; } }
@media (max-width: 1000px) {
  :root { --left: 340px; }
  .start-grid, .fin, .ldw { grid-template-columns: 1fr; }
  .hud-l { font-size: 9.5px; }
  .brand span { display: none; }
}
@media (max-width: 760px) {
  #top { height: auto; flex-wrap: wrap; padding: 6px 10px; gap: 6px; }
  .hud { order: 3; width: 100%; }
  #main { top: 104px; }
  body[data-page="play"] #main { top: 142px; }
  #steps { top: 104px; }
  #play { grid-template-columns: 1fr; grid-template-rows: 46vh 1fr; }
  .play-r { grid-row: 1; }
  .play-l { grid-row: 2; border-right: 0; }
  .facts { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}

/* Patientenuntersuchung (schematische Figur) */
.exam2 { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.vit-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.vit-strip > div { background: #050a0f; border: 1px solid rgba(61,220,151,.25); border-radius: 8px; padding: 5px 10px; flex: 1; min-width: 104px; }
.vit-strip span { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.vit-strip b { color: var(--good); font-size: 15px; font-variant-numeric: tabular-nums; }
.vit-strip .vit-clock b { color: #fff; }
.pt-wrap { display: grid; grid-template-columns: minmax(280px, 1.25fr) 1fr; gap: 14px; align-items: start; }
.pt-host { position: relative; background: radial-gradient(ellipse at 50% 35%, #1d2836 0%, #111822 70%); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pt-svg { display: block; width: 100%; height: auto; }
.pt-small { max-width: 300px; margin: 14px auto 0; }
.pt-bed-back { fill: #243041; }
.pt-pillow { fill: #dfe6ee; opacity: .9; }
.pt-leg { fill: #9fb6cc; }
.pt-foot { fill: #e2bfa3; }
.pt-blanket { fill: #3e5a78; }
.pt-skin { fill: #e8c3a5; }
.pt-gown { fill: #8fb3d6; }
.pt-collar { fill: none; stroke: #6f93b7; stroke-width: 3; }
.pt-sleeve { fill: #8fb3d6; stroke: #7aa0c4; stroke-width: 1.5; }
.pt-eyewhite { fill: #fff; }
.pt-pupil { fill: #2b3440; }
.pt-lid { fill: #e8c3a5; }
.pt-brow { fill: none; stroke: #6d5848; stroke-width: 2.6; stroke-linecap: round; transition: transform .2s; }
.pt-nose { fill: none; stroke: #c99e80; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-mouth { fill: none; stroke: #9c4f4f; stroke-width: 3; stroke-linecap: round; }
.pt-mouth.teeth { fill: #fff; }
.pt-finger rect { fill: #f0c9a8; stroke: #c99e80; stroke-width: 1; }
.pt-mark circle { stroke-width: 2.4; fill: rgba(11,15,22,.85); }
.pt-mark path { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pt-mark.ok circle, .pt-mark.ok path { stroke: var(--good); }
.pt-mark.no circle, .pt-mark.no path { stroke: var(--bad); }
.pt-bubble { position: absolute; top: 4%; left: 58%; max-width: 40%; background: #fff; color: #1a2230; padding: 8px 12px; border-radius: 12px 12px 12px 2px; font-size: 15px; line-height: 1.35; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.pt-bubble.slur { filter: blur(.55px); letter-spacing: .08em; font-style: italic; }
.pt-bubble.aph { color: #6b3f9e; }
.pt-tag { position: absolute; left: 12px; top: 10px; font-size: 22px; font-weight: 700; color: var(--warn); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .2s; }
.pt-tag.on { opacity: 1; }
.pt-side { position: absolute; left: 10px; right: 10px; bottom: 6px; display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); pointer-events: none; }
.pt-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pa { text-align: left; background: var(--panel); border: 1px dashed rgba(76,201,240,.45); border-radius: 8px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.3; min-height: 54px; }
.pa:hover:not(:disabled) { background: var(--panel2); border-color: var(--accent); }
.pa em { font-style: normal; color: var(--accent); font-size: 12.5px; }
.pa.seen { border-style: solid; border-color: var(--line); }
.pa.run { border-color: var(--warn); background: rgba(255,209,102,.1); }
.pa:disabled { cursor: progress; }
.find { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.fi { background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; padding: 6px 9px; font-size: 14px; line-height: 1.4; }
.fi b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
/* Messen im CT */
.meas-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.meas-ov line { stroke: var(--warn); stroke-width: 2; }
.meas-ov circle { fill: var(--warn); }
.meas-ov text { fill: var(--warn); font: 600 14px system-ui, sans-serif; paint-order: stroke; stroke: #000; stroke-width: 3px; }
.meas-l { display: flex; flex-wrap: wrap; gap: 10px; font-variant-numeric: tabular-nums; margin: 4px 0; }
.meas-l b { color: var(--warn); }
.toast.good { background: #15301f; border-color: rgba(61,220,151,.6); color: #d6ffe8; }
@media (max-width: 1100px) { .pt-wrap { grid-template-columns: 1fr; } }

/* Handy: kompakte Kopfzeile, größere Bildfläche, Werkzeugleiste in einer wischbaren Zeile */
@media (max-width: 760px) {
  #top { height: 96px; flex-wrap: wrap; align-content: center; padding: 4px 8px; gap: 4px 8px; }
  .brand { min-width: 0; }
  .brand b { font-size: 16px; }
  .top-r { gap: 8px; }
  .team { max-width: 120px; font-size: 13px; }
  .hud { order: 3; width: 100%; gap: 4px; }
  .hud-i { min-width: 0; flex: 1; padding: 2px 4px; }
  .hud-l { font-size: 8.5px; letter-spacing: .2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .hud-i b { font-size: 14px; white-space: nowrap; }
  #main { top: 96px; }
  body[data-page="start"] #main, body[data-page="lead"] #main, body[data-page="final"] #main { top: 56px; }
  body:not([data-page="play"]) #top { height: 56px; }
  #steps { top: 96px; height: 34px; padding: 0 8px; }
  .st { font-size: 12px; padding: 2px 6px 2px 2px; }
  .st-case { font-size: 12.5px; margin-right: 4px; }
  body[data-page="play"] #main { top: 130px; }
  #play { grid-template-rows: 58vh 1fr; }
  .play-l { padding: 12px 12px 40px; }
  .case-head h2 { font-size: 19px; }
  .vbar { left: 6px; right: 6px; bottom: 6px; flex-wrap: nowrap; overflow-x: auto; gap: 6px; -webkit-overflow-scrolling: touch; }
  .vb-g { flex: none; }
  .vb { padding: 7px 10px; font-size: 12.5px; white-space: nowrap; }
  .vb-h { display: none; }
  .board { padding: 10px; }
  .vit-strip > div { min-width: 0; padding: 4px 7px; }
  .vit-strip b { font-size: 13px; }
  .vit-strip span { font-size: 9px; }
  .pt-wrap { grid-template-columns: 1fr; gap: 8px; }
  .pt-host { max-width: 300px; margin: 0 auto; width: 100%; }
  .pt-acts { grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
  .pa { min-height: 46px; padding: 6px 7px; font-size: 12.5px; }
  .pa em { font-size: 11px; }
  .pt-bubble { font-size: 13px; left: 50%; max-width: 48%; }
  .monitor .mon-g { grid-template-columns: repeat(2, 1fr); }
  .mon-v b { font-size: 15px; }
  .res-big b { font-size: 36px; }
  .res-t td, .res-t th { padding: 5px 4px; font-size: 13.5px; }
  .code b { font-size: 20px; }
  .opt { padding: 10px 12px; }
}

/* Erklärungen: markierte Fachbegriffe, Erklärfenster, Glossar, „Kurz erklärt“ */
abbr.gl { text-decoration: underline dotted rgba(76,201,240,.75); text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: help; }
abbr.gl:hover, abbr.gl:focus { color: #fff; background: rgba(76,201,240,.14); border-radius: 3px; outline: none; }
.gpop { position: fixed; z-index: 70; background: #f4f7fb; color: #142030; border-radius: 10px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 14px; line-height: 1.45; }
.gpop b { font-size: 15px; }
.gpop p { margin: 4px 0 8px; }
.gpop .btn { background: #e1e8f0; color: #142030; border-color: #c8d3df; }
.glbtn { white-space: nowrap; }
.gl-in { max-width: 860px; }
.gl-head { justify-content: space-between; }
.gl-head h2 { margin: 0; }
.gl-head input { flex: 1; min-width: 160px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
#glList { margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.gl-i { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.gl-i dt { font-weight: 700; color: var(--accent); }
.gl-i dd { margin: 2px 0 0; color: #d7deea; }
.intro { background: rgba(76,201,240,.07); border: 1px solid rgba(76,201,240,.3); border-radius: var(--r); padding: 8px 12px; margin: 0 0 12px; }
.intro summary { cursor: pointer; font-weight: 650; color: var(--accent); }
.intro p { margin: 6px 0 2px; font-size: 14.5px; line-height: 1.5; color: #dbe3ee; }
.card.expl { margin-top: 10px; }
.asp-svg { width: 100%; height: auto; display: block; }
.asp-hemi { fill: #2a3546; stroke: #8d99ab; stroke-width: 1.2; }
.asp-m { fill: rgba(255,90,110,.16); stroke: #ff7a8a; stroke-width: 1; }
.asp-d { fill: rgba(255,209,102,.25); stroke: var(--warn); stroke-width: 1; }
.asp-ic { fill: none; stroke: #b197fc; stroke-width: 4; stroke-linecap: round; }
.asp-i { fill: none; stroke: #3ddc97; stroke-width: 4; stroke-linecap: round; }
.asp-t { fill: #fff; font: 700 13px system-ui, sans-serif; }
.asp-t.s { font-size: 11px; }
.asp-h { fill: var(--muted); font: 600 11.5px system-ui, sans-serif; text-anchor: middle; }
.asp-leg { font-size: 13px; color: #cfd7e3; line-height: 1.45; margin-top: 6px; }
.chip.nv { display: inline-flex; flex-direction: column; align-items: flex-start; border-radius: 10px; line-height: 1.25; }
.chip.nv small { color: var(--muted); font-size: 11.5px; }
.nv-full { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .glbtn { padding: 3px 7px; font-size: 12px; } }
