:root {
  --grund: #ffffff; --text: #1d2321; --leise: #5b6663; --linie: #d9dfdd; --flaeche: #f4f7f6;
  --marke: #1f5f5b; --marke-hell: #e3efed;
  --ok: #1e7b3a; --ok-hell: #e3f3e8; --warn: #8a5a00; --warn-hell: #fff3d6; --fehler: #a32020; --fehler-hell: #fbe4e4;
  --sperre: #4a4a4a; --sperre-hell: #e7e7e7;
}
@media (prefers-color-scheme: dark) {
  :root { --grund: #141917; --text: #e8eeec; --leise: #a5b1ad; --linie: #2f3936; --flaeche: #1c2421;
    --marke: #7cc4bd; --marke-hell: #203532; --ok: #7fd394; --ok-hell: #1c3324; --warn: #f0c46a; --warn-hell: #3a3018;
    --fehler: #f19a9a; --fehler-hell: #3d1f1f; --sperre: #c9c9c9; --sperre-hell: #333; }
}
* { 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); }
a { color: var(--marke); }
h1 { font-size: 1.6rem; margin: .2em 0 .6em; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
.kopf { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.marke { font-weight: 700; text-decoration: none; font-size: 1.15rem; }
.menue { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
.menue a { text-decoration: none; padding: .2rem 0; }
.menue a[aria-current] { font-weight: 600; border-bottom: 2px solid var(--marke); }
.inhalt { max-width: 72rem; margin: 0 auto; padding: 1rem; }
.fuss { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 1.5rem 1rem; color: var(--leise); font-size: .9rem; border-top: 1px solid var(--linie); margin-top: 2rem; }
.karte { background: var(--grund); border: 1px solid var(--linie); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.schmal { max-width: 30rem; margin-left: auto; margin-right: auto; }
.held { padding: 2rem 0; max-width: 46rem; }
.raster { display: grid; gap: 1rem; } .raster.drei { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.raster.zwei { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
form label { display: block; margin: .6rem 0; }
input, select, textarea { display: block; width: 100%; max-width: 32rem; margin-top: .2rem; padding: .55rem .6rem; font: inherit; color: inherit; background: var(--grund); border: 1px solid var(--linie); border-radius: 6px; }
input[type=checkbox], input[type=radio] { display: inline; width: auto; margin: 0 .4rem 0 0; }
label.haken { display: flex; align-items: flex-start; gap: .2rem; }
fieldset { border: 1px solid var(--linie); border-radius: 8px; margin: .8rem 0; }
.knopf, button.knopf { display: inline-block; padding: .55rem 1rem; border: 0; border-radius: 6px; background: var(--marke); color: var(--grund); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.knopf.zweit { background: var(--marke-hell); color: var(--marke); }
.knopf.gefahr { background: var(--fehler); }
.knopf.klein { padding: .3rem .7rem; font-size: .9rem; }
button.link { background: none; border: 0; padding: 0; color: var(--marke); font: inherit; cursor: pointer; text-decoration: underline; }
form.inline { display: inline; }
.hinweis { padding: .7rem 1rem; border-radius: 8px; margin: .6rem 0 1rem; border: 1px solid transparent; }
.hinweis.ok { background: var(--ok-hell); border-color: var(--ok); }
.hinweis.fehler { background: var(--fehler-hell); border-color: var(--fehler); }
.hinweis.warnung { background: var(--warn-hell); border-color: var(--warn); }
.klein { font-size: .9rem; color: var(--leise); }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle tr.support td { background: var(--warn-hell); }
.rechte { display: flex; flex-wrap: wrap; gap: .1rem 1rem; }
.rechte label { margin: .1rem 0; font-size: .9rem; }
code { background: var(--flaeche); padding: .1rem .3rem; border-radius: 4px; word-break: break-all; }
@media (max-width: 40rem) { .tabelle thead { display: none; } .tabelle td { display: block; border: 0; padding: .2rem 0; } .tabelle tr { display: block; border-bottom: 1px solid var(--linie); padding: .5rem 0; } }
.kopfzeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.zeile { display: flex; flex-wrap: wrap; gap: 0 1rem; } .zeile label { flex: 1 1 10rem; }
.tage { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.ampel { display: inline-flex; gap: .3rem; align-items: center; padding: .1rem .55rem; border-radius: 999px; font-weight: 600; font-size: .9rem; border: 1px solid; white-space: nowrap; }
.ampel-bereit { background: var(--ok-hell); color: var(--ok); }
.ampel-in_reinigung { background: var(--marke-hell); color: var(--marke); }
.ampel-mangel { background: var(--warn-hell); color: var(--warn); }
.ampel-eingeschraenkt { background: var(--warn-hell); color: var(--warn); border-style: dashed; }
.ampel-gesperrt { background: var(--fehler-hell); color: var(--fehler); }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: .5rem; margin-bottom: .5rem; }
.fotos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.quelle { padding: .4rem 0; border-bottom: 1px solid var(--linie); }
.code { font-family: ui-monospace, monospace; font-size: 1.2rem; letter-spacing: .1em; }
details summary { cursor: pointer; color: var(--marke); margin: .5rem 0; }
.monatsnavi { display: flex; gap: 1rem; align-items: center; margin: .5rem 0; }
.plan-rahmen { overflow-x: auto; border: 1px solid var(--linie); border-radius: 8px; }
.plan { border-collapse: collapse; font-size: .85rem; }
.plan th, .plan td { border: 1px solid var(--linie); min-width: 1.9rem; height: 2.2rem; text-align: center; padding: 0; }
.plan th[scope=row] { text-align: left; padding: 0 .5rem; min-width: 9rem; position: sticky; left: 0; background: var(--grund); }
.plan th.we { background: var(--flaeche); } .plan th.heute { outline: 2px solid var(--marke); }
.plan td a { display: block; width: 100%; height: 100%; line-height: 2.2rem; text-decoration: none; color: inherit; }
.plan td.belegt { background: var(--marke); color: var(--grund); }
.plan td.sperre { background: repeating-linear-gradient(45deg, var(--sperre-hell), var(--sperre-hell) 4px, var(--grund) 4px, var(--grund) 8px); }
.plan td.ab { background: linear-gradient(135deg, var(--marke) 0 35%, transparent 35%); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.schritte { display: flex; gap: 1rem; list-style: none; padding: 0; } .schritte li { color: var(--leise); } .schritte li[aria-current] { color: var(--text); font-weight: 700; } .schritte li.erledigt { color: var(--ok); }
.ampelliste { list-style: none; padding: 0; margin: 0; } .ampelliste li { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--linie); }
.ampelliste li > a { min-width: 10rem; font-weight: 600; }

/* Paket 3: Aufträge und Wechseltag */
.status { display: inline-block; padding: .1rem .5rem; border-radius: 1rem; background: var(--flaeche); border: 1px solid var(--linie); font-size: .9em; }
.status-zurueckgegeben, .status-abgelehnt { background: var(--fehler-hell); color: var(--fehler); }
.status-erledigt, .status-abgenommen { background: var(--ok-hell); color: var(--ok); }
.stufe-kritisch { border-left: .4rem solid var(--fehler); }
.stufe-warnung { border-left: .4rem solid var(--warn); }
.stufe-hinweis { border-left: .4rem solid var(--marke); }
.warnungen { list-style: none; padding: 0; }
.warnungen li { padding: .2rem .5rem; margin: .2rem 0; }
.checkliste { list-style: none; padding: 0; }
.checkliste li.erledigt { color: var(--leise); }
.nachrichten { list-style: none; padding: 0; }
.nachrichten .ungelesen { border-left: .3rem solid var(--marke); }
.reiter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.reiter a[aria-current] { font-weight: 700; text-decoration: underline; }
input.kurz { width: 4.5rem; }
.prio-notfall { color: var(--fehler); }

/* Paket 4: Dienstleister und Erledigung */
.einladungslink { margin: .8rem 0; }
.qr { width: 14rem; max-width: 100%; margin-top: .8rem; background: #fff; padding: .4rem; border-radius: 6px; }
.qr svg { width: 100%; height: auto; display: block; }
.erledigung .punkt { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
.erledigung .punkt.fertig { color: var(--leise); }
.erledigung .symbol { font-size: 1.5rem; line-height: 1; min-width: 2rem; text-align: center; }
.erledigung .referenz { max-width: 8rem; border-radius: 6px; }
.grossknopf { display: block; width: 100%; padding: 1rem; font-size: 1.15rem; margin: .5rem 0; }
.code-gross { font-size: 2rem; letter-spacing: .2em; font-weight: 700; }
.fotoliste { display: flex; flex-wrap: wrap; gap: .4rem; }
.fotoliste img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 6px; }
.pin { font-size: 1.8rem; letter-spacing: .4em; text-align: center; max-width: 14rem; }
.vorschau { max-width: 100%; max-height: 70vh; border-radius: 8px; }
.auftragskarte { display: block; text-decoration: none; color: inherit; }
.sprachwahl button[aria-current] { font-weight: 700; }

/* Bewertungen (K-12): Sterne als Radioknöpfe, rechts nach links, damit :hover die vorderen Sterne mitfärbt */
.tabelle-rahmen { overflow-x: auto; }
.sterne { border: 0; padding: 0; margin: 0 0 .5rem; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .1rem; }
.sterne legend { width: 100%; margin-bottom: .25rem; }
.sterne input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sterne label { font-size: 2.2rem; line-height: 1; color: var(--linie); cursor: pointer; padding: .1rem; min-width: 44px; text-align: center; }
.sterne input:checked ~ label, .sterne label:hover, .sterne label:hover ~ label { color: var(--warn); }
.sterne input:focus-visible + label { outline: 2px solid var(--marke); border-radius: 4px; }
.sterneanzeige { color: var(--warn); font-size: 1.3rem; letter-spacing: .05em; margin: 0; }
.stellungnahme { border-left: 4px solid var(--marke); background: var(--marke-hell); margin: .5rem 0; padding: .5rem .75rem; }
.bewertung { border-top: 1px solid var(--linie); padding: .5rem 0; }
.bewertung:first-of-type { border-top: 0; }
.kennzahlen { list-style: none; padding: 0; margin: 0 0 .25rem; }
.fotowahl { display: inline-flex; flex-direction: column; align-items: center; gap: .25rem; }
.fotowahl img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; }
.abnahme { margin-bottom: .75rem; }

/* Benachrichtigungen (K-9, N-12) */
.anleitung { padding-left: 1.4rem; } .anleitung li { margin: .35rem 0; }
.liste-einfach { list-style: none; padding: 0; } .liste-einfach li { padding: .25rem 0; }

/* Offline-Warteschlange und App-Update (K-25, A-33) */
form.ausstehend .haken-zeichen::after { content: " ⏳"; }
.update-leiste { position: sticky; top: 0; z-index: 10; display: flex; gap: .5rem; align-items: center; justify-content: space-between; padding: .5rem 1rem; margin: 0; border-radius: 0; }

/* Paket 8: Verwaltung, Rechtstexte, Demo */
.umbruch { word-break: break-all; }
mark.platzhalter { background: var(--warn-hell); padding: 0 .2em; border-radius: 3px; }
.rechtstext h1 { margin-top: 0; }
.rechtstext h2 { font-size: 1.1rem; margin-top: 1.4em; }
.hinweis.demo { background: var(--marke-hell); color: var(--marke); }
