:root {
  --grund: #f6f7f9; --flaeche: #ffffff; --text: #1b2430; --leise: #5b6675; --linie: #d9dee5;
  --akzent: #0b5cad; --akzent-text: #ffffff; --gut: #1d7a46; --gut-grund: #e7f5ec;
  --schlecht: #b42318; --schlecht-grund: #fdecea; --hinweis-grund: #eef3f9; --kz: #6b2c91;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--grund); }
header { background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.bereich-kz header { border-top: 4px solid var(--kz); }
.marke { font-weight: 700; font-size: 1.1rem; }
.hinweis-intern { background: var(--kz); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 10px; vertical-align: middle; }
nav { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
nav a { display: block; padding: 6px 12px; border-radius: 6px; color: var(--text); text-decoration: none; }
nav a[aria-current="page"], nav a:hover { background: var(--hinweis-grund); color: var(--akzent); }
.abmelden { display: flex; align-items: center; gap: 12px; color: var(--leise); font-size: .9rem; }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 1.6rem; margin: 0 0 16px; }
h2 { font-size: 1.2rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 16px 0 8px; grid-column: 1 / -1; }
footer { text-align: center; color: var(--leise); font-size: .8rem; padding: 16px; }
a { color: var(--akzent); }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 20px; margin: 0 0 20px; }
label { display: block; margin: 0 0 12px; font-weight: 600; font-size: .95rem; }
input, select { display: block; width: 100%; max-width: 420px; margin-top: 4px; padding: 8px 10px; font: inherit; border: 1px solid var(--linie); border-radius: 6px; background: #fff; }
button { font: inherit; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--akzent); background: var(--akzent); color: var(--akzent-text); cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button.gefahr { background: var(--schlecht); border-color: var(--schlecht); }
.abmelden button { background: transparent; color: var(--akzent); }
.meldung { background: var(--gut-grund); color: var(--gut); padding: 10px 14px; border-radius: 6px; }
.fehler { background: var(--schlecht-grund); color: var(--schlecht); padding: 10px 14px; border-radius: 6px; }
.hinweis { background: var(--hinweis-grund); padding: 10px 14px; border-radius: 6px; color: var(--leise); }
td span.hinweis { display: block; background: none; padding: 0; margin-top: 2px; font-size: .9rem; }
table { width: 100%; border-collapse: collapse; background: var(--flaeche); margin: 0 0 16px; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { background: var(--grund); font-weight: 600; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
.protokoll code { font-size: .8rem; word-break: break-all; }
dl.daten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 16px; }
dl.daten dt { color: var(--leise); }
dl.daten dd { margin: 0; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; align-items: end; border-top: 1px solid var(--linie); padding-top: 8px; margin-top: 8px; }
.raster button { margin-bottom: 12px; }
.zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zeile form { margin: 0; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 16px; color: var(--leise); }
.kachel.gut { border-color: var(--gut); } .kachel.schlecht { border-color: var(--schlecht); background: var(--schlecht-grund); }
.zahl-gross { display: block; font-size: 1.6rem; font-weight: 700; color: var(--text); }
.qr { width: 220px; height: 220px; background: #fff; padding: 8px; border: 1px solid var(--linie); }
.qr svg { width: 100%; height: 100%; }
code.schluessel, code.link { font-size: 1rem; background: var(--hinweis-grund); padding: 4px 8px; border-radius: 4px; word-break: break-all; }
details summary { cursor: pointer; color: var(--akzent); margin: 8px 0; }
textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; font: inherit; border: 1px solid var(--linie); border-radius: 6px; background: #fff; }
.breit { grid-column: 1 / -1; }
.umbruch { white-space: pre-wrap; }
a.knopf { display: inline-block; padding: 8px 16px; border-radius: 6px; background: var(--akzent); color: var(--akzent-text); text-decoration: none; }
.warnung { color: #8a5300; font-weight: 600; }
td.schlecht, dd.schlecht { color: var(--schlecht); font-weight: 700; }
td.warnung { color: #8a5300; }
.warnung-kasten { background: #fff4e0; color: #6b4100; padding: 10px 14px; border-radius: 6px; }
label.haken { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.haken input { width: auto; margin: 0; }
fieldset { border: 1px solid var(--linie); border-radius: 10px; margin: 0 0 16px; padding: 8px 16px; background: var(--flaeche); }
legend { font-weight: 700; padding: 0 6px; }
table.preis tr.summe td { font-weight: 700; border-top: 2px solid var(--text); }
@media (max-width: 640px) { header { padding: 12px 16px; } table { display: block; overflow-x: auto; } }
@media print { header, footer, form, .nicht-drucken { display: none; } body { background: #fff; } main { max-width: none; } }

/* Preisrechner: Haken mit zugehörigen Tagen als ein Kästchen */
.paar { border: 1px solid var(--linie); border-radius: 6px; padding: .5rem .75rem; display: grid; gap: .35rem; align-content: start; }
.paar label.haken { font-weight: 600; }
.breit select, .breit input { max-width: none; }

/* S6: Not-Aus */
.notaus { background: #b00020; color: #fff; padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.notaus a { color: #fff; }
