/* Verwaltung: sachlich, Schwarz/Weiß und kühles Hellgrau, Blau nur für Interaktion. */
:root {
  --text: #111418;
  --leise: #5b636d;
  --linie: #d9dee3;
  --flaeche: #f3f5f7;
  --weiss: #ffffff;
  --blau: #1f5fbf;
  --blau-dunkel: #174a96;
  --gut: #1d7a46;
  --warn: #9a6200;
  --fehler: #b42318;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body {
  margin: 0; color: var(--text); background: var(--flaeche);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5;
}
a { color: var(--blau); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }

.kopf {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: .75rem 1.5rem; background: var(--weiss); border-bottom: 1px solid var(--linie);
}
.kopf .marke { font-weight: 700; letter-spacing: .02em; color: var(--text); }
.kopf nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.kopf nav a { color: var(--leise); padding: .25rem 0; border-bottom: 2px solid transparent; }
.kopf nav a.aktiv, .kopf nav a:hover { color: var(--text); border-bottom-color: var(--text); text-decoration: none; }
.kopf .rechts { margin-left: auto; display: flex; align-items: center; gap: .75rem; color: var(--leise); }

main { max-width: 1180px; margin: 0 auto; padding: 1.5rem; }
.schmal { max-width: 440px; margin: 4rem auto; }

.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.25rem; }
.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.karte h2 { margin-top: 0; }
.leise { color: var(--leise); }
.zahl { font-size: 1.8rem; font-weight: 700; }

table { width: 100%; border-collapse: collapse; background: var(--weiss); border: 1px solid var(--linie); }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: .85rem; color: var(--leise); font-weight: 600; background: var(--flaeche); }
tr:last-child td { border-bottom: 0; }

form.zeile { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin: .75rem 0 .25rem; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: .5rem .6rem; border: 1px solid var(--linie); border-radius: var(--radius);
  font: inherit; background: var(--weiss);
}
form.zeile input, form.zeile select { width: auto; }
textarea { min-height: 14rem; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blau); outline-offset: 1px; }

.knopf {
  display: inline-block; padding: .5rem .9rem; border-radius: var(--radius); border: 1px solid var(--blau);
  background: var(--blau); color: var(--weiss); font: inherit; font-weight: 600; cursor: pointer;
}
.knopf:hover { background: var(--blau-dunkel); text-decoration: none; }
.knopf.zweit { background: var(--weiss); color: var(--blau); }
.knopf.klein { padding: .25rem .6rem; font-size: .9rem; }
.link-knopf { background: none; border: 0; color: var(--blau); font: inherit; cursor: pointer; padding: 0; }

.hinweis { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid var(--linie); background: var(--weiss); }
.hinweis.gut { border-color: var(--gut); }
.hinweis.fehler { border-color: var(--fehler); color: var(--fehler); }
.feldfehler { color: var(--fehler); font-size: .9rem; margin-top: .25rem; }

.marke-status { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .8rem; border: 1px solid var(--linie); }
.marke-status.gesendet { color: var(--gut); border-color: var(--gut); }
.marke-status.gescheitert { color: var(--fehler); border-color: var(--fehler); }
.marke-status.wartend, .marke-status.in_versand { color: var(--warn); border-color: var(--warn); }

pre.text { white-space: pre-wrap; background: var(--flaeche); padding: 1rem; border-radius: var(--radius); border: 1px solid var(--linie); }
code.codes { display: block; font-size: 1.1rem; line-height: 2; }
.qr svg { width: 200px; height: 200px; }
.aktionen { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }

/* Support-Dashboard */
.spalten { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: start; }
.spalte h2 { font-size: 1rem; margin: 0 0 .5rem; }
.kachel { display: block; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: .6rem .7rem; margin-bottom: .5rem; color: var(--text); }
.kachel:hover { border-color: var(--blau); text-decoration: none; }
.kachel.schnell { border-left: 4px solid var(--fehler); }

/* Kennzahlen: eine Zahl je Kachel, Beschriftung darüber, Erläuterung darunter */
.kacheln { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kachel-zahl { display: flex; flex-direction: column; gap: .2rem; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: .9rem 1rem; }
.kachel-zahl .beschriftung { font-size: .85rem; color: var(--leise); }
.kachel-zahl .zahl { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kachel-zahl .zahl.leise { font-size: 1.1rem; font-weight: 600; }
.zahl-spalte { text-align: right; font-variant-numeric: tabular-nums; }

/* Stream */
.stream h2 { font-size: 1.05rem; }
.stream-eintrag { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: .6rem .8rem; margin-bottom: .5rem; }
.stream-eintrag summary { cursor: pointer; }
.stream-thema { margin: .4rem 0 0 1rem; }
