:root {
	--hintergrund: #f4f5f7; --flaeche: #fff; --text: #1c1f24; --leise: #5f6670; --linie: #dfe2e6;
	--akzent: #c62828; --link: #1565c0; --ok: #2e7d32; --warnung: #b26a00; --rund: 10px;
}
@media (prefers-color-scheme: dark) {
	:root { --hintergrund: #121417; --flaeche: #1c1f24; --text: #e8eaed; --leise: #9aa0a6; --linie: #2f343b; --akzent: #ef5350; --link: #64b5f6; --ok: #66bb6a; --warnung: #ffb74d; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--hintergrund); color: var(--text); font: 15px/1.45 'Segoe UI', system-ui, sans-serif; }
.versteckt { display: none !important; }
.kopf { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.marke { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.logo { width: 22px; height: 22px; border-radius: 5px; background: var(--akzent); }
.leise { color: var(--leise); font-weight: 400; }
main { max-width: 1100px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 18px 20px; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 17px; margin: 0 0 12px; }
label { display: block; font-size: 13px; color: var(--leise); margin-bottom: 4px; }
input, select { font: inherit; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 6px; background: var(--hintergrund); color: var(--text); }
button { font: inherit; padding: 8px 14px; border-radius: 6px; border: 0; background: var(--akzent); color: #fff; cursor: pointer; }
button.zweit { background: transparent; color: var(--text); border: 1px solid var(--linie); }
.leise-knopf { background: transparent; color: var(--leise); border: 1px solid var(--linie); }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.module { display: flex; gap: 14px; flex-wrap: wrap; }
.module label { display: flex; gap: 6px; align-items: center; color: var(--text); font-size: 14px; margin: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: 13px; color: var(--leise); font-weight: 600; }
td .klein { font-size: 13px; color: var(--leise); }
.punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--leise); }
.punkt.an { background: var(--ok); }
.gesperrt { color: var(--akzent); font-weight: 600; }
.aktionen { display: flex; gap: 6px; flex-wrap: wrap; }
.aktionen button { padding: 5px 10px; font-size: 13px; }
.hinweis { background: color-mix(in srgb, var(--ok) 12%, var(--flaeche)); border: 1px solid var(--ok); border-radius: var(--rund); padding: 14px 18px; }
.hinweis.warnung { background: color-mix(in srgb, var(--warnung) 12%, var(--flaeche)); border-color: var(--warnung); }
.anmelden { max-width: 380px; margin: 60px auto; display: flex; flex-direction: column; gap: 12px; }
.anmelden input { width: 100%; }
.meldung { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--flaeche); padding: 10px 18px; border-radius: 8px; }
.meldung.fehler { background: var(--akzent); color: #fff; }
dialog { border: 1px solid var(--linie); border-radius: var(--rund); background: var(--flaeche); color: var(--text); max-width: 460px; }
dialog form { display: flex; flex-direction: column; gap: 12px; }

.reiter { max-width: 1100px; margin: 16px auto 0; padding: 0 20px; display: flex; gap: 8px; }
.reiter button { background: transparent; color: var(--text); border: 1px solid var(--linie); }
.reiter button.aktiv { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-left: 6px solid var(--leise); border-radius: var(--rund); padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.kachel:hover { border-color: var(--text); }
.kachel.gruen { border-left-color: var(--ok); }
.kachel.gelb { border-left-color: var(--warnung); }
.kachel.rot { border-left-color: var(--akzent); }
.kachel h3 { margin: 0; font-size: 17px; display: flex; justify-content: space-between; gap: 8px; }
.zeile { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.zeile .was { color: var(--leise); min-width: 118px; }
.lampe { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--leise); flex: none; }
.lampe.ok { background: var(--ok); }
.lampe.warnung { background: var(--warnung); }
.lampe.fehler { background: var(--akzent); }
.zusammen { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--leise); }
.zusammen b { color: var(--text); font-size: 20px; margin-right: 4px; }
.probe { color: var(--warnung); font-weight: 600; }
.klein { font-size: 13px; color: var(--leise); }
.klein.achtung { color: var(--warnung); }
a { color: var(--link); }
.code { font: 600 26px/1.2 Consolas, monospace; letter-spacing: 2px; padding: 10px 14px; margin: 4px 0 12px; background: var(--hintergrund); border: 1px dashed var(--linie); border-radius: 8px; display: inline-block; }
.abstand { margin-top: 18px; }
.zeile-zwischen { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.notiz { max-width: 260px; white-space: pre-wrap; }
dialog textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--linie); border-radius: 6px; background: var(--hintergrund); color: var(--text); width: 100%; }
dialog input { width: 100%; }
.zahlfeld { width: 54px; padding: 4px 6px; border: 1px solid var(--linie); border-radius: 6px; background: var(--flaeche); color: var(--text); font: inherit; }
.schalter { display: flex; gap: 6px; align-items: center; color: var(--text); font-size: 13px; margin: 0; }

/* Laufender Einsatz in der gemeinsamen Liste: fällt auf, ohne zu schreien */
tr.laeuft { background: color-mix(in srgb, var(--akzent) 8%, transparent); }
tr.laeuft td:first-child { border-left: 3px solid var(--akzent); }
