:root {
  --grund: #f6f6f4; --karte: #ffffff; --text: #1d1d1b; --leise: #6b6b66; --linie: #e3e2dd;
  --akzent: #1f3a5f; --akzent-text: #ffffff; --flaeche: #efeeea;
  --ok: #2f6b1f; --ok-grund: #e6f1dc; --warn: #8a5a00; --warn-grund: #fbefd5; --fehler: #a32d2d; --fehler-grund: #fbe5e5;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #151515; --karte: #1f1f1f; --text: #ececea; --leise: #a3a39e; --linie: #333330;
    --akzent: #dfe7f2; --akzent-text: #10233b; --flaeche: #2a2a28;
    --ok: #9fd27a; --ok-grund: #1f3315; --warn: #f2c26b; --warn-grund: #3a2b0c; --fehler: #f19a9a; --fehler-grund: #3d1717; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { font-weight: 600; margin: 0; }
h1 { font-size: 19px; } h2 { font-size: 14px; color: var(--leise); font-weight: 500; margin: 22px 0 10px; } h3 { font-size: 16px; }
.leise { color: var(--leise); margin: 0; } .klein { font-size: 13px; }
.kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; background: var(--karte); border-bottom: 1px solid var(--linie); }
.marke { display: flex; align-items: center; gap: 12px; }
.logo { width: 38px; height: 38px; border-radius: 9px; background: var(--akzent); color: var(--akzent-text); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.werkzeuge { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.werkzeuge form { margin: 0; }
.links { display: flex; gap: 6px; flex-wrap: wrap; margin-right: auto; margin-left: 12px; }
.werkzeug { height: 36px; padding: 0 12px; border: 1px solid var(--linie); border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--text); text-decoration: none; font-size: 14px; }
.werkzeug:hover { background: var(--flaeche); }
.werkzeug::after { content: "↗"; color: var(--leise); }
input, button { font: inherit; color: inherit; }
input { height: 36px; padding: 0 10px; border: 1px solid var(--linie); border-radius: 8px; background: var(--karte); }
button { height: 36px; padding: 0 14px; border: 1px solid var(--linie); border-radius: 8px; background: transparent; cursor: pointer; }
button:hover, .neben:hover { background: var(--flaeche); }
main { max-width: 1200px; margin: 0 auto; padding: 18px 20px 40px; }
.zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.zahl { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; }
.zahl strong { font-size: 24px; font-weight: 600; }
.oktext { color: var(--ok); } .warntext { color: var(--warn); } .fehlertext { color: var(--fehler); }
.dienste { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.pille { font-size: 13px; padding: 3px 10px; border-radius: 7px; }
.pille.ok { background: var(--ok-grund); color: var(--ok); } .pille.stoer { background: var(--fehler-grund); color: var(--fehler); } .pille.neutral { background: var(--flaeche); color: var(--leise); }
.hinweis { background: var(--warn-grund); color: var(--warn); padding: 8px 12px; border-radius: 8px; margin: 10px 0 0; font-size: 14px; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kopftext { min-width: 0; }
.zeile, .kachel h3, .lage { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lage { font-size: 13px; margin: 0; }
.kachel.warnung { border-color: var(--warn); }
.kachel.offline { background: transparent; }
.kachel.offline h3 { color: var(--leise); }
.kachelkopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.marke-zustand { font-size: 12px; padding: 2px 9px; border-radius: 7px; white-space: nowrap; }
.marke-zustand.online { background: var(--ok-grund); color: var(--ok); }
.marke-zustand.warnung { background: var(--warn-grund); color: var(--warn); }
.marke-zustand.offline { background: var(--flaeche); color: var(--leise); }
.warnzeile { color: var(--warn); font-size: 13px; margin: 0; }
.messung { margin-top: 2px; }
.messkopf { display: flex; justify-content: space-between; font-size: 12px; color: var(--leise); }
.balken { height: 6px; border-radius: 3px; background: var(--flaeche); overflow: hidden; }
.balken span { display: block; height: 100%; background: var(--leise); }
.balken span.warn { background: var(--warn); }
.verbinden { margin-top: auto; height: 44px; border-radius: 9px; background: var(--akzent); color: var(--akzent-text); display: grid; place-items: center; font-weight: 600; text-decoration: none; }
.verbinden:hover { filter: brightness(1.15); }
.nebenknoepfe { display: flex; gap: 8px; }
.neben { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--linie); border-radius: 8px; display: grid; place-items: center; color: var(--text); text-decoration: none; font-size: 14px; }
.gesperrt { opacity: .45; cursor: not-allowed; }
.verbinden.gesperrt { background: var(--flaeche); color: var(--leise); }
.kachel .verbinden { flex-shrink: 0; } .kachel .nebenknoepfe { padding-top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.anmeldung { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.anmeldekarte { width: 100%; max-width: 380px; background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 24px; }
.anmeldekarte form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.anmeldekarte label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--leise); }
.anmeldekarte input { width: 100%; color: var(--text); }
.haupt { height: 44px; background: var(--akzent); color: var(--akzent-text); border: none; font-weight: 600; }
.fehler { background: var(--fehler-grund); color: var(--fehler); padding: 10px 12px; border-radius: 8px; margin: 16px 0 0; font-size: 14px; }
@media (max-width: 760px) { .links { order: 3; margin: 0; width: 100%; } }
@media (max-width: 600px) { .zahlen { grid-template-columns: 1fr 1fr; } .zahl:last-child { grid-column: span 2; } .kopf { padding: 12px 16px; } main { padding: 14px 16px 32px; } }
