/* impulsMonitor – modernes Betriebs-Dashboard in Echtzeit.
   Desktop: alles auf einen Blick ohne Scrollen. Handy: untereinander, scrollen erlaubt. */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0a0e14;
  --bg-glanz1: rgb(79 156 249 / .10);
  --bg-glanz2: rgb(155 123 247 / .08);
  --flaeche: rgb(17 23 32 / .86);
  --flaeche2: #151c27;
  --flaeche3: #1b2431;
  --linie: rgb(255 255 255 / .07);
  --linie2: rgb(255 255 255 / .12);
  --kante-oben: rgb(255 255 255 / .05);
  --text: #eaf0f7;
  --text2: #b1bccb;
  --leise: #7c8899;
  --sehrleise: #566273;
  --ok: #3ecf8e;
  --warn: #f5b83d;
  --fehler: #ff5c64;
  --aus: #4a5565;
  --akzent: #5aa2ff;
  --akzent2: #a68bff;
  --tuerkis: #34d1d1;
  --leer: rgb(255 255 255 / .07);
  --raster: rgb(255 255 255 / .05);
  --schatten: 0 1px 0 var(--kante-oben) inset, 0 8px 24px rgb(0 0 0 / .25);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fa;
    --bg-glanz1: rgb(47 125 225 / .07);
    --bg-glanz2: rgb(124 92 224 / .05);
    --flaeche: rgb(255 255 255 / .92);
    --flaeche2: #f6f8fb;
    --flaeche3: #eef2f7;
    --linie: rgb(15 23 42 / .08);
    --linie2: rgb(15 23 42 / .14);
    --kante-oben: rgb(255 255 255 / .9);
    --text: #111827;
    --text2: #374151;
    --leise: #6b7280;
    --sehrleise: #9aa3af;
    --ok: #16a34a;
    --warn: #c47f00;
    --fehler: #dc2f3a;
    --aus: #b6bfca;
    --akzent: #2f7de1;
    --akzent2: #7c5ce0;
    --tuerkis: #0e9f9f;
    --leer: rgb(15 23 42 / .07);
    --raster: rgb(15 23 42 / .06);
    --schatten: 0 1px 2px rgb(16 24 40 / .05), 0 4px 16px rgb(16 24 40 / .05);
    color-scheme: light;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html {
  font-size: clamp(10.5px, calc(0.55vh + 0.42vw), 17px);
  -webkit-text-size-adjust: 100%;
}
body {
  background:
    radial-gradient(80rem 40rem at 0% -10%, var(--bg-glanz1), transparent 60%),
    radial-gradient(60rem 36rem at 100% 0%, var(--bg-glanz2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum", "cv11", "ss01";
  font-variant-numeric: tabular-nums;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  line-height: 1.35;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
svg[data-icon], .ico { width: 1.05em; height: 1.05em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ Kopf */
.kopf {
  display: flex; align-items: center; gap: 1.1rem;
  height: 3.7rem; flex: none; padding: 0 1.1rem;
  border-bottom: 1px solid var(--linie);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.marke { display: flex; align-items: center; gap: .65rem; }
.marke img { width: 1.85rem; height: 1.85rem; border-radius: .5rem; }
.marke b { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.marke span { display: block; font-size: .72rem; color: var(--leise); margin-top: -.08rem; }
.gesamt {
  display: inline-flex; align-items: center; gap: .55rem; min-width: 0;
  padding: .45rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  border: 1px solid var(--linie2); background: var(--flaeche2);
}
.gesamt .text { overflow: hidden; text-overflow: ellipsis; }
.gesamt.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.gesamt.warnung { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.gesamt.fehler { background: color-mix(in srgb, var(--fehler) 13%, transparent); color: var(--fehler); border-color: color-mix(in srgb, var(--fehler) 34%, transparent); animation: alarm 2.4s ease-in-out infinite; }
@keyframes alarm { 50% { box-shadow: 0 0 0 .3rem color-mix(in srgb, var(--fehler) 12%, transparent); } }
.werkzeuge { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.live { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--leise); margin-right: .3rem; }
.live b { color: var(--ok); font-weight: 650; letter-spacing: .02em; }
.live i { position: relative; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ok); }
.live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: welle 1.6s ease-out infinite; }
@keyframes welle { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
.live.weg b, .live.weg i, .live.weg i::after { color: var(--warn); background: var(--warn); }
.live.weg b { background: none; }
.live.weg i::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .live i::after, .gesamt.fehler { animation: none; } }

.umschalter { display: inline-flex; padding: .18rem; border-radius: .6rem; background: var(--flaeche2); border: 1px solid var(--linie); }
.umschalter button { border: 0; background: none; padding: .28rem .65rem; border-radius: .45rem; font-size: .8rem; color: var(--leise); cursor: pointer; white-space: nowrap; }
.umschalter button[aria-pressed="true"] { background: var(--flaeche3); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .2); }

.knopf {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--flaeche2); border: 1px solid var(--linie2); border-radius: .55rem;
  padding: .4rem .7rem; cursor: pointer; white-space: nowrap; font-size: .84rem; color: var(--text2);
  transition: border-color .15s, color .15s, background .15s; text-decoration: none;
}
.knopf:hover { border-color: var(--akzent); color: var(--text); }
.knopf:focus-visible, .dienst:focus-visible, .web:focus-visible, .status:focus-visible, .umschalter button:focus-visible, .sicherung:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.knopf.haupt { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.knopf.rund { padding: .38rem; border-radius: 50%; }

/* ------------------------------------------------------------------ Übersicht */
.uebersicht { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .7rem; padding: .8rem .9rem 0; flex: none; }
.status {
  display: flex; align-items: center; gap: .7rem; min-width: 0;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: .9rem;
  padding: .62rem .75rem; box-shadow: var(--schatten); text-decoration: none; color: inherit;
  transition: transform .15s, border-color .2s;
}
.status:hover { transform: translateY(-1px); border-color: var(--linie2); }
.status .symbol {
  width: 2.3rem; height: 2.3rem; border-radius: .7rem; flex: none; display: grid; place-items: center; font-size: 1.1rem;
  background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok);
}
.status.warnung .symbol { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.status.fehler { border-color: color-mix(in srgb, var(--fehler) 45%, var(--linie)); background: linear-gradient(135deg, color-mix(in srgb, var(--fehler) 10%, var(--flaeche)), var(--flaeche)); }
.status.fehler .symbol { background: color-mix(in srgb, var(--fehler) 18%, transparent); color: var(--fehler); }
.status.warnung { border-color: color-mix(in srgb, var(--warn) 35%, var(--linie)); }
.status .inhalt { min-width: 0; }
.status b { display: block; font-size: .74rem; font-weight: 600; color: var(--leise); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.status strong { display: block; font-size: 1rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.status small { display: block; font-size: .74rem; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ Raster */
.raster {
  flex: 1; min-height: 0; padding: .7rem .9rem .9rem;
  display: grid; gap: .7rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(0, 41fr) minmax(0, 59fr);
}
.kachel {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 1rem;
  padding: .8rem .95rem; min-height: 0; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--schatten);
  backdrop-filter: blur(8px);
}
.kachel.gestoert { border-color: color-mix(in srgb, var(--fehler) 50%, var(--linie)); }
.kachel.hinweis { border-color: color-mix(in srgb, var(--warn) 50%, var(--linie)); }
.k-oben { grid-column: span 3; }
.k-dienste { grid-column: span 6; }
.k-web { grid-column: span 3; }
.rechts-spalte { grid-column: span 3; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .7rem; min-height: 0; min-width: 0; }

.titel { display: flex; align-items: center; gap: .55rem; margin-bottom: .65rem; white-space: nowrap; min-width: 0; }
.titel .symbol { width: 1.7rem; height: 1.7rem; border-radius: .5rem; display: grid; place-items: center; background: var(--flaeche3); color: var(--text2); font-size: .9rem; flex: none; }
.titel h2 { font-size: .95rem; font-weight: 650; letter-spacing: -.01em; }
.titel .neben { margin-left: auto; font-size: .76rem; color: var(--leise); overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Ringe */
.ringe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.ring { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ring .rund { position: relative; width: 4.6rem; height: 4.6rem; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.2; }
.ring .spur { stroke: var(--leer); }
.ring .wert { stroke: var(--akzent); stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.2, .8, .2, 1), stroke .3s; }
.ring .wert.warnung { stroke: var(--warn); } .ring .wert.fehler { stroke: var(--fehler); }
.ring .mitte { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; }
.ring .mitte small { font-size: .7rem; font-weight: 500; color: var(--leise); margin-left: .05rem; }
.ring .l { margin-top: .25rem; font-size: .72rem; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Grosse Zahl (Sprachmodell) */
.gross-zeile { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.grosszahl { min-width: 0; flex: 1; }
.grosszahl .w { font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; }
.grosszahl .w small { font-size: .85rem; font-weight: 500; color: var(--leise); margin-left: .2rem; letter-spacing: 0; }
.grosszahl .l { font-size: .76rem; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gross-zeile .ring .rund { width: 3.8rem; height: 3.8rem; }
.gross-zeile .ring { flex: none; width: 4.6rem; }

/* Diagramm */
.diagramm { position: relative; margin-top: .55rem; flex: 1 1 3rem; min-height: 2.6rem; max-height: 8rem; display: flex; flex-direction: column; }
.diagramm svg { flex: 1; width: 100%; min-height: 0; overflow: visible; display: block; }
.diagramm .achse { display: flex; justify-content: space-between; font-size: .62rem; color: var(--sehrleise); margin-top: .15rem; }
.legende { display: flex; gap: .7rem; font-size: .7rem; color: var(--leise); white-space: nowrap; overflow: hidden; }
.legende span { display: inline-flex; align-items: center; gap: .3rem; }
.legende i { width: .5rem; height: .5rem; border-radius: 2px; }

.liste { display: flex; flex-direction: column; gap: .38rem; margin-top: .55rem; min-height: 0; flex: none; }
.zeile { display: flex; align-items: center; gap: .6rem; font-size: .82rem; white-space: nowrap; min-width: 0; }
.zeile .lbl { width: 7rem; flex: none; color: var(--text2); overflow: hidden; text-overflow: ellipsis; }
.zeile .n { overflow: hidden; text-overflow: ellipsis; min-width: 0; color: var(--text2); }
.zeile .r { margin-left: auto; color: var(--leise); font-size: .78rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.zeile .r b { color: var(--text); font-weight: 600; }

.balken { position: relative; height: .42rem; border-radius: 99px; background: var(--leer); overflow: hidden; flex: 1; min-width: 2.5rem; }
.balken i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--akzent) 70%, transparent), var(--akzent)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.balken i.warnung { background: var(--warn); } .balken i.fehler { background: var(--fehler); }

.punkt { width: .55rem; height: .55rem; border-radius: 50%; flex: none; background: var(--aus); }
.punkt.ok { background: var(--ok); box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--ok) 16%, transparent); }
.punkt.warnung { background: var(--warn); box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--warn) 18%, transparent); }
.punkt.fehler { background: var(--fehler); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--fehler) 24%, transparent); }

.ausfall { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.ausfall .gross { font-size: 1.2rem; font-weight: 650; color: var(--fehler); display: flex; align-items: center; gap: .5rem; }
.ausfall.hinweis .gross { color: var(--warn); }
.ausfall p { color: var(--text2); font-size: .84rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; background: var(--flaeche3); border: 1px solid var(--linie); padding: .15rem .4rem; border-radius: .3rem; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }

.modell { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; border-radius: .6rem; background: var(--flaeche2); border: 1px solid var(--linie); margin-bottom: .55rem; font-size: .84rem; white-space: nowrap; min-width: 0; }
.modell .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.modell .chip { margin-left: auto; }

.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 600; padding: .12rem .5rem; border-radius: 99px; white-space: nowrap; background: var(--flaeche3); color: var(--leise); }
.chip.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.chip.warnung { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.chip.fehler { background: color-mix(in srgb, var(--fehler) 15%, transparent); color: var(--fehler); }
.chip.laeuft { background: color-mix(in srgb, var(--akzent) 15%, transparent); color: var(--akzent); }
.chip.laeuft::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: drehen .9s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* Verfügbarkeit: 48 Felder à 30 Minuten */
.streifen { display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 1px; height: .7rem; width: 100%; }
.streifen b { border-radius: 1.5px; background: var(--leer); }
.streifen b.s0 { background: color-mix(in srgb, var(--ok) 60%, transparent); }
.streifen b.s1 { background: var(--warn); }
.streifen b.s2 { background: var(--fehler); }
.streifen.duenn { height: 3px; gap: 1px; margin-top: .25rem; }

/* ------------------------------------------------------------------ MigImp */
.instanzen { display: flex; flex-direction: column; gap: .5rem; }
.instanz { background: var(--flaeche2); border: 1px solid var(--linie); border-radius: .7rem; padding: .5rem .6rem; }
.instanz .kopfzeile { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .86rem; white-space: nowrap; min-width: 0; }
.instanz .kopfzeile .r { margin-left: auto; font-weight: 500; color: var(--leise); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; }
.arbeit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; margin-top: .35rem; }
.arbeit div { min-width: 0; }
.arbeit b { display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.arbeit b.null { color: var(--sehrleise); }
.arbeit span { display: block; font-size: .68rem; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ Dienste */
.gruppen { column-count: 3; column-gap: .65rem; flex: 1; min-height: 0; overflow: hidden; container-type: inline-size; }
.gruppe { break-inside: avoid; background: var(--flaeche2); border: 1px solid var(--linie); border-radius: .7rem; padding: .42rem .45rem .32rem; margin-bottom: .6rem; container-type: inline-size; }
.gruppe.gestoert { border-color: color-mix(in srgb, var(--fehler) 45%, var(--linie)); }
.gruppe h3 { display: flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 650; margin: 0 .3rem .15rem; white-space: nowrap; }
.gruppe h3 .chip { margin-left: auto; }
.spalten, .dienst { display: grid; grid-template-columns: .55rem minmax(0, 1fr) 2.8rem 3.6rem 2.5rem; align-items: center; gap: .4rem; white-space: nowrap; }
.spalten { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sehrleise); padding: 0 .3rem; height: 1rem; }
.spalten span, .dienst .z { text-align: right; }
.dienst { font-size: .78rem; height: 1.38rem; padding: 0 .3rem; border-radius: .4rem; cursor: pointer; }
.dienst:hover { background: var(--flaeche3); }
.dienst .n { overflow: hidden; text-overflow: ellipsis; color: var(--text2); }
.dienst .z { color: var(--leise); }
.dienst.aus { opacity: .5; }
.dienst.fehler .n { color: var(--fehler); font-weight: 600; }
.dienst.warnung .n { color: var(--warn); }
@container (max-width: 15.5rem) {
  .spalten, .dienst { grid-template-columns: .55rem minmax(0, 1fr) 2.8rem 3.6rem; }
  .spalten span:nth-child(5), .dienst .z:nth-child(5) { display: none; }
}

/* ------------------------------------------------------------------ Websites */
.tabelle { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.web { display: grid; grid-template-columns: .55rem minmax(0, 1fr) auto; column-gap: .6rem; align-items: center; padding: .3rem .35rem .25rem; border-radius: .45rem; cursor: pointer; }
.web:hover { background: var(--flaeche2); }
.web .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: .82rem; }
.web .n b { font-weight: 600; }
.web .n small { color: var(--sehrleise); margin-left: .35rem; font-size: .72rem; }
.web .z { text-align: right; font-size: .78rem; color: var(--text2); white-space: nowrap; }
.web .z small { color: var(--sehrleise); margin-left: .35rem; }
.web .z.fehler { color: var(--fehler); font-weight: 600; }
.web .streifen { grid-column: 2 / -1; }

/* ------------------------------------------------------------------ Sicherungen */
.sicherungen { display: flex; flex-direction: column; gap: .35rem; }
.sicherung { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .35rem .4rem; border-radius: .55rem; cursor: pointer; }
.sicherung:hover { background: var(--flaeche2); }
.sicherung .ico-rund { width: 1.9rem; height: 1.9rem; border-radius: .55rem; display: grid; place-items: center; font-size: .85rem; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.sicherung.warnung .ico-rund { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.sicherung.fehler .ico-rund { background: color-mix(in srgb, var(--fehler) 15%, transparent); color: var(--fehler); }
.sicherung .n { min-width: 0; }
.sicherung .n b { display: block; font-size: .83rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sicherung .n small { display: block; font-size: .72rem; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sicherung .r { text-align: right; white-space: nowrap; }
.sicherung .r b { display: block; font-size: .8rem; font-weight: 600; }
.sicherung .r small { display: block; font-size: .7rem; color: var(--leise); }
.sicherung.warnung .r b { color: var(--warn); } .sicherung.fehler .r b { color: var(--fehler); }

/* ------------------------------------------------------------------ Ereignisse */
.ereignisse { display: flex; flex-direction: column; min-height: 0; overflow: hidden; gap: .08rem; }
.tag { font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; color: var(--sehrleise); margin: .4rem 0 .15rem; }
.tag:first-child { margin-top: 0; }
.ereignis { display: grid; grid-template-columns: 1.45rem minmax(0, 1fr) auto; gap: .55rem; align-items: center; font-size: .8rem; padding: .15rem 0; }
.ereignis .ico-rund { width: 1.45rem; height: 1.45rem; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; }
.ereignis.fehler .ico-rund { background: color-mix(in srgb, var(--fehler) 15%, transparent); color: var(--fehler); }
.ereignis.gut .ico-rund { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.ereignis.neustart .ico-rund { background: color-mix(in srgb, var(--akzent) 15%, transparent); color: var(--akzent); }
.ereignis .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text2); }
.ereignis .n b { color: var(--text); font-weight: 600; }
.ereignis .t { color: var(--sehrleise); font-size: .72rem; white-space: nowrap; }
.leer { color: var(--leise); font-size: .84rem; display: flex; align-items: center; gap: .5rem; }
.leer .ico { color: var(--ok); }

/* ------------------------------------------------------------------ Dialoge */
.dialog {
  margin: auto; border: 1px solid var(--linie2); border-radius: 1rem; background: var(--flaeche2); color: var(--text);
  padding: 1.25rem 1.35rem 1.35rem; width: min(31rem, calc(100vw - 32px)); box-shadow: 0 24px 60px rgb(0 0 0 / .4); font-size: 15px;
}
.dialog::backdrop { background: rgb(5 8 12 / .55); backdrop-filter: blur(3px); }
.dialog-kopf { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.dialog-kopf h2 { font-size: 1.08rem; font-weight: 650; display: flex; align-items: center; gap: .55rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-kopf .knopf { margin-left: auto; }
.felder { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem 1.2rem; font-size: .92rem; }
.felder dt { color: var(--leise); white-space: nowrap; }
.felder dd { overflow-wrap: anywhere; }
.dialog .streifen { height: .85rem; margin-top: .35rem; }
.dialog .unter { margin-top: 1.1rem; font-size: .85rem; color: var(--leise); }
.dialog .aktionen { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.2rem; }
label { display: block; font-size: .85rem; color: var(--text2); margin: .8rem 0 .3rem; font-weight: 500; }
input {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--linie2); border-radius: .55rem; padding: .62rem .75rem;
}
input:focus { outline: 2px solid var(--akzent); outline-offset: -1px; border-color: transparent; }
.hilfe { font-size: .8rem; color: var(--leise); margin-top: .45rem; }
.meldung { margin-top: .7rem; font-size: .86rem; min-height: 1.1rem; }
.meldung.fehler { color: var(--fehler); } .meldung.ok { color: var(--ok); }

/* ------------------------------------------------------------------ Anmeldung */
.anmeldung { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; overflow: auto; width: 100%; }
.anmeldung form { width: min(25rem, 100%); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 1.1rem; padding: 2rem 1.8rem; font-size: 16px; box-shadow: 0 20px 60px rgb(0 0 0 / .3); backdrop-filter: blur(10px); }
.anmeldung .marke { margin-bottom: 1.6rem; }
.anmeldung .marke img { width: 2.5rem; height: 2.5rem; }
.anmeldung .marke b { font-size: 1.25rem; }
.anmeldung .marke span { font-size: .85rem; }
.anmeldung .knopf.haupt { width: 100%; justify-content: center; margin-top: 1.4rem; padding: .72rem; font-size: 1rem; }
.anmeldung .meldung { text-align: center; }

/* ------------------------------------------------------------------ Mittlere Bildschirme */
@media (max-width: 1250px) and (min-width: 901px) {
  .uebersicht { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .raster { grid-template-rows: minmax(0, 38fr) minmax(0, 62fr); }
}

/* ------------------------------------------------------------------ Handy und Tablet: untereinander */
@media (max-width: 900px), (max-height: 600px) {
  html { font-size: 15px; }
  body { height: auto; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; display: block; }
  .kopf { position: sticky; top: 0; z-index: 5; height: auto; padding: .6rem 16px; padding-top: max(.6rem, env(safe-area-inset-top)); gap: .5rem; }
  .marke div, .knopf span, .live span { display: none; }
  .knopf { padding: .45rem; }
  .gesamt { flex: 1 1 auto; font-size: .86rem; padding: .4rem .7rem; justify-content: center; }
  .werkzeuge { margin-left: 0; gap: .4rem; }
  .live { margin-right: 0; }
  .live b { display: none; }
  .umschalter button { padding: .3rem .45rem; font-size: .75rem; }
  .uebersicht { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 16px 0; gap: 10px; }
  .status { padding: .55rem .65rem; gap: .55rem; }
  .status .symbol { width: 2rem; height: 2rem; }
  .status:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .raster { display: flex; flex-direction: column; padding: 12px 16px 28px; gap: 12px; }
  .rechts-spalte { display: contents; }
  .kachel { overflow: visible; }
  .diagramm { flex: none; height: 4.5rem; max-height: none; }
  .gruppen { column-count: 1; overflow: visible; }
  .liste, .tabelle, .ereignisse { overflow: visible; }
  .ereignis .n { white-space: normal; }
  .gesamt .details, .titel .details { display: none; }
  .zeile.mehr { flex-direction: column; align-items: flex-start; gap: .1rem; }
  .zeile.mehr .r { margin-left: 0; white-space: normal; }
  .arbeit span { font-size: .64rem; }
}
@media (min-width: 560px) and (max-width: 900px) {
  .uebersicht { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gruppen { column-count: 2; }
}
