/* ============================================================
   Carely – Betreiber-Konsole (ops.engelimalltag-vie.de) · Stilblatt
   ------------------------------------------------------------
   Anordnung wie die Konsole des AMDEX-Projekts (Seitenleiste mit Gruppen und Zählern, Lage-Kopf mit pulsierendem
   Punkt, Kacheln mit Seitenstreifen, „Was zu tun ist“, Bereiche offen, lange Listen aufklappbar). Farben, Schriften,
   Abstände und Hell/Dunkel kommen AUSSCHLIESSLICH aus den Tokens von carely.css (Marke #193851, Gold nur als Schmuck,
   thema.js) – hier stehen keine eigenen Farbwerte. Lädt NACH carely.css.
   Kein style-Attribut (CSP style-src 'self'). Bewegung nur transform/opacity, bei „weniger Bewegung“ aus.
   Zustand nie nur über Farbe: jeder Punkt hat ein Wort daneben.
   ============================================================ */

body.ops { font-size: 15px; }
body.ops .ico { width: 18px; height: 18px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }
.o-fehlertext { color: var(--schlecht); font-weight: 600; }
.o-einheit { font: 600 .95rem var(--schrift); color: var(--text-3); margin-left: 2px; }

/* ---- Aufbau: Seitenleiste + Inhalt ---- */
.o-app { display: grid; grid-template-columns: var(--leiste) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(90deg, var(--flaeche) calc(var(--leiste) - 1px), var(--rand) calc(var(--leiste) - 1px) var(--leiste), transparent var(--leiste)); }
.o-leiste { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--abstand-1);
  padding: var(--abstand-5) var(--abstand-4) var(--abstand-4); background: var(--flaeche); border-right: 1px solid var(--rand); }
.o-marke { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; color: var(--text); text-decoration: none; }
.o-marke b { display: block; font: 650 1.2rem/1.1 var(--titel); letter-spacing: -.02em; }
.o-marke small { display: block; font-size: .8rem; color: var(--text-3); margin-top: 3px; }
.o-marke .marke-zeichen { width: 34px; height: 34px; }
.o-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.o-nav-gruppe { font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 14px 12px 6px; }
.o-nav-punkt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: var(--radius-k); color: var(--text-2); text-decoration: none; font-weight: 500; }
.o-nav-punkt:hover { background: var(--ueber); color: var(--text); }
.o-nav-punkt[aria-current="page"] { background: var(--marke-weich); color: var(--marke); font-weight: 650; }
.o-nav-punkt[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--gold); }
.o-zahl { margin-left: auto; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: var(--radius-r); background: var(--flaeche-3); color: var(--text-2); font-size: .78rem; font-weight: 700;
  font-variant-numeric: tabular-nums; }
.o-zahl.warn { background: var(--warn-weich); color: var(--warn); }
.o-zahl.schlecht { background: var(--schlecht-weich); color: var(--schlecht); }
.o-leiste-fuss { border-top: 1px solid var(--rand); padding-top: var(--abstand-3); display: grid; gap: var(--abstand-2); }
.o-wer { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-fuss-knoepfe { display: flex; flex-wrap: wrap; gap: 4px; }
.o-fuss-knoepfe form { margin: 0; }
.o-fuss-knoepfe .knopf { justify-content: flex-start; }

.o-haupt { min-width: 0; display: flex; flex-direction: column; }
.o-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: var(--abstand-3); padding: var(--abstand-5) clamp(16px, 3vw, 40px) 0;
  max-width: 1360px; width: 100%; }
.o-kopf h1 { font-size: 1.55rem; }
.o-kopf .o-stand { margin-left: auto; font-size: .875rem; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.o-kopf .o-stand.o-stand-alt { white-space: normal; color: var(--warn); background: var(--warn-weich); border-radius: 8px; padding: 2px 10px; font-weight: 600; }
.o-kopf .o-stand.o-stand-alt a { color: inherit; }
.o-inhalt { padding: var(--abstand-5) clamp(16px, 3vw, 40px) var(--abstand-7); max-width: 1360px; width: 100%; }
.o-inhalt > * + * { margin-top: var(--abstand-4); }
.o-unten { display: none; }

/* ---- Punkte, Chips (Ergänzungen zu carely.css) ---- */
.punkt { position: relative; }
.punkt.info { background: var(--marke); }
.punkt.puls::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0;
  animation: o-puls 1.8s var(--kurve) infinite; }
.punkt.gut.puls { color: var(--gut-punkt); } .punkt.warn.puls { color: var(--warn-punkt); } .punkt.schlecht.puls { color: var(--schlecht-punkt); }
@keyframes o-puls { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
.chip.gut { background: var(--gut-weich); color: var(--gut); }
.chip.warn { background: var(--warn-weich); color: var(--warn); }
.chip.schlecht { background: var(--schlecht-weich); color: var(--schlecht); }
.knopf.o-kritisch { border-color: color-mix(in srgb, var(--warn-punkt) 60%, var(--rand-2)); }
.knopf.klein { white-space: nowrap; }
.o-knopf-form { margin: 0; flex: none; }
.o-knopf-reihe { display: flex; flex-wrap: wrap; gap: var(--abstand-2); }

/* ---- Lage-Kopf ("die eine Aussage") ---- */
.o-lage { position: relative; overflow: hidden; display: flex; align-items: center; gap: var(--abstand-4); padding: 20px 22px;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten-2); }
.o-lage::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 170px at 0% 0%, var(--o-held, transparent), transparent 70%); }
.o-lage.ok { --o-held: var(--gut-weich); }
.o-lage.warn { --o-held: var(--warn-weich); border-color: color-mix(in srgb, var(--warn-punkt) 30%, var(--rand)); }
.o-lage.bad { --o-held: var(--schlecht-weich); border-color: color-mix(in srgb, var(--schlecht-punkt) 35%, var(--rand)); }
.o-lage > * { position: relative; }
.o-lage h2 { font-size: 1.25rem; margin-bottom: 2px; }
.o-lage p { color: var(--text-2); }
.o-lage-zeichen { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--flaeche-2); border: 1px solid var(--rand); }
.o-lage-zeichen .punkt { width: 12px; height: 12px; }

/* ---- "Braucht dich": eine Zeile, ein Knopf (oder der Grund) ---- */
.o-meldungen { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--abstand-2); }
.o-meldung { position: relative; overflow: hidden; display: flex; align-items: center; flex-wrap: wrap; gap: var(--abstand-3) var(--abstand-4);
  padding: 14px 16px 14px 20px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius-k); box-shadow: var(--schatten-1); }
.o-meldung::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--neutral-punkt); }
.o-meldung.bad::before { background: var(--schlecht-punkt); } .o-meldung.warn::before { background: var(--warn-punkt); }
.o-meldung-text { flex: 1 1 320px; min-width: 0; }
.o-meldung-text p { color: var(--text-2); margin-top: 2px; }
.o-meldung-knoepfe { display: flex; gap: var(--abstand-2); flex-wrap: wrap; align-items: center; }
.o-meldung.gesehen { background: var(--flaeche-2); box-shadow: none; }
.o-meldung.gesehen::before { opacity: .6; }
.o-meldung.gesehen strong { color: var(--text-2); }
.o-abschnitt { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 650; color: var(--text-3); }
.o-grund { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; color: var(--text-2); font-size: .92rem; }
.o-grund .ico { color: var(--gut); margin-top: 3px; }
.o-ruhig { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--flaeche); border: 1px solid var(--rand);
  border-radius: var(--radius-k); color: var(--text-2); }
.o-leer { color: var(--text-3); font-style: italic; }
.o-leer-fehler { color: var(--schlecht); font-style: normal; font-weight: 600; }
.o-hinweis-text { color: var(--text-2); max-width: 80ch; }
.o-schmal { max-width: 520px; }

/* ---- Kacheln mit Seitenstreifen ---- */
.o-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--abstand-3); }
.o-start-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1201px) { .o-kacheln.o-fuenf { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.o-kachel { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: 14px 16px 14px 20px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius);
  box-shadow: var(--schatten-1); color: var(--text); text-decoration: none; transition: transform var(--dauer-k) var(--kurve), box-shadow var(--dauer-k); }
a.o-kachel:hover { transform: translateY(-1px); box-shadow: var(--schatten-2); border-color: var(--rand-2); }
.o-kachel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--neutral-punkt); }
.o-kachel.ok::before { background: var(--gut-punkt); } .o-kachel.warn::before { background: var(--warn-punkt); }
.o-kachel.bad::before { background: var(--schlecht-punkt); } .o-kachel.info::before { background: var(--marke); opacity: .7; }
.o-kachel-kopf { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--text-2); }
.o-kachel-kopf .o-weiter { margin-left: auto; color: var(--text-3); transition: transform var(--dauer-k); }
a.o-kachel:hover .o-weiter { transform: translateX(2px); color: var(--marke); }
.o-kachel-wert { font: 600 1.45rem/1.25 var(--titel); letter-spacing: -.015em; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.o-kachel.ok .o-kachel-wert { color: var(--gut); } .o-kachel.warn .o-kachel-wert { color: var(--warn); }
.o-kachel.bad .o-kachel-wert { color: var(--schlecht); } .o-kachel.unbekannt .o-kachel-wert, .o-kachel.info .o-kachel-wert { color: var(--text-2); }
.o-kachel-unter { font-size: .875rem; color: var(--text-3); overflow-wrap: anywhere; }
.o-zur-seite { min-height: 108px; }

/* ---- Was zu tun ist ---- */
.o-tun-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: var(--abstand-2); }
.o-tun-kopf h2, .o-tun-kopf h3 { font-size: 1.1rem; }
.o-tun-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--abstand-2); }
.o-tun-punkt { position: relative; overflow: hidden; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  padding: 12px 14px 12px 20px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius-k); box-shadow: var(--schatten-1); }
.o-tun-punkt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--neutral-punkt); }
.o-tun-punkt.bad::before { background: var(--schlecht-punkt); }
.o-tun-punkt.warn::before, .o-tun-punkt.geplant::before { background: var(--warn-punkt); }
.o-tun-text { flex: 1 1 260px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.o-tun-grund { display: block; font-weight: 400; color: var(--text-2); font-size: .92rem; margin-top: 2px; }

/* ---- Bereiche: offene Karten mit Kernzeilen, zwei Spalten ---- */
.o-bkarten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--abstand-4); align-items: start; }
.o-bspalte { display: grid; gap: var(--abstand-4); min-width: 0; }
.o-bkarte, .o-kern { display: grid; gap: var(--abstand-3); min-width: 0; padding: var(--abstand-4) var(--abstand-5) var(--abstand-5);
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten-1); scroll-margin-top: 16px; }
.o-bkarte > *, .o-kern > * { min-width: 0; margin: 0; }
.o-bkarte:target { border-color: var(--marke); box-shadow: 0 0 0 1px var(--marke), var(--schatten-2); }
.o-bkarte-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.o-bkarte-kopf h2 { font-size: 1.1rem; }
.o-bkarte h3 { font-size: 1rem; color: var(--text-2); }
.o-detail-stand { margin-left: auto; font-size: .875rem; color: var(--text-3); }
.o-detail-stand.veraltet { color: var(--warn); font-weight: 600; }
.o-bwerte { display: grid; }
.o-bwert { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; padding: 8px 2px; border-top: 1px solid var(--rand); }
.o-bwerte > .o-bwert:first-child { border-top: 0; }
.o-bwert > .punkt { align-self: flex-start; margin-top: 7px; }
.o-bwert-name { flex: 1 1 150px; min-width: 0; font-weight: 600; }
.o-bwert-wert { flex: 0 1 auto; min-width: 0; max-width: 100%; margin-left: auto; text-align: right; color: var(--text-2); overflow-wrap: anywhere; }
.o-bwerte-zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.o-bwerte-zwei > .o-bwert:nth-child(2) { border-top: 0; }
.o-baktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.o-baktion { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.o-baktion-text { font-size: .92rem; font-weight: 600; color: var(--text-2); }
.o-bliste > summary { cursor: pointer; padding: 4px 0; font-weight: 600; color: var(--marke); min-height: 32px; }
.o-bliste[open] > summary { margin-bottom: 8px; }
.o-bliste-text { margin: 0 0 6px; color: var(--text-2); overflow-wrap: anywhere; }
.o-bliste .tabelle { table-layout: fixed; }
.o-bliste .tabelle th, .o-bliste .tabelle td { overflow-wrap: anywhere; }
.o-kompakt th, .o-kompakt td { padding: 8px 12px; }
.o-kompakt th { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.o-kompakt tbody th { position: static; background: none; color: var(--text); font-size: .95rem; text-align: left; font-weight: 600; }
.o-abgleich th, .o-abgleich td { padding: 8px 8px; }
.o-abgleich td { white-space: nowrap; }
.o-abgleich .chip { min-height: 22px; padding: 0 8px; }
.o-funde { margin-top: 4px; }
.o-funde > summary { cursor: pointer; font-size: .875rem; color: var(--marke); font-weight: 600; }
.o-funde-gruppe { margin-top: 8px; }

/* ---- Auslastung ---- */
.o-drei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--abstand-2); }
.o-drei-teil { background: var(--flaeche-2); border: 1px solid var(--rand); border-radius: var(--radius-k); padding: 10px 12px; min-width: 0; }
.o-drei-teil .k { font-size: .875rem; color: var(--text-3); }
.o-drei-teil .v { font: 600 1.15rem/1.3 var(--titel); font-variant-numeric: tabular-nums; }
.o-drei-teil .f { font-size: .875rem; color: var(--text-3); }
.o-drei-teil.ok .v { color: var(--gut); } .o-drei-teil.warn .v { color: var(--warn); } .o-drei-teil.bad .v { color: var(--schlecht); }

/* ---- Kernpunkte (Sicherung, Sicherheit, Zugänge) ---- */
.o-kv { display: grid; }
.o-kv-zeile { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 9px 2px; border-top: 1px solid var(--rand); }
.o-kv-zeile:first-child { border-top: 0; }
.o-kv-k { flex: 1 1 200px; min-width: 0; font-weight: 600; }
.o-kv-v { flex: 0 1 auto; min-width: 0; color: var(--text-2); overflow-wrap: anywhere; }
.o-unterkopf { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin-top: 6px; }
.o-zeilen { display: grid; gap: var(--abstand-2); }
.o-zeile { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; background: var(--flaeche-2);
  border: 1px solid var(--rand); border-radius: var(--radius-k); }
.o-zeile-text { flex: 1 1 240px; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.o-zeile-text > span { color: var(--text-2); overflow-wrap: anywhere; }
.o-bereiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 10px 28px; }
.o-bereich-block { min-width: 0; display: grid; align-content: start; }
.o-ereignis.st-alarm { border-left: 4px solid var(--schlecht-punkt); background: var(--schlecht-weich); }
.o-ereignis.st-warnung { border-left: 4px solid var(--warn-punkt); }
.o-ereignis.st-alarm strong { color: var(--schlecht); }
.o-ereignis-zeit { font-size: .875rem; color: var(--text-3); white-space: nowrap; }
.o-ereignis.o-erledigt { opacity: .65; }
.o-erledigt-grund { display: block; margin-top: 2px; }
.o-gesehen-alarm > summary { list-style: none; cursor: pointer; }
.o-gesehen-alarm > summary::-webkit-details-marker { display: none; }
.o-gesehen-alarm[open] { flex: 1 1 100%; min-width: 0; }
.o-gesehen-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; max-width: 520px; }
.o-gesehen-form > .klein { flex: 1 1 100%; }

/* ---- Aufklappbare Bereiche ---- */
.o-detail { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten-1); scroll-margin-top: 16px; }
.o-detail-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 14px 20px; min-height: 48px; cursor: pointer; list-style: none; }
.o-detail-kopf::-webkit-details-marker { display: none; }
.o-detail-kopf::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(-45deg); transition: transform var(--dauer-k); flex: none; }
.o-detail[open] > .o-detail-kopf::before { transform: rotate(45deg); }
.o-detail-titel { font: 600 1.05rem var(--titel); }
.o-detail-inhalt { padding: 0 20px 18px; display: grid; gap: var(--abstand-3); }
.o-detail-inhalt > * { min-width: 0; margin: 0; }

/* ---- ⓘ Erklärung ---- */
.o-info { flex: none; }
.o-info > summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; color: var(--text-3); font-size: 1rem; }
.o-info > summary::-webkit-details-marker { display: none; }
.o-info > summary:hover, .o-info[open] > summary { color: var(--marke); background: var(--marke-weich); }
.o-info[open] { flex-basis: 100%; order: 99; }
.o-info-text { margin-top: 6px; padding: 10px 14px; border-radius: var(--radius-k); background: var(--flaeche-2); border: 1px solid var(--rand);
  color: var(--text-2); font-size: .92rem; max-width: 80ch; }
.o-info-text p { margin: 0; }

/* ---- Läuft gerade ---- */
.o-lauf { position: relative; overflow: hidden; display: grid; gap: 8px; padding: 16px 20px 16px 26px; background: var(--flaeche);
  border: 1px solid var(--rand); border-radius: var(--radius); box-shadow: var(--schatten-2); scroll-margin-top: 16px; }
.o-lauf::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--neutral-punkt); }
.o-lauf.warn { border-color: color-mix(in srgb, var(--warn-punkt) 45%, var(--rand)); background: linear-gradient(100deg, var(--warn-weich), var(--flaeche) 55%); }
.o-lauf.warn::before { background: var(--warn-punkt); }
.o-lauf.ok { border-color: color-mix(in srgb, var(--gut-punkt) 40%, var(--rand)); background: linear-gradient(100deg, var(--gut-weich), var(--flaeche) 55%); }
.o-lauf.ok::before { background: var(--gut-punkt); }
.o-lauf.bad { border-color: color-mix(in srgb, var(--schlecht-punkt) 45%, var(--rand)); background: linear-gradient(100deg, var(--schlecht-weich), var(--flaeche) 55%); }
.o-lauf.bad::before { background: var(--schlecht-punkt); }
.o-lauf > * { min-width: 0; margin: 0; }
.o-lauf-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.o-lauf-kopf h2 { flex: 1 1 240px; min-width: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.o-lauf-ziel { font-weight: 500; color: var(--text-2); }
.o-lauf-zeit { font-size: .92rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.o-schritte { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.o-schritte li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 12px 4px 8px; border-radius: var(--radius-r);
  font-size: .9rem; color: var(--text-2); background: var(--flaeche-2); border: 1px solid var(--rand); }
.o-schritt-zeichen { flex: none; width: 1.2em; text-align: center; font-weight: 800; }
.o-schritte li.ok { color: var(--gut); background: var(--gut-weich); border-color: transparent; }
.o-schritte li.laeuft { color: var(--warn); background: var(--warn-weich); font-weight: 700; }
.o-schritte li.fehler { color: var(--schlecht); background: var(--schlecht-weich); font-weight: 700; }
.o-schritte li.uebersprungen { color: var(--text-3); border-style: dashed; }
.o-lauf-meldung { overflow-wrap: anywhere; }
.o-lauf-hinweis { color: var(--text-3); }

/* ---- Bestätigungsfenster ---- */
.o-dialog { width: min(500px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--rand);
  border-radius: var(--radius); background: var(--flaeche); color: var(--text); box-shadow: var(--schatten-3); }
.o-dialog::backdrop { background: var(--hinter); }
.o-bestaetigen-form { padding: var(--abstand-5); display: grid; gap: var(--abstand-3); }
.o-bestaetigen-form h2 { font-size: 1.25rem; }
.o-dlg-was { color: var(--text-2); }
.o-vorab { border: 1px solid var(--rand); border-radius: var(--radius-k); padding: 10px 12px; background: var(--flaeche-2); }
.o-urteil { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-k); font-weight: 600; margin-bottom: 6px; }
.o-urteil.gut { background: var(--gut-weich); color: var(--gut); } .o-urteil.warn { background: var(--warn-weich); color: var(--warn); }
.o-urteil.schlecht { background: var(--schlecht-weich); color: var(--schlecht); }
.o-vorab-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .92rem; }
.o-vorab-liste li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 3px 0; }
.o-vorab-liste .wert { font-weight: 600; color: var(--text-2); text-align: right; }
.o-zeichen { font-weight: 800; text-align: center; color: var(--text-3); }
.o-vorab-liste .gut .o-zeichen, .o-vorab-liste .gut .wert { color: var(--gut); }
.o-vorab-liste .warn .o-zeichen, .o-vorab-liste .warn .wert { color: var(--warn); }
.o-vorab-liste .schlecht .o-zeichen, .o-vorab-liste .schlecht .wert { color: var(--schlecht); }
.o-dlg-felder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.o-pw { flex: 1 1 160px; min-width: 0; min-height: 44px; }
.o-code { font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.o-code-hinweis { color: var(--text-2); }
.o-dlg-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.o-leise { margin-left: auto; }
.o-bestaetigen-seite { max-width: 540px; padding: 0; }

/* ---- Filter, Änderungen ---- */
.o-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.o-filter label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.o-filter .eingabe { min-height: 44px; padding: 6px 10px; }
.o-diff-zeile { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.o-diff-feld { font-size: .85rem; color: var(--text-3); min-width: 90px; }
.o-vorher { color: var(--text-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-3) 50%, transparent); }
.o-nachher { color: var(--text); font-weight: 600; }
.o-pfeil { color: var(--text-3); }

/* ---- Wartung ankündigen ---- */
.o-wartung-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.o-wartung-form label { display: inline-flex; align-items: center; gap: 6px; }
.o-wartung-form .eingabe { min-height: 40px; padding: 4px 8px; font-size: .95rem; }

/* ---- Live-Aktualisierung (ops-live.js) ---- */
html.o-live-an { overflow-anchor: none; }
.o-live-neu { animation: o-live-neu 1.8s ease-out; }
@keyframes o-live-neu { 0%, 35% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 55%, transparent); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* ---- Anmeldung der Konsole: ruhiges Punkteraster (ops-fx.js) ---- */
body.ops-anmeldung { position: relative; }
.o-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body.ops-anmeldung .anmelde-karte, body.ops-anmeldung .anmelde-fuss { position: relative; z-index: 1; }
body.ops-anmeldung .anmelde-karte { border-top: 4px solid var(--gold); }

/* ---- Breite und Handy ---- */
@media (max-width: 1180px) {
  .o-bkarten { grid-template-columns: minmax(0, 1fr); }
  .o-bspalte { display: contents; }
  #updates { order: 1; } #dienste { order: 2; } #daten { order: 3; } #server { order: 4; }
}
@media (max-width: 900px) {
  .o-app { grid-template-columns: minmax(0, 1fr); background: none; }
  .o-leiste { display: none; }
  .o-kopf { padding: var(--abstand-4) var(--abstand-4) 0; }
  .o-kopf h1 { font-size: 1.35rem; }
  .o-inhalt { padding: var(--abstand-4) var(--abstand-4) calc(96px + env(safe-area-inset-bottom)); }
  .o-unten { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: 0; overflow-x: auto;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--flaeche); border-top: 1px solid var(--rand);
    box-shadow: var(--schatten-2); scrollbar-width: none; }
  .o-unten a { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 56px; min-width: 56px; padding: 4px; border-radius: var(--radius-k); color: var(--text-3); font-size: .74rem; font-weight: 600; text-decoration: none; }
  .o-unten a[aria-current="page"] { color: var(--marke); background: var(--marke-weich); }
  .o-unten .o-zahl { position: absolute; top: 2px; right: 4px; margin: 0; min-width: 18px; height: 18px; font-size: .7rem; padding: 0 4px; }
  .o-kacheln, .o-start-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--abstand-2); }
  .o-kachel { padding: 12px 12px 12px 16px; }
  .o-kachel-wert { font-size: 1.2rem; }
  .o-zur-seite { min-height: 0; }
  .o-bkarte, .o-kern { padding: var(--abstand-3) var(--abstand-3) var(--abstand-4); }
  .o-bwerte-zwei { grid-template-columns: minmax(0, 1fr); }
  .o-bwerte-zwei > .o-bwert:nth-child(2) { border-top: 1px solid var(--rand); }
  .o-bwert-wert { text-align: left; margin-left: 0; flex-basis: 100%; padding-left: 20px; }
  .o-kv-v { flex-basis: 100%; }
  .o-drei { grid-template-columns: minmax(0, 1fr); }
  .o-detail-kopf { padding: 12px 14px; } .o-detail-inhalt { padding: 0 12px 14px; }
  .o-pw { flex-basis: 100%; }
  /* Tabellen werden zu Karten: Zeilen untereinander statt gequetschter Spalten */
  .o-kompakt, .o-kompakt tbody, .o-kompakt tr { display: block; }
  .o-kompakt thead { display: none; }
  .o-kompakt tr { padding: 10px 12px; border-top: 1px solid var(--rand); }
  .o-kompakt tr:first-child { border-top: 0; }
  .o-kompakt td, .o-kompakt tbody th { display: block; border: 0; padding: 2px 0; }
  .o-kompakt td.rechts { text-align: left; }
  /* ... ausser der Tabelle je Standort: drei kurze Spalten passen auch aufs Handy, und ohne Kopf waere unklar, welche
     Zahl welcher Standort ist. */
  .o-abgleich { display: table; } .o-abgleich thead { display: table-header-group; }
  .o-abgleich tbody { display: table-row-group; } .o-abgleich tr { display: table-row; padding: 0; }
  .o-abgleich td, .o-abgleich tbody th { display: table-cell; padding: 6px; border-top: 1px solid var(--rand); font-size: .9rem; }
  .o-bliste .tabelle { table-layout: auto; }
}
@media (max-width: 360px) { .o-kacheln, .o-start-kacheln { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .punkt.puls::after, .o-live-neu { animation: none; }
  .o-kachel, .o-detail-kopf::before, .o-kachel-kopf .o-weiter { transition: none; }
}
@media print { .o-leiste, .o-unten, .knopf { display: none !important; } .o-app { display: block; } }
