:root {
  --grund: #f6f5f2; --karte: #fff; --text: #1d1f23; --leise: #6b6f76; --linie: #e2e0db;
  --akzent: #3a5bd9; --gut: #2f8a4e; --schlecht: #c0392b; --warn: #c98a12;
  --mono: ui-monospace, "JetBrains Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #14161a; --karte: #1d2026; --text: #e6e6e3; --leise: #9aa0a8; --linie: #2e323a; --akzent: #7d95f0; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text); font: 15px/1.45 system-ui, sans-serif; }
header { position: sticky; top: 0; z-index: 2; background: var(--grund); border-bottom: 1px solid var(--linie);
  padding: .6rem 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; }
h1 { font: 600 1.05rem var(--mono); margin: 0; display: flex; align-items: center; gap: .5rem; }
h2 { font-size: 1rem; margin: 1.2rem 0 .5rem; }
nav { display: flex; gap: .2rem; flex-wrap: wrap; }
nav a { color: var(--leise); text-decoration: none; padding: .3rem .6rem; border-radius: 6px; }
nav a.aktiv { color: var(--text); background: var(--karte); box-shadow: 0 0 0 1px var(--linie); }
main { max-width: 860px; margin: 0 auto; padding: .5rem 1rem 4rem; }
.punkt { width: .65rem; height: .65rem; border-radius: 50%; background: var(--gut); display: inline-block; }
.punkt.aktion { background: var(--warn); animation: blinken 1.2s infinite; }
@keyframes blinken { 50% { opacity: .3; } }
.zahl { background: var(--warn); color: #fff; border-radius: 9px; padding: 0 .4rem; font-size: .8rem; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: .8rem 1rem; margin: .6rem 0; }
.schmal { max-width: 360px; margin: 3rem auto; }
.anfrage.markiert { box-shadow: 0 0 0 2px var(--akzent); }
.anfrage.zu { opacity: .65; }
.kopf { display: flex; justify-content: space-between; gap: 1rem; }
.zeit, .hinweis, .leise-text { color: var(--leise); font-size: .85rem; }
pre.auszug { font: .85rem/1.4 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 16rem; overflow: auto;
  background: var(--grund); border-radius: 6px; padding: .5rem .6rem; margin: .5rem 0; }
pre.auszug:empty { display: none; }
.steuer { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.steuer textarea, .steuer input[type=text] { flex: 1 1 100%; }
.frage { flex: 1 1 100%; margin: .3rem 0; }
.frage label { display: block; margin: .2rem 0; }
label { display: block; margin: .5rem 0; }
label.haken { display: flex; gap: .5rem; align-items: baseline; }
input, select, textarea { font: inherit; color: inherit; background: var(--grund); border: 1px solid var(--linie);
  border-radius: 6px; padding: .45rem .55rem; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; }
input[type=range] { padding: 0; }
textarea { min-height: 5rem; }
button { font: inherit; border: 0; border-radius: 6px; padding: .5rem .9rem; background: var(--akzent); color: #fff; cursor: pointer; }
button.gut { background: var(--gut); }
button.schlecht { background: var(--schlecht); }
button.leise { background: transparent; color: var(--akzent); box-shadow: inset 0 0 0 1px var(--linie); }
button:disabled { opacity: .5; }
.codelink { font-size: .85rem; color: var(--akzent); }
.fehler { color: var(--schlecht); }
.zeile { display: flex; justify-content: space-between; align-items: baseline; }
.modus { font-size: .85rem; color: var(--leise); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.dienst { padding: .5rem .7rem; margin: 0; font: .85rem var(--mono); display: flex; gap: .5rem; align-items: center; }
.dienst .punkt.aus { background: var(--schlecht); }
.leer { color: var(--leise); font-style: italic; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
td { border-bottom: 1px solid var(--linie); padding: .3rem .4rem; vertical-align: top; }
td.mono { font-family: var(--mono); white-space: nowrap; }
