@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --primary: #b3261e;
  --accent: #f5b700;
  --header: var(--primary);
  --on-accent: #1d1b19;
  --bg: #f7f5f3;
  --surface: #ffffff;
  --surface-2: #f1eeeb;
  --text: #17120f;
  --muted: #6f6862;
  --line: #e9e4df;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --info: #1d4ed8;
  --info-soft: #dbeafe;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --primary-soft: color-mix(in srgb, var(--primary) 9%, var(--surface));
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(20 14 10 / .05);
  --shadow: 0 1px 2px rgb(20 14 10 / .04), 0 8px 24px -10px rgb(20 14 10 / .14);
  --shadow-lg: 0 2px 6px rgb(20 14 10 / .06), 0 24px 48px -16px rgb(20 14 10 / .25);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --bg: #0e0c0b; --surface: #191614; --surface-2: #231f1c; --text: #f6f2ee; --muted: #a59d95; --line: #2e2926;
    --ok: #4ade80; --ok-soft: #12321f; --warn: #fbbf24; --warn-soft: #3a2a0c; --info: #93c5fd; --info-soft: #172544; --danger: #fca5a5; --danger-soft: #3b1414;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -10px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 750; }
h3 { font-size: 1rem; font-weight: 700; }
small, .muted { color: var(--muted); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 16px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; }
.hidden { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }

/* Bedienelemente */
button, .btn {
  font: inherit; font-weight: 650; letter-spacing: -.01em; border: 0; border-radius: 12px; padding: 10px 18px; min-height: 46px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .15) inset, 0 6px 16px -8px color-mix(in srgb, var(--primary) 70%, transparent);
  transition: transform .15s var(--ease), background .15s, box-shadow .15s, opacity .15s;
}
button:hover, .btn:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
button:active, .btn:active { transform: scale(.98); }
button.secondary, .btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
button.secondary:hover, .btn.secondary:hover { background: var(--surface-2); }
button.ghost { background: transparent; color: var(--primary); box-shadow: none; padding: 6px 10px; min-height: 38px; }
button.ghost:hover { background: var(--primary-soft); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.small, .btn.small { padding: 6px 12px; min-height: 36px; font-size: .88rem; border-radius: 10px; }
input, select, textarea {
  font: inherit; width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); min-height: 46px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
textarea { min-height: 76px; resize: vertical; }
label { display: grid; gap: 6px; font-size: .88rem; font-weight: 550; color: var(--muted); }
label.check { display: flex; gap: 10px; align-items: center; color: var(--text); font-weight: 500; }
label.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--primary); }
input[type="color"] { padding: 4px; width: 64px; }
.form { display: grid; gap: 14px; }
.error { color: var(--danger); font-weight: 600; margin: 0; }
.error:empty { display: none; }
.notice { background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent); border-radius: var(--radius); padding: 10px 14px; color: var(--text); }
details summary { cursor: pointer; font-weight: 600; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.badge.green { background: var(--ok-soft); color: var(--ok); }
.badge.green::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pay { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pay.open { background: var(--warn-soft); color: var(--warn); }
.pay.paid { background: var(--ok-soft); color: var(--ok); }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 20; color: #fff;
  background: color-mix(in srgb, var(--header) 97%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgb(255 255 255 / .08); }
.top .wrap { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; min-height: 64px; }
.top h1 { font-size: 1.05rem; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.top a { color: #fff; text-decoration: none; font-weight: 600; opacity: .9; }
.top a:hover { opacity: 1; }
.top button.ghost { color: #fff; }
.top button.ghost:hover { background: rgb(255 255 255 / .12); }
.pill-btn, .top .pill-btn { background: rgb(255 255 255 / .12); color: #fff; border: 1px solid rgb(255 255 255 / .16); box-shadow: none; min-height: 40px; padding: 6px 14px; border-radius: 999px; font-size: .9rem; }
.top .pill-btn:hover { background: rgb(255 255 255 / .2); }
.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.logo.has-img { background: none; width: 68px; height: 52px; border-radius: 0; display: flex; align-items: center; justify-content: flex-start; }
.logo img { width: 100%; height: 100%; object-fit: contain; display: block; min-height: 0; }
.logo.has-img img { width: auto; max-width: 100%; max-height: 100%; }

/* Shop */
.hero { padding: 0 16px; margin-top: 16px; }
.hero .wrap { position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg); padding: 28px 24px;
  background: radial-gradient(90% 140% at 100% 0%, rgb(255 255 255 / .14) 0%, transparent 60%),
    linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #000));
  box-shadow: var(--shadow); }
.hero .wrap::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgb(255 255 255 / .06); }
.hero p { margin: .25em 0; max-width: 620px; position: relative; z-index: 1; }
.hero h2 { color: #fff; position: relative; z-index: 1; }
.hero #tagline { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.hero .btn { background: #fff; color: var(--primary); box-shadow: none; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .2); padding: 5px 12px; border-radius: 999px; font-size: .86rem; font-weight: 600; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 4px rgb(251 191 36 / .25); }
.status-pill.open::before { background: #4ade80; box-shadow: 0 0 0 4px rgb(74 222 128 / .25); }

.cats { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; position: sticky; top: 64px; z-index: 10; scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); max-width: 1160px; margin: 0 auto; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: .9rem; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.cats a.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.layout { display: grid; gap: 20px; }
/* Spalten dürfen schmaler werden als ihr Inhalt (waagerechte Laufleisten wie „Beliebt“) */
.layout > * { min-width: 0; }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .cart-panel { position: sticky; top: 128px; max-height: calc(100vh - 144px); overflow-y: auto; overscroll-behavior: contain; } }
.menu-section { scroll-margin-top: 130px; margin-bottom: 28px; }
.menu-section > h2 { font-size: 1.35rem; margin-bottom: 12px; }
.products { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.product { display: grid; grid-template-columns: 1fr 104px; gap: 14px; align-items: center; padding: 14px; position: relative; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
@media (hover: hover) { .product:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }
.product .info { min-width: 0; display: grid; gap: 4px; align-content: start; }
.product .name { font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.product .desc { font-size: .86rem; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.product .media { position: relative; width: 104px; height: 104px; }
.product img, .product .ph { width: 104px; height: 104px; border-radius: 16px; object-fit: cover; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--primary-soft), color-mix(in srgb, var(--accent) 14%, var(--surface))); color: color-mix(in srgb, var(--primary) 70%, var(--text)); }
.product .ph .ico { width: 34px; height: 34px; stroke-width: 1.6; opacity: .75; }
.price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.diet { font-size: .72rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; }
.add { position: absolute; right: -6px; bottom: -6px; width: 40px; min-height: 40px; height: 40px; padding: 0; border-radius: 50%;
  background: var(--surface); color: var(--primary); border: 1px solid var(--line); box-shadow: var(--shadow); }
.add:hover { background: var(--primary); color: #fff; }
.add.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); background: var(--primary); color: #fff; } }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.qty button { width: 32px; height: 32px; min-height: 0; padding: 0; border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); border: 0; }
.qty b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line .grow { font-weight: 550; line-height: 1.3; }
.total { display: flex; justify-content: space-between; font-weight: 750; font-size: 1.15rem; padding-top: 12px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.empty-cart { text-align: center; color: var(--muted); padding: 18px 0; margin: 0; }
.empty-cart .ico { width: 36px; height: 36px; stroke-width: 1.5; opacity: .5; display: block; margin: 0 auto 6px; }

/* Abholzeit als Kacheln */
.slot-days { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.slot-days button { background: transparent; color: var(--muted); box-shadow: none; min-height: 36px; padding: 6px 14px; border-radius: 9px; font-size: .9rem; }
.slot-days button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-height: 176px; overflow: auto; padding: 2px; }
.slot-grid button { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: none; min-height: 42px; padding: 6px; font-variant-numeric: tabular-nums; font-weight: 600; }
.slot-grid button:hover { background: var(--surface-2); }
.slot-grid button.on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Warenkorb: am Handy als Panel von unten */
.cart-fab { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 25; justify-content: space-between; min-height: 58px;
  border-radius: 18px; padding: 8px 10px 8px 12px; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease); }
.cart-fab .count { background: rgb(255 255 255 / .2); border-radius: 10px; min-width: 34px; height: 34px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cart-fab .sum { background: rgb(0 0 0 / .18); border-radius: 12px; padding: 8px 12px; font-variant-numeric: tabular-nums; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.sheet-backdrop { position: fixed; inset: 0; background: rgb(10 8 6 / .45); backdrop-filter: blur(3px); z-index: 29; opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet-handle { display: none; }
@media (min-width: 960px) { .cart-fab, .sheet-backdrop { display: none !important; } #closeCart { display: none; } }
@media (max-width: 959px) {
  main.layout { padding-bottom: 100px; }
  .cart-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-height: 90vh; overflow: auto; border-radius: 26px 26px 0 0;
    transform: translateY(105%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .cart-panel.open { transform: translateY(0); }
  .sheet-handle { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: -6px auto 10px; }
}

/* Abholnummer */
.pickup-hero { text-align: center; padding: 8px 0 4px; }
.pickup-no { font-size: clamp(72px, 24vw, 132px); font-weight: 850; color: var(--primary); line-height: 1; margin: 6px 0; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.status-steps { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: .82rem; font-weight: 600; margin: 18px 0 6px; }
.status-steps div { display: grid; justify-items: center; gap: 6px; color: var(--muted); position: relative; }
.status-steps div::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); z-index: 1; box-sizing: border-box; }
.status-steps div::after { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.status-steps div:first-child::after { display: none; }
.status-steps div.on { color: var(--text); }
.status-steps div.on::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.status-steps div.on::after { background: var(--primary); }
.status-steps div.ready { color: var(--ok); }
.status-steps div.ready::before { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 5px var(--ok-soft); }
.status-steps div.ready::after { background: var(--ok); }
.ready-banner { background: var(--ok-soft); color: var(--ok); border-radius: var(--radius); padding: 12px; font-weight: 700; animation: rise .4s var(--ease); }

/* Stempelkarte */
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 340px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 1.1rem; color: transparent; }
.stamp.on { background: var(--accent); border: 2px solid var(--accent); color: var(--on-accent); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--accent) 80%, transparent); }
.qr svg { width: 220px; height: 220px; background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.loyalty-card { background: linear-gradient(145deg, var(--header), color-mix(in srgb, var(--header) 65%, var(--primary))); color: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.loyalty-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; border: 28px solid rgb(255 255 255 / .06); }
.loyalty-card .stamp { border-color: rgb(255 255 255 / .28); }
.loyalty-card small, .loyalty-card .muted { color: rgb(255 255 255 / .7); }

/* Betreiber: Seitenleiste ab Tablet-Querformat */
@media (min-width: 1000px) {
  #app { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
  #app > .tabs { flex-direction: column; position: sticky; top: 84px; margin: 0; gap: 2px; overflow: visible; background: transparent; padding: 0; }
  #app > .tabs button { justify-content: flex-start; padding: 10px 14px; }
  #app > .tabs button.on { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--primary); }
}
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 18px; padding: 4px; background: var(--surface-2); border-radius: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; color: var(--muted); box-shadow: none; min-height: 42px; padding: 8px 14px; border-radius: 10px; white-space: nowrap; font-weight: 600; justify-content: flex-start; }
.tabs button:hover { background: rgb(127 127 127 / .08); color: var(--text); }
.tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 14px; }
.board { display: grid; gap: 14px; }
@media (min-width: 900px) { .board { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.col { background: var(--surface-2); border-radius: var(--radius-lg); padding: 10px; min-height: 120px; display: grid; gap: 10px; align-content: start; }
.col h3 { font-size: .9rem; display: flex; align-items: center; gap: 8px; padding: 4px 6px 0; margin: 0; }
.col h3::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); }
.col.zub h3::before { background: var(--info); }
.col.bereit h3::before { background: var(--ok); }
.col h3 span:last-child { margin-left: auto; background: var(--surface); border-radius: 999px; min-width: 26px; text-align: center; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.col h3 span:last-child:empty { display: none; }
.col .plain .muted { padding: 6px; margin: 0; font-size: .9rem; }
.order { display: grid; gap: 8px; border-radius: 16px; padding: 14px; border-left: 4px solid var(--warn); animation: rise .25s var(--ease); }
.col.zub .order { border-left-color: var(--info); }
.col.bereit .order { border-left-color: var(--ok); }
.order .no { font-size: 1.9rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.order ul { margin: 0; padding-left: 18px; }
.order li { margin: 2px 0; }
.order.late { box-shadow: 0 0 0 2px var(--warn), var(--shadow-sm); }
.order.fresh { animation: pulse 1.2s ease-in-out 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 30%, transparent); } }
.order .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.order .actions button:first-child { flex: 1 1 100%; }
.order .actions button.ghost { margin-left: auto; }
table.list { width: 100%; border-collapse: collapse; }
table.list td, table.list th { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.list th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.list tbody tr:last-child td { border-bottom: 0; }
.thumb { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--surface-2); display: block; }
dialog { border: 0; border-radius: 26px; padding: 22px; width: min(540px, calc(100vw - 24px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgb(10 8 6 / .45); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .25s var(--ease); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
video.scan { width: 100%; max-width: 440px; border-radius: 18px; background: #000; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpi { display: grid; gap: 2px; align-content: start; }
.kpi > small:first-child { font-size: .8rem; font-weight: 600; }
.kpi b { display: block; font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.role-badge { background: rgb(255 255 255 / .14); color: #fff; border: 1px solid rgb(255 255 255 / .2); }

/* Abholanzeige im Laden */
body.display { background: radial-gradient(120% 90% at 80% 0%, #1f1b19 0%, #0b0a09 60%); color: #fff; overflow: hidden; height: 100vh; }
.display-head { display: flex; justify-content: space-between; align-items: center; padding: 2.2vh 3vw; background: rgb(255 255 255 / .03); border-bottom: 1px solid rgb(255 255 255 / .06); }
.display-head img { height: 7vh; }
.display-head h1 { font-size: 3.6vh; margin: 0; font-weight: 700; }
.display-head .clock { font-size: 4vh; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .8; }
.display-cols { display: grid; grid-template-columns: 1fr 1.35fr; gap: 3vw; padding: 3vh 3vw; height: calc(100vh - 12vh); }
.display-cols h2 { font-size: 3.4vh; margin: 0 0 2.4vh; color: rgb(255 255 255 / .6); font-weight: 650; display: flex; align-items: center; gap: 1vw; }
.display-cols h2::before { content: ""; width: 1.4vh; height: 1.4vh; border-radius: 50%; background: #60a5fa; }
.display-cols .ready h2 { color: #86efac; }
.display-cols .ready h2::before { background: #4ade80; box-shadow: 0 0 0 .8vh rgb(74 222 128 / .2); }
.display-cols .ready { background: rgb(74 222 128 / .04); border: 1px solid rgb(74 222 128 / .12); border-radius: 3vh; padding: 3vh 2vw; }
.nums { display: flex; flex-wrap: wrap; gap: 1.6vh 1.4vw; align-content: flex-start; }
.nums span { font-size: 8vh; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 3.3ch; text-align: center; padding: .6vh 1.2vw; border-radius: 2vh; background: rgb(255 255 255 / .06); letter-spacing: -.03em; color: rgb(255 255 255 / .85); }
.ready .nums span { background: linear-gradient(160deg, #22c55e, #15803d); color: #fff; font-size: 11vh; box-shadow: 0 1.5vh 4vh -1.5vh rgb(34 197 94 / .6); }
.ready .nums span.new { animation: enter .6s var(--ease), glow 1.4s ease-in-out .6s 4; }
@keyframes enter { from { transform: scale(.6); opacity: 0; } }
@keyframes glow { 50% { box-shadow: 0 0 0 1.2vh rgb(74 222 128 / .35), 0 1.5vh 4vh -1.5vh rgb(34 197 94 / .6); } }

/* Auswertung */
.ins-charts { display: grid; gap: 12px; align-items: start; }
@media (min-width: 900px) { .ins-charts { grid-template-columns: 1fr 1.4fr 1fr; } }
.ins-charts h3 { font-size: .92rem; margin-bottom: 12px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; border-bottom: 1px solid var(--line); padding-top: 6px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; cursor: default; }
.bars .bar i { display: block; background: var(--primary); border-radius: 6px 6px 2px 2px; min-height: 0; transition: opacity .15s; }
.bars .bar:hover i { opacity: .75; }
.bars-x { display: flex; gap: 3px; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.bars-x span { flex: 1; text-align: center; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; font-size: .88rem; margin-bottom: 10px; }
.hbar .track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--surface-2); }
.hbar .track i { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
.seg { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 14px; min-height: 36px; font-weight: 600; box-shadow: none; font-size: .88rem; }
.seg:hover { background: var(--surface-2); }
.seg.on { background: var(--text); color: var(--bg); border-color: var(--text); }
th[data-sort] { cursor: pointer; white-space: nowrap; }
th[data-sort].sorted::after { content: " ↓"; }
#insTable tbody tr { cursor: pointer; transition: background .15s; }
#insTable tbody tr:hover { background: var(--surface-2); }
.tip { position: fixed; z-index: 50; background: var(--text); color: var(--bg); padding: 6px 10px; border-radius: 9px; font-size: .82rem; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.timeline li { border-left: 3px solid var(--line); padding-left: 12px; }
.timeline li.online { border-color: var(--primary); }
.timeline li.theke { border-color: var(--accent); }
.seg-badge { display: inline-block; font-size: .76rem; padding: 3px 10px; border-radius: 999px; font-weight: 700; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.seg-badge.stamm { background: var(--ok-soft); color: var(--ok); }
.seg-badge.neu { background: var(--info-soft); color: var(--info); }
.seg-badge.abwandernd { background: var(--warn-soft); color: var(--warn); }
.seg-badge.inaktiv { background: var(--danger-soft); color: var(--danger); }
.scan-order { border-left: 4px solid var(--primary); }

/* Nur Treuesystem: Speisekarte ohne Bestellfunktion */
body.no-ordering .add, body.no-ordering .cart-panel, body.no-ordering .cart-fab { display: none !important; }
body.no-ordering main.layout { grid-template-columns: 1fr; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media print { .noprint { display: none !important; } }

.stamp .ico { width: 55%; height: 55%; fill: currentColor; stroke-width: 1.5; }
.top .ico { width: 18px; height: 18px; }

@media (max-width: 700px) {
  .top .pill-btn .lbl { display: none; }
  .top .pill-btn { padding: 6px 10px; }
  .top h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .display-cols { grid-template-columns: 1fr; height: auto; }
  body.display { overflow: auto; height: auto; }
}
#catalog .card { overflow-x: auto; }
#settingsForm .row > label { flex: 1 1 150px; min-width: 0; }
#settingsForm .row > label:has(input[type="color"]) { flex: 0 0 auto; }
input[type="file"] { max-width: 100%; min-width: 0; }

/* ---------- Smartphone ---------- */
.board-switch { display: none; }
.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 899px) {
  .board-switch { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; margin-bottom: 12px; position: sticky; top: 72px; z-index: 5; }
  .board-switch button { flex: 1; background: transparent; color: var(--muted); box-shadow: none; min-height: 42px; padding: 6px 8px; border-radius: 10px; font-size: .9rem; gap: 6px; }
  .board-switch button b { background: var(--surface); color: var(--text); border-radius: 999px; min-width: 22px; padding: 0 6px; font-size: .8rem; }
  .board-switch button b:empty { display: none; }
  .board-switch button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
  .board[data-show] .col { display: none; }
  .board[data-show="neu"] .col.neu, .board[data-show="zub"] .col.zub, .board[data-show="bereit"] .col.bereit { display: grid; }
  .board .col h3 { display: none; }
  .board .col { background: transparent; padding: 0; }
}
@media (max-width: 999px) {
  /* Betreiberbereich: Navigation unten wie in einer App */
  #app > .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; border-radius: 0; padding: 6px 4px max(6px, env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); overflow: visible; gap: 2px; }
  #app > .tabs button:not(.hidden) { flex: 1 1 0; flex-direction: column; gap: 3px; min-height: 52px; padding: 4px 2px; font-size: .68rem; font-weight: 600; justify-content: center; border-radius: 12px; }
  #app > .tabs button .ico { width: 22px; height: 22px; }
  #app > .tabs button .lbl { display: none; }
  #app > .tabs button::after { content: attr(data-short); white-space: nowrap; }
  #app > .tabs button.on { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
  #app { padding-bottom: 84px; }
}
@media (max-width: 700px) {
  .admin-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; white-space: normal !important; }
  .admin-title .tname { display: none; }
  .admin-title .badge { font-size: .72rem; }
  .toolbar { gap: 8px; }
  .toolbar label.check { font-size: .86rem; }
  /* Artikel als Karten */
  #catalog table, #catalog tbody, #catalog tr, #catalog td { display: block; }
  #catalog tr { display: grid; grid-template-columns: 56px 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
  #catalog tr:last-child { border-bottom: 0; }
  #catalog td { border: 0; padding: 0; }
  #catalog td:first-child { display: block !important; grid-row: 1 / 3; }
  #catalog td:first-child .thumb { width: 56px; height: 56px; }
  #catalog td:nth-child(2) { line-height: 1.35; }
  #catalog td.num:nth-child(3) { font-weight: 700; text-align: right; }
  #catalog td.num:last-child { grid-column: 2 / -1; display: flex !important; flex-direction: row !important; gap: 8px; justify-content: flex-start; align-items: center; }
  /* Treuekunden als Karten */
  #insTable thead { display: none; }
  #insTable, #insTable tbody, #insTable tr, #insTable td { display: block; }
  #insTable tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  #insTable td { border: 0 !important; padding: 0 !important; text-align: left !important; }
  #insTable td:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: end; }
  #insTable td:nth-child(3) { grid-column: 1; }
  #insTable td:nth-child(3)::before { content: "Käufe: "; color: var(--muted); }
  #insTable td:nth-child(4) { grid-column: 2; justify-self: end; font-weight: 700; }
  #insTable td:nth-child(7) { grid-column: 1 / -1; font-size: .88rem; }
  #insTable td:nth-child(7)::before { content: "Zuletzt: "; color: var(--muted); }
  #insTable td:nth-child(5), #insTable td:nth-child(6), #insTable td:nth-child(8), #insTable td:nth-child(9) { display: none; }
  #insTable td br { display: none; }
  #insTable td small { margin-left: 6px; }
  .two-col { grid-template-columns: 1fr; }
  dialog { padding: 18px; max-height: calc(100vh - 24px); }
  .kpi b { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  /* Shop: Logo genügt, Name nur bei Betrieben ohne Logo */
  .top .logo.has-img + h1 { font-size: 0; }
  .hero .wrap { padding: 22px 20px; }
  .hero #tagline { font-size: 1.05rem; }
}

.fav { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: baseline; padding: 4px 0; font-size: .92rem; }
@media (max-width: 700px) { .admin-title { flex-wrap: nowrap; } .admin-title .badge { white-space: nowrap; } }
@media (max-width: 420px) { .admin-title .demo-home { display: none; } }

/* Kennzeichnung Allergene und Zusatzstoffe */
.product .codes { background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; margin-top: 4px; font-size: .74rem; color: var(--muted); font-weight: 600; text-decoration: underline dotted; cursor: pointer; justify-content: flex-start; }
.codes-legend { font-size: .78rem; color: var(--muted); line-height: 1.6; margin: 18px auto 0; max-width: 1100px; padding: 0 16px; }

/* =====================================================================
   Premium-Ebene: Glasflächen, Farbtiefe aus den Betriebsfarben, ruhige Bewegung
   ===================================================================== */
:root {
  --radius: 16px; --radius-lg: 26px;
  --glass: color-mix(in srgb, var(--surface) 70%, transparent);
  --glass-strong: color-mix(in srgb, var(--surface) 84%, transparent);
  --glass-line: rgb(255 255 255 / .55);
  --glass-shine: inset 0 1px 0 rgb(255 255 255 / .7);
  --blur: saturate(170%) blur(22px);
  --shadow: 0 1px 1px rgb(20 14 10 / .03), 0 12px 32px -14px rgb(20 14 10 / .22);
  --shadow-lg: 0 2px 4px rgb(20 14 10 / .04), 0 30px 60px -24px rgb(20 14 10 / .38);
  --bg: #f4f1ee;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --bg: #09080a; --surface: #17151a; --surface-2: #211e24; --line: rgb(255 255 255 / .08);
    --glass: rgb(28 25 31 / .58); --glass-strong: rgb(28 25 31 / .78); --glass-line: rgb(255 255 255 / .09); --glass-shine: inset 0 1px 0 rgb(255 255 255 / .06);
    --shadow: 0 1px 1px rgb(0 0 0 / .3), 0 16px 40px -18px rgb(0 0 0 / .8);
    --shadow-lg: 0 30px 70px -24px rgb(0 0 0 / .9);
  }
}
/* Farbiger Grund, der durch das Glas schimmert */
body::before { content: ""; position: fixed; inset: -20vh -20vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vw 38vw at 12% 8%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 70%),
    radial-gradient(34vw 34vw at 92% 18%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    radial-gradient(46vw 46vw at 70% 100%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%);
  filter: blur(10px); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(2vw, -2vh, 0) scale(1.06); } }
body.display::before { display: none; }
h1, h2, h3 { letter-spacing: -.03em; }

.card, .glass { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line); box-shadow: var(--glass-shine), var(--shadow); border-radius: var(--radius-lg); }

button, .btn { border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 88%, #fff), var(--primary) 55%, color-mix(in srgb, var(--primary) 82%, #000));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 10px 24px -12px color-mix(in srgb, var(--primary) 85%, transparent); }
button:hover, .btn:hover { transform: translateY(-1px); filter: brightness(1.06); background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 88%, #fff), var(--primary) 55%, color-mix(in srgb, var(--primary) 82%, #000)); }
button.secondary, .btn.secondary { background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); box-shadow: var(--glass-shine); color: var(--text); }
button.secondary:hover, .btn.secondary:hover { background: var(--surface); filter: none; }
button.ghost { background: transparent; box-shadow: none; filter: none; }
button.ghost:hover { background: var(--primary-soft); transform: none; }
input, select, textarea { background: color-mix(in srgb, var(--surface) 60%, transparent); border: 1px solid var(--line); border-radius: 14px; }
input:focus, select:focus, textarea:focus { background: var(--surface); }

/* Kopfzeile als Glasleiste */
.top { background: color-mix(in srgb, var(--header) 72%, transparent); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-bottom: 1px solid rgb(255 255 255 / .1); }
.pill-btn, .top .pill-btn { background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(10px); }
.top .pill-btn:hover { background: rgb(255 255 255 / .2); filter: none; }

/* ---------- Shop ---------- */
.hero { margin-top: 18px; }
.hero .wrap { min-height: 220px; display: grid; align-content: end; padding: 34px 30px; border-radius: 32px; isolation: isolate;
  background: linear-gradient(120deg, color-mix(in srgb, var(--header) 92%, transparent) 0%, color-mix(in srgb, var(--primary) 70%, transparent) 55%, transparent 100%), var(--hero-img, none) center/cover, var(--primary);
  box-shadow: var(--shadow-lg); border: 1px solid rgb(255 255 255 / .12); }
.hero .wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / .45), transparent 60%); }
.hero .wrap::after { display: none; }
@media (max-width: 600px) { .hero .wrap { min-height: 260px; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--header) 45%, transparent) 38%, color-mix(in srgb, var(--header) 94%, transparent) 100%), var(--hero-img, none) center/cover, var(--primary); } }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 850; margin: 0 0 4px; letter-spacing: -.04em; text-shadow: 0 2px 20px rgb(0 0 0 / .25); }
.hero #tagline { font-size: 1.08rem; font-weight: 500; opacity: .92; max-width: 560px; }
.status-pill { background: rgb(255 255 255 / .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cats { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: 16px; padding-bottom: 12px; }
.cats::before { content: ""; position: absolute; inset: 6px 8px; z-index: -1; border-radius: 22px; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.cats { isolation: isolate; padding-left: 18px; padding-right: 18px; }
.cats a { background: transparent; border: 1px solid transparent; color: var(--muted); }
.cats a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.cats a.on { background: var(--text); color: var(--bg); box-shadow: 0 6px 16px -8px rgb(0 0 0 / .5); }
.menu-section > h2 { font-size: 1.6rem; font-weight: 800; margin: 8px 4px 14px; }

/* Gerichte als Bildkarten */
.products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.product { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; gap: 0; }
.product .media { order: -1; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.product img, .product .ph { width: 100%; height: 100%; border-radius: 0; transition: transform .6s var(--ease); }
@media (hover: hover) { .product:hover { transform: translateY(-4px); box-shadow: var(--glass-shine), var(--shadow-lg); } .product:hover img { transform: scale(1.06); } }
.product .info { padding: 14px 16px 16px; gap: 6px; }
.product .name { font-size: 1.02rem; font-weight: 700; }
.product .price { font-size: 1.05rem; font-weight: 800; }
.add { right: 12px; bottom: 12px; width: 44px; height: 44px; min-height: 44px; color: #fff; border: 1px solid rgb(255 255 255 / .35);
  background: color-mix(in srgb, var(--primary) 78%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 22px -8px rgb(0 0 0 / .55); }
.add:hover { background: var(--primary); transform: scale(1.08); }

/* Warenkorb: Kopf, scrollender Inhalt, feste Fußleiste mit Summe und Bestellknopf */
.cart-panel { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.cart-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.cart-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.cart-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 14px; display: grid; gap: 18px; min-height: 0; }
.cart-sec { display: grid; gap: 10px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.two-fields { display: grid; gap: 10px; }
details.more summary { font-size: .88rem; font-weight: 600; color: var(--primary); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "– "; }
.cart-foot { padding: 14px 20px 18px; border-top: 1px solid var(--glass-line); background: var(--glass-strong); display: grid; gap: 10px; }
.pay-note { margin: 0; font-size: .85rem; }
.pay-note:empty { display: none; }
.pay-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-choice label { position: relative; display: block; cursor: pointer; }
.pay-choice input { position: absolute; opacity: 0; }
.pay-choice span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); color: var(--text); font-weight: 700; font-size: .9rem; transition: border-color .15s, background .15s; }
.pay-choice small { font-weight: 500; font-size: .75rem; }
.pay-choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.cta-btn { width: 100%; min-height: 56px; justify-content: space-between; padding: 8px 10px 8px 20px; font-size: 1.02rem; border-radius: 18px; }
.cta-btn b { background: rgb(0 0 0 / .2); padding: 9px 14px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.cart-line { border-bottom: 1px solid var(--line); }
.slot-grid { display: flex; grid-template-columns: none; gap: 8px; overflow-x: auto; max-height: none; padding: 2px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.slot-grid button { flex: none; min-width: 74px; scroll-snap-align: start; background: color-mix(in srgb, var(--surface) 60%, transparent); border-radius: 12px; }
.slot-grid button.on { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 8px 18px -10px var(--primary); }
.slot-days { background: color-mix(in srgb, var(--text) 7%, transparent); text-transform: none; letter-spacing: 0; }
.slot-days button { filter: none; }
.slot-days button.on { background: var(--surface); }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; }
  .cart-panel { position: sticky; top: 140px; max-height: calc(100vh - 156px); overflow: hidden; }
}
@media (max-width: 959px) {
  .cart-panel { max-height: 92vh; overflow: hidden; border-radius: 30px 30px 0 0; padding-bottom: 0; background: var(--glass-strong); }
  .cart-foot { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .sheet-handle { margin: 10px auto 0; }
  .cart-fab { border-radius: 22px; backdrop-filter: blur(14px); }
}
@media (min-width: 520px) { .two-fields { grid-template-columns: 1fr 1fr; } }

/* ---------- Betreiberbereich ---------- */
@media (min-width: 1000px) {
  #app > .tabs { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); border-radius: 24px; padding: 10px; box-shadow: var(--glass-shine), var(--shadow); }
  #app > .tabs button { border-radius: 14px; min-height: 46px; }
  #app > .tabs button.on { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000)); color: #fff; box-shadow: 0 10px 22px -12px var(--primary); }
}
.tabs { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); }
.tabs button { filter: none; background: none; }
.tabs button:hover { transform: none; }
.col { background: color-mix(in srgb, var(--surface) 35%, transparent); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 26px; padding: 12px; }
.col h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 8px 4px; }
.col h3::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 22%, transparent); }
.col.zub h3::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--info) 22%, transparent); }
.col.bereit h3::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.order { border-left: 0; position: relative; overflow: hidden; padding: 16px 16px 14px; border-radius: 20px; }
.order::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--warn), color-mix(in srgb, var(--warn) 30%, transparent)); }
.col.zub .order::before { background: linear-gradient(90deg, var(--info), color-mix(in srgb, var(--info) 30%, transparent)); }
.col.bereit .order::before { background: linear-gradient(90deg, var(--ok), color-mix(in srgb, var(--ok) 30%, transparent)); }
.order .no { font-size: 2.3rem; font-weight: 850; }
.kpi { padding: 18px 20px; }
.kpi b { font-size: 2rem; font-weight: 850; background: linear-gradient(135deg, var(--text), color-mix(in srgb, var(--primary) 70%, var(--text))); -webkit-background-clip: text; background-clip: text; color: transparent; }
dialog { background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--glass-line); }
.bars .bar i, .hbar .track i { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 80%, #fff), var(--primary)); }
.loyalty-card { border-radius: 28px; box-shadow: var(--shadow-lg); }
/* Lesbarkeit: Leisten und Panels mit dichterem Glas */
.top { background: color-mix(in srgb, var(--header) 90%, transparent); }
.cats::before { background: var(--glass-strong); }
@media (prefers-color-scheme: dark) { :root:not(.light) { --glass-strong: rgb(24 22 27 / .92); } }
:root { --glass-strong: color-mix(in srgb, var(--surface) 93%, transparent); }
@media (max-width: 959px) { .cart-panel { background: var(--surface); } }
.order.late { box-shadow: var(--glass-shine), var(--shadow); }
.order.late::before { background: linear-gradient(90deg, var(--danger), color-mix(in srgb, var(--danger) 30%, transparent)); }
.ci-colors { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ci-colors label { gap: 6px; }
.ci-field { display: flex; gap: 8px; align-items: center; }
.ci-field input[type="color"] { width: 52px; height: 46px; padding: 4px; flex: none; }
.ci-field input[type="text"] { font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }

/* Dunkelmodus per Schalter (Klasse .dark auf <html>), unabhängig von der Systemeinstellung */
:root.dark {
    --bg: #0e0c0b; --surface: #191614; --surface-2: #231f1c; --text: #f6f2ee; --muted: #a59d95; --line: #2e2926;
    --ok: #4ade80; --ok-soft: #12321f; --warn: #fbbf24; --warn-soft: #3a2a0c; --info: #93c5fd; --info-soft: #172544; --danger: #fca5a5; --danger-soft: #3b1414;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -10px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
:root.dark {
    --bg: #09080a; --surface: #17151a; --surface-2: #211e24; --line: rgb(255 255 255 / .08);
    --glass: rgb(28 25 31 / .58); --glass-strong: rgb(28 25 31 / .78); --glass-line: rgb(255 255 255 / .09); --glass-shine: inset 0 1px 0 rgb(255 255 255 / .06);
    --shadow: 0 1px 1px rgb(0 0 0 / .3), 0 16px 40px -18px rgb(0 0 0 / .8);
    --shadow-lg: 0 30px 70px -24px rgb(0 0 0 / .9);
  }
:root.dark { --glass-strong: rgb(24 22 27 / .92); }
:root.dark { color-scheme: dark; }
.theme-toggle { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); color: #fff; box-shadow: none; flex: none; }
.theme-toggle:hover { background: rgb(255 255 255 / .2); filter: none; transform: none; }
.theme-toggle.floating { position: fixed; left: 16px; bottom: 16px; z-index: 40; background: var(--glass-strong); color: var(--text); border: 1px solid var(--glass-line); backdrop-filter: var(--blur); box-shadow: var(--shadow); }
.theme-toggle .ico { width: 19px; height: 19px; }

/* Titelbild bis unter den Rand füllen (sonst scheint die Hauptfarbe am Rand durch) */
.hero .wrap { background-origin: border-box; background-clip: border-box; border-color: rgb(255 255 255 / .08); }

/* Abholen/Liefern, Gebühren, Verantwortungshinweis */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: color-mix(in srgb, var(--text) 7%, transparent); }
.mode-switch button { background: transparent; color: var(--muted); box-shadow: none; min-height: 42px; border-radius: 12px; filter: none; }
.mode-switch button:hover { transform: none; color: var(--text); }
.mode-switch button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.fee { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; padding: 6px 0; color: var(--muted); border-bottom: 1px dashed var(--line); }
.fee small { font-size: .76rem; }
.shop-foot { padding-bottom: 120px; }
.responsible { font-size: .85rem; line-height: 1.55; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 18px; padding: 14px 16px; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; position: relative; z-index: 1; }
.hero-chips:empty { display: none; }
.hero-chips span { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-chips .ico { width: 16px; height: 16px; }
.search-wrap { padding-top: 0; padding-bottom: 6px; }
.search-wrap input { border-radius: 999px; padding-left: 18px; background: var(--glass-strong); }
.minbar { margin-top: 8px; display: grid; gap: 6px; }
.minbar i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); max-width: 100%; }
.minbar::after { content: ""; }

/* Aktionen im Shop */
.promo-strip { display: flex; gap: 14px; overflow-x: auto; padding-top: 18px; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.promo-strip::-webkit-scrollbar { display: none; }
.deal { flex: 0 0 min(340px, 84vw); scroll-snap-align: start; position: relative; overflow: hidden; border-radius: 24px; padding: 18px 20px; min-height: 132px; color: #fff; display: grid; align-content: end; gap: 3px;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 65%, transparent), transparent 60%), linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #000));
  box-shadow: var(--shadow); border: 1px solid rgb(255 255 255 / .12); }
.deal.img { background: linear-gradient(180deg, rgb(0 0 0 / .05), rgb(0 0 0 / .78)), var(--img) center/cover; }
.deal.later { opacity: .75; }
.deal::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 22px solid rgb(255 255 255 / .08); }
.deal-tag { position: absolute; top: 14px; left: 16px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.deal b { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.15; }
.deal small { opacity: .92; font-size: .88rem; }
.deal .deal-until { opacity: .7; font-size: .78rem; }
.deal-badge { justify-self: start; display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: color-mix(in srgb, var(--accent) 55%, var(--text)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.deal-badge .ico { width: 13px; height: 13px; fill: currentColor; }
.price s { color: var(--muted); font-weight: 500; font-size: .85em; margin-left: 4px; }
.deal-line { color: var(--ok); font-weight: 600; }
.deal-line .ico { width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; }
.popular h2 { font-size: 1.6rem; font-weight: 800; margin: 8px 4px 14px; }
.popular:empty { display: none; }
.pop-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.pop { flex: 0 0 260px; display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 20px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shine), var(--shadow); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: transform .15s var(--ease); }
.pop:hover { transform: translateY(-2px); }
.pop img, .pop .ph { width: 76px; height: 64px; border-radius: 14px; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); }
.pop b { display: block; font-size: .92rem; line-height: 1.25; }
.pop small { color: var(--muted); font-weight: 700; }
.pop-add { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; }
.pop-add .ico { width: 18px; height: 18px; }
.upsell:empty { display: none; }
.upsell { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.ups { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ups b { display: block; font-size: .9rem; }
.ups small { color: var(--muted); }
.mode-switch button { gap: 8px; }
.mode-switch button span { display: grid; text-align: left; line-height: 1.15; }
.mode-switch button small { font-size: .72rem; font-weight: 500; opacity: .75; }

/* Aktionen auf der Anzeigetafel */
.display-main { display: grid; grid-template-columns: 1fr; height: calc(100vh - 12vh); }
body.display.split .display-main { grid-template-columns: 1fr 34vw; }
.display-main .display-cols { height: auto; }
.promo-side { padding: 3vh 3vw 3vh 0; }
.pcard { height: 100%; border-radius: 3vh; padding: 4vh 3vw; display: grid; align-content: end; gap: 1vh; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 60%), linear-gradient(140deg, var(--primary), color-mix(in srgb, var(--primary) 45%, #000));
  animation: enter .7s var(--ease); box-shadow: 0 3vh 8vh -3vh rgb(0 0 0 / .7); }
.pcard.img { background: linear-gradient(180deg, rgb(0 0 0 / .05) 30%, rgb(0 0 0 / .85)), var(--img) center/cover; }
.pcard .ptag { position: absolute; top: 3vh; left: 2.4vw; font-size: 2.2vh; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .8vh 1.4vw; border-radius: 99px; background: var(--accent); color: var(--on-accent); }
.pcard b { font-size: 6vh; letter-spacing: -.03em; line-height: 1.05; }
.pcard span { font-size: 3.2vh; font-weight: 600; opacity: .95; }
.pcard small { font-size: 2.4vh; opacity: .8; }
.promo-full { position: fixed; inset: 12vh 0 0 0; padding: 3vh 3vw; background: #0b0a09; z-index: 5; }
.promo-full .pcard b { font-size: 10vh; } .promo-full .pcard span { font-size: 5vh; }

.note-link { background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; color: var(--primary); font-size: .8rem; font-weight: 600; text-decoration: underline; filter: none; justify-content: flex-start; }
.note-link:hover { transform: none; background: none; }
.item-note { margin-top: 6px; min-height: 36px; padding: 6px 10px; font-size: .85rem; }
.account-hint { margin: 0; font-size: .8rem; }

/* Warenkorb als feste Leiste rechts über die volle Höhe (Desktop), zwei Schritte: Warenkorb und Kasse */
[hidden] { display: none !important; }
.cart-head { gap: 8px; }
.cart-head h2 { flex: 1; }
.back-btn { padding: 6px 10px; min-height: 34px; font-weight: 700; }
.step { display: grid; gap: 18px; }
.sum-lines { display: grid; gap: 0; }
.sum-lines .fee { border-bottom: 0; padding: 3px 0; }
.sum-lines .grand { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 1.02rem; padding-top: 6px; margin-top: 4px; border-top: 1px solid var(--line); }
.sum-lines .grand small { font-weight: 500; color: var(--muted); font-size: .76rem; display: block; }
.legal-note { margin: 0; font-size: .76rem; line-height: 1.45; color: var(--muted); }
.legal-note a { color: inherit; }
.summary-items { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .9rem; }
.summary-items li { display: flex; justify-content: space-between; gap: 10px; }
.summary-items small { color: var(--muted); display: block; }
.unit-info { font-size: .76rem; color: var(--muted); display: block; margin-top: 2px; }
.age-badge { display: inline-block; font-size: .7rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; border: 1.5px solid currentColor; color: var(--danger, #c62828); margin-left: 6px; vertical-align: middle; }
@media (min-width: 960px) {
  :root { --cart-w: clamp(340px, 27vw, 420px); }
  body.shop:not(.no-ordering) { padding-right: var(--cart-w); }
  .layout, main.layout { grid-template-columns: minmax(0, 1fr); }
  .cart-panel { position: fixed; top: 0; right: 0; bottom: 0; width: var(--cart-w); max-height: none; height: 100vh; height: 100dvh; z-index: 26;
    border-radius: 0; border: 0; border-left: 1px solid var(--glass-line); box-shadow: -18px 0 40px -30px rgb(0 0 0 / .6); background: var(--glass-strong); }
  .cart-head { padding: 22px 22px 12px; }
  .cart-body { padding: 0 22px 16px; }
  .cart-foot { padding: 14px 22px 20px; }
}

/* Dateifelder: ordentlicher Knopf überall, Ablagefläche wo gewünscht (class="drop") */
input[type=file] { font-size: .9rem; color: var(--muted); }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin-right: 12px; cursor: pointer; transition: background .15s; }
input[type=file]::file-selector-button:hover { background: color-mix(in srgb, var(--primary) 12%, var(--surface-2)); }
.drop { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 16px 18px; border: 2px dashed var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface-2) 60%, transparent); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-soft); }
.drop.done { border-style: solid; border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); overflow: hidden; color: var(--primary); }
.drop .ic img { width: 100%; height: 100%; object-fit: contain; }
.drop .ic .ico { width: 24px; height: 24px; }
.drop b { display: block; font-size: .98rem; color: var(--text); }
.drop small { color: var(--muted); }
/* Shop-Adresse mit festem Präfix (Anmeldung, Super-Admin) */
.slug-field { display: flex; align-items: stretch; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.slug-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); }
.slug-pre { display: flex; align-items: center; padding: 0 2px 0 12px; color: var(--muted); background: var(--surface-2, transparent); white-space: nowrap; font-weight: 500; }
.slug-field input { border: 0; margin: 0; min-width: 0; flex: 1; box-shadow: none; padding-left: 2px; background: transparent; }
.slug-field input:focus { box-shadow: none; }
.ok-text { color: var(--ok); font-weight: 600; }
/* Abholseite: Laden direkt anrufen */
.call-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2, var(--surface)); }
.call-card .call-btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; }
.call-card .call-btn svg { width: 18px; height: 18px; }
@media (max-width: 380px) { .call-card { flex-direction: column; align-items: stretch; text-align: center; } .call-card .call-btn { justify-content: center; } }
/* Kennzeichnung von Beispielfotos (z. B. KI) im Shop */
.sample-tag { position: absolute; left: 6px; top: 6px; font-size: .62rem; font-weight: 600; letter-spacing: .02em; padding: 2px 6px; border-radius: 6px; background: rgb(0 0 0 / .55); color: #fff; pointer-events: none; }
/* Betreiberbereich Treue: Vorschau der Karte, Stufen, Wochentage */
.treue-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); margin-top: 14px; }
@media (max-width: 860px) { .treue-grid { grid-template-columns: minmax(0, 1fr); } }
.wallet-card { --card: var(--primary); background: var(--card); color: #fff; border-radius: 18px; padding: 16px; display: grid; gap: 12px; box-shadow: 0 10px 30px color-mix(in srgb, var(--card) 35%, transparent); }
.wallet-card .wc-head { display: flex; align-items: center; gap: 10px; }
.wallet-card .wc-head img, .wallet-card .wc-dot { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: rgb(255 255 255 / .2); display: grid; place-items: center; font-weight: 800; }
.wallet-card .wc-head b { flex: 1; font-size: 1.05rem; }
.wallet-card .wc-count { font-weight: 800; font-variant-numeric: tabular-nums; background: rgb(255 255 255 / .18); padding: 3px 10px; border-radius: 999px; }
.wallet-card .wc-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.wallet-card .wc-stamps span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgb(255 255 255 / .45); display: grid; place-items: center; }
.wallet-card .wc-stamps span.on { background: #fff; border: 0; color: var(--card); }
.wallet-card .wc-stamps svg { width: 60%; height: 60%; }
.wallet-card .wc-tiers { display: grid; gap: 4px; font-size: .9rem; }
.wallet-card .wc-tiers b { display: inline-block; min-width: 28px; padding: 1px 6px; margin-right: 6px; border-radius: 6px; background: rgb(255 255 255 / .2); text-align: center; }
.wallet-card .wc-foot { font-size: .8rem; opacity: .85; border-top: 1px solid rgb(255 255 255 / .25); padding-top: 8px; }
.tier-rows { display: grid; gap: 8px; margin: 6px 0; }
.tier-row { display: flex; gap: 8px; align-items: center; }
.tier-row input[type=number] { width: 84px; }
.seg-row { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.seg-row legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.wd-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 120px; }
.wd-bar { display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; gap: 4px; }
.wd-bar span { align-self: end; display: block; border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--primary) 75%, transparent); min-height: 3px; }
.wd-bar small { color: var(--muted); }
.wallet-card .wc-tiers .ready { font-weight: 700; }
.reward-line { text-align: center; margin: 14px 0 0; }
.wallet-btns { display: grid; gap: 8px; margin-top: 16px; }
.wallet-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font: inherit; }
.wallet-btn svg { width: 20px; height: 20px; }
.wallet-btn.apple { background: #000; color: #fff; }
.wallet-btn.google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.treue-grid { align-items: start; }
/* Bewertung: große Sterne zum Antippen */
.star-pick { display: flex; justify-content: center; gap: 6px; margin: 8px 0 16px; }
.star-pick button { font-size: 2.6rem; line-height: 1; background: none; border: 0; box-shadow: none; padding: 4px; color: var(--line); cursor: pointer; min-height: 0; }
.star-pick button.on { color: #f5a524; }
.stars-inline { color: #f5a524; letter-spacing: 1px; }
.feedback-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.fb-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.fb-item:last-child { border-bottom: 0; }
.fb-item.low .stars-inline { color: var(--danger); }

/* ---------- Betreiberbereich: gegliederte Navigation, Übersicht ---------- */
.nav-group { display: none; }
.nav-more { display: none; }
@media (min-width: 1000px) {
  #app > .tabs .nav-group:not(.hidden) { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 14px 4px; }
  #app > .tabs .nav-group:first-of-type { padding-top: 4px; }
  #app > .tabs .nav-start:not(.hidden) { background: var(--primary-soft); color: var(--primary); margin-bottom: 6px; }
}
@media (max-width: 999px) {
  #app > .tabs button:not([data-primary]):not(.nav-more):not(.nav-start) { display: none; }
  #app > .tabs .nav-more { display: flex; }
  /* „Mehr“ geöffnet: alle Bereiche als Blatt über der Leiste, nach Gruppen */
  #app > .tabs.open { top: auto; max-height: 82vh; overflow-y: auto; flex-wrap: wrap; align-content: flex-start; padding: 14px 12px max(12px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; box-shadow: 0 -18px 50px rgb(0 0 0 / .18); }
  #app > .tabs.open .nav-group:not(.hidden) { display: block; flex: 1 0 100%; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 6px 2px; }
  #app > .tabs.open button[data-tab]:not(.hidden) { display: flex; flex: 0 0 calc(33.333% - 4px); }
  #app > .tabs.open .nav-more { flex: 1 0 100%; order: 99; min-height: 44px; flex-direction: row; }
  #app > .tabs.open .nav-more::after { content: "Schließen"; }
  #app > .tabs.open .nav-more .ico { display: none; }
}
.home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.home-head .btn .ico { width: 16px; height: 16px; }
.home-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.home-grid .home-week { grid-column: 1 / -1; }
@media (max-width: 760px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border-left: 4px solid var(--info, #3b82f6); }
.todo-list li.warn { border-left-color: var(--warn); }
.todo-list li.done { border-left-color: var(--ok); }
.todo-list li.done span { display: flex; align-items: center; gap: 6px; }
.todo-list li .ico { width: 18px; height: 18px; color: var(--ok); }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.quick { display: grid; justify-items: start; justify-content: stretch; align-content: start; gap: 8px; padding: 14px; min-height: 86px; border-radius: 14px; background: var(--surface-2); color: var(--text); box-shadow: none; border: 1px solid var(--line); text-align: left; font-weight: 600; }
.quick .ico { width: 24px; height: 24px; color: var(--primary); }
.quick:hover { border-color: var(--primary); }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 2px; box-shadow: 0 0 0 0 var(--ok); animation: livepulse 2s infinite; vertical-align: middle; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .dot-live { animation: none; } }
.set-hidden { display: none !important; }
.set-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 12px; max-width: 720px; }
.set-chips::-webkit-scrollbar { display: none; }
.set-chips button { flex: none; background: var(--surface); color: var(--muted); border: 1px solid var(--line); box-shadow: none; min-height: 38px; padding: 6px 14px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.set-chips button.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
#homeKpis { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
@media (min-width: 700px) { .set-chips { flex-wrap: wrap; overflow: visible; } }
/* Newsletter-Anmeldung (Website) */
.nl-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 32px; align-items: center; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 760px) { .nl-box { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
.nl-text h3 { margin: 0 0 6px; font-size: 1.25rem; }
.nl-text p { margin: 0; color: var(--muted); }
.nl-form { display: grid; gap: 10px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; }
.nl-row button { flex: none; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: var(--muted); font-weight: 400; }
.nl-consent input { width: auto; min-height: 0; margin-top: 3px; flex: none; }
.nl-msg { margin: 0; font-size: .88rem; color: var(--danger); }
.nl-msg:empty { display: none; }

/* ---------- Design-Durchgang (N12): einheitliche Formulare, Kopfzeile am Handy, Kontraste ---------- */
select:not([multiple]) { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a716a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
@media (max-width: 700px) {
  /* Betriebsname am Handy sichtbar, gekürzt statt ausgeblendet */
  .admin-title .tname { display: inline-block; max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; vertical-align: middle; }
}
.btn.secondary, button.secondary { border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }
.kpi small:first-child { letter-spacing: .01em; }
@media (max-width: 480px) { .tier-row > span.muted { display: none; } .tier-row input[type=number] { width: 64px; } }
.fb-sub { display: grid; gap: 10px; padding-left: 26px; border-left: 2px solid var(--line); margin-left: 8px; }
.fb-sub.dim { opacity: .5; }
.fee-details summary { cursor: pointer; font-weight: 650; }

/* Rückmeldung beim Handscanner */
.scan-toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; z-index: 9999;
  background: #1f7a3a; color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 999px; transition: opacity .15s, transform .15s; }
.scan-toast.show { opacity: 1; transform: translate(-50%, 0); }
.btn.disabled { opacity: .55; }
#datevBox details summary { cursor: pointer; font-weight: 600; }

/* Check-in bei Ankunft */
.checkin { margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--surface-2, #f6f2ee); text-align: center; }
.checkin .checkin-btn { width: 100%; justify-content: center; font-size: 1.1rem; padding: 14px; gap: 8px; display: inline-flex; align-items: center; }
.checkin .check { justify-content: center; text-align: left; }
.checkin.done { display: flex; gap: 12px; align-items: center; text-align: left; background: var(--ok-soft); color: var(--ok); }
.checkin.done svg { width: 28px; height: 28px; flex: none; }
.checkin.done .muted { color: inherit; opacity: .85; }
.card.order.arrived { box-shadow: 0 0 0 3px #1f7a3a; }
.arrived-bar { display: flex; align-items: center; gap: 6px; margin: -4px 0 4px; padding: 6px 10px; border-radius: 10px; background: #1f7a3a; color: #fff; font-weight: 700; font-size: .92rem; }
.arrived-bar svg { width: 18px; height: 18px; }
.scan-toast.arrive { background: #1f4f7a; }
.nums span.here { position: relative; }
.nums span.here::after { content: "im Laden"; position: absolute; left: 50%; bottom: -.15em; transform: translateX(-50%); font-size: .22em; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; background: #1f7a3a; color: #fff; padding: .15em .6em; border-radius: 999px; white-space: nowrap; }

/* Sofort-Abholung im Shop */
.slot-days button.instant { display: inline-flex; align-items: center; gap: 4px; }
.slot-days button.instant svg { width: 15px; height: 15px; }
.instant-note { padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); }
/* Reiter Marketing */
#mkPane { display: grid; gap: 14px; }
.mk-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface)); }
.mk-sub { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-sub button { background: var(--surface-2); color: var(--text); box-shadow: none; border-radius: 999px; padding: 8px 14px; font-size: .92rem; }
.mk-sub button.on { background: var(--text); color: var(--bg); }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mk-tile { display: flex; flex-direction: column; gap: 6px; }
.mk-tile h3 { margin: 4px 0 0; } .mk-tile p { margin: 0; } .mk-tile button { margin-top: auto; align-self: flex-start; }
.mk-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.mk-ico svg { width: 22px; height: 22px; }
.mk-status { color: var(--primary); font-weight: 700; }
.mk-motifs { margin: 0; }
.mk-print { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 18px; margin-top: 14px; align-items: start; }
.mk-preview { aspect-ratio: 210/297; border-radius: 12px; overflow: hidden; background: #e9e4df; box-shadow: 0 4px 18px rgba(0,0,0,.12); position: relative; }
.mk-preview iframe { position: absolute; top: 0; left: 0; width: 794px; height: 1123px; border: 0; transform-origin: 0 0; pointer-events: none; }
.mk-formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.mk-format, .mk-printer { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--text); text-decoration: none; }
.mk-format:hover, .mk-printer:hover { outline: 2px solid var(--primary); }
.mk-format span:nth-child(2) { flex: 1; } .mk-format small, .mk-printer small { display: block; }
.mk-format > svg, .mk-printer > svg { width: 16px; height: 16px; opacity: .6; flex: none; }
.mk-shape { width: 26px; max-height: 36px; background: #fff; border: 2px solid var(--primary); border-radius: 3px; flex: none; }
.mk-printers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.mk-printer span { flex: 1; min-width: 0; } .mk-printer b { display: block; }
.mk-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
@media (max-width: 700px) { .mk-print { grid-template-columns: 1fr; } .mk-preview { max-width: 280px; } }

.mk-news { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.mk-mail { width: 100%; max-width: 700px; justify-self: center; border-radius: 18px; overflow: hidden; background: #f1ece7; box-shadow: 0 10px 30px rgba(0,0,0,.12); border: 1px solid var(--line, #e9e1d9); }
.mk-mail-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: var(--surface-2); }
.mk-mail-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d7cfc8; } .mk-mail-bar b { margin-left: 8px; font-size: .85rem; color: var(--muted); }
.mk-mail iframe { display: block; width: 100%; height: min(78vh, 900px); border: 0; background: #f1ece7; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; max-height: 150px; overflow: auto; }
.mk-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mk-chip span { display: inline-block; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; cursor: pointer; }
.mk-chip input:checked + span { background: var(--primary); color: var(--on-primary, #fff); }
.mk-chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Bewertung auf der Abholseite */
.rate-card { margin: 14px auto 0; max-width: 360px; display: grid; gap: 4px; justify-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.rate-stars { display: flex; gap: 6px; margin-top: 6px; }
.rate-stars button { width: 46px; height: 46px; border-radius: 12px; font-size: 26px; line-height: 1; padding: 0; background: var(--surface); color: #f5a524; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.rate-stars button:hover, .rate-stars button:focus-visible { transform: scale(1.08); }

/* Seitenköpfe und Hinweisleisten (Super-Admin) */
.page-head { margin: 0 0 12px; } .page-head h2 { margin: 0; } .page-head p { margin: 2px 0 0; }
.note.alert-bar { display: flex; gap: 10px; align-items: center; border-left: 4px solid #d98b1f; background: color-mix(in srgb, #f5b700 12%, var(--surface)); font-weight: 600; }
.note.alert-bar::before { content: "!"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #d98b1f; color: #fff; font-weight: 900; font-size: 13px; }
.note.alert-bar.hidden { display: none; }

/* Betreiber: Logo, Live-Karte, Scannen */
.brand-logo-top { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; background: #fff; padding: 3px; vertical-align: middle; margin-right: 10px; }
.hello-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; background: #fff; padding: 4px; vertical-align: middle; margin-right: 12px; box-shadow: var(--shadow-sm); }
.home-live .live-wait { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.live-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #1f7a3a; color: #fff; font-weight: 700; font-size: .88rem; }
.live-chip .ico { width: 15px; height: 15px; }
.live-next { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.live-next li { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.live-next b { font-size: 1.15rem; }
.st-pill { font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface); }
.st-pill.neu { color: #c2410c; } .st-pill.in_zubereitung { color: #1d4ed8; } .st-pill.abholbereit { color: #1f7a3a; }
.scan-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px; }
.scan-ring { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); position: relative; }
.scan-ring svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.scan-ring::after { content: ""; position: absolute; inset: -6px; border-radius: 28px; border: 2px solid color-mix(in srgb, var(--primary) 35%, transparent); animation: scanPulse 2s ease-out infinite; }
@keyframes scanPulse { from { opacity: 1; transform: scale(.94); } to { opacity: 0; transform: scale(1.12); } }
.scan-ready { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .86rem; font-weight: 700; color: #1f7a3a; }
.scan-ready span { width: 9px; height: 9px; border-radius: 50%; background: #1f7a3a; box-shadow: 0 0 0 4px color-mix(in srgb, #1f7a3a 20%, transparent); }
#manualScan { margin-top: 14px !important; }
@media (max-width: 700px) { .scan-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } .live-next li { grid-template-columns: 40px 1fr auto; } .live-next li .muted { display: none; } }
@media (prefers-reduced-motion: reduce) { .scan-ring::after { animation: none; } }

/* Shop: kompakte Liste am Handy, Mengenanzeige, Animationen */
.cats { top: var(--top-h, 64px); }
.menu-section { scroll-margin-top: calc(var(--top-h, 64px) + 70px); }
.qty-ctl { position: absolute; left: 8px; bottom: 8px; display: none; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / .92); box-shadow: 0 4px 14px -4px rgb(0 0 0 / .35); z-index: 2; }
.qty-ctl.on { display: inline-flex; animation: qtyIn .25s var(--ease); }
.qty-ctl b { min-width: 22px; text-align: center; color: #1f1b19; font-weight: 800; }
.qty-ctl .dec { width: 30px; height: 30px; min-height: 30px; padding: 0; border-radius: 50%; background: #efe9e4; color: #1f1b19; box-shadow: none; font-size: 1.1rem; }
@keyframes qtyIn { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.add.bump, .pop.bump { animation: addBump .35s var(--ease); }
@keyframes addBump { 40% { transform: scale(1.25); } }
#cartFab.bump, .cart-panel.bump { animation: fabBump .4s var(--ease); }
@keyframes fabBump { 30% { transform: translateY(-4px) scale(1.04); } }
.fly-dot { position: fixed; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgb(255 255 255 / .8), 0 6px 16px rgb(0 0 0 / .3); z-index: 999; pointer-events: none; }
.ups { display: flex; align-items: center; gap: 12px; }
.ups img, .ups .ups-ph { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--surface-2); }
.ups .ups-ph .ico { width: 22px; height: 22px; }
.ups > div { flex: 1; min-width: 0; }
@media (max-width: 699px) {
  .products { grid-template-columns: 1fr; gap: 10px; }
  .product { grid-template-columns: minmax(0, 1fr) 112px; grid-template-rows: auto; padding: 12px; gap: 12px; align-items: center; }
  .product .media { order: 0; width: 112px; height: 112px; aspect-ratio: auto; }
  .product img, .product .ph { width: 112px; height: 112px; border-radius: 16px; }
  .product .info { padding: 0; gap: 4px; }
  .product .name { font-size: 1rem; }
  .add { right: 6px; bottom: 6px; width: 38px; height: 38px; min-height: 38px; }
  .qty-ctl { left: 6px; bottom: 6px; } .qty-ctl .dec { width: 26px; height: 26px; min-height: 26px; }
  .menu-section > h2 { font-size: 1.3rem; margin: 6px 4px 10px; }
}
@media (prefers-reduced-motion: reduce) { .qty-ctl.on, .add.bump, .pop.bump, #cartFab.bump, .cart-panel.bump { animation: none; } }
/* Kennzahlen: Schrift passt sich der Kartenbreite an, nichts läuft über den Rand */
.kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { container-type: inline-size; min-width: 0; }
.kpi b { font-size: clamp(1.1rem, 14cqi, 2rem); white-space: nowrap; }
/* Kopfzeile Betreiber/Laden: Abzeichen bleiben in einer Zeile, der Name kürzt sich bei Bedarf */
@media (max-width: 1100px) { .admin-title { flex-wrap: nowrap !important; min-width: 0; } .admin-title .badge { white-space: nowrap; flex: none; } .admin-title .tname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
