/* Statusseite – Farben wie css/stil.css der Webseite */
:root {
    --grund: #0B1016; --flaeche: #131D28; --kante: #22303F; --schrift: #E8EEF5; --leise: #A5B3C2;
    --blau: #3B8BFF; --ok: #3DDC84; --warn: #FFC53D; --weg: #FF5A4F; --wartung: #3B8BFF; --leer: #1B2734;
    --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
    --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--grund); }
body { margin: 0; color: var(--schrift); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh;
       background: radial-gradient(1100px 480px at 85% -10%, rgba(59,139,255,.14), transparent 60%),
                   radial-gradient(900px 420px at -10% 110%, rgba(255,61,61,.08), transparent 60%), var(--grund); }
a { color: var(--blau); }
.wrap { max-width: 1000px; margin: 0 auto; padding: 32px 16px 56px; }
.leise { color: var(--leise); font-weight: 400; }
.mono { font-family: var(--mono); }

.kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
        border-bottom: 1px solid var(--kante); padding-bottom: 16px; }
.marke { display: flex; align-items: center; gap: 12px; color: var(--leise); text-decoration: none; font-family: var(--mono);
         font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.marke b { color: var(--schrift); font-weight: 700; }
.uhr { font-family: var(--mono); font-size: .8rem; color: var(--leise); text-align: right; }
.uhr span { display: block; color: var(--schrift); font-size: 1.35rem; font-variant-numeric: tabular-nums; }

.held { margin: 32px 0 24px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.leuchte { width: 56px; height: 56px; border-radius: 50%; margin-top: 6px; position: relative; background: var(--leise); }
.leuchte::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; animation: puls 2.4s ease-out infinite; }
.leuchte.ok { background: var(--ok); color: var(--ok); box-shadow: 0 0 0 6px rgba(61,220,132,.15); }
.leuchte.langsam, .leuchte.wartung { background: var(--warn); color: var(--warn); box-shadow: 0 0 0 6px rgba(255,197,61,.15); }
.leuchte.wartung { background: var(--wartung); color: var(--wartung); box-shadow: 0 0 0 6px rgba(59,139,255,.18); }
.leuchte.gestoert, .leuchte.ausfall, .leuchte.alt { background: var(--weg); color: var(--weg); box-shadow: 0 0 0 6px rgba(255,90,79,.15); }
@keyframes puls { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .leuchte::after, .pille::before { animation: none !important; } }
h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.15; margin: 0 0 8px; font-weight: 800; }
.einleitung { color: var(--leise); margin: 0; max-width: 62ch; }
.schild { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
          padding: 3px 9px; border: 1px solid var(--leise); color: var(--leise); border-radius: 3px; margin-bottom: 12px; }

.panel, .meldung { background: var(--flaeche); border: 1px solid var(--kante); border-radius: 12px; padding: 20px 22px; margin-top: 18px; }
.panel h2, .meldungsbereich h2 { margin: 0 0 14px; font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .16em;
                                  text-transform: uppercase; color: var(--leise); }
.meldungsbereich h2 { margin: 26px 0 0; }

.balkenzeile { font-family: var(--mono); font-size: .78rem; color: var(--leise); display: flex; justify-content: space-between; }
.balken { height: 6px; background: var(--kante); border-radius: 3px; overflow: hidden; margin: 6px 0 4px; }
.balken i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #9fe8c0); width: 0; transition: width .8s ease; }

.dienst { padding: 14px 0; border-top: 1px dashed var(--kante); }
.dienst:first-child { border-top: 0; }
.dienst-kopf { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.dienst-name { font-weight: 700; }
.dienst-text { color: var(--leise); font-size: .88rem; }
.pille { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px 3px 22px;
         border-radius: 20px; position: relative; white-space: nowrap; flex: none; }
.pille::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: currentColor; }
.pille.ok { color: var(--ok); background: rgba(61,220,132,.10); }
.pille.langsam { color: var(--warn); background: rgba(255,197,61,.12); }
.pille.wartung { color: #7FB2FF; background: rgba(59,139,255,.14); }
.pille.wartung::before, .pille.gestoert::before { animation: blinken 1.6s steps(2) infinite; }
.pille.gestoert { color: var(--weg); background: rgba(255,90,79,.12); }
.pille.unbekannt { color: var(--leise); background: rgba(165,179,194,.10); }
@keyframes blinken { 50% { opacity: .2; } }
.tage { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 26px; margin: 10px 0 4px; }
.tage i { border-radius: 2px; background: var(--leer); }
.tage i.ok { background: var(--ok); } .tage i.teil { background: var(--warn); } .tage i.weg { background: var(--weg); }
.tage i.wartung { background: var(--wartung); }
.tage-fuss { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: var(--leise); }
@media (max-width: 640px) { .tage { grid-template-columns: repeat(45, 1fr); } .tage i:nth-child(-n+45) { display: none; } .tage-90 { display: none; } }
@media (min-width: 641px) { .tage-45 { display: none; } }
.legende { font-size: .78rem; color: var(--leise); margin: 14px 0 0; line-height: 2; }
.kaestchen { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 5px 0 10px; vertical-align: -1px; }
.kaestchen:first-child { margin-left: 0; }
.kaestchen.ok { background: var(--ok); } .kaestchen.teil { background: var(--warn); } .kaestchen.weg { background: var(--weg); }
.kaestchen.wartung { background: var(--wartung); } .kaestchen.leer { background: var(--leer); border: 1px solid var(--kante); }

.meldung { border-left: 4px solid var(--leise); }
.meldung.wartung { border-left-color: var(--wartung); } .meldung.stoerung { border-left-color: var(--weg); } .meldung.info { border-left-color: var(--warn); }
.panel .meldung { background: transparent; border-top: 0; border-right: 0; border-bottom: 1px dashed var(--kante); border-radius: 0; padding: 4px 0 14px 16px; margin: 0 0 14px; }
.panel .meldung:last-child { border-bottom: 0; margin-bottom: 0; }
.meldung h3 { margin: 0 0 4px; font-size: 1.1rem; }
.meldung .zeit { font-family: var(--mono); font-size: .8rem; color: var(--leise); margin: 0 0 8px; }
.meldung .text { white-space: pre-line; margin: 0 0 10px; }
.meldung .betrifft { font-size: .85rem; color: var(--leise); margin: 0 0 10px; }
ol.leiste { list-style: none; margin: 0; padding: 0; position: relative; }
ol.leiste::before { content: ""; position: absolute; left: 52px; top: 6px; bottom: 6px; width: 1px; background: var(--kante); }
ol.leiste li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 0 0 10px; position: relative; font-size: .93rem; }
ol.leiste time { font-family: var(--mono); font-size: .82rem; color: var(--leise); text-align: right; font-variant-numeric: tabular-nums; }
ol.leiste li::after { content: ""; position: absolute; left: 49px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--leise); }
ol.leiste li.ok::after { background: var(--ok); } ol.leiste li.warn::after { background: var(--warn); } ol.leiste li.info::after { background: var(--blau); }

.fragen p { margin: 0 0 12px; color: #C9D4DF; font-size: .95rem; } .fragen strong { color: var(--schrift); }
.fuss { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--kante); color: var(--leise); font-size: .84rem;
        display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 640px) { .held { grid-template-columns: 1fr; } .leuchte { width: 40px; height: 40px; } }
