:root {
  --bg: #f6f5f2; --surface: #fff; --surface-2: #faf9f7; --border: #e6e2db;
  --text: #1f1d1a; --muted: #6f6a62; --accent: #f26b1d; --accent-2: #fff1e7;
  --ok: #15803d; --ok-bg: #e8f6ec; --warn: #b45309; --warn-bg: #fff4dc;
  --new: #1d4ed8; --new-bg: #e8efff; --bad: #b91c1c; --bad-bg: #fde8e8;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.container { max-width: 1240px; margin: 0 auto; padding: 24px 16px 60px; }
.wide { padding: 16px; }

/* Kopfzeile */
.topbar { display: flex; align-items: center; gap: 20px; padding: 0 16px; background: #1f1d1a; color: #fff; position: sticky; top: 0; z-index: 1000; overflow-x: auto; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: 1.1rem; padding: 12px 0; white-space: nowrap; }
.logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); font-size: .85rem; }
.topbar nav { display: flex; gap: 2px; }
.topbar nav a { text-decoration: none; padding: 16px 12px; color: #cfcac2; white-space: nowrap; font-size: .9rem; border-bottom: 3px solid transparent; }
.topbar nav a:hover { color: #fff; }
.topbar nav a.active { color: #fff; border-bottom-color: var(--accent); }

/* Bausteine */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.kpi .v { font-size: 1.6rem; font-weight: 700; } .kpi .l { color: var(--muted); font-size: .85rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; } .page-head p { margin: 4px 0 0; color: var(--muted); }
.flash { background: var(--ok-bg); color: var(--ok); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.primary:hover { filter: brightness(.95); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--bad); } .btn.sm { padding: 4px 10px; font-size: .85rem; } .btn.lg { padding: 14px 22px; font-size: 1.1rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
form.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.form-grid label, .field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.switcher select { margin-left: 6px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.badge.neu { background: var(--new-bg); color: var(--new); border-color: transparent; }
.badge.in_arbeit { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.fertig, .badge.open { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.storniert, .badge.closed, .badge.alert { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.badge.ausgegeben { color: var(--muted); }
.stars { color: #f5a524; letter-spacing: 1px; } .stars .off { color: #ddd6cc; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1f1d1a; color: #fff; padding: 12px 20px; border-radius: 10px; opacity: 0; transition: .25s; z-index: 3000; }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.err { background: var(--bad); }

/* Startseite */
.hero { padding: 40px 0 24px; }
.hero h1 { font-size: 2.2rem; } .hero p { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.view-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.view-tile { display: block; text-decoration: none; padding: 22px; }
.view-tile:hover { border-color: var(--accent); }
.view-tile .ico { font-size: 2rem; } .view-tile h2 { margin: 10px 0 4px; } .view-tile p { margin: 0; color: var(--muted); }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 28px; }
.flow div { background: var(--accent-2); border-radius: var(--radius); padding: 14px 16px; }
.flow b { color: var(--accent); }

/* Kasse */
.pos { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.product-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; text-align: left; cursor: pointer; font: inherit; }
.product-btn:hover { border-color: var(--accent); }
.product-btn .e { font-size: 1.6rem; display: block; } .product-btn .n { font-weight: 600; display: block; margin: 4px 0 2px; } .product-btn .p { color: var(--muted); font-size: .9rem; }
.cart-line { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.cart-line .name { flex: 1; } .qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 1rem; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; padding: 14px 0; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.board-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; min-height: 200px; }
.board-col h3 { display: flex; justify-content: space-between; }
.order-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.order-card .num { font-size: 1.3rem; font-weight: 800; }
.order-card ul { margin: 6px 0; padding-left: 18px; font-size: .9rem; }
.order-card .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.order-card.alert { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad-bg); }
.item-done { text-decoration: line-through; color: var(--muted); }

/* Station */
body.view-station { background: #191816; color: #f2efe9; }
body.view-station .card, body.view-station .ticket { color: var(--text); }
.station-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.station-head h1 { margin: 0; font-size: 1.8rem; }
.station-pick a { display: inline-block; margin: 0 6px 6px 0; padding: 8px 14px; border-radius: 99px; background: #2b2926; color: #e8e3da; text-decoration: none; }
.station-pick a.active { background: var(--accent); color: #fff; }
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ticket { background: #fffdf8; border-radius: 12px; overflow: hidden; border-top: 8px solid var(--new); }
.ticket.in_arbeit { border-top-color: #f59e0b; } .ticket.late { border-top-color: var(--bad); }
.ticket header { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px 4px; }
.ticket .num { font-size: 1.8rem; font-weight: 800; }
.ticket ul { list-style: none; margin: 0; padding: 4px 14px 8px; }
.ticket li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #eee7da; font-size: 1.1rem; cursor: pointer; }
.ticket li .q { font-weight: 800; margin-right: 8px; }
.ticket li.in_arbeit { color: var(--warn); } .ticket footer { display: flex; gap: 8px; padding: 10px 14px 14px; }
.ticket footer .btn { flex: 1; }
.empty { text-align: center; color: #9a948a; padding: 60px 0; font-size: 1.2rem; }

/* Terminal */
body.view-terminal { background: #1f1d1a; }
.kiosk { display: grid; grid-template-columns: 200px 1fr 360px; height: 100vh; }
.kiosk aside.cats { background: #2b2926; padding: 20px 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.kiosk aside.cats .brand { color: #fff; margin-bottom: 12px; }
.kiosk aside.cats button { background: transparent; border: 0; color: #d6d1c8; font: inherit; font-size: 1.1rem; font-weight: 600; text-align: left; padding: 14px; border-radius: 12px; cursor: pointer; }
.kiosk aside.cats button.active { background: var(--accent); color: #fff; }
.kiosk section.items { background: var(--bg); padding: 24px; overflow-y: auto; }
.kiosk .items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.kiosk .tile { background: #fff; border-radius: 18px; padding: 20px; border: 2px solid transparent; cursor: pointer; text-align: center; box-shadow: var(--shadow); font: inherit; }
.kiosk .tile:active { transform: scale(.98); } .kiosk .tile:hover { border-color: var(--accent); }
.kiosk .tile .e { font-size: 3.4rem; } .kiosk .tile .n { font-weight: 700; font-size: 1.15rem; margin: 8px 0 4px; } .kiosk .tile .d { color: var(--muted); font-size: .85rem; min-height: 2.4em; }
.kiosk .tile .p { color: var(--accent); font-weight: 800; font-size: 1.2rem; margin-top: 8px; }
.kiosk aside.basket { background: #fff; display: flex; flex-direction: column; padding: 20px; }
.kiosk aside.basket .lines { flex: 1; overflow-y: auto; }
.kiosk .cart-line { font-size: 1.05rem; }
.kiosk .qty button { width: 36px; height: 36px; }
.overlay { position: fixed; inset: 0; background: rgba(20,18,16,.75); display: grid; place-items: center; z-index: 2000; padding: 16px; }
.overlay .box { background: #fff; border-radius: 20px; padding: 32px; max-width: 520px; width: 100%; text-align: center; }
.overlay .big-num { font-size: 5rem; font-weight: 800; color: var(--accent); line-height: 1; margin: 12px 0; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.pay-options button { padding: 24px; font-size: 1.1rem; border-radius: 14px; border: 2px solid var(--border); background: #fff; cursor: pointer; font-weight: 700; }
.pay-options button:hover { border-color: var(--accent); }
.start-screen { position: fixed; inset: 0; background: linear-gradient(135deg, #f26b1d, #c2410c); color: #fff; display: grid; place-items: center; text-align: center; cursor: pointer; z-index: 1500; }
.start-screen h1 { font-size: 3rem; margin-bottom: 8px; } .start-screen p { font-size: 1.4rem; opacity: .9; }

/* Kunde: Restaurantsuche */
.discover { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.filters { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 14px; }
.filters .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); background: #fff; cursor: pointer; font: inherit; font-size: .88rem; }
.chip.on { background: var(--text); color: #fff; border-color: var(--text); }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.view-toggle button { border: 0; background: #fff; padding: 8px 14px; font: inherit; cursor: pointer; }
.view-toggle button.on { background: var(--text); color: #fff; }
#map { height: 560px; border-radius: var(--radius); border: 1px solid var(--border); z-index: 1; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split #map { height: calc(100vh - 170px); position: sticky; top: 72px; }
.r-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.split .r-list { grid-template-columns: 1fr; }
.r-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: .15s; }
.r-card:hover, .r-card.hl { border-color: var(--accent); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.r-photo { height: 140px; display: grid; place-items: center; font-size: 4rem; position: relative; }
.r-photo .pc { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 99px; }
.r-photo .st { position: absolute; left: 8px; top: 8px; }
.r-body { padding: 12px 14px 14px; }
.r-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.r-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: .88rem; }
.split .r-card { flex-direction: row; } .split .r-photo { width: 130px; height: auto; min-height: 120px; flex-shrink: 0; font-size: 3rem; }
.leaflet-popup-content a { color: var(--accent); font-weight: 600; }
.map-pin { background: var(--accent); color: #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.map-pin span { transform: rotate(45deg); font-size: 16px; }
.map-pin.closed { background: #8a847a; }

/* Kunde: Restaurantdetail */
.r-hero { border-radius: var(--radius); height: 200px; display: grid; place-items: center; font-size: 6rem; position: relative; margin-bottom: 16px; }
.gallery { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery img { width: 110px; height: 70px; object-fit: cover; border-radius: 8px; flex-shrink: 0; cursor: pointer; border: 2px solid transparent; }
.gallery img:hover { border-color: var(--accent); }
.shop { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.menu-cat { margin-bottom: 22px; }
.menu-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.menu-item .e { font-size: 2rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--surface-2); border-radius: 10px; }
.menu-item .info { flex: 1; } .menu-item .info b { display: block; }
.sticky { position: sticky; top: 72px; }
.hours td { padding: 4px 0; border: 0; } .hours tr.today td { font-weight: 700; }
.review { padding: 10px 0; border-bottom: 1px solid var(--border); }
.tracker { display: flex; justify-content: space-between; margin: 24px 0; position: relative; }
.tracker::before { content: ""; position: absolute; top: 18px; left: 10%; right: 10%; height: 4px; background: var(--border); }
.tracker .step { position: relative; text-align: center; flex: 1; color: var(--muted); }
.tracker .dot { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 4px solid var(--border); margin: 0 auto 6px; display: grid; place-items: center; }
.tracker .step.done { color: var(--text); } .tracker .step.done .dot { border-color: var(--accent); background: var(--accent); color: #fff; }
.mobile-cart-btn { display: none; }

@media (max-width: 1000px) {
  .pos, .shop, .discover, .split { grid-template-columns: 1fr; }
  .split #map { position: static; height: 360px; }
  .board { grid-template-columns: 1fr 1fr; }
  .filters { position: static; }
  .kiosk { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .kiosk aside.cats { flex-direction: row; overflow-x: auto; padding: 10px; }
  .kiosk aside.cats .brand { display: none; }
  .kiosk aside.basket { max-height: 40vh; }
  .shop .sticky { position: static; }
  .mobile-cart-btn { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200; }
}
@media (max-width: 560px) {
  .board { grid-template-columns: 1fr; }
  .split .r-card { flex-direction: column; } .split .r-photo { width: auto; height: 110px; }
  .hero h1 { font-size: 1.7rem; }
}
[hidden] { display: none !important; }
.shop > *, .pos > *, .discover > *, .split > *, .grid > * { min-width: 0; }
.filter-toggle { display: none; }
@media (max-width: 1000px) {
  .filter-toggle { display: inline-flex; }
  .filters.collapsed > *:not(.filter-toggle) { display: none; }
}

.picker-map { height: 260px; border-radius: 10px; border: 1px solid var(--border); margin-top: 4px; z-index: 1; }
.photo-thumb { width: 120px; height: 75px; object-fit: cover; border-radius: 8px; display: block; }
.paid-no { background: var(--warn-bg); color: var(--warn); }

/* Anmeldung, Konto, Rechtliches */
.topbar nav { align-items: center; }
.inline-form { display: inline; margin: 0; }
.linklike { background: none; border: 0; color: #cfcac2; font: inherit; font-size: .9rem; padding: 16px 12px; cursor: pointer; white-space: nowrap; }
.linklike:hover { color: #fff; }
.auth-card { max-width: 420px; margin: 48px auto; }
.auth-card form { display: grid; gap: 12px; }
.auth-card input { width: 100%; }
.error { background: var(--bad-bg); color: var(--bad); border-radius: 8px; padding: 10px 12px; }
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { margin-top: 1.6em; }
.legal .todo { background: var(--warn-bg); color: var(--warn); padding: 0 4px; border-radius: 4px; }
.legal-footer { text-align: center; padding: 18px 16px 28px; font-size: .85rem; color: var(--muted); }
.legal-footer a { color: var(--muted); }
body.fullscreen .legal-footer { position: fixed; bottom: 0; left: 0; right: 0; padding: 6px; opacity: .6; }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 3000; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent-box { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 40px rgba(0,0,0,.18); padding: 18px; max-width: 640px; width: 100%; }
.consent-box p { font-size: .9rem; margin: 0 0 10px; }
.consent-box .check { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 12px; }
.map-consent { position: absolute; inset: 0; z-index: 1000; display: grid; place-content: center; gap: 8px; text-align: center; padding: 16px;
  background: repeating-linear-gradient(45deg, #f3f1ec, #f3f1ec 12px, #ece9e2 12px, #ece9e2 24px); font-size: .85rem; }
.map-consent p { max-width: 360px; margin: 0 auto; }
.user-row.inactive { opacity: .55; }

/* ═════════════════════════════════════════════════════════════════════
   Design 2 – modernes Erscheinungsbild (überschreibt die Grundstile oben)
   ═════════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}
:root {
  --bg: #f5f4fb; --surface: #ffffff; --surface-2: #f7f6fc; --border: #e7e4f0;
  --text: #17141f; --muted: #6b6779; --accent: #ff5a1f; --accent-2: #fff0e8;
  --accent-grad: linear-gradient(135deg, #ff7a18 0%, #ff3d6e 55%, #a239ff 100%);
  --ink: #0f0d17; --ink-2: #1b1828;
  --ok: #0f9d58; --ok-bg: #e5f7ee; --warn: #c26a00; --warn-bg: #fff3dc;
  --new: #3b5bff; --new-bg: #e9edff; --bad: #e11d48; --bad-bg: #ffe8ee;
  --radius: 18px;
  --shadow: 0 1px 1px rgba(23,20,31,.04), 0 6px 24px -6px rgba(23,20,31,.10), 0 18px 48px -24px rgba(23,20,31,.18);
  --shadow-lg: 0 2px 4px rgba(23,20,31,.05), 0 24px 60px -18px rgba(23,20,31,.28);
  --ring: 0 0 0 4px rgba(255,90,31,.18);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
}
body {
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(162,57,255,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(255,122,24,.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
::selection { background: #ffd9c7; }

/* Kopfzeile: dunkles Glas mit Verlauf */
.topbar {
  background: rgba(15,13,23,.82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06); gap: 24px; padding: 0 20px; min-height: 60px;
}
.brand { font-weight: 800; letter-spacing: -.02em; }
.logo { background: var(--accent-grad); width: 32px; height: 32px; border-radius: 10px; box-shadow: 0 6px 18px -4px rgba(255,61,110,.6); font-weight: 900; }
.topbar nav { gap: 4px; }
.topbar nav a, .linklike { padding: 8px 12px; border-radius: 10px; border-bottom: 0; color: #b9b5c8; transition: background .15s, color .15s; }
.topbar nav a:hover, .linklike:hover { background: rgba(255,255,255,.07); color: #fff; }
.topbar nav a.active { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }

/* Bausteine */
.container { padding: 32px 20px 72px; }
.card { border-radius: var(--radius); border-color: rgba(231,228,240,.9); box-shadow: var(--shadow); padding: 22px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { background: linear-gradient(90deg, var(--ink), #4b3f6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flash { border-radius: 14px; padding: 12px 16px; border: 1px solid rgba(15,157,88,.2); box-shadow: var(--shadow); animation: of-pop .35s ease; }
.error { border-radius: 12px; border: 1px solid rgba(225,29,72,.2); }

.kpis { gap: 16px; }
.kpi { position: relative; overflow: hidden; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border-color: transparent; }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent-grad); }
.kpi .v { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
.kpi .l { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 600; }

table { border-collapse: separate; border-spacing: 0; }
th { font-size: .7rem; letter-spacing: .08em; padding: 10px; background: var(--surface-2); }
th:first-child { border-top-left-radius: 10px; } th:last-child { border-top-right-radius: 10px; }
td { padding: 12px 10px; }
tr:hover td { background: #fbfaff; }

.btn { border-radius: 12px; padding: 9px 16px; font-weight: 650; transition: transform .12s, box-shadow .15s, background .15s; box-shadow: 0 1px 2px rgba(23,20,31,.06); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(23,20,31,.25); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--accent-grad); border: 0; box-shadow: 0 8px 22px -8px rgba(255,61,110,.7); }
.btn.primary:hover { filter: saturate(115%) brightness(1.03); box-shadow: 0 12px 28px -8px rgba(255,61,110,.8); }
.btn.ok { background: linear-gradient(135deg, #12b76a, #0f9d58); border: 0; }
.btn.danger { border-color: rgba(225,29,72,.25); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--muted); }
.btn.lg { border-radius: 14px; }
input, select, textarea { border-radius: 12px; padding: 10px 12px; border-color: var(--border); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: var(--ring); }
.form-grid { gap: 14px; }
.form-grid label, .field { font-weight: 600; font-size: .8rem; }

.badge { border: 0; padding: 4px 10px; font-weight: 650; background: #efedf6; color: #4b4660; }
.badge.neu::before, .badge.in_arbeit::before, .badge.fertig::before, .badge.open::before { content: "●"; margin-right: 5px; font-size: .7em; vertical-align: 1px; }
.badge.role-admin { background: #f1e8ff; color: #7c2bd9; } .badge.role-filialleiter { background: #e9edff; color: #3b5bff; }
.badge.role-kasse { background: #fff0e8; color: #d9480f; } .badge.role-kueche { background: #e5f7ee; color: #0f9d58; }

.tabs { border: 0; background: rgba(255,255,255,.7); padding: 5px; border-radius: 14px; display: inline-flex; box-shadow: var(--shadow); margin-bottom: 22px; max-width: 100%; }
.tabs a { border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 600; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--text); background: var(--surface-2); }
.tabs a.active { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(15,13,23,.6); }

.toast { border-radius: 14px; background: var(--ink); box-shadow: var(--shadow-lg); font-weight: 600; }

/* Startseite */
.hero { padding: 56px 0 32px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em;
  background: linear-gradient(100deg, var(--ink) 20%, #ff3d6e 60%, #a239ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.view-tiles { gap: 20px; }
.view-tile { position: relative; padding: 26px; transition: transform .2s, box-shadow .2s; overflow: hidden; }
.view-tile::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: var(--accent-grad); opacity: 0; filter: blur(40px); transition: opacity .25s; }
.view-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.view-tile:hover::after { opacity: .25; }
.view-tile .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: linear-gradient(135deg, #fff1e8, #f6e9ff); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
.flow div { background: rgba(255,255,255,.75); border: 1px solid var(--border); box-shadow: var(--shadow); }
.flow b { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Kasse */
.product-btn { border-radius: 16px; padding: 14px; transition: transform .12s, box-shadow .15s, border-color .15s; box-shadow: 0 1px 2px rgba(23,20,31,.05); }
.product-btn:hover { transform: translateY(-2px); border-color: transparent; box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.product-btn .e { font-size: 1.9rem; }
.board-col { border-radius: var(--radius); background: rgba(255,255,255,.6); border-color: var(--border); }
.order-card { border-radius: 14px; box-shadow: var(--shadow); border-color: transparent; animation: of-pop .3s ease; }
.order-card .num { letter-spacing: -.03em; }

/* Station: Küchenmonitor in tiefem Dunkel */
body.view-station { background: radial-gradient(900px 500px at 80% -10%, rgba(162,57,255,.18), transparent 60%), radial-gradient(700px 400px at 0% 0%, rgba(255,122,24,.14), transparent 60%), #0c0b12; color: #ece9f5; }
body.view-station .legal-footer a, body.view-station .legal-footer { color: #77728a; }
.station-pick a { background: rgba(255,255,255,.06); color: #cfcbe0; border: 1px solid rgba(255,255,255,.08); }
.station-pick a.active { background: var(--accent-grad); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(255,61,110,.8); }
.ticket { border-radius: 18px; border-top: 0; background: #fff; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); position: relative; animation: of-pop .35s ease; }
.ticket::before { content: ""; display: block; height: 8px; background: linear-gradient(90deg, #3b5bff, #7a8cff); }
.ticket.in_arbeit::before { background: linear-gradient(90deg, #ff9f1a, #ffcf4d); }
.ticket.late::before { background: linear-gradient(90deg, #e11d48, #ff5a7a); animation: of-pulse 1.4s infinite; }
.ticket .num { letter-spacing: -.04em; }
.ticket li { border-bottom-color: #efedf6; }

/* Terminal */
body.view-terminal { background: var(--ink); }
.kiosk aside.cats { background: linear-gradient(180deg, #17141f, #0f0d17); }
.kiosk aside.cats button { border-radius: 14px; transition: background .15s; }
.kiosk aside.cats button:hover { background: rgba(255,255,255,.06); }
.kiosk aside.cats button.active { background: var(--accent-grad); box-shadow: 0 10px 24px -10px rgba(255,61,110,.9); }
.kiosk section.items { background: radial-gradient(800px 400px at 100% 0%, rgba(162,57,255,.08), transparent 60%), var(--bg); }
.kiosk .tile { border-radius: 22px; transition: transform .15s, box-shadow .2s; }
.kiosk .tile:hover { border-color: transparent; transform: translateY(-3px); box-shadow: 0 0 0 3px var(--accent), var(--shadow-lg); }
.kiosk .tile .p { display: inline-block; background: var(--accent-grad); color: #fff; padding: 4px 12px; border-radius: 99px; font-size: 1.05rem; }
.overlay { background: rgba(12,11,18,.7); backdrop-filter: blur(8px); }
.overlay .box { border-radius: 26px; box-shadow: var(--shadow-lg); animation: of-pop .3s ease; }
.overlay .big-num { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-options button { border-radius: 18px; transition: transform .12s, box-shadow .15s; }
.pay-options button:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--accent); border-color: transparent; }
.start-screen { background: radial-gradient(1200px 700px at 20% 0%, #ff7a18, transparent 60%), radial-gradient(1000px 700px at 100% 100%, #a239ff, transparent 60%), #ff3d6e; }
.start-screen h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.04em; text-shadow: 0 10px 40px rgba(0,0,0,.25); }
.start-screen p { animation: of-breathe 2.4s ease-in-out infinite; }

/* Kunde */
.chip { transition: background .15s, color .15s, box-shadow .15s; }
.chip.on { background: var(--ink); border-color: var(--ink); box-shadow: 0 6px 14px -6px rgba(15,13,23,.6); }
.view-toggle { border-radius: 12px; background: #fff; box-shadow: var(--shadow); border-color: transparent; }
.view-toggle button.on { background: var(--ink); }
#map, .picker-map { border-radius: var(--radius); box-shadow: var(--shadow); border-color: transparent; }
.r-card { border-radius: var(--radius); border-color: transparent; box-shadow: var(--shadow); transition: transform .18s, box-shadow .2s; }
.r-card:hover, .r-card.hl { transform: translateY(-3px); border-color: transparent; box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
.map-pin { background: var(--accent-grad); }
.r-hero { border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.menu-item .e { border-radius: 14px; background: linear-gradient(135deg, #fff1e8, #f6e9ff); }
.tracker .step.done .dot { background: var(--accent-grad); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(255,61,110,.9); }
.tracker::before { height: 6px; border-radius: 99px; }

/* Anmeldung */
body.view-login main, body.view-konto main { min-height: calc(100vh - 140px); display: grid; place-items: center; }
.auth-card { width: 100%; padding: 32px; border-radius: 24px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--accent-grad); }

/* Rechtliches, Cookie-Banner */
.legal { padding: 36px; }
.legal-footer a { text-decoration: none; } .legal-footer a:hover { color: var(--text); }
.consent-box { border-radius: 22px; box-shadow: var(--shadow-lg); border-color: transparent; padding: 22px; animation: of-rise .4s ease; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.map-consent { background: radial-gradient(circle at 30% 20%, #fff1e8, transparent 60%), radial-gradient(circle at 80% 80%, #f1e8ff, transparent 60%), #f7f6fc; }

/* Bildschirmsperre */
.lock-pill { position: sticky; top: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px;
  background: linear-gradient(90deg, #17141f, #2a1f3d); color: #e9e5f5; font-size: .82rem; font-weight: 600; text-decoration: none; letter-spacing: .01em; }
.lock-pill:hover { color: #fff; } .lock-pill span { opacity: .85; }
.lock-pill.floating { position: fixed; top: auto; bottom: 14px; right: 14px; left: auto; border-radius: 99px; padding: 8px 14px; box-shadow: var(--shadow-lg); opacity: .55; z-index: 2500; }
.lock-pill.floating span { display: none; } .lock-pill.floating:hover { opacity: 1; } .lock-pill.floating:hover span { display: inline; }
body.view-station .lock-pill { background: rgba(255,255,255,.05); }
body.view-lock { background: radial-gradient(900px 600px at 15% 10%, rgba(255,122,24,.35), transparent 60%), radial-gradient(900px 600px at 90% 90%, rgba(162,57,255,.4), transparent 60%), #0c0b12; color: #fff; }
.lock-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.lock-card { width: 100%; max-width: 440px; text-align: center; padding: 36px 30px; border-radius: 28px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(20px); box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); animation: of-rise .45s ease; }
.lock-card .muted { color: #b6b1c9; }
.lock-icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; font-size: 2.2rem;
  background: var(--accent-grad); box-shadow: 0 20px 50px -14px rgba(255,61,110,.9); animation: of-breathe 3s ease-in-out infinite; }
.lock-target { display: inline-block; background: rgba(255,255,255,.1); padding: 6px 14px; border-radius: 99px; font-weight: 650; }
.lock-card form { display: grid; gap: 12px; text-align: left; margin: 18px 0 8px; }
.lock-card label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: #cfcbe0; }
.lock-card input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.lock-card .lock-actions { display: grid; gap: 10px; margin-top: 6px; }
.lock-card .btn:not(.primary) { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14); }
.lock-card .btn.ghost { background: transparent; border-color: transparent; color: #b6b1c9; }

/* Bewegung */
@keyframes of-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes of-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes of-pulse { 50% { opacity: .45; } }
@keyframes of-breathe { 50% { transform: scale(1.04); } }
main.container > * { animation: of-rise .4s ease both; }
main.container > *:nth-child(2) { animation-delay: .04s; } main.container > *:nth-child(3) { animation-delay: .08s; } main.container > *:nth-child(4) { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 560px) { .card { padding: 18px; } .tabs { display: flex; } .legal { padding: 22px; } }

/* ═══════════ Kundenbereich (hwrorderflow.de) ═══════════ */
body.view-kunde .topbar { background: rgba(255,255,255,.72); border-bottom-color: rgba(23,20,31,.06); }
body.view-kunde .brand { color: var(--ink); }
body.view-kunde .topbar nav a { color: var(--muted); } body.view-kunde .topbar nav a:hover { background: rgba(23,20,31,.05); color: var(--ink); }
body.view-kunde .topbar nav a.active { background: var(--ink); color: #fff; }
body.view-kunde main.container { max-width: 1320px; }

.c-hero { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px) 36px; margin-bottom: 22px; color: #fff;
  background: radial-gradient(900px 500px at 0% 0%, #ff7a18 0%, transparent 55%), radial-gradient(900px 600px at 100% 100%, #a239ff 0%, transparent 55%), #ff3d6e;
  box-shadow: 0 40px 80px -40px rgba(255,61,110,.7); }
.c-hero-glow { position: absolute; width: 520px; height: 520px; right: -140px; top: -200px; border-radius: 50%; background: rgba(255,255,255,.18); filter: blur(30px); animation: of-float 9s ease-in-out infinite; }
.c-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; opacity: .85; margin: 0 0 10px; position: relative; }
.c-hero h1 { font-size: clamp(2rem, 5.4vw, 3.8rem); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 26px; max-width: 760px; position: relative; color: #fff; }
.c-hero h1 .grad { background: linear-gradient(90deg, #fff6c2, #ffe0f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.c-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 760px; background: #fff; border-radius: 20px; padding: 8px 8px 8px 18px; box-shadow: 0 24px 60px -20px rgba(15,13,23,.5); }
.c-search input { flex: 1; border: 0; box-shadow: none !important; font-size: 1.05rem; padding: 12px 4px; background: transparent; min-width: 0; }
.c-search .btn { white-space: nowrap; border-radius: 14px; padding: 12px 18px; }
.c-cuisines { position: relative; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.c-cuisine { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(8px);
  padding: 8px 14px 8px 8px; border-radius: 99px; font: inherit; font-weight: 650; cursor: pointer; transition: background .15s, transform .15s; }
.c-cuisine span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); font-size: 1.05rem; }
.c-cuisine:hover { background: rgba(255,255,255,.26); transform: translateY(-2px); }
.c-cuisine.on { background: #fff; color: var(--ink); }
.c-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.c-count { margin: 0; font-weight: 700; font-size: 1.05rem; }

body.view-kunde .filters { border: 0; }
.r-card { background: #fff; }
.r-photo { overflow: hidden; background: linear-gradient(135deg, #fff1e8, #f1e8ff); height: 170px; }
.r-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.r-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15,13,23,.35)); pointer-events: none; }
.r-card:hover .r-photo img { transform: scale(1.07); }
.r-photo .pc, .r-photo .st { z-index: 2; }
.r-emoji { font-size: 4rem; filter: drop-shadow(0 10px 18px rgba(0,0,0,.15)); }
.r-body { padding: 14px 16px 16px; } .r-body h3 { font-size: 1.12rem; letter-spacing: -.01em; }
.split .r-photo { width: 150px; }

.c-back { display: inline-flex; color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.7); box-shadow: var(--shadow); }
.c-rhero { height: clamp(240px, 38vw, 380px); background: linear-gradient(135deg, #ffb27a, #ff3d6e 50%, #a239ff) center/cover; display: flex; align-items: flex-end; place-items: initial; font-size: 1rem; border-radius: 30px; position: relative; margin: 14px 0 0; transition: background-image .3s; }
.c-rhero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,13,23,0) 30%, rgba(15,13,23,.78)); border-radius: inherit; }
.c-rhero-emoji { position: absolute; right: 8%; top: 12%; font-size: 7rem; filter: drop-shadow(0 20px 30px rgba(0,0,0,.3)); }
.c-rhero-info { position: relative; padding: clamp(18px, 4vw, 36px); color: #fff; width: 100%; }
.c-rhero-info h1 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 3.2rem); letter-spacing: -.04em; margin: 10px 0 12px; }
.c-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.c-facts span { background: rgba(255,255,255,.16); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.22); padding: 6px 12px; border-radius: 99px; font-size: .88rem; }
.c-catnav { position: sticky; top: 60px; z-index: 900; display: flex; gap: 8px; overflow-x: auto; padding: 12px 4px; margin: 10px 0 8px;
  background: linear-gradient(var(--bg) 70%, transparent); scrollbar-width: none; }
.c-catnav a { white-space: nowrap; text-decoration: none; font-weight: 650; padding: 8px 16px; border-radius: 99px; background: #fff; box-shadow: var(--shadow); color: var(--text); transition: background .15s, color .15s; }
.c-catnav a:hover { background: var(--ink); color: #fff; }
.c-desc { font-size: 1.05rem; color: var(--muted); max-width: 720px; }
.menu-cat { scroll-margin-top: 130px; margin-bottom: 30px; }
.menu-cat h2 { font-size: 1.4rem; letter-spacing: -.02em; }
.c-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.c-menu-grid .menu-item { position: relative; background: #fff; border: 0; border-radius: 20px; padding: 16px; box-shadow: var(--shadow); align-items: flex-start; transition: transform .18s, box-shadow .2s; }
.c-menu-grid .menu-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.c-menu-grid .menu-item .e { width: 64px; height: 64px; font-size: 2.3rem; flex-shrink: 0; }
.c-menu-grid .menu-item .info { display: grid; gap: 4px; padding-right: 36px; }
.c-price { font-weight: 800; font-size: 1.05rem; margin-top: 4px; }
.c-add { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 14px; border: 0; cursor: pointer; color: #fff; font-size: 1.4rem; font-weight: 700;
  background: var(--accent-grad); box-shadow: 0 10px 20px -8px rgba(255,61,110,.9); transition: transform .15s; }
.c-add:hover { transform: scale(1.08) rotate(90deg); }
.c-add:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.c-add.bump { animation: of-bump .4s ease; }
.c-cart { border-radius: 24px; box-shadow: var(--shadow-lg); top: 120px; }
.c-cart.bump { animation: of-bump .4s ease; }
.c-cart input, .c-cart select { margin-bottom: 10px !important; }
.c-status { border-radius: 28px; padding: 36px 28px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.c-status::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--accent-grad); }
.c-status h1 span { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.tracker .step.done:last-of-type .dot { animation: of-breathe 2s ease-in-out infinite; }
.review { padding: 14px 0; }
@keyframes of-float { 50% { transform: translate(-30px, 30px); } }
@keyframes of-bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
@media (max-width: 700px) {
  .c-search { flex-wrap: wrap; padding: 8px; } .c-search > span { display: none; }
  .c-search input { padding: 10px; } .c-search .btn { width: 100%; }
  .c-hero { border-radius: 24px; } .c-rhero { border-radius: 22px; }
}

/* ═══════════ Kundenbereich bildschirmfüllend ═══════════ */
body.view-kunde main.container { max-width: none; padding: 0 0 80px; }
body.view-kunde main.container > *:not(.c-hero):not(.c-rhero):not(.flash) { margin-inline: clamp(16px, 4vw, 64px); }
body.view-kunde .flash { margin: 16px clamp(16px, 4vw, 64px); }
body.view-kunde .topbar { position: fixed; left: 0; right: 0; background: rgba(11,10,18,.35); border-bottom-color: rgba(255,255,255,.08); }
body.view-kunde .topbar .brand { color: #fff; }
body.view-kunde .topbar nav a { color: rgba(255,255,255,.8); } body.view-kunde .topbar nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
body.view-kunde .topbar nav a.active { background: rgba(255,255,255,.95); color: var(--ink); }
.c-hero { border-radius: 0 0 44px 44px; min-height: 72vh; min-height: 72svh; display: flex; flex-direction: column; justify-content: flex-end; margin: 0 0 26px;
  padding: 120px clamp(20px, 6vw, 96px) clamp(36px, 6vh, 64px); background: radial-gradient(1000px 600px at 0% 0%, #ff7a18 0%, transparent 55%), radial-gradient(1000px 700px at 100% 100%, #a239ff 0%, transparent 55%), radial-gradient(800px 500px at 60% 30%, #ff2f6d, transparent 60%), #1a0f2e; }
.c-hero h1 { font-size: clamp(2.6rem, 7vw, 6.2rem); line-height: .95; max-width: 1100px; }
.c-search { max-width: 900px; padding: 10px 10px 10px 22px; border-radius: 24px; }
.c-search input { font-size: 1.15rem; padding: 14px 4px; }
.c-search .btn { padding: 14px 22px; border-radius: 16px; }
.split #map { top: 80px; height: calc(100vh - 110px); }
.discover { grid-template-columns: 300px 1fr; gap: 24px; }
.r-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.c-back { position: absolute; z-index: 5; top: 84px; left: clamp(16px, 4vw, 64px); margin: 0 !important; background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(10px); box-shadow: none; }
body.view-kunde main.container > p:has(.c-back) { margin: 0 !important; height: 0; }
.c-rhero { height: 78vh; height: 78svh; min-height: 460px; border-radius: 0 0 44px 44px; margin: 0; box-shadow: none; }
.c-rhero-info { padding: clamp(24px, 5vw, 64px) clamp(20px, 6vw, 96px); }
.c-rhero-info h1 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: .95; }
.c-catnav { top: 58px; margin-top: 18px !important; }
.shop { grid-template-columns: 1fr 380px; gap: 28px; }
.c-menu-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.c-rating { display: grid; grid-template-columns: auto 1fr; gap: 16px 32px; align-items: center; margin-top: 18px; }
.c-rating-score { text-align: center; }
.c-rating-big { font-size: 4rem; font-weight: 850; letter-spacing: -.05em; line-height: 1; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.c-rating-score .stars { font-size: 1.3rem; }
.c-rating-bars { display: grid; gap: 8px; }
.c-bar { display: grid; grid-template-columns: 42px 1fr 32px; gap: 10px; align-items: center; font-size: .9rem; color: var(--muted); font-weight: 600; }
.c-bar i { height: 10px; border-radius: 99px; background: #efedf6; overflow: hidden; }
.c-bar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb33b, #ff7a18); }
.c-rate { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 16px; }
.c-rate p { margin: 0; }
.c-stars-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.c-stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.c-stars-input label { font-size: 2.1rem; color: #ddd8e8; cursor: pointer; transition: color .12s, transform .12s; line-height: 1; }
.c-stars-input label:hover, .c-stars-input label:hover ~ label, .c-stars-input input:checked ~ label { color: #ffb33b; }
.c-stars-input label:hover { transform: scale(1.15); }
.c-stars-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }
@media (max-width: 1000px) { .shop { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .c-rating { grid-template-columns: 1fr; } }
body.view-kunde main.container > .c-status { margin-top: 110px; }

/* ═══════════ Geräte-Logins ═══════════ */
.dl-group { margin-bottom: 20px; }
.dl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dl-head h2 { margin: 0; } .dl-head p { margin: 2px 0 0; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.dl-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, #fff, #faf8ff); border: 1px solid var(--border); box-shadow: var(--shadow); }
.dl-card.off { opacity: .55; }
.dl-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--accent-grad); box-shadow: 0 10px 20px -10px rgba(255,61,110,.8); }
.dl-body b { display: block; font-size: 1.05rem; }
.dl-body dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 10px 0 0; align-items: center; }
.dl-body dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.dl-body dd { margin: 0; display: flex; align-items: center; gap: 4px; }
.dl-body code { font: 600 .95rem ui-monospace, SFMono-Regular, Menlo, monospace; background: #f1eff8; padding: 3px 8px; border-radius: 8px; letter-spacing: .02em; }
.dl-copy, .dl-reveal { border: 0; background: none; cursor: pointer; padding: 4px 6px; border-radius: 8px; color: var(--muted); }
.dl-copy:hover, .dl-reveal:hover { background: #f1eff8; color: var(--text); }
.dl-actions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 4px; }
.dl-actions form { margin: 0; }
@media print {
  body.print-one * { visibility: hidden !important; }
  body.print-one .dl-card.printing, body.print-one .dl-card.printing * { visibility: visible !important; }
  body.print-one .dl-card.printing { position: fixed; left: 20mm; top: 20mm; width: 120mm; box-shadow: none; border: 2px solid #000; }
  body.print-one .dl-card.printing .dl-actions, body.print-one .dl-card.printing .dl-copy, body.print-one .dl-card.printing .dl-reveal { display: none !important; }
}

/* ═══════════ Restaurant-Editor ═══════════ */
.ed { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.ed-side { position: sticky; top: 80px; display: grid; gap: 14px; }
.ed-switch { display: grid; gap: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ed-switch select { font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text); }
.ed-side nav { display: grid; gap: 4px; background: rgba(255,255,255,.75); padding: 8px; border-radius: 20px; box-shadow: var(--shadow); }
.ed-side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-decoration: none; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.ed-side nav a span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); }
.ed-side nav a em { margin-left: auto; font-style: normal; font-size: .75rem; background: #efedf6; color: var(--muted); padding: 2px 8px; border-radius: 99px; }
.ed-side nav a em.warn { background: var(--bad-bg); color: var(--bad); }
.ed-side nav a:hover { background: var(--surface-2); color: var(--text); }
.ed-side nav a.on { background: var(--ink); color: #fff; }
.ed-side nav a.on span { background: rgba(255,255,255,.12); }
.ed-preview { justify-content: center; }
.ed-cover { position: relative; height: 210px; border-radius: 26px; background: linear-gradient(135deg, #ff7a18, #ff3d6e 55%, #a239ff) center/cover; display: flex; align-items: flex-end; overflow: hidden; margin-bottom: 22px; box-shadow: var(--shadow-lg); }
.ed-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,13,23,.05), rgba(15,13,23,.75)); }
.ed-cover-info { position: relative; padding: 22px 26px; color: #fff; }
.ed-cover-info h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin: 8px 0 4px; letter-spacing: -.035em; background: none; -webkit-text-fill-color: #fff; }
.ed-cover-info p { margin: 0; opacity: .9; }
.ed-alert { background: var(--bad-bg); color: var(--bad); padding: 14px 18px; border-radius: 16px; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ed-stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ed-st { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface-2); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ed-st:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ed-st em { font-style: normal; font-weight: 700; color: var(--ok); margin-top: 6px; } .ed-st em.busy { color: var(--warn); }
.ed-bar { display: grid; grid-template-columns: minmax(0, 1fr) 2fr auto; gap: 10px; align-items: center; margin: 8px 0; font-weight: 600; }
.ed-bar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-bar i { height: 10px; background: #efedf6; border-radius: 99px; overflow: hidden; } .ed-bar b { display: block; height: 100%; background: var(--accent-grad); border-radius: inherit; }
.ed-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.ed-form fieldset { border: 0; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ed-form legend { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.ed-form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.ed-form label:has(textarea), .ed-form .wide { grid-column: 1 / -1; }
.ed-form input, .ed-form textarea, .ed-form select { width: 100%; color: var(--text); font-size: .98rem; }
.ed-seg { display: inline-flex; background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 4px; align-self: end; }
.ed-seg label { display: block; } .ed-seg input { position: absolute; opacity: 0; }
.ed-seg span { display: block; padding: 8px 16px; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ed-seg input:checked + span { background: var(--ink); color: #fff; } .ed-seg input:focus-visible + span { box-shadow: var(--ring); }
.ed-toggle { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; cursor: pointer; color: var(--text) !important; font-size: .95rem !important; }
.ed-toggle input { position: absolute; opacity: 0; }
.ed-toggle span { width: 46px; height: 26px; border-radius: 99px; background: #dcd8e6; position: relative; transition: background .2s; flex-shrink: 0; }
.ed-toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s; }
.ed-toggle input:checked + span { background: linear-gradient(135deg, #12b76a, #0f9d58); } .ed-toggle input:checked + span::after { transform: translateX(20px); }
.ed-toggle input:focus-visible + span { box-shadow: var(--ring); }
.ed-toggle.sm span { width: 38px; height: 22px; } .ed-toggle.sm span::after { width: 16px; height: 16px; } .ed-toggle.sm input:checked + span::after { transform: translateX(16px); }
.ed-save { display: flex; justify-content: flex-end; position: sticky; bottom: 16px; }
.ed-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--muted); margin: 0 0 10px; }
.ed-aside { position: sticky; top: 80px; display: grid; gap: 18px; }
.ed-live { pointer-events: none; }
.ed-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ed-gallery figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.ed-gallery img { width: 100%; height: 100%; object-fit: cover; }
.ed-gallery em { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: .68rem; font-weight: 700; background: rgba(15,13,23,.7); color: #fff; padding: 2px 8px; border-radius: 99px; }
.ed-gallery form { position: absolute; right: 6px; top: 6px; margin: 0; opacity: 0; transition: opacity .15s; }
.ed-gallery figure:hover form, .ed-gallery figure:focus-within form { opacity: 1; }
.ed-gallery button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(15,13,23,.75); color: #fff; cursor: pointer; }
.ed-addphoto { display: grid; grid-template-columns: 1fr auto; gap: 8px; } .ed-addphoto input:first-of-type { grid-column: 1 / -1; }
.ed-toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.ed-toolbar .chips { display: flex; gap: 6px; flex-wrap: wrap; } .ed-toolbar input[type=search] { min-width: 220px; }
.ed-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ed-dish { display: grid; gap: 8px; padding: 16px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); border: 2px solid transparent; transition: transform .15s, border-color .15s, opacity .2s; }
.ed-dish:focus-within { border-color: var(--accent); transform: translateY(-2px); }
.ed-dish.off { opacity: .55; }
.ed-dish-top { display: flex; justify-content: space-between; align-items: center; }
.ed-emoji { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.9rem; background: linear-gradient(135deg, #fff1e8, #f6e9ff); flex-shrink: 0; }
.ed-dish input, .ed-dish textarea { width: 100%; border-color: transparent; background: var(--surface-2); }
.ed-dish-name { font-weight: 700; font-size: 1.05rem; }
.ed-dish-desc { font-size: .85rem; resize: vertical; }
.ed-dish-foot { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.ed-price { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; }
.ed-price input { width: 82px; text-align: right; font-weight: 800; }
.ed-savebar { position: sticky; bottom: 16px; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); animation: of-rise .3s ease; }
.ed-new { margin-top: 18px; } .ed-new summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; } .ed-new[open] summary { margin-bottom: 14px; }
.ed-pill input { position: absolute; opacity: 0; }
.ed-pill span { display: inline-block; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--border); background: #fff; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; user-select: none; }
.ed-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.ed-pill input:focus-visible + span { box-shadow: var(--ring); }
.ed-assign { display: grid; gap: 8px; margin: 14px 0; }
.ed-arow { display: grid; grid-template-columns: auto minmax(160px, 1fr) 2fr; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); }
.ed-arow > div:nth-child(2) { display: grid; } .ed-arow .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ed-arow .ed-emoji { width: 42px; height: 42px; font-size: 1.4rem; }
.ed-arow.missing { background: var(--bad-bg); box-shadow: inset 4px 0 0 var(--bad); }
.ed-stcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ed-stcard { display: grid; gap: 10px; align-content: start; }
.ed-stcard-head { display: flex; gap: 12px; align-items: center; } .ed-stcard-head h3 { margin: 0; }
.ed-stcard-stats { display: flex; gap: 16px; color: var(--muted); } .ed-stcard-stats b { color: var(--text); font-size: 1.2rem; }
.ed-stcard-actions { display: flex; gap: 8px; } .ed-stcard-actions form { margin: 0; }
.ed-stnew { border: 2px dashed var(--border); box-shadow: none; background: rgba(255,255,255,.6); }
.ed-hours { max-width: 680px; display: grid; gap: 10px; }
.ed-day { display: grid; grid-template-columns: 120px 1fr auto 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 16px; background: var(--surface-2); }
.ed-day.today { box-shadow: inset 4px 0 0 var(--accent); } .ed-day.closed { opacity: .6; }
@media (max-width: 1100px) { .ed { grid-template-columns: 1fr; } .ed-side { position: static; } .ed-two { grid-template-columns: 1fr; } .ed-aside { position: static; } }
@media (max-width: 640px) { .ed-form fieldset { grid-template-columns: 1fr; } .ed-arow { grid-template-columns: auto 1fr; } .ed-arow .chips { grid-column: 1 / -1; } .ed-day { grid-template-columns: 1fr 1fr; } }

/* ═══════════ Vollbild: Exit-Knopf, Station, Kasse ═══════════ */
body.view-pos .lock-pill, body.view-station .lock-pill { display: none; }
.pos-clock { font-variant-numeric: tabular-nums; font-weight: 700; opacity: .8; }
.pos-exit { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-size: .95rem; color: inherit; opacity: .45; border: 1px solid currentColor; transition: opacity .15s; }
.pos-exit:hover, .pos-exit:focus-visible { opacity: 1; }

/* Station */
body.view-station main { padding: 0; }
.st-full { min-height: 100vh; padding: 0 20px 24px; }
.st-bar { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 18px 4px 14px; }
.st-bar h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; letter-spacing: -.03em; }
.st-bar span { color: #9d98b3; }
.st-stats { text-align: center; } .st-count { display: block; font-size: 2.4rem; font-weight: 850; color: #fff; line-height: 1; } .st-stats small { color: #9d98b3; }
.st-right { display: flex; gap: 14px; align-items: center; color: #cfcbe0; }
.st-hint { color: #77728a; font-size: .85rem; margin: 0 4px 14px; }
.st-choose { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.st-pick { max-width: 960px; text-align: center; color: #fff; }
.st-pick h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.04em; } .st-pick p { color: #b6b1c9; }
.st-pick > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 26px; }
.st-pick a { display: grid; gap: 4px; padding: 24px; border-radius: 22px; text-decoration: none; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: transform .15s, background .15s; }
.st-pick a:hover { transform: translateY(-3px); background: rgba(255,255,255,.12); }
.st-pick b { font-size: 1.3rem; } .st-pick span { color: #b6b1c9; } .st-pick em { font-style: normal; color: #ffb36b; font-weight: 700; margin-top: 8px; }

/* Kasse */
body.view-pos { background: #0e0d14; color: #ece9f5; overflow: hidden; }
body.view-pos main.pos2 { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto 1fr; padding: 0; }
.pos-bar { display: flex; align-items: center; gap: 18px; padding: 10px 16px; background: #17151f; border-bottom: 1px solid rgba(255,255,255,.06); }
.pos-brand { display: flex; align-items: center; gap: 10px; } .pos-brand b { display: block; } .pos-brand small { color: #8f8aa6; }
.pos-modes { display: flex; gap: 4px; margin: 0 auto; background: rgba(255,255,255,.05); padding: 4px; border-radius: 14px; }
.pos-modes button { border: 0; background: none; color: #b6b1c9; font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 10px; cursor: pointer; }
.pos-modes button.on { background: #fff; color: var(--ink); }
.pos-modes em { font-style: normal; background: var(--accent); color: #fff; border-radius: 99px; padding: 0 7px; font-size: .75rem; margin-left: 4px; }
.pos-modes em:empty { display: none; }
.pos-right { display: flex; align-items: center; gap: 14px; }
.pos-mode { min-height: 0; overflow: hidden; }
#mode-sale { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 440px); }
#mode-sale[hidden], #mode-orders[hidden], #mode-report[hidden] { display: none; }
.pos-left { display: grid; grid-template-rows: auto 1fr; min-height: 0; padding: 12px; gap: 12px; }
.pos-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pos-cats button { flex-shrink: 0; border: 0; padding: 12px 18px; border-radius: 14px; font: inherit; font-weight: 700; color: #fff; background: color-mix(in srgb, var(--c) 22%, #1d1a27); box-shadow: inset 0 -3px 0 var(--c); cursor: pointer; }
.pos-cats button.on { background: var(--c); box-shadow: 0 10px 22px -10px var(--c); }
.pos-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); grid-auto-rows: 120px; gap: 10px; overflow-y: auto; align-content: start; padding-bottom: 12px; }
.pos-key { position: relative; border: 0; border-radius: 18px; padding: 12px; text-align: left; display: grid; grid-template-rows: auto 1fr auto; cursor: pointer; font: inherit; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 85%, #fff 10%), color-mix(in srgb, var(--c) 70%, #000 25%)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 0 color-mix(in srgb, var(--c) 55%, #000 45%); transition: transform .06s, box-shadow .06s; user-select: none; -webkit-tap-highlight-color: transparent; }
.pos-key:active, .pos-key.hit { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 0 color-mix(in srgb, var(--c) 55%, #000 45%); }
.pos-key .e { font-size: 1.8rem; } .pos-key .n { font-weight: 700; line-height: 1.15; align-self: end; } .pos-key .p { font-weight: 800; opacity: .95; }
.pos-key i { position: absolute; right: 8px; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--bad); font-style: normal; font-weight: 900; display: grid; place-items: center; font-size: .8rem; }
.pos-right-col { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 10px; padding: 12px; background: #15131c; border-left: 1px solid rgba(255,255,255,.06); min-height: 0; }
.pos-receipt { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; background: #fffef8; color: #1b1a17; border-radius: 6px 6px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; position: relative; padding-bottom: 10px;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 8px repeat-x; }
.pos-receipt-head { display: flex; justify-content: space-between; padding: 12px 14px 8px; border-bottom: 1px dashed #c9c5b8; letter-spacing: .2em; }
.pos-receipt-head span { letter-spacing: 0; font-size: .8rem; color: #8a5a00; }
.pos-lines { list-style: none; margin: 0; padding: 4px 6px; overflow-y: auto; }
.pos-lines li { display: grid; grid-template-columns: 38px 1fr auto; gap: 6px; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: .95rem; }
.pos-lines li.sel { background: #ffe9c7; } .pos-lines li small { display: block; color: #8a5a00; font-size: .78rem; }
.pos-lines li.empty { display: block; text-align: center; color: #a19d90; padding: 30px 10px; cursor: default; }
.pos-lines .q { font-weight: 800; } .pos-lines .p { font-weight: 700; }
.pos-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px 6px; border-top: 2px solid #1b1a17; font-size: 1.1rem; }
.pos-sum b { font-size: 1.6rem; }
.pos-tools { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.pos-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pos-pad button, .pos-fn button { border: 0; border-radius: 12px; padding: 12px 0; font: inherit; font-weight: 800; font-size: 1.15rem; color: #fff; background: #26232f; box-shadow: 0 3px 0 #0b0a10; cursor: pointer; }
.pos-pad button:active, .pos-fn button:active { transform: translateY(2px); box-shadow: 0 1px 0 #0b0a10; }
.pos-fn { display: grid; gap: 6px; } .pos-fn button { font-size: .85rem; padding: 9px 4px; } .pos-fn button.warn { background: #3a1d26; color: #ffb0c0; }
.pos-mult { text-align: center; background: #26232f; border-radius: 12px; padding: 6px; font-size: .8rem; color: #b6b1c9; } .pos-mult b { color: #fff; font-size: 1.2rem; }
.pos-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-pay button { border: 0; border-radius: 16px; padding: 20px 0; font: inherit; font-size: 1.25rem; font-weight: 900; letter-spacing: .04em; color: #fff; cursor: pointer; box-shadow: 0 5px 0 rgba(0,0,0,.45); }
.pos-pay button:disabled { opacity: .35; cursor: not-allowed; }
.pos-cash { background: linear-gradient(160deg, #22c55e, #15803d); } .pos-card { background: linear-gradient(160deg, #6366f1, #4338ca); }
.pos-board { padding: 14px; height: 100%; overflow: auto; }
.pos-board .board-col { background: #17151f; border-color: rgba(255,255,255,.06); color: #ece9f5; }
.pos-report { padding: 24px; overflow: auto; height: 100%; } .pos-report h2 { color: #fff; } .pos-report small { color: #8f8aa6; font-weight: 500; }
.pos-report .kpi { background: #17151f; color: #fff; } .pos-report .kpi .l { color: #8f8aa6; }
.pos-report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .pos-report .card { background: #17151f; border-color: rgba(255,255,255,.06); color: #ece9f5; }
.pos-rrow { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.pos-dialog { color: var(--text); max-width: 460px; }
.pos-due, .pos-given, .pos-change { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; font-size: 1.05rem; }
.pos-due b { font-size: 1.6rem; } .pos-given b { font-size: 1.3rem; } .pos-change { border-top: 2px solid var(--ink); margin-top: 8px; } .pos-change b { font-size: 1.8rem; color: var(--ok); }
.pos-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0; }
.pos-quick button { border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 10px 0; font: inherit; font-weight: 700; cursor: pointer; }
.pos-pad.small button { padding: 10px 0; font-size: 1rem; background: #f1eff8; color: var(--ink); box-shadow: 0 2px 0 #d9d5e6; }
.pos-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pos-terminal { margin: 6px auto 10px; width: 220px; padding: 18px 16px 26px; border-radius: 26px; background: linear-gradient(160deg, #2a2735, #121019); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); position: relative; }
.pos-terminal-screen { background: #d7f5e3; color: #0b3b22; border-radius: 10px; padding: 16px 10px; text-align: center; font-family: ui-monospace, Menlo, monospace; display: grid; gap: 6px; }
.pos-terminal-screen b { font-size: 1.5rem; }
.pos-nfc { color: #6366f1; text-align: center; margin-top: 14px; letter-spacing: -2px; font-weight: 900; animation: of-pulse 1.2s infinite; }
.pos-paper { background: #fffef8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; padding: 18px; border-radius: 6px; border: 1px dashed #c9c5b8; font-size: .9rem; display: grid; gap: 6px; }
.pos-paper .c { text-align: center; } .pos-paper .big { font-size: 1rem; margin: 6px 0; } .pos-paper .big b { font-size: 2.6rem; }
.pos-paper .row { display: flex; justify-content: space-between; gap: 10px; } .pos-paper .tot { border-top: 2px solid #1b1a17; padding-top: 6px; font-weight: 800; font-size: 1.1rem; }
@media print {
  body.print-receipt * { visibility: hidden !important; }
  body.print-receipt #printable, body.print-receipt #printable * { visibility: visible !important; }
  body.print-receipt #printable { position: fixed; left: 0; top: 0; width: 72mm; border: 0; font-size: 11px; }
}
@media (max-width: 900px) {
  #mode-sale { grid-template-columns: 1fr; overflow-y: auto; } body.view-pos { overflow: auto; } body.view-pos main.pos2 { height: auto; }
  .pos-modes button { padding: 8px 10px; } .pos-report-cols { grid-template-columns: 1fr; }
}

/* Einblend-Animationen ohne Transparenz: Inhalte bleiben sichtbar, auch wenn ein Browser
   Animationen anhält (Hintergrund-Tab, Energiesparen, ältere Safari-Versionen). */
@keyframes of-pop { from { transform: scale(.97); } to { transform: none; } }
@keyframes of-rise { from { transform: translateY(14px); } to { transform: none; } }

/* Status- und Fehlerseiten */
main.status-page { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 40px 16px; }
.status-card { max-width: 520px; text-align: center; padding: 40px 32px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg); }
.status-card h1, .status-card h2 { margin: 10px 0; }
.status-card p { color: var(--muted); }
.status-ico { width: 84px; height: 84px; margin: 0 auto; border-radius: 26px; display: grid; place-items: center; font-size: 2.6rem; background: var(--accent-grad); box-shadow: 0 20px 40px -16px rgba(255,61,110,.8); }
.c-legal-note { font-size: .82rem; color: var(--muted); background: rgba(255,255,255,.7); border-radius: 12px; padding: 8px 12px; display: inline-block; }

/* ═══════════ Bestellstatus ═══════════ */
body.view-kunde main.container.os-main > .os { margin: 0 0 24px; }
.os { position: relative; overflow: hidden; isolation: isolate; min-height: 64vh; display: flex; align-items: flex-end; border-radius: 0 0 44px 44px; color: #fff;
  padding: 120px clamp(20px, 6vw, 96px) 40px; background: #1a0f2e; transition: background .6s; }
.os-bg { position: absolute; inset: 0; z-index: -1; }
.os-bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .8; animation: l-drift 16s ease-in-out infinite alternate; }
.os-bg i:nth-child(1) { width: 55vw; height: 55vw; left: -15vw; top: -25vw; background: #ff6a1a; }
.os-bg i:nth-child(2) { width: 50vw; height: 50vw; right: -15vw; top: 0; background: #b23cff; animation-duration: 20s; }
.os-bg i:nth-child(3) { width: 40vw; height: 40vw; left: 35vw; bottom: -25vw; background: #ff2f6d; animation-duration: 24s; }
.os[data-status="fertig"] .os-bg i:nth-child(1), .os[data-status="ausgegeben"] .os-bg i:nth-child(1) { background: #12d67b; }
.os[data-status="fertig"] .os-bg i:nth-child(3) { background: #19b5ff; }
.os[data-status="storniert"] { background: #2a2730; } .os[data-status="storniert"] .os-bg { filter: grayscale(1); }
.os-inner { width: 100%; max-width: 1100px; margin: 0 auto; }
.os-live { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); padding: 8px 14px; border-radius: 99px; font-weight: 600; margin: 0 0 28px; }
.os-hero { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.os-ring { position: relative; width: clamp(150px, 22vw, 230px); aspect-ratio: 1; }
.os-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.os-ring circle { fill: none; stroke-width: 9; }
.os-ring-bg { stroke: rgba(255,255,255,.18); }
.os-ring-fg { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 12px rgba(255,255,255,.6)); }
.os-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(3rem, 7vw, 5rem); animation: of-breathe 2.4s ease-in-out infinite; }
.os-label { margin: 0; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; opacity: .85; }
.os-num { font-size: clamp(4rem, 12vw, 9rem); font-weight: 900; line-height: .9; letter-spacing: -.06em; text-shadow: 0 20px 60px rgba(0,0,0,.25); }
.os-headline { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.8rem); margin: 14px 0 6px; letter-spacing: -.03em; background: none; -webkit-text-fill-color: #fff; }
.os-sub { margin: 0; font-size: 1.1rem; opacity: .9; max-width: 560px; }
.os-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 36px 0 0; padding: 0; counter-reset: s; }
.os-steps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.1); font-weight: 700; color: rgba(255,255,255,.65); transition: background .4s, color .4s; }
.os-steps li span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.12); flex-shrink: 0; }
.os-steps li.done { background: rgba(255,255,255,.22); color: #fff; }
.os-steps li.now { background: #fff; color: var(--ink); box-shadow: 0 16px 40px -14px rgba(0,0,0,.5); }
.os-steps li.now span { background: var(--accent-grad); }
.os-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 20px; max-width: 1100px; margin: 0 auto !important; }
.os-items ul { list-style: none; margin: 0; padding: 0; }
.os-items li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.os-items .q { font-weight: 800; } .os-items small { display: block; color: var(--muted); }
.os-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-weight: 600; } .os-total b { font-size: 1.5rem; }
.os-rname { font-size: 1.15rem; margin: 0 0 6px; }
.os-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 3000; overflow: hidden; }
.os-confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: os-fall 3s cubic-bezier(.3,.6,.4,1) forwards; }
@keyframes os-fall { to { transform: translateY(110vh) rotate(720deg); } }
@media (max-width: 760px) {
  .os { min-height: 0; border-radius: 0 0 30px 30px; }
  .os-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .os-steps { grid-template-columns: 1fr 1fr; } .os-grid { grid-template-columns: 1fr; }
}

/* ═══════════ Ausgabe & Einrichtung ═══════════ */
body.view-ausgabe { background: radial-gradient(900px 500px at 80% -10%, rgba(18,214,123,.16), transparent 60%), #0c0b12; color: #ece9f5; }
body.view-ausgabe main { padding: 0; } body.view-ausgabe .lock-pill { display: none; }
.ag-full { min-height: 100vh; padding: 0 20px 24px; }
.ag-cols { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.ag-col h2 { color: #fff; margin: 0 0 14px; } .ag-col h2 small { color: #8f8aa6; font-weight: 500; font-size: .8rem; margin-left: 8px; }
.ag-nums { display: flex; flex-wrap: wrap; gap: 10px; }
.ag-nums span { font-size: 2rem; font-weight: 850; padding: 10px 18px; border-radius: 16px; background: rgba(255,255,255,.06); color: #cfcbe0; }
.ag-nums span.in_arbeit { color: #ffcf4d; }
.ag-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ag-card { text-align: left; border: 0; cursor: pointer; display: grid; gap: 6px; padding: 18px; border-radius: 22px; font: inherit; color: var(--ink); background: linear-gradient(160deg, #eafff3, #c8f7dc); box-shadow: 0 20px 40px -20px rgba(18,214,123,.6); transition: transform .12s; }
.ag-card:active { transform: scale(.98); }
.ag-card b { font-size: 3.2rem; line-height: 1; letter-spacing: -.04em; } .ag-card em { font-style: normal; color: #3d5c4b; font-size: .85rem; } .ag-card strong { color: var(--bad); }
.ag-card.new { animation: ag-glow 1.2s ease 3; }
@keyframes ag-glow { 50% { box-shadow: 0 0 0 6px rgba(34,224,122,.55), 0 20px 40px -20px rgba(18,214,123,.6); } }
.ag-empty { color: #77728a; }
@media (max-width: 800px) { .ag-cols { grid-template-columns: 1fr; } }
.setup { max-width: 1100px; margin: 0 auto; }
.setup-step { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .78rem; color: var(--accent); margin: 10px 0 6px; }
.setup h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.setup-h { margin: 28px 0 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.setup-card { position: relative; display: grid; gap: 4px; padding: 20px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.setup-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.setup-card.hl { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.setup-card b { font-size: 1.15rem; } .setup-card em { position: absolute; right: 14px; top: 14px; }
.setup-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: linear-gradient(135deg, #fff1e8, #f6e9ff); margin-bottom: 8px; }
.setup-foot { margin-top: 30px; color: var(--muted); }
.ed-sub { margin: 8px 0 14px; } .ed-sub + .ed-stcards { margin-bottom: 26px; }
.ed-sys { background: linear-gradient(160deg, #fff, #f3f0ff); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #22e07a; display: inline-block; animation: l-ping 1.8s infinite; }
@keyframes l-ping { 0% { box-shadow: 0 0 0 0 rgba(34,224,122,.6); } 70% { box-shadow: 0 0 0 10px rgba(34,224,122,0); } 100% { box-shadow: 0 0 0 0 rgba(34,224,122,0); } }
@keyframes l-drift { to { transform: translate(8vw, 6vh) scale(1.15); } }

/* Kasse: alles auf einem Bildschirm */
#mode-sale.pos-one { grid-template-columns: minmax(0, 1fr) clamp(330px, 26vw, 420px) clamp(300px, 24vw, 400px); }
.pos-kpis { display: flex; align-items: center; gap: 18px; margin: 0 auto; }
.pos-kpis span { display: grid; text-align: center; font-size: .72rem; color: #8f8aa6; text-transform: uppercase; letter-spacing: .06em; }
.pos-kpis b { font-size: 1.1rem; color: #fff; letter-spacing: 0; text-transform: none; }
.pos-report-btn { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #ece9f5; font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 12px; cursor: pointer; }
.pos-orders { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; padding: 12px; background: #121019; border-left: 1px solid rgba(255,255,255,.06); }
.pos-orders h2 { margin: 2px 4px 10px; font-size: 1rem; color: #fff; display: flex; align-items: center; gap: 8px; }
.pos-orders h2 em { font-style: normal; background: var(--accent); color: #fff; border-radius: 99px; padding: 0 8px; font-size: .78rem; } .pos-orders h2 em:empty { display: none; }
.pos-olist { overflow-y: auto; display: grid; gap: 14px; align-content: start; padding-right: 2px; }
.pos-olist h3 { margin: 0 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #8f8aa6; display: flex; justify-content: space-between; }
.pos-olist .order-card { background: #1d1a27; color: #ece9f5; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; box-shadow: none; }
.pos-olist .order-card .num { font-size: 1.25rem; } .pos-olist .order-card ul { margin: 4px 0; font-size: .85rem; }
.pos-olist .order-card .muted { color: #8f8aa6; }
.pos-olist [data-col="fertig"] .order-card { background: linear-gradient(160deg, #123826, #0f2a1d); border-color: rgba(34,224,122,.35); }
.pos-olist .done .order-card { opacity: .55; }
.pos-olist select { max-width: 100%; font-size: .8rem; padding: 4px 6px; }
.pos-report-box { max-width: 640px; } .pos-report-box .kpi { background: var(--surface-2); }
.pos-report-box .pos-rrow { border-bottom-color: var(--border); }
@media (max-width: 1280px) { #mode-sale.pos-one { grid-template-columns: minmax(0, 1fr) 340px; } .pos-orders { grid-column: 1 / -1; max-height: 40vh; border-left: 0; border-top: 1px solid rgba(255,255,255,.06); } body.view-pos { overflow: auto; } body.view-pos main.pos2 { height: auto; } }
@media (max-width: 900px) { #mode-sale.pos-one { grid-template-columns: 1fr; } .pos-kpis span:nth-child(-n+2) { display: none; } }

/* Eigene Rückfragen und Vollbild-Knopf */
.of-ask .box { max-width: 420px; color: var(--text); display: grid; gap: 14px; text-align: left; }
.of-ask p { margin: 0; font-size: 1.1rem; font-weight: 600; }
.of-ask input { width: 100%; font-size: 1.05rem; }
.of-ask-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn.danger-fill { background: linear-gradient(135deg, #f43f5e, #be123c); color: #fff; border: 0; }
.pos-full { width: 34px; height: 34px; border-radius: 50%; border: 1px solid currentColor; background: none; color: inherit; opacity: .45; cursor: pointer; font-size: .95rem; }
.pos-full:hover { opacity: 1; }
html:has(body.view-pos), html:has(body.view-station), html:has(body.view-ausgabe) { background: #0e0d14; }
:fullscreen { background: #0e0d14; }
