/* ==========================================================================
   Kantarci Markt – Kundenapp Design-System
   Farben aus dem Logo: Tannengrün, Gold, Creme.
   ========================================================================== */

:root {
    color-scheme: light;

    --bg: #F6F0E6;
    --surface: #FFFDF9;
    --surface-2: #EFE7D9;
    --line: #E6DCCB;
    --line-strong: #D8CBB4;

    --ink: #16261C;
    --ink-2: #4A5A4F;
    --muted: #7D897F;

    --green-950: #0D1E15;
    --green-900: #12261B;
    --green-800: #1A3425;
    --green-700: #234A30;
    --green-600: #2E6A3B;
    --leaf: #4E8F2F;
    --leaf-soft: #E4EED6;

    --gold: #B5872B;
    --gold-bright: #D9B25E;
    --gold-soft: #F4E8C8;

    --danger: #B3362B;
    --danger-soft: #F9E4E0;

    --logo-cream: #FBF7EF;

    --radius-lg: 24px;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    --shadow-sm: 0 1px 2px rgba(22, 38, 28, .05), 0 2px 8px rgba(22, 38, 28, .04);
    --shadow: 0 6px 24px rgba(22, 38, 28, .09);
    --shadow-lg: 0 18px 48px rgba(13, 30, 21, .22);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --font-brand: 'Cinzel', 'Trajan Pro', Georgia, serif;

    --ease: cubic-bezier(.3, .7, .2, 1);
    --gutter: 20px;
    --nav-h: 66px;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #0E1611;
        --surface: #17221B;
        --surface-2: #1F2D24;
        --line: #283A2E;
        --line-strong: #35493B;
        --ink: #F1ECDF;
        --ink-2: #C3CCBF;
        --muted: #8E9C90;
        --leaf: #9CCB6A;
        --leaf-soft: #22341F;
        --gold: #D9B25E;
        --gold-soft: #33301C;
        --danger: #F08A7E;
        --danger-soft: #3A1F1C;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
        --shadow: 0 6px 24px rgba(0, 0, 0, .35);
    }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
[hidden], .d-none { display: none !important; }
.i18n-pending [data-i18n], .i18n-pending [data-status-kind], .i18n-pending [data-hours] { visibility: hidden; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* ── App-Shell ── */
body.app {
    /* Gleicher Ton wie Kopfzeile/Navigation: iOS färbt den Statusleisten-Bereich installierter Web-Apps
       aus dem Seitenhintergrund ein – bei abweichender Farbe entsteht darüber ein milchiger Verlauf. */
    background: var(--surface);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 620px;
    margin: 0 auto;
    position: relative;
}
html { background: var(--surface); }
@media (display-mode: standalone) {
    /* etwas Luft unter der Statusleiste */
    .app-header { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
}
@media (min-width: 621px) {
    html { background: var(--surface-2); }
    body.app { box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
}

.app-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 10px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 20;
    transition: box-shadow .25s var(--ease);
}
.app-header.is-scrolled { box-shadow: 0 6px 20px rgba(22, 38, 28, .08); }

/* Logo-Lockup: Emblem + Wortmarke KANTARCI / MARKT */
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
    width: 46px; height: 46px;
    border-radius: 13px;
    background: var(--logo-cream);
    border: 1px solid var(--line);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-word { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: .06em;
    color: var(--ink);
}
.brand-sub {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .6rem;
    letter-spacing: .42em;
    color: var(--gold);
    padding-left: .1em;
}
.brand-sub::before, .brand-sub::after {
    content: '';
    height: 1px;
    flex: 1;
    min-width: 10px;
    background: var(--gold);
    opacity: .75;
}
.brand-sub::after { margin-left: -.42em; }

.header-action {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--leaf-soft);
    color: var(--green-700);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .02em;
    flex-shrink: 0;
    transition: transform .15s var(--ease);
}
.header-action:active { transform: scale(.93); }
@media (prefers-color-scheme: dark) { .header-action { color: var(--leaf); } }

.app-main {
    background: var(--bg);
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-bottom: 28px;
}

/* ── Bottom-Navigation ── */
.app-nav {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    position: relative;
    z-index: 20;
}
.app-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-height: 50px;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    transition: color .2s;
}
.app-nav a i { font-size: 1.12rem; transition: transform .25s var(--ease); }
.app-nav a.active { color: var(--green-600); font-weight: 700; }
.app-nav a.active i { transform: translateY(-1px) scale(1.06); }
@media (prefers-color-scheme: dark) { .app-nav a.active { color: var(--leaf); } }
.app-nav a:active i { transform: scale(.9); }

.app-nav .nav-card .nav-card-btn {
    width: 54px; height: 54px;
    margin-top: -26px;
    border-radius: 19px;
    display: grid;
    place-items: center;
    background: linear-gradient(150deg, var(--green-700), var(--green-900));
    color: var(--gold-bright);
    box-shadow: 0 8px 20px rgba(18, 38, 27, .35), 0 0 0 5px var(--surface);
    transition: transform .2s var(--ease);
}
.app-nav .nav-card .nav-card-btn i { font-size: 1.3rem; transform: none !important; }
.app-nav .nav-card:active .nav-card-btn { transform: scale(.94); }
.app-nav .nav-card.active .nav-card-btn { box-shadow: 0 8px 20px rgba(18, 38, 27, .35), 0 0 0 5px var(--surface), 0 0 0 7px var(--gold-bright); }

.nav-badge {
    position: absolute;
    top: 0;
    left: calc(50% + 6px);
    min-width: 17px; height: 17px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--gold);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--surface);
}
.nav-badge:empty { display: none; }

/* ── Typo-Bausteine ── */
.eyebrow {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
}
.page-title { padding: 24px var(--gutter) 16px; }
.page-title .lead { font-size: .84rem; color: var(--muted); }
.page-title h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.85rem;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-top: 4px;
}
.page-title.with-back { display: flex; align-items: center; gap: 12px; }
.back-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    display: grid; place-items: center;
    color: var(--ink-2);
    flex-shrink: 0;
}

.sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 26px var(--gutter) 12px;
}
.sec-head h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.22rem;
    letter-spacing: -.015em;
}
.sec-head a, .sec-head button {
    font-size: .78rem;
    font-weight: 700;
    color: var(--green-600);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 0;
}
@media (prefers-color-scheme: dark) { .sec-head a, .sec-head button { color: var(--leaf); } }

.group-label {
    padding: 22px var(--gutter) 8px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: .9rem;
    transition: transform .15s var(--ease), background .2s, box-shadow .2s, opacity .2s;
    text-align: center;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 16px rgba(35, 74, 48, .25); }
.btn-primary:hover { background: var(--green-800); }
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #1d1607; box-shadow: 0 6px 16px rgba(181, 135, 43, .3); }
.btn-soft { background: var(--leaf-soft); color: var(--green-700); }
@media (prefers-color-scheme: dark) { .btn-soft { color: var(--leaf); } }
.btn-outline { background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn-ghost { color: var(--muted); font-weight: 600; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .8rem; border-radius: 11px; }

.spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: -3px;
    opacity: .8;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Karten / Flächen ── */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 0 var(--gutter);
    box-shadow: var(--shadow-sm);
}
.card-pad { padding: 18px; }

/* ── Willkommen ── */
.welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px var(--gutter) 16px;
}
.welcome .lead { font-size: .84rem; color: var(--muted); }
.welcome h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.7rem;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin-top: 2px;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: .72rem;
    font-weight: 700;
    color: var(--ink-2);
    white-space: nowrap;
    flex-shrink: 0;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-pill.is-open .dot { background: #3FA34D; box-shadow: 0 0 0 4px rgba(63, 163, 77, .18); animation: pulse 2.4s ease-in-out infinite; }
.status-pill.is-closed .dot { background: var(--danger); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(63, 163, 77, 0); } }

/* ── Hero-Karussell ── */
.hero { padding: 0; }
.hero-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Scroll-Container schneiden Schatten ab → Innenabstand geben und per Negativ-Margin ausgleichen */
    padding: 12px var(--gutter) 44px;
    margin: -12px 0 -44px;
    scroll-padding: 0 var(--gutter);
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
    position: relative;
    isolation: isolate;
    flex: 0 0 100%;
    scroll-snap-align: center;
    min-height: 196px;
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(140deg, var(--green-900) 0%, var(--green-800) 55%, var(--green-700) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 14px 32px rgba(13, 30, 21, .22);
}
.hero-slide::before {
    /* feines Goldnetz – Anlehnung an die Waagschalen-Ketten */
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 90% at 100% 0%, var(--accent, rgba(217, 178, 94, .38)) 0%, transparent 55%),
        repeating-linear-gradient(135deg, rgba(217, 178, 94, .07) 0 1px, transparent 1px 14px);
}
.hero-slide::after {
    content: '';
    position: absolute;
    right: -46px; bottom: -46px;
    width: 190px; height: 190px;
    border-radius: 50%;
    border: 1px solid rgba(217, 178, 94, .35);
    box-shadow: 0 0 0 22px rgba(217, 178, 94, .06), 0 0 0 46px rgba(217, 178, 94, .04);
    z-index: -1;
}
.hero-emoji {
    position: absolute;
    top: 18px; right: 20px;
    font-size: 3.4rem;
    line-height: 1;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35));
    transform: rotate(8deg);
}
.hero-slide .eyebrow { color: var(--gold-bright); }
.hero-slide h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.72rem;
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 10px 0 6px;
    max-width: 78%;
    text-wrap: balance;
}
.hero-slide p { font-size: .86rem; color: rgba(255, 255, 255, .78); max-width: 82%; }
.hero-cta {
    align-self: flex-start;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 11px;
    background: var(--gold-bright);
    color: #1d1607;
    font-size: .78rem;
    font-weight: 700;
}
.hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; position: relative; z-index: 1; }
.hero-dots button {
    width: 7px; height: 7px;
    border-radius: 4px;
    background: var(--line-strong);
    transition: all .3s var(--ease);
}
.hero-dots button.active { width: 22px; background: var(--gold); }
.hero-skeleton { margin: 0 var(--gutter); height: 196px; border-radius: var(--radius-lg); }

/* ── Kundenkarten-Streifen (Start) ── */
.club-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px var(--gutter) 0;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .15s var(--ease);
}
.club-strip:active { transform: scale(.985); }
.club-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(150deg, var(--green-700), var(--green-900));
    color: var(--gold-bright);
    font-size: 1.15rem;
    flex-shrink: 0;
}
.club-copy { flex: 1; min-width: 0; }
.club-copy strong { display: block; font-size: .95rem; }
.club-copy span { display: block; font-size: .76rem; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-strip > .fa-chevron-right { color: var(--line-strong); font-size: .8rem; }

/* ── Kategorie-Chips ── */
.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px var(--gutter) 26px;
    margin: -6px 0 -22px;
    scroll-padding: 0 var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
.chips.is-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    box-shadow: 0 1px 0 var(--line);
    padding-top: 10px;
    padding-bottom: 22px;
    margin: 0 0 14px;
}
.chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
    transition: all .2s var(--ease);
}
.chip .chip-emoji { font-size: 1.02rem; line-height: 1; }
.chip:active { transform: scale(.96); }
.chip.active {
    background: var(--green-800);
    border-color: var(--green-800);
    color: #fff;
    box-shadow: 0 6px 14px rgba(26, 52, 37, .25);
}
.chip-skeleton { width: 96px; height: 40px; border-radius: 999px; flex-shrink: 0; }

/* ── Produkt-Grid ── */
.p-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 2px var(--gutter) 0;
}
@media (min-width: 540px) { .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.p-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    animation: rise .4s var(--ease) both;
}
.p-card:active { transform: scale(.975); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.p-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    overflow: hidden;
}
.p-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s ease, transform .5s var(--ease);
}
.p-media img.is-loaded { opacity: 1; }
.p-emoji {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 3.2rem;
    background:
        radial-gradient(circle at 50% 60%, rgba(255, 255, 255, .55), transparent 62%),
        var(--tint, var(--surface-2));
}
@media (prefers-color-scheme: dark) { .p-emoji { background: var(--surface-2); } }
.p-badge {
    position: absolute;
    top: 9px; left: 9px;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--green-900);
    color: var(--gold-bright);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .01em;
}
.p-body { display: flex; flex-direction: column; flex: 1; padding: 11px 12px 12px; }
.p-kat {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.p-title {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.p-foot { display: flex; align-items: flex-end; gap: 6px; margin-top: auto; padding-top: 8px; }
.p-prices { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.p-old { font-size: .7rem; color: var(--muted); text-decoration: line-through; }
.p-price { font-size: 1.28rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.p-add {
    margin-left: auto;
    width: 40px; height: 40px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--leaf-soft);
    color: var(--green-700);
    flex-shrink: 0;
    transition: all .2s var(--ease);
}
@media (prefers-color-scheme: dark) { .p-add { color: var(--leaf); } }
.p-add:active { transform: scale(.88); }
.p-add[aria-pressed="true"] { background: var(--green-700); color: #fff; }
.p-valid { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: .68rem; color: var(--muted); }
.p-valid.is-hot { color: var(--danger); font-weight: 700; }

.grid-more { padding: 18px var(--gutter) 0; }
.load-more { grid-column: 1 / -1; text-align: center; padding: 16px; font-size: .82rem; color: var(--muted); }

/* ── Skeleton ── */
.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.p-skel { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.p-skel .skeleton.m { aspect-ratio: 4 / 3; }
.p-skel .b { padding: 12px; display: grid; gap: 8px; }
.p-skel .b span { height: 11px; border-radius: 6px; display: block; }
.p-skel .b span:nth-child(1) { width: 45%; }
.p-skel .b span:nth-child(2) { width: 90%; }
.p-skel .b span:nth-child(3) { width: 55%; height: 18px; margin-top: 6px; }

/* ── Empty State ── */
.empty {
    text-align: center;
    padding: 44px 32px;
    color: var(--muted);
}
.empty-icon {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    border-radius: 22px;
    display: grid; place-items: center;
    background: var(--surface-2);
    color: var(--gold);
    font-size: 1.6rem;
}
.empty h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
.empty p { font-size: .86rem; line-height: 1.55; max-width: 290px; margin: 0 auto; }
.empty .btn { margin-top: 18px; }

/* ── Menü-Gruppen ── */
.menu {
    margin: 0 var(--gutter);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    transition: background .15s;
}
.menu-item:last-child { border-bottom: 0; }
a.menu-item:active, button.menu-item:active { background: var(--surface-2); }
.mi-icon {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid; place-items: center;
    background: var(--leaf-soft);
    color: var(--green-700);
    font-size: .9rem;
    flex-shrink: 0;
}
@media (prefers-color-scheme: dark) { .mi-icon { color: var(--leaf); } }
.mi-icon.gold { background: var(--gold-soft); color: var(--gold); }
.mi-icon.danger { background: var(--danger-soft); color: var(--danger); }
.mi-text { flex: 1; min-width: 0; }
.mi-title { display: block; font-weight: 600; font-size: .9rem; }
.mi-sub { display: block; font-size: .76rem; color: var(--muted); margin-top: 1px; line-height: 1.45; }
.mi-arrow { color: var(--line-strong); font-size: .75rem; }
.menu-item.is-danger .mi-title { color: var(--danger); }

/* ── Switch ── */
.switch {
    width: 50px; height: 30px;
    border-radius: 15px;
    background: var(--line-strong);
    position: relative;
    flex-shrink: 0;
    transition: background .25s var(--ease);
}
.switch::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    transition: transform .25s var(--ease);
}
.switch.on { background: var(--green-600); }
.switch.on::after { transform: translateX(20px); }
[dir="rtl"] .switch::after { left: auto; right: 3px; }
[dir="rtl"] .switch.on::after { transform: translateX(-20px); }

/* ── Sprachen ── */
.lang-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 16px; }
.lang-grid.cols-2 { grid-template-columns: 1fr 1fr; padding: 0; gap: 10px; }
.lang-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 4px 10px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--line);
    background: var(--surface);
    font-size: .74rem;
    font-weight: 700;
    transition: all .2s var(--ease);
}
.lang-card .flag { font-size: 1.4rem; line-height: 1.1; }
.lang-card:active { transform: scale(.96); }
.lang-card.active { border-color: var(--green-600); background: var(--leaf-soft); color: var(--green-700); }
@media (prefers-color-scheme: dark) { .lang-card.active { color: var(--leaf); } }
.lang-card.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -6px; right: -6px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--green-600);
    color: #fff;
    font-size: .5rem;
    display: grid; place-items: center;
    box-shadow: 0 0 0 2px var(--surface);
}
.lang-grid.cols-2 .lang-card { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 14px; font-size: .9rem; }
.lang-grid.cols-2 .lang-card small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }

/* ── Formulare ── */
.seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin: 0 var(--gutter);
    border-radius: 14px;
    background: var(--surface-2);
}
.seg a {
    text-align: center;
    padding: 10px 6px;
    border-radius: 11px;
    font-size: .84rem;
    font-weight: 700;
    color: var(--muted);
    transition: all .2s var(--ease);
}
.seg a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.field {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 13px;
    margin-bottom: 12px;
    transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(46, 106, 59, .12); }
.field > i { width: 46px; text-align: center; color: var(--muted); font-size: .88rem; flex-shrink: 0; }
.field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 14px 14px 14px 0;
    font-size: 16px;
}
.field input::placeholder { color: var(--muted); }
[dir="rtl"] .field input { padding: 14px 0 14px 14px; }
.input {
    width: 100%;
    border: 1.5px solid var(--line);
    background: var(--bg);
    border-radius: 13px;
    padding: 14px;
    font-size: 16px;
    outline: 0;
    margin-bottom: 12px;
}
.input:focus { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(46, 106, 59, .12); }

.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.alert i { margin-top: 3px; }

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-wrap { display: flex; justify-content: center; min-height: 44px; color-scheme: light; }
.switch-line { text-align: center; margin-top: 16px; font-size: .82rem; color: var(--muted); }
.switch-line a { color: var(--green-600); font-weight: 700; }
@media (prefers-color-scheme: dark) { .switch-line a { color: var(--leaf); } }

.auth-card {
    margin: 14px var(--gutter) 0;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
body.ob .auth-card { margin: 14px 0 0; }

/* ── Auth-Kopf (Gast auf Karte) ── */
.auth-hero {
    margin: 20px var(--gutter) 18px;
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    color: #fff;
    background: linear-gradient(140deg, var(--green-900), var(--green-700));
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.auth-hero::after {
    content: '';
    position: absolute;
    right: -50px; top: -50px;
    width: 180px; height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(217, 178, 94, .4);
    box-shadow: 0 0 0 24px rgba(217, 178, 94, .07), 0 0 0 50px rgba(217, 178, 94, .04);
    z-index: -1;
}
.auth-hero .eyebrow { color: var(--gold-bright); }
.auth-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1.15; margin: 8px 0 6px; letter-spacing: -.02em; }
.auth-hero p { font-size: .85rem; color: rgba(255, 255, 255, .78); max-width: 280px; }
.benefits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.benefits > span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: .7rem; font-weight: 600;
}
.benefits i { color: var(--gold-bright); font-size: .66rem; }

/* ── Kundenkarte ── */
.member-card {
    position: relative;
    isolation: isolate;
    margin: 20px var(--gutter) 0;
    border-radius: var(--radius-lg);
    padding: 22px 22px 20px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-950) 0%, var(--green-800) 55%, var(--green-700) 100%);
    box-shadow: var(--shadow-lg);
}
.member-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(90% 70% at 100% 0%, rgba(217, 178, 94, .32), transparent 60%),
        repeating-linear-gradient(135deg, rgba(217, 178, 94, .06) 0 1px, transparent 1px 12px);
}
.member-card::after {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 18px;
    border: 1px solid rgba(217, 178, 94, .28);
    pointer-events: none;
}
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mc-brand { font-family: var(--font-brand); font-weight: 700; font-size: .95rem; letter-spacing: .1em; }
.mc-brand small { display: block; font-family: var(--font-body); font-size: .54rem; letter-spacing: .4em; color: var(--gold-bright); margin-top: 3px; }
.mc-chip {
    width: 40px; height: 40px;
    border-radius: 11px;
    overflow: hidden;
    background: var(--logo-cream);
}
.mc-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; margin-top: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.mc-number { margin-top: 5px; font-size: .78rem; letter-spacing: .24em; color: var(--gold-bright); font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-bottom { display: flex; justify-content: space-between; gap: 14px; margin-top: 22px; }
.mc-bottom div { min-width: 0; }
.mc-bottom span { display: block; font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.mc-bottom strong { display: block; font-size: .78rem; font-weight: 600; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.scan-panel {
    margin: -18px calc(var(--gutter) + 12px) 0;
    position: relative;
    z-index: 2;
    background: #fff;
    color: #16261C;
    border-radius: var(--radius);
    padding: 20px 18px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    color-scheme: light;
}
.scan-qr { display: inline-grid; place-items: center; min-height: 176px; cursor: zoom-in; }
.scan-qr img, .scan-qr canvas { display: block; }
.scan-panel h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-top: 12px; }
.scan-panel p { font-size: .78rem; color: #6d786e; margin-top: 2px; }
.scan-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .7rem; font-weight: 700; color: var(--green-600); }

.qr-full {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #fff;
    color: #16261C;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    text-align: center;
    color-scheme: light;
}
.qr-full.visible { display: flex; animation: fade .2s ease both; }
.qr-full strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.qr-full .num { letter-spacing: .24em; font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.qr-full small { color: #6d786e; }
@keyframes fade { from { opacity: 0; } }

/* ── Bottom-Sheet ── */
.sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(9, 20, 14, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.sheet-overlay.visible { display: flex; animation: fade .2s ease both; }
.sheet {
    width: 100%;
    max-width: 620px;
    max-height: 92dvh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 26px 26px 0 0;
    padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    animation: sheet-up .32s var(--ease) both;
}
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 16px; }
.sheet h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; text-align: center; }
.sheet > p { font-size: .84rem; color: var(--muted); text-align: center; margin: 6px auto 18px; max-width: 320px; line-height: 1.5; }
.sheet-icon {
    width: 58px; height: 58px;
    margin: 4px auto 14px;
    border-radius: 18px;
    display: grid; place-items: center;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 1.3rem;
}
.sheet-btns { display: grid; gap: 10px; margin-top: 6px; }
.sheet-msg { font-size: .8rem; font-weight: 600; text-align: center; min-height: 1.2em; margin-bottom: 8px; color: var(--danger); }

/* Angebots-Detail */
.offer-sheet { padding-left: 0; padding-right: 0; padding-top: 0; }
.offer-sheet .os-media { position: relative; aspect-ratio: 16 / 11; background: var(--surface-2); border-radius: 26px 26px 0 0; overflow: hidden; }
.offer-sheet .os-media img { width: 100%; height: 100%; object-fit: cover; }
.offer-sheet .os-media .p-emoji { font-size: 5.5rem; }
.offer-sheet .os-close {
    position: absolute; top: 14px; right: 14px;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: #16261C;
    display: grid; place-items: center;
    box-shadow: var(--shadow-sm);
}
.offer-sheet .os-body { padding: 18px 20px 0; }
.offer-sheet h3 { text-align: left; font-size: 1.45rem; line-height: 1.2; margin-top: 4px; }
.offer-sheet .os-desc { font-size: .9rem; color: var(--ink-2); margin-top: 8px; line-height: 1.55; }
.os-price-row { display: flex; align-items: flex-end; gap: 10px; margin-top: 16px; }
.os-price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.os-old { font-size: .95rem; color: var(--muted); text-decoration: line-through; padding-bottom: 3px; }
.os-save { margin-left: auto; padding: 6px 10px; border-radius: 9px; background: var(--gold-soft); color: var(--gold); font-size: .76rem; font-weight: 800; }
.os-meta { display: flex; align-items: center; gap: 7px; margin: 12px 0 18px; font-size: .78rem; color: var(--muted); }
.os-meta.is-hot { color: var(--danger); font-weight: 700; }

/* ── Toast ── */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 20px);
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: calc(100vw - 40px);
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--green-900);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: all .3s var(--ease);
}
.toast i { color: var(--gold-bright); }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ── Einkaufsliste ── */
.list-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 var(--gutter) 16px;
    padding: 16px 18px;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, var(--green-900), var(--green-700));
    box-shadow: 0 10px 26px rgba(13, 30, 21, .2);
}
.ring { position: relative; width: 58px; height: 58px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.ring .track { stroke: rgba(255, 255, 255, .14); }
.ring .bar { stroke: var(--gold-bright); transition: stroke-dashoffset .5s var(--ease); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
.lp-copy { flex: 1; min-width: 0; }
.lp-copy strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.lp-copy span { font-size: .78rem; color: rgba(255, 255, 255, .72); }
.lp-total { text-align: right; }
.lp-total small { display: block; font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.lp-total b { font-size: 1.05rem; color: var(--gold-bright); font-variant-numeric: tabular-nums; }

.add-form {
    display: flex;
    gap: 8px;
    margin: 0 var(--gutter);
    padding: 6px;
    border-radius: 17px;
    background: var(--surface);
    border: 1.5px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s, box-shadow .2s;
}
.add-form:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(46, 106, 59, .12); }
.add-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 10px; font-size: 16px; }
.add-form input::placeholder { color: var(--muted); }
.add-form button {
    width: 46px; height: 46px;
    border-radius: 13px;
    background: var(--green-700);
    color: #fff;
    display: grid; place-items: center;
    flex-shrink: 0;
    transition: transform .15s var(--ease);
}
.add-form button:active { transform: scale(.92); }

.suggest { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 12px var(--gutter) 6px; margin-bottom: -4px; }
.suggest::-webkit-scrollbar { display: none; }
.suggest button {
    flex-shrink: 0;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px dashed var(--line-strong);
    font-size: .76rem;
    font-weight: 600;
    color: var(--ink-2);
    display: inline-flex; align-items: center; gap: 6px;
}
.suggest button:active { background: var(--surface-2); }

.list-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px var(--gutter) 8px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.list-group-head button { font-size: .74rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.list-items { margin: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    animation: rise .3s var(--ease) both;
    transition: opacity .25s, background .25s;
}
.li.removing { opacity: 0; transform: translateX(30px); transition: all .22s var(--ease); }
.li-check {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--line-strong);
    display: grid; place-items: center;
    color: transparent;
    font-size: .7rem;
    flex-shrink: 0;
    transition: all .2s var(--ease);
}
.li.done .li-check { background: var(--green-600); border-color: var(--green-600); color: #fff; transform: scale(1.04); }
.li-thumb {
    width: 42px; height: 42px;
    border-radius: 11px;
    background: var(--surface-2);
    display: grid; place-items: center;
    font-size: 1.3rem;
    overflow: hidden;
    flex-shrink: 0;
}
.li-thumb img { width: 100%; height: 100%; object-fit: cover; }
.li-main { flex: 1; min-width: 0; }
.li-name { display: block; font-weight: 600; font-size: .92rem; line-height: 1.3; overflow-wrap: anywhere; }
.li-meta { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.li-tag { padding: 1px 6px; border-radius: 5px; background: var(--gold-soft); color: var(--gold); font-weight: 800; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; }
.li.done { background: transparent; box-shadow: none; border-style: dashed; }
.li.done .li-name { text-decoration: line-through; color: var(--muted); }
.li.done .li-thumb { opacity: .5; filter: grayscale(.6); }
.qty { display: flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 11px; padding: 3px; flex-shrink: 0; }
.qty button { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .7rem; color: var(--ink-2); }
.qty button:active { background: var(--surface); }
.qty span { min-width: 20px; text-align: center; font-weight: 700; font-size: .84rem; font-variant-numeric: tabular-nums; }
.li.done .qty { display: none; }
.li-del { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); font-size: .8rem; flex-shrink: 0; }
.li-del:active { background: var(--danger-soft); color: var(--danger); }
.list-actions { display: flex; gap: 10px; padding: 22px var(--gutter) 0; }
.list-actions .btn { flex: 1; }

/* ── Mein Markt ── */
.market-hero {
    position: relative;
    isolation: isolate;
    margin: 20px var(--gutter) 0;
    padding: 22px 20px 20px;
    border-radius: var(--radius-lg);
    background: var(--logo-cream);
    border: 1px solid var(--line);
    text-align: center;
    overflow: hidden;
    color: #16261C;
    color-scheme: light;
}
.market-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(80% 60% at 50% 0%, #fff8ea, transparent 70%);
}
.market-hero img { width: 200px; max-width: 66%; margin: 0 auto 10px; }
.market-hero .mh-name { font-family: var(--font-brand); font-weight: 700; font-size: 1.7rem; letter-spacing: .07em; line-height: 1.05; }
.market-hero .mh-sub {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-top: 7px;
    font-size: .72rem; font-weight: 700; letter-spacing: .5em; color: #B5872B; padding-left: .5em;
}
.market-hero .mh-sub::before, .market-hero .mh-sub::after { content: ''; width: 34px; height: 1px; background: #B8892B; opacity: .8; }
.market-hero .mh-sub::after { margin-left: -.5em; }
.market-hero .mh-slogan { font-family: var(--font-display); font-style: italic; font-size: .95rem; color: #4A5A4F; margin-top: 12px; }
.market-hero .status-pill { margin-top: 14px; background: #fff; border-color: #E6DCCB; color: #4A5A4F; }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px var(--gutter) 0; }
.quick-actions.n3 { grid-template-columns: repeat(3, 1fr); }
.quick-actions.n2 { grid-template-columns: repeat(2, 1fr); }
.quick-actions.n1 { grid-template-columns: 1fr; }
.qa {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 4px 11px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: .72rem;
    font-weight: 700;
    color: var(--ink-2);
    box-shadow: var(--shadow-sm);
    transition: transform .15s var(--ease);
}
.qa:active { transform: scale(.95); }
.qa i { font-size: 1.05rem; color: var(--green-600); }
@media (prefers-color-scheme: dark) { .qa i { color: var(--leaf); } }

.hours { padding: 6px 16px; }
.hours-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.hours-row:last-child { border-bottom: 0; }
.hours-row span:last-child { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hours-row.today { font-weight: 700; }
.hours-row.today span:first-child::after {
    content: attr(data-today);
    margin-inline-start: 8px;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: .6rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    vertical-align: 1px;
}
.hours-row.closed span:last-child { color: var(--muted); }
.hours-raw { padding: 14px 16px; font-size: .88rem; line-height: 1.7; color: var(--ink-2); }

.address-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.address-card .mi-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 1.05rem; }
.address-card address { flex: 1; font-style: normal; font-size: .9rem; line-height: 1.45; min-width: 0; }
.address-card address small { display: block; font-size: .7rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }

.app-foot { text-align: center; padding: 26px var(--gutter) 8px; font-size: .68rem; color: var(--muted); line-height: 1.7; }

/* ── Kassenbons ── */
.bon-list { padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.bon-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform .15s var(--ease);
    animation: rise .35s var(--ease) both;
}
.bon-card:active { transform: scale(.985); }
.bon-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex-shrink: 0; }
.bon-main { flex: 1; min-width: 0; }
.bon-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bon-datum { font-weight: 700; font-size: .9rem; }
.bon-summe { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bon-items { font-size: .76rem; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bon-meta { font-size: .68rem; color: var(--muted); margin-top: 4px; letter-spacing: .02em; }
.bon-more { margin: 14px var(--gutter) 0; }

.bon-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; }
.bon-modal[aria-hidden="false"] { opacity: 1; visibility: visible; pointer-events: auto; }
.bon-modal-backdrop { position: absolute; inset: 0; background: rgba(9, 20, 14, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.bon-modal-box { position: relative; background: #fff; color: #16261C; color-scheme: light; border-radius: 22px; box-shadow: var(--shadow-lg); max-width: 400px; width: 100%; max-height: 90dvh; display: flex; flex-direction: column; overflow: hidden; }
.bon-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #E6DCCB; background: #F6F0E6; }
.bon-modal-btn { padding: 9px 13px; border-radius: 11px; border: 1px solid #E6DCCB; background: #fff; font-size: .8rem; font-weight: 700; color: #16261C; display: inline-flex; align-items: center; gap: 7px; }
.bon-modal-btn:active { background: #EFE7D9; }
.bon-modal-btn i { color: #2E6A3B; }
.bon-modal-close { margin-left: auto; width: 40px; height: 40px; color: #7D897F; font-size: 1.1rem; border-radius: 11px; }
.bon-modal-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 22px 20px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.bon-receipt { font-family: var(--font-body); color: #16261C; font-size: 14px; text-align: center; max-width: 320px; margin: 0 auto; background: #fff; }
.bon-receipt .receipt-title { font-family: Georgia, serif; font-weight: 700; font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; }
.bon-receipt .receipt-sub { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: #B5872B; margin: 4px 0 16px; font-weight: 700; }
.bon-receipt .receipt-meta { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-bottom: 16px; font-size: .8rem; color: #6b7280; }
.bon-receipt table { width: 100%; border-collapse: collapse; margin-bottom: 12px; text-align: left; }
.bon-receipt th { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: #9ca3af; padding: 6px 0; border-bottom: 1px dashed #d8cbb4; font-weight: 700; }
.bon-receipt td { padding: 7px 0; border-bottom: 1px dashed #e6dccb; font-size: .84rem; vertical-align: top; }
.bon-receipt th:not(:first-child), .bon-receipt td:not(:first-child) { text-align: right; padding-left: 8px; white-space: nowrap; }
.bon-receipt .receipt-summe { font-weight: 800; font-size: 1.2rem; text-align: right; margin-top: 8px; padding-top: 10px; border-top: 2px solid #16261C; }
.bon-receipt .receipt-tse { margin-top: 16px; padding-top: 12px; border-top: 1px dashed #d8cbb4; font-size: .72rem; color: #6b7280; text-align: center; }
.bon-receipt .receipt-tse-title { font-weight: 700; margin-bottom: 6px; color: #374151; }
.bon-receipt .receipt-tse-row { margin-bottom: 4px; word-break: break-all; }
.bon-receipt .tse-qr-wrap { margin-top: 12px; display: flex; justify-content: center; }
.bon-receipt .tse-qr-wrap img { width: 180px; height: 180px; }

/* ── Onboarding / Auth (Vollbild) ── */
@media (prefers-color-scheme: light) { html:has(body.ob) { background: var(--logo-cream); } }
body.ob {
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.ob-hero {
    position: relative;
    isolation: isolate;
    flex-shrink: 0;
    padding: calc(26px + env(safe-area-inset-top, 0px)) 24px 30px;
    text-align: center;
    background: var(--logo-cream);
    color: #16261C;
    color-scheme: light;
    border-radius: 0 0 34px 34px;
    overflow: hidden;
    box-shadow: 0 1px 0 #E6DCCB;
}
.ob-hero::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(85% 60% at 50% 0%, #fffaf0, transparent 70%);
}
.ob-hero img { width: 230px; max-width: 68%; margin: 0 auto 8px; transition: width .4s var(--ease); }
.ob-hero.compact img { width: 120px; }
.ob-hero .mh-name { font-family: var(--font-brand); font-weight: 700; font-size: 2rem; letter-spacing: .07em; line-height: 1.05; margin-top: 6px; }
.ob-hero.compact .mh-name { font-size: 1.4rem; }
.ob-hero .mh-sub {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-top: 8px; padding-left: .5em;
    font-size: .78rem; font-weight: 700; letter-spacing: .5em; color: #B5872B;
}
.ob-hero .mh-sub::before, .ob-hero .mh-sub::after { content: ''; width: 40px; height: 1px; background: #B8892B; opacity: .8; }
.ob-hero .mh-sub::after { margin-left: -.5em; }
.ob-back {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top, 0px)); left: 16px;
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: 1px solid #E6DCCB; color: #4A5A4F;
    display: grid; place-items: center;
}
[dir="rtl"] .ob-back { left: auto; right: 16px; transform: scaleX(-1); }
.ob-body { flex: 1; padding: 22px 22px 8px; }
.ob-body h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.15; }
.ob-body .lead { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.ob-label { margin: 22px 0 10px; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ob-dots { display: flex; justify-content: center; gap: 6px; padding-top: 18px; }
.ob-dots span { width: 7px; height: 7px; border-radius: 4px; background: var(--line-strong); transition: all .35s var(--ease); }
.ob-dots span.active { width: 24px; background: var(--gold); }
.ob-step { display: none; animation: step-in .4s var(--ease) both; }
.ob-step.active { display: block; }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } }
.ob-push {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--line);
    background: var(--surface);
    width: 100%;
    text-align: left;
    transition: border-color .2s, background .2s;
}
.ob-push.active { border-color: var(--green-600); background: var(--leaf-soft); }
.ob-push .mi-title { font-weight: 700; }
.ob-benefits { display: grid; gap: 10px; margin-top: 18px; }
.ob-benefit { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.ob-cta { flex-shrink: 0; padding: 14px 22px calc(26px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; }
.ob-skip { display: block; text-align: center; padding: 10px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.ob-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); margin-top: 16px; }
body.ob .seg { margin: 18px 0 0; }

/* ── Bewegung reduzieren ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
