:root {
  --bg: #f5f6f8; --flaeche: #fff; --text: #1b2330; --leise: #667085; --rand: #d9dde3;
  --akzent: #1f3a5f; --akzent-hell: #e8eef6; --fehler: #b42318; --ok: #067647;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px;
  color: var(--text); background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11151b; --flaeche: #1a2029; --text: #e6e9ee; --leise: #9aa4b2; --rand: #2c3440;
          --akzent: #7fa6d6; --akzent-hell: #1f2a38; --fehler: #f97066; --ok: #47cd89; }
}
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; align-items: center; gap: 24px; padding: 10px 20px;
  background: var(--flaeche); border-bottom: 1px solid var(--rand); flex-wrap: wrap; }
.logo { color: var(--akzent); font-size: 18px; letter-spacing: .5px; }
nav { display: flex; gap: 16px; }
nav a { color: var(--text); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a.aktiv { border-color: var(--akzent); }
.rechts { margin-left: auto; display: flex; gap: 12px; align-items: center; }
main { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 16px; margin: 0 0 12px; }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 8px;
  padding: 20px; margin-bottom: 16px; }
.schmal { max-width: 380px; margin: 10vh auto; }
label { display: block; font-size: 13px; color: var(--leise); margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--rand); border-radius: 6px;
  background: var(--flaeche); color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--akzent); outline-offset: -1px; }
textarea { min-height: 70px; resize: vertical; }
.feld { margin-bottom: 12px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 12px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14px; }
.check input { width: auto; }
button { padding: 8px 14px; border-radius: 6px; border: 1px solid var(--akzent); background: var(--akzent);
  color: #fff; font: inherit; cursor: pointer; }
button.leise { background: transparent; color: var(--akzent); }
button.klein { padding: 4px 8px; font-size: 13px; }
button.gefahr { border-color: var(--fehler); color: var(--fehler); background: transparent; }
.aktionen { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.werkzeug { display: flex; gap: 8px; margin-bottom: 12px; }
.werkzeug input { max-width: 320px; }
table { width: 100%; border-collapse: collapse; background: var(--flaeche); }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rand); }
th { font-size: 12px; color: var(--leise); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--akzent-hell); }
.inaktiv { color: var(--leise); }
.unter { border: 1px dashed var(--rand); border-radius: 6px; padding: 12px; margin-bottom: 10px; }
.zeile { display: grid; grid-template-columns: 120px 1fr 1.4fr auto; gap: 8px; margin-bottom: 6px; align-items: center; }
.leer { color: var(--leise); font-style: italic; }
.fehler { color: var(--fehler); font-size: 13px; margin-top: 8px; }
.hinweis { color: var(--leise); font-size: 13px; }
#meldung { position: fixed; bottom: 20px; right: 20px; padding: 10px 16px; border-radius: 6px;
  background: var(--text); color: var(--bg); }
#meldung.fehler { background: var(--fehler); color: #fff; }
@media (max-width: 640px) {
  .zeile { grid-template-columns: 1fr 1fr; }
  .verstecken-mobil { display: none; }
}
.nach-rechts { margin-left: auto; }
.aktionen.verteilt { justify-content: space-between; }
.abstand { margin-top: 12px; }
