[hidden] { display: none !important; }
:root {
  --bg: #061012; --fl: #0b1a1d; --fl2: #11262a; --rand: #1c3d42; --text: #e6f6f4; --leise: #8fb0ad;
  --akzent: #00e5d4; --akzent2: #00a99d; --pink: #00e5d4; --rot: #ff4d4f; --gruen: #2ecc71; --orange: #f5a623;
  --radius: 12px; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--akzent); }
button, input { font: inherit; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }
.leise { color: var(--leise); }
.knopf { background: var(--akzent2); color: #fff; border: 0; border-radius: 9px; padding: 9px 16px; cursor: pointer; font-weight: 600; }
.knopf:hover { background: var(--akzent); }
.knopf.zweit { background: var(--fl2); color: var(--text); border: 1px solid var(--rand); }
.knopf.zweit:hover { border-color: var(--akzent); }
.knopf.gefahr { background: transparent; color: var(--rot); border: 1px solid var(--rot); }
.knopf:disabled { opacity: .5; cursor: default; }
input[type=text], input[type=password] { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--rand); background: var(--fl2); color: var(--text); }
input:focus { outline: 2px solid var(--akzent); outline-offset: 0; border-color: transparent; }
label { display: block; font-size: 13px; color: var(--leise); margin: 12px 0 5px; }
.meldung { margin-top: 12px; font-size: 14px; min-height: 1.4em; }
.meldung.fehler { color: var(--rot); }
.meldung.ok { color: var(--gruen); }

/* Schild Verbindung */
.schild { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.schild.sicher { color: var(--gruen); background: color-mix(in srgb, var(--gruen) 14%, transparent); }
.schild.unsicher { color: var(--orange); background: color-mix(in srgb, var(--orange) 15%, transparent); }

/* Anmeldung */
.login-seite { min-height: 100%; display: grid; place-items: center; padding: 20px; }
.karte { background: var(--fl); border: 1px solid var(--rand); border-radius: var(--radius); padding: 22px; }
.login-karte { width: min(400px, 100%); }
.marke { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.marke img { width: 42px; height: 42px; }
.marke h1 { font-size: 19px; margin: 0; }
.login-karte .knopf { width: 100%; margin-top: 18px; padding: 11px; }
.login-fuss { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 13px; }
.hinweis { background: color-mix(in srgb, var(--akzent) 12%, transparent); border-left: 3px solid var(--akzent); padding: 10px 12px; border-radius: 6px; font-size: 14px; margin: 12px 0 4px; }

/* Kopfzeile */
.kopf { display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--fl); border-bottom: 1px solid var(--rand); position: sticky; top: 0; z-index: 5; }
.kopf .marke { margin: 0; }
.kopf .marke img { width: 30px; height: 30px; }
.kopf h1 { font-size: 16px; white-space: nowrap; }
.reiter { display: flex; gap: 4px; background: var(--fl2); border-radius: 10px; padding: 3px; margin-left: 10px; }
.reiter button { background: none; border: 0; color: var(--leise); padding: 6px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.reiter button.an { background: var(--fl); color: var(--text); box-shadow: 0 1px 3px #0003; }
.reiter .zahl { font-size: 11px; background: var(--rand); border-radius: 99px; padding: 1px 6px; margin-left: 4px; }
.kopf .rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 6px; background: var(--fl2); color: var(--leise); }
.status.live { background: var(--rot); color: #fff; }
.status .punkt { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.live .punkt { animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.textknopf { background: none; border: 0; color: var(--leise); cursor: pointer; padding: 4px 6px; font-size: 14px; text-decoration: none; }
.textknopf:hover { color: var(--text); }

/* Inhalt */
main { padding: 18px; max-width: 1500px; margin: 0 auto; }
.raster { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.seite { display: none; }
.seite.an { display: block; }

/* Video */
.buehne { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.buehne video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.ueber { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #cfd6df; pointer-events: none; padding: 20px; }
.ueber .gross { font-size: 20px; font-weight: 600; }
.ueber .klein { font-size: 14px; color: #8d99a8; margin-top: 6px; }
.ueber svg { width: 54px; height: 54px; opacity: .5; margin-bottom: 10px; }
.hud { position: absolute; left: 12px; top: 12px; display: flex; gap: 8px; pointer-events: none; }
.hud span { background: #000a; color: #fff; font: 600 12px/1 ui-monospace, monospace; padding: 5px 8px; border-radius: 5px; }
.hud .rec { background: var(--rot); }
.leiste { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.leiste .knopf { padding: 8px 13px; }
.seitenspalte .karte { margin-bottom: 14px; padding: 16px; }
.seitenspalte h2, .karte h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--leise); margin: 0 0 10px; }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--leise); }
dl.kv dd { margin: 0; }
details.anleitung summary { cursor: pointer; font-weight: 600; }
details.anleitung ol { padding-left: 20px; margin: 10px 0 0; font-size: 14px; }
details.anleitung li { margin-bottom: 6px; }

/* Aufnahmen */
.liste { max-height: calc(100vh - 150px); overflow: auto; }
.filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.filter button { background: var(--fl2); border: 1px solid var(--rand); color: var(--text); border-radius: 99px; padding: 4px 11px; font-size: 13px; cursor: pointer; }
.filter button.an { background: var(--akzent2); border-color: var(--akzent2); color: #fff; }
.tag { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--leise); margin: 12px 0 6px; }
.eintrag { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; }
.eintrag:hover { background: var(--fl2); }
.eintrag.an { background: var(--fl2); border-color: var(--akzent); }
.eintrag .zeit { font-weight: 600; }
.eintrag .info { font-size: 13px; color: var(--leise); }
.eintrag .aktionen { margin-left: auto; display: flex; gap: 2px; }
.eintrag .aktionen a, .eintrag .aktionen button { background: none; border: 0; color: var(--leise); cursor: pointer; padding: 6px; border-radius: 6px; font-size: 16px; text-decoration: none; line-height: 1; }
.eintrag .aktionen a:hover, .eintrag .aktionen button:hover { color: var(--text); background: var(--rand); }
.eintrag .marke-rec { background: var(--rot); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 5px; border-radius: 4px; margin-left: 6px; }
.leer { color: var(--leise); text-align: center; padding: 30px 10px; font-size: 14px; }
.zeitleiste { display: flex; align-items: center; gap: 10px; margin-top: 10px; font: 13px ui-monospace, monospace; color: var(--leise); }
.zeitleiste input[type=range] { flex: 1; accent-color: var(--akzent); }

/* Admin */
.admin-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.admin-raster .karte p { font-size: 14px; margin: 0 0 8px; }
.admin-raster .knopf { margin-top: 14px; }
.balken { height: 8px; background: var(--fl2); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.balken div { height: 100%; background: var(--akzent); }
.datei-wahl { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }

/* Tablet */
@media (max-width: 1100px) {
  .raster { grid-template-columns: 1fr; }
  .liste { max-height: none; }
}
/* Handy hochkant */
@media (max-width: 700px) {
  .kopf { flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .kopf h1 { font-size: 15px; }
  .reiter { order: 3; width: 100%; margin: 0; }
  .reiter button { flex: 1; }
  .kopf .schild { display: none; }
  main { padding: 10px; }
  .buehne { border-radius: 8px; }
}
/* Handy quer: Video füllt den Bildschirm */
@media (orientation: landscape) and (max-height: 520px) {
  body.live-an .kopf, body.live-an .leiste, body.live-an .seitenspalte { display: none; }
  body.live-an main { padding: 0; max-width: none; }
  body.live-an .raster { display: block; }
  body.live-an .buehne { position: fixed; inset: 0; border-radius: 0; aspect-ratio: auto; z-index: 20; }
}
.rtmp-box { word-break: break-all; background: var(--fl2); padding: 10px; border-radius: 8px; }
.versionzeile { font-size: 12px; text-align: center; }
.untertitel { font-size: 13px; }
a.knopf { text-decoration: none; display: inline-block; }
.balken div { width: 0; }

/* =====================================================================
   STARTBILD – Retro-Flug über das Neon-Gitter
   ===================================================================== */
body.start { background: #020c0f; color-scheme: dark; --text: #eafffc; --leise: #9fc9c3; --fl2: #ffffff12; --rand: #ffffff26; --akzent: #00e5d4; --akzent2: #00a99d; }
body.start .login-seite { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; }
.szene { position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.himmel { position: absolute; left: 0; right: 0; top: 0; height: 60%; background: linear-gradient(#010a0d 0%, #03222a 38%, #07505a 70%, #1fbfb0 96%, #b8fff4 100%); }
.sterne { position: absolute; inset: 0 0 35% 0; background-image:
  radial-gradient(1.5px 1.5px at 8% 20%, #fff, transparent), radial-gradient(1px 1px at 17% 55%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 27% 12%, #fff, transparent), radial-gradient(1px 1px at 36% 40%, #fffa, transparent),
  radial-gradient(1px 1px at 48% 8%, #fff, transparent), radial-gradient(1.5px 1.5px at 58% 30%, #fff, transparent),
  radial-gradient(1px 1px at 66% 15%, #fffa, transparent), radial-gradient(1.5px 1.5px at 77% 45%, #fff, transparent),
  radial-gradient(1px 1px at 86% 10%, #fff, transparent), radial-gradient(1.5px 1.5px at 94% 33%, #fff, transparent),
  radial-gradient(1px 1px at 4% 48%, #fffa, transparent), radial-gradient(1px 1px at 71% 58%, #fff8, transparent);
  animation: funkeln 4s ease-in-out infinite alternate; }
@keyframes funkeln { from { opacity: .55; } to { opacity: 1; } }
.sonne { position: absolute; left: 50%; bottom: -16vmin; width: 46vmin; height: 46vmin; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(#f2fffc 0%, #7ff7e9 45%, #00b3a6 100%);
  -webkit-mask: linear-gradient(#000 0 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 67%, #000 67% 73%, transparent 73% 78%, #000 78% 83%, transparent 83% 89%, #000 89%);
          mask: linear-gradient(#000 0 52%, transparent 52% 56%, #000 56% 63%, transparent 63% 67%, #000 67% 73%, transparent 73% 78%, #000 78% 83%, transparent 83% 89%, #000 89%);
  filter: drop-shadow(0 0 40px #00e5d4); }
.berge { position: absolute; left: 0; width: 100%; bottom: 0; display: block; }
.berge.hinten { height: 22%; fill: #06343b; }
.berge.vorne { height: 15%; fill: #031a1e; }
.boden { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; overflow: hidden; background: linear-gradient(#031a1e, #010708 70%); perspective: 260px; perspective-origin: 50% 0; }
.gitter { position: absolute; left: -100%; right: -100%; top: 0; height: 300%; transform-origin: 50% 0; transform: rotateX(72deg);
  background-image: linear-gradient(90deg, #00e5d4 2px, transparent 2px), linear-gradient(#00e5d4 2px, transparent 2px);
  background-size: 70px 70px; animation: fahrt .6s linear infinite; filter: drop-shadow(0 0 4px #00e5d4); }
@keyframes fahrt { from { background-position: 0 0; } to { background-position: 0 70px; } }
.dunst { position: absolute; left: 0; right: 0; top: 52%; height: 18%; background: linear-gradient(transparent, #00e5d433 45%, transparent); pointer-events: none; }
.szene::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(#0000 0 2px, #0000002e 2px 4px), radial-gradient(ellipse at center, transparent 55%, #000a 100%); }

/* Goggles-Anzeige */
.osd { position: absolute; inset: max(16px, env(safe-area-inset-top)) 18px 16px; font: 600 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; color: #e6fffb; text-shadow: 0 0 6px #00e5d4, 0 1px 2px #000; letter-spacing: .06em; }
.osd b { color: #fff; }
.osd-ecke { position: absolute; display: flex; flex-direction: column; gap: 2px; }
.osd-ecke.ol { left: 0; top: 0; } .osd-ecke.or { right: 0; top: 0; align-items: flex-end; }
.osd-ecke.ul { left: 0; bottom: 0; } .osd-ecke.ur { right: 0; bottom: 0; align-items: flex-end; }
.osd .blink { color: #ff5d73; animation: blink 1s steps(2) infinite; }
.akku { display: flex; gap: 3px; }
.akku i { width: 9px; height: 12px; border: 1.5px solid #e6fffb; box-shadow: 0 0 5px #00e5d4; background: #e6fffb; }
.akku i:last-child { background: transparent; }
.fadenkreuz { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; transform: translate(-50%, -50%); border: 2px solid #e6fffbaa; border-radius: 50%; box-shadow: 0 0 8px #00e5d4; }
.fadenkreuz span { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #e6fffb; }
.fadenkreuz::before, .fadenkreuz::after { content: ''; position: absolute; background: #e6fffbaa; }
.fadenkreuz::before { left: -26px; right: -26px; top: 50%; height: 2px; margin-top: -1px; -webkit-mask: linear-gradient(90deg, #000 22px, transparent 22px calc(100% - 22px), #000 calc(100% - 22px)); mask: linear-gradient(90deg, #000 22px, transparent 22px calc(100% - 22px), #000 calc(100% - 22px)); }
.fadenkreuz::after { top: -26px; height: 20px; left: 50%; width: 2px; margin-left: -1px; }
.horizont { position: absolute; left: 50%; top: 50%; width: 260px; height: 2px; margin-left: -130px; background: linear-gradient(90deg, #e6fffb 0 70px, transparent 70px 190px, #e6fffb 190px); box-shadow: 0 0 6px #00e5d4; animation: schaukeln 6s ease-in-out infinite; }
@keyframes schaukeln { 0%, 100% { transform: rotate(-6deg) translateY(4px); } 50% { transform: rotate(7deg) translateY(-6px); } }

/* Login-Karte über der Szene */
.glas { background: #06191db8; border: 1px solid #00e5d455; -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 0 0 1px #00e5d422, 0 20px 60px #000a, 0 0 50px #00e5d433; }
.logo-block { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.logo-block img { width: 52px; height: 52px; filter: drop-shadow(0 0 10px #00e5d4); }
.neon { margin: 0; font: 900 30px/1 system-ui, sans-serif; letter-spacing: .08em; font-style: italic; color: #fff;
  text-shadow: 0 0 4px #fff, 0 0 12px #00e5d4, 0 0 28px #00e5d4, 0 0 46px #00a99d; }
.untertitel { color: var(--leise); font-size: 13px; margin-top: 6px; }
body.start label { color: #bfe6e0; }
body.start input[type=text], body.start input[type=password] { background: #03100f99; border-color: #00e5d444; }
body.start input:focus { outline-color: #00e5d4; }
body.start .start-knopf { background: linear-gradient(90deg, #00b3a6, #00877d 60%, #006a62); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 0 22px #00e5d466; }
body.start .start-knopf:hover { background: linear-gradient(90deg, #14c9bb, #00a99d 60%, #00786f); box-shadow: 0 0 32px #00e5d499; }
body.start .hinweis { background: #00e5d41a; border-left-color: #00e5d4; }

@media (max-width: 700px) {
  .osd { font-size: 11px; }
  .fadenkreuz, .horizont { display: none; }
  .neon { font-size: 25px; }
}

/* =====================================================================
   WARTEBILDSCHIRM – kein Signal
   ===================================================================== */
.warte { position: absolute; inset: 0; overflow: hidden; color: #e6fffb; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, #08302f 0%, #041416 55%, #020507 100%); }
.warte::before { content: ''; position: absolute; inset: -50%; opacity: .07;
  background-image: repeating-radial-gradient(circle at 17% 32%, #fff 0 1px, transparent 1px 3px), repeating-radial-gradient(circle at 71% 63%, #fff 0 1px, transparent 1px 4px);
  animation: rauschen .25s steps(3) infinite; }
@keyframes rauschen { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } }
.warte::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(#0000 0 2px, #00000040 2px 4px); }
.warte .streifen { position: absolute; left: 0; right: 0; height: 18%; background: linear-gradient(transparent, #00e5d414, transparent); animation: durchlauf 4s linear infinite; }
@keyframes durchlauf { from { top: -20%; } to { top: 110%; } }

.radar { position: absolute; left: 50%; top: 44%; width: min(42%, 46vh); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, transparent 0 32%, #00e5d433 32.5% 33%, transparent 33.5% 65%, #00e5d433 65.5% 66%, transparent 66.5% 97%, #00e5d466 97.5% 99%, transparent 99%),
              linear-gradient(transparent calc(50% - .5px), #00e5d426 calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
              linear-gradient(90deg, transparent calc(50% - .5px), #00e5d426 calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px));
  box-shadow: 0 0 30px #00e5d422, inset 0 0 40px #00e5d414; }
.radar .strahl { position: absolute; inset: 1%; border-radius: 50%; background: conic-gradient(from 0deg, #00e5d400 0deg, #00e5d400 290deg, #00e5d455 355deg, #a8fff4 360deg); animation: drehen 2.6s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
.radar .ziel { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #a8fff4; box-shadow: 0 0 8px #00e5d4; opacity: 0; animation: ping 2.6s linear infinite; }
.radar .ziel.a { left: 70%; top: 30%; animation-delay: .25s; }
.radar .ziel.b { left: 26%; top: 64%; animation-delay: 1.55s; }
@keyframes ping { 0%, 4% { opacity: 1; transform: scale(1.4); } 60% { opacity: .15; transform: scale(1); } 100% { opacity: 0; } }
.radar .drohne { position: absolute; left: 50%; top: 50%; width: 26%; height: 26%; transform: translate(-50%, -50%); color: #a8fff4; filter: drop-shadow(0 0 6px #00e5d4); animation: schweben 3s ease-in-out infinite; }
@keyframes schweben { 50% { transform: translate(-50%, -58%); } }

.warte .titel { position: absolute; left: 0; right: 0; top: calc(44% + min(21%, 23vh) + 4%); text-align: center; }
.glitch { position: relative; display: inline-block; font: 800 clamp(16px, 3.2vw, 34px)/1 system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #fff; text-shadow: 0 0 10px #00e5d4, 0 0 26px #00e5d488; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; }
.glitch::before { color: #00e5d4; text-shadow: none; animation: glitchA 3s infinite steps(1); clip-path: inset(0 0 60% 0); }
.glitch::after { color: #e6fffb; text-shadow: none; animation: glitchB 3s infinite steps(1); clip-path: inset(55% 0 0 0); }
@keyframes glitchA { 0%, 86%, 100% { transform: none; opacity: 0; } 87% { transform: translate(-4px, -1px); opacity: .9; } 90% { transform: translate(3px, 1px); opacity: .9; } 93% { transform: translate(-2px, 0); opacity: .9; } }
@keyframes glitchB { 0%, 88%, 100% { transform: none; opacity: 0; } 89% { transform: translate(4px, 1px); opacity: .9; } 92% { transform: translate(-3px, -1px); opacity: .9; } 95% { transform: translate(2px, 0); opacity: .9; } }
.warte .unter { margin-top: 12px; font-size: clamp(11px, 1.4vw, 14px); color: #9fb7c4; letter-spacing: .04em; }
.warte .punkte::after { content: ''; animation: punkte 1.5s steps(4) infinite; }
@keyframes punkte { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

.warte .ecke { position: absolute; font-size: clamp(10px, 1.2vw, 13px); line-height: 1.6; letter-spacing: .08em; text-shadow: 0 0 6px #00e5d4; display: flex; flex-direction: column; }
.warte .ecke.ol { left: calc(3.5% + 30px); top: calc(3.5% + 14px); } .warte .ecke.or { right: calc(3.5% + 30px); top: calc(3.5% + 14px); text-align: right; align-items: flex-end; }
.warte .ecke.ul { left: calc(3.5% + 30px); bottom: calc(3.5% + 14px); } .warte .ecke.ur { right: calc(3.5% + 30px); bottom: calc(3.5% + 14px); text-align: right; align-items: flex-end; }
.warte .rot { color: #ff5d73; text-shadow: 0 0 6px #ff3f5a; animation: blink 1s steps(2) infinite; }
.warte .balken-sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; margin-left: 6px; vertical-align: -1px; }
.warte .balken-sig i { width: 3px; background: #e6fffb44; }
.warte .balken-sig i:nth-child(1) { height: 30%; } .warte .balken-sig i:nth-child(2) { height: 55%; } .warte .balken-sig i:nth-child(3) { height: 80%; } .warte .balken-sig i:nth-child(4) { height: 100%; }
.warte .rahmen { position: absolute; inset: 3.5%; pointer-events: none;
  background: linear-gradient(#e6fffb88, #e6fffb88) 0 0 / 22px 2px, linear-gradient(#e6fffb88, #e6fffb88) 0 0 / 2px 22px,
              linear-gradient(#e6fffb88, #e6fffb88) 100% 0 / 22px 2px, linear-gradient(#e6fffb88, #e6fffb88) 100% 0 / 2px 22px,
              linear-gradient(#e6fffb88, #e6fffb88) 0 100% / 22px 2px, linear-gradient(#e6fffb88, #e6fffb88) 0 100% / 2px 22px,
              linear-gradient(#e6fffb88, #e6fffb88) 100% 100% / 22px 2px, linear-gradient(#e6fffb88, #e6fffb88) 100% 100% / 2px 22px;
  background-repeat: no-repeat; }
/* Zustand „Verbinde“: Radar schneller, Balken füllen sich */
.warte.verbinde .strahl { animation-duration: .9s; }
.warte.verbinde .balken-sig i { animation: fuellen 1.2s infinite; }
.warte.verbinde .balken-sig i:nth-child(2) { animation-delay: .15s; } .warte.verbinde .balken-sig i:nth-child(3) { animation-delay: .3s; } .warte.verbinde .balken-sig i:nth-child(4) { animation-delay: .45s; }
@keyframes fuellen { 50% { background: #a8fff4; } }
/* Zustand „Beendet“ */
.warte.beendet .glitch { text-shadow: 0 0 10px #00e5d4, 0 0 26px #00e5d488; }

@media (max-width: 700px) {
  .warte .ecke.or, .warte .ecke.ur { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gitter, .sterne, .horizont, .warte::before, .warte .streifen, .radar .strahl, .radar .ziel, .radar .drohne, .glitch::before, .glitch::after { animation: none !important; }
}

/* Kopfzeile im Neon-Stil */
.kopf { background: linear-gradient(90deg, #082126, #061315 60%); border-bottom: 1px solid #00e5d433; box-shadow: 0 1px 0 #00e5d414; }
.kopf h1 { font-style: italic; letter-spacing: .04em; text-shadow: 0 0 10px #00e5d477; }
.kopf .marke img { filter: drop-shadow(0 0 6px #00e5d488); }
.reiter button.an { background: linear-gradient(90deg, #00a99d, #00786f); color: #fff; box-shadow: 0 0 12px #00e5d455; }
.status.live { box-shadow: 0 0 14px #ff4d4f88; }
.knopf { background: linear-gradient(90deg, #00a99d, #00786f); }
.knopf:hover { background: linear-gradient(90deg, #14c9bb, #0a8f86); }
.knopf.zweit { background: var(--fl2); }
.buehne { box-shadow: 0 0 0 1px #00e5d422, 0 0 40px #0a8f8622; }
.seitenspalte .karte, .admin-raster .karte { box-shadow: inset 0 1px 0 #ffffff08; }
.eintrag.an { border-color: var(--pink); box-shadow: 0 0 12px #00e5d433; }
.filter button.an { background: linear-gradient(90deg, #00a99d, #00786f); border-color: transparent; }

/* ---------- Wartebild in 3D ---------- */
.welt3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.warte.mit3d { background: linear-gradient(#138f8c 0%, #5fc9bf 30%, #9fe6dc 55%, #9fe6dc 100%); }
.warte.mit3d .radar { display: none; }
.warte.mit3d::before { opacity: .035; }
.warte.mit3d::after { background: repeating-linear-gradient(#0000 0 2px, #00000022 2px 4px), radial-gradient(ellipse at center, transparent 55%, #0008 100%); }
.warte.mit3d .streifen { opacity: .5; }
.warte.mit3d .titel { top: auto; bottom: 15%; }
.warte.mit3d .titel::before { content: ''; position: absolute; left: 0; right: 0; top: -40%; bottom: -60%; z-index: -1;
  background: radial-gradient(ellipse 45% 70% at 50% 50%, #021a1dcc, transparent 75%); }
.warte .titel { z-index: 1; }
.warte .ecke, .warte .rahmen { z-index: 1; }
.warte.mit3d .ecke { text-shadow: 0 0 6px #00e5d4, 0 1px 2px #000, 0 0 3px #000; }
.warte.mit3d .unter { color: #d4f3ee; text-shadow: 0 1px 3px #000; }
.visier { display: none; position: absolute; left: 50%; top: 42%; width: 64px; height: 64px; transform: translate(-50%, -50%); z-index: 1;
  border: 2px solid #e6fffbaa; border-radius: 50%; box-shadow: 0 0 8px #00e5d4; }
.visier span { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #e6fffb; }
.visier::before { content: ''; position: absolute; top: 50%; left: -30px; right: -30px; height: 2px; margin-top: -1px; background: #e6fffbaa;
  -webkit-mask: linear-gradient(90deg, #000 24px, transparent 24px calc(100% - 24px), #000 calc(100% - 24px)); mask: linear-gradient(90deg, #000 24px, transparent 24px calc(100% - 24px), #000 calc(100% - 24px)); }
.warte.mit3d .visier { display: block; }
@media (max-width: 700px) { .visier { width: 44px; height: 44px; } .warte.mit3d .titel { bottom: 12%; } }

ol.schritte { padding-left: 20px; margin: 0; font-size: 14px; }
ol.schritte li { margin-bottom: 6px; }
@media (max-width: 700px) {
  .warte .ecke.ul { display: none; }
  .warte .ecke { font-size: 10px; }
  .warte.mit3d .titel { bottom: 9%; }
  .warte .unter { margin-top: 6px; }
  .visier { top: 40%; }
}
dl.kv.rtmp-felder { grid-template-columns: 1fr; gap: 4px; margin-bottom: 10px; }
.rtmp-felder dd { margin-bottom: 6px; }
.leiste.teile { align-items: center; font-size: 13px; }
#player { cursor: pointer; }

/* Auslastung */
.admin-raster .breit { grid-column: 1 / -1; }
.klein { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kachel { background: var(--fl2); border: 1px solid var(--rand); border-radius: 10px; padding: 12px; }
.k-titel { font-size: 13px; color: var(--leise); }
.k-titel span { font-size: 11px; opacity: .8; margin-left: 4px; }
.k-wert { font-size: 14px; color: var(--leise); margin-top: 4px; }
.k-wert b { font-size: 26px; color: var(--text); font-variant-numeric: tabular-nums; }
.k-info { font-size: 12px; color: var(--leise); margin-top: 4px; }
.k-info.gross { font-size: 13px; display: grid; gap: 2px; margin-top: 6px; }
.k-info.gross div { display: flex; justify-content: space-between; gap: 8px; }
.k-info.gross b { color: var(--text); font-weight: 600; }
.k-balken { height: 5px; background: #ffffff12; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.k-balken i { display: block; height: 100%; width: 0; background: var(--akzent); transition: width .5s; }
.k-balken i.gelb { background: #e8c46a; } .k-balken i.rot { background: var(--rot); }
.diagramme { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.d-kopf { display: flex; justify-content: space-between; font-size: 12px; color: var(--leise); margin-bottom: 4px; }
.legende i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin: 0 4px 2px 10px; vertical-align: middle; }
.l-ein { background: #cfe8e5; } .l-aus, .l-cpu { background: #00e5d4; } .l-ram { background: #e8c46a; }
.diagramm { width: 100%; height: 130px; display: block; background: var(--fl2); border: 1px solid var(--rand); border-radius: 8px; }
.diagramm .raster { stroke: #ffffff10; stroke-width: 1; vector-effect: non-scaling-stroke; }
.diagramm .grenze { stroke: var(--rot); stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; opacity: .7; }
.diagramm polyline.linie { fill: none !important; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.diagramm .flaeche { stroke: none; opacity: .14; }
.diagramm .ein { stroke: #cfe8e5; fill: #cfe8e5; } .diagramm .aus, .diagramm .cpu { stroke: #00e5d4; fill: #00e5d4; } .diagramm .ram { stroke: #e8c46a; fill: #e8c46a; }
.diagramm .achse { fill: var(--leise); font: 11px ui-monospace, monospace; }
.leitung { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.leitung label { margin: 0; color: var(--text); font-size: 14px; }
.leitung input[type=text] { width: 90px; }
.leitung .knopf { margin-top: 0 !important; }
@media (max-width: 800px) { .diagramme { grid-template-columns: 1fr; } }

/* 24 Stunden und Protokoll */
.zeitraum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.zeitraum .filter { margin: 0; }
.diagramme.drei { grid-template-columns: repeat(3, 1fr); }
.d-flaeche { position: relative; }
.d-achse { display: flex; justify-content: space-between; font: 11px ui-monospace, monospace; color: var(--leise); margin-top: 3px; }
.d-tip { position: absolute; top: 6px; z-index: 3; max-width: 100%; white-space: normal !important; background: #021a1dee; border: 1px solid var(--akzent); color: var(--text); font-size: 12px; padding: 5px 8px; border-radius: 6px; pointer-events: none; white-space: nowrap; }
.diagramm .marke { stroke: #e6fffb88; stroke-width: 1; vector-effect: non-scaling-stroke; }
.diagramm .zus { stroke: #00e5d4; fill: #00e5d4; }
.diagramm polyline.spitze { stroke: #00e5d4; stroke-dasharray: 3 3; stroke-width: 1; opacity: .7; }
.diagramm path.spitze { display: none; }
.l-zus { background: #00e5d4; }
.protokoll-kopf { margin-bottom: 8px; }
.tabelle-huelle { overflow-x: auto; max-height: 420px; overflow-y: auto; border: 1px solid var(--rand); border-radius: 8px; }
table.protokoll { width: 100%; border-collapse: collapse; font-size: 13px; }
table.protokoll th { position: sticky; top: 0; background: var(--fl2); text-align: left; font-weight: 600; color: var(--leise); padding: 8px 10px; white-space: nowrap; }
table.protokoll td { padding: 7px 10px; border-top: 1px solid var(--rand); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.protokoll tr.online td { background: #00e5d412; }
.marke-online { background: var(--akzent2); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 8px; }
@media (max-width: 1100px) { .diagramme.drei { grid-template-columns: 1fr; } }
