/* ==========================================================================
   Version 102 – Konzertmeister-Design für die ganze App
   Gleiche Sprache überall: große Karten (20 px) mit feiner Kontur, Farbkacheln mit Verlauf,
   Status als Pille (Text + Farbe), Abschnittstitel in Kapitälchen, goldene Hauptaktion.
   Wird als LETZTES Stylesheet geladen und überschreibt ios.css / einkauf.css.
   ========================================================================== */

:root {
  --kc-line: color-mix(in srgb, var(--text) 9%, transparent);
  --kc-r: 20px;
  --kc-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  --kc-red: #d12a36; --kc-green: #1f8f4a; --kc-amber: #d98a00; --kc-blue: #2f7fd1; --kc-gold: #f5b419;
}

/* ---------- Karten: ein Look für alles ---------- */
.card, .table-card, .item-btn, .order-cart, .history-summary, .kpi, .order-stat, .auth-form, .draft-card,
.sms-card, .event-folder, .history-servers, .wait-card, .tables-summary, .exp-card, .exp-sum, .ov-card, .ov-kpi,
.rights-role, .ek-card, .ek-kpi, .ek-box {
  border: 1px solid var(--kc-line);
  border-radius: var(--kc-r);
  box-shadow: var(--kc-shadow);
}
.item-btn { border-radius: 16px; box-shadow: none; }
.order-stat { border-radius: 16px; box-shadow: none; }
.history-summary { border-radius: var(--kc-r); }

/* ---------- Abschnittstitel (wie „MÄRZ 2026" im Konzertmeister) ---------- */
.group-label { margin: 18px 4px 10px; align-items: center; }
.group-label span {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
}
.group-label small { font-size: 12.5px; }
.bar-section {
  border-radius: 24px; padding: 6px 12px 14px; margin: 6px 0 22px;
  background: color-mix(in srgb, var(--kc-gold) 13%, var(--bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kc-gold) 38%, transparent);
}
.bar-section .group-label span { font-size: 13px; color: color-mix(in srgb, var(--text) 70%, var(--kc-amber)); }

/* ---------- Hinweise = Banner ---------- */
.hint {
  border: none; border-radius: 14px; padding: 11px 14px; font-size: 14px; font-weight: 600; line-height: 1.45;
  background: color-mix(in srgb, var(--kc-blue) 12%, var(--surface));
  box-shadow: none;
}
.hint svg { color: var(--kc-blue); }

/* ---------- Tischkarten ---------- */
.tables-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
#tablesGrid .table-card, .table-card {
  min-height: 112px; padding: 14px; border-radius: var(--kc-r);
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  background: var(--surface);
}
.table-card.unprinted { box-shadow: var(--kc-shadow), inset 0 0 0 1.5px var(--kc-blue); border-color: var(--kc-blue); }
.table-card.bar { border: 1px solid color-mix(in srgb, var(--kc-gold) 55%, transparent); background: color-mix(in srgb, var(--kc-gold) 9%, var(--surface)); }
.table-card.bar.open { background: color-mix(in srgb, var(--kc-gold) 14%, var(--surface)); }
.tc-head { display: flex; align-items: center; gap: 11px; min-width: 0; padding-right: 20px; }
.tc-head .table-card-top { gap: 2px; min-width: 0; }
.table-card .name { font-size: 16px; font-weight: 700; letter-spacing: -.015em; padding-right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-tile {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums;
  background: linear-gradient(150deg, #8a94a6, #5f6879);
  box-shadow: 0 4px 10px rgba(60, 70, 90, .22);
}
.tc-tile svg { width: 24px; height: 24px; }
.table-card[data-st="new"]  .tc-tile { background: linear-gradient(150deg, #5aa5f0, #2f7fd1); box-shadow: 0 4px 10px rgba(47, 127, 209, .32); }
.table-card[data-st="open"] .tc-tile { background: linear-gradient(150deg, #ff6b73, #d12a36); box-shadow: 0 4px 10px rgba(209, 42, 54, .34); }
.table-card[data-st="paid"] .tc-tile { background: linear-gradient(150deg, #46c27a, #1f8f4a); box-shadow: 0 4px 10px rgba(31, 143, 74, .32); }
.table-card[data-st="bar"]  .tc-tile { background: linear-gradient(150deg, #ffcb47, #f0a30a); color: #3b2a00; box-shadow: 0 4px 10px rgba(240, 163, 10, .34); }
.table-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.table-card .amount { font-size: 16px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tc-pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-muted);
}
.tc-pill.new  { background: color-mix(in srgb, var(--kc-blue) 15%, transparent);  color: var(--kc-blue); }
.tc-pill.open { background: color-mix(in srgb, var(--kc-red) 14%, transparent);   color: var(--kc-red); }
.tc-pill.paid { background: color-mix(in srgb, var(--kc-green) 15%, transparent); color: var(--kc-green); }
.table-card .bar-tag { margin-top: 0; font-size: 12px; }
.table-card-top { gap: 2px; }
.table-edit-btn { top: 8px; right: 6px; }

/* ---------- „Tische noch nicht abgerechnet" = roter Verlaufs-Hero ---------- */
.tables-summary {
  position: relative; overflow: hidden; color: #fff; border: none; padding: 16px; margin: 4px 0 16px; border-radius: 22px;
  background: linear-gradient(150deg, #ff6b73 0%, #d12a36 50%, #a31c28 100%);
  box-shadow: 0 10px 26px rgba(209, 42, 54, .32), 0 2px 4px rgba(0, 0, 0, .12);
}
.tables-summary::after { content: ""; position: absolute; right: -46px; top: -56px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 68%); pointer-events: none; }
.tables-summary > * { position: relative; z-index: 1; }
.tables-summary .ts-num { background: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; border-radius: 15px; }
.tables-summary .ts-label { color: #fff; font-size: 17px; }
.tables-summary .ts-label small { color: rgba(255, 255, 255, .88); }
.tables-summary .ts-name, .tables-summary .ts-name.partial {
  background: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; border-radius: 14px;
}
.tables-summary .ts-name small { color: #fff; }
.tables-summary .ts-chip { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- Personal / Benutzer ---------- */
.user-row {
  flex-direction: column; gap: 10px; padding: 14px; margin: 0 0 10px; border: 1px solid var(--kc-line); border-radius: var(--kc-r);
  background: var(--surface); box-shadow: var(--kc-shadow);
}
.user-row:first-child { border-top: 1px solid var(--kc-line); }
.user-row .u-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user-row .u-text { min-width: 0; flex: 1; }
.u-av {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #fff;
  background: linear-gradient(150deg, #8f7ae0, #6a49c8); box-shadow: 0 4px 10px rgba(106, 73, 200, .3);
}
.user-row .u-name { font-size: 15.5px; }
.role-tag { border-radius: 999px; }
.mfa-badge { border-radius: 999px; }

/* ---------- Karten-Überschriften ---------- */
.card-header h2, .card-header h3, .card > h2, .card > h3, .card-title {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
}

/* ---------- Kennzahlen ---------- */
.history-summary .hs-value, .kpi .kpi-value, .ov-kpi .ov-val { font-variant-numeric: tabular-nums; }

/* ---------- Kategorie-Reiter & Artikel (Bestellen) ---------- */
.category-tabs { border-radius: 14px; padding: 3px; gap: 2px; }
.category-tab { border: none; background: transparent; border-radius: 11px; font-weight: 600; box-shadow: none; color: var(--text-muted); }
.category-tab.active { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 3px 8px rgba(0,0,0,.07); }
.item-btn { background: var(--surface); }
.item-btn:active { background: color-mix(in srgb, var(--kc-gold) 14%, var(--surface)); border-color: var(--kc-gold); }
.item-btn .iprice { color: var(--text-muted); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn.primary:not(:disabled), .btn.big.primary:not(:disabled) {
  background: linear-gradient(180deg, #ffc533, #f5a90f); color: #2a1d00;
  box-shadow: 0 6px 16px rgba(245, 169, 15, .32), 0 1px 2px rgba(0, 0, 0, .1);
}
.btn.primary.sent, .btn.primary.sent:disabled { background: var(--success-strong, #1f8f4a); color: #fff; box-shadow: none; }
.btn.primary.sending, .btn.primary.sending:disabled, .btn.primary.failed { box-shadow: none; }
.btn.big { border-radius: 16px; }
.btn.small { border-radius: 12px; }

/* ---------- Eingabefelder ---------- */
.field-input, .printer-select, select.field-input { border-radius: 14px; }

/* ---------- Kopfleiste: Chips als feine Pillen ---------- */
.topbar { border-bottom: 1px solid var(--kc-line); }

/* ---------- Schwebende Knöpfe (Menü, Tisch-Auswahl) ---------- */
.menu-fab, .tables-fab {
  border: 1px solid var(--kc-line); box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}

/* ---------- Bottom-Sheets ---------- */
.modal-sheet { border-radius: 26px 26px 0 0; }
.modal-sheet h2 { font-weight: 700; letter-spacing: -.02em; }

/* ---------- Leere Zustände ---------- */
.empty-state { border: 1px dashed var(--kc-line); border-radius: var(--kc-r); padding: 28px 16px; }

/* ---------- Einkauf: gleiche Sprache ---------- */
.ek-card, .ek-kpi { background: var(--surface); }

/* ---------- Tisch auswählen / Status-Banner ---------- */
.jump-all, .btn.secondary.jump-all {
  background: var(--surface); color: var(--text); border: 1px solid var(--kc-line); border-radius: var(--kc-r);
  box-shadow: var(--kc-shadow); min-height: 54px; font-weight: 700; justify-content: flex-start; padding: 0 16px; gap: 12px;
}
.jump-all svg { width: 22px; height: 22px; padding: 7px; box-sizing: content-box; border-radius: 12px; color: #fff; background: linear-gradient(150deg, #5aa5f0, #2f7fd1); box-shadow: 0 4px 10px rgba(47, 127, 209, .3); }
.unsent-card { border-radius: 14px; }
.unsent-card.ok { border: none; box-shadow: none; background: color-mix(in srgb, var(--kc-green) 13%, var(--surface)); }
.unsent-card.ok svg { color: var(--kc-green); }
.unsent-card.bad { border: none; background: color-mix(in srgb, var(--kc-red) 12%, var(--surface)); box-shadow: none; }

/* ---------- Aktionsknöpfe in Listen: kleine Chips ---------- */
.u-actions .btn, .user-row .u-actions .btn {
  min-height: 34px; padding: 6px 13px; font-size: 13.5px; font-weight: 600; border-radius: 999px;
  background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); border: none;
}
.u-actions .btn.danger-outline { background: color-mix(in srgb, var(--kc-red) 13%, transparent); color: var(--kc-red); }
.btn.secondary { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }

/* ---------- Kasse / Übersicht ---------- */
.ov-kpi { border-radius: 18px; box-shadow: var(--kc-shadow); border: 1px solid var(--kc-line); }
.ov-kpi.big {
  position: relative; overflow: hidden; border: none; border-radius: 22px; padding: 16px;
  background: linear-gradient(150deg, #ffd25c 0%, #f5b419 48%, #dd9406 100%);
  box-shadow: 0 10px 26px rgba(245, 169, 15, .34), 0 2px 4px rgba(0, 0, 0, .1);
}
.ov-kpi.big::after { content: ""; position: absolute; right: -46px; top: -56px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 68%); pointer-events: none; }
.ov-kpi.big > * { position: relative; z-index: 1; }
.ov-kpi.big span { color: #4a3300; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ov-kpi.big b { color: #2a1d00; }
.ov-card { border-radius: var(--kc-r); box-shadow: var(--kc-shadow); }
.ov-title { letter-spacing: .06em; }
.ov-bar { background: linear-gradient(180deg, #ffc533, #f0a30a); }
.ov-meter i { background: linear-gradient(90deg, #ffc533, #f0a30a); }
.ov-warn { border-radius: 14px; }

/* ---------- Kennzahl-Kacheln (Verlauf, Einkauf) ---------- */
.kpi { border-radius: var(--kc-r); }

/* ---------- Startseite & Einkauf ---------- */
.hub-tile { border: 1px solid var(--kc-line); border-radius: var(--kc-r); box-shadow: var(--kc-shadow); }
.hub-tile.main { border-radius: var(--kc-r); }
.hub-tile:active { background: color-mix(in srgb, var(--text) 4%, var(--surface)); }
.kpi, .chart-card, .cards-grid > .card { border: 1px solid var(--kc-line); border-radius: var(--kc-r); box-shadow: var(--kc-shadow); }
.kpi .k-label, .kpi .kpi-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.ek-table th { letter-spacing: .06em; }

/* ==========================================================================
   Startmenü im Konzertmeister-Design
   ========================================================================== */
.hub-head { padding: 4px 2px 14px; }
.hub-title h1 { font-size: 22px; letter-spacing: -.02em; }
.hub-account {
  border: 1px solid var(--kc-line); box-shadow: var(--kc-shadow);
  background: linear-gradient(150deg, #ffd25c, #f5b419); color: #2a1d00; font-weight: 800;
}
.hub-label { margin: 22px 4px 10px; letter-spacing: .06em; font-size: 13px; }

/* Nächster Termin */
.hub-hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 16px 16px 14px; margin: 2px 0 4px; cursor: pointer; color: #fff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--tc) 78%, #fff) 0%, var(--tc) 46%, color-mix(in srgb, var(--tc) 72%, #000) 100%);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--tc) 38%, transparent), 0 2px 4px rgba(0, 0, 0, .12);
}
.hub-hero::after { content: ""; position: absolute; right: -46px; top: -56px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 68%); pointer-events: none; }
.hub-hero > * { position: relative; z-index: 1; }
.hh-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hh-kicker { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
.hh-pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .22); color: #fff; white-space: nowrap; }
.hh-pill.open { background: #fff; color: #1c1c1e; }
.hub-hero h2 { margin: 0 0 6px; font-size: 25px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; font-family: inherit; color: #fff; }
.hh-when { display: flex; flex-direction: column; gap: 1px; font-size: 15px; }
.hh-when b { font-weight: 650; }
.hh-when span, .hh-loc { opacity: .93; }
.hh-loc { margin-top: 6px; font-size: 14px; }
.hh-resp { margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .92); }
.hh-resp b { color: #fff; }
.hh-answer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.hh-ans {
  min-height: 42px; border: none; border-radius: 13px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  background: rgba(255, 255, 255, .2); color: #fff; -webkit-tap-highlight-color: transparent;
}
.hh-ans:active { transform: scale(.97); }
.hh-ans.on { background: #fff; }
.hh-ans.on.yes { color: #1f8f4a; } .hh-ans.on.maybe { color: #c47a00; } .hh-ans.on.no { color: #d12a36; }

/* Bereiche: 2 Spalten, große Farbkachel oben */
.hub-tiles { gap: 9px; }
.hub-tile, .hub-tile.main {
  grid-column: auto; flex-direction: column; align-items: flex-start; gap: 9px; min-height: 96px; padding: 11px 12px;
  border: 1px solid var(--kc-line); border-radius: var(--kc-r); box-shadow: var(--kc-shadow); background: var(--surface);
}
.hub-tile.main .hub-ico.nic, .hub-ico.nic { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.hub-tile.main .hub-ico.nic svg, .hub-ico.nic svg { width: 22px; height: 22px; }
.hub-txt { gap: 2px; }
.hub-txt b, .hub-tile.main b { font-size: 15px; letter-spacing: -.015em; }
.hub-txt small { font-size: 11.5px; line-height: 1.25; }
.hub-badge { top: 10px; right: 10px; background: var(--kc-red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; }
.hub-tiles .hub-tile:only-child { grid-column: 1 / -1; }
.hub-tiles .hub-tile:nth-child(odd):last-child { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; }

.hh-skel { min-height: 196px; background: color-mix(in srgb, var(--text) 8%, var(--bg)); box-shadow: none; cursor: default; }
.hh-skel::after { display: none; }
/* Schwebende Knöpfe dürfen die letzte Zeile nie verdecken */
main#content:has(.tables-grid) { padding-bottom: calc(var(--safe-bottom, 0px) + 160px); }

/* Startmenü: „Als Nächstes“ kompakt (etwa halbe Höhe) + Karte „Besonderer Anlass“ */
.hub-hero { padding: 10px 14px 10px; border-radius: 18px; margin: 0 0 8px; }
.hub-hero::after { width: 120px; height: 120px; right: -40px; top: -52px; }
.hh-top { margin-bottom: 3px; }
.hh-kicker { font-size: 11px; }
.hh-pill { font-size: 11px; padding: 2px 8px; }
.hub-hero h2 { font-size: 18px; margin: 0 0 2px; line-height: 1.2; }
.hh-star { color: #ffe08a; font-size: 15px; }
.hh-when { flex-direction: row; flex-wrap: wrap; gap: 0 6px; font-size: 13px; align-items: baseline; }
.hh-answer { gap: 6px; margin-top: 8px; }
.hh-ans { min-height: 32px; border-radius: 10px; font-size: 13px; }
.hh-skel { min-height: 98px; }
.hub-special {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 0 0 8px; cursor: pointer;
  border-radius: 16px; border: 1px solid color-mix(in srgb, #f5b83d 55%, var(--kc-line, transparent));
  background: color-mix(in srgb, #ffcf5c 20%, var(--surface)); color: var(--text); -webkit-tap-highlight-color: transparent;
}
.hub-special:active { transform: scale(.985); }
.hub-special:focus-visible { outline: 2px solid #f5b83d; outline-offset: 2px; }
.hs-star { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: #fff; background: linear-gradient(150deg, #ffbe3d, #e8890a); }
.hs-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0; }
.hs-kicker { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-txt b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-txt small { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-due { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, #f5b83d 35%, transparent); }

/* Mengen-Rad */
.item-btn { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.qty-num-btn { border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; border-radius: 8px; min-width: 40px; min-height: 40px; text-decoration: underline dotted var(--text-muted); text-underline-offset: 4px; }
.qty-num-btn:active { background: var(--surface-2); }
.qty-wheel-sheet { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); }
.qw-wrap { position: relative; height: 220px; margin: 6px 0 12px; }
.qw-band { position: absolute; left: 4px; right: 4px; top: 88px; height: 44px; border-radius: 12px; background: var(--surface-2); pointer-events: none; }
.qw-list { position: relative; height: 220px; overflow-y: auto; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; outline: none;
  -webkit-mask-image: linear-gradient(transparent 0, #000 30%, #000 70%, transparent 100%); mask-image: linear-gradient(transparent 0, #000 30%, #000 70%, transparent 100%); }
.qw-list::-webkit-scrollbar { display: none; }
.qw-list:focus-visible { outline: 2px solid var(--accent); border-radius: 12px; }
.qw-pad { height: 88px; }
.qw-row { height: 44px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--text-muted); cursor: pointer; transition: color .1s, font-size .1s; }
.qw-row[data-d="1"] { font-size: 21px; }
.qw-row.on { color: var(--text); font-size: 26px; font-weight: 800; }
.qty-wheel-sheet .btn.danger { background: #d12a36; color: #fff; }

/* Fußzeile: Copyright + Version als kleines Abzeichen */
.app-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 26px; padding: 4px 0 6px; font-size: 12px; font-weight: 500; color: var(--text-muted); letter-spacing: .01em; }
.app-foot .af-copy { opacity: .9; }
.app-foot .af-ver { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 9px; border-radius: 999px; font-weight: 700; font-size: 12px; color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, var(--surface)), color-mix(in srgb, var(--accent) 12%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 22%, transparent); }
.app-foot .af-ver svg { color: color-mix(in srgb, var(--accent) 70%, #000); }
.app-foot .af-label { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; opacity: .75; }
.app-foot .af-ver b { font-size: 14px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ek-version.app-foot { margin: 22px 0 28px; }
.modal-sheet .app-foot { margin-top: 14px; }

/* Startmenü: Kacheln ganz leicht in der Farbe ihres Symbols getönt */
.hub-tile, .hub-tile.main { --hc: #8a8f99; background: linear-gradient(160deg, color-mix(in srgb, var(--hc) 9%, var(--surface)), color-mix(in srgb, var(--hc) 3%, var(--surface))); border-color: color-mix(in srgb, var(--hc) 20%, var(--kc-line, var(--border))); }
.hub-tile:active, .hub-tile.main:active { background: color-mix(in srgb, var(--hc) 14%, var(--surface)); }
.hub-tile.main[data-view="tables"] { --hc: #f5a213; }
.hub-tile.main[data-view="helfer"] { --hc: #1fa9b8; }
.hub-tile.main[data-view="bring"] { --hc: #e0507c; }
.hub-tile.main[data-view="strich"] { --hc: #e19a1c; }
.hub-tile.main[data-view="einkauf"] { --hc: #e5484d; }
.hub-tile.main[data-view="personal"] { --hc: #3b9bf0; }
.hub-tile.main[data-view="cloud"] { --hc: #2f7fe0; }
.hub-tile.main[data-view="history"] { --hc: #7a8cff; }
.hub-tile.main[data-view="kasse"] { --hc: #6a64e8; }

/* ===== V126: Suche im Startmenü ===== */
.hub-search { position: relative; display: flex; align-items: center; margin: 0 0 12px; }
.hub-search .hs-glass { position: absolute; left: 13px; width: 19px; height: 19px; color: var(--text-muted); pointer-events: none; }
.hub-search input {
  width: 100%; min-height: 46px; padding: 0 44px 0 40px; font: inherit; font-size: 16px; color: var(--text); -webkit-appearance: none; appearance: none;
  border: 1px solid var(--kc-line, var(--border)); border-radius: 15px; background: var(--surface); box-shadow: var(--kc-shadow, none);
}
.hub-search input::placeholder { color: var(--text-muted); opacity: .85; }
.hub-search input::-webkit-search-cancel-button, .hub-search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.hub-search input:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 32%, transparent); }
.hub-search .hs-clear {
  position: absolute; right: 5px; width: 36px; height: 36px; border: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text-muted); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.hub-search .hs-clear svg { width: 17px; height: 17px; }
.hub-search .hs-clear:active { background: var(--surface-2); }
.hub-search .hs-clear.hidden, .hub-results.hidden { display: none; }
/* Während der Suche treten Karten und Kacheln zurück: die Treffer stehen direkt unter dem Feld */
.hub-inner.searching .hub-inner.searching .hub-label, .hub-inner.searching .hub-tiles, .hub-inner.searching .hub-tip { display: none; }
.hub-results { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; }
.hs-group { margin: 8px 4px 2px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.hs-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 10px; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  border: 1px solid var(--kc-line, var(--border)); border-radius: 15px; background: var(--surface); box-shadow: var(--kc-shadow, none); -webkit-tap-highlight-color: transparent;
}
.hs-item.on { border-color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.hs-item:active { transform: scale(.99); }
.hs-ico.nic { width: 36px; height: 36px; border-radius: 11px; }
.hs-ico.nic svg { width: 21px; height: 21px; }
.hs-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.hs-txt b { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hs-txt small { font-size: 12.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.hs-go { width: 18px; height: 18px; flex: none; color: var(--text-muted); }
.hs-empty { display: flex; flex-direction: column; gap: 4px; padding: 18px 8px; text-align: center; color: var(--text-muted); font-size: 14px; line-height: 1.4; }
.hs-empty b { color: var(--text); font-size: 15.5px; overflow-wrap: anywhere; }
.hs-empty i { font-style: normal; font-weight: 700; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .hs-item:active { transform: none; } }

/* ===== V127: Kassensturz – Münzen & Scheine zählen ===== */
.cash-den-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 10px; min-height: 44px; padding: 0 14px; font: inherit; font-size: 14.5px; font-weight: 700;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.cash-den-toggle small { font-size: 13px; font-weight: 700; color: var(--accent-strong); }
.cash-den-toggle::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); margin: -3px 2px 0 6px; flex: none; transition: transform .15s; }
.cash-den-toggle[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 3px; }
.cash-den-toggle span { flex: 1; text-align: left; }
.cash-den { margin-top: 10px; }
.cash-den.hidden { display: none; }
.den-cols { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .den-cols { grid-template-columns: 1fr 1fr; gap: 22px; } }
.den-title { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 2px 2px 6px; }
.den-row { display: grid; grid-template-columns: 52px 14px minmax(0, 1fr) 84px; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 15px; }
.den-row .den-v { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.den-row .den-x { color: var(--text-muted); text-align: center; }
.den-row input { min-height: 38px; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.den-row .den-sum { text-align: right; color: var(--text-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.den-row input:not(:placeholder-shown) + .den-sum { color: var(--text); font-weight: 700; }
.den-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.den-total { font-size: 14.5px; font-weight: 700; }
.den-clear { margin: 0; width: auto; min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.cash-card.den-used [data-f=counted] { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); font-weight: 700; }

/* ===== V129: Kasse – Festvergleich ===== */
.vg-pick, .vg-card, .vg-posten { margin-bottom: 12px; }
.vg-pick-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.vg-count { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.vg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.vg-chip { border: 1px solid var(--border); background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vg-chip small { color: var(--text-muted); font-weight: 600; }
.vg-events { display: grid; grid-template-columns: 1fr; gap: 6px; max-height: 260px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 560px) { .vg-events { grid-template-columns: 1fr 1fr; } }
.vg-ev { display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
.vg-ev.on { border-color: var(--accent-strong); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.vg-ev input { width: 20px; height: 20px; flex: none; }
.vg-ev span { display: flex; flex-direction: column; min-width: 0; }
.vg-ev b { font-size: 14.5px; overflow-wrap: anywhere; }
.vg-ev small { font-size: 12px; color: var(--text-muted); }
.vg-empty { color: var(--text-muted); font-size: 14px; margin: 4px 0 8px; }
.vg-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: -4px -4px 0; padding: 0 4px; }
.vg-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.vg-table th, .vg-table td { padding: 7px 8px; text-align: right; vertical-align: top; white-space: nowrap; border-bottom: 1px solid var(--border); }
.vg-table thead th { white-space: normal; min-width: 104px; vertical-align: bottom; background: var(--surface); position: sticky; top: 0; z-index: 2; }
.vg-table thead th b { display: block; font-size: 13.5px; overflow-wrap: anywhere; }
.vg-table thead th small { display: block; color: var(--text-muted); font-weight: 600; font-size: 12px; }
.vg-table .vg-label { text-align: left; position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 128px; max-width: 150px; white-space: normal; font-weight: 600; box-shadow: 1px 0 0 var(--border); }
.vg-table thead .vg-label { z-index: 3; }
.vg-table tr.sub .vg-label { padding-left: 20px; font-weight: 500; color: var(--text-muted); }
.vg-table tr.total th, .vg-table tr.total td { font-weight: 800; border-bottom: 2px solid var(--border); }
.vg-table tr.vg-sec th { text-align: left; position: static; box-shadow: none; padding: 14px 8px 4px; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); border-bottom: none; background: transparent; min-width: 0; max-width: none; }
.vg-table td.none { color: var(--text-muted); }
.vg-d { display: block; font-size: 11.5px; font-weight: 700; margin-top: 1px; color: var(--text-muted); }
.vg-d.good { color: var(--success, #23813c); }
.vg-d.bad { color: var(--danger, #b21a24); }
.vg-edit input { min-height: 36px; width: 100%; min-width: 92px; text-align: right; font-size: 14px; padding: 4px 8px; }
.vg-notes td { white-space: normal; min-width: 104px; }
.vg-notes textarea { width: 100%; min-width: 96px; font-size: 13px; resize: vertical; }
.vg-note-ro { color: var(--text-muted); font-size: 13px; text-align: left !important; }
.vg-warn { margin: 10px 2px 0; font-size: 13px; color: var(--danger, #b21a24); }
.vg-actions { display: flex; gap: 10px; margin-top: 12px; }
.vg-actions .btn { flex: 1; margin: 0; }
.vg-help { font-size: 13.5px; color: var(--text-muted); margin: 0 0 10px; line-height: 1.4; }
.vg-prow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.vg-pname { display: flex; flex-direction: column; min-width: 0; }
.vg-pname b { overflow-wrap: anywhere; }
.vg-pname small { color: var(--text-muted); font-size: 12.5px; }
.vg-add { width: 100%; margin-top: 10px; }
.vg-f { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 12.5px; color: var(--text-muted); }
.vg-f small { font-size: 12px; }
.vg-sheet .modal-actions { flex-wrap: wrap; }

/* Hinweis im Startmenü (V130) */
.hub-tip { display: flex; align-items: center; gap: 10px; margin: 16px 4px 4px; font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.hub-tip img { flex: none; width: 18px; height: 20px; object-fit: contain; }

/* gewähltes Fest (V130): Chip im Einkauf, Leiste im Helferplan */
.fest-chip { display: inline-block; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--text); }
.fest-chip.hidden { display: none; }
.hf-festbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }

/* Offline-Hinweis (V135): Leiste unten auf Helferplan/Bring a Bottle/Einkauf; Strichliste hat eigene (.st-netbar) */
.fa-offline-bar, .st-netbar { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 5000; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.35; font-weight: 600; text-align: center; color: #3b2a00; background: #ffe08a; box-shadow: 0 6px 22px rgba(0, 0, 0, .22); }
.st-netbar:not(.off) { background: var(--surface, #fff); color: var(--text, #111); border: 1px solid var(--border, #ddd); }

/* Durchsage (V136): große Meldung beim Empfänger + Absende-Blatt */
.da-bar { margin: 0 0 10px; }
.da-bar.hidden { display: none; }
.da-open-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; font-weight: 700; }
.da-open-btn svg { width: 22px; height: 22px; flex: none; }

.da-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: #b00014; color: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; animation: da-flash 1.1s ease-in-out infinite alternate; }
.da-overlay.hidden { display: none; }
.da-card { width: 100%; max-width: 560px; margin: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.da-ring { width: 96px; height: 96px; border-radius: 50%; background: #fff; color: #b00014; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: da-pulse 1.4s ease-out infinite; }
.da-ring svg { width: 56px; height: 56px; }
.da-kicker { font-size: 17px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; opacity: .95; margin-top: 6px; }
.da-from { font-size: 16px; font-weight: 600; opacity: .92; }
.da-text { font-size: clamp(30px, 8.4vw, 52px); line-height: 1.12; font-weight: 900; overflow-wrap: anywhere; word-break: break-word; margin: 10px 0 14px; text-wrap: balance; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.da-more { font-size: 15px; font-weight: 700; background: rgba(0, 0, 0, .25); padding: 6px 14px; border-radius: 999px; }
.da-ok { width: 100%; min-height: 72px; margin-top: 12px; border: 0; border-radius: 20px; background: #fff; color: #b00014; font-size: 26px; font-weight: 900; letter-spacing: .02em; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); cursor: pointer; }
.da-ok:active { transform: scale(.98); }
.da-ok:focus-visible { outline: 4px solid #ffe08a; outline-offset: 3px; }
body.da-open { overflow: hidden; }
@keyframes da-flash { from { background: #b00014; } to { background: #e0121f; } }
@keyframes da-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); } 100% { box-shadow: 0 0 0 38px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .da-overlay, .da-ring { animation: none; } }

.da-sheet .da-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.da-chip { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 12px; font-size: 14px; font-weight: 600; min-height: 38px; }
.da-chip:active { background: var(--accent-soft); }
.da-label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin: 10px 0 6px; }
.da-count { text-align: right; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.da-mode { display: flex; gap: 8px; }
.da-modebtn { flex: 1; min-height: 46px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 700; }
.da-modebtn.on { border-color: var(--accent); background: var(--accent-soft); }
.da-people { margin-top: 10px; max-height: 34vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 14px; padding: 4px 10px; }
.da-people.hidden { display: none; }
.da-people-tools { display: flex; gap: 8px; padding: 8px 0; }
.da-person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); min-height: 48px; }
.da-person input { width: 22px; height: 22px; flex: none; }
.da-person span { display: flex; flex-direction: column; min-width: 0; }
.da-person small { color: var(--text-muted); font-size: 12.5px; }
.da-send:disabled { opacity: .5; }
.da-h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 18px 0 6px; }
.da-recent { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.da-recent .da-rt { font-weight: 600; overflow-wrap: anywhere; }
.da-recent small { color: var(--text-muted); font-size: 12.5px; }
.da-sent-text { font-size: 20px; font-weight: 800; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); overflow-wrap: anywhere; margin: 6px 0 10px; }
.da-progress { font-size: 17px; margin: 6px 0 8px; }
.da-progress.done { color: var(--success, #23813c); }
.da-status { list-style: none; margin: 0 0 8px; padding: 0; }
.da-status li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.da-status li.ok b { color: var(--success, #23813c); }
.da-status li.wait b { color: var(--text-muted); font-weight: 600; }
