/* ════════════════════════════════════════════════════════════════════
   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.
   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: #B8504A; --rot-status-hell: #F9E5E3;
  --blau: #4F7398;    --blau-hell: #E8EEF5;
  --violett: #6F6CA3; --violett-hell: #EDECF6;
  /* 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 */
}

*, *::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%, rgba(220, 166, 163, .30), rgba(220, 166, 163, 0) 62%),
    radial-gradient(900px 560px at -18% 104%, rgba(214, 223, 230, .55), rgba(214, 223, 230, 0) 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) { * { animation: none !important; transition: 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;
}
body.gescrollt .hdr { background: rgba(250, 250, 249, .82); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--linie); }
.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 { height: 30px; width: auto; }
.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(--rot-stark); 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 rgba(38, 50, 56, .05); 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 rgba(38, 50, 56, .05); 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: rgba(255, 255, 255, .88); box-shadow: var(--schatten); border: 1px solid rgba(38, 50, 56, .05); }
.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(--rose-hell); color: var(--rot-stark); }
.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-orange .hinweis-icon { background: var(--orange-hell); color: var(--orange); }
.ton-blau .hinweis-icon { background: var(--blau-hell); color: var(--blau); }
.ton-gruen .hinweis-icon { background: var(--gruen-hell); color: var(--gruen); }
.ton-violett .hinweis-icon { background: var(--violett-hell); color: var(--violett); }
.ton-rot .hinweis-icon { background: var(--rot-status-hell); color: var(--rot-status); }
.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(--gruen-hell); color: var(--gruen); }

/* 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 rgba(38, 50, 56, .05);
  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(--rot-stark); 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: #9F5252; }
.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(--rot-stark); 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(--rot-stark); 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(--gruen-hell); color: var(--gruen); }
.chip.warn { background: var(--rot-status-hell); color: var(--rot-status); }
.chip.wait { background: var(--orange-hell); color: var(--orange); }
.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(--rose-hell); color: var(--rot-stark); }
.ton-orange .tag { background: var(--orange-hell); color: var(--orange); }
.ton-blau .tag { background: var(--blau-hell); color: var(--blau); }
.ton-gruen .tag { background: var(--gruen-hell); color: var(--gruen); }
.ton-violett .tag { background: var(--violett-hell); color: var(--violett); }
.ton-rot .tag { background: var(--rot-status-hell); color: var(--rot-status); }
/* Produktstatus-Pill: Farbe kommt aus der Statuslogik (inline color) */
.pill { background: color-mix(in srgb, currentColor 11%, white); }
.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: #fff; }

/* 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, #FFFFFF 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, #FFFFFF 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 { 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; }

/* ── 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: 999px; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(38, 50, 56, .06), 0 12px 32px rgba(38, 50, 56, .14);
}
.dock a, .dock button {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 999px; 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(--rot-stark); }
.dock .on::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--rot-stark); }
.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 .22s ease-out, visibility 0s linear .22s;
}
body.nav-offen .sidenav { transform: none; visibility: visible; transition: transform .22s ease-out; }
.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 { height: 34px; width: auto; }
.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(--orange-hell); color: var(--orange); }
.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: rgba(255, 255, 255, .55); 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 rgba(38, 50, 56, .05); }
.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: #FCFCFB; 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 rgba(38, 50, 56, .05); }
.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(--rot-stark); 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 rgba(38, 50, 56, .05); }
.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: #FCFCFB; font-size: 10.5px; color: var(--text-2); line-height: 1.2; }
.planner th.we, .planner td.we { background: #F8F8F6; }
.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(--rot-stark); 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; }
.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: 20px; font-weight: 700; color: var(--text); margin: 2px 0; }
.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: rgba(255, 255, 255, .72); 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: rgba(255, 255, 255, .6); 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%, white); 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(--rot-stark); 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: 20px; 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: 18px; box-shadow: var(--schatten); }
.anmelde-kopf p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
