/* ════════════════════════════════════════════════════════════════════
   Aslantas Firmen-App — Designsystem (Premium-Redesign, Oktober 2026)

   Leitbild: heller, ruhiger Grund mit weichem Rosé-Verlauf, weiße Karten
   mit großzügigen Rundungen und sehr dezenten Schatten, klare Typografie
   (Inter), wenig Text, dezente rote Firmenakzente. Mobil: schwebendes Dock
   unten. Desktop: elegante Seitenleiste links.

   Raster: 4/8 px. Seitenrand mobil 20 px. Berührungsflächen ≥ 44 px.
   Hell und Nacht: alle Farben sind Variablen; der Nachtmodus überschreibt
   nur sie (:root[data-theme="dunkel"]). Gesetzt wird das Attribut schon im
   <head> (gewählt oder wie das Gerät), damit nichts hell aufblitzt.
   Alle Seiten nutzen dieselben Bausteine (Karten, Zeilen, Buttons, Felder,
   Chips, Tabellen) — keine Sondergestaltung je Seite.
   ════════════════════════════════════════════════════════════════════ */
:root {
  /* Marke */
  --rot: #C87575;            /* Soft Red — Akzente, Icons, Markierungen */
  --rot-stark: #AD5C5C;      /* Buttons/Text auf Weiß (Kontrast ≥ 4,5:1) */
  --rose: #DCA6A3;           /* Dusty Rose — sekundär */
  --rose-hell: #F5E8E7;      /* Light Rose — aktive Flächen */
  --rose-hauch: #FBF4F3;
  /* Flächen und Text */
  --bg: #FAFAF9;
  --karte: #FFFFFF;
  --text: #263238;
  --text-2: #78838A;
  --text-3: #A4ADB2;
  --linie: #E9E9E7;
  --linie-2: #F2F2F0;
  /* Status (nur wo die Bedeutung eindeutig ist) */
  --gruen: #3F8A68;   --gruen-hell: #E6F2EB;
  --orange: #B9772F;  --orange-hell: #FAEEDF;
  --rot-status: #C62D2D; --rot-status-hell: #FBE4E2;   /* Negatives: klar rot, deutlich vom Marken-Rosé getrennt */
  --blau: #4F7398;    --blau-hell: #E8EEF5;
  --violett: #6F6CA3; --violett-hell: #EDECF6;
  --tuerkis: #23827D; --tuerkis-hell: #E0F1EF;
  --amber: #A9781A;   --amber-hell: #FBF0D6;
  --grau: #66737A;    --grau-hell: #EEF0F1;
  /* Farbregel: Bedeutung tragen nur Grün (positiv) und Rot (negativ) — alles andere einheitlich neutral.
     Ausgenommen: Kalenderfarben, Auftragsstatus im Kalender und Fahrzeugfarben (kommen aus den Daten). */
  --neutral: var(--grau); --neutral-hell: var(--grau-hell);
  --positiv: var(--gruen); --positiv-hell: var(--gruen-hell);
  --negativ: var(--rot-status); --negativ-hell: var(--rot-status-hell);
  /* Form */
  --r-s: 10px; --r: 16px; --r-l: 22px; --r-xl: 28px;
  --schatten-s: 0 1px 2px rgba(38, 50, 56, .04), 0 2px 6px rgba(38, 50, 56, .03);
  --schatten: 0 1px 2px rgba(38, 50, 56, .04), 0 8px 24px rgba(38, 50, 56, .06);
  --schatten-l: 0 2px 6px rgba(38, 50, 56, .05), 0 18px 48px rgba(38, 50, 56, .10);
  --rand: 18px;
  --dock-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Kompatibilität: Namen, die in Vorlagen direkt verwendet werden */
  --color-bg: var(--karte);
  --color-surface: var(--linie-2);
  --color-text: var(--text);
  --color-accent: var(--rot);
  --color-accent-600: var(--rot-stark);
  --color-accent-700: var(--rot-stark);
  --color-accent-100: var(--rose-hell);
  --color-divider: var(--linie);
  --color-neutral-100: #F6F6F4;
  --color-neutral-200: #EFEFEC;
  --color-neutral-300: var(--linie);
  --color-neutral-400: #C9CED1;
  --color-neutral-500: var(--text-3);
  --color-neutral-600: var(--text-2);
  --color-neutral-700: #5E6A70;
  --color-neutral-800: #3D4A50;
  --color-neutral-900: var(--text);
  --st-green: var(--gruen);
  --st-yellow: var(--orange);
  --line-w: 1px;             /* zentrale Linienstärke */

  /* Flächen, die im Nachtmodus anders gemischt werden */
  --rahmen: rgba(38, 50, 56, .05);
  --glas: rgba(255, 255, 255, .88);
  --glas-kopf: rgba(250, 250, 249, .82);
  --glas-dock: rgba(255, 255, 255, .78);
  --glas-dock-rand: rgba(255, 255, 255, .9);
  --glanz: rgba(173, 92, 92, .75);   /* Lichtkante von Navigation und Flächen */
  --glanz-weich: rgba(173, 92, 92, .07);   /* weicher Schein unter dem Zeiger */
  --glas-leicht: rgba(255, 255, 255, .6);
  --glas-hauch: rgba(255, 255, 255, .55);
  --glas-seite: rgba(255, 255, 255, .72);
  --flaeche-kopf: #FCFCFB;
  --flaeche-we: #F8F8F6;
  --invers: #FFFFFF;          /* Schrift auf Flächen in Textfarbe */
  --knopf: #AD5C5C;          /* Flächen mit weißer Schrift (Buttons, Zähler) */
  --btn-hover: #9F5252;
  --verlauf-rose: rgba(220, 166, 163, .30);
  --verlauf-blau: rgba(214, 223, 230, .55);
  /* Liquid Glass (Werte laut Vorgabe), Bento, Soft 3D */
  --glas-blur: 24px; --glas-sat: 165%;
  --glas-flaeche: rgba(255, 255, 255, .62);
  --glas-kante: rgba(255, 255, 255, .45);
  --glas-innen: rgba(255, 255, 255, .55);
  --glas-schatten: 0 8px 32px rgba(0, 0, 0, .10);
  --glas-radius: 24px;
  --glas-lesbar: rgba(0, 0, 0, 0);          /* Abdunklung unter Text — nur im Nachtmodus nötig */
  --glas-text-2: #5B666D;                    /* Nebentext auf Glas: dunkler als --text-2, damit ≥ 4,5:1 */
  --glas-text-3: #5F6970;
  --glas-akzent: #9A4F4F;                    /* aktive Dock-Beschriftung auf Glas ≥ 4,5:1 */
  --blob-1: rgba(220, 166, 163, .55);        /* Farbflächen hinter dem Glas */
  --blob-2: rgba(190, 196, 200, .42);
  --blob-3: rgba(236, 200, 196, .32);
  --bento-gap: 16px; --bento-radius: 24px; --bento-zeile: 160px;
  --leer-bild: 140px;
  color-scheme: light;
}

/* ── Nachtmodus ─────────────────────────────────────────────────────── */
:root[data-theme="dunkel"] {
  --rot: #E39393;
  --rot-stark: #DE8585;       /* Text/Links auf dunklem Grund (≥ 5:1) */
  --rose: #B27C79;
  --rose-hell: #34272A;
  --rose-hauch: #272021;
  --bg: #121416;
  --karte: #1C1F22;
  --text: #ECEEEF;
  --text-2: #A3ACB1;
  --text-3: #6F797F;
  --linie: #30353A;
  --linie-2: #262A2E;
  --gruen: #6FC29A;   --gruen-hell: #1C3027;
  --orange: #E2A65F;  --orange-hell: #382B1C;
  --rot-status: #F2766B; --rot-status-hell: #40201E;
  --blau: #8FB3D9;    --blau-hell: #1E2B39;
  --violett: #ABA8DE; --violett-hell: #29283E;
  --tuerkis: #5FC7BF; --tuerkis-hell: #17302E;
  --amber: #E6BC5C;   --amber-hell: #352A14;
  --grau: #A8B2B8;    --grau-hell: #262A2E;
  --schatten-s: 0 1px 2px rgba(0, 0, 0, .30);
  --schatten: 0 1px 2px rgba(0, 0, 0, .30), 0 8px 24px rgba(0, 0, 0, .28);
  --schatten-l: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 48px rgba(0, 0, 0, .45);
  --color-neutral-100: #22262A;
  --color-neutral-200: #2A2E33;
  --color-neutral-400: #4C545A;
  --color-neutral-700: #B9C0C4;
  --color-neutral-800: #D5DADD;
  --rahmen: rgba(255, 255, 255, .06);
  --glas: rgba(28, 31, 34, .9);
  --glas-kopf: rgba(18, 20, 22, .82);
  --glas-dock: rgba(32, 35, 39, .8);
  --glas-dock-rand: rgba(255, 255, 255, .08);
  --glanz: rgba(255, 240, 240, .8);
  --glanz-weich: rgba(255, 255, 255, .06);
  --glas-leicht: rgba(28, 31, 34, .6);
  --glas-hauch: rgba(255, 255, 255, .03);
  --glas-seite: rgba(22, 25, 27, .78);
  --flaeche-kopf: #202327;
  --flaeche-we: #181B1D;
  --invers: #121416;
  --knopf: #A95858;          /* weiße Schrift ≥ 4,9:1 */
  --btn-hover: #984D4D;
  --verlauf-rose: rgba(173, 92, 92, .16);
  --verlauf-blau: rgba(70, 90, 110, .22);
  --glas-flaeche: rgba(255, 255, 255, .10);
  --glas-kante: rgba(255, 255, 255, .45);
  --glas-innen: rgba(255, 255, 255, .55);
  --glas-schatten: 0 8px 32px rgba(0, 0, 0, .35);
  --glas-radius: 24px;
  --glas-lesbar: rgba(0, 0, 0, .18);
  --glas-text-2: #A3ACB1;
  --glas-text-3: #9CA6AC;
  --glas-akzent: #DE8585;
  --blob-1: rgba(173, 92, 92, .30);
  --blob-2: rgba(110, 120, 128, .26);
  --blob-3: rgba(173, 92, 92, .16);
  --bento-gap: 16px; --bento-radius: 24px; --bento-zeile: 160px;
  --leer-bild: 140px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 620px at 108% -12%, var(--verlauf-rose), transparent 62%),
    radial-gradient(900px 560px at -18% 104%, var(--verlauf-blau), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
button, input, select, textarea { font-family: inherit; color: inherit; font-size: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--rot-stark); text-underline-offset: 2px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--rose-hell); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
[hidden] { display: none !important; }
.ico { flex: none; display: block; }

/* ── Rahmen ─────────────────────────────────────────────────────────── */
.main { min-width: 0; }
.shell {
  width: 100%; max-width: 640px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding-bottom: calc(var(--dock-h) + 40px + env(safe-area-inset-bottom, 0px));
}
.shell h1, .dlg-title, .row-name, .tx-product, .rname, .kpi-pos, .tile-label, .ev-title, .einsatz-titel {
  min-width: 0; overflow-wrap: anywhere; hyphens: auto;
}

/* Kopfzeile: schlicht, durchscheinend, bleibt beim Scrollen oben */
.hdr {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--rand) 10px;
  background: transparent; transition: background .2s, box-shadow .2s;
}
.hdr-back, .hdr-icon {
  width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; position: relative;
  background: var(--karte); border: 1px solid var(--linie); border-radius: 50%; color: var(--text);
  box-shadow: var(--schatten-s); cursor: pointer; padding: 0; text-decoration: none;
}
.hdr-back:hover, .hdr-icon:hover { background: var(--rose-hauch); }
.hdr-back svg { width: 20px; height: 20px; }
.hdr-title { font-weight: 650; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-area { font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1.2; }
.hdr-cloud { display: none; }
.hdr-cloud span:last-child { display: none; }
.hdr-cloud .dot { width: 8px; height: 8px; border-radius: 50%; }
.hdr-menu { display: none; }
.hdr-rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.hdr-marke { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.hdr-marke img { width: 36px; height: 36px; border-radius: 50%; }
.hdr-marke b { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.dot { width: 8px; height: 8px; flex: none; display: inline-block; border-radius: 50%; }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--knopf); color: #fff; font-style: normal; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}

/* ── Typografie ─────────────────────────────────────────────────────── */
.seite-titel { padding: 8px var(--rand) 4px; }
.seite-titel h1, .gruss h1 { margin: 0; font-size: 32px; line-height: 1.12; font-weight: 750; letter-spacing: -.03em; color: var(--text); }
.seite-titel p, .gruss p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.gruss { padding: 12px var(--rand) 6px; }
.section-label {
  padding: 28px var(--rand) 12px; font-size: 18px; font-weight: 700; letter-spacing: -.015em; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.section-label a { font-size: 14px; font-weight: 600; margin-left: auto; text-decoration: none; }
.section-label.big { font-size: 28px; letter-spacing: -.025em; padding-top: 16px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--text-2); }
.dlg-title { font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }
.hint-line { margin-top: 10px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.screen-note { margin: 0 var(--rand) 12px; font-size: 13.5px; color: var(--text-2); }
.empty { padding: 20px var(--rand); color: var(--text-2); font-size: 14.5px; }
.err-line { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--rot-status); }
.field-err { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--rot-status); }
.pos { color: var(--gruen); } .neg { color: var(--rot-status); }
code { background: var(--linie-2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }

/* ── Karten ─────────────────────────────────────────────────────────── */
.karte, .card, .note-box, .einsatz, .news, .tx, .stamp-state, .dash-card, .tile, .kpi, .row, .ev-row, .ls-auftrag, .fz-karte {
  background: var(--karte); border: 1px solid var(--rahmen); border-radius: var(--r-l); box-shadow: var(--schatten);
}
.karte { margin: 0 var(--rand) 12px; padding: 20px; }
.karte-gross { border-radius: var(--r-xl); padding: 24px 22px; }
.note-box { margin: 0 var(--rand) 12px; padding: 16px 18px; font-size: 14px; background: var(--rose-hauch); box-shadow: none; border-color: var(--rose-hell); }

/* Zeilen (Listen) als einzelne Karten */
.row {
  display: flex; align-items: center; gap: 14px; margin: 0 var(--rand) 10px; padding: 14px 16px; min-height: 64px;
  color: inherit; text-decoration: none; border-radius: var(--r);
  box-shadow: var(--schatten-s); transition: box-shadow .15s, transform .15s;
}
a.row:hover { box-shadow: var(--schatten); }
a.row::after { content: ""; width: 8px; height: 8px; flex: none; border-right: 1.75px solid var(--text-3); border-top: 1.75px solid var(--text-3); transform: rotate(45deg); margin-left: 4px; }
.row-name { display: block; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.row-meta { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.row .dot { width: 10px; height: 10px; }
.thumb { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--linie-2); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--text-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.addrow { display: block; margin: 0 var(--rand) 10px; padding: 14px 16px; border-radius: var(--r); border: 1.5px dashed var(--linie); color: var(--text-2); text-decoration: none; font-weight: 600; text-align: center; }
.addrow:hover { border-color: var(--rose); color: var(--rot-stark); }

/* Kennwerte/Schlüssel-Wert */
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linie-2); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--text-2); font-size: 14px; flex: none; }
.kv .v { font-weight: 600; font-size: 14.5px; text-align: right; overflow-wrap: anywhere; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.kpi { padding: 14px; min-width: 0; border-radius: var(--r); box-shadow: var(--schatten-s); }
.kpi-label { font-size: 12.5px; color: var(--text-2); font-weight: 500; overflow-wrap: break-word; hyphens: auto; }
.kpi-num { font-size: 26px; font-weight: 700; line-height: 1.15; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-pos { font-size: 17px; font-weight: 650; line-height: 1.25; margin-top: 6px; }
.kpi-unit { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* Kennzahl-Karten der Startseiten */
.kennzahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 18px var(--rand) 4px; }
.kennzahl { background: var(--karte); border-radius: var(--r-l); padding: 16px 14px 14px; box-shadow: var(--schatten); border: 1px solid var(--rahmen); color: inherit; text-decoration: none; min-width: 0; }
.kennzahl span { display: block; font-size: 13px; color: var(--text-2); font-weight: 500; line-height: 1.25; }
.kennzahl b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kennzahl small { display: block; font-size: 11.5px; color: var(--text-2); margin-top: 6px; }
.kennzahl.akzent b { color: var(--rot-stark); }

/* „Benötigt Aufmerksamkeit“ */
.hinweise { margin: 16px var(--rand) 0; padding: 20px 18px 4px; border-radius: var(--r-xl); background: var(--glas); box-shadow: var(--schatten); border: 1px solid var(--rahmen); }
.hinweise-kopf { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--linie); }
.hinweise-kopf h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.hinweise-kopf p { margin: 3px 0 0; color: var(--text-2); font-size: 13.5px; }
.hinweise-kopf .chip { margin-left: auto; flex: none; }
.hinweis { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--linie); }
.hinweis:last-child { border-bottom: 0; }
.hinweis-icon { width: 44px; height: 44px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--neutral-hell); color: var(--neutral); }
.hinweis-body { flex: 1; min-width: 0; }
.hinweis-titel { font-size: 16px; font-weight: 650; letter-spacing: -.01em; margin-top: 8px; }
.hinweis-text { font-size: 14px; color: var(--text-2); margin-top: 3px; }
.hinweis .aktion { margin-top: 12px; }
.ton-neutral .hinweis-icon, .ton-orange .hinweis-icon, .ton-blau .hinweis-icon, .ton-violett .hinweis-icon { background: var(--neutral-hell); color: var(--neutral); }
.ton-positiv .hinweis-icon, .ton-gruen .hinweis-icon { background: var(--positiv-hell); color: var(--positiv); }
.ton-negativ .hinweis-icon, .ton-rot .hinweis-icon { background: var(--negativ-hell); color: var(--negativ); }
.alles-ok { display: flex; align-items: center; gap: 12px; padding: 18px 0; color: var(--text-2); font-size: 14.5px; }
.alles-ok .hinweis-icon { background: var(--positiv-hell); color: var(--positiv); }

/* Auftragskarten (kompakt, Details nach dem Öffnen) */
.auftrag-karte {
  display: flex; align-items: center; gap: 14px; margin: 0 var(--rand) 10px; padding: 16px 16px 16px 18px;
  background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten); border: 1px solid var(--rahmen);
  color: inherit; text-decoration: none; position: relative; overflow: hidden; min-height: 76px;
}
.auftrag-karte::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--farbe, var(--rot)); }
.auftrag-karte .ak-body { flex: 1; min-width: 0; }
.auftrag-karte .ak-titel { font-weight: 650; font-size: 16px; letter-spacing: -.01em; }
.auftrag-karte .ak-titel b { font-variant-numeric: tabular-nums; font-weight: 700; }
.auftrag-karte .ak-meta { font-size: 13.5px; color: var(--text-2); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.auftrag-karte .ak-meta span { display: inline-flex; align-items: center; gap: 4px; }
.auftrag-karte .ak-meta .ico { width: 14px; height: 14px; }
.auftrag-karte.abgesagt { opacity: .55; }
.auftrag-karte .chev { color: var(--text-3); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 18px;
  border-radius: 14px; border: 1px solid transparent; font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; background: transparent; color: var(--text); transition: background .15s, box-shadow .15s, color .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--knopf); color: #fff; box-shadow: 0 1px 2px rgba(173, 92, 92, .25), 0 6px 16px rgba(173, 92, 92, .22); }
.btn-primary:hover:not(:disabled) { background: var(--btn-hover); }
.btn-secondary { background: var(--karte); border-color: var(--linie); color: var(--text); box-shadow: var(--schatten-s); }
.btn-secondary:hover:not(:disabled) { background: var(--rose-hauch); border-color: var(--rose-hell); }
.btn-ghost { color: var(--rot-stark); min-height: 40px; padding: 8px 10px; }
.btn-ghost:hover { background: var(--rose-hauch); }
.btn-aktion { min-height: 44px; padding: 9px 16px 9px 12px; font-size: 14.5px; background: var(--karte); border-color: var(--linie); box-shadow: var(--schatten-s); }
.btn-aktion .ico { color: var(--text); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px var(--rand); }
.btn-row .btn { flex: 1; min-width: 130px; }
.btn-login { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 14px; background: var(--knopf); color: #fff; font-weight: 600; text-decoration: none; }
form.inline { display: contents; }
.fab {
  position: fixed; right: var(--rand); bottom: calc(var(--dock-h) + 30px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 56px; height: 56px; border-radius: 18px; background: var(--knopf); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(173, 92, 92, .38); text-decoration: none;
}

/* ── Formulare ──────────────────────────────────────────────────────── */
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 13px 15px; font-size: 16px; line-height: 1.35;
  background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; color: var(--text);
  box-shadow: inset 0 1px 2px rgba(38, 50, 56, .03); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-hell); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2378838A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
textarea.input { min-height: 96px; resize: vertical; }
input[type="date"].input, input[type="time"].input { min-height: 50px; }
input[type="file"].input { padding: 10px; font-size: 14px; }
input[type="color"].input { padding: 6px; height: 50px; }
.form-label { font-size: 13.5px; font-weight: 600; color: var(--text); margin: 18px 0 8px; }
.form-label:first-child { margin-top: 0; }
.form-block { padding: 8px var(--rand) 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid > div > .form-label { margin-top: 0; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; padding: 10px 0; cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--rot-stark); flex: none; }
.form-zwei { display: grid; gap: 0 32px; }
.form-zwei .section-label { padding-left: 0; padding-right: 0; }
details summary { cursor: pointer; }
/* Mitarbeiter-Auswahl als Chips (große Berührungsflächen) */
.auswahl-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.auswahl-liste label.check { padding: 0; min-height: 0; }
.auswahl-liste label.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.auswahl-liste label.check { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: var(--karte); border: 1px solid var(--linie); font-size: 14.5px; font-weight: 550; box-shadow: var(--schatten-s); }
.auswahl-liste label.check:has(input:checked) { background: var(--rose-hell); border-color: var(--rose); color: var(--rot-stark); }
.auswahl-liste label.check:has(input:focus-visible) { outline: 2px solid var(--rose); }

/* Karten für Login und Dialoge */
.card-page { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 24px var(--rand); }
.card { width: 100%; max-width: 440px; padding: 28px 24px; border-radius: var(--r-xl); box-shadow: var(--schatten-l); }

/* ── Chips, Status ──────────────────────────────────────────────────── */
.chip, .tx-badge, .role-badge, .pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--linie-2); color: var(--text-2); white-space: nowrap; border: 0; letter-spacing: 0; text-transform: none;
}
.chip.ok { background: var(--positiv-hell); color: var(--positiv); }
.chip.warn { background: var(--negativ-hell); color: var(--negativ); }
.chip.wait { background: var(--neutral-hell); color: var(--neutral); }
.chip.akzent { background: var(--rose-hell); color: var(--rot-stark); }
.chip.status-geplant { background: var(--linie-2); color: var(--text-2); }
.chip.status-bestaetigt { background: var(--blau-hell); color: var(--blau); }
.chip.status-in_arbeit { background: var(--orange-hell); color: var(--orange); }
.chip.status-erledigt { background: var(--gruen-hell); color: var(--gruen); }
.chip.status-verschoben { background: var(--violett-hell); color: var(--violett); }
.chip.status-abgesagt { background: var(--linie-2); color: var(--text-3); text-decoration: line-through; }
.status-geplant { color: var(--text-2); } .status-bestaetigt { color: var(--blau); } .status-in_arbeit { color: var(--orange); }
.status-erledigt { color: var(--gruen); } .status-verschoben { color: var(--violett); } .status-abgesagt { color: var(--text-3); }
.tag { display: inline-flex; padding: 4px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; background: var(--neutral-hell); color: var(--neutral); }
.ton-positiv .tag, .ton-gruen .tag { background: var(--positiv-hell); color: var(--positiv); }
.ton-negativ .tag, .ton-rot .tag { background: var(--negativ-hell); color: var(--negativ); }
/* Produktstatus-Pill: Farbe kommt aus der Statuslogik (inline color) */
.pill { background: color-mix(in srgb, currentColor 11%, var(--karte)); }
.pill .pill-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pill .pill-label { color: inherit; }
.pill-row { display: flex; gap: 8px; padding: 4px var(--rand) 12px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.pill-row::-webkit-scrollbar { display: none; }
.pill-row a, .pill-row span.pillk {
  flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px; border-radius: 999px;
  background: var(--karte); border: 1px solid var(--linie); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 550;
}
.pill-row a.on { background: var(--text); border-color: var(--text); color: var(--invers); }

/* Segmentierte Umschaltung (Tag/Woche/Monat) */
.seg { display: flex; gap: 4px; margin: 8px var(--rand) 4px; padding: 4px; border-radius: 14px; background: rgba(38, 50, 56, .055); }
.seg a { flex: 1; text-align: center; padding: 9px 4px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.seg a.on { background: var(--karte); color: var(--text); box-shadow: var(--schatten-s); }

/* Zeitraum-Navigation */
.period-bar, .tag-nav { display: flex; align-items: center; gap: 10px; padding: 10px var(--rand); }
.period-bar .title, .tag-nav .title { flex: 1; text-align: center; font-weight: 650; font-size: 16px; letter-spacing: -.01em; min-width: 0; }
.period-bar a.nav, .tag-nav a.nav {
  width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--karte); border: 1px solid var(--linie); color: var(--text); text-decoration: none; font-size: 20px; box-shadow: var(--schatten-s);
}

/* ── Kacheln ────────────────────────────────────────────────────────── */
.grid-main, .grid-admin, .grid-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 var(--rand) 4px; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 18px; min-height: 112px; min-width: 0;
  color: inherit; text-decoration: none; border-radius: var(--r-l); transition: box-shadow .15s, transform .15s;
}
a.tile:hover { box-shadow: var(--schatten-l); transform: translateY(-1px); }
.tile.small { min-height: 96px; }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tile-num { display: block; font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile-num.warn { color: var(--rot-stark); }
.tile-label { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.tile-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--rose-hell); color: var(--rot-stark); display: flex; align-items: center; justify-content: center; flex: none; }
.cat-tile { min-height: 104px; }
.cat-tile .tile-num { font-size: 26px; color: var(--text); }
.cat-tile.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 16px; min-height: 120px; background: linear-gradient(135deg, var(--karte) 0%, var(--rose-hauch) 100%); }
.cat-tile.wide .tile-label { font-size: 19px; font-weight: 700; }
.cat-tile.wide .tile-num { font-size: 34px; }
.krone-icon { flex: none; }
/* Bereiche (Lagerübersicht) */
.grid-areas { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.area-tile { display: flex; flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 14px 16px 14px 14px; }
.area-num { display: none; }
.area-img { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 16px; }
.area-tile-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--rose-hell); color: var(--rot-stark); display: flex; align-items: center; justify-content: center; flex: none; }
.area-text { flex: 1; min-width: 0; display: block; }
.area-tile .tile-label { font-size: 17px; font-weight: 650; display: block; }
.area-sub { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 3px; font-weight: 500; line-height: 1.35; }
.area-tile .chev { color: var(--text-3); flex: none; display: flex; }
.logo-row { display: flex; align-items: center; gap: 14px; padding: 8px var(--rand) 0; }
.logo-row img { height: 56px; width: auto; }
.logo-title { font-weight: 700; font-size: 18px; letter-spacing: -.02em; line-height: 1.2; }
.area-head { display: flex; align-items: center; gap: 14px; padding: 8px var(--rand) 4px; }
.area-head-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--rose-hell); color: var(--rot-stark); display: flex; align-items: center; justify-content: center; flex: none; }
.area-head-title { margin: 0; font-size: 28px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; text-transform: none; }
.area-head-sub { display: none; }
.foot { margin: 24px var(--rand) 0; padding-top: 12px; }
.foot-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.foot-row > span { flex: 1; } .foot-row b { color: var(--text); font-weight: 600; }
.mb-line { display: none; }

/* ── Lager: Suche, Produkt ──────────────────────────────────────────── */
.search-wrap { padding: 4px var(--rand) 12px; position: relative; }
.search-wrap svg { position: absolute; left: calc(var(--rand) + 15px); top: 50%; transform: translateY(-62%); pointer-events: none; }
.search-wrap .input { padding-left: 46px; border-radius: 16px; min-height: 52px; box-shadow: var(--schatten-s); }
.detail-img { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 2 * var(--rand)); margin: 4px var(--rand) 0; aspect-ratio: 4 / 3; max-height: 340px; background: var(--linie-2); border: 0; border-radius: var(--r-l); overflow: hidden; color: var(--text-2); font-weight: 600; cursor: pointer; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.bigbtn { flex: 1; height: 64px; font-size: 30px; font-weight: 600; background: var(--karte); border: 1px solid var(--linie); border-radius: 18px; cursor: pointer; box-shadow: var(--schatten-s); color: var(--text); }
.bigbtn.plus { background: var(--rose-hell); border-color: var(--rose); color: var(--rot-stark); }
.bigbtn:disabled { opacity: .4; cursor: default; }
.pending-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px; background: var(--rose-hauch); border-radius: var(--r); }
.lager-kopf, .lager-spalte { display: none; }
.inv-row { margin: 0 var(--rand) 10px; padding: 14px 16px; background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten-s); }
.inv-main { display: flex; align-items: center; gap: 12px; }
.inv-main .input { width: 96px; text-align: right; flex: none; }
.inv-diff { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 14px; }
.photo-field { width: 100%; aspect-ratio: 4 / 3; max-height: 260px; border-radius: var(--r-l); background: var(--linie-2); border: 1.5px dashed var(--linie); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--text-2); cursor: pointer; }
.photo-field img { width: 100%; height: 100%; object-fit: cover; }

/* ── Verlauf / Einträge ─────────────────────────────────────────────── */
.tx { margin: 0 var(--rand) 10px; padding: 14px 16px; border-radius: var(--r); box-shadow: var(--schatten-s); }
.tx-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tx-ts { font-size: 12.5px; color: var(--text-2); }
.tx-product { font-weight: 650; font-size: 15.5px; margin-top: 8px; }
.tx-line { font-size: 14px; margin-top: 2px; }
.tx-who { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.step { margin: 0 var(--rand); padding: 10px 0 10px 18px; border-left: 2px solid var(--linie); position: relative; }
.step::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--karte); border: 2px solid var(--rose); }
.step-head { font-size: 13px; color: var(--text-2); } .step-head b { color: var(--text); }
.step-text { font-size: 14px; margin-top: 2px; white-space: pre-line; }
.role-row { display: flex; align-items: center; gap: 12px; margin: 0 var(--rand) 10px; padding: 14px 16px; background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten-s); flex-wrap: wrap; }
.role-row .rname { font-weight: 600; flex: 1; min-width: 120px; }

/* ── Mitteilungen ───────────────────────────────────────────────────── */
.news { display: block; margin: 0 var(--rand) 10px; padding: 16px 18px; color: inherit; text-decoration: none; border-radius: var(--r-l); }
.news-off { opacity: .55; }
.news-date { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.news-title { display: block; font-size: 16px; font-weight: 650; margin-top: 4px; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.news-text { display: block; font-size: 14px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.news-meta { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 8px; }
.news-wichtig { background: linear-gradient(135deg, var(--karte) 0%, var(--rose-hauch) 100%); border-color: var(--rose-hell); }
.news-wichtig .news-date { color: var(--rot-stark); }
.gelesen-btn { margin-top: 12px; }

/* ── Dialoge, Sheets, Bildansicht, Hinweise ─────────────────────────── */
.backdrop { position: fixed; inset: 0; background: rgba(38, 50, 56, .38); backdrop-filter: blur(2px); z-index: 80; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 81; width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: auto; background: var(--karte); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--schatten-l); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; max-width: 560px; margin: 0 auto; max-height: 88dvh; overflow: auto; background: var(--karte); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 24px var(--rand) calc(24px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--schatten-l); }
.stepper { display: flex; align-items: center; background: var(--linie-2); border-radius: 14px; padding: 4px; }
.stepper button { width: 44px; height: 44px; font-size: 22px; font-weight: 600; background: var(--karte); border: 0; border-radius: 11px; cursor: pointer; box-shadow: var(--schatten-s); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper .qty { width: 60px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.person-list { margin-top: 8px; border: 1px solid var(--linie); border-radius: 14px; max-height: 190px; overflow: auto; }
.person-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 14px; background: none; border: 0; border-bottom: 1px solid var(--linie-2); text-align: left; cursor: pointer; }
.person-row:last-child { border-bottom: 0; }
.person-row .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--text-3); flex: none; }
.person-row.on .radio, .person-row[aria-checked="true"] .radio { border: 6px solid var(--rot-stark); }
.person-row .pname { font-weight: 500; font-size: 15px; }
.viewer, .bildansicht { position: fixed; inset: 0; background: rgba(20, 24, 26, .94); z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.viewer-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; width: 100%; }
.viewer-img img, .bildansicht img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.viewer-bar { display: flex; gap: 10px; justify-content: center; padding: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.viewer-close, .bildansicht button, .viewer-pfeil { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 24px; cursor: pointer; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--dock-h) + 30px + env(safe-area-inset-bottom, 0px)); z-index: 95;
  width: max-content; max-width: calc(100% - 32px); background: rgba(38, 50, 56, .94); color: #fff; padding: 12px 18px; border-radius: 16px;
  font-size: 14px; font-weight: 500; box-shadow: var(--schatten-l); backdrop-filter: blur(8px);
}
.toast > div + div { margin-top: 6px; }
.toast .warning { color: #FFD9A8; } .toast .error { color: #FFB8AE; }
.live-hinweis { display: flex; align-items: center; gap: 12px; margin: 8px var(--rand); padding: 10px 14px; background: var(--rose-hell); border-radius: var(--r); font-weight: 600; font-size: 14px; }
.live-hinweis span { flex: 1; }
.demo-leiste { display: flex; align-items: center; gap: 10px; margin: 8px var(--rand); padding: 10px 14px; background: var(--neutral-hell); color: var(--text); border-radius: var(--r); font-size: 14px; line-height: 1.35; }
.demo-leiste .ico { flex: none; color: var(--neutral); }

/* ── Navigation: schwebendes Dock (mobil) ───────────────────────────── */
.dock {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin: 0 auto; height: var(--dock-h); padding: 6px; display: flex; gap: 2px;
  border-radius: var(--glas-radius); background: linear-gradient(var(--glas-lesbar), var(--glas-lesbar)), var(--glas-flaeche);
  backdrop-filter: blur(var(--glas-blur)) saturate(var(--glas-sat)); -webkit-backdrop-filter: blur(var(--glas-blur)) saturate(var(--glas-sat));
  border: 1px solid var(--glas-kante); box-shadow: inset 0 1px 0 var(--glas-innen), var(--glas-schatten);
  --text-2: var(--glas-text-2); --text-3: var(--glas-text-3);
}
.dock a, .dock button {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: calc(var(--glas-radius) - 6px); color: var(--text-2); text-decoration: none; font-size: 11.5px; font-weight: 550; background: none; border: 0; cursor: pointer; position: relative; padding: 0;
}
.dock .ico { width: 23px; height: 23px; }
.dock .on { background: var(--rose-hell); color: var(--glas-akzent); }
.dock .on::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--knopf); }
.dock .on span { margin-bottom: 4px; }

/* „Mehr“ bzw. Seitenleiste: mobil als Blatt von unten, Desktop fest links */
.sidenav {
  visibility: hidden;
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow-y: auto;
  background: var(--karte); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--schatten-l);
  padding: 8px 12px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column;
  transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
}
body.nav-offen .sidenav { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.nav-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(38, 50, 56, .32); display: none; }
body.nav-offen .nav-backdrop { display: block; }
.sidenav-head { display: flex; align-items: center; gap: 10px; padding: 12px 8px 8px; }
.sidenav-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--linie); }
.sidenav-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: 1; min-width: 0; }
.sidenav-brand img { width: 40px; height: 40px; border-radius: 50%; }
.sidenav-brand b { display: block; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.sidenav-brand small { display: block; font-size: 12px; color: var(--text-2); }
.sidenav-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linie); background: var(--karte); font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-2); }
.sidenav-label { padding: 16px 12px 6px; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.sidenav-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 12px; border-radius: 14px; color: var(--text); text-decoration: none; font-weight: 550; font-size: 15px; }
.sidenav-item .ico { color: var(--text-2); width: 20px; height: 20px; }
.sidenav-item:hover { background: var(--linie-2); }
.sidenav-item.on { background: var(--rose-hell); color: var(--rot-stark); font-weight: 650; }
.sidenav-item.on .ico { color: var(--rot-stark); }
.sidenav .badge { position: static; margin-left: auto; border: 0; }
.sidenav-foot { margin-top: 16px; padding: 16px 12px 4px; border-top: 1px solid var(--linie); font-size: 13px; color: var(--text-2); display: grid; gap: 4px; }
.sidenav-foot span { font-weight: 650; color: var(--text); font-size: 14px; }
.sidenav-foot .btn { justify-content: flex-start; padding: 6px 0; min-height: 36px; font-size: 14px; }
.sidenav-foot a { color: var(--text-2); font-size: 13.5px; text-decoration: none; }

/* ── Zeiterfassung ──────────────────────────────────────────────────── */
.stamp { padding: 8px var(--rand) 4px; }
.stamp-state { padding: 24px 22px; border-radius: var(--r-xl); text-align: center; }
.stamp-state .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--linie-2); }
.stamp-state.ein .eyebrow { background: var(--gruen-hell); color: var(--gruen); }
.stamp-state.pause .eyebrow { background: var(--neutral-hell); color: var(--neutral); }
.stamp-clock { font-size: 54px; font-weight: 700; line-height: 1; margin-top: 16px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stamp-meta { font-size: 14px; color: var(--text-2); margin-top: 10px; }
.stamp-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.stamp-btns > form { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; }
.stamp-btns > form:only-child { grid-column: 1 / -1; }
.stamp-btn { width: 100%; min-height: 64px; font-size: 18px; border-radius: 20px; }
.day { margin: 0 var(--rand) 10px; padding: 14px 16px; background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten-s); }
.day.off { background: var(--glas-hauch); box-shadow: none; color: var(--text-2); }
.day.today { box-shadow: 0 0 0 2px var(--rose), var(--schatten-s); }
.day-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.day-date { font-weight: 650; font-size: 15px; }
.day-sum { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 15px; white-space: nowrap; }
.day-sum small { font-weight: 500; color: var(--text-2); font-size: 12.5px; margin-left: 6px; }
.day-iv { font-size: 13.5px; margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.day-iv a { color: inherit; font-weight: 600; }
.day-hint { font-size: 12.5px; color: var(--rot-stark); margin-top: 6px; font-weight: 600; }

/* ── Tabellen ───────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 0 var(--rand); background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten); border: 1px solid var(--rahmen); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--linie-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: 12px; color: var(--text-2); font-weight: 600; background: var(--flaeche-kopf); position: sticky; top: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a { color: inherit; }
.table tr.klickbar { cursor: pointer; }
.table tr.klickbar:hover td { background: var(--rose-hauch); }
.filterleiste { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px var(--rand) 14px; align-items: flex-end; }
.filterleiste label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); flex: 1 1 140px; }
.filterleiste .input { min-height: 46px; padding: 10px 12px; font-size: 15px; }
.filterleiste .btn { min-height: 46px; }

/* ── Kalender ───────────────────────────────────────────────────────── */
.kal-monat { margin: 6px var(--rand) 0; padding: 12px 8px 8px; background: var(--karte); border-radius: var(--r-xl); box-shadow: var(--schatten); border: 1px solid var(--rahmen); }
.kal-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.kal-wt { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 2px 0 8px; }
.kal-tag { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px; padding: 1px 0 3px; text-decoration: none; color: var(--text); border-radius: 14px; }
.kal-tag:hover { background: var(--linie-2); }
.kal-tag .z { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 550; font-variant-numeric: tabular-nums; }
.kal-tag.fremd { color: var(--text-3); }
.kal-tag.we .z { color: var(--text-2); }
.kal-tag.heute .z { box-shadow: inset 0 0 0 1.5px var(--rot); color: var(--rot-stark); font-weight: 700; }
.kal-tag.gewaehlt .z { background: var(--knopf); color: #fff; box-shadow: none; font-weight: 700; }
.kal-punkte { display: flex; gap: 3px; height: 6px; }
.kal-punkte i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.kal-balken { display: none; }
.kal-tagesliste { padding-top: 4px; }
.kal-tagesliste .section-label { padding-top: 18px; }
.termin-karte { display: flex; flex-direction: column; gap: 3px; margin: 0 var(--rand) 10px; padding: 14px 16px 14px 20px; color: inherit; text-decoration: none; border-radius: var(--r-l); position: relative; overflow: hidden;
  background: var(--karte); box-shadow: var(--schatten); border: 1px solid var(--rahmen); }
.termin-karte:active { transform: scale(.99); }
.tk-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.tk-zeit { font-size: 13.5px; font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tk-kopf .chip { font-size: 12px; padding: 3px 10px; }
.tk-titel { font-weight: 650; font-size: 16px; letter-spacing: -.01em; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13.5px; color: var(--text-2); margin-top: 1px; }
.tk-meta > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.tk-meta .ico { color: var(--text-3); flex: none; }
.ev-row { display: flex; gap: 14px; align-items: center; margin: 0 var(--rand) 10px; padding: 16px; min-height: 72px; color: inherit; text-decoration: none; border-radius: var(--r-l); position: relative; overflow: hidden; }
.ev-bar { position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; }
.ev-zeit { flex: none; width: 58px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.2; padding-left: 4px; }
.ev-zeit small { display: block; font-weight: 500; color: var(--text-2); font-size: 12.5px; }
.ev-main { flex: 1; min-width: 0; }
.ev-title { display: block; font-weight: 650; font-size: 15.5px; letter-spacing: -.01em; }
.ev-meta { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 3px; }
.ev-time { font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.woche-streifen { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 4px var(--rand) 14px; padding: 8px; background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten); }
.woche-streifen a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 14px; text-decoration: none; color: var(--text); min-height: 64px; }
.woche-streifen a small { font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.woche-streifen a b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.woche-streifen a.heute b { color: var(--rot-stark); }
.woche-streifen a.gewaehlt { background: var(--rose-hell); }
.woche-streifen a.gewaehlt b { color: var(--rot-stark); }
.woche-spalten { display: none; }
.kal-kopf { display: flex; align-items: center; gap: 12px; padding: 6px var(--rand) 10px; }
.kal-kopf h2 { flex: 1; min-width: 0; margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.kal-kopf h2 small { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-top: 2px; }
.kal-kopf .btn { min-height: 42px; padding: 8px 16px; font-size: 14px; }
.kal-schritt { display: flex; align-items: center; background: var(--karte); border: 1px solid var(--linie); border-radius: 999px; box-shadow: var(--schatten-s); padding: 2px; }
.kal-schritt a { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--text); text-decoration: none; }
.kal-schritt a:hover { background: var(--rose-hauch); }
.kal-schritt .heute-btn { padding: 0 10px; font-size: 14px; font-weight: 600; }
.kopf-menue { position: relative; }
.kopf-menue summary { list-style: none; }
.kopf-menue summary::-webkit-details-marker { display: none; }
.kopf-menue[open] summary { background: var(--rose-hell); border-color: var(--rose); }
.badge.punkt { min-width: 10px; width: 10px; height: 10px; padding: 0; top: 0; right: 0; }
.menue.rechts { left: auto; right: 0; max-width: calc(100vw - 2 * var(--rand)); }
.menue-titel { font-size: 12px; font-weight: 650; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; padding: 2px 2px 8px; }
.menue { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten-l); padding: 6px; border: 1px solid var(--linie); }
.menue a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 14.5px; font-weight: 500; }
.menue a:hover { background: var(--linie-2); }
.menue a .ico { color: var(--text-2); }
.cal-year { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 var(--rand); }
.cal-mini { background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten-s); padding: 10px; text-decoration: none; color: inherit; }
.cal-mini .t { font-weight: 650; font-size: 13.5px; margin-bottom: 6px; }
.cal-mini .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.cal-mini .g span { font-size: 9.5px; text-align: center; line-height: 17px; border-radius: 4px; }
.cal-mini .g span.o { color: transparent; }
.cal-mini .g span.we { color: var(--text-3); }
.cal-mini .g span.ev { color: #fff; font-weight: 700; }
.cal-mini .g span.today { box-shadow: inset 0 0 0 1.5px var(--rot); }
/* Planer (Mitarbeiter × Tage) */
.planner { overflow-x: auto; margin: 0 var(--rand); background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten); }
.planner table { border-collapse: separate; border-spacing: 0; font-size: 11.5px; min-width: 100%; }
.planner th, .planner td { border-bottom: 1px solid var(--linie-2); border-right: 1px solid var(--linie-2); padding: 0; min-width: 30px; height: 36px; text-align: center; }
.planner th.name, .planner td.name { position: sticky; left: 0; background: var(--karte); text-align: left; padding: 0 12px; min-width: 128px; font-weight: 600; white-space: nowrap; z-index: 1; font-size: 13px; }
.planner th { font-weight: 600; background: var(--flaeche-kopf); font-size: 10.5px; color: var(--text-2); line-height: 1.2; }
.planner th.we, .planner td.we { background: var(--flaeche-we); }
.planner th.today { background: var(--rose-hell); color: var(--rot-stark); }
.planner td a, .planner td span.cell { display: block; height: 100%; min-height: 36px; line-height: 36px; color: #fff; font-weight: 700; font-size: 10.5px; overflow: hidden; text-decoration: none; border-radius: 6px; margin: 2px; min-height: 32px; line-height: 32px; }
.planner td .half { background: linear-gradient(135deg, var(--c) 50%, transparent 50%); color: var(--text); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px var(--rand); font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
/* alte Monatskachel-Klassen (Fallback) */
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0 var(--rand); }
.cal-wd { font-size: 12px; text-align: center; color: var(--text-3); padding: 6px 0; }
.cal-day { display: block; min-height: 64px; padding: 4px; text-decoration: none; color: inherit; }
.cal-num { font-weight: 600; font-size: 13px; }
.cal-ev { display: block; font-size: 10.5px; line-height: 1.35; padding: 2px 6px; margin-top: 3px; border-radius: 6px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cal-more { font-size: 10.5px; color: var(--text-2); padding-left: 4px; }

/* ── Mein Tag / Leitstand / Aufträge ────────────────────────────────── */
.einsatz { margin: 0 var(--rand) 12px; padding: 0; overflow: hidden; }
.einsatz-kopf { display: flex; gap: 14px; padding: 18px 18px 14px; align-items: flex-start; }
.einsatz-zeit { font-size: 22px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; min-width: 64px; letter-spacing: -.02em; }
.einsatz-zeit small { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-top: 4px; letter-spacing: 0; }
.einsatz-titel { font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -.015em; }
.einsatz-titel a { color: inherit; text-decoration: none; }
.einsatz-sub { font-size: 13.5px; color: var(--text-2); margin-top: 3px; }
.einsatz-body { padding: 0 18px 16px; }
.einsatz-zeile { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--linie-2); font-size: 15px; align-items: flex-start; }
.einsatz-zeile .k { flex: none; width: 96px; font-size: 13px; font-weight: 500; color: var(--text-2); padding-top: 1px; }
.einsatz-zeile .v { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.route-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: var(--knopf); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.haken { list-style: none; margin: 0; padding: 0; }
.haken li { border-top: 1px solid var(--linie-2); }
.haken li:first-child { border-top: 0; }
.haken button { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 0; background: none; border: 0; text-align: left; font-size: 15.5px; cursor: pointer; color: inherit; }
.haken .box { width: 26px; height: 26px; border: 1.75px solid var(--text-3); border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.haken li.ok .box { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.haken li.ok .txt { text-decoration: line-through; color: var(--text-2); }
.haken .wer { margin-left: auto; font-size: 12px; color: var(--text-3); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs a { width: 84px; height: 84px; display: block; border-radius: 14px; overflow: hidden; background: var(--linie-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.fz-karte { display: flex; gap: 14px; align-items: center; margin: 0 var(--rand) 10px; padding: 14px 16px; border-radius: var(--r); box-shadow: var(--schatten-s); }
.fz-karte .fz-farbe { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 var(--rand); }
.dash-card { display: block; padding: 16px; color: inherit; text-decoration: none; min-width: 0; }
.dash-card .n { font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dash-card .l { font-size: 13px; color: var(--text-2); margin-top: 6px; font-weight: 500; }
.dash-card.warn .n { color: var(--rot-stark); }
.ls-grid { display: grid; gap: 0; }
.ls-auftrag { margin: 0 var(--rand) 10px; padding: 16px; border-radius: var(--r-l); }
.ls-auftrag.abgesagt { opacity: .55; }
.ls-kopf { display: flex; gap: 12px; align-items: flex-start; }
.ls-kopf .zeit { font-weight: 700; font-size: 15px; min-width: 86px; font-variant-numeric: tabular-nums; }
.ls-kopf .titel { flex: 1; min-width: 0; font-weight: 650; font-size: 15.5px; }
.ls-kopf .titel a { color: inherit; text-decoration: none; }
.ls-kopf .titel small { display: block; font-weight: 500; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.chip-p { display: inline-flex; align-items: center; gap: 2px; padding: 3px 3px 3px 11px; border-radius: 999px; background: var(--linie-2); font-size: 13px; font-weight: 600; }
.chip-p form { display: inline; margin: 0; }
.chip-p button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: none; cursor: pointer; font-size: 15px; color: var(--text-2); }
.chip-p button:hover { background: rgba(38, 50, 56, .08); }
.chip-p.warn { background: var(--rot-status-hell); color: var(--rot-status); }
.zuweisen { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.zuweisen form { display: flex; gap: 8px; }
.zuweisen select.input { min-height: 42px; padding: 8px 34px 8px 12px; font-size: 14px; max-width: 220px; }
.zuweisen .btn { min-height: 42px; padding: 8px 14px; font-size: 14px; }
.ls-hinweis { font-size: 13px; color: var(--orange); font-weight: 600; margin-top: 8px; }   /* Kalender: unverändert */
.ls-auftrag .ls-hinweis { color: var(--negativ); }                                          /* Leitstand: Warnung = rot */
.ls-person { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--linie-2); font-size: 14.5px; }
.ls-person:last-child { border-bottom: 0; }
.ls-person small { color: var(--text-2); text-align: right; }
.ls-tage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 0 var(--rand); }
.ls-tage a { padding: 12px 4px; text-align: center; color: var(--text-2); text-decoration: none; font-size: 12px; background: var(--karte); border-radius: 14px; box-shadow: var(--schatten-s); }
.ls-tage a b { display: block; font-size: 16px; font-weight: 700; color: var(--text); margin: 3px 0 0; font-variant-numeric: tabular-nums; }
/* dieselben Farbpunkte wie im Kalender; Klick führt in die Tagesansicht des Kalenders */
.ls-punkte { display: flex; justify-content: center; gap: 4px; height: 8px; margin-top: 7px; }
.ls-punkte i { width: 8px; height: 8px; border-radius: 50%; display: block; }
/* Leitstand: Mitarbeiter kompakt in zwei Spalten, Fahrzeuge und Mitteilungen schmal */
.ls-leute { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.ls-leute .ls-person { font-size: 13px; padding: 7px 0; }
.ls-leute .ls-person small { font-size: 12px; }
.ls-leute .ls-person:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.ls-klein .ls-person { font-size: 13.5px; padding: 8px 0; align-items: baseline; }
.ls-klein .ls-person > span { flex: none; white-space: nowrap; }
.ls-klein .ls-person small { font-size: 12px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .ls-tage { gap: 4px; } .ls-tage a { padding: 10px 2px; } .ls-tage a b { font-size: 13px; } }
.ls-tage a:hover { box-shadow: var(--schatten); }
.ls-side .karte { margin-bottom: 12px; }
.ls-side .karte h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.ls-side .karte h3 a { margin-left: auto; font-size: 13.5px; font-weight: 600; text-decoration: none; }
details.einteilen { margin-top: 10px; }
details.einteilen summary { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--rot-stark); min-height: 36px; list-style: none; }
details.einteilen summary::-webkit-details-marker { display: none; }
/* Wochenansicht Desktop / Zeitspalten */
.woche-tag { min-width: 0; }

/* ── Tablet ─────────────────────────────────────────────────────────── */
@media (min-width: 700px) {
  :root { --rand: 28px; }
  .shell { max-width: 820px; }
  .grid-admin, .grid-main { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .grid-areas { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .dash-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kennzahlen { gap: 14px; }
  .kal-tag { min-height: 64px; }
}

/* ── Desktop: Seitenleiste, breite Inhalte ──────────────────────────── */
@media (min-width: 1100px) {
  :root { --rand: 32px; }
  .dock, .nav-backdrop, .hdr-menu, .sidenav-close, .sidenav-head::before, .fab { display: none !important; }
  body.mit-nav .main { margin-left: 272px; }
  .shell { max-width: 1120px; padding-bottom: 48px; }
  body.wide .shell { max-width: 1560px; }
  .sidenav {
    visibility: visible; top: 0; right: auto; bottom: 0; width: 272px; max-height: none; border-radius: 0; transform: none; transition: none;
    background: var(--glas-seite); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--linie); box-shadow: none; padding: 20px 14px 20px;
  }
  .sidenav-head { padding: 4px 8px 16px; }
  .hdr { padding: 20px var(--rand) 12px; }
  .hdr-marke { display: none; }
  .toast { bottom: 28px; }
  .gruss h1, .seite-titel h1 { font-size: 38px; }
  .kennzahlen { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ls-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 0 8px; align-items: start; }
  .ls-grid .hinweise { margin-right: 0; }
  .form-zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* Kalender: Monatsraster mit Terminbalken, Woche in sieben Spalten */
  .kal-tag { min-height: 112px; align-items: stretch; padding: 6px; border-radius: 12px; }
  .kal-tag .z { width: 30px; height: 30px; font-size: 14px; }
  .kal-punkte { display: none; }
  .kal-balken { display: block; }
  .kal-balken .cal-ev { margin-top: 3px; }
  .woche-streifen { display: none; }
  .woche-spalten { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding: 0 var(--rand); }
  .woche-spalten .woche-tag { background: var(--glas-leicht); border-radius: var(--r-l); padding-bottom: 8px; min-height: 360px; }
  .woche-spalten .woche-tag.heute { background: var(--rose-hauch); }
  .woche-spalten .section-label { padding: 12px 12px 8px; font-size: 14px; }
  .woche-spalten .termin-karte { margin: 0 8px 8px; padding: 10px 10px 10px 14px; box-shadow: var(--schatten-s); }
  .woche-spalten .tk-kopf { flex-wrap: wrap; gap: 4px; min-height: 0; }
  .woche-spalten .tk-zeit { font-size: 12px; }
  .woche-spalten .tk-kopf .chip { font-size: 11px; padding: 2px 8px; }
  .woche-spalten .tk-titel { font-size: 13.5px; -webkit-line-clamp: 3; }
  .woche-spalten .tk-meta { font-size: 12px; flex-direction: column; }
  .woche-spalten .tk-meta .ico { display: none; }
  .kal-tagesliste { max-width: 860px; }
  .woche-spalten .empty { padding: 8px 12px; font-size: 13px; }
  .kal-tagesliste.nur-mobil { display: none; }
  .lager-kopf { display: grid; grid-template-columns: 48px minmax(0, 1fr) 120px 90px 170px 170px 14px; gap: 14px; margin: 0 var(--rand) 6px; padding: 0 16px; font-size: 12px; color: var(--text-2); font-weight: 600; }
  .lager-kopf span:first-child { grid-column: 1 / 3; }
  a.row[data-search] { display: grid; grid-template-columns: 48px minmax(0, 1fr) 120px 90px 170px 170px 14px; gap: 14px; }
  .lager-spalte { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
}
@media (max-width: 380px) {
  :root { --rand: 16px; }
  .kennzahl b { font-size: 28px; }
  .kennzahl span { font-size: 12px; }
  .gruss h1, .seite-titel h1 { font-size: 28px; }
  .dock a, .dock button { font-size: 10.5px; }
}
@media (max-width: 340px) { .grid-admin { grid-template-columns: minmax(0, 1fr); } .cat-tile.wide { grid-column: auto; } }
.tile, .row, .addrow, .bigbtn, .btn, .dock a, .sidenav-item { -webkit-tap-highlight-color: transparent; }
.nur-desktop { display: none !important; }
@media (min-width: 1100px) { .kennzahl.nur-desktop { display: block !important; } .ls-side .section-label { padding-left: 0; } .ls-side .karte, .ls-side .news { margin-left: 0; } }
.nur-gross { display: none !important; }
@media (min-width: 1100px) { .nur-gross { display: inline-flex !important; } }
.woche-streifen .kal-punkte { height: 6px; }
.woche-spalten .woche-tag .section-label a { font-size: 18px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--karte); }

@media (min-width: 700px) {
  .hinweis-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: center; }
  .hinweis-body > * { grid-column: 1; }
  .hinweis-body > .tag { justify-self: start; }
  .hinweis .aktion { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}
@media (min-width: 1100px) {
  .kal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .kal-layout .kal-tagesliste { padding-top: 6px; max-width: none; }
  .kal-layout .kal-tagesliste .section-label { padding: 6px var(--rand) 12px 0; }
  .kal-layout .termin-karte { margin-left: 0; }
  .kal-layout .empty { padding-left: 0; }
  .kal-wt { text-align: left; padding-left: 10px; }
}
.sidenav-foot span small { display: block; font-weight: 500; color: var(--text-2); font-size: 12.5px; margin-top: 1px; }
/* Artikelliste mobil: Bestand als Zahl, Status nur als farbiger Punkt */
.row-bestand { flex: none; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-bestand b { color: var(--text); font-size: 16px; font-weight: 700; }
.row-status { flex: none; display: flex; }
.row-status.nur-punkt .pill { background: none; padding: 0; min-height: 0; }
.row-status.nur-punkt .pill-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.row-status.nur-punkt .pill-dot { width: 10px; height: 10px; }
@media (min-width: 1100px) {
  .row-bestand { display: none; }
  .row-status.nur-punkt .pill { background: color-mix(in srgb, currentColor 11%, var(--karte)); padding: 4px 10px; }
  .row-status.nur-punkt .pill-label { position: static; width: auto; height: auto; clip: auto; }
  .row-status.nur-punkt .pill-dot { width: 7px; height: 7px; }
}
/* Auftragsdetail */
.detail-kopf { padding: 8px var(--rand) 14px; }
.detail-kopf .eyebrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-kopf .eyebrow .chip { margin-left: auto; }
.detail-kopf h1 { margin: 8px 0 6px; font-size: 26px; font-weight: 750; letter-spacing: -.025em; line-height: 1.15; }
.detail-zeit { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 15px; font-weight: 500; }
.detail-zeit .ico { color: var(--text-3); }
.detail-karte { margin: 0 var(--rand) 12px; padding: 4px 16px; display: block; }
.dk-zeile { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--linie-2); }
.dk-zeile:last-child { border-bottom: 0; }
.dk-zeile > .ico { color: var(--text-3); flex: none; }
.dk-zeile > div { flex: 1; min-width: 0; }
.dk-zeile .k, .detail-text .k { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.dk-zeile .v { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.detail-text { margin: 0 var(--rand) 12px; padding: 14px 16px; display: block; white-space: pre-line; font-size: 15px; line-height: 1.5; }
.detail-text .k { margin-bottom: 4px; white-space: normal; }
.detail-text.wichtig { background: var(--orange-hell); box-shadow: none; border-color: transparent; font-weight: 600; }
/* Datei-Upload gut sichtbar */
.upload-feld { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 14px; border: 1.5px dashed var(--rose); border-radius: var(--r-l); background: var(--rose-hauch); color: var(--rot-stark); font-weight: 600; font-size: 15px; cursor: pointer; text-align: center; }
.upload-feld:hover { background: var(--rose-hell); }
.upload-feld input { position: absolute; width: 1px; height: 1px; opacity: 0; }
input[type=file].input, .form-block input[type=file] { padding: 10px; border-style: dashed; background: var(--rose-hauch); font-size: 14px; min-height: 0; height: auto; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--knopf); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
/* App installieren */
.install-held { margin: 8px var(--rand) 18px; padding: 28px 20px 24px; text-align: center; background: var(--karte); border-radius: var(--r-xl); box-shadow: var(--schatten); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.install-held img { border-radius: 50%; box-shadow: var(--schatten); margin-bottom: 8px; }
.install-held h1 { margin: 0; font-size: 26px; font-weight: 750; letter-spacing: -.025em; }
.install-held p { margin: 0 0 6px; color: var(--text-2); font-size: 15px; }
.install-held .btn { margin-top: 8px; min-width: 220px; }
.install-raster { display: grid; gap: 12px; padding: 0 var(--rand) 16px; }
.install-karte { display: block; padding: 18px; }
.install-karte h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.install-karte h2 .ico { color: var(--rot-stark); }
.schritte { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.schritte li { counter-increment: s; position: relative; padding-left: 36px; min-height: 24px; font-size: 14.5px; line-height: 1.6; }
.schritte li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--rose-hell); color: var(--rot-stark); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.sidenav-install { color: var(--rot-stark) !important; gap: 8px; }
@media (min-width: 700px) { .install-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Auftragsliste: mobil Karten, Desktop Tabelle */
.auftrag-suche { display: flex; align-items: center; gap: 10px; padding: 6px var(--rand) 4px; }
.auftrag-suche .search-wrap { position: relative; display: flex; align-items: center; }
.auftrag-suche .search-wrap .ico { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.auftrag-suche .search-wrap .input { padding-left: 44px; width: 100%; }
.auftrag-suche .btn { min-height: 46px; }
.filter-menue { display: grid; gap: 10px; min-width: 280px; padding: 14px; }
.filter-menue label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.auftrag-zeitraum { padding: 8px var(--rand) 10px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.auftrag-tabelle { display: none; }
@media (min-width: 1100px) {
  .auftrag-liste { display: none; }
  .auftrag-tabelle { display: block; }
}
@media (max-width: 1099px) { a.row[data-search]::after { display: none; } a.row[data-search] { gap: 12px; } }
/* Anmeldung */
.anmelde-kopf { text-align: center; margin-bottom: 8px; }
.anmelde-kopf img { display: block; margin: 0 auto 12px; border-radius: 50%; box-shadow: var(--schatten); }
.anmelde-kopf p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.anmelde-link { display: block; text-align: center; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--rot-stark); text-decoration: none; }
.anmelde-link:hover { text-decoration: underline; }
/* Bestätigen / Zurücksetzen */
.zustand-karte .btn.voll { width: 100%; margin-top: 18px; font-size: 15px; padding: 13px; }
.zustand-karte .btn-ghost.voll { margin-top: 6px; font-size: 14px; padding: 10px; }
.zustand-karte .dlg-title { text-align: center; }
.zustand-symbol { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; }
.zustand-symbol.ok { background: var(--positiv-hell); color: var(--positiv); }
.zustand-symbol.warn { background: var(--negativ-hell); color: var(--negativ); }
.hinweis-box { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--negativ-hell); color: var(--negativ); font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.klein-aufklapp { margin-top: 14px; font-size: 14px; color: var(--text-2); }
.klein-aufklapp summary { cursor: pointer; font-weight: 600; text-align: center; }

/* ── E-Mail / Firmenpostfach ──────────────────────────────────────────── */
.pf-logo { width: 64px; height: 64px; border-radius: 20px; background: var(--rose-hell); color: var(--rot-stark); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.pf-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pf-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.pf-status.an { background: var(--positiv-hell); color: var(--positiv); }
.pf-status.an i { background: var(--positiv); }
.pf-status.aus { background: var(--linie-2); color: var(--text-2); }
.pf-status.warn { background: var(--negativ-hell); color: var(--negativ); }
.pf-status.warn i { background: var(--negativ); }
.pf-anmelden .anmelde-kopf .pf-status { margin-top: 10px; }
.pf-anmelden .form-label { display: block; margin: 16px 0 6px; }
.pf-fehler { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--rot-status-hell); color: var(--rot-status); font-size: 14px; font-weight: 500; }
.pf-fehler .ico { flex: none; margin-top: 1px; }
.pf-passwort { position: relative; }
.pf-passwort .input { padding-right: 54px; }
.pf-auge { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; background: none; color: var(--text-2); border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pf-auge:hover { background: var(--rose-hauch); }
.pf-auge[aria-pressed="true"] { color: var(--rot-stark); }
.pf-verbinden { width: 100%; margin-top: 20px; font-size: 16px; padding: 14px; }
.pf-sicher { text-align: center; }
.pf-unterlinks { text-align: center; padding: 0 var(--rand) 24px; }
.pf-unterlinks a { display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); font-size: 14px; text-decoration: none; }

.pf { padding: 0 var(--rand) 16px; }
.pf-seite { display: none; }
.pf-konto-mobil { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; }
.pf-konto-mobil .pf-adr { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-konto-mobil a, .pf-konto-mobil button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linie); background: var(--karte); color: var(--text-2); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.pf-konto-mobil form { margin: 0; }
.pf-ordnertitel { display: none; }
.pf-suche { position: relative; margin: 10px 0 8px; }
.pf-suche .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.pf-suche .input { padding-left: 42px; }
.pf-filter { display: flex; gap: 8px; align-items: center; margin: 4px 0 12px; }
.pf-filter a { padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2); text-decoration: none; background: var(--karte); border: 1px solid var(--linie); }
.pf-filter a.on { background: var(--text); color: var(--invers); border-color: var(--text); }
.pf-filter span { margin-left: auto; font-size: 12.5px; color: var(--text-3); }
.pf-filter a.pf-aktualisieren { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; }
.pf-aktualisieren b { font-weight: 600; }
.pf-aktualisieren.laeuft { pointer-events: none; opacity: .7; }
.pf-aktualisieren.laeuft .ico { animation: pf-drehen .8s linear infinite; }
@keyframes pf-drehen { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .pf-aktualisieren b { display: none; } .pf-filter a.pf-aktualisieren { padding: 6px 10px; } }
@media (prefers-reduced-motion: reduce) { .pf-aktualisieren.laeuft .ico { animation: none; } }
.pf-eintraege { background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten); overflow: hidden; border: 1px solid var(--rahmen); }
.pf-eintrag { display: flex; gap: 12px; padding: 13px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--linie-2); }
.pf-eintrag:last-child { border-bottom: 0; }
.pf-eintrag:hover { background: var(--rose-hauch); }
.pf-eintrag.on { background: var(--rose-hell); }
.pf-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: hsl(var(--h, 0) 38% 34%); background: hsl(var(--h, 0) 52% 92%); }
.pf-avatar.gross { width: 46px; height: 46px; font-size: 17px; }
.pf-zeilen { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-z1 { display: flex; gap: 8px; align-items: baseline; }
.pf-z1 b { flex: 1; min-width: 0; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-z1 time { font-size: 12.5px; color: var(--text-3); flex: none; font-variant-numeric: tabular-nums; }
.pf-z2 { display: flex; gap: 6px; align-items: center; font-size: 14.5px; }
.pf-z2 > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-z2 .ico { color: var(--text-3); flex: none; }
.pf-z3 { font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-eintrag.neu .pf-z1 b, .pf-eintrag.neu .pf-z2 > span { font-weight: 700; }
.pf-eintrag.neu .pf-z1 time { color: var(--rot-stark); font-weight: 600; }
.pf-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--rot); flex: none; }
/* Zeile mit „⋯“ (Zuordnen / Spam), gelb = verdächtig (Spam, Werbung, Job-Empfehlung) */
.pf-zeile { position: relative; display: flex; align-items: stretch; border-bottom: 1px solid var(--linie-2); }
.pf-zeile:last-child { border-bottom: 0; }
.pf-zeile > .pf-eintrag { flex: 1; min-width: 0; border-bottom: 0; }
.pf-zeile.verdacht { background: var(--amber-hell); box-shadow: inset 3px 0 0 var(--amber); }
.pf-zeile.verdacht > .pf-eintrag:hover { background: transparent; }
.pf-zeile.menue-offen > .pf-eintrag { background: var(--rose-hauch); }
.pf-mehr { flex: none; width: 44px; border: 0; background: transparent; color: var(--text-3); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pf-mehr:hover, .pf-mehr[aria-expanded="true"] { color: var(--text); background: var(--rose-hauch); }
.pf-z4 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.pf-verdacht-chip { font-size: 11.5px; font-weight: 700; color: var(--amber); background: var(--amber-hell); border: 1px solid var(--amber); border-radius: 999px; padding: 1px 8px; line-height: 1.5; }
.pf-verdacht-chip.gross { font-size: 13px; padding: 2px 10px; }
/* Angebots- und Preisanfragen: hellgrün (grün = positiv) */
.pf-zeile.anfrage { background: var(--gruen-hell); }
.pf-zeile.anfrage::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gruen); z-index: 1; pointer-events: none; }
.pf-zeile.anfrage > .pf-eintrag:hover { background: color-mix(in srgb, var(--gruen) 9%, transparent); }
.pf-zeile.anfrage > .pf-eintrag.on { background: color-mix(in srgb, var(--gruen) 16%, var(--gruen-hell)); }
.pf-anfrage-chip { font-size: 11.5px; font-weight: 700; color: var(--gruen); background: var(--gruen-hell); border: 1px solid var(--gruen); border-radius: 999px; padding: 1px 8px; line-height: 1.5; }
.pf-anfrage-chip.gross { display: inline-block; font-size: 13px; padding: 2px 10px; margin-top: 4px; }
.pf-zugeordnet { font-size: 12px; color: var(--text-2); }
.pf-menue { position: fixed; z-index: 1000; min-width: 240px; max-width: calc(100vw - 16px); padding: 6px; background: var(--karte); border: 1px solid var(--rahmen); border-radius: 14px; box-shadow: var(--schatten-l); }
.pf-menue form { margin: 0; }
.pf-menue button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.pf-menue button span { display: flex; flex-direction: column; min-width: 0; }
.pf-menue button small { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-menue button:hover, .pf-menue button:focus-visible { background: var(--rose-hauch); }
.pf-menue button:disabled { opacity: .6; cursor: default; }
.pf-menue-titel { font-size: 12px; font-weight: 700; color: var(--text-2); padding: 6px 12px 4px; }
.pf-menue-linie { height: 1px; background: var(--linie-2); margin: 6px 4px; }
.pf-verdacht-hinweis { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--amber-hell); box-shadow: inset 3px 0 0 var(--amber); color: var(--text); font-size: 14px; margin-bottom: 12px; }
.pf-verdacht-hinweis > div { flex: 1 1 200px; min-width: 0; }
.pf-verdacht-hinweis b { color: var(--amber); }
.pf-verdacht-hinweis span { color: var(--text-2); }
.pf-verdacht-hinweis form { margin: 0; }
.pf-verdacht-hinweis .btn { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.pf-zuordnung-hinweis { display: flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 12px; background: var(--neutral-hell); color: var(--text-2); font-size: 13.5px; margin-bottom: 12px; }
.pf-aussortiert-hinweis { font-size: 13px; color: var(--text-2); margin: 0 0 8px; }
.pf-dialog-text { margin: 0 0 12px; font-size: 14.5px; color: var(--text); }
.pf-dialog-text.leise, .pf-karte-text.leise { color: var(--text-2); font-size: 13px; }
.pf-dialog-knoepfe form { margin: 0; }
.pf-postfaecher { display: flex; flex-direction: column; gap: 2px; }
.pf-postfaecher form { margin: 0; }
.pf-postfaecher button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.pf-postfaecher button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-postfaecher button em { font-style: normal; font-size: 11.5px; color: var(--text-2); }
.pf-postfaecher button:hover { background: var(--rose-hauch); }
.pf-postfaecher button.on { background: var(--rose-hell); color: var(--rot-stark); font-weight: 650; }
.pf-postfachwahl { margin: 0 0 8px; }
.pf-liste-postfaecher { margin: 0 var(--rand) 16px; padding: 4px 16px; display: block; }
.pf-liste-postfaecher .pf-testzeile { align-items: center; }
.pf-liste-postfaecher .pf-testzeile > div { flex: 1; min-width: 0; }
.pf-liste-postfaecher form { margin: 0; }
.pf-leer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; color: var(--text-3); font-size: 14.5px; text-align: center; }
.pf-leer.gross { padding: 80px 16px; }
.pf-seiten { display: flex; gap: 10px; justify-content: center; align-items: center; padding: 14px 0; font-size: 13.5px; color: var(--text-2); }
.pf-seiten .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }

.pf-lesen { display: none; }
.pf[data-ansicht="nachricht"] .pf-liste { display: none; }
.pf[data-ansicht="nachricht"] .pf-lesen { display: block; }
.pf-lesekopf { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0 14px; }
.pf-lesetitel { flex: 1; min-width: 0; }
.pf-lesekopf h1 { margin: 6px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere; }
.pf-absender { display: flex; gap: 12px; align-items: flex-start; padding: 0 0 12px; }
.pf-absender > div { min-width: 0; }
.pf-absender b { display: block; font-size: 15.5px; }
.pf-absender small { display: block; color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.pf-empfaenger summary { cursor: pointer; font-size: 13px; color: var(--text-2); list-style: none; margin-top: 2px; }
.pf-empfaenger summary::-webkit-details-marker { display: none; }
.pf-empfaenger div { font-size: 13px; color: var(--text-2); margin-top: 4px; overflow-wrap: anywhere; }
.pf-empfaenger div span { color: var(--text-3); }
.pf-aktionen { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 12px; }
.pf-aktionen .btn { min-height: 42px; padding: 8px 14px; font-size: 14px; }
.pf-aktionen form { margin: 0; }
.pf-anhaenge { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 12px; }
.pf-datei { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; border-radius: 12px; background: var(--karte); border: 1px solid var(--linie); text-decoration: none; color: var(--text); font-size: 13.5px; max-width: 100%; }
.pf-datei span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.pf-datei small { color: var(--text-3); flex: none; }
.pf-bilder-hinweis { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--neutral-hell); color: var(--neutral); font-size: 13.5px; margin-bottom: 12px; }
.pf-bilder-hinweis a { margin-left: auto; font-weight: 600; color: inherit; }
.pf-inhalt { background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten); padding: 16px; border: 1px solid var(--rahmen); }
/* HTML-Mails sind für weißes Papier gestaltet — der Rahmen bleibt auch nachts hell */
.pf-inhalt.pf-papier { background: #FFFFFF; color: #263238; color-scheme: light; }
.pf-rahmen { width: 100%; border: 0; min-height: 160px; display: block; }
.pf-text { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.pf-text .zitat { color: var(--text-2); }

.pf-verfassen { padding: 4px var(--rand) 24px; max-width: 920px; }
.pf-verfassen .karte { display: block; }
.pf-felder { padding: 2px 16px; }
.pf-feld { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--linie-2); }
.pf-feld:last-child { border-bottom: 0; }
.pf-feld > span { width: 62px; flex: none; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.pf-feld .input { border: 0; box-shadow: none; padding: 0; background: transparent; min-height: 50px; border-radius: 0; }
.pf-feld .input:focus { box-shadow: none; }
.pf-feld b { font-weight: 500; font-size: 14.5px; padding: 14px 0; overflow-wrap: anywhere; }
.pf-cc { border-bottom: 1px solid var(--linie-2); }
.pf-cc summary { font-size: 13.5px; color: var(--rot-stark); font-weight: 600; cursor: pointer; padding: 12px 0; list-style: none; }
.pf-cc summary::-webkit-details-marker { display: none; }
.pf-cc .pf-feld:last-child { border-bottom: 0; }
.pf-text-karte { margin-top: 12px; padding: 0; }
.pf-nachricht { border: 0; min-height: 300px; font-size: 15px; line-height: 1.6; padding: 16px; resize: vertical; width: 100%; box-shadow: none; background: transparent; border-radius: var(--r-l); }
.pf-dateien { margin-top: 12px; padding: 14px 16px; }
.pf-feld-titel { font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.pf-dateien .auswahl-liste { margin-bottom: 12px; }
.pf-knoepfe { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.pf-knoepfe .btn { min-height: 52px; padding: 12px 20px; font-size: 15px; }
.pf-weg { text-align: right; }
.pf-dialog { border: 0; border-radius: var(--r-xl); padding: 0; max-width: 460px; width: calc(100% - 32px); box-shadow: var(--schatten-l); color: var(--text); }
.pf-dialog::backdrop { background: rgba(38, 50, 56, .38); }
.pf-dialog-inhalt { padding: 24px; }
.pf-dialog h2 { margin: 14px 0 14px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.pf-dialog dl { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 12px; margin: 0 0 22px; font-size: 14px; }
.pf-dialog dt { color: var(--text-2); }
.pf-dialog dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.pf-dialog-knoepfe { display: flex; gap: 10px; justify-content: flex-end; }
.pf-dialog-knoepfe .btn { min-height: 48px; }

.pf-einst { padding: 18px; margin: 0 var(--rand) 12px; display: block; }
.pf-einst label { display: block; margin-bottom: 12px; }
.pf-einst .form-label { display: block; margin-bottom: 6px; }
.pf-einst .btn { margin-top: 4px; }
.pf-einst-kopf { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 12px; }
.pf-einst-kopf small { color: var(--text-3); font-size: 12.5px; }
.form-drei { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
.pf-gruppe { font-weight: 700; font-size: 14px; margin: 6px 0 8px; }
.pf-test { padding: 0 var(--rand) 12px; }
.pf-testergebnis { margin: 0 var(--rand) 12px; padding: 4px 16px; display: block; }
.pf-testzeile { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--linie-2); }
.pf-testzeile:last-child { border-bottom: 0; }
.pf-testzeile b { display: block; font-size: 14.5px; }
.pf-testzeile small { display: block; color: var(--text-2); font-size: 13px; }
.pf-protokoll { margin: 0 var(--rand) 16px; padding: 6px 16px; display: block; }
.pf-protokoll div { display: flex; gap: 4px 10px; flex-wrap: wrap; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--linie-2); }
.pf-protokoll div:last-child { border-bottom: 0; }
.pf-protokoll time { color: var(--text-3); font-variant-numeric: tabular-nums; }
.pf-protokoll small { color: var(--text-2); width: 100%; }

.pf-karte { display: block; margin: 16px var(--rand) 0; padding: 18px; }
.pf-karte-kopf { display: flex; gap: 12px; align-items: center; }
.pf-karte-kopf > div { flex: 1; min-width: 0; }
.pf-karte-kopf h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.pf-karte-kopf p { margin: 2px 0 0; font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-karte-inhalt { padding: 14px 0 0; }
.pf-karte-nachricht { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--text); padding: 9px 10px; margin: 0 -10px; border-radius: 12px; }
.pf-karte-nachricht:hover { background: var(--rose-hauch); }
.pf-karte-nachricht.anfrage { background: var(--gruen-hell); box-shadow: inset 3px 0 0 var(--gruen); }
.pf-karte-von { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; color: var(--text-2); }
.pf-karte-von b { flex: 1; min-width: 0; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-karte-von time { flex: none; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pf-karte-betreff { font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.pf-karte-betreff .pf-anfrage-chip { margin-right: 6px; vertical-align: 1px; }
/* ganze Karte = Knopf zum Postfach */
.pf-karte[data-karte-href] { cursor: pointer; transition: box-shadow .2s, transform .2s; }
.pf-karte[data-karte-href]:hover { box-shadow: var(--schatten-l); }
.pf-karte[data-karte-href]:active { transform: scale(.995); }
.pf-karte:has(.pf-karte-link:focus-visible) { outline: 2px solid var(--rot-stark); outline-offset: 2px; }
.pf-karte-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pf-karte-text { font-size: 14px; color: var(--text-2); }
.pf-skelett { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--linie-2), var(--linie), var(--linie-2)); background-size: 200% 100%; animation: pf-laden 1.2s linear infinite; margin: 8px 0; width: 70%; }
.pf-skelett.kurz { width: 45%; }
@keyframes pf-laden { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pf-skelett { animation: none; } }

@media (min-width: 700px) {
  .form-drei { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .pf-knoepfe .btn { min-width: 180px; }
}
@media (max-width: 699px) {
  .pf-knoepfe .btn { flex: 1 1 100%; }
  .pf-weg { text-align: left; }
}
@media (min-width: 1100px) {
  /* Postfach über die ganze Breite, bündig links: Ordner | breite Liste mit Vorschau | große Leseansicht */
  body.pf-breit .shell { max-width: none; margin-left: 0; }
  .pf { display: grid; grid-template-columns: 216px clamp(340px, 32%, 680px) minmax(0, 1fr); gap: 16px; height: calc(100vh - 96px); padding-bottom: 12px; }
  .pf-z3 { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; line-height: 1.45; margin-top: 1px; }
  .pf-text { max-width: 110ch; }
  .pf > * { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
  .pf-seite { display: flex; flex-direction: column; gap: 12px; padding: 2px 2px 8px; }
  .pf-konto { display: flex; flex-direction: column; gap: 4px; padding: 4px 6px 4px; }
  .pf-konto .pf-status { align-self: flex-start; margin-bottom: 4px; }
  .pf-konto b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pf-konto small { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pf-neu { width: 100%; }
  .pf-ordnerliste { display: flex; flex-direction: column; gap: 2px; }
  .pf-ordnerliste a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px 8px calc(12px + var(--tiefe, 0) * 14px); border-radius: 12px; text-decoration: none; color: var(--text); font-size: 14.5px; font-weight: 500; }
  .pf-ordnerliste a .ico { color: var(--text-2); flex: none; }
  .pf-ordnerliste a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pf-ordnerliste a em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--rot-stark); background: var(--rose-hell); border-radius: 999px; padding: 1px 8px; }
  .pf-ordnerliste a em.leise { color: var(--text-2); background: var(--linie-2); }
  .pf-ordnerliste a:hover { background: var(--rose-hauch); }
  .pf-ordnerliste a.on { background: var(--rose-hell); color: var(--rot-stark); font-weight: 650; }
  .pf-ordnerliste a.on .ico { color: var(--rot-stark); }
  .pf-fuss { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding: 10px 6px 0; border-top: 1px solid var(--linie); }
  .pf-fuss a, .pf-fuss .btn { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-start; min-height: 38px; padding: 6px; font-size: 14px; color: var(--text-2); text-decoration: none; }
  .pf-fuss form { margin: 0; }
  .pf-konto-mobil, .pf-ordnerwahl, .pf-postfachwahl { display: none; }
  .pf-ordnertitel { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
  .pf-ordnertitel small { font-size: 13px; font-weight: 600; color: var(--rot-stark); }
  .pf-listenkopf { position: sticky; top: 0; z-index: 2; background: var(--bg); padding-bottom: 2px; }
  .pf[data-ansicht] .pf-liste, .pf[data-ansicht] .pf-lesen { display: block; }
  .pf-lesen { padding-right: 2px; }
  .pf-zurueck { display: none; }
  .pf-verfassen { padding-top: 8px; }
}

/* ── Mehrtägige Aufträge: Tagesleiste, Tagesansicht, Probleme ─────────── */
.tage-leiste { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--rand) 14px; scrollbar-width: none; }
.tage-leiste::-webkit-scrollbar { display: none; }
.tage-leiste a { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; padding: 8px 6px 7px; border-radius: 16px; background: var(--karte); border: 1px solid var(--linie); text-decoration: none; color: var(--text); box-shadow: var(--schatten-s); }
.tage-leiste a small { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.tage-leiste a b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tage-leiste a span { font-size: 11px; color: var(--text-2); }
.tage-leiste a.heute { border-color: var(--rose); }
.tage-leiste a.on { background: var(--knopf); border-color: var(--knopf); color: #fff; }
.tage-leiste a.on small, .tage-leiste a.on span { color: rgba(255, 255, 255, .85); }
.status-punkt { width: 7px; height: 7px; border-radius: 50%; background: var(--linie); display: block; margin-top: 2px; }
.status-punkt.status-in_arbeit { background: var(--orange); }
.status-punkt.status-erledigt { background: var(--gruen); }
.status-punkt.status-bestaetigt { background: var(--blau); }
.status-punkt.status-verschoben, .status-punkt.status-abgesagt { background: var(--rot-status); }
.tage-leiste a.on .status-punkt { box-shadow: 0 0 0 1.5px #fff; }
.dk-zeile .abw { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--violett); background: var(--violett-hell); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.dk-tel { display: block; font-weight: 500; color: var(--text-2); font-size: 14px; }
.route-btn.sekundaer { background: var(--karte); color: var(--rot-stark); border: 1px solid var(--rose); }
.detail-text .k { display: flex; align-items: center; gap: 6px; }
.detail-text.sicherheit { background: var(--rot-status-hell); box-shadow: none; border-color: transparent; color: var(--text); font-weight: 600; }
.detail-text.sicherheit .k { color: var(--rot-status); }
.detail-text.tagesnotiz { background: var(--violett-hell); box-shadow: none; border-color: transparent; }
.unter-label { padding: 2px var(--rand) 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.doku-tag { padding: 0 var(--rand) 10px; }
.doku-tag > a { display: inline-block; font-size: 13.5px; font-weight: 650; text-decoration: none; margin-bottom: 6px; }
.zuordnung { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.zuordnung label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--linie); background: var(--karte); font-size: 14px; font-weight: 500; cursor: pointer; }
.zuordnung label:has(input:checked) { border-color: var(--rot-stark); background: var(--rose-hell); color: var(--rot-stark); font-weight: 650; }
.zuordnung input { accent-color: var(--rot-stark); }
.karte.problem { display: block; margin: 0 var(--rand) 10px; padding: 14px 16px; }
.karte.problem.erledigt { opacity: .72; }
.problem-kopf { display: flex; gap: 12px; align-items: center; }
.problem-kopf .hinweis-icon { width: 36px; height: 36px; border-radius: 12px; }
.problem-kopf > div { flex: 1; min-width: 0; }
.problem-kopf b { display: block; font-size: 14.5px; }
.problem-kopf small { display: block; color: var(--text-2); font-size: 12.5px; }
.problem-text { margin: 10px 0 8px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.karte.problem form { margin-top: 6px; }
.problem-melden, .tag-anpassen { display: block; margin: 4px var(--rand) 14px; padding: 0; }
.problem-melden summary, .tag-anpassen summary { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 16px; font-weight: 650; font-size: 15px; cursor: pointer; list-style: none; }
.problem-melden summary::-webkit-details-marker, .tag-anpassen summary::-webkit-details-marker { display: none; }
.problem-melden summary { color: var(--rot-status); }
.problem-melden summary .ico, .tag-anpassen summary .ico { flex: none; }
.problem-melden form, .tag-anpassen form { padding: 0 16px 16px; display: grid; gap: 10px; }
.tag-anpassen form { display: block; }
.tag-anpassen .form-label { display: block; margin: 12px 0 6px; }
.problem-melden .btn { width: 100%; }
.upload-feld.klein { min-height: 52px; font-size: 14px; }
.ls-kopf .zeit small { display: block; font-size: 11px; font-weight: 600; color: var(--text-2); }
.ls-auftrag { border-left: 4px solid var(--farbe, transparent); }
.zuweisen .check.alle { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.zeitwahl .check { margin: 0; }
.area-head-bild { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; flex: none; box-shadow: var(--schatten-s); }
.ls-grid > * { min-width: 0; }
@media (min-width: 1100px) { .ls-grid .pf-karte { margin-right: 0; } }

/* ── Sicherheitscheck ─────────────────────────────────────────────────── */
.sk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; padding: 0 var(--rand) 4px; }
.sk-grid > * { min-width: 0; }
.sk-karte { display: block; padding: 16px; border-radius: var(--r-l, 18px); text-decoration: none; color: var(--text); }
.sk-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sk-kopf b { flex: 1; font-size: 15px; }
.sk-kopf .chip { flex: none; }
.sk-zeile { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; line-height: 1.4; color: var(--text-2); margin-top: 6px; overflow-wrap: anywhere; }
.sk-klein { font-size: 12.5px; }
.sk-punkt { width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-1px); background: var(--text-3); }
.chip.sk-ok, .sk-punkt.sk-ok { background: var(--gruen-hell); color: var(--gruen); }
.chip.sk-info { background: var(--linie-2); color: var(--text-2); }
.chip.sk-niedrig { background: var(--neutral-hell); color: var(--neutral); }
.chip.sk-mittel { background: var(--negativ-hell); color: var(--negativ); }
.chip.sk-hoch { background: var(--negativ-hell); color: var(--negativ); box-shadow: inset 0 0 0 1px var(--negativ); }
.chip.sk-kritisch { background: var(--negativ); color: #fff; }
.sk-punkt.sk-ok { background: var(--positiv); } .sk-punkt.sk-info { background: var(--text-3); } .sk-punkt.sk-niedrig { background: var(--neutral); }
.sk-punkt.sk-mittel { background: var(--negativ); } .sk-punkt.sk-hoch { background: var(--negativ); } .sk-punkt.sk-kritisch { background: var(--negativ); }
.sk-seite { padding-bottom: 8px; }
.sk-leiste { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; padding: 16px var(--rand); }
.sk-zahlen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sk-liste { margin: 0 var(--rand); padding: 4px 0; border-radius: var(--r-l, 18px); }
.sk-befund { border-top: 1px solid var(--linie-2); padding: 10px 16px; }
.sk-befund:first-child { border-top: 0; }
.sk-befund summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
.sk-befund summary::-webkit-details-marker { display: none; }
.sk-befund summary .chip { flex: none; }
.sk-titel { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.sk-text { margin: 8px 0 2px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.sk-empf { color: var(--text); }
.sk-verlauf { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-top: 1px solid var(--linie-2); color: var(--text); text-decoration: none; font-size: 14px; }
.sk-verlauf:first-child { border-top: 0; }
.sk-verlauf.on { background: var(--rose-hauch); }

/* ── Hell / Nacht umschalten ─────────────────────────────────────────── */
.logo-nacht { display: none !important; }
:root[data-theme="dunkel"] .logo-tag { display: none !important; }
:root[data-theme="dunkel"] .logo-nacht { display: block !important; }
.thema-knopf span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: opacity .25s, transform .45s cubic-bezier(.3, 1.3, .4, 1); }
.thema-knopf .thema-sonne { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dunkel"] .thema-knopf .thema-sonne { opacity: 1; transform: none; }
:root[data-theme="dunkel"] .thema-knopf .thema-mond { opacity: 0; transform: rotate(90deg) scale(.5); }
.thema-karte { margin: 0 var(--rand); padding: 14px; }
.thema-wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--linie-2); }
.thema-wahl button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 6px; border: 0; border-radius: 12px;
  background: transparent; color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, color .15s; }
.thema-wahl button .ico { flex: none; }
.thema-wahl button.on { background: var(--karte); color: var(--text); box-shadow: var(--schatten-s); }
.thema-wahl button.on .ico { color: var(--rot-stark); }
.thema-karte .hint-line { margin-top: 10px; }

/* ── Einladungslink ──────────────────────────────────────────────────── */
.link-box { margin: 12px var(--rand); padding: 16px; border-color: var(--rose-hell); }
.link-box-kopf { display: flex; align-items: center; gap: 8px; color: var(--rot-stark); }
.link-box-kopf b { color: var(--text); font-size: 15px; }
.link-box-feld { margin-top: 12px; }
.link-box-feld .input { font-size: 13.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.link-box-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.link-box-knoepfe .btn { flex: 1 1 140px; }
.einladung-status { margin: 0 var(--rand); padding: 14px 16px; display: grid; gap: 10px; }
.einladung-zeile { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.einladung-zeile .chip { flex: none; }
.einladung-neu { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.einladung-neu label { flex: 1 1 160px; }
.einladung-neu .btn { flex: 1 1 200px; }

/* ── Vorher / Nachher ────────────────────────────────────────────────── */
.vn-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; padding: 0 var(--rand); }
.vn-spalten > * { min-width: 0; }
.vn-spalte { margin: 0; padding: 14px; display: grid; gap: 10px; align-content: start; }
.vn-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vn-kopf b { font-size: 16px; }
.vn-leer { font-size: 14px; color: var(--text-2); }
.vn-bild { display: inline-flex; flex-direction: column; gap: 2px; width: 84px; }
.vn-bild small { font-size: 11px; color: var(--text-2); line-height: 1.25; }
.vn-bild .btn { font-size: 11px; padding: 0; min-height: 24px; justify-content: flex-start; }
.vn-vergleich { position: relative; margin: 0 var(--rand) 12px; aspect-ratio: 4 / 3; max-height: 70vh; border-radius: var(--r-l); overflow: hidden;
  background: var(--linie-2); box-shadow: var(--schatten); --pos: 50%; user-select: none; }
.vn-vergleich img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vn-nachher { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.vn-griff { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none; }
/* Regler über dem Foto: in Hell und Nacht gleich (weiß) */
.vn-griff::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #263238; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.vn-label { position: absolute; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 24, 26, .62); color: #fff; font-size: 12.5px; font-weight: 650; pointer-events: none; }
.vn-l { left: 10px; } .vn-r { right: 10px; }
.vn-vergleich input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ls-fotos { color: inherit; text-decoration: underline; text-decoration-color: var(--linie); }

/* ══ Lexware-Arbeitsbereich ═══════════════════════════════════════════
   Eigenes „Fenster“ innerhalb der App: auf dem PC fast bildschirmfüllend mit
   eigener Navigation, auf dem Handy ganzseitig mit Reiterleiste. */
body.lx-modus .hdr, body.lx-modus .dock, body.lx-modus .sidenav, body.lx-modus .nav-backdrop { display: none !important; }
body.lx-modus .main { margin-left: 0 !important; }
body.lx-modus .shell { max-width: none !important; padding: 0 !important; min-height: 100dvh; }
@keyframes lx-auf { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.lx-fenster { display: flex; flex-direction: column; min-height: 100dvh; background: var(--karte); animation: lx-auf .22s ease-out; }
.lx-kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: var(--glas-kopf); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--linie); }
.lx-zurueck { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 8px; border-radius: 12px; color: var(--text);
  text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid var(--linie); background: var(--karte); flex: none; }
.lx-zurueck:hover { background: var(--rose-hauch); }
.lx-marke { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.lx-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--rose-hell); color: var(--rot-stark); display: flex; align-items: center; justify-content: center; flex: none; }
.lx-marke b { display: block; font-size: 16px; letter-spacing: -.01em; }
.lx-marke small { display: block; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-kopf-rechts { display: flex; align-items: center; gap: 8px; flex: none; }
.lx-sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.lx-sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); flex: none; }
.lx-sync.alt i { background: var(--negativ); } .lx-sync.fehler i { background: var(--negativ); }
.lx-sync button { border: 0; background: none; color: var(--rot-stark); font: inherit; font-weight: 600; cursor: pointer; padding: 4px; }
.lx-extern { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 12px; background: var(--knopf); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.lx-demo { background: var(--neutral-hell); color: var(--neutral); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.lx-koerper { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.lx-nav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px; border-bottom: 1px solid var(--linie); scrollbar-width: none; background: var(--karte); }
.lx-nav::-webkit-scrollbar { display: none; }
.lx-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; color: var(--text-2); text-decoration: none; font-size: 14px;
  font-weight: 600; white-space: nowrap; flex: none; }
.lx-nav a:hover { background: var(--linie-2); color: var(--text); }
.lx-nav a.on { background: var(--rose-hell); color: var(--rot-stark); }
.lx-nav a em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--text-3); margin-left: auto; }
.lx-nav a.on em { color: var(--rot-stark); }
.lx-nav .lx-nav-titel { display: none; }
.lx-inhalt { flex: 1; min-width: 0; padding: 16px 14px 40px; }
.lx-inhalt h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.lx-titelzeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lx-titelzeile p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.lx-aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
.lx-aktionen .btn { min-height: 42px; padding: 8px 14px; font-size: 14px; }
@media (min-width: 1100px) {
  body.lx-modus { overflow: hidden; }
  .lx-fenster { position: fixed; inset: 14px; min-height: 0; border-radius: var(--r-xl); box-shadow: var(--schatten-l); border: 1px solid var(--rahmen); overflow: hidden; }
  .lx-kopf { padding: 12px 18px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .lx-koerper { flex-direction: row; overflow: hidden; }
  .lx-nav { flex-direction: column; width: 236px; flex: none; overflow-y: auto; border-bottom: 0; border-right: 1px solid var(--linie); padding: 14px 10px; gap: 2px; background: var(--flaeche-kopf); }
  .lx-nav a { width: 100%; }
  .lx-nav .lx-nav-titel { display: block; font-size: 11.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding: 14px 12px 6px; }
  .lx-inhalt { overflow-y: auto; padding: 22px 28px 40px; }
}
/* Kennzahlen */
.lx-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 18px; }
.lx-kpi { display: block; padding: 14px 16px; border-radius: var(--r); background: var(--karte); border: 1px solid var(--linie); text-decoration: none; color: var(--text); }
.lx-kpi:hover { border-color: var(--rose); }
.lx-kpi span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.lx-kpi b { display: block; font-size: 26px; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.lx-kpi small { display: block; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.lx-kpi.warn b { color: var(--rot-status); }
.lx-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.lx-raster > * { min-width: 0; }
.lx-karte { border: 1px solid var(--linie); border-radius: var(--r); padding: 14px 16px; background: var(--karte); }
.lx-karte h2 { margin: 0 0 10px; font-size: 16px; }
/* Tabellen (Desktop) und Listen (Handy) */
.lx-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.lx-filter .input { max-width: 320px; min-height: 42px; padding: 9px 13px; font-size: 15px; }
.lx-filter a.chip { text-decoration: none; }
.lx-filter a.chip.on { background: var(--text); color: var(--invers); }
.lx-tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.lx-tabelle th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 8px 10px; border-bottom: 1px solid var(--linie); background: var(--flaeche-kopf); position: sticky; top: 0; }
.lx-tabelle td { padding: 10px; border-bottom: 1px solid var(--linie-2); vertical-align: top; }
.lx-tabelle tr.klick { cursor: pointer; } .lx-tabelle tr.klick:hover td { background: var(--rose-hauch); }
.lx-tabelle .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lx-tabelle a { color: inherit; text-decoration: none; font-weight: 600; }
.lx-tabelle small { display: block; color: var(--text-2); font-size: 12.5px; }
.lx-tabelle tfoot td { font-weight: 700; border-bottom: 0; }
@media (max-width: 760px) {
  .lx-tabelle.antwort thead { display: none; }
  .lx-tabelle.antwort tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--linie-2); }
  .lx-tabelle.antwort td { border: 0; padding: 0; }
  .lx-tabelle.antwort td[data-k]::before { content: attr(data-k) ": "; color: var(--text-2); font-size: 12px; }
  .lx-tabelle.antwort .mobil-aus { display: none; }
}
.lx-summen { margin-left: auto; width: min(100%, 380px); font-size: 14.5px; }
.lx-summen div { display: flex; justify-content: space-between; padding: 5px 0; font-variant-numeric: tabular-nums; }
.lx-summen .gesamt { border-top: 2px solid var(--text); margin-top: 4px; padding-top: 8px; font-weight: 700; font-size: 17px; }
.lx-kopfdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.lx-kopfdaten div span { display: block; font-size: 12px; color: var(--text-2); font-weight: 600; }
.lx-kopfdaten div b { font-size: 15px; font-weight: 600; }
.lx-text { white-space: pre-line; font-size: 14.5px; color: var(--text); margin: 0 0 12px; }
.lx-hinweis { padding: 10px 14px; border-radius: 12px; background: var(--negativ-hell); color: var(--negativ); font-size: 13.5px; margin-bottom: 12px; }
.lx-hinweis.info { background: var(--neutral-hell); color: var(--neutral); }
.lx-leer { padding: 24px; text-align: center; color: var(--text-2); }
/* Editor */
.lx-editor { display: grid; gap: 16px; }
.lx-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.lx-felder label > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.lx-positionen { width: 100%; border-collapse: collapse; }
.lx-positionen th { font-size: 12px; color: var(--text-2); text-align: left; padding: 6px; font-weight: 600; }
.lx-positionen td { padding: 4px; vertical-align: top; }
.lx-positionen .input { min-height: 42px; padding: 9px 10px; font-size: 14.5px; }
.lx-positionen textarea.input { min-height: 42px; height: 42px; resize: vertical; }
.lx-positionen .betrag { text-align: right; font-variant-numeric: tabular-nums; padding-top: 14px; white-space: nowrap; font-weight: 600; }
.lx-positionen tr.text-zeile td { background: var(--rose-hauch); }
.lx-pos-weg { border: 0; background: none; color: var(--text-3); font-size: 20px; cursor: pointer; padding: 8px; }
.lx-pos-weg:hover { color: var(--rot-status); }
.lx-pos-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 900px) {
  .lx-positionen thead { display: none; }
  .lx-positionen tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; margin-bottom: 10px; border: 1px solid var(--linie); border-radius: 14px; }
  .lx-positionen td { padding: 0; }
  .lx-positionen td.breit { grid-column: 1 / -1; }
  .lx-positionen td[data-k]::before { content: attr(data-k); display: block; font-size: 11.5px; color: var(--text-2); font-weight: 600; margin-bottom: 3px; }
}
.lx-suche { position: relative; }
.lx-treffer { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--karte); border: 1px solid var(--linie); border-radius: 14px;
  box-shadow: var(--schatten-l); max-height: 320px; overflow-y: auto; }
.lx-treffer button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--text); font: inherit; }
.lx-treffer button:hover, .lx-treffer button:focus { background: var(--rose-hauch); }
.lx-treffer small { display: block; color: var(--text-2); font-size: 12px; }
.lx-gewaehlt { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--rose-hauch); border: 1px solid var(--rose-hell); }
.lx-gewaehlt b { flex: 1; }
.lx-fuss { position: sticky; bottom: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; padding: 12px 0 4px;
  background: linear-gradient(to top, var(--karte) 70%, transparent); }
.lx-fuss .check { margin-right: auto; padding: 0; min-height: 0; font-size: 13.5px; }
/* Kachel im Dashboard */
.lx-kachel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: var(--text); margin: 0 var(--rand) 12px; }
.lx-kachel:hover { border-color: var(--rose); }
.lx-kachel .lx-logo { width: 44px; height: 44px; border-radius: 14px; }
.lx-kachel b { display: block; font-size: 16px; }
.lx-kachel small { display: block; font-size: 13px; color: var(--text-2); }
.lx-kachel .lx-kachel-zahl { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.lx-kachel .lx-kachel-zahl b { font-size: 17px; }
.lx-marke > span:last-child { min-width: 0; overflow: hidden; }
@media (max-width: 640px) {
  .lx-kopf { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .lx-zurueck { padding: 0 10px; }
  .lx-zurueck span, .lx-marke small, .lx-kopf .lx-logo { display: none; }
  .lx-kopf .hdr-icon { width: 38px; height: 38px; }
  .lx-extern { padding: 0 10px; }
  .lx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lx-kpi { padding: 12px; }
  .lx-kpi b { font-size: 22px; }
  .lx-kpi small { font-size: 12px; }
  .lx-inhalt h1 { font-size: 22px; }
  .lx-aktionen .btn { min-height: 40px; padding: 8px 12px; font-size: 13.5px; }
}
.ls-main .lx-kachel { margin-top: 12px; margin-bottom: 0; }
@media (min-width: 1100px) { .ls-grid .lx-kachel { margin-right: 0; } }

/* ══ Farbsystem: eine Farbe je Bereich (Menü, Kennzahlen, Kacheln) ═════ */
/* Einheitlich neutral; Grün = positiv, Rot = negativ. Die alten Bereichsnamen (f-blau, f-orange …) zeigen
   bewusst ebenfalls neutral — eine „.warn“-Kennzahl wird rot, sobald es etwas zu beheben gibt. */
.f-neutral, .f-rose, .f-blau, .f-orange, .f-violett, .f-tuerkis, .f-amber, .f-grau, .f-rot { --f: var(--neutral); --fh: var(--neutral-hell); }
.f-positiv, .f-gruen { --f: var(--positiv); --fh: var(--positiv-hell); }
.f-negativ, .kennzahl.warn, .lx-kpi.warn, .dash-card.warn { --f: var(--negativ); --fh: var(--negativ-hell); }
/* Menü: Symbol in farbigem Feld */
.nav-ico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none;
  background: var(--fh, var(--linie-2)); color: var(--f, var(--text-2)); }
.nav-ico .ico { width: 17px !important; height: 17px !important; color: inherit !important; }
.sidenav-item { gap: 11px; }
.sidenav-item.on .nav-ico { background: var(--f); color: #fff; }
.sidenav-item.on { background: var(--fh, var(--rose-hell)); color: var(--text); }
/* Kennzahlen mit Farbe: Punkt + Bezeichnung in der Bereichsfarbe, zarter Farbverlauf */
.kennzahl[class*="f-"], .lx-kpi[class*="f-"], .dash-card[class*="f-"] {
  background: linear-gradient(160deg, var(--fh) 0%, var(--karte) 62%); border-color: color-mix(in srgb, var(--f) 16%, transparent); }
.kennzahl[class*="f-"] span, .lx-kpi[class*="f-"] span, .dash-card[class*="f-"] .l { color: var(--f); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kennzahl[class*="f-"] span::before, .lx-kpi[class*="f-"] span::before, .dash-card[class*="f-"] .l::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--f); flex: none; }
.kennzahl.akzent b, .kennzahl.warn b, .lx-kpi.warn b, .dash-card.warn .n { color: var(--negativ); }
/* Lagerbereiche und Kacheln */
.area-tile-icon[class*="f-"], .area-head-icon[class*="f-"] { background: var(--fh); color: var(--f); }
.lx-logo[class*="f-"], .lx-kachel .lx-logo { background: var(--neutral-hell); color: var(--neutral); }
.pf-logo { background: var(--neutral-hell); color: var(--neutral); }

/* ── Lexware: alles bündig untereinander ─────────────────────────────── */
.lx-titelzeile { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; }
.lx-titelzeile > div:first-child { width: 100%; }
.lx-aktionen { justify-content: flex-start; }
.lx-raster { grid-template-columns: minmax(0, 1fr); }
.lx-inhalt > .lx-karte, .lx-inhalt > section { margin-bottom: 14px; }
/* Angaben als ausgerichtete Liste: Bezeichnungen und Werte jeweils in einer Flucht */
.lx-kopfdaten { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 9px 28px; align-items: baseline; }
.lx-kopfdaten > div { display: contents; }
.lx-kopfdaten > div > span { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.lx-kopfdaten > div > b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.lx-kopfdaten > div > b small { font-weight: 500; color: var(--text-2); }
/* Navigation im Lexware-Fenster: farbige Punkte */
.lx-nav a[class*="f-"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--f); flex: none; }
.lx-nav a.on[class*="f-"] { background: var(--fh); color: var(--text); }
.lx-nav a.on[class*="f-"] em { color: var(--f); }
/* Belegart-Wahl im Editor */
.lx-artwahl { display: inline-grid; grid-auto-flow: column; grid-template-columns: none; width: auto; }
.lx-artwahl a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border-radius: 12px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.lx-artwahl a.on { background: var(--karte); color: var(--text); box-shadow: var(--schatten-s); }
.lx-kachel .lx-kachel-zahl small { display: block; }
@media (max-width: 640px) {
  .lx-kopfdaten { grid-template-columns: minmax(100px, max-content) minmax(0, 1fr); gap: 8px 16px; }
  .lx-artwahl { display: grid; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .lx-artwahl a { padding: 8px 6px; font-size: 13px; }
}
@media (max-width: 640px) {
  .lx-fuss { position: static; background: none; justify-content: stretch; }
  .lx-fuss .btn { flex: 1 1 100%; }
  .lx-fuss .check { flex: 1 1 100%; }
  .lx-artwahl a { white-space: normal; text-align: center; line-height: 1.2; }
}

/* ══ Maschinen & Betriebsmittel (QR) ══════════════════════════════════
   Bedienelemente in der Markenfarbe, Kennzeichnungen neutral. Mitarbeiter: großer Scan-Knopf, wenig Text.
   Geschäftsführung: Kennzahlen, Tabellen und Karten aus den Lexware-
   Bausteinen (lx-kpi, lx-karte, lx-tabelle) — keine Sondergestaltung. */
.gm-scanfeld { padding: 12px var(--rand) 4px; display: grid; gap: 10px; }
.gm-scanknopf { display: flex; align-items: center; gap: 16px; padding: 22px 20px; border-radius: var(--r-xl); text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #BE6E6C 0%, var(--knopf) 55%, #8E4644 100%); box-shadow: 0 2px 6px rgba(173, 92, 92, .25), 0 14px 34px rgba(173, 92, 92, .28); }
.gm-scanknopf .ico { flex: none; width: 52px !important; height: 52px !important; padding: 9px; border-radius: 16px; background: rgba(255, 255, 255, .18); }
.gm-scanknopf b { display: block; font-size: 21px; letter-spacing: -.02em; }
.gm-scanknopf small { display: block; font-size: 13.5px; opacity: .9; margin-top: 2px; }
.gm-scanknopf:active { transform: scale(.99); }
.gm-scanknopf.klein { padding: 16px 18px; border-radius: var(--r-l); margin: 0 var(--rand) 10px; }
.gm-scanknopf.klein .ico { width: 44px !important; height: 44px !important; padding: 8px; border-radius: 14px; }
.gm-scanknopf.klein b { font-size: 17px; }
.gm-schnell { display: flex; gap: 8px; flex-wrap: wrap; }
.gm-schnell a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 14px; background: var(--karte);
  border: 1px solid var(--linie); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: var(--schatten-s); }
.gm-schnell a b { background: var(--neutral-hell); color: var(--neutral); border-radius: 999px; padding: 1px 8px; font-size: 12.5px; }
.gm-offline { margin: 8px var(--rand) 0; padding: 12px 14px; border-radius: 14px; background: var(--neutral-hell); color: var(--neutral); font-size: 13.5px; line-height: 1.5; }
.gm-offline ul { margin: 6px 0 4px; padding-left: 18px; }
.gm-offline li.ok { color: var(--gruen); } .gm-offline li.fehler { color: var(--rot-status); font-weight: 600; }
.gm-meintag { padding-top: 12px; }

/* Farbstufen für die Dauer (konfigurierbar: grün/gelb/orange/rot) */
.gm-stufe { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; margin-right: 7px; vertical-align: 0; background: var(--linie); }
.gm-stufe.gruen { background: var(--gruen); } .gm-stufe.amber { background: #D9A520; } .gm-stufe.orange { background: #E07B24; } .gm-stufe.rot { background: var(--rot-status); }
.row .gm-stufe { width: 12px; height: 12px; margin: 0; }
.gm-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12.5px; color: var(--text-2); margin: -2px 0 10px; }
.gm-legende span { display: inline-flex; align-items: center; } .gm-legende em { font-style: normal; color: var(--text-3); }
.gm-haken { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.gm-haken.ok { background: var(--gruen-hell); color: var(--gruen); } .gm-haken.fehlt { background: var(--rot-status-hell); color: var(--rot-status); }

/* Gerätekarte */
.gm-kopf { margin-top: 12px; }
.gm-kopf-oben { display: flex; gap: 14px; align-items: center; }
.gm-foto { width: 76px; height: 76px; border-radius: 18px; background: var(--neutral-hell); color: var(--neutral); flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gm-foto img { width: 100%; height: 100%; object-fit: cover; }
.gm-kopf h1 { margin: 2px 0 0; font-size: 23px; letter-spacing: -.02em; line-height: 1.2; }
.gm-kopf p { margin: 3px 0 0; color: var(--text-2); font-size: 14px; }
.gm-nr { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--neutral); font-variant-numeric: tabular-nums; }
.gm-status { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; background: var(--linie-2); color: var(--text); }
.gm-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.gm-status-lager { background: var(--gruen-hell); color: var(--gruen); }
.gm-status-fahrzeug, .gm-status-baustelle, .gm-status-mitarbeiter { background: var(--neutral-hell); color: var(--neutral); }
.gm-status-rueckgabe { background: var(--neutral-hell); color: var(--neutral); }
.gm-status-reparatur { background: var(--negativ-hell); color: var(--negativ); }
.gm-status-vermisst, .gm-status.gesperrt { background: var(--rot-status-hell); color: var(--rot-status); }
.gm-status-ausgemustert { background: var(--grau-hell); color: var(--grau); }
.gm-fakten { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 9px 20px; margin-top: 10px; align-items: baseline; }
.gm-fakten > div { display: contents; }
.gm-fakten span { font-size: 13.5px; color: var(--text-2); }
.gm-fakten b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; display: flex; align-items: center; flex-wrap: wrap; }
.gm-fakten b a { color: inherit; }
.hinweis-box.gm-warn { margin: 0 var(--rand) 12px; background: var(--rot-status-hell); color: var(--rot-status); }
.gm-kopf ~ .hinweis-box { margin: 0 var(--rand) 12px; }
.gm-aktion h2 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.015em; }
.gm-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gm-wahl label { position: relative; cursor: pointer; }
.gm-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.gm-wahl span { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; min-height: 54px; padding: 10px 14px; border-radius: 14px;
  border: 1.5px solid var(--linie); background: var(--karte); font-weight: 650; font-size: 15px; line-height: 1.2; height: 100%; }
.gm-wahl span .dot { width: 10px; height: 10px; }
.gm-wahl span small { flex-basis: 100%; font-size: 11.5px; font-weight: 600; color: var(--rot-stark); margin-top: 3px; }
.gm-wahl input:checked + span { border-color: var(--rot-stark); background: var(--rose-hell); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rot-stark) 18%, transparent); }
.gm-wahl input:focus-visible + span { outline: 2px solid var(--rot-stark); outline-offset: 2px; }
.gm-wahl-liste { flex-direction: column; } .gm-wahl-liste span { min-height: 46px; }
.gm-auftrag { display: grid; gap: 8px; margin-top: 4px; }
.gm-auftrag .form-label { margin-top: 14px; }
.gm-gross { width: 100%; min-height: 56px; margin-top: 16px; font-size: 17px; border-radius: 16px; }
.gm-mehr { margin-top: 12px; } .gm-mehr summary { font-size: 14px; font-weight: 600; color: var(--rot-stark); }
.gm-aufklapp summary { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; min-height: 28px; }
.gm-aufklapp[open] summary { margin-bottom: 12px; }
.gm-aufklapp .ico { color: var(--neutral); }
.gm-anfrage-karte { border-color: color-mix(in srgb, var(--neutral) 30%, transparent); background: linear-gradient(160deg, var(--neutral-hell) 0%, var(--karte) 70%); }
.gm-anfrage-kopf { display: flex; align-items: center; gap: 10px; font-size: 16px; } .gm-anfrage-kopf .ico { color: var(--neutral); }
.row.gm-anfrage .ico { color: var(--neutral); }
.gm-zeile-form { display: flex; gap: 8px; margin-top: 8px; } .gm-zeile-form .input { flex: 1; min-width: 0; } .gm-zeile-form .btn { flex: none; }
.gm-uebergabe-weg { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 12px 0 4px; padding: 14px; border-radius: 16px; background: var(--linie-2); }
.gm-uebergabe-weg span { display: block; font-size: 12px; color: var(--text-2); } .gm-uebergabe-weg b { font-size: 16px; }
.gm-uebergabe-weg .pfeil { font-size: 22px; color: var(--neutral); font-weight: 700; }

/* Scanner */
.gm-scanner { padding: 12px var(--rand) 0; }
.gm-kamera { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #101214; aspect-ratio: 3 / 4; max-height: 62vh; width: 100%; margin: 0 auto; box-shadow: var(--schatten-l); }
.gm-kamera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gm-rahmen { position: absolute; inset: 0; margin: auto; width: 62%; aspect-ratio: 1; height: auto; top: -8%; }
.gm-rahmen i { position: absolute; width: 26%; height: 26%; border: 4px solid #fff; border-radius: 6px; opacity: .92; }
.gm-rahmen i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.gm-rahmen i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 18px; }
.gm-rahmen i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 18px; }
.gm-rahmen i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.gm-kamera-text { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 11px 14px; border-radius: 14px; background: rgba(16, 18, 20, .72); color: #fff;
  font-weight: 600; font-size: 14.5px; text-align: center; backdrop-filter: blur(6px); }
.gm-kamera-text.ok { background: rgba(63, 138, 104, .9); } .gm-kamera-text.fehler { background: rgba(184, 80, 74, .92); }
.gm-licht { margin-top: 10px; width: 100%; }
.gm-manuell { margin-top: 12px; }
.gm-offline-blatt { margin-top: 12px; border-color: color-mix(in srgb, var(--neutral) 30%, transparent); }
.gm-offline-kopf { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.gm-offline-kopf b { font-size: 17px; } .gm-offline-kopf span { font-size: 12.5px; color: var(--text-2); }

/* Geschäftsführung */
.gm-seite { padding: 16px var(--rand) 40px; }
.gm-h1 { margin: 0; font-size: 26px; letter-spacing: -.025em; line-height: 1.15; }
.gm-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px; padding-bottom: 2px; }
.gm-nav::-webkit-scrollbar { display: none; }
.gm-nav a { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 8px 14px; border-radius: 12px; background: var(--karte);
  border: 1px solid var(--linie); color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.gm-nav a.on { background: var(--rose-hell); border-color: color-mix(in srgb, var(--rot-stark) 30%, transparent); color: var(--rot-stark); }
.gm-nav a.scan { margin-left: auto; background: var(--knopf); border-color: var(--knopf); color: #fff; }
.gm-raster { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1180px) { .gm-raster { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } }
.gm-seitenleiste { display: grid; gap: 14px; align-content: start; }
.gm-tabelle td { vertical-align: middle; }
/* Handy: Geräte als kompakte Karten (Symbol, Name, Ort · Verantwortlicher, Dauer, Status) */
.gm-karten { display: none; }
.gm-karte-zeile { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linie-2); color: var(--text); text-decoration: none; }
.gm-karte-zeile:last-child { border-bottom: 0; }
.gm-karte-zeile .gm-symbol { width: 44px; height: 44px; border-radius: 13px; background: var(--neutral-hell); color: var(--neutral); display: flex; align-items: center; justify-content: center; flex: none; }
.gm-karte-zeile .gm-symbol.lager { background: var(--gruen-hell); color: var(--gruen); }
.gm-karte-zeile .gm-symbol.rot { background: var(--rot-status-hell); color: var(--rot-status); }
.gm-karte-zeile .gm-text { flex: 1; min-width: 0; }
.gm-karte-zeile b { display: block; font-size: 15.5px; letter-spacing: -.01em; }
.gm-karte-zeile small { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.gm-karte-zeile .chip { flex: none; }
@media (max-width: 760px) {
  .gm-tabelle { display: none; }
  .gm-karten { display: block; }
}
.gm-tabelle td .chip { margin-left: 4px; }
.gm-vorb { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linie-2); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.gm-vorb:last-child { border-bottom: 0; }
.gm-vorb small { display: block; font-weight: 500; color: var(--text-2); font-size: 12.5px; margin-top: 1px; }
.gm-vorb b { font-variant-numeric: tabular-nums; }
.gm-fz-raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gm-fz { border-left: 4px solid var(--fz, var(--linie)); }
.gm-fz.stufe-rot { box-shadow: 0 0 0 1px color-mix(in srgb, var(--rot-status) 30%, transparent); }
.gm-fz-kopf { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 17px; }
.gm-fz-kopf .chip { margin-left: auto; }
.gm-fz-zeile { display: flex; align-items: center; gap: 4px; padding: 9px 0; border-top: 1px solid var(--linie-2); color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.gm-fz-zeile span { flex: 1; min-width: 0; } .gm-fz-zeile small { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.gm-fz-zeile em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 13px; }
.gm-akte-raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gm-akte-raster > * { min-width: 0; }
.gm-qr { background: #fff; border-radius: 14px; padding: 8px; width: max-content; max-width: 100%; }
.gm-qr svg { display: block; width: 180px; height: 180px; }
.gm-akte-foto { margin-top: 12px; width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; }
.gm-verwaltung { display: flex; flex-direction: column; gap: 4px; }
.gm-verwaltung > details, .gm-verwaltung > form { border-bottom: 1px solid var(--linie-2); padding: 8px 0; }
.gm-verwaltung summary { font-weight: 650; font-size: 14.5px; min-height: 30px; display: flex; align-items: center; }
.gm-verwaltung details form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: flex-end; }
.gm-verwaltung details form .input { flex: 1 1 220px; min-height: 44px; }
.gm-formular label { flex: 1 1 220px; } .gm-formular label > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.gm-formular .hint-line { flex: 1 1 100%; }
.gm-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--linie-2); }
.gm-plan:last-child { border-bottom: 0; }
.gm-plan > div:first-child { flex: 1; min-width: 180px; } .gm-plan small { display: block; color: var(--text-2); font-size: 12.5px; }
.gm-plan-links { flex: 1 1 100%; display: flex; gap: 14px; font-size: 13.5px; font-weight: 600; }
.gm-pruefung { flex: 1 1 100%; display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.lx-karte h2 .gm-h2-link, .gm-h2-link { float: right; font-size: 13.5px; font-weight: 600; }
.lx-karte h2 small.hint-line { display: inline; font-weight: 500; margin-left: 6px; }
.gm-verlauf-zeile { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linie-2); font-size: 14px; }
.gm-verlauf-zeile .zeit { flex: none; width: 88px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.gm-verlauf-zeile small { display: block; color: var(--text-2); font-size: 12.5px; }
.gm-schaden { padding: 12px 0; border-bottom: 1px solid var(--linie-2); }
.gm-schaden-kopf small { display: block; color: var(--text-2); font-size: 12.5px; }
.gm-schaden-foto { max-width: 220px; max-height: 160px; border-radius: 12px; object-fit: cover; margin-bottom: 10px; }
.gm-entscheidung { display: flex; flex-wrap: wrap; gap: 8px; } .gm-entscheidung .input { flex: 1 1 220px; min-height: 44px; }
.gm-auswahl { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gm-auswahl label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--linie); cursor: pointer; font-size: 14px; }
.gm-auswahl input { width: 20px; height: 20px; accent-color: var(--knopf); flex: none; margin: 1px 0 0; }
.gm-auswahl small { display: block; color: var(--text-2); font-size: 12px; }
.gm-alle { display: inline-flex; float: right; min-height: 0; padding: 0; font-size: 13.5px; font-weight: 600; gap: 6px; }
.gm-alle input { width: 18px; height: 18px; }
.gm-form .gm-feld { margin-bottom: 12px; } .gm-form .form-label { margin: 0 0 6px; display: block; }
.gm-kachel .lx-logo { background: var(--neutral-hell); color: var(--neutral); }
.gm-kachel { flex-wrap: wrap; }
.gm-kachel-chips { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.gm-bedarf-karte { padding: 8px 16px; }
.gm-bedarf-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie-2); }
.gm-bedarf-zeile:last-of-type { border-bottom: 0; }
.gm-bedarf-text { flex: 1; min-width: 0; } .gm-bedarf-text b { display: block; font-size: 15px; } .gm-bedarf-text small { display: block; color: var(--text-2); font-size: 12.5px; }
.gm-material p { font-size: 13.5px; }
@media (max-width: 640px) {
  .gm-h1 { font-size: 22px; }
  .gm-fakten { grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); gap: 8px 14px; }
  .gm-wahl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-wahl-liste { grid-template-columns: minmax(0, 1fr); }
  .gm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .gm-kpis .lx-kpi { padding: 10px 11px; }
  .gm-kpis .lx-kpi span { font-size: 11.5px; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
  .gm-kpis .lx-kpi b { font-size: 22px; }
  .gm-kpis .lx-kpi small { display: none; }
  .gm-kachel-chips { margin-left: 58px; justify-content: flex-start; }
  .gm-nav a.scan { margin-left: 0; }
}

/* ══ Profilbilder ══════════════════════════════════════════════════════
   Foto oder Initialen im Kreis — überall gleich ({% avatar user 44 %}). */
.av { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--av, 40px); height: var(--av, 40px);
  border-radius: 50%; background: var(--fh, var(--linie-2)); color: var(--f, var(--text-2)); font-weight: 700; font-size: calc(var(--av, 40px) * .36);
  letter-spacing: .02em; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 1px var(--rahmen); }
.av b { font-weight: 700; }
.av-punkt { position: absolute; right: -1px; bottom: -1px; width: max(10px, calc(var(--av, 40px) * .28)); height: max(10px, calc(var(--av, 40px) * .28));
  border-radius: 50%; background: var(--gruen); border: 2px solid var(--karte); }
.av-punkt.pause { background: var(--neutral); }
.av-punkt.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gruen); opacity: 0; animation: av-puls 2.4s ease-out infinite; }
@keyframes av-puls { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .av-punkt.live::after { animation: none; } }
.pb-karte { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.pb-text { min-width: 0; }
.pb-text > b { display: block; font-size: 16px; }
.pb-text > small { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.pb-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pb-knoepfe form { margin: 0; }
.pb-waehlen { min-height: 40px; padding: 8px 14px; font-size: 14px; cursor: pointer; }

/* ══ Zeiterfassung: Stempel-Regler ═════════════════════════════════════
   Ersetzt den Knopf „Einstempeln“: groß, unten, mit dem Daumen bedienbar.
   Aus = grau (nicht eingestempelt), an = grün (Arbeitszeit läuft), Pause = orange. */
.zr { position: sticky; z-index: 45; bottom: calc(var(--dock-h) + 22px + env(safe-area-inset-bottom, 0px)); margin: 18px var(--rand) 0;
  padding: 14px 14px 12px; border-radius: var(--r-xl); background: var(--glas); backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px);
  border: 1px solid var(--rahmen); box-shadow: var(--schatten-l); }
@media (min-width: 1100px) { .zr { bottom: 18px; max-width: 560px; margin-left: auto; margin-right: auto; } }
.zr-form { margin: 0; display: grid; gap: 10px; }
.zr-projekt { min-height: 44px; font-size: 15px; }
.zr-schalter { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.zr-schalter:focus-visible .zr-spur { outline: 3px solid var(--rose); outline-offset: 3px; }
.zr-spur { position: relative; display: flex; align-items: center; height: 70px; border-radius: 999px; overflow: hidden;
  background: var(--linie-2); box-shadow: inset 0 1px 3px rgba(38, 50, 56, .10); transition: background .3s ease; }
.zr-text { flex: 1; padding: 0 22px 0 84px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; color: var(--text-2); text-align: left; transition: opacity .2s; white-space: nowrap; }
.zr-knopf { position: absolute; top: 7px; left: 7px; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--text-2);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(38, 50, 56, .16), 0 6px 16px rgba(38, 50, 56, .14);
  transition: left .3s cubic-bezier(.3, .8, .3, 1), color .2s; touch-action: none; cursor: grab; }
.zr-zieht .zr-knopf { transition: none; cursor: grabbing; }
.zr-schalter[aria-checked="true"] .zr-spur { background: linear-gradient(135deg, #4FA27D 0%, var(--gruen) 100%); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .12); }
.zr-pause .zr-schalter[aria-checked="true"] .zr-spur { background: linear-gradient(135deg, #8C979D 0%, var(--neutral) 100%); }
.zr-schalter[aria-checked="true"] .zr-knopf { left: calc(100% - 63px); color: var(--gruen); }
.zr-pause .zr-schalter[aria-checked="true"] .zr-knopf { color: var(--neutral); }
.zr-schalter[aria-checked="true"] .zr-text { padding: 0 84px 0 26px; color: #fff; }
.zr-sendet .zr-text { opacity: 0; }
.zr-unten { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 0 4px; min-height: 34px; }
.zr-unten form { margin: 0; }
.zr-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.zr-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.zr-ein .zr-status { color: var(--gruen); } .zr-ein .zr-status i { background: var(--gruen); }
.zr-pause .zr-status { color: var(--neutral); } .zr-pause .zr-status i { background: var(--neutral); }
.zr-pausenknopf { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--linie);
  background: var(--karte); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.zr-pausenknopf.an { background: var(--neutral); border-color: var(--neutral); color: #fff; }
.zr-platz { height: 0; }

/* ══ Zeiterfassung: Verwaltung (Live, Wer ist wo?, Anträge, Neuigkeiten) ═ */
.zv-kopf { padding: 12px var(--rand) 6px; }
.zv-kopf h1 { margin: 0; font-size: 30px; font-weight: 750; letter-spacing: -.03em; }
.zv-kopf p { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; }
.zv-karte { padding: 16px 18px 8px; }
.zv-titel { display: flex; align-items: center; gap: 10px; min-height: 32px; margin-bottom: 6px; }
.zv-titel h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.zv-zahl { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px;
  background: var(--linie-2); color: var(--text-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.zv-zahl.gruen { background: var(--positiv); color: #fff; } .zv-zahl.blau { background: var(--neutral); color: #fff; } .zv-zahl.rot { background: var(--negativ); color: #fff; }
.zv-link { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--rot-stark); font-size: 14px; font-weight: 600; text-decoration: none; }
.zv-person, .zv-eintrag, .zv-neu { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--linie-2); color: inherit; text-decoration: none; }
.zv-titel + .zv-person, .zv-titel + .zv-eintrag, .zv-titel + .zv-neu { border-top: 0; }
.zv-name { flex: 1; min-width: 0; }
.zv-name b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.zv-name b i { font-style: normal; color: var(--text-3); font-weight: 400; padding: 0 3px; }
.zv-name small { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.zv-dauer { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--gruen-hell); color: var(--gruen);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.zv-dauer.pause { background: var(--neutral-hell); color: var(--neutral); }
.zv-leer { margin: 2px 0 10px; font-size: 14px; color: var(--text-2); }
.zv-avatare { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; padding-bottom: 8px; }
.zv-mini { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 2px; border-radius: 14px; text-align: center; color: inherit; text-decoration: none; min-width: 0; }
.zv-mini:hover { background: var(--linie-2); }
.zv-mini b { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zv-mini small { font-size: 11.5px; color: var(--text-3); margin-top: -3px; }
.zv-mini.abwesend .av { opacity: .5; }
.zv-ort { border-top: 1px solid var(--linie-2); }
.zv-titel + .zv-ort { border-top: 0; }
.zv-ort summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; list-style: none; cursor: pointer; }
.zv-ort summary::-webkit-details-marker { display: none; }
.zv-ort summary::after { content: ""; width: 8px; height: 8px; margin-left: 6px; border-right: 1.75px solid var(--text-3); border-bottom: 1.75px solid var(--text-3); transform: rotate(45deg); transition: transform .2s; }
.zv-ort[open] summary::after { transform: rotate(-135deg); }
.zv-ort-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.zv-ort-name .ico { color: var(--text-3); flex: none; }
.zv-ort-leute { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 12px; }
.zv-chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--linie-2); font-size: 13.5px; font-weight: 600; }
.zv-symbol { width: 38px; height: 38px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--linie-2); color: var(--text-2); }
.zv-ein .zv-symbol { background: var(--gruen-hell); color: var(--gruen); }
.zv-aus .zv-symbol { background: var(--rose-hell); color: var(--rot-stark); }
.zv-pause_start .zv-symbol, .zv-pause_ende .zv-symbol { background: var(--neutral-hell); color: var(--neutral); }
.zv-antrag .zv-symbol, .zv-entscheidung .zv-symbol { background: var(--neutral-hell); color: var(--neutral); }
.zv .karte { margin-bottom: 12px; }
/* Team-Zeiten: alle Mitarbeiter mit Status */
.zt-person { display: flex; align-items: center; gap: 12px; margin: 0 var(--rand) 8px; padding: 12px 14px; border-radius: var(--r); background: var(--karte);
  border: 1px solid var(--rahmen); box-shadow: var(--schatten-s); color: inherit; text-decoration: none; }
.zt-person .zv-name small { font-variant-numeric: tabular-nums; }
.table td .av { vertical-align: middle; margin-right: 10px; }
.zt-name { display: flex; align-items: center; }
/* Verwaltung: Tabelle „Heute“, Hinweise */
.zv-tabelle { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 8px; }
.zv-tabelle th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 6px 4px; border-bottom: 1px solid var(--linie); }
.zv-tabelle td { padding: 8px 4px; border-bottom: 1px solid var(--linie-2); font-variant-numeric: tabular-nums; }
.zv-tabelle tr:last-child td { border-bottom: 0; }
.zv-tabelle td a { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 600; }
.zv-tabelle .num { text-align: right; }
.zv-laeuft { color: var(--gruen); font-weight: 600; }
.zv-warn { border-color: color-mix(in srgb, var(--rot-status) 30%, transparent); }
.zt-terminal-hinweis { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.zt-terminal-hinweis .ico { color: var(--gruen); flex: none; }
.zt-terminal-hinweis b { display: block; font-size: 15.5px; }
.zt-terminal-hinweis small { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
/* Stempelterminal: Einrichtung (Verwaltung) */
.tm-schritte { margin: 8px 0 0; padding-left: 20px; font-size: 14.5px; line-height: 1.55; }
.tm-schritte li { margin-bottom: 6px; }
.tm-pw { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.tm-pw .input { min-height: 44px; }
.tm-pin-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linie-2); }
.tm-pin-zeile details { flex: none; }
.tm-pin-zeile details[open] { flex-basis: 100%; }
.tm-pin-zeile summary { list-style: none; min-height: 38px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.tm-pin-zeile summary::-webkit-details-marker { display: none; }
.tm-pin-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tm-pin-form .input { width: 140px; min-height: 44px; letter-spacing: .2em; }
.pf-konto .pf-bis { display: block; margin-top: 4px; font-size: 12px; color: var(--text-3); }
.pf-fuss .pf-alle { font-size: 12.5px; color: var(--text-3); min-height: 32px; }

/* ══ Dashboard-Feinschliff ═════════════════════════════════════════════
   Kartenüberschrift (Komponente magazin/_ueberschrift.html): feine Linie in Firmenfarbe,
   nur so breit wie der Text — Firmenpostfach, Lexware, Maschinen, Benötigt Aufmerksamkeit. */
.titel-strich { display: inline-block; position: relative; margin: 0; padding-bottom: 6px; font-size: 17px; font-weight: 700;
  letter-spacing: -.015em; line-height: 1.25; color: var(--text); }
.titel-strich::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: #C87575; }
.pf-karte-kopf .titel-strich + p, .lx-kachel .titel-strich + small { margin-top: 6px; }
.lx-kachel > span:nth-child(2) { min-width: 0; }
.lx-kachel .titel-strich { display: inline-block; }
.hinweise-kopf { align-items: center; }
/* Ganze Hinweiskarte anklickbar */
.hinweis-link { color: inherit; text-decoration: none; align-items: center; margin: 0 -10px; padding: 16px 10px; border-radius: 16px;
  border-bottom: 0; background: linear-gradient(var(--linie), var(--linie)) no-repeat 10px 100% / calc(100% - 20px) 1px;
  transition: background-color .15s ease; -webkit-tap-highlight-color: transparent; }
.hinweis-link:last-child { background-image: none; }
.hinweis-link:hover { background-color: var(--rose-hauch); }
.hinweis-link:active { background-color: var(--rose-hell); }
.hinweis-link:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.hinweis-link .hinweis-titel { color: var(--text); }
.hinweis-aktion { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 4px 6px 12px; border-radius: 999px;
  color: var(--rot-stark); font-size: 14px; font-weight: 600; white-space: nowrap; }
.hinweis-link:hover .hinweis-aktion { background: var(--karte); }
@media (max-width: 640px) { .hinweis-aktion span { display: none; } .hinweis-aktion { padding: 6px; } }
/* Auftragskarten im Leitstand: ganze Karte öffnet den Auftrag */
.ls-auftrag[data-karte-href] { cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.ls-auftrag[data-karte-href]:hover { box-shadow: var(--schatten-l); }
.ls-auftrag[data-karte-href]:active { transform: scale(.995); }
.ls-auftrag .chips, .ls-auftrag details { cursor: auto; }
/* Einheitliche Abstände zwischen den Karten oben im Leitstand */
.ls-main > .pf-karte, .ls-main > .lx-kachel, .ls-main > .hinweise { margin-top: 14px; margin-bottom: 0; }
.ls-main > .section-label:first-of-type { padding-top: 28px; }
.lx-kachel, .pf-karte { transition: border-color .15s ease, box-shadow .15s ease; }
a.lx-kachel:hover { box-shadow: var(--schatten-l); }
@media (max-width: 640px) {
  .lx-kachel { flex-wrap: wrap; }
  .lx-kachel .lx-kachel-zahl { flex-basis: 100%; margin-left: 58px; text-align: left; }
}

/* ── Apple-Navigation: schwebende Kopfleiste, Lichtkante, Gleiter ───── */
/* Beim Scrollen zieht sich die Kopfzeile zu einer schwebenden Glasleiste zusammen. Die Fläche liegt auf
   einer eigenen Ebene (::before) — die Kopfzeile selbst behält ihre Größe, der Inhalt springt nicht. */
.hdr {
  isolation: isolate; --glanz-x: 50%;
  --leiste-oben: calc(env(safe-area-inset-top, 0px) + 4px); --leiste-unten: 4px; --leiste-seite: calc(var(--rand) - 10px);
  --glanz-l: calc(var(--leiste-seite) + 18px);
}
@media (min-width: 1100px) { .hdr { --leiste-oben: 10px; } }
.hdr::before {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: 0; pointer-events: none;
  border: 1px solid transparent; background-color: transparent;
  transition: inset .4s cubic-bezier(.2, .8, .2, 1), border-radius .4s cubic-bezier(.2, .8, .2, 1),
              background-color .25s, border-color .25s, box-shadow .25s;
}
body.gescrollt .hdr::before {
  inset: var(--leiste-oben) var(--leiste-seite) var(--leiste-unten); border-radius: var(--glas-radius);
  background: linear-gradient(var(--glas-lesbar), var(--glas-lesbar)), var(--glas-flaeche); border-color: var(--glas-kante);
  box-shadow: inset 0 1px 0 var(--glas-innen), var(--glas-schatten);
  backdrop-filter: blur(var(--glas-blur)) saturate(var(--glas-sat)); -webkit-backdrop-filter: blur(var(--glas-blur)) saturate(var(--glas-sat));
}
body.gescrollt .hdr { --text-2: var(--glas-text-2); --text-3: var(--glas-text-3); }
/* Lichtkante: ein heller Streifen auf der Oberkante folgt Zeiger bzw. Finger */
.hdr::after, .dock::before {
  content: ""; position: absolute; height: 1px; left: var(--glanz-l); right: var(--glanz-l); pointer-events: none; opacity: 0;
  transition: opacity .35s;
  background: linear-gradient(90deg, transparent calc(var(--glanz-x) - var(--glanz-l) - 110px),
              var(--glanz) calc(var(--glanz-x) - var(--glanz-l)), transparent calc(var(--glanz-x) - var(--glanz-l) + 110px));
}
.hdr::after { top: var(--leiste-oben); }
body.gescrollt .hdr.glanz-an::after { opacity: 1; }
.dock { --glanz-x: 50%; --glanz-l: 28px; }
.dock::before { top: -1px; }
.dock.glanz-an::before { opacity: 1; }

/* Gleiter: Fläche mit rotem Strich wandert weich zum gezeigten bzw. berührten Menüpunkt */
.gleiter {
  position: absolute; z-index: 0; left: 0; top: 0; width: 0; pointer-events: none; opacity: 0;
  transition: transform .42s cubic-bezier(.3, 1.2, .4, 1), width .42s cubic-bezier(.3, 1.2, .4, 1),
              height .42s cubic-bezier(.3, 1.2, .4, 1), opacity .2s;
}
.gleiter.da { opacity: 1; }
.gleiter.ohne-uebergang { transition: none; }
.gleiter::after { content: ""; position: absolute; border-radius: 3px; background: var(--knopf); }
.dock.mit-gleiter .gleiter { top: 6px; bottom: 6px; border-radius: calc(var(--glas-radius) - 6px); background: var(--rose-hell); }
.dock.mit-gleiter .gleiter::after { left: 50%; bottom: 5px; width: 16px; height: 3px; margin-left: -8px; }
.dock.mit-gleiter .on { background: none; }
.dock.mit-gleiter .on::after { display: none; }
.dock.mit-gleiter a, .dock.mit-gleiter button { transition: color .25s; }
.dock.mit-gleiter a span, .dock.mit-gleiter button span { margin-bottom: 4px; }
.dock.zeigt .on:not(.unter) { color: var(--text-2); }
.dock.mit-gleiter .unter { color: var(--glas-akzent); }
.sidenav.mit-gleiter .sidenav-item { position: relative; z-index: 1; transition: color .2s; }
.sidenav.mit-gleiter .sidenav-item:not(.on):hover { background: none; }
.sidenav.mit-gleiter .gleiter { border-radius: 14px; background: var(--linie-2); }
.sidenav.mit-gleiter .gleiter::after { left: 0; top: 50%; width: 3px; height: 18px; margin-top: -9px; }
.sidenav.zeigt .sidenav-item:not(.unter):not(.on) { color: var(--text-2); }

/* ── Lebendige Oberflächen: Einblenden, Lichtkante, Anheben, Drücken ─── */
/* Grundsatz: Bewegung nur dort, wo bedient wird (Links, Knöpfe, anklickbare Karten); reine Behälter bleiben ruhig.
   Wege kurz (höchstens 2 px, höchstens ½ s), Schein schwach — spürbar, nicht aufdringlich.
   Die Kalenderansicht (.kal-layout) bleibt ausdrücklich unverändert. */
@keyframes auf { from { opacity: 0; transform: translateY(10px); } }
@keyframes einblenden { from { opacity: 0; } }
@keyframes menue-auf { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes dialog-auf { from { opacity: 0; transform: translate(-50%, -47%) scale(.97); } }
@keyframes blatt-auf { from { opacity: 0; transform: translateY(28px); } }
@keyframes toast-auf { from { opacity: 0; transform: translate(-50%, 14px) scale(.97); } }

/* Seitenaufbau: Inhalte steigen kurz nacheinander auf — nur beim Laden; was später erscheint, bleibt ruhig (body.bereit) */
:is(.gruss, .seite-titel, .section-label, .karte, .tile, .row, .kennzahl, .hinweise, .lx-kachel, .pf-karte, .dash-card, .ls-auftrag, .auftrag-karte, .ev-row, .addrow, .note-box, .btn-row, .filterleiste, .kpi, .lx-kpi, .lx-karte) { animation: auf .5s cubic-bezier(.2, .8, .2, 1) backwards; }
:is(.gruss, .seite-titel, .section-label, .karte, .tile, .row, .kennzahl, .hinweise, .lx-kachel, .pf-karte, .dash-card, .ls-auftrag, .auftrag-karte, .ev-row, .addrow, .note-box, .btn-row, .filterleiste, .kpi, .lx-kpi, .lx-karte):nth-child(2) { animation-delay: 45ms; }
:is(.gruss, .seite-titel, .section-label, .karte, .tile, .row, .kennzahl, .hinweise, .lx-kachel, .pf-karte, .dash-card, .ls-auftrag, .auftrag-karte, .ev-row, .addrow, .note-box, .btn-row, .filterleiste, .kpi, .lx-kpi, .lx-karte):nth-child(3) { animation-delay: 90ms; }
:is(.gruss, .seite-titel, .section-label, .karte, .tile, .row, .kennzahl, .hinweise, .lx-kachel, .pf-karte, .dash-card, .ls-auftrag, .auftrag-karte, .ev-row, .addrow, .note-box, .btn-row, .filterleiste, .kpi, .lx-kpi, .lx-karte):nth-child(4) { animation-delay: 135ms; }
:is(.gruss, .seite-titel, .section-label, .karte, .tile, .row, .kennzahl, .hinweise, .lx-kachel, .pf-karte, .dash-card, .ls-auftrag, .auftrag-karte, .ev-row, .addrow, .note-box, .btn-row, .filterleiste, .kpi, .lx-kpi, .lx-karte):nth-child(5) { animation-delay: 180ms; }
:is(.gruss, .seite-titel, .section-label, .karte, .tile, .row, .kennzahl, .hinweise, .lx-kachel, .pf-karte, .dash-card, .ls-auftrag, .auftrag-karte, .ev-row, .addrow, .note-box, .btn-row, .filterleiste, .kpi, .lx-kpi, .lx-karte):nth-child(6) { animation-delay: 225ms; }
:is(.gruss, .seite-titel, .section-label, .karte, .tile, .row, .kennzahl, .hinweise, .lx-kachel, .pf-karte, .dash-card, .ls-auftrag, .auftrag-karte, .ev-row, .addrow, .note-box, .btn-row, .filterleiste, .kpi, .lx-kpi, .lx-karte):nth-child(7) { animation-delay: 270ms; }
:is(.gruss, .seite-titel, .section-label, .karte, .tile, .row, .kennzahl, .hinweise, .lx-kachel, .pf-karte, .dash-card, .ls-auftrag, .auftrag-karte, .ev-row, .addrow, .note-box, .btn-row, .filterleiste, .kpi, .lx-kpi, .lx-karte):nth-child(8) { animation-delay: 315ms; }
body.bereit :is(.gruss, .seite-titel, .section-label, .karte, .tile, .row, .kennzahl, .hinweise, .lx-kachel, .pf-karte, .dash-card, .ls-auftrag, .auftrag-karte, .ev-row, .addrow, .note-box, .btn-row, .filterleiste, .kpi, .lx-kpi, .lx-karte), .kal-layout :is(.gruss, .seite-titel, .section-label, .karte, .tile, .row, .kennzahl, .hinweise, .lx-kachel, .pf-karte, .dash-card, .ls-auftrag, .auftrag-karte, .ev-row, .addrow, .note-box, .btn-row, .filterleiste, .kpi, .lx-kpi, .lx-karte) { animation: none; }

/* Lichtkante und weicher Schein folgen Zeiger bzw. Finger (span.glanz setzt app.js bei Berührung ein) */
:is(.karte, .tile, .row, .kennzahl, .hinweise, .lx-kachel, .pf-karte, .dash-card, .ls-auftrag, .kpi, .lx-kpi, .lx-karte, .btn, .addrow, .bigbtn, .ls-tage a) { position: relative; }
.glanz {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background:
    radial-gradient(240px circle at var(--mx, 50%) var(--my, 0px), var(--glanz-weich), transparent 70%),
    linear-gradient(90deg, transparent calc(var(--mx, 50%) - 130px), var(--glanz) var(--mx, 50%), transparent calc(var(--mx, 50%) + 130px)) top / 100% 1px no-repeat;
}
.glanz-an > .glanz { opacity: 1; }

/* Anheben beim Zeigen (nur Geräte mit Maus/Trackpad), Drücken bei Berührung — überall gleich */
:is(a.tile, a.kennzahl, a.lx-kachel, a.karte, .dash-card[href], .ls-auftrag[data-karte-href], .ls-tage a, .lx-kpi[href], a.row, .addrow) { transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s, border-color .28s, background-color .2s; }
a.row::after, .area-tile .chev, .hinweis-aktion .ico { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) {
  :is(a.tile, a.kennzahl, a.lx-kachel, a.karte, .dash-card[href], .ls-auftrag[data-karte-href], .ls-tage a, .lx-kpi[href]):hover { transform: translateY(-2px); box-shadow: var(--schatten-l); border-color: var(--linie); }
  a.row:hover, .addrow:hover { transform: translateY(-1px); box-shadow: var(--schatten); }
  a.row:hover::after { transform: rotate(45deg) translate(1.5px, -1.5px); }
  .area-tile:hover .chev, .hinweis-link:hover .hinweis-aktion .ico { transform: translateX(3px); }
}
:is(a.tile, a.kennzahl, a.lx-kachel, a.karte, .dash-card[href], .ls-auftrag[data-karte-href], .ls-tage a, .lx-kpi[href], a.row, .addrow, .hinweis-link, .sidenav-item, .person-row, .thema-wahl button, .stepper button, .bigbtn:not(:disabled), .chip-p button, .lx-nav a):active { transform: scale(.975); transition-duration: .08s; }

/* Knöpfe: Lichtkante oben, leichtes Anheben, spürbares Drücken */
.btn { transition: background .18s, box-shadow .18s, color .18s, border-color .18s, transform .22s cubic-bezier(.2, .8, .2, 1); }
.btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(173, 92, 92, .25), 0 6px 16px rgba(173, 92, 92, .22); }
.btn-login, .fab { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .18s; }
@media (hover: hover) {
  .btn:hover:not(:disabled):not(.btn-ghost), .btn-login:hover { transform: translateY(-1px); }
  .btn-primary:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 2px 4px rgba(173, 92, 92, .28), 0 10px 24px rgba(173, 92, 92, .30); }
  .btn-secondary:hover:not(:disabled), .btn-aktion:hover:not(:disabled) { box-shadow: var(--schatten); }
  .fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 34px rgba(173, 92, 92, .42); }
}
.btn:active:not(:disabled), .btn-login:active { transform: scale(.97); transition-duration: .08s; }
.fab:active { transform: scale(.94); transition-duration: .08s; }

/* Kopfzeilen-Knöpfe, Dock und Seitenmenü */
.hdr-back, .hdr-icon { transition: background .2s, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
@media (hover: hover) {
  .hdr-icon:hover { transform: translateY(-1px); box-shadow: var(--schatten); }
  .hdr-back:hover { transform: translateX(-1px); box-shadow: var(--schatten); }
  .sidenav-item:hover .nav-ico, .sidenav-item.unter .nav-ico { transform: scale(1.08); }
  .input:hover:not(:focus) { border-color: var(--rose); border-color: color-mix(in srgb, var(--linie), var(--rose) 45%); }
}
.hdr-back:active, .hdr-icon:active { transform: scale(.93); transition-duration: .08s; }
.dock .ico { transition: transform .4s cubic-bezier(.3, 1.4, .4, 1); }
.dock .unter .ico { transform: translateY(-1px) scale(1.08); }
.dock a:active .ico, .dock button:active .ico { transform: scale(.86); transition-duration: .1s; }
.sidenav-item { transition: background .2s, color .2s, transform .2s; }
.sidenav-item .nav-ico { transition: transform .35s cubic-bezier(.3, 1.3, .4, 1), background .2s, color .2s; }
.input, select.input, textarea.input { transition: border-color .2s, box-shadow .2s, background-color .2s; }

/* Menüs, Dialoge, Hinweise erscheinen weich */
details[open] > .menue, .kopf-menue[open] .menue { animation: menue-auf .2s cubic-bezier(.2, .8, .2, 1); transform-origin: top left; }
.menue.rechts { transform-origin: top right; }
.lx-treffer { animation: menue-auf .18s cubic-bezier(.2, .8, .2, 1); }
.backdrop, .nav-backdrop { animation: einblenden .22s; }
.modal { animation: dialog-auf .3s cubic-bezier(.2, .8, .2, 1); }
.sheet { animation: blatt-auf .36s cubic-bezier(.2, .8, .2, 1); }
.viewer, .bildansicht { animation: einblenden .2s; }
.live-hinweis { animation: auf .4s cubic-bezier(.2, .8, .2, 1); }
.toast { animation: toast-auf .4s cubic-bezier(.2, .8, .2, 1); transition: opacity .3s, transform .3s; }
.toast.weg { opacity: 0; transform: translate(-50%, 10px); }

/* Seitenwechsel: kurzes Überblenden statt hartem Schnitt (Chrome, Edge, Safari; andere Browser ignorieren es) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* ── Liquid Glass ───────────────────────────────────────────────────── */
/* Glas braucht etwas zum Durchscheinen: weiche Farbflächen liegen fest hinter der Seite. Glasflächen sind
   Kopfleiste (beim Scrollen), Dock bzw. Seitenmenü, Dialoge und die Anmeldekarte — höchstens drei bis vier
   gleichzeitig, nie auf Listenzeilen. Nebentext auf Glas nutzt dunklere Töne (≥ 4,5:1). */
.blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blobs i { position: absolute; width: 52vmax; height: 52vmax; border-radius: 50%; background: radial-gradient(closest-side, var(--blob-1), transparent); }
.blobs i:nth-child(1) { left: -16vmax; top: -20vmax; }
.blobs i:nth-child(2) { right: -18vmax; top: 6vh; background: radial-gradient(closest-side, var(--blob-2), transparent); }
.blobs i:nth-child(3) { left: 24vw; bottom: -30vmax; width: 60vmax; height: 60vmax; background: radial-gradient(closest-side, var(--blob-3), transparent); }
/* Seiten ohne Navigation (Anmeldung, Bestätigungen): Farbflächen gebündelt hinter der Karte */
body:not(.mit-nav) .blobs i:nth-child(1) { left: 4vw; top: 4vh; width: 60vmax; height: 60vmax; }
body:not(.mit-nav) .blobs i:nth-child(2) { right: -6vw; top: 22vh; width: 56vmax; height: 56vmax; }
body:not(.mit-nav) .blobs i:nth-child(3) { left: 30vw; bottom: -18vmax; }
.glas, .card-page .card, .modal, .sheet, .sidenav, body:not(.mit-nav) .hdr-icon, body:not(.mit-nav) .hdr-back {
  background: linear-gradient(var(--glas-lesbar), var(--glas-lesbar)), var(--glas-flaeche);
  -webkit-backdrop-filter: blur(var(--glas-blur)) saturate(var(--glas-sat)); backdrop-filter: blur(var(--glas-blur)) saturate(var(--glas-sat));
  border: 1px solid var(--glas-kante); box-shadow: inset 0 1px 0 var(--glas-innen), var(--glas-schatten);
  --text-2: var(--glas-text-2); --text-3: var(--glas-text-3);
}
.card-page .card, .modal { border-radius: var(--glas-radius); }
.sheet { border-radius: var(--glas-radius) var(--glas-radius) 0 0; }
.sidenav { border-bottom: 0; }
@media (min-width: 1100px) { .sidenav { border: 0; border-right: 1px solid var(--glas-kante); box-shadow: var(--glas-schatten); } }
/* Ohne backdrop-filter: deckende Flächen, normale Textfarben */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root, :root[data-theme="dunkel"] {
    --glas-flaeche: var(--karte); --glas-kante: var(--linie); --glas-innen: transparent; --glas-lesbar: transparent;
    --glas-text-2: var(--text-2); --glas-text-3: var(--text-3); --glas-akzent: var(--rot-stark);
  }
  .blobs { display: none; }
}

/* ── Bento Grid ─────────────────────────────────────────────────────── */
/* 12 Spalten, Zeilen mindestens 160 px, eine Kachel = ein Inhalt. Rhythmus über Kachelgröße:
   eine Ankerkachel (6 Spalten, 2 Zeilen), mittlere (4) und kleine (3). Unter 768 px zwei Spalten. */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(var(--bento-zeile), auto); gap: var(--bento-gap); padding: 10px var(--rand) 4px; align-items: stretch; }
.bento > * { min-width: 0; margin: 0; border-radius: var(--bento-radius); grid-column: span 12; }
.bento > .b-3 { grid-column: span 3; } .bento > .b-4 { grid-column: span 4; } .bento > .b-6 { grid-column: span 6; } .bento > .b-8 { grid-column: span 8; }
.bento > .b-hoch { grid-row: span 2; }
.bento > .hinweise { grid-column: span 6; grid-row: span 2; }
.bento > .pf-karte { grid-column: span 6; }
.bento > .lx-kachel { grid-column: span 3; }
.bento-tag > .kennzahl { grid-column: span 4; }
.bento-tag > .hinweise { grid-column: span 8; grid-row: auto; }
.bento-tag > .gm-meintag { grid-column: span 4; display: flex; flex-direction: column; gap: 8px; padding: 0; border-radius: 0; }
.bento .gm-meintag > * { margin: 0; }
.bento > a:focus-visible, .grid-areas > a:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: var(--bento-radius); }
.bento > .kennzahl { display: flex; flex-direction: column; padding: 18px 16px 16px; }
.bento > .kennzahl b { margin-top: auto; }
.bento > .lx-kachel { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
.bento > .lx-kachel > span:nth-child(2) { min-width: 0; }
.bento > .lx-kachel .lx-kachel-zahl, .bento > .gm-kachel .gm-kachel-chips { margin-left: 0; text-align: left; margin-top: auto; justify-content: flex-start; flex-basis: auto; }
.bento > .hinweise { margin: 0; }
.bento .kachel-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--rot-stark); }
.bento .ls-person:first-of-type { padding-top: 6px; }
@media (min-width: 768px) { :root { --bento-gap: 20px; } .bento-leitstand > .lx-kachel { grid-column: span 6; } }
@media (min-width: 1100px) { :root { --bento-gap: 24px; } }
@media (max-width: 767px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* gleiche Spezifität wie die Desktop-Regeln, sonst bleiben einzelne Kacheln breiter als das Raster */
  .bento > *, .bento > .b-3, .bento > .b-4, .bento > .b-6, .bento > .b-8, .bento > .b-hoch, .bento > .hinweise, .bento > .pf-karte, .bento > .lx-kachel,
  .bento-tag > .kennzahl, .bento-tag > .hinweise, .bento-tag > .gm-meintag { grid-column: span 2; grid-row: auto; }
  .bento > .kennzahl { grid-column: span 1; }
  .bento > .kennzahl.b-voll { grid-column: span 2; }
}
/* Lagerübersicht als Bento: erste Kachel (Hauptlager) ist der Anker */
.grid-areas { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(var(--bento-zeile), auto); gap: var(--bento-gap); padding-top: 10px; }
.grid-areas > .area-tile { grid-column: span 3; margin: 0; border-radius: var(--bento-radius); flex-direction: column; align-items: flex-start; padding: 18px; }
.grid-areas > .area-tile:first-child { grid-column: span 6; grid-row: span 2; }
.grid-areas > .area-tile:nth-child(4):last-child { grid-column: span 6; }
.grid-areas > .area-tile .area-text { margin-top: auto; }
.grid-areas > .area-tile .chev { position: absolute; right: 16px; bottom: 18px; }
.grid-areas > .area-tile:first-child .area-img, .grid-areas > .area-tile:first-child .area-tile-icon { width: 96px; height: 96px; border-radius: 24px; }
@media (max-width: 767px) {
  .grid-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-areas > .area-tile { grid-column: span 1; }
  .grid-areas > .area-tile:first-child, .grid-areas > .area-tile:nth-child(4):last-child { grid-column: span 2; grid-row: auto; }
  .grid-areas > .area-tile:first-child .area-img, .grid-areas > .area-tile:first-child .area-tile-icon { width: 64px; height: 64px; border-radius: 16px; }
}

/* ── Soft 3D: Leerzustände ──────────────────────────────────────────── */
/* Ein gepolstertes Objekt je Leerzustand (PNG, 1x/2x, transparent) — nie über Text, nie hinter Glas. */
.leer { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px var(--rand) 22px; color: var(--text-2); font-size: 14.5px; }
.leer-bild { display: block; width: var(--leer-bild); height: var(--leer-bild); object-fit: contain; margin-bottom: 2px; }
.leer p { margin: 0; line-height: 1.5; max-width: 44ch; }
.leer.leer-ok { padding: 6px 0 18px; }
.bento .leer, .karte .leer { padding-left: 0; padding-right: 0; }
.leer.klein { --leer-bild: 104px; }

/* ── Auf der APP (Anwesenheit, nur Geschäftsführung) ────────────────── */
.badge.badge-live { background: var(--gruen); }
.anwesend-zeile { gap: 12px; align-items: center; }
.anwesend-du { font-weight: 500; color: var(--text-2); font-size: 13px; }
.anwesend-zeit { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.anwesend-zeit b { font-size: 14px; font-weight: 600; }
.anwesend-zeit small { font-size: 12.5px; color: var(--gruen); font-weight: 600; }

/* ── Mission (Schatzkarte): Start Firma → Baustellen → Ziel Firma ─────── */
/* Die gestrichelte Linie zeichnet app.js zwischen die Markierungen; sie wirkt wie in Papier geritzt
   (helle Rille, Schatten). Fertige Abschnitte sind grün und durchgezogen, der nächste läuft, der Rest ruht. */
.mission { margin: 0 var(--rand) 14px; padding: 18px 18px 8px; background: var(--karte); border: 1px solid var(--rahmen); border-radius: var(--r-xl); box-shadow: var(--schatten); position: relative; overflow: hidden; }
.mission::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(420px 220px at 90% -10%, var(--neutral-hell), transparent 70%), radial-gradient(360px 200px at -10% 110%, var(--rose-hell), transparent 70%); }
.mission > * { position: relative; }
.mission-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--linie-2); }
.mission-titel { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; flex-wrap: wrap; }
.mission-titel small { font-weight: 500; color: var(--text-2); font-size: 13.5px; }
.mission-unter { display: block; margin-top: 3px; font-size: 13.5px; color: var(--text-2); }
.mission.erfuellt .mission-unter { color: var(--positiv); font-weight: 600; }
.mission-fortschritt { display: flex; gap: 5px; flex: none; margin-top: 4px; }
.mission-fortschritt i { width: 10px; height: 10px; border-radius: 50%; background: var(--linie); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .08); }
.mission-fortschritt i.voll { background: var(--positiv); }
.mission-fortschritt i.halb { background: linear-gradient(90deg, var(--knopf) 50%, var(--linie) 50%); }
.mission-karte-flaeche { position: relative; padding: 10px 0 6px; }
.mission-pfad { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mission-pfad path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mission-pfad .mp-rille { stroke: var(--linie-2); stroke-width: 9; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .9)); }
:root[data-theme="dunkel"] .mission-pfad .mp-rille { stroke: rgba(255, 255, 255, .06); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); }
.mission-pfad .mp-rest { stroke: var(--text-3); stroke-width: 2.5; stroke-dasharray: 7 9 5 10; opacity: .7; filter: drop-shadow(0 1px 1px rgba(38, 50, 56, .22)); }
.mission-pfad .mp-fertig { stroke: var(--positiv); stroke-width: 3.5; filter: drop-shadow(0 1px 2px rgba(63, 138, 104, .35)); animation: mission-zeichnen 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.mission-pfad .mp-aktiv { stroke: var(--knopf); stroke-width: 3; stroke-dasharray: 9 9; filter: drop-shadow(0 1px 2px rgba(173, 92, 92, .35)); animation: mission-lauf 1.4s linear infinite; }
@keyframes mission-lauf { to { stroke-dashoffset: -36; } }
@keyframes mission-zeichnen { from { stroke-dashoffset: var(--laenge, 0); } to { stroke-dashoffset: 0; } }
.mission-stopps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.mission-stopp { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 64px; }
.mission-stopp:nth-child(even) { grid-template-columns: minmax(0, 1fr) 56px; }
.mission-stopp:nth-child(even) .mission-marker { order: 2; }
.mission-stopp:nth-child(even) .mission-info { order: 1; text-align: right; align-items: flex-end; }
.mission-marker { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--text); background: var(--karte); border: 2px solid var(--linie); position: relative; z-index: 1; justify-self: center;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .8), 0 2px 0 var(--linie), 0 8px 18px rgba(38, 50, 56, .14); transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s; }
:root[data-theme="dunkel"] .mission-marker { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 0 rgba(0, 0, 0, .5), 0 8px 18px rgba(0, 0, 0, .4); }
a.mission-marker:active { transform: scale(.94); }
.mission-stopp.fertig .mission-marker { background: var(--positiv); border-color: var(--positiv); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 2px 0 color-mix(in srgb, var(--positiv) 60%, black), 0 8px 18px rgba(63, 138, 104, .3); }
.mission-stopp.aktuell .mission-marker { background: var(--knopf); border-color: var(--knopf); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 2px 0 color-mix(in srgb, var(--knopf) 60%, black), 0 10px 22px rgba(173, 92, 92, .38); }
.mission-stopp.aktuell .mission-marker::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--knopf); opacity: 0; animation: av-puls 2.4s ease-out infinite; }
.mission-stopp.start .mission-marker, .mission-stopp.ziel .mission-marker { border-radius: 18px; }
.mission-stopp.ziel:not(.fertig) .mission-marker { background: var(--neutral-hell); color: var(--neutral); border-style: dashed; }
.mission-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-decoration: none; color: inherit; padding: 10px 12px; border-radius: var(--r); transition: background .2s; position: relative; z-index: 1;
  background: color-mix(in srgb, var(--karte) 90%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); justify-self: start; max-width: 100%; }
.mission-stopp:nth-child(even) .mission-info { justify-self: end; }
a.mission-info:hover { background: var(--karte); box-shadow: var(--schatten-s); }
.mission-info b { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.mission-info small { font-size: 13px; color: var(--text-2); }
.mission-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mission-stopp:nth-child(even) .mission-chips { justify-content: flex-end; }
.mission-stopp.start .mission-info b, .mission-stopp.ziel .mission-info b { font-size: 14.5px; }
.mission-stopp.fertig .mission-info b { color: var(--text-2); }
.mission.erfuellt .mission-stopp.ziel .mission-info b { color: var(--positiv); }
@media (prefers-reduced-motion: reduce) { .mission-pfad .mp-aktiv, .mission-pfad .mp-fertig, .mission-stopp.aktuell .mission-marker::after { animation: none; } }
/* Ohne JavaScript: einfache gestrichelte Senkrechte */
/* Leitstand: Baustellenroute je Fahrzeug als Mini-Schatzkarte, alle nebeneinander */
.mini-routen { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding: 0 var(--rand) 16px; }
.mission.mini { margin: 0; padding: 10px 12px; border-radius: var(--r-l); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mission.mini .mission-kopf { align-items: center; padding-bottom: 6px; gap: 8px; }
.mission.mini .mission-titel { font-size: 13.5px; gap: 6px; flex-wrap: nowrap; min-width: 0; }
.mission.mini .mission-unter { margin: 0; font-size: 12px; white-space: nowrap; }
.mission.mini.erfuellt .mission-unter { color: var(--positiv); font-weight: 600; }
.mission.mini .mission-karte-flaeche { padding: 4px 2px; }
.mission.mini .mission-stopps { display: flex; justify-content: space-between; align-items: center; gap: 4px; height: 50px; }
.mission.mini .mission-stopp { display: block; min-height: 0; }
.mission.mini .mission-stopp:nth-child(odd) { align-self: flex-end; }
.mission.mini .mission-stopp:nth-child(even) { align-self: flex-start; }
.mission.mini .mission-marker { width: 24px; height: 24px; font-size: 11.5px; font-weight: 800; border-width: 1.5px; box-shadow: var(--schatten-s); }
.mission.mini .mission-stopp.start .mission-marker, .mission.mini .mission-stopp.ziel .mission-marker { border-radius: 8px; }
.mission.mini .mission-stopp.aktuell .mission-marker::after { inset: -4px; border-width: 1.5px; }
.mission.mini .mission-pfad .mp-rille { stroke-width: 6; }
.mission.mini .mission-pfad .mp-rest { stroke-width: 1.8; stroke-dasharray: 5 6 3 7; }
.mission.mini .mission-pfad .mp-fertig { stroke-width: 2.5; }
.mission.mini .mission-pfad .mp-aktiv { stroke-width: 2; stroke-dasharray: 6 6; }
.mission.mini .mission-karte-flaeche.ohne-js::before { left: 12px; right: 12px; top: 50%; bottom: auto; border-left: 0; border-top: 2px dashed var(--linie); }
.mini-naechste { display: block; font-size: 12.5px; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-naechste b { color: var(--knopf); }
.mini-naechste:hover { text-decoration: underline; }
.mini-team { display: block; font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-frei { margin: 0; padding: 18px 0 12px; font-size: 12.5px; color: var(--text-3); text-align: center; }
@media (max-width: 699px) { .mini-routen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.mission-karte-flaeche.ohne-js::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 6px; border-left: 2px dashed var(--linie); }

/* ── Baustelle abschließen (Bestätigungsknopf) ───────────────────────── */
.fertig-karte { display: grid; gap: 14px; }
.fertig-kopf { display: flex; gap: 14px; align-items: flex-start; }
.fertig-kopf > div { display: flex; flex-direction: column; gap: 3px; }
.fertig-kopf b { font-size: 16px; letter-spacing: -.01em; }
.fertig-kopf small { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.fertig-haken { width: 44px; height: 44px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--neutral-hell); color: var(--neutral); }
.ist-fertig .fertig-haken { background: var(--positiv); color: #fff; }
.ist-fertig { border-color: color-mix(in srgb, var(--positiv) 35%, transparent); background: linear-gradient(160deg, var(--positiv-hell) 0%, var(--karte) 60%); }
.btn-fertig { width: 100%; min-height: 54px; font-size: 16px; background: var(--positiv); color: #fff; border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(63, 138, 104, .25), 0 8px 20px rgba(63, 138, 104, .3); }
@media (hover: hover) { .btn-fertig:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 4px rgba(63, 138, 104, .3), 0 12px 26px rgba(63, 138, 104, .36); } }
.btn-fertig:disabled { opacity: .7; }
.fertig-karte .btn-secondary { width: 100%; }

/* ── Pop-up-Meldungen im Leitstand (Baustelle fertig, Abnahme, Problem) ── */
.popups { position: fixed; z-index: 86; top: calc(env(safe-area-inset-top, 0px) + 68px); right: var(--rand); width: min(380px, calc(100% - 2 * var(--rand))); display: grid; gap: 10px; pointer-events: none; }
.popup { pointer-events: auto; display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 0 12px; padding: 12px 12px 12px 0; border-radius: var(--glas-radius); overflow: hidden;
  background: linear-gradient(var(--glas-lesbar), var(--glas-lesbar)), var(--glas-flaeche); -webkit-backdrop-filter: blur(var(--glas-blur)) saturate(var(--glas-sat)); backdrop-filter: blur(var(--glas-blur)) saturate(var(--glas-sat));
  border: 1px solid var(--glas-kante); box-shadow: inset 0 1px 0 var(--glas-innen), var(--glas-schatten); animation: menue-auf .3s cubic-bezier(.2, .8, .2, 1); --text-2: var(--glas-text-2); }
.popup::before { content: ""; display: block; grid-row: 1 / span 2; background: var(--positiv); border-radius: 0 3px 3px 0; margin: -12px 0; }
.popup.negativ::before { background: var(--negativ); }
.popup-titel { font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.popup-titel small { font-weight: 500; color: var(--text-2); font-size: 12.5px; margin-left: auto; }
.popup-text { grid-column: 2; font-size: 13.5px; color: var(--text-2); margin-top: 2px; line-height: 1.4; }
.popup-aktionen { grid-column: 2; display: flex; gap: 8px; margin-top: 8px; }
.popup-aktionen .btn { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.popup-zu { grid-column: 3; grid-row: 1; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); font-size: 18px; line-height: 1; cursor: pointer; }
.popup-zu:hover { background: var(--linie-2); }
.popup.weg { opacity: 0; transform: translateY(-6px) scale(.98); transition: opacity .25s, transform .25s; }

/* ── Abnahmeprotokoll (digital, wie die Druckvorlage) ────────────────── */
/* Ein Dokument: immer weißes Papier mit dunkler Schrift, auch im Nachtmodus. */
.ab-werkzeuge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px var(--rand) 14px; }
.ab-status { display: flex; flex-direction: column; gap: 4px; }
.ab-status small { color: var(--text-2); font-size: 13.5px; }
.ab-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-fuss-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px var(--rand) 24px; }
.ab-fuss-knoepfe .btn { flex: 1; min-width: 180px; }
.ab-papier { margin: 0 var(--rand); padding: 22px 22px 26px; background: #fff; color: #111; border-radius: 10px; box-shadow: var(--schatten-l); border: 1px solid rgba(0, 0, 0, .06); font-size: 13px; line-height: 1.35; --ab-linie: #9a9a9a; --ab-rot: #c62d2d; --ab-grau: #f2f2f2; }
.ab-papier input, .ab-papier textarea { font: inherit; color: #111; background: transparent; border: 0; border-bottom: 1px solid var(--ab-linie); border-radius: 0; padding: 4px 4px 3px; min-width: 0; width: 100%; outline: none; }
.ab-papier input:focus, .ab-papier textarea:focus { border-bottom-color: var(--ab-rot); box-shadow: 0 1px 0 var(--ab-rot); background: #fff8f8; }
.ab-papier input[readonly], .ab-papier textarea[readonly] { border-bottom-color: #c8c8c8; }
.ab-papier input[type="time"] { width: auto; min-width: 96px; }
.ab-papier h2 { margin: 0 0 8px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; padding-left: 10px; border-left: 5px solid var(--ab-rot); line-height: 1.2; }
.ab-papier h2 b { letter-spacing: .04em; }
.ab-kopf { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px 16px; align-items: start; margin-bottom: 14px; }
.ab-rechnung { grid-column: 1; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid #333; border-radius: 8px; max-width: 220px; font-weight: 700; font-size: 12.5px; }
.ab-rechnung input { font-weight: 600; font-size: 15px; }
.ab-logo { grid-column: 2; display: flex; justify-content: center; }
.ab-logo img { width: 120px; height: 120px; object-fit: contain; }
.ab-firma { grid-column: 3; text-align: right; font-style: normal; font-size: 12px; color: #444; line-height: 1.5; }
.ab-firma b { color: #111; font-weight: 700; }
.ab-titel { grid-column: 1 / span 2; margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ab-titel small { font-size: 11px; font-weight: 700; color: var(--ab-rot); letter-spacing: .05em; }
.ab-stamm { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; padding: 10px 0 14px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.ab-stamm label, .ab-zeile-2 label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ab-stamm label > span, .ab-feld > span, .ab-bemerkungen label > span, .ab-rechnung > span { font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.ab-feld > span, .ab-bemerkungen label > span { white-space: normal; }
.ab-stamm label em { font-style: normal; font-size: 12px; color: #555; }
.ab-zeile-2 { display: flex; gap: 16px; min-width: 0; }
.ab-zeile-2 label { flex: 1; }
.ab-voll { grid-column: 1 / -1; }
.ab-mitte { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; margin-top: 14px; }
.ab-tabellen { display: grid; gap: 16px; min-width: 0; }
.ab-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ab-tabelle table { border-collapse: collapse; width: 100%; min-width: 640px; table-layout: fixed; }
.ab-tabelle th, .ab-tabelle td { border: 1px solid #333; padding: 0; vertical-align: middle; }
.ab-tabelle th { background: var(--ab-grau); font-size: 10.5px; font-weight: 700; padding: 6px 3px; line-height: 1.15; overflow: hidden; overflow-wrap: anywhere; }
.ab-tabelle th.art-haken { width: 30px; font-size: 11px; }
.ab-tabelle th[data-s="datum"] { width: 58px; }
.ab-tabelle th[data-s="stueck"], .ab-tabelle th[data-s="anzahl"], .ab-tabelle th[data-s="durchmesser"], .ab-tabelle th[data-s="lfm"] { width: 50px; }
.ab-tabelle th[data-s="tiefe"] { width: 56px; }
.ab-tabelle th[data-s="eisen"] { width: 48px; font-size: 9px; line-height: 1.1; }
.ab-tabelle th[data-s="buendig"] { width: 36px; font-size: 10px; }
.ab-tabelle th[data-s="mitarbeiter"] { width: 62px; }
.ab-tabelle td input[type="text"] { border: 0; padding: 7px 5px; font-size: 12.5px; text-align: center; }
.ab-tabelle td.art-text input { text-align: left; }
.ab-tabelle td.art-haken { text-align: center; }
.ab-tabelle tbody tr:nth-child(even) td { background: #fafafa; }
.ab-tabelle td.ab-leer { padding: 10px; text-align: center; color: #777; font-size: 12.5px; }
.ab-plus { margin-top: 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ab-rot); background: transparent; border: 1.5px dashed #d9a6a3; border-radius: 10px; padding: 7px 14px; cursor: pointer; }
.ab-plus:hover { background: #fdf2f1; }
.ab-haken { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; padding: 6px; }
.ab-haken input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ab-haken i { width: 18px; height: 18px; border: 1.5px solid #333; border-radius: 3px; background: #fff; flex: none; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.ab-haken input:checked + i { background: #111; border-color: #111; }
.ab-haken input:checked + i::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.ab-haken input:focus-visible + i { outline: 2px solid var(--ab-rot); outline-offset: 2px; }
.ab-haken input:disabled + i { opacity: .8; }
.ab-haken.gross { padding: 8px 6px; font-size: 13.5px; }
.ab-haken.gross i { width: 20px; height: 20px; }
.ab-ausfuehrungen { border: 1px solid #333; border-radius: 6px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; align-self: start; }
.ab-ausfuehrungen h2 { margin-left: -12px; }
.ab-ausfuehrungen ul { list-style: none; margin: 0 0 8px; padding: 0; border-bottom: 1px solid #333; }
.ab-ausfuehrungen li { border-bottom: 1px solid #ddd; }
.ab-ausfuehrungen li:last-child { border-bottom: 0; }
.ab-feld { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; border-bottom: 1px solid #ddd; }
.ab-feld:last-child { border-bottom: 0; }
.ab-warte label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.ab-warte small { font-weight: 500; color: #777; }
.ab-bemerkungen { margin-top: 14px; display: grid; gap: 10px; }
.ab-bemerkungen label { display: grid; gap: 4px; }
.ab-bemerkungen textarea { resize: vertical; line-height: 1.45; }
.ab-erklaerung { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid #333; font-size: 10.5px; line-height: 1.45; color: #222; }
.ab-unterschriften { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px 28px; margin-top: 12px; align-items: end; }
.ab-druckschrift { display: grid; gap: 4px; margin-top: 8px; }
.ab-druckschrift span { font-size: 10.5px; color: #333; }
.ab-monteure { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-content: end; }
.ab-monteur { display: grid; gap: 6px; }
.ab-monteur label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.ab-monteur label b { white-space: nowrap; }
.ab-unter { grid-column: 1 / -1; font-size: 10.5px; color: #333; }
/* Zeichenfeld (Unterschrift, Skizze) */
.unterschrift { position: relative; display: grid; gap: 8px; }
.unterschrift-feld { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ab-rot, var(--rot-stark)); background: #fff; border: 1.5px dashed #d9a6a3; border-radius: 12px; cursor: pointer; width: 100%; transition: background .2s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.unterschrift-feld:hover { background: #fdf2f1; }
.unterschrift-feld:active { transform: scale(.985); }
.unterschrift.hat .unterschrift-feld { min-height: 40px; border-style: solid; border-color: #e5e5e5; color: #666; font-weight: 500; }
.unterschrift-bild { display: block; max-width: 100%; max-height: 170px; object-fit: contain; object-position: left bottom; border-bottom: 1px solid #333; padding-bottom: 4px; }
.unterschrift.skizze .unterschrift-bild { max-height: 260px; border: 1px solid #ddd; border-radius: 8px; padding: 6px; }
.unterschrift-leer { display: block; border-bottom: 1px solid #333; padding: 24px 4px 4px; color: #999; }
.unterschrift-pad { border: 1.5px solid #333; border-radius: 12px; background: #fff; background-image: linear-gradient(transparent calc(100% - 42px), #cfcfcf calc(100% - 42px), #cfcfcf calc(100% - 41px), transparent calc(100% - 41px)); overflow: hidden; }
.unterschrift.skizze .unterschrift-pad { background-image: radial-gradient(#dcdcdc 1px, transparent 1px); background-size: 16px 16px; }
.unterschrift-pad canvas { display: block; width: 100%; touch-action: none; cursor: crosshair; }
.unterschrift-knoepfe { display: flex; gap: 8px; justify-content: flex-end; padding: 8px; border-top: 1px solid #e5e5e5; background: #fafafa; }
.unterschrift-knoepfe .btn { min-height: 38px; padding: 6px 14px; font-size: 13.5px; }
.ab-agb { margin: 16px var(--rand) 0; }
.ab-agb summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-2); padding: 10px 0; }
.ab-agb-text { background: #fff; color: #111; padding: 22px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .06); box-shadow: var(--schatten); font-size: 11px; line-height: 1.5; columns: 2; column-gap: 24px; }
.ab-agb-text h2 { column-span: all; font-size: 15px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .03em; }
.ab-agb-text h3 { font-size: 11.5px; margin: 10px 0 2px; break-after: avoid; }
.ab-agb-text p { margin: 0 0 6px; text-align: justify; hyphens: auto; }
.ab-agb-fuss { column-span: all; margin-top: 10px !important; padding-top: 8px; border-top: 1px solid #333; text-align: center !important; font-weight: 600; }
@media (max-width: 860px) {
  .ab-mitte { grid-template-columns: 1fr; }
  .ab-kopf { grid-template-columns: auto 1fr; }
  .ab-rechnung { grid-column: 1 / -1; order: 3; max-width: none; }
  .ab-logo { grid-column: 1; }
  .ab-logo img { width: 84px; height: 84px; }
  .ab-firma { grid-column: 2; }
  .ab-titel { grid-column: 1 / -1; font-size: 22px; }
  .ab-stamm { grid-template-columns: 1fr; }
  .ab-unterschriften { grid-template-columns: 1fr; }
  .ab-papier { padding: 16px 14px 20px; }
  .ab-agb-text { columns: 1; }
}
@media (max-width: 520px) { .ab-zeile-2 { flex-direction: column; gap: 6px; } .ab-monteure { grid-template-columns: 1fr; } }
@media print {
  .hdr, .dock, .sidenav, .nav-backdrop, .blobs, .toast, .popups, .ab-werkzeuge, .ab-fuss-knoepfe, .ab-plus, .unterschrift-feld, .unterschrift-pad, .live-hinweis, .fab { display: none !important; }
  .ab-papier, body, .seite, main { background: #fff !important; padding: 0 !important; margin: 0 !important; }   /* Druck: weißes Papier */
  .ab-papier { margin: 0; padding: 0; box-shadow: none; border: 0; border-radius: 0; font-size: 11px; }
  .ab-papier input, .ab-papier textarea { color: #000; }
  .ab-tabelle table { min-width: 0; }
  .ab-agb { margin: 0; break-before: page; }
  .ab-agb summary { display: none; }
  .ab-agb-text { box-shadow: none; border: 0; padding: 0; columns: 2; }
  @page { size: A4; margin: 12mm; }
}

/* ── Skills & Mitarbeiter-Magnete (Kalender) ───────────────────────────
   Skills als eigene Symbole (Flaggen farbig, Werkzeuge in Textfarbe). Magnete: kleine Pillen mit Bild, Name, Stand
   des gewählten Tages und Skills — auf Aufträge ziehen oder antippen + Auftrag antippen. Grün = frei, Rot = abwesend
   (Farbregel), eingeteilt neutral. Zugeklappt (body.magnete-aus) sieht der Kalender aus wie vorher. */
.sk-ico { flex: none; display: block; }
.sk-ico.flagge { border-radius: 2px; }
.magnete { margin: 6px var(--rand) 12px; padding: 10px 12px 12px; background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten-s);
  border: var(--line-w, 1px) solid var(--linie); }
.mg-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mg-titel { display: inline-flex; align-items: center; gap: 7px; padding: 4px 6px 4px 2px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: 10px; }
.mg-titel b { font-weight: 650; font-size: 14.5px; }
.mg-titel .ico { color: var(--text-3); }
.mg-summe { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mg-pfeil { color: var(--text-3); transform: rotate(90deg); transition: transform .2s; font-size: 15px; line-height: 1; }
.magnete-aus .mg-pfeil { transform: none; }
.mg-datum { font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 3px 9px; background: var(--linie-2); border-radius: 999px; }
.mg-tage { display: flex; gap: 3px; flex-wrap: wrap; }
.mg-tage button { border: 0; background: var(--linie-2); color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 999px; cursor: pointer; }
.mg-tage button[aria-pressed="true"] { background: var(--text); color: var(--karte); }
.mg-filter { display: flex; gap: 3px; flex-wrap: wrap; margin-left: auto; }
.mg-filter button { display: inline-flex; align-items: center; gap: 6px; border: var(--line-w, 1px) solid transparent; background: var(--linie-2); color: var(--text-2);
  padding: 4px 6px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 12.5px; }
.mg-filter button[aria-pressed="true"] { background: var(--karte); border-color: var(--text-2); color: var(--text); box-shadow: var(--schatten-s); }
.mg-link { font-size: 12.5px; font-weight: 600; color: var(--rot-stark); text-decoration: none; white-space: nowrap; margin-left: auto; }
.mg-liste { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.magnet { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 5px 12px 5px 5px; border-radius: 999px;
  border: var(--line-w, 1px) solid var(--linie); background: linear-gradient(180deg, var(--karte), var(--linie-2)); color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 5px rgba(38, 50, 56, .10); font: inherit; text-align: left; cursor: grab;
  touch-action: none; user-select: none; -webkit-user-select: none; transition: opacity .2s, transform .15s, box-shadow .15s; }
.magnet:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 4px 10px rgba(38, 50, 56, .14); }
.magnet::after { content: ""; position: absolute; left: 27px; top: 25px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--karte); background: var(--neutral); }
.magnet.frei::after { background: var(--positiv); }
.magnet.abwesend::after { background: var(--negativ); }
.magnet.eingeteilt { opacity: .78; }
.magnet.abwesend { opacity: .55; }
.magnet.abwesend .mg-text small { color: var(--negativ); }
.mg-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mg-text b { font-weight: 650; font-size: 13.5px; white-space: nowrap; }
.mg-text small { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.magnet.frei .mg-text small { color: var(--positiv); }
.mg-skills { display: flex; gap: 4px; margin-top: 4px; color: var(--text-2); }
.mg-liste.gefiltert .magnet:not(.passt) { opacity: .25; }
.mg-liste.gefiltert .magnet.passt { border-color: var(--text-2); }
.magnet.gewaehlt { outline: 2.5px solid var(--rot-stark); outline-offset: 2px; transform: translateY(-2px); }
.mg-hinweis { margin-top: 8px; font-size: 12.5px; color: var(--text-3); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mg-hinweis.aktiv { color: var(--text); font-weight: 600; }
.mg-hinweis button { border: 0; background: var(--linie-2); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.magnete-aus .mg-liste, .magnete-aus .mg-hinweis, .magnete-aus .mg-filter, .magnete-aus .mg-tage, .magnete-aus .mg-datum { display: none; }
.magnete-aus .tk-team { display: none; }
/* Team auf den Auftragskarten */
.tk-team { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; min-height: 26px; }
.tk-mag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 2px; border-radius: 999px; background: var(--linie-2); font-size: 12px; font-weight: 600;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.tk-mag .av { --av: 22px; }
.tk-leer { font-size: 12px; color: var(--text-3); border: 1.5px dashed var(--linie); border-radius: 999px; padding: 3px 10px; }
.woche-spalten .tk-mag { padding: 1px; }
.woche-spalten .tk-mag > span:last-child { display: none; }
.woche-spalten .tk-leer { font-size: 11px; padding: 2px 6px; }
/* Ziehen */
.magnet-geist { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; transform-origin: 20px 20px; box-shadow: 0 10px 28px rgba(38, 50, 56, .28) !important;
  opacity: .95 !important; cursor: grabbing; }
.magnet-zieht, .magnet-zieht * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
.magnet-zieht [data-termin], .magnet-gewaehlt [data-termin] { outline: 2px dashed var(--text-3); outline-offset: 1px; }
[data-termin].mg-ueber { outline: 2.5px solid var(--positiv) !important; outline-offset: 2px; box-shadow: 0 0 0 6px var(--positiv-hell); }
.magnete.mg-ueber { outline: 2.5px dashed var(--negativ); outline-offset: 2px; }
.tk-mag.zieht, .magnet.zieht { opacity: .35; }
.tk-mag.neu { animation: mg-schnapp .35s cubic-bezier(.2, .8, .2, 1.4); }
@keyframes mg-schnapp { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.mg-wahl { position: fixed; z-index: 210; background: var(--karte); border-radius: var(--r); box-shadow: var(--schatten-l); padding: 6px; display: grid; gap: 4px; min-width: 210px;
  border: var(--line-w, 1px) solid var(--linie); }
.mg-wahl b { font-size: 12.5px; color: var(--text-2); padding: 6px 10px 2px; font-weight: 600; }
.mg-wahl button { border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.mg-wahl button:hover, .mg-wahl button:focus-visible { background: var(--linie-2); }
.mg-meldung { position: fixed; left: 50%; bottom: calc(var(--dock-h) + 28px); transform: translateX(-50%); z-index: 220; max-width: min(520px, calc(100vw - 32px));
  background: var(--text); color: var(--karte); padding: 11px 16px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; box-shadow: var(--schatten-l); }
.mg-meldung div + div { margin-top: 4px; }
.mg-meldung.weg { opacity: 0; transition: opacity .3s; }
@media (min-width: 1024px) {
  .mg-meldung { bottom: 28px; }
}
@media (max-width: 640px) {
  .mg-titel { flex: 1 1 100%; }
  .mg-filter { margin-left: 0; width: 100%; }
  .mg-liste { gap: 6px; }
  .magnet { padding-right: 10px; }
  .mg-text small { max-width: 96px; }
}
:root[data-theme="dunkel"] .magnet { box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 2px 6px rgba(0, 0, 0, .35); }

/* ── Team & Skills: Mitarbeiter als Charakterkarten ───────────────────── */
.team-kopf { padding: 0 var(--rand) 4px; }
.team-filter { margin: 10px 0 4px; }
.team-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; padding: 8px var(--rand) 24px; }
.team-raster.gefiltert .charakter:not(.passt) { opacity: .3; }
.charakter { position: relative; background: var(--karte); border-radius: var(--r-l); box-shadow: var(--schatten); padding: 16px; display: grid; gap: 12px;
  border: var(--line-w, 1px) solid var(--linie); transition: opacity .2s; }
.charakter.vorarbeiter { border-color: var(--text-3); }
.ch-kopf { display: flex; gap: 14px; align-items: center; min-width: 0; }
.ch-bild { flex: none; padding: 3px; border-radius: 50%; background: conic-gradient(var(--text-3) calc(var(--anteil, 0) * 1%), var(--linie) 0); }
.ch-bild .av { box-shadow: 0 0 0 3px var(--karte); }
.ch-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ch-name b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.ch-rolle { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ch-stand { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.ch-stand i { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral); flex: none; }
.ch-stand.frei i { background: var(--positiv); }
.ch-stand.abwesend i { background: var(--negativ); }
.ch-stand.abwesend { color: var(--negativ); }
.ch-gruppe small { display: block; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.ch-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ch-slots form { margin: 0; display: contents; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; border-radius: 12px; border: 1.5px dashed var(--linie); background: none;
  color: var(--text-3); font: inherit; font-size: 10px; font-weight: 600; line-height: 1.15; text-align: center; cursor: pointer; min-height: 62px;
  min-width: 0; hyphens: manual;
  transition: background .15s, border-color .15s, color .15s, transform .12s; }
.slot .sk-ico { opacity: .35; filter: grayscale(1); transition: opacity .15s, filter .15s; }
.slot:hover { border-color: var(--text-3); }
.slot:active { transform: scale(.95); }
.slot.hat { border-style: solid; border-color: var(--linie); background: linear-gradient(180deg, var(--karte), var(--linie-2)); color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 5px rgba(38, 50, 56, .08); }
.slot.hat .sk-ico { opacity: 1; filter: none; }
.slot.laeuft { opacity: .6; pointer-events: none; }
.ch-fuss { display: flex; align-items: center; gap: 10px; }
.ch-fuss small { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.ch-leiste { flex: 1; height: 6px; border-radius: 3px; background: var(--linie-2); overflow: hidden; }
.ch-leiste i { display: block; height: 100%; background: var(--text-3); border-radius: 3px; transition: width .3s; }
:root[data-theme="dunkel"] .slot.hat { box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 2px 6px rgba(0, 0, 0, .3); }

/* ── Bestandsliste Magazin: Kennzahlen, Kacheln, Sperrbestand-Leiste, Galerie, Zuordnungsfragen ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mz-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 4px var(--rand) 10px; }
.mz-kpis .kpi { display: flex; flex-direction: column; padding: 10px 12px; text-decoration: none; color: inherit; }
.mz-kpis .kpi-num { font-size: 22px; margin-top: 2px; }
.mz-kpis .kpi.negativ .kpi-num { color: var(--negativ); }
.mz-kpis .kpi-label { font-size: 11.5px; }
.mz-filter2 { padding-top: 0; align-items: center; }
.mz-chip-sperr.on { background: var(--negativ) !important; border-color: var(--negativ) !important; }
.mz-select { flex: none; }
.mz-select .input { min-height: 38px; padding: 6px 32px 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 550; width: auto; max-width: 220px; }
.mz-leiste { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 var(--rand) 12px; }
.mz-leiste .seg { margin: 0; min-width: 170px; }
.mz-leiste .seg a { padding: 7px 10px; }
.mz-aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mz-aktionen .btn { min-height: 38px; padding: 7px 12px; font-size: 13.5px; }
.mz-fragen { border-color: var(--negativ) !important; color: var(--negativ) !important; }
.mz-row-nr { display: inline-block; min-width: 30px; margin-right: 8px; padding: 1px 6px; border-radius: 7px; background: var(--linie-2); color: var(--text-2); font-size: 12px; font-weight: 700; text-align: center; }
.sperr-row { box-shadow: inset 0 0 0 2px var(--negativ), var(--schatten-s); }

/* Kacheln: Handy 2 Spalten, Tablet 3, Desktop 4–5 */
.mz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 var(--rand) 8px; }
@media (min-width: 700px) { .mz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mz-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .mz-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.kachel { display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-l); background: var(--karte); box-shadow: var(--schatten-s); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.kachel:hover { box-shadow: var(--schatten); }
.kachel.sperr-kachel { box-shadow: inset 0 0 0 2px var(--negativ), var(--schatten-s); }
.kachel-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; min-width: 0; }
.kachel-link:focus-visible { outline: 3px solid var(--rose); outline-offset: -3px; }
.kachel-bild { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--linie-2); overflow: hidden; }
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bild-fehlt { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 800; letter-spacing: .08em; color: var(--text-3); background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(38, 50, 56, .04) 14px 28px); border: 2px dashed var(--linie); box-sizing: border-box; font-size: 15px; text-align: center; }
.bild-fehlt.klein { font-size: 7px; letter-spacing: .02em; border-width: 1px; line-height: 1.1; padding: 2px; }
.bild-fehlt-gross { flex-direction: column; gap: 4px; border: 2px dashed var(--linie); background: repeating-linear-gradient(135deg, var(--linie-2) 0 16px, rgba(38, 50, 56, .035) 16px 32px); }
.bild-fehlt-gross b { font-size: 22px; letter-spacing: .1em; color: var(--text-3); }
.bild-fehlt-gross span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.kachel-menge { position: absolute; left: 8px; bottom: 8px; min-width: 40px; padding: 4px 10px; border-radius: 12px; background: var(--text); color: var(--invers, #fff); font-size: 19px; font-weight: 800; line-height: 1.2; text-align: center; font-variant-numeric: tabular-nums; box-shadow: var(--schatten-s); }
.kachel-sperr { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--negativ); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; box-shadow: var(--schatten-s); }
.kachel-text { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 8px; min-width: 0; }
.kachel-nr { font-size: 11.5px; color: var(--text-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kachel-name { font-size: 14.5px; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.kachel-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; color: var(--text-2); }
.kachel-meta small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zust { display: inline-block; padding: 2px 8px; border-radius: 999px; font-style: normal; font-weight: 700; font-size: 11.5px; letter-spacing: .02em; background: var(--linie-2); color: var(--text-2); white-space: nowrap; }
.zust.NEU { background: var(--positiv-hell); color: var(--positiv); }
.zust.ALT { background: var(--grau-hell); color: var(--grau); }
.zust.gemischt { background: var(--amber-hell); color: var(--amber); }

/* Sperrbestand-Leiste (kompakt in der Kachel, groß auf der Detailseite) — feste Zeilen, nichts verschiebt sich */
.sperr { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 10px; border-top: 1px solid var(--linie-2); background: var(--karte); }
.sperr.gross { margin-top: 0; padding: 16px; border: 1px solid var(--linie); border-radius: var(--r-l); box-shadow: var(--schatten-s); gap: 12px; }
.sperr-kopf { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 28px; }
.sperr-text { font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sperr.gross .sperr-text { font-size: 15px; color: var(--text); }
.sperr-text b { color: var(--text); font-variant-numeric: tabular-nums; }
.sperr-balken { display: block; height: 6px; border-radius: 999px; background: var(--linie-2); overflow: hidden; }
.sperr.gross .sperr-balken { height: 10px; }
.sperr-balken i { display: block; height: 100%; border-radius: inherit; background: var(--neutral); transition: width .25s; }
.sperr.gruen .sperr-balken i { background: var(--positiv); }
.sperr.amber .sperr-balken i { background: var(--amber); }
.sperr.rot .sperr-balken i { background: var(--negativ); }
.sperr.rot .sperr-text { color: var(--negativ); }
.sperr-form { display: flex; flex-direction: column; gap: 8px; }
.sperr-zeile { display: flex; align-items: center; gap: 6px; height: 36px; }
.sperr.gross .sperr-zeile { height: 48px; gap: 8px; }
.sperr-btn { width: 36px; height: 36px; flex: none; border: 1px solid var(--linie); border-radius: 10px; background: var(--karte); color: var(--text); font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: var(--schatten-s); }
.sperr.gross .sperr-btn { width: 48px; height: 48px; font-size: 24px; border-radius: 14px; }
.sperr-btn:hover { background: var(--rose-hauch); }
.sperr-input { width: 64px; height: 36px; padding: 4px 6px; text-align: center; font-weight: 700; font-size: 15px; border: 1px solid var(--linie); border-radius: 10px; background: var(--bg); color: var(--text); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.sperr-input::-webkit-outer-spin-button, .sperr-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sperr.gross .sperr-input { width: 96px; height: 48px; font-size: 20px; border-radius: 14px; }
.sperr-input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-hell); }
.sperr-schritt { font-size: 11.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; min-width: 28px; }
.sperr.gross .sperr-schritt { font-size: 13px; }
/* Schnellwahl: eine Reihe von links nach rechts, bei Platzmangel seitlich wischbar — nie umbrechen */
.sperr-schnell { display: flex; flex-wrap: nowrap; gap: 4px; height: 30px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sperr-schnell::-webkit-scrollbar { display: none; }
.sperr.gross .sperr-schnell { height: 40px; gap: 6px; }
.sperr-schnell button { flex: none; min-width: 36px; height: 30px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--linie); background: var(--karte); color: var(--text-2); font-size: 12.5px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.sperr.gross .sperr-schnell button { min-width: 52px; height: 40px; font-size: 14.5px; }
.sperr-schnell button.on { background: var(--text); border-color: var(--text); color: var(--invers, #fff); }
.sperr-schnell button:hover:not(.on) { background: var(--rose-hauch); }
.sperr-speichern { height: 36px; min-height: 0; padding: 0 12px; font-size: 13px; margin-left: auto; }
.sperr.js .sperr-speichern { display: none; }
/* „Gespeichert“ liegt über dem Kopf, nimmt keinen Platz ein */
.sperr-ok { position: absolute; right: 12px; top: 56px; padding: 2px 8px; border-radius: 999px; background: var(--positiv-hell); font-size: 11.5px; font-weight: 700; color: var(--positiv); z-index: 1; }
.sperr.gross .sperr-ok { right: 16px; top: 79px; font-size: 13px; padding: 3px 10px; }
.sperr-ok.fehler { background: var(--negativ-hell); color: var(--negativ); }
/* Bestellt-Hinweis: Platz immer reserviert, Inhalt nur im Sperrbestand sichtbar */
.sperr-bestellt { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 36px; padding: 0 10px; border-radius: 12px; background: var(--negativ-hell); color: var(--negativ); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.sperr-bestellt.leer { visibility: hidden; }
.sperr.gross .sperr-bestellt { font-size: 14.5px; height: 48px; padding: 0 14px; }
.sperr-bestellt form { margin: 0; }
.sperr-bestellt-btn { height: 28px; min-height: 0; padding: 0 12px; font-size: 13px; }
.sperr.gross .sperr-bestellt-btn { height: 38px; }
@media (max-width: 420px) { .sperr-btn { width: 32px; } .sperr-input { width: 54px; } .sperr-schnell button { min-width: 32px; padding: 0 7px; } }

/* Muss bestellt werden */
.sb-karte { margin: 0 var(--rand) 12px; border-radius: var(--r-l); background: var(--karte); box-shadow: inset 0 0 0 2px var(--negativ), var(--schatten-s); overflow: hidden; }
.sb-karte.bestellt { box-shadow: inset 0 0 0 2px var(--amber), var(--schatten-s); }
.sb-kopf { display: flex; gap: 14px; padding: 14px 16px; color: inherit; text-decoration: none; }
.sb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sb-zahlen { font-size: 14px; font-weight: 600; margin-top: 4px; }
.sb-status { margin-top: 4px; }
.sb-aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 0 16px 14px; }
.sb-aktionen form { margin: 0; display: flex; gap: 8px; align-items: center; }
.sb-eingang { flex: 1; min-width: 240px; }
.sb-eingang .input { min-height: 40px; padding: 6px 10px; }
.sb-eingang input[name="menge"] { width: 96px; flex: none; }
.sb-eingang .btn { flex: none; min-height: 40px; padding: 7px 14px; }

/* Galerie der Detailseite */
.galerie { display: flex; flex-direction: column; gap: 8px; }
.galerie-leiste { display: flex; gap: 8px; padding: 0 var(--rand); overflow-x: auto; scrollbar-width: none; }
.galerie-leiste::-webkit-scrollbar { display: none; }
.galerie-thumb { flex: none; width: 60px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--linie-2); cursor: pointer; }
.galerie-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galerie-thumb.on { border-color: var(--rot-stark); }
.galerie-verwalten { margin: 0 var(--rand); font-size: 13.5px; }
.galerie-verwalten summary { cursor: pointer; color: var(--text-2); font-weight: 600; padding: 4px 0; }
.galerie-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linie-2); }
.galerie-zeile img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.galerie-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.galerie-info small { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.galerie-zeile form { margin: 0; }
.viewer-pfeil { top: 50%; right: auto; transform: translateY(-50%); width: 44px; height: 64px; border-radius: 14px; font-size: 34px; line-height: 1; z-index: 2; }
.viewer-pfeil.links { left: 10px; }
.viewer-pfeil.rechts { right: 10px; }
.qty-direkt { width: 84px; min-height: 48px; text-align: center; font-weight: 700; font-size: 18px; padding: 6px 8px; }

/* Probleme beim Zuordnen */
.zu-stand { margin: 0 var(--rand) 8px; font-size: 14.5px; color: var(--text-2); }
.zu-stand b { color: var(--negativ); font-size: 18px; }
.zu-frage { margin: 0 var(--rand) 14px; padding: 16px; border-radius: var(--r-l); background: var(--karte); box-shadow: inset 0 0 0 2px var(--negativ-hell), var(--schatten-s); }
.zu-frage.beantwortet { box-shadow: var(--schatten-s); }
.zu-kopf { display: flex; gap: 12px; align-items: flex-start; }
.zu-nr { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--rose-hell); color: var(--rot-stark); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.zu-titel { margin: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.zu-text { margin: 6px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.zu-fotos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.zu-foto { display: flex; flex-direction: column; gap: 3px; width: 150px; min-width: 0; text-decoration: none; color: var(--text-2); font-size: 11px; }
.zu-foto small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zu-foto img { width: 150px; height: 150px; object-fit: cover; border-radius: 12px; background: var(--linie-2); }
.zu-form { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.zu-option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 12px; cursor: pointer; font-size: 14.5px; }
.zu-option:hover { background: var(--rose-hauch); }
.zu-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.zu-option .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--text-3); flex: none; }
.zu-option input:checked ~ .radio { border: 7px solid var(--rot-stark); }
.zu-option input:focus-visible ~ .radio { box-shadow: 0 0 0 3px var(--rose-hell); }
.zu-form .btn { align-self: flex-start; margin-top: 6px; }
.zu-antwort { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; font-size: 14.5px; }
.zu-antwort small { color: var(--text-2); }
.zu-aendern summary { cursor: pointer; color: var(--rot-stark); font-weight: 600; font-size: 13.5px; margin-top: 4px; }
@media (max-width: 420px) { .mz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mz-leiste .seg { width: 100%; } }
:root[data-theme="dunkel"] .bild-fehlt { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .04) 14px 28px); }
:root[data-theme="dunkel"] .bild-fehlt-gross { background: repeating-linear-gradient(135deg, var(--linie-2) 0 16px, rgba(255, 255, 255, .035) 16px 32px); }
:root[data-theme="dunkel"] .kachel-menge { background: var(--rose-hell); color: var(--rot-stark); }

/* ══ Bohrkronen (Hauptlager · Autos) ═══════════════════════════════════ */
.kr-seite { padding-bottom: 24px; }
.kr-schmal { max-width: 640px; }
.kr-fotos { display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--rand) 10px; scrollbar-width: none; }
.kr-fotos::-webkit-scrollbar { display: none; }
.kr-foto { flex: none; display: block; width: 168px; height: 112px; border-radius: var(--r); overflow: hidden; box-shadow: var(--schatten-s); }
.kr-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kr-foto { position: relative; }
.kr-foto span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 11.5px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.kr-thumb { flex: none; display: block; width: 40px; height: 40px; border-radius: 9px; overflow: hidden; box-shadow: var(--schatten-s); }
.kr-thumb img, img.kr-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
img.kr-thumb.klein { width: 32px; height: 32px; border-radius: 8px; }
.kr-thumb.gross { width: 44px; height: 44px; margin-left: auto; }
.kr-thumb.karte { width: 88px; height: 88px; border-radius: 12px; }
.kr-gruppe { display: flex; align-items: center; gap: 8px; }
.kr-zuordnung { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.kr-haken { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.kr-haken label { display: inline-flex; align-items: center; gap: 4px; }
.kr-reiter a b { font-weight: 700; margin-left: 4px; font-variant-numeric: tabular-nums; }
.kr-stand { display: flex; flex-direction: column; gap: 2px; margin: 0 var(--rand) 10px; font-size: 13.5px; color: var(--text-2); }
.kr-stand small { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.kr-kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 0 var(--rand) 10px; }
.kr-kpis .kpi { padding: 10px 12px; }
.kr-kpis .kpi-num { font-size: 22px; margin-top: 2px; }
.kr-kpis .kpi-label { font-size: 11.5px; }
.kr-kpis .kr-gesamt .kpi-num { font-weight: 800; }
.kr-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; padding: 2px var(--rand) 8px; }
.kr-feld { display: flex; flex-direction: column; gap: 4px; min-width: 120px; flex: 1 1 140px; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.kr-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 10px 2px; }
.kr-filter .btn { flex: none; }
.kr-liste { margin: 0 var(--rand) 6px; border-radius: var(--r); box-shadow: var(--schatten-s); background: var(--karte); overflow: hidden; }
.kr-zeile, .kr-krone { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--linie-2); color: inherit; text-decoration: none; min-height: 48px; }
.kr-zeile:last-child, .kr-krone:last-child { border-bottom: 0; }
.kr-d { flex: none; min-width: 72px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kr-d.gross { font-size: 22px; min-width: 96px; }
.kr-mitte { flex: 1; min-width: 0; font-size: 14.5px; }
.kr-mitte b { font-weight: 650; font-variant-numeric: tabular-nums; }
.kr-mitte small { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; overflow-wrap: break-word; }
.kr-geschaetzt { font-style: normal; font-size: 12px; color: var(--text-2); margin-left: 4px; }
.kr-n { flex: none; min-width: 32px; text-align: right; font-weight: 750; font-size: 16px; font-variant-numeric: tabular-nums; }
.kr-aktion { flex: none; display: flex; gap: 6px; align-items: center; }
.kr-aktion .btn { padding: 8px 12px; font-size: 13.5px; }
.kr-fuss { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px var(--rand) 6px; font-size: 12.5px; color: var(--text-2); }
.kr-verwalten { margin: 6px var(--rand); }
.kr-verwalten summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 8px 0; }
.kr-foto-zeile { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linie-2); }
.kr-foto-zeile img { border-radius: 10px; object-fit: cover; }
.kr-foto-zeile span { flex: 1; min-width: 0; font-size: 13.5px; }
.kr-foto-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.kr-foto-form .btn, .kr-zuordnung .btn { align-self: flex-start; }
.kr-karte { display: flex; align-items: center; gap: 14px; margin: 4px var(--rand) 12px; padding: 14px 16px; border-radius: var(--r); box-shadow: var(--schatten-s); background: var(--karte); }
.kr-form { display: flex; flex-direction: column; gap: 6px; margin: 0 var(--rand); }
.kr-form .btn { align-self: flex-start; }
.kr-form .kr-gross { margin-top: 16px; padding: 13px 22px; font-size: 15px; }
.kr-fehler { color: var(--negativ); font-size: 13.5px; font-weight: 600; margin: 4px 0; }
.kr-ziele { display: flex; flex-direction: column; gap: 6px; }
.kr-gefahr { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px var(--rand) 0; padding-top: 14px; border-top: 1px solid var(--linie-2); }
.kr-gefahr form { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .kr-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .kr-kpis .kpi { padding: 8px 9px; } .kr-kpis .kpi-label { font-size: 11px; } .kr-kpis .kpi-num { font-size: 20px; } }
.kr-suche { padding-top: 2px; }
.kr-fragen { padding-top: 0; }
.kr-bereich { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.kr-bereich label { display: flex; align-items: center; gap: 6px; }
.kr-bereich .input { width: 96px; min-height: 40px; padding: 6px 10px; }
@media (max-width: 420px) {
  .kr-zeile, .kr-krone { gap: 10px; padding: 10px 12px; }
  .kr-d { min-width: 60px; }
  .kr-aktion { flex-direction: column; align-items: stretch; gap: 4px; }
  .kr-aktion .btn { padding: 7px 10px; font-size: 12.5px; }
}

/* ── Lagermeldungen an das Kontrollmanagement (08.11.2026) ──────────────
   Knopf „Fehlbestand oder Problem melden“ klappt ein kleines Formular auf (details/summary);
   daneben für Berechtigte „Meldungen · N offen“. Liste nutzt die Verlauf-Karten (.tx). */
.meld { flex-direction: column; align-items: stretch; }
.meld.buendig { padding-left: 0; padding-right: 0; margin-top: 4px; }
.meld .btn { flex: none; }
.meld details { width: 100%; }
.meld summary.btn { display: flex; width: 100%; list-style: none; }
.meld summary.btn::-webkit-details-marker { display: none; }
.meld details[open] summary.btn { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.meld-form { padding: 12px 14px 14px; border: 1px solid var(--linie); border-top: 0; border-radius: 0 0 14px 14px; background: var(--karte); }
.meld-form .form-label { margin-top: 12px; }
.meld-form textarea.input { min-height: 72px; }
.meld-aktionen { display: flex; gap: 10px; margin-top: 12px; }
.meld-liste { justify-content: flex-start; }
.meld-erledigt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.meld-erledigt .input { flex: 1 1 200px; min-height: 44px; }
.meld-erledigt .btn { flex: none; }
.tx a.tx-product { display: block; color: inherit; text-decoration: underline; text-decoration-color: var(--linie); }
/* ── „Wer macht was?“ (konto/wer_macht_was.html): Struktur-Seite, neutral, linksbündig ───────────── */
.wmw-regel p { margin: 0; font-size: 15px; line-height: 1.5; }
.wmw-merksatz { margin-top: 10px !important; font-size: 16.5px; }
.wmw-titel { font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.wmw-unter { font-size: 14px; font-weight: 500; color: var(--text-2); }
.wmw-personen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wmw-aufgaben { margin: 12px 0 0; padding-left: 20px; font-size: 14.5px; line-height: 1.5; }
.wmw-aufgaben li + li { margin-top: 4px; }
.wmw-zeile { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; }
.wmw-thema { font-size: 14.5px; font-weight: 600; }
.wmw-kette { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 8px; font-size: 14px; }
.wmw-stufe { display: inline-flex; flex-direction: column; min-width: 0; }
.wmw-stufe b { font-weight: 650; }
.wmw-stufe small { font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.wmw-pfeil { color: var(--text-3); font-weight: 600; padding-top: 1px; }
.wmw-fuss { margin-top: 20px; color: var(--text-3); }
@media (min-width: 720px) {
  .wmw-zeile { flex-direction: row; align-items: flex-start; gap: 16px; }
  .wmw-thema { flex: 0 0 38%; }
  .wmw-kette { flex: 1; }
}

/* ── Passwort- und PIN-Felder: Auge zum Ein- und Ausblenden (passwort.js, 09.11.2026) ───────────── */
.pw-feld { position: relative; display: block; min-width: 0; }
.pw-feld > .input { padding-right: 50px; }
.pw-auge {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  background: none; border: 0; border-radius: 10px; color: var(--text-2); cursor: pointer;
}
.pw-auge:hover { color: var(--text); background: var(--linie); }
.pw-auge:focus-visible { outline: 2px solid var(--rose); outline-offset: 1px; }
.pw-auge[aria-pressed="true"] { color: var(--text); }
/* Edge/Windows bringt ein eigenes Auge mit — sonst stünden zwei nebeneinander */
input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear { display: none; }
.tm-pin-form .pw-feld > .input { width: 176px; }

/* ── Kein Schreib-Cursor in reinem Text (Galip, 09.11.2026) ─────────────────────────────────────
   Texte, Zahlen und Überschriften sehen nicht mehr aus, als könne man hineintippen: kein blinkender
   Strich nach einem Klick (auch nicht mit eingeschalteter Caret-Navigation des Browsers) und kein
   Text-Mauszeiger. Eingabefelder behalten beides; Links und Knöpfe behalten die Hand. */
body { caret-color: transparent; cursor: default; }
input, textarea, select, [contenteditable="true"], [contenteditable=""] { caret-color: auto; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]),
textarea, [contenteditable="true"], [contenteditable=""] { cursor: text; }
a[href], button:not(:disabled), summary, label[for], select, [role="button"], [data-karte-href] { cursor: pointer; }

/* ── Maschinen: „Maschinen für heute“ je Auftrag und „Verfügbar in der Firma“ (Galip, 09.11.2026) ──────────
   Mein Tag und Maschinen-Startseite: je Auftrag eine kr-liste (Kopfzeile = Auftrag mit Uhrzeit, darunter die
   benötigten Maschinen mit Chip „erfasst“ grün bzw. „noch offen“ neutral). Darunter auf der Startseite die freien
   Maschinen und der Hauptlager-Bestand je Kategorie; das Suchfeld filtert im Browser (app.js, data-such-gruppe). */
.gm-heute-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 var(--rand) 10px; }
.gm-heute-kopf > a:not(.btn) { font-size: 16px; font-weight: 700; letter-spacing: -.015em; color: var(--text); text-decoration: none; }
.gm-heute-kopf .btn { min-height: 44px; padding: 9px 16px; }
.gm-heute-kopf .chip { flex: none; }
.gm-heute-gruppe { margin-bottom: 10px; }
.gm-heute-auftrag .kr-mitte b { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.gm-heute-auftrag::after, .gm-vf-kronen .kr-zeile::after { content: ""; width: 8px; height: 8px; flex: none; border-right: 1.75px solid var(--text-3); border-top: 1.75px solid var(--text-3); transform: rotate(45deg); margin-right: 4px; }
.gm-heute-zeile .kr-mitte b { font-weight: 600; }
.gm-heute-zeile .chip { flex: none; }
.bento .gm-heute { display: flex; flex-direction: column; gap: 8px; }
.bento .gm-heute .gm-heute-kopf, .bento .gm-heute .kr-liste { margin: 0; }
.gm-vf-titel { display: flex; align-items: center; gap: 8px; padding: 14px var(--rand) 6px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.gm-vf-titel a { margin-left: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.gm-vf-kat { padding: 10px var(--rand) 6px; font-size: 13px; font-weight: 650; color: var(--text-2); }
.kr-d.gm-vf-nr { min-width: 54px; font-size: 13.5px; font-weight: 650; color: var(--text-2); }
.row-bestand.gm-vf-bestand { display: block; }
.gm-vf-kronen { margin-bottom: 4px; }
.gm-vf-kronen .ico { flex: none; color: var(--neutral); }
/* ── Hauptlager übersichtlicher (Galip, 09.11.2026) ─────────────────────────────────────────────
   Ganz oben die Kronen als eigene Karte über die volle Breite (auch auf Tablet/Desktop, wo das
   Kachelraster mehr Spalten hat), darunter die Gegenstände. „Maschinen hier“ steht in allen
   Lagerbereichen eingeklappt am Ende: Überschrift mit Anzahl, Pfeil zum Aufklappen, „Scannen“ rechts. */
.grid-admin.lager-kronen { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
.lager-kronen .cat-tile.wide { grid-column: auto; }
.lager-kronen + .kr-fragen { padding-top: 10px; }
.lager-maschinen > summary { list-style: none; flex-wrap: wrap; row-gap: 6px; }
.lager-maschinen > summary::-webkit-details-marker { display: none; }
.lager-maschinen > summary::after {
  content: ""; width: 8px; height: 8px; flex: none; margin: -4px 0 0 2px;
  border-right: 1.75px solid var(--text-3); border-bottom: 1.75px solid var(--text-3); transform: rotate(45deg); transition: transform .2s;
}
.lager-maschinen[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.lager-maschinen > summary > a { order: 1; }

/* ── Kalender: heute eindeutig erkennbar (Galip, 09.11.2026) ────────────────────────────────────
   Verstärkt wird nur die bisherige Heute-Markierung; der übrige Kalender bleibt, wie er ist.
   Monat und Jahr: gefüllter Kreis um die Tageszahl, die Monatszelle dezent getönt. Ein anders
   gewählter Tag behält seinen Kreis, aber neutral statt rot — der rote Kreis heißt damit immer „heute“.
   Woche: im Streifen (Handy) der gefüllte Kreis, in den Spalten (Desktop) getönte Spalte mit
   Rand und „Heute“-Marke im Spaltenkopf; Tag: „Heute“-Marke in der Kopfzeile. Mitarbeiter- und
   Projektplaner: gefüllter Spaltenkopf und getönte Spalte. Nachtmodus über die Farbvariablen. */
.heute-marke {
  display: inline-flex; align-items: center; flex: none; padding: 2px 8px; border-radius: 999px;
  background: var(--knopf); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.35; letter-spacing: .01em; vertical-align: 1px;
}
.kal-tag.heute { background: var(--rose-hauch); }
.kal-tag.heute .z { background: var(--knopf); color: #fff; box-shadow: none; font-weight: 750; }
.kal-tag.gewaehlt:not(.heute) .z { background: var(--text); color: var(--invers); }
.woche-streifen a.heute b {
  display: flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 4px;   /* so hoch wie die Zahl (17 px × 1,5) */
  border-radius: 999px; background: var(--knopf); color: #fff;
}
.woche-spalten .woche-tag.heute { background: var(--rose-hauch); box-shadow: inset 0 0 0 1.5px var(--rose); }
/* „Heute“-Marke sitzt auf der oberen Kante der Spalte: kein Zeilenumbruch im schmalen Spaltenkopf, Karten bleiben auf einer Höhe */
.woche-spalten .woche-tag.heute .section-label { position: relative; }
.woche-spalten .woche-tag.heute .heute-marke { position: absolute; top: -10px; left: 10px; }
.cal-mini .g span.today { background: var(--knopf); color: #fff; font-weight: 700; border-radius: 999px; box-shadow: none; }
.cal-mini .g span.today.ev { box-shadow: 0 0 0 1.5px var(--karte), 0 0 0 3px var(--knopf); }
.planner th.today { background: var(--knopf); color: #fff; font-weight: 700; }
.planner td.heute { background: var(--rose-hauch); }


/* ── Auftragsseite für Monteure (Galip, 09.11.2026) ────────────────────────────────────────────
   Oben Baustelle → Ansprechpartner (Nummer anklickbar) → Team → Fahrzeug, der Kunde zurückhaltend darunter.
   Danach Sprungleiste (Fotos, Fertig melden · Abnahmeprotokoll, Problem), „Was ist zu tun“ (Bohrungen groß,
   Abfangen, Arbeitsweise, Nachbearbeitung, Vorgaben), Sicherheit, Beschreibung mit „Weiterlesen“, Freitext
   „Weitere Hinweise zur Ausführung“ aufklappbar, interne Notizen nur für die Planung (grau).
   „Benötigte Maschinen“ kompakt: Zahl + „Maschinen vorbereiten“, Liste und Bedarf festlegen aufklappbar.
   Formular: Bohrungszeilen (Stück, Ø, Bauteil, Tiefe) passen auch bei 390 px in eine Zeile. Farben neutral,
   Grün nur für „alle Maschinen erfasst“; Nachtmodus über die Farbvariablen. */
a.dk-tel { color: var(--text); font-size: 15px; font-weight: 600; margin-top: 2px; text-decoration: underline; text-underline-offset: 3px; }
.dk-zeile.dk-neben { padding: 9px 0; }
.dk-neben .v { font-size: 14px; font-weight: 500; color: var(--text-2); }

.auftrag-sprung { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 var(--rand) 12px; }
.auftrag-sprung a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px;
  background: var(--linie-2); color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.auftrag-sprung a:hover { background: var(--rose-hauch); }

.zu-tun { display: block; margin: 0 var(--rand) 12px; padding: 14px 16px; }
.zu-tun > .k { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.zu-tun-bohrungen { list-style: none; margin: 0; padding: 0; }
.zu-tun-bohrungen li { padding: 3px 0; font-size: 18px; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.zu-tun-summe { margin: 2px 0 4px; font-size: 13px; color: var(--text-2); }
.zu-tun-zeile {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--linie-2); font-size: 15px;
}
.zu-tun-zeile span { min-width: 120px; color: var(--text-2); }
.zu-tun-zeile b { font-weight: 650; overflow-wrap: anywhere; }

.text-mehr { margin-top: 6px; }
.text-mehr summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: normal; }
.text-aufklapp { display: block; margin: 0 var(--rand) 12px; padding: 0; }
.text-aufklapp summary { display: flex; align-items: center; min-height: 50px; padding: 12px 16px; cursor: pointer; font-size: 15px; font-weight: 650; }
.text-aufklapp-inhalt { padding: 0 16px 14px; white-space: pre-line; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.detail-text.intern { background: var(--linie-2); box-shadow: none; border-color: transparent; }
.intern-marke { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--karte); color: var(--text-2); font-size: 11.5px; font-style: normal; font-weight: 700; }

.gm-bedarf-kurz { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 6px 0 4px; }
.gm-bedarf-zahl { font-size: 15px; }
.gm-bedarf-zahl.ok { color: var(--positiv); }
.gm-bedarf-liste { margin-top: 8px; border-top: 1px solid var(--linie-2); }
.gm-bedarf-liste > summary { padding: 10px 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); }
.gm-bedarf-liste .gm-zeile-form { margin: 2px 0 10px; }

.bohr-tabelle { display: grid; gap: 6px; }
.bohr-kopf, .bohr-zeile { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 6px; }
.bohr-kopf span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.bohr-zeile .input { min-height: 44px; padding: 10px; }
.bohr-plus { margin-top: 8px; }
.auswahl-reihe { display: flex; flex-wrap: wrap; gap: 0 18px; }
.auswahl-reihe .check { padding: 6px 0; }
/* ── Kalender: volle Breite, Tagesliste direkt darunter (Galip, 09.11.2026) ─────────────────────
   Kein Umbau, nur Platz: Auf der Kalender-Übersicht (body.kal-breit) reichen Monats- und Wochenraster bis an den
   rechten Rand des Inhaltsbereichs (statt höchstens 820/1560 px). Die Liste des gewählten Tages steht unter dem
   Monat (vorher Seitenspalte 360 px) bzw. unter dem Wochenstreifen; antippen eines Tages lädt nur diese Liste nach.
   Großer Bildschirm: Karten gleich breit nebeneinander, Handy/Tablet untereinander wie bisher. */
@media (min-width: 700px) {
  body.kal-breit .shell { max-width: none; }
}
.kal-tl-kopf > span { min-width: 0; }
.kal-tl-heute { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: 0; margin-left: 4px; }
.kal-tagesliste[aria-busy="true"] { opacity: .55; transition: opacity .15s; }
@media (min-width: 1100px) {
  .kal-layout { display: block; }
  .kal-layout .kal-tagesliste { padding-top: 4px; }
  .kal-layout .kal-tagesliste .section-label { padding: 22px var(--rand) 12px; }
  .kal-layout .empty { padding-left: var(--rand); }
  .kal-tl-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 0 var(--rand); align-items: start; }
  .kal-tl-karten .termin-karte, .kal-layout .kal-tl-karten .termin-karte { margin: 0; }
  .kal-tl-karten .empty, .kal-layout .kal-tl-karten .empty { padding: 8px 0 20px; }
}

/* ── Abwesenheit: zwei Wege „Geplant“ / „Kurzfristig melden“ (Galip, 09.11.2026) ───────────────
   Kopf im Abwesenheitsformular: welcher Weg gerade gilt, kurz erklärt, Wechsel als Link darunter.
   Neutral (keine Bedeutungsfarbe), linksbündig untereinander. */
.abw-weg { display: grid; gap: 3px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r); background: var(--linie-2); }
.abw-weg b { font-size: 15px; font-weight: 650; }
.abw-weg span { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.abw-weg a { font-size: 13.5px; font-weight: 600; margin-top: 4px; text-decoration: none; }
.abw-wege .btn { flex: 1 1 200px; }
/* ── Mein Tag als Arbeitswerkzeug (Masterprompt Galip, 09.11.2026) ─────────────────────────────
   Oben das Fahrzeug des Tages (groß, mit Kennzeichen — Fahrzeugfarbe nur als kleiner Punkt), darunter
   „Hinweise“ (bestehende .hinweise-Karte), die Einsätze als senkrechte Reihenfolge mit großer Nummer:
   Nr. 1 kräftig in der Markenfarbe, Nr. 2 zurückhaltend, ab Nr. 3 neutral — keine Bewertung, keine
   Fahrzeugfarben. Status nur als Chip (erledigt grün). Maschinen nur als kompakte Karte (Zähler).
   Nachtmodus über die Farbvariablen; 390 px ohne waagerechtes Scrollen (min-width: 0, Umbrüche). */
.mt-fahrzeug { display: grid; gap: 10px; margin: 8px var(--rand) 0; padding: 16px 18px; border-radius: var(--r-xl);
  background: var(--glas); border: 1px solid var(--rahmen); box-shadow: var(--schatten); }
.mt-fz-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.mt-fz { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mt-fz-ico { width: 54px; height: 54px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 16px;
  background: var(--neutral-hell); color: var(--neutral); }
.mt-fz-name { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.mt-fz-name b { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.mt-fz-name b .dot { width: 10px; height: 10px; }
.mt-kennzeichen { display: inline-block; padding: 2px 8px; border: 1.5px solid var(--text-2); border-radius: 6px; font-size: 13.5px; font-weight: 700;
  letter-spacing: .05em; color: var(--text); font-variant-numeric: tabular-nums; }
.mt-fz.leer b { font-size: 18px; font-weight: 650; color: var(--text-2); }
.mt-fz-check { font-size: 14px; font-weight: 600; color: var(--rot-stark); text-decoration: none; }
.mt-fz-ok { justify-self: start; }
.mt-hinweise .hinweise-kopf { align-items: center; padding-bottom: 12px; }
.mt-alle { margin-left: auto; flex: none; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--rot-stark); }
.mt-hinweis-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mt-hinweis-tags small { font-size: 12.5px; color: var(--text-2); }
.mt-hinweise .hinweis-titel { margin-top: 6px; overflow-wrap: anywhere; }
.mt-leer { margin: 0; padding: 16px 0 18px; font-size: 14px; color: var(--text-2); }
.mt-aenderung .row-name { overflow-wrap: anywhere; }
.mt-reihe { list-style: none; margin: 0; padding: 2px var(--rand) 6px; }
.mt-schritt { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-bottom: 12px; min-width: 0; }
.mt-schritt:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--linie); }
.mt-nr { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--grau-hell); color: var(--text-2); }
.mt-schritt:first-child .mt-nr { font-size: 22px; background: var(--knopf); color: #fff;
  box-shadow: 0 2px 6px rgba(173, 92, 92, .25), 0 8px 18px rgba(173, 92, 92, .22); }
.mt-schritt:nth-child(2) .mt-nr { background: var(--rose-hell); color: var(--rot-stark); }
.mt-karte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: var(--r);
  background: var(--karte); border: 1px solid var(--rahmen); box-shadow: var(--schatten-s); color: inherit; text-decoration: none; }
a.mt-karte:hover { box-shadow: var(--schatten); }
.mt-zeit { font-size: 13.5px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mt-titel { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; overflow-wrap: anywhere; }
.mt-unter { font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.mt-ort { display: flex; align-items: flex-start; gap: 5px; font-size: 13.5px; color: var(--text-2); overflow-wrap: anywhere; }
.mt-ort .ico { flex: none; margin-top: 2px; }
.mt-ort > span { min-width: 0; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mt-chips .chip .ico { margin-right: 3px; }
.mt-schritt.erledigt .mt-titel { color: var(--text-2); }
.gm-meintag .mt-maschinen { margin-bottom: 10px; }
.mt-maschinen-ico { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 14px;
  background: var(--neutral-hell); color: var(--neutral); }
.mt-maschinen.alles-da .mt-maschinen-ico { background: var(--positiv-hell); color: var(--positiv); }
.mt-maschinen .chip { flex: none; }
/* Mitteilung: „An: bestimmte Mitarbeiter“ — Personenliste nur bei dieser Wahl (ohne :has() immer sichtbar) */
.mt-an { margin-bottom: 4px; }
.form-block:has(.mt-an input[value="alle"]:checked) .mt-empfaenger { display: none; }
/* ── Maschinen als Arbeitsfläche des Monteurs (Galip, 09.11.2026) ──────────────────────────────────
   „Für heute benötigt“ oben auf der Maschinen-Startseite: je offenem Bedarf aufklappbar „Geeignete Geräte“
   derselben Kategorie mit einheitlichem Status-Chip (.gm-lage) — verfügbar grün mit „Für diesen Auftrag nehmen“,
   unterwegs neutral, gesperrt/in Reparatur rot und nicht anklickbar. Dieselben Chips in „Meine Maschinen“ und
   „Verfügbar in der Firma“. Nachtmodus über die Farbvariablen; ab 390 px untereinander. */
.gm-fuer-heute { padding-bottom: 6px; }
.gm-nur-auftrag { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -2px var(--rand) 10px; font-size: 14px; font-weight: 600; }
.gm-nur-auftrag a { text-decoration: none; }
.gm-bedarf { border-bottom: 1px solid var(--linie-2); }
.gm-bedarf:last-child { border-bottom: 0; }
.gm-bedarf > .gm-heute-zeile { border-bottom: 0; }
.gm-heute-zeile .chip { max-width: 48%; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.gm-alt { margin: -4px 14px 10px; border-radius: 12px; background: var(--linie-2); }
.gm-alt > summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 650; color: var(--text-2); }
.gm-alt > summary::-webkit-details-marker { display: none; }
.gm-alt > summary::after {
  content: ""; width: 7px; height: 7px; flex: none; margin: -3px 0 0 auto;
  border-right: 1.75px solid var(--text-3); border-bottom: 1.75px solid var(--text-3); transform: rotate(45deg); transition: transform .2s;
}
.gm-alt[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.gm-alt > summary:focus-visible { outline: 2px solid var(--rose); outline-offset: 1px; border-radius: 12px; }
.gm-alt-hinweis { margin: 0; padding: 4px 12px 10px; font-size: 13px; color: var(--text-2); }
.gm-alt-zeile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--karte); color: inherit; text-decoration: none; }
.gm-alt-zeile .kr-mitte b { font-weight: 600; }
.gm-alt-zeile .kr-aktion .btn { white-space: normal; text-align: center; line-height: 1.2; }
.gm-alt-gesperrt { opacity: .75; cursor: not-allowed; }
.gm-lage { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 5px; }
.gm-lage .chip { white-space: normal; overflow-wrap: anywhere; }
.hinweis-box.gm-vorwahl { margin: 0 var(--rand) 12px; background: var(--neutral-hell); color: var(--text); }
.hinweis-box.gm-vorwahl a { margin-left: 4px; font-weight: 600; }
.gm-zeile-form:has(.gm-ersatz-haken) { flex-wrap: wrap; }
.gm-ersatz-haken { flex-basis: 100%; padding: 4px 2px; font-weight: 500; }
.gm-ersatz-haken small { color: var(--text-2); font-weight: 400; }
.gm-ersatz-btn { font-size: 12.5px; padding: 4px 8px; white-space: nowrap; }
.gm-bedarf-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; text-decoration: none; }
@media (max-width: 420px) {
  .gm-alt { margin: -4px 10px 10px; }
  .gm-alt-zeile { flex-wrap: wrap; }
  .gm-alt-zeile .kr-aktion { flex-basis: 100%; flex-direction: row; }
  .gm-alt-zeile .kr-aktion .btn { flex: 1; }
}

/* ── Magazin: jede Produktkachel zuverlässig anklickbar (Galip, 09.11.2026) ─────────────────────────
   Ursache: Der Link der Kachel endete über der Sperrbestand-Leiste — deren Text, Balken und „bestellt“-Zeile
   (unteres Viertel bis Drittel jeder Kachel, bei „diverse“ und für Mitarbeiter reine Anzeige) öffneten nichts.
   Jetzt deckt der eine Artikel-Link die ganze Kachel ab (::after); nur die Bedienelemente der Leiste
   (−/+/Eingabe/Schnellwahl, „Bestellt“) liegen darüber und bleiben eigenständig. Tastatur: Fokusrahmen um die Kachel.
   Dazu: das unsichtbare Hersteller-Label (.sr-only, absolut) entkam der waagrecht scrollenden Filterzeile und
   machte die Seite am Handy breiter als den Bildschirm (Kacheln rechts abgeschnitten). */
.kachel { position: relative; }
.kachel-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kachel .sperr-form, .kachel [data-bestellt-form] { position: relative; z-index: 2; }
.kachel:has(> .kachel-link:focus-visible) { outline: 3px solid var(--rose); outline-offset: 2px; }
@supports selector(:has(*)) { .kachel-link:focus-visible { outline: none; } }
.mz-select { position: relative; }


/* ── QR-Code und Etikett-Bilder auf der Gerätekarte (09.11.2026) ── */
.karte.gm-qr-karte h2 { margin: 0 0 10px; font-size: 17px; }
.gm-qr-karte .gm-qr { border: 1px solid var(--linie, rgba(0,0,0,.08)); }
.gm-etikett-knoepfe { padding: 10px 0 0; flex-wrap: wrap; }
.gm-etikett-knoepfe .btn { flex: 1 1 100%; justify-content: center; }
.karte.gm-qr-live { border: 2px solid var(--gruen, #2e7d4f); }
.karte.gm-qr-live h2 { margin: 0 0 6px; font-size: 18px; }
.karte.gm-qr-live p { margin: 0 0 10px; }
.gm-qr-live-geraet { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; }
.gm-qr-live-geraet b { font-size: 22px; }
.gm-qr-stand { margin: 0 0 10px; }
.gm-schritte { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; }
.gm-auswahl small.pos { color: var(--gruen, #2e7d4f); }
/* QR-Status in Listen und auf der Gerätekarte (nur Führung) */
.chip.gm-qr-marke { font-size: 12px; padding: 2px 8px; vertical-align: middle; white-space: nowrap; }
.gm-text .chip.gm-qr-marke { align-self: flex-start; margin: 2px 0; }
.gm-qr-registriert { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 12px; padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--gruen, #2e7d4f) 14%, transparent); border: 2px solid var(--gruen, #2e7d4f); font-weight: 600; }
.gm-qr-registriert small { flex-basis: 100%; font-weight: 400; opacity: .8; }
.gm-qr-live-geraet span b { font-size: inherit; }

/* ── Maschinen-Seite der Führung: Reiter nebeneinander, Autos im Vergleich (09.11.2026) ── */
.gm-fuehrung { display: grid; gap: 14px; }
.gm-fl-oben { display: grid; gap: 10px; }
.gm-fl-zahlen { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--text-2, inherit); }
.gm-fl-zahlen b { font-variant-numeric: tabular-nums; font-size: 17px; }
.gm-fl-zahlen .ok b { color: var(--gruen, #2e7d4f); }
.gm-fl-links { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-reiter { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: thin; }
/* Ab Tablet-Breite umbrechen statt waagerecht scrollen (Windows zeigt sonst eine Scrollleiste, Reiter rechts abgeschnitten) */
@media (min-width: 700px) { .gm-reiter { flex-wrap: wrap; overflow: visible; } }
.gm-reiter a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--linie, rgba(0,0,0,.1)); background: var(--karte); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.gm-reiter a b { font-weight: 500; font-size: 12.5px; opacity: .65; font-variant-numeric: tabular-nums; }
.gm-reiter a i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.gm-reiter a.on { background: var(--text, #1d1d1b); color: var(--bg, #fff); border-color: transparent; }
.gm-fl-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; align-items: start; }
.gm-fl-karte { border-top: 4px solid var(--fz, var(--linie, #ccc)); min-width: 0; }
.gm-fl-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 2px 0 8px; color: inherit; text-decoration: none; }
.gm-fl-kopf i { width: 10px; height: 10px; border-radius: 50%; background: var(--fz, transparent); display: inline-block; }
.gm-fl-kopf b { font-size: 18px; }
.gm-fl-kopf span { margin-left: auto; font-size: 13px; opacity: .7; font-variant-numeric: tabular-nums; }
.gm-fl-gruppe { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .7; padding: 10px 0 4px;
  border-top: 1px solid var(--linie, rgba(0,0,0,.08)); }
.gm-fl-gruppe.ok { color: var(--gruen, #2e7d4f); opacity: 1; }
.gm-fl-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: inherit; text-decoration: none; }
.gm-fl-zeile + .gm-fl-zeile { border-top: 1px dashed var(--linie, rgba(0,0,0,.08)); }
.gm-fl-zeile.geplant .gm-fl-name { opacity: .62; }
.gm-fl-name { flex: 1; min-width: 0; display: grid; }
.gm-fl-name small { font-size: 12.5px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Auto einscannen (Galip, 10.11.2026): Kamera oben, darunter die Geräte des Autos zum Abhaken */
.gm-as .gm-scanner { padding: 0; }
.gm-as-karte { margin-top: 14px; border-top: 4px solid var(--fz, var(--linie, rgba(0,0,0,.1))); }
.gm-as-kopf { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.gm-as-kopf b:first-of-type { font-size: 18px; }
.gm-as-kopf span { margin-left: auto; font-size: 14px; opacity: .8; }
.gm-as-kopf span b { color: var(--gruen); font-size: 16px; }
.gm-as-suche { width: 100%; margin-bottom: 6px; }
.gm-as-liste { list-style: none; margin: 0; padding: 0; }
.gm-as-liste li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; }
.gm-as-liste li + li { border-top: 1px dashed var(--linie, rgba(0,0,0,.08)); }
.gm-as-liste li small { font-size: 12.5px; opacity: .7; white-space: nowrap; }
.gm-as-haken { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--linie, rgba(0,0,0,.25)); }
.gm-as-liste li.ok .gm-as-haken { background: var(--gruen); border-color: var(--gruen); }
.gm-as-liste li.ok .gm-as-haken::after { content: "✓"; display: block; color: #fff; font-size: 13px; font-weight: 700; line-height: 18px; text-align: center; }
.gm-as-liste li.ok small { color: var(--gruen); opacity: 1; font-weight: 600; }
.gm-as-leer { opacity: .7; }
.gm-as-knopf { margin-left: auto; }
.gm-as-kopf i { width: 10px; height: 10px; border-radius: 50%; background: var(--fz, transparent); display: inline-block; }
.gm-as-start { margin: 4px 0 12px; }
.gm-as-start-zeile { padding: 0 var(--rand, 16px); } .gm-as-start-zeile .gm-as-start { width: 100%; }
/* Fremdes Auto: gesammelt bestätigen (Galip, 10.11.2026) */
.gm-ab-liste li { grid-template-columns: 24px minmax(0, 1fr) auto; }
.gm-ab-liste li.nein .gm-as-haken { background: var(--rot-status); border-color: var(--rot-status); }
.gm-ab-liste li.nein .gm-as-haken::after { content: "✕"; display: block; color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.gm-ab-liste .gm-as-name small { display: block; white-space: normal; }
.gm-ab-liste li .gm-ab-nr, .gm-ab-liste li.ok .gm-ab-nr, .gm-ab-liste li.nein .gm-ab-nr { color: inherit; opacity: .7; font-weight: 400; }
.gm-ab-liste li.ok .gm-ab-status { color: var(--gruen); font-weight: 600; opacity: 1; }
.gm-ab-liste li.nein .gm-ab-status { color: var(--rot-status); font-weight: 600; opacity: 1; }
.gm-ab-knoepfe { display: flex; gap: 6px; }
.gm-ab-knoepfe .btn { padding: 8px 14px; min-height: 0; }

/* ── Leitstand: Entnahmen & Tausch (Galip, 11.11.2026) — groß und gut lesbar ── */
.ls-entnahmen { padding: 18px 20px; }
.ls-ent { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 220px); gap: 4px 14px; align-items: start; padding: 13px 0;
  border-bottom: 1px solid var(--linie-2); text-decoration: none; color: var(--text); }
.ls-ent:last-of-type { border-bottom: 0; }
.ls-ent b { font-weight: 600; font-size: 16px; line-height: 1.35; }
.ls-ent small { display: block; font-size: 13.5px; color: var(--text-2); line-height: 1.45; margin-top: 2px; }
.ls-ent-zeit { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); padding-top: 1px; }
.ls-ent-wer { text-align: right; }
.ls-ent.ton-positiv .ls-ent-zeit { color: var(--positiv); }
.ls-ent.ton-negativ .ls-ent-zeit, .ls-ent.ton-negativ .ls-ent-was small { color: var(--negativ); }
.ls-ent:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ls-still { margin: 6px 0 2px; font-size: 14.5px; color: var(--text-2); }
.section-label + .tag-nav + .ls-still, .tag-nav + .ls-still { padding: 0 var(--rand); }
@media (max-width: 600px) {
  .ls-ent { grid-template-columns: 46px minmax(0, 1fr); }
  .ls-ent-wer { grid-column: 2; text-align: left; }
  .ls-ent-wer b { font-size: 14.5px; }
}

/* ── Mein Tag schlank (Galip, 11.11.2026) ─────────────────────────────────
   Fahrzeug mit Zahl der Aufträge; Hinweise als Kartenstapel: vorne die oberste Karte, dahinter schauen zwei
   Karten hervor. „Zur Kenntnis genommen“ schiebt die Karte nach hinten (app.js setzt data-pos neu). */
.mt-fz-zahl { margin-left: auto; flex: none; display: flex; flex-direction: column; align-items: center; min-width: 64px;
  padding: 8px 10px; border-radius: 16px; background: var(--neutral-hell); line-height: 1.1; }
.mt-fz-zahl b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mt-fz-zahl small { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.mt-fz-selbst { font-size: 14px; color: var(--text-2); }
.mt-stapel-bereich { margin: 16px var(--rand) 0; }
.mt-stapel-bereich .hinweise-kopf { border-bottom: 0; padding-bottom: 10px; align-items: center; }
.mt-stapel { display: grid; padding-bottom: 22px; }
.mt-karte-h { grid-area: 1 / 1; display: flex; align-items: stretch; gap: 10px; min-width: 0; padding: 16px 14px 16px 18px;
  border-radius: var(--r-l); background: var(--karte); border: 1px solid var(--rahmen, var(--linie)); box-shadow: var(--schatten);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s ease, filter .35s ease; transform-origin: 50% 100%; }
.mt-karte-h[data-pos="0"] { z-index: 5; }
.mt-karte-h[data-pos="1"] { z-index: 4; transform: translateY(10px) scale(.96); opacity: .9; pointer-events: none; }
.mt-karte-h[data-pos="2"] { z-index: 3; transform: translateY(20px) scale(.92); opacity: .75; pointer-events: none; }
.mt-karte-h:not([data-pos="0"]):not([data-pos="1"]):not([data-pos="2"]) { z-index: 1; transform: translateY(20px) scale(.92); opacity: 0; pointer-events: none; }
.mt-karte-h:not([data-pos="0"]) .mt-karte-h-inhalt, .mt-karte-h:not([data-pos="0"]) .mt-kenntnis { visibility: hidden; }
.mt-karte-h.weg { transform: translateY(26px) scale(.9); opacity: 0; }
.mt-karte-h-inhalt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); }
.mt-karte-h-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mt-karte-h-kopf small { font-size: 13px; color: var(--text-2); }
.mt-karte-h-titel { font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.mt-karte-h-text { font-size: 14.5px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.mt-karte-h.ton-negativ .mt-karte-h-titel { color: var(--negativ); }
.mt-karte-h.gelesen .mt-karte-h-titel { color: var(--text-2); }
.mt-karte-h form { display: flex; }
.mt-kenntnis { flex: none; align-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 92px; min-height: 76px; padding: 8px 6px; border-radius: 16px; border: 1px solid var(--linie); background: var(--neutral-hell);
  color: var(--text); font: inherit; font-size: 12.5px; font-weight: 650; line-height: 1.2; text-align: center; cursor: pointer; }
.mt-kenntnis:hover { border-color: var(--positiv); }
.mt-kenntnis:active { transform: scale(.97); }
.mt-kenntnis.erledigt { background: var(--positiv-hell); color: var(--positiv); border-color: transparent; cursor: default; }
.mt-stapel-zahl { margin: 0; font-size: 13.5px; color: var(--text-2); }
.mt-leer-einsatz { padding: 4px var(--rand) 12px; }
@media (prefers-reduced-motion: reduce) { .mt-karte-h { transition: none; } }

/* Aufklappbare Gruppen (Galip, 11.11.2026): Maschinen-/Lagerlisten erst nach Antippen */
.gm-auf { margin: 8px var(--rand) 0; border-radius: var(--r-l); background: var(--karte); border: 1px solid var(--linie); overflow: hidden; }
.gm-auf > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; cursor: pointer;
  font-size: 16px; font-weight: 650; list-style: none; }
.gm-auf > summary::-webkit-details-marker { display: none; }
.gm-auf > summary::after { content: ""; width: 9px; height: 9px; margin-left: 4px; flex: none; border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.gm-auf[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.gm-auf > summary .chip { margin-left: auto; }
.gm-auf > .kr-liste { margin: 0; border-top: 1px solid var(--linie-2); border-radius: 0; box-shadow: none; }
.gm-bei-mir { margin: 0; }
.gm-bei-mir-kopf { padding: 12px 16px 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }

/* Kalender kräftiger (Galip, 11.11.2026): Wochentage, Tageszahlen und Reiter nicht mehr grau; Punkte in Reihen
   zu drei — mehr als drei Aufträge an einem Tag stehen in einer zweiten Reihe darunter. Farben bleiben. */
.kal-wt { color: var(--text); font-weight: 700; font-size: 12.5px; }
.kal-tag .z { font-weight: 650; }
.kal-tag.we .z { color: var(--text); }
.kal-tag.fremd { color: var(--text-2); }
.seg a { color: var(--text); font-weight: 650; }
.seg a.on { font-weight: 750; }
.kal-punkte { flex-wrap: wrap; justify-content: center; width: 24px; height: auto; min-height: 6px; row-gap: 3px; }
.woche-streifen .kal-punkte { height: auto; }

/* Diktieren im Abnahmeprotokoll (Galip, 11.11.2026) */
.diktat-huelle { position: relative; display: flex; align-items: stretch; gap: 6px; min-width: 0; flex: 1; }
.diktat-huelle > input, .diktat-huelle > textarea { flex: 1; min-width: 0; }
.diktat-knopf { flex: none; width: 38px; min-height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 10px;
  border: 1px solid var(--linie); background: var(--neutral-hell); color: var(--text); cursor: pointer; padding: 0; }
.diktat-knopf.an { background: var(--negativ); color: #fff; border-color: transparent; animation: diktat-puls 1.2s ease-in-out infinite; }
@keyframes diktat-puls { 50% { opacity: .65; } }
@media print { .diktat-knopf, .diktat-leiste { display: none !important; } }
/* Aufnahme-Leiste unter dem Feld (13.11.2026): läuft / übernommen / Hinweis / Fehler, mit „Fertig“ und „Abbrechen“ */
.diktat-knopf { min-width: 44px; min-height: 44px; }
.diktat-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 2px; padding: 8px 12px;
  border-radius: 12px; border: 1px solid var(--rahmen); background: var(--karte); font-size: 13.5px; color: var(--text-2);
  animation: dk-auf .16s ease both; }
.diktat-leiste[hidden] { display: none; }
.diktat-info { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.diktat-knoepfe { display: inline-flex; gap: 6px; }
.diktat-knoepfe[hidden] { display: none; }
.diktat-knoepfe .btn { min-height: 40px; padding: 0 14px; }
.diktat-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); flex: none; }
.diktat-leiste.an .diktat-punkt { background: var(--negativ, #c62d2d); animation: diktat-puls 1.2s ease-in-out infinite; }
.diktat-leiste.an { color: var(--text); }
.diktat-leiste.ok .diktat-punkt { background: var(--positiv, #2e7d4f); }
.diktat-leiste.fehler { color: var(--negativ, #c62d2d); }
.diktat-leiste.fehler .diktat-punkt { background: var(--negativ, #c62d2d); }
@media (prefers-reduced-motion: reduce) { .diktat-leiste, .diktat-leiste.an .diktat-punkt, .diktat-knopf.an { animation: none; } }
.notiz-vorgaben { margin-bottom: 10px; font-weight: 600; line-height: 1.6; }
/* Wer macht was — aufklappbar (Galip, 11.11.2026) */
.wmw-auf { margin-left: 0; margin-right: 0; }
.wmw-sum { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wmw-auf .wmw-personen { display: flex; flex-wrap: wrap; gap: 6px; }
.wmw-auf .wmw-personen .chip { font-weight: 600; }
.wmw-auf-inhalt { padding: 2px 16px 14px; border-top: 1px solid var(--linie-2); }
.wmw-auf-inhalt .wmw-unter { padding-top: 10px; font-size: 13.5px; color: var(--text-2); }

/* Face ID / Fingerabdruck (Galip, 11.11.2026) */
.passkey-box { margin: 0 var(--rand) 12px; padding: 16px 18px; display: grid; gap: 10px; }
.passkey-kopf { display: flex; flex-direction: column; gap: 3px; }
.passkey-kopf b { font-size: 16px; }
.passkey-kopf small, .passkey-zeile small { font-size: 13px; color: var(--text-2); }
.passkey-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--linie-2); }
.passkey-zeile span { display: flex; flex-direction: column; min-width: 0; }
.passkey-box .hint-line { margin: 0; }
.passkey-oder { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--text-2); font-size: 13px; }
.passkey-oder::before, .passkey-oder::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.wmw-auf > summary .chip { margin-left: 0; }

/* Auto-Ampel (Galip, 11.11.2026): grün da, orange lange nicht gescannt, rot fehlt, grau noch nicht eingescannt */
.gm-ampel-zahlen { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 8px; font-size: 14px; color: var(--text-2); }
.gm-ampel-zahlen b { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.gm-ampel-zahlen .da b { color: var(--positiv); }
.gm-ampel-zahlen .alt b { color: var(--orange); }
.gm-ampel-zahlen .fehlt b { color: var(--negativ); }
.gm-fl-gruppe.ampel-da { color: var(--positiv); }
.gm-fl-gruppe.ampel-alt { color: var(--orange); }
.gm-fl-gruppe.ampel-fehlt { color: var(--negativ); }
.gm-fl-zeile.ampel-da, .gm-fl-zeile.ampel-alt, .gm-fl-zeile.ampel-fehlt, .gm-fl-zeile.ampel-neu { display: flex; align-items: center; gap: 12px; }
.gm-ampel-punkt { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text-3); }
.ampel-da .gm-ampel-punkt { background: var(--positiv); box-shadow: 0 0 0 4px var(--positiv-hell); }
.ampel-alt .gm-ampel-punkt { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-hell); }
.ampel-fehlt .gm-ampel-punkt { background: var(--negativ); box-shadow: 0 0 0 4px var(--negativ-hell); }
.gm-fl-zeile.ampel-alt small { color: var(--orange); }
.gm-fl-zeile.ampel-fehlt small { color: var(--negativ); }
.gm-fl-zeile.ampel-neu b { color: var(--text-2); }
.gm-mein-auto { margin: 0 var(--rand); }

/* Leitstand nur Autos im Einsatz + wer fehlt (Galip, 11.11.2026) */
.ls-autos { display: grid; gap: 12px; margin: 0 var(--rand); }
@media (min-width: 900px) { .ls-autos { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } }
.ls-auto { padding: 16px 18px; border-left: 5px solid var(--fz, var(--linie)); }
.ls-auto.ohne { --fz: var(--text-3); }
.ls-auto-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--linie-2); }
.ls-auto-kopf i { width: 11px; height: 11px; border-radius: 50%; background: var(--fz); align-self: center; }
.ls-auto-kopf b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.ls-auto-kopf span { font-size: 15px; color: var(--text-2); font-weight: 600; }
.ls-auto-kopf span.neg { color: var(--negativ); }
.ls-auto-baustelle { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0;
  border-bottom: 1px solid var(--linie-2); text-decoration: none; color: var(--text); }
.ls-auto-baustelle:last-child { border-bottom: 0; padding-bottom: 2px; }
.ls-auto-baustelle .zeit { font-size: 14px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ls-auto-baustelle .was { display: flex; flex-direction: column; min-width: 0; }
.ls-auto-baustelle .was b { font-size: 16px; overflow-wrap: anywhere; }
.ls-auto-baustelle .was small { font-size: 13.5px; color: var(--text-2); }
.ls-frei { padding: 10px var(--rand) 0; }
.ls-fehlt { margin: 0 var(--rand); padding: 6px 18px; }
.ls-fehlt .ls-person { font-size: 15.5px; }
.ls-unten { margin: 18px var(--rand) 0; }
.ls-still { padding-left: var(--rand); padding-right: var(--rand); }
.ls-autos > .karte, .ls-unten > .karte { margin: 0; }
.karte .ls-still { padding-left: 0; padding-right: 0; }
/* Entnahmen & Tausch auf der Startseite: eine Zeile je Buchung (Galip, 11.11.2026) */
.ls-ent-kurz { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 0;
  border-bottom: 1px solid var(--linie-2); text-decoration: none; color: var(--text); }
.ls-ent-kurz:last-of-type { border-bottom: 0; }
.ls-ent-kurz .zeit { font-size: 14px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ls-ent-kurz b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-ent-kurz .verb { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.ls-ent-kurz.ton-positiv .verb { color: var(--positiv); }
.ls-ent-kurz.ton-negativ .verb { color: var(--negativ); }
.ls-ent-kurz b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.ls-unten .kachel-link { display: inline-flex; margin-top: 10px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--rot-stark); }

/* Mitarbeiter-Magnete nur am PC (Galip, 11.11.2026): breiter Bildschirm mit Maus — auf Handy und Tablet ausgeblendet */
@media (max-width: 1099px), (hover: none), (pointer: coarse) {
  .magnete { display: none !important; }
}

/* Persönlicher Gruß (Galip, 11.11.2026): Profilbild, Name, Funktion, persönliche Zeile */
.gruss-persoenlich { display: flex; align-items: center; gap: 16px; }
.gruss-bild { flex: none; text-decoration: none; border-radius: 50%; box-shadow: 0 0 0 3px var(--karte), 0 0 0 5px var(--linie); }
.gruss-bild .av { display: flex; }
.gruss-text { min-width: 0; }
.gruss-text h1 { margin: 0; }
.gruss-text p { margin: 3px 0 0; }
.gruss-zeile { font-size: 15px; font-weight: 600; color: var(--text); }
.gruss-foto { display: inline-block; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--rot-stark); text-decoration: none; }
@media (max-width: 420px) { .gruss-persoenlich { gap: 12px; } .gruss-bild .av { --av: 52px !important; } }

/* Buchungsverlauf übersichtlicher (Galip, 11.11.2026): je Tag eine Überschrift, links groß die Uhrzeit,
   Artikel fett, Vorgang farbig (Einlagerung grün, Kaputt rot), größere Schrift */
.tx-tag { padding: 22px var(--rand) 8px; font-size: 16px; font-weight: 750; color: var(--text); }
.tx-zeile { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; }
.tx-uhr { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); padding-top: 1px; }
.tx-zeile .tx-product { margin-top: 0; font-size: 17.5px; font-weight: 700; line-height: 1.3; }
.tx-zeile .tx-line { font-size: 15.5px; margin-top: 4px; }
.tx-zeile .tx-who { font-size: 14.5px; margin-top: 4px; }
.tx-art { font-weight: 700; }
.tx-notiz { margin-top: 6px; font-size: 14.5px; font-style: italic; color: var(--text); }
.tx-deposit .tx-art, .tx-einlagerung .tx-art { color: var(--positiv); }
.tx-kaputt .tx-art { color: var(--negativ); }
.tx-deposit .tx-uhr, .tx-einlagerung .tx-uhr { color: var(--positiv); }

/* Sprache wählen (Galip, 11.11.2026) */
.sprachwahl { display: flex; justify-content: center; gap: 8px; margin: 0 auto 12px; flex-wrap: wrap; }
.sprachwahl button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--linie);
  background: var(--karte); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sprachwahl button.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.sprachwahl .flagge { font-size: 20px; line-height: 1; }
.gruss .sprachwahl { justify-content: flex-start; margin: 8px 0 0; }
.gruss .sprachwahl .sprachname { display: none; }
.gruss .sprachwahl button { padding: 5px 9px; }
[dir="rtl"] .gruss-persoenlich, [dir="rtl"] .ls-ent-kurz, [dir="rtl"] .tx-zeile { direction: rtl; }
.card-page:has(> .sprachwahl) { flex-direction: column; align-items: center; }
.card-page > .sprachwahl { width: 100%; max-width: 420px; }
.section-label.ls-ohne-titel a { margin-left: 0; }   /* nur „+ Auftrag“, linksbündig (12.11.2026) */
@media (max-width: 767px) { .bento-leitstand { grid-auto-rows: auto; } }   /* Karten nur so hoch wie ihr Inhalt (12.11.2026) */

/* ── Kalender: Termine des angeklickten Tages wieder rechts (Galip, 12.11.2026) ─────────────────────
   Großer Bildschirm: Monat links in voller Breite, rechts die Tagesleiste (bleibt beim Scrollen stehen).
   Tageswechsel ohne Neuladen: alte Karten kurz ausblenden, neue weich einblenden (≈ 150–200 ms). */
@media (min-width: 1100px) {
  .kal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; padding-right: var(--rand); }
  .kal-layout .kal-monat { margin-right: 0; }
  .kal-layout .kal-tagesliste { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 6px 2px 12px; overscroll-behavior: contain; }
  .kal-layout .kal-tagesliste .section-label { padding: 6px 0 12px; }
  .kal-layout .kal-tl-karten { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 0; }
  .kal-layout .kal-tl-karten .termin-karte { width: 100%; max-width: none; box-sizing: border-box; }
  .kal-layout .kal-tl-karten .empty { padding: 8px 0 20px; }
}
.kal-tagesliste[aria-busy="true"] { opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }
.kal-tagesliste.kal-tl-ein { animation: kal-tl-ein .2s ease both; }
@keyframes kal-tl-ein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .kal-tagesliste[aria-busy="true"] { transform: none; }
  .kal-tagesliste.kal-tl-ein { animation: none; }
}
/* Neuer Termin: Doppelklick (PC) bzw. lange gedrückt halten (Touch) auf einem Tag */
[data-kal-neu] .kal-tag, [data-kal-neu] [data-kal-tag], [data-kal-neu-tag] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.kal-halten { transition: transform .5s ease, box-shadow .5s ease; transform: scale(.97); box-shadow: inset 0 0 0 2px var(--rot); }
body.kal-neu-auf .kal-layout, body.kal-neu-auf .woche-spalten { opacity: .6; transition: opacity .2s; }

/* ── Auftrag schnell bearbeiten: Stift am Feld, „+ Telefonnummer hinzufügen“, Verlauf (Galip, 12.11.2026) ── */
.dk-bearbeiten-oben { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 14px; }
.dk-edit { display: inline; }
.dk-edit > summary { list-style: none; cursor: pointer; }
.dk-edit > summary::-webkit-details-marker { display: none; }
.dk-stift { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: 6px;
  vertical-align: middle; border-radius: 999px; color: var(--text-2); transition: background .15s, color .15s, transform .15s; }
.dk-stift:hover { background: var(--rose-hauch, rgba(200,117,117,.12)); color: var(--rot); }
.dk-stift:active { transform: scale(.94); }
.dk-edit[open] > .dk-stift { color: var(--rot); background: var(--rose-hauch, rgba(200,117,117,.12)); }
.dk-edit-form { display: grid; gap: 8px; margin: 10px 0 4px; padding: 12px; border-radius: var(--r-l, 16px);
  background: var(--glas, rgba(255,255,255,.55)); border: 1px solid var(--rahmen); box-shadow: var(--schatten);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: dk-auf .18s ease both; font-weight: 400; }
@keyframes dk-auf { from { opacity: 0; transform: translateY(-4px); } }
.dk-edit-knoepfe { display: flex; gap: 8px; align-items: center; }
.dk-edit-knoepfe .btn { padding: 9px 16px; font-size: 14px; }
.dk-auswahl { max-height: 260px; overflow-y: auto; }
.dk-plus { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--rot); cursor: pointer; }
.dk-tel.leer { color: var(--text-3); font-style: normal; }
.dk-anweisung { display: block; margin: 12px var(--rand) 0; padding: 12px 16px; }
.dk-anweisung > summary { margin: 0; }
.verlauf { margin: 16px var(--rand) 0; padding: 12px 16px; }
.verlauf > summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.verlauf-zeile { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--rahmen); font-size: 14px; }
.verlauf-zeile:first-of-type { margin-top: 8px; }
.verlauf-zeit { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.verlauf-text { color: var(--text-2); overflow-wrap: anywhere; }
.verlauf-zeile small { color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .dk-edit-form { animation: none; } }

/* ── Baustellenadresse: Vorschläge beim Tippen, Bestätigung mit Karte (Galip, 12.11.2026) ───────────────── */
.adr-vorschlaege { position: relative; z-index: 30; margin-top: 6px; padding: 6px; border-radius: var(--r-l, 16px);
  background: var(--glas); border: 1px solid var(--rahmen); box-shadow: var(--schatten-l, var(--schatten));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: dk-auf .16s ease both; }
.adr-vorschlaege.laedt { opacity: .7; }
.adr-vorschlag { display: grid; width: 100%; text-align: left; gap: 1px; padding: 10px 12px; border: 0; border-radius: 12px;
  background: transparent; color: var(--text); font: inherit; cursor: pointer; transition: background .12s, transform .12s; }
.adr-vorschlag b { font-size: 15px; font-weight: 600; }
.adr-vorschlag span { font-size: 13.5px; color: var(--text-2); }
.adr-vorschlag:hover, .adr-vorschlag.aktiv { background: var(--rose-hauch); }
.adr-vorschlag:active { transform: scale(.99); }
.adr-hinweis { font-size: 12px; color: var(--text-3); }
.adr-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px 4px; border-top: 1px solid var(--rahmen); margin-top: 4px; }
.adr-leer { width: 100%; font-size: 14px; color: var(--text-2); }
.adr-manuell { border: 0; background: none; padding: 0; color: var(--rot); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.adr-quelle { margin-left: auto; font-size: 11px; color: var(--text-3); }
.adr-bestaetigt { margin-top: 8px; }
.adr-karte { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-l, 16px); background: var(--glas); border: 1px solid var(--rahmen);
  box-shadow: var(--schatten); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.adr-karte.adr-neu { animation: adr-ok .26s ease both; }
@keyframes adr-ok { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.adr-text { display: grid; gap: 1px; }
.adr-text b { font-size: 15.5px; }
.adr-text span { color: var(--text-2); font-size: 14px; }
.adr-status { font-style: normal; font-size: 13px; font-weight: 600; margin-top: 3px; }
.adr-status.ok { color: var(--gruen, #3f8f5a); }
.adr-status.warn { color: var(--rot); }
.adr-vorschau { width: 100%; max-height: 160px; object-fit: cover; border-radius: 12px; border: 1px solid var(--rahmen); background: var(--rose-hauch); }
.adr-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.adr-knoepfe .btn { padding: 8px 14px; font-size: 14px; }
.dk-ort-zeile2 { display: block; color: var(--text-2); font-size: 14px; font-weight: 400; }
.dk-adr-status { display: inline-block; margin-top: 3px; font-size: 12.5px; font-weight: 600; font-style: normal; }
.dk-adr-status.ok { color: var(--gruen, #3f8f5a); }
.dk-adr-status.warn { color: var(--rot); }
.dk-karte { display: block; margin: 4px 0 0 34px; }
.dk-karte img { width: 100%; max-height: 170px; object-fit: cover; border-radius: 14px; border: 1px solid var(--rahmen); }
.dk-koordinaten { display: block; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .adr-vorschlaege, .adr-karte.adr-neu { animation: none; } }

/* ── Baustellenfotos: Wasserzeichen-Schalter, Datenschutzhinweis, Aufnahmedaten (Galip, 12.11.2026) ── */
.wz-schalter { margin-top: 8px; font-size: 14px; }
.foto-datenschutz { font-size: 12.5px; margin-top: 2px; }
.foto-meta { display: block; font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.foto-meta .ok { color: var(--gruen); font-weight: 600; }
.foto-meta a { color: var(--text-2); }
.upload-feld.laedt { opacity: .7; pointer-events: none; }

/* ── Abnahmeprotokoll: Abnahme & Abschluss (Galip, 12.11.2026) ───────────────────────────────────── */
.ab-abschluss { margin: 14px 0; display: grid; gap: 10px; }
.ab-abschluss h2 { font-size: 15px; margin: 0; }
.ab-text { display: grid; gap: 4px; }
.ab-text > span { font-size: 13px; font-weight: 600; }
.ab-text textarea { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--rahmen); border-radius: 10px; background: var(--karte); color: var(--text); }
.ab-status-wahl { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ab-status-wahl legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.ab-status-option { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--rahmen); border-radius: 999px; font-size: 14px; cursor: pointer; background: var(--karte); }
.ab-status-option:has(input:checked).ton-positiv { border-color: var(--gruen); background: var(--gruen-hell); }
.ab-status-option:has(input:checked).ton-negativ { border-color: var(--negativ, var(--rot)); background: var(--rose-hauch); }
.ab-status-option:has(input:checked).ton-neutral { border-color: var(--text-2); }
.ab-bilder .thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-bilder .thumbs a { display: grid; gap: 2px; text-decoration: none; color: var(--text-2); font-size: 11px; }
.ab-bilder .thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.ab-bilder-titel { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
.ab-bilder-titel small { font-weight: 400; color: var(--text-3); }
.ab-leer { font-size: 13px; color: var(--text-3); margin: 4px 0; }
.ab-foto-form { max-width: 980px; margin: 0 auto; }
@media print { .ab-foto-form { display: none !important; } }
.ab-blatt .ab-status-option { display: inline-flex; flex-direction: row; align-items: center; justify-content: flex-start; width: auto; gap: 8px; }
.ab-blatt .ab-status-option input { flex: none; width: 18px; height: 18px; margin: 0; }
.ab-blatt .ab-status-option span { white-space: nowrap; text-align: left; }

/* ── Auftrag absagen → Meldung an Heike (Galip, 12.11.2026) ── */
.absage-karte { margin: 10px var(--rand) 0; padding: 12px 16px; }
.absage-karte > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--negativ, var(--rot)); }
.absage-karte form { display: grid; gap: 8px; margin-top: 10px; }
.btn-absagen { background: var(--negativ, #c62d2d); color: #fff; border: 0; }
.absage-karte.ist-abgesagt { display: flex; align-items: center; gap: 10px; }
.absage-karte.ist-abgesagt small { color: var(--text-2); }

/* ── Abnahmeprotokoll: Prüfung durch Heike, Abschluss-Dialog, Fotos nach Art (13.11.2026) ── */
.ab-rueckfrage, .ab-pruefung { margin: 10px var(--rand, 16px) 12px; padding: 14px 16px; }
.ab-rueckfrage { display: flex; gap: 10px; align-items: flex-start; color: var(--negativ, #c62d2d); }
.ab-rueckfrage > div { display: grid; gap: 4px; min-width: 0; }
.ab-rueckfrage span { color: var(--text); overflow-wrap: anywhere; white-space: pre-line; }
.ab-rueckfrage small, .ab-pruefung-kopf small { color: var(--text-2); }
.ab-pruefung { display: grid; gap: 10px; }
.ab-pruefung-kopf { display: grid; gap: 2px; }
.ab-pruefung-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-pruefung-knoepfe form { margin: 0; }
.ab-pruefung-knoepfe .btn, .ab-zurueck .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.ab-zurueck > summary { cursor: pointer; font-weight: 600; color: var(--negativ, #c62d2d); padding: 6px 0; }
.ab-zurueck form { display: grid; gap: 8px; margin-top: 6px; }
.ab-fuss-knoepfe .ab-senden { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-size: 15px; }
.ab-dialog .pf-dialog-inhalt { display: grid; gap: 12px; }
.ab-dialog h2 { margin: 0; }
.ab-zusammenfassung { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 14px; }
.ab-zusammenfassung dt { color: var(--text-2); }
.ab-zusammenfassung dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.ab-zusammenfassung dt { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 560px) { .ab-zusammenfassung { grid-template-columns: minmax(0, 1fr); gap: 0; } .ab-zusammenfassung dt { font-size: 12.5px; margin-top: 8px; } .ab-zusammenfassung dt:first-child { margin-top: 0; } }
.ab-dialog-knoepfe { justify-content: flex-start; flex-wrap: wrap; }
.ab-dialog[open] { animation: dk-auf .18s ease both; }
.ab-phase { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ab-phase label { position: relative; }
.ab-phase input { position: absolute; opacity: 0; width: 0; height: 0; }
.ab-phase span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rahmen); background: var(--karte); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s; }
.ab-phase input:checked + span { border-color: var(--rot-stark, #b44); background: var(--rose-hauch, rgba(200, 80, 80, .08)); }
.ab-phase input:focus-visible + span { outline: 2px solid var(--rot-stark, #b44); outline-offset: 2px; }
.ab-bildgruppe { display: grid; gap: 6px; margin-top: 8px; }
.ab-bildgruppe small { color: var(--text-2); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .ab-dialog[open] { animation: none; } }
.ab-liste { display: grid; gap: 8px; padding: 0 var(--rand, 16px) 20px; }
.ab-liste-zeile { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(120px, 180px) 150px; gap: 4px 14px; align-items: center;
  padding: 12px 16px; text-decoration: none; color: var(--text); }
.ab-liste-zeile small { display: block; color: var(--text-2); font-size: 12.5px; overflow-wrap: anywhere; }
.ab-liste-datum { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; }
.ab-liste-titel, .ab-liste-wer { min-width: 0; overflow-wrap: anywhere; }
.ab-liste-status { justify-self: start; }
@media (max-width: 700px) {
  .ab-liste-zeile { grid-template-columns: minmax(0, 1fr) auto; }
  .ab-liste-datum { grid-column: 1; grid-row: 1; }
  .ab-liste-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .ab-liste-titel { grid-column: 1 / -1; }
  .ab-liste-wer { grid-column: 1 / -1; color: var(--text-2); font-size: 13.5px; }
}

/* ── Urlaub/frei im Kalender blass; im Tag oben aufklappbar (Galip, 12.11.2026) ── */
.cal-ev.abw { opacity: .38; filter: saturate(.5); }
.termin-karte.abw { opacity: .5; filter: saturate(.4); }
.kal-abw { margin: 0 var(--rand) 10px; border-radius: var(--r-l, 16px); background: var(--karte); border: 1px solid var(--rahmen); opacity: .72; }
.kal-layout .kal-abw { margin: 0 0 10px; }
.kal-abw[open] { opacity: 1; }
.kal-abw > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; color: var(--text-2); }
.kal-abw > summary::-webkit-details-marker { display: none; }
.kal-abw > summary::after { content: "▾"; margin-left: auto; font-size: 12px; transition: transform .18s; }
.kal-abw[open] > summary::after { transform: rotate(180deg); }
.kal-abw-zahl { font-weight: 700; font-size: 14px; white-space: nowrap; }
.kal-abw > summary small { font-size: 13px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.kal-abw-liste { display: grid; padding: 0 8px 8px; animation: dk-auf .16s ease both; }
.kal-abw-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; text-decoration: none; color: var(--text-2); opacity: .75; }
.kal-abw-zeile:hover { background: var(--rose-hauch); opacity: 1; }
.kal-abw-zeile i { width: 8px; height: 8px; border-radius: 50%; flex: none; opacity: .7; }
.kal-abw-zeile b { font-weight: 600; font-size: 14px; }
.kal-abw-zeile small { margin-left: auto; font-size: 13px; }
.ls-person.abw { opacity: .55; }

/* ── Phase 2 (12.11.2026): Formular in Abschnitten, abgesagt/Kundentermin im Kalender, Absage-Dialog, Lesebestätigungen ── */
.form-abschnitt { padding: 2px 0 14px; margin: 0 0 6px; border-bottom: 1px solid var(--linie-2); min-width: 0; }
.form-zwei > div > .form-abschnitt:last-child { border-bottom: 0; }
.form-abschnitt[hidden] { display: none; }
.cal-ev.abgesagt { text-decoration: line-through; opacity: .45; filter: saturate(.3); }
.termin-karte.abgesagt { opacity: .6; filter: saturate(.3); }
.termin-karte.abgesagt .tk-titel { text-decoration: line-through; }
.termin-karte.vertraulich { cursor: default; }
.termin-karte.vertraulich .tk-meta { color: var(--text-2); }
.cal-ev.vertraulich { font-style: italic; }
.dk-vertraulich { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 6px; font-size: 13px; color: var(--text-2); }
.btn-absagen-rand { background: transparent; color: var(--negativ, #c62d2d); border: 1px solid currentColor; }
.absage-knopf { display: flex; align-items: center; gap: 8px; margin: 10px var(--rand) 0; }
.absage-dialog form { display: grid; gap: 10px; }
.absage-dialog h2 { margin: 0; }
.absage-dialog .pf-dialog-text { margin: 0; overflow-wrap: anywhere; }
.absage-gruende { border: 0; padding: 0; margin: 0; display: grid; gap: 0; }
.absage-gruende .check { padding: 8px 0; }
.absage-knoepfe { justify-content: flex-start; flex-wrap: wrap; }
.absage-dialog[open] { animation: dk-auf .18s ease both; }
.absage-banner { display: flex; align-items: flex-start; gap: 10px; margin: 10px var(--rand) 0; padding: 12px 16px; color: var(--negativ, #c62d2d); }
.absage-banner > div { display: grid; gap: 2px; min-width: 0; }
.absage-banner small { color: var(--text-2); overflow-wrap: anywhere; }
.kenntnis-karte { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 10px var(--rand) 0; padding: 12px 16px; }
.kenntnis-karte > div { display: grid; gap: 2px; flex: 1 1 200px; min-width: 0; }
.kenntnis-karte b { overflow-wrap: anywhere; }
.kenntnis-karte small { color: var(--text-2); }
.kenntnis-karte .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.kenntnis-liste { margin: 10px var(--rand) 0; padding: 12px 16px; }
.kenntnis-liste > summary { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kenntnis-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--linie-2); }
.kenntnis-zeile:first-of-type { border-top: 0; }
.kenntnis-name { font-weight: 600; overflow-wrap: anywhere; }
.kenntnis-stufe { font-size: 13px; color: var(--text-2); text-align: right; }
.kenntnis-zeile small { grid-column: 1 / -1; color: var(--text-3); font-size: 12.5px; overflow-wrap: anywhere; }
.kenntnis-zeile.stufe-bestaetigt .kenntnis-stufe { color: var(--positiv, var(--gruen)); font-weight: 600; }
.kenntnis-zeile.stufe-offen .kenntnis-stufe, .kenntnis-zeile.stufe-gesendet .kenntnis-stufe { color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .absage-dialog[open] { animation: none; } }

/* ── Mitteilung: Empfänger in Gruppen „Geschäftsführung & Büro“ / „Mitarbeiter“ (Galip, 12.11.2026) ── */
.mt-gruppe { margin: 6px 0 10px; padding: 10px 12px; border: 1px solid var(--rahmen); border-radius: var(--r-l, 16px); background: var(--karte); }
.mt-gruppe-kopf { display: flex; align-items: center; gap: 10px; }
.mt-gruppe-kopf b { font-size: 14px; }
.mt-alle-knopf { margin-left: auto; padding: 4px 10px; font-size: 13px; }

/* ── Monat: mehrtägige Aufträge und Urlaub/frei als durchgehende Linie (Galip, 12.11.2026) ──
   Die Zellen liegen ohne Abstand nebeneinander (6 px Innenabstand) — Anfang/Mitte/Ende reichen bis an den Zellrand. */
.kal-balken .cal-ev.lauf-anfang { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: -6px; }
.kal-balken .cal-ev.lauf-mitte { border-radius: 0; margin-left: -6px; margin-right: -6px; }
.kal-balken .cal-ev.lauf-ende { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -6px; }
.kal-balken .cal-ev.spur-frei { visibility: hidden; }
/* Adresssuche: Ladezustand und Aktionen (12.11.2026, überarbeitet) */
.adr-laedt { padding: 12px 14px; font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.adr-laedt::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--rahmen); border-top-color: var(--rot); animation: adr-dreh .7s linear infinite; }
@keyframes adr-dreh { to { transform: rotate(360deg); } }
.adr-aktion { border: 0; background: none; padding: 0; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.adr-vorschlag { -webkit-tap-highlight-color: transparent; touch-action: manipulation; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .adr-laedt::before { animation-duration: 2s; } }

/* ── Barkasse (Galip, 12.11.2026): interne Dokumentation — Kasse und Pfandgeld getrennt; grün = Zugang, rot = Abgang ── */
.ks-seite { padding-bottom: 28px; }
.ks-schmal { max-width: 760px; }
.ks-oben { margin-top: 12px; }
.ks-h { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.ks-hinweis { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--neutral-hell); color: var(--text); font-size: 14px; line-height: 1.45; }
.ks-bestand { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 4px var(--rand) 0; }
.ks-bestand .kpi-num { font-size: 22px; }
.ks-bestand .ks-gesamt { grid-column: span 2; }
.ks-bestand .ks-gesamt .kpi-num { font-size: 30px; font-weight: 800; }
.ks-bestand .ks-pfand { border-style: dashed; }
.ks-aktionen .btn { flex: 0 1 auto; }
.ks-aktionen .btn .chip { margin-left: 6px; }
.ks-links { padding-top: 0; flex-wrap: wrap; overflow: visible; }
.ks-links a b { margin-left: 4px; }
.ks-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 0 var(--rand) 4px; }
.ks-zwei .karte { margin: 0; }
a.ks-karte { display: block; color: inherit; text-decoration: none; }
a.ks-karte:hover { box-shadow: var(--schatten-l); }
.ks-gross-betrag { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
.ks-zweck { font-size: 14px; margin: 6px 0; overflow-wrap: anywhere; }
.ks-pruef-zeile { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-top: 6px; font-size: 14.5px; }
.ks-zeile .chip { flex: none; }
.ks-zeile-text { flex: 1; min-width: 0; }
.ks-zeile-text .row-name, .ks-zeile-text .row-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-betrag { flex: none; margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ks-form { display: flex; flex-direction: column; gap: 6px; }
.ks-form .form-label { margin-bottom: 4px; }
.ks-wahl { margin-bottom: 2px; }
.ks-wert { margin: 0; font-weight: 600; }
.ks-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ks-feld { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.ks-feld small { font-size: 12px; font-weight: 500; color: var(--text-2); line-height: 1.4; }
.ks-aufteilung { margin-top: 4px; }
.ks-aufteilung > summary { cursor: pointer; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--text-2); }
.ks-aufteilung[open] > summary { margin-bottom: 6px; }
.ks-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.ks-zaehlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.ks-zaehlen label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 650; }
.ks-zaehlen .input { min-height: 44px; }
.ks-live { margin: 6px 0 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.ks-diff { font-size: 17px; font-weight: 800; }
.ks-tag { padding: 10px 18px; }
.ks-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; padding: 4px var(--rand) 12px; }
.ks-filter .ks-feld { flex: 1 1 140px; min-width: 120px; font-size: 12.5px; color: var(--text-2); }
.ks-filter .ks-suche { flex-basis: 220px; }
.ks-filter .ks-knoepfe { margin-top: 0; }
.ks-tabelle td small { color: var(--text-2); }
.ks-tabelle .chip { text-decoration: none; }
@media (max-width: 560px) {
  .ks-bestand .ks-gesamt { grid-column: 1 / -1; }
  .ks-aktionen .btn { flex: 1 1 100%; }
}

/* ── Mitteilungsseite (Phase 3, 12.11.2026): kompakte Reiter, „Meine Mitteilungen“ hervorgehoben, allgemeine Liste
   zurückhaltender; „Erledigt“ und „Aus Liste entfernen“ direkt an der Karte. Linksbündig, Hauptaktion links. ── */
.mt-reiter { display: flex; gap: 6px; overflow-x: auto; padding: 2px var(--rand) 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mt-reiter::-webkit-scrollbar { display: none; }
.mt-reiter a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2); text-decoration: none; background: var(--glas-hauch); border: 1px solid var(--linie);
  transition: background .15s, color .15s, box-shadow .15s; }
.mt-reiter a .ico { color: var(--text-3); }
.mt-reiter a:hover { color: var(--text); }
.mt-reiter a.on { background: var(--karte); color: var(--text); border-color: var(--rahmen); box-shadow: var(--schatten-s); }
.mt-reiter a.mt-reiter-meine .ico { color: var(--rot-stark); }
.mt-reiter a:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.mt-reiter em { font-style: normal; font-size: 11.5px; font-weight: 700; min-width: 18px; text-align: center; padding: 1px 6px; border-radius: 999px;
  background: var(--linie-2); color: var(--text-2); }
.mt-reiter a.mt-reiter-meine em { background: var(--rose-hell); color: var(--rot-stark); }
.mt-bereich { margin: 2px 0 18px; }
.mt-bereich-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 4px var(--rand) 10px; }
.mt-bereich-kopf h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.mt-bereich-kopf [hidden] { display: none; }
.mt-bereich-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: var(--linie-2); color: var(--text-2); }
.mt-meine .mt-bereich-ico { background: var(--rose-hell); color: var(--rot-stark); }
.mt-alle-gelesen { margin: 0 0 0 auto; }
.mt-alle-gelesen .btn { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
/* Meine: dezenter Akzent am Rand, Ungelesenes deutlicher */
.mt-meine .mt-eintrag { border-left: 3px solid var(--rose-hell); }
.mt-meine .mt-eintrag.z-neu, .mt-meine .mt-eintrag.z-ungelesen { border-left-color: var(--rose); }
/* Allgemein: zurückhaltender — flacher, kleinere Überschriften */
.mt-allgemein .mt-bereich-kopf h2 { font-size: 15px; font-weight: 650; color: var(--text-2); }
.mt-allgemein .mt-bereich-ico { width: 30px; height: 30px; border-radius: 10px; }
.mt-allgemein .mt-eintrag:not(.news-wichtig) { background: var(--glas-hauch); box-shadow: none; padding: 13px 16px; }
.mt-allgemein .news-title { font-size: 15px; font-weight: 600; }
.mt-eintrag { transition: opacity .2s ease, transform .2s ease; }
.mt-eintrag.mt-weg { opacity: 0; transform: translateY(-6px) scale(.98); }
.mt-eintrag-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mt-eintrag-kopf .news-date { flex: 1 1 auto; min-width: 0; }
.mt-eintrag-ico { display: inline-flex; color: var(--text-3); }
.mt-eintrag.ton-negativ .mt-eintrag-ico, .mt-eintrag.ton-negativ .news-title { color: var(--negativ); }
.mt-eintrag.ton-positiv .mt-eintrag-ico { color: var(--positiv); }
.mt-eintrag.z-gelesen .news-title, .mt-eintrag.z-erledigt .news-title { font-weight: 600; color: var(--text-2); }
.mt-eintrag.z-erledigt .news-text { opacity: .8; }
.mt-zustand { font-size: 11.5px; padding: 2px 8px; }
.mt-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.mt-aktionen form { margin: 0; display: inline-flex; }
.mt-aktionen .gelesen-btn { margin-top: 0; }
.mt-aktionen .btn { min-height: 40px; padding: 7px 12px; font-size: 13.5px; }
.mt-knopf, .mt-oeffnen { display: inline-flex; align-items: center; gap: 6px; }
.mt-knopf-ok:hover { color: var(--positiv); }
.mt-leer { margin: 0 var(--rand) 8px; padding: 12px 4px; color: var(--text-2); font-size: 14px; }
.mt-hinweis { padding: 0 var(--rand) 10px; margin: 0; }
.mt-karte-h-aktion { font-size: 13.5px; font-weight: 650; color: var(--rot-stark); }

/* ── Leitstand: Glas-Fenster „Mitteilung erstellen“ (Phase 3) ── */
.mt-dialog { max-width: 520px; max-height: calc(100dvh - 32px); overflow: auto; border-radius: var(--glas-radius);
  background: linear-gradient(var(--glas-lesbar), var(--glas-lesbar)), var(--glas);
  -webkit-backdrop-filter: blur(var(--glas-blur)) saturate(var(--glas-sat)); backdrop-filter: blur(var(--glas-blur)) saturate(var(--glas-sat));
  border: 1px solid var(--glas-kante); box-shadow: inset 0 1px 0 var(--glas-innen), var(--glas-schatten); }
.mt-dialog[open] { animation: mt-dialog-auf .2s cubic-bezier(.2, .8, .2, 1); }
.mt-dialog[open]::backdrop { animation: mt-dialog-hinter .2s ease; }
@keyframes mt-dialog-auf { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes mt-dialog-hinter { from { opacity: 0; } }
.mt-schnell { display: flex; flex-direction: column; gap: 6px; }
.mt-schnell-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mt-schnell-kopf h2 { margin: 0; flex: 1; font-size: 19px; }
.mt-schnell-zu { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--linie-2); color: var(--text-2); font-size: 20px; line-height: 1; cursor: pointer; }
.mt-schnell .form-label { margin-top: 6px; }
.mt-schnell .input { width: 100%; }
.mt-schnell textarea.input { min-height: 96px; resize: vertical; }
.mt-wahl { display: inline-flex; gap: 4px; padding: 4px; border-radius: 13px; background: rgba(38, 50, 56, .055); align-self: flex-start; }
.mt-wahl label { position: relative; }
.mt-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.mt-wahl span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.mt-wahl input:checked + span { background: var(--karte); color: var(--text); box-shadow: var(--schatten-s); }
.mt-wahl input:focus-visible + span, .mt-chip input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.mt-schnell:has(.mt-an input[value="alle"]:checked) .mt-empfaenger { display: none; }
.mt-schnell .mt-gruppe { background: var(--glas-hauch); }
.mt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mt-chip { position: relative; }
.mt-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mt-chip span { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--linie);
  background: var(--karte); font-size: 13.5px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.mt-chip input:checked + span { background: var(--text); border-color: var(--text); color: var(--karte); }
.mt-schnell-wichtig { margin-top: 8px; }
.mt-schnell .hint-line { margin: 2px 0 0; }
.mt-schnell-knoepfe { justify-content: flex-start; margin-top: 12px; flex-wrap: wrap; }
.mt-schnell .field-err[hidden] { display: none; }

/* ── Einrichtungskarte „Benachrichtigungen aktivieren“ (Phase 4) ── */
.push-karte { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; animation: push-auf .22s cubic-bezier(.2, .8, .2, 1);
  transition: opacity .2s ease, transform .2s ease; }
.push-karte[hidden], .push-karte [hidden] { display: none; }
.push-karte-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--rose-hell); color: var(--rot-stark); }
.push-karte-inhalt { flex: 1; min-width: 0; }
.push-karte-inhalt b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.push-karte-inhalt p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.push-karte-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.push-karte-knoepfe .btn { min-height: 42px; }
.push-karte-weg { opacity: 0; transform: translateY(-6px); }
@keyframes push-auf { from { opacity: 0; transform: translateY(6px); } }

/* Konten & Rechte: Push je Mitarbeiter */
.push-status { display: inline-flex; align-items: center; gap: 4px; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .mt-eintrag, .mt-reiter a, .mt-wahl span, .mt-chip span, .push-karte { transition: none; }
  .mt-dialog[open], .mt-dialog[open]::backdrop, .push-karte { animation: none; }
}
/* ══ Überlauf-Korrekturen (Phase 6, 12.11.2026) ═══════════════════════════════════════════════════
   Beschriftungen – vor allem auf Türkisch und Arabisch – dürfen Karten, Knöpfe und Chips nicht mehr überragen
   (geprüft auf 320/360/390, 768/1024, 1280/1440 px in de/tr/ar). Grundsatz: umbrechen statt abschneiden;
   gekürzt (…) wird nur, wo es Sinn hat (Kalenderbalken, Nebeninfos in Kacheln). Kalender-Monatsbalken bleiben unberührt. */

/* Knöpfe: lange Beschriftungen brechen um (Mindesthöhe bleibt 44–46 px, einzeilige Knöpfe sehen aus wie vorher) */
.btn { white-space: normal; text-align: center; overflow-wrap: break-word; max-width: 100%; }
.sidenav-foot .btn, .pf-fuss .btn, .vn-bild .btn { text-align: start; }

/* Chips/Status: behalten ihre Breite wie bisher (die Nachbarn weichen), werden aber zweizeilig,
   statt über den Rand zu laufen, wenn sie allein breiter als der Platz wären */
.chip, .tx-badge, .role-badge, .pill { white-space: normal; max-width: 100%; overflow-wrap: break-word; flex-shrink: 0; }

/* Raster ohne feste Spalte wuchsen mit dem breitesten Kind über den Bildschirm hinaus */
.fertig-karte, .ab-tabellen { grid-template-columns: minmax(0, 1fr); }
/* Abnahmeprotokoll: die unsichtbaren Ankreuzfelder der Tabellen bleiben im wischbaren Tabellenbereich
   (sonst ließ sich die ganze Seite auf dem Handy seitlich verschieben) */
.ab-scroll { position: relative; }

/* Lange Wörter, Namen, Benutzernamen und Kategorien in Listen und Kacheln */
.row-meta, .kachel-name { overflow-wrap: anywhere; }

/* Auftrag: aufgeklappte Schnell-Bearbeitung (Uhrzeit) unter die Zeile statt daneben; Knöpfe umbrechen */
.dz-text { min-width: 0; }
.detail-zeit:has(> .dk-edit[open]) { flex-wrap: wrap; }
.detail-zeit:has(> .dk-edit[open]) > .dz-text { flex: 1 1 0; }
.detail-zeit > .dk-edit[open] { flex-basis: 100%; }
.dk-edit-knoepfe { flex-wrap: wrap; }
/* Auftrag: „Route öffnen“ rutscht auf schmalen Handys unter die Adresse, statt sie auf ein Wort pro Zeile zu quetschen */
.dk-zeile { flex-wrap: wrap; }
.dk-zeile > div { flex: 1 1 150px; }
.dk-zeile > .route-btn { margin-inline-start: 34px; }
/* Knopfreihen (Status setzen …): bricht ein Knopf zweizeilig um, bleiben die Nachbarn gleich hoch */
.btn-row > form { display: flex; flex-direction: column; }
.btn-row > form > .btn { flex: 1 0 auto; }
/* Auf dem Handy richtet sich die Breite nach der Beschriftung: lange Knöpfe („Auftrag bearbeiten (alle Tage)“)
   rutschen in eine eigene Zeile, statt dreizeilig zu werden */
@media (max-width: 480px) {
  .btn-row .btn { flex: 1 1 auto; }
}
/* Nur-Punkt-Status in Listen: unsichtbare Beschriftung bleibt einzeilig */
.row-status.nur-punkt .pill-label { white-space: nowrap; }

/* Abnahmeprotokoll: „Arbeitsbeginn … Uhr“ / „Arbeitsende … Uhr“ untereinander, wenn die Spalte zu schmal ist */
@media (min-width: 521px) {
  .ab-zeile-2 { flex-wrap: wrap; }
  .ab-zeile-2 label { flex: 1 1 220px; }
}

/* Konten & Rechte: Name bekommt Platz, Status-Chips rutschen bei Bedarf in die nächste Zeile */
.row-text { flex: 1 1 150px; min-width: 0; display: block; }
.row:has(> .row-text) { flex-wrap: wrap; row-gap: 8px; position: relative; padding-inline-end: 34px; }
a.row:has(> .row-text)::after { position: absolute; inset-inline-end: 16px; top: 50%; margin: -4px 0 0; }   /* Pfeil bleibt rechts mittig */

/* Kopfzeile: Seitentitel zweizeilig statt „T…“; bei vielen Symbolen (Kalender) steht der Titel in eigener Zeile,
   Aufklapp-Menüs der Kopfzeile bleiben am rechten Rand im Bild */
.hdr-kopf { flex: 1; min-width: 0; }
@media (max-width: 480px) {
  .hdr-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; overflow-wrap: break-word; }
  .hdr .kopf-menue { position: static; }
  .hdr .kopf-menue > .menue { inset-inline-start: auto; inset-inline-end: var(--rand); max-width: calc(100vw - 2 * var(--rand)); }
}
@media (max-width: 400px) {
  .hdr:has(> .hdr-rechts > :nth-child(5)) { flex-wrap: wrap; row-gap: 6px; }
  .hdr:has(> .hdr-rechts > :nth-child(5)) > .hdr-kopf { order: 3; flex-basis: 100%; }
}

/* Konto · Erscheinungsbild: auf kleinen Handys Symbol über dem Text */
@media (max-width: 380px) {
  .thema-wahl button { flex-direction: column; gap: 2px; font-size: 13px; overflow-wrap: anywhere; }
}

/* Untere Leiste (Dock): lange Beschriftungen („Genel bakış“, „Daha fazla“) zweizeilig ohne den roten Strich zu berühren */
.dock a span, .dock button span { max-width: 100%; text-align: center; overflow-wrap: anywhere; line-height: 1.1; }
@media (max-width: 380px) {
  .dock a, .dock button { gap: 2px; }
  .dock a span, .dock button span { font-size: 10px; line-height: 1.05; }
  .dock .on span, .dock.mit-gleiter a span, .dock.mit-gleiter button span { margin-bottom: 0; }
  .dock .on::after { bottom: 2px; }
  .dock.mit-gleiter .gleiter::after { bottom: 2px; }
}

/* Maschinen · Übersicht: Kennzahl-Kacheln auf kleinen Handys zweispaltig (Wörter nicht mehr mitten im Wort getrennt) */
@media (max-width: 380px) {
  .gm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Magazin-Kacheln: Zustand („gemischt (davon 1 ALT)“) und Sperrbestand-Stepper passen in die schmale Kachel */
.kachel-meta { flex-wrap: wrap; row-gap: 4px; }
.zust { white-space: normal; max-width: 100%; overflow-wrap: break-word; }
.sperr-schritt:empty { display: none; }
@media (max-width: 420px) {
  .sperr:not(.gross) .sperr-zeile { gap: 4px; }
  .sperr:not(.gross) .sperr-input { flex: 1 1 0; width: auto; min-width: 30px; }
  .sperr:not(.gross) .sperr-schritt { min-width: 0; }
}
@media (max-width: 360px) {
  .sperr:not(.gross) { padding-left: 8px; padding-right: 8px; }
  .sperr:not(.gross) .sperr-schritt { display: none; }   /* Schrittweite steht auf der Artikelseite */
}

/* Arabisch (von rechts nach links): Aufklapp-Menüs öffnen zur Bildschirmmitte hin statt über den linken Rand hinaus
   (Filter in „Aufträge“ und im Kalender); Pfeil am Magnet-Titel bekommt seinen Abstand auf der richtigen Seite */
.menue { inset-inline-start: 0; }
.menue.rechts { inset-inline-start: auto; inset-inline-end: 0; }
.mg-titel { padding-inline: 2px 6px; }

/* ══ Bündige Listen (12./13.11.2026) ═══════════════════════════════════
   Master-Prompt Abschnitt 2: alle Auflistungen bündig untereinander — feste Spalten statt Ausrichtung nach Textlänge.
   Desktop: echte Spalten; Handy: Karten mit festen Plätzen. Logische Eigenschaften (start/end) für Arabisch (RTL). */

/* Lexware-Belege (Rechnungen, Angebote, Übersicht, Kontakt): Handy-Zeile mit festem Raster
   Zeile 1: Nummer | Betrag (rechtsbündig) · Zeile 2: Kunde · Zeile 3: Datum/Fällig | Status-Chip */
.lx-tabelle th { text-align: start; }
.lx-tabelle th.num, .lx-tabelle td.num { text-align: end; }
.lx-tabelle .lx-z-nr, .lx-tabelle .lx-z-datum, .lx-tabelle .lx-z-status { white-space: nowrap; }
.lx-tabelle .lx-z-name { overflow-wrap: anywhere; }
.lx-tabelle .lx-z-betrag { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .lx-tabelle.antwort tr.lx-zeile { grid-template-columns: minmax(0, 1fr) max-content; grid-template-areas: "nr betrag" "name name" "datum status";
    gap: 3px 12px; align-items: center; }
  .lx-tabelle.antwort tr.lx-zeile-kurz { grid-template-areas: "nr betrag" "datum status"; }
  .lx-zeile > .lx-z-nr { grid-area: nr; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .lx-zeile > .lx-z-betrag { grid-area: betrag; justify-self: end; font-weight: 650; }
  .lx-zeile > .lx-z-name { grid-area: name; min-width: 0; }
  .lx-zeile > .lx-z-datum { grid-area: datum; min-width: 0; font-size: 13.5px; }
  .lx-zeile > .lx-z-status { grid-area: status; justify-self: end; }
  .lx-zeile > .lx-z-status .chip { white-space: nowrap; }
  /* übrige Handy-Listen: jede Zeile ist ein eigenes Raster — die zweite Angabe steht daher fest am Zeilenende */
  .lx-tabelle.antwort tr:not(.lx-zeile) { grid-template-columns: minmax(0, 1fr) max-content; }
  .lx-tabelle.antwort td.lx-z-ende { justify-self: end; text-align: end; }
  .lx-tabelle.antwort td.lx-z-zeit { font-variant-numeric: tabular-nums; white-space: nowrap; }
  /* Mehrspaltige Listen (Geräte-Verlauf, Fahrzeug, Prüfungen, Vorlagen): untereinander, Beschriftung in fester Spalte */
  .lx-tabelle.antwort.lx-stapel tr { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .lx-tabelle.antwort.lx-stapel td[data-k] { position: relative; padding-inline-start: 7.5rem; min-height: 1.2em; }
  .lx-tabelle.antwort.lx-stapel td[data-k]::before { content: attr(data-k); position: absolute; inset-inline-start: 0; top: 1px; width: 7rem;
    overflow-wrap: anywhere; line-height: 1.35; }
  .lx-tabelle.antwort.lx-stapel td:empty:not([data-k]) { display: none; }
}

/* Lexware-Seitenleiste (Desktop): lange Namen („Auftragsbestätigungen“) brechen um, die Zähler bleiben bündig am Ende */
@media (min-width: 1100px) {
  .lx-nav a { white-space: normal; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; }
  .lx-nav a em { flex: none; }
}

/* Arabisch: Zahlen/Chips/Links „am Zeilenende“ stehen auch von rechts nach links am Ende (statt direkt hinter dem Text) */
[dir="rtl"] :is(.hdr-rechts, .section-label a, .hinweise-kopf .chip, .sidenav .badge, .haken .wer, .ls-side .karte h3 a, .detail-kopf .eyebrow .chip,
  .pf-filter span, .pf-bilder-hinweis a, .lx-nav a em, .gm-nav a.scan, .gm-fz-kopf .chip, .zv-link, .popup-titel small, .mg-filter, .mg-link,
  .sperr-speichern, .kr-thumb.gross, .gm-vf-titel a, .mt-alle, .gm-fl-kopf span, .gm-as-kopf span, .gm-as-knopf, .mt-fz-zahl, .gm-auf > summary .chip,
  .adr-quelle, .kal-abw-zeile small, .mt-alle-knopf, .ks-betrag, .lx-summen) { margin-left: 0; margin-right: auto; }
[dir="rtl"] .table th, [dir="rtl"] .table td, [dir="rtl"] .zv-tabelle th, [dir="rtl"] .lx-positionen th { text-align: start; }
[dir="rtl"] :is(.table td.num, .table th.num, .zv-tabelle .num, .lx-positionen .betrag, .kv .v, .kr-n) { text-align: end; }
[dir="rtl"] a.row::after { transform: rotate(-135deg); }
[dir="rtl"] .dk-stift { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .dk-zeile .abw { margin-left: 0; margin-right: 4px; }

/* Aufträge-Liste (Handy): Baustelle, Fahrzeug und Team je in eigener Zeile — Symbole und Texte stehen untereinander */
.auftrag-liste .tk-meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.auftrag-liste .tk-meta > span { display: flex; }

/* Auftragsdetails: Symbol oben an der Beschriftung statt mittig zur ganzen Zeile; Text-Spalte bündig */
.dk-zeile { align-items: flex-start; }
.dk-zeile > .ico { margin-top: 1px; }
.dk-zeile > .ico[width="18"] { margin-inline: 1px; margin-top: 2px; }   /* kleineres Symbol (Kunde) in derselben 20-px-Spalte */
.dk-zeile > .route-btn { align-self: center; }
/* Status-Knöpfe (Auftrag): Knopf passt in seine Spalte, nichts ragt über den Kartenrand */
.btn-row > form > .btn { min-width: 0; }

/* Postfächer (Anmeldeseite): Name/Adresse links, Status-Chip darunter, Knopf fest am Zeilenende */
.pf-liste-postfaecher .pf-testzeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name aktion" "chip aktion";
  gap: 6px 12px; align-items: center; }
.pf-liste-postfaecher .pf-testzeile > .chip { grid-area: chip; justify-self: start; }
.pf-liste-postfaecher .pf-testzeile > div { grid-area: name; }
.pf-liste-postfaecher .pf-testzeile > form, .pf-liste-postfaecher .pf-testzeile > .btn { grid-area: aktion; margin: 0; }
.pf-liste-postfaecher .pf-testzeile small { overflow-wrap: anywhere; }

/* Mitteilungen: Knöpfe in festen Spalten (nicht nach Breite des ersten Knopfs verschoben) */
.mt-aktionen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 6px 8px; justify-items: start; }
.mt-aktionen > *, .mt-aktionen .btn { max-width: 100%; }
.mt-aktionen .btn { white-space: normal; text-align: start; }

/* Konten & Rechte: Status-Chips am Zeilenende in eigener Spalte; auf dem Handy darunter, bündig mit dem Namen */
.row-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex: 0 1 auto; max-width: 100%; }
@media (max-width: 640px) {
  .row-chips { flex-basis: 100%; justify-content: flex-start; }
}

/* Maschinen: „QR fehlt“/„✓ QR“ unter dem Gerätenamen an fester Stelle statt hinter Namen unterschiedlicher Länge */
.gm-fz-zeile .gm-qr-marke, .lx-tabelle td .gm-qr-marke { display: table; margin: 3px 0 2px; }
/* Maschinen-Start (Autos): Zahlen „da / lange nicht gescannt / fehlt“ in festen Spalten statt nach Ziffernbreite verschoben */
.gm-ampel-zahlen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }

/* Barkasse: Betrag fest oben am Zeilenende, Beleg-Chip darunter — der Text links behält immer dieselbe Breite */
.row.ks-zeile { display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content; grid-template-areas: "text betrag pfeil" "text chip pfeil";
  column-gap: 12px; row-gap: 4px; align-items: center; }
.ks-zeile > .ks-zeile-text { grid-area: text; }
.ks-zeile > .ks-betrag { grid-area: betrag; justify-self: end; margin: 0; }
.ks-zeile > .chip { grid-area: chip; justify-self: end; }
a.row.ks-zeile::after { grid-area: pfeil; margin: 0; }
