/* ==========================================================================
   Öffentliche Seite (Farben der Marke: restaurant.config.php)
   Schriften lokal eingebunden (DSGVO: keine Verbindung zu Google).
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-v20-latin_latin-ext-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-v20-latin_latin-ext-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-v20-latin_latin-ext-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-v20-latin_latin-ext-700.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/oswald-v57-latin_latin-ext-500.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/oswald-v57-latin_latin-ext-700.woff2") format("woff2"); }

:root {
    color-scheme: light;
    --bg: #faf6f0;
    --surface: #ffffff;
    --surface-2: #f5efe6;
    --ink: #1f1b16;
    --ink-2: #4a423a;
    --muted: #7a7065;
    --line: #ebe2d5;
    --line-soft: #f0e8dc;
    --line-strong: #ddd0bf;
    --field-line: #ddd2c3;
    --brand: #c8291c;
    --brand-600: #a82015;
    --brand-hover: #a82015;
    --brand-50: #fdeeec;
    --link: #c8291c;
    --accent: #f2a516;
    /* Markenfarben werden zur Laufzeit aus restaurant.config.php überschrieben (Brand::styleTag) */
    --brand-rgb: 200, 41, 28;
    --accent-rgb: 242, 165, 22;
    --on-brand: #fff;
    --on-accent: #17130f;
    --promo-1: #d93a24;
    --promo-2: #b51f12;
    --promo-3: #8e170c;
    /* Fehler/Storno: immer rot – unabhängig von der Markenfarbe */
    --error: #b42318;
    --error-50: #fdeceb;
    --dark: #17130f;
    --dark-2: #231d17;
    --inverse-bg: #17130f;
    --inverse-ink: #ffffff;
    --ok: #1d7f46;
    --ok-50: #e8f6ee;
    --warn: #a86b12;
    --warn-50: #fff5e0;
    --warn-ink: #6b4a10;
    --warn-line: #f1d9a6;
    --gold-50: #fff1d6;
    --gold-ink: #8a5800;
    --info-50: #e6efff;
    --info-ink: #1f4fa8;
    --muted-badge: #ece7e0;
    --empty-icon: #d6cabb;
    --promo-line: #f0e2c8;
    --coupon-line: #cdbfae;
    --bank-bg: #fffaf0;
    --header-bg: rgba(255, 255, 255, .92);
    --glass: rgba(255, 255, 255, .92);
    --focus-ring: rgba(31, 27, 22, .07);
    --overlay: rgba(23, 19, 15, .55);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%234a423a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(31, 27, 22, .06), 0 1px 3px rgba(31, 27, 22, .05);
    --shadow-md: 0 4px 12px rgba(31, 27, 22, .08), 0 2px 4px rgba(31, 27, 22, .05);
    --shadow-lg: 0 20px 50px rgba(31, 27, 22, .18);
    --header-h: 68px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
}

/* Dunkles Farbschema: automatisch nach Geräteeinstellung oder per Umschalter (data-theme) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #110e0b; --surface: #1b1713; --surface-2: #26201a; --ink: #f4eee7; --ink-2: #d6ccc0; --muted: #a39889;
        --line: #342c24; --line-soft: #2c251e; --line-strong: #4a4036; --field-line: #4a4036;
        --brand: #d23a25; --brand-600: #ff8a75; --brand-hover: #e14a34; --brand-50: rgba(232, 74, 52, .16); --link: #ff8a75; --brand-rgb: 210, 58, 37; --error: #ff8a75; --error-50: rgba(255, 112, 96, .14);
        --dark: #0b0907; --dark-2: #1c1712; --inverse-bg: #f4eee7; --inverse-ink: #17130f;
        --ok: #4fd08a; --ok-50: rgba(79, 208, 138, .13); --warn: #e8ad4a; --warn-50: rgba(232, 173, 74, .12); --warn-ink: #f3cf8f; --warn-line: rgba(232, 173, 74, .35);
        --gold-50: rgba(var(--accent-rgb), .16); --gold-ink: #f5c264; --info-50: rgba(122, 167, 255, .15); --info-ink: #a9c4ff;
        --muted-badge: #2e2721; --empty-icon: #4a4036; --promo-line: #3a3026; --coupon-line: #5a4d40; --bank-bg: rgba(var(--accent-rgb), .06);
        --header-bg: rgba(22, 18, 15, .88); --glass: rgba(27, 23, 19, .9); --focus-ring: rgba(255, 255, 255, .1); --overlay: rgba(0, 0, 0, .65);
        --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23d6ccc0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 6px 16px rgba(0, 0, 0, .45); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #110e0b; --surface: #1b1713; --surface-2: #26201a; --ink: #f4eee7; --ink-2: #d6ccc0; --muted: #a39889;
    --line: #342c24; --line-soft: #2c251e; --line-strong: #4a4036; --field-line: #4a4036;
    --brand: #d23a25; --brand-600: #ff8a75; --brand-hover: #e14a34; --brand-50: rgba(232, 74, 52, .16); --link: #ff8a75; --brand-rgb: 210, 58, 37; --error: #ff8a75; --error-50: rgba(255, 112, 96, .14);
    --dark: #0b0907; --dark-2: #1c1712; --inverse-bg: #f4eee7; --inverse-ink: #17130f;
    --ok: #4fd08a; --ok-50: rgba(79, 208, 138, .13); --warn: #e8ad4a; --warn-50: rgba(232, 173, 74, .12); --warn-ink: #f3cf8f; --warn-line: rgba(232, 173, 74, .35);
    --gold-50: rgba(var(--accent-rgb), .16); --gold-ink: #f5c264; --info-50: rgba(122, 167, 255, .15); --info-ink: #a9c4ff;
    --muted-badge: #2e2721; --empty-icon: #4a4036; --promo-line: #3a3026; --coupon-line: #5a4d40; --bank-bg: rgba(var(--accent-rgb), .06);
    --header-bg: rgba(22, 18, 15, .88); --glass: rgba(27, 23, 19, .9); --focus-ring: rgba(255, 255, 255, .1); --overlay: rgba(0, 0, 0, .65);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23d6ccc0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 6px 16px rgba(0, 0, 0, .45); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
}
/* Sanfter Übergang beim Umschalten */
.theme-switching body, .theme-switching body * { transition: background-color .25s, border-color .25s, color .25s !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-600); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { flex-shrink: 0; vertical-align: middle; }
.center { text-align: center; }
.small-print { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* ---------------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2; transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px rgba(var(--brand-rgb), .28); }
.btn--primary:hover:not(:disabled) { background: var(--brand-hover); color: var(--on-brand); }
.btn--outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn--lg { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 24px; line-height: 1; color: var(--ink); }
.icon-btn:hover { background: var(--line); }

/* ---------------------------------------------------------------- Header */
.announcement { background: var(--accent); color: var(--dark); text-align: center; font-weight: 600; font-size: 14px; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 40px; height: 40px; border-radius: 11px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.brand__tagline { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--brand); }
.site-nav__phone { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); }
.cart-button { position: relative; display: none; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--inverse-bg); color: var(--inverse-ink); font-weight: 600; }
.cart-button__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; color: #fff; background:
    radial-gradient(700px 420px at 85% 40%, rgba(var(--accent-rgb), .28), transparent 65%),
    radial-gradient(600px 400px at 70% 110%, rgba(var(--brand-rgb), .45), transparent 70%),
    linear-gradient(160deg, var(--dark-2), var(--dark)); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
.hero__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(36px, 5.2vw, 62px); letter-spacing: .01em; line-height: 1.04; margin: 18px 0 16px; text-wrap: balance; }
.hero__text { font-size: 18px; color: rgba(255, 255, 255, .78); max-width: 34em; margin: 0 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__notice { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(var(--accent-rgb), .15); border: 1px solid rgba(var(--accent-rgb), .4); color: #ffe2a8; max-width: 34em; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 34px 0 0; color: rgba(255, 255, 255, .8); font-size: 14px; }
.hero__facts li { display: flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); line-height: 1.35; }
.hero__facts .icon { color: var(--accent); }
.hero__facts strong { color: #fff; }
.hero__media { display: grid; place-items: center; }
.hero__plate { width: min(440px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 12px rgba(255, 255, 255, .04); animation: spin 120s linear infinite; }
.hero__plate img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.38); }
.hero__photo { width: 100%; max-height: 460px; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
@keyframes spin { to { transform: rotate(360deg); } }

.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.status-chip__dot { width: 9px; height: 9px; border-radius: 50%; background: #9a9086; }
.status-chip.is-open .status-chip__dot { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); }
.status-chip.is-closed .status-chip__dot { background: #ff8a65; }

/* ---------------------------------------------------------------- Shop-Layout */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 32px; align-items: start; padding-top: 32px; padding-bottom: 64px; }
.shop__main { min-width: 0; }

.catnav { position: sticky; top: var(--header-h); z-index: 30; display: flex; flex-direction: column; gap: 12px; padding: 14px 0 12px; margin-bottom: 8px; background: var(--bg); }
.catnav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.catnav__search { position: relative; display: flex; align-items: center; }
.catnav__search .icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.catnav__search input { width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.catnav__search input:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px var(--focus-ring); }
.catnav__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 2px; }
.catnav__list::-webkit-scrollbar { display: none; }
.catnav__link { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); transition: background .15s, color .15s, border-color .15s; }
.catnav__link:hover { color: var(--ink); border-color: var(--ink-2); }
.catnav__link.is-active { background: var(--inverse-bg); color: var(--inverse-ink); border-color: var(--inverse-bg); }

.menu-section { padding-top: 26px; scroll-margin-top: calc(var(--header-h) + 130px); }
.menu-section__head h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 28px; letter-spacing: .02em; margin: 0; }
.section-title { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; letter-spacing: .03em; margin: 0; }
.menu-section__head p { margin: 4px 0 0; color: var(--muted); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-top: 16px; }
.empty-note { padding: 40px 0; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- Artikelkarte */
.item-card { position: relative; display: flex; gap: 16px; min-height: 140px; padding: 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s, border-color .2s; }
.item-card:hover:not(.is-sold-out) { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }
.item-card__hit { position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; background: transparent; border-radius: inherit; }
.item-card__hit:disabled { cursor: not-allowed; }
.item-card__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.item-card__title { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 4px; }
.item-card__no { display: inline-block; min-width: 24px; margin-right: 6px; padding: 1px 5px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 600; text-align: center; vertical-align: 2px; }
.item-card__desc { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; }
.item-card__price { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.item-card__media { position: relative; flex-shrink: 0; width: 116px; height: 116px; align-self: center; }
.item-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.item-card__add { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--brand); font-size: 24px; font-weight: 500; line-height: 1; box-shadow: 0 4px 12px rgba(31, 27, 22, .18); transition: background .15s, color .15s, transform .15s; }
.item-card:hover .item-card__add { background: var(--brand); color: var(--on-brand); transform: scale(1.06); }
.item-card.is-sold-out { opacity: .6; }
.item-card.is-sold-out .item-card__media img { filter: grayscale(1); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 0; }
.tag, .badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.tag--beliebt { background: var(--gold-50); color: var(--gold-ink); }
.tag--neu { background: var(--info-50); color: var(--info-ink); }
.tag--vegetarisch, .tag--vegan { background: var(--ok-50); color: var(--ok); }
.tag--scharf { background: var(--error-50); color: var(--error); }
.badge--muted { background: var(--muted-badge); color: var(--muted); }

/* ---------------------------------------------------------------- Warenkorb */
.cart { position: sticky; top: calc(var(--header-h) + 20px); }
.cart__panel { display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h) - 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.cart__head h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; letter-spacing: .02em; margin: 0; }
.cart__close { display: none; }
.cart__body { flex: 1; overflow-y: auto; padding: 4px 20px; overscroll-behavior: contain; }
.cart__empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 10px 34px; color: var(--muted); }
.cart__empty .icon { color: var(--empty-icon); margin-bottom: 8px; }
.cart__empty p { margin: 0; }
.cart__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.cart__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; }
.cart__row--total { font-size: 18px; padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--line); }
.cart__hint { font-size: 13px; color: var(--muted); margin: 8px 0 14px; }
.cart__foot .btn { margin-top: 12px; }

.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line__name { font-weight: 600; font-size: 15px; }
.cart-line__detail { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin-top: -2px; }
.cart-line__price { font-weight: 600; white-space: nowrap; }
.cart-line__controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.cart-line.is-invalid { opacity: .7; }
.cart-line__warn { grid-column: 1 / -1; font-size: 13px; color: var(--brand-600); font-weight: 600; }
.link-btn { border: 0; background: none; padding: 4px 0; color: var(--muted); font-size: 13px; text-decoration: underline; }
.link-btn:hover { color: var(--brand); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty__btn { width: 36px; height: 36px; border: 0; background: transparent; font-size: 20px; line-height: 1; border-radius: 50%; color: var(--ink); }
.qty__btn:hover { background: var(--surface-2); }
.qty__value { min-width: 28px; text-align: center; font-weight: 700; }
.qty--sm .qty__btn { width: 30px; height: 30px; font-size: 18px; }

.cart-backdrop { position: fixed; inset: 0; z-index: 59; background: var(--overlay); }
.mobile-cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: none; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 16px; box-shadow: 0 12px 30px rgba(var(--brand-rgb), .4); }
.mobile-cart-bar strong { margin-left: auto; }
.mobile-cart-bar__count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; background: rgba(0, 0, 0, .2); font-size: 14px; }

/* ---------------------------------------------------------------- Infos */
.info { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0; }
.info__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.info-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.info-card h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; font-size: 22px; }
.info-card h2 .icon { color: var(--brand); }
.info-card__address { margin: 0 0 18px; }
.info-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.info-card__note { margin: 12px 0 0; font-size: 14px; color: var(--brand-600); font-weight: 600; }
.hours, .zones { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td, .zones th, .zones td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hours th { font-weight: 500; color: var(--ink-2); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--ink); }
.zones th { font-size: 13px; color: var(--muted); font-weight: 600; }
.zones td + td, .zones th + th { text-align: right; padding-left: 10px; white-space: nowrap; }
.zones small { display: block; color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .72); padding: 40px 0 24px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer__brand { font-family: var(--font-display); text-transform: uppercase; color: #fff; font-size: 20px; letter-spacing: .03em; margin-bottom: 6px; }
.site-footer p { margin: 4px 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.site-footer__links a { text-decoration: none; font-weight: 600; }
.site-footer__copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------------------------------------------------------------- Artikel-Dialog */
.item-dialog { width: min(560px, calc(100% - 32px)); max-height: min(88vh, 860px); padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.item-dialog[open] { display: flex; flex-direction: column; animation: dialog-in .2s ease-out; }
.item-dialog::backdrop { background: rgba(10, 8, 6, .62); backdrop-filter: blur(2px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
/* flex: 1 1 auto statt flex: 1 – Safari/iOS lässt das Fenster sonst auf 0 px Höhe zusammenfallen (Dialog hat keine feste Höhe) */
.item-dialog__form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; position: relative; }
.item-dialog__media { flex-shrink: 0; height: 220px; background: var(--surface-2); }
.item-dialog__media img { width: 100%; height: 100%; object-fit: cover; }
.item-dialog__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--glass); box-shadow: var(--shadow-sm); }
.item-dialog__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 22px 24px 8px; overscroll-behavior: contain; }
.item-dialog__body h2 { font-size: 24px; margin-bottom: 6px; }
.item-dialog__desc { margin: 0 0 6px; color: var(--ink-2); }
.item-dialog__allergens { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.item-dialog__foot { display: flex; gap: 12px; align-items: center; padding: 14px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.item-dialog__add { flex: 1; justify-content: space-between; }

.opt-group { margin: 20px 0 0; padding: 0; border: 0; }
.opt-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; padding: 0; margin-bottom: 8px; }
.opt-group__name { font-weight: 700; font-size: 16px; }
.opt-group__hint { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.opt-group__hint.is-required { background: var(--brand-50); color: var(--brand-600); }
.opt-group.has-error .opt-group__hint { background: var(--error); color: #fff; }
.opt { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex-shrink: 0; }
.opt__name { flex: 1; }
.opt__price { color: var(--muted); font-size: 14px; white-space: nowrap; }
.opt.is-disabled { opacity: .45; cursor: not-allowed; }

/* ---------------------------------------------------------------- Formulare */
.field { display: flex; flex-direction: column; gap: 6px; margin: 16px 0 0; min-width: 0; }
.field__label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.field__label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--surface); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px var(--focus-ring); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); box-shadow: 0 0 0 3px var(--error-50); }
.field__error, .form-error { color: var(--error); font-size: 14px; font-weight: 600; margin: 4px 0 0; }
.form-error { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--error-50); }
.form-error ul { margin: 0; padding-left: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid--nested { margin: 0; }
.field--full { grid-column: 1 / -1; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- Kasse */
.page-title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(30px, 4vw, 42px); letter-spacing: .02em; margin: 8px 0 24px; }
.back-link { display: inline-block; margin-top: 28px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.checkout { padding-bottom: 64px; }
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; align-items: start; }
.checkout__main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.checkout__empty { padding: 48px 20px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel { margin: 0; padding: 22px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.checkout__summary { align-self: stretch; }
.panel--sticky { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.panel__title { display: flex; align-items: center; gap: 10px; padding: 0; font-size: 19px; font-weight: 700; margin: 0 0 4px; float: left; width: 100%; }
.panel__title ~ * { clear: both; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--inverse-bg); color: var(--inverse-ink); font-size: 14px; }
.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.segmented__option { position: relative; cursor: pointer; }
.segmented__option input { position: absolute; opacity: 0; inset: 0; }
.segmented__option > span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; transition: border-color .15s, background .15s; }
.segmented__option .icon { grid-row: span 2; color: var(--muted); }
.segmented__option small { color: var(--muted); }
.segmented__option input:checked + span { border-color: var(--brand); background: var(--brand-50); }
.segmented__option input:checked + span .icon { color: var(--brand); }
.segmented__option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.choice__text { display: flex; flex-direction: column; }
.choice__text small { color: var(--muted); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pay-badges span { font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.test-hint { margin: 8px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--warn-50); border: 1px dashed var(--warn-line); color: var(--warn-ink); font-size: 13px; }
.redirect-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.status-hero__icon--wait { background: var(--surface-2); color: var(--ink-2); }
.spinner { width: 34px; height: 34px; border: 4px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .9s linear infinite; }
.sim-pay { max-width: 460px; margin: 40px auto; text-align: center; }
.sim-pay__amount { font-family: var(--font-display); font-size: 44px; margin: 6px 0 18px; }
.sim-pay__actions { display: flex; flex-direction: column; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.zone-info { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; background: var(--ok-50); color: var(--ok); font-weight: 600; }
.zone-info.is-error { background: var(--error-50); color: var(--error); }
.summary-lines { list-style: none; padding: 0; margin: 10px 0 0; }
.summary-line { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary-line__qty { font-weight: 700; color: var(--brand); min-width: 26px; }
.summary-line__main { display: flex; flex-direction: column; min-width: 0; }
.summary-line__main small { color: var(--muted); font-size: 13px; }
.summary-line__price { font-weight: 600; white-space: nowrap; }
.summary-totals { margin-top: 12px; }
.min-order-hint { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-50); color: var(--warn); font-size: 14px; font-weight: 600; }
.notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; }
.notice p { margin: 4px 0 0; }
.notice--warn { background: var(--warn-50); border: 1px solid var(--warn-line); color: var(--warn-ink); }

/* ---------------------------------------------------------------- Bestellstatus */
.order-status { padding: 32px 20px 64px; max-width: 980px; }
.status-hero { text-align: center; padding: 28px 10px 8px; }
.status-hero__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ok-50); color: var(--ok); font-size: 40px; margin-bottom: 14px; }
.status-hero.is-cancelled .status-hero__icon { background: var(--error-50); color: var(--error); }
.status-hero__no { margin: 0; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.status-hero h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(28px, 4vw, 40px); margin: 6px 0 8px; }
.status-hero p { margin: 0 auto; max-width: 36em; color: var(--ink-2); font-size: 17px; }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 32px 0; counter-reset: s; }
.progress__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-align: center; }
.progress__step::before { content: ""; position: absolute; top: 10px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.progress__step:first-child::before { display: none; }
.progress__dot { position: relative; z-index: 1; width: 23px; height: 23px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); }
.progress__step.is-done, .progress__step.is-current { color: var(--ink); }
.progress__step.is-done::before, .progress__step.is-current::before { background: var(--ok); }
.progress__step.is-done .progress__dot { background: var(--ok); border-color: var(--ok); }
.progress__step.is-current .progress__dot { border-color: var(--ok); box-shadow: 0 0 0 6px rgba(29, 127, 70, .15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(29, 127, 70, 0); } }
.order-status__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-bottom: 28px; }
.bank-box { margin-bottom: 20px; border-color: var(--warn-line); background: var(--bank-bg); }
.bank-details, .details { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 12px 0 0; }
.bank-details dt, .details dt { color: var(--muted); font-size: 14px; }
.bank-details dd, .details dd { margin: 0; font-weight: 600; word-break: break-word; }
.ok-text { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; }

/* ---------------------------------------------------------------- Rechtstexte */
.legal { max-width: 820px; padding-bottom: 64px; }
.legal__body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.legal__body h2 { font-size: 20px; margin-top: 1.4em; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { color: var(--ink-2); }

/* ---------------------------------------------------------------- Toast */
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 80; transform: translateX(-50%); padding: 12px 20px; border-radius: 999px; background: var(--inverse-bg); color: var(--inverse-ink); font-weight: 600; box-shadow: var(--shadow-lg); animation: toast-in .25s ease-out; max-width: calc(100% - 32px); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1099px) {
    .shop { grid-template-columns: 1fr; }
    .cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(420px, 100%); transform: translateX(105%); transition: transform .25s ease; }
    .cart.is-open { transform: none; }
    .cart__panel { height: 100%; max-height: none; border-radius: 0; border: 0; }
    .cart__close { display: inline-grid; }
    .cart-button { display: inline-flex; }
    .mobile-cart-bar { display: flex; }
    .page-home .site-footer { padding-bottom: 100px; }
    .checkout__grid { grid-template-columns: 1fr; }
    .panel--sticky { position: static; max-height: none; overflow: visible; }
}

@media (max-width: 860px) {
    .site-nav a:not(.site-nav__phone) { display: none; }
    /* Mobiler Hero: zentriert, kompakte Illustration mit Abstand zum Header */
    .hero__inner { grid-template-columns: 1fr; gap: 18px; padding-top: 32px; padding-bottom: 40px; text-align: center; }
    .hero__media { order: -1; }
    .hero__plate { width: 168px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 8px rgba(255, 255, 255, .04); }
    .hero__photo { max-height: 240px; border-radius: 20px; }
    .hero__title { margin: 14px 0 12px; }
    .hero__text { margin-left: auto; margin-right: auto; }
    .hero__actions, .hero__facts { justify-content: center; }
    .hero__notice { margin-left: auto; margin-right: auto; }
    .order-status__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    :root { --header-h: 60px; }
    .container { padding: 0 16px; }
    .brand__name { font-size: 18px; }
    .brand__logo { width: 36px; height: 36px; }
    .site-nav__phone span { display: none; }
    .site-nav__phone { padding: 10px; }
    .cart-button__label { display: none; }
    .cart-button { padding: 0 14px; }
    .hero__inner { padding-top: 24px; padding-bottom: 32px; gap: 14px; }
    .hero__plate { width: 150px; }
    .hero__title { font-size: clamp(30px, 9vw, 40px); }
    .hero__text { font-size: 15.5px; margin-bottom: 22px; }
    .hero__actions { gap: 10px; }
    .hero__actions .btn { flex: 1 1 100%; min-height: 50px; }
    .hero__facts { gap: 8px; margin-top: 22px; font-size: 13.5px; }
    .hero__facts { display: grid; grid-template-columns: 1fr 1fr; }
    .hero__facts li { justify-content: flex-start; padding: 9px 12px; text-align: left; line-height: 1.3; }
    .hero__facts li strong { display: block; }
    .hero__facts .hero__fact--wide, .hero__facts li:first-child:nth-last-child(2) { grid-column: 1 / -1; }
    /* Aktionen: Karten bündig mit dem Seitenrand, nächste Karte angeschnitten (zeigt: wischen) */
    .promos { padding-top: 28px; }
    .promos__list { scroll-padding-inline: 16px; gap: 12px; }
    .promo-card { width: 82vw; padding: 16px 18px; }
    .section-title { font-size: 20px; }
    /* Kategorie-Leiste: nur die Chips laufen mit, die Suche scrollt weg (spart Platz) */
    .catnav { top: calc(var(--header-h) - 60px); }
    .catnav__list { margin: 0 -16px; padding: 0 16px 2px; scroll-padding-inline: 16px; }
    .menu-section { scroll-margin-top: calc(var(--header-h) + 76px); }
    .menu-grid { grid-template-columns: 1fr; gap: 10px; }
    .item-card { padding: 14px; gap: 14px; min-height: 0; border-radius: 16px; }
    .item-card__media { width: 100px; height: 100px; }
    .menu-section__head h2 { font-size: 25px; }
    .form-grid { grid-template-columns: 1fr; }
    .panel { padding: 18px 16px 20px; }
    .item-dialog { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
    .item-dialog__media { height: 180px; }
    .item-dialog__body { padding: 18px 18px 8px; }
    .item-dialog__foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
    .item-dialog__add { padding: 12px 18px; }
    .progress { font-size: 12px; }
    .progress__step { font-size: 12px; }
    .legal__body { padding: 20px; }
    .info { padding: 40px 0; }
}

/* ==========================================================================
   Auswahlfelder (einheitlich gestaltet statt Browser-Standard)
   ========================================================================== */
.field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    cursor: pointer;
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}
.field select:disabled { cursor: not-allowed; opacity: .6; background-color: var(--surface-2); }
.field select::-ms-expand { display: none; }

/* ==========================================================================
   Aktionen & Preise
   ========================================================================== */
.promos { padding: 36px 0 8px; }
.promos__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
/* Innenabstand der Liste = Seitenrand; scroll-padding verhindert, dass Karten beim Einrasten am Rand kleben */
.promos__list { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; padding-top: 14px; padding-bottom: 34px; margin-top: -10px; margin-bottom: -22px; }
.promos__list::-webkit-scrollbar { display: none; }
.promo-card { position: relative; overflow: hidden; flex: 0 0 auto; display: flex; flex-direction: column; width: min(330px, 80vw); scroll-snap-align: start; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--promo-line); box-shadow: var(--shadow-sm); }
.promo-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(var(--accent-rgb), .12); pointer-events: none; }
.promo-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.promo-card__badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--gold-50); color: var(--gold-ink); }
.promo-card__value { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--brand); white-space: nowrap; }
.promo-card__title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 4px; }
.promo-card__desc { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.promo-card__when { display: flex; align-items: center; gap: 6px; margin: auto 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.promo-card.is-now { border: 0; color: var(--on-brand); background: radial-gradient(240px 160px at 100% 0%, rgba(var(--accent-rgb), .45), transparent 70%), linear-gradient(135deg, var(--promo-1), var(--promo-2) 55%, var(--promo-3)); box-shadow: 0 10px 22px rgba(var(--brand-rgb), .24); }
.promo-card.is-now::after { background: rgba(255, 255, 255, .08); }
.promo-card.is-now .promo-card__badge { background: #fff; color: var(--brand); }
.promo-card.is-now .promo-card__badge::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--brand); vertical-align: 1px; }
.promo-card.is-now .promo-card__value { color: #ffd88a; }
.promo-card.is-now .promo-card__desc { color: rgba(255, 255, 255, .88); }
.promo-card.is-now .promo-card__when { color: rgba(255, 255, 255, .78); }

.item-card__price.is-promo { color: var(--brand); }
.item-card__was { color: var(--muted); font-size: 13px; }
.item-card__note { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--ok); }
.item-card.is-sold-out .item-card__add { display: none; }
.badge--promo { background: var(--brand); color: var(--on-brand); }
.was { color: var(--muted); font-weight: 400; font-size: .85em; margin-right: 6px; }
.cart-line__promo, .summary-line__promo { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--brand); }
.summary-line__price { text-align: right; }
.cart__row--saving { color: var(--ok); font-weight: 600; }
.item-dialog__promo { margin: 0 0 6px; padding: 8px 12px; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); font-size: 14px; font-weight: 600; }
.item-dialog__add strong { display: inline-flex; align-items: baseline; gap: 4px; }
.item-dialog__add .was { color: rgba(255, 255, 255, .7); }

/* Gutschein */
.coupon { margin: 14px 0 4px; }
.coupon__row { display: flex; gap: 8px; }
.coupon__row input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px dashed var(--coupon-line); border-radius: 10px; background: var(--surface-2); text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.coupon__row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.coupon__row input:focus { outline: none; border-style: solid; border-color: var(--ink-2); background: var(--surface); }
.coupon__applied { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--ok-50); color: var(--ok); font-size: 14px; }
.coupon__applied .icon { vertical-align: -3px; }
.checkout__grid.is-calculating .summary-totals { opacity: .55; transition: opacity .2s .15s; }

/* Hinweis bei geänderter Speisekarte */
.update-banner { position: fixed; left: 50%; top: calc(var(--header-h) + 12px); z-index: 70; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--inverse-bg); color: var(--inverse-ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); max-width: calc(100% - 24px); }
.update-banner .btn { min-height: 34px; padding: 6px 14px; font-size: 13px; }

/* ==========================================================================
   Kopfzeile: App, Darstellung, Konto
   ========================================================================== */
.header-tools { display: flex; align-items: center; gap: 6px; }
.header-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.header-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.header-btn--theme { width: 40px; padding: 0; justify-content: center; }
.header-btn--account.is-signed-in { border-color: transparent; background: var(--brand-50); color: var(--brand-600); }
.header-btn--install { border-color: transparent; background: var(--gold-50); color: var(--gold-ink); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 28px; }
.site-footer__links { flex-direction: column; gap: 8px; }
.site-footer__btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: #fff; font-weight: 600; font-size: 15px; text-align: left; }
.site-footer__btn:hover { text-decoration: underline; }
.is-app .site-footer__btn[data-install-open] { display: none; }

/* Installations-Dialog (auf dem Handy unten einfahrend) */
.sheet { width: min(440px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.sheet::backdrop { background: var(--overlay); }
.sheet[open] { animation: dialog-in .2s ease-out; }
.sheet__body { padding: 26px 24px 22px; text-align: center; }
.sheet__icon { margin: 0 auto 12px; border-radius: 16px; }
.sheet h2 { font-size: 21px; }
.sheet__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.install-steps { text-align: left; margin: 14px 0 0; padding-left: 22px; }
.install-steps li { margin: 6px 0; }
.ios-share { display: inline-block; width: 16px; height: 18px; vertical-align: -3px; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 3px 3px; position: relative; margin-left: 4px; }
.ios-share::before { content: ""; position: absolute; left: 50%; top: -7px; width: 2px; height: 12px; background: currentColor; transform: translateX(-50%); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt-16 { margin-top: 16px; }

/* Install-Hinweis auf der Startseite */
.install-card { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); text-align: left; }
.install-card img { border-radius: 12px; flex-shrink: 0; }
.install-card p { margin: 0; font-size: 14px; color: var(--ink-2); flex: 1; }
.install-card strong { display: block; color: var(--ink); font-size: 15px; }
.install-card__close { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px 6px; }

/* ==========================================================================
   Zahlungsarten: Hinweise
   ========================================================================== */
.hero__notice--pay { margin-top: 14px; }
.pay-notice { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--warn-50); border: 1px solid var(--warn-line); color: var(--warn-ink); font-size: 14px; font-weight: 600; }
.choice.is-unavailable { opacity: .55; cursor: not-allowed; background: var(--surface-2); }
.choice__off { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--muted-badge); color: var(--muted); font-size: 11.5px; font-weight: 700; vertical-align: 1px; }

/* ==========================================================================
   Kundenkonto
   ========================================================================== */
.alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; font-weight: 600; font-size: 15px; border: 1px solid transparent; }
.alert--success { background: var(--ok-50); color: var(--ok); }
.alert--error { background: var(--error-50); color: var(--error); }
.alert--info { background: var(--info-50); color: var(--info-ink); }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 28px; padding-bottom: 64px; }
.auth-wrap--single { grid-template-columns: minmax(0, 480px); justify-content: center; }
.auth-panel { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); }
.auth-panel .page-title { margin-top: 0; margin-bottom: 6px; }
.auth-form .field:first-of-type { margin-top: 12px; }
.auth-form__forgot { margin: 10px 0 16px; font-size: 14px; text-align: right; }
.auth-switch { margin: 18px 0 0; font-size: 15px; text-align: center; }
.benefits { padding: 10px 0; }
.benefits__list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.benefits__list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.benefits__list .icon { color: var(--brand); margin-top: 2px; }
.benefits__list strong { display: block; }
.benefits__list span { color: var(--ink-2); font-size: 15px; }

.account { padding-top: 24px; padding-bottom: 64px; }
.account__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.account__head .page-title { margin: 0; }
.account__hello { margin: 0; font-weight: 600; color: var(--muted); }
.account__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account__actions form { margin: 0; }
.account-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 18px; padding-bottom: 2px; scrollbar-width: none; }
.account-tabs a { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.account-tabs a.is-active { background: var(--inverse-bg); color: var(--inverse-ink); border-color: var(--inverse-bg); }
.account__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-bottom: 18px; }
.account-card .panel__title .icon { color: var(--brand); }
.account-form { margin-bottom: 18px; }
.account-form--danger { border-color: var(--error-50); }
.btn--danger { background: #b42318; color: #fff; }
.btn--danger:hover { background: #8f1c13; color: #fff; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { color: var(--ink); background: var(--surface-2); }

/* Stempelkarte */
.stampcard { margin-top: 12px; }
.stampcard__grid { list-style: none; display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 10px; padding: 16px; margin: 0; border-radius: 18px;
    background: radial-gradient(200px 120px at 100% 0%, rgba(var(--accent-rgb), .18), transparent 70%), var(--surface-2); border: 2px dashed var(--line-strong); }
.stamp { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--line-strong); color: var(--muted); font-weight: 700; font-size: 14px; background: var(--surface); }
.stamp.is-set { border: 0; background: var(--brand); color: var(--on-brand); transform: rotate(-8deg); box-shadow: 0 3px 8px rgba(var(--brand-rgb), .3); }
.stamp--reward { border-style: solid; border-color: var(--accent); color: var(--gold-ink); background: var(--gold-50); }
.stamp--reward.is-set { background: var(--accent); color: var(--on-accent); }
.stampcard.is-full .stampcard__grid { border-style: solid; border-color: var(--accent); }
.stampcard.is-full .stamp--reward { animation: pulse-gold 1.8s ease-in-out infinite; }
@keyframes pulse-gold { 50% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), .25); } }
.stampcard__text { margin: 14px 0 0; font-size: 15.5px; }
.stampcard__hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.perks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.perk { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.perk span { color: var(--muted); font-size: 14px; }
.perk--active { background: var(--ok-50); }
.perk--active strong { color: var(--ok); }
.meter { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

/* Bestellverlauf */
.account-orders__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.account-empty { padding: 24px 0 6px; text-align: center; color: var(--muted); }
.order-list { list-style: none; padding: 0; margin: 10px 0 0; }
.order-row { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-row:last-child { border-bottom: 0; }
.order-row__main { min-width: 0; }
.order-row__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.order-row__items { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.order-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.order-row__total { font-size: 17px; }
.order-row__btns { display: flex; gap: 6px; }
.order-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.order-badge--completed { background: var(--ok-50); color: var(--ok); }
.order-badge--cancelled { background: var(--error-50); color: var(--error); }
.order-badge--new, .order-badge--accepted, .order-badge--ready { background: var(--gold-50); color: var(--gold-ink); }

/* Kasse: Konto & Treue */
.signed-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--ok-50); color: var(--ink); font-size: 14px; }
.signed-in .icon { color: var(--ok); }
.signed-in small { color: var(--muted); margin-left: 4px; }
.signed-in a { margin-left: auto; font-weight: 600; }
.account-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--gold-50); }
.account-hint .icon { color: var(--accent); }
.account-hint p { flex: 1 1 220px; margin: 0; font-size: 14px; }
.account-hint__btns { display: flex; gap: 6px; }
.loyalty-box { margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-strong); font-size: 14px; }
.loyalty-box__head { display: flex; gap: 8px; align-items: flex-start; }
.loyalty-box__head .icon { color: var(--accent); margin-top: 1px; }
.loyalty-box__redeem { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 2px solid var(--accent); }
.loyalty-notes { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.stamp-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 20px; padding: 14px 16px; border-radius: var(--radius); background: var(--gold-50); border: 1px solid var(--promo-line); }
.stamp-note .icon { color: var(--accent); flex-shrink: 0; }
.stamp-note span { flex: 1 1 260px; }
.stamp-note--cta { background: var(--surface); }

@media (max-width: 860px) {
    .auth-wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
    .header-btn__label { display: none; }
    .header-btn { width: 40px; padding: 0; justify-content: center; }
    .header-btn--theme { display: none; }
    .header-tools { gap: 4px; }
    .site-header__inner { gap: 8px; }
    .brand { gap: 9px; }
    .brand__name, .brand__tagline { overflow: hidden; text-overflow: ellipsis; }
    .header-btn, .site-nav__phone { width: 38px; height: 38px; }
    .site-nav__phone { justify-content: center; padding: 0; }
    .cart-button { height: 40px; padding: 0 12px; }
    .auth-panel { padding: 20px 18px; }
    .stampcard__grid { gap: 7px; padding: 12px; }
    .stamp { font-size: 12px; }
    .order-row { flex-direction: column; align-items: stretch; }
    .order-row__side { flex-direction: row; justify-content: space-between; align-items: center; }
    .order-row__items { white-space: normal; }
    .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; }
    .sheet__body { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Aktionen-Slider (Pfeile am Desktop, Punkte überall, Wischen am Handy)
   ========================================================================== */
.promos__nav { display: flex; gap: 8px; }
.promos__arrow { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 20px; line-height: 1; box-shadow: var(--shadow-sm); transition: background .15s, opacity .15s; }
.promos__arrow:hover:not(:disabled) { background: var(--surface-2); }
.promos__arrow:disabled { opacity: .35; cursor: default; }
.promos__dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.promos__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); transition: width .2s, background .2s; }
.promos__dot.is-active { width: 22px; background: var(--brand); }
/* Kleiner Hinweis „wischen“: rechter Rand blendet aus, solange es weitergeht */
.promos__track { position: relative; }
.promos__track::after { content: ""; position: absolute; top: 0; right: 0; bottom: 12px; width: 36px; pointer-events: none; background: linear-gradient(to right, transparent, var(--bg)); opacity: 0; transition: opacity .2s; }
.promos__track.has-more::after { opacity: 1; }
@media (max-width: 600px) {
    .promos__nav { display: none; }
    .promo-card { width: calc(100vw - 56px); }
}

/* Warenkorb: Fortschritt bis zum Mindestbestellwert */
.min-progress { margin: 8px 0 4px; }
.min-progress__text { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--warn); }
.min-progress__text strong { color: var(--ink); }
.min-progress__bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.min-progress__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .3s ease; }
.min-progress__sub { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.min-progress.is-reached .min-progress__text { color: var(--ok); }
.min-progress.is-reached .min-progress__bar span { background: var(--ok); }
.mobile-cart-bar__label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; text-align: left; }
.mobile-cart-bar__label small { font-size: 12px; font-weight: 500; opacity: .9; }

/* „Nochmal bestellen“-Leiste oben auf der Startseite */
.reorder-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.reorder-bar__inner { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.reorder-bar__icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-50); color: var(--brand); }
.reorder-bar__text { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; line-height: 1.3; font-size: 14px; }
.reorder-bar__text span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reorder-bar__btn { flex-shrink: 0; }
.reorder-bar__close { flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.reorder-bar__close:hover { background: var(--surface-2); color: var(--ink); }
.status-hero__actions { margin-top: 18px !important; }
@media (max-width: 600px) {
    .reorder-bar__inner { flex-wrap: wrap; gap: 10px 12px; }
    .reorder-bar__icon { width: 34px; height: 34px; }
    .reorder-bar__text { flex: 1 1 calc(100% - 90px); }
    .reorder-bar__btn { flex: 1 1 100%; order: 3; min-height: 44px; }
}

/* Kasse: Abstand zwischen AGB-Haken und Bestell-Button */
.checkout__summary [data-submit] { margin-top: 20px; }
@media (max-width: 600px) { .checkout__summary [data-submit] { margin-top: 24px; } }
.cart__row--vat { font-size: 13px; color: var(--muted); padding: 1px 0; }

/* Logo mit Schriftzug (restaurant.config.php: logo_mit_name) */
.brand__logo--wide { width: auto; height: 44px; max-width: min(240px, 52vw); object-fit: contain; border-radius: 0; }

/* Übergabe-Code für die Lieferung (Bestellstatus-Seite) */
.handover-code { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; border-color: var(--brand); }
.handover-code .panel__title { margin-bottom: 4px; }
.handover-code p { margin: 0; color: var(--ink-2); }
.handover-code__value { flex-shrink: 0; padding: 8px 16px; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); font-size: 34px; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .handover-code { flex-direction: column; align-items: flex-start; } }
