/* Personal-Ansichten (Küche, später Kellner/Fahrer/Admin). Baut auf app.css auf. Große Flächen für Tablet am Pass. */
body.staff { padding-bottom: 24px; }
.staff .top { flex-wrap: wrap; row-gap: 8px; }
.bar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.clock { font-variant-numeric: tabular-nums; font-weight: 700; }
.seg-s { margin: 0; flex-wrap: nowrap; } .seg-s span { min-height: 40px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--brand); }
.login { max-width: 380px; margin: 8vh auto 0; }
.offline { margin: 0; padding: 12px 16px; background: var(--err); color: #fff; font-weight: 700; text-align: center; }
@media (prefers-color-scheme: dark) { .offline { background: #8f1d1d; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; margin: 0; padding: 12px 18px; max-width: calc(100% - 32px);
  border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: var(--shadow); }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 14px; align-items: start; }
.col { min-width: 0; }
.col h2 { position: sticky; top: 0; display: flex; align-items: center; gap: 8px; font-size: 1.35rem; margin: 0 0 10px; }
.count { min-width: 28px; padding: 0 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 700 .95rem var(--body); text-align: center; }
.empty { padding: 18px 4px; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; }
.ticket.late { border-left-color: var(--err); }
.ticket header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tno { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.badge { padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; border: 1px solid var(--line); }
.b-delivery { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.b-dine_in { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.age { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .92rem; }
.ticket.late .age { color: var(--err); font-weight: 700; }
.tname { margin: 4px 0 8px; color: var(--muted); overflow-wrap: anywhere; }
.ticket ul { list-style: none; margin: 0 0 10px; padding: 0; }
.ticket li { display: flex; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 1.08rem; }
.ticket li b { flex: none; min-width: 30px; font-variant-numeric: tabular-nums; }
.ticket li span { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.ticket li small { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }
.ticket li em, .tnote { display: block; font-style: normal; font-weight: 700; background: var(--warn-bg); color: var(--warn-ink); padding: 3px 8px; border-radius: 6px; margin-top: 4px; }
.tnote { margin: 0 0 10px; }
.wait { margin: 4px 0 0; text-align: center; font-weight: 600; }
.ticket .btn { margin-top: 2px; min-height: 52px; font-size: 1.05rem; }

@media (max-width: 759px) {
  .board { grid-template-columns: 1fr; }
  .col h2 { position: static; }
}

/* ---- Service-Monitor */
.service { max-width: 1100px; margin: 0 auto; padding: 16px; }
.service section + section { margin-top: 28px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.tcard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 96px; padding: 14px; text-align: left; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.tcard b { font-size: 1.2rem; } .tcard span { color: var(--muted); font-variant-numeric: tabular-nums; }
.tcard.free { opacity: .6; cursor: default; }
.tcard.busy { border-left-color: var(--brand); } .tcard.busy span { color: var(--ink); font-weight: 600; }
.tcard.serve { border-left-color: var(--err); } .tcard.serve span { color: var(--ink); font-weight: 600; }
.tcard em { font-style: normal; font-weight: 700; font-size: .85rem; padding: 2px 8px; border-radius: 999px; background: var(--err); color: #fff; }
@media (prefers-color-scheme: dark) { .tcard em { background: #8f1d1d; } }
.olist { list-style: none; margin: 0; padding: 0; }
.orow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 14px; margin-bottom: 8px; text-align: left; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; flex-wrap: wrap; }
.oname { flex: 1; min-width: 80px; overflow-wrap: anywhere; } .osum { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet-wide { width: min(640px, 100%); }
.sheet-pad { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
.dorder { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.dorder header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dorder header .btn { margin-left: auto; }
.dorder .lines input { width: 24px; height: 24px; accent-color: var(--brand); flex: none; }
.dmeta { margin: 4px 0 0; font-size: .92rem; }
details.block summary { font-family: var(--display); font-size: 1.3rem; font-weight: 600; cursor: pointer; min-height: 44px; display: flex; align-items: center; }

/* ---- Verwaltung */
.toolbar { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.field.inline { margin: 0; } .field.inline input { width: auto; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.grid th, .grid td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tr[data-id] { cursor: pointer; } .grid tr[data-id]:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.grid .num { text-align: right; }
.grid tr.off td, .prow.off { color: var(--muted); } .grid tr.off td:nth-child(6) { text-decoration: line-through; }
.prow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 56px; padding: 8px 14px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.prow small { display: block; font-size: .8rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 24px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tile b { font-size: 1.5rem; font-variant-numeric: tabular-nums; } .tile small { font-size: .8rem; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 24px; }
.kv { margin: 0; } .kv div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.service .cols2 section + section { margin-top: 0; }

/* ---- Reservierungen */
.rtime { font-size: 1.2rem; font-variant-numeric: tabular-nums; min-width: 56px; }
.prow select { min-height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }

/* ---- Einstellungen */
.staff .top .seg-s { flex-wrap: wrap; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; }
.service form section, .service form + section { margin-top: 28px; }
.hours { display: grid; gap: 8px; margin: 10px 0; }
.hrow { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.hrow b { min-width: 96px; } .hrow span { white-space: nowrap; }
.hrow input, .zoneform input { min-height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.zoneform { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; align-items: end; margin-top: 14px; }
.zoneform .field { margin: 0; } .zoneform .err { grid-column: 1 / -1; margin: 0; }
.service form > .btn { margin-top: 20px; }

/* ---- Auswahlgruppen */
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) 80px 110px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.mrow input[type="text"] { min-height: 44px; min-width: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
#addMod { margin: 4px 0 8px; }
.sheet .olist .prow { padding: 8px 10px; }

/* ---- Fahrer */
.drive { max-width: 640px; }
.taddr { margin: 8px 0 2px; font-size: 1.15rem; line-height: 1.35; overflow-wrap: anywhere; }
.titems { margin: 0 0 10px; overflow-wrap: anywhere; }
.tlinks { display: flex; gap: 10px; margin-bottom: 10px; } .tlinks .btn { flex: 1; }
.drive .age { font-weight: 700; color: var(--ink); }

.qrlink { overflow-wrap: anywhere; user-select: all; }

/* ---- Zweiter Faktor (Admin) */
.mfa-qr { display: block; margin: 12px auto; background: #fff; border-radius: 8px; padding: 6px; }
.mfa-key { margin: 0 0 10px; font-size: .9rem; }
.mfa-key code { display: block; margin-top: 4px; padding: 8px; border-radius: 6px; background: rgba(127, 127, 127, .15); overflow-wrap: anywhere; user-select: all; }

/* ==== Erscheinungsbild „Mare" auch für das Personal: immer dunkel (tiefes Meeresblau), Akzente und Hauptknöpfe in Gold —
   wie die Gäste-App, aber mit festen, undurchsichtigen Flächen (ruhiger und schneller auf dem Tablet am Pass). */
body.staff {
  --bg: #07111f; --surface: #101e32; --ink: #f2f6fb; --muted: #a7b4c6; --line: #24364f;
  --brand: #f5c02e; --brand-ink: #1f1503; --deal: #ff9f7c; --warn-bg: #3a2a14; --warn-ink: #f6dca6;
  --err: #ff9c9c; --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark; background: transparent;
}
html:has(body.staff) { background: #07111f; }
body.staff::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(110% 45% at 90% -10%, rgba(36, 124, 214, .30) 0%, transparent 62%),
    linear-gradient(180deg, #0a1b31 0%, #050b16 100%); }
.staff .top { background: rgba(7, 17, 31, .94); border-bottom-color: var(--line); }
.staff .brand span { color: var(--brand); }
.staff .btn-primary { background: linear-gradient(135deg, #ffe58f 0%, #f7c331 46%, #d9990f 100%); border-color: transparent; color: var(--brand-ink);
  box-shadow: 0 6px 18px rgba(245, 190, 40, .22), inset 0 1px 0 rgba(255, 255, 255, .45); }
.staff .btn:not(.btn-primary), .staff .seg span { background: var(--surface); border-color: var(--line); color: var(--ink); }
.staff .seg input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.staff .field input, .staff .field select, .staff .field textarea,
.staff .hrow input, .staff .zoneform input, .staff .mrow input[type="text"], .staff .prow select { background: rgba(0, 0, 0, .28); border-color: var(--line); color: var(--ink); }
.staff .sheet { background: linear-gradient(180deg, #15273f 0%, #0e1b2d 100%); box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); }
.staff .login { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.staff .offline, .staff .tcard em { background: #8f1d1d; color: #fff; }
.staff .toast { background: #f2f6fb; color: #07111f; }
.staff .count { background: rgba(245, 192, 46, .14); border-color: rgba(245, 192, 46, .35); color: var(--brand); }
.staff .ticket, .staff .tcard, .staff .orow, .staff .prow, .staff .tile, .staff .tablewrap { box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.staff .tno { color: var(--brand); }
.staff .grid th { text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; }

.staff .sheet-foot { background: #0e1b2d; }

/* ---- Mini-Kasse (Service am Handy): bildschirmfüllend, große Tasten, Summe und Senden immer unten */
.tcard.free { opacity: .75; cursor: pointer; }
#dOrder { margin: 0; flex: 1; }
.pos { width: 100%; max-width: 760px; height: 100dvh; max-height: 100dvh; margin: 0 auto; padding: 0; border: 0; color: var(--ink);
  background: linear-gradient(180deg, #0a1b31 0%, #050b16 100%); }
.pos[open] { display: flex; flex-direction: column; }
.pos::backdrop { background: rgba(3, 7, 14, .7); }
.pos-head { display: grid; grid-template-columns: 44px 1fr; gap: 4px 8px; align-items: center; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; border-bottom: 1px solid var(--line); }
.pos-head h2 { margin: 0; font-size: 1.35rem; }
.pos-head input { grid-column: 1 / -1; min-height: 44px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-radius: 12px; }
.pos-cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; flex: none; scrollbar-width: none; }
.pos-cats::-webkit-scrollbar { display: none; }
.poscat { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 .95rem var(--body); cursor: pointer; }
.poscat.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pos-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 2px 12px 16px; align-content: start; }
@media (min-width: 600px) { .pos-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.positem { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 76px; padding: 10px 12px; text-align: left;
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.positem:active { border-color: var(--brand); }
.positem.out { border-color: #f08a24; }
.possold { position: absolute; top: -7px; left: 8px; padding: 0 6px; border-radius: 999px; background: #f08a24; color: #fff; font-size: .62rem; font-weight: 700; line-height: 15px; text-transform: uppercase; letter-spacing: .03em; }
.posname { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.posprice { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.posqty { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .85rem; line-height: 24px; text-align: center; }
.posempty { grid-column: 1 / -1; padding: 24px 4px; }
.pos-foot { flex: none; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #0b1626; }
.pos-foot-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.pos-foot-row .btn { min-height: 52px; }
.pos-cart { max-height: 42dvh; overflow-y: auto; margin-bottom: 8px; }
.pos-cart ul { list-style: none; margin: 0; padding: 0; }
.posline { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.posline-main { min-width: 0; overflow-wrap: anywhere; } .posline-main small { display: block; color: var(--muted); }
.posline-main .posnote { color: var(--warn-ink); }
.possum { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.posstep { display: inline-flex; align-items: center; gap: 4px; }
.posstep button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 700 1.1rem var(--body); cursor: pointer; }
.posstep span { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pos-opt { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; background: rgba(3, 7, 14, .6); }
.pos-opt[hidden] { display: none; }
.pos-opt-card { width: 100%; max-height: 86dvh; overflow-y: auto; padding: 16px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: linear-gradient(180deg, #15273f 0%, #0e1b2d 100%); }
.pos-opt-card h3 { margin: 0 0 10px; font: 600 1.3rem var(--display); }
.posgroup { margin: 0 0 12px; padding: 0; border: 0; }
.posgroup legend { padding: 0; font-weight: 700; } .posgroup legend small { font-weight: 400; color: var(--muted); }
.posopt { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); cursor: pointer; }
.posopt input { width: 22px; height: 22px; accent-color: var(--brand); }
.pos-opt-foot { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: center; margin-top: 12px; }
.pos-opt-foot .btn { min-height: 50px; }

/* Storno einer Position: unauffälliger Textknopf am Zeilenende */
.staff .linkbtn { background: none; border: 0; padding: 6px 4px 6px 10px; font: inherit; font-size: .82rem; color: var(--err); text-decoration: underline; cursor: pointer; }
.staff .orow[disabled] { opacity: .55; cursor: default; }

/* Mini-Kasse: Bestellung am Telefon */
.staff .phonebtn { margin: 0 0 12px; }
#posTakeForm .seg { margin-bottom: 12px; }
#posTakeForm { max-height: 92dvh; overflow-y: auto; }

/* Tagesabgleich mit der Kasse */
.cmpstate { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius); font-weight: 700; border: 1px solid var(--line); }
.cmpstate.good { border-color: #2f9e6b; color: #7fe0b0; }
.cmpstate.bad { border-color: var(--err); color: var(--err); }
.grid.cmp tr.bad td { color: var(--err); }
.grid.cmp td.wrap { white-space: normal; min-width: 220px; }

/* Verwaltung: Texte */
.tform { padding: 14px 0; border-top: 1px solid var(--line); }
.tform:first-of-type { border-top: 0; }
.tform .label small { font-weight: 400; margin-left: 6px; }
.tform textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .25); color: var(--ink); font: 400 1rem/1.45 var(--body); resize: vertical; }
.tform textarea.legal-edit { font-size: .92rem; min-height: 280px; }
.tform .btn { margin: 10px 8px 0 0; }
.tmsg { margin: 8px 0 0; } .tmsg.ok { color: var(--brand); font-weight: 600; }

/* ---- Service kompakt: alles in Reichweite, wenig Wischen. Mehr Tische je Reihe, kleinere Artikel-Kacheln,
        Auswahl als Kacheln mit eingeklappten Extras, Knöpfe der Auswahl immer sichtbar. */
body.staff .service { padding: 10px 12px; }
.service section + section { margin-top: 14px; }
.service h2 { font-size: 1.1rem; margin: 0 0 6px; }
.staff .top { flex-wrap: nowrap; padding-top: calc(6px + env(safe-area-inset-top)); padding-bottom: 6px; }
.staff .top .brand { font-size: 1.15rem; }
.staff .bar-right { gap: 8px; flex-wrap: nowrap; }
.staff .bar-right .btn-s { min-height: 34px; padding: 0 10px; font-size: .84rem; }
.staff .top #invBtn { display: none; }                 /* „Rechnungen“ steht jetzt als großer Knopf unter den Tischen */
@media (max-width: 420px) { .staff .top #who { display: none; } }
.tgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 700px) { .tgrid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; } }
.tcard { min-height: 56px; padding: 7px 8px; gap: 1px; border-radius: 12px; overflow: hidden; }
.tcard b { font-size: .95rem; white-space: nowrap; }
.tcard span { font-size: .76rem; white-space: nowrap; }
.tcard em { font-size: .66rem; padding: 0 6px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.quick .btn { min-height: 46px; margin: 0; padding: 0 8px; font-size: .92rem; }
.orow { min-height: 46px; padding: 6px 10px; margin-bottom: 6px; }

/* Kopf in einer Zeile: Schließen, Tisch, kleine Suche daneben */
.pos-head { grid-template-columns: 36px auto minmax(0, 1fr); padding: calc(2px + env(safe-area-inset-top)) 10px 4px; gap: 0 8px; }
.pos-head h2 { font-size: 1.05rem; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.pos-head input { grid-column: auto; min-width: 0; min-height: 32px; height: 32px; padding: 0 10px; border-radius: 9px; }
.pos-head .iconbtn { width: 36px; height: 36px; min-height: 36px; }
.pos-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px 10px; overflow: visible; }
@media (min-width: 600px) { .pos-cats { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
/* Kategorien in eigener Farbe; groß genug zum Tippen im Betrieb (Inhaber 16. 11. 2026: 48 px, 4 je Zeile) */
.poscat { min-width: 0; height: 48px; min-height: 48px; padding: 0 4px; border-radius: 10px; font-size: .82rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; overflow: hidden; hyphens: auto;
  background: rgba(96, 150, 255, .16); border-color: rgba(120, 165, 255, .4); color: #d6e4ff; touch-action: manipulation; }
.poscat.on { color: var(--brand-ink); }
.pos-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 2px 10px 12px; }
@media (min-width: 600px) { .pos-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.positem { touch-action: manipulation; height: 64px; min-height: 64px; padding: 6px 8px; gap: 2px; border-radius: 10px; overflow: visible; }
.posname { font-size: .84rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.posprice { font-size: .76rem; white-space: nowrap; }
.posqty { top: -5px; right: -5px; min-width: 22px; height: 22px; line-height: 22px; font-size: .8rem; }
.pos-foot { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
.pos-foot-row .btn { min-height: 48px; }

.pos-opt-card { display: flex; flex-direction: column; overflow: hidden; padding: 12px 12px calc(10px + env(safe-area-inset-bottom)); }
.pos-opt-card h3 { margin: 0 0 8px; font-size: 1.15rem; flex: none; }
#posOptBody { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.posgroup { margin: 0 0 8px; }
.posgroup legend { margin-bottom: 4px; font-size: .9rem; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.chip { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 42px; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .86rem; line-height: 1.15; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span { overflow-wrap: anywhere; }
.chip small { flex: none; opacity: .8; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip:has(input:checked) { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.posmore { border-top: 1px solid var(--line); }
.posmore summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; font-weight: 700; font-size: .92rem; cursor: pointer; list-style: none; }
.posmore summary::-webkit-details-marker { display: none; }
.posmore summary small { font-weight: 400; color: var(--muted); margin-right: auto; margin-left: 6px; }
.posmore summary::after { content: "+"; font-size: 1.2rem; color: var(--muted); }
.posmore[open] summary::after { content: "–"; }
.posmore .posgroup { margin-bottom: 10px; }
.posmore input[type="text"] { display: block; width: 100%; min-height: 42px; margin: 0 0 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .25); color: var(--ink); font: inherit; font-size: 16px; }
.pos-opt-foot { flex: none; margin-top: 8px; grid-template-columns: auto auto minmax(0, 1fr); }
.pos-opt-foot .btn { min-height: 46px; min-width: 0; margin: 0; padding: 0 12px; white-space: nowrap; }

/* ==== Service hell: weiße Flächen, schwarze Schrift — besser lesbar im hellen Lokal. Gilt nur für die Service-Seite
   (body.staff.light); Küche, Fahrer und Verwaltung bleiben dunkel. Gold bleibt die Farbe für „gewählt“ und Hauptknöpfe. */
body.staff.light {
  --bg: #f3f5f8; --surface: #ffffff; --ink: #0d1117; --muted: #566070; --line: #cfd6e0;
  --brand: #f5c02e; --brand-ink: #1f1503; --deal: #a3421b; --warn-bg: #fdf1dc; --warn-ink: #6b4708;
  --err: #b42318; --shadow: 0 6px 20px rgba(16, 24, 40, .10);
  color-scheme: light;
}
html:has(body.staff.light) { background: #f3f5f8; }
body.staff.light::before { background: #f3f5f8; }
.staff.light .top { background: rgba(255, 255, 255, .96); }
.staff.light .brand span, .staff.light .tno, .staff.light .count { color: #7a4f00; }
.staff.light .count { background: #fff4cf; border-color: #e6c35a; }
.staff.light .field input, .staff.light .field select, .staff.light .field textarea, .staff.light .tform textarea,
.staff.light .pos-head input, .staff.light .posmore input[type="text"] { background: #fff; border-color: #b9c2cf; color: var(--ink); }
.staff.light .sheet, .staff.light .pos-opt-card, body.staff.light .actsheet { background: #fff; color: var(--ink); box-shadow: 0 -8px 30px rgba(16, 24, 40, .18); }
.staff.light .sheet-foot { background: #fff; }
.staff.light .offline, .staff.light .tcard em { background: #b42318; color: #fff; }
.staff.light .toast { background: #0d1117; color: #fff; }
.staff.light .ticket, .staff.light .tcard, .staff.light .orow, .staff.light .prow, .staff.light .tile, .staff.light .tablewrap { box-shadow: 0 1px 3px rgba(16, 24, 40, .10); }
.staff.light .tcard.free { opacity: 1; }
.staff.light .pos { background: #f3f5f8; }
.staff.light .pos::backdrop, .staff.light .pos-opt { background: rgba(13, 17, 23, .45); }
.staff.light .pos-foot { background: #fff; }
.staff.light .positem { background: #fff; border-color: #cfd6e0; color: var(--ink); }
.staff.light .positem.out { border-color: #f08a24; }
.staff.light .poscat { background: #e1eaff; border-color: #9db6ee; color: #14306e; }
.staff.light .poscat.on { background: var(--brand); border-color: #d9a514; color: var(--brand-ink); }
.staff.light .chip:has(input:checked) { border-color: #d9a514; }
.staff.light .posqty { background: #0d1117; color: #fff; }
.staff .top .themebtn { width: 34px; padding: 0; font-size: 1rem; line-height: 1; }

/* ---- Getränke im Service-Monitor: je Bestellung eine Zeile, ein Tipp = am Tisch */
.drinks { margin-top: 10px; }
.drinks h2 { display: flex; align-items: center; gap: 8px; }
.drow { display: grid; grid-template-columns: minmax(64px, auto) minmax(0, 1fr) auto 34px; align-items: center; gap: 4px 10px; width: 100%; min-height: 48px; padding: 6px 8px 6px 12px; margin-bottom: 6px;
  text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid #4f86e8; border-radius: 12px; cursor: pointer; touch-action: manipulation; }
.drow.late { border-left-color: var(--err); }
.drow[disabled] { opacity: .5; }
.dwhere { font-size: .95rem; white-space: nowrap; }
.ditems { font-size: .9rem; line-height: 1.25; font-weight: 600; }
.ditems small, .ditems em { font-weight: 400; color: var(--muted); font-style: normal; }
.dage { font-size: .78rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.drow.late .dage { color: var(--err); font-weight: 700; }
.ddone { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; }

/* ---- Gang (Menüfolge): Leiste in der Mini-Kasse, Auswahl im Artikel, Trenner im Küchenmonitor */
.pos-course { display: flex; align-items: center; gap: 5px; padding: 0 10px 5px; flex: none; }
.pos-course[hidden] { display: none; }
.pcl { font-size: .74rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.pcbtn { flex: 1; min-width: 0; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 700 .8rem var(--body); cursor: pointer; touch-action: manipulation; }
.pcbtn.on { background: #b3261e; border-color: #b3261e; color: #fff; }
.pcbtn.pgbtn.on { background: #1f5fd6; border-color: #1f5fd6; }       /* Gruppe am Tisch (0094): blau, Gang bleibt rot */
.poscourse { display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr)); align-items: center; gap: 5px; margin: 0 0 8px; }
.poscourse .chip { min-height: 36px; justify-content: center; padding: 0 4px; }
.poscourse .chip:has(input:checked) { background: #b3261e; border-color: #b3261e; color: #fff; }
.posgang { color: #b3261e !important; font-weight: 700; }
.posgruppe { color: #1f5fd6 !important; font-weight: 700; }
body.staff:not(.light) .posgruppe { color: #8fb4ff !important; }
body.staff:not(.light) .posgang { color: #ff8a80 !important; }
.ticket li.gang { display: block; margin: 8px 0 2px; padding: 3px 8px; border-radius: 6px; background: #b3261e; color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; }

/* ---- Nach unten ziehen = aktualisieren; Auswahl-Karte lässt sich nach unten wegziehen */
.ptr { position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; z-index: 60; transform: translate(-50%, -160%); padding: 6px 14px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 700 .8rem var(--body); white-space: nowrap; pointer-events: none; opacity: 0; transition: transform .18s ease, opacity .18s ease; }
.ptr.on { transform: translate(-50%, 0); opacity: 1; }
.pos-opt-card { transition: transform .18s ease; }
.pos-opt-card::before { content: ""; display: block; flex: none; width: 40px; height: 4px; margin: -4px auto 8px; border-radius: 999px; background: var(--line); }
/* Anmeldung: Code-Weg und Face ID */
.login .ok { color: var(--brand); font-weight: 600; }
.login .center { text-align: center; margin: 10px 0 2px; font-size: .88rem; }
.staff .login .linkbtn, .login .linkbtn { display: block; margin: 12px auto 0; padding: 6px 8px; min-height: 36px; color: var(--brand); font-size: .9rem; font-weight: 600; text-decoration: underline; }
.login .btn + .btn { margin-top: 10px; }
/* Ergebnis „Aus der Kasse laden“ */
.syncres ul { margin: 4px 0 12px; padding-left: 20px; max-height: 200px; overflow: auto; font-size: .9rem; }
.syncres .ok { color: var(--brand); font-weight: 600; }
input[readonly] { opacity: .65; cursor: not-allowed; }
/* Rabatte der Kasse als Auswahl, Gutschein beim Kassieren */
.seg-wrap { flex-wrap: wrap; }
.seg-wrap label { flex: 1 1 100%; min-width: 0; }
.seg-wrap span { white-space: normal; text-align: center; padding: 6px 10px; }
.vbox { margin: 10px 0; }
.vbox summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.vbox .row2 { align-items: end; }
/* QR-Code eines Tisches zum Ausdrucken */
.qrsheet { text-align: center; padding: 8px 0 16px; }
.qrsheet .qrbrand { margin: 0; font-weight: 600; letter-spacing: .04em; }
.qrsheet h2 { margin: 4px 0 12px; font-size: 1.8rem; }
.qrsheet .qrsvg { width: min(70vw, 300px); height: auto; display: block; margin: 0 auto; background: #fff; border-radius: 8px; }
.qrsheet .qrhint { font-weight: 600; margin: 12px 0 4px; }
.qrsheet .qrlink { word-break: break-all; }
@media print {
  body * { visibility: hidden !important; }
  .qrsheet, .qrsheet * { visibility: visible !important; color: #000 !important; }
  .qrsheet { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; }
  .qrsheet .qrsvg { width: 9cm; }
  .noprint { display: none !important; }
}

/* Rufe vom Tisch, Wartezeit, Tischplan (0042) */
.calls { margin-bottom: 10px; }
.calls h2 { display: flex; align-items: center; gap: 8px; }
.callrow { display: grid; grid-template-columns: minmax(64px, auto) minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px 6px 12px;
  margin-bottom: 6px; border: 1px solid var(--line); border-left: 4px solid var(--err); border-radius: 12px; background: var(--surface); }
.tcard.call { border-left-color: var(--err); animation: callpulse 1.6s ease-in-out infinite; }
.tcard .tcall { background: #b45309; }
.tcard .twait { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.tcard .twait.late { color: var(--err); font-weight: 700; }
@keyframes callpulse { 50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, .35); } }
@media (prefers-reduced-motion: reduce) { .tcard.call { animation: none; } }
.viewseg, .planareas { display: flex; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; }
.planbar { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.planboard { position: relative; width: 100%; aspect-ratio: 4 / 3; margin: 8px 0 12px; border: 1px dashed var(--line); border-radius: 14px;
  background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(127, 127, 127, .08) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(127, 127, 127, .08) 39px 40px); touch-action: none; }
.pltable { position: absolute; transform: translate(-50%, -50%); min-width: 64px; min-height: 44px; padding: 6px 10px; border-radius: 10px; border: 2px solid var(--brand);
  background: var(--surface); color: var(--ink); font: 700 .9rem var(--body); cursor: grab; touch-action: none; }
.pltable.sel { box-shadow: 0 0 0 3px var(--brand); }
.service-plan { touch-action: auto; min-height: 320px; }
.service-plan .tcard { position: absolute; transform: translate(-50%, -50%); width: clamp(92px, 18%, 150px); min-height: 72px; padding: 8px 10px; }
.service-plan .tcard b { font-size: 1rem; }

/* Fahrer: Standort wird geteilt */
.sharebox { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; background: var(--surface); }
.sharebox p { margin: 0 0 8px; }

/* KI-Telefon im Schatten-Modus (0056): wartet auf Freigabe durch den Service */
.aiheld .callrow { border-left-color: #2563eb; }
.aiheld .aibtns { display: flex; flex-direction: column; gap: 6px; }

/* Fahrer-Monitor (fahrer-qr.html): große QR-Codes, auf Abstand mit dem Handy scanbar */
.fqr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 12px 0; }
.fqr { margin: 0; text-align: center; border-left-color: var(--brand); }
.fqr header { justify-content: space-between; }
.fqr .tno { font-size: 2rem; }
.fqr-code { display: block; width: 100%; max-width: 280px; margin: 10px auto; border-radius: 8px; }
.fqr .taddr { margin: 6px 0 0; font-size: 1.1rem; }
/* Fahrer-Monitor wie lokami (16. 11. 2026): links Karten (Küche → QR → unterwegs), rechts Karte mit Fahrern */
.fm-wrap { --k-out: #e3b341; --k-back: #3fb950; --k-free: #8b949e; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 40%); gap: 16px; padding: 14px; min-height: calc(100vh - 64px); }
.fm-hint { margin: 0 0 10px; }
.fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.fm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fm header { display: flex; align-items: baseline; gap: 10px; padding: 8px 14px; background: #4b5563; color: #fff; }
.fm-ready header { background: #15803d; }
.fm-out header { background: #1d4ed8; }
.fm[class*=" tc"] header { background: var(--tc); color: #0b0e11; }
.fm.fm-out[class*=" tc"] header { background: #1d4ed8; color: #fff; }
.fm-title { font-size: 1.5rem; }
.fm-sub { font-size: .95rem; font-weight: 600; }
.fm-outlbl { margin-left: auto; font-weight: 700; text-transform: uppercase; font-size: .9rem; }
.fm-driver { display: flex; gap: 10px; margin: 0; padding: 6px 14px; background: rgba(29, 78, 216, .15); color: #c7d7fe; font-weight: 600; }
.fm-driver span { margin-left: auto; font-weight: 400; }
.fm-body { display: flex; gap: 14px; padding: 12px 14px; align-items: flex-start; }
.fm-stops { flex: 1; min-width: 0; }
.fm-stops ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fm-stops li { display: flex; gap: 8px; align-items: flex-start; font-size: 1.05rem; line-height: 1.3; }
.fm-nr { width: 1.4em; flex: none; }
.fm-ok { margin-left: auto; color: #3fb950; font-weight: 700; }
.fm-badge { display: inline-block; margin: 10px 0 0; padding: 3px 10px; border-radius: 6px; font-weight: 700; }
.fm-b-kitchen { background: #e3b341; color: #111; }
.fm-b-ready { background: #15803d; color: #fff; }
.fm-qr { position: relative; flex: none; width: 190px; }
.fm-qr .fqr-code { width: 190px; max-width: none; margin: 0; }
.fm-gone .fqr-code { opacity: .18; }
.fm-stamp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.fm-stamp::before { content: "In Zustellung"; transform: rotate(-12deg); border: 4px solid #2563eb; color: #2563eb; border-radius: 6px; padding: 4px 10px; font-weight: 900; text-transform: uppercase; font-size: 1.1rem; background: rgba(255, 255, 255, .85); }
.fm-stamp { font-size: 0; }
.fm-side { position: sticky; top: 12px; align-self: start; }
.fm-map { position: relative; width: 100%; height: min(70vh, 640px); overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #0b0e11; }
.fm-map .drvmap-in img { position: absolute; width: 256px; height: 256px; filter: grayscale(.4) brightness(.85); }
.fm-nomap { padding: 24px; }
.fm-drv { margin: 6px 0; padding: 6px 10px; border-left: 4px solid #8b949e; background: var(--surface); border-radius: 4px; }
.fm-drv-out { border-left-color: #e3b341; } .fm-drv-back { border-left-color: #3fb950; }
@media (max-width: 1000px) { .fm-wrap { grid-template-columns: 1fr; } .fm-side { position: static; } .fm-map { height: 320px; } }
.scanhint { margin: 18px 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.fqr-empty { font-size: 1.4rem; color: var(--muted); text-align: center; padding: 48px 0; grid-column: 1 / -1; }
.navgo { margin-top: 14px; font-size: 1.15rem; padding: 16px; }

/* Navigation in der Fahrer-Seite (fahrer-nav.js): ganzer Bildschirm, oben nächste Anweisung, unten Rest + Zugestellt */
body.nav-open { overflow: hidden; }
.nav { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--bg); }
.nav[hidden] { display: none; }
.nav-top { display: flex; gap: 14px; align-items: center; padding: calc(env(safe-area-inset-top) + 12px) 16px 12px; background: #0f5132; color: #fff; }
.nav-arrow { font-size: 2.6rem; line-height: 1; min-width: 2.6rem; text-align: center; }
.nav-dist { margin: 0; font-size: 1.6rem; font-weight: 800; }
.nav-text { margin: 2px 0 0; font-size: 1.05rem; }
.nav-map { position: relative; flex: 1; overflow: hidden; background: #dfe6ec; }
.nav-in { position: absolute; left: 0; top: 0; width: 1280px; height: 1280px; transition: transform .9s ease; }
.nav-in img { position: absolute; width: 256px; height: 256px; max-width: none; }
.nav-svg { position: absolute; left: 0; top: 0; }
.nav-svg polyline { fill: none; stroke: #1a73e8; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.nav-svg circle { fill: #d62828; stroke: #fff; stroke-width: 3; }
.nav-me { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #1a73e8; border: 4px solid #fff;
  box-shadow: 0 0 0 8px rgba(26, 115, 232, .25); transition: left .9s ease, top .9s ease; }
.nav-attr { margin: 0; padding: 2px 8px; font-size: .7rem; color: var(--muted); text-align: right; }
.nav-bottom { padding: 10px 16px calc(env(safe-area-inset-bottom) + 12px); border-top: 1px solid var(--line); }
.nav-sum { font-size: 1.3rem; } .nav-sum span { color: var(--muted); }
.nav-addr { margin: 4px 0 10px; }
.nav-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* Fahrer: Nach unten ziehen zum Aktualisieren (web/js/fahrer.js, pullRefresh) */
.ptr-f { position: fixed; top: calc(env(safe-area-inset-top) + 10px); left: 50%; z-index: 60; transform: translate(-50%, -56px); opacity: 0;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #1b2430; color: #f3f4f6;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35); font-size: 14px; pointer-events: none; transition: opacity .2s; }
.ptr-f-ring { width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(245, 192, 46, .25); border-top-color: #F5C02E; }
.ptr-f-ring.spin { animation: ptrspin .8s linear infinite; }
@keyframes ptrspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptr-f-ring.spin { animation-duration: 2s; } }

/* Fahrer: Hinweis zur Lieferung (Klingel, Etage, Hund …) groß, Problem an der Tür, Schicht, Alarm neue Lieferung */
.dnote { margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: #3a2a06; border: 2px solid #F5C02E; color: #fff3c4; font-size: 18px; line-height: 1.35; }
.dnote b { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #F5C02E; margin-bottom: 2px; }
.nav-note { margin: 8px 12px; }
.nav-contact { display: flex; gap: 8px; margin: 0 12px 8px; }
.nav-contact .btn { flex: 1; }
.issue { margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: #3b0d0d; border: 2px solid #dc2626; color: #fee2e2; }
.issue p { margin: 6px 0 10px; }
.drive .tlinks { flex-wrap: wrap; }
.drive [data-issue] { margin-top: 8px; }
.shift { padding: 12px 14px; border-radius: 14px; background: #121a24; border: 1px solid #263244; margin-bottom: 16px; }
.shift h2 { margin-top: 0; }
#methodSeg[hidden] { display: none; }
.alarmbar { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 8px); z-index: 80; padding: 16px; border: 0; border-radius: 14px;
  background: #F5C02E; color: #111; font: 700 17px/1.3 inherit; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: alarmpulse 1s ease-in-out infinite; }
.alarmbar[hidden] { display: none; }
@keyframes alarmpulse { 50% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(245, 192, 46, .35); } }
@media (prefers-reduced-motion: reduce) { .alarmbar { animation: none; } }
/* Küche: Fahrer meldet Problem an der Tür */
.kds-issue { margin: 8px 12px 0; padding: 10px 14px; border-radius: 12px; background: #3b0d0d; border: 2px solid #dc2626; color: #fee2e2; font-size: 18px; }
.kds-issue p { margin: 2px 0; }
.kds-issue span { opacity: .8; font-size: 15px; }
#kdsIssue[hidden] { display: none; }
/* Touren (wie lokami): Farben je Tour; Fahrer-App: Gruppe, Küche: Marke */
.tc0 { --tc: #3B82F6; } .tc1 { --tc: #22C55E; } .tc2 { --tc: #F97316; } .tc3 { --tc: #A855F7; } .tc4 { --tc: #06B6D4; } .tc5 { --tc: #EC4899; }
.tourgrp { border: 2px solid var(--tc); border-radius: 16px; padding: 10px; margin: 0 0 14px; }
.tourhead { margin: 0 0 8px; color: var(--tc); }
.tourhead b { color: inherit; }
.stopno { margin: 10px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #F5C02E; }
.tourtag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--tc); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
/* Fahrer: nach dem Übernehmen die übrigen Stopps der Tour anbieten */
.samedir { margin: 12px 0; padding: 12px; border-radius: 12px; border: 2px solid #F5C02E; background: #1a1606; }
.samedir p { margin: 0 0 8px; color: #fff3c4; }
.samedir-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #3a3210; }
.samedir-row input { width: 22px; height: 22px; }
/* Küche: Tour-Zeile (Kochstart, Abfahrt, allein fahren / festlegen) */
.tourline { margin: 6px 0; padding: 6px 10px; border-left: 4px solid var(--tc); border-radius: 6px; background: rgba(255, 255, 255, .04); font-size: 15px; }
.tourbtns { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.termin { margin: 6px 0; padding: 8px 12px; border-radius: 10px; background: #2a1a40; border: 2px solid #A855F7; color: #f3e8ff; font-size: 16px; }

/* ---- KDS im Stil professioneller Küchensysteme (Inhaber 15. 11.: „ozbiljno i profesionalno“):
   ruhige dunkle Fläche, neutrale Bons, Bestellart nur als schmaler Streifen oben + kleine Beschriftung, keine Goldflächen */
body.kds { --k-bg: #0f1216; --k-bar: #15191e; --k-card: #1a1e23; --k-line: #2a3038; --k-ink: #e6e8eb; --k-hi: #f5f6f8; --k-mute: #8b949e;
  --k-btn: #2b323a; --k-btn-h: #353d47; --k-pick: #4c8a2b; --k-pick-t: #86b866; --k-dine: #2f6fb3; --k-dine-t: #79a9de; --k-del: #b8862a; --k-del-t: #d6a95a;
  --k-plus: #7dbb60; --k-minus: #e27373; --k-late: #e5534b;
  background: var(--k-bg); color: var(--k-ink); font-family: var(--body); }
body.kds .top { background: var(--k-bar); border-bottom: 1px solid var(--k-line); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.kds .top .brand { font: 600 1rem var(--body); color: var(--k-hi); letter-spacing: .01em; }
body.kds .seg-s span { min-height: 34px; padding: 0 14px; border-radius: 4px; background: transparent; border: 1px solid var(--k-line); color: var(--k-mute); font-weight: 500; font-size: .9rem; }
body.kds .seg-s input:checked + span { background: var(--k-btn); border-color: var(--k-btn); color: var(--k-hi); }
body.kds .toggle { font-weight: 500; color: var(--k-mute); } body.kds .toggle input { accent-color: #8b949e; }
body.kds .clock { color: var(--k-hi); font-weight: 500; }
body.kds .top .btn { background: transparent; border: 1px solid var(--k-line); color: var(--k-mute); border-radius: 4px; box-shadow: none; }
body.kds .board { gap: 12px; padding: 12px; }
body.kds .col h2 { font: 600 .78rem var(--body); text-transform: uppercase; letter-spacing: .09em; color: var(--k-mute); margin: 2px 2px 10px; background: var(--k-bg); padding: 6px 0; }
body.kds .count { background: transparent; border: 1px solid var(--k-line); color: var(--k-ink); font: 600 .78rem var(--body); min-width: 24px; padding: 1px 7px; border-radius: 4px; }
body.kds .empty { color: var(--k-mute); font-size: .9rem; }

body.kds .ticket { background: var(--k-card); border: 1px solid var(--k-line); border-top: 4px solid var(--k-line); border-radius: 6px; padding: 0; margin-bottom: 10px; box-shadow: none; overflow: hidden; }
body.kds .ticket.t-pickup { border-top-color: var(--k-pick); }
body.kds .ticket.t-dine_in { border-top-color: var(--k-dine); }
body.kds .ticket.t-delivery { border-top-color: var(--k-del); }
body.kds .ticket.late { border-color: #5a2a2a; border-top-color: var(--k-late); }
body.kds .ticket header { margin: 0; padding: 9px 12px 7px; background: transparent; border-bottom: 1px solid var(--k-line); gap: 8px; flex-wrap: nowrap; align-items: baseline; }
body.kds .tno { color: var(--k-hi); font: 600 1.3rem var(--body); }
body.kds .ticket .badge { background: none; border: 0; padding: 0; border-radius: 0; font: 600 .7rem var(--body); text-transform: uppercase; letter-spacing: .09em; }
body.kds .b-pickup { color: var(--k-pick-t); } body.kds .b-dine_in { color: var(--k-dine-t); } body.kds .b-delivery { color: var(--k-del-t); }
body.kds .age { color: #c9ced4; font: 500 1rem var(--body); font-variant-numeric: tabular-nums; }
body.kds .ticket.late .age { color: var(--k-late); font-weight: 600; }
body.kds .tname { margin: 0; padding: 7px 12px 2px; color: var(--k-mute); font-size: .88rem; }
body.kds .taddr { margin: 0; padding: 0 12px 2px; color: var(--k-mute); font-size: .88rem; }
body.kds .ticket ul { margin: 0; padding: 4px 12px 8px; }
body.kds .ticket li { border-top: 0; padding: 4px 0; font-size: 1.05rem; color: var(--k-ink); gap: 6px; }
body.kds .ticket li b { min-width: 26px; color: var(--k-hi); font-weight: 600; }
body.kds .ticket li span { font-weight: 500; }
body.kds .ticket li.gang { background: none; color: var(--k-mute); border-top: 1px solid var(--k-line); border-radius: 0; padding: 6px 0 2px; margin: 4px 0 0; font: 600 .7rem var(--body); letter-spacing: .09em; }
body.kds .kmods { margin-top: 1px; }
body.kds .kmods i { font-size: .92rem; font-weight: 500; line-height: 1.4; }
body.kds .kmods .mod-mit { color: var(--k-plus); } body.kds .kmods .mod-ohne { color: var(--k-minus); } body.kds .kmods .mod-other { color: var(--k-mute); }
body.kds .ticket li em, body.kds .tnote { background: rgba(214, 169, 90, .10); color: #e2c48a; border-left: 3px solid var(--k-del); border-radius: 0; font-weight: 500; padding: 3px 8px; }
body.kds .tnote { margin: 0 12px 8px; }
body.kds .ticket .btn { display: block; width: calc(100% - 24px); margin: 0 12px 12px; min-height: 44px; border-radius: 4px; background: var(--k-btn); color: var(--k-hi);
  border: 1px solid var(--k-line); box-shadow: none; font: 600 .95rem var(--body); text-shadow: none; }
body.kds .ticket .btn:hover:not(:disabled) { background: var(--k-btn-h); }
body.kds .ticket .wait { margin: 0 12px 12px; color: var(--k-mute); font-weight: 500; }
body.kds .tourtag { background: transparent; border: 1px solid var(--k-line); color: var(--k-ink); border-radius: 4px; font: 600 .72rem var(--body); padding: 1px 6px; margin-left: 4px; }
body.kds .tourline { margin: 6px 12px 0; background: transparent; border-left: 3px solid var(--k-line); border-radius: 0; color: var(--k-mute); font-size: .85rem; }
body.kds .kds-issue { background: #2a1416; border: 1px solid #6b2a2a; color: #f1c9c9; border-radius: 6px; font-size: 16px; }
/* Auswahl auf dem Bon: jede Zeile für sich, nicht kursiv */
.ticket li small.kmods { display: block; margin-top: 1px; }
.kmods i { display: block; font-style: normal; }
html:has(body.kds) { background: #0f1216; } body.kds { min-height: 100vh; background-image: none; }

/* KDS: Fahrer-Spalte (0065) — Zustand, Rückkehr, kleine Karte. Ab 1100 px: 4 Spalten Neu | In Zubereitung | Fertig | Fahrer
   (Fahrer rechts, Inhaber 16. 11.); ≥ 1900 px (29" 21:9) größere Schrift, Bons dicht. Schmaler: Fahrer als Leiste unten. */
body.kds { --k-out: #e3b341; --k-back: #3fb950; --k-free: #8b949e; }
.board .drivers { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.board .drivers h2 { width: 100%; }
.drv { flex: 1 1 200px; padding: 8px 12px; border-radius: 6px; background: var(--k-card, #1a1e23); border: 1px solid var(--k-line, #2a3038); border-left: 4px solid var(--k-free); }
.drv p { margin: 0; }
.drv-out { border-left-color: var(--k-out); } .drv-back { border-left-color: var(--k-back); }
.drv-name { color: var(--k-hi, #f5f6f8); font-size: 1.05rem; }
.drv-tour { color: var(--k-mute, #8b949e); font-size: .85rem; margin-left: 6px; }
.drv-state { font-weight: 600; font-size: .95rem; }
.drv-out .drv-state { color: var(--k-out); } .drv-back .drv-state { color: var(--k-back); } .drv-free .drv-state { color: var(--k-free); }
.drv-back { color: var(--k-ink, #e6e8eb); font-variant-numeric: tabular-nums; }
.drvhint { margin: 4px 12px 8px; padding: 6px 10px; border-radius: 4px; background: rgba(63, 185, 80, .10); color: #b7e4c0; font-size: .95rem; }
.drvmap { position: relative; width: 100%; height: 220px; overflow: hidden; border-radius: 6px; border: 1px solid var(--k-line, #2a3038); background: #0b0e11; flex-basis: 100%; }
.drvmap-in { position: absolute; left: 0; top: 0; }
.drvmap-in img { position: absolute; width: 256px; height: 256px; filter: grayscale(.6) brightness(.75); }
.drvdot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid #fff; background: var(--k-free);
  color: #111; font: 700 12px/18px var(--body, sans-serif); text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.drvdot.home { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #f5f6f8; border-color: #111; }
.drvdot.drv-out { background: var(--k-out); } .drvdot.drv-back { background: var(--k-back); }
.drvroute { position: absolute; left: 0; top: 0; pointer-events: none; }
.drvroute .rt { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.drvroute .rt-out { stroke: #1a73e8; stroke-width: 5; opacity: .9; }
.drvroute .rt-back { stroke: var(--k-back, #5dcaa5); stroke-width: 4; stroke-dasharray: 9 8; opacity: .95; }
.drvroute .rt-end { fill: #f5c542; stroke: #fff; stroke-width: 3; }
@media (min-width: 1100px) {
  body.kds .board { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(260px, .8fr); }
  .board .drivers { grid-column: auto; display: block; position: sticky; top: 12px; }
  .board .drivers .drv { margin-bottom: 10px; }
  .drvmap { height: 280px; margin-top: 6px; }
}
@media (min-width: 1900px) {
  body.kds .board { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(300px, .85fr); gap: 16px; padding: 16px; font-size: 1.12rem; }
  .drvmap { height: 340px; }
  body.kds .tno { font-size: 1.6rem; }
  body.kds .ticket { margin-bottom: 8px; }
  body.kds .ticket header { padding: 7px 12px 5px; }
  body.kds .col h2 { font-size: .9rem; }
  .drv-name { font-size: 1.25rem; } .drv-state { font-size: 1.1rem; } .drv-back { font-size: 1.1rem; }
}

/* Service: Tische nach Küchenstand (Inhaber 16. 11. 2026) — orange in Zubereitung, grün fertig (3 Min. ganz, danach Leiste),
   bezahlt/frei grau. Oben: Ansicht links, Telefon-Bestellung und Rechnungen rechts. */
.svctop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.svctop .viewseg { margin: 0; }
.svctop .quick { display: flex; gap: 8px; margin: 0 0 0 auto; }
.svctop .quick .btn { min-height: 40px; padding: 0 14px; font-size: .9rem; white-space: nowrap; }
@media (max-width: 520px) { .svctop .quick { margin: 0; width: 100%; flex-wrap: wrap; } .svctop .quick .btn { flex: 1 1 auto; padding: 0 10px; } }
.tcard.prep { background: #3a2410; border-color: #a85b12; border-left-color: #f08c00; }
.tcard.prep span, .tcard.prep b { color: #ffd8a8; } .tcard.prep .twait { color: #ffc078; }
.tcard.ready { border-left-color: #2f9e44; } .tcard.ready span { color: var(--ink); font-weight: 600; } .tcard.ready .twait { color: #51cf66; }
.tcard.ready-new { background: #2b8a3e; border-color: #2f9e44; border-left-color: #1b6e2c; }
.tcard.ready-new b, .tcard.ready-new span, .tcard.ready-new .twait { color: #fff; }
.staff .tcard .tserve { background: #2f9e44; }
.staff .tcard.ready-new .tserve { background: #1b6e2c; }
.staff.light .tcard.prep { background: #ffe8cc; border-color: #f5b26b; border-left-color: #f08c00; }
.staff.light .tcard.prep b, .staff.light .tcard.prep span { color: #5c2e00; } .staff.light .tcard.prep .twait { color: #8a4a00; }
.staff.light .tcard.ready .twait { color: #2b8a3e; }
.staff.light .tcard.ready-new { background: #2f9e44; border-color: #2b8a3e; border-left-color: #1b6e2c; }
.staff.light .tcard.ready-new b, .staff.light .tcard.ready-new span, .staff.light .tcard.ready-new .twait { color: #fff; }
.staff.light .tcard .tserve { background: #2b8a3e; color: #fff; }

/* KDS: Tour als ein Rahmen in der Tourfarbe (Inhaber 16. 11. 2026) */
.tourbox { border: 3px solid var(--tc); border-radius: 12px; padding: 0 8px 8px; margin: 0 0 12px; background: color-mix(in srgb, var(--tc) 9%, transparent); }
.tourbox-head { display: flex; align-items: center; gap: 10px; padding: 8px 4px; }
.tourbox-head b { display: block; color: var(--k-hi, #f5f6f8); font-size: 1rem; }
.tourbox-head small { display: block; color: var(--tc); font-size: .85rem; font-weight: 600; }
.tourletter { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tc); color: #fff; font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.tourbox .ticket { border-left: 6px solid var(--tc); margin-bottom: 8px; }
.tourbox .ticket:last-child { margin-bottom: 0; }
.tourbox-head > div { flex: 1; min-width: 0; }
.tourbox-head { padding: 6px 2px; }
.tourbox-head > b { flex: 1; min-width: 0; color: var(--tc); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tourbox-head .tourall { flex: none; margin: 0; }
/* KDS: ganze Karte ist der Knopf (Inhaber 16. 11.) */
.ticket.tap { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .08s ease, filter .08s ease; user-select: none; }
.ticket.tap:active { transform: scale(.98); filter: brightness(1.15); }
.ticket.busy { opacity: .55; pointer-events: none; }
.ticket.tap:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
/* KDS: Bedenkzeit nach einem Tipp — „Rückgängig“ deutlich sichtbar */
body.kds .ticket .btn.undo, body.kds .ticket .btn.undo:hover:not(:disabled) { margin-top: 4px; background: #f08c00; border-color: #f08c00; color: #111; font-weight: 800; min-height: 48px; }
body.kds .ticket .btn.back { display: inline-block; width: auto; margin: 0 12px 10px auto; float: right; min-height: 32px; padding: 0 12px; font-size: .85rem; background: transparent; border: 1px solid var(--k-line, #2a3038); color: var(--k-mute, #8b949e); }
body.kds .ticket::after { content: ""; display: block; clear: both; }
/* Service: „Serviert“ direkt auf der Tischkachel (Inhaber 16. 11.) */
.tcard .tservebtn { display: block; align-self: stretch; margin-top: auto; padding: 8px 6px; border-radius: 10px; background: #2f9e44; color: #fff; font-weight: 800; text-align: center; font-size: .95rem; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.tcard.ready-new .tservebtn { background: #fff; color: #1b6e2c; }
.tcard .tservebtn.busy { opacity: .5; pointer-events: none; }
.tcard .tservebtn:active { transform: scale(.97); }
@media (max-width: 520px) { .tcard .tservebtn { font-size: .78rem; padding: 6px 2px; } }
body.kds .ticket.done { opacity: .72; cursor: default; }
/* „Serviert“ auf der ganz grünen Kachel: im hellen Modus nicht weiß auf weiß (die Regel für weiße Kacheltexte trifft auch diesen span) */
.staff.light .tcard.ready-new .tservebtn, .staff .tcard.ready-new .tservebtn { background: #fff; color: #1b6e2c; }
.staff.light .tcard .tservebtn:not(.busy) { color: #fff; }
.staff.light .tcard.ready-new .tservebtn:not(.busy) { color: #1b6e2c; }
/* KDS: Nachbestellung am Tisch (Inhaber 16. 11.) */
.ticket .reorder { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #a855f7; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
/* Mini-Kasse: schon bezahlte Positionen (Teilzahlung) abgesetzt, nicht mehr wählbar */
.lines li.paidline { opacity: .5; }
.lines li.paidline .pname { text-decoration: line-through; text-decoration-thickness: 1px; }
.lines li.paidline .paidtag { text-decoration: none; display: inline-block; color: #2f9e44; font-weight: 700; }
.lines .paidmark { width: 22px; flex: none; text-align: center; color: #2f9e44; font-weight: 800; }

/* Gutschein verkaufen (Mini-Kasse) */
.gvamounts label { flex: 1; }
.gvok { font-weight: 700; color: var(--ink); margin: 4px 0 10px; }
.gvcard { border: 1px solid var(--line, #ddd); border-radius: 10px; padding: 14px; text-align: center; margin: 0 0 12px; background: var(--card, #fff); }
.gvcard b { display: block; font-size: 1.6rem; margin: 0 0 8px; }
.gvqr { width: 180px; height: 180px; display: block; margin: 0 auto 8px; border-radius: 4px; }
.gvcode { font: 600 1.15rem/1.3 ui-monospace, Menlo, monospace; letter-spacing: .04em; margin: 0 0 4px; }

/* Detail: Bestellen + Tisch wechseln, Reservierung */
.dtop { display: flex; gap: 8px; margin: 4px 0 14px; }
.dtop .btn { min-height: 48px; }
.dres { margin: -6px 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); font-size: .9rem; }
.dres em { font-style: normal; font-weight: 600; }
/* Reservierung auf der Kachel */
.tcard small.tres { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; max-width: 100%; overflow: hidden; white-space: normal; font-size: .72rem; line-height: 1.25; color: var(--muted); }
.tcard.res-soon { opacity: 1; border-left-color: var(--warn-ink); background: var(--warn-bg); }
.tcard.res-soon small.tres, .tcard.res-soon b, .tcard.res-soon span { color: var(--warn-ink); font-weight: 600; }
/* Scanner */
.scanbox { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; margin: 0 0 10px; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanframe { position: absolute; inset: 18% 22%; border: 3px solid var(--brand); border-radius: 12px; }
/* Guthaben */
.gbresult { margin: 12px 0 0; padding: 14px; border-radius: 10px; border: 1px solid var(--line); text-align: center; }
.gbresult b { display: block; font-size: 1.6rem; color: var(--ink); }
.gbresult span { display: block; font-weight: 600; margin: 2px 0; color: var(--ink); }
#gbForm .row2 { align-items: end; }
#gbCheck { min-height: 48px; align-self: end; }
.gbresult small { color: var(--muted); }
.gbresult.no span { color: var(--err); }
/* Tisch wechseln */
.mvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 0 0 10px; }
.mvtable { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mvtable small { color: var(--muted); font-size: .76rem; }
.mvtable.on { border: 2px solid var(--brand); padding: 9px; }
.mvorder { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.mvorder span:nth-child(2) { flex: 1; }
#mvOrders { margin: 10px 0 12px; }

/* KDS: Ø Zubereitung (Gäste sehen dieselbe Zeit) */
.prepavg { font-weight: 700; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.prepavg.slow { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
#gbPrint, #gbA4 { display: block; margin: 10px auto 0; }

/* Verwaltung in der Mini-Kasse */
.vwtabs { display: flex; gap: 6px; margin: 0 0 12px; }
.vwsearch { width: 100%; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; margin: 0 0 8px; }
.vwcats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.vwlist { list-style: none; margin: 0; padding: 0; }
.vwlist li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.vwname { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vwname b { font-weight: 600; } .vwname small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vwpill { flex: none; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 .82rem/1 var(--body); cursor: pointer; white-space: nowrap; }
.vwpill.good { color: #1f7a3a; border-color: rgba(31, 122, 58, .35); }
.vwpill.bad { background: var(--err); border-color: var(--err); color: #fff; }
.vwpill.off { color: var(--muted); border-style: dashed; }
.vwpill[disabled] { opacity: .5; }
.vwnote { margin: 10px 0 0; font-size: .82rem; }
.vwgvbtns { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.vwh { margin: 6px 0 4px; font-size: 1rem; }
.vwkpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.vwkpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.vwkpi p { margin: 0; color: var(--muted); font-size: .82rem; } .vwkpi b { display: block; font-size: 1.4rem; margin: 2px 0; } .vwkpi small { color: var(--muted); font-size: .78rem; }

/* Zeiterfassung (L’arte Zeit, web/zeit.html) */
.zgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ztile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 76px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ztile b { font-size: 1.05rem; } .ztile small { color: var(--muted); font-size: .8rem; }
.ztile.z-in { border-left: 5px solid #2e9e57; } .ztile.z-pause { border-left: 5px solid var(--brand); }
.zmsg { margin: 0 0 12px; padding: 12px; border-radius: 10px; background: rgba(46, 158, 87, .12); font-weight: 700; }
.zpin { display: flex; gap: 12px; justify-content: center; margin: 14px 0; }
.zpin span { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); box-sizing: border-box; }
.zpin span.on { background: var(--ink); } .zpin span.zopt:not(.on) { opacity: .3; }
.zpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 320px; margin: 0 auto; }
.zpad button { min-height: 58px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 700 1.4rem/1 var(--body); cursor: pointer; }
.zpad button[data-zback] { font-size: .9rem; }
.zacts { display: grid; grid-auto-flow: column; gap: 10px; max-width: 420px; margin: 16px auto 0; }
.zacts .btn { min-height: 54px; font-size: 1.1rem; }
.zwrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.zhint { margin: 4px 0 14px; font-size: 1.1rem; color: var(--muted); }
.zgrid.zbig { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.zgrid.zbig .ztile { min-height: 104px; padding: 16px; } .zgrid.zbig .ztile b { font-size: 1.3rem; } .zgrid.zbig .ztile small { font-size: .9rem; }
.zcard { max-width: 460px; margin: 10px auto; text-align: center; }
.zcard h2 { margin: 0 0 6px; font-size: 1.8rem; }
.zclock { font-size: 1.05rem; font-weight: 700; }
.zmine { display: block; margin: 14px auto 0; }
.zmycard { max-width: 640px; text-align: left; } .zmycard h3 { margin: 14px 0 6px; } .zmycard table { width: 100%; }
.zfoot { margin: 22px 0 0; text-align: center; font-size: .85rem; } .zfoot a { color: var(--muted); }
.zlegal { max-width: 760px; }

/* ---- Gruppen am Tisch (0094): ein Block je Gruppe im Tisch-Detail, mit eigenem „kassieren“ */
.dgroup { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 12px 0; background: var(--surface); }
.dgroup h3 { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 4px; font-size: 1.02rem; }
.dgroup h3 span:first-child { color: #1f5fd6; }
body.staff:not(.light) .dgroup h3 span:first-child { color: #8fb4ff; }
.dgroup .dsub { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.dgroup .dsub:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.dgroup > .btn { margin-top: 8px; }

/* ---- Tisch wechseln „Nur Auswahl“ (0095): Artikel je Gruppe mit Stückzahl, wie „Aktuelle Umbuchung“ in der Kasse */
.mvhint { margin: 8px 0 0; font-size: .86rem; }
.mvg { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin: 10px 0; background: var(--surface); }
.mvg h4 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 4px; font-size: .98rem; }
.mvg h4 > span { color: #1f5fd6; }
body.staff:not(.light) .mvg h4 > span { color: #8fb4ff; }
.mvg h4 label { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.mvg h4 input { width: 20px; height: 20px; accent-color: var(--brand); }
.mvi { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.mvi .n { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.mvi .n small { display: block; color: var(--muted); font-weight: 400; }
.stp { display: flex; align-items: center; flex: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stp button { width: 42px; height: 40px; border: 0; background: var(--surface); color: var(--ink); font: 700 1.2rem var(--body); cursor: pointer; touch-action: manipulation; }
.stp b { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }
.stp.on { border-color: #1f5fd6; } .stp.on b { color: #1f5fd6; }
body.staff:not(.light) .stp.on b { color: #8fb4ff; }
/* Gruppe am neuen Tisch beim Umbuchen */
.mvgroup { margin: 12px 0 4px; }
.mvgbtns { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.mvgbtns .pcbtn { height: auto; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .92rem; }
.mvgbtns .pcbtn small { font-weight: 600; font-size: .72rem; opacity: .8; }

/* „Positionen zubuchen“ beim Kassieren */
.zubuchen { margin: 8px 0 4px; }
/* Auswahl zum Kassieren: ganze Zeile antippbar */
.lines li:has(input[data-item]) { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ---- Kassieren „Auswahl“ nach Stück (0096, wie in der Kasse): gleiche Artikel in einer Zeile, antippen = +1, „−“ = −1 */
.phint { margin: 6px 0; font-size: .86rem; }
.pgh { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 4px; }
.pgh span { color: #1f5fd6; font-weight: 800; }
body.staff:not(.light) .pgh span { color: #8fb4ff; }
.prow { display: flex; align-items: center; gap: 10px; padding: 10px; margin: 6px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.prow.on { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.prow .n { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.prow .n small { display: block; opacity: .75; font-size: .82rem; }
.prow .cnt { min-width: 52px; text-align: center; font: 800 1.05rem var(--body); font-variant-numeric: tabular-nums; }
.prow .psum { min-width: 66px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pminus { flex: none; width: 46px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: #c62828; font: 800 1.4rem var(--body); cursor: pointer; touch-action: manipulation; }
.pminus:disabled { opacity: .35; cursor: default; }
.prow.on .pminus { background: #fff; border-color: #fff; }
/* Schnellwahl Getränke / Speisen beim Kassieren (wie Glas/Besteck in der Kasse) */
.pquick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 2px; }
.pqbtn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  font: 700 1rem var(--body); cursor: pointer; touch-action: manipulation; }
.pqbtn.on { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.pqbtn:disabled { opacity: .4; cursor: default; }

/* ---- Rechnungen: Filter (Tag, Zahlart, Art) und geöffnete Rechnung (16. 11.) */
.ilbl { margin: 8px 0 4px; font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ichips { display: flex; flex-wrap: wrap; gap: 6px; }
.ichip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font: 700 .92rem var(--body); cursor: pointer; touch-action: manipulation; }
.ichip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.ichip.idate input { border: 0; background: transparent; font: inherit; color: inherit; min-height: 0; padding: 0; }
.invsum { display: flex; justify-content: space-between; margin: 12px 0 6px; font-weight: 700; }
.invno { margin: 12px 0 2px; font-size: 1.25rem; }
.invlines { margin: 8px 0; }
.invkv { margin: 6px 0 12px; } .invkv div { display: flex; justify-content: space-between; padding: 3px 0; }
.invkv div:first-child { border-top: 2px solid var(--line); padding-top: 8px; font-weight: 800; }
.invkv dd { margin: 0; font-variant-numeric: tabular-nums; }
/* Telefon-Bestellung: „Fertig in 15–60 Min“ → Uhrzeit (17. 11.) */
.tquick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; }
.tqbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 54px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: 800 1.05rem var(--body); cursor: pointer; touch-action: manipulation; }
.tqbtn small { font-weight: 600; font-size: .72rem; color: var(--muted); }
.tqbtn.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .tqbtn.on small { color: inherit; }
.tqinfo { grid-column: 1 / -1; margin: 2px 0 0; font-size: .9rem; }

/* KDS-Bon-Kopf (Inhaber 17. 11.): Nummer kleiner, Tisch/Art größer, „Zurück“ oben neben der Zeit */
body.kds .tno { font-size: 1.05rem; }
body.kds .ticket .badge { font-size: 1.15rem; letter-spacing: .04em; font-weight: 800; }
body.kds .ticket header .btn.back { float: none; margin: 0 0 0 auto; min-height: 30px; padding: 0 10px; font-size: .82rem; align-self: center; }
body.kds .ticket header .btn.back + .age { margin-left: 8px; }
@media (min-width: 1900px) { body.kds .tno { font-size: 1.2rem; } body.kds .ticket .badge { font-size: 1.3rem; } }
body.kds .ticket header .badge, body.kds .ticket header .age, body.kds .ticket header .btn.back { white-space: nowrap; }
