/* ===================== reinigung – Gestaltung =====================
   Eigene Farbwelt: Petrol als Hauptfarbe, dunkle Seitenleiste, helle ruhige Flächen.
   Schrift Inter (selbst ausgeliefert), Symbole Lucide (public/js/symbole.js). */

@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 400; src: url(/vendor/fonts/inter-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 500; src: url(/vendor/fonts/inter-latin-500-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 600; src: url(/vendor/fonts/inter-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 700; src: url(/vendor/fonts/inter-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 400; src: url(/vendor/fonts/inter-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: Inter; font-style: normal; font-display: swap; font-weight: 600; src: url(/vendor/fonts/inter-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: Inter; font-style: normal; font-display: swap; font-weight: 700; src: url(/vendor/fonts/inter-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: Inter; font-style: normal; font-display: swap; font-weight: 400; src: url(/vendor/fonts/inter-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 600; src: url(/vendor/fonts/inter-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 700; src: url(/vendor/fonts/inter-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

:root {
  /* Grundfarben */
  --tinte: #0f1d24;          /* Text */
  --grau: #5a6873;           /* Nebentext */
  --grau-hell: #8a97a0;
  --rand: #e3e8eb;
  --rand-stark: #cdd5da;
  --hinter: #f4f6f7;         /* Seitengrund */
  --karte: #ffffff;
  --flaeche: #f8fafa;        /* leichte Fläche in Karten */
  /* Hauptfarbe Petrol */
  --haupt: #0e7c74;
  --haupt-dunkel: #0a5f59;
  --haupt-hell: #e5f3f1;
  --haupt-text: #0b5c56;
  /* Seitenleiste */
  --leiste: #0c2a2f;
  --leiste-text: #c4d6d8;
  --leiste-aktiv: #16434a;
  /* Zustände */
  --gruen: #15803d; --gruen-hell: #e8f5ec;
  --warn: #b45309;  --warn-hell: #fdf3e2; --warn-rand: #f3d19c;
  --rot: #c62828;   --rot-hell: #fdecec;  --rot-rand: #f2b8b8;
  --blau: #2563eb;  --blau-hell: #eaf1fe;
  --lila: #6d28d9;  --lila-hell: #f1ebfd;
  --radius: 8px; --radius-karte: 12px;
  --schatten: 0 1px 2px rgba(16, 24, 32, .05), 0 1px 3px rgba(16, 24, 32, .04);
  --schatten-hoch: 0 12px 32px rgba(16, 24, 32, .18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--tinte); background: var(--hinter);
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
h1 { font-size: 1.5rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .25rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
h2 { font-size: 1.02rem; font-weight: 600; margin: 0 0 .75rem; }
h3 { font-size: .95rem; font-weight: 600; margin: 1rem 0 .5rem; }
h4 { font-size: .75rem; font-weight: 600; margin: 1.25rem 0 .5rem; color: var(--grau); text-transform: uppercase; letter-spacing: .06em; }
a { color: var(--haupt-text); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: .4rem 0; }
.sym { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -4px; stroke-width: 1.9; }
.sym.klein { width: 15px; height: 15px; vertical-align: -3px; }
.zahlen, .uhr, .zeit, .besetzung, .wochenstd, .tagstd, td.rechts { font-variant-numeric: tabular-nums; }

/* Knöpfe */
button { font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1px solid var(--rand-stark); background: var(--karte); color: var(--tinte); border-radius: var(--radius);
  padding: .5rem .9rem; min-height: 38px; font-weight: 500; transition: background .12s, border-color .12s, box-shadow .12s; }
button:hover { background: var(--flaeche); border-color: var(--grau-hell); }
button.haupt { background: var(--haupt); border-color: var(--haupt); color: #fff; }
button.haupt:hover { background: var(--haupt-dunkel); border-color: var(--haupt-dunkel); }
button.gefahr { color: var(--rot); }
button.gefahr:hover { background: var(--rot-hell); border-color: var(--rot-rand); }
button.klein { min-height: 30px; padding: .25rem .6rem; font-size: .85rem; }
button.ohne { border-color: transparent; background: transparent; }
button.ohne:hover { background: var(--flaeche); }
button.link { border: 0; background: none; color: var(--haupt-text); padding: 0; min-height: 0; font-weight: 500; }
button.link:hover { text-decoration: underline; background: none; }
button.gross { width: 100%; min-height: 48px; background: var(--haupt); color: #fff; border: 0; font-weight: 600; font-size: 1rem; }
button.gross:hover { background: var(--haupt-dunkel); }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, input:focus, select:focus, textarea:focus, tr.klickbar:focus, [role=button]:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(14, 124, 116, .25); border-color: var(--haupt); }

/* Eingaben */
input, select, textarea { font: inherit; width: 100%; padding: .55rem .7rem; border: 1px solid var(--rand-stark); border-radius: var(--radius);
  background: #fff; color: var(--tinte); min-height: 40px; }
textarea { min-height: 80px; resize: vertical; }
input:disabled, select:disabled, textarea:disabled { background: var(--flaeche); color: var(--grau); }
input::placeholder, textarea::placeholder { color: var(--grau-hell); }
label { display: block; color: var(--grau); }

/* Allgemein */
.laden { color: var(--grau); padding: 3rem 1rem; text-align: center; }
.leer { color: var(--grau); padding: .5rem 0; }
.fehler { color: var(--rot); }
.grau { color: var(--grau); }
.rot { color: var(--rot); }
.gruen { color: var(--gruen); }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius-karte); padding: 1.25rem; margin-bottom: 1rem; box-shadow: var(--schatten); }
.karte > h2:first-child { margin-top: 0; }
.kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.kopfzeile h1, .kopfzeile h2, .kopfzeile h3 { margin: 0; }
.zurueck { margin: 0 0 .35rem; font-size: .85rem; }
.zurueck a { color: var(--grau); }
.untertitel { color: var(--grau); margin: 0 0 1.25rem; }
.hinweis { display: flex; gap: .6rem; align-items: flex-start; background: var(--blau-hell); color: #1e3a8a; border-radius: var(--radius); padding: .75rem 1rem; margin: 0 0 1rem; }
.hinweis.warn { background: var(--warn-hell); color: #7c3a06; border: 1px solid var(--warn-rand); }
.hinweis .sym { margin-top: 1px; }
.filter { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.filter input[type=search] { max-width: 320px; padding-left: 2.2rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a97a0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat .7rem center; }
.filter input[type=date], .filter select { width: auto; }
.reiter { gap: 0; background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius); padding: 3px; display: inline-flex; }
.reiter button { border: 0; min-height: 32px; background: transparent; color: var(--grau); }
.reiter button.an { background: var(--haupt-hell); color: var(--haupt-text); }

/* Marken (Status-Pillen) */
.marke { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px;
  background: var(--flaeche); color: var(--grau); border: 1px solid var(--rand); white-space: nowrap; line-height: 1.5; }
.marke::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.marke.ohne-punkt::before { display: none; }
.marke.aktiv, .marke.genehmigt { background: var(--gruen-hell); color: var(--gruen); border-color: #bfe3cb; }
.marke.entwurf, .marke.warn, .marke.beantragt { background: var(--warn-hell); color: var(--warn); border-color: var(--warn-rand); }
.marke.rot, .marke.abgelehnt { background: var(--rot-hell); color: var(--rot); border-color: var(--rot-rand); }
.marke.pausiert { background: var(--blau-hell); color: var(--blau); border-color: #c7d8fb; }
.marke.beendet, .marke.grau { background: var(--flaeche); color: var(--grau); }
h1 .marke { font-size: .78rem; }
.etikett { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; padding: .1rem .5rem; border-radius: 6px; background: var(--flaeche); border: 1px solid var(--rand); color: var(--tinte); white-space: nowrap; }
.etikett.haupt { background: var(--haupt-hell); border-color: #bfe0dc; color: var(--haupt-text); }
.etikett.lila { background: var(--lila-hell); border-color: #ddd0fa; color: var(--lila); }

/* Anmeldung */
.anmeldung { min-height: 100vh; display: grid; grid-template-columns: 1fr; place-items: center; padding: 1rem; background: var(--leiste); }
.anmeldung form { width: 100%; max-width: 400px; padding: 2rem; }
.anmeldung .marke-logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; margin-bottom: 1.5rem; }
.anmeldung label { margin-bottom: 1rem; font-size: .9rem; font-weight: 500; color: var(--tinte); }
.anmeldung input { margin-top: .35rem; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--haupt); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.logo .sym { width: 18px; height: 18px; }

/* Rahmen: Seitenleiste + Inhalt */
.rahmen { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.rahmen > div { min-width: 0; }
.leiste { background: var(--leiste); color: var(--leiste-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1rem .75rem; }
.leiste .firma { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem 1.25rem; color: #fff; }
.leiste .firma strong { display: block; font-size: .95rem; line-height: 1.2; }
.leiste .firma small { color: var(--leiste-text); font-size: .75rem; }
.leiste .gruppe { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #7f9da1; padding: 1rem .65rem .35rem; font-weight: 600; }
.leiste a { display: flex; align-items: center; gap: .7rem; padding: .5rem .65rem; border-radius: 8px; color: var(--leiste-text); font-weight: 500; font-size: .92rem; text-decoration: none; }
.leiste a:hover { background: rgba(255,255,255,.06); color: #fff; }
.leiste a.aktiv { background: var(--leiste-aktiv); color: #fff; box-shadow: inset 3px 0 0 #3ec7b8; }
.leiste a .zaehler { margin-left: auto; font-size: .72rem; font-weight: 700; background: #e0574f; color: #fff; border-radius: 999px; padding: 0 .45rem; min-width: 20px; text-align: center; line-height: 1.6; }
.leiste a .zaehler.ruhig { background: rgba(255,255,255,.12); color: var(--leiste-text); }
.leiste .unten { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: .75rem; display: flex; align-items: center; gap: .6rem; }
.leiste .unten .avatar { background: #1f5a61; color: #fff; }
.leiste .unten .wer { flex: 1; min-width: 0; font-size: .85rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leiste .unten button { background: transparent; border-color: rgba(255,255,255,.15); color: var(--leiste-text); min-height: 32px; padding: .3rem .5rem; }
.leiste .unten button:hover { background: rgba(255,255,255,.08); color: #fff; }
.mobil-kopf { display: none; }
.inhalt { max-width: 1320px; width: 100%; margin: 0 auto; padding: 1.75rem 2rem 4rem; }
.seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.seitenkopf h1 { margin: 0; }
.seitenkopf .untertitel { margin: .25rem 0 0; }
.seitenkopf .knoepfe { margin: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700; flex-shrink: 0;
  background: var(--haupt-hell); color: var(--haupt-text); letter-spacing: .02em; }
.avatar.klein { width: 26px; height: 26px; font-size: .68rem; }

/* Kennzahlen und Übersicht */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.kennzahl { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius-karte); padding: 1rem 1.1rem; box-shadow: var(--schatten); display: flex; gap: .85rem; align-items: center; color: inherit; text-decoration: none; }
a.kennzahl:hover { border-color: var(--rand-stark); text-decoration: none; }
.kennzahl .symbolfeld { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--haupt-hell); color: var(--haupt); flex-shrink: 0; }
.kennzahl .zahl { font-size: 1.5rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kennzahl .text { color: var(--grau); font-size: .85rem; }
.raster-zwei { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.aufgaben-liste { list-style: none; margin: 0; padding: 0; }
.aufgaben-liste li { display: flex; align-items: center; gap: .85rem; padding: .8rem 0; border-top: 1px solid var(--rand); }
.aufgaben-liste li:first-child { border-top: 0; padding-top: .2rem; }
.aufgaben-liste .symbolfeld { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.symbolfeld.rot { background: var(--rot-hell); color: var(--rot); }
.symbolfeld.warn { background: var(--warn-hell); color: var(--warn); }
.symbolfeld.blau { background: var(--blau-hell); color: var(--blau); }
.symbolfeld.gruen { background: var(--gruen-hell); color: var(--gruen); }
.aufgaben-liste .was { flex: 1; min-width: 0; }
.aufgaben-liste .was strong { display: block; font-weight: 600; }
.aufgaben-liste .was span { color: var(--grau); font-size: .85rem; }
.alles-gut { display: flex; align-items: center; gap: .75rem; color: var(--gruen); padding: .5rem 0; }
.ablauf { list-style: none; margin: 0; padding: 0; }
.ablauf li { display: grid; grid-template-columns: 92px 1fr auto; gap: .75rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--rand); cursor: pointer; }
.ablauf li:first-child { border-top: 0; }
.ablauf li:hover .ort strong { color: var(--haupt-text); }
.ablauf .uhr { font-weight: 600; font-size: .9rem; }
.ablauf .ort strong { display: block; font-weight: 600; font-size: .92rem; }
.ablauf .ort span { color: var(--grau); font-size: .82rem; }
.start ol { margin: 0; padding-left: 1.2rem; }
.start li { margin-bottom: .45rem; }

/* Tabellen */
.tabelle-karte { background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius-karte); box-shadow: var(--schatten); overflow: hidden; }
.tabelle-rahmen { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--rand); vertical-align: middle; }
thead th { font-size: .72rem; color: var(--grau); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: var(--flaeche); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td .neben { display: block; color: var(--grau); font-size: .82rem; }
.rechts { text-align: right; }
tr.klickbar { cursor: pointer; }
tr.klickbar:hover td { background: #f6faf9; }
.karte > .tabelle-rahmen { margin: 0 -1.25rem -1.25rem; border-top: 1px solid var(--rand); }
.karte > .tabelle-rahmen thead th:first-child, .karte > .tabelle-rahmen td:first-child { padding-left: 1.25rem; }
.karte > .leer { padding: .25rem 0 0; }
.name-zelle { display: flex; align-items: center; gap: .65rem; }

/* Formulare */
.formular { margin: 0; }
.formular-gruppe { border-top: 1px solid var(--rand); padding-top: 1rem; margin-top: 1rem; }
.formular-gruppe:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.formular-gruppe > h4 { margin-top: 0; }
.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem 1rem; }
.feld label { font-size: .85rem; font-weight: 500; color: var(--tinte); margin-bottom: .3rem; }
.feld small { display: block; color: var(--grau); margin-top: .3rem; font-size: .8rem; }
.feld.breit { grid-column: 1 / -1; }
.feld.janein, label.janein { display: flex; align-items: center; gap: .55rem; color: var(--tinte); font-weight: 500; font-size: .92rem; }
.feld.janein { align-self: end; min-height: 40px; }
label.janein input, .feld.janein input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--haupt); }
.knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.1rem; }
.knoepfe.eng { margin: 0; gap: .3rem; flex-wrap: nowrap; }
.knoepfe.unten { margin: 0 0 1rem; }
.kopfzeile .knoepfe { margin-top: 0; }
.tage { display: flex; gap: .3rem; flex-wrap: wrap; }
.tage button { min-width: 44px; padding: .4rem .5rem; min-height: 36px; }
.tage button.an { background: var(--haupt); color: #fff; border-color: var(--haupt); }
.haken { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; margin: .5rem 0; }
.zeile { display: flex; gap: .5rem; align-items: center; margin: .5rem 0; flex-wrap: wrap; }
.zeile select { flex: 1; min-width: 180px; }
.liste { list-style: none; margin: 0 0 .75rem; padding: 0; }
.liste li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--rand); }
.liste.klein li { font-size: .9rem; }
.schichtform { border: 1px solid var(--rand); border-radius: var(--radius-karte); padding: 1.1rem; background: var(--flaeche); margin-bottom: 1rem; }
.schichtform h3 { margin-top: 0; }
table.abw td { padding: .3rem; border: 0; }
table.abw input { min-width: 90px; }
label.janein.abstand { margin-top: 1.25rem; }

/* Infofeld auf Detailseiten */
.infos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem 1.25rem; margin: 0; }
.infos div { display: flex; gap: .55rem; align-items: flex-start; }
.infos .sym { color: var(--grau-hell); margin-top: 2px; }
.infos dt { font-size: .75rem; color: var(--grau); }
.infos dd { margin: 0; font-weight: 500; }

/* Schichten (Karten) */
.schichten { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.schicht { border: 1px solid var(--rand); border-radius: 10px; padding: 1rem; background: #fff; display: flex; flex-direction: column; gap: .55rem; }
.schicht.aus { opacity: .6; }
.schicht .oben { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grau); font-weight: 600; }
.schicht .zeitgross { font-size: 1.35rem; font-weight: 700; color: var(--haupt-text); font-variant-numeric: tabular-nums; }
.schicht .tagpunkte { display: flex; gap: .25rem; }
.schicht .tagpunkte span { width: 28px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: .72rem; font-weight: 600; background: var(--flaeche); color: var(--grau-hell); }
.schicht .tagpunkte span.an { background: var(--haupt); color: #fff; }
.schicht .zeile-klein { display: flex; align-items: center; gap: .45rem; font-size: .88rem; color: var(--grau); }
.schicht .unten { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--rand); padding-top: .6rem; margin-top: auto; }
.gesichter { display: flex; }
.gesichter .avatar { border: 2px solid #fff; margin-left: -6px; }
.gesichter .avatar:first-child { margin-left: 0; }

/* Einsatzliste */
.einsaetze h3.tag { margin: 1.25rem 0 .5rem; font-size: .78rem; color: var(--grau); text-transform: uppercase; letter-spacing: .06em; }
.einsaetze > div:first-child h3.tag { margin-top: 0; }
.einsatz { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr) 56px; gap: .9rem; align-items: center; padding: .75rem 1rem;
  background: var(--karte); border: 1px solid var(--rand); border-left: 3px solid var(--haupt); border-radius: 0 10px 10px 0; margin-bottom: .45rem; }
.einsatz.fehlt { border-left-color: var(--rot); background: #fffafa; }
.einsatz.aus { opacity: .55; text-decoration: line-through; border-left-color: var(--grau-hell); }
.einsatz .uhr { font-weight: 600; }
.einsatz .abwesend { color: var(--rot); text-decoration: line-through; }
.einsatz[role=button] { cursor: pointer; }
.einsatz[role=button]:hover { border-color: var(--rand-stark); }
.besetzung { justify-self: end; font-weight: 700; font-size: .85rem; padding: .15rem .5rem; border-radius: 6px; background: var(--gruen-hell); color: var(--gruen); }
.besetzung.rot { background: var(--rot-hell); color: var(--rot); }

/* Dienstplan */
.plan-werkzeug { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .85rem 1rem; border-bottom: 1px solid var(--rand); }
.plan-werkzeug .woche { font-size: 1.05rem; font-weight: 600; }
.plan-rahmen { overflow-x: auto; }
table.plan { min-width: 880px; table-layout: fixed; }
table.plan th, table.plan td { border-bottom: 1px solid var(--rand); border-right: 1px solid var(--rand); padding: .4rem; vertical-align: top; }
table.plan td:last-child, table.plan th:last-child { border-right: 0; }
table.plan thead th { text-align: center; font-size: .78rem; text-transform: none; letter-spacing: 0; color: var(--grau); padding: .55rem .4rem; }
table.plan thead th b { display: block; color: var(--tinte); font-size: .95rem; }
table.plan thead th:first-child, table.plan tbody th { width: 176px; text-align: left; }
table.plan tbody th { font-weight: 500; background: #fff; position: sticky; left: 0; z-index: 1; padding: .6rem .75rem; }
table.plan tbody th a { color: var(--tinte); font-weight: 600; }
table.plan .heute { background: #f2faf9; }
table.plan thead th.heute b { color: var(--haupt); }
table.plan .wochenende { background: repeating-linear-gradient(135deg, #fafbfb 0 6px, #f3f5f6 6px 12px); }
.ma-kopf { display: flex; align-items: center; gap: .6rem; }
.ma-kopf > div { min-width: 0; flex: 1; }
.ma-kopf a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
tr.unbesetzt th { color: var(--rot); }
tr.unbesetzt th, tr.unbesetzt td { background: #fffafa; }
tr.unbesetzt td { border-bottom: 2px solid var(--rot-rand); }
.wochenstd { display: block; font-weight: 400; color: var(--grau); font-size: .78rem; }
.auslastung { display: block; height: 4px; background: var(--rand); border-radius: 2px; margin-top: .35rem; overflow: hidden; }
.auslastung span { display: block; height: 100%; background: var(--haupt); border-radius: 2px; }
.auslastung.ueber span { background: var(--rot); }
.chip { display: block; width: 100%; text-align: left; font-size: .76rem; line-height: 1.3; padding: .35rem .45rem .35rem .55rem; margin-bottom: .3rem; min-height: 0;
  border-radius: 6px; border: 1px solid #cfe5e2; border-left: 3px solid var(--kunde, var(--haupt)); background: #fff; color: var(--tinte); cursor: pointer; font-weight: 400; }
.chip:hover { background: var(--haupt-hell); border-color: #b5dad5; }
.chip .zeit { display: block; font-weight: 600; }
.chip .ort { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--grau); }
.chip .soll { float: right; font-weight: 700; color: var(--rot); }
.chip.offen { border: 1px dashed var(--rot); border-left: 3px solid var(--rot); background: #fff; }
.chip.konflikt { background: var(--rot-hell); border-color: var(--rot); }
.chip.abwesend { background: #f4f5f6; color: var(--grau-hell); text-decoration: line-through; border-color: var(--rand); border-left-color: var(--grau-hell); }
.chip.vertretung { background: var(--gruen-hell); border-color: #bfe3cb; border-left-color: var(--gruen); }
.chip.aus { opacity: .5; text-decoration: line-through; }
.legende { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--grau); }
.legende .chip { display: inline-block; width: auto; cursor: default; margin: 0; padding: .1rem .5rem; }
td.abw { background-image: repeating-linear-gradient(135deg, transparent 0 7px, rgba(0,0,0,.03) 7px 14px); }
td.abw-krank, td.abw-kind_krank { background-color: #fdf1f1; }
td.abw-urlaub, td.abw-freizeitausgleich, td.abw-sonderurlaub, td.abw-unbezahlt, td.abw-sonstiges { background-color: #eef4fd; }
td.beantragt { box-shadow: inset 0 0 0 2px var(--warn-rand); }
.abw-text { display: flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; color: var(--rot); text-decoration: none; margin-bottom: .25rem; }
td.abw-urlaub .abw-text, td.abw-freizeitausgleich .abw-text, td.abw-sonderurlaub .abw-text { color: var(--blau); }
.tagstd { display: block; font-size: .7rem; color: var(--grau-hell); text-align: right; margin-top: .15rem; }

/* Fenster (Dialog) */
.fenster-hinter { position: fixed; inset: 0; background: rgba(9, 22, 26, .5); display: flex; justify-content: flex-end; z-index: 20; }
.fenster { background: var(--karte); width: 100%; max-width: 560px; height: 100%; overflow-y: auto; padding: 1.5rem; box-shadow: var(--schatten-hoch); animation: rein .18s ease-out; }
@keyframes rein { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.fenster .kopfzeile { position: sticky; top: -1.5rem; background: #fff; padding: .25rem 0 .75rem; margin-top: -.25rem; border-bottom: 1px solid var(--rand); margin-bottom: 1rem; z-index: 1; }
.fenster details { margin: .85rem 0; }
.fenster summary { cursor: pointer; color: var(--haupt-text); font-weight: 500; }
.abstand-oben { margin-top: 1.25rem; }

/* Vorschläge (Rangliste) */
.vorschlaege { list-style: none; padding: 0; margin: .5rem 0; }
.vorschlaege li { border: 1px solid var(--rand); border-radius: 10px; padding: .75rem .85rem; margin-bottom: .5rem; background: #fff; }
.vorschlaege li:first-child { border-color: #9fd3cc; box-shadow: 0 0 0 3px var(--haupt-hell); }
.v-kopf { display: flex; align-items: center; gap: .65rem; }
.v-kopf strong { flex: 1; }
.rang { width: 26px; height: 26px; border-radius: 50%; background: var(--haupt-hell); color: var(--haupt-text); display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.balken { width: 72px; height: 5px; background: var(--rand); border-radius: 3px; overflow: hidden; }
.balken span { display: block; height: 100%; background: var(--haupt); }
.gruende { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.grund { font-size: .75rem; padding: .12rem .5rem; border-radius: 999px; }
.grund.plus { background: var(--gruen-hell); color: var(--gruen); }
.grund.minus { background: var(--flaeche); color: var(--grau); border: 1px solid var(--rand); }
.betroffen.fehlt { border-left: 3px solid var(--rot); }

/* QR und Aushang */
.qr { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.qr > div { flex: 1; min-width: 240px; }
.qr img { width: 168px; height: 168px; image-rendering: pixelated; border: 1px solid var(--rand); border-radius: 10px; background: #fff; padding: 4px; }
.qr code, code { word-break: break-all; font-size: .82rem; background: var(--flaeche); padding: .15rem .4rem; border-radius: 4px; border: 1px solid var(--rand); }
.aushang { text-align: center; padding: 2rem; }
.aushang img { width: 320px; height: 320px; image-rendering: pixelated; }
.aushang h1 { justify-content: center; font-size: 2rem; }
.aushang .gross { font-size: 1.4rem; }
.fotos-klein { display: flex; gap: .4rem; flex-wrap: wrap; }
.fotos-klein img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--rand); }

/* Meldung unten */
.meldung { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--tinte); color: #fff; padding: .75rem 1.15rem; border-radius: 10px;
  max-width: calc(100% - 2rem); box-shadow: var(--schatten-hoch); z-index: 40; font-weight: 500; }
.meldung.fehler { background: var(--rot); color: #fff; }

/* Schmale Bildschirme */
@media (max-width: 1100px) { .raster-zwei { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .rahmen { grid-template-columns: 1fr; }
  .leiste { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  .rahmen.menue-offen .leiste { transform: none; box-shadow: var(--schatten-hoch); }
  .rahmen.menue-offen::after { content: ''; position: fixed; inset: 0; background: rgba(9,22,26,.45); z-index: 25; }
  .mobil-kopf { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; background: var(--leiste); color: #fff; position: sticky; top: 0; z-index: 20; }
  .mobil-kopf button { background: transparent; color: #fff; border-color: rgba(255,255,255,.2); }
  .inhalt { padding: 1.1rem 1rem 4rem; }
  table.plan { min-width: 880px; }
  table.plan thead th:first-child, table.plan tbody th { width: 150px; }
}
@media (max-width: 640px) {
  .kennzahlen { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .kennzahl { padding: .75rem; gap: .6rem; }
  .kennzahl .symbolfeld { width: 34px; height: 34px; }
  .kennzahl .zahl { font-size: 1.25rem; }
  .aufgaben-liste li { flex-wrap: wrap; }
  .aufgaben-liste li .was { flex-basis: calc(100% - 3.5rem); }
  .aufgaben-liste li button { margin-left: calc(36px + .85rem); }
  .seitenkopf { align-items: flex-start; }
  h1 { font-size: 1.3rem; }
  .einsatz { grid-template-columns: 1fr auto; }
  .einsatz .uhr { grid-column: 1 / -1; }
  .v-kopf { flex-wrap: wrap; }
  .balken { display: none; }
  .fenster { padding: 1rem; }
  .ablauf li { grid-template-columns: 72px 1fr auto; }
}

/* ===================== Mitarbeiter-App ===================== */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; font-size: 17px; background: var(--hinter); }
.app-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1rem; background: var(--leiste); color: #fff; }
.app-kopf small { color: var(--leiste-text); font-size: .8rem; }
.app-menue { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.app-menue:hover { background: rgba(255,255,255,.08); }
.app-menue-inhalt { background: var(--karte); padding: 1rem; border-bottom: 1px solid var(--rand); display: grid; gap: .75rem; }
.app-menue-inhalt label { color: var(--tinte); display: grid; gap: .3rem; font-weight: 500; }
.app-inhalt { padding: 1rem 1rem 6rem; }
.app h1 { font-size: 1.45rem; margin: .5rem 0; }
.app h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.app-tag { margin: 1.25rem 0 .5rem !important; color: var(--grau); font-size: .85rem !important; text-transform: uppercase; letter-spacing: .05em; }
.app .gross { font-size: 1.2rem; font-weight: 600; margin: .3rem 0; }
.app .klein { font-size: .88rem; color: var(--grau); }
.app-karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 16px; padding: 1rem 1.1rem; margin: .75rem 0; box-shadow: var(--schatten); }
.app-karte.laeuft { border: 2px solid var(--haupt); background: var(--haupt-hell); }
.app-karte.neu { border: 2px solid var(--blau); background: var(--blau-hell); }
.app-karte.gelb { background: #fffaf0; border-color: var(--warn-rand); }
.app-karte.scan h1 { margin-bottom: 1rem; }
.app-karte.gross-mitte { text-align: center; font-size: 3rem; color: var(--gruen); }
.app-karte.gross-mitte p { font-size: 1.15rem; color: var(--tinte); }
.app-knopf { display: flex; width: 100%; min-height: 60px; font-size: 1.15rem; font-weight: 700; border-radius: 14px; margin: .6rem 0; border: 2px solid transparent; }
.app-knopf.start { background: var(--haupt); color: #fff; }
.app-knopf.start:hover { background: var(--haupt-dunkel); }
.app-knopf.stopp { background: var(--rot); color: #fff; }
.app-knopf.warnung { background: var(--warn-hell); color: var(--warn); border-color: var(--warn-rand); }
.app-knopf.zweit { background: #fff; color: var(--haupt-text); border-color: var(--haupt); min-height: 52px; font-size: 1.02rem; }
.app-zurueck { border: 0; background: none; color: var(--haupt-text); font-size: 1rem; padding: .25rem 0; min-height: 44px; }
.app-einsatz { display: grid; grid-template-columns: auto 1fr auto; gap: .85rem; align-items: center; width: 100%; text-align: start;
  background: var(--karte); border: 1px solid var(--rand); border-inline-start: 4px solid var(--haupt); border-radius: 14px; padding: 1rem; margin: .5rem 0; min-height: 76px; font-size: 1rem; font-weight: 400; box-shadow: var(--schatten); }
.app-einsatz .zeit { font-weight: 700; font-size: 1.05rem; display: block; }
.app-einsatz .status { font-size: 1.4rem; color: var(--haupt); }
.app-einsatz.laeuft { border-color: var(--haupt); background: var(--haupt-hell); }
.app-einsatz.aus { opacity: .55; text-decoration: line-through; border-inline-start-color: var(--grau-hell); }
.app-einsatz.klein { min-height: 56px; opacity: .85; cursor: default; box-shadow: none; border-inline-start-color: var(--rand-stark); }
.app-einsatz:disabled { color: var(--tinte); }
.app-aufgabe { padding: .65rem 0; border-bottom: 1px solid var(--rand); }
.app-aufgabe label { display: flex; align-items: center; gap: .75rem; color: var(--tinte); font-size: 1.02rem; }
.app-aufgabe input[type=checkbox] { width: 28px; height: 28px; min-height: 0; flex-shrink: 0; accent-color: var(--haupt); }
.app-aufgabe.fertig label { color: var(--grau); text-decoration: line-through; }
.app-aufgabe .menge { margin-top: .5rem; max-width: 220px; }
.app-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .5rem; }
.app-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.app-label { display: grid; gap: .4rem; color: var(--tinte); }
.app textarea, .app select, .app input { font-size: 1.02rem; }
.app-hinweis { padding: .75rem 1rem; border-radius: 12px; margin: .75rem 1rem; background: var(--blau-hell); color: #1e3a8a; }
.app-inhalt .app-hinweis { margin: .75rem 0; }
.app-hinweis.warn { background: var(--warn-hell); color: #7c3a06; }
.app-hinweis.fehler { background: var(--rot-hell); color: var(--rot); }
.app-meldung { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); width: calc(100% - 2rem); max-width: 520px; padding: 1rem;
  border-radius: 14px; background: var(--tinte); color: #fff; font-size: 1.02rem; z-index: 30; box-shadow: var(--schatten-hoch); }
.app-meldung.fehler { background: var(--rot); }
.app-meldung.warn { background: var(--warn); }
[dir=rtl] .app-einsatz .status.pfeil { transform: scaleX(-1); }

@media print {
  .leiste, .mobil-kopf, .zurueck, .knoepfe, .meldung, .nicht-drucken { display: none !important; }
  .rahmen { display: block; }
  body { background: #fff; }
  .inhalt { padding: 0; }
}
.tabelle-karte > .leer { padding: 1.25rem; margin: 0; }
