/* ==========================================================================
   Buchsi Imbiss – gemeinsames Stylesheet für alle Seiten
   Aufbau: Variablen · Basis · Header/Navigation · Buttons · Login · Warenkorb
           · Footer · Startseite · Menü · Produkt-Popup · Kontakt · Kasse
   ========================================================================== */

:root {
    --gold: #ffd200;
    --gold-hover: #e6c300;
    --gold-soft: rgba(255, 215, 0, 0.12);
    --bg: #0a0a0a;
    --surface: #111;
    --surface-2: #1a1a1a;
    --surface-3: #222;
    --border: #2c2c2c;
    --text: #fff;
    --muted: #c9c9c9;
    --subtle: #9a9a9a;
    --danger: #ff6b6b;
    --success: #6fdc8c;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --header-h: 84px;
    --categories-h: 58px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
        --categories-h: 56px;
    }
}

/* ---------- Basis ---------- */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-top: var(--header-h);
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

body > main,
body > .page-main {
    flex: 1 0 auto;
}

body.no-scroll {
    overflow: hidden;
}

img,
iframe {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: 1200px;
    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;
}

/* ---------- Header & Navigation ---------- */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 5000;
    background-color: rgba(17, 17, 17, 0.94);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.header-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.logo img {
    height: 72px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s var(--ease);
}

.logo:hover img {
    transform: scale(1.04);
}

#mainNav {
    margin-left: auto;
}

#mainNav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

#mainNav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    border-radius: 999px;
    transition: color 0.2s, background-color 0.2s;
}

#mainNav a:hover {
    color: var(--gold);
    background-color: var(--gold-soft);
}

#mainNav a.active {
    color: var(--gold);
}

#mainNav a.active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--gold);
}

.header-right {
    order: 3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn,
.cart-icon,
.account-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: transparent;
    color: var(--gold);
    font-size: 1.1rem;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.cart-icon:hover,
.account-btn:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.cart-icon.bump {
    animation: cart-bump 0.45s var(--ease);
}

@keyframes cart-bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.22); }
    100% { transform: scale(1); }
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background-color: var(--gold);
    color: #000;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--surface);
}

.cart-count.is-empty {
    background-color: #3a3a3a;
    color: #bbb;
}

.account-btn {
    margin-left: 6px;
}

.account-btn.logged-in::after {
    content: '';
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 2px var(--surface);
}

.account-btn .nav-label {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: var(--text);
    transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .logo img {
        height: 56px;
    }

    .header-right {
        margin-left: auto;
        gap: 6px;
    }

    .menu-toggle {
        display: flex;
    }

    #mainNav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px 16px 16px;
        background-color: var(--surface);
        border-bottom: 2px solid var(--gold);
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
    }

    #mainNav.nav-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    #mainNav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    #mainNav a,
    #mainNav .account-btn {
        justify-content: center;
        width: 100%;
        min-height: 46px;
        border-radius: 10px;
        font-size: 1rem;
    }

    #mainNav a.active {
        background-color: var(--gold-soft);
    }

    #mainNav a.active::after {
        display: none;
    }

    #mainNav .account-btn {
        height: auto;
        margin: 6px 0 0;
        border-radius: 10px;
        font-weight: 600;
    }

    #mainNav .account-btn .nav-label {
        display: inline;
    }

    .account-btn.logged-in::after {
        position: static;
        margin-left: 4px;
    }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 28px;
    border: 2px solid var(--gold);
    border-radius: 999px;
    background-color: var(--gold);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
    background-color: transparent;
    color: var(--gold);
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline {
    background-color: transparent;
    color: var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: #000;
}

/* ---------- Login-Popup ---------- */

.login-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.login-popup[style*="flex"] .login-popup-content {
    animation: pop-in 0.28s var(--ease);
}

@keyframes pop-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.login-popup-content {
    position: relative;
    width: min(100%, 430px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 36px 28px 26px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.login-popup-content h2 {
    color: var(--gold);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.close-login,
.close-cart,
.close-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
    transition: background-color 0.2s, color 0.2s;
}

.close-login:hover,
.close-cart:hover,
.close-modal:hover {
    background-color: var(--surface-3);
    color: var(--gold);
}

.close-login {
    position: absolute;
    top: 10px;
    right: 10px;
}

.login-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--surface-3);
}

.auth-tab {
    padding: 9px 12px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    transition: background-color 0.2s, color 0.2s;
}

.auth-tab:hover {
    color: var(--gold);
}

.auth-tab.active {
    background: var(--gold);
    color: #000;
}

.email-auth-form {
    text-align: left;
}

.email-auth-form label {
    display: block;
    margin: 12px 0 6px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.92rem;
}

.email-auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.email-auth-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.login-main-btn,
.google-login-btn {
    width: 100%;
    margin-top: 16px;
}

.google-login-btn {
    background: transparent;
    color: var(--text);
    border-color: #3a3a3a;
}

.google-login-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Apple: weisser Knopf (Apple-Vorgabe für dunkle Hintergründe) */
.apple-login-btn {
    margin-top: 10px;
    background: #fff;
    color: #000;
    border-color: #fff;
}

.apple-login-btn:hover {
    background: #e8e8e8;
    border-color: #e8e8e8;
    color: #000;
}

.apple-login-btn i {
    font-size: 1.15em;
}

.password-reset-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 6px;
    border: none;
    background: transparent;
    color: var(--gold);
    font-size: 0.92rem;
    font-weight: 600;
}

.password-reset-btn:hover {
    text-decoration: underline;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 0;
    color: var(--subtle);
    font-size: 0.88rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-message {
    min-height: 22px;
    margin-top: 14px;
    color: var(--danger);
    font-size: 0.92rem;
    font-weight: 600;
}

.login-message.success {
    color: var(--success);
}

.account-view {
    display: none;
}

.login-popup.is-logged-in .login-view {
    display: none;
}

.login-popup.is-logged-in .account-view {
    display: block;
}

.account-view .account-email {
    margin: 8px 0 20px;
    color: var(--muted);
    word-break: break-word;
}

.account-view .account-email strong {
    color: var(--text);
}

@media (max-width: 480px) {
    .login-popup-content {
        padding: 32px 18px 20px;
    }
}

/* ---------- Warenkorb-Panel ---------- */

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 8999;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    width: min(92vw, 380px);
    height: 100vh;
    height: 100dvh;
    padding: 20px;
    background-color: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
}

.cart-panel.open {
    transform: none;
    visibility: visible;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    color: var(--gold);
    font-size: 1.3rem;
}

.cart-panel .cart-items {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0 -6px;
    padding: 0 6px;
}

.cart-panel .cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.cart-panel .cart-item-info {
    min-width: 0;
}

.cart-panel .cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.cart-panel .cart-item-price {
    margin-top: 2px;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #3a3a3a;
    border-radius: 999px;
}

.qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
    transition: background-color 0.2s;
}

.qty-btn:hover:not(:disabled) {
    background: var(--surface-3);
}

.qty-btn:disabled {
    color: #555;
    cursor: not-allowed;
}

.item-qty {
    min-width: 26px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.remove-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #ff7b7b;
    font-size: 1.3rem;
    transition: background-color 0.2s;
}

.remove-item:hover {
    background: rgba(255, 77, 77, 0.12);
}

.empty-cart {
    padding: 40px 10px;
    color: var(--subtle);
    text-align: center;
}

.empty-cart i {
    display: block;
    margin-bottom: 10px;
    font-size: 2rem;
    color: #444;
}

.cart-panel .cart-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-panel .cart-total span:last-child {
    color: var(--gold);
}

.checkout-btn {
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 999px;
    background-color: var(--gold);
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.2s, opacity 0.2s;
}

.checkout-btn:hover:not(:disabled) {
    background-color: var(--gold-hover);
}

.checkout-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---------- Toast (Hinweis "Zum Warenkorb hinzugefügt") ---------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 11000;
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 999px;
    background: #1c1c1c;
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow);
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.3s var(--ease);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast i {
    color: var(--success);
}

/* ---------- Footer ---------- */

footer {
    margin-top: 60px;
    padding: 50px 0 24px;
    background-color: var(--surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h3 {
    position: relative;
    margin-bottom: 22px;
    color: var(--gold);
    font-size: 1.15rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 40px;
    height: 2px;
    background-color: var(--gold);
}

.footer-section p,
.footer-section a {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-section i {
    width: 18px;
    margin-right: 6px;
    color: var(--gold);
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    color: var(--muted);
    font-size: 0.93rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li span:last-child {
    text-align: right;
    color: var(--text);
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--subtle);
    text-align: center;
    font-size: 0.9rem;
}

/* ---------- Gemeinsame Abschnitte ---------- */

.section-title {
    position: relative;
    margin-bottom: 50px;
    color: var(--gold);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background-color: var(--gold);
    transform: translateX(-50%);
}

.page-header {
    padding: 50px 0 36px;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 10px;
    color: var(--gold);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
}

.page-header p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.1rem;
}

.page-header-compact {
    padding: 34px 0 22px;
}

.page-header-compact h1 {
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}

.page-header-compact p {
    font-size: 1rem;
}

.open-badge[hidden],
.address-fields[hidden] {
    display: none;
}

.open-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.open-badge::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #777;
}

.open-badge.is-open {
    color: var(--success);
    border-color: rgba(111, 220, 140, 0.35);
}

.open-badge.is-open::before {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(111, 220, 140, 0.18);
}

.open-badge.is-closed {
    color: #ff9b9b;
    border-color: rgba(255, 107, 107, 0.35);
}

.open-badge.is-closed::before {
    background: var(--danger);
}

/* ---------- Startseite ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(78vh, 640px);
    padding: 90px 0;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.82) 60%, var(--bg) 100%),
        url('../Bilder/Laden.jpg') center / cover no-repeat;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    max-width: 860px;
    margin: 18px 0 18px;
    color: var(--gold);
    font-size: clamp(2.1rem, 5.5vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.hero p {
    max-width: 680px;
    margin: 0 auto 32px;
    color: #e6e6e6;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin-top: 36px;
    list-style: none;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-facts i {
    margin-right: 6px;
    color: var(--gold);
}

.hero-facts a {
    text-decoration: none;
}

.hero-facts a:hover {
    color: var(--gold);
}

.about {
    padding: 80px 0;
    background-color: var(--surface);
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 18px;
    color: var(--gold);
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.about-text p {
    margin-bottom: 14px;
    color: #e3e3e3;
    font-size: 1.05rem;
}

.about-image {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.about-image:hover img {
    transform: scale(1.03);
}

.features {
    padding: 80px 0 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px 26px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background-color: var(--surface);
    text-align: center;
    transition: transform 0.3s var(--ease), border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.4);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 1.6rem;
}

.feature-card h3 {
    margin-bottom: 8px;
    color: var(--gold);
}

.feature-card p {
    color: var(--muted);
}

.cta-band {
    padding: 50px 0 10px;
}

.cta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 34px 36px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 215, 0, 0.02));
}

.cta-box h2 {
    color: var(--gold);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.cta-box p {
    color: var(--muted);
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 64px 0 56px;
    }

    .about,
    .features {
        padding: 56px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cta-box {
        padding: 26px 22px;
        text-align: center;
        justify-content: center;
    }
}

/* ---------- Menü ---------- */

.menu-categories {
    position: sticky;
    top: var(--header-h);
    z-index: 4900;
    background: rgba(26, 26, 26, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.menu-categories .container {
    padding: 0;
}

.categories-container {
    display: flex;
    align-items: center;
    gap: 6px;
    height: var(--categories-h);
    padding: 0 20px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
}

.categories-container::-webkit-scrollbar {
    display: none;
}

.category-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: transparent;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.category-btn:hover {
    border-color: rgba(255, 215, 0, 0.45);
    color: var(--gold);
}

.category-btn.active,
.category-btn[aria-current="true"] {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #000;
    font-weight: 600;
}

.menu-items {
    padding: 10px 0 20px;
}

.menu-items > .container {
    padding-top: 0;
}

.category-title {
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    color: var(--gold);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    scroll-margin-top: calc(var(--header-h) + var(--categories-h) + 16px);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.item-card {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface-2);
    transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
    animation: card-fade 0.5s ease both;
}

.item-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

@keyframes card-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.item-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 18px;
}

.item-info h3 {
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 1.06rem;
    line-height: 1.3;
}

.item-description {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.87rem;
    line-height: 1.45;
}

.item-price {
    margin-top: auto;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
}

.item-size + .item-price,
.item-size ~ .item-price {
    margin-top: 0;
}

.item-size {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 12px;
}

.size-btn {
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #3a3a3a;
    border-radius: var(--radius-sm);
    background-color: var(--surface-3);
    color: var(--text);
    font-size: 0.82rem;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.size-btn:hover {
    border-color: rgba(255, 215, 0, 0.5);
}

.size-btn.active {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #000;
    font-weight: 600;
}

.add-to-cart,
.add-to-cart-modal,
.confirm-add {
    width: 100%;
    min-height: 44px;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    background-color: var(--gold);
    color: #000;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background-color 0.2s, transform 0.15s;
}

.add-to-cart:hover,
.add-to-cart-modal:hover,
.confirm-add:hover {
    background-color: var(--gold-hover);
}

.add-to-cart:active,
.add-to-cart-modal:active,
.confirm-add:active {
    transform: scale(0.98);
}

.add-to-cart.added {
    background-color: var(--success);
}

@media (max-width: 768px) {
    .categories-container {
        padding: 0 14px;
    }

    .category-btn {
        padding: 8px 14px;
        font-size: 0.88rem;
    }

    .category-title {
        margin-top: 28px;
    }

    .items-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .item-info {
        padding: 15px;
    }

    .item-size {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }

    .size-btn {
        min-height: 40px;
        font-size: 0.9rem;
    }

    .add-to-cart,
    .add-to-cart-modal,
    .confirm-add {
        min-height: 46px;
    }
}

/* ---------- Produkt-Popup ---------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.78);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal[style*="flex"] .modal-content {
    animation: pop-in 0.28s var(--ease);
}

.modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background-color: var(--surface-2);
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.modal-header h3 {
    color: var(--gold);
    font-size: 1.1rem;
    line-height: 1.3;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 20px;
}

.modal-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.modal-footer .total-price {
    flex-shrink: 0;
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-footer .confirm-add {
    flex: 1;
    margin: 0;
}

.option-group {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group h4 {
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 0.95rem;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.option-btn {
    padding: 7px 12px;
    border: 1px solid #444;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--text);
    font-size: 0.82rem;
    line-height: 1.3;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.option-btn:hover:not(:disabled) {
    border-color: rgba(255, 215, 0, 0.6);
}

.option-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.option-btn.active,
.option-btn.multi-select.active,
.option-btn.sauce.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    font-weight: 600;
}

.option-btn.active::before {
    content: '✓ ';
}

.option-btn[data-group="exclude"].active {
    background: #5a2323;
    border-color: #ff6b6b;
    color: #fff;
}

.option-btn[data-group="exclude"].active::before {
    content: '✕ ';
}

.sauce-counter {
    margin-top: 8px;
    color: var(--subtle);
    font-size: 0.8rem;
}

.option-note {
    width: 100%;
    min-height: 84px;
    padding: 12px;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.option-note:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.option-note-hint {
    margin-top: 6px;
    color: var(--subtle);
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        max-width: none;
        max-height: 92dvh;
        border-radius: 18px 18px 0 0;
        border-bottom: none;
    }

    .modal[style*="flex"] .modal-content {
        animation: sheet-up 0.32s var(--ease);
    }

    .modal-body {
        padding: 14px;
    }

    .modal-footer {
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    }

    .option-btn {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 0.86rem;
    }

    .option-note {
        font-size: 1rem;
    }
}

@keyframes sheet-up {
    from { transform: translateY(100%); }
    to { transform: none; }
}

/* ---------- Kontakt ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.contact-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background-color: var(--surface);
}

.contact-card h2,
.map h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    color: var(--gold);
    font-size: 1.5rem;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.contact-list i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold);
}

.contact-list small {
    display: block;
    color: var(--subtle);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-list a {
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-list a:hover {
    color: var(--gold);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.contact-actions .btn {
    min-height: 42px;
    padding: 9px 20px;
    font-size: 0.95rem;
}

.opening-hours ul {
    list-style: none;
}

.opening-hours li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.opening-hours li:last-child {
    border-bottom: none;
}

.opening-hours .day {
    color: var(--gold);
    font-weight: 600;
}

.opening-hours li span:last-child {
    white-space: nowrap;
}

.opening-hours li.today {
    margin: 0 -12px;
    padding: 12px;
    border-radius: 10px;
    border-bottom-color: transparent;
    background: var(--gold-soft);
}

.opening-hours .open-badge {
    margin-bottom: 14px;
}

.map {
    margin-bottom: 20px;
}

.map iframe,
.map .apple-map {
    display: block;
    width: 100%;
    height: 420px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

@media (max-width: 768px) {
    .page-header {
        padding: 34px 0 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-card {
        padding: 22px 18px;
    }

    .contact-card h2,
    .map h2 {
        font-size: 1.3rem;
    }

    .map iframe,
    .map .apple-map {
        height: 320px;
    }
}

/* ---------- Kasse ---------- */

.checkout-title {
    padding: 40px 0 24px;
    color: var(--gold);
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    text-align: center;
}

.checkout-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto 30px;
}

.checkout-section .cart-list,
.customer-form {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.checkout-section .cart-list {
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.cart-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cart-list-header h2 {
    color: var(--gold);
    font-size: 1.35rem;
}

.mobile-cart-toggle {
    display: none;
}

.checkout-cart-content {
    margin-top: 14px;
}

.checkout-section .cart-items {
    max-height: 50vh;
    overflow-y: auto;
}

.checkout-section .cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.checkout-section .cart-item-name {
    font-weight: 500;
    overflow-wrap: anywhere;
}

.checkout-section .cart-item-qty {
    margin-left: 6px;
    color: var(--gold);
    font-weight: 600;
    white-space: nowrap;
}

.checkout-section .cart-item-price {
    flex-shrink: 0;
    color: var(--gold);
    font-weight: 600;
    white-space: nowrap;
}

.checkout-section .cart-total {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 14px;
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 700;
}

.back-to-menu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.92rem;
    text-decoration: none;
}

.back-to-menu:hover {
    color: var(--gold);
}

.customer-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
}

.customer-form input,
.customer-form select {
    width: 100%;
    min-height: 46px;
    margin-bottom: 16px;
    padding: 11px 14px;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.customer-form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23FFD700' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.customer-form input::placeholder {
    color: #666;
}

.customer-form input:focus,
.customer-form select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row.address-row {
    grid-template-columns: 120px 1fr;
}

.form-note {
    margin: -6px 0 16px;
    color: var(--subtle);
    font-size: 0.88rem;
}

.payment-options-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.payment-options-grid input[type="radio"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.payment-options-grid label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    margin: 0;
    padding: 10px 8px;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    background: var(--bg);
    color: var(--muted);
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.payment-options-grid label:hover {
    border-color: rgba(255, 215, 0, 0.6);
}

.payment-options-grid input[type="radio"]:checked + label {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.payment-options-grid input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.payment-options-grid label.payment-disabled,
.payment-options-grid input:disabled + label {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.payment-title {
    font-weight: 700;
    line-height: 1.2;
}

.payment-info {
    margin-bottom: 18px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    background: rgba(255, 215, 0, 0.06);
    color: #eee;
    font-size: 0.92rem;
}

.payment-info.warning {
    border-color: #ffb84d;
    background: rgba(255, 184, 77, 0.1);
}

.payment-info.success {
    border-color: rgba(111, 220, 140, 0.5);
    background: rgba(111, 220, 140, 0.08);
}

.submit-btn {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 999px;
    background-color: var(--gold);
    color: #000;
    font-size: 1.05rem;
    font-weight: 700;
    transition: background-color 0.2s, opacity 0.2s;
}

.submit-btn:hover:not(:disabled) {
    background-color: var(--gold-hover);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
}

.form-message.success {
    display: block;
    border: 1px solid rgba(111, 220, 140, 0.45);
    background: rgba(111, 220, 140, 0.1);
    color: var(--success);
}

.form-message.error {
    display: block;
    border: 1px solid rgba(255, 107, 107, 0.45);
    background: rgba(255, 107, 107, 0.1);
    color: #ff9b9b;
}

.order-summary {
    max-width: 640px;
    margin: 0 auto 20px;
    padding: 28px;
    border: 1px solid rgba(111, 220, 140, 0.4);
    border-radius: 16px;
    background: var(--surface);
    text-align: center;
}

.order-summary:empty {
    display: none;
}

.order-summary h3 {
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 1.4rem;
}

.order-summary p {
    margin-bottom: 6px;
    color: var(--muted);
}

.order-summary strong {
    color: var(--text);
}

@media (max-width: 860px) {
    .checkout-section {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .checkout-section .cart-list {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-title {
        padding: 22px 0 14px;
    }

    .checkout-section .cart-list,
    .customer-form {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .cart-list-header h2 {
        font-size: 1.1rem;
    }

    .mobile-cart-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 40px;
        padding: 8px 14px;
        border: 1px solid var(--gold);
        border-radius: 999px;
        background: transparent;
        color: var(--gold);
        font-size: 0.88rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .mobile-cart-toggle small {
        color: var(--text);
        font-size: 0.8rem;
        font-weight: 600;
    }

    .cart-list.is-open .mobile-cart-toggle {
        background: var(--gold);
        color: #000;
    }

    .cart-list.is-open .mobile-cart-toggle small {
        color: #000;
    }

    .checkout-cart-content {
        display: none;
    }

    .cart-list.is-open .checkout-cart-content {
        display: block;
    }

    .checkout-section .cart-items {
        max-height: 240px;
    }

    .order-summary {
        padding: 20px 16px;
    }
}

@media (max-width: 420px) {
    .form-row,
    .form-row.address-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mobile-cart-toggle small {
        display: none;
    }
}

/* ---------- Touch-Geräte & reduzierte Bewegung ---------- */

@media (hover: none) {
    .item-card:hover,
    .feature-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Rechtliche Seiten ---------- */

.legal-page {
    max-width: 820px;
}

.legal-section {
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.legal-section h2 {
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 1.2rem;
}

.legal-section p,
.legal-section li {
    color: #e3e3e3;
}

.legal-section p + p {
    margin-top: 10px;
}

.legal-section ul {
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section a,
.copyright a {
    color: var(--gold);
}

.legal-updated {
    color: var(--subtle);
    text-align: center;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 18px 16px;
    }
}

.login-main-btn[hidden] {
    display: none;
}

.delete-account-btn {
    margin-top: 14px;
    color: #ff9b9b;
    font-weight: 500;
    font-size: 0.85rem;
}

/* ==========================================================================
   App-Stil (gleich wie die Buchsi-Imbiss-App): Piktogramme, Karten, Chips
   ========================================================================== */

/* ---------- Menü: Suche, Kategorien mit Piktogrammen ---------- */

.menu-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 520px;
    height: 48px;
    margin: 20px auto 0;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--surface-3);
    color: var(--subtle);
}

.menu-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--surface-3);
}

.category-btn i {
    color: var(--gold);
    font-size: 0.85rem;
}

.category-btn.active i,
.category-btn[aria-current="true"] i {
    color: #000;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: none;
    padding-bottom: 0;
}

.category-title i {
    color: var(--gold);
    font-size: 0.85em;
}

.menu-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
}

.menu-empty i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.menu-empty h3 {
    color: var(--text);
    margin-bottom: 6px;
}

/* ---------- Kompakte Gericht-Karten mit "+" ---------- */

.item-card.compact {
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    border-color: transparent;
    background: #161616;
}

.item-card.compact:hover {
    border-color: rgba(255, 210, 0, 0.35);
}

.item-card.compact:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.item-card.compact .item-info {
    padding: 16px 64px 16px 18px;
    justify-content: center;
}

.item-card.compact .item-info h3 {
    color: var(--text);
    font-size: 1.02rem;
    margin-bottom: 4px;
}

.item-card.compact .item-description {
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-card.compact .item-price {
    margin: 0;
    color: var(--gold);
    font-size: 0.98rem;
}

.item-card.compact .item-size,
.item-card.compact .add-to-cart,
.item-card.compact .add-to-cart-modal {
    display: none;
}

.card-add {
    position: absolute;
    right: 16px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    transform: translateY(-50%);
    transition: transform 0.15s;
}

.item-card.compact:active .card-add {
    transform: translateY(-50%) scale(0.88);
}

.card-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    margin-right: 8px;
    padding: 0 7px;
    border-radius: 11px;
    background: var(--gold);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
}

.card-qty[hidden] {
    display: none;
}

/* ---------- Gericht-Fenster im App-Stil ---------- */

.modal-header h3 {
    color: var(--text);
    font-size: 1.3rem;
}

.sheet-desc {
    color: var(--muted);
    font-size: 0.95rem;
}

.sheet-price {
    margin-top: 6px;
    color: var(--gold);
    font-size: 1.15rem;
    font-weight: 800;
}

.opt-group {
    margin-top: 20px;
}

.opt-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.opt-group-head h4 {
    color: var(--text);
    font-size: 1rem;
}

.opt-group-head span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.opt-group-head span.full {
    color: var(--gold);
}

.segmented {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: var(--surface-3);
}

.segmented button {
    flex: 1;
    min-height: 44px;
    padding: 6px 8px;
    border: none;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    font-weight: 650;
    line-height: 1.2;
    transition: background-color 0.2s, color 0.2s;
}

.segmented button small {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.8;
}

.segmented button.active {
    background: var(--gold);
    color: #000;
}

.opt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.opt-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    background: var(--surface-3);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    transition: background-color 0.15s, border-color 0.15s;
}

.opt-chip .opt-price {
    color: var(--muted);
    font-size: 0.8rem;
}

.opt-chip .opt-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1.5px solid #6e6e73;
    border-radius: 6px;
    color: transparent;
    font-size: 0.6rem;
}

.opt-chip.radio .opt-check {
    border-radius: 50%;
}

.opt-chip.active {
    border-color: var(--gold);
    background: var(--gold-soft);
}

.opt-chip.active .opt-check {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.opt-chip.exclude.active {
    border-color: var(--danger);
    background: rgba(255, 107, 107, 0.12);
}

.opt-chip.exclude.active .opt-check {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.opt-chip:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.stepper {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--surface-3);
}

.stepper button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 46px;
    border: none;
    background: transparent;
    color: var(--text);
}

.stepper button:disabled {
    color: #555;
    cursor: not-allowed;
}

.stepper output {
    min-width: 26px;
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
}

.modal-footer .confirm-add {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 1rem;
    white-space: nowrap;
}

/* ---------- Kontakt: Aktions-Kacheln ---------- */

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.action-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 8px;
    border-radius: 18px;
    background: #161616;
    border: 1px solid transparent;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, border-color 0.2s;
}

.action-grid a:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 210, 0, 0.35);
}

.action-grid i {
    color: var(--gold);
    font-size: 1.5rem;
}

/* ---------- Kasse: Lieferart-Umschalter ---------- */

.mode-switch {
    margin-bottom: 16px;
}

/* ---------- Kasse: Wunschzeit (Vorbestellung) ---------- */

.when-switch {
    margin-bottom: 12px;
}

.when-switch button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.schedule-fields .form-row {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .item-card.compact .item-info {
        padding: 14px 60px 14px 16px;
    }
}

/* Verstecktes Lieferart-Auswahlfeld darf keine Breite einnehmen (sonst ragt es auf dem Handy über den Rand) */
.customer-form select.visually-hidden {
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* ---------- Ausverkauft (im Admin offline geschaltet) ---------- */

.item-card.sold-out {
    position: relative;
    opacity: 0.55;
    cursor: not-allowed;
}

.item-card.sold-out .card-add {
    display: none;
}

.sold-out-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #3a1d1b;
    color: #ff8a80;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ---------- Startseite: Hinweis auf die App ---------- */

.app-promo {
    padding: 0 0 56px;
}

.app-promo-box {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.app-promo-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid rgba(255, 210, 0, 0.3);
    background: #111;
    object-fit: cover;
}

.app-promo-text h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.app-promo-text p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.app-promo-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    min-height: 46px;
    padding: 6px 14px;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.1;
    transition: border-color 0.2s;
}

.store-btn:hover {
    border-color: var(--gold);
}

.store-btn i {
    font-size: 1.5rem;
}

.store-btn small {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.8;
}

@media (max-width: 760px) {
    .app-promo-box {
        grid-template-columns: auto 1fr;
        align-items: start;
        gap: 14px;
        padding: 18px;
    }

    .app-promo-logo {
        width: 44px;
        height: 44px;
        border-radius: 11px;
    }

    .app-promo-links {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .store-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 6px 10px;
        white-space: nowrap;
        font-size: 0.92rem;
    }
}

/* Apple-Karte (MapKit JS) auf Apple-Geräten */
.map .apple-map {
    overflow: hidden;
}

.map-holder {
    position: relative;
}

/* Platzhalter, bis die Karte da ist (auf Apple-Geräten kein Aufblitzen der Google-Karte) */
.map .map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 420px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--muted);
}

.map-loading-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    animation: map-pulse 1s ease-in-out infinite;
}

@keyframes map-pulse {
    50% { opacity: 0.25; transform: scale(0.7); }
}

@media (max-width: 768px) {
    .map .map-loading {
        height: 320px;
    }
}

/* Liefergebiet: Hinweis zum Mindestbestellwert an der Kasse */
.delivery-minimum {
    margin: -6px 0 16px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--subtle);
    font-size: 0.9rem;
}

.delivery-minimum.ok {
    border-color: rgba(111, 220, 140, 0.45);
    background: rgba(111, 220, 140, 0.1);
    color: var(--success);
}

.delivery-minimum.missing {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold);
}

/* Kontaktseite: Liefergebiet */
.delivery-zones {
    margin-bottom: 30px;
}

.delivery-zones .zones-intro {
    margin-bottom: 14px;
    color: var(--subtle);
}

.delivery-zones ul {
    list-style: none;
}

.delivery-zones li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.delivery-zones li:last-child {
    border-bottom: none;
}

.delivery-zones .zone-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.delivery-zones .day {
    color: var(--gold);
    font-weight: 600;
}

.delivery-zones .zone-min {
    font-weight: 600;
    white-space: nowrap;
}
