@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; }
/* iPhone/iPad: Felder mit Schrift unter 16 px lassen Safari beim Antippen hineinzoomen (Seite wirkt danach verschoben) */
@media (hover: none), (max-width: 900px) { input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { font-size: max(16px, 1em); } }
/* Automatisch ausgefüllte Felder (Safari/Chrome) im Look der Seite statt gelb */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; caret-color: var(--text); transition: background-color 9999s; }
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; } }
body.display.lite { background: #0b0a09; }
body.display.lite .pcard, body.display.lite .ready .nums span { box-shadow: none; }
body.display.lite .ready .nums span.new { animation: enter .5s ease-out; }
body.display.lite .display-cols .ready h2::before { box-shadow: none; }
.pick-fb { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: rgb(11 10 9 / .94); }
.pick-fb.on { display: grid; }
.pick-fb.admin { padding: 16px; } .pick-fb.admin .pick-card { min-width: 0; width: min(520px, 100%); max-width: none; padding: 24px; border-radius: 22px; }
.pick-fb.admin .pick-k { font-size: .95rem; } .pick-fb.admin .pick-no { font-size: 4.5rem; margin: 4px 0 14px; }
.pick-fb.admin ul { font-size: 1.15rem; gap: 6px; margin-bottom: 14px; } .pick-fb.admin li small { font-size: .9rem; }
.pick-fb.admin .pick-pay { font-size: 1.5rem; } .pick-fb.admin .pick-st { font-size: .9rem; margin-top: 8px; }
.pick-card { min-width: 50vw; max-width: 80vw; background: #15130f; border: 1px solid rgb(74 222 128 / .3); border-radius: 4vh; padding: 5vh 4vw; color: #fff; }
.pick-k { margin: 0; font-size: 3.4vh; font-weight: 700; color: #86efac; }
.pick-no { display: block; font-size: 18vh; line-height: 1; letter-spacing: -.03em; margin: 1vh 0 3vh; }
.pick-card ul { list-style: none; margin: 0 0 3vh; padding: 0; display: grid; gap: 1.2vh; font-size: 4vh; font-weight: 650; }
.pick-card li small { display: block; font-size: 2.6vh; font-weight: 500; color: #fbbf24; }
.pick-card li span { color: rgb(255 255 255 / .6); }
.pick-pay { margin: 0; font-size: 5vh; font-weight: 800; color: #fbbf24; }
.pick-pay.ok { color: #86efac; }
.pick-st { margin: 2vh 0 0; font-size: 3vh; color: rgb(255 255 255 / .75); }
.box-cmd { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.box-cmd.wait { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.box-cmd.ok { background: color-mix(in srgb, #22c55e 14%, transparent); color: #15803d; }
.box-cmd.bad { background: color-mix(in srgb, #ef4444 14%, transparent); color: #b91c1c; }
.spin-s { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin-s .8s linear infinite; flex: none; }
@keyframes spin-s { to { transform: rotate(360deg); } }
/* Spalten der Abholanzeige: feste Höhe, Nummern passen sich an (fitNums in display.html) */
body.display .display-main { min-height: 0; overflow: hidden; }
body.display .display-cols { min-height: 0; }
body.display .display-cols > section { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
body.display .display-cols .nums { flex: 1; min-height: 0; overflow: hidden; }
body.display .nums span { font-size: var(--ns, 8vh); }
body.display .ready .nums span { font-size: var(--ns, 11vh); }
body.display .promo-side, body.display .promo-side .pcard { min-height: 0; overflow: hidden; }
@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; }
/* Kasse am Handy: Einzelposten stehen schon unter „Deine Bestellung“, unten bleiben Gesamtbetrag, Pflichthinweis und Knopf */
@media (max-width: 600px) { body[data-step="kasse"] #feeLines .fee, body[data-step="kasse"] #feeLines .minbar { display: none; } body[data-step="kasse"] #legalNote { font-size: .72rem; line-height: 1.35; margin: 0; } body[data-step="kasse"] .cart-foot { gap: 6px; padding-top: 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: 48px 20px 18px; 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; }
/* Video-Aktion (TresenFix-Box): Video füllt die Karte, Verlauf hält Titel und Text lesbar */
.pcard.vid { background: #000; }
.pcard .pvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.pcard.vid::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / 0) 40%, rgb(0 0 0 / .8)); }
.pcard.vid { isolation: isolate; }
.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: color-mix(in srgb, var(--text) 22%, transparent); 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: 78px; 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); }
.scan-ready.off { color: #b45309; } .scan-ready.off span { background: #b45309; box-shadow: none; }
#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 { animation: fabBump .4s var(--ease); }
@media (min-width: 960px) { .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; } }

/* Kategorie-Leiste: Hintergrund auf der Leiste selbst statt auf einer Ebene darin.
   iOS zeichnete die Glas-Ebene über die Knöpfe und schob sie beim seitlichen Scrollen mit (leerer Balken). */
.cats { margin: 6px 8px 0; padding: 8px 10px; border-radius: 22px; isolation: auto;
  background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--glass-line); box-shadow: 0 8px 24px -14px rgb(0 0 0 / .45); }
.cats::before { display: none; }
/* Warenkorb: Aktionshinweise, kompakte Angaben, eingeklappte Zusammenfassung */
.deal-hints { display: grid; gap: 8px; margin: 12px 0 4px; }
.deal-hint { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.deal-hint b { display: block; font-size: .92rem; } .deal-hint small { display: block; color: var(--text); opacity: .85; font-size: .85rem; line-height: 1.35; }
.dh-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent, #1f1b19); flex: none; } .dh-ic svg { width: 15px; height: 15px; }
.dh-add { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; flex: none; }
.who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.who b { display: block; } .who small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.who-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; } .who-ic svg { width: 17px; height: 17px; }
.sum-det > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.sum-det > summary::-webkit-details-marker { display: none; }
.sum-det > summary small { color: var(--primary); font-weight: 700; text-transform: none; letter-spacing: 0; }
.sum-det[open] > summary small { visibility: hidden; }
.account-hint:empty { display: none; }
.cart-line .note-link { font-size: .8rem; color: var(--muted); text-decoration: none; font-weight: 600; }

/* ---------- Shop wie eine Liefer-App ----------
   Suche und Kategorien als eine feste, deckende Leiste; Gerichtansicht mit großem Bild;
   am Handy Warenkorb und Kasse als Vollbild, Hintergrund steht still. */
.shopbar { position: sticky; top: var(--top-h, 64px); z-index: 15; background: var(--bg); padding: 8px 0 6px; box-shadow: 0 10px 18px -16px rgb(0 0 0 / .6); }
.shopbar .search-wrap { padding-top: 0; padding-bottom: 8px; }
.shopbar .cats { position: static; margin: 0 auto; max-width: 1100px; padding: 0 16px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.shopbar .cats a { padding: 8px 14px; }
.menu-section { scroll-margin-top: calc(var(--stick-h, 130px) + 10px); }
.product[data-dish] { cursor: pointer; }
html.scroll-lock, html.scroll-lock body { overflow: hidden; }
html.scroll-lock body { position: fixed; left: 0; right: 0; width: 100%; }

.dish-dlg { padding: 0; border: 0; width: min(560px, 100vw); max-width: 100vw; max-height: min(92vh, 900px); border-radius: 26px; background: var(--surface); color: var(--text); overflow: hidden; display: none; flex-direction: column; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6); }
.dish-dlg[open] { display: flex; }
.dish-dlg::backdrop { background: rgb(10 8 6 / .55); }
.dish-scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.dish-media { position: relative; background: var(--surface-2); }
.dish-media img, .dish-media .ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dish-media .ph { display: grid; place-items: center; aspect-ratio: 16 / 7; } .dish-media .ph .ico { width: 56px; height: 56px; opacity: .5; }
.dish-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: rgb(20 18 16 / .6); color: #fff; border: 0; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dish-info { padding: 18px 20px 20px; display: grid; gap: 10px; }
.dish-info h2 { margin: 0; font-size: 1.45rem; font-weight: 850; letter-spacing: -.02em; }
.dish-info p { margin: 0; }
.dish-price { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dish-price s { color: var(--muted); font-weight: 600; font-size: .95rem; }
.dish-desc { color: var(--muted); line-height: 1.5; }
.dish-codes { border-top: 1px solid var(--line); padding-top: 12px; scroll-margin-top: 12px; }
.dish-codes h3 { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dish-codes li { font-size: .9rem; padding: 3px 0; } .dish-codes li b { display: inline-block; min-width: 28px; }
.dish-note { font-size: .88rem; font-weight: 600; }
.dish-foot { display: flex; gap: 10px; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.dish-qty { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 4px; flex: none; }
.dish-qty button { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: none; color: var(--text); box-shadow: none; border: 0; }
.dish-qty button:disabled { opacity: .35; }
.dish-qty b { min-width: 24px; text-align: center; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.dish-add { flex: 1; min-height: 52px; border-radius: 999px; justify-content: center; gap: 12px; font-size: 1.05rem; font-weight: 800; }
.dish-add b { font-variant-numeric: tabular-nums; }

@media (max-width: 959px) {
  /* Kopfzeile scrollt weg, die Leiste bleibt oben */
  body.shop .top { position: relative; }
  .shopbar { top: 0; padding-top: max(8px, env(safe-area-inset-top)); }
  /* Kompakter Kopfbereich, damit die Karte früher beginnt */
  .hero { margin-top: 10px; }
  .hero .wrap { min-height: 0; padding: 70px 18px 16px; border-radius: 22px; }
  .hero-title { font-size: 1.9rem; }
  .hero #tagline { font-size: .95rem; }
  .hero-chips { margin-top: 8px; } .hero-chips span { font-size: .78rem; padding: 4px 10px; }
  .promo-strip { padding-top: 12px; }
  .search-wrap input { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
  /* Gerichtansicht: von unten, fast ganzer Bildschirm */
  .dish-dlg { margin: auto 0 0; width: 100vw; max-height: 94dvh; border-radius: 24px 24px 0 0; }
  .dish-dlg[open] { animation: dishUp .28s var(--ease); }
  /* Warenkorb und Kasse: ganzer Bildschirm, deckend, mit sicherem Rand oben */
  .cart-panel { top: 0; max-height: none; height: 100vh; height: 100dvh; border-radius: 0; background: var(--bg); padding-top: env(safe-area-inset-top); border: 0; }
  .cart-panel .sheet-handle { display: none; }
  .cart-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
  .cart-head h2 { font-size: 1.35rem; }
  #closeCart { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
  .cart-body { padding: 14px 16px; }
  .cart-foot { background: var(--surface); padding-left: 16px; padding-right: 16px; }
  .sheet-backdrop { display: none; }
}
@keyframes dishUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dish-dlg[open] { animation: none; } }

/* Einstellungen: Speichern bleibt unten sichtbar, Öffnungszeiten kompakt, zwei Wege der Theken-Ausstattung */
#settingsForm .save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: 8px -20px -20px; padding: 12px 20px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-lg, 24px) var(--radius-lg, 24px); }
#settingsForm .save-bar .error { margin: 0; flex: 1; text-align: right; }
#settingsForm .save-bar button { min-width: 180px; }
#hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 14px; }
#hours label { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; margin: 0; }
.setup-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.setup-way { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--surface-2); display: grid; gap: 4px; }
.setup-way small { color: var(--muted); line-height: 1.45; }
@media (max-width: 999px) {
  /* Untere Navigationsleiste: Speichern sitzt darüber statt darunter */
  #settingsForm .save-bar { bottom: calc(66px + env(safe-area-inset-bottom)); margin-left: -16px; margin-right: -16px; border-radius: 16px; }
  #settingsForm .save-bar button { min-width: 0; flex: 1; }
}
@media (max-width: 560px) {
  /* Kopfzeile am Handy: Betriebsname hat Vorrang vor dem Rollen-Abzeichen */
  .admin-title .role-badge { display: none; }
  .admin-title .tname { font-size: 1rem; }
}
@media (max-width: 999px) {
  /* „Mehr“-Blatt deckend, damit nichts durchscheint */
  #app > .tabs.open { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* Spaltenumschalter der Bestellungen passt auch bei 390 px */
  .board-switch button { min-width: 0; font-size: .82rem; padding: 6px 4px; white-space: nowrap; }
}
/* Liefergebiet-Karte */
.plz-dlg { width: min(980px, calc(100vw - 24px)); }
.plz-map { position: relative; height: min(62vh, 560px); border-radius: 18px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.plz-state { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; z-index: 2; pointer-events: none; }
.plz-state.hidden { display: none; }
.plz-map .plz-state:not(.hidden) { background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.plz-foot { margin-top: 12px; gap: 12px; flex-wrap: wrap; }
.plz-foot #plzSel { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.plz-map .maplibregl-ctrl-attrib { font-size: 11px; }
@media (max-width: 560px) { .plz-dlg { padding: 14px; } .plz-map { height: 58vh; } }
.plz-dlg { background: var(--surface); }
.plz-foot select { width: auto; min-width: 104px; }
.plz-foot > .row { flex-wrap: nowrap; gap: 10px; align-items: center; }
.plz-map .maplibregl-ctrl-group { background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgb(0 0 0 / .25); }
.plz-map .maplibregl-ctrl-group button { width: 36px; height: 36px; min-height: 0; padding: 0; margin: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; }
.plz-map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--line); }
.dark .plz-map .maplibregl-ctrl-icon, .plz-map.dark-ctrl .maplibregl-ctrl-icon { filter: invert(1); }
.plz-map .maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--muted); line-height: 1.4; }
.plz-map .maplibregl-ctrl-attrib a { color: var(--muted); }
.plz-map .maplibregl-ctrl-attrib-button { min-height: 0; padding: 0; box-shadow: none; }
.plz-map .maplibregl-ctrl.maplibregl-ctrl-attrib, .plz-map .maplibregl-ctrl-attrib.maplibregl-compact-show { background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--muted); }
.plz-map .maplibregl-ctrl-attrib-inner { color: var(--muted); }
.dark .plz-map .maplibregl-ctrl-attrib-button, .plz-map.dark-ctrl .maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent; }
/* Beispielbilder-Auswahl */
.sample-dlg { width: min(900px, calc(100vw - 24px)); background: var(--surface); }
.sample-cats { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 6px; scrollbar-width: none; }
.sample-cats button { flex: none; min-height: 34px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); box-shadow: none; font-size: .86rem; font-weight: 600; }
.sample-cats button[aria-selected="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.sample-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: min(58vh, 560px); overflow-y: auto; padding: 4px 2px 2px; }
.sample-item { display: grid; gap: 6px; padding: 0; background: transparent; border: 0; box-shadow: none; color: var(--text); text-align: left; min-height: 0; font-weight: 600; font-size: .84rem; }
.sample-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.sample-item:hover img, .sample-item:focus-visible img { border-color: var(--primary); transform: translateY(-1px); }
.sample-item span { padding: 0 2px; line-height: 1.25; }
@media (max-width: 560px) { .sample-dlg { padding: 14px; } .sample-grid { grid-template-columns: repeat(2, 1fr); max-height: 60vh; } }
/* Bestelllimits */
.limit-row { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 10px; display: grid; gap: 10px; }
.limit-days { display: flex; flex-wrap: wrap; gap: 6px; }
.limit-days label { position: relative; }
.limit-days input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.limit-days span { display: inline-grid; place-items: center; min-width: 40px; height: 34px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: .85rem; }
.limit-days input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.limit-days input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.limit-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.limit-fields select { grid-column: span 2; }
.limit-fields label { min-width: 0; }
.limit-list { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 560px) { .limit-fields { grid-template-columns: 1fr 1fr; } .limit-fields select { grid-column: 1 / -1; } }
.addr-row .addr-zip { flex: 0 0 120px; }
.plz-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; width: auto; }
.plz-btn .ico { width: 18px; height: 18px; }
/* Einrichtungsassistent */
.setup-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 12px 10px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line)); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); font-size: .92rem; }
.setup-bar .setup-mini { flex: 0 0 90px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.setup-bar .setup-mini i { display: block; height: 100%; background: var(--primary); }
.wiz-open-link { max-width: 720px; display: flex; justify-content: flex-end; margin: 0 0 8px; }
.wiz-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wiz-pct { display: grid; gap: 6px; min-width: 160px; text-align: right; }
.wiz-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.wiz-bar i { display: block; height: 100%; background: var(--ok, #16a34a); transition: width .4s; }
.wiz-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; margin-top: 14px; align-items: start; }
.wiz-nav { display: grid; gap: 10px; }
.wiz-nav-d { position: sticky; top: 12px; }
.wiz-nav-m { display: none; }
.wiz-sec { display: grid; gap: 2px; }
.wiz-sec > small { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; font-weight: 700; color: var(--muted); padding: 4px 8px; }
.wiz-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 10px; border-radius: 12px; background: transparent; border: 0; box-shadow: none; color: var(--text); font-weight: 600; font-size: .88rem; text-align: left; justify-content: flex-start; }
.wiz-nav-item:hover { background: var(--surface-2); }
.wiz-nav-item.cur { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--text); }
.wiz-nav-item.skip { color: var(--muted); }
.wiz-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; color: var(--muted); }
.wiz-dot .ico { width: 13px; height: 13px; }
.wiz-nav-item.done .wiz-dot { background: var(--ok, #16a34a); border-color: var(--ok, #16a34a); color: #fff; }
.wiz-nav-item.cur .wiz-dot { border-color: var(--primary); }
.wiz-step h2 { margin: 6px 0 10px; }
.wiz-form { gap: 12px; }
.wiz-form p { margin: 0; }
.wiz-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.wiz-hours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.wiz-ok { display: flex; gap: 10px; align-items: flex-start; }
.wiz-ok .ico { flex: none; width: 22px; height: 22px; color: var(--ok, #16a34a); }
.wiz-offer { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--accent) 70%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.wiz-offer > div { flex: 1 1 260px; }
.wiz-track { display: flex; gap: 6px; padding: 0; margin: 0; list-style: none; flex-wrap: wrap; }
.wiz-track li { padding: 6px 12px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .84rem; }
.wiz-track li.on { background: var(--ok, #16a34a); color: #fff; }
.wiz-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.wiz-ways .wiz-way { position: relative; display: grid; gap: 4px; padding: 14px; border-radius: 16px; border: 2px solid var(--line); cursor: pointer; }
.wiz-ways .wiz-way input { position: absolute; opacity: 0; }
.wiz-ways .wiz-way.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.wiz-ways .wiz-way small { color: var(--muted); }
.wiz-items details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; }
.wiz-items summary { font-weight: 700; cursor: pointer; }
.wiz-items details p { margin: 8px 0 0; }
.wiz-done { text-align: center; margin-top: 14px; padding: 32px 20px; }
.wiz-big { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok, #16a34a); color: #fff; }
.wiz-big .ico { width: 30px; height: 30px; }
.badge.ok { background: var(--ok, #16a34a); color: #fff; }
.wiz-logo .thumb { width: 64px; height: 64px; object-fit: contain; }
@media (max-width: 860px) {
  .wiz-body { grid-template-columns: 1fr; }
  .wiz-nav-d { display: none; }
  .wiz-nav-m { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--surface); }
  .wiz-nav-m summary { font-weight: 700; cursor: pointer; }
  .wiz-nav-m .wiz-nav { margin-top: 8px; }
  .wiz-hours { grid-template-columns: 1fr; }
  .wiz-pct { min-width: 0; width: 100%; text-align: left; }
  .setup-bar .setup-mini { display: none; }
}

/* Dunkelmodus: Textknöpfe und Aufklapp-Zeilen in Betriebsfarbe waren auf dunklem Grund schlecht lesbar (z. B. Rot auf Schwarz) */
@media (prefers-color-scheme: dark) {
  :root:not(.light) button.ghost:not([style*="color"]) { color: var(--text); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); }
  :root:not(.light) button.ghost:not([style*="color"]):hover { background: rgb(255 255 255 / .12); }
  :root:not(.light) details.more summary { color: var(--text); }
}
:root.dark button.ghost:not([style*="color"]) { color: var(--text); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); }
:root.dark button.ghost:not([style*="color"]):hover { background: rgb(255 255 255 / .12); }
:root.dark details.more summary { color: var(--text); }
:root .top button.ghost.ghost.ghost { color: #fff; background: transparent; border: 0; }

/* =====================================================================
   Gestaltung 2030 – Betreiberbereich und Super-Admin (body.ui)
   Ruhige helle Arbeitsfläche, schwebende Seitenleiste, Pillen-Knöpfe, Schalter,
   klare Typografie, weiche Tiefe. Shop und Abholanzeige bleiben unberührt.
   Allgemeine Regeln mit :where(), damit gezieltere Regeln (Navigation, Tafel) gewinnen.
   ===================================================================== */
body.ui {
  --bg: #f3f3f6; --surface: #ffffff; --surface-2: #f0f0f4; --text: #111116; --muted: #696975; --line: rgb(17 17 22 / .08);
  --glass: rgb(255 255 255 / .74); --glass-strong: rgb(255 255 255 / .92); --glass-line: rgb(17 17 22 / .06); --glass-shine: inset 0 1px 0 rgb(255 255 255 / .9);
  --radius: 16px; --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(17 17 22 / .05);
  --shadow: 0 1px 2px rgb(17 17 22 / .04), 0 12px 32px -18px rgb(17 17 22 / .18);
  --shadow-lg: 0 2px 6px rgb(17 17 22 / .05), 0 36px 72px -28px rgb(17 17 22 / .32);
  --grad: linear-gradient(135deg, color-mix(in srgb, var(--primary) 86%, #fff) 0%, var(--primary) 45%, color-mix(in srgb, var(--primary) 78%, #000) 100%);
  --primary-soft: color-mix(in srgb, var(--primary) 9%, var(--surface));
  --ring: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
  background: var(--bg); font-feature-settings: "cv11", "ss01", "ss03", "tnum" 0;
}
@media (prefers-color-scheme: dark) { :root:not(.light) body.ui {
  --bg: #0a0a0d; --surface: #141419; --surface-2: #1c1c23; --text: #f3f3f6; --muted: #9b9ba8; --line: rgb(255 255 255 / .08);
  --glass: rgb(20 20 25 / .72); --glass-strong: rgb(20 20 25 / .92); --glass-line: rgb(255 255 255 / .07); --glass-shine: inset 0 1px 0 rgb(255 255 255 / .05);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -20px rgb(0 0 0 / .8); --shadow-lg: 0 36px 80px -30px rgb(0 0 0 / .9);
  --primary-soft: color-mix(in srgb, var(--primary) 18%, var(--surface));
} }
:root.dark body.ui {
  --bg: #0a0a0d; --surface: #141419; --surface-2: #1c1c23; --text: #f3f3f6; --muted: #9b9ba8; --line: rgb(255 255 255 / .08);
  --glass: rgb(20 20 25 / .72); --glass-strong: rgb(20 20 25 / .92); --glass-line: rgb(255 255 255 / .07); --glass-shine: inset 0 1px 0 rgb(255 255 255 / .05);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -20px rgb(0 0 0 / .8); --shadow-lg: 0 36px 80px -30px rgb(0 0 0 / .9);
  --primary-soft: color-mix(in srgb, var(--primary) 18%, var(--surface));
}
/* Hintergrund: zarter Schimmer in den Betriebsfarben statt kräftiger Flecken, feines Punktraster */
body.ui::before { opacity: .5; filter: blur(40px); animation-duration: 40s; }
body.ui::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 55%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); }

/* Typografie */
:where(body.ui) h1, :where(body.ui) h2, :where(body.ui) h3 { letter-spacing: -.035em; }
:where(body.ui) [data-pane] > h2:first-child, :where(body.ui) .home-head h2, :where(body.ui) .page-head h2, :where(body.ui) [data-pane] > .row:first-child h2 { font-size: clamp(1.55rem, 1.15rem + 1.1vw, 2.1rem); font-weight: 780; }
:where(body.ui) .card h2 { font-size: 1.12rem; font-weight: 740; }
:where(body.ui) .card h3 { font-size: .98rem; font-weight: 700; }
:where(body.ui) .muted, :where(body.ui) small { color: var(--muted); }

/* Kopfzeile: helle Glasleiste statt dunklem Balken */
body.ui .top { background: color-mix(in srgb, var(--bg) 72%, transparent); color: var(--text); border-bottom: 1px solid var(--line); box-shadow: none; }
body.ui .top .wrap { min-height: 68px; gap: 10px; }
body.ui .top h1 { font-size: 1.08rem; font-weight: 760; letter-spacing: -.02em; color: var(--text); }
body.ui .top a, body.ui .top .pill-btn, body.ui .top .theme-toggle { color: var(--text); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); opacity: 1; filter: none; }
body.ui .top a:hover, body.ui .top .pill-btn:hover, body.ui .top .theme-toggle:hover { background: var(--surface-2); transform: none; }
body.ui .top .pill-btn .ico, body.ui .top a .ico { width: 18px; height: 18px; color: var(--muted); }
body.ui .top .role-badge, body.ui .role-badge { background: var(--primary-soft); color: var(--primary); border: 0; font-weight: 700; }
body.ui .brand-logo-top { border-radius: 10px; box-shadow: var(--shadow-sm); }
body.ui .top .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not(.light) body.ui .top .logo-light { display: none; } :root:not(.light) body.ui .top .logo-dark { display: block; } }
:root.dark body.ui .top .logo-light { display: none; } :root.dark body.ui .top .logo-dark { display: block; }

/* Knöpfe: Pillen mit Verlauf, sekundär hell, Text-Knöpfe ruhig */
:where(body.ui) button, :where(body.ui) .btn { border-radius: 999px; background: var(--grad); color: #fff; font-weight: 650; min-height: 44px; padding: 10px 20px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 8px 22px -12px color-mix(in srgb, var(--primary) 85%, transparent); border: 0; }
:where(body.ui) button:hover, :where(body.ui) .btn:hover { background: var(--grad); filter: brightness(1.06) saturate(1.05); transform: translateY(-1px); }
:where(body.ui) button.secondary, :where(body.ui) .btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: none; }
:where(body.ui) button.secondary:hover, :where(body.ui) .btn.secondary:hover { background: var(--surface-2); filter: none; }
:where(body.ui) button.ghost { background: transparent; color: var(--primary); box-shadow: none; border-radius: 999px; }
:where(body.ui) button.ghost:hover { background: var(--primary-soft); transform: none; filter: none; }
:where(body.ui) button.small, :where(body.ui) .btn.small { min-height: 36px; padding: 6px 14px; border-radius: 999px; }
:where(body.ui) button.danger, :where(body.ui) .btn.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); }

/* Felder: gefüllt, ohne harte Ränder, deutlicher Fokus */
:where(body.ui) input, :where(body.ui) select, :where(body.ui) textarea { background: var(--surface-2); border: 1px solid transparent; border-radius: 14px; }
:where(body.ui) input:hover, :where(body.ui) select:hover, :where(body.ui) textarea:hover { border-color: var(--line); }
:where(body.ui) input:focus, :where(body.ui) select:focus, :where(body.ui) textarea:focus { background: var(--surface); border-color: color-mix(in srgb, var(--primary) 60%, transparent); box-shadow: var(--ring); }
/* Schalter statt Kästchen bei Ein/Aus-Optionen */
:where(body.ui) label.check > input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; min-height: 0; padding: 0; margin: 0; border-radius: 99px; border: 0;
  background: color-mix(in srgb, var(--muted) 32%, transparent); position: relative; cursor: pointer; transition: background .2s var(--ease); box-shadow: inset 0 1px 2px rgb(0 0 0 / .12); }
:where(body.ui) label.check > input[type=checkbox]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / .22); transition: transform .22s var(--ease); }
:where(body.ui) label.check > input[type=checkbox]:checked { background: var(--grad); }
:where(body.ui) label.check > input[type=checkbox]:checked::before { transform: translateX(18px); }
:where(body.ui) label.check > input[type=checkbox]:focus-visible { box-shadow: var(--ring); outline: none; }

/* Karten: klar, hell, weiche Tiefe */
:where(body.ui) .card { background: var(--glass-strong); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--glass-shine), var(--shadow); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); }
:where(body.ui) dialog { border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
:where(body.ui) .notice { border-radius: 18px; }
:where(body.ui) table.list th { color: var(--muted); }
:where(body.ui) .badge { border-radius: 999px; }

/* Seitenleiste ab Tablet-Querformat: schwebende Leiste mit Symbol-Kacheln */
@media (min-width: 1000px) {
  body.ui #app { grid-template-columns: 252px minmax(0, 1fr); gap: 30px; }
  body.ui #app > .tabs { background: var(--glass-strong); border: 1px solid var(--line); border-radius: 28px; padding: 12px; box-shadow: var(--glass-shine), var(--shadow);
    top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; gap: 1px; }
  body.ui #app > .tabs button { min-height: 44px; border-radius: 14px; gap: 12px; color: var(--text); font-weight: 600; padding: 5px 10px 5px 6px; background: none; box-shadow: none; }
  body.ui #app > .tabs button .ico { width: 32px; height: 32px; padding: 7px; border-radius: 11px; background: var(--surface-2); color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
  body.ui #app > .tabs button:hover { background: var(--surface-2); }
  body.ui #app > .tabs button:hover .ico { color: var(--primary); background: var(--primary-soft); }
  body.ui #app > .tabs button.on { background: var(--primary-soft); color: var(--text); box-shadow: none; }
  body.ui #app > .tabs button.on .ico { background: var(--grad); color: #fff; box-shadow: 0 8px 16px -8px var(--primary); }
  body.ui #app > .tabs .nav-group:not(.hidden) { font-size: .68rem; letter-spacing: .1em; padding: 16px 12px 6px; }
  body.ui #app > .tabs .nav-start:not(.hidden) { background: var(--grad); color: #fff; margin-bottom: 8px; }
  body.ui #app > .tabs .nav-start:not(.hidden) .ico { background: rgb(255 255 255 / .2); color: #fff; }
}
/* Handy und Tablet hochkant: schwebende Leiste unten */
@media (max-width: 999px) {
  body.ui #app > .tabs { background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  body.ui #app > .tabs button.on { color: var(--primary); background: var(--primary-soft); }
}

/* Inhalte blenden beim Wechsel weich ein */
@keyframes ui-in { from { opacity: 0; transform: translateY(10px) scale(.995); } }
@media (prefers-reduced-motion: no-preference) {
  body.ui [data-pane]:not(.hidden) > * { animation: ui-in .42s var(--ease) both; }
  body.ui [data-pane]:not(.hidden) > *:nth-child(2) { animation-delay: .035s; }
  body.ui [data-pane]:not(.hidden) > *:nth-child(3) { animation-delay: .07s; }
  body.ui [data-pane]:not(.hidden) > *:nth-child(4) { animation-delay: .1s; }
  body.ui [data-pane]:not(.hidden) > *:nth-child(n+5) { animation-delay: .13s; }
  :where(body.ui) .card { transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
}

/* Kennzahlen */
:where(body.ui) .kpi { border-radius: 22px; padding: 18px 20px; }
:where(body.ui) .kpi > small:first-child { text-transform: none; letter-spacing: 0; font-weight: 600; }
:where(body.ui) .kpi b { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.15rem); font-weight: 800; letter-spacing: -.04em; }

/* Befehlssuche (⌘K) */
.cmdk-btn { display: inline-flex; align-items: center; gap: 10px; min-width: 220px; justify-content: flex-start; color: var(--muted) !important; font-weight: 500 !important; }
.cmdk-btn kbd { margin-left: auto; font: 600 .72rem/1 Inter, system-ui; padding: 4px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
@media (max-width: 760px) { .cmdk-btn { min-width: 0; } .cmdk-btn .lbl, .cmdk-btn kbd { display: none; } }
dialog.cmdk { width: min(640px, calc(100vw - 24px)); padding: 0; margin-top: 12vh; overflow: hidden; border-radius: 26px; background: var(--glass-strong); backdrop-filter: saturate(180%) blur(28px); -webkit-backdrop-filter: saturate(180%) blur(28px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
dialog.cmdk::backdrop { background: rgb(10 10 14 / .35); backdrop-filter: blur(6px); }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cmdk-in .ico { width: 22px; height: 22px; color: var(--muted); }
.cmdk-in input { border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 1.1rem; padding: 6px 0; min-height: 40px; }
.cmdk-list { max-height: min(58vh, 520px); overflow-y: auto; padding: 8px; margin: 0; list-style: none; }
.cmdk-list small.grp { display: block; padding: 10px 12px 4px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; }
.cmdk-item .ico { width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: var(--surface-2); color: var(--muted); flex: none; }
.cmdk-item b { font-weight: 650; display: block; }
.cmdk-item span { color: var(--muted); font-size: .84rem; }
.cmdk-item.on { background: var(--primary-soft); }
.cmdk-item.on .ico { background: var(--grad); color: #fff; }
.cmdk-empty { padding: 26px; text-align: center; color: var(--muted); }
.cmdk-foot { display: flex; gap: 14px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.cmdk-foot kbd { font: 600 .7rem/1 Inter, system-ui; padding: 3px 5px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); }
.flash-target { animation: flashTarget 1.6s var(--ease); border-radius: 18px; }
@keyframes flashTarget { 0%, 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 45%, transparent); } }

/* Rückmeldung unten */
.ui-toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; z-index: 90; pointer-events: none;
  background: color-mix(in srgb, var(--text) 92%, transparent); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lg);
  transition: opacity .25s var(--ease), transform .35s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.ui-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 999px) { .ui-toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* Seitenkopf */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h2 { margin: 0; font-size: clamp(1.55rem, 1.15rem + 1.1vw, 2.1rem); font-weight: 780; letter-spacing: -.035em; }
.page-head p { margin: 4px 0 0; }

/* Segmentschalter */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { background: transparent; color: var(--muted); box-shadow: none; min-height: 38px; padding: 6px 14px; font-weight: 650; border-radius: 999px; }
.seg button:hover { background: var(--surface); color: var(--text); transform: none; filter: none; }
.seg button.on { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -8px var(--primary); }

/* Laden-Steuerung */
.ctl-hero { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 24px 26px; margin-bottom: 16px; position: relative; overflow: hidden; }
.ctl-hero::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 340px; height: 340px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ok) 22%, transparent), transparent); }
.ctl-hero.paused::after { background: radial-gradient(closest-side, color-mix(in srgb, var(--warn) 26%, transparent), transparent); }
.ctl-status { display: flex; gap: 16px; align-items: center; }
.ctl-status small { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }
.ctl-status h2 { margin: 2px 0 2px; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.ctl-status p { margin: 0; }
.ctl-orb { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 18%, transparent), 0 0 24px var(--ok); animation: livepulse 2s infinite; }
.ctl-hero.paused .ctl-orb { background: var(--warn); box-shadow: 0 0 0 6px color-mix(in srgb, var(--warn) 18%, transparent), 0 0 24px var(--warn); animation: none; }
.ctl-actions { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.ctl-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-bottom: 18px; }
.ctl-tile { display: grid; gap: 14px; align-content: space-between; padding: 18px; }
.ctl-tile-h { display: flex; gap: 12px; align-items: flex-start; }
.ctl-tile-h > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); flex: none; }
.ctl-tile h3 { margin: 0 0 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ctl-tile p { margin: 0; }
.ctl-tile > button { justify-self: start; }
.ctl-sub { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 4px 10px; }
.ctl-help { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
.ctl-q { padding: 0; }
.ctl-q summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.ctl-q summary::-webkit-details-marker { display: none; }
.ctl-q summary .ico { width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: var(--surface-2); color: var(--muted); flex: none; }
.ctl-q summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--muted); transition: transform .2s; }
.ctl-q[open] summary::after { transform: rotate(45deg); }
.ctl-q ol { margin: 0 18px 12px 38px; padding: 0; display: grid; gap: 6px; }
.ctl-q > button { margin: 0 18px 16px; }
.ctl-contact { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.ctl-contact .ico { width: 18px; height: 18px; }
/* Seitenleiste immer links über die volle Höhe, alles andere (Hinweise, Seiten) rechts daneben */
@media (min-width: 1000px) {
  #app > .tabs { grid-column: 1; grid-row: 1 / span 40; }
  #app > :not(.tabs) { grid-column: 2; min-width: 0; }
}
@media (min-width: 1000px) { body.ui main.wrap { max-width: 1320px; padding-left: 24px; padding-right: 24px; } body.ui .top .wrap { max-width: 1320px; padding-left: 24px; padding-right: 24px; } }

/* Einrichtung 2030: Fortschrittsring, Abschnitte als Zeitleiste, aktueller Schritt im Mittelpunkt */
.wiz-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 26px; align-items: center; padding: 26px 28px; position: relative; overflow: hidden; }
.wiz-hero::before { content: ""; position: absolute; inset: -60% auto auto -10%; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 16%, transparent), transparent); }
.wiz-ring-wrap { position: relative; width: 112px; height: 112px; grid-row: span 2; }
.wiz-ring { width: 112px; height: 112px; transform: rotate(-90deg); }
.wiz-ring circle { fill: none; stroke-width: 9; }
.wiz-ring-bg { stroke: var(--surface-2); }
.wiz-ring-fg { stroke: url(#wizg); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.wiz-ring-pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; }
.wiz-ring-pct small { font-size: .9rem; color: var(--muted); margin-left: 1px; }
.wiz-ring-pct { display: flex; align-items: center; justify-content: center; }
.wiz-eyebrow { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.wiz-hero-t h2 { margin: 4px 0 4px; font-size: clamp(1.4rem, 1.05rem + 1.1vw, 2rem); font-weight: 780; letter-spacing: -.035em; }
.wiz-hero-t p { margin: 0; }
.wiz-chips { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; position: relative; }
.wiz-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 14px 4px 5px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); box-shadow: none; font-weight: 650; font-size: .86rem; }
.wiz-chip:hover { background: var(--surface); color: var(--text); transform: none; filter: none; }
.wiz-chip-dot { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 99px; background: var(--surface); font-size: .74rem; font-weight: 750; color: var(--muted); }
.wiz-chip-dot .ico { width: 14px; height: 14px; }
.wiz-chip.done { color: var(--text); }
.wiz-chip.done .wiz-chip-dot { background: var(--ok); color: #fff; }
.wiz-chip.cur { background: var(--primary-soft); color: var(--text); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.wiz-chip.cur .wiz-chip-dot { background: var(--grad); color: #fff; }
.wiz-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; margin-top: 16px; align-items: start; }
.wiz-step { padding: 26px 28px; }
.wiz-step-h { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.wiz-step-ico { flex: none; width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 24px -12px var(--primary); }
.wiz-step-ico .ico { width: 26px; height: 26px; }
.wiz-step h2 { margin: 4px 0 0; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.7rem); font-weight: 780; letter-spacing: -.03em; }
.wiz-foot { border-top: 1px solid var(--line); }
.wiz-foot .ico { width: 18px; height: 18px; }
.wiz-side { display: grid; gap: 8px; position: sticky; top: 88px; }
.wiz-side-h { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.wiz-list { display: grid; gap: 6px; }
.wiz-li { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; min-height: 56px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-sm); text-align: left; font-weight: 600; justify-content: flex-start; }
.wiz-li:hover { background: var(--surface); transform: translateX(2px); filter: none; }
.wiz-li > span:last-child { display: grid; min-width: 0; }
.wiz-li b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz-li small { color: var(--muted); font-weight: 500; font-size: .76rem; }
.wiz-li-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.wiz-li-ico .ico { width: 19px; height: 19px; }
.wiz-li.done .wiz-li-ico { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
.wiz-li.skip { opacity: .7; }
.wiz-donelist { margin-top: 6px; }
.wiz-donelist summary { cursor: pointer; font-weight: 650; color: var(--muted); padding: 8px 6px; }
.wiz-done { position: relative; overflow: hidden; padding: 44px 24px; text-align: center; margin-top: 16px; }
.wiz-big { width: 76px; height: 76px; background: var(--grad); box-shadow: 0 18px 36px -16px var(--primary); }
.wiz-confetti i { position: absolute; top: -12px; left: calc(var(--i) * 4.2%); width: 8px; height: 14px; border-radius: 3px; opacity: 0;
  background: hsl(calc(var(--i) * 37) 85% 60%); animation: confetti 2.6s calc(var(--i) * 45ms) var(--ease) forwards; }
@keyframes confetti { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(360px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .wiz-confetti { display: none; } }
@media (max-width: 1100px) { .wiz-body { grid-template-columns: minmax(0, 1fr); } .wiz-side { position: static; } }
@media (max-width: 640px) {
  .wiz-hero { grid-template-columns: auto minmax(0, 1fr); padding: 20px; gap: 6px 16px; }
  .wiz-ring-wrap, .wiz-ring { width: 84px; height: 84px; } .wiz-ring-wrap { grid-row: auto; } .wiz-ring-pct { font-size: 1.3rem; }
  .wiz-chips { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 8px -20px 0; padding: 0 20px; }
  .wiz-chip { flex: none; }
  .wiz-step { padding: 20px; }
  .wiz-step-ico { width: 44px; height: 44px; border-radius: 14px; }
}
/* Kopfzeile am Handy: Name sichtbar, Shop und Anzeige über die Suche erreichbar */
@media (max-width: 640px) {
  body.ui .top #lnkShop, body.ui .top #lnkDisplay { display: none; }
  body.ui .top .wrap { gap: 6px; }
  body.ui .top .admin-title { min-width: 0; }
}
/* Feinschliff 2030: Bestellkarten, Schnellzugriff, Aufgaben, Balken */
body.ui .board .col .order { border-left: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
body.ui .board .col { background: color-mix(in srgb, var(--surface-2) 70%, transparent); border: 1px solid var(--line); border-radius: 26px; }
body.ui .quick { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); color: var(--text); font-weight: 650; }
body.ui .quick .ico { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
body.ui .quick:hover { background: var(--surface); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); filter: none; }
body.ui .todo-list li { border-left: 0; border-radius: 16px; background: var(--surface-2); padding: 12px 14px 12px 16px; position: relative; }
body.ui .todo-list li::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--info); }
body.ui .todo-list li.warn::before { background: var(--warn); }
body.ui .todo-list li.done::before { background: var(--ok); }
body.ui .wd-bars i, body.ui .bars .bar i { border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 70%, #fff), var(--primary)); }
body.ui #homeKpis .kpi > small:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ui .setup-bar { border-radius: 20px; background: var(--glass-strong); border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line)); box-shadow: var(--shadow-sm); }
/* Super-Admin: Suchfeld und Glocke auf der hellen Leiste */
body.ui .gsearch input { background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-sm); }
body.ui .gsearch input::placeholder { color: var(--muted); }
body.ui .gsearch input:focus { box-shadow: var(--ring); border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
body.ui .gpop { border-radius: 22px; background: var(--glass-strong); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); box-shadow: var(--shadow-lg); padding: 8px; }
body.ui .top img.logo-light, body.ui .top img.logo-dark { height: 26px; width: auto; }
/* Knopf wartet auf die Box: Kreisel statt Symbol */
.spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
button.busy { opacity: .85; cursor: progress; }

/* Ihr Paket (Preismodell 2) */
.paket-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; margin: 12px 0; }
.paket-grid > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2, rgba(127,127,127,.08)); }
.paket-rechte { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 4px 14px; margin: 0; }
.paket-rechte .off { color: var(--muted); }

/* Laden-Steuerung: Geräte-Check mit Ampel */
.ctl-check ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.ctl-check li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; }
.ctl-check li small { display: block; color: var(--muted); margin-top: 2px; }
.ctl-check .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--muted); }
.ctl-check .ok .dot { background: #1f9d55; }
.ctl-check .warn .dot { background: #e0a100; }
.ctl-check .bad .dot { background: #d93025; }
.ctl-check { margin-bottom: 16px; }

/* Aktions-Editor: Video für die TresenFix-Box mit Prüfliste und Fernseher-Vorschau */
.pv { display: grid; gap: 8px; }
.pv-lock { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2, rgba(127,127,127,.08)); }
.pv-lock small { color: var(--muted); }
.pv-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.pv-check li small { display: block; color: var(--muted); margin-left: 18px; }
.pv-check .ok { color: #1f9d55; } .pv-check .ok b { color: var(--text, inherit); }
.pv-check .bad { color: #d93025; } .pv-check .warn { color: var(--muted); }
.pv-tv { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; border: 6px solid #1a1a1a; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.pv-tv video { width: 100%; height: 100%; object-fit: cover; }
.pv-cap { position: absolute; inset: auto 0 0 0; padding: 14px 16px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.8)); display: grid; gap: 2px; }
.pv-cap span { justify-self: start; font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--primary); }
.pv-cap b { font-size: 1.2rem; }

/* Einrichtungsassistent, Überarbeitung 29.10.: Auswahlkacheln, Hinweise, Aktionscode, Marketing-Paket und Box im Assistenten */
.wiz-pick { display: grid; gap: 8px; }
.wiz-pick-i { display: grid; grid-template-columns: auto 40px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.wiz-pick-i:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.wiz-pick-i input { width: 20px; height: 20px; accent-color: var(--primary); }
.wiz-pick-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.wiz-pick-ic .ico { width: 22px; height: 22px; }
.wiz-pick-i b { display: block; }
.wiz-pick-i small { color: var(--muted); }
.wiz-hint { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--line) 45%, transparent); color: var(--muted); font-size: .92rem; transition: background .25s, color .25s; }
.wiz-hint .ico { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.wiz-hint.on { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--text); }
.wiz-hint.on .ico { color: var(--primary); }
.wiz-more summary { cursor: pointer; font-weight: 700; }
.wiz-more[open] summary { margin-bottom: 8px; }
.wiz-code { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.wiz-code-chip { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 4px 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: linear-gradient(120deg, var(--primary), var(--accent)); color: #fff; font-size: .85rem; font-weight: 700; animation: wizBlink 1.6s ease-in-out infinite; }
.wiz-code-chip .ico { width: 16px; height: 16px; }
.wiz-code-chip b { letter-spacing: .04em; }
.wiz-code input { max-width: 170px; }
.wiz-offer > div { min-width: 0; }
@media (max-width: 600px) { .wiz-code input { max-width: none; flex: 1 1 100%; } .wiz-offer button { width: 100%; } }
@keyframes wizBlink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 50% { opacity: .72; box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .wiz-code-chip { animation: none; } }
.wiz-mk { display: grid; gap: 12px; padding: 16px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); }
.wiz-mk.on { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--primary), var(--accent)) border-box; }
.wiz-mk-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.wiz-mk-h b { font-size: 1.1rem; }
.wiz-mk-p { font-weight: 800; font-size: 1.2rem; }
.wiz-mk-p small { font-weight: 600; color: var(--muted); font-size: .85rem; }
.wiz-mk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 8px; }
.wiz-mk-grid > span { display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; align-items: start; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--line) 40%, transparent); }
.wiz-mk-grid i { grid-row: span 2; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.wiz-mk-grid i .ico { width: 18px; height: 18px; }
.wiz-mk-grid small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.wiz-ways .wiz-way img { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.wiz-ways .wiz-way.info { cursor: default; }
.wiz-ways .wiz-way.info b { display: flex; gap: 8px; align-items: center; }
.wiz-ways .wiz-way.info .ico { width: 20px; height: 20px; color: var(--primary); }

/* Nicht gebucht bzw. nicht vorhanden: ausgeblendet, an der passenden Stelle genau ein Angebot (admin.js: hat, applyNeeds, upsellHtml) */
.need-off { display: none !important; }
.upsell { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--accent) 65%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.upsell .up-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.upsell .up-ic .ico { width: 22px; height: 22px; }
.upsell .grow { flex: 1 1 240px; display: grid; gap: 2px; }
.upsell small { color: var(--muted); }
.upsell .up-price { font-weight: 700; color: var(--text); }
body.no-kundengruppen #insTable th:nth-child(2), body.no-kundengruppen #insTable td:nth-child(2) { display: none; }

/* Treuekarte: Hinweis „Karte auf den Home-Bildschirm“ */
.home-box { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; padding: 14px 40px 14px 14px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); }
.home-box .hb-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.home-box .hb-ic .ico { width: 20px; height: 20px; }
.home-box .grow { display: grid; gap: 6px; }
.home-box small { color: var(--muted); }
.home-box .hb-steps { margin: 2px 0 0; padding-left: 20px; font-size: .9rem; display: grid; gap: 2px; }
.home-box button.small { justify-self: start; }
.home-box .hb-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.3rem; box-shadow: none; }

/* Treuekarte im eigenen Design (Marketing-Paket): Hintergrundbild unter einer Abdunklung, eigenes Stempelbild */
.wallet-card.has-bg { background: linear-gradient(160deg, color-mix(in srgb, var(--card) 78%, transparent), rgb(0 0 0 / .55)), var(--card-bg) center / cover, var(--card); }
.wallet-card .wc-stamps span img { width: 70%; height: 70%; object-fit: contain; }
.card-note { margin: 4px 0 0; font-weight: 700; }
.design-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.design-pick button { width: 44px; height: 44px; padding: 0; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); box-shadow: none; border: 2px solid transparent; }
.design-pick button.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.design-pick button .ico, .design-pick button img { width: 22px; height: 22px; object-fit: contain; }
.design-box { display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); }
.design-box .lockline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Treuekarte in Unterreitern: ausgeblendete Bereiche, Vorschau allein in voller Breite */
.tsub-off { display: none !important; }
#treueSubs { margin: 0 0 14px; }
.treue-grid:has(> .tsub-off) { grid-template-columns: 1fr; }
.wiz-ways .wiz-way.wiz-todo { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.wiz-mk-tv { padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--line) 40%, transparent); }
.wiz-mk-tv summary { cursor: pointer; display: flex; gap: 8px; align-items: center; }
.wiz-mk-tv summary .ico { width: 18px; height: 18px; color: var(--primary); }

/* Leistungen zum Antippen beim Stempeln */
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.svc-chips small { flex-basis: 100%; }
.svc-chip { min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); box-shadow: none; font-weight: 600; }
.svc-chip[aria-pressed="true"] { background: var(--brand, var(--primary)); color: #fff; border-color: transparent; }

/* Logo in der Kopfzeile (Shop, Treuekarte): Feld nur bei zu wenig Kontrast; breite Logos dürfen breiter werden */
.logo.has-img.logo-on-light { background: #fff; border-radius: 10px; padding: 4px 8px; }
.logo.has-img.logo-on-dark { background: #1c1c1e; border-radius: 10px; padding: 4px 8px; }
.logo.has-img.logo-wide { width: auto; max-width: min(180px, 46vw); height: 44px; }
.logo.has-img.logo-wide img { max-height: 36px; }

/* Treuekarte, Übersicht: 8 Kennzahlen in festen Reihen (4 bzw. 2 auf dem Handy), keine Einzelkachel in der letzten Reihe */
#treueKpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { #treueKpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* Bestellungen: Hinweis auf Vorbestellungen der nächsten Tage */
.upcoming { font-weight: 600; color: var(--primary); }
.upcoming .link-btn { background: none; border: 0; padding: 0 2px; min-height: 0; color: inherit; font: inherit; text-decoration: underline; box-shadow: none; cursor: pointer; }

/* Abrechnung: Inhalt des Marketing-Pakets als kurze Liste statt Absatz */
.pk-feat { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.pk-feat li { display: flex; align-items: center; gap: 6px; }
.pk-feat .ico { width: 16px; height: 16px; color: var(--primary); }

/* Leistungen am Laden-Tablet: Hover nicht wie „ausgewählt“ aussehen lassen */
.svc-chip:not([aria-pressed="true"]):hover { background: var(--surface); color: var(--text); filter: none; transform: none; }

/* Anzeige: Logo bei zu wenig Kontrast auf hellem bzw. dunklem Feld */
.disp-logo { display: inline-flex; align-items: center; }
.disp-logo.logo-on-light { background: #fff; border-radius: 12px; padding: 6px 12px; }
.disp-logo.logo-on-dark { background: #1c1c1e; border-radius: 12px; padding: 6px 12px; }

/* Abrechnung → Ihr Paket: Monatsbetrag mit Zusammensetzung, Provisionsdeckel, drei Bausteine, Freischaltungen als Chips */
#paketBox { display: grid; gap: 16px; }
.pk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pk-head h3 { margin: 0; font-size: 1.35rem; }
.pk-pill { display: inline-flex; align-items: center; white-space: nowrap; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.pk-pill.ok { background: var(--ok-soft); color: var(--ok); }
.pk-pill.warn { background: var(--warn-soft); color: var(--warn); }
.pk-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 720px) { .pk-hero { grid-template-columns: 1fr; } }
.pk-total, .pk-cap { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: var(--radius); background: var(--surface-2); min-width: 0; }
.pk-total > small, .pk-cap > small { color: var(--muted); }
.pk-total > b { font-size: 2rem; line-height: 1.1; letter-spacing: -.02em; }
.pk-cap > b { font-size: 1.25rem; }
.pk-cap > b .muted { font-size: .9rem; font-weight: 500; }
.pk-bar { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); }
.pk-bar i { display: block; min-width: 4px; }
.pk-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--muted); }
.pk-legend li { display: flex; align-items: center; gap: 6px; }
.pk-legend i { width: 10px; height: 10px; border-radius: 3px; }
.pk-legend b { color: var(--text); font-weight: 600; }
.pk-meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pk-meter i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.pk-mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.pk-mod { display: grid; gap: 10px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.pk-mod p { margin: 0; }
.pk-mod > button { justify-self: start; }
.pk-mod-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pk-mod-h b { white-space: nowrap; }
.pk-mod-h > div { display: grid; flex: 1 0 150px; min-width: 0; }
.pk-mod-h small { color: var(--muted); }
.pk-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); flex: none; }
.pk-ic .ico { width: 20px; height: 20px; }
.pk-mk.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.pk-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.pk-ticks li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.pk-ticks li.on { color: var(--text); }
.pk-ticks .ico { width: 16px; height: 16px; color: var(--primary); flex: none; }
.pk-ok { display: flex; gap: 6px; align-items: flex-start; }
.pk-ok .ico { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 2px; }
.pk-boxorder { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.pk-boxorder:first-child { border-top: 0; padding-top: 0; }
.pk-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; font-size: .78rem; }
.pk-steps li { flex: 1; text-align: center; padding-top: 8px; border-top: 4px solid var(--line); color: var(--muted); }
.pk-steps li.done { border-color: var(--ok); color: var(--text); font-weight: 600; }
.pk-sub { margin: 0; }
.pk-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pk-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: .85rem; background: var(--surface-2); }
.pk-chips li.on .ico { width: 14px; height: 14px; color: var(--ok); }
.pk-chips li.off { color: var(--muted); background: transparent; border: 1px dashed var(--line); }
.pk-chips small { color: var(--muted); }
.pk-chips a { font-weight: 600; }
.pk-rechte { display: grid; gap: 8px; }
.pk-rechte .pk-sub { font-size: .9rem; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* Marketing: Wirkungsbericht und Automatiken */
.mk-report { display: grid; gap: 12px; margin-bottom: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), var(--surface)); }
.mk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; margin-top: 8px; }
.mk-kpi { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.mk-kpi b { font-size: 1.6rem; line-height: 1.1; letter-spacing: -.02em; }
.mk-kpi span { font-weight: 600; font-size: .9rem; }
.mk-kpi small { color: var(--muted); font-size: .78rem; }
.mk-kpi.zero b { color: var(--muted); }
.mk-tip { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: var(--radius); background: var(--info-soft); }
.mk-tip .ico { width: 18px; height: 18px; color: var(--info); flex: none; margin-top: 2px; }
.mk-month button { min-height: 32px; padding: 4px 12px; }
.mk-autos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.mk-auto { display: grid; gap: 10px; align-content: start; }
.mk-auto.on { box-shadow: 0 0 0 2px var(--primary) inset; }
.mk-auto-h { display: flex; align-items: center; gap: 10px; }
.mk-auto-h .check { margin: 0; }
details.bday { margin: 14px 0 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
details.bday summary { font-weight: 600; cursor: pointer; }
.mk-own { margin-top: 12px; max-width: 640px; }
.mk-imgs { margin-top: 10px; display: grid; gap: 6px; min-width: 0; }
.mk-imggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.mk-imgs .mk-noimg { width: auto; height: auto; padding: 4px 12px; background: var(--surface-2); }
.mk-imgs .mk-imggrid button { width: 100%; aspect-ratio: 4 / 3; height: auto;
}
.mk-imgs button { width: 64px; height: 48px; padding: 0; border-radius: 10px; background: var(--surface-2) center / cover no-repeat; border: 2px solid transparent; box-shadow: none; color: var(--muted); font-size: .75rem; min-height: 0; }
.mk-imgs button.on { border-color: var(--primary); }
.mk-social-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 18px; align-items: start; }
@media (max-width: 760px) { .mk-social-grid { grid-template-columns: 1fr; } }
.mk-canvas { width: 100%; max-width: 320px; border-radius: 14px; border: 1px solid var(--line); background: #fff; justify-self: center; }
.mk-canvas.story { max-width: 220px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.mk-now { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--line)); }
.mk-now > .ico { width: 26px; height: 26px; color: var(--primary); flex: none; }
.mk-now .grow { display: grid; gap: 2px; }
.mk-camps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; margin-bottom: 14px; }
.mk-camp { display: grid; gap: 8px; align-content: start; }
.mk-camp.open { grid-column: 1 / -1; box-shadow: 0 0 0 2px var(--primary) inset; }
.mk-camp-h { display: flex; align-items: center; gap: 10px; } .mk-camp-h .grow { display: grid; }
.mk-camp-head { margin: 0; font-weight: 600; }
.mk-done { margin-bottom: 14px; background: var(--ok-soft); } .mk-done h3 { display: flex; gap: 8px; align-items: center; } .mk-done .ico { color: var(--ok); }
.mk-next { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-tpls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.fb-tpl { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.gc-amounts { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.gc-amounts button { min-width: 84px; background: var(--surface-2); color: var(--text); box-shadow: none; border: 2px solid transparent; }
.gc-amounts button.on { border-color: var(--primary); background: var(--primary-soft); }
.gc-own { display: grid; font-size: .85rem; color: var(--muted); max-width: 140px; }
.mk-gifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 14px; margin-bottom: 14px; }
.mk-gifts .form { align-content: start; }
.gc-scan .gc-bal b { font-size: 2rem; }
.gift-link { margin-top: 10px; }
.mk-bgs { margin-top: 12px; display: grid; gap: 6px; }
.mk-bggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.mk-bggrid button { aspect-ratio: 2 / 3; padding: 0; min-height: 0; border-radius: 10px; background: #f3f1ef center / cover no-repeat; border: 2px solid var(--line); box-shadow: none; display: flex; align-items: flex-end; justify-content: center; }
.mk-bggrid button span { font-size: .72rem; font-weight: 650; color: #2b2522; background: rgba(255,255,255,.85); border-radius: 999px; padding: 2px 8px; margin-bottom: 6px; }
.mk-bggrid button.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
/* Offene Sofortrechnung (Box, Einrichtung) über der Zahlungsart */
.pay-open { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; margin: 0 0 14px; border-radius: 12px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.pay-open > div:first-child { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.pay-open small { color: var(--muted); }
/* Übersprungene Schritte im Assistenten (vor dem Livegang und am Ende) */
.wiz-skipped { text-align: left; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border-left: 4px solid #d98b1f; background: color-mix(in srgb, #f5b700 10%, var(--surface)); }
.wiz-skipped p { margin: 4px 0 0; }
.wiz-skipped .row { flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wiz-done .wiz-skipped { max-width: 520px; margin: 14px auto 0; }
