/* 13.2.3: Zufallseinsatz V2 – Monitor als Gerät, Einsatzszene, Team mit Daueraufgaben.
   Gilt nur für .simx.v2 – der bisherige Zufallseinsatz bleibt unverändert. */

/* ── Raster: PC = Gerät links, Szene + Team + Maßnahmen rechts ── */
.simx.v2 { grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.9fr); }
.s2-dev { min-width: 0; }
.s2-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; position: sticky; top: 64px; max-height: calc(100vh - 84px); }
.simx.v2 .s2-side .sim-dock { position: static; max-height: none; flex: 1 1 auto; min-height: 220px; }
.s2-side > .s2-scene, .s2-side > .s2-team { flex: 0 0 auto; }   /* Szene und Team nie zusammendrücken – nur die Maßnahmen scrollen */

/* ── Monitor-Gehäuse ── */
.c3-wrap { width: 100%; max-width: 820px; margin: 0 auto; }
.c3-wrap > .c3 { position: relative; }
.c3 { position: relative; overflow: hidden; container-type: inline-size; user-select: none; -webkit-user-select: none; }
.c3-img { position: absolute; inset: 0; background-repeat: no-repeat; pointer-events: none; }
.c3-screen { position: absolute; display: flex; flex-direction: column; background: #05080C; border-radius: 4px; overflow: hidden; container-type: inline-size; box-shadow: inset 0 0 0 1px #000; }
.c3-status { flex: 0 0 auto; display: flex; align-items: center; gap: 2cqw; padding: .5cqw 1.6cqw; background: #0B1520; color: #C9D3DE; font: 700 2.4cqw/1.25 var(--font-cond, sans-serif); border-bottom: 1px solid #16202B; }
.c3-status .id { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .c3-status .tm { font-family: var(--mono, monospace); } .c3-status .cn { opacity: .5; letter-spacing: -.1em; }
.c3-status.a3 { background: #D61F45; color: #fff; } .c3-status.a2 { background: #FFC23D; color: #000; } .c3-status.a1 { background: #2F6FE0; color: #fff; }
.c3-status.a3 .id { animation: mvBlink 1s steps(1) infinite; }
.c3-mid { flex: 1 1 auto; min-height: 0; position: relative; display: flex; flex-direction: column; }
.c3-defi { flex: 0 0 38%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: .4cqw 2cqw; align-items: center; padding: .8cqw 2cqw; background: #0E1A26; border-top: 2px solid #FF3B5C; color: #E6EEF6; }
.c3-defi[hidden] { display: none; }
.c3-dm { font: 800 3cqw var(--font-cond, sans-serif); color: #FF5C7A; letter-spacing: .06em; } .c3-dm .sync { color: #FFB020; }
.c3-dj { grid-row: 1 / span 2; grid-column: 2; justify-self: end; font: 800 9cqw/1 var(--mono, monospace); color: #fff; }
.c3-ds { font: 800 2.8cqw var(--font-cond, sans-serif); color: #9FB0C0; } .c3-ds.chg { color: #FFB020; } .c3-ds.ana { color: #6FA8FF; } .c3-ds.ready { color: #FF3B5C; animation: mvBlink .8s steps(1) infinite; }
.c3-dc { grid-column: 1; font-size: 2.1cqw; color: #9FB0C0; }
.c3-msg { flex: 0 0 auto; min-height: 3.6cqw; padding: .3cqw 1.6cqw; background: #0B1520; border-top: 1px solid #16202B; color: #FFD23F; font: 700 2.3cqw/1.4 var(--font-cond, sans-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c3-over { position: absolute; inset: 0; z-index: 3; background: #05080C; display: flex; flex-direction: column; padding: .8cqw; gap: .6cqw; }
.c3-over[hidden] { display: none; }
.c3-12h { display: flex; justify-content: space-between; color: #E6EEF6; font: 700 2.4cqw var(--font-cond, sans-serif); }
.c3-12 { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: .3cqw; min-height: 0; }
.c3-lead { position: relative; background: #0A1410; border: 1px solid #13261C; min-height: 0; } .c3-lead canvas { width: 100%; height: 100%; display: block; }
.c3-lead b { position: absolute; left: .6cqw; top: .2cqw; color: #3DFF7A; font: 700 2cqw var(--font-cond, sans-serif); }
.c3-12f { color: #FFD23F; font: 700 2.2cqw/1.3 var(--font-cond, sans-serif); }
.c3-soft.on { box-shadow: inset 0 0 0 2px var(--a1); }
.c3-body { flex: 1 1 auto; min-height: 0; position: relative; }
.c3-softbar { flex: 0 0 auto; position: relative; height: 4.4cqw; background: #0B1520; border-top: 1px solid #16202B; }
.c3-softbar span { position: absolute; top: 50%; transform: translate(-50%, -50%); color: #C9D3DE; font: 700 2.4cqw/1 var(--font-cond, sans-serif); white-space: nowrap; }

/* Monitor-Inhalt im Bildschirm: gleiche Bausteine wie bisher, nur in Gerätegröße */
.c3-body { flex: 1 1 auto; }
.c3-body .mon { position: static; height: 100%; border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
.c3-body .mon-waves { flex: 1 1 auto; min-height: 0; border-right: 0; }
.c3-body .mon-vals { order: -1; flex: 0 0 auto; flex-direction: row; padding: 0; border-bottom: 1px solid #16202B; }
.c3-body .mon-vals > .mv { flex: 1 1 0; min-width: 0; border-bottom: 0; border-right: 1px solid #101820; }
.c3-body .mon-vals > .mv-small { flex: 1.2 1 0; grid-template-columns: 1fr; border-right: 0; } .c3-body .mv-small .mv { border-right: 0; border-bottom: 1px solid #101820; padding: .1cqw .8cqw; flex-direction: row; gap: .8cqw; align-items: baseline; }
.c3-body .mon-row { min-height: 0; } .c3-body .mon-row.w-ekg { min-height: 0; flex-grow: 2; }
.c3-body .mon-lbl { font-size: 2.3cqw; left: 1.2cqw; top: .6cqw; } .c3-body .mon-lbl small { font-size: 1.8cqw; }
.c3-body .mon-off { font-size: 2cqw; }
.c3-body .mon-status { font-size: 2.1cqw; padding: .4cqw 1.4cqw; min-height: 0; }
.c3-body .mon-vals { padding: .4cqw 0; overflow: hidden; }
.c3-body .mv { padding: .35cqw 1.6cqw; column-gap: 1cqw; }
.c3-body .mv .k { font-size: 2.2cqw; } .c3-body .mv .u { font-size: 1.8cqw; } .c3-body .mv .s { font-size: 1.6cqw; }
.c3-body .mv .v { font-size: 5cqw; } .c3-body .mv-rr .v { font-size: 3.4cqw; } .c3-body .mv .s { display: none; }
.c3-body .mv-small .v { font-size: 2.4cqw; } .c3-body .mv-small .k, .c3-body .mv-small .u { font-size: 1.7cqw; }

/* Tasten über dem Gehäusebild */
.c3-key { position: absolute; padding: 0; margin: 0; background: transparent; border: 0; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: manipulation; }
.c3-key span { font: 800 max(7px, 1.25cqw)/1 var(--font-cond, sans-serif); color: #1A2230; letter-spacing: .02em; white-space: nowrap; pointer-events: none; }
.c3-key.k-manual span, .c3-key.k-power span { color: #fff; } .c3-key.k-alarm span, .c3-key.k-event span, .c3-key.k-back span, .c3-key.k-home span, .c3-key.k-print span { font-size: max(9px, 1.8cqw); }
.c3-key:hover { box-shadow: 0 0 0 2px var(--a1), 0 0 10px color-mix(in srgb, var(--a1) 60%, transparent); }
.c3-key:active { background: rgba(0, 0, 0, .22); transform: translateY(1px); }
.c3-key:focus-visible { outline: 2px solid var(--a1); outline-offset: 1px; }
.c3-shock { position: absolute; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; touch-action: manipulation; }
.c3-shock span { font-size: max(12px, 3cqw); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); pointer-events: none; }
.c3-shock:hover { box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(255, 59, 92, .7); }
.c3-shock:active { background: rgba(0, 0, 0, .2); }
.c3-shock.ready { animation: shockReady 1s ease-in-out infinite; }
@keyframes shockReady { 50% { box-shadow: 0 0 0 3px #fff, 0 0 26px 6px rgba(255, 59, 92, .9); } }

/* Drehknopf */
.nxk { position: absolute; border-radius: 50%; cursor: grab; touch-action: none; outline: none; }
.nxk.down { cursor: grabbing; }
.nxk-img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); }
.nxk.down .nxk-img { filter: brightness(.93) drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }
.nxk-ring { position: absolute; inset: -9%; border-radius: 50%; pointer-events: none; }
.nxk[data-alarm="high"] .nxk-ring { box-shadow: 0 0 0 3px #FF3B5C, 0 0 18px 4px rgba(255, 59, 92, .8); animation: ringBlink 1s steps(1) infinite; }
.nxk[data-alarm="low"] .nxk-ring { box-shadow: 0 0 0 3px #2F6FE0, 0 0 12px 2px rgba(47, 111, 224, .6); animation: ringBlink 2.4s steps(1) infinite; }
.nxk[data-alarm="warn"] .nxk-ring { animation: ringBlink 1.6s steps(1) infinite;  box-shadow: 0 0 0 3px #FFC23D, 0 0 14px 3px rgba(255, 194, 61, .6); }
.nxk:focus-visible .nxk-ring { box-shadow: 0 0 0 2px var(--a1); }

@keyframes ringBlink { 50% { opacity: .2; } }   /* Alarmleuchte im Drehrad: Blinkfrequenz steigt mit der Priorität */

/* ── Einsatzszene ── */
.s2-scene { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #05080C; border: 1px solid var(--line); }
.s2-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.s2-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 12, .35) 0%, transparent 30%, transparent 70%, rgba(5, 8, 12, .55) 100%); pointer-events: none; }
.s2-fig { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); max-width: none; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .6)); transition: opacity .3s; }
.s2-fig.lying { width: 64%; } .s2-fig.upright { height: 70%; }
.s2-fig.grey { filter: grayscale(.5) brightness(.78) drop-shadow(0 10px 10px rgba(0, 0, 0, .6)); }
.s2-cap { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(5, 8, 12, .78); color: #fff; font-size: 12px; font-weight: 700; }
.s2-cap[hidden] { display: none; }
.s2-chips { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.s2-chip { padding: 2px 7px; border-radius: 999px; background: rgba(5, 8, 12, .8); color: #E6EEF6; font-size: 11.5px; font-weight: 700; border: 1px solid rgba(255, 255, 255, .14); }
.s2-chip.bad { border-color: #FF3B5C; color: #FFB3C0; } .s2-chip.info { border-color: #6FA8FF; } .s2-chip.ok { border-color: #3DFFA2; }

/* ── Team ── */
.s2-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.s2-mem { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "av who" "av what" "ctl ctl"; column-gap: 8px; row-gap: 2px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px 7px; overflow: hidden; font-size: 12.5px; }
.s2-mem .av { grid-area: av; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 11px var(--font-cond, sans-serif); color: #001014; background: var(--a1); }
.s2-mem .who { grid-area: who; display: flex; gap: 6px; align-items: baseline; min-width: 0; } .s2-mem .who small { color: var(--ink-3); }
.s2-mem .what { grid-area: what; color: var(--ink-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2-mem .ctl { grid-area: ctl; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .s2-mem .ctl .btn { padding: 3px 8px; font-size: 11.5px; min-height: 0; }
.s2-mem .ctl .warnbtn { background: var(--warn); border-color: var(--warn); color: #000; animation: btnPulse 1.2s ease-in-out infinite; }
.s2-mem i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--a1); transition: width .4s linear; }
.s2-mem.free { cursor: pointer; } .s2-mem.free:hover { border-color: var(--a1); }
.s2-mem.busy .what, .s2-mem.hold .what { color: var(--ink); }
.s2-mem.hold .what { white-space: normal; }   /* Daueraufgabe mit AF-Anzeige nicht abschneiden */
.s2-mem.busy { border-color: var(--a1); }
.s2-mem.sel { border-color: var(--a1); box-shadow: 0 0 0 1px var(--a1); } .s2-mem.sel .what { color: var(--a1-ink, var(--a1)); }
.s2-mem.hold.k-cpr { border-color: var(--bad); } .s2-mem.hold.k-bvm, .s2-mem.hold.k-mask { border-color: var(--info); } .s2-mem.hold.k-hws { border-color: var(--warn); }
.s2-mem:nth-child(2) .av { background: var(--info); } .s2-mem:nth-child(3) .av { background: var(--ok); }
.sim-v2pre { margin-top: 14px; border-color: color-mix(in srgb, var(--a1) 45%, var(--line)); }

/* ── 13.2.7: helle Darstellung wie am corpuls3 (Standard); dunkel = „invertiert“ (Monitor 3 s halten) ── */
.c3-screen.light { background: #FFFFFF; }
.c3-screen.light .c3-status { background: #E7EBF0; color: #1A2230; border-bottom-color: #C9D1DB; }
.c3-screen.light .c3-status.a3 { background: #D61F45; color: #fff; } .c3-screen.light .c3-status.a2 { background: #FFC23D; color: #000; } .c3-screen.light .c3-status.a1 { background: #2F6FE0; color: #fff; }
.c3-screen.light .mon { background: #FFFFFF; color: #111418; }
.c3-screen.light .mon-row { border-bottom-color: #E3E7EC; } .c3-screen.light .mon-vals { border-bottom-color: #D5DBE2; }
.c3-screen.light .mon-vals > .mv { border-right-color: #E3E7EC; } .c3-screen.light .mv-small .mv { border-bottom-color: #E3E7EC; }
.c3-screen.light .w-ekg .mon-lbl { color: #111418; } .c3-screen.light .w-spo2 .mon-lbl { color: #1F63C6; } .c3-screen.light .w-etco2 .mon-lbl { color: #2A1F8F; }
.c3-screen.light .mv-hf { color: #111418; } .c3-screen.light .mv-spo2 { color: #1F63C6; } .c3-screen.light .mv-rr { color: #B3122E; } .c3-screen.light .mv-af, .c3-screen.light .mv-co2 { color: #2A1F8F; }
.c3-screen.light .mv-small .mv-bz { color: #9A5A00; } .c3-screen.light .mv-small .mv-temp { color: #B44A00; } .c3-screen.light .mv-small .mv-gcs { color: #333; }
.c3-screen.light .mv.alarm .v { animation: none; background: #D61F45; color: #fff; border-radius: 3px; padding: 0 .6cqw; }   /* invertiertes Parameterfeld bei Alarm */
.c3-screen.light .mon-off { color: #9AA4B0; } .c3-screen.light .mon-status { color: #44505E; border-top-color: #E3E7EC; }
.c3-screen.light .c3-msg { background: #F1F3F6; color: #8A4B00; border-top-color: #D5DBE2; }
.c3-screen.light .c3-softbar { background: #0D4FB3; border-top-color: #0D4FB3; } .c3-screen.light .c3-softbar span { color: #fff; }
.c3-screen.light .c3-defi { background: #F6F7F9; color: #111418; } .c3-screen.light .c3-dj { color: #111418; } .c3-screen.light .c3-dc, .c3-screen.light .c3-ds { color: #44505E; }
.c3-screen.light .c3-over { background: #FFFFFF; } .c3-screen.light .c3-12h { color: #111418; } .c3-screen.light .c3-lead { background: #FFF6F6; border-color: #F0D0D0; } .c3-screen.light .c3-lead b { color: #111418; } .c3-screen.light .c3-12f { color: #8A4B00; }
/* Pacer in der unteren Bildschirmhälfte */
.c3-dm.pacer { color: #1F9D55; }
.c3-pv { grid-row: 1 / span 2; grid-column: 2; justify-self: end; display: flex; gap: 2.4cqw; }
.c3-pv span { display: flex; flex-direction: column; align-items: flex-end; font: 800 6.4cqw/1 var(--mono, monospace); padding: .3cqw .8cqw; border-radius: 4px; }
.c3-pv small { font: 700 1.8cqw var(--font-cond, sans-serif); opacity: .75; } .c3-pv span.sel { outline: 2px solid #1F9D55; }
.c3-ds.cap { color: #1F9D55; }
/* Tastenfarben wie am Original: AED und Analyse rot, Manuell und Laden dunkelgrau */
.c3-key.k-aed, .c3-key.k-analyse { background: linear-gradient(#E8323F, #C21B28); border-radius: 5px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.c3-key.k-manual, .c3-key.k-charge { background: linear-gradient(#4A5059, #2F343B); border-radius: 5px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); }
.c3-key.k-aed span, .c3-key.k-analyse span, .c3-key.k-manual span, .c3-key.k-charge span { color: #fff; }
.c3-key.k-monitor.hold { box-shadow: 0 0 0 2px var(--a1); animation: ringBlink .5s steps(1) infinite; }

/* ── 13.2.8: Ausrüstungsbild im Maßnahmenknopf ── */
.simx.v2 .sim-btn .ic { width: 38px; height: 30px; object-fit: contain; align-self: flex-start; margin-bottom: 2px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }

/* ── 13.2.9: Transport – Szene abgedunkelt, Fahrtanzeige vorn ── */
.s2-scene.transport .s2-bg { object-position: center 45%; }   /* 13.3.0: RTW-Innenraum; 13.3.5: mit Patient:in auf der Trage */
.s2-scene.transport .s2-fig, .s2-scene.transport .s2-cap { display: none; }   /* Trage zeigt in die Tiefe – liegende Figuren sind seitlich gezeichnet */

/* ── 13.2.5: Gespräch ── */
.s2-say { position: absolute; left: 40%; top: 10px; transform: translateX(-50%); max-width: 70%; padding: 7px 11px; border-radius: 12px; background: rgba(250, 252, 255, .95); color: #0B1426; font-size: 13px; line-height: 1.3; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); z-index: 2; }
.s2-say::after { content: ''; position: absolute; left: 50%; bottom: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: rgba(250, 252, 255, .95); transform: translateX(-50%); }
.s2-say[hidden] { display: none; }
.s2-talk-note { margin: 0 0 8px; padding: 6px 9px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 14%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }
.s2-chat { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.s2-msg { display: flex; flex-direction: column; gap: 2px; padding: 6px 9px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 5%, var(--panel-solid)); border-left: 3px solid var(--info); font-size: 13px; }
.s2-msg .q { font-size: 11px; color: var(--ink-3); } .s2-msg.odd { border-left-color: var(--warn); } .s2-msg.witness { border-left-color: var(--ok); }

/* ── 13.2.4: Medumat ── */
.s2-mm { position: absolute; right: 8px; top: 8px; width: 23%; min-width: 74px; padding: 4px 4px 2px; border-radius: 10px; background: rgba(5, 8, 12, .55); border: 1px solid rgba(255, 255, 255, .18); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.s2-mm:hover { border-color: var(--a1); background: rgba(5, 8, 12, .75); }
.s2-mm img { width: 100%; height: auto; display: block; pointer-events: none; }
.s2-mm .t { font-size: 11px; font-weight: 800; color: #E6EEF6; }
.s2-mm .led { position: absolute; right: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #3A4654; }
.s2-mm.on .led { background: #3DFF7A; box-shadow: 0 0 8px #3DFF7A; }
.modal.wide:has(.mm-box) { max-width: min(980px, 96vw); width: 96vw; }
.mm-box { display: flex; flex-direction: column; gap: 10px; }
.mm-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mm-dev { position: relative; width: 100%; aspect-ratio: 1200 / 645; background-size: 100% 100%; background-repeat: no-repeat; container-type: inline-size; user-select: none; -webkit-user-select: none; }
.mm-screen { position: absolute; border-radius: 3px; box-shadow: inset 0 0 0 1px #000; }
.mm-key { position: absolute; padding: 0; margin: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; touch-action: manipulation; }
.mm-key span { font: 800 max(8px, 1.9cqw)/1.05 var(--font-cond, sans-serif); color: #233041; white-space: pre; text-align: center; pointer-events: none; }
.mm-key.mm-power span { font-size: max(14px, 3.6cqw); }
.mm-key:hover { box-shadow: 0 0 0 2px var(--a1), 0 0 10px color-mix(in srgb, var(--a1) 60%, transparent); }
.mm-key:active { background: rgba(0, 0, 0, .15); transform: translateY(1px); }
.mm-led { position: absolute; border-radius: 50%; background: #4A5462; }
.mm-led.on { background: #3DFF7A; box-shadow: 0 0 6px #3DFF7A; }
.mm-light { position: absolute; border-radius: 4px; pointer-events: none; }
.mm-light.red { background: rgba(255, 40, 60, .75); box-shadow: 0 0 18px 6px rgba(255, 40, 60, .7); animation: mvBlink 1s steps(1) infinite; }
.mm-under { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mm-trig { display: inline-flex; align-items: center; gap: 8px; }
.mm-trig .led { width: 10px; height: 10px; border-radius: 50%; background: #3A4654; }
.mm-trig.ready { border-color: #3DFF7A; } .mm-trig.ready .led { background: #3DFF7A; box-shadow: 0 0 8px #3DFF7A; animation: mvBlink 1s steps(1) infinite; }
.mm-hint { margin: 0; flex: 1; min-width: 200px; }
.mm-big { display: none; width: 100%; aspect-ratio: 384 / 243; border-radius: 6px; box-shadow: 0 0 0 2px #1C2733; }

/* ── Handy & Tablet: Kopf, Szene, Team, Gerät untereinander; Maßnahmen als Leiste unten ── */
@media (max-width: 900px) {
  .simx.v2 { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }   /* stretch: sonst schrumpfen Szene und Gerät auf 0 Breite */
  .simx.v2 .s2-stage, .simx.v2 .s2-side { display: contents; }
  .simx.v2 .sim-head { order: 1; } .simx.v2 .s2-scene { order: 2; aspect-ratio: auto; height: 150px; }
  .simx.v2 .s2-team { order: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .simx.v2 .s2-dev { order: 4; } .simx.v2 .sim-cond { order: 5; } .simx.v2 .sim-feed { order: 6; }
  .simx.v2 .s2-side .sim-dock { position: fixed; min-height: 0; }
  .s2-mem { font-size: 12px; padding: 5px 7px 6px; }
  .s2-fig.lying { width: 46%; } .s2-fig.upright { height: 78%; }
  .c3-key span { font-size: max(6px, 1.25cqw); }
  /* Tragegriff und Fuß abschneiden – spart am Handy ein Viertel der Höhe (Prozent beziehen sich auf die Breite) */
  .c3-wrap { overflow: hidden; } .c3 { margin: -19% 0 -5%; }
  .s2-mm { width: 26%; min-width: 64px; } .s2-mm .t { font-size: 10px; }
  .s2-say { max-width: 64%; font-size: 12px; left: 38%; }
  .modal.wide:has(.mm-box) { padding: 10px; }
  .mm-big { display: block; } .mm-hint { font-size: 11.5px; }
}

/* 13.3.3 corpuls3: Ansichten, Trend, Hauptmenü */
.c3-body[data-view="big"] .mon-waves { flex: 0 0 34%; }
.c3-body[data-view="big"] .mon-row:not(.w-ekg), .c3-body[data-view="big"] .mon-status { display: none; }
.c3-body[data-view="big"] .mon-vals { flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, 1fr); align-content: stretch; }
.c3-body[data-view="big"] .mon-vals > .mv { border-bottom: 1px solid #101820; justify-content: center; }
.c3-body[data-view="big"] .mv .v { font-size: 9cqw; } .c3-body[data-view="big"] .mv-rr .v { font-size: 6cqw; }
.c3-body[data-view="big"] .mv .k { font-size: 2.8cqw; } .c3-body[data-view="big"] .mv .u { font-size: 2.2cqw; }
.c3-body[data-view="big"] .mv-small .v { font-size: 3.2cqw; }
.c3-body[data-view="waves"] .mon-vals > .mv-small { display: none; }
.c3-body[data-view="waves"] .mv .v { font-size: 3.2cqw; } .c3-body[data-view="waves"] .mv-rr .v { font-size: 2.6cqw; }
.c3-body[data-view="waves"] .mv .k { font-size: 1.8cqw; }
.c3-trempty { flex: 1; display: grid; place-items: center; color: #9FB0C0; font: 700 2.4cqw var(--font-cond, sans-serif); text-align: center; }
.c3-trw { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: .4cqw; }
.c3-trp { flex: 1 1 0; min-height: 0; display: flex; gap: 1cqw; align-items: stretch; border-bottom: 1px solid #16202B; }
.c3-trl { flex: 0 0 16cqw; display: flex; flex-direction: column; justify-content: center; font: 700 2cqw/1.2 var(--font-cond, sans-serif); }
.c3-trl b { font-size: 2.4cqw; } .c3-trl small { font-size: 1.5cqw; opacity: .6; }
.c3-trg { flex: 1 1 auto; min-width: 0; position: relative; }
.c3-trg svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.c3-trg .grid line { stroke: #22303D; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.c3-trg .ln polyline, .c3-trg .ln line { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.c3-trg .ln circle { fill: currentColor; }
.c3-trp.tr-hr { color: #3DFF7A; } .c3-trp.tr-spo2 { color: #29F0FF; } .c3-trp.tr-nibp { color: #FF5C7A; } .c3-trp.tr-co2 { color: #FFD23F; }
.c3-trx { display: flex; justify-content: space-between; padding-left: 17cqw; color: #9FB0C0; font: 600 1.6cqw var(--mono, monospace); }
.c3-trtab { flex: 1 1 auto; min-height: 0; overflow: auto; }
.c3-trtab table { width: 100%; border-collapse: collapse; color: #E6EEF6; font: 600 2.1cqw/1.3 var(--mono, monospace); }
.c3-trtab th { text-align: right; color: #9FB0C0; font: 700 1.9cqw var(--font-cond, sans-serif); padding: .2cqw 1cqw; border-bottom: 1px solid #22303D; }
.c3-trtab td { text-align: right; padding: .15cqw 1cqw; border-bottom: 1px solid #101820; }
.c3-trtab th:first-child, .c3-trtab td:first-child { text-align: left; }
.c3-mm { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: .2cqw; }
.c3-mmi { padding: .55cqw 1.6cqw; color: #E6EEF6; font: 700 2.9cqw/1.25 var(--font-cond, sans-serif); border-radius: 3px; cursor: pointer; }
.c3-mmi.sel { background: #0D4FB3; color: #fff; }
.c3-mmi:hover:not(.sel) { background: rgba(255, 255, 255, .08); }
.c3-screen.light .c3-body[data-view="big"] .mon-vals > .mv { border-bottom-color: #E3E7EC; }
.c3-screen.light .c3-trempty, .c3-screen.light .c3-trx { color: #44505E; }
.c3-screen.light .c3-trp { border-bottom-color: #E3E7EC; }
.c3-screen.light .c3-trg .grid line { stroke: #D5DBE2; }
.c3-screen.light .c3-trp.tr-hr { color: #111418; } .c3-screen.light .c3-trp.tr-spo2 { color: #1F63C6; } .c3-screen.light .c3-trp.tr-nibp { color: #B3122E; } .c3-screen.light .c3-trp.tr-co2 { color: #2A1F8F; }
.c3-screen.light .c3-trtab table { color: #111418; } .c3-screen.light .c3-trtab th { color: #44505E; border-bottom-color: #C9D1DB; } .c3-screen.light .c3-trtab td { border-bottom-color: #E3E7EC; }
.c3-screen.light .c3-mmi { color: #111418; } .c3-screen.light .c3-mmi:hover:not(.sel) { background: #EEF1F5; } .c3-screen.light .c3-mmi.sel { color: #fff; }
/* 13.3.3: kleiner Gerätebildschirm (Handy) – Menü, Trend und Tabelle größer, Inhalt scrollt im Bildschirm */
@container (max-width: 320px) {
  .c3-12h { font-size: 3.6cqw; }
  .c3-mmi { font-size: 4.6cqw; padding: .8cqw 2cqw; }
  .c3-trtab table { font-size: 3.8cqw; } .c3-trtab th { font-size: 3.4cqw; }
  .c3-trl { flex-basis: 20cqw; font-size: 3cqw; } .c3-trl b { font-size: 3.4cqw; } .c3-trl small { display: none; }
  .c3-trx { padding-left: 21cqw; font-size: 2.8cqw; }
  .c3-trempty { font-size: 3.6cqw; }
}

/* 13.4.0 Phase 6: Auswertung – Zeitstrahl, Auslastung, SINNHAFT */
.ev-sec { margin: 14px 0; }
.ev-tl { display: flex; flex-direction: column; gap: 6px; }
.ev-lane, .ev-util { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: center; }
.ev-util { grid-template-columns: 120px 1fr 48px; }
.ev-who { font-size: .85rem; color: var(--muted, #9aa); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-bar, .ev-ubar { position: relative; height: 16px; border-radius: 4px; background: color-mix(in srgb, var(--a1, #d4af37) 10%, transparent); overflow: hidden; }
.ev-seg { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: var(--a1, #d4af37); opacity: .85; }
.ev-seg:hover { opacity: 1; outline: 1px solid #fff; }
.ev-ubar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #3dffa2, #f2c66d 70%, #ff4d6a); }
.ev-marks { position: relative; height: 10px; margin-left: 128px; }
.ev-mark { position: absolute; top: 0; width: 2px; height: 10px; background: #ff4d6a; }
.ev-axis { display: flex; justify-content: space-between; margin-left: 128px; font: 600 .75rem var(--mono, monospace); color: var(--muted, #9aa); }
.ev-hints ul { margin: 0; padding-left: 18px; } .ev-hints li { margin: 4px 0; }
.ev-sinn { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; }
.ev-sinn dt { white-space: nowrap; } .ev-sinn dt b { color: var(--a1, #d4af37); } .ev-sinn dd { margin: 0; }
@media (max-width: 560px) {
  .ev-lane, .ev-util { grid-template-columns: 78px 1fr; } .ev-util { grid-template-columns: 78px 1fr 40px; }
  .ev-marks, .ev-axis { margin-left: 86px; }
  .ev-sinn { grid-template-columns: 1fr; } .ev-sinn dd { margin-bottom: 6px; }
}

/* ════════ 13.4.1: Zufallseinsatz V2 neu – Bühne, Behandlungspfad, Rucksack (Nachtblau + Champagner-Gold) ════════
   Ein prägendes Element: der Behandlungspfad (goldener Faden mit Medaillons). Alles andere ruhig. */
.simx.v2.nx2 {
  --n-bg: #0C1424; --n-p1: #111C30; --n-p2: #172440; --n-gold: #C8A55A; --n-gold2: #E9CF8E; --n-ivory: #ECE4D2; --n-mute: #8E9AB0;
  --n-red: #E04A5F; --n-blue: #5A93F0; --n-green: #4CC38A; --n-violet: #A98BF0; --n-line: rgba(200, 165, 90, .22);
  --n-cond: 'Saira Condensed', 'Bahnschrift SemiCondensed', 'Arial Narrow', sans-serif; --n-text: 'Saira', 'Segoe UI', system-ui, sans-serif;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); grid-template-areas: "head head" "main side"; gap: 14px; align-items: start;
  font-family: var(--n-text); color: var(--n-ivory);
}
.simx.v2.nx2 > .sim-head { grid-area: head; }
.simx.v2.nx2 > .n-main { grid-area: main; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.simx.v2.nx2 > .n-side { grid-area: side; position: sticky; top: 64px; min-width: 0; }

/* Kopfzeile: Name groß, Rest leise */
.simx.v2.nx2 .sim-head { flex-direction: row; align-items: center; gap: 16px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--n-line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--n-red) 9%, var(--n-p1)), var(--n-p1) 30%, var(--n-p1) 70%, color-mix(in srgb, var(--n-blue) 9%, var(--n-p1))); }
.simx.v2.nx2 .sim-pat { flex: 1; min-width: 0; }
.simx.v2.nx2 .sim-pat > b { font: 700 1.35rem/1.15 var(--n-cond); letter-spacing: .01em; color: var(--n-ivory); }
.simx.v2.nx2 .sim-alarm { color: var(--n-gold2); font-size: .85rem; }
.simx.v2.nx2 .sim-scene summary { color: var(--n-mute); font-size: .85rem; }
.simx.v2.nx2 .sim-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.simx.v2.nx2 .sim-clock { font: 700 1.6rem/1 var(--n-cond); color: var(--n-gold2); font-variant-numeric: tabular-nums; }

/* Bühne: Patient oder Monitor */
.n-stage { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--n-line); background: #070C17; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9); }
.n-view { position: absolute; z-index: 6; left: 12px; top: 12px; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(7, 12, 23, .78); border: 1px solid var(--n-line); backdrop-filter: blur(6px); }
.n-view button { border: 0; background: transparent; color: var(--n-mute); font: 700 .85rem var(--n-cond); padding: 5px 14px; border-radius: 999px; cursor: pointer; }
.n-view button[aria-selected="true"] { background: var(--n-gold); color: #1A1406; }
.n-view button:focus-visible { outline: 2px solid var(--n-gold2); outline-offset: 1px; }
.n-stage .s2-scene { border: 0; border-radius: 0; aspect-ratio: 16 / 9; }
.n-stage .n-mon { display: none; padding: 52px 10px 10px; background: radial-gradient(120% 90% at 50% 0%, #15233D 0%, #070C17 70%); }
.n-stage[data-view="mon"] .s2-scene { display: none; }
.n-stage[data-view="mon"] .n-mon { display: block; }
.n-stage .n-mon .c3-wrap { max-width: 760px; }
.n-stage .s2-mm { top: 12px; right: 12px; }

/* Messwerte über dem Patienten – Monitorfarben, ruhig */
.n-hud { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; pointer-events: none; }
.n-v { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; padding: 6px 10px 5px; border-radius: 10px; background: rgba(7, 12, 23, .74); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .08); }
.n-v small { grid-column: 1 / -1; font: 600 .72rem var(--n-text); color: var(--n-mute); }
.n-v b { font: 700 1.55rem/1 var(--n-cond); font-variant-numeric: tabular-nums; } .n-v i { font-style: normal; align-self: end; font-size: .7rem; color: var(--n-mute); padding-bottom: 2px; }
.n-hf b { color: #47E58A; } .n-sp b { color: #4FD8F0; } .n-rr b { color: #FF7A8E; } .n-af b, .n-co b { color: #F2CF5B; }
.n-v.none b { color: #4A566C; } .n-v.bad { border-color: var(--n-red); background: rgba(68, 14, 24, .82); } .n-v.bad b { color: #FFD3DA; }
.n-stage .s2-chips { top: 56px; bottom: auto; left: 12px; right: auto; max-width: 60%; }
.n-stage .s2-scene.transport .n-hs { display: none; }

/* Körperstellen: kleine goldene Punkte, Antippen öffnet die passenden Maßnahmen */
.n-hs { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.n-dot, .n-hsw { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; }
.n-hsw > .n-dot { position: static; transform: none; }
.n-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--n-gold2); background: rgba(200, 165, 90, .28); cursor: pointer; padding: 0; box-shadow: 0 0 0 4px rgba(200, 165, 90, .14), 0 2px 8px rgba(0, 0, 0, .6); }
.n-dot span { position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; font: 700 .72rem var(--n-cond); color: var(--n-ivory); text-shadow: 0 1px 3px #000; opacity: 0; transition: opacity .15s; pointer-events: none; }
.n-dot:hover span, .n-dot:focus-visible span, .n-dot.open span { opacity: 1; }
.n-dot.open, .n-dot:hover { background: var(--n-gold); }
.n-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.n-pop { position: absolute; left: 34px; top: -10px; min-width: 210px; display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 12px; background: rgba(13, 21, 38, .96); border: 1px solid var(--n-gold); box-shadow: 0 14px 30px rgba(0, 0, 0, .6); }
.n-pop.left { left: auto; right: 34px; }
.n-pop > b { font: 700 .95rem var(--n-cond); color: var(--n-gold2); margin-bottom: 2px; }
.n-pop-i { display: flex; justify-content: space-between; gap: 10px; text-align: left; border: 1px solid transparent; background: rgba(255, 255, 255, .04); color: var(--n-ivory); font: 500 .86rem var(--n-text); padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.n-pop-i:hover:not(:disabled) { border-color: var(--n-gold); background: rgba(200, 165, 90, .12); }
.n-pop-i i { font-style: normal; color: var(--n-green); font-weight: 700; } .n-pop-i.busy i { color: var(--n-gold2); } .n-pop-i:disabled { opacity: .45; cursor: default; }

/* Team als ruhige Leiste unter der Bühne */
.simx.v2.nx2 .s2-team { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.simx.v2.nx2 .s2-mem { flex: 1 0 180px; background: var(--n-p1); border-color: rgba(255, 255, 255, .07); border-radius: 12px; }
.simx.v2.nx2 .s2-mem .av { background: var(--n-gold); color: #1A1406; font-family: var(--n-cond); }
.simx.v2.nx2 .s2-mem:nth-child(2) .av { background: var(--n-blue); color: #04122A; }
.simx.v2.nx2 .s2-mem i { background: var(--n-gold); }
.simx.v2.nx2 .sim-cond, .simx.v2.nx2 .sim-feed { background: var(--n-p1); border-color: rgba(255, 255, 255, .07); border-radius: 12px; }

/* Rucksack: Pfad links, Fächer rechts, „Griffbereit“ unten */
.simx.v2.nx2 .n-side .sim-dock { position: static; display: grid; grid-template-columns: 74px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "rail pane" "rail quick";
  height: calc(100vh - 96px); max-height: none; padding: 0; gap: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--n-line);
  background: linear-gradient(180deg, var(--n-p2), var(--n-p1)); }
.simx.v2.nx2 .sim-dock > .sim-grip { display: none; }
.simx.v2.nx2 .sim-dock > .sim-tabs { grid-area: rail; }
.simx.v2.nx2 .sim-dock > .sim-pane { grid-area: pane; overflow-y: auto; padding: 14px 14px 18px; scrollbar-width: thin; }
.simx.v2.nx2 .sim-dock > .sim-quick { grid-area: quick; padding: 10px 12px 12px; border-top: 1px solid var(--n-line); background: rgba(7, 12, 23, .35); }

/* Der Behandlungspfad – das prägende Element */
.simx.v2.nx2 .sim-tabs { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; overflow-y: auto; overflow-x: hidden; border: 0; border-right: 1px solid var(--n-line); background: rgba(7, 12, 23, .45); scrollbar-width: none; }
.simx.v2.nx2 .sim-tabs::before { content: ''; position: absolute; left: 50%; top: 30px; height: calc(var(--rail-h, 62%)); width: 2px; transform: translateX(-50%); background: rgba(200, 165, 90, .18); }
.simx.v2.nx2 .sim-tabs::after { content: ''; position: absolute; left: 50%; top: 30px; width: 2px; height: calc(var(--rail-h, 62%) * var(--prog-f, 0)); transform: translateX(-50%); background: linear-gradient(var(--n-gold2), var(--n-gold)); box-shadow: 0 0 10px rgba(233, 207, 142, .6); }
.n-step { position: relative; z-index: 1; width: 52px; height: 52px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(200, 165, 90, .35); background: #0D1628; color: var(--n-mute); padding: 0; transition: border-color .15s, background .15s; }
.n-step b { font: 800 1.35rem/1 var(--n-cond); }
.n-step small { font: 600 .56rem/1.1 var(--n-text); margin-top: 1px; max-width: 48px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n-step.wide b { font-size: .95rem; }
.n-step:hover { border-color: var(--n-gold); color: var(--n-ivory); }
.n-step.seen { border-color: var(--n-gold); color: var(--n-gold2); background: radial-gradient(circle at 50% 35%, #2A2412, #0D1628 70%); }
.n-step.bad::after { content: ''; position: absolute; right: 1px; top: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--n-red); box-shadow: 0 0 0 2px #0D1628, 0 0 8px var(--n-red); }
.n-step.on { background: var(--n-gold); border-color: var(--n-gold2); color: #1A1406; box-shadow: 0 0 0 4px rgba(200, 165, 90, .18), 0 6px 16px rgba(0, 0, 0, .5); }
.n-step.rea { border-color: var(--n-red); color: #fff; background: var(--n-red); animation: btnPulse 1.2s ease-in-out infinite; }
.n-step:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.n-railsep { width: 28px; height: 1px; margin: 6px 0; background: var(--n-line); flex: 0 0 auto; }
.n-step.view { width: 60px; height: 34px; border-radius: 10px; }
.n-step.view small { font-size: .66rem; max-width: 56px; } .n-step.view.dot::after { content: ''; position: absolute; right: -2px; top: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--n-gold2); }

/* Fächer: farbiger Streifen je Fach, Überschrift in normaler Schreibweise */
.simx.v2.nx2 .sim-sec { --fach: var(--n-gold); position: relative; padding-left: 12px; }
.simx.v2.nx2 .sim-sec::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 3px; background: var(--fach); opacity: .85; }
.simx.v2.nx2 .sim-sec h4 { text-transform: none; letter-spacing: 0; font: 700 1rem var(--n-cond); color: var(--fach); margin-bottom: 8px; }
.simx.v2.nx2 .sim-sec[data-g="Atmung"], .simx.v2.nx2 .sim-sec[data-g="Belüftung"] { --fach: var(--n-blue); }
.simx.v2.nx2 .sim-sec[data-g="Kreislauf"], .simx.v2.nx2 .sim-sec[data-g="Reanimation"], .simx.v2.nx2 .sim-sec[data-g="Kritische Blutung"] { --fach: var(--n-red); }
.simx.v2.nx2 .sim-sec[data-g="Exposure"], .simx.v2.nx2 .sim-sec[data-g="Lagerung"], .simx.v2.nx2 .sim-sec[data-g="Immobilisation"], .simx.v2.nx2 .sim-sec[data-g="Rettung"] { --fach: var(--n-green); }
.simx.v2.nx2 .sim-sec[data-g="Medikamente"] { --fach: var(--n-violet); }
.simx.v2.nx2 .sim-sec[data-g="Organisation"], .simx.v2.nx2 .sim-sec[data-g="Geburt"], .simx.v2.nx2 .sim-sec[data-g="Basismaßnahmen"] { --fach: var(--n-ivory); }
.simx.v2.nx2 .sim-sec + .sim-sec { margin-top: 18px; }
.simx.v2.nx2 .sim-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.simx.v2.nx2 .sim-btn { min-height: 52px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .035); color: var(--n-ivory); font: 600 .88rem/1.2 var(--n-text); padding: 8px 10px; }
.simx.v2.nx2 .sim-btn:hover:not(:disabled) { border-color: var(--fach, var(--n-gold)); background: color-mix(in srgb, var(--fach, var(--n-gold)) 12%, transparent); }
.simx.v2.nx2 .sim-btn .d { color: var(--n-mute); font-size: .72rem; }
.simx.v2.nx2 .sim-btn.on { border-color: rgba(76, 195, 138, .45); }
.simx.v2.nx2 .sim-btn.busy { border-color: var(--n-gold); }
.simx.v2.nx2 .sim-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.simx.v2.nx2 .sim-quick .sim-btn { min-height: 40px; font-size: .8rem; background: rgba(200, 165, 90, .08); }

/* Tablet und Handy: Bühne oben, Pfad waagrecht über den Fächern, Rucksack als Blatt von unten */
@media (max-width: 1100px) {
  .simx.v2.nx2 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "main" "side"; }
  .simx.v2.nx2 > .n-side { position: static; }
}
@media (max-width: 900px) {
  .simx.v2.nx2 { display: flex; flex-direction: column; gap: 8px; }
  .simx.v2.nx2 .sim-head { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 12px; }
  .simx.v2.nx2 .sim-ctl { justify-content: space-between; }
  .simx.v2.nx2 .sim-pat > b { font-size: 1.15rem; }
  .n-stage .s2-scene { aspect-ratio: 4 / 3; height: auto; }
  .n-stage .n-mon { padding: 48px 4px 6px; }
  .n-hud { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; left: 6px; right: 6px; bottom: 6px; }
  .n-v { padding: 4px 5px 3px; border-radius: 8px; } .n-v b { font-size: 1.05rem; } .n-v small { font-size: .6rem; } .n-v i { display: none; }
  .n-dot { width: 30px; height: 30px; }
  .n-pop { min-width: 190px; }
  .simx.v2.nx2 .s2-mem { flex-basis: 160px; }
  .simx.v2.nx2 .n-side .sim-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: auto; max-height: 70vh; border-radius: 18px 18px 0 0;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: "grip" "rail" "quick" "pane"; }
  .simx.v2.nx2 .sim-dock > .sim-grip { display: block; grid-area: grip; }
  .simx.v2.nx2 .sim-dock:not(.open) > .sim-pane, .simx.v2.nx2 .sim-dock:not(.open) > .sim-quick { display: none; }
  .simx.v2.nx2 .sim-tabs { flex-direction: row; justify-content: flex-start; padding: 6px 10px 8px; border-right: 0; border-bottom: 1px solid var(--n-line); overflow-x: auto; overflow-y: hidden; gap: 6px; }
  .simx.v2.nx2 .sim-tabs::before, .simx.v2.nx2 .sim-tabs::after { display: none; }
  .n-step { width: 44px; height: 44px; } .n-step b { font-size: 1.1rem; } .n-step small { display: none; } .n-step.wide b { font-size: .8rem; }
  .n-step.view { width: auto; height: 34px; padding: 0 10px; } .n-step.view small { display: block; font-size: .7rem; max-width: none; }
  .n-railsep { width: 1px; height: 26px; margin: 0 2px; }
  .simx.v2.nx2 .sim-dock > .sim-pane { padding: 10px 12px 18px; }
  .simx.v2.nx2 .sim-quick .sim-btn { min-height: 36px; }
  .simx.v2.nx2 .n-main { padding-bottom: 140px; }   /* Platz für das Rucksack-Blatt */
}
@media (prefers-reduced-motion: reduce) { .n-step.rea { animation: none; } }
/* 13.4.1 Feinschliff nach den ersten Aufnahmen */
.simx.v2.nx2 > .sim-head { order: 0; } .simx.v2.nx2 > .n-main { order: 1; } .simx.v2.nx2 > .n-side { order: 2; }
.simx.v2.nx2 .sim-head .sim-pat { order: 0; } .simx.v2.nx2 .sim-head .sim-ctl { order: 1; }
.simx.v2.nx2 .n-stage .s2-scene { height: auto; aspect-ratio: 16 / 9; }
.n-stage > .n-hud { position: static; padding: 8px; background: linear-gradient(180deg, #0B1324, #0C1424); border-top: 1px solid var(--n-line); }
.n-stage[data-view="mon"] > .n-hud { display: none; }
.n-pop.up { top: auto; bottom: -10px; }
.n-pop { max-height: 70vh; overflow: auto; }
@media (max-width: 900px) {
  .simx.v2.nx2 .n-stage .s2-scene { aspect-ratio: 4 / 3; height: auto; }
  .n-stage > .n-hud { padding: 5px; }
  .n-pop { min-width: 170px; left: 30px; } .n-pop.left { right: 30px; }
}
