:root {
  --grund: #f4f5f7;
  --flaeche: #ffffff;
  --text: #1f2a37;
  --leise: #5b6675;
  --akzent: #b4121b;
  --rand: #d9dde3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--grund);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding-bottom: env(safe-area-inset-bottom); }
.kopf {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  background: var(--text); color: #fff;
}
.kopf h1 { font-size: 1.1rem; margin: 0; }
.status { font-size: 0.85rem; opacity: 0.85; }
.status[data-zustand="aus"] { color: #ffb4b4; }
main { padding: 16px; display: grid; gap: 16px; max-width: 720px; margin: 0 auto; }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; padding: 16px; }
.karte h2 { font-size: 1rem; margin: 0 0 8px; }
.hinweis { color: var(--leise); font-size: 0.9rem; margin: 0 0 12px; }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.liste li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--rand); border-radius: 8px; }
.liste span { color: var(--leise); font-size: 0.9rem; }
.liste li.zeile { display: flex; }
.liste li.zeile span { color: var(--text); font-size: 1rem; font-weight: 600; }
.formular { display: grid; gap: 12px; }
.formular label { display: grid; gap: 4px; font-size: 0.9rem; color: var(--leise); }
input, select, button { font: inherit; font-size: 1rem; padding: 12px; border-radius: 8px; border: 1px solid var(--rand); }
button { background: var(--akzent); color: #fff; border: none; font-weight: 600; min-height: 48px; }
.ergebnis { font-weight: 600; margin: 12px 0 0; }

/* Fahrzeug-App */
.stapel { display: grid; gap: 16px; }
.zeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.formular.zeile { align-items: end; }
.formular.zeile label { flex: 1 1 90px; }
.feld { display: grid; gap: 6px; font-size: 0.9rem; color: var(--leise); }
.feld > span { color: var(--text); font-weight: 600; }
textarea { font: inherit; font-size: 1rem; padding: 10px; border-radius: 8px; border: 1px solid var(--rand); width: 100%; }
button.zweitrangig { background: var(--flaeche); color: var(--text); border: 1px solid var(--rand); }
button.klein { min-height: 36px; padding: 6px 10px; font-size: 0.85rem; background: var(--flaeche); color: var(--leise); border: 1px solid var(--rand); }
button:disabled { opacity: 0.5; }
.karte > button { width: 100%; margin-top: 12px; }
.auswahl { display: grid; gap: 8px; margin-bottom: 12px; }
button.wahl { background: var(--flaeche); color: var(--text); border: 1px solid var(--rand); text-align: left; white-space: pre; }
details { margin: 8px 0 12px; }
details select { width: 100%; margin-top: 8px; }
.punkt { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--rand); border-radius: 8px; }
.punkt-titel { font-weight: 600; }
.umschalter { display: flex; gap: 8px; border: none; padding: 0; margin: 0; }
.umschalter legend { font-size: 0.9rem; color: var(--leise); margin-bottom: 6px; }
.umschalter label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border: 1px solid var(--rand); border-radius: 8px; font-weight: 600; color: var(--text); }
.umschalter input { width: 20px; height: 20px; }
.wechsel { display: grid; gap: 6px; padding: 10px; background: #fff7e0; border-radius: 8px; color: var(--text); }
.wechsel p { margin: 0; }
.markiert { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 8px; }
.meldung { margin: 8px 0 0; font-weight: 600; }
.meldung[data-art="fehler"], .hinweis[data-art="fehler"] { color: var(--akzent); }
.hinweis[data-art="ok"] { color: #1d7a3a; font-weight: 600; }

/* Verwaltung */
.breit { max-width: none; padding: 16px 24px; }
.breit .hinweis, .breit .meldung { max-width: 110ch; }
@media (min-width: 1600px) { .breit { padding: 20px 40px; } }

/* KTW-Cockpit */
.zeitwahl { display: flex; gap: 6px; flex-wrap: wrap; }
.zeitwahl button { background: var(--flaeche); color: var(--text); border: 1px solid var(--rand); min-height: 36px; padding: 6px 12px; font-size: 0.9rem; }
.zeitwahl button[aria-pressed="true"] { background: var(--text); color: #fff; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.kachel { border: 1px solid var(--rand); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; align-content: start; background: var(--flaeche); border-top: 4px solid var(--rand); }
.kachel[data-status="top"], .kachel[data-status="gruen"] { border-top-color: #1d7a3a; }
.kachel[data-status="gelb"] { border-top-color: #d99a00; }
.kachel[data-status="rot"] { border-top-color: #b4121b; }
.kachel .titel { font-size: 0.85rem; color: var(--leise); }
.kachel .wert { font-size: 1.9rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kachel .einheit { font-size: 1rem; font-weight: 600; color: var(--leise); margin-left: 2px; }
.kachel .vergleich { font-size: 0.8rem; color: var(--leise); font-variant-numeric: tabular-nums; }
.kachel .trend { font-weight: 700; }
.trend[data-gut="ja"] { color: #1d7a3a; }
.trend[data-gut="nein"] { color: #b4121b; }
.kachel .ziel { font-size: 0.78rem; font-weight: 600; }
.ck-hinweise { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.ck-hinweise li { padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; border-left: 4px solid var(--rand); background: #f7f8fa; }
.ck-hinweise li[data-art="achtung"] { border-left-color: #d99a00; background: #fff8e6; }
.ck-hinweise li[data-art="gut"] { border-left-color: #1d7a3a; background: #eef8f1; }
.ck-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 16px 24px; margin-bottom: 16px; }
.ck-spalten h3, .karte h3 { font-size: 0.95rem; margin: 8px 0; }
.ck-rasterhuelle { overflow-x: auto; margin-bottom: 16px; }
.ck-raster { width: auto; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.ck-raster th, .ck-raster td { padding: 4px 8px; text-align: center; border: 1px solid var(--rand); white-space: nowrap; }
.ck-raster td[data-zustand="engpass"] { background: #fde7d9; font-weight: 700; }
.ck-raster td[data-zustand="ruhig"] { background: #eef1f4; color: var(--leise); }
.ck-raster td[data-zustand="leer"] { color: #b8bec7; }
.reiter { display: flex; gap: 8px; flex-wrap: wrap; }
.reiter button { background: var(--flaeche); color: var(--text); border: 1px solid var(--rand); min-height: 40px; }
.reiter button[aria-pressed="true"] { background: var(--text); color: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { color: var(--leise); font-weight: 600; }
.ampel { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.ampel.gruen { background: #dcf3e3; color: #1d7a3a; }
.ampel.rot { background: #fde2e2; color: #b4121b; }
.ampel.grau { background: #eceef1; color: var(--leise); }
.ampel.gelb { background: #fff1cc; color: #8a5a00; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem; letter-spacing: 0.1em; }

.gross { font-size: 1.3rem; font-weight: 700; margin: 0; }
.umschalter.senkrecht { flex-direction: column; }
.umschalter.senkrecht label { justify-content: flex-start; padding: 0 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; background: #eef1f5; border-radius: 999px; font-weight: 600; }
.chips button { min-height: 28px; padding: 2px 8px; background: transparent; color: var(--leise); border: none; }
.timer { font-variant-numeric: tabular-nums; font-size: 1.4rem; font-weight: 700; }

.wb { padding: 10px 12px; border: 1px solid var(--rand); border-radius: 8px; display: grid; gap: 6px; }
.wb.hinweis-pflicht { border-color: #e0a800; background: #fff9e6; }
.wb.mangel { border-color: #f1b5b5; background: #fff5f5; }
.wb small { color: var(--leise); }
.wb-titel { font-weight: 700; }
.fotoreihe { display: flex; gap: 6px; flex-wrap: wrap; }
.fotoreihe img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rand); }

/* Liniendiagramm (Verwaltung, Sauerstoff) */
.diagramm { position: relative; }
.diagramm svg { display: block; width: 100%; height: auto; overflow: visible; }
.diagramm-legende { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--leise); margin-bottom: 4px; }
.diagramm-legende span { display: inline-flex; align-items: center; gap: 6px; }
.diagramm-legende svg { width: 18px; height: 4px; display: inline-block; }
.diagramm-tipp { position: absolute; pointer-events: none; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 8px;
  padding: 8px 10px; font-size: 0.85rem; box-shadow: 0 4px 12px rgba(31, 42, 55, 0.12); min-width: 150px; }
.diagramm-tipp strong { display: block; margin-bottom: 4px; }
.diagramm-tipp div { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.diagramm-tipp div span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--leise); }
.diagramm-tipp b { font-variant-numeric: tabular-nums; }
details summary { cursor: pointer; color: var(--leise); font-size: 0.9rem; }
.diagramm .diagramm-tipp svg { width: 14px; height: 4px; flex: none; }
.diagramm-tipp div span:first-child { white-space: nowrap; }

/* Seitenraster der Verwaltung: Kopfzeile, Kacheln, Karten nebeneinander (responsiv) */
.bereich { display: grid; gap: 16px; min-width: 0; }
.bereich > h2, .kopfzeile h2 { font-size: 1.15rem; margin: 0; }
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kompakt { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--leise); }
.kompakt input, .kompakt select { min-height: 36px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start; }
.raster-seite { grid-template-columns: minmax(min(100%, 380px), 1fr) minmax(min(100%, 520px), 2fr); }
@media (max-width: 960px) { .raster-seite { grid-template-columns: 1fr; } }
.kasten { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; padding: 16px; min-width: 0; }
.kasten h3 { font-size: 1rem; margin: 0 0 10px; }
.kasten > .zeile h3 { margin: 0; }
.kasten > .zeile { margin-bottom: 8px; }
.tabelle-huelle { overflow: auto; }
.tabelle-huelle.hoch { max-height: 520px; }
.tabelle-huelle thead th { position: sticky; top: 0; background: var(--flaeche); z-index: 1; }
.kachel .wert.klein { font-size: 1.2rem; }

/* Fahrzeugkarten (Übersicht, Desinfektion) */
.fz-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fz-karte { background: var(--flaeche); border: 1px solid var(--rand); border-left: 5px solid var(--rand); border-radius: 10px;
  padding: 12px 14px; display: grid; gap: 6px; align-content: start; font-size: 0.9rem; }
.fz-karte[data-status="gruen"] { border-left-color: #1d7a3a; }
.fz-karte[data-status="gelb"] { border-left-color: #d99a00; }
.fz-karte[data-status="rot"] { border-left-color: #b4121b; }
.fz-karte[data-status="grau"] { opacity: 0.75; }
.fz-karte .fz-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fz-karte .fz-name { font-size: 1.15rem; font-weight: 700; }
.fz-karte .fz-zeile { color: var(--leise); }
.fz-karte .fz-zeile strong { color: var(--text); font-weight: 600; }
.leer-hinweis { color: var(--leise); font-size: 0.9rem; padding: 8px 0; }
#o2-warnungen { gap: 6px; }
#o2-warnungen > * { margin: 0; padding: 8px 12px; border-radius: 8px; border-left: 4px solid #d99a00; background: #fff8e6; color: var(--text); font-size: 0.9rem; }
.raster.zwei { grid-template-columns: repeat(auto-fit, minmax(min(100%, 640px), 1fr)); }

/* Hygiene-Datenbank (Verwaltung) */
.hy-stufe { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; font-weight: 700; border: 1px solid rgba(0, 0, 0, 0.15); }
tr.klickbar { cursor: pointer; }
tr.klickbar:hover, tr.klickbar:focus { background: #f2f5f9; outline: none; }
.hy-dialog { width: min(1100px, 96vw); max-height: 94vh; border: none; border-radius: 14px; padding: 20px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.hy-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
/* Verwaltung: Kurzanleitung und Beladeliste je Medizinprodukt */
.mp-zeilen { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.mp-zeilen li { display: grid; gap: 6px; align-items: center; }
#mp-d-schritte li { grid-template-columns: 2em 1fr auto; }
#mp-d-schritte li .mp-nr { font-weight: 700; color: var(--leise); text-align: right; }
#mp-d-beladeliste li, .mp-bl-kopf { grid-template-columns: 80px minmax(0, 2fr) minmax(0, 1fr) 110px auto; }
.mp-bl-kopf { display: grid; gap: 6px; font-size: 0.8rem; color: var(--leise); font-weight: 600; }
.mp-zeilen input:not([type="checkbox"]) { padding: 6px 8px; min-height: 36px; width: 100%; }
.mp-zeilen input[type="checkbox"] { width: 18px; height: 18px; justify-self: center; }
.mp-zeilen .mp-knoepfe { display: flex; gap: 4px; }
.mp-zeilen .mp-knoepfe button { min-width: 34px; padding: 4px 8px; }
.hy-dialog h3 { margin: 0; font-size: 1.15rem; }
.hy-gruppe { border: 1px solid var(--rand); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; margin: 0; min-width: 0; }
.hy-gruppe legend { font-weight: 700; padding: 0 6px; }
.hy-gruppe label, .hy-stufe-karte label, .hy-mittel-karte label { display: grid; gap: 4px; font-size: 0.85rem; color: var(--leise); }
.hy-gruppe label.schalter { display: flex; align-items: center; gap: 8px; color: var(--text); }
.hy-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.hy-felder input, .hy-gruppe select, .hy-gruppe input, .hy-stufe-karte input, .hy-mittel-karte input { padding: 8px 10px; min-height: 38px; }
.hy-psa { display: flex; flex-wrap: wrap; gap: 6px; }
.hy-psa-wahl { display: inline-flex !important; grid: none; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border: 1px solid var(--rand); border-radius: 999px; color: var(--text) !important; font-size: 0.85rem; }
.hy-psa-wahl img { width: 26px; height: 26px; }
.hy-psa-wahl:has(input:checked) { background: #e8f0f8; border-color: #005387; }
.hy-pruefung { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.85rem; }
.hy-pruefung li { padding: 6px 10px; border-radius: 6px; background: #fff8e6; border-left: 4px solid #d99a00; }
.hy-pruefung li.fehler { background: #fde2e2; border-left-color: #b4121b; }
.hy-knoepfe { position: sticky; bottom: -20px; background: var(--flaeche); padding: 10px 0; border-top: 1px solid var(--rand); }
.hy-knoepfe button { min-height: 40px; }
.hy-stufe-karte { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--rand); border-left: 10px solid var(--rand); border-radius: 10px; }
.hy-mittel-karte { padding: 12px; border: 1px solid var(--rand); border-radius: 10px; gap: 8px; }
.hy-felder > label, .hy-gruppe > label { min-width: 0; }
.hy-felder input, .hy-felder select, .hy-gruppe input:not([type="checkbox"]), .hy-gruppe select, .hy-gruppe textarea { width: 100%; min-width: 0; }
.hy-stufe-karte label.schalter, .hy-mittel-karte label.schalter { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.hy-dialog input[type="checkbox"], .hy-stufe-karte input[type="checkbox"], .hy-mittel-karte input[type="checkbox"], [data-bereich="hygiene"] td input[type="checkbox"] { width: 18px; height: 18px; padding: 0; min-height: 0; }
[data-bereich="hygiene"] td input:not([type="checkbox"]) { padding: 6px 8px; min-height: 34px; }
.hy-offen { font-size: 0.85rem; color: var(--leise); }
[data-bereich="hygiene"] input.schmal { width: 64px; }

/* Hygiene auf dem Handy */
.hy-suchzeile { display: flex; gap: 8px; }
.hy-suchzeile input { flex: 1; min-width: 0; }
.hy-suchzeile button { padding: 12px 14px; }
main > * { min-width: 0; }
.hy-schnell { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.hy-schnell button { padding: 10px 4px; font-size: 0.9rem; min-height: 44px; }
.hy-kopf { display: grid; gap: 10px; position: sticky; top: 0; z-index: 2; }
.hy-kopf h2 { margin: 0; }
.hy-kopf input[type="search"] { width: 100%; }
.hy-reiter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--grund); padding: 4px; border-radius: 10px; }
.hy-reiter button { background: transparent; color: var(--leise); min-height: 40px; padding: 8px 4px; font-size: 0.9rem; }
.hy-reiter button[aria-selected="true"] { background: var(--flaeche); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.hy-stand { margin: 0; font-size: 0.8rem; color: var(--leise); }
.hy-stand[data-art="offline"] { color: #8a5a00; font-weight: 600; }
.hy-gruppe { display: grid; gap: 6px; }
.hy-gruppenkopf { margin: 4px 0 0; padding: 6px 12px; border-radius: 8px; font-size: 0.9rem; background: var(--stufe, var(--rand)); color: var(--stufe-text, var(--text)); }
.hy-zeile { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--flaeche); color: var(--text); border: 1px solid var(--rand); border-left: 8px solid var(--stufe, var(--rand)); padding: 10px 12px; font-weight: 400; }
.hy-zeile-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.hy-zeile-text small { color: var(--leise); font-size: 0.85rem; }
.hy-marke { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 999px; font-weight: 700; background: var(--stufe, var(--rand)); color: var(--stufe-text, var(--text)); border: 1px solid rgba(0, 0, 0, 0.12); }
.hy-erkrankung-kopf { background: var(--stufe, var(--flaeche)); color: var(--stufe-text, var(--text)); border-color: transparent; }
.hy-erkrankung-kopf h2 { font-size: 1.35rem; margin: 6px 0 2px; }
.hy-erkrankung-kopf button.klein { background: rgba(255, 255, 255, 0.85); color: var(--text); }
.hy-stufentext { font-weight: 700; font-size: 0.9rem; }
.hy-erreger { margin: 0; font-style: italic; opacity: 0.85; }
.hy-text { white-space: pre-line; margin: 0 0 8px; line-height: 1.45; }
.hy-hinweis { white-space: pre-line; margin: 8px 0 0; font-weight: 600; }
.hy-besonders { background: #fff8e1; border-color: #e0a800; }
.hy-besonders h2 { color: #8a5a00; }
.hy-psa-liste { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px 8px; }
.hy-psa-liste li { display: grid; justify-items: center; align-content: start; gap: 4px; text-align: center; font-size: 0.75rem; line-height: 1.2; color: var(--text); min-width: 0; hyphens: auto; overflow-wrap: anywhere; }
.hy-psa-liste img { width: 52px; height: 52px; }
.hy-stufenkarte { border-left: 10px solid var(--stufe, var(--rand)); }
.hy-farbkopf { background: var(--stufe, var(--rand)); color: var(--stufe-text, var(--text)); margin: -16px -16px 12px -16px !important; padding: 12px 16px; border-radius: 0 12px 0 0; }
.hy-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.hy-chip { padding: 4px 10px; border-radius: 999px; background: var(--grund); font-size: 0.85rem; }
.hy-chips button.klein { color: var(--text); }
.hy-angaben { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 0.9rem; }
.hy-angaben dt { color: var(--leise); }
.hy-angaben dd { margin: 0; white-space: pre-line; }
.hy-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.hy-link { display: grid; place-items: center; min-height: 44px; padding: 8px; border: 1px solid var(--rand); border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.9rem; text-align: center; }
.hy-lage-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.hy-lage-raster > div { display: grid; gap: 2px; align-content: start; }
.hy-lage-raster small { color: var(--leise); font-size: 0.8rem; }
.hy-lage-raster span { font-size: 0.9rem; }
.hy-zeit strong { font-size: 1.4rem; }
.hy-lage-geschuetzt { border-left: 6px solid #2f7d4f; }
.hy-lage-ungeschuetzt { border-left: 6px solid var(--akzent); }
.hy-ausserdienst { color: var(--akzent); font-weight: 700; }
.hy-nachsorge { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.hy-exposition { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #fde2e2; color: #7f1d1d; font-weight: 700; }
.hy-vorgabe { display: grid; gap: 6px; padding: 12px; border-radius: 8px; background: #eef5ff; border: 1px solid #b9d3f5; font-size: 0.95rem; }
.hy-vorgabe ul { margin: 0; padding-left: 20px; }
.hy-warnung { color: #8a1c1c; font-weight: 700; }
.hy-felderpaar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.hy-felderpaar input { width: 100%; }
.hy-haken { border: 1px solid var(--rand); border-radius: 8px; padding: 8px 12px; margin: 6px 0; display: grid; gap: 8px; }
.hy-haken legend { font-size: 0.85rem; color: var(--leise); padding: 0 4px; }
.hy-haken label { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.hy-haken input { width: 22px; height: 22px; flex: none; }
#f-desinfektion select, #f-desinfektion input:not([type="radio"]):not([type="checkbox"]) { width: 100%; min-width: 0; }
/* Laufende Desinfektionen (Leitstelle) */
.ds-laufend { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ds-countdown { font-weight: 700; }
.fz-karte.fz-desinfektion { box-shadow: inset 0 0 0 2px #d99a00; }
.hy-meldung { border-color: #f1b5b5; background: #fff5f5; }
#ds-meldungen td:nth-child(2) { white-space: nowrap; }

/* Bedienungsanleitungen (PDF-Anzeige als Ebene über der Seite) */
.pdf-gruppe { font-size: 0.9rem; color: var(--leise); margin: 16px 0 8px; }
body.pdf-offen { overflow: hidden; }
.pdf-ebene { position: fixed; inset: 0; z-index: 50; overflow: auto; background: var(--grund); padding: 0 12px 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.pdf-kopf { position: sticky; top: 0; left: 0; z-index: 1; display: flex; align-items: center; gap: 8px;
  padding: 12px 0; padding-top: calc(12px + env(safe-area-inset-top)); background: var(--grund); }
.pdf-kopf h2 { flex: 1; font-size: 1rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-seiten { display: grid; gap: 12px; width: 100%; }
/* Kurzanleitung und Beladeliste eines Geräts (in der Verwaltung gepflegt) */
.inhalt-ebene { display: flex; flex-direction: column; }
.kurzanleitung, .beladeliste { margin: 0; background: var(--flaeche); border-radius: 14px; border: 1px solid var(--rand); }
.kurzanleitung { padding: 14px 16px 14px 40px; display: grid; gap: 10px; font-size: 1.05rem; line-height: 1.4; }
.kurzanleitung li::marker { font-weight: 700; color: var(--akzent); }
.beladeliste { list-style: none; padding: 0; }
.beladeliste li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 48px; }
.beladeliste li + li { border-top: 1px solid #e5e8ec; }
.bl-menge { flex: none; min-width: 2.6em; font-weight: 700; font-size: 1.05rem; text-align: right; }
.bl-artikel { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bl-artikel small { color: var(--leise); }
.bl-verfall { flex: none; font-size: 0.75rem; font-weight: 700; color: #9a3412; background: #fff7ed; border: 1px solid #fdba74; border-radius: 999px; padding: 2px 8px; }
.inhalt-fuss { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.inhalt-fuss button { min-height: 48px; }
.pdf-seiten.gross { width: 200%; }
.pdf-seite { width: 100%; background: #fff; border: 1px solid var(--rand); border-radius: 4px; overflow: hidden; }
.pdf-seite canvas { display: block; width: 100%; height: 100%; }
tr.leise td { color: var(--leise); }

/* Verwaltung: Umschalter DiG KT/RD-Cockpit | RDGE-Cockpit in der Kopfzeile */
.cockpit-wahl { display: flex; flex-wrap: wrap; gap: 4px; }
.cockpit-wahl button { min-height: 0; padding: 6px 10px; font-size: 1.05rem; background: transparent; color: rgba(255, 255, 255, 0.6);
  border: 1px solid transparent; border-radius: 6px; }
.cockpit-wahl button[aria-pressed="true"] { color: #fff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.25); }
/* Im RDGE-Cockpit eine eigene Kopfzeilenfarbe, damit klar ist, in welchem Bereich man arbeitet */
body[data-cockpit="RDGE"] .kopf { background: #6b1d16; }
label.haken { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--text); padding: 6px 0; }
label.haken input { width: 22px; height: 22px; }
.med-bereich { margin: .8rem 0 .2rem; font-size: .95rem; color: var(--gedaempft, #555); }
/* Medikamente */
.med-satz { margin: .6rem 0; border: 1px solid var(--rand, #ddd); border-radius: 6px; padding: .4rem .8rem; }
.med-satz summary { cursor: pointer; padding: .3rem 0; }
.med-satz tr.offen td { background: #fff6e5; }
input.schmal { width: 4.5rem; }

/* Unfallmeldung: Skizze und Unterschrift */
.zeichnen { display: grid; gap: 8px; }
.zeichnen-werkzeug { display: flex; flex-wrap: wrap; gap: 6px; }
.zeichnen-werkzeug button[aria-pressed="true"] { border-color: var(--text); color: var(--text); font-weight: 600; }
.leinwand { width: 100%; height: auto; border: 1px dashed var(--rand); border-radius: 8px; background: #fff; touch-action: none; }
.leinwand.unterschrift { max-width: 600px; }
.foto-reihe { display: flex; flex-wrap: wrap; gap: 8px; }
.foto-reihe figure { margin: 0; position: relative; }
.foto-reihe img { width: 110px; height: 110px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rand); }
.foto-reihe button { position: absolute; top: 4px; right: 4px; min-height: 28px; padding: 2px 8px; }
img.vorschau { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; cursor: zoom-in; border: 1px solid var(--rand); }
td.umbruch { white-space: pre-line; }

/* Besatzung: wer mit PIN, wer eingetragen */
.marke { display: inline-block; font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; vertical-align: middle; }
.marke.ok { background: #dcfce7; color: #166534; }
.hinweis-warnung { color: #b45309; font-weight: 600; }
.hinweis-warnung:empty { display: none; }

/* ---------- iPad-Cockpit (Feuerwehr-Fahrzeuge, iPad quer) ---------- */
body.cockpit { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: 100vh; overflow: hidden; background: #eef0f3; }
body.cockpit .kopf { display: none; }
body.cockpit main { max-width: none; margin: 0; height: 100vh; overflow-y: auto; padding: 24px 28px calc(24px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
#seitenleiste { background: var(--text); color: #fff; display: flex; flex-direction: column; gap: 20px; height: 100vh; overflow-y: auto;
  padding: calc(24px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.sl-kopf, .sl-besatzung, .sl-nav { display: flex; flex-direction: column; gap: 8px; }
.sl-kopf { gap: 4px; }
.sl-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #aab4c0; }
.sl-kennung { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.01em; }
.sl-kennzeichen { align-self: flex-start; min-height: 36px; padding: 6px 10px; border-radius: 8px; background: #2c3a4b; color: #fff; font-size: 0.95rem; }
.sl-kennzeichen span { font-weight: 400; color: #aab4c0; }
.sl-person { display: flex; align-items: center; gap: 10px; background: #2c3a4b; border-radius: 10px; padding: 10px 12px; }
.sl-person > span:last-child { display: flex; flex-direction: column; }
.sl-person small { font-size: 0.75rem; color: #f3d38a; }
.sl-person small.ok { color: #9fd8b4; }
.sl-kreis { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #8a6a1f; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.sl-kreis.ok { background: #3f8f5f; }
.sl-anmelden { min-height: 44px; border-radius: 10px; border: 1px dashed #5b6b7e; background: transparent; color: #fff; }
.sl-nav button { min-height: 48px; padding: 0 12px; border-radius: 10px; background: transparent; color: #d7dde4; text-align: left; font-weight: 500; }
.sl-nav button[aria-current="page"] { background: var(--akzent); color: #fff; font-weight: 600; }
.sl-unfall { margin-top: auto; min-height: 52px; border-radius: 10px; border: 2px solid #e05a61; background: transparent; color: #ffd5d7; font-weight: 700; }
.cockpit-titel { margin: 0 0 4px; font-size: 1.6rem; }

.uebersicht { display: flex; flex-direction: column; gap: 18px; }
.ue-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ue-kopf h1 { margin: 0; font-size: 1.6rem; }
.ue-online { color: #3f8f5f; font-weight: 600; font-size: 0.9rem; }
.ue-offline { color: #b45309; font-weight: 600; font-size: 0.9rem; }
.kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kachel { background: #fff; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; border-top: 5px solid #b6bec9; }
.kachel.gruen { border-top-color: #3f8f5f; }
.kachel.orange { border-top-color: #c2410c; }
.kachel.rot { border-top-color: var(--akzent); }
.kachel-titel { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--leise); }
.kachel-wert { font-size: 1.4rem; font-weight: 700; }
.kachel-zeile { font-size: 0.85rem; color: var(--leise); }
.kachel-knopf { margin-top: 4px; min-height: 44px; border-radius: 10px; }
.ue-spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ue-spalte { background: #fff; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ue-spalte h2 { margin: 6px 0 0; font-size: 1.05rem; }
.ue-spalte h2:first-child { margin-top: 0; }
.ue-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--rand); }
.ue-zeile.faellig { background: #fff7ed; border-color: #fdba74; }
.ue-zeile > span { display: flex; flex-direction: column; gap: 2px; }
.ue-zeile small { color: var(--leise); }
.ue-zeile button { min-width: 110px; border-radius: 10px; flex: none; }
.ue-zeile button:not(.zweitrangig) { background: var(--text); }
.ue-mangel { padding: 12px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; display: flex; flex-direction: column; gap: 6px; }
.ue-mangel small { color: var(--leise); }
.ue-mangel .marke { align-self: flex-start; }
body.cockpit main > .karte { max-width: 900px; }

/* Tagescheck geteilt: Prüfpunkte links, Dokument rechts */
.check-geteilt { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 18px; align-items: start; }
.check-dokument { position: sticky; top: 0; height: calc(100vh - 48px); background: #fff; border: 1px solid var(--rand); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.check-dokument > .hinweis { margin: auto; padding: 24px; text-align: center; }
.pdf-ebene.eingebettet { position: static; inset: auto; z-index: auto; flex: 1; min-height: 0; overflow: auto; background: #e9ecf0; padding: 0 12px 12px; }
.pdf-ebene.eingebettet .pdf-kopf { background: #fff; margin: 0 -12px 12px; padding: 10px 14px; border-bottom: 1px solid #e5e8ec; }
.check-fortschritt { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--text); color: #fff; font-weight: 600; }
.fortschritt-balken { flex: 1; height: 8px; border-radius: 4px; background: #3a4859; overflow: hidden; }
.fortschritt-balken > span { display: block; height: 100%; width: 0; background: #4ade80; transition: width .2s; }
body.cockpit .punkt .umschalter label { min-height: 56px; border-width: 2px; border-radius: 12px; font-size: 1.05rem; }
body.cockpit .punkt .umschalter label:has(input[value="ok"]:checked) { border-color: #3f8f5f; background: #f0fdf4; color: #166534; }
body.cockpit .punkt .umschalter label:has(input[value="mangel"]:checked) { border-color: var(--akzent); background: #fef2f2; color: var(--akzent); }
body.cockpit .punkt .umschalter label:has(input[value="nicht_an_bord"]:checked) { border-color: #5b6675; background: #f4f5f7; }

/* iPad-Cockpit: Desinfektion, Wachbuch, Hygiene, Dokumente */
.kacheln.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kachel.blau { border-top-color: #1d4ed8; }
button.gross { min-height: 52px; padding: 0 24px; border-radius: 12px; font-size: 1.05rem; }
input.gross { min-height: 52px; border: 2px solid var(--text); border-radius: 12px; font-size: 1.05rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; }
.knopfreihe button { border-radius: 10px; padding: 0 16px; }
.pillen { display: flex; flex-wrap: wrap; gap: 8px; }
.pillen button { min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--text); border: 1px solid var(--rand); font-weight: 500; }
.pillen button[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); font-weight: 600; }
.pillen .marke { font-size: 0.8rem; padding: 4px 12px; }
.ds-zeile { display: grid; grid-template-columns: 130px minmax(0, 1fr) 180px 110px; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #e5e8ec; }
.ds-zeile.kopf { background: #f4f5f7; border: none; border-radius: 10px; font-size: 0.8rem; font-weight: 600; color: var(--leise); }
.ds-zeile .ok { color: #166534; font-weight: 600; }
.ds-zeile .offen { color: #b45309; font-weight: 600; }
.wb-gruppe { display: flex; flex-direction: column; gap: 10px; }
.wb-gruppe h2 { margin: 6px 0 0; font-size: 1.05rem; }
.wb-gruppe h2 small { font-weight: 400; color: var(--leise); font-size: 0.85rem; }
.ue-spalte .wb { border-radius: 10px; }
.hy-geteilt { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.hy-links-spalte { display: flex; flex-direction: column; gap: 12px; }
.hy-links-spalte h1 { margin: 0; font-size: 1.6rem; }
.hy-links-spalte .hinweis { margin: 0; }
.hy-trefferliste, .dok-liste { background: #fff; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; max-height: calc(100vh - 260px); overflow-y: auto; }
.hy-trefferliste button, .dok-liste button { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-radius: 0;
  background: #fff; color: var(--text); border-top: 1px solid #e5e8ec; text-align: left; font-weight: 500; }
.dok-liste button { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.dok-liste button small { color: var(--leise); font-weight: 400; }
.hy-trefferliste button.aktiv, .dok-liste button.aktiv { background: var(--text); color: #fff; }
.dok-liste button.aktiv small { color: #d7dde4; }
.dok-liste .pdf-gruppe { margin: 0; padding: 12px 16px 6px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.hy-mini { display: flex; gap: 2px; flex: none; }
.hy-mini img { width: 22px; height: 22px; }
.hy-bulletin-spalte { background: #fff; border-radius: 14px; padding: 22px; min-height: 300px; }
.hy-bulletin-spalte > .hinweis { margin: 80px auto; text-align: center; }
.bulletin { display: flex; flex-direction: column; gap: 14px; }
.bulletin h2 { margin: 0; font-size: 1.5rem; }
.bulletin .hinweis { margin: 0; }
.bu-raster { display: grid; gap: 12px; }
.bu-raster.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bu-raster.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bu-feld { padding: 14px; border-radius: 12px; background: #f4f5f7; display: flex; flex-direction: column; gap: 4px; }
.bu-feld small, .bu-schutz > small { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--leise); }
.bu-schutz { padding: 16px; border-radius: 12px; border: 2px solid #c2410c; background: #fff7ed; display: flex; flex-direction: column; gap: 10px; }
.bu-schutz > small { color: #9a3412; }
.bu-schutz .hy-psa-liste li.basis { opacity: 0.55; }
.bu-fussnote { margin: 0; font-size: 0.8rem; color: var(--leise); }
.dok-anzeige { height: calc(100vh - 48px); }
.dok-anzeige > .karte { border: 0; }
@media (max-width: 999px) { .bu-raster.zwei, .bu-raster.drei { grid-template-columns: 1fr; } }

/* ---------- iPhone hochkant (DiG-KTW/RTW, auch Stadt-Fahrzeuge auf schmalen Geräten) ----------
   Dunkle Kopfleiste mit Fahrzeug und Besatzung, feste Tab-Leiste unten. Das iPad-Cockpit bleibt unverändert. */
body.handy { background: #eef0f3; }
body.handy .kopf { display: none; }
body.handy main { gap: 12px; padding: 12px 16px calc(96px + env(safe-area-inset-bottom)); }

.handy-kopf { background: var(--text); color: #fff; padding: calc(10px + env(safe-area-inset-top)) 16px 12px; display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: 0; z-index: 30; }
.handy-kopf .hk-gross { display: none; }
.handy-kopf.gross .hk-gross { display: flex; }
.handy-kopf.gross { padding-bottom: 16px; }
.hk-zeile { align-items: center; justify-content: space-between; }
.hk-online { font-size: 0.75rem; font-weight: 600; color: #9fd8b4; }
.hk-offline { font-size: 0.75rem; font-weight: 600; color: #f3d38a; }
.hk-fahrzeug { display: flex; align-items: center; gap: 10px; }
.hk-kennung { font-size: 1.15rem; font-weight: 700; }
.handy-kopf.gross .hk-kennung { font-size: 1.9rem; letter-spacing: -0.01em; }
.hk-kennzeichen { min-height: 32px; padding: 4px 8px; border-radius: 8px; background: #2c3a4b; color: #fff; font-size: 0.9rem; }
.hk-besatzung { gap: 8px; }
.hk-person { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: #2c3a4b; border-radius: 10px; padding: 8px 10px; }
.hk-person .sl-kreis { width: 28px; height: 28px; font-size: 0.75rem; }
.hk-person > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.hk-person strong { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-person small { font-size: 0.7rem; color: #f3d38a; }
.hk-person small.ok { color: #9fd8b4; }
.hk-anmelden { flex: none; min-width: 48px; min-height: 48px; border-radius: 10px; border: 1px dashed #5b6b7e; background: transparent; color: #fff; padding: 0 12px; }
.hk-besatzung .hk-anmelden:only-child { flex: 1; }

.tableiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #fff; border-top: 1px solid var(--rand); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tableiste button { min-height: 52px; padding: 2px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: transparent; color: var(--leise); font-size: 0.7rem; font-weight: 600; border-radius: 10px; }
.tableiste button[aria-current="page"] { color: var(--akzent); font-weight: 700; }
body.pdf-offen .tableiste { display: none; }

/* Bausteine des Cockpits einspaltig */
body.handy .cockpit-titel { font-size: 1.4rem; }
body.handy .kacheln, body.handy .kacheln.drei { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.handy .kacheln.drei > :last-child { grid-column: 1 / -1; }
body.handy .kachel { padding: 12px; gap: 4px; }
body.handy .kachel.klickbar { cursor: pointer; }
body.handy .kachel-titel { font-size: 0.68rem; }
body.handy .kachel-wert { font-size: 1.2rem; }
body.handy .kachel-zeile { font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body.handy .ue-spalten { grid-template-columns: 1fr; gap: 12px; }
body.handy .ue-spalte { padding: 14px; border-radius: 14px; }
body.handy .ue-zeile { padding: 10px 12px; }
body.handy .ue-zeile button { min-width: 92px; }
body.handy .uebersicht { gap: 12px; }
body.handy main > .karte { border: 0; border-radius: 14px; }
.unfall-knopf { min-height: 50px; border-radius: 12px; border: 2px solid #e05a61; background: #fff; color: var(--akzent); font-weight: 700; }

/* Desinfektion */
body.handy .uebersicht > button.gross { width: 100%; min-height: 54px; }
.knopfpaar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.knopfpaar button, .knopfdreier button { border-radius: 12px; font-size: 0.9rem; padding: 0 6px; }
body.handy .ue-spalte .liste li { border-color: #1d4ed8; background: #eff6ff; border-width: 2px; border-radius: 12px; }
body.handy .ds-zeile { display: flex; flex-wrap: wrap; gap: 2px 8px; padding: 8px 0; font-size: 0.9rem; }
body.handy .ds-zeile.kopf { display: none; }
body.handy .ds-zeile > :nth-child(2)::before { content: "· "; }
body.handy .ds-zeile > :nth-child(3) { margin-left: auto; color: var(--leise); }
body.handy .ds-zeile > :nth-child(4) { flex-basis: 100%; font-size: 0.8rem; }
body.handy .ds-zeile > :nth-child(4):not(.ok):not(.offen) { display: none; }

/* Wachbuch: farbig nach Art, Knöpfe unten */
.wb-handy { display: flex; flex-direction: column; gap: 14px; }
body.handy .wb-gruppe h2 { font-size: 0.95rem; }
body.handy .wb { border-radius: 12px; padding: 12px; background: #fff; }
body.handy .wb.hinweis-pflicht { border-color: #93c5fd; background: #eff6ff; }
body.handy .wb.aufgabe { border-color: #fdba74; background: #fff7ed; }
body.handy .wb.mangel { border-color: #fecaca; background: #fef2f2; }
body.handy .wb.vorkommnis { border-color: transparent; background: #f4f5f7; }
body.handy .wb button:not(.klein) { border-radius: 10px; }
body.handy .wb.aufgabe > button:not(.klein) { background: var(--text); color: #fff; border: 0; }
body.handy .pillen { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
body.handy .pillen button { flex: none; min-height: 40px; }
.knopfdreier { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); }
.knopfdreier button { min-height: 48px; font-size: 0.82rem; white-space: nowrap; padding: 0 4px; }
.knopfdreier button:first-child { background: var(--akzent); }

/* Mehr */
.mehr-liste { background: #fff; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.mehr-eintrag { display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 2px 8px; min-height: 60px; padding: 10px 16px; border-radius: 0;
  background: #fff; color: var(--text); border-top: 1px solid #e5e8ec; }
.mehr-eintrag:first-child { border-top: 0; }
.mehr-eintrag::after { content: "›"; grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 1.4rem; color: var(--leise); }
.mehr-eintrag small { font-weight: 400; color: var(--leise); font-size: 0.8rem; }

/* Tagescheck: große OK/Mangel-Knöpfe, erledigte Punkte grün */
body.handy .check-fortschritt { top: calc(52px + env(safe-area-inset-top)); }
body.handy .punkt { background: #fff; border-radius: 14px; padding: 14px; }
body.handy .punkt .umschalter label { min-height: 52px; border-width: 2px; border-radius: 12px; }
body.handy .punkt .umschalter label:has(input[value="ok"]:checked) { border-color: #3f8f5f; background: #f0fdf4; color: #166534; }
body.handy .punkt .umschalter label:has(input[value="mangel"]:checked) { border-color: var(--akzent); background: #fef2f2; color: var(--akzent); }
body.handy .punkt .umschalter label:has(input[value="nicht_an_bord"]:checked) { border-color: #5b6675; background: #f4f5f7; }
body.handy .punkt:has(input[value="ok"]:checked) { border-color: #86efac; background: #f6fef9; padding: 10px 14px; }
body.handy .punkt:has(input[value="ok"]:checked) .umschalter label { min-height: 40px; }
body.handy .punkt-titel button.klein { margin-top: 4px; }

/* Kurzanleitung und Beladeliste als Blatt von unten */
body.handy .pdf-ebene.inhalt-ebene:not(.eingebettet) { top: auto; max-height: 78vh; border-radius: 20px 20px 0 0; background: #fff; padding: 0 18px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.4); }
body.handy .inhalt-ebene:not(.eingebettet) .pdf-kopf { background: #fff; padding-top: 22px; }
body.handy .inhalt-ebene:not(.eingebettet) .pdf-kopf::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #c9ced6; }
body.handy .inhalt-ebene:not(.eingebettet) .kurzanleitung, body.handy .inhalt-ebene:not(.eingebettet) .beladeliste { border: 0; background: #f8f9fb; }

/* Hygiene: Start der Desinfektion unten haftend */
body.handy button.haftend { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 6px 18px rgba(31, 42, 55, 0.18); border-radius: 12px; min-height: 54px; }

/* Dokumente */
.segment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 10px; background: #eef0f3; margin-bottom: 10px; }
.segment button { min-height: 40px; border-radius: 8px; background: transparent; color: var(--leise); }
.segment button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.dok-seite input[type="search"] { width: 100%; margin-bottom: 8px; }
.dok-karten li.dok-karte { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; }
.dok-karte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dok-karte-kopf strong { font-size: 1rem; }
.dok-karte-kopf span { font-size: 0.8rem; }
.dok-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.dok-knoepfe button { min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 0.85rem; }
.dok-knoepfe button:not(.zweitrangig) { background: var(--text); }

/* Hallentore (Übersicht und Reiter Tore) */
.tor-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tor-kacheln:empty { display: none; }
.tor-kachel { background: var(--flaeche); border: 1px solid var(--rand); border-top: 4px solid var(--rand); border-radius: 10px;
  padding: 12px 14px; display: grid; gap: 8px; grid-template-rows: auto auto 1fr; }
.tor-kachel[data-status="gruen"] { border-top-color: #1d7a3a; }
.tor-kachel[data-status="gelb"] { border-top-color: #d99a00; }
.tor-kachel[data-status="grau"] { border-top-color: var(--rand); }
.tor-kachel .tor-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tor-kachel .tor-name { font-size: 1.1rem; font-weight: 700; }
.tor-kachel .tor-seit { color: var(--leise); font-size: 0.85rem; }
.tor-kachel button { width: 100%; align-self: end; }
.tor-kachel button:disabled { background: #eceef1; color: var(--leise); cursor: not-allowed; }

/* Foto in groß (statt neuem Fenster, damit keine Safari-Leiste erscheint) */
.foto-ebene img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 8px; }
#geraete td.warnung { color: #8a1c1c; font-weight: 600; }

/* Qualität (QM-Audit): Schalter im Formular in einer Zeile */
.formular label.schalter { display: flex; align-items: center; gap: 8px; color: var(--text); align-self: center; }

/* Leitstellen-Cockpit (beide Bereiche) */
body[data-cockpit="LST"] .kopf { background: #15324f; }
.ls-bereich { align-items: center; }
.ls-bereich > span { font-size: 0.9rem; color: var(--leise); margin-right: 4px; }
.ls-stand { margin: 0; }
.ls-hb { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.ls-hb .hinweis { margin: 0; }
button.ls-hb-eintrag { display: grid; gap: 2px; text-align: left; align-content: start; min-height: 0; padding: 10px 12px;
  background: #fff8e6; color: var(--text); border: 1px solid #f0d38a; border-left: 5px solid #d99a00; border-radius: 8px; font-weight: 400; cursor: pointer; }
button.ls-hb-eintrag[data-stufe="rot"] { background: #fff1f1; border-color: #f2b8b8; border-left-color: #b4121b; }
button.ls-hb-eintrag:hover, button.ls-hb-eintrag:focus-visible { filter: brightness(0.97); outline: 2px solid var(--text); outline-offset: 1px; }
.ls-hb-art { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #8a5a00; }
.ls-hb-eintrag[data-stufe="rot"] .ls-hb-art { color: #b4121b; }
.ls-hb-titel { font-weight: 700; }
.ls-hb-text { font-size: 0.85rem; color: var(--leise); }
.ls-raster { grid-template-columns: minmax(min(100%, 560px), 3fr) minmax(min(100%, 380px), 2fr); }
@media (max-width: 1100px) { .ls-raster { grid-template-columns: 1fr; } }
.ls-abstand { margin-top: 16px !important; }
.ls-woche { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.ls-woche-eintrag { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 10px; background: #f6f7f9; border-radius: 6px; font-weight: 600; font-size: 0.9rem; }
.ls-anruf label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ls-anruf input { width: 20px; height: 20px; padding: 0; margin-top: 2px; flex: none; }
.ls-anruf span { display: grid; gap: 2px; color: var(--text); font-size: 0.95rem; }
.ls-anruf small { color: var(--leise); }
.ls-anruf[data-erledigt="true"] strong { color: var(--leise); text-decoration: line-through; }
.ls-uebergabe-text { white-space: pre-wrap; font-weight: 400; }
#ls-uebergaben { margin-top: 12px; }
.raster.ls-heute { grid-template-columns: minmax(0, 3fr) minmax(min(100%, 340px), 1fr); }
@media (max-width: 1100px) { .raster.ls-heute { grid-template-columns: 1fr; } }
