/* ==========================================================================
   Version 146 – ruhigeres, einfacheres und moderneres Design für die ganze App
   Grundsätze: ein Hintergrund, weiße Flächen mit feiner Kontur statt Schatten, keine Verläufe,
   eine Akzentfarbe (Vereinsgelb) für die Hauptaktion, klare Schrift, weniger Rundungen und Zierrat.
   Wird als LETZTES Stylesheet geladen (nach style.css, ios.css, modern.css und den Seiten-Stylesheets).
   ========================================================================== */

/* ---------- Farben & Maße ---------- */
:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #efefeb;
  --border: #e3e3dd;
  --sep: rgba(22, 22, 20, 0.09);
  --card-edge: rgba(22, 22, 20, 0.07);
  --text: #171715;
  --text-muted: #6b6b64;
  --seg: rgba(22, 22, 20, 0.06);
  --seg-thumb: #ffffff;
  --glass: rgba(246, 246, 243, 0.9);
  --glass-bar: rgba(255, 255, 255, 0.94);
  --glass-solid: rgba(255, 255, 255, 0.98);
  --accent: #f5b419;
  --accent-soft: #fdf1cf;
  --accent-ink: #6b4a00;
  --tint: #1f5fa8;
  --gold: #1f5fa8;
  --gold-soft: #e8f0f9;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: none;
  --kc-line: var(--border);
  --kc-r: 14px;
  --kc-shadow: none;
  --tm-line: var(--border);
  --topbar-solid: #ffffff;
  --dz-r: 14px;
}

body { background: var(--bg); letter-spacing: -0.008em; }

/* ---------- Schrift ---------- */
.section-heading, .ek-page-head h1, .ek h1 { font-size: 27px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 4px; }
.section-heading h2, .view > h2:first-child { font-size: 27px; font-weight: 700; letter-spacing: -0.03em; }
.ek-page-head p { font-size: 14.5px; line-height: 1.45; }
.card-header h2, .card-header h3, .card > h2, .card > h3, .card-title,
.group-label span, .hub-label, .cl-sec, .hs-group, .tm-month { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Kopfzeile: flach, ohne Zusatzchips ---------- */
.topbar { background: var(--topbar-solid); box-shadow: 0 1px 0 var(--sep); -webkit-backdrop-filter: none; backdrop-filter: none; }
.topbar-logo { filter: none; }
.user-chip .chip-version, .topbar .chip-version { display: none !important; }
.user-chip, .storage-chip, #eventChip, .print-chip { background: var(--seg); border: none; box-shadow: none; border-radius: 999px; font-weight: 600; }
.avatar { box-shadow: none; }

/* ---------- Flächen: weiß, feine Kontur, keine Schatten ---------- */
.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, .user-row, .tm-card, .br-ev, .br-row, .br-wish, .br-kind, .cl-row, .st-row, .hub-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--kc-r);
  box-shadow: none;
}
.item-btn, .order-stat { border-radius: 12px; }
.hint { background: var(--surface-2); border-radius: 12px; font-weight: 500; }
.hint svg { color: var(--text-muted); }

/* ---------- Symbolkacheln: einfarbig statt Verlauf ---------- */
.nic, .hub-ico.nic { background: var(--g2); box-shadow: none; border-radius: 10px; }
.nic svg { filter: none; }
.hub-ico.nic { width: 42px; height: 42px; border-radius: 12px; }
.tc-tile, .u-av, .tm-av, .tm-avatar, .tm-fic, .br-ev-ic, .cl-fi, .hs-star { box-shadow: none !important; }
.tc-tile { background: #8a8f98; border-radius: 12px; width: 42px; height: 42px; }
.table-card[data-st="new"] .tc-tile { background: #3b82d6; box-shadow: none; }
.table-card[data-st="open"] .tc-tile { background: #d9363e; box-shadow: none; }
.table-card[data-st="paid"] .tc-tile { background: #2f9e5b; box-shadow: none; }
.table-card[data-st="bar"] .tc-tile { background: #f5b419; color: #3b2a00; box-shadow: none; }
.u-av { background: #7b6bd6; }
.tm-av, .tm-avatar { background: #8793ab; }
.tm-group.yes .tm-av { background: #2f9e5b; }
.tm-group.maybe .tm-av { background: #e0980f; }
.tm-group.no .tm-av { background: #d9363e; }
.tm-av.car { background: #2aa690; }
.br-ev-ic { background: #d0406f; }
.cl-fi { background: #3b82d6; }
.cl-fi.all { background: #2f9e5b; }
.cl-fi.lock { background: #8a8f98; }
.hs-star { background: #f0a30a; }
.jump-all svg { background: #3b82d6; box-shadow: none; }

/* ---------- Startmenü ---------- */
.hub-tile, .hub-tile.main { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: none; }
.hub-tile:active { background: var(--surface-2); transform: scale(.985); }
.hub-tile b { font-size: 16px; font-weight: 650; }
.hub-tile small { font-size: 12.5px; color: var(--text-muted); }
.hub-search input, #hubSearch { background: var(--surface); border: 1px solid var(--border); box-shadow: none; border-radius: 14px; }
.hub-account { box-shadow: none; }

/* ---------- Banner und Hero-Karten: flach, einfarbig ---------- */
.tables-summary {
  background: color-mix(in srgb, #d9363e 9%, var(--surface)); color: var(--text);
  border: 1px solid color-mix(in srgb, #d9363e 28%, var(--border)); box-shadow: none; border-radius: 16px;
}
.tables-summary::after, .ov-kpi.big::after, .hub-hero::after, .tm-hero::after, .tm-dhead::after, .hf-mine::after, .hf-head::after { display: none !important; }
.tables-summary .ts-num { background: #d9363e; color: #fff; border-radius: 12px; }
.tables-summary .ts-label { color: var(--text); font-size: 16px; font-weight: 700; }
.tables-summary .ts-label small { color: var(--text-muted); }
.tables-summary .ts-name, .tables-summary .ts-name.partial { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; }
.tables-summary .ts-name small { color: var(--text-muted); }
.tables-summary .ts-chip { background: var(--surface); color: var(--text); }
.ov-kpi.big { background: var(--accent); color: #231b00; border: none; box-shadow: none; }
.hub-hero, .tm-hero, .tm-dhead { background: var(--tc, #3b82d6); box-shadow: none; }
.hf-mine, .hf-head { background: var(--hf, #0a7f93); box-shadow: none; }
.br-hero { background: #d0406f; box-shadow: none; }
.st-hero { background: #d98a0e; box-shadow: none; }
.bar-section { background: var(--surface); border: 1px solid var(--border); box-shadow: none; border-radius: 16px; }
.bar-section .group-label span { color: var(--text-muted); }
.table-card.bar, .table-card.bar.open { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.table-card.unprinted { box-shadow: none; border-color: var(--tint); }
.unsent-card { box-shadow: none; border-radius: 12px; }

/* ---------- Buttons: flach ---------- */
.btn { box-shadow: none; border-radius: 12px; font-weight: 650; }
.btn.primary { background: var(--accent); color: #1c1608; box-shadow: none; }
.btn.secondary, .btn.ghost { background: var(--surface-2); color: var(--text); box-shadow: none; border: none; }
.btn.danger-outline { background: color-mix(in srgb, var(--danger, #b21a24) 9%, var(--surface)); color: var(--danger); box-shadow: none; }
.btn.pay-btn { box-shadow: none; }
.fab, .tm-fab, .menu-fab, .tables-fab { box-shadow: 0 2px 10px rgba(0, 0, 0, .14); background-image: none; }
.fab, .tm-fab { background: var(--accent); color: #1c1608; }
.menu-fab, .tables-fab { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.hf-btn, .st-inc { background: var(--accent); color: #1c1608; box-shadow: none; }
.item-btn .add, .item-btn .plus, .item-add { box-shadow: none; }
.order-actions .btn.primary, .btn.big.primary { box-shadow: none; }

/* ---------- Eingaben ---------- */
.field-input, input[type="text"], input[type="search"], input[type="number"], input[type="password"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], select, textarea {
  background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; box-shadow: none; color: var(--text);
}
.field-input:focus, input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.auth-form { box-shadow: none; }

/* ---------- Reiter, Segmente, Pillen ---------- */
.tm-seg, .cl-seg, .category-tabs, .seg { background: var(--seg); border-radius: 12px; box-shadow: none; }
.tm-seg button.active, .cl-seg button.on, .category-tab.active { background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); color: var(--text); }
.tm-seg button.active svg { color: var(--text); }
.tab.active, .tab.active .tab-icon { color: var(--text); }
.tabbar { background: var(--glass-bar); border-top: 1px solid var(--sep); box-shadow: none; }
.tm-pill, .tc-pill, .role-tag, .mfa-badge, .cl-pill { font-weight: 650; }

/* ---------- Dialoge ---------- */
.modal-backdrop { background: rgba(10, 10, 8, .45); }
.modal-sheet { background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: none; }
.modal-sheet h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.modal-actions .btn { border-radius: 12px; }
.toast { box-shadow: none; border-radius: 12px; }

/* ---------- Bestellung ---------- */
.order-table-name { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.order-cart { background: var(--surface); }
.order-actions { background: var(--glass-bar); border-top: 1px solid var(--sep); box-shadow: none; }

/* ---------- Auswertungen ---------- */
.ov-bar { background: var(--accent); }
.ov-meter i { background: var(--accent); }

/* ---------- Verläufe aus modern.css/ios.css gezielt abräumen (gleiche Selektoren, später geladen) ---------- */
.btn.primary:not(:disabled), .btn.big.primary:not(:disabled) { background: var(--accent); background-image: none; color: #1c1608; box-shadow: none; }
.btn.primary.sent, .btn.primary.sent:disabled { background: var(--success-strong, #1f8f4a); color: #fff; }
.btn.big { border-radius: 14px; }
.btn.primary .badge, .btn.primary .total { background: rgba(0, 0, 0, .1); }
.table-card[data-st="new"] .tc-tile, .table-card[data-st="open"] .tc-tile, .table-card[data-st="paid"] .tc-tile, .table-card[data-st="bar"] .tc-tile { background-image: none; box-shadow: none; }
.table-card .tc-tile { background-image: none; }
.tables-summary { background-image: none; box-shadow: none; color: var(--text); padding: 14px; border-radius: 16px; }
.ov-kpi.big { background-image: none; box-shadow: none; border-radius: 16px; }
.hub-account { background: var(--accent); background-image: none; box-shadow: none; border: none; }
.hub-hero { background-image: none; background-color: var(--tc, #3b82d6); box-shadow: none; border-radius: 16px; }
.u-av { background-image: none; background-color: #7b6bd6; }
.jump-all svg { background-image: none; background-color: #3b82d6; }
.hs-star { background-image: none; background-color: #f0a30a; }
.ov-bar, .ov-meter i { background-image: none; background-color: var(--accent); }
.category-tab.active { box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.app-foot .af-ver { background: var(--surface-2); background-image: none; border: none; box-shadow: none; }
.app-foot .af-ver svg { color: var(--text-muted); }
.hub-tile, .hub-tile.main { background-image: none; background-color: var(--surface); }
.item-btn .add, .item-btn .plus, .item-btn .item-add, .item-btn .iadd { box-shadow: none; background-image: none; }
.tm-chip, .st-chip { box-shadow: none; }

/* ---------- Startbild (V148): schlicht im Apple-Stil – Systemhintergrund, Wappen, Titel, iOS-Aktivitätsring ---------- */
.splash { background: var(--bg); color: var(--text); overflow: hidden; flex-direction: column; transition: opacity .5s cubic-bezier(.4, 0, .2, 1); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, system-ui, sans-serif; }
.splash.out { opacity: 0; }
.splash-inner { width: 100%; height: 100%; padding: 0 24px 6vh; justify-content: center; }
.splash-logo {
  width: 112px; height: auto; margin: 0 0 30px; filter: none; border-radius: 0;
  animation: ap-logo .9s cubic-bezier(.16, 1, .3, 1) .1s both;
}
@keyframes ap-logo { from { opacity: 0; transform: scale(.88); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.splash h1 {
  margin: 0; font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.025em; text-transform: none;
  background: none; -webkit-text-fill-color: currentColor; color: var(--text); display: block;
  animation: ap-rise .8s cubic-bezier(.16, 1, .3, 1) .35s both;
}
.splash .splash-sub { margin: 7px 0 0; font-size: 17px; font-weight: 400; letter-spacing: -.01em; color: var(--text-muted); animation: ap-rise .8s cubic-bezier(.16, 1, .3, 1) .5s both; }
@keyframes ap-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* iOS-Aktivitätsring: 12 Striche, die der Reihe nach verblassen */
.splash-spin { position: relative; width: 26px; height: 26px; margin-top: 44px; animation: ap-rise .6s ease .8s both; }
.splash-spin i { position: absolute; left: 50%; top: 0; width: 2.2px; height: 7px; margin-left: -1.1px; border-radius: 2px; background: var(--text-muted); transform-origin: 50% 13px; opacity: .22; animation: ap-tick 1.1s linear infinite; }
.splash-spin i:nth-child(1)  { transform: rotate(0deg);   animation-delay: -1.1s; }
.splash-spin i:nth-child(2)  { transform: rotate(30deg);  animation-delay: -1.008s; }
.splash-spin i:nth-child(3)  { transform: rotate(60deg);  animation-delay: -.917s; }
.splash-spin i:nth-child(4)  { transform: rotate(90deg);  animation-delay: -.825s; }
.splash-spin i:nth-child(5)  { transform: rotate(120deg); animation-delay: -.733s; }
.splash-spin i:nth-child(6)  { transform: rotate(150deg); animation-delay: -.642s; }
.splash-spin i:nth-child(7)  { transform: rotate(180deg); animation-delay: -.55s; }
.splash-spin i:nth-child(8)  { transform: rotate(210deg); animation-delay: -.458s; }
.splash-spin i:nth-child(9)  { transform: rotate(240deg); animation-delay: -.367s; }
.splash-spin i:nth-child(10) { transform: rotate(270deg); animation-delay: -.275s; }
.splash-spin i:nth-child(11) { transform: rotate(300deg); animation-delay: -.183s; }
.splash-spin i:nth-child(12) { transform: rotate(330deg); animation-delay: -.092s; }
@keyframes ap-tick { 0% { opacity: 1; } 100% { opacity: .22; } }
.splash-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.splash-foot { position: absolute; left: 0; right: 0; bottom: max(26px, env(safe-area-inset-bottom)); text-align: center; font-size: 12.5px; letter-spacing: -.005em; color: var(--text-muted); opacity: .85; animation: ap-rise .8s ease 1s both; }
@media (prefers-reduced-motion: reduce) {
  .splash-logo, .splash h1, .splash .splash-sub, .splash-foot, .splash-spin { animation: none; }
  .splash-spin i { animation-duration: 2.4s; }
}
.auth-logo { filter: none; }
.hub-logo, .topbar-logo { filter: none; }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Plus-Knopf an Artikelkacheln: flach */
.item-btn::after { box-shadow: none !important; background-image: none !important; background-color: var(--accent); }

/* Cloud: flache Symbole (V149) */
.cl-ft { background: #7b8494; }
.cl-ft[data-k="pdf"] { background: #d9453a; }
.cl-ft[data-k="img"] { background: #17a094; }
.cl-ft[data-k="aud"] { background: #7f56d9; }
.cl-ft[data-k="vid"] { background: #e8801a; }
.cl-ft[data-k="doc"] { background: #2f7fe0; }
.cl-ft[data-k="xls"] { background: #1f9a4d; }
.cl-ft[data-k="zip"] { background: #a08a4f; }
.cl-fi { background: #2f7fe0; box-shadow: none; }
.cl-fi.lock { background: #7b8494; box-shadow: none; }
.cl-fi.all { background: #1fa56f; box-shadow: none; }
.cl-selbar { box-shadow: 0 6px 22px rgba(0, 0, 0, .16); }
.cl-vtop { background: #000; }

/* ==========================================================================
   Version 151 – clean & modern: ruhige Flächen, weiche Schatten, getönte Symbole, viel Luft
   (ersetzt das Neon-Design aus Version 150; baut auf der flachen Basis von Version 146 auf)
   ========================================================================== */
:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #eff1f4;
  --border: rgba(15, 23, 42, .09); --sep: rgba(15, 23, 42, .09); --card-edge: rgba(15, 23, 42, .07);
  --text: #111318; --text-muted: #6a7180;
  --glass: rgba(245, 246, 248, .8); --glass-bar: rgba(255, 255, 255, .86); --glass-solid: rgba(255, 255, 255, .98);
  --topbar-solid: rgba(245, 246, 248, .82);
  --kc-line: var(--border); --tm-line: var(--border);
  --seg: rgba(15, 23, 42, .06); --seg-thumb: #ffffff;
  --accent-soft: #fdf1cf; --accent-ink: #6b4a00;
  --radius: 18px; --radius-sm: 12px; --kc-r: 18px;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .05);
}
body { background: var(--bg); }

/* Kopfzeile: ruhig, mit weicher Unschärfe */
.topbar, #app .topbar, #app.has-large:not(.scrolled) .topbar, #app.scrolled .topbar, #app:not(.has-large) .topbar, .ek-top {
  background: var(--glass) !important; -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 0 var(--sep) !important;
}
.tabbar { background: var(--glass-bar); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border-top: 1px solid var(--sep); }
.user-chip, .storage-chip, #eventChip, .print-chip { background: var(--surface-2); border: 0; font-weight: 600; }

/* Karten: weiß, feine Linie, weicher Schatten */
.card, .table-card, .item-btn, .order-cart, .history-summary, .kpi, .order-stat, .auth-form, .draft-card, .sms-card, .event-folder,
.history-servers, .wait-card, .exp-card, .exp-sum, .ov-card, .ov-kpi, .rights-role, .ek-card, .ek-kpi, .ek-box, .user-row,
.tm-card, .br-ev, .br-row, .br-wish, .br-kind, .cl-row, .st-row, .hub-tile, .bar-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--card-shadow);
}
.item-btn, .order-stat { border-radius: 16px; }
.hub-tile { border-radius: 20px; }
.hub-tile:active, .table-card:active, .item-btn:active, .cl-row:active { background: var(--surface-2); }

/* Abschnittstitel: klein, ruhig, ohne Schnörkel */
.hub-label, .group-label span, .cl-sec, .card-header h2, .card-header h3, .card > h2, .card-title, .tm-month, .hs-group {
  font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
}
.section-heading, .section-heading h2, .view > h2:first-child, .ek-page-head h1, .ek h1 { font-size: 30px; font-weight: 750; letter-spacing: -.035em; }

.hub-ico.nic { border-radius: 14px; }
.tc-tile { box-shadow: none !important; background-image: none; }
.table-card[data-st="new"] .tc-tile  { background: color-mix(in srgb, #2f7fd1 15%, var(--surface)); color: #2f7fd1; }
.table-card[data-st="open"] .tc-tile { background: color-mix(in srgb, #d12a36 15%, var(--surface)); color: #d12a36; }
.table-card[data-st="paid"] .tc-tile { background: color-mix(in srgb, #1f9a55 15%, var(--surface)); color: #1f9a55; }
.table-card[data-st="bar"] .tc-tile  { background: color-mix(in srgb, #f5a90f 20%, var(--surface)); color: #a86a00; }
.u-av { background: color-mix(in srgb, #6a49c8 15%, var(--surface)); color: #6a49c8; }

/* Buttons */
.btn { border-radius: 14px; font-weight: 650; }
.btn.primary:not(:disabled), .btn.big.primary:not(:disabled) { background: var(--accent); color: #1c1608; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.btn.secondary, .btn.ghost { background: var(--surface-2); color: var(--text); border: 0; }
.fab, .tm-fab, .hf-btn, .st-inc { background: var(--accent); color: #1c1608; box-shadow: 0 4px 14px rgba(0, 0, 0, .16); }
.menu-fab, .tables-fab { background: var(--glass-bar); border: 1px solid var(--border); color: var(--text); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }

/* Eingaben */
.field-input, input[type="text"], input[type="search"], input[type="number"], input[type="password"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], select, textarea {
  background: var(--surface-2); border: 1px solid transparent; border-radius: 12px;
}
.field-input:focus, input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.hub-search input, #hubSearch { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }

/* Hero-Karten */
.ov-kpi.big { box-shadow: none; border-radius: 20px; }
.hub-hero, .tm-hero, .tm-dhead, .hf-mine, .hf-head, .br-hero, .st-hero { border-radius: 20px; }

/* Dialoge */
.modal-sheet { border-radius: 24px 24px 0 0; box-shadow: 0 -8px 40px rgba(0, 0, 0, .18); }
.tm-seg, .cl-seg, .category-tabs, .seg { border-radius: 13px; }
.tm-seg button.active, .cl-seg button.on, .category-tab.active, .cl-sort button.on { background: var(--seg-thumb); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.tab.active, .tab.active .tab-icon { color: var(--text); }
.cl-btn { background: var(--accent); color: #1c1608; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.cl-selbar { background: var(--glass-solid); border: 1px solid var(--border); box-shadow: 0 8px 28px rgba(0, 0, 0, .16); }
.ov-bar, .ov-meter i, .cl-up i span, .cl-quota i span { background: var(--accent); }
.cl-fi, .cl-ft { box-shadow: none; }
/* Seiten-Stylesheets färben Nebenknöpfe bläulich – hier wieder neutral */
body .tm-main .btn.secondary, body .cl-bar .btn.secondary, body .ek .btn.secondary { background: var(--surface-2); color: var(--text); border: 0; }
body .cl-bar .btn { padding: 9px 12px; font-size: 14.5px; }
body .cl-bar .btn svg { color: var(--text-muted); }
body .cl-bar .btn.cl-btn svg { color: inherit; }

/* ==========================================================================
   Version 152 – neue Symbole und Logo-Auftritt
   Bereichs-Symbole: kräftige Farbkachel (Squircle) mit weißem, gefülltem Symbol; Wappen im dunklen Abzeichen
   ========================================================================== */
.nic, .hub-ico.nic {
  color: #fff; border-radius: 28%;
  background: linear-gradient(155deg, var(--g1), var(--g2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 4px 12px color-mix(in srgb, var(--g2) 38%, transparent);
}
.nic svg { filter: none; }
.hub-ico.nic, .hub-tile.main .hub-ico.nic { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 6px 16px color-mix(in srgb, var(--g2) 36%, transparent); }

/* ==========================================================================
   Version 153 – Desktop: ganze Bildschirmbreite nutzen
   (Handy bleibt unverändert, gilt ab 900 px Breite)
   ========================================================================== */
@media (min-width: 900px) {
  /* Festkasse-Ansichten */
  .view, .view:not(.order-view), .view.order-view { max-width: none; padding-left: clamp(24px, 3vw, 56px); padding-right: clamp(24px, 3vw, 56px); }
  .tables-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
  .order-layout { gap: 32px; }
  .order-side { width: clamp(400px, 28vw, 560px); height: calc(100dvh - 200px); }
  .topbar { padding-left: clamp(16px, 2vw, 40px); padding-right: clamp(16px, 2vw, 40px); }

  /* Startmenü */
  .hub-screen { padding-left: clamp(24px, 4vw, 72px); padding-right: clamp(24px, 4vw, 72px); }
  .hub-inner { max-width: none; }
  .hub-tiles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
  .hub-tile.main { grid-column: auto; }
  .hub-tiles .hub-tile { min-height: 132px; }
  .hub-search, .hub-results { max-width: 720px; }

  /* Einkauf, Helferplan, Bring a Bottle, Strichliste, Cloud, Personal-Seiten */
  .ek-layout { max-width: none; padding-left: clamp(18px, 3vw, 56px); padding-right: clamp(18px, 3vw, 56px); }
  .tm-main { max-width: none; padding-left: clamp(24px, 3vw, 56px); padding-right: clamp(24px, 3vw, 56px); }
  .ek-top { padding-left: clamp(18px, 3vw, 56px); padding-right: clamp(18px, 3vw, 56px); }
}

/* Desktop: Listen und Filter nebeneinander statt endlos untereinander */
@media (min-width: 1100px) {
  #categoriesSection { display: grid; grid-template-columns: repeat(auto-fill, minmax(560px, 1fr)); gap: 16px; align-items: start; }
  #categoriesSection > .card { margin: 0; }
  #userList { display: grid; grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); gap: 14px; align-items: start; }
  #userList > * { margin: 0; }
  #userList > .btn, #userList > .empty-state { grid-column: 1 / -1; }
  #historyList { columns: 520px; column-gap: 16px; }
  #historyList > * { break-inside: avoid; margin-bottom: 14px; }
  .history-view, .personal-view { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-start; }
  .history-view > *, .personal-view > * { flex: 1 1 100%; min-width: 0; }
  .history-view > select.history-filter { flex: 1 1 240px; }
  .history-view > #exportHistoryPdfBtn { flex: 0 0 auto; width: auto; align-self: flex-start; padding-left: 22px; padding-right: 22px; }
  .personal-view > #mailSettings, .personal-view > #smsSettings, .personal-view > #backupSettings { flex: 1 1 360px; margin-top: 16px; }
  .personal-view > #addUserBtn { margin-top: 14px; }
  .personal-view > #userList { flex-basis: 100%; }
}

/* ==========================================================================
   Version 161 – Startmenü wie ein Home-Bildschirm: jeder Bereich ist eine App-Kachel (Symbol, Name darunter, roter Zähler)
   ========================================================================== */
.hub-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 10px; margin-top: 26px; justify-items: center; }
.hub-inner.searching .hub-menu { display: none; }
.am-app {
  display: flex; flex-direction: column; align-items: center; gap: 9px; width: 100%; max-width: 120px; padding: 0; border: 0; background: none;
  font: inherit; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .14s ease;
}
.am-app:active { transform: scale(.92); }
.am-icon { position: relative; display: block; width: min(100%, 84px); aspect-ratio: 1; }
.am-icon .am-ico.nic { width: 100%; height: 100%; border-radius: 23%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 18px color-mix(in srgb, var(--g2) 34%, transparent); }
.am-icon .am-ico.nic svg { width: 52%; height: 52%; }
.am-name { font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.am-badge { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; background: #ff3b30; color: #fff; font-size: 13px; font-weight: 800; border: 2px solid var(--bg); box-sizing: content-box; }
.am-badge.hidden { display: none; }
.am-app:focus-visible { outline: none; }
.am-app:focus-visible .am-icon { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 26%; }
.hub-tip { opacity: .8; margin-top: 30px; }
@media (hover: hover) { .am-app:hover .am-icon { transform: translateY(-3px); } .am-icon { transition: transform .15s ease; } }
@media (min-width: 600px) { .hub-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 14px; } .am-icon { width: min(100%, 96px); } .am-name { font-size: 15px; } }
@media (min-width: 900px) {
  .hub-inner { max-width: 880px; }
  .hub-search, .hub-results { max-width: none; }
  .hub-menu { margin-top: 40px; gap: 40px 20px; }
  .am-icon { width: min(100%, 108px); }
}
@media (prefers-reduced-motion: reduce) { .am-app, .am-icon { transition: none !important; } }

/* ===== V159: Rückblick „Fest in Zahlen“ und Preislisten-Knopf ===== */
#openDisplayBtn { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 8px; }
.rb-body { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.rb-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 20px 18px 16px; color: #fff; background: linear-gradient(140deg, #2f7bdc 0%, #1b46a8 55%, #0f2a73 100%); display: flex; flex-direction: column; gap: 2px; box-shadow: 0 10px 28px rgba(27, 70, 168, .28); }
.rb-hero::before { content: ''; position: absolute; right: -40px; top: -50px; width: 190px; height: 190px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .08); }
.rb-hero::after { content: ''; position: absolute; right: 36px; top: 52px; width: 70px; height: 70px; border-radius: 50%; border: 12px solid rgba(255, 255, 255, .07); }
.rb-hero > small { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; position: relative; }
.rb-hero > strong { font-size: clamp(36px, 11vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; position: relative; }
.rb-hero > span { font-size: 14px; opacity: .95; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; position: relative; }
.rb-hero > span em { font-style: normal; opacity: .8; }
.rb-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; position: relative; }
.rb-hero-stats > div { background: rgba(255, 255, 255, .14); border-radius: 14px; padding: 9px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rb-hero-stats b { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rb-hero-stats small { font-size: 11.5px; opacity: .85; }
.rb-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 14px 12px; }
.rb-card h3 { margin: 0 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.rb-empty, .rb-note { margin: 8px 0 0; font-size: 13.5px; color: var(--text-muted); }
.rb-note.center { text-align: center; }
.rb-note b { color: var(--text); }
.rb-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rb-top li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.rb-rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--surface-2); color: var(--text); }
.rb-top li:first-child .rb-rank { background: var(--accent); color: var(--accent-contrast); }
.rb-top-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rb-top-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-top-main i { display: block; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--gold), #1b46a8); }
.rb-top li:first-child .rb-top-main i { background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }
.rb-top-n { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rb-chart { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 118px; }
.rb-bar { flex: 1; min-width: 0; max-width: 44px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; }
.rb-bar i { display: block; border-radius: 6px 6px 2px 2px; background: var(--gold); min-height: 1px; opacity: .85; }
.rb-bar.peak i { background: var(--accent); opacity: 1; }
.rb-bar span { font-size: 10.5px; text-align: center; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rb-recs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rb-rec { background: var(--surface-2); border-radius: 14px; padding: 10px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rb-rec small { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.rb-rec b { font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.rb-rec span { font-size: 12.5px; color: var(--text-muted); }
.rb-catbar { display: flex; gap: 2px; height: 14px; border-radius: 99px; overflow: hidden; }
.rb-catbar i { display: block; }
.rb-leg { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.rb-leg li { display: flex; align-items: center; gap: 6px; }
.rb-leg li span { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.rb-vs, .rb-vs-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--border); font-size: 14px; }
.rb-vs-head { border-top: 0; padding: 0 0 4px; font-size: 11.5px; font-weight: 700; color: var(--text-muted); }
.rb-vs span { color: var(--text-muted); }
.rb-vs b { font-variant-numeric: tabular-nums; }
.rb-vs em, .rb-vs-head em { font-style: normal; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rb-d { font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 99px; white-space: nowrap; background: var(--surface-2); color: var(--text-muted); }
.rb-d.good { background: rgba(48, 170, 100, .16); color: var(--success); }
.rb-d.bad { background: var(--danger-soft); color: var(--danger); }
.rb-hero .rb-d { background: rgba(255, 255, 255, .22); color: #fff; }
.rb-share { width: 100%; margin-top: 2px; }
@media (min-width: 900px) {
  .rb-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .rb-hero, .rb-share, .rb-note.center { grid-column: 1 / -1; }
}

/* ===== V162: Startmenü anpassen, Gästebestellungen, Küche-fertig-Anzeige ===== */
.rb-actions { display: flex; gap: 10px; grid-column: 1 / -1; }
.rb-actions .btn { flex: 1; display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 2px; }
.am-app { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.am-x { position: absolute; top: -7px; left: -7px; width: 26px; height: 26px; border-radius: 50%; display: none; place-items: center; background: #6b7280; color: #fff; font-size: 20px; font-weight: 700; line-height: 1; border: 2px solid var(--bg); box-sizing: content-box; }
.am-x.am-plus { background: #22a559; }
.hub-menu.editing .am-x, #hubHidden .am-x { display: grid; }
.hub-menu.editing .am-app { cursor: grab; touch-action: none; animation: am-wiggle .34s ease-in-out infinite alternate; }
.hub-menu.editing .am-app:nth-child(2n) { animation-delay: -.12s; animation-direction: alternate-reverse; }
.hub-menu.editing .am-app.lifted { opacity: .25; animation: none; }
.hub-menu.editing .am-app:active { transform: none; }
@keyframes am-wiggle { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.am-clone { display: flex; flex-direction: column; align-items: center; gap: 9px; opacity: .96; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); animation: none !important; }
.am-clone .am-x { display: none; }
.hub-editbar { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 12px; border-radius: 16px; background: var(--card, rgba(120, 130, 150, .14)); font-size: 13.5px; }
.hub-editbar.hidden { display: none; }
.hub-editbar span { flex: 1; color: var(--text-muted); }
.hub-editbar button { border: 0; border-radius: 99px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.hub-editbar .hub-reset { background: transparent; color: var(--text-muted); padding-left: 6px; padding-right: 6px; }
.hub-editbar .hub-done { background: var(--accent-strong, #1b6ef3); color: #fff; }
.hub-hidden { margin-top: 26px; }
.hub-hidden.hidden { display: none; }
.hub-hidden h3 { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.hub-hidden .hub-menu { margin-top: 18px; }
.am-app.dim .am-ico { filter: grayscale(.7); opacity: .6; }
@media (prefers-reduced-motion: reduce) { .hub-menu.editing .am-app { animation: none; } }

.gast-bar { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.gast-bar.hidden { display: none; }
.gast-pending { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-radius: 16px; background: #fff4e0; color: #5a3a00; font: inherit; cursor: pointer; box-shadow: inset 0 0 0 1.5px #f0b24a; }
.gast-pending b { display: block; font-size: 15px; }
.gast-pending small { display: block; font-size: 12.5px; opacity: .8; margin-top: 1px; }
.gast-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #ff3b30; color: #fff; font-weight: 800; }
.gast-setup { align-self: flex-start; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: 13.5px; font-weight: 600; padding: 4px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gast-card { border-radius: 16px; padding: 12px 14px; margin: 0 0 12px; background: var(--card, rgba(120, 130, 150, .12)); box-shadow: inset 0 0 0 1px var(--border, rgba(120, 130, 150, .25)); }
.gc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gc-head b { font-size: 17px; }
.gc-head span { font-size: 12.5px; color: var(--text-muted); text-align: right; }
.gc-lines { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gc-lines li { display: flex; gap: 8px; }
.gc-lines small { display: block; color: var(--text-muted); font-size: 12.5px; }
.gc-q { font-weight: 800; min-width: 2.2em; font-variant-numeric: tabular-nums; }
.gc-note { margin: 8px 0 0; font-style: italic; color: var(--text-muted); font-size: 13.5px; }
.gc-sum { margin-top: 8px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gc-actions .btn { flex: 1 1 120px; }
.gc-actions .btn:last-child { flex-basis: 100%; }
.gast-switch { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-top: 10px; }
.gast-switch input { width: 22px; height: 22px; }
.tc-ready { margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #22a559; color: #fff; font-size: 12px; font-weight: 800; }

/* ===== V164: Sammelkachel „Fest“ mit eigenem Menü ===== */
.hub-festbar { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 10px; border-radius: 18px; background: var(--card, rgba(120, 130, 150, .14)); }
.hub-festbar.hidden { display: none; }
.hub-festbar button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--text); opacity: .8; cursor: pointer; padding: 8px 6px; display: inline-flex; align-items: center; gap: 2px; }
.hub-festbar .hf-back svg { width: 20px; height: 20px; }
.hub-festbar .hf-name { flex: 1; min-width: 0; text-align: center; }
.hub-festbar .hf-name small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.hub-festbar .hf-name b { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== V166/V167: Gutschein-QR scannen (Kamera-Vollbild für alle Scanner der App) ===== */
.qrs-overlay { position: fixed; inset: 0; z-index: 500; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.qrs-overlay video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qrs-frame { position: relative; width: min(70vw, 300px); aspect-ratio: 1; border: 4px solid #fff; border-radius: 26px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5); }
.qrs-hint { position: relative; color: #fff; font-weight: 700; margin: 0; text-align: center; padding: 0 20px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.qrs-btns { position: relative; display: flex; gap: 10px; padding-bottom: env(safe-area-inset-bottom); }
.qrs-btn { border: 0; border-radius: 14px; padding: 13px 20px; font: inherit; font-weight: 700; background: rgba(255, 255, 255, .92); color: #111; cursor: pointer; }
.gv-res { border-radius: 20px; padding: 18px 16px; text-align: center; background: var(--card, rgba(120, 130, 150, .12)); }
.gv-res.ok { background: rgba(27, 143, 90, .16); } .gv-res.bad { background: rgba(217, 45, 32, .14); } .gv-res.warn { background: rgba(240, 178, 74, .22); }
.gv-res .gv-state { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.gv-res.ok .gv-state { color: #1a7f4b; } .gv-res.bad .gv-state { color: #d92d20; } .gv-res.warn .gv-state { color: #8a5a00; }
.gv-res .gv-label { font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; overflow-wrap: anywhere; }
.gv-res .gv-sub { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }
.gv-actions { flex-wrap: wrap; }
.gv-actions .btn { flex: 1 1 140px; }

/* Zuordnung beim Einlösen: Tisch + Getränk/Gericht (V168) */
.gv-assign { display: grid; gap: 10px; margin: 14px 0 4px; text-align: left; }
.gv-assign label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--text-muted, #667); }
.gv-assign select { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--border, rgba(120, 130, 150, .35)); background: var(--card, #fff); color: inherit; font: inherit; font-size: 16px; }
.gv-assign-hint { margin: 0; font-size: 12.5px; color: var(--text-muted, #667); }

/* Einfachere Bedienung (V170) */
.howto-bar { margin: 0 0 12px; }
.howto-card { border-radius: 18px; padding: 14px 16px; background: var(--accent-soft, #fef4dc); border: 1px solid var(--border, rgba(120, 130, 150, .3)); }
.howto-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 17px; margin-bottom: 6px; }
.howto-ok { border: 0; border-radius: 12px; padding: 9px 14px; font: inherit; font-size: 14.5px; font-weight: 700; background: var(--accent, #f5b419); color: #111; cursor: pointer; }
.howto-list { margin: 0; padding: 0; list-style: none; counter-reset: hw; display: grid; gap: 10px; }
.howto-list li { counter-increment: hw; position: relative; padding-left: 38px; display: grid; gap: 1px; font-size: 15px; line-height: 1.35; }
.howto-list li::before { content: counter(hw); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--accent, #f5b419); color: #111; }
.howto-list li span { color: var(--text-muted, #667); font-size: 14px; }
.howto-link { border: 0; background: none; padding: 6px 2px; font: inherit; font-size: 14px; font-weight: 600; color: var(--tint, #2a6fd6); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.howto-sheet .howto-list { margin: 8px 0 14px; }
.menu-fab { width: auto; padding: 0 20px 0 16px; gap: 8px; }
.tables-fab { width: auto; padding: 0 16px 0 12px; gap: 8px; margin-left: 0; }
.fab-txt { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.prev-orders-btn { min-height: 36px; margin: 0 0 8px; padding: 0 12px 0 8px; background: transparent; font-size: 14px; font-weight: 600; }
.prev-orders-btn svg { width: 18px; height: 18px; }
body:not(.ek) .tabbar { background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 0 !important; }

/* Übersichtlicher (V171) */
.more-group { margin: 16px 6px 0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #667); }
.more-group + .more-list { margin-top: 6px; }
.order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 12px; }
.order-meta .server-chip { margin: 0; padding: 7px 12px; font-size: 13.5px; border-radius: 999px; }
.order-meta .prev-orders-btn { margin: 0; min-height: 0; padding: 7px 12px 7px 10px; border-radius: 999px; background: var(--seg, rgba(120, 130, 150, .14)); font-size: 13.5px; }
.order-meta .prev-orders-btn svg { width: 16px; height: 16px; }
.item-btn { min-height: 82px; }
.item-btn .iprice { margin-top: 4px; }

.draft-note-btn { display: block; margin: 8px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--tint, #2a6fd6); cursor: pointer; text-align: left; }
.draft-note-btn.set { color: var(--text, #222); }
.draft-note-btn.set b { font-weight: 700; }

/* Tischübersicht kompakter (V172): auf dem Handy drei Tische nebeneinander, Nummernkachel + Status statt großer Karte */
@media (max-width: 700px) {
  #tablesGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; grid-auto-rows: auto; }
  #tablesGrid .table-card-wrap { height: auto; }
  #tablesGrid .tcw-named { grid-column: span 3; }
  #tablesGrid .table-card.tc-num { height: auto; min-height: 0 !important; display: flex; flex-direction: row; align-items: center; gap: 9px; min-height: 0; padding: 10px 6px 10px 10px; border-radius: 16px; }
  #tablesGrid .tc-num .tc-head { flex: 0 0 auto; padding-right: 0; }
  #tablesGrid .tc-num .tc-tile { width: 36px; height: 36px; border-radius: 11px; font-size: 18px; }
  #tablesGrid .tc-num .table-card-top { display: none; }
  #tablesGrid .tc-num .table-card-foot { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-width: 0; flex: 1 1 auto; }
  #tablesGrid .tc-num .tc-pill { font-size: 11.5px; padding: 2px 8px; }
  #tablesGrid .tc-num .amount { font-size: 13.5px; }
  #tablesGrid .tc-num .tc-ready { margin-left: 0; font-size: 11px; padding: 1px 6px; }
  #tablesGrid .table-card.tc-num.mine { box-shadow: inset 0 0 0 2px var(--accent); }
  #tablesGrid .tcw-num .table-edit-btn { top: -5px; right: -5px; width: 24px; height: 24px; min-width: 0; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.12); opacity: 1; }
  #tablesGrid .tcw-num .table-edit-btn svg { width: 14px; height: 14px; }
  #tablesGrid .tc-named { padding: 10px 34px 10px 14px; min-height: 0 !important; height: auto; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  #tablesGrid .tc-named .tc-head { padding-right: 0; }
  #tablesGrid .tc-named .table-card-foot { flex-wrap: nowrap; }
  #tablesGrid .tc-named .tc-tile { width: 36px; height: 36px; font-size: 16px; }
}

@media (max-width: 700px) {
  .quick-row { display: flex; gap: 10px; margin: 0 0 10px; }
  .quick-row .da-bar { flex: 1 1 0; margin: 0; min-width: 0; }
  .quick-row:not(:has(.da-bar:not(.hidden))) { display: none; }
  .quick-row .da-open-btn { width: 100%; min-height: 44px; padding: 0 8px; font-size: 14.5px; gap: 6px; margin: 0; white-space: nowrap; }
  .quick-row .da-open-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
  #tableJump { display: none !important; }
  .bar-section { padding: 10px 12px 12px; margin-bottom: 10px; }
  #barGrid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #barGrid .table-card.bar { padding: 10px 14px; min-height: 0 !important; height: auto; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  #barGrid .table-card.bar .tc-head { padding-right: 0; }
  #barGrid .table-card.bar .tc-tile { width: 36px; height: 36px; border-radius: 11px; }
  #barGrid .table-card.bar .table-card-foot { flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; padding-right: 34px; }
  #barGrid .table-card-wrap { height: auto; }
  #barGrid .table-card.bar .bar-tag { display: none; }
  .tables-summary { padding: 10px 12px !important; gap: 8px !important; border-radius: 14px !important; }
  .tables-summary .ts-num { min-width: 36px; height: 36px; font-size: 20px; border-radius: 10px; }
  .tables-summary .ts-label { font-size: 15px; }
  .tables-summary .ts-name { min-height: 0; padding: 5px 11px; font-size: 14px; border-radius: 11px; }
  .tables-summary .ts-name small { font-size: 12px; }
  .unsent-card { padding: 9px 12px; }
}

/* V173: Papierrolle (Sensor des Druckers + Rollenzähler) */
.print-chip.paper-only { background: var(--warning); color: #3b2a00; }
.pr-warn { color: #9a6700; font-size: 12.5px; font-weight: 600; }
.pi-paper { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 15px; }
.pi-paper.severe { background: var(--danger-soft); color: var(--danger); }
.pi-paper small { display: block; font-size: 12.5px; margin-top: 2px; opacity: .9; }
.pi-paper .btn { flex-shrink: 0; margin-top: 0; }
.pi-job-actions { flex-wrap: wrap; }
.paper-box { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.paper-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.paper-sensor { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.paper-sensor.good { color: var(--success-strong, var(--success)); }
.paper-sensor.warn { color: #9a6700; }
.paper-sensor.bad { color: var(--danger); }
.paper-bar { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; margin: 9px 0 5px; }
.paper-bar i { display: block; height: 100%; border-radius: 99px; background: var(--success); transition: width .3s; }
.paper-bar i.warn { background: var(--warning); }
.paper-bar i.low, .paper-bar i.empty { background: var(--danger); }
.paper-sub { font-size: 12.5px; color: var(--text-muted); }
.paper-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.paper-box .printer-status { margin-top: 8px; }
.paper-set { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 13px; }
.paper-len { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.paper-len .field-input { width: 90px; flex: none; text-align: right; }
.pi-paper { flex-direction: column; align-items: stretch; }
.pi-paper .btn { width: 100%; }
.paper-actions .btn { flex: 1 1 140px; width: auto; margin-top: 0; }
.paper-box .btn.secondary { background: var(--surface); }

/* V175: Menü-Knopf auf dem Startbildschirm (öffnet dieselbe Liste wie in der Festkasse) */
.hub-menubtn { background: var(--surface-2, var(--seg)); background-image: none; color: var(--text); margin-left: auto; margin-right: 8px; }
.hub-menubtn + .hub-account { margin-left: 0; }
.hub-menubtn { width: 40px; height: 40px; margin-right: 6px; }
.hub-head .hub-title { min-width: 0; }
.hub-head .hub-title h1 { font-size: clamp(16px, 4.5vw, 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* V176: Offline-Streifen – klare Überschrift, Erklärung darunter, grün beim Wiederverbinden; auch auf dem Startbildschirm */
.offline-bar { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.offline-bar strong { font-size: 14px; font-weight: 700; }
.offline-bar .ob-detail { font-weight: 500; font-size: 12.5px; opacity: .95; }

.offline-bar.offline-ok { background: var(--success, #2e9e5b); color: #fff; }
.offline-bar.hub-offline { border-radius: 14px; margin: 0 0 12px; }
.offline-bar.hub-offline.hidden { display: none; }
.offline-bar { padding: 7px 14px; }

/* V177: Umrandung um den ganzen Bildschirm zeigt immer den Verbindungsstand: grün = online, rot = offline, orange = wird übertragen */
.net-frame { position: fixed; top: 0; left: 0; right: 0; height: 6px; z-index: 9999; pointer-events: none; background: transparent; transition: background-color .3s; }
.net-frame.online { background-color: #2fb461; }
.net-frame.syncing { background-color: #f5a31a; }
.net-frame.offline, .net-frame.failed { background-color: #d62d3a; }
@media print { .net-frame { display: none; } }

/* V178: modernere Symbol-Kacheln: weichere Rundung, Glanzlicht oben, farbiger Schatten; Symbole kräftiger */
.nic { position: relative; overflow: hidden; border-radius: 30%; background: linear-gradient(158deg, var(--g1) 0%, var(--g2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 4px rgba(0, 0, 0, .12), 0 2px 6px color-mix(in srgb, var(--g2) 38%, transparent); }
.nic::before { content: ''; position: absolute; inset: 0 0 46% 0; background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0)); pointer-events: none; }
.nic svg { position: relative; width: 62%; height: 62%; filter: drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, .18)); }
.more-item .more-ic { width: 38px; height: 38px; }
.more-item + .more-item::before { left: 65px; }
.am-icon .am-ico.nic { border-radius: 27%; }
.am-icon .am-ico.nic svg { width: 58%; height: 58%; }
.hub-ico.nic svg, .hub-tile.main .hub-ico.nic svg { width: 62%; height: 62%; }

/* V178: Menü als Symbol-Raster: vier Gruppen, vier Symbole pro Reihe */
.menu-sheet .more-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 2px; margin-top: 8px; background: none; border-radius: 0; overflow: visible; }
.menu-sheet .more-item { flex-direction: column; justify-content: flex-start; align-items: center; gap: 6px; padding: 4px 2px 2px; background: none; box-shadow: none; border-radius: 14px; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.2; color: var(--text); }
.menu-sheet .more-item::before, .menu-sheet .more-item::after { display: none !important; }
.menu-sheet .more-item .more-ic { width: 54px; height: 54px; transition: transform .12s; }
.menu-sheet .more-item:active .more-ic { transform: scale(.92); }
.menu-sheet .more-item.active .more-ic { outline: 3px solid var(--accent-strong, #f5b419); outline-offset: 2px; }
.menu-sheet .more-item.active { font-weight: 700; }
.menu-sheet .more-list.more-top { display: block; }
.menu-sheet .more-top .more-item { flex-direction: row; justify-content: flex-start; gap: 12px; width: 100%; padding: 6px 4px; font-size: 16px; text-align: left; }
.menu-sheet .more-top .more-item .more-ic { width: 40px; height: 40px; }
.menu-sheet .more-group { margin: 14px 4px 0; }

/* V179: Startseite mit einem großen Menü-Feld statt acht Kacheln */
#hubTiles, #hubHidden, #hubEditBar, #hubFestBar { display: none !important; }
.hub-bigmenu { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 560px; margin: 8px auto 0; padding: 20px 18px 16px; text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--card-shadow, 0 6px 22px rgba(0, 0, 0, .08)); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s; }
.hub-bigmenu:active { transform: scale(.985); }
.hub-bigmenu:focus-visible { outline: 3px solid var(--accent-strong, #f5b419); outline-offset: 3px; }
.hb-head { display: flex; align-items: center; gap: 10px; }
.hb-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hb-badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #e5323f; color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.hb-badge.hidden { display: none; }
.hb-go { margin-left: auto; width: 26px; height: 26px; color: var(--text-muted); }
.hb-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; justify-items: center; }
.hb-icons .hb-ic.nic { width: 100%; max-width: 70px; height: auto; aspect-ratio: 1; }
.hb-names { font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.hb-hint { align-self: stretch; text-align: center; padding: 11px; border-radius: 14px; background: var(--accent, #f5b419); color: var(--accent-contrast, #1c1c1e); font-size: 16px; font-weight: 700; }

/* V180: Hauptmenü schlichter und moderner (Startseite-Feld und Menü-Fenster) */
.hub-bigmenu { gap: 18px; padding: 18px 18px 20px; border-radius: 28px; border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .07); }
.hb-head { gap: 12px; }
.hb-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hb-title { font-size: 28px; line-height: 1.1; }
.hb-sub { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.hb-head .hb-badge { margin-left: auto; }
.hb-head .hb-badge.hidden + .hb-go, .hb-head .hb-text + .hb-go { margin-left: auto; }
.hb-head .hb-badge:not(.hidden) + .hb-go { margin-left: 0; }
.hb-go { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent, #f5b419); color: var(--accent-contrast, #1c1c1e); }
.hb-go svg { width: 20px; height: 20px; }
.hb-icons { gap: 14px 12px; }
.hb-icons .hb-ic.nic { max-width: 62px; }
.hb-names, .hb-hint { display: none; }

.menu-sheet { padding-left: 14px; padding-right: 14px; background: var(--bg, var(--surface)); }
.menu-sheet h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 2px 6px 4px; }
.menu-sheet .more-group { margin: 16px 8px 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.menu-sheet .more-group + .more-list { margin-top: 0; padding: 16px 6px 10px; background: var(--surface); border-radius: 22px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.menu-sheet .more-list.more-top { display: block; padding: 0; background: none; box-shadow: none; }
.menu-sheet .more-top .more-item { width: auto; display: inline-flex; padding: 7px 16px 7px 8px; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.menu-sheet .more-top .more-item .more-ic { width: 30px; height: 30px; }
.menu-sheet .more-item .more-ic { width: 52px; height: 52px; }
.menu-sheet .more-item { font-size: 12px; font-weight: 500; }

/* V181: Hauptmenü auf der Startseite = ein einfacher Knopf mit Bierbank-Logo; erst beim Antippen springt das richtige Menü auf */
.hub-bigmenu { flex-direction: row; align-items: center; gap: 16px; padding: 16px 18px 16px 16px; border-radius: 26px; }
.hub-bigmenu .hb-logo.nic { flex: none; width: 72px; height: 72px; border-radius: 22px; }
.hub-bigmenu .hb-text { flex: 1; }
.hub-bigmenu .hb-badge { margin-left: 0; }
.hub-bigmenu .hb-go { margin-left: 0; }
.hb-icons { display: none; }

/* ==========================================================================
   V183 – professionelleres, ruhigeres Erscheinungsbild
   Flache Symbole in vier Gruppenfarben, feste untere Leiste statt schwebender Knöpfe,
   aufgeräumtes Menü-Fenster, schlichtes Startseiten-Feld, einheitliche Konturen.
   ========================================================================== */
:root {
  --ic-fest: #b87400;     /* Fest: Tische, Kasse, Küche, Einkauf … */
  --ic-verein: #2b6cb0;   /* Verein: Helferplan, Bring a Bottle, Strichliste, Cloud */
  --ic-setup: #4a5568;    /* Einrichten: Speisekarte, Drucker, Feste, Personal */
  --ic-system: #2c7a7b;   /* System & Hilfe */
  --ic-ek: #3d5a80;       /* Einkauf-Unterbereiche */
}

/* ---- Symbole: flach, ohne Glanz und Schatten ---- */
.nic.nic, .hub-ico.nic.nic, .am-icon .am-ico.nic.nic { background: var(--g2); box-shadow: none; border-radius: 10px; }
.nic.nic::before { display: none; }
.nic.nic svg { filter: none; }
.nic[data-ic="hub"], .nic[data-ic="tables"], .nic[data-ic="newtable"], .nic[data-ic="history"], .nic[data-ic="kasse"], .nic[data-ic="bonkasse"],
.nic[data-ic="kueche"], .nic[data-ic="gutscheine"], .nic[data-ic="einkauf"], .nic[data-ic="fest"] { --g1: var(--ic-fest); --g2: var(--ic-fest); }
.nic[data-ic="helfer"], .nic[data-ic="bring"], .nic[data-ic="strich"], .nic[data-ic="cloud"] { --g1: var(--ic-verein); --g2: var(--ic-verein); }
.nic[data-ic="menu"], .nic[data-ic="printers"], .nic[data-ic="events"], .nic[data-ic="personal"] { --g1: var(--ic-setup); --g2: var(--ic-setup); }
.nic[data-ic="backup"], .nic[data-ic="server"], .nic[data-ic="howto"], .nic[data-ic="funktionen"] { --g1: var(--ic-system); --g2: var(--ic-system); }
.nic[data-ic="uebersicht"], .nic[data-ic="bedarf"], .nic[data-ic="festpreise"], .nic[data-ic="verbrauch"], .nic[data-ic="bestellungen"], .nic[data-ic="anfragen"],
.nic[data-ic="preise"], .nic[data-ic="lieferanten"], .nic[data-ic="artikel"], .nic[data-ic="adressen"], .nic[data-ic="daten"] { --g1: var(--ic-ek); --g2: var(--ic-ek); }

/* ---- Menü-Fenster: Gruppen mit ruhigen Zeilen, zwei Spalten ---- */
.menu-sheet { background: var(--bg); padding: 6px 16px calc(18px + var(--safe-bottom, 0px)); }
.menu-sheet .menu-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 2px; }
.menu-sheet .menu-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.menu-close { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--seg); color: var(--text-muted); cursor: pointer; }
.menu-close svg { width: 16px; height: 16px; }
.menu-close:active { transform: scale(.94); }
.menu-sheet > h2 { display: none; }
.menu-sheet .more-group { margin: 18px 2px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.menu-sheet .more-group + .more-list { margin-top: 0; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.menu-sheet .more-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; padding: 0; }
.menu-sheet .more-list.more-top { display: grid; grid-template-columns: 1fr; margin-top: 10px; }
.menu-sheet .more-item, .menu-sheet .more-top .more-item {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; width: auto; min-height: 54px;
  padding: 8px 10px; text-align: left; font-size: 14.5px; font-weight: 600; line-height: 1.2; letter-spacing: -.005em; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: none; text-decoration: none;
  transition: background-color .12s, border-color .12s;
}
.menu-sheet .more-item .more-ic, .menu-sheet .more-top .more-item .more-ic { width: 36px; height: 36px; border-radius: 10px; }
.menu-sheet .more-item:active { background: var(--surface-2); }
.menu-sheet .more-item.active, .menu-sheet .more-item.active .more-ic { outline: 0; }
.menu-sheet .more-item.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.menu-sheet .more-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---- Untere Leiste: Start · Tische · Menü ---- */
.tabbar:not(.hidden), body.ek .tabbar:not(.hidden), body:not(.ek) .tabbar:not(.hidden) {
  position: fixed; left: 0; right: 0; bottom: 0; top: auto; margin: 0; width: auto; z-index: 40;
  display: flex; flex-direction: row; align-items: stretch; justify-content: center; gap: 0;
  padding: 0 max(6px, env(safe-area-inset-right)) var(--safe-bottom, 0px) max(6px, env(safe-area-inset-left));
  background: var(--glass-bar) !important; -webkit-backdrop-filter: blur(18px) saturate(1.4) !important; backdrop-filter: blur(18px) saturate(1.4) !important;
  border: 0 !important; border-top: 1px solid var(--sep) !important; box-shadow: none !important; border-radius: 0;
}
html.fit-screen .tabbar:not(.hidden) { position: absolute; bottom: 0; }
.tabbar .menu-fab, .tabbar .tables-fab, .tabbar .home-fab {
  position: static; flex: 1 1 0; width: auto; height: 56px; min-width: 0; margin: 0; padding: 0; gap: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  color: var(--text-muted); font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .01em; text-decoration: none; cursor: pointer;
}
.tabbar .menu-fab svg, .tabbar .tables-fab svg, .tabbar .home-fab svg { width: 23px; height: 23px; color: currentColor; }
.tabbar .fab-txt, .tabbar .tables-fab span { font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.tabbar .menu-fab { color: var(--text); }
.tabbar .menu-fab:active, .tabbar .tables-fab:active, .tabbar .home-fab:active { transform: none; background: var(--seg); }
.tabbar .menu-fab:focus-visible, .tabbar .tables-fab:focus-visible, .tabbar .home-fab:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
/* Inhalt nicht unter der Leiste verstecken */
#app:has(#tabbar:not(.hidden)) main#content { padding-bottom: calc(var(--safe-bottom, 0px) + 88px); }
body.ek:has(#tabbar:not(.hidden)) { padding-bottom: calc(var(--safe-bottom, 0px) + 72px); }
body.ek .fab, body.ek .tm-fab { bottom: calc(var(--safe-bottom, 0px) + 72px); }

/* ---- Startseite: schlichtes Menü-Feld ---- */
.hub-bigmenu { gap: 14px; padding: 14px 14px 14px 14px; border: 1px solid var(--border); border-radius: 16px; box-shadow: none; background: var(--surface); }
.hub-bigmenu:active { background: var(--surface-2); transform: none; }
.hub-bigmenu .hb-logo.nic { width: 56px; height: 56px; border-radius: 14px; }
.hb-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.hb-sub { font-size: 14px; font-weight: 500; }
.hb-go { width: 32px; height: 32px; background: transparent; color: var(--text-muted); }
.hb-go svg { width: 22px; height: 22px; }
.tabbar a, .tabbar a *, .tabbar .home-fab, .tabbar .home-fab * { text-decoration: none !important; }

/* ===== V184: Nur noch hell – keine Dunkeldarstellung mehr, einheitliche Bedienung =====
   Die App ist immer hell, auch wenn das Handy im Dunkelmodus ist (Formularfelder, Scrollleisten
   und Systemdialoge folgen dem hellen Schema). Gemeinsame Grundregeln für alle Bereiche. */
:root { color-scheme: light; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }
/* Tastatur-Fokus überall gut sichtbar, Maus/Touch bleibt ruhig */
:where(a, button, input, select, textarea, summary, [role="button"], [tabindex]):focus-visible { outline: 3px solid var(--accent-strong, #b86e00); outline-offset: 2px; }
:where(a, button, input, select, textarea):focus:not(:focus-visible) { outline: none; }
/* Beträge und Mengen stehen in Spalten sauber untereinander */
.price, .amount, .total, [data-money], .qty, td, th { font-variant-numeric: tabular-nums; }
