/* ==========================================================================
   Erscheinungsbild "Klar" (Design A)
   --------------------------------------------------------------------------
   Alle Farben, Abstände und Radien stehen als Variablen in :root. Eine
   Farbänderung geschieht nur dort und greift überall.
   Schrift: Atkinson Hyperlegible Next (SIL Open Font License), selbst
   gehostet. Gewählt wegen der guten Unterscheidbarkeit ähnlicher Zeichen
   (I l 1, O 0), wichtig für Menschen, die in einer Fremdsprache lesen.
   ========================================================================== */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Flächen */
  --grund: #F3F5F2;          /* Seitenhintergrund, leicht kühles Off-White */
  --flaeche: #FFFFFF;        /* Karten, Menü */
  --flaeche-leise: #F3F5F2;  /* ruhige Kästen in Karten */
  --linie: #D8DED9;
  --linie-leise: #E3E8E4;
  --linie-stark: #C9D2CC;    /* Rand normaler Knöpfe */
  --feld-linie: #B9C4BD;     /* Rand von Eingabefeldern */

  /* Schrift */
  --text: #17231F;
  --text-leise: #4F5D57;     /* Kontrast auf Weiss > 7:1 */
  --text-menue: #2E3B36;
  --auf-haupt: #FFFFFF;      /* Schrift auf der Hauptfarbe */

  /* Hauptfarbe Tannengrün */
  --haupt: #0B5D52;
  --haupt-dunkel: #07463E;
  --haupt-hell: #E0EEEA;

  /* Zustände */
  --warn: #8A3409;           /* Text auf hellem Orange */
  --warn-hell: #FFF4EC;
  --warn-linie: #F1C9AE;
  --info: #1F4E8C;
  --info-hell: #E3EEF9;
  --hinweis: #7A5300;        /* Text auf hellem Gelb */
  --hinweis-hell: #FFF7E0;
  --hinweis-linie: #F0D58A;
  --erfolg: #0B5D52;
  --erfolg-hell: #E0EEEA;
  --erfolg-linie: #B7D6CE;
  --chip-neutral: #EEF1EF;
  --chip-warn: #FBE7DC;

  /* Masse */
  --radius: 14px;
  --radius-klein: 10px;
  --abstand: 24px;
  --menue-breite: 240px;
  --schrift: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; height: 100%; background: var(--grund); }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--grund);
  height: 100%;
}

a { color: var(--haupt); }
a:hover { color: var(--haupt-dunkel); }

:focus-visible { outline: 3px solid var(--haupt); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 700; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Grundaufbau: Menü links, Inhalt rechts (Bildschirm)
   -------------------------------------------------------------------------- */

.rahmen { display: flex; min-height: 100%; }

.menue {
  width: var(--menue-breite);
  flex-shrink: 0;
  background: var(--flaeche);
  border-right: 1px solid var(--linie);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Keine vh-Höhe: in App-WebViews ist vh oft 0. Das Menü wird über
     .rahmen (min-height 100% von html/body) auf volle Höhe gestreckt. */
}

.marke { display: flex; align-items: center; gap: 10px; padding: 0 8px 24px 8px; }
/* Im Menü Zeichen über dem Namen, damit auch lange Produktnamen ohne
   Trennung mitten im Wort Platz haben */
.menue .marke { flex-direction: column; align-items: flex-start; gap: 12px; }
.marke-zeichen {
  width: 36px; height: 36px; border-radius: 10px; background: var(--haupt);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--auf-haupt);
}
.marke-name { font-weight: 700; font-size: 17px; min-width: 0; line-height: 1.2; overflow-wrap: break-word; }

.menue-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-klein);
  color: var(--text-menue); text-decoration: none; font-size: 15px; min-height: 44px;
}
.menue-link:hover { background: var(--flaeche-leise); color: var(--text); }
.menue-link[aria-current="page"] { background: var(--haupt-hell); color: var(--haupt); font-weight: 700; }

.menue-fuss {
  margin-top: auto; padding: 12px 14px 0 14px; border-top: 1px solid var(--linie-leise);
  font-size: 13px; color: var(--text-leise); display: flex; flex-direction: column; gap: 10px;
}

.inhalt {
  flex-grow: 1;
  min-width: 0;
  padding: 32px 40px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: var(--abstand);
}

.kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kopf-unterzeile { font-size: 14px; color: var(--text-leise); }

/* --------------------------------------------------------------------------
   Knöpfe
   -------------------------------------------------------------------------- */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-klein);
  border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text);
  font: inherit; font-size: 15px; text-decoration: none; cursor: pointer;
}
.knopf:hover { border-color: var(--text-leise); color: var(--text); }
.knopf-haupt { background: var(--haupt); border-color: var(--haupt); color: var(--auf-haupt); font-weight: 700; }
.knopf-haupt:hover { background: var(--haupt-dunkel); border-color: var(--haupt-dunkel); color: var(--auf-haupt); }
.knopf-leise { border-color: transparent; background: transparent; color: var(--text-leise); padding: 0 10px; }
.knopf-leise:hover { color: var(--text); background: var(--flaeche-leise); }
.knopf-breit { width: 100%; }

/* --------------------------------------------------------------------------
   Karten, Kennzahlen
   -------------------------------------------------------------------------- */

.karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 18px 20px; min-width: 0;
}
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.karte-ohne-rand { padding: 0; overflow: hidden; }
.karte-ohne-rand .karte-kopf { padding: 18px 20px 0 20px; }

.kennzahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kennzahl { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px 20px; }
.kennzahl-titel { font-size: 14px; color: var(--text-leise); }
.kennzahl-wert { font-size: 32px; font-weight: 700; margin-top: 6px; line-height: 1.1; }
.kennzahl-haupt .kennzahl-wert { color: var(--haupt); }
.kennzahl-warn { background: var(--warn-hell); border-color: var(--warn-linie); }
.kennzahl-warn .kennzahl-titel, .kennzahl-warn .kennzahl-wert { color: var(--warn); }

.zwei-spalten { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--abstand); align-items: start; }

.aufgaben { display: flex; flex-direction: column; gap: 12px; }
.aufgabe { padding: 14px; border-radius: var(--radius-klein); background: var(--flaeche-leise); }
.aufgabe-titel { font-weight: 700; }
.aufgabe-text { font-size: 14px; margin-top: 4px; }
.aufgabe-warnung { background: var(--warn-hell); }
.aufgabe-warnung .aufgabe-titel { color: var(--warn); }

.leer { padding: 28px 20px; color: var(--text-leise); text-align: center; }

/* --------------------------------------------------------------------------
   Listen-Tabelle: auf dem Handy wird jede Zeile zur Karte
   -------------------------------------------------------------------------- */

.liste { width: 100%; border-collapse: collapse; font-size: 15px; }
.liste th {
  text-align: left; font-size: 13px; font-weight: 600; color: var(--text-leise);
  padding: 10px 20px; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
}
.liste td { padding: 12px 20px; border-bottom: 1px solid var(--linie-leise); vertical-align: middle; }
.liste tr:last-child td { border-bottom: 0; }
.liste .spalte-zeit { white-space: nowrap; width: 1%; }
.liste .spalte-status { white-space: nowrap; width: 1%; }
.liste .spalte-objekt { min-width: 11em; }
.person-fehlt { color: var(--warn); font-weight: 600; }

.chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.chip-geplant { background: var(--chip-neutral); color: var(--text-leise); }
.chip-eingecheckt { background: var(--haupt-hell); color: var(--haupt); }
.chip-erledigt { background: var(--info-hell); color: var(--info); }
.chip-warn { background: var(--chip-warn); color: var(--warn); }

/* --------------------------------------------------------------------------
   Formulare (Schrift mind. 16px, sonst zoomt iOS beim Antippen)
   -------------------------------------------------------------------------- */

.formular { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.feldgruppe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feldgruppe-plz { grid-template-columns: 140px minmax(0, 1fr); }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label { font-weight: 600; font-size: 15px; }
.feld-hilfe { font-size: 13px; color: var(--text-leise); }
.feld input, .feld select {
  font: inherit; font-size: 16px; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--feld-linie); border-radius: var(--radius-klein); background: var(--flaeche); color: var(--text);
  width: 100%;
}
.feld input:focus, .feld select:focus { outline: 3px solid var(--haupt-hell); border-color: var(--haupt); }
.feld-fehler input, .feld-fehler select { border-color: var(--warn); }
.fehlertext { font-size: 14px; color: var(--warn); font-weight: 600; }
.haken { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 44px; }
.haken input { width: 22px; height: 22px; accent-color: var(--haupt); flex-shrink: 0; }
.formular-fuss { display: flex; gap: 12px; flex-wrap: wrap; }


/* --------------------------------------------------------------------------
   Listen-Seiten: Suche, Blättern, Zeilen-Links
   -------------------------------------------------------------------------- */

.suchleiste { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.suchleiste input[type="search"] {
  flex: 1 1 260px; min-width: 0; font: inherit; font-size: 16px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--feld-linie); border-radius: var(--radius-klein); background: var(--flaeche); color: var(--text);
}
.suchleiste-link { font-size: 15px; margin-left: auto; }

.blaettern { display: flex; align-items: center; justify-content: center; gap: 14px; }
.blaettern [aria-disabled="true"] { opacity: .45; pointer-events: none; }
.blaettern-stand { color: var(--text-leise); font-size: 14px; }

.zeilen-link { font-weight: 700; text-decoration: none; color: var(--text); }
.zeilen-link:hover { color: var(--haupt); text-decoration: underline; }
.liste .spalte-zahl { text-align: right; width: 1%; white-space: nowrap; }
.liste tbody tr:hover { background: var(--flaeche-leise); }

.zurueck { font-size: 14px; text-decoration: none; }
.zurueck::before { content: "\2039\00a0"; }

/* --------------------------------------------------------------------------
   Detailseiten
   -------------------------------------------------------------------------- */

.detail-raster { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.stapel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.leise { color: var(--text-leise); }
.mehrzeilig { white-space: pre-line; }

.einfache-liste { list-style: none; margin: 0; padding: 0 20px 12px 20px; }
.einfache-liste li { padding: 10px 0; border-top: 1px solid var(--linie-leise); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.einfache-liste li:first-child { border-top: 0; }

.eintrag {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-klein); background: var(--flaeche-leise); margin-bottom: 10px;
}
.eintrag-titel { font-weight: 700; }
.eintrag-warn { background: var(--hinweis-hell); border: 1px solid var(--hinweis-linie); }
.eintrag-marke { font-size: 12px; font-weight: 700; color: var(--hinweis); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }

.aufklapp { margin-top: 6px; }
.aufklapp summary {
  cursor: pointer; font-weight: 700; color: var(--haupt); min-height: 44px; display: flex; align-items: center;
  list-style-position: inside;
}
.aufklapp[open] summary { margin-bottom: 10px; }

.zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.geheim { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius-klein); background: var(--hinweis-hell); border: 1px solid var(--hinweis-linie); }
.geheim-wert { font-size: 26px; font-weight: 700; letter-spacing: .08em; }

.gruppe { border: 1px solid var(--linie); border-radius: var(--radius-klein); padding: 14px 16px 16px 16px; margin: 0; }
.gruppe legend { font-weight: 700; padding: 0 6px; }

.pflicht { color: var(--warn); }
.feld textarea {
  font: inherit; font-size: 16px; padding: 10px 14px; width: 100%; resize: vertical;
  border: 1px solid var(--feld-linie); border-radius: var(--radius-klein); background: var(--flaeche); color: var(--text);
}
.feld textarea:focus { outline: 3px solid var(--haupt-hell); border-color: var(--haupt); }
.feld-fehler textarea { border-color: var(--warn); }

.knopf-klein { min-height: 36px; padding: 0 12px; font-size: 14px; }
.knopf-gefahr { color: var(--warn); border-color: var(--warn-linie); }
.knopf-gefahr:hover { background: var(--warn-hell); color: var(--warn); border-color: var(--warn); }

.menue-trenner { height: 1px; background: var(--linie-leise); margin: 10px 14px; }

.link-liste { list-style: none; margin: 0; padding: 0; }
.link-liste li + li { border-top: 1px solid var(--linie-leise); }
.link-liste a {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; min-height: 64px;
  color: var(--text); text-decoration: none;
}
.link-liste a > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.link-liste a:hover { background: var(--flaeche-leise); }


/* --------------------------------------------------------------------------
   Planung
   -------------------------------------------------------------------------- */

.hinweis-balken {
  display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 14px 18px;
  border-radius: var(--radius); background: var(--warn-hell); border: 1px solid var(--warn-linie);
  color: var(--warn); text-decoration: none;
}
.hinweis-balken:hover { border-color: var(--warn); color: var(--warn); }

.wochen-leiste { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.wochen-nav { display: flex; gap: 8px; }
.wochen-filter select {
  font: inherit; font-size: 16px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--feld-linie);
  border-radius: var(--radius-klein); background: var(--flaeche); color: var(--text);
}

.woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: start; }
.tag-spalte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 160px;
}
.tag-heute { border-color: var(--haupt); box-shadow: 0 0 0 1px var(--haupt); }
.tag-vorbei { background: var(--flaeche-leise); }
.tag-kopf { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding: 2px 2px 6px 2px; border-bottom: 1px solid var(--linie-leise); }
.tag-name { font-weight: 700; }
.tag-datum { color: var(--text-leise); font-size: 14px; }
.tag-kopf .chip { margin-left: auto; font-size: 12px; padding: 2px 8px; }
.tag-leer { margin: 4px 2px; color: var(--text-leise); font-size: 13px; }

.einsatz-karte {
  display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: var(--radius-klein);
  background: var(--haupt-hell); color: var(--text); text-decoration: none; font-size: 13px; line-height: 1.3;
  border: 1px solid transparent; position: relative;
}
.einsatz-karte:hover { border-color: var(--haupt); color: var(--text); }
.einsatz-zeit { font-weight: 700; }
.einsatz-objekt { font-weight: 600; overflow-wrap: anywhere; }
.einsatz-person { color: var(--text-leise); }
.einsatz-problem { background: var(--warn-hell); border-color: var(--warn-linie); }
.einsatz-problem .einsatz-person { color: var(--warn); font-weight: 700; }
.einsatz-abgesagt { background: var(--flaeche-leise); color: var(--text-leise); }
.einsatz-abgesagt .einsatz-objekt { text-decoration: line-through; font-weight: 400; }
.einsatz-marke { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--info); }
.tag-plus { font-size: 13px; text-decoration: none; padding: 6px 4px; min-height: 32px; }

.vertretung { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.vertretung-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vertretung-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vertretung-form select, .eingabe-frei {
  font: inherit; font-size: 16px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--feld-linie);
  border-radius: var(--radius-klein); background: var(--flaeche); color: var(--text); max-width: 100%;
}
.eingabe-frei { flex: 1 1 220px; }
.vertretung-form select { width: 280px; }

.tage-auswahl { border: 0; padding: 0; margin: 0; }
.tage-auswahl legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
.tage { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { position: relative; }
.tag input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tag span[aria-hidden] {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 44px;
  border: 1px solid var(--feld-linie); border-radius: var(--radius-klein); background: var(--flaeche);
  font-weight: 700; cursor: pointer;
}
.tag input:checked + span { background: var(--haupt); border-color: var(--haupt); color: var(--auf-haupt); }
.tag input:focus-visible + span { outline: 3px solid var(--haupt); outline-offset: 2px; }
.feld-fehler .tag span[aria-hidden] { border-color: var(--warn); }

/* --------------------------------------------------------------------------
   Meldungen
   -------------------------------------------------------------------------- */

.meldung { padding: 14px 16px; border-radius: var(--radius-klein); font-size: 15px; border: 1px solid transparent; }
.meldung-erfolg { background: var(--erfolg-hell); color: var(--haupt-dunkel); border-color: var(--erfolg-linie); }
.meldung-fehler { background: var(--warn-hell); color: var(--warn); border-color: var(--warn-linie); }
.meldung-hinweis { background: var(--hinweis-hell); color: var(--hinweis); border-color: var(--hinweis-linie); }

.angaben { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 15px; }
.angaben dt { color: var(--text-leise); }
.angaben dd { margin: 0; }

/* --------------------------------------------------------------------------
   Anmeldeseite
   -------------------------------------------------------------------------- */

.anmelde-seite { display: flex; justify-content: center; padding: 48px 16px; }
.anmelde-karte { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.anmelde-karte .marke { padding: 0; }

/* --------------------------------------------------------------------------
   Untere Reiterleiste (nur Handy)
   -------------------------------------------------------------------------- */

.reiter { display: none; }
.nur-handy { display: none; }

@media (max-width: 900px) {
  .menue { display: none; }
  .nur-handy { display: block; }
  .inhalt { padding: 20px 16px calc(96px + env(safe-area-inset-bottom, 0px)) 16px; gap: 18px; }
  h1 { font-size: 26px; }
  .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kennzahl { padding: 14px 16px; }
  .kennzahl-wert { font-size: 28px; }
  .zwei-spalten { grid-template-columns: minmax(0, 1fr); }
  .feldgruppe { grid-template-columns: minmax(0, 1fr); }
  .angaben { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .angaben dd { margin-bottom: 10px; }

  .reiter {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--flaeche); border-top: 1px solid var(--linie);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .reiter-link {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 0 12px 0; font-size: 12px; color: var(--text-leise); text-decoration: none; min-height: 56px;
  }
  .reiter-link[aria-current="page"] { color: var(--haupt); font-weight: 700; }

  /* Tabelle wird zur Kartenliste */
  .liste thead { display: none; }
  .liste, .liste tbody, .liste tr, .liste td { display: block; width: 100%; }
  .liste tr { padding: 12px 16px; border-bottom: 1px solid var(--linie-leise); }
  .liste tr:last-child { border-bottom: 0; }
  .liste td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; }
  .liste td::before { content: attr(data-label); color: var(--text-leise); font-size: 13px; }
  .liste .spalte-zeit, .liste .spalte-status { width: 100%; }

  /* Einsatzliste: kompakte Karte ohne Beschriftungen
     Zeile 1: Zeit und Status, Zeile 2: Objekt, Zeile 3: Person */
  .liste-einsaetze tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "zeit status" "objekt objekt" "person person"; gap: 2px 12px;
  }
  .liste-einsaetze td { display: block; padding: 0; }
  .liste-einsaetze td::before { content: none; }
  .liste-einsaetze .spalte-zeit { grid-area: zeit; font-weight: 700; }
  .liste-einsaetze .spalte-status { grid-area: status; width: auto; }
  .liste-einsaetze .spalte-objekt { grid-area: objekt; font-size: 17px; min-width: 0; }
  .liste-einsaetze .spalte-person { grid-area: person; color: var(--text-leise); }

  /* Planung: Tage untereinander */
  .woche { grid-template-columns: minmax(0, 1fr); }
  .tag-spalte { min-height: 0; }
  .tag-vorbei { display: none; }
  .einsatz-karte { font-size: 15px; padding: 10px 12px; }
  .vertretung-form, .vertretung-form select { width: 100%; }

  /* Allgemeine Listen: Titel gross oben, übrige Angaben leise darunter */
  .liste-kompakt td { display: block; padding: 1px 0; color: var(--text-leise); font-size: 14px; }
  .liste-kompakt td::before { content: none; }
  .liste-kompakt td:empty { display: none; }
  .liste-kompakt .spalte-titel { font-size: 17px; color: var(--text); padding-bottom: 4px; }
  .liste-kompakt .spalte-zahl { text-align: left; width: auto; }
  .liste-kompakt .spalte-zahl::before, .liste-kompakt .mit-label::before { content: attr(data-label) ": "; }
  .suchleiste-link { margin-left: 0; }
  .zeilen-link { display: block; }
}

/* --------------------------------------------------------------------------
   QR-Codes (Büro) und Druckblatt
   -------------------------------------------------------------------------- */

.qr-flaeche { width: 100%; max-width: 280px; aspect-ratio: 1; margin: 0 auto; background: #FFFFFF; }
.qr-flaeche svg { display: block; width: 100%; height: 100%; }
.qr-gross { max-width: 360px; }
.schritte { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.druckblatt { max-width: 520px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; padding: 32px; }
.druckblatt-titel { font-size: 26px; font-weight: 700; }
.druckblatt-text { font-size: 17px; max-width: 26em; }

@media print {
  body, html { background: #FFFFFF; }
  .menue, .reiter, .kein-druck, .meldung { display: none !important; }
  .inhalt { padding: 0; }
  .druckblatt { border: 0; margin: 0 auto; }
}

/* --------------------------------------------------------------------------
   Mitarbeiter-App (Handy). Gross, klar, wenig Text.
   Keine vh-Höhen (WebView): Overlays erhalten ihre Höhe per JavaScript.
   -------------------------------------------------------------------------- */

.app-koerper { font-size: 17px; }
.app-kopf {
  display: flex; align-items: center; gap: 10px; background: var(--haupt); color: var(--auf-haupt);
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px 16px;
}
.app-kopf .marke-zeichen { background: rgba(255, 255, 255, .15); width: 32px; height: 32px; }
.app-kopf-titel { font-weight: 700; font-size: 18px; }

.app-inhalt {
  max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px;
  padding: 16px 16px calc(120px + env(safe-area-inset-bottom, 0px)) 16px;
}
.app-gruss { margin: 0; font-size: 22px; font-weight: 700; }
.app-gross { font-size: 19px; margin: 0; }
.app-mitte { display: flex; flex-direction: column; gap: 18px; margin-top: 12px; }
.app-name { font-size: 24px; }
.app-klein { font-size: 14px; }

.knopf-gross { min-height: 56px; font-size: 18px; }
.pin-feld { font-size: 28px !important; letter-spacing: .3em; text-align: center; }

.app-einsatz { display: flex; flex-direction: column; gap: 10px; }
.app-einsatz-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.app-zeit { font-weight: 700; font-size: 18px; white-space: nowrap; }
.app-objekt { font-size: 22px; overflow-wrap: anywhere; }
.app-adresse { display: flex; gap: 6px; align-items: flex-start; color: var(--text-leise); }
.app-adresse svg { flex-shrink: 0; margin-top: 3px; }
.app-status-text { margin: 0; font-weight: 600; color: var(--haupt); }
.app-einsatz-fertig .app-texte, .app-einsatz-fertig .app-mittel-liste { display: none; }
.app-einsatz-fertig .app-objekt { font-size: 19px; }
.app-aktionen { display: flex; flex-direction: column; gap: 8px; }

.app-texte { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--linie-leise); padding-top: 12px; }
.app-text { padding: 12px 14px; border-radius: var(--radius-klein); background: var(--flaeche-leise); }
.app-text p { margin: 4px 0 0 0; }
.app-text-titel { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--text-leise); text-transform: uppercase; letter-spacing: .04em; }
.app-text-sicherheit { background: var(--hinweis-hell); border: 1px solid var(--hinweis-linie); }
.app-text-sicherheit .app-text-titel { color: var(--hinweis); }
.app-text-sicherheit p { font-weight: 600; }
.app-texte-fuss { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-texte-fuss .knopf { margin-left: auto; }

.app-tag { display: flex; flex-direction: column; gap: 6px; }
.app-tag-titel { font-size: 17px; padding: 6px 2px 0 2px; }
.app-tag-leer { margin: 0 2px; font-size: 15px; }
.app-zeile {
  display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 14px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein);
}
.app-zeile-objekt { font-weight: 600; min-width: 0; overflow-wrap: anywhere; flex: 1 1 12em; }
.app-zeile-abgesagt { background: var(--flaeche-leise); color: var(--text-leise); }
.app-zeile-abgesagt .app-zeile-objekt { text-decoration: line-through; font-weight: 400; }

/* Reiter unten: in der App immer sichtbar (auch auf Tablets) */
.app-reiter {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--flaeche); border-top: 1px solid var(--linie);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.app-reiter .reiter-link {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 0 12px 0; font-size: 13px; color: var(--text-leise); text-decoration: none; min-height: 60px;
}
.app-reiter .reiter-link[aria-current="page"] { color: var(--haupt); font-weight: 700; }

/* Hinweis "noch nicht gesendet" über den Reitern */
.app-warte {
  position: fixed; left: 12px; right: 12px; z-index: 21;
  bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  padding: 10px 14px; border-radius: var(--radius-klein); font-size: 15px; font-weight: 600;
  background: var(--hinweis-hell); color: var(--hinweis); border: 1px solid var(--hinweis-linie);
}
.app-toast {
  position: fixed; left: 12px; right: 12px; z-index: 40;
  top: calc(64px + env(safe-area-inset-top, 0px));
  padding: 14px 16px; border-radius: var(--radius-klein); font-weight: 600;
  background: var(--haupt-dunkel); color: var(--auf-haupt); box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.app-toast-fehler { background: var(--warn); }
[hidden] { display: none !important; }

/* QR-Leser: Vollbild-Overlay. Höhe setzt app-mitarbeiter.js (innerHeight). */
.scanner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: #0E1512; color: #FFFFFF;
  display: flex; justify-content: center;
}
.scanner-innen {
  width: 100%; max-width: 520px; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)) 16px;
}
.scanner-innen h2 { font-size: 19px; }
.scanner-bild { position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #000000; flex-shrink: 0; }
.scanner-bild video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-rahmen { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 12px; }
.scanner-meldung { margin: 0; min-height: 1.4em; font-weight: 600; color: #FFD9C2; }
.scanner .knopf { background: #FFFFFF; color: var(--text); border-color: #FFFFFF; }
.scanner .knopf-leise { background: transparent; color: #FFFFFF; border-color: transparent; }
.stapel > .eingabe-frei { flex: none; width: 100%; }

/* --------------------------------------------------------------------------
   Zeiten
   -------------------------------------------------------------------------- */

.reiter-oben { display: flex; gap: 4px; border-bottom: 1px solid var(--linie); overflow-x: auto; }
.reiter-oben a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; white-space: nowrap;
  color: var(--text-leise); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.reiter-oben a:hover { color: var(--text); }
.reiter-oben a[aria-current="page"] { color: var(--haupt); border-bottom-color: var(--haupt); font-weight: 700; }
.app-stunden { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--linie-leise); }
.app-stunden:first-of-type { border-top: 0; }
.pruef-aktionen { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pruef-aktionen form { display: flex; gap: 10px; align-items: center; }
.pruef-aktionen .eingabe-frei { width: 200px; }
@media (max-width: 900px) {
  .pruef-aktionen, .pruef-aktionen form { width: 100%; flex-wrap: wrap; }
  .pruef-aktionen .eingabe-frei { width: 100%; }
  .pruef-aktionen .knopf { flex: 1 1 auto; }
}

/* --------------------------------------------------------------------------
   Rechnungen
   -------------------------------------------------------------------------- */

.feldgruppe-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.lauf { display: flex; flex-direction: column; gap: 8px; }
.lauf-zeile { display: flex; gap: 8px; flex-wrap: wrap; }
.lauf input[type="month"] {
  font: inherit; font-size: 16px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--feld-linie);
  border-radius: var(--radius-klein); background: var(--flaeche); color: var(--text); flex: 1 1 130px; min-width: 0;
}

.pos-tabelle { display: flex; flex-direction: column; }
.pos-zeile {
  display: grid; grid-template-columns: minmax(0, 1fr) 80px 90px 110px 70px 110px; gap: 8px; align-items: center;
  padding: 8px 20px; border-top: 1px solid var(--linie-leise);
}
.pos-zeile:has(input[name^="satz"][hidden]) { grid-template-columns: minmax(0, 1fr) 80px 90px 110px 110px; }
.pos-kopf { font-size: 13px; font-weight: 600; color: var(--text-leise); border-top: 0; padding-bottom: 4px; }
.pos-kopf [hidden] { display: none; }
.pos-zeile input, .pos-zeile textarea {
  font: inherit; font-size: 16px; min-height: 42px; padding: 6px 10px; width: 100%; min-width: 0;
  border: 1px solid var(--feld-linie); border-radius: var(--radius-klein); background: var(--flaeche); color: var(--text);
}
.pos-zeile textarea { resize: vertical; line-height: 1.35; }
.pos-zeile input:focus, .pos-zeile textarea:focus { outline: 3px solid var(--haupt-hell); border-color: var(--haupt); }
.pos-zahl { text-align: right; }
.pos-betrag { text-align: right; font-weight: 600; white-space: nowrap; }
.pos-fehler { background: var(--warn-hell); }
.pos-fehler input { border-color: var(--warn); }
.pos-meldung { grid-column: 1 / -1; }
.pos-summe { display: flex; justify-content: flex-end; gap: 20px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--linie); }

@media (max-width: 900px) {
  .feldgruppe-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pos-zeile { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px 16px; }
  .pos-zeile:has(input[name^="satz"][hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pos-kopf { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 0; }
  .pos-kopf:has([hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pos-kopf span:first-child, .pos-kopf .pos-betrag { display: none; }
  .pos-zeile input { padding: 6px 8px; }
  .pos-zeile textarea { grid-column: 1 / -1; }
  .pos-betrag { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Gefahrstoffe
   -------------------------------------------------------------------------- */

.ghs-reihe { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; vertical-align: middle; }
.ghs-gross figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 90px; text-align: center; font-size: 12px; color: var(--text-leise); }
.signalwort { color: #B00012; font-weight: 700; }
.signalwort-gross { font-size: 20px; text-transform: uppercase; letter-spacing: .05em; }

.auswahl-bilder { display: flex; flex-wrap: wrap; gap: 8px; }
.bild-wahl {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 104px; padding: 8px 6px;
  border: 2px solid var(--linie); border-radius: var(--radius-klein); background: var(--flaeche); cursor: pointer;
  font-size: 12px; text-align: center; line-height: 1.2; overflow-wrap: break-word; hyphens: manual;
}
.bild-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bild-wahl:has(input:checked) { border-color: var(--haupt); background: var(--haupt-hell); box-shadow: 0 0 0 1px var(--haupt); }
.bild-wahl:has(input:focus-visible) { outline: 3px solid var(--haupt); outline-offset: 2px; }
.bild-wahl:not(:has(input:checked)) svg { opacity: .45; }

.h-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.h-satz { align-items: flex-start; font-size: 14px; min-height: 36px; }
.h-satz input { margin-top: 2px; flex-shrink: 0; }

.mittel-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }

@media (max-width: 900px) {
  .h-liste, .mittel-liste { grid-template-columns: minmax(0, 1fr); }
  .bild-wahl { width: calc(33.3% - 6px); }
}

/* Mitarbeiter-App: Reinigungsmittel, Betriebsanweisung, Rechner */
.app-mittel-liste { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--linie-leise); padding-top: 12px; }
.app-mittel { padding: 12px 14px; border-radius: var(--radius-klein); background: var(--flaeche-leise); display: flex; flex-direction: column; gap: 8px; }
.app-mittel-kopf { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.app-mittel-info { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.app-mittel-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.app-ba { display: flex; flex-direction: column; gap: 12px; border: 3px solid #F07D00; }
.app-ba-balken { background: #F07D00; color: #fff; font-weight: 700; text-align: center; padding: 6px; margin: -18px -20px 0 -20px; border-radius: 10px 10px 0 0; }
.app-ba-bilder { display: flex; flex-wrap: wrap; gap: 10px; }
.app-ba-bilder figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 88px; text-align: center; font-size: 13px; }
.app-text-notfall { background: #FDECEC; border: 1px solid #F3B8B8; }
.app-text-notfall .knopf { margin-top: 8px; justify-content: space-between; }
.rechner-mengen { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rechner-frei, .rechner-eingabe {
  font: inherit; font-size: 20px; min-height: 48px; padding: 6px 10px; width: 90px; text-align: center;
  border: 1px solid var(--feld-linie); border-radius: var(--radius-klein); background: var(--flaeche); color: var(--text);
}
.rechner-eingabe { width: 120px; font-weight: 700; }
.rechner-art { display: flex; gap: 16px; flex-wrap: wrap; }
.rechner-wert { display: flex; gap: 8px; align-items: center; font-size: 20px; font-weight: 700; margin-top: 8px; }
.rechner-ergebnis { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--radius); background: var(--haupt-hell); }
.rechner-zeile { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; font-size: 18px; }
.rechner-zeile strong { font-size: 28px; color: var(--haupt-dunkel); }
.rechner-tropfen { width: 22px; height: 22px; margin: 0 5px; border-radius: 0 50% 50% 50%; transform: rotate(45deg); background: #3A86C8; }

/* Gefahrstoffe: Zeichen als Bild, Freigabe, Satzsuche, Bausteine, Bildkarte */
img.ghs, img.zeichen { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.bild-wahl:not(:has(input:checked)) img { opacity: .45; }
.chip-hinweis { background: var(--hinweis-hell); color: var(--hinweis); }
.freigabe-kopf { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.freigabe-kopf .meldung { flex: 1 1 320px; }
.satz-block { display: flex; flex-direction: column; gap: 4px; }
.satz-suche input { width: 100%; font: inherit; min-height: 44px; padding: 6px 12px; margin-bottom: 8px;
  border: 1px solid var(--feld-linie); border-radius: var(--radius-klein); background: var(--flaeche); color: var(--text); }
.satz-liste { max-height: 420px; overflow-y: auto; padding-right: 4px; }
.psa-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 16px; }
.psa-zeile { display: flex; gap: 10px; align-items: center; }
.psa-zeile .bild-wahl { width: 104px; flex-shrink: 0; }
.psa-zeile .feld { flex: 1; margin: 0; }
.ba-feld { display: flex; flex-direction: column; gap: 6px; }
.bausteine { display: flex; flex-wrap: wrap; gap: 6px; }
.baustein {
  font: inherit; font-size: 13px; text-align: left; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--linie-stark); background: var(--flaeche-leise); color: var(--text);
}
.baustein-vorschlag { font-weight: 700; border-color: var(--haupt); background: var(--haupt-hell); }
.baustein:disabled { opacity: .45; cursor: default; }
.karte-sprachen { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.karte-sprachen a { padding: 6px 10px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--linie); color: var(--text); text-decoration: none; font-size: 14px; }
.karte-sprachen a[aria-current] { background: var(--haupt); color: var(--auf-haupt); border-color: var(--haupt); }
@media (max-width: 900px) {
  .psa-zeile .bild-wahl { width: 96px; }
}

/* Unterweisungen */
.kennzahlen-drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.einfach-liste { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.zeile-unten { align-items: flex-end; }
.eintrag .zeile form { margin: 0; }
.eintrag .leise svg { vertical-align: -2px; color: var(--haupt); }
@media (max-width: 900px) {
  .kennzahlen-drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kennzahlen-drei .kennzahl-titel { font-size: 12px; }
}
/* App: Unterweisung */
.app-uw { border: 3px solid var(--haupt); }
.app-uw-bestaetigen { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--radius-klein); background: var(--haupt-hell); }
.app-uw-bestaetigen .haken { font-size: 17px; align-items: flex-start; }
.app-uw-bestaetigen .haken input { width: 26px; height: 26px; flex-shrink: 0; margin-top: 1px; }
.app-hinweis-uw { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; border: 2px solid var(--haupt); }
.app-hinweis-uw strong { display: block; }
.app-uw-liste { display: flex; flex-direction: column; gap: 8px; }
.app-uw-zeile { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--linie-leise); color: inherit; text-decoration: none; }
.uw-eintrag { align-items: center; }
.uw-eintrag > div:first-child { flex: 1; min-width: 0; }
.uw-aktionen { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.uw-aktionen form { margin: 0; }
@media (max-width: 600px) {
  .uw-eintrag { flex-wrap: wrap; }
  .uw-aktionen { width: 100%; }
}

/* Wissensdatenbank: pH-Leiste und Artikel */
.ph-leiste { position: relative; height: 34px; margin: 6px 0 22px; }
.ph-skala { position: absolute; left: 0; right: 0; top: 0; height: 18px; border-radius: 9px;
  background: linear-gradient(90deg, #D7263D 0%, #F46036 14%, #F6AE2D 28%, #E2D93B 40%, #6BBF59 50%, #2E9E6B 57%, #1B8A9E 68%, #2458A6 82%, #5B2A86 100%); }
.ph-aus { position: absolute; top: 0; height: 18px; background: repeating-linear-gradient(135deg, rgba(255,255,255,.82) 0 5px, rgba(255,255,255,.6) 5px 10px); }
.ph-aus-links { border-radius: 9px 0 0 9px; }
.ph-aus-rechts { border-radius: 0 9px 9px 0; }
.ph-band { position: absolute; top: -3px; height: 24px; border: 3px solid var(--text); border-radius: 12px; box-sizing: border-box; }
.ph-marke { position: absolute; top: 20px; width: 0; height: 0; margin-left: -7px; border: 7px solid transparent; border-bottom: 10px solid var(--haupt); transform: translateY(-4px); }
.ph-marke-nicht { border-bottom-color: #B00012; }
.ph-zahlen { position: absolute; left: 0; right: 0; top: 24px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-leise); }
.ph-text { font-weight: 700; margin-top: -6px; }
.wissen-gruppe { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.wissen-karte { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); color: inherit; text-decoration: none; }
.wissen-karte:hover { border-color: var(--haupt); }
.wissen-karte strong { font-size: 16px; }
.wissen-nicht { background: #FDECEC; border: 1px solid #F3B8B8; border-radius: var(--radius-klein); padding: 12px 14px; }
.wissen-nicht h2, .wissen-nicht .app-text-titel { color: #8C0010; }
.wissen-geeignet { background: var(--haupt-hell); border-radius: var(--radius-klein); padding: 12px 14px; }
.wissen-liste { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.oberflaechen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.oberflaechen-chips a { padding: 6px 10px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--linie-stark); color: var(--text); text-decoration: none; font-size: 14px; }
.ph-warnung { display: flex; gap: 8px; align-items: flex-start; color: #8C0010; font-weight: 600; font-size: 15px; }
.ph-warnung svg { flex-shrink: 0; margin-top: 2px; }
.honig { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Filter als Chips (Betreiber) */
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chips a { padding: 6px 12px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--linie-stark); color: var(--text); text-decoration: none; font-size: 14px; }
.filter-chips a span { color: var(--text-leise); margin-left: 4px; }
.filter-chips a[aria-current] { background: var(--haupt); border-color: var(--haupt); color: var(--auf-haupt); }
.filter-chips a[aria-current] span { color: var(--auf-haupt); }
.preis-feld { width: 100%; max-width: 140px; font: inherit; min-height: 40px; padding: 4px 10px; text-align: right;
  border: 1px solid var(--feld-linie); border-radius: var(--radius-klein); background: var(--flaeche); color: var(--text); }

/* --------------------------------------------------------------------------
   Ausstellen und senden (Sammelversand)
   -------------------------------------------------------------------------- */
.versand-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.versand-zeile {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: var(--radius-klein); background: var(--flaeche-leise);
}
.versand-zeile .haken { flex: 1; min-width: 0; align-items: flex-start; }
.versand-zeile .haken input { margin-top: 2px; }
.versand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.versand-problem { background: var(--warn-hell); }
.versand-zeile .knopf { flex-shrink: 0; }
@media (max-width: 560px) {
  .versand-zeile { flex-direction: column; align-items: stretch; }
  .versand-zeile .knopf { align-self: flex-start; margin-left: 32px; }
}
/* Gesperrte Knöpfe und Kästchen sichtbar als nicht wählbar */
.knopf:disabled { opacity: .45; cursor: default; }
.haken input:disabled { cursor: default; }
/* Endgültiges Löschen: deutlich abgesetzt */
.loeschen-kasten { padding: 12px 14px; border: 1px solid var(--warn-linie); border-radius: var(--radius-klein); background: var(--warn-hell); }

/* Feiertage: Liste im Betrieb, Hinweis in der Wochenplanung */
.feiertag-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 16px; }
.feiertag-liste .haken { min-height: 40px; }
.tag-feiertag { flex-basis: 100%; font-size: 12px; font-weight: 600; color: var(--hinweis); }
.tag-spalte:has(.tag-feiertag) { background: var(--hinweis-hell); }
/* Logo-Vorschau im Betrieb */
.logo-vorschau { /* weiss wie das Papier der Rechnung */ padding: 12px; border: 1px solid var(--linie-leise); border-radius: var(--radius-klein); background: #fff; align-self: flex-start; max-width: 100%; }
.logo-vorschau img { display: block; max-height: 64px; max-width: 100%; height: auto; }

/* Systemprüfung (Betreiber) */
.pruef-liste { list-style: none; margin: 12px 0 0; padding: 0; }
.pruef-zeile { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--linie-leise); }
.pruef-zeile:first-child { border-top: 0; padding-top: 4px; }
.pruef-zeile .chip { justify-self: start; }
.pruef-titel { font-weight: 600; overflow-wrap: anywhere; }
.pruef-text { color: var(--text-leise); font-size: 15px; margin-top: 2px; overflow-wrap: anywhere; }
