/* ==========================================================================
   Version 185 – Gestaltung im Stil der Apple-Webseite
   Grundsätze: helles Grau als Fläche, weiße Karten mit großer Rundung und ohne Kontur,
   Systemschrift (SF) mit großen, fetten, eng gesetzten Titeln, runde Knöpfe in Apple-Blau,
   milchig-unscharfe Leisten, viel Luft, sehr zurückhaltende Farbe.
   Wird als LETZTES Stylesheet geladen (nach design.css).
   ========================================================================== */

/* ---------- 1. Farben, Schrift, Maße ---------- */
:root {
  --ap-blue: #0071e3; /* weißer Text darauf: 4,8:1 */
  --ap-blue-hover: #0062c4;
  --ap-link: #0066cc;
  --ap-gray: #f5f5f7;
  --ap-ink: #1d1d1f;
  --ap-ink-2: #5e5e63;
  --ap-line: rgba(0, 0, 0, .08);
  --ap-fill: rgba(120, 120, 128, .12);
  --ap-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --border: rgba(0, 0, 0, .1);
  --sep: rgba(0, 0, 0, .08);
  --card-edge: transparent;
  --text: #1d1d1f;
  --text-muted: #5e5e63;
  --seg: rgba(120, 120, 128, .12);
  --seg-thumb: #ffffff;
  --glass: rgba(245, 245, 247, .72);
  --glass-bar: rgba(255, 255, 255, .72);
  --glass-solid: rgba(255, 255, 255, .96);
  --topbar-solid: rgba(245, 245, 247, .72);
  --accent: #0071e3;
  --accent-strong: #0066cc;
  --accent-contrast: #ffffff;
  --accent-ink: #0066cc;
  --accent-soft: #e8f1fc;
  --tint: #0066cc;
  --gold: #0066cc;
  --gold-soft: #e8f1fc;
  --radius: 20px;
  --radius-sm: 12px;
  --kc-r: 20px;
  --dz-r: 20px;
  --card-shadow: none;
  --shadow: none;
  /* Bereichsfarben: die Systemfarben von Apple, ruhiger als zuvor */
  --ic-fest: #ff9500;
  --ic-verein: #0071e3;
  --ic-setup: #8e8e93;
  --ic-system: #30a46c;
  --ic-ek: #5e5ce6;
  /* Eigenständige Seiten (Küche, Preisliste, Gäste) */
  --card: #ffffff; --line: rgba(0, 0, 0, .1); --ink: #1d1d1f; --mute: #5e5e63;
}

html, body { font-family: var(--ap-font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { background: var(--bg); color: var(--text); letter-spacing: -.011em; line-height: 1.4706; }
button, input, select, textarea { font-family: inherit; letter-spacing: inherit; }
h1, h2, h3, .display { font-family: var(--ap-font); text-wrap: balance; }
h1, h2 { letter-spacing: -.022em; }
a { color: var(--ap-link); }

/* ---------- 2. Titel: groß, fett, eng ---------- */
.section-heading, .section-heading h2, .view > h2:first-child, .ek-page-head h1, .ek h1 {
  font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
}
.view > h2:first-child, .section-heading { margin-top: 6px; }
h2.sub, .view h3 { letter-spacing: -.02em; }
/* kleine Überschriften über Gruppen: wie bei Apple – grau, schlicht, ohne Großbuchstaben-Schrei */
.eyebrow, .group-title, .card-title, .section-title { color: var(--text-muted); font-weight: 600; letter-spacing: -.005em; }

/* ---------- 3. Leisten: milchig und unscharf ---------- */
.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: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 .5px 0 var(--sep) !important;
}
.tabbar:not(.hidden), .tabbar {
  background: var(--glass-bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-top: .5px solid var(--sep);
}
.tabbar a, .tabbar button { color: #86868b; font-weight: 500; letter-spacing: -.005em; }
.tabbar a.active, .tabbar button.active, .tabbar [aria-current="page"], .tabbar .on { color: var(--ap-blue); }
.user-chip, .storage-chip, #eventChip, .print-chip { background: rgba(0, 0, 0, .05); color: var(--text); font-weight: 500; }

/* ---------- 4. Karten: weiß, groß gerundet, ohne Kontur ---------- */
.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, .tables-summary {
  background: var(--surface); border: 0; border-radius: 20px; box-shadow: none;
}
.item-btn, .order-stat { border-radius: 18px; }
.table-card { border-radius: 20px; }
.view { padding-top: 4px; }

/* ---------- 5. Knöpfe: runde Pillen, Apple-Blau ---------- */
.btn { border-radius: 980px; font-weight: 500; font-size: 17px; letter-spacing: -.022em; min-height: 44px; padding-inline: 22px; box-shadow: none; transition: background-color .2s, transform .1s, opacity .2s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.primary:not(:disabled), .btn.big.primary:not(:disabled) { background: var(--ap-blue); color: #fff; box-shadow: none; }
.btn.primary:not(:disabled):hover { background: var(--ap-blue-hover); }
.btn.primary:disabled { background: #d2d2d7; color: #fff; }
.btn.primary .badge, .btn.primary .total { background: rgba(255, 255, 255, .22); color: #fff; }
.btn.secondary, .btn:where(:not(.primary):not(.danger):not(.link)):not(.payall-btn):not(.pay-btn):not(.failed):not(.danger-outline) { background: #e8e8ed; color: var(--ap-ink); }
.btn.ghost { background: #e8e8ed; color: var(--ap-ink); border: 0; }
.btn.link { background: transparent; color: var(--ap-link); }
.btn.danger { background: #fbe9e9; color: #d70015; }
.btn.small, .btn.sm { min-height: 34px; padding-inline: 16px; font-size: 14px; }
.icon-btn:active { background: rgba(0, 0, 0, .06); }

/* ---------- 6. Eingabefelder: weich, hell, blauer Fokus ---------- */
.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: #fff; border: 1px solid #d2d2d7; border-radius: 12px; color: var(--ap-ink); min-height: 44px; font-size: 17px;
}
.card .field-input, .card input[type="text"], .card input[type="number"], .card select, .card textarea { background: #f5f5f7; border-color: transparent; }
.field-input:focus, input:focus, select:focus, textarea:focus { border-color: var(--ap-blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .22); background: #fff; }
::placeholder { color: #86868b; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ap-blue); }
:where(a, button, input, select, textarea, summary, [role="button"], [tabindex]):focus-visible { outline: 3px solid rgba(0, 113, 227, .55); outline-offset: 2px; }

/* ---------- 7. Umschalter (Segmente) ---------- */
.seg, .segmented, .tabs-seg { background: var(--seg); border-radius: 10px; }
.seg button.on, .seg .on, .segmented .on, .seg [aria-selected="true"] { background: #fff; color: var(--ap-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }

/* ---------- 8. Startseite ---------- */
#hubScreen { background: var(--bg); }
.hub-bigmenu { background: #fff; border: 0; border-radius: 24px; box-shadow: none; }
.hub-bigmenu .hb-title { font-size: 21px; font-weight: 600; letter-spacing: -.022em; }
.hub-bigmenu .hb-sub { color: var(--text-muted); }
.hub-bigmenu .hb-go, .hb-go { background: var(--ap-blue); color: #fff; }
.hub-bigmenu:active { transform: scale(.985); }
.hb-badge, .am-badge { background: #d70015; color: #fff; }
.hb-hint { background: var(--ap-blue); color: #fff; }
#hubSearch, .hub-search input, input.hub-search { background: rgba(120, 120, 128, .12); border: 0; border-radius: 12px; min-height: 40px; }

/* ---------- 9. Menü-Fenster: wie die Einstellungen am iPhone (gruppierte Listen) ---------- */
.modal-sheet, .sheet { border-radius: 28px 28px 0 0; background: #f5f5f7; }
.menu-sheet { background: #f5f5f7; padding: 8px 16px calc(20px + var(--safe-bottom, 0px)); }
.menu-sheet .menu-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.menu-sheet .menu-close { background: rgba(120, 120, 128, .16); color: #5e5e63; }
.modal-sheet.menu-sheet .more-group { margin: 20px 0 7px 16px; padding: 0; font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: -.003em; color: #5e5e63; }
.modal-sheet.menu-sheet .more-list {
  display: block; background: #fff; border-radius: 16px; overflow: hidden; padding: 0; gap: 0;
}
.modal-sheet.menu-sheet .more-item {
  display: flex; flex-direction: row; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 8px 16px;
  background: transparent; border: 0; border-radius: 0; text-align: left; font-size: 17px; font-weight: 400; color: var(--ap-ink); position: relative;
}
.modal-sheet.menu-sheet .more-item + .more-item::before { content: ''; position: absolute; top: 0; left: 62px; right: 0; height: .5px; background: var(--sep); }
.modal-sheet.menu-sheet .more-item::after { content: ''; width: 8px; height: 8px; margin-left: auto; border-top: 2px solid #c7c7cc; border-right: 2px solid #c7c7cc; transform: rotate(45deg); flex: none; }
.modal-sheet.menu-sheet .more-item:active { background: #e5e5ea; }
.modal-sheet.menu-sheet .more-item.active { background: #e8f1fc; color: var(--ap-link); font-weight: 500; }
.modal-sheet.menu-sheet .more-item .nic { width: 30px; height: 30px; flex: none; }
.nic.nic, .hub-ico.nic.nic, .am-icon .am-ico.nic.nic { border-radius: 8px; }

/* ---------- 10. Listen, Abzeichen, kleine Bausteine ---------- */
.tm-pill, .tc-pill, .role-tag, .mfa-badge, .cl-pill { font-weight: 500; letter-spacing: -.005em; }
hr, .sep { border-color: var(--sep); }
.info, .hint, .note { border-radius: 16px; }

/* ---------- 11. Anzeigeseiten (Küche, Preisliste, Gäste) ---------- */
.kc-chip.on { background: var(--ap-blue); color: #fff; }
.kc-chip, .pl-chip { border-radius: 980px; }
.bs-cat, .gv-card { border: 0; border-radius: 22px; }
.bs-cat h2 { color: var(--ap-blue); letter-spacing: .02em; font-weight: 600; }
.gv-btn, .bs-send, .bs-cta { border-radius: 980px; font-weight: 500; }

/* ---------- 12. Schrift auf Blau: immer weiß ---------- */
.fab, .tm-fab, .hf-btn, .st-inc, .cl-btn, .avatar, .hub-account, .howto-ok, .hub-editbar .hub-done, .rb-top li:first-child .rb-rank,
.item-btn .add, .item-plus, .tc-add { background: var(--ap-blue); color: #fff; box-shadow: none; }
.fab, .tm-fab { box-shadow: 0 4px 16px rgba(0, 113, 227, .35); }
.howto-list li::before { background: var(--ap-blue); color: #fff; }
.howto-card { background: #fff; border: 0; border-radius: 22px; }
::selection { background: rgba(0, 113, 227, .25); color: inherit; }
.ov-kpi.big { background: #1d1d1f; color: #f5f5f7; }
.ov-kpi.big span { color: rgba(255, 255, 255, .7); letter-spacing: 0; }
.ov-kpi.big b { color: #fff; }
.ov-bar, .ov-meter i, .cl-up i span, .cl-quota i span, .rb-bar.peak i { background: var(--ap-blue); }
.pay-checkbox:checked { background: var(--ap-blue); border-color: var(--ap-blue); }
.status-pill.open { background: #e8f1fc; color: var(--ap-link); }
/* Das Wappen-Zeichen im Kopf bleibt in den Vereinsfarben; Start-Titel darf umbrechen statt abgeschnitten zu werden */
#hubScreen .hub-head .hub-title h1 { font-size: clamp(20px, 6vw, 26px); font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
/* Kopfzeile der Unterseiten: Titel mittelgroß und einzeilig, nicht wie die Seitentitel */
.ek-top h1, body .ek-top .ek-title { font-size: 22px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- 13. Lesbarkeit: Kontrast mindestens 4,5 : 1 (mit Prüfer gemessen) ---------- */
.table-card[data-st="new"] .tc-tile, .table-card[data-st="new"] .tc-pill, .tc-pill.new { color: #0a5bb5; }
.tc-tile { background: #737880; color: #fff; }
.copyright, .af-copy, .hub-note, .ek-user-version { color: #5e5e63; opacity: 1; }
.kc-done { color: #fff; }
.kc-wait { color: #146c3e; }
.hub-tip, .app-foot .af-copy, .app-foot { opacity: 1; }
.tc-tile { background: #6b7079; }
.prev-orders-btn { color: #0059b3; }
.btn.payall-btn { background: #1a7f4b; color: #fff; }
.btn.payall-btn .btn-count { background: rgba(0, 0, 0, .2); color: #fff; }

/* ---------- 14. Untere Leiste: aktiver Bereich blau (wie die Tableiste bei Apple) ---------- */
.tabbar .menu-fab, .tabbar .tables-fab, .tabbar .home-fab { color: #6b6b70; font-weight: 500; }
.tabbar .menu-fab.on, .tabbar .tables-fab.on, .tabbar .home-fab.on { color: var(--ap-blue); }
.tabbar .menu-fab.on .fab-txt, .tabbar .tables-fab.on span { font-weight: 600; }
.tabbar .menu-fab:active, .tabbar .tables-fab:active, .tabbar .home-fab:active { background: transparent; opacity: .55; }

/* ---------- 15. Menü: Trennlinien und Pfeile (design.css blendet sie mit !important aus) ---------- */
.modal-sheet.menu-sheet .more-item::before, .modal-sheet.menu-sheet .more-item::after { display: block !important; }
.modal-sheet.menu-sheet .more-item:first-child::before { display: none !important; }
.modal-sheet.menu-sheet .more-item::after { opacity: .9; }

/* ---------- 16. Reiter (Kasse, Verlauf …): scrollen sauber, rechts weicher Rand statt abgeschnittener Buchstaben ---------- */
.kasse-tabs, .category-tabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.kasse-tabs::-webkit-scrollbar, .category-tabs::-webkit-scrollbar { display: none; }
.kasse-tabs > *, .category-tabs > * { scroll-snap-align: start; flex: none; }

/* ---------- 17. Weitere Kontrast- und Flächenkorrekturen ---------- */
.hf-pill.entwurf { color: #8a5200; }
.st-row .plus, b.plus, .st-log .plus { color: #176b3f; }
.gs-chip { color: #146c3e; }
.gs-hero { background: #1a7f4b; box-shadow: none; }
.gs-hero small, .gs-hero span { opacity: 1; }
.st-hist .plus, .st-hist b.plus { color: #176b3f; }
.ek h1, .ek-page-head h1 { line-height: 1.12; margin: 6px 0 8px; }

/* ---------- 18. Gästeseite und Anzeigen: runde Knöpfe, ruhige Übergänge ---------- */
.bs-btn, .gv-btn { border-radius: 980px; font-weight: 500; letter-spacing: -.022em; }
.bs-bar button { border-radius: 980px; font-weight: 500; }
.bs-btn.sec { background: #e8f1fc; color: var(--ap-link); }
.bs-it { border-top-color: var(--ap-line); }
/* sanfte, iOS-ähnliche Bewegung für Fenster von unten */
.modal-sheet { animation-timing-function: cubic-bezier(.32, .72, 0, 1); animation-duration: .38s; }
@media (prefers-reduced-motion: reduce) { .modal-sheet { animation: none; } }

/* ==========================================================================
   Version 187 – näher am iOS-System: Gruppierte Listen (Inset Grouped), Systemhintergrund #f2f2f7,
   Navigationsleiste/Tableiste wie iOS, Schalter statt Häkchen, Segmentschalter, Suchfeld, Mitteilungen.
   ========================================================================== */
:root {
  --bg: #f2f2f7; --ap-gray: #f2f2f7; --surface-2: #f2f2f7; --topbar-solid: rgba(242, 242, 247, .78); --glass: rgba(242, 242, 247, .78);
  --sep: rgba(60, 60, 67, .22); --border: rgba(60, 60, 67, .16);
  --radius: 16px; --kc-r: 16px; --dz-r: 16px;
  --ios-cell: 16px;
}
html, body { background: var(--bg); }

/* ---------- 19. Karten und Zellen: Inset-Grouped ---------- */
.card, .table-card, .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, .tables-summary { border-radius: var(--ios-cell); }
.item-btn, .order-stat { border-radius: 14px; }
.ov-kpi.big { border-radius: var(--ios-cell); }
.howto-card { border-radius: var(--ios-cell); }
/* Abschnittsüberschriften wie bei iOS: klein, grau, Großbuchstaben */
.stat-label, .ov-card h3, .kpi h3, .card h3.sub, .group-label, .hub-label, .section-sub { font-size: 13px; font-weight: 400; letter-spacing: -.003em; color: var(--text-muted); text-transform: uppercase; }

/* ---------- 20. Knöpfe: iOS „gefüllt“ (Rechteck mit 14 Punkt Rundung), kleine als Kapsel ---------- */
.btn { border-radius: 14px; min-height: 50px; font-size: 17px; font-weight: 600; letter-spacing: -.022em; }
.btn.secondary, .btn.ghost { font-weight: 500; }
.btn.small, .btn.sm, .btn.compact, .chip-btn, .filter-chip { border-radius: 999px; min-height: 34px; font-size: 15px; font-weight: 500; }
.btn:active:not(:disabled) { transform: none; opacity: .72; }
.btn.primary:not(:disabled):hover { background: var(--ap-blue); }
.btn.link, .link-btn { font-weight: 400; }

/* ---------- 21. Eingabe: Suchfeld und Textfelder wie iOS ---------- */
.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 {
  border-radius: 10px; font-size: 17px; caret-color: var(--ap-blue);
}
.hub-search input, #hubSearch, .menu-search input, input[type="search"] { background: rgba(118, 118, 128, .12); border: 0; border-radius: 10px; min-height: 40px; }
.hub-search input:focus, #hubSearch:focus, .menu-search input:focus, input[type="search"]:focus { background: rgba(118, 118, 128, .16); box-shadow: 0 0 0 3px rgba(0, 113, 227, .2); }

/* ---------- 22. Schalter statt Häkchen ---------- */
.modal-sheet label > input[type="checkbox"], .gast-switch input[type="checkbox"], .mfa-remember input[type="checkbox"], .item-so input[type="checkbox"], .item-so-row input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 51px; height: 31px; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 31px; background: #e9e9ea; cursor: pointer; transition: background-color .25s;
}
.modal-sheet label > input[type="checkbox"]::after, .gast-switch input[type="checkbox"]::after, .mfa-remember input[type="checkbox"]::after, .item-so input[type="checkbox"]::after, .item-so-row input[type="checkbox"]::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16), 0 3px 1px rgba(0, 0, 0, .1); transition: transform .25s cubic-bezier(.32, .72, 0, 1);
}
.modal-sheet label > input[type="checkbox"]:checked, .gast-switch input[type="checkbox"]:checked, .mfa-remember input[type="checkbox"]:checked, .item-so input[type="checkbox"]:checked, .item-so-row input[type="checkbox"]:checked { background: #30a46c; }
.modal-sheet label > input[type="checkbox"]:checked::after, .gast-switch input[type="checkbox"]:checked::after, .mfa-remember input[type="checkbox"]:checked::after, .item-so input[type="checkbox"]:checked::after, .item-so-row input[type="checkbox"]:checked::after { transform: translateX(20px); }
.modal-sheet label:has(> input[type="checkbox"]), .gast-switch, .mfa-remember { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-direction: row-reverse; text-align: left; }

/* ---------- 23. Segmentschalter wie iOS ---------- */
.tm-seg, .cl-seg, .category-tabs, .seg { background: rgba(118, 118, 128, .12); border-radius: 10px; padding: 2px; }
.category-tab { border-radius: 8px; font-size: 14px; font-weight: 500; color: #3c3c43; }
.category-tab.active { background: #fff; color: #000; font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }

/* ---------- 24. Leisten: Navigationsleiste und Tableiste wie iOS ---------- */
.tabbar .menu-fab, .tabbar .tables-fab, .tabbar .home-fab { height: 52px; gap: 2px; font-size: 10.5px; letter-spacing: .01em; }
.tabbar .menu-fab svg, .tabbar .tables-fab svg, .tabbar .home-fab svg { width: 25px; height: 25px; }
.tabbar .fab-txt, .tabbar .tables-fab span, .tabbar .home-fab span { font-size: 10.5px; font-weight: 500; }
.topbar, #app .topbar, .ek-top { box-shadow: 0 .5px 0 var(--sep) !important; }
.back-btn, .ek-back { color: var(--ap-blue); }
.ek-back { font-weight: 400; }

/* ---------- 25. Mitteilungen (Toast) als iOS-Banner ---------- */
.toast { background: rgba(255, 255, 255, .88); color: #1c1c1e; border-radius: 16px; padding: 13px 18px; font-size: 15px; font-weight: 500; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 8px 30px rgba(0, 0, 0, .16), 0 0 0 .5px rgba(0, 0, 0, .06); }
.toast.ok { background: rgba(255, 255, 255, .88); color: #146c3e; }
.toast.err { background: rgba(255, 255, 255, .92); color: #c0111f; }

/* ---------- 26. Fenster (Sheets) ---------- */
.modal-sheet, .sheet { border-radius: 30px 30px 0 0; }
.modal-backdrop { background: rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* ---------- 27. Startseite: großer Titel, Suchfeld, ein großes Menü-Feld ---------- */
#hubScreen { background: var(--bg); }
#hubScreen .hub-inner { padding-top: calc(var(--safe-top, 0px) + 14px); }
#hubScreen .hub-head { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 12px; padding: 4px 2px 12px; }
#hubScreen .hub-head > picture, #hubScreen .hub-head > .hub-logo { grid-row: 1; grid-column: 1; justify-self: start; }
#hubScreen .hub-logo { width: 44px; height: 50px; }
#hubScreen .hub-head > .hub-account { grid-row: 1; grid-column: 2; }
#hubScreen .hub-head > .hub-title { grid-row: 2; grid-column: 1 / -1; min-width: 0; }
#hubScreen .hub-head .hub-title h1 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; white-space: normal; overflow: visible; text-overflow: clip; }
#hubScreen .hub-head .hub-title p, #hubHello { margin: 4px 0 0; font-size: 17px; color: var(--text-muted); font-weight: 400; }
#hubScreen .hub-account { width: 36px; height: 36px; background: rgba(118, 118, 128, .14); color: #3c3c43; }
#hubScreen .hub-search { margin: 2px 0 18px; }
#hubScreen .hub-search .hs-glass { left: 11px; width: 17px; height: 17px; }
#hubScreen .hub-search input { padding-left: 36px; font-size: 17px; }

#hubBigMenu.hub-bigmenu {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 96px; padding: 16px 16px 16px 16px; text-align: left;
  background: #fff; border: 0; border-radius: 20px; box-shadow: none; position: relative; cursor: pointer; color: var(--text);
  transition: opacity .15s, transform .2s cubic-bezier(.32, .72, 0, 1);
}
#hubBigMenu.hub-bigmenu:active { opacity: .78; transform: scale(.985); }
#hubBigMenu .hb-logo { width: 64px; height: 64px; flex: none; border-radius: 15px; }
#hubBigMenu .hb-logo svg { width: 38px; height: 38px; }
#hubBigMenu .hb-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
#hubBigMenu .hb-title { font-size: 22px; font-weight: 600; letter-spacing: -.022em; line-height: 1.15; color: #000; }
#hubBigMenu .hb-sub { font-size: 15px; color: var(--text-muted); font-weight: 400; }
#hubBigMenu .hb-badge { order: 2; }
#hubBigMenu .hb-go { order: 3; width: 14px; height: 24px; background: transparent; border-radius: 0; color: #c4c4c7; }
#hubBigMenu .hb-go svg { width: 14px; height: 22px; stroke-width: 2.2; }
.hub-tip { font-size: 13px; line-height: 1.4; margin: 14px 8px 0; color: var(--text-muted); }
.hub-tip img { opacity: .9; }

/* ---------- 28. Menü-Fenster: wie die iPhone-Einstellungen ---------- */
.modal-sheet.menu-sheet { background: #f2f2f7; padding: 8px 16px calc(24px + var(--safe-bottom, 0px)); }
.modal-sheet.menu-sheet::before { content: ''; display: block; width: 36px; height: 5px; border-radius: 3px; background: rgba(60, 60, 67, .3); margin: 2px auto 10px; }
.menu-sheet .menu-head { margin: 0 0 8px; }
.menu-sheet .menu-head h2 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.menu-search { position: relative; margin: 0 0 4px; }
.menu-search svg { position: absolute; left: 11px; top: 11px; width: 17px; height: 17px; color: #6e6e73; pointer-events: none; }
.menu-search input { width: 100%; padding: 0 12px 0 36px; font-size: 17px; }
.menu-search .menu-empty { margin: 18px 4px 6px; text-align: center; color: var(--text-muted); font-size: 15px; }
.modal-sheet.menu-sheet .more-group { margin: 24px 0 8px 16px; font-size: 13px; letter-spacing: -.003em; }
.modal-sheet.menu-sheet .more-list { border-radius: 14px; }
.modal-sheet.menu-sheet .more-item { min-height: 50px; padding: 9px 14px 9px 16px; gap: 14px; font-size: 17px; letter-spacing: -.022em; }
.modal-sheet.menu-sheet .more-item + .more-item::before { left: 60px; background: var(--sep); }
.modal-sheet.menu-sheet .more-item::after { width: 7px; height: 7px; border-width: 2px; border-color: #c4c4c7; }
.modal-sheet.menu-sheet .more-item:active { background: #d1d1d6; }
.modal-sheet.menu-sheet .more-item.active { background: #fff; color: var(--text); font-weight: 600; }
.modal-sheet.menu-sheet .more-item.active::after { border-color: var(--ap-blue); }
.modal-sheet.menu-sheet .more-item .nic { width: 30px; height: 30px; border-radius: 7px; }
.modal-sheet.menu-sheet .more-item .nic svg { width: 19px; height: 19px; }
.modal-sheet.menu-sheet .more-item.hidden, .modal-sheet.menu-sheet .more-list.hidden, .modal-sheet.menu-sheet .more-group.hidden { display: none !important; }
.back-btn, .ek-back, .back-btn span { color: var(--ap-link); }
/* Ausverkauft-Schalter in der Speisekarte (ältere Regel mit höherer Gewichtung überstimmen) */
.item-row .item-so input[type="checkbox"] { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 51px; height: 31px; margin: 0; border: 0; border-radius: 31px; background: #e9e9ea; cursor: pointer; transition: background-color .25s; accent-color: auto; }
.item-row .item-so input[type="checkbox"]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16), 0 3px 1px rgba(0, 0, 0, .1); transition: transform .25s cubic-bezier(.32, .72, 0, 1); }
.item-row .item-so input[type="checkbox"]:checked { background: #d70015; }
.item-row .item-so input[type="checkbox"]:checked::after { transform: translateX(20px); }
.item-row .item-so { flex-direction: row-reverse; justify-content: space-between; font-size: 15px; font-weight: 400; color: var(--text); padding-top: 0; }
.item-row .item-so.on { color: #c0111f; font-weight: 500; }
.ek-top .ek-back, .ek-top .ek-back * { color: var(--ap-link); }
.modal-sheet.menu-sheet .more-item.first-vis::before { display: none !important; }
#hubBigMenu.hub-bigmenu { max-width: none; margin-left: 0; margin-right: 0; }

/* ---------- V192: neutrale Startseite (Musikverein / Geschäftlich), neutrales Ladebild und Login ---------- */
.splash-glyph, .auth-glyph, .start-glyph {
  display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff;
  background: linear-gradient(160deg, #58a6ff, #0a64e6); box-shadow: 0 6px 18px rgba(10, 100, 230, .28);
}
.splash-glyph { width: 84px; height: 84px; border-radius: 22px; margin: 0 0 34px; animation: ap-logo .9s cubic-bezier(.16, 1, .3, 1) .1s both; }
.splash-glyph svg { width: 54px; height: 54px; }
.auth-glyph { width: 68px; height: 68px; border-radius: 18px; margin: 0 auto 16px; }
.auth-glyph svg { width: 44px; height: 44px; }
.start-glyph { width: 44px; height: 44px; border-radius: 12px; box-shadow: none; }
.start-glyph svg { width: 30px; height: 30px; }
.splash-spin { margin-top: 0; }

.start-screen { position: fixed; inset: 0; z-index: 30; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg, #f2f2f7); color: var(--text); }
.start-screen.hidden { display: none; }
.start-inner { width: 100%; max-width: 560px; margin: 0 auto; padding: calc(var(--safe-top, 0px) + 14px) max(18px, env(safe-area-inset-left)) calc(var(--safe-bottom, 0px) + 28px); min-height: 100%; box-sizing: border-box; }
.start-head { display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 12px; padding: 4px 2px 8px; }
.start-head > .start-glyph { grid-row: 1; grid-column: 1; justify-self: start; }
.start-head > .hub-account { grid-row: 1; grid-column: 2; width: 36px; height: 36px; background: rgba(118, 118, 128, .14); color: #3c3c43; }
.start-head > .start-title { grid-row: 2; grid-column: 1 / -1; min-width: 0; }
.start-title h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.08; text-transform: none; }
.start-title p { margin: 4px 0 0; font-size: 17px; color: var(--text-muted); font-weight: 400; }
.start-lead { margin: 18px 4px 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text-muted); }
.start-areas { display: flex; flex-direction: column; gap: 12px; }
.start-card {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 104px; padding: 16px; text-align: left; background: #fff; border: 0; border-radius: 20px;
  color: var(--text); cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; transition: opacity .15s, transform .2s cubic-bezier(.32, .72, 0, 1);
}
.start-card:active { opacity: .78; transform: scale(.985); }
.start-card:focus-visible { outline: 3px solid var(--ap-blue, #0071e3); outline-offset: 3px; }
.sc-ic { width: 64px; height: 64px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; color: #fff; background: linear-gradient(160deg, #8e8e93, #5a5a60); }
.sc-ic[data-area="k"] { background: linear-gradient(145deg, #5d97ff, #1456d9 58%, #0b3596); }
.sc-ic[data-area="verein"] { background: linear-gradient(145deg, #ffcf45, #f5a10f 52%, #dd3f2b); }
.sc-ic svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.sc-ic svg { width: 34px; height: 34px; }
.sc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.sc-title { font-size: 21px; font-weight: 600; letter-spacing: -.022em; }
.sc-sub { font-size: 14.5px; color: var(--text-muted); line-height: 1.3; }
.sc-go { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ap-blue, #0071e3); color: #fff; }
.sc-go svg { width: 17px; height: 17px; }

/* Rückweg vom Musikverein-Menü zur Startseite */
.area-back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 2px -6px; padding: 6px 10px 6px 4px; border: 0; background: none; color: var(--ap-blue, #0071e3); font: inherit; font-size: 17px; cursor: pointer; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.area-back svg { width: 22px; height: 22px; }
.area-back:active { opacity: .55; }
.splash { background: var(--bg, #f2f2f7); }
/* Anmeldung neutral: Blau statt Vereinsfarben */
#authScreen .btn.primary, #authScreen button[type="submit"], #authScreen .primary { background: var(--ap-blue, #0071e3); background-image: none; color: #fff; border-color: transparent; }
#authScreen a, #authScreen .link-btn, #authScreen .linklike { color: var(--ap-blue, #0071e3); }
#authScreen input:focus { border-color: var(--ap-blue, #0071e3); box-shadow: 0 0 0 3px rgba(0, 113, 227, .18); outline: none; }

/* ===== V208: zuverlässiges Antippen ===== */
/* Kein Doppeltipp-Zoom-Warten, kein graues Aufblitzen, Antippen reagiert sofort */
a, button, input, select, textarea, summary, label, [role="button"], [role="tab"], [data-act], [data-go], [data-tab], .btn, .tab, .item-btn, .table-card, .more-item, .qty-btn, .k-row, .k-card, .k-menurow, .mi-row, .am-app {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* sichtbare Rückmeldung beim Drücken – man sieht sofort, dass der Tap angekommen ist */
.btn:active, button:active, .item-btn:active, .more-item:active, .k-menurow:active, .k-row[data-go]:active, .k-card[data-go]:active, [role="tab"]:active { filter: brightness(.94); transition: none; }
.k-tabs button:active, .k-subtabs button:active { transform: scale(.97); }
/* Mengenzeilen: kurzes Aufblitzen nach +/− */
.menu-list .mi-row.pulse { animation: mi-pulse .22s ease-out; }
@keyframes mi-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tint, #0a84ff) 45%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
/* genug große Trefferfläche für Daumen (mind. 44 px) */
.menu-list .mi-row [data-minus], .menu-list .mi-row [data-plus] { min-width: 44px; min-height: 44px; }
.k-tabs button, .k-subtabs button { min-height: 40px; }
/* Ladebalken im Geschäftlich-Bereich */
body.k-loading::before { content: ''; position: fixed; z-index: 9999; top: 0; left: 0; height: 3px; width: 100%; pointer-events: none; background: linear-gradient(90deg, transparent, var(--tint, #0a84ff), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: k-bar 1s linear infinite; }
@keyframes k-bar { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .menu-list .mi-row.pulse, body.k-loading::before { animation: none; } }
