/* Lager – Oberfläche
   Ein ruhiges, helles Arbeitswerkzeug (dunkel, wenn das Gerät dunkel eingestellt ist). Eine Schrift (Inter),
   eine Akzentfarbe je Betrieb (kommt aus den Einstellungen), die Ampelfarben stehen nur für den Bestand.
   Ecken: Karten 12 px, Knöpfe und Felder 10 px, Chips rund. Tippflächen mindestens 44 px. */

@font-face {
  font-family: 'Inter'; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url('../assets/fonts/inter-variable.woff2') format('woff2');
}

:root {
  --akzent: #2563EB;                 /* wird je Betrieb gesetzt (Mehr → Einstellungen) */
  --auf-akzent: #FFFFFF;             /* Schrift auf der Akzentfarbe, passend zur Helligkeit */
  --akzent-text: color-mix(in oklab, var(--akzent), black 28%);
  --akzent-flaeche: color-mix(in oklab, var(--akzent), white 90%);
  --akzent-linie: color-mix(in oklab, var(--akzent), white 65%);

  --grund: #F4F5F7;
  --flaeche: #FFFFFF;
  --flaeche-2: #F1F3F6;
  --flaeche-3: #E8EBEF;
  --linie: #E4E7EC;
  --linie-stark: #CCD2DB;
  --text: #16191F;
  --text-2: #444B57;
  --gedaempft: #6B7280;

  --rot: #B42318; --rot-flaeche: #FEF3F2; --rot-linie: #FDA29B; --lampe-rot: #F04438;
  --gelb: #93370D; --gelb-flaeche: #FFFAEB; --gelb-linie: #FEC84B; --lampe-gelb: #F79009;
  --gruen: #067647; --gruen-flaeche: #ECFDF3; --gruen-linie: #75E0A7; --lampe-gruen: #17B26A;
  --grau: #98A2B3;
  --gruppe-a: #6938EF; --gruppe-a-flaeche: #EBE9FE;
  --gruppe-b: #B54708; --gruppe-b-flaeche: #FEF0C7;
  --gruppe-c: #175CD3; --gruppe-c-flaeche: #D1E9FF;

  --schatten: 0 1px 2px rgba(16, 24, 40, .06);
  --schatten-hoch: 0 16px 48px rgba(16, 24, 40, .18), 0 2px 6px rgba(16, 24, 40, .08);
  --r-karte: 12px;
  --r-knopf: 10px;
  --r-klein: 8px;
  --schrift: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --kopf: var(--schrift);
  --unten: env(safe-area-inset-bottom, 0px);
  --leiste: 60px;
  --kopfhoehe: 56px;
  --seitenleiste: 276px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --akzent-text: color-mix(in oklab, var(--akzent), white 30%);
    --akzent-flaeche: color-mix(in oklab, var(--akzent), #171A20 84%);
    --akzent-linie: color-mix(in oklab, var(--akzent), #171A20 55%);
    --grund: #0F1115;
    --flaeche: #171A20;
    --flaeche-2: #1F232B;
    --flaeche-3: #282D37;
    --linie: #272C35;
    --linie-stark: #3A4150;
    --text: #ECEEF2;
    --text-2: #B9BFCB;
    --gedaempft: #8B93A2;
    --rot: #F97066; --rot-flaeche: rgba(240, 68, 56, .14); --rot-linie: rgba(240, 68, 56, .45);
    --gelb: #FDB022; --gelb-flaeche: rgba(247, 144, 9, .14); --gelb-linie: rgba(247, 144, 9, .45);
    --gruen: #47CD89; --gruen-flaeche: rgba(23, 178, 106, .14); --gruen-linie: rgba(23, 178, 106, .45);
    --grau: #667085;
    --gruppe-a: #BDB4FE; --gruppe-a-flaeche: rgba(105, 56, 239, .25);
    --gruppe-b: #FEC84B; --gruppe-b-flaeche: rgba(181, 71, 8, .3);
    --gruppe-c: #84CAFF; --gruppe-c-flaeche: rgba(23, 92, 211, .3);
    --schatten: 0 1px 2px rgba(0, 0, 0, .4);
    --schatten-hoch: 0 20px 60px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; background: var(--grund); color: var(--text);
  font-family: var(--schrift); font-size: 15px; line-height: 1.5; font-weight: 400;
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
h1, h2, h3 { margin: 0; font-family: var(--kopf); font-weight: 600; letter-spacing: -.012em; line-height: 1.25; text-wrap: balance; }
h1 { font-size: 1.375rem; letter-spacing: -.02em; }
h2 { font-size: 1rem; }
h3 { font-size: .9375rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--akzent-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
strong { font-weight: 600; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.zahl { font-variant-numeric: tabular-nums; }
.gedaempft { color: var(--gedaempft); }
.klein { font-size: .875rem; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Rahmen: Kopfzeile, Navigation, Inhalt ---------- */
.rahmen { min-height: 100dvh; display: flex; flex-direction: column; }
.kopf {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  min-height: calc(env(safe-area-inset-top, 0px) + var(--kopfhoehe)); padding: env(safe-area-inset-top, 0px) 16px 0;
  background: var(--flaeche); border-bottom: 1px solid var(--linie);
}
.marke { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.marke-zeichen { width: 32px; height: 32px; flex: none; border-radius: 9px; object-fit: contain; }
.marke-initial { display: grid; place-items: center; background: var(--akzent); color: var(--auf-akzent); font-weight: 700; font-size: 1rem; letter-spacing: 0; }
.marke-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.marke-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9375rem; }
.marke-produkt { font-size: .72rem; font-weight: 500; color: var(--gedaempft); letter-spacing: .02em; }
.standort-wahl { margin-left: auto; display: flex; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 999px; padding: 3px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.standort-wahl::-webkit-scrollbar { display: none; }
.standort-wahl button { border: 0; background: none; padding: 0 12px; border-radius: 999px; font-weight: 500; font-size: .8125rem; color: var(--text-2); white-space: nowrap; min-height: 32px; transition: background .15s ease, color .15s ease; }
.standort-wahl button[aria-pressed="true"] { background: var(--flaeche); color: var(--text); font-weight: 600; box-shadow: var(--schatten); }
.standort-wahl button:hover:not([aria-pressed="true"]) { color: var(--text); }
.nutzer-chip { display: none; }
/* Nur die Deckkraft animieren: ein Transform auf dem Inhalt würde die feste Fußleiste (.fuss) mitnehmen. */
.inhalt { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 18px 16px calc(var(--leiste) + var(--unten) + 28px); animation: einblenden .2s ease-out; }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
.inhalt.mit-fuss { padding-bottom: calc(var(--leiste) + var(--unten) + 110px); }
.titelzeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.titelzeile p { margin-top: 2px; }
.titelzeile .knopf { flex: none; }
.zurueck { display: inline-flex; align-items: center; gap: 2px; margin: -4px 0 8px -8px; padding: 6px 8px; color: var(--gedaempft); text-decoration: none; font-weight: 500; font-size: .875rem; border-radius: var(--r-klein); }
.zurueck:hover { color: var(--text); background: var(--flaeche-3); }
.zurueck svg { transform: rotate(180deg); width: 16px; height: 16px; }

/* Tableiste unten (Handy) */
.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--flaeche); border-top: 1px solid var(--linie); padding-bottom: var(--unten);
}
.leiste a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--leiste);
  color: var(--gedaempft); text-decoration: none; font-size: .68rem; font-weight: 500; transition: color .15s ease;
}
.leiste a svg { width: 22px; height: 22px; }
.leiste a[aria-current="page"] { color: var(--akzent-text); font-weight: 600; }
.leiste a[aria-current="page"]::before { content: ''; position: absolute; top: 0; width: 28px; height: 2px; border-radius: 0 0 2px 2px; background: var(--akzent); }
.anzahl { position: absolute; top: 7px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--lampe-rot); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }

/* Seitenleiste (Rechner) – erst ab 960 px sichtbar */
.seitenleiste { display: none; }

@media (min-width: 960px) {
  :root { --kopfhoehe: 60px; }
  .rahmen { flex-direction: row; flex-wrap: wrap; }
  .kopf { width: 100%; padding-left: 20px; padding-right: 24px; gap: 16px; }
  .marke-zeichen { width: 34px; height: 34px; }
  .marke-name { font-size: 1rem; }
  .nutzer-chip { display: inline-flex; align-items: center; gap: 10px; margin-left: 12px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid transparent; color: var(--text); text-decoration: none; font-size: .8125rem; font-weight: 500; transition: background .15s ease, border-color .15s ease; }
  .nutzer-chip:hover { background: var(--flaeche-2); border-color: var(--linie); }
  .nutzer-chip .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche-3); color: var(--text-2); font-weight: 600; font-size: .75rem; }
  .nutzer-chip small { display: block; color: var(--gedaempft); font-size: .72rem; font-weight: 400; line-height: 1.1; }
  .leiste { display: none; }
  .seitenleiste {
    display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--kopfhoehe)); align-self: flex-start;
    width: var(--seitenleiste); height: calc(100dvh - var(--kopfhoehe)); overflow-y: auto; padding: 16px 12px 20px;
    background: var(--flaeche); border-right: 1px solid var(--linie);
  }
  .sl-gruppe { margin: 14px 10px 6px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gedaempft); }
  .sl-gruppe:first-child { margin-top: 0; }
  .seitenleiste a {
    position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: var(--r-klein);
    color: var(--text-2); text-decoration: none; font-size: .875rem; font-weight: 500; transition: background .12s ease, color .12s ease;
  }
  .seitenleiste a > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .seitenleiste a svg { width: 18px; height: 18px; color: var(--gedaempft); transition: color .12s ease; }
  .seitenleiste a:hover { background: var(--flaeche-2); color: var(--text); }
  .seitenleiste a:hover svg { color: var(--text-2); }
  .seitenleiste a[aria-current="page"] { background: var(--akzent-flaeche); color: var(--akzent-text); font-weight: 600; }
  .seitenleiste a[aria-current="page"] svg { color: var(--akzent-text); }
  .seitenleiste .anzahl { position: static; margin-left: auto; }
  .sl-fuss { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--linie); font-size: .75rem; color: var(--gedaempft); line-height: 1.4; }
  .inhalt, .inhalt.mit-fuss { padding: 28px 40px 120px; max-width: 1160px; margin: 0; }
  h1 { font-size: 1.625rem; }
  .titelzeile { margin-bottom: 20px; }
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: var(--r-knopf); border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text);
  font-weight: 500; font-size: .9375rem; text-decoration: none; white-space: nowrap; box-shadow: var(--schatten);
  transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.knopf:hover { background: var(--flaeche-2); border-color: var(--linie-stark); }
.knopf:active { transform: scale(.985); }
.knopf:disabled { opacity: .5; cursor: default; transform: none; }
.knopf svg { width: 18px; height: 18px; }
.knopf-haupt { background: var(--akzent); color: var(--auf-akzent); border-color: transparent; font-weight: 600; }
.knopf-haupt:hover { background: color-mix(in oklab, var(--akzent), black 10%); border-color: transparent; }
.knopf-gefahr { color: var(--rot); border-color: var(--rot-linie); background: var(--flaeche); }
.knopf-gefahr:hover { background: var(--rot-flaeche); }
.knopf-leise { background: none; border-color: transparent; box-shadow: none; color: var(--akzent-text); padding: 0 10px; }
.knopf-leise:hover { background: var(--akzent-flaeche); }
.knopf-klein { min-height: 36px; padding: 0 12px; font-size: .875rem; }
.knopf-breit { width: 100%; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; }
.knopf-reihe > * { flex: 1 1 150px; }
@media (min-width: 960px) { .knopf { min-height: 40px; } .knopf-klein { min-height: 34px; } }

/* ---------- Karten und Listen ---------- */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); padding: 16px; margin-bottom: 14px; box-shadow: var(--schatten); }
.karte > h2 { margin-bottom: 10px; }
.karte > p, .karte > ul, .karte > ol { margin-bottom: 12px; }
.karte > :last-child { margin-bottom: 0; }
.karte ul:not(.zeilen), .karte ol { padding-left: 20px; margin-top: 0; }
.karte li { margin-bottom: 4px; }
.karte .zeilen li { margin-bottom: 0; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.karte-kopf h2 { margin: 0; }
.abschnitt { margin: 24px 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.abschnitt h2, h2.abschnitt { font-size: .9375rem; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.abschnitt .lampe { width: 10px; height: 10px; }
.abschnitt a { font-weight: 500; }
@media (min-width: 960px) { .karte { padding: 20px; } }

.zeilen { list-style: none; margin: 0; padding: 0; }
.zeile { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); min-height: 60px; animation: erscheinen .25s ease-out both; }
.zeilen > li:nth-child(2) .zeile, .zeilen > li.zeile:nth-child(2) { animation-delay: 25ms; }
.zeilen > li:nth-child(3) .zeile, .zeilen > li.zeile:nth-child(3) { animation-delay: 50ms; }
.zeilen > li:nth-child(4) .zeile, .zeilen > li.zeile:nth-child(4) { animation-delay: 75ms; }
.zeilen > li:nth-child(5) .zeile, .zeilen > li.zeile:nth-child(5) { animation-delay: 100ms; }
.zeilen > li:nth-child(6) .zeile, .zeilen > li.zeile:nth-child(6) { animation-delay: 125ms; }
.zeilen > li:nth-child(7) .zeile, .zeilen > li.zeile:nth-child(7) { animation-delay: 150ms; }
.zeilen > li:nth-child(8) .zeile, .zeilen > li.zeile:nth-child(8) { animation-delay: 175ms; }
.zeilen > .zeile:last-child, .zeilen > li:last-child > .zeile { border-bottom: 0; }
.zeile-knopf { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--linie); border-radius: 0; color: inherit; transition: background .12s ease; }
.zeile-knopf:hover { background: var(--flaeche-2); }
a.zeile-knopf { text-decoration: none; }
.liste-karte .zeile-knopf { margin: 0 -14px; width: calc(100% + 28px); padding-left: 14px; padding-right: 14px; }
.zeile .mitte { flex: 1; min-width: 0; }
.zeile .name { font-weight: 600; overflow-wrap: anywhere; }
.zeile .neben { font-size: .8125rem; color: var(--gedaempft); margin-top: 1px; }
/* Urdu und Arabisch unter dem deutschen Namen (rechts-nach-links, etwas größer, damit gut lesbar) */
.uebersetzt { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 1px; font-size: 1rem; line-height: 1.55; color: var(--text-2); }
.uebersetzt span { unicode-bidi: isolate; }
.uebersetzt span[lang="ar"] { color: var(--gedaempft); }
input[dir="rtl"] { text-align: right; }
.zeile .rechts { text-align: right; flex: none; }
.zeile .bestand { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; letter-spacing: -.01em; }
.zeile .einheit { font-size: .75rem; color: var(--gedaempft); }
.liste-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); padding: 2px 14px; margin-bottom: 14px; box-shadow: var(--schatten); }
.liste-karte > .zeilen > li > .zeile, .liste-karte > .zeilen > li.zeile { padding-top: 11px; padding-bottom: 11px; }
@media (min-width: 960px) {
  .liste-karte { padding: 2px 20px; }
  .liste-karte .zeile-knopf { margin: 0 -20px; width: calc(100% + 40px); padding-left: 20px; padding-right: 20px; }
  .zeile .rechts { min-width: 88px; }
}

/* ---------- Ampel ---------- */
.lampe { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--grau); box-shadow: 0 0 0 3px color-mix(in oklab, var(--grau), transparent 80%); }
.lampe.rot { background: var(--lampe-rot); box-shadow: 0 0 0 3px color-mix(in oklab, var(--lampe-rot), transparent 80%); }
.lampe.gelb { background: var(--lampe-gelb); box-shadow: 0 0 0 3px color-mix(in oklab, var(--lampe-gelb), transparent 80%); }
.lampe.gruen { background: var(--lampe-gruen); box-shadow: 0 0 0 3px color-mix(in oklab, var(--lampe-gruen), transparent 80%); }
.ampel-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.kachel { display: block; text-align: left; border-radius: var(--r-karte); padding: 14px 14px 12px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); text-decoration: none; box-shadow: var(--schatten); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.kachel:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16, 24, 40, .08); }
.kachel .wert { font-size: 2.125rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kachel .wort { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: .78rem; margin-top: 10px; }
.kachel .wort .lampe { width: 9px; height: 9px; box-shadow: none; }
.kachel .sagt { font-size: .78rem; color: var(--gedaempft); margin-top: 1px; }
.kachel.rot { border-color: var(--rot-linie); }
.kachel.rot .wert { color: var(--rot); }
.kachel.rot .lampe { animation: pulsen 2.4s ease-in-out infinite; }
.kachel.gelb { border-color: var(--gelb-linie); }
.kachel.gelb .wert { color: var(--gelb); }
.kachel.gruen { border-color: var(--gruen-linie); }
.kachel.gruen .wert { color: var(--gruen); }
.status-text { font-weight: 600; font-size: .8rem; }
.status-text.rot { color: var(--rot); }
.status-text.gelb { color: var(--gelb); }
.status-text.gruen { color: var(--gruen); }
.status-text.grau { color: var(--gedaempft); }
@media (min-width: 960px) { .ampel-kacheln { gap: 14px; margin-bottom: 12px; } .kachel { padding: 18px 18px 16px; } .kachel .wert { font-size: 2.5rem; } }

.gruppe { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; font-size: .7rem; font-weight: 700; vertical-align: 2px; margin-left: 6px; }
.gruppe.A { background: var(--gruppe-a-flaeche); color: var(--gruppe-a); }
.gruppe.B { background: var(--gruppe-b-flaeche); color: var(--gruppe-b); }
.gruppe.C { background: var(--gruppe-c-flaeche); color: var(--gruppe-c); }
.marke-klein { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--flaeche-2); border: 1px solid var(--linie); color: var(--text-2); white-space: nowrap; line-height: 1.5; }
.marke-klein.warn { border-color: var(--gelb-linie); background: var(--gelb-flaeche); color: var(--gelb); }
.zeile .name .marke-klein { margin-left: 8px; vertical-align: 2px; }

.fortschritt { height: 6px; border-radius: 999px; background: var(--flaeche-3); overflow: hidden; margin: 10px 0 14px; }
.fortschritt i { display: block; height: 100%; width: 0; background: var(--akzent); border-radius: 999px; transition: width .5s cubic-bezier(.2, .7, .2, 1); }

/* ---------- Filter ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text-2); font-weight: 500; font-size: .8125rem; white-space: nowrap; flex: none; transition: background .12s ease, color .12s ease, border-color .12s ease; }
.chip:hover { background: var(--flaeche-2); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--grund); border-color: var(--text); font-weight: 600; }
.chip .lampe { width: 9px; height: 9px; box-shadow: none; }
.suche { position: relative; margin-bottom: 10px; display: block; }
.suche svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--gedaempft); pointer-events: none; width: 18px; height: 18px; }
.suche input[type="search"] { padding-left: 42px; }
@media (min-width: 960px) { .chips { margin: 0; padding: 2px 0 12px; flex-wrap: wrap; } }

/* ---------- Felder ---------- */
.feld { display: block; margin-bottom: 14px; }
.feld > span, .feld > legend { display: block; font-weight: 500; font-size: .8125rem; color: var(--text-2); margin-bottom: 6px; padding: 0; }
.feld small { display: block; color: var(--gedaempft); font-size: .78rem; margin-top: 5px; line-height: 1.45; }
fieldset.feld { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
input[type="text"], input[type="password"], input[type="search"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], input[type="color"], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border-radius: var(--r-knopf); border: 1px solid var(--linie-stark);
  background: var(--flaeche); color: var(--text); font-size: 1rem; appearance: none; -webkit-appearance: none; box-shadow: var(--schatten);
  transition: border-color .12s ease, box-shadow .12s ease;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--gedaempft) 50%), linear-gradient(135deg, var(--gedaempft) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input::placeholder, textarea::placeholder { color: var(--gedaempft); opacity: 1; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; width: 14px; height: 14px; background: var(--gedaempft); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm3.5 12.1l-1.4 1.4L12 13.4l-2.1 2.1-1.4-1.4 2.1-2.1-2.1-2.1 1.4-1.4 2.1 2.1 2.1-2.1 1.4 1.4-2.1 2.1z'/%3E%3C/svg%3E") center / contain no-repeat; cursor: pointer; }
textarea { min-height: 180px; resize: vertical; line-height: 1.5; font-variant-numeric: tabular-nums; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--akzent), transparent 78%); }
input[type="color"] { padding: 4px; width: 64px; cursor: pointer; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 6px; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.haken { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 500; margin-bottom: 8px; }
input[type="checkbox"] { width: 20px; height: 20px; flex: none; accent-color: var(--akzent); margin: 0; }
.tage { display: flex; gap: 6px; flex-wrap: wrap; }
.tage label { position: relative; }
.tage input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; }
.tage span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--linie-stark); font-weight: 600; font-size: .8125rem; background: var(--flaeche); transition: background .12s ease, color .12s ease; }
.tage input:checked + span { background: var(--akzent); color: var(--auf-akzent); border-color: transparent; }
.tage input:focus-visible + span { outline: 2px solid var(--akzent); outline-offset: 2px; }
.fehler { color: var(--rot); font-weight: 500; font-size: .875rem; margin: 4px 0 12px; }
.hinweis { background: var(--gelb-flaeche); border: 1px solid var(--gelb-linie); border-radius: var(--r-knopf); padding: 10px 12px; font-size: .875rem; margin-bottom: 14px; color: var(--text); }
.hinweis a { color: var(--gelb); font-weight: 600; }

/* Mengen-Eingabe mit Minus und Plus */
.zaehler { display: flex; align-items: center; gap: 4px; flex: none; }
.zaehler button { width: 40px; height: 42px; border-radius: var(--r-knopf); border: 1px solid var(--linie-stark); background: var(--flaeche); display: grid; place-items: center; padding: 0; color: var(--text-2); box-shadow: var(--schatten); transition: background .12s ease, color .12s ease; }
.zaehler button svg { width: 18px; height: 18px; }
.zaehler button:hover { background: var(--flaeche-2); color: var(--text); }
.zaehler button:active { background: var(--akzent); color: var(--auf-akzent); border-color: transparent; }
.zaehler input { width: 60px; min-height: 42px; text-align: center; font-weight: 600; font-size: 1.0625rem; padding: 6px 2px; font-variant-numeric: tabular-nums; }
.zaehler input.gefuellt { border-color: var(--akzent); background: var(--akzent-flaeche); }
.zaehl-zeile { gap: 10px; }
.zeile.umbruch { flex-wrap: wrap; justify-content: flex-end; }
.zeile.umbruch .mitte { flex: 1 1 180px; }
@media (min-width: 520px) { .zaehler input { width: 76px; } .zaehler { gap: 6px; } }

/* Feste Leiste unten (Zählung speichern, Einkauf starten) */
.fuss {
  position: fixed; left: 0; right: 0; bottom: calc(var(--leiste) + var(--unten)); z-index: 25; padding: 10px 16px;
  background: color-mix(in srgb, var(--flaeche) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--linie); display: flex; align-items: center; gap: 12px;
}
.fuss .knopf { flex: 1; }
.fuss .stand { flex: none; font-weight: 600; font-size: .875rem; color: var(--text-2); }
@media (min-width: 960px) { .fuss { left: var(--seitenleiste); bottom: 0; padding: 14px 40px; } .fuss .knopf { flex: 0 1 320px; } }

/* ---------- Dialog ---------- */
dialog.blatt {
  /* Höhe in % des Bildschirms statt dvh: in der App vom Home-Bildschirm (iPhone) kann dvh falsch klein ausfallen,
     dann blieb vom Blatt nur die Kopfzeile am unteren Rand. */
  width: min(560px, 100%); max-width: 100%; height: fit-content; max-height: calc(100% - max(16px, env(safe-area-inset-top, 0px) + 8px));
  margin: auto auto 0; padding: 0; border: 0;
  border-radius: 18px 18px 0 0; background: var(--flaeche); color: var(--text); overflow: hidden; box-shadow: var(--schatten-hoch);
}
dialog.blatt[open] { display: flex; flex-direction: column; animation: hoch .24s cubic-bezier(.16, 1, .3, 1); }
dialog.blatt::backdrop { background: rgba(10, 12, 18, .45); backdrop-filter: blur(2px); }
.blatt-kopf { flex: none; display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--linie); }
.blatt-kopf h2 { flex: 1; font-size: 1.125rem; overflow-wrap: anywhere; }
.blatt-kopf button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--flaeche-2); color: var(--text-2); display: grid; place-items: center; padding: 0; transition: background .12s ease; }
.blatt-kopf button:hover { background: var(--flaeche-3); color: var(--text); }
.blatt-kopf button svg { width: 18px; height: 18px; }
.blatt-inhalt { flex: 1 1 auto; min-height: 0; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.blatt-fuss { flex: none; padding: 12px 16px calc(12px + var(--unten)); border-top: 1px solid var(--linie); display: flex; gap: 10px; background: var(--flaeche); }
.blatt-fuss .knopf { flex: 1; }
@keyframes hoch { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes erscheinen { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pulsen { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--lampe-rot), transparent 50%); } 60% { box-shadow: 0 0 0 7px color-mix(in oklab, var(--lampe-rot), transparent 100%); } }
@media (min-width: 700px) { dialog.blatt { margin: auto; border-radius: 16px; border: 1px solid var(--linie); } .blatt-inhalt { padding: 20px; } .blatt-kopf { padding: 18px 20px 14px; } .blatt-fuss { padding: 14px 20px; } }

.gross-zahl { font-size: 2.5rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kennwerte { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.kennwerte div { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--r-knopf); padding: 10px 12px; }
.kennwerte dt { font-size: .74rem; color: var(--gedaempft); font-weight: 500; }
.kennwerte dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
dl.kennwerte { margin-left: 0; margin-right: 0; }
.aktionen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.aktionen .knopf { justify-content: flex-start; padding: 0 14px; }
@media (min-width: 960px) { .aktionen { grid-template-columns: repeat(3, 1fr); } .start-block .aktionen { grid-template-columns: 1fr 1fr; } }

.rezept-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 84px auto 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.rezept-zeile button { width: 40px; height: 40px; border-radius: var(--r-knopf); border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text-2); display: grid; place-items: center; padding: 0; }
.rezept-zeile button:hover { background: var(--rot-flaeche); color: var(--rot); border-color: var(--rot-linie); }
.rezept-zeile input { text-align: center; padding-left: 6px; padding-right: 6px; }
.rezept-zeile span { min-width: 34px; font-size: .875rem; color: var(--gedaempft); }
.tag-wahl { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.tag-wahl button { width: 44px; height: 44px; flex: none; border-radius: var(--r-knopf); border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text-2); display: grid; place-items: center; padding: 0; box-shadow: var(--schatten); }
.tag-wahl button:hover { background: var(--flaeche-2); color: var(--text); }
.tag-wahl button:first-child svg { transform: rotate(180deg); }
.posten { list-style: none; margin: 0; padding: 0; }
.karte .posten li { padding: 5px 0; margin: 0; font-weight: 500; }
.posten .zahl { color: var(--akzent-text); font-weight: 600; }
.posten .marke-klein { margin-left: 8px; }
.bestellung .karte-kopf { margin-bottom: 6px; }
.knopf-paar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.kasse-zeile { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 0; }
.kasse-zeile svg { width: 18px; height: 18px; margin-top: 2px; }
.kasse-zeile a { margin-left: 4px; }

/* ---------- Meldungen ---------- */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--leiste) + var(--unten) + 16px); z-index: 60; margin: 0 auto; max-width: 520px; padding: 13px 16px; border-radius: var(--r-knopf); background: #1C2027; color: #F4F5F7; font-weight: 500; font-size: .9375rem; box-shadow: var(--schatten-hoch); display: flex; align-items: center; gap: 14px; animation: hoch .22s ease; }
.toast > span { flex: 1 1 auto; min-width: 0; }
.toast.schlecht { background: #7A1D14; color: #FFF1EF; }
.toast.ueber-fuss { bottom: calc(var(--leiste) + var(--unten) + 88px); }
@media (min-width: 960px) { .toast { bottom: 24px; left: var(--seitenleiste); } .toast.ueber-fuss { bottom: 96px; } }
@media (prefers-color-scheme: dark) { .toast { background: #F4F5F7; color: #16191F; } .toast.schlecht { background: #FECDCA; color: #7A1D14; } }
.toast a, .toast button { flex: none; margin-left: auto; color: inherit; font-weight: 600; background: none; border: 0; text-decoration: underline; text-underline-offset: 2px; padding: 6px 0; white-space: nowrap; cursor: pointer; }
.leer { text-align: center; padding: 34px 16px; color: var(--gedaempft); font-size: .9375rem; }
.leer strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 4px; }
.skelett { height: 60px; border-radius: var(--r-knopf); background: linear-gradient(90deg, var(--flaeche-2) 25%, var(--flaeche-3) 50%, var(--flaeche-2) 75%); background-size: 200% 100%; animation: schimmer 1.3s linear infinite; margin-bottom: 10px; }
@keyframes schimmer { to { background-position: -200% 0; } }

/* ---------- Tabelle (Auswertung) ---------- */
.tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabelle th { text-align: right; font-size: .72rem; color: var(--gedaempft); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid var(--linie-stark); }
.tabelle th:first-child, .tabelle td:first-child { text-align: left; padding-left: 0; }
.tabelle td { text-align: right; padding: 10px 6px; border-bottom: 1px solid var(--linie); font-variant-numeric: tabular-nums; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle td:last-child, .tabelle th:last-child { padding-right: 0; }
.tabelle tbody tr:hover td { background: var(--flaeche-2); }

/* ---------- Anmeldung ---------- */
.anmeldung { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(60% 40% at 50% 0%, color-mix(in oklab, var(--akzent), transparent 86%), transparent 70%), var(--grund); }
.anmeldung .karte { width: min(420px, 100%); padding: 28px 24px; margin: 0; box-shadow: var(--schatten-hoch); }
.anmeldung .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.anmeldung .logo .marke-zeichen { width: 48px; height: 48px; border-radius: 12px; }
.anmeldung .logo .marke-initial { font-size: 1.375rem; }
.anmeldung h1 { font-size: 1.25rem; line-height: 1.2; }
.anmeldung h1 small { display: block; font-size: .8125rem; font-weight: 500; color: var(--gedaempft); letter-spacing: 0; margin-top: 2px; }
.anmeldung .gedaempft { margin-bottom: 18px; }
.anmeldung .haken { margin-bottom: 16px; }
.anmeldung h2 { margin-bottom: 6px; font-size: 1.125rem; }

.menue a { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--linie); color: var(--text); text-decoration: none; font-weight: 600; min-height: 60px; transition: background .12s ease; }
.menue a:last-child { border-bottom: 0; }
.menue a > svg:first-child { color: var(--akzent-text); width: 22px; height: 22px; }
.menue a > svg:last-child { margin-left: auto; color: var(--gedaempft); width: 18px; height: 18px; }
.menue small { display: block; color: var(--gedaempft); font-weight: 400; font-size: .8125rem; margin-top: 1px; }
@media (min-width: 700px) {
  .menue { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .menue a:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* ---------- Startseite: auf dem Rechner zwei Spalten ---------- */
.start-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
.start-block { min-width: 0; }
.start-block > .abschnitt:first-child { margin-top: 20px; }
@media (min-width: 960px) {
  .start-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-voll { grid-column: 1 / -1; }
  .start-block > .abschnitt:first-child { margin-top: 14px; }
}

/* ---------- Einstellungen: Betrieb ---------- */
.logo-wahl { display: flex; align-items: center; gap: 14px; }
.logo-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.logo-vorschau { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--linie); background: var(--flaeche-2); display: grid; place-items: center; overflow: hidden; }
.logo-vorschau img { width: 100%; height: 100%; object-fit: contain; }
.logo-vorschau .marke-initial { width: 100%; height: 100%; border-radius: 0; font-size: 1.5rem; }
.farbe-wahl { display: flex; align-items: center; gap: 10px; }
.umrechnung { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Vorschläge beim Tippen (Ausschuss: Gericht oder Ware) */
.vorschlag-feld { position: relative; }
.vorschlaege { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--flaeche); border: 1px solid var(--linie-stark); border-radius: var(--r-knopf); box-shadow: var(--schatten-hoch); max-height: 320px; overflow-y: auto; }
.vorschlag { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: var(--r-klein); cursor: pointer; }
.vorschlag[aria-selected="true"], .vorschlag:hover { background: var(--akzent-flaeche); }
.vorschlag-name { font-weight: 600; overflow-wrap: anywhere; }
.vorschlag-art { flex: none; font-size: .75rem; color: var(--gedaempft); }
.vorschlag-art.ware { color: var(--akzent-text); }
.leer-vorschlag { color: var(--gedaempft); cursor: default; }
.auswahl-hinweis { margin-top: 6px; }
.vorschlaege.in-gruppe { position: static; margin-top: 6px; box-shadow: none; }
.gruppen-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gruppen-knoepfe[hidden] { display: none; }
.gruppen-knopf { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--linie-stark); border-radius: 999px; background: var(--flaeche); color: inherit; font: inherit; font-size: 0.9rem; cursor: pointer; }
.gruppen-knopf[aria-pressed="true"] { background: var(--text); color: var(--flaeche); border-color: var(--text); }
.gruppen-zahl { font-size: 0.78rem; opacity: 0.7; font-variant-numeric: tabular-nums; }
.bereich-chips { padding-bottom: 6px; }
.umrechnung input { max-width: 140px; }
.farbe-wahl input[type="text"] { max-width: 140px; font-variant-numeric: tabular-nums; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Bestelldokument: auf dem Bildschirm als weißes Blatt, damit man sieht, was gedruckt wird ---------- */
.bd-optionen { display: grid; gap: 4px; }
.bd-optionen .haken { margin-bottom: 0; }
.bd-auswahl { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 500; }
.bd-auswahl select { width: auto; flex: 0 1 auto; }
.bd-zusammenfassung { margin: 6px 0 0; }
.bestelldok-papier { background: #fff; color: #17121F; border-radius: var(--r-karte); border: 1px solid var(--linie); padding: 22px 18px; margin-top: 14px; overflow-x: auto; }
.bd-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 3px solid var(--akzent); padding-bottom: 10px; margin-bottom: 14px; }
.bd-marke { font-weight: 700; font-size: 1rem; letter-spacing: -.01em; color: #17121F; }
.bd-marke b { color: var(--akzent-text); font-weight: 700; }
.bd-kopf h2 { margin: 0; font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: #17121F; letter-spacing: -.02em; }
.bd-meta { text-align: right; font-size: .85rem; color: #4A4256; line-height: 1.45; }
.bd-meta strong { color: #17121F; font-size: 1rem; }
.bd-gruppe { margin-top: 16px; }
.bd-gruppe h3 { margin: 0 0 6px; padding: 6px 10px; background: #1C2027; color: #fff; border-radius: 8px; font-size: .9rem; }
.bd-ungezaehlt h3 { background: #8A8F99; }
.bestelldok-papier table { width: 100%; border-collapse: collapse; font-size: .9rem; table-layout: fixed; min-width: 760px; }
.bestelldok-papier th.bd-haken { width: 40px; } .bestelldok-papier th.bd-art { width: 30%; } .bestelldok-papier th.bd-bestellen { width: 180px; }
.bestelldok-papier td { overflow-wrap: anywhere; }
.bestelldok-papier th { text-align: left; font-size: .7rem; white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; color: #6E6A7A; padding: 6px 6px; border-bottom: 1px solid #D9D6E0; }
.bestelldok-papier td { padding: 8px 6px; border-bottom: 1px solid #ECEAF0; vertical-align: middle; }
.bestelldok-papier td.zahl { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bd-name { font-weight: 600; }
.bd-hinweis { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 99px; background: #FFF1D6; color: #8A5300; font-size: .72rem; font-weight: 600; }
.bd-uebersetzt { display: flex; flex-wrap: wrap; gap: 0 12px; color: #8A5300; font-size: .95rem; line-height: 1.5; }
.bd-uebersetzt span[lang="ar"] { color: #4A4256; }
.bd-fehlt { font-weight: 600; color: #B42318; }
.bd-bestellen { min-width: 150px; }
.bd-bestellen .zaehler { max-width: 170px; }
.bd-gebinde { font-size: .78rem; color: #6E6A7A; margin-top: 2px; }
.bestelldok-papier tr.bd-aus td { opacity: .4; }
.bestelldok-papier .zaehler button, .bestelldok-papier .zaehler input { color: #17121F; background: #F4F3F7; border-color: #D9D6E0; box-shadow: none; }
.bd-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 10px; border-top: 1px solid #D9D6E0; font-size: .78rem; color: #6E6A7A; }
.bd-leer { font-size: 1.05rem; font-weight: 500; }
/* Alle Verkäufe (Kasse) */
.kv-tag .abschnitt h3 { margin: 0; font-size: .9375rem; }
.kv-tag .name .marke-klein { margin-left: 8px; }

/* Was wurde abgezogen? */
.abzug { margin-top: 10px; border-top: 1px solid var(--linie); padding-top: 8px; }
.abzug summary { cursor: pointer; font-weight: 500; font-size: .875rem; color: var(--akzent-text); min-height: 32px; display: flex; align-items: center; }
.abzug ul { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.abzug-warn { color: var(--gelb); }

/* Bestelllisten der Bereiche */
.bd-status { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .8125rem; background: var(--flaeche-2); color: var(--gedaempft); flex: none; }
.bd-status.fertig { background: var(--gruen-flaeche); color: var(--gruen); }
.bd-listen { margin-top: 14px; }

/* Kassenabschluss */
.ka-liste { display: grid; gap: 8px; }
.ka-zeile { display: grid; grid-template-columns: 64px minmax(0, 1fr) 84px; align-items: center; gap: 10px; }
.ka-wert { font-weight: 600; font-size: 1rem; text-align: center; padding: 6px 4px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.ka-wert.schein { background: var(--gruen-flaeche); color: var(--gruen); border: 1px solid var(--gruen-linie); }
.ka-wert.muenze { background: var(--gelb-flaeche); color: var(--gelb); border-radius: 999px; border: 1px solid var(--gelb-linie); }
.ka-zwischen { text-align: right; font-variant-numeric: tabular-nums; color: var(--gedaempft); font-weight: 500; }
.ka-zeile .zaehler { max-width: none; }
.ka-stand { position: sticky; bottom: calc(var(--leiste) + var(--unten, 0px) + 8px); z-index: 2; display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--r-knopf); background: var(--flaeche); border: 1px solid var(--linie-stark); box-shadow: var(--schatten-hoch); font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 14px; }
@media (min-width: 960px) { .ka-stand { bottom: 8px; } }
.ka-summe { font-variant-numeric: tabular-nums; }
.ka-formel { font-weight: 500; font-size: .9rem; background: var(--flaeche-2); border-radius: var(--r-knopf); padding: 10px 12px; }
.ka-gut { color: var(--gruen); } .ka-schlecht { color: var(--rot); }
.marke-klein.ka-gut { border-color: var(--gruen-linie); background: var(--gruen-flaeche); } .marke-klein.ka-schlecht { border-color: var(--rot-linie); background: var(--rot-flaeche); }

/* Bargeld in der Kasse (Tagesabrechnung) */
.bargeld { margin: 14px 0; padding: 12px 14px; border-radius: var(--r-knopf); background: var(--flaeche-2); display: grid; gap: 10px; }
.bargeld h3 { margin: 0; font-size: .9375rem; }
.bargeld-rechnung { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bargeld-rechnung td { padding: 5px 0; border-bottom: 1px solid var(--linie); }
.bargeld-rechnung td.zahl { text-align: right; font-weight: 500; white-space: nowrap; }
.bargeld-rechnung tr.summe td { font-weight: 600; font-size: 1.05rem; border-top: 2px solid var(--linie-stark); }
.bargeld-rechnung tr.gut td.zahl { color: var(--gruen); } .bargeld-rechnung tr.schlecht td.zahl { color: var(--rot); }

/* Z-Bericht */
.zb-papier { background: #fff; color: #17121F; border-radius: var(--r-karte); border: 1px solid var(--linie); padding: 22px 20px; margin-top: 14px; display: grid; gap: 18px; font-size: .92rem; }
.zb-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-bottom: 2px solid #17121F; padding-bottom: 12px; }
.zb-marke { font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.zb-rechts { text-align: right; } .zb-titel { font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.zb-papier h2 { margin: 0 0 6px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #6E6A7A; font-family: inherit; font-weight: 600; }
.zb-papier table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.zb-papier th { text-align: left; font-size: .72rem; color: #6E6A7A; border-bottom: 1px solid #D9D6E0; padding: 4px 6px; }
.zb-papier td { padding: 5px 6px; border-bottom: 1px solid #EEECF2; }
.zb-papier tfoot td { font-weight: 600; border-top: 2px solid #17121F; border-bottom: 0; }
.zb-papier .zb-zahl { text-align: right; white-space: nowrap; }
.zb-notiz { margin: 6px 0 0; font-size: .8rem; color: #8A5300; }
.zb-fuss { font-size: .75rem; color: #6E6A7A; border-top: 1px solid #D9D6E0; padding-top: 10px; }
@media print { .zb-papier { padding: 0; border-radius: 0; border: 0; font-size: 10pt; } .zb-papier section { break-inside: avoid; } }

/* Kalkulation */
.kalk-anteil { font-weight: 600; font-variant-numeric: tabular-nums; }
.kalk-anteil.gut { color: var(--gruen); }
.kalk-anteil.knapp { color: var(--gelb); }
.kalk-anteil.hoch { color: var(--rot); }
.zeile .rechts.kalk-anteil { font-size: 1.05rem; }

/* Rechnungen */
.rg-aufnehmen { position: relative; margin-bottom: 10px; }
.rg-seiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-bottom: 14px; }
.rg-seite { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; border: 1px solid var(--linie-stark); background: var(--flaeche-2); }
.rg-seite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-pdf, .rg-mehr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; padding: 8px; text-align: center; font-size: .8rem; font-weight: 500; overflow-wrap: anywhere; }
.rg-mehr { cursor: pointer; border-style: dashed; color: var(--gedaempft); }
.rg-pdf svg, .rg-mehr svg { width: 26px; height: 26px; }
.rg-weg { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(16, 19, 24, .78); color: #fff; display: grid; place-items: center; padding: 0; }
.rg-weg svg { width: 16px; height: 16px; }
.rg-knoepfe { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.rg-knoepfe .knopf { min-height: 36px; }
.rg-haken { width: 20px; height: 20px; flex: none; accent-color: var(--akzent); }
.rg-erledigt { margin-left: 8px; color: var(--gruen); }
.rg-schritte { margin: 0 0 14px; padding-left: 20px; color: var(--gedaempft); font-size: .9rem; }
.knopf-stapel { display: grid; gap: 10px; }
.karte .knopf + .knopf { margin-top: 10px; }
.knopf.aus { opacity: .45; pointer-events: none; }
.nur-drucken { display: none; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media print {
  .kopf, .leiste, .seitenleiste, .fuss, .chips, .suche, .toasts, .toast, dialog { display: none !important; }
  html, body { background: #fff !important; color: #000; }
  body, .rahmen { min-height: 0 !important; display: block !important; }
  .inhalt, .inhalt.mit-fuss { padding: 0 !important; max-width: none !important; margin: 0 !important; animation: none !important; }
  .bd-fuss { display: block; } .bd-fuss span { display: block; margin-top: 2px; }
  .nicht-drucken { display: none !important; }
  .nur-drucken { display: block; font-weight: 600; }
  @page { size: A4 portrait; margin: 12mm; }
  .bestelldok-papier { padding: 0; margin: 0; border-radius: 0; border: 0; overflow: visible; }
  .bestelldok-papier tr.bd-aus { display: none; }
  .bestelldok-papier table { min-width: 0; font-size: 10.5pt; } .bestelldok-papier th.bd-bestellen { width: 110px; }
  .bd-gruppe { break-inside: avoid-page; }
  .bestelldok-papier tr { break-inside: avoid; }
  .bd-hinweis { border: 1px solid #8A5300; }
}

/* ---------- Aufgaben und Produktion ---------- */
.aufgabe-haken { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--linie-stark); background: var(--flaeche); color: var(--gedaempft); display: grid; place-items: center; transition: border-color .12s ease, color .12s ease, background .12s ease; }
.aufgabe-haken svg { width: 20px; height: 20px; }
.aufgabe-haken:not(:disabled):hover { border-color: var(--akzent); color: var(--akzent-text); }
.aufgabe.erledigt .aufgabe-haken { background: var(--lampe-gruen); border-color: var(--lampe-gruen); color: #fff; opacity: 1; }
.aufgabe.erledigt .name { color: var(--gedaempft); text-decoration: line-through; text-decoration-color: var(--linie-stark); }
.aufgabe .name .marke-klein, .produktion-offen .name .marke-klein, .produktion-laeuft .name .marke-klein, .produktion-fertig .name .marke-klein { margin-left: 8px; vertical-align: 2px; }
.klein-balken { height: 5px; margin: 6px 0 0; }
.produktion-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.marke-klein.status-laeuft { border-color: var(--gelb-linie); background: var(--gelb-flaeche); color: var(--gelb); }
.marke-klein.status-fertig { border-color: var(--gruen-linie); background: var(--gruen-flaeche); color: var(--gruen); }
.text-knopf { background: none; border: 0; padding: 0; min-height: 0; color: var(--akzent-text); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.bereich-schalter { margin: -4px 0 12px; }
.preis-best { color: var(--gruen); font-weight: 600; }
.preis-zeile { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: .86rem; }
.preis-zeile span { white-space: nowrap; }
.stapel { display: grid; gap: 8px; }
a.chip { text-decoration: none; }

/* ---------- Aufgaben heute (Kunde 23.10.2026): Datum, Hinweise, Meldungen, Fotos, Müll ---------- */
.datumzeile { margin: 2px 0 0; font-size: 1rem; font-weight: 600; color: var(--text-2); }
.fortschritt-karte .fortschritt-text { margin: 0; font-weight: 600; }
.fortschritt-karte.fertig { border-color: var(--gruen-linie); background: var(--gruen-flaeche); }
.fortschritt-karte.fertig .fortschritt i { background: var(--lampe-gruen); }
.aufgabe .name .marke-klein { margin-left: 0; margin-inline-start: 8px; }
.aufgabe-info { flex: none; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--flaeche-2); color: var(--gedaempft); }
.aufgabe-info svg { width: 20px; height: 20px; }
.aufgabe-info.melden { background: var(--gelb-flaeche); color: var(--gelb); }
.hinweis-zeile .name { font-weight: 500; color: var(--text-2); }
.melde-zeile.gemeldet .aufgabe-info { background: var(--lampe-gelb); color: #fff; }
.muell-karte { border-color: var(--gelb-linie); background: var(--gelb-flaeche); }
.muell-zeile .aufgabe-haken { border-color: var(--lampe-gelb); color: var(--gelb); }
.abschnitt h2 svg { width: 18px; height: 18px; }

.foto-reihe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.foto-mini { padding: 0; border: 1px solid var(--linie); border-radius: var(--r-klein); overflow: hidden; width: 56px; height: 56px; background: var(--flaeche-2); cursor: zoom-in; }
.foto-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-aufgabe { font-weight: 600; margin-top: 0; }
.foto-stand { margin: 0 0 12px; padding: 8px 12px; border-radius: var(--r-knopf); background: var(--gelb-flaeche); border: 1px solid var(--gelb-linie); font-size: .9rem; }
.foto-stand.fertig { background: var(--gruen-flaeche); border-color: var(--gruen-linie); }
.foto-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.foto-vorschau { position: relative; margin: 0; aspect-ratio: 1; border-radius: var(--r-knopf); overflow: hidden; border: 1px solid var(--linie); background: var(--flaeche-2); }
.foto-vorschau img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-weg { position: absolute; top: 6px; inset-inline-end: 6px; width: 32px; height: 32px; min-height: 0; padding: 0; border-radius: 999px; border: 0; background: rgba(16, 24, 40, .7); color: #fff; display: grid; place-items: center; }
.foto-weg svg { width: 16px; height: 16px; }
.foto-neu { aspect-ratio: 1; border-radius: var(--r-knopf); border: 1.5px dashed var(--linie-stark); background: var(--flaeche); color: var(--akzent-text); display: grid; place-content: center; justify-items: center; gap: 6px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 8px; }
.foto-neu svg { width: 26px; height: 26px; }
.bild-gross { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--r-knopf); background: var(--flaeche-2); }

.meldungen { display: grid; gap: 8px; margin-bottom: 10px; }
.hinweis.meldung { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.hinweis.meldung svg { flex: none; width: 18px; height: 18px; color: var(--gelb); margin-top: 1px; }

.muellplan { margin-top: 8px; }
.muell-tag .muell-datum { flex: none; width: 52px; text-align: center; display: grid; line-height: 1.2; }
.muell-tag .muell-datum strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; color: var(--gedaempft); }
.muell-tag .muell-datum span { font-weight: 600; font-variant-numeric: tabular-nums; }
.muell-tag.morgen .muell-datum strong { color: var(--gelb); }
.muell-art { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.muell-art + .muell-art { margin-top: 2px; }
.muell-punkt { flex: none; width: 12px; height: 12px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .15); background: var(--grau); }
.muell-punkt.art-gelb { background: #FACC15; }
.muell-punkt.art-papier { background: #2563EB; }
.muell-punkt.art-rest { background: #475467; }
.muell-punkt.art-bio { background: #7A5C3E; }
.muell-punkt.art-oel { background: #B54708; }

/* Anleitung oben auf Zählen und Bestand */
.anleitung { padding: 12px 16px; margin-bottom: 14px; background: var(--akzent-flaeche); border-color: var(--akzent-linie); }
.anleitung summary { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; list-style: none; color: var(--akzent-text); }
.anleitung summary::-webkit-details-marker { display: none; }
.anleitung summary svg { width: 18px; height: 18px; flex: none; }
.anleitung summary::after { content: '▾'; margin-inline-start: auto; color: var(--gedaempft); font-size: .8rem; transition: transform .15s ease; }
.anleitung:not([open]) summary::after { transform: rotate(-90deg); }
.anleitung ol { margin: 10px 0 2px; }
.anleitung li { margin: 5px 0; font-size: .9rem; color: var(--text); line-height: 1.45; }

/* Bedarf heute und Bestellliste nach Firma */
.bedarf-gruppe { margin-bottom: 12px; }
.bedarf-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 0 8px; border-bottom: 1px solid var(--linie); }
.bedarf-kopf strong { font-size: 1rem; }
.bedarf-kopf .gedaempft { font-size: .85rem; white-space: nowrap; }
.titelzeile .knopf-paar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media print {
  .bedarf-gruppe { break-inside: avoid-page; }
  .zurueck, .segment { display: none !important; }
}

/* Protokoll: jede Änderung als Zeile mit Zeichen je Art; „Neu“ in der Akzentfarbe */
.marke-klein.neu { border-color: var(--akzent-linie); background: var(--akzent-flaeche); color: var(--akzent-text); }
.menue a .marke-klein.neu { margin-left: auto; }
.menue a .marke-klein.neu + svg { margin-left: 8px; }
.protokoll-zeile { align-items: flex-start; }
.protokoll-zeile .name { font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.protokoll-zeichen { flex: none; width: 34px; height: 34px; border-radius: var(--r-klein); display: grid; place-items: center; background: var(--flaeche-2); color: var(--text-2); }
.protokoll-zeichen svg { width: 18px; height: 18px; }
.protokoll-zeichen.art-kasse { background: var(--gruen-flaeche); color: var(--gruen); }
.protokoll-zeichen.art-ausschuss { background: var(--rot-flaeche); color: var(--rot); }
.protokoll-zeichen.art-einkauf, .protokoll-zeichen.art-bestand { background: var(--akzent-flaeche); color: var(--akzent-text); }
.protokoll-zeichen.art-aufgaben, .protokoll-zeichen.art-produktion { background: var(--gelb-flaeche); color: var(--gelb); }
.protokoll-hier { margin: 4px 0 0; }
.haken-raster { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.haken-raster .haken { margin-bottom: 0; }
@media (min-width: 560px) { .haken-raster { grid-template-columns: 1fr 1fr; } }

/* Preisvergleich als Tabelle: Artikel × Lieferanten, Felder zum Eintippen, günstigster je Zeile grün */
.preis-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.segment { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--flaeche-2); border: 1px solid var(--linie); }
.segment button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; transition: background .12s ease, color .12s ease; }
.segment button svg { width: 16px; height: 16px; }
.segment button[aria-pressed="true"] { background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); }
.preis-tabelle-rahmen { overflow: auto; max-height: calc(100dvh - 180px); margin-bottom: 12px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); box-shadow: var(--schatten); overscroll-behavior-x: contain; }
.preis-tabelle { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .875rem; }
.preis-tabelle th, .preis-tabelle td { padding: 6px 8px; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.preis-tabelle thead th { position: sticky; top: 0; z-index: 2; background: var(--flaeche-2); color: var(--text-2); font-size: .75rem; font-weight: 600; white-space: nowrap; padding-top: 10px; padding-bottom: 10px; }
.preis-tabelle .pt-artikel { position: sticky; left: 0; z-index: 1; background: var(--flaeche); min-width: 132px; max-width: 200px; box-shadow: 1px 0 0 var(--linie); }
.preis-tabelle thead .pt-artikel { z-index: 3; background: var(--flaeche-2); }
.pt-name { display: block; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; text-align: left; line-height: 1.3; cursor: pointer; overflow-wrap: anywhere; }
.pt-name:hover { color: var(--akzent-text); text-decoration: underline; text-underline-offset: 2px; }
.pt-artikel small { display: block; color: var(--gedaempft); font-size: .6875rem; font-weight: 400; margin-top: 2px; }
.pt-gruppe th { background: var(--grund); padding: 0; }
.pt-gruppe th span { position: sticky; left: 0; display: inline-block; padding: 8px 10px 6px; color: var(--gedaempft); font-size: .6875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pt-zelle input { width: 88px; height: 38px; padding: 0 8px; border: 1px solid var(--linie-stark); border-radius: var(--r-klein); background: var(--flaeche); color: var(--text); font: inherit; font-variant-numeric: tabular-nums; text-align: right; transition: border-color .12s ease, background .12s ease, box-shadow .2s ease; }
.pt-zelle input:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-flaeche); }
.pt-zelle input::placeholder { color: var(--grau); }
.pt-hinweis { display: block; width: 88px; min-height: 1.1em; margin-top: 2px; color: var(--gedaempft); font-size: .6875rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt-zelle.guenstigst input { background: var(--gruen-flaeche); border-color: var(--gruen-linie); color: var(--gruen); font-weight: 700; box-shadow: 0 0 0 3px color-mix(in oklab, var(--lampe-gruen), transparent 82%); }
.pt-zelle.guenstigst .pt-hinweis { color: var(--gruen); font-weight: 600; }
.pt-zelle.aktuell input { border-left: 3px solid var(--akzent); }
.pt-zelle.speichert input { opacity: .55; }
.pt-zelle.leuchtet input { animation: pt-leuchten 1.4s ease-out; }
@keyframes pt-leuchten { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--lampe-gruen), transparent 20%); } 100% { box-shadow: 0 0 0 12px transparent; } }
.pt-jetzt { min-width: 120px; color: var(--text-2); font-size: .8125rem; }
.pt-jetzt-name { display: block; padding-top: 9px; white-space: nowrap; }
.pt-nehmen { margin-top: 6px; min-height: 32px; font-size: .75rem; white-space: nowrap; }
.preis-tabelle tbody tr:last-child > * { border-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .pt-zelle.leuchtet input { animation: none; } }

/* Auswertung: Bestandsrechnung als Tabelle, am Handy seitlich scrollbar */
.tabelle-rahmen { overflow-x: auto; }
.auswertung-tabelle { min-width: 720px; }
.auswertung-tabelle td { vertical-align: top; }
.aw-zelle input { width: 76px; height: 36px; padding: 0 8px; border: 1px solid var(--linie-stark); border-radius: var(--r-klein); background: var(--flaeche); color: var(--text); font: inherit; font-variant-numeric: tabular-nums; text-align: right; transition: border-color .12s ease, box-shadow .2s ease; }
.aw-zelle input:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-flaeche); }
.aw-zelle input::placeholder { color: var(--grau); font-size: .75rem; }
.aw-zelle.speichert input { opacity: .55; }
.aw-teile { margin-top: 3px; max-width: 120px; margin-left: auto; white-space: normal !important; }
.auswertung-tabelle td .klein { font-size: .6875rem; font-weight: 400; white-space: nowrap; }
.auswertung-tabelle td:first-child { min-width: 150px; }
.auswertung-alle { margin: 4px 0 12px; }

/* ---------- Sprachen (Kunde 23.10.2026): Wahl auf der Anmeldeseite und unter Mein Konto ---------- */
.sprach-wahl { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.sprach-wahl button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text-2); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; }
.sprach-wahl button[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); font-weight: 600; }
.sprach-wahl-gross { justify-content: flex-start; margin: 6px 0 0; }
.sprach-wahl-gross button { min-height: 44px; padding: 0 18px; font-size: 1rem; }
[lang="ar"], [lang="ur"] { letter-spacing: 0; }
:root[lang="ar"] *, :root[lang="ur"] * { letter-spacing: 0 !important; }
:root[lang="ar"] body { font-family: system-ui, -apple-system, 'Segoe UI', 'Noto Naskh Arabic', 'Geeza Pro', Tahoma, sans-serif; }
:root[lang="ur"] body { font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; line-height: 1.85; }
.sprach-wahl [lang="ur"], .uebersetzt [lang="ur"] { font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', system-ui, sans-serif; }
:root[lang="ur"] .zeile .name, :root[lang="ur"] h1, :root[lang="ur"] h2 { line-height: 1.9; }
.uebersetzt [lang="de"] { font-size: .8rem; color: var(--gedaempft); }

/* Von rechts nach links (Arabisch, Urdu): was mit links/rechts statt Anfang/Ende festgelegt ist, spiegeln. */
[dir="rtl"] .zeile-knopf, [dir="rtl"] .kachel, [dir="rtl"] .pt-name { text-align: right; }
[dir="rtl"] .zeile .rechts { text-align: left; }
[dir="rtl"] .zeile .name .marke-klein, [dir="rtl"] .posten .marke-klein { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .aufgabe .name .marke-klein { margin-right: 0; margin-inline-start: 8px; }
[dir="rtl"] .karte ul:not(.zeilen), [dir="rtl"] .karte ol { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .suche svg { left: auto; right: 13px; }
[dir="rtl"] .suche input[type="search"] { padding-left: 14px; padding-right: 42px; }
[dir="rtl"] select { background-position: 18px 50%, 13px 50%; padding-right: 14px; padding-left: 36px; }
[dir="rtl"] .toast a, [dir="rtl"] .toast button, [dir="rtl"] .menue a > svg:last-child, [dir="rtl"] .menue a .marke-klein.neu { margin-left: 0; margin-right: auto; }
[dir="rtl"] .menue a .marke-klein.neu + svg { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .nutzer-chip { margin-left: 0; margin-right: 12px; padding: 4px 4px 4px 10px; }
[dir="rtl"] .standort-wahl { margin-left: 0; margin-right: auto; }
[dir="rtl"] .anzahl { left: auto; right: calc(50% + 4px); }
[dir="rtl"] .seitenleiste .anzahl { margin-left: 0; margin-right: auto; }
[dir="rtl"] .seitenleiste { border-right: 0; border-left: 1px solid var(--linie); }
[dir="rtl"] .zurueck { margin: -4px -8px 8px 0; }
[dir="rtl"] .zurueck svg { transform: none; }
[dir="rtl"] .zeile-knopf > svg:last-child, [dir="rtl"] .menue a > svg:last-child, [dir="rtl"] .zeile-knopf .pfeil { transform: scaleX(-1); }
[dir="rtl"] .kasse-zeile a { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .zeile .bestand, [dir="rtl"] .zahl, [dir="rtl"] input[inputmode="decimal"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .zaehler input { text-align: center; }
[dir="rtl"] .foto-weg { inset-inline-end: 6px; }

@media (min-width: 960px) {
  [dir="rtl"] .fuss { left: 0; right: var(--seitenleiste); }
  [dir="rtl"] .toast { left: 16px; right: var(--seitenleiste); }
  [dir="rtl"] .kopf { padding-left: 24px; padding-right: 20px; }
}

/* Wochenplan (Kunde 24.10.2026): je Aufgabe eine Zeile, wer an welchen Tagen dran ist */
.neben.plan-text { display: flex; align-items: center; gap: 4px; }
.neben.plan-text svg { width: 14px; height: 14px; flex: none; }
.neben.plan-text.besetzt { color: var(--text); font-weight: 600; }
.plan-feld select { width: 100%; }
.plan-tage { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0 6px; }
.plan-tag { display: flex; align-items: center; gap: 8px; }
.plan-tag > span { flex: 0 0 2.2em; font-weight: 600; }
.plan-tag[hidden] { display: none; }
.neben.dran { display: flex; align-items: center; gap: 4px; }
.neben.dran svg { width: 14px; height: 14px; flex: none; }
.neben.dran.ich { color: var(--akzent-text); font-weight: 600; }
.zeile.aufgabe.mein-dienst { box-shadow: inset 3px 0 0 var(--akzent); }
[dir="rtl"] .zeile.aufgabe.mein-dienst { box-shadow: inset -3px 0 0 var(--akzent); }
details.entfernte { margin-top: 16px; }
details.entfernte summary { cursor: pointer; font-weight: 600; }
/* Kundenbestellungen: Betrag ohne Artikelangabe, Rohdaten von SumUp */
.ohne-artikel { margin: 6px 0 0; font-size: .85rem; color: var(--gelb); }
pre.sumup-roh { max-height: 50vh; overflow: auto; padding: 10px; border-radius: var(--r-klein); border: 1px solid var(--linie); background: var(--flaeche-2); font-size: .75rem; white-space: pre-wrap; word-break: break-word; }


/* ---------- Dashboard der Geschäftsleitung (Start, Stufe 1) ----------
   Ein Blick für beide Standorte. Mobil zuerst: alles einspaltig, Tippflächen mindestens 44 px; am Rechner
   vier Kennzahlen nebeneinander und zwei Spalten. Abstände mit logischen Eigenschaften (Arabisch, Urdu). */
.standort-wahl.auf-dashboard { display: none; }
.ltr { unicode-bidi: isolate; }
.dash-kopf { margin-bottom: 14px; }
.dash-titel { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dash-titel p { margin-top: 2px; }
.dash-buchen { flex: none; }
.dash-orte { display: flex; margin-top: 14px; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 999px; padding: 3px; }
.dash-ort { flex: 1; min-height: 44px; border: 0; background: none; border-radius: 999px; font: inherit; font-size: .875rem; font-weight: 500; color: var(--text-2); cursor: pointer; }
.dash-ort[aria-pressed="true"] { background: var(--flaeche); color: var(--text); font-weight: 600; box-shadow: var(--schatten); }
.dash-stand { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.dash-offline { display: inline-flex; align-items: center; gap: 6px; color: var(--gelb); font-weight: 600; }
.dash-offline svg { width: 16px; height: 16px; }
.dash-auffrischen { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 8px; margin-inline-end: -8px; border: 0; background: none; color: var(--akzent-text); font: inherit; font-weight: 600; cursor: pointer; }
.dash-auffrischen svg { width: 16px; height: 16px; }

.dash-kennzahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.dash-kachel { display: flex; flex-direction: column; gap: 6px; min-height: 120px; width: 100%; padding: 12px 14px; text-align: start; font: inherit; color: var(--text); text-decoration: none; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-karte); box-shadow: var(--schatten); cursor: pointer; }
.dash-kachel:hover { border-color: var(--linie-stark); }
.dash-kachel.rot { border-color: var(--rot-linie); }
.dash-kachel.warn { border-color: var(--gelb-linie); }
.dash-kachel-titel { display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 500; color: var(--gedaempft); }
.dash-kachel-titel svg { width: 16px; height: 16px; flex: none; }
.dash-wert { font-size: 1.75rem; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dash-wert.rot { color: var(--rot); }
.dash-wert.veraltet { opacity: .55; }
.dash-kachel-unter { display: flex; flex-direction: column; gap: 2px; font-size: .78rem; color: var(--gedaempft); line-height: 1.35; }
.dash-balken { margin: 2px 0 4px; height: 5px; }
.dash-warn { display: inline-flex; align-items: center; gap: 5px; color: var(--gelb); font-weight: 600; }
.dash-warn svg { width: 14px; height: 14px; flex: none; }
.dash-punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--grau); }

.dash-block { margin-bottom: 8px; }
.dash-chips .chip { min-height: 44px; padding: 0 14px; }
.dash-chip[aria-selected="true"] { background: var(--text); color: var(--grund); border-color: var(--text); font-weight: 600; }
.dash-chip-zahl { font-variant-numeric: tabular-nums; opacity: .8; }
.dash-chip svg { width: 14px; height: 14px; }
.dash-chip-warn { color: var(--lampe-gelb); display: inline-flex; }
.dash-chip-fertig { color: var(--lampe-gruen); display: inline-flex; }
.dash-gruppe-kopf { padding-bottom: 12px; }
.dash-gruppe-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dash-gruppe-zahl { font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-gruppe-kopf .fortschritt { margin: 8px 0 10px; }
.dash-dran { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.dash-dran svg, .dash-gruppe-kopf .dash-warn svg { width: 14px; height: 14px; flex: none; }
.dash-gruppe-kopf .dash-warn { display: flex; margin-top: 6px; }
.marke-klein.ueberfaellig { display: inline-flex; align-items: center; gap: 4px; border-color: var(--gelb-linie); background: var(--gelb-flaeche); color: var(--gelb); }
.marke-klein.ueberfaellig svg { width: 12px; height: 12px; }
.zeile .name .marke-klein.ueberfaellig { margin-inline-start: 8px; margin-left: 8px; }
[dir="rtl"] .zeile .name .marke-klein { margin-left: 0; margin-right: 8px; }
.dash-links { display: flex; flex-wrap: wrap; column-gap: 18px; }
.dash-links a, .dash-mehr { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.dash-karten-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 12px; }
.liste-karte.dash-bedarf { padding-bottom: 4px; }
.dash-aktionen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.dash-kasse .dash-karten-kopf { padding-top: 0; }
.dash-kasse-zahl { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 2px; }
.dash-kasse-zahl .zahl { font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; }
.dash-kasse p { margin: 4px 0; }
.dash-kasse p svg { width: 14px; height: 14px; vertical-align: -2px; margin-inline-end: 4px; }
.dash-details { margin-top: 6px; border-top: 1px solid var(--linie); }
.dash-details summary { display: flex; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; }

.dash-hinweise { list-style: none; margin: 0 0 14px; }
.dash-hinweis { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--linie); font-size: .9rem; }
.dash-hinweis:last-child { border-bottom: 0; }
.dash-hinweis > svg { width: 18px; height: 18px; flex: none; color: var(--gedaempft); }
.dash-hinweis.wichtig > svg { color: var(--lampe-gelb); }
.dash-hinweis > span { flex: 1; min-width: 0; }
.dash-hinweis > a, .dash-hinweis > .text-knopf { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; font-weight: 600; }
.dash-zeile-link { display: flex; align-items: center; gap: 10px; min-height: 52px; color: var(--text); text-decoration: none; }
.dash-zeile-link span { flex: 1; }
.dash-zeile-link svg { width: 18px; height: 18px; flex: none; color: var(--gedaempft); }
[dir="rtl"] .dash-zeile-link svg:last-child { transform: scaleX(-1); }

.dash-zug { position: fixed; top: calc(env(safe-area-inset-top, 0px) + var(--kopfhoehe) + 10px); left: 50%; transform: translateX(-50%); z-index: 30; padding: 8px 14px; border-radius: 999px; background: var(--flaeche); border: 1px solid var(--linie-stark); box-shadow: var(--schatten-hoch); font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.dash-zug[data-bereit="true"] { color: var(--akzent-text); }

@media (min-width: 960px) {
  .inhalt.dash { max-width: 1180px; }
  .dash-orte { display: inline-flex; }
  .dash-ort { flex: none; padding: 0 18px; min-height: 40px; }
  .dash-kennzahlen { grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
  .dash-kachel { padding: 16px 18px; }
  .dash-wert { font-size: 2rem; }
  .dash-raster { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
}
/* Auf dem Dashboard auch die kleinen Knöpfe und Textwege aus den übrigen Bausteinen mit voller Tippfläche. */
.inhalt.dash .knopf-klein { min-height: 44px; min-width: 44px; }
.inhalt.dash .abschnitt a, .inhalt.dash .hinweis a, .inhalt.dash .muell-kopf a { display: inline-flex; align-items: center; min-height: 44px; }

/* Dashboard Stufe 2: Handeln direkt aus den Zeilen. */
.dash-aufgabe-aktionen { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.dash-aktion { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 2px; border: 0; background: none; color: var(--akzent-text); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.dash-aktion svg { width: 16px; height: 16px; flex: none; }
.dash-aktion:hover { text-decoration: underline; text-underline-offset: 2px; }
.dash-ohne-netz .dash-aktion, .dash-ohne-netz .dash-buchen { opacity: .45; pointer-events: none; }
.dash-meldung { display: flex; align-items: center; gap: 10px; }
.dash-meldung > svg { width: 18px; height: 18px; flex: none; }
.dash-meldung > span:first-of-type { flex: 1; }
.dash-meldung.gesehen { background: var(--flaeche-2); border-color: var(--linie); }
.dash-hinweis-wege { flex: none; display: flex; align-items: center; gap: 12px; }
.dash-hinweis-wege a, .dash-hinweis-wege .text-knopf { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 600; }
.dash-wahlen { display: flex; flex-direction: column; margin-top: 12px; border: 1px solid var(--linie); border-radius: var(--r-karte); overflow: hidden; }
.dash-wahl { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border-bottom: 1px solid var(--linie); cursor: pointer; }
.dash-wahl:last-child { border-bottom: 0; }
.dash-wahl input { width: 20px; height: 20px; flex: none; accent-color: var(--akzent); }
.dash-wahl span { display: flex; flex-direction: column; }
.dash-wahl small { color: var(--gedaempft); font-size: .78rem; }
.dash-wahl:has(input:checked) { background: var(--akzent-flaeche); }
.toast-knopf { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; color: inherit; }
.dash-bedarf .dash-aktion { margin: 2px 0 6px; }

/* Dashboard Stufe 3: Woche als Säulen je Tag, Standorte gestapelt (Farbe und Legende, Werte darunter). */
.dash-woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; margin: 14px 0 6px; }
.dash-tag { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.dash-saeule { width: 100%; max-width: 34px; height: 84px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 2px 2px; background: var(--flaeche-2); overflow: hidden; }
.dash-saeule i { display: block; width: 100%; }
.dash-keine { margin: auto; color: var(--gedaempft); font-size: .75rem; }
.dash-teil-1 { background: var(--akzent); }
.dash-teil-2 { background: repeating-linear-gradient(45deg, var(--akzent-linie) 0 4px, color-mix(in oklab, var(--akzent-linie), transparent 40%) 4px 8px); }
.dash-teil-3 { background: var(--grau); }
.dash-tag-name { font-size: .72rem; color: var(--gedaempft); }
.dash-tag-wert { font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-legende { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text-2); }
.dash-legende span { display: inline-flex; align-items: center; gap: 6px; }
.dash-legende i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
#dash-g .karte p svg { width: 14px; height: 14px; vertical-align: -2px; margin-inline-end: 4px; }
#dash-g .karte a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Anwesenheit (Stufe 4): Kommen/Gehen auf der Startseite, Arbeitszeiten der Geschäftsleitung. */
.stempel-karte h2 { font-size: 1rem; }
.stempel-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stempel-knopf { min-height: 48px; min-width: 120px; flex: none; }
.stempel-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.pin-feld { font-size: 1.5rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.dash-anwesend svg { width: 14px; height: 14px; }
@media print {
  .kopf, .leiste, .seitenleiste, .zurueck, .aktionen, .chips, .titelzeile .knopf, .arbeitszeiten .knopf, .toast { display: none !important; }
  .inhalt { max-width: none; padding: 0; }
  .liste-karte, .karte { box-shadow: none; break-inside: avoid; }
}

/* „Ansicht als“ (Geschäftsleitung arbeitet wie eine Station): Balken oben mit dem Weg zurück. */
.dash-ansicht { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--text-2); font-size: .875rem; font-weight: 500; }
.dash-ansicht svg { width: 16px; height: 16px; flex: none; }
.dash-ansicht select { width: auto; flex: 1; max-width: 280px; min-height: 44px; }
.ansicht-balken { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--kopfhoehe)); z-index: 19; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); background: var(--gelb-flaeche); border-bottom: 1px solid var(--gelb-linie); color: var(--text); font-size: .8125rem; }
.ansicht-balken > svg { width: 16px; height: 16px; flex: none; color: var(--gelb); }
.ansicht-balken > span { flex: 1 1 200px; min-width: 0; }
.ansicht-zurueck { min-height: 44px; padding: 0 12px; border: 1px solid var(--gelb-linie); border-radius: var(--r-knopf); background: var(--flaeche); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
@media (min-width: 960px) { .ansicht-balken { flex: 0 0 100%; } }

/* Ausschuss: ausgewähltes Gericht als Bündel mit Zutaten × Anzahl und Warenwert. */
.ausschuss-buendel { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--linie); border-radius: var(--r-knopf); background: var(--flaeche-2); }
.buendel-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.buendel-kopf svg { width: 18px; height: 18px; flex: none; color: var(--gedaempft); }
.buendel-kopf strong { flex: 1; min-width: 0; }
.buendel-zutaten { margin: 0 0 6px; padding-inline-start: 26px; display: grid; gap: 2px; font-size: .875rem; }
.ausschuss-buendel .hinweis { margin: 0; }
.ausschuss-buendel .hinweis a { display: inline-flex; align-items: center; min-height: 44px; }
.technik summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.technik-werte { margin: 8px 0 0; padding: 10px; overflow-x: auto; background: var(--flaeche-2); border-radius: var(--r-klein); font-size: .75rem; white-space: pre-wrap; word-break: break-all; }
