/* Imbiss-Erweiterung: Designsystem fuer Kasse, Kueche, Laeufer und Monitor
 * Grundlage: "OrderSprinter Imbiss – Design" (Farben, Schrift, Bausteine).
 * Schriften liegen lokal in fonts/ (Lizenz: fonts/LIZENZ-OFL.txt), damit alles ohne Internet laeuft.
 */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url("fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
	--bg: #F5F3EF;
	--surface: #FFFFFF;
	--line: #E2DCD3;
	--line-soft: #EFEBE5;
	--field-line: #CFC7BC;
	--text: #1C1917;
	--text-2: #3F3A34;
	--muted: #5C544B;
	--muted-2: #8A8178;
	--accent: #C2410C;
	--accent-dark: #9A3412;
	--accent-ink: #7C2D12;
	--accent-soft: #FFEDD5;
	--ok: #15803D;
	--ok-ink: #166534;
	--ok-soft: #DCFCE7;
	--warn-ink: #92400E;
	--warn-soft: #FEF3C7;
	--danger: #B91C1C;
	--danger-ink: #991B1B;
	--danger-soft: #FEE2E2;
	--chip: #EFEBE5;
	--r-12: 12px;
	--r-14: 14px;
	--r-16: 16px;
	--r-18: 18px;
	--font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--num: "Space Grotesk", Inter, system-ui, sans-serif;
	color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.4 var(--font);
	-webkit-tap-highlight-color: transparent;
	-webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: var(--accent); }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.03em; }

/* ---------- Bausteine ---------- */
.btn {
	height: 48px; padding: 0 16px; border-radius: var(--r-12);
	border: 1px solid var(--line); background: var(--surface); color: var(--text);
	font-weight: 600; font-size: 16px;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn:active { filter: brightness(.96); }
.btn-dark { background: var(--text); border-color: var(--text); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-danger-text { color: var(--danger-ink); }
.btn-lg { height: 64px; border-radius: var(--r-14); font-size: 18px; }
.btn:disabled { opacity: .55; cursor: default; }

.chip {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
	border-radius: 999px; background: var(--chip); color: var(--text-2);
	font-size: 14px; font-weight: 600; white-space: nowrap;
}
.chip-dark { background: var(--text); color: #fff; }
.chip-warn { background: var(--warn-soft); color: var(--warn-ink); }
.chip-danger { background: var(--danger-soft); color: var(--danger-ink); }
.chip-ok { background: var(--ok-soft); color: var(--ok-ink); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.chip-danger .dot { background: var(--danger); }

.avatar {
	width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; font-weight: 700;
}
.avatar.muted { background: var(--chip); color: var(--text-2); }

.undo {
	height: 48px; min-width: 64px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-12);
	background: var(--surface); color: var(--text); flex-shrink: 0;
	font: 700 20px var(--num); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}

/* ---------- App-Rahmen ---------- */
.app { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
	display: flex; align-items: center; gap: 16px; min-height: 72px; flex-shrink: 0; padding: 0 20px;
	background: var(--surface); border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0; font: 700 26px var(--num); letter-spacing: -.01em; }
.topbar .grow { flex-grow: 1; }
.topbar .hint { font-size: 14px; color: var(--muted); }
.topbar .who { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.bottombar {
	display: flex; align-items: center; gap: 12px; min-height: 76px; flex-shrink: 0; padding: 0 20px;
	background: var(--surface); border-top: 1px solid var(--line); overflow-x: auto;
}
.bottombar .label { font-size: 15px; color: var(--muted); white-space: nowrap; }

.empty { margin: auto; text-align: center; color: var(--muted); font-size: 18px; padding: 48px 16px; }
.empty strong { display: block; color: var(--text); font-size: 22px; font-weight: 600; margin-bottom: 6px; }

/* ---------- Los-Karte (Kueche, Laeufer) ---------- */
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-18);
	overflow: hidden; display: flex; flex-direction: column;
}
.card.urgent { border: 2px solid var(--danger); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 6px; }
.card-head .losnr { font-size: 48px; line-height: 1; }
.card-head .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.card-head .meta small { font-size: 13px; color: var(--muted); }
.items { list-style: none; margin: 0; padding: 4px 16px 14px; display: flex; flex-direction: column; }
.items li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 19px; line-height: 1.3; }
.items li:first-child { border-top: 0; }
.items .cnt { min-width: 30px; font-weight: 700; }
.items .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.items .name { font-weight: 600; }
.items .opt { font-size: 15px; font-weight: 600; color: var(--accent-dark); }
.items .ext { font-size: 15px; color: var(--muted); }
.card-action {
	height: 64px; border: 0; margin-top: auto; color: #fff; font-size: 19px; font-weight: 600;
	display: flex; align-items: center; justify-content: center; gap: 10px;
}
.card-action.ok { background: var(--ok); }
.card-action.accent { background: var(--accent); }
.card-action:active { filter: brightness(.92); }
.card-action:disabled { opacity: .6; }

/* ---------- Kueche ---------- */
.kitchen-grid {
	flex-grow: 1; min-height: 0; overflow-y: auto; padding: 20px;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-content: start;
}

/* ---------- Laeufer (Handy) ---------- */
.runner .topbar { min-height: 0; padding: 14px 16px; gap: 12px; }
.runner .topbar h1 { font-size: 24px; }
.runner .topbar .sub { font-size: 14px; color: var(--muted); }
.runner .topbar .sub strong { color: var(--accent-dark); }
.runner .topbar .titles { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.runner .chip { height: 32px; padding: 0 10px; font-size: 13px; }
.icon-btn {
	width: 48px; height: 48px; border-radius: var(--r-12); border: 1px solid var(--line);
	background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.runner-list { flex-grow: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 12px; }
.runner-list .card { flex-shrink: 0; }
.runner-list .card-head .los { display: flex; align-items: baseline; gap: 8px; }
.runner-list .card-head .los span:first-child { font-size: 14px; font-weight: 600; color: var(--muted); }
.runner-list .card-head .losnr { font-size: 44px; }
.runner-list .items { padding: 2px 16px 12px; }
.runner-list .items li { font-size: 17px; padding: 7px 0; }
.runner-list .items .cnt { min-width: 28px; color: var(--accent-dark); }
.runner-list .items .name { font-weight: 500; }
.runner-list .items .ext, .runner-list .items .opt { font-size: 14px; }
.runner-list .card-action { height: 60px; font-size: 18px; }
.runner .bottombar { min-height: 0; padding: 12px 14px 20px; gap: 10px; }
.runner .bottombar .label { font-size: 13px; line-height: 1.3; white-space: normal; }
.runner .undo { font-size: 19px; padding: 0 12px; }

/* ---------- Anmeldung ---------- */
.login-page { min-height: 100%; display: flex; justify-content: center; padding: 56px 24px 32px; }
.app > .login-page, .app > .empty { flex-grow: 1; overflow-y: auto; }
.login { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 28px; }
.login .brand { width: 56px; height: 56px; border-radius: var(--r-16); background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.login .head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.login h1 { margin: 0; font: 700 32px var(--num); letter-spacing: -.02em; }
.login .head p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }
.login form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.login fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.login legend, .login .lbl { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.login .lbl { margin-bottom: 0; }
.login .user {
	display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 16px; border-radius: var(--r-14);
	background: var(--surface); border: 1px solid var(--line); font-size: 17px; font-weight: 500; cursor: pointer;
}
.login .user.on { border: 2px solid var(--accent); padding: 0 15px; font-weight: 600; }
.login .user .avatar { background: var(--chip); color: var(--text-2); font-size: 14px; }
.login .user.on .avatar { background: var(--accent-soft); color: var(--accent-dark); }
.login .user input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.login .pwrow { display: flex; flex-direction: column; gap: 10px; }
.login .pw { height: 56px; padding: 0 16px; border-radius: var(--r-14); border: 1px solid var(--field-line); background: var(--surface); font-size: 20px; letter-spacing: .2em; width: 100%; }
.login .pw:focus { outline: none; border: 2px solid var(--accent); padding: 0 15px; }
.login .submit { height: 60px; border: 0; border-radius: var(--r-14); background: var(--text); color: #fff; font-size: 18px; font-weight: 600; }
.login .err { margin: 0; min-height: 20px; font-size: 14px; color: var(--danger-ink); }
.login .tip { margin: 0; margin-top: auto; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }

/* ---------- Hauptmenue ---------- */
.menu-page { min-height: 100%; display: flex; justify-content: center; }
.menu { width: 100%; max-width: 560px; display: flex; flex-direction: column; min-height: 100%; }
.menu header { display: flex; align-items: center; gap: 12px; padding: 20px 20px 12px; }
.menu header .avatar { width: 44px; height: 44px; font-size: 15px; }
.menu header .titles { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.menu header h1 { margin: 0; font: 700 24px var(--num); }
.menu header span { font-size: 14px; color: var(--muted); }
.menu .round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; }
.menu nav { display: flex; flex-direction: column; gap: 18px; padding: 8px 20px 20px; flex-grow: 1; }
.menu .section { display: flex; flex-direction: column; gap: 10px; }
.menu .section-title { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.menu .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.menu .tile {
	display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 92px; border-radius: var(--r-16);
	background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 16px; font-weight: 600; text-decoration: none;
}
.menu .tile svg { color: var(--accent); }
.menu .tile.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.menu .tile.primary svg { color: #fff; }
.menu .list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); overflow: hidden; }
.menu .list a {
	display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px;
	border-top: 1px solid var(--line-soft); font-size: 16px; font-weight: 500; color: var(--text); text-decoration: none;
}
.menu .list a:first-child { border-top: 0; }
.menu .list a svg { color: var(--muted-2); }
.menu .logout { padding: 0 20px 24px; }
.menu .logout .btn { width: 100%; height: 56px; border-radius: var(--r-14); color: var(--danger-ink); }

/* ---------- Kasse ---------- */
.pos { display: flex; flex-grow: 1; min-height: 0; }
.search {
	display: flex; align-items: center; gap: 10px; height: 48px; width: 360px; max-width: 34vw; padding: 0 14px;
	border-radius: var(--r-12); background: var(--bg); border: 1px solid var(--line); color: var(--muted);
}
.search input { border: 0; background: transparent; font-size: 16px; color: var(--text); flex-grow: 1; outline: none; min-width: 0; }
.cats {
	width: 200px; flex-shrink: 0; padding: 16px 12px; display: flex; flex-direction: column; gap: 6px;
	border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto;
}
.cats .group { padding: 4px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cats button + .group { padding-top: 14px; }
.cats button {
	min-height: 52px; text-align: left; padding: 6px 14px; border: 0; border-radius: var(--r-12);
	background: transparent; color: var(--text); font-size: 16px; font-weight: 500; flex-shrink: 0;
}
.cats button[aria-pressed="true"] { background: var(--text); color: #fff; font-weight: 600; }
.products { flex-grow: 1; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.products .head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.products h2 { margin: 0; font-size: 20px; font-weight: 600; }
.products .head span { font-size: 14px; color: var(--muted); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.prod {
	min-height: 112px; padding: 14px 16px; border-radius: var(--r-16); border: 1px solid var(--line);
	background: var(--surface); color: var(--text); text-align: left;
	display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
.prod:active { background: var(--accent-soft); }
.prod .pname { font-size: 17px; font-weight: 600; line-height: 1.25; }
.prod .prow { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.prod .price { font-size: 16px; font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.prod .plus { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); }
.cart { width: 380px; flex-shrink: 0; background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.cart .head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.cart h2 { margin: 0; font-size: 20px; font-weight: 600; }
.cart .head span { font-size: 14px; color: var(--muted); }
.cart ul { list-style: none; margin: 0; padding: 0 20px; display: flex; flex-direction: column; flex-grow: 1; overflow-y: auto; min-height: 0; }
.cart li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.cart li .txt { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.cart li .n { font-size: 16px; font-weight: 600; }
.cart li .x { font-size: 13px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; padding: 0; }
.qty span { min-width: 28px; text-align: center; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart .sum-line { width: 64px; text-align: right; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart li.empty-cart { margin: auto 0; padding: 32px 0; justify-content: center; text-align: center; color: var(--muted); font-size: 15px; border: 0; }
.cart .foot { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); }
.cart .note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-12); background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; line-height: 1.35; }
.cart .total { display: flex; align-items: baseline; justify-content: space-between; }
.cart .total span:first-child { font-size: 16px; color: var(--muted); }
.cart .total .num { font-size: 32px; }
.cart .actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.cart .actions .btn { height: 64px; border-radius: var(--r-14); }

/* ---------- Dialoge ---------- */
.overlay {
	position: fixed; inset: 0; z-index: 50; padding: 16px;
	background: rgba(28, 25, 23, .55); display: flex; align-items: center; justify-content: center;
}
.dialog {
	width: 440px; max-width: 100%; max-height: 100%; overflow-y: auto; padding: 28px; border-radius: 24px; background: var(--surface);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .28); display: flex; flex-direction: column; gap: 18px;
}
.dialog h2 { margin: 0; font: 700 26px var(--num); }
.dialog .lead { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.dialog .losfield {
	height: 96px; width: 100%; border: 2px solid var(--accent); border-radius: var(--r-16); text-align: center;
	font: 700 64px var(--num); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--text); background: var(--surface); outline: none;
}
.dialog .msg { margin: -6px 0 0; min-height: 20px; font-size: 14px; font-weight: 500; color: var(--danger-ink); }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.keypad button { height: 64px; border-radius: var(--r-14); border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.keypad button.fn { background: var(--surface); }
.keypad button:active { background: var(--line); }
.dialog .actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.dialog .actions .btn { height: 64px; border-radius: var(--r-14); font-size: 17px; }
.dialog .actions .btn-accent, .dialog .actions .btn-dark { font-size: 18px; }
.dialog p.text { margin: 0; font-size: 17px; line-height: 1.45; }

.extras { display: flex; flex-direction: column; gap: 10px; }
.extra {
	display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 10px 0 16px; border-radius: var(--r-14);
	border: 1px solid var(--line); background: var(--surface); font-size: 17px; font-weight: 500; text-align: left; width: 100%;
}
.extra.on { border: 2px solid var(--accent); padding: 0 9px 0 15px; font-weight: 600; }
.extra .ename { flex-grow: 1; }
.extra .eprice { color: var(--muted); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.extra .check { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--field-line); display: flex; align-items: center; justify-content: center; color: #fff; }
.extra.on .check { background: var(--accent); border-color: var(--accent); }
.dialog .lbl { font-size: 14px; font-weight: 600; color: var(--text-2); }
.dialog .remark { height: 52px; padding: 0 14px; border-radius: var(--r-12); border: 1px solid var(--field-line); width: 100%; font-size: 16px; }
.dialog .remark:focus { outline: none; border: 2px solid var(--accent); padding: 0 13px; }

/* ---------- Meldung ---------- */
#toast {
	position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 16px); z-index: 60; max-width: 90vw;
	display: flex; align-items: center; gap: 10px;
	background: var(--text); color: #fff; padding: 14px 20px; border-radius: var(--r-14); font-size: 16px; font-weight: 500;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.ok { background: var(--ok-ink); }
#toast.bad { background: var(--danger-ink); }

/* ---------- Abholmonitor (Fire TV, Masse aus dem 1920x1080-Entwurf) ---------- */
body.monitor {
	--u: min(calc(100vw / 1920), calc(100vh / 1080));
	background: #171412; color: #F5F3EF; overflow: hidden; color-scheme: dark;
}
.mon { height: 100vh; display: flex; flex-direction: column; }
.mon-main { display: flex; flex-grow: 1; min-height: 0; }
.mon-prep {
	width: calc(680 * var(--u)); flex-shrink: 0; padding: calc(64 * var(--u)) calc(56 * var(--u));
	display: flex; flex-direction: column; gap: calc(40 * var(--u)); border-right: 2px solid #2E2925; min-height: 0;
}
.mon-ready { flex-grow: 1; min-width: 0; padding: calc(64 * var(--u)); display: flex; flex-direction: column; gap: calc(40 * var(--u)); min-height: 0; }
.mon h2 { margin: 0; display: flex; align-items: center; gap: calc(18 * var(--u)); }
.mon-prep h2 { font-size: calc(44 * var(--u)); font-weight: 600; color: #C9C2B9; }
.mon-ready h2 { font-size: calc(56 * var(--u)); font-weight: 700; color: #FDBA74; }
.mon h2 svg { width: .9em; height: .9em; }
.mon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; overflow: hidden; }
.mon-prep .mon-grid { gap: calc(20 * var(--u)); }
.mon-ready .mon-grid { gap: calc(28 * var(--u)); }
.mon-prep .n {
	height: calc(120 * var(--u)); border-radius: calc(20 * var(--u)); background: #24201D; color: #D9D3CB;
	display: flex; align-items: center; justify-content: center;
	font: 600 calc(72 * var(--u)) var(--num); font-variant-numeric: tabular-nums;
}
.mon-prep .n.long { font-size: calc(48 * var(--u)); }
.mon-ready .n {
	/* 3 Reihen muessen in die Hoehe passen: 1080 - Fusszeile - Rand - Ueberschrift = ca. 750 px */
	height: calc(224 * var(--u)); border-radius: calc(28 * var(--u)); background: var(--accent); color: #fff;
	border: calc(6 * var(--u)) solid var(--accent); position: relative;
	display: flex; align-items: center; justify-content: center;
	font: 700 calc(168 * var(--u)) var(--num); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.mon-ready .n.d3 { font-size: calc(136 * var(--u)); }
.mon-ready .n.long { font-size: calc(96 * var(--u)); }
.mon-ready .n.new { border-color: #FDBA74; }
/* Frisch abholbereit: blinkt (gut 1x pro Sekunde, unter der Flackergrenze von 3 Hz), danach bleibt "Neu" stehen */
.mon-ready .n.blink { animation: blink 1.2s steps(1, end) infinite; }
@keyframes blink {
	0% { background: var(--accent); color: #fff; border-color: #FDBA74; }
	50% { background: #FDBA74; color: #171412; border-color: #fff; }
}
.mon-ready .n .badge {
	position: absolute; top: calc(18 * var(--u)); right: calc(20 * var(--u)); height: calc(40 * var(--u)); padding: 0 calc(16 * var(--u));
	border-radius: 999px; background: #fff; color: var(--accent-dark);
	font: 700 calc(22 * var(--u)) var(--font); letter-spacing: 0; display: flex; align-items: center;
}
@keyframes arrive { 0% { transform: scale(.92); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
.mon-foot {
	display: flex; align-items: center; gap: calc(24 * var(--u)); height: calc(104 * var(--u)); flex-shrink: 0;
	padding: 0 calc(56 * var(--u)); background: #211D1A; border-top: 2px solid #2E2925;
}
.mon-foot .name { font: 700 calc(32 * var(--u)) var(--num); color: #F5F3EF; white-space: nowrap; }
.mon-foot .info { font-size: calc(26 * var(--u)); color: #C9C2B9; }
.mon-foot .grow { flex-grow: 1; }
.mon-foot .clock { font: 600 calc(40 * var(--u)) var(--num); color: #F5F3EF; font-variant-numeric: tabular-nums; }
.mon-foot .offline { color: #FCA5A5; font-size: calc(24 * var(--u)); font-weight: 600; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	.mon-ready .n.new, .mon-ready .n.blink { animation: none; border-color: #fff; }
	#toast { transition: none; }
}

/* ---------- Schmalere Geraete ---------- */
@media (max-width: 1100px) {
	.cart { width: 320px; }
	.cats { width: 168px; }
	.search { width: 240px; }
	.topbar .hint { display: none; }
}
@media (max-width: 820px) {
	.app { height: auto; min-height: 100%; overflow: visible; }
	.topbar { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
	.topbar .who .wname { display: none; }
	.pos { flex-direction: column; }
	.cats { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
	.cats .group { display: none; }
	.cats button { white-space: nowrap; }
	.products { overflow: visible; }
	.cart { width: auto; border-left: 0; border-top: 1px solid var(--line); }
	.search { width: 100%; max-width: none; order: 10; }
	.kitchen-grid { padding: 12px; overflow: visible; }
}

/* Aktuelle Seite in der Organisations-Liste */
.menu .list a[aria-current="page"] { color: var(--accent-dark); font-weight: 600; box-shadow: inset 4px 0 0 var(--accent); }

/* ---------- Kasse: Rueckgeld-Hilfe nach dem Senden ---------- */
.dialog.pay { width: 520px; gap: 16px; }
.dialog.pay.wide { width: 860px; flex-direction: row; gap: 24px; align-items: stretch; }
.dialog.pay .pay-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dialog.pay .pay-pad { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; padding-left: 24px; border-left: 1px solid var(--line-soft); }
.dialog.pay .pay-main > *, .dialog.pay .pay-pad > * { flex-shrink: 0; }
.dialog.pay .pay-main .done { margin-top: auto; }
.dialog.pay .pay-pad .lbl { margin-bottom: 0; }
.dialog.pay .sent {
	display: flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px;
	background: var(--ok-soft); color: var(--ok-ink); font-size: 15px; font-weight: 600;
}
.dialog.pay .due { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dialog.pay .due h2 { font-size: 22px; color: var(--muted); font-weight: 600; }
.dialog.pay .due .num { font-size: 44px; }
.dialog.pay .lbl { display: block; margin-bottom: 8px; }
.dialog.pay .quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dialog.pay .quick button {
	height: 60px; border-radius: var(--r-14); border: 1px solid var(--line); background: var(--bg); color: var(--text);
	font: 700 20px var(--num); font-variant-numeric: tabular-nums;
}
.dialog.pay .quick button.other { grid-column: 1 / -1; height: 52px; font: 600 16px var(--font); background: var(--surface); }
.dialog.pay .quick button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.dialog.pay .typed {
	height: 64px; border: 2px solid var(--accent); border-radius: var(--r-16); display: flex; align-items: center; justify-content: center;
	font: 700 36px var(--num); font-variant-numeric: tabular-nums;
}
.dialog.pay .typed .ph { font: 500 17px var(--font); color: var(--muted); }
.dialog.pay .keypad button { height: 56px; }
.change-result {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: var(--r-16);
	background: var(--chip); color: var(--text-2); font-size: 18px; font-weight: 600;
}
.change-result .num { font-size: 48px; }
.change-result.ok { background: var(--ok-soft); color: var(--ok-ink); }
.change-result.bad { background: var(--danger-soft); color: var(--danger-ink); }
.change-result.muted .num { color: var(--muted-2); }
@media (max-width: 900px) {
	.dialog.pay.wide { flex-direction: column; width: 520px; }
	.dialog.pay .pay-pad { width: auto; padding-left: 0; border-left: 0; }
}
@media (max-height: 820px) {
	.dialog.pay { gap: 12px; padding: 22px; }
	.dialog.pay .pay-main { gap: 12px; }
	.dialog.pay .keypad button { height: 48px; }
	.change-result .num { font-size: 40px; }
}

/* ---------- Kasse: Freimarken ---------- */
.cart li .txt { gap: 4px; }
.cart .mk {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; margin-top: 2px;
	border-radius: 999px; border: 1px dashed var(--field-line); background: var(--surface); color: var(--muted);
	font-size: 13px; font-weight: 600;
}
.cart .mk.on { border: 1px solid var(--ok); background: var(--ok-soft); color: var(--ok-ink); }
.cart .mk { white-space: nowrap; }
.cart .mk .mk-back { display: inline-flex; margin-left: 2px; padding-left: 6px; border-left: 1px solid rgba(22, 101, 52, .3); }
.cart li.is-marke { background: linear-gradient(90deg, rgba(220, 252, 231, .55), transparent 70%); }
.cart .sum-line s { display: block; color: var(--muted-2); font-weight: 500; font-size: 14px; }
.cart .sum-line small { display: block; color: var(--ok-ink); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cart .marken-sum {
	display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-12);
	background: var(--ok-soft); color: var(--ok-ink); font-size: 14px; font-weight: 600;
}
.cart .marken-sum .wert { margin-left: auto; font-weight: 500; white-space: nowrap; }
.dialog.pay .collect {
	display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-14);
	background: var(--warn-soft); color: var(--warn-ink); font-size: 16px;
}
.cart .mk { gap: 4px; padding: 0 8px; font-size: 12px; max-width: 100%; }
.cart .mk.on > svg:first-child { display: none; }

/* ---------- Speisekarten-Editor ---------- */
.cats button { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cats button .cnt { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--chip); border-radius: 999px; padding: 2px 8px; }
.cats button[aria-pressed="true"] .cnt { background: rgba(255,255,255,.2); color: #fff; }
.cats .addcat { justify-content: flex-start; color: var(--accent-dark); font-weight: 600; min-height: 44px; }
.karte { gap: 16px; }
.karte-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.karte-head h2 { font: 700 24px var(--num); margin: 0; }
.karte-head .sub { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.karte-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.karte-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-16); overflow: hidden; }
.karte-list li { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 12px 0 0; border-top: 1px solid var(--line-soft); }
.karte-list li:first-child { border-top: 0; }
.karte-list .row-main { flex: 1 1 auto; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 2px;
	padding: 10px 16px; border: 0; background: transparent; text-align: left; color: var(--text); }
.karte-list .row-main:hover { background: #FBFAF7; }
.karte-list .pn { font-size: 17px; font-weight: 600; }
.karte-list .pd { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.karte-list .pp { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 72px; text-align: right; }
.karte-list .avail {
	height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--danger-soft); color: var(--danger-ink);
	font-size: 13px; font-weight: 700; white-space: nowrap; min-width: 108px;
}
.karte-list .avail.on { background: var(--ok-soft); color: var(--ok-ink); border-color: transparent; }
.karte-list li.soldout .pn, .karte-list li.soldout .pp { color: var(--muted-2); text-decoration: line-through; }
.karte-list .sorter { display: flex; gap: 4px; }
.karte-list .sorter button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; padding: 0; }
.karte-list .sorter button:disabled { opacity: .3; }
.btn.small { height: 40px; font-size: 14px; }
.karte-dialog { width: 520px; }
.karte-dialog .hint { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.karte-dialog .row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.karte-dialog .row2 > div, .karte-dialog > div { display: flex; flex-direction: column; gap: 6px; }
.karte-dialog select.remark { background: var(--surface); appearance: auto; }
.karte-dialog .money { position: relative; }
.karte-dialog .money input { padding-right: 36px; font-variant-numeric: tabular-nums; }
.karte-dialog .money span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-12); overflow: hidden; }
.seg button { height: 48px; border: 0; background: var(--surface); font-weight: 600; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"]:first-child { background: var(--ok-soft); color: var(--ok-ink); }
.seg button[aria-pressed="true"]:last-child { background: var(--danger-soft); color: var(--danger-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn { height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; }
.chipbtn small { color: var(--muted); font-weight: 500; }
.chipbtn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.chipbtn[aria-pressed="true"] small { color: rgba(255,255,255,.75); }
.dialog .actions.three { grid-template-columns: auto 1fr 2fr; }
@media (max-width: 820px) {
	.karte-list li { flex-wrap: wrap; padding: 0 12px 10px 0; }
	.karte-list .row-main { flex-basis: 100%; }
	.karte-list .pp { margin-left: 16px; text-align: left; min-width: 0; }
	.karte-dialog .row2 { grid-template-columns: 1fr; }
}
.cats { overflow-x: hidden; }
.cats button .cname { flex: 1 1 auto; min-width: 0; hyphens: auto; overflow-wrap: break-word; }
.cats button .cnt { flex-shrink: 0; }

/* ---------- Kasse: ausverkaufte Artikel im Warenkorb ---------- */
.cart li.is-soldout { background: linear-gradient(90deg, rgba(254, 226, 226, .7), transparent 75%); }
.cart li.is-soldout .n { color: var(--danger-ink); text-decoration: line-through; }
.cart .soldout-tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--danger-ink); background: var(--danger-soft); border-radius: 999px; padding: 4px 10px; }
.cart li.is-soldout .sum-line small { color: var(--danger-ink); }
.cart .note.bad { background: var(--danger-soft); color: var(--danger-ink); }

/* ---------- Speisekarte: Haekchen "In der Kueche zubereiten" ---------- */
.checkrow { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-14); background: var(--bg); cursor: pointer; }
.checkrow input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.checkrow span { display: flex; flex-direction: column; gap: 4px; }
.checkrow strong { font-size: 16px; }
.checkrow small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.tag-nokitchen { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--text-2); font-size: 12px; font-weight: 600; vertical-align: 2px; }
