:root {
  --ground: #050B13;
  --sky-top: #060C16;
  --sky-bottom: #0D1B30;
  --text: #EAF0F6;
  --muted: #A3B2C3;
  --faint: #7F92A8;
  --jarvis: #9FD3E6;
  --warm: #E6B87A;
  --line: rgba(255, 255, 255, .14);
  --glas: rgba(160, 190, 220, .07);
  --glas-rand: rgba(255, 255, 255, .13);
  --strom-h: 176px;
  color-scheme: dark;
}
body.nacht {
  --ground: #03070C;
  --sky-top: #03060C;
  --sky-bottom: #07101E;
  --text: #DDE5EE;
  --muted: #8E9DAF;
  --faint: #6E8095;
  --glas: rgba(140, 170, 200, .055);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 30%, var(--sky-bottom) 0%, var(--sky-top) 58%, var(--ground) 100%) fixed;
  color: var(--text);
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: var(--jarvis); }
button { font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h2 { margin: 0; }
.klein { font-size: 12px; color: var(--faint); }
.glas {
  background: var(--glas);
  border: 1px solid var(--glas-rand);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 60px rgba(0, 0, 0, .35);
}

/* ---------- Szene (auch Login) ---------- */
.szene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.tiefe { position: absolute; border-radius: 50%; border: 1px solid #fff; }
.himmel { position: absolute; left: 0; right: 0; top: 0; height: 55vh; background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); }
.meer { position: absolute; left: 0; right: 0; top: 55vh; bottom: 0; background: var(--ground); overflow: hidden; }
.horizont { position: absolute; left: 0; right: 0; top: 55vh; height: 1px; background: var(--jarvis); opacity: .3; }

/* ---------- Raster: Kopf, Jarvis-Leiste, Bühne, Strom ---------- */
.app { position: relative; z-index: 1; height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "kopf" "leiste" "buehne" "strom"; grid-template-rows: auto auto minmax(0, 1fr) auto; }
body.leiste-unten .app { grid-template-areas: "kopf" "buehne" "strom" "leiste"; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.kopf { grid-area: kopf; }
.leiste { grid-area: leiste; }
.buehne { grid-area: buehne; }
.strom.band { grid-area: strom; }

/* ---------- Kopf ---------- */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 32px 12px; }
.gruss { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.datum { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.ansichten { display: flex; gap: 2px; padding: 4px; border-radius: 22px; background: var(--glas); border: 1px solid var(--glas-rand); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.ansichten button { background: none; border: 0; border-radius: 18px; padding: 8px 15px; font-size: 14px; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ansichten button:hover { color: var(--text); }
.ansichten button.an { background: rgba(255, 255, 255, .12); color: #fff; }
.ansichten .zahl { color: var(--warm); font-size: 13px; }
.ansichten .zahl:empty { display: none; }
.ansichten .punkt { width: 6px; height: 6px; border-radius: 50%; background: var(--jarvis); }
.ansichten .punkt.unruhig { background: var(--warm); }
.rechts { display: flex; align-items: center; gap: 6px; }
.uhr { font-size: 30px; font-weight: 200; letter-spacing: -.02em; margin-right: 8px; }
.symbol { width: 36px; height: 36px; border-radius: 18px; border: 1px solid transparent; background: none; color: var(--faint); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.symbol:hover { color: var(--text); border-color: var(--glas-rand); }

/* ---------- Jarvis-Leiste ---------- */
.leiste { position: relative; z-index: 4; padding: 6px 32px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
body.leiste-unten .leiste { padding: 8px 32px 22px; flex-direction: column-reverse; }
#frage-form { width: min(100%, 820px); display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border-radius: 30px; background: rgba(160, 190, 220, .09); border: 1px solid var(--glas-rand); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.kern-klein { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; background: radial-gradient(circle at 40% 35%, #E6F6FB 0%, var(--jarvis) 45%, #2D6F86 100%); animation: atmen 6s ease-in-out infinite; }
body.denkt .kern-klein { animation-duration: 1.2s; }
body.hoert .kern-klein, body.spricht .kern-klein { box-shadow: 0 0 0 6px rgba(159, 211, 230, .18); }
@keyframes atmen { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
.welle { display: flex; align-items: center; gap: 2px; height: 26px; width: 64px; flex-shrink: 0; }
.welle i { display: block; width: 2px; border-radius: 1px; background: var(--jarvis); }
#frage { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; outline: none; }
#frage::placeholder { color: var(--faint); }
.mic { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--jarvis); background: transparent; color: var(--jarvis); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; touch-action: none; -webkit-user-select: none; user-select: none; }
body.hoert .mic { background: var(--jarvis); color: var(--ground); }
.mic svg { pointer-events: none; }
.vorschlaege { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 28px; }
.vorschlaege button { background: none; border: 1px solid var(--glas-rand); border-radius: 14px; padding: 5px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.vorschlaege button:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.antwort { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% - 4px); width: min(calc(100% - 64px), 820px); max-height: 46vh; display: flex; flex-direction: column; overflow: hidden; background: rgba(14, 26, 42, .82); }
body.leiste-unten .antwort { top: auto; bottom: calc(100% - 4px); }
.antwort[hidden] { display: none; }
.antwort-kopf { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 0; font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.knopfreihe { display: flex; gap: 4px; }
.leise-knopf { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 12px; letter-spacing: 0; text-transform: none; padding: 4px 8px; border-radius: 10px; }
.leise-knopf:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.antwort-inhalt { padding: 10px 18px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.antwort-inhalt .frage { font-size: 13px; color: var(--faint); }
.antwort-inhalt .text { font-size: 16px; line-height: 1.55; white-space: pre-wrap; }
.antwort-inhalt .text.fehler { color: var(--warm); }
.antwort-inhalt .alt { opacity: .55; border-top: 1px solid rgba(255, 255, 255, .06); padding-top: 10px; }
.antwort-inhalt .text.wartet::after { content: "…"; animation: blinken 1.2s steps(3) infinite; }
@keyframes blinken { 50% { opacity: .3; } }

/* ---------- Bühne und Ansichten ---------- */
.buehne { position: relative; min-height: 0; padding: 8px 32px 12px; }
.ansicht { height: 100%; min-height: 0; }
.ansicht[hidden] { display: none !important; }

/* Jetzt: eine Karte nach der anderen */
.ansicht-jetzt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.stapel { position: relative; width: min(100%, 660px); }
.karte-hinten { position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .07); }
.karte-hinten.h1 { transform: translateY(-14px) scale(.95); background: rgba(160, 190, 220, .06); }
.karte-hinten.h2 { transform: translateY(-28px) scale(.9); background: rgba(160, 190, 220, .035); }
.fokus { position: relative; border-radius: 30px; padding: 34px 40px; display: flex; flex-direction: column; gap: 14px; background: rgba(160, 190, 220, .10); border-color: rgba(255, 255, 255, .16); transition: opacity .35s, transform .35s; }
.fokus.weg { opacity: 0; transform: translateY(-20px) scale(.98); }
.fokus-label { font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--warm); text-transform: uppercase; }
.fokus-label.ruhig { color: var(--jarvis); }
.fokus h2 { font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.fokus p { margin: 0; font-size: 16px; line-height: 1.55; color: #C3CEDA; }
.fokus-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; position: relative; }
.k-haupt, .k-neben, .k-jarvis { height: 46px; padding: 0 22px; border-radius: 23px; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.k-haupt { border: 0; background: var(--jarvis); color: #06121F; font-weight: 600; }
.k-neben { border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: var(--text); }
.k-jarvis { border: 1px solid var(--jarvis); background: transparent; color: var(--jarvis); }
.k-haupt:hover { filter: brightness(1.08); }
.k-neben:hover, .k-jarvis:hover { background: rgba(255, 255, 255, .06); }
.menue { position: absolute; top: calc(100% + 8px); left: 0; z-index: 3; display: flex; flex-direction: column; padding: 6px; border-radius: 16px; background: rgba(14, 26, 42, .95); border: 1px solid var(--glas-rand); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.menue button { background: none; border: 0; text-align: left; padding: 9px 14px; border-radius: 10px; color: var(--text); font-size: 14px; cursor: pointer; white-space: nowrap; }
.menue button:hover { background: rgba(255, 255, 255, .08); }
.danach { margin: 0; font-size: 13px; color: var(--faint); text-align: center; }
.fortschritt { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--faint); }
.fortschritt i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); }
.fortschritt i.voll { background: var(--jarvis); }

/* Post: Liste und Lesen */
.ansicht-post { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; }
.post-liste { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.filter { display: flex; gap: 4px; padding: 12px 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.filter button { background: none; border: 0; border-radius: 14px; padding: 6px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.filter button.an { background: rgba(255, 255, 255, .12); color: #fff; }
#post-liste { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 auto; min-height: 0; scrollbar-width: thin; }
#post-liste li.leer { padding: 24px; text-align: center; color: var(--faint); font-size: 14px; }
.mail { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .05); padding: 12px 18px; color: var(--text); cursor: pointer; }
.mail:hover { background: rgba(255, 255, 255, .04); }
.mail.an { background: rgba(159, 211, 230, .10); }
.mail .zeile1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.mail .von { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail.neu .von { font-weight: 700; }
.mail.neu .von::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--jarvis); margin-right: 8px; vertical-align: 1px; }
.mail .wann { font-size: 12px; color: var(--faint); flex-shrink: 0; }
.mail .betreff { display: block; font-size: 13.5px; color: #C9D4E0; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail .art { font-size: 11px; color: var(--faint); }
.gruppe { padding: 10px 18px 4px; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.post-lesen { min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 26px 30px; gap: 14px; }
.post-lesen .leer-hinweis { margin: auto; max-width: 360px; text-align: center; color: var(--faint); font-size: 15px; line-height: 1.5; }
.post-lesen .absender { font-size: 13px; color: var(--muted); }
.post-lesen h2 { font-size: 24px; font-weight: 600; line-height: 1.25; }
.post-lesen .aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.post-lesen .aktionen button, .post-lesen .aktionen a { height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--text); font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.post-lesen .aktionen .jarvis { border-color: var(--jarvis); color: var(--jarvis); }
.post-lesen .aktionen button:hover, .post-lesen .aktionen a:hover { background: rgba(255, 255, 255, .06); }
.post-lesen .koerper { flex: 1 1 auto; min-height: 0; overflow-y: auto; white-space: pre-wrap; font-size: 15px; line-height: 1.6; color: #D3DCE6; padding-right: 8px; scrollbar-width: thin; overflow-wrap: anywhere; }
.post-lesen .anhang { font-size: 13px; color: var(--faint); }

/* Eingang (Darstellung der Stücke übernommen) */
.ansicht-eingang { display: flex; justify-content: center; }
.eingang-rahmen { width: min(100%, 880px); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.eingang-kopf { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 24px 8px; }
.eingang-kopf h2 { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.eingang-kopf a { font-size: 13px; color: var(--faint); text-decoration: none; }
.eingang-kopf a:hover { color: var(--text); }
.stuecke { list-style: none; margin: 0; padding: 4px 20px 16px; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.stuecke li.leer { text-align: center; color: var(--muted); font-size: 15px; padding: 24px 0; }
.stueck { padding: 14px 4px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); transition: opacity .8s; }
.stueck:last-child { border-bottom: 0; }
.stueck.weg { opacity: .35; }
.stueck.arbeitet { opacity: .6; }
.stueck-kopf { display: flex; align-items: baseline; gap: 12px; }
.stueck h3 { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 500; line-height: 1.35; }
.stueck h3 a { color: var(--text); text-decoration: none; }
.stueck h3 a:hover { color: var(--jarvis); }
.stueck .meta { flex-shrink: 0; font-size: 12px; color: var(--faint); white-space: nowrap; }
.stueck .kurz { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.stueck .hinweis-zeile { margin: 6px 0 0; font-size: 13px; color: var(--warm); }
.stueck.sensibel .kurz { color: var(--warm); }
.stueck .bezuege { margin: 6px 0 0; font-size: 13px; color: var(--faint); }
.stueck .bezuege a { color: var(--jarvis); text-decoration: none; }
.stueck .bezuege a:hover { text-decoration: underline; }
.stueck .erledigt { margin: 0; font-size: 14px; color: var(--jarvis); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.knopf { background: none; border: 1px solid var(--glas-rand); border-radius: 14px; padding: 5px 12px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.knopf:hover:not(:disabled) { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.knopf.empfohlen { border-color: rgba(159, 211, 230, .5); color: var(--jarvis); }
.knopf.empfohlen:hover:not(:disabled) { background: rgba(159, 211, 230, .12); color: var(--jarvis); }
.knopf.leise { border-color: transparent; color: var(--faint); }
.knopf:disabled { cursor: default; }
.volltext { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .06); }
.volltext ul { margin: 0 0 10px; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.volltext pre { margin: 0; max-height: 260px; overflow-y: auto; white-space: pre-wrap; font: inherit; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* Wissen */
.wissen { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.wissen-kopf { display: flex; align-items: center; gap: 12px; padding: 16px 20px 0; }
.wissen-kopf h2 { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.wissen-kopf input { margin-left: auto; width: 200px; height: 32px; border-radius: 16px; border: 1px solid var(--glas-rand); background: rgba(0, 0, 0, .18); color: var(--text); padding: 0 12px; font: inherit; font-size: 13px; outline: none; }
.wissen canvas { flex: 1 1 auto; width: 100%; min-height: 0; display: block; }
.wissen .hinweis { position: absolute; right: 18px; bottom: 12px; font-size: 11px; color: var(--faint); pointer-events: none; }
.tipp { position: absolute; pointer-events: none; background: rgba(10, 20, 32, .9); border: 1px solid var(--glas-rand); border-radius: 10px; padding: 6px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); }
.tipp small { display: block; color: var(--faint); font-size: 11px; }

/* Zuhause: Leitstand */
.ansicht-zuhause { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 18px; }
.leitstand { display: flex; flex-direction: column; gap: 14px; padding: 18px 22px; min-height: 0; overflow: hidden; }
.leit-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.leit-kopf h2, .last h3 { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.gross-zahl { font-size: 22px; font-weight: 300; }
.gross-zahl small { font-size: 13px; color: var(--faint); }
.topo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; flex: 1 1 auto; min-height: 0; }
.topo-wurzel { position: relative; z-index: 1; }
.knoten-pille { display: inline-block; padding: 7px 16px; border-radius: 16px; font-size: 13px; color: var(--muted); border: 1px solid var(--glas-rand); background: rgba(0, 0, 0, .25); }
.topo-linien { width: 66.6%; height: 22px; border: 1px solid rgba(159, 211, 230, .3); border-bottom: 0; border-radius: 12px 12px 0 0; margin-top: 10px; position: relative; }
.topo-linien::before { content: ""; position: absolute; left: 50%; top: -11px; height: 11px; border-left: 1px solid rgba(159, 211, 230, .3); }
.topo-linien::after { content: ""; position: absolute; left: 50%; top: 0; height: 22px; border-left: 1px solid rgba(159, 211, 230, .3); }
.hosts { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1 1 auto; min-height: 0; }
.host { border-radius: 18px; padding: 14px 16px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .09); display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: hidden; }
.host.aus { border-color: rgba(230, 184, 122, .5); }
.host-kopf { display: flex; align-items: center; gap: 8px; }
.host-kopf strong { font-size: 15px; font-weight: 600; }
.host-kopf .rolle { font-size: 12px; color: var(--faint); margin-left: auto; }
.status { width: 8px; height: 8px; border-radius: 50%; background: #6FD3A8; box-shadow: 0 0 0 3px rgba(111, 211, 168, .15); flex-shrink: 0; }
.status.warn { background: var(--warm); box-shadow: 0 0 0 3px rgba(230, 184, 122, .2); }
.status.unbekannt { background: var(--faint); box-shadow: none; }
.cpu-zeile { display: flex; align-items: baseline; justify-content: space-between; }
.cpu-zeile .wert { font-size: 26px; font-weight: 300; }
.cpu-zeile .wert small { font-size: 12px; color: var(--faint); margin-left: 4px; }
.kurve { width: 100%; height: 38px; display: block; }
.messung { display: grid; grid-template-columns: 52px minmax(0, 1fr) 46px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.balken { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.balken i { display: block; height: 100%; border-radius: 2px; background: var(--jarvis); }
.balken i.hoch { background: var(--warm); }
.messung .zahl { text-align: right; color: var(--text); }
.host-fuss { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--faint); }
.gaeste { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.gaeste span { font-size: 11px; padding: 3px 8px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--muted); white-space: nowrap; }
.last { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.last ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.last li { display: grid; grid-template-columns: minmax(0, 1fr) 60px 52px; gap: 8px; align-items: center; font-size: 12.5px; }
.last li span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.last li .zahl { text-align: right; color: var(--muted); }
.leit-rechts { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: hidden; }
.leit-dienste { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
#dienst-gruppen { display: flex; flex-direction: column; gap: 10px; }
.dienst-gruppe { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: start; gap: 10px; }
.dienst-gruppe .name { line-height: 14px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.punkte { display: flex; flex-wrap: wrap; gap: 6px; }
.punkte i { width: 14px; height: 14px; border-radius: 4px; background: rgba(111, 211, 168, .75); cursor: default; }
.punkte i.warn { background: var(--warm); }
.punkte i.pause { background: rgba(255, 255, 255, .15); }
.leit-auffaellig { margin: 0; font-size: 13px; color: var(--warm); }
.leit-auffaellig:empty { display: none; }
.leit-klein { padding: 16px 22px; display: flex; flex-direction: column; gap: 10px; }
.leit-klein ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.leit-klein li { display: flex; align-items: center; gap: 8px; }
.leit-klein li .rechts-text { margin-left: auto; font-size: 12px; color: var(--faint); }
.leit-klein li.ruhig { color: var(--faint); }
#hinweise li { color: var(--warm); }
#hinweise li.ruhig { color: var(--faint); }
.zuhause-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.zuhause-links a { padding: 5px 12px; border-radius: 14px; border: 1px solid var(--glas-rand); font-size: 12px; color: var(--muted); text-decoration: none; }
.zuhause-links a:hover { color: var(--text); }

/* ---------- Strom ---------- */
.strom { position: relative; overflow: hidden; }
.strom.band { height: var(--strom-h); border-top: 1px solid rgba(255, 255, 255, .07); background: linear-gradient(180deg, rgba(8, 18, 32, 0), rgba(8, 18, 32, .65)); }
body:not(.zeigt-jetzt) .strom.band { display: none; }
.strom.gross { height: 100%; border-radius: 22px; border: 1px solid var(--glas-rand); background: rgba(8, 18, 32, .45); }
.strom .seite { position: absolute; top: 12px; font-size: 11px; font-weight: 600; letter-spacing: .18em; color: #6E8095; }
.strom .aufklappen { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); background: none; border: 0; color: var(--faint); font-size: 12px; cursor: pointer; padding: 4px 10px; border-radius: 10px; }
.strom .aufklappen:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.strom .wasser { position: absolute; left: 0; right: 0; height: 1px; background-image: linear-gradient(90deg, rgba(159, 211, 230, .22) 0 22px, transparent 22px 48px); background-size: 48px 1px; animation: fliessen 6s linear infinite; }
@keyframes fliessen { to { background-position: -48px 0; } }
.strom .bahn-name { position: absolute; left: 32px; font-size: 11px; color: #6E8095; transform: translateY(-140%); }
.strom .jetzt-linie { position: absolute; width: 1px; background: linear-gradient(180deg, transparent, rgba(159, 211, 230, .8) 18%, rgba(159, 211, 230, .8) 82%, transparent); }
.strom .jetzt-kern { position: absolute; width: 20px; height: 20px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, #E6F6FB 0%, var(--jarvis) 45%, #2D6F86 100%); box-shadow: 0 0 0 6px rgba(159, 211, 230, .12); }
.strom .achse { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: #6E8095; white-space: nowrap; }
.strom .achse-linie { position: absolute; width: 1px; background: rgba(255, 255, 255, .04); }
.ding { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 14px; background: rgba(160, 190, 220, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; white-space: nowrap; color: var(--text); cursor: pointer; max-width: 260px; }
.ding:hover { border-color: rgba(255, 255, 255, .3); z-index: 2; }
.ding .marke { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; }
.ding.frist .marke { border-radius: 2px; }
.ding.geb .marke { background: none !important; border: 1.5px solid var(--warm); }
.ding .text { overflow: hidden; text-overflow: ellipsis; }
.ding .meta { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.ding.frist .meta, .ding.bald .meta { color: var(--warm); }
.ding.bald { background: rgba(230, 184, 122, .14); border-color: rgba(230, 184, 122, .55); animation: puls 2.8s ease-out infinite; }
@keyframes puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 184, 122, .45); } 50% { box-shadow: 0 0 0 8px rgba(230, 184, 122, 0); } }
.strom.gross .ding { font-size: 13.5px; padding: 7px 13px 7px 10px; max-width: 320px; }

/* ---------- Login ---------- */
.login { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login form { width: 360px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 32px; }
.login .kern { position: relative; margin: 0 auto 14px; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.login .kern span { position: absolute; border-radius: 50%; border: 1px solid var(--jarvis); }
.login .kern .r1 { inset: 0; opacity: .22; }
.login .kern .r2 { inset: 16px; opacity: .45; }
.login .kern .core { position: static; width: 56px; height: 56px; border: 0; background: radial-gradient(circle at 40% 35%, #E6F6FB 0%, var(--jarvis) 45%, #2D6F86 100%); animation: atmen 6s ease-in-out infinite; }
.login label { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.login input { height: 44px; border-radius: 12px; border: 1px solid var(--glas-rand); background: rgba(0, 0, 0, .2); color: var(--text); padding: 0 14px; font: inherit; font-size: 16px; }
.login button { height: 44px; border-radius: 22px; border: 1px solid var(--jarvis); background: transparent; color: var(--jarvis); font: inherit; font-size: 15px; cursor: pointer; margin-top: 8px; }
.login button:hover { background: var(--jarvis); color: var(--ground); }
.login .fehler { min-height: 20px; font-size: 14px; color: var(--warm); margin: 0; }

/* ---------- Kleine Bildschirme ---------- */
@media (max-width: 1000px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100vh; }
  .kopf { flex-wrap: wrap; padding: 16px; }
  .ansichten { order: 3; width: 100%; overflow-x: auto; }
  .leiste, body.leiste-unten .leiste { padding: 8px 16px; }
  .buehne { padding: 8px 16px; }
  .ansicht { height: auto; min-height: 60vh; }
  .ansicht-post, .ansicht-zuhause { grid-template-columns: 1fr; }
  .hosts { grid-template-columns: 1fr; }
  .post-liste { max-height: 50vh; }
  .wissen { height: 70vh; }
  .welle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
