/* =========================================================
   NYNEX · SPEEDTEST – Ergänzungen zum nynex.de-Design (style.css)
   Bühne mit Warp-Tunnel, Tacho, Messwerte, Live-Kurve, Ergebnis-Platten,
   Verbindungsdaten, Code-Blöcke. Orange nur als Emission, Headlines weiß ohne Glühen.
   ========================================================= */

/* ---------- Bühne ---------- */
.stage {
  --energy: 0;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--top-h) + clamp(14px, 3vh, 34px)) var(--pad) max(150px, calc(9vw + 70px));
  text-align: center;
}
.stage__warp { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; display: block; background: #000; }
.stage__horizon {   /* Planetenkante wie nynex.de; glüht mit dem Tempo */
  position: absolute; left: 50%; bottom: 0; z-index: -1;
  width: max(100%, 1100px); aspect-ratio: 1600 / 600; transform: translateX(-50%);
  background: url("horizon.svg") center bottom / 100% 100% no-repeat; pointer-events: none;
  filter: brightness(calc(1 + var(--energy) * 0.9)) saturate(calc(1 + var(--energy) * 0.3));
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
}
.stage::after {   /* Abdunklung unten, damit der Inhalt lesbar bleibt */
  content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
}
.stage__in { position: relative; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.stage__kick { margin-bottom: clamp(8px, 2vh, 20px); }
.js .stage__in > * { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--k, 0) * 0.12s); }
.rm .stage__in > * { animation: none; }

/* Geteiltes Ergebnis */
.shared { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin: 0 0 16px; padding: 8px 10px 8px 18px; border-radius: 30px; background: rgba(0, 0, 0, 0.66); box-shadow: inset 0 0 0 1px rgba(255, 178, 63, 0.3); font-size: 0.85rem; color: var(--ink-2); }
.shared__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* ---------- Tacho ---------- */
.gauge { position: relative; width: min(440px, 84vw); aspect-ratio: 1; margin: 0 auto; }
.gauge__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gauge__track { fill: none; stroke: rgba(247, 241, 234, 0.1); stroke-width: 14; stroke-linecap: round; }
.gauge__val { fill: none; stroke: url(#g-arc); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 0 1000; transition: opacity 0.4s; }
.gauge[data-phase="up"] .gauge__val { stroke: #ffb23f; }
.gauge__tip { fill: #fff3e0; opacity: 0; transition: opacity 0.3s; }
.gauge[data-phase="down"] .gauge__tip, .gauge[data-phase="up"] .gauge__tip { opacity: 1; }
.gauge__inner { fill: rgba(0, 0, 0, 0.72); stroke: rgba(255, 178, 63, 0.18); stroke-width: 1; }
.gauge__ticks line { stroke: rgba(247, 241, 234, 0.35); stroke-width: 2; stroke-linecap: round; }
.gauge__ticks line.minor { stroke: rgba(247, 241, 234, 0.14); stroke-width: 1; }
.gauge__ticks text { fill: var(--ink-3); font: 400 13px/1 var(--f-house); letter-spacing: 0.04em; }
.gauge__core { position: absolute; inset: 0; display: grid; place-items: center; }
.gauge__read { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; transform: scale(0.92); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); pointer-events: none; }
.gauge__phase { font: 700 0.7rem/1 var(--f-display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); min-height: 1em; }
.gauge__num { font: 700 clamp(2.8rem, 10vw, 4.9rem)/1 var(--f-house); letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.gauge__unit { font: 400 0.85rem/1 var(--f-house); letter-spacing: 0.08em; color: var(--ink-2); }
.gauge:not([data-phase="idle"]) .gauge__read { opacity: 1; transform: none; }

/* Startknopf */
.go {
  grid-area: 1 / 1; position: relative; width: 168px; height: 168px; border-radius: 50%;
  border: 2px solid var(--orange); background: radial-gradient(circle at 50% 40%, rgba(255, 110, 20, 0.35), rgba(255, 91, 0, 0.08) 60%, rgba(0, 0, 0, 0.6));
  color: #fff; font: 700 1.35rem/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 0 40px rgba(255, 91, 0, 0.55), inset 0 0 30px rgba(255, 110, 20, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, opacity 0.4s, background-color 0.3s;
}
.go:hover { transform: scale(1.05); box-shadow: 0 0 60px rgba(255, 91, 0, 0.8), inset 0 0 40px rgba(255, 140, 40, 0.5); }
.go:active { transform: scale(0.97); }
.go:focus-visible { outline-offset: 6px; border-radius: 50%; }
.go__ring { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255, 140, 40, 0.8); animation: goRing 2.4s var(--ease) infinite; pointer-events: none; }
.go__ring::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid rgba(255, 178, 63, 0.5); animation: goRing 2.4s var(--ease) 1.2s infinite; }
@keyframes goRing { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.55); opacity: 0; } }
.rm .go__ring, .rm .go__ring::after { animation: none; opacity: 0; }
.gauge:not([data-phase="idle"]):not([data-phase="done"]) .go { opacity: 0; transform: scale(0.6); pointer-events: none; }
.gauge[data-phase="done"] .gauge__read { opacity: 0; }
.gauge[data-phase="done"] .go { width: 132px; height: 132px; font-size: 0.82rem; }
.gauge[data-phase="shared"] .go { display: none; }
.gauge[data-phase="shared"] .gauge__read { opacity: 1; transform: none; }
/* nynex/fiberONE: nach der Messung bleibt das Ergebnis im Tacho stehen, „Nochmal“ wird eine schmale Pille darunter
   (vorher lag der große Knopf über der Zahl, die nur noch durchschimmerte) */
:root:is([data-mode="nynex"], [data-mode="fiberone"]) .gauge[data-phase="done"] .gauge__read { opacity: 1; transform: translateY(-16px); }
:root:is([data-mode="nynex"], [data-mode="fiberone"]) .gauge[data-phase="done"] .go {
  align-self: end; margin-bottom: 21%; width: auto; height: 34px; padding: 0 18px; border-radius: 999px;
  font-size: 0.66rem; letter-spacing: 0.18em; box-shadow: 0 0 18px rgba(255, 91, 0, 0.45), inset 0 0 12px rgba(255, 110, 20, 0.3);
}
:root:is([data-mode="nynex"], [data-mode="fiberone"]) .gauge[data-phase="done"] .go__ring { display: none; }
:root:is([data-mode="nynex"], [data-mode="fiberone"]) .gauge[data-phase="done"] .go:focus-visible { border-radius: 999px; }

/* ---------- Overdrive (≥ 90 % der Referenzbandbreite, app.js) ---------- */
.gauge { --over: 0; --gx1: 0px; --gx2: 0px; --gy1: 20%; --gy2: 60%; --sk: 0deg; }
.gauge__num { position: relative; white-space: nowrap; }
.gauge__num::before, .gauge__num::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.gauge.is-over .gauge__num { text-shadow: calc(var(--over) * -3px) 0 rgba(255, 91, 0, 0.85), calc(var(--over) * 3px) 0 rgba(255, 214, 150, 0.55); }
.gauge.is-over .gauge__val { stroke-width: calc(14px + var(--over) * 4px); }
.gauge.is-over .gauge__phase { color: var(--orange); }
.gauge.is-glitch .gauge__num::before { opacity: 1; color: var(--orange); transform: translateX(var(--gx1)); clip-path: inset(var(--gy1) 0 calc(82% - var(--gy1)) 0); }
.gauge.is-glitch .gauge__num::after { opacity: 1; color: var(--hot); transform: translateX(var(--gx2)); clip-path: inset(var(--gy2) 0 calc(88% - var(--gy2)) 0); }
.gauge.is-glitch .gauge__core { transform: skewX(var(--sk)) translateX(calc(var(--gx1) * 0.4)); }
.gauge.is-glitch .gauge__svg { transform: translateX(calc(var(--gx2) * -0.5)); opacity: 0.85; }
.stage.is-over .stage__horizon { filter: brightness(calc(1.6 + var(--energy) * 0.3)) saturate(1.25); }
.rm .gauge__num::before, .rm .gauge__num::after { display: none; }

/* ---------- Tarif ---------- */
.gauge__plan { fill: none; stroke: rgba(255, 178, 63, 0.38); stroke-width: 26; stroke-dasharray: 0 1000; opacity: 0; transition: opacity 0.4s; }
.gauge__plantick { stroke: var(--hot); stroke-width: 3; stroke-linecap: round; opacity: 0; transition: opacity 0.4s; }
.gauge.has-plan .gauge__plan, .gauge.has-plan .gauge__plantick { opacity: 1; }
.plan { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin-top: clamp(4px, 1.2vh, 12px); }
.plan__l { font: 400 0.62rem/1 var(--f-house); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.seg--plan button { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border: 0; border-radius: 18px; background: transparent; color: var(--ink-2); font: 700 0.66rem/1 var(--f-display); letter-spacing: 0.08em; cursor: pointer; font-variant-numeric: tabular-nums; transition: color 0.3s, background-color 0.3s; }
.seg--plan button:hover { color: var(--ink); background: rgba(255, 91, 0, 0.14); }
.seg--plan button[aria-pressed="true"] { color: #000; background: var(--orange); box-shadow: 0 0 14px rgba(255, 91, 0, 0.7); }
.plan__io { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 0.78rem; }
.plan__f { display: inline-flex; align-items: center; gap: 5px; color: var(--amber); }
.plan__in { width: 4.6em; min-height: 32px; padding: 0 8px; border: 1px solid var(--field-line); border-radius: 6px; background: rgba(0, 0, 0, 0.7); color: #fff; font: 400 0.82rem/1 var(--f-house); text-align: right; font-variant-numeric: tabular-nums; }
.plan__in:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 178, 63, 0.18); }
.running .plan { opacity: 0.45; pointer-events: none; }
.rcard__pct { color: var(--hot); font-weight: 700; }

/* ---------- Messwerte unter dem Tacho ---------- */
.meters, .whoami, .stage__kick, .plan { text-shadow: 0 0 14px #000, 0 0 4px #000, 0 0 2px #000; }
.meters { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 18px clamp(22px, 4vw, 56px); margin-top: clamp(10px, 2.4vh, 26px); }
.meter { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 84px; transition: opacity 0.3s; }
.meter__l { display: inline-flex; align-items: center; gap: 6px; font: 400 0.64rem/1 var(--f-house); letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.meter__l .arr { font-size: 0.95rem; letter-spacing: 0; color: var(--orange); }
.meter__n { display: inline-flex; align-items: baseline; gap: 6px; color: #fff; font-variant-numeric: tabular-nums; }
.meter__n b { font: 700 1.5rem/1 var(--f-house); letter-spacing: -0.03em; }
.meter__n i { font: 400 0.72rem/1 var(--f-house); font-style: normal; color: var(--ink-3); }
.meter--big .meter__n b { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.meter.is-active .meter__l { color: var(--orange); text-shadow: 0 0 12px rgba(255, 91, 0, 0.9); }
.meter.is-active .meter__l::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); animation: hudPulse 0.9s ease-in-out infinite; }
.meter.is-wait { opacity: 0.45; }
.grade-A\+, .grade-A { color: #fff; }
.grade-B { color: var(--hot); }
.grade-C { color: var(--amber); }
.grade-D, .grade-F { color: var(--orange); }

/* Live-Kurve */
.chart { width: min(760px, 100%); margin-top: clamp(14px, 2.4vh, 26px); }
.chart__c { display: block; width: 100%; height: 86px; }

/* Wer bin ich */
.whoami { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: clamp(10px, 2vh, 20px) 0 0; font-size: 0.8rem; color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 12px; border-radius: 16px; background: rgba(0, 0, 0, 0.6); box-shadow: inset 0 0 0 1px rgba(247, 241, 234, 0.14); font-variant-numeric: tabular-nums; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip b { font-weight: 700; color: #fff; }
.chip--hot { box-shadow: inset 0 0 0 1px rgba(255, 140, 40, 0.7), 0 0 16px rgba(255, 91, 0, 0.35); color: var(--hot); }
.chip--hot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.whoami__load { color: var(--ink-3); }

/* ---------- Ergebnis ---------- */
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rcard { padding-bottom: 20px; }
.rcard > * { position: relative; z-index: 3; }
.rcard__n { margin: 0; font: 700 clamp(2rem, 4.2vw, 3rem)/1 var(--f-house); letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.rcard__n small { margin-left: 8px; font: 400 0.9rem/1 var(--f-house); letter-spacing: 0.02em; color: var(--ink-2); }
.rcard__s { margin: 10px 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.grade { display: inline-block; min-width: 1.4em; }
.life, .sharebox { margin-top: 22px; }
.life > *, .sharebox > * { position: relative; z-index: 3; }
.life__list { display: grid; gap: 2px; }
.life__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(247, 241, 234, 0.08); }
.life__list li:last-child { border-bottom: 0; }
.life__k { color: var(--ink-2); font-size: 0.92rem; }
.life__v { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.life__note { margin: 12px 0 0; font-size: 0.76rem; color: var(--ink-3); }
.sharebox__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.sharebox__out { display: flex; flex: 1 1 320px; flex-wrap: wrap; gap: 10px; align-items: center; }
.sharebox__out .field__input { flex: 1 1 220px; min-width: 0; font: 400 0.85rem/1 var(--f-mono); }
.sharebox__msg { margin: 10px 0 0; min-height: 1.2em; font-size: 0.8rem; color: var(--amber); }
.badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 18px; border-radius: 24px; box-shadow: inset 0 0 0 1px rgba(255, 140, 40, 0.7), 0 0 24px rgba(255, 91, 0, 0.35); color: var(--hot); font: 700 0.72rem/1.2 var(--f-house); letter-spacing: 0.14em; text-transform: uppercase; }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }

/* ---------- Schlüssel/Wert-Listen ---------- */
#verbindung .hud + .hud, #cli .hud + .hud, #methode .hud + .hud { margin-top: 22px; }
.kv { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(130px, 0.6fr) minmax(0, 1.4fr); gap: 0; margin: 0; }
.kv dt, .kv dd { margin: 0; padding: 10px 0; border-bottom: 1px solid rgba(247, 241, 234, 0.08); }
.kv dt { padding-right: 16px; font: 400 0.66rem/1.6 var(--f-house); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.kv dd { font: 400 0.9rem/1.5 var(--f-mono); color: #fff; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kv dd small { display: block; font: 400 0.76rem/1.45 var(--f-house); color: var(--ink-3); }
.kv dd.is-none { color: var(--ink-3); }
.kv dt:nth-last-of-type(1), .kv dd:last-of-type { border-bottom: 0; }

/* ---------- Code ---------- */
.code { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 10px 10px 16px; border-radius: 6px; background: rgba(0, 0, 0, 0.62); box-shadow: inset 0 0 0 1px rgba(255, 178, 63, 0.18); }
.code code { flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap; font: 400 0.84rem/1.6 var(--f-mono); color: var(--hot); scrollbar-width: thin; }
.code code::before { content: "$ "; color: var(--orange); }
.code__copy { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border: 1px solid rgba(255, 178, 63, 0.45); border-radius: 17px; background: transparent; color: var(--ink-2); font: 700 0.6rem/1 var(--f-house); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.code__copy:hover { color: #fff; border-color: var(--amber); background: rgba(255, 91, 0, 0.12); }
.code__copy.is-ok { color: #000; background: var(--amber); border-color: var(--amber); }
.code__note { position: relative; z-index: 3; margin-top: 14px; font-size: 0.82rem; }
.code__note code, .hud__text code { font: 400 0.82rem/1 var(--f-mono); color: var(--hot); }
.files { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.files li { display: inline-flex; align-items: center; gap: 10px; padding: 0 14px 0 4px; min-height: 40px; border-radius: 20px; background: rgba(0, 0, 0, 0.6); box-shadow: inset 0 0 0 1px rgba(247, 241, 234, 0.14); }
.files a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 16px; background: rgba(255, 91, 0, 0.16); color: var(--hot); font: 400 0.82rem/1 var(--f-mono); text-decoration: none; }
.files a:hover { background: var(--orange); color: #000; }
.files span { font-size: 0.78rem; color: var(--ink-3); }
.method .hud__text a { color: var(--hot); }
.method > * { position: relative; z-index: 3; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .sx__grid { grid-template-columns: minmax(0, 1fr); }
  .sx__head { position: static; }
}
@media (max-width: 760px) {
  .rgrid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dt { padding: 10px 0 0; border-bottom: 0; }
  .kv dd { padding-top: 2px; }
  .meters { gap: 14px 22px; }
  .meter { min-width: 72px; }
  .meter--big { order: -1; min-width: 40%; }
  .go { width: 140px; height: 140px; font-size: 1.15rem; }
  .gauge__ticks text { font-size: 15px; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .gauge { width: min(380px, 52vh); }
}

/* Jitter als Seiten-Shake (app.js setzt --jx auf .stage während der Messung) */
.stage__in, .stage__warp, .stage__sonar, .broomhud, .cockpit { translate: var(--jx, 0px) 0; }
.meter__g { margin-top: -2px; font: 400 0.62rem/1.2 var(--f-house); letter-spacing: 0.04em; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.meter__g:empty { display: none; }

/* ---------- Cockpit „galaktischer Kreuzer“ (nynex, fiberONE): gerenderter Rahmen, durchs Fenster sieht man den Warp.
   Füllt den ersten Bildschirm der Bühne (nicht die ganze, oft höhere Bühne), liegt über Warp und Planetenkante,
   unter allen Bedienelementen. ---------- */
.cockpit { display: none; position: absolute; left: 0; right: 0; top: 0; height: 100vh; height: 100svh; z-index: -1; pointer-events: none; }
.cockpit__p { display: none; }
.cockpit img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
:root[data-mode="nynex"] .cockpit, :root[data-mode="fiberone"] .cockpit { display: block; }
:root[data-mode="nynex"] .cockpit__p--ny, :root[data-mode="fiberone"] .cockpit__p--fo { display: block; width: 100%; height: 100%; }
/* Querformat: Konsole etwas unter den ersten Bildschirm schieben und abdunkeln, damit die Messwerte davor lesbar bleiben */
.cockpit::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.5) 85%, rgba(0, 0, 0, 0.62) 100%); }
@media (min-aspect-ratio: 4/5) { .cockpit { height: 116vh; height: 116svh; } .cockpit img { object-position: center top; } }

/* ---------- Simulation 1 G / 10 G ---------- */
.sim { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px; }
.sim__l { font: 400 0.6rem/1 var(--f-house); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); text-shadow: 0 0 8px #000; }
.sim__b { padding: 6px 12px; border: 1px dashed var(--line-hot); border-radius: 999px; background: rgba(0, 0, 0, 0.35); color: var(--ink-2);
  font: 600 0.72rem/1 var(--f-house); letter-spacing: 0.08em; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.sim__b:hover, .sim__b:focus-visible { border-style: solid; border-color: var(--orange); color: var(--hot); background: rgba(0, 0, 0, 0.55); }
.running .sim { opacity: 0.4; pointer-events: none; }
.simbadge { margin: 8px auto 0; padding: 5px 12px; width: max-content; max-width: 92vw; border: 1px dashed var(--orange); border-radius: 6px;
  background: rgba(0, 0, 0, 0.55); color: var(--hot); font: 600 0.66rem/1.3 var(--f-house); letter-spacing: 0.16em; text-transform: uppercase; text-align: center; }
#ergebnis.is-sim .sx__head::after { content: "Simulation"; display: inline-block; margin-top: 10px; padding: 4px 10px; border: 1px dashed var(--orange);
  border-radius: 6px; font: 600 0.62rem/1 var(--f-house); letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); }

/* ---------- Testvariante AR-Glas (?ar=1): Messwerte fahren beim Start auf einer Glasscheibe hoch ---------- */
.stage { --ar-rgb: 255, 140, 40; }
:root[data-mode="fiberone"] .stage { --ar-rgb: 57, 194, 255; }
:root[data-mode="unicorn"] .stage { --ar-rgb: 255, 154, 213; }
:root[data-mode="broom"] .stage { --ar-rgb: 216, 180, 106; }
:root[data-mode="stealth"] .stage { --ar-rgb: 125, 255, 155; }
.ar-var .meters, .ar-var .chart, .arglass {
  transform-origin: 50% 100%;
  transition: transform 1.6s cubic-bezier(0.16, 0.84, 0.24, 1), opacity 1.1s ease, filter 1.6s ease;
}
.ar-var:not(.ar-on) .meters, .ar-var:not(.ar-on) .chart, .ar-var:not(.ar-on) .arglass {
  transform: perspective(900px) translateY(140px) rotateX(78deg); opacity: 0; filter: blur(6px);
}
.ar-var.ar-on .meters, .ar-var.ar-on .chart { transition-delay: 0.25s; }
.js .ar-var .stage__in > .meters, .js .ar-var .stage__in > .chart { animation: none; }   /* Einblend-Animation hielte sonst die Lage fest */
.arglass {
  position: absolute; z-index: -1; pointer-events: none; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(var(--ar-rgb), 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015) 40%, rgba(var(--ar-rgb), 0.06));
  box-shadow: 0 0 42px rgba(var(--ar-rgb), 0.2), inset 0 0 32px rgba(var(--ar-rgb), 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(4px) saturate(1.2); backdrop-filter: blur(4px) saturate(1.2);
}
.arglass::before {   /* feine Projektionszeilen */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(var(--ar-rgb), 0.05) 0 1px, transparent 1px 4px);
}
.arglass__scan {   /* Lichtkante läuft beim Hochfahren einmal über die Scheibe */
  position: absolute; left: 0; right: 0; height: 30%; top: -30%;
  background: linear-gradient(180deg, transparent, rgba(var(--ar-rgb), 0.35) 85%, rgba(255, 255, 255, 0.55));
}
.ar-on .arglass__scan { animation: arScan 1.4s 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes arScan { from { top: 100%; opacity: 1; } to { top: -30%; opacity: 0; } }
.arglass__c { position: absolute; width: 16px; height: 16px; border-color: rgba(var(--ar-rgb), 0.95); border-style: solid; border-width: 0; }
.arglass__c--tl { left: 8px; top: 8px; border-left-width: 2px; border-top-width: 2px; }
.arglass__c--tr { right: 8px; top: 8px; border-right-width: 2px; border-top-width: 2px; }
.arglass__c--bl { left: 8px; bottom: 8px; border-left-width: 2px; border-bottom-width: 2px; }
.arglass__c--br { right: 8px; bottom: 8px; border-right-width: 2px; border-bottom-width: 2px; }
.rm .ar-var .meters, .rm .ar-var .chart, .rm .arglass { transition: none; }
:root[data-mode="hacker"] .arglass, :root[data-mode="seismo"] .arglass { display: none; }
