/* GastroFlow – Design-System. Dark by default, Light optional. Mobile-first. */
:root {
  --bg: #121316; --bg-2: #18191d; --surface: #1f2126; --surface-2: #272a30; --surface-3: #31343b;
  --border: #33363e; --text: #f2f2f3; --text-2: #a8abb3; --text-3: #6f737c;
  --accent: #f97316; --accent-2: #fb923c; --accent-ink: #1a0d03; --accent-soft: rgba(249, 115, 22, .14);
  --green: #22c55e; --green-soft: rgba(34, 197, 94, .14); --orange: #f59e0b; --orange-soft: rgba(245, 158, 11, .16);
  --red: #ef4444; --red-soft: rgba(239, 68, 68, .15); --blue: #3b82f6; --blue-soft: rgba(59, 130, 246, .15);
  --radius: 14px; --radius-sm: 10px; --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); --tap: 48px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f4f5; --bg-2: #ececee; --surface: #ffffff; --surface-2: #f4f4f6; --surface-3: #e7e7ea;
  --border: #e1e1e5; --text: #17181b; --text-2: #5b5e66; --text-3: #8d9098;
  --accent-ink: #fff; --shadow: 0 10px 30px rgba(0, 0, 0, .10);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 22px; font-weight: 700; } h2 { font-size: 18px; font-weight: 650; } h3 { font-size: 15px; font-weight: 650; }
.muted { color: var(--text-2); } .dim { color: var(--text-3); } .small { font-size: 13px; } .tiny { font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; } .right { text-align: right; } .center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; } .col { display: flex; flex-direction: column; gap: 10px; }
.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .between { justify-content: space-between; } .gap-s { gap: 6px; } .gap-l { gap: 16px; }
.hidden { display: none !important; } .ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s { width: 16px; height: 16px; } svg.i.l { width: 26px; height: 26px; }

/* ── Layout ── */
.app { display: flex; height: 100dvh; }
.sidebar { width: 248px; background: var(--bg-2); border-right: 1px solid var(--border); display: none; flex-direction: column; padding: 14px 10px; gap: 2px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 14px; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-weight: 800; overflow: hidden; flex: none; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-weight: 700; } .brand-sub { font-size: 11.5px; color: var(--text-3); }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 550; position: relative; transition: background .15s, color .15s; }
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-badge { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--border); background: var(--bg); min-height: 56px; position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 18px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content { flex: 1; overflow-y: auto; padding: 14px; padding-bottom: calc(86px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.content.full { padding: 0; padding-bottom: calc(70px + var(--safe-b)); display: flex; flex-direction: column; overflow: hidden; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--bg-2); border-top: 1px solid var(--border); padding-bottom: var(--safe-b); z-index: 20; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; color: var(--text-3); text-decoration: none; font-size: 10.5px; font-weight: 600; border: 0; background: none; position: relative; }
.tab.active { color: var(--accent); }
.tab .nav-badge { position: absolute; top: 3px; left: 54%; margin: 0; }
@media (min-width: 900px) {
  .sidebar { display: flex; } .tabbar { display: none; }
  .content { padding: 22px; } .content.full { padding: 0; }
  .topbar { padding: 12px 22px; } .only-mobile { display: none !important; }
}
@media (max-width: 899px) { .only-desktop { display: none !important; } }

/* ── Komponenten ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer; transition: transform .08s, background .15s, opacity .15s; user-select: none; white-space: nowrap; }
.btn:hover { background: var(--surface-3); } .btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } .btn.primary:hover { background: var(--accent-2); }
.btn.danger { background: var(--red-soft); border-color: transparent; color: var(--red); }
.btn.success { background: var(--green); border-color: var(--green); color: #04150a; }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--surface-2); }
.btn.lg { min-height: 54px; font-size: 16px; border-radius: var(--radius); padding: 0 20px; }
.btn.sm { min-height: 34px; padding: 0 11px; font-size: 13px; }
.btn.icon { width: 42px; padding: 0; } .btn.icon.sm { width: 34px; }
.btn.block { width: 100%; }
.btn .spin { width: 18px; height: 18px; border-width: 2px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.card.pad-l { padding: 18px; } .card.flat { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 12px; }
.grid.kpi { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.grid.two { grid-template-columns: 1fr; } @media (min-width: 1000px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.kpi .card .label { color: var(--text-2); font-size: 12.5px; font-weight: 550; display: flex; align-items: center; gap: 6px; }
.kpi .card .value { font-size: 23px; font-weight: 750; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .card .sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 650; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge.green { background: var(--green-soft); color: var(--green); } .badge.orange { background: var(--orange-soft); color: var(--orange); }
.badge.red { background: var(--red-soft); color: var(--red); } .badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 5px; } .field > span { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-2); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr; } @media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.seg { display: flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 3px; gap: 3px; overflow-x: auto; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px 12px; border-radius: 9px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface-3); color: var(--text); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 600; white-space: nowrap; cursor: pointer; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.table { width: 100%; border-collapse: collapse; } .table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 650; background: var(--surface); position: sticky; top: 0; }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); } .list-item:last-child { border-bottom: 0; }
.empty { text-align: center; padding: 44px 16px; color: var(--text-3); } .empty svg.i { width: 40px; height: 40px; margin-bottom: 8px; opacity: .6; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; } .section-title:first-child { margin-top: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-size: 13px; overflow: hidden; flex: none; color: var(--text-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; } .avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.green { background: var(--green); } .dot.orange { background: var(--orange); } .dot.red { background: var(--red); } .dot.gray { background: var(--text-3); } .dot.blue { background: var(--blue); }

/* ── Overlay: Modal / Sheet / Toast ── */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; backdrop-filter: blur(2px); }
.modal { background: var(--surface); border: 1px solid var(--border); width: 100%; max-height: 92dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: flex; flex-direction: column; animation: up .2s cubic-bezier(.2, .8, .2, 1); padding-bottom: var(--safe-b); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.modal-head h2 { flex: 1; } .modal-body { padding: 16px; overflow-y: auto; flex: 1; } .modal-foot { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (min-width: 700px) { .overlay { align-items: center; padding: 20px; } .modal { max-width: 560px; border-radius: var(--radius-lg); max-height: 88dvh; } .modal.wide { max-width: 860px; } }
.toasts { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { background: var(--surface-3); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: flex-start; animation: drop .25s cubic-bezier(.2, .8, .2, 1); pointer-events: auto; }
.toast.ok { border-left-color: var(--green); } .toast.err { border-left-color: var(--red); } .toast.info { border-left-color: var(--blue); }
.toast b { display: block; } .toast .x { margin-left: auto; cursor: pointer; opacity: .6; }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(30px); opacity: 0; } } @keyframes drop { from { transform: translateY(-12px); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes pulse { 50% { opacity: .55; } }
.spin { width: 28px; height: 28px; border: 3px solid var(--surface-3); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.loading { display: grid; place-items: center; padding: 60px; } .skeleton { background: var(--surface-2); border-radius: 10px; animation: pulse 1.2s infinite; }
.fade-in { animation: fade .2s; }

/* ── Verbindungsstatus ── */
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; cursor: default; }
.conn.online .dot { background: var(--green); } .conn.offline { background: var(--red-soft); color: var(--red); } .conn.offline .dot { background: var(--red); }
.conn.syncing { background: var(--blue-soft); color: var(--blue); } .conn.syncing .dot { background: var(--blue); animation: pulse 1s infinite; }
.conn.pending { background: var(--orange-soft); color: var(--orange); } .conn.pending .dot { background: var(--orange); }
.conn.failed { background: var(--red-soft); color: var(--red); } .conn.failed .dot { background: var(--red); }

/* ── Login ── */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 400px; } .login-card .brand-logo { width: 60px; height: 60px; border-radius: 18px; font-size: 26px; margin: 0 auto 12px; }
.login-title { text-align: center; margin-bottom: 22px; } .login-title p { margin: 6px 0 0; color: var(--text-2); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.pin-pad button { height: 62px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-size: 22px; font-weight: 650; cursor: pointer; }
.pin-pad button:active { background: var(--surface-3); transform: scale(.97); }
.pin-dots { display: flex; justify-content: center; gap: 12px; margin: 10px 0 4px; } .pin-dots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text-3); } .pin-dots span.on { background: var(--accent); border-color: var(--accent); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.staff-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13px; }

/* ── Tische & Zettel ── */
.ticket { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 13px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); cursor: pointer; text-align: left; transition: transform .1s, border-color .15s; min-height: 112px; overflow: hidden; }
.ticket:active { transform: scale(.98); } .ticket:hover { border-color: var(--surface-3); }
.ticket::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--text-3); }
.ticket.free { opacity: .78; border-style: dashed; } .ticket.free::before { background: transparent; }
.ticket.t-green::before { background: var(--green); } .ticket.t-orange::before { background: var(--orange); } .ticket.t-red::before { background: var(--red); }
.ticket .t-name { font-weight: 700; font-size: 16px; } .ticket .t-total { font-weight: 750; font-size: 18px; margin-top: auto; font-variant-numeric: tabular-nums; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12.5px; padding: 2px 8px; border-radius: 999px; }
.timer.green { background: var(--green-soft); color: var(--green); } .timer.orange { background: var(--orange-soft); color: var(--orange); } .timer.red { background: var(--red-soft); color: var(--red); }
.idle-hint { color: var(--orange); font-size: 12px; font-weight: 600; display: flex; gap: 4px; align-items: center; }

/* ── Bestellaufnahme ── */
.order-layout { display: flex; flex: 1; min-height: 0; }
.order-products { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.order-tools { padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--border); }
.product-grid { flex: 1; overflow-y: auto; padding: 12px 14px 120px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); align-content: start; }
.product { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 92px; padding: 11px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--cat, var(--border)); cursor: pointer; text-align: left; user-select: none; transition: transform .08s, background .15s; }
.product:active { transform: scale(.96); background: var(--surface-2); }
.product .p-name { font-weight: 650; line-height: 1.25; } .product .p-price { font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.product.disabled { opacity: .4; pointer-events: none; } .product .p-flag { position: absolute; top: 7px; right: 7px; }
.product .p-count { position: absolute; top: -7px; right: -7px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: 12px; font-weight: 800; padding: 0 6px; }
.product .p-img { width: 100%; height: 64px; object-fit: cover; border-radius: 8px; }
.cart { width: 400px; border-left: 1px solid var(--border); background: var(--bg-2); display: none; flex-direction: column; min-height: 0; }
.cart-body { flex: 1; overflow-y: auto; }
.cart-section { padding: 8px 14px 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 700; display: flex; justify-content: space-between; }
.line { display: flex; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--border); }
.line .l-qty { min-width: 30px; font-weight: 750; font-variant-numeric: tabular-nums; } .line .l-main { flex: 1; min-width: 0; }
.line .l-name { font-weight: 600; } .line .l-meta { font-size: 12px; color: var(--text-2); } .line .l-sum { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.line.unsent { background: var(--accent-soft); } .line.paid { opacity: .5; } .line.paid .l-name { text-decoration: line-through; }
.qty-ctl { display: flex; align-items: center; gap: 4px; } .qty-ctl button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.cart-foot { border-top: 1px solid var(--border); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; } .total-row .big { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-fab { position: fixed; left: 12px; right: 12px; bottom: calc(76px + var(--safe-b)); z-index: 15; display: flex; gap: 8px; }
.cart-fab .btn { flex: 1; box-shadow: var(--shadow); }
@media (min-width: 1000px) { .cart { display: flex; } .cart-fab { display: none; } }
.status-pill { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.st-new { background: var(--surface-3); color: var(--text-2); } .st-accepted { background: var(--blue-soft); color: var(--blue); } .st-preparing { background: var(--orange-soft); color: var(--orange); }
.st-ready { background: var(--green-soft); color: var(--green); animation: pulse 1.4s infinite; } .st-served { background: transparent; color: var(--text-3); }

/* ── Stationsmonitor ── */
.kds { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); align-items: start; }
.kds-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.kds-head { padding: 11px 13px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.kds-head .name { font-weight: 750; font-size: 17px; flex: 1; }
.kds-card.s-new .kds-head { background: var(--accent-soft); } .kds-card.s-accepted .kds-head { background: var(--blue-soft); }
.kds-card.s-preparing .kds-head { background: var(--orange-soft); } .kds-card.s-ready .kds-head { background: var(--green-soft); }
.kds-items { padding: 6px 13px; } .kds-item { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); } .kds-item:last-child { border-bottom: 0; }
.kds-item .q { font-weight: 800; font-size: 17px; min-width: 32px; } .kds-item .n { font-weight: 650; font-size: 16px; }
.kds-item .mods { color: var(--orange); font-size: 13px; font-weight: 600; } .kds-item .note { color: var(--red); font-size: 13px; font-weight: 650; }
.kds-foot { padding: 10px 13px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; }
.kds-foot .btn { flex: 1; }

/* ── Abrechnung ── */
.pay-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pay-line.sel { background: var(--accent-soft); margin: 0 -16px; padding: 10px 16px; }
.sum-table { width: 100%; } .sum-table td { padding: 4px 0; } .sum-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; } .sum-table .grand td { font-size: 20px; font-weight: 800; padding-top: 8px; border-top: 1px solid var(--border); }
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.method-grid button { min-height: 56px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 650; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.method-grid button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.quick-cash { display: flex; gap: 8px; flex-wrap: wrap; } .quick-cash button { flex: 1; min-width: 70px; }
.change-box { background: var(--green-soft); color: var(--green); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.change-box .big { font-size: 26px; font-weight: 850; }

/* ── Charts ── */
.chart { width: 100%; height: 220px; } .chart text { fill: var(--text-3); font-size: 11px; }
.bar-list .bl-row { display: grid; grid-template-columns: minmax(90px, 1.2fr) 2fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 13.5px; }
.bar-list .bl-bar { height: 10px; background: var(--surface-3); border-radius: 6px; overflow: hidden; } .bar-list .bl-bar span { display: block; height: 100%; background: var(--accent); border-radius: 6px; }

/* ── Tischplan ── */
.floor { position: relative; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); aspect-ratio: 16 / 10; min-height: 340px; overflow: hidden;
  background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 24px 24px; touch-action: none; }
.floor-table { position: absolute; width: 104px; min-height: 76px; transform: translate(-50%, -50%); border-radius: 14px; background: var(--surface); border: 2px solid var(--text-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px; text-align: center; cursor: pointer; user-select: none; box-shadow: var(--shadow); font-size: 12px; }
.floor-table.round { border-radius: 50%; width: 92px; min-height: 92px; } .floor-table.wide { width: 150px; }
.floor-table .ft-name { font-weight: 750; font-size: 13.5px; } .floor-table .ft-sum { font-weight: 700; font-variant-numeric: tabular-nums; }
.floor-table.f-free { border-color: var(--text-3); opacity: .8; } .floor-table.f-busy { border-color: var(--green); } .floor-table.f-prep { border-color: var(--orange); }
.floor-table.f-ready { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); } .floor-table.f-long { border-color: var(--red); }
.floor.edit .floor-table { cursor: grab; border-style: dashed; } .floor-table.dragging { cursor: grabbing; z-index: 3; opacity: .9; }

/* ── Druck (Beleg / Tagesabschluss) ── */
.print-doc { background: #fff; color: #000; font: 13px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; padding: 18px; max-width: 380px; margin: 0 auto; border-radius: 8px; }
.print-doc h3 { text-align: center; font-size: 15px; } .print-doc .c { text-align: center; } .print-doc hr { border: 0; border-top: 1px dashed #000; margin: 8px 0; }
.print-doc table { width: 100%; border-collapse: collapse; } .print-doc td { padding: 1px 0; vertical-align: top; } .print-doc td.r { text-align: right; white-space: nowrap; }
.print-doc .b { font-weight: 700; } .print-doc .big { font-size: 16px; font-weight: 800; }
.print-notice { border: 1px solid #000; padding: 6px; margin-top: 8px; font-size: 11px; text-align: center; }
@media print {
  body * { visibility: hidden !important; } .print-area, .print-area * { visibility: visible !important; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; } .print-doc { max-width: none; padding: 0; }
  .overlay { background: none; backdrop-filter: none; position: absolute; }
}

/* ── Öffentliche Speisekarte ── */
.menu-page { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
.menu-head { text-align: center; padding: 20px 0 14px; } .menu-head .brand-logo { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 20px; font-size: 30px; }
.menu-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); } .menu-item img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; }
.menu-item .mi-price { font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; } .menu-item.sold { opacity: .5; }
@media (max-width: 899px) { .conn.online { font-size: 0; gap: 0; padding: 8px; } .topbar h1 { font-size: 17px; } }
