/* ============================================================
   Hanszeller Hütte — Design-System
   Brand: Mint #BDD9D7 / Petrol #03363D, Logo: Holzschnitt s/w
   Ein Radius-System (12/16), eine Akzentfarbe, Light + Dark.
   ============================================================ */

:root {
    /* Flächen */
    --bg:           #edf3f2;
    --surface:      #fbfdfc;
    --surface-soft: #e3ecea;
    --overlay:      rgba(10, 46, 51, 0.45);

    /* Text */
    --ink:       #0a2e33;
    --ink-soft:  #46666a;
    --ink-faint: #7b9497;

    /* Marke */
    --brand:        #03363d;   /* Petrol: primäre Aktionen, aktive Zustände */
    --brand-strong: #0b4a54;   /* Hover/Press */
    --on-brand:     #eef6f5;
    --mint:         #bdd9d7;   /* Chips, Tints, Sekundärflächen */
    --brand-tint:   rgba(3, 54, 61, 0.07);
    --mint-tint:    rgba(189, 217, 215, 0.45);

    /* Linien */
    --line:        #d2e0de;
    --line-strong: #b5c9c7;

    /* Semantik (getönt auf die Palette) */
    --success:      #256e52;
    --success-tint: rgba(37, 110, 82, 0.12);
    --danger:       #a84237;
    --danger-tint:  rgba(168, 66, 55, 0.10);
    --warn:         #93611a;
    --warn-tint:    rgba(147, 97, 26, 0.12);

    /* Form */
    --r-md: 12px;   /* Buttons, Inputs, Listenzeilen */
    --r-lg: 16px;   /* Karten, Kacheln, Sheets */
    --shadow:    0 1px 2px rgba(10, 46, 51, 0.06), 0 6px 20px rgba(10, 46, 51, 0.07);
    --shadow-lg: 0 8px 40px rgba(10, 46, 51, 0.22);

    /* Typo */
    --font: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont,
            system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 0.15s;
    --t-med:  0.28s;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:           #04191c;
        --surface:      #0a2e33;
        --surface-soft: #0d3940;
        --overlay:      rgba(0, 0, 0, 0.55);

        --ink:       #e2eeec;
        --ink-soft:  #9dbcba;
        --ink-faint: #6d8d8c;

        --brand:        #bdd9d7;   /* Auf Dunkel wird Mint zur Aktionsfarbe */
        --brand-strong: #d3e7e5;
        --on-brand:     #06272c;
        --mint:         #bdd9d7;
        --brand-tint:   rgba(189, 217, 215, 0.10);
        --mint-tint:    rgba(189, 217, 215, 0.08);

        --line:        #123f46;
        --line-strong: #1d525a;

        --success:      #6fc4a1;
        --success-tint: rgba(111, 196, 161, 0.12);
        --danger:       #e08d81;
        --danger-tint:  rgba(224, 141, 129, 0.12);
        --warn:         #d9a865;
        --warn-tint:    rgba(217, 168, 101, 0.12);

        --shadow:    0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.30);
        --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.55);
    }
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    min-height: 100dvh;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
body.no-select {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.num, .price { font-variant-numeric: tabular-nums; }

/* ---------- Views ---------- */
.view { min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------- Splash / Auth ---------- */
.splash {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 28px;
}
.splash-logo { width: 130px; filter: drop-shadow(0 4px 14px rgba(10, 46, 51, 0.18)); }
.spinner {
    width: 26px; height: 26px; border-radius: 50%;
    border: 3px solid var(--line-strong); border-top-color: var(--brand);
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-card {
    margin: auto; width: min(400px, calc(100% - 32px));
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); box-shadow: var(--shadow);
    padding: 32px 28px; display: flex; flex-direction: column; gap: 6px;
}
.auth-logo { width: 96px; margin: 0 auto 6px; }
.auth-card h1 { font-size: 22px; text-align: center; letter-spacing: -0.01em; margin-bottom: 10px; }
.auth-hint { color: var(--ink-soft); font-size: 14px; margin-bottom: 12px; text-align: center; }
.auth-card form { display: flex; flex-direction: column; gap: 6px; }
.auth-card label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Formulare ---------- */
input:not([type="checkbox"]):not([type="file"]), select, textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: 11px 14px;
    color: var(--ink);
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-tint);
}
button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
input::placeholder { color: var(--ink-faint); }
.form-error {
    color: var(--danger); background: var(--danger-tint);
    border-radius: var(--r-md); padding: 9px 12px; font-size: 14px; margin-top: 10px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field .hint { font-size: 12px; color: var(--ink-faint); }
.check-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: var(--r-md);
    padding: 12px 18px;
    font-weight: 600; font-size: 15px;
    white-space: nowrap;
    transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
                border-color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: var(--brand-tint); color: var(--brand); }
.btn-ghost { color: var(--ink-soft); border: 1px solid var(--line-strong); background: var(--surface); }
.btn-danger { background: var(--danger-tint); color: var(--danger); }
.btn-block { width: 100%; margin-top: 14px; }
.btn-small { padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }
.btn-invert { background: var(--on-brand); color: var(--brand); }

/* ---------- Topbar (Mitglieder-App) ---------- */
.topbar {
    display: flex; align-items: center; gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 20;
}
.topbar-logo { width: 34px; height: 34px; object-fit: contain; }
.topbar-title { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; flex: 1; }
.avatar-btn {
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
    background: var(--mint); color: #063137;
    font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--line-strong);
    transition: transform var(--t-fast) var(--ease);
}
.avatar-btn:active { transform: scale(0.94); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.content { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 16px 14px calc(84px + env(safe-area-inset-bottom)); }
.content:has(.tab-panel[data-panel="book"]:not([hidden])) { padding-bottom: 84px; }

/* ---------- Buchen: Getränke-Grid ---------- */
.cat-title {
    font-size: 13px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--ink-soft);
    margin: 20px 2px 10px;
}
.book-area > .cat-title:first-child { margin-top: 4px; }
.drink-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 10px;
}
.drink-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 10px 8px 12px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    box-shadow: var(--shadow);
    transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
    text-align: center;
}
.drink-tile:active { transform: scale(0.95); }
.drink-tile.pop { animation: pop var(--t-med) var(--ease); }
@keyframes pop { 40% { transform: scale(1.06); } }
.drink-photo {
    width: 100%; aspect-ratio: 1;
    border-radius: var(--r-md);
    object-fit: cover;
    background: var(--mint-tint);
}
.drink-photo.placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 700; color: var(--brand);
    background: var(--mint-tint);
}
.drink-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.drink-price { font-size: 13px; color: var(--ink-soft); }
.drink-tile.unavailable { opacity: 0.38; filter: grayscale(0.9); pointer-events: none; }
.drink-tile.low .drink-price::after { content: " · knapp"; color: var(--warn); font-weight: 600; }

/* ---------- Tabbar (nur Verwalter) ---------- */
.tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
    display: flex;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 0 7px;
    font-size: 11.5px; font-weight: 600;
    color: var(--ink-faint);
    transition: color var(--t-fast) var(--ease);
}
.tabbar button.active { color: var(--brand); }
.tabbar button:active { transform: scale(0.96); }

/* ---------- Verwaltung ---------- */
.badge {
    background: var(--danger); color: #fff;
    font-size: 11px; font-weight: 700;
    border-radius: 999px; padding: 1px 7px;
    min-width: 18px; text-align: center;
}
.menu-row {
    width: 100%;
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px 16px;
    box-shadow: var(--shadow);
    text-align: left;
    transition: transform var(--t-fast) var(--ease);
}
.menu-row:active { transform: scale(0.985); }
.menu-row .grow { flex: 1; min-width: 0; }
.menu-row .title { font-weight: 650; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.menu-row .sub { font-size: 13px; color: var(--ink-soft); }
.chevron { color: var(--ink-faint); font-size: 20px; line-height: 1; }
.admin-back {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--brand); font-weight: 600; font-size: 15px;
    padding: 4px 8px 4px 0;
    margin-bottom: 8px;
    transition: transform var(--t-fast) var(--ease);
}
.admin-back:active { transform: scale(0.96); }

/* Drag-Sortierung (Getränke) */
.drag-handle {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 6px;
    margin: -8px 0 -8px -6px;
    cursor: grab;
    touch-action: none;
    flex-shrink: 0;
}
.drag-handle i {
    display: block; width: 18px; height: 2px; border-radius: 2px;
    background: var(--line-strong);
}
.list-row.dragging, .cat-block.dragging {
    opacity: 0.92;
    box-shadow: var(--shadow-lg);
    transform: scale(1.015);
    position: relative; z-index: 5;
}
.cat-block.dragging { background: var(--bg); border-radius: var(--r-md); }
.cat-row { display: flex; align-items: center; gap: 4px; }
.cat-row .drag-handle { padding: 8px 6px; margin: -4px 0; }
.cat-row .drag-handle i { width: 14px; }

.list { display: flex; flex-direction: column; gap: 8px; }
.list-row {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 11px 14px;
    box-shadow: var(--shadow);
}
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 600; font-size: 15px; }
.list-row .sub { font-size: 13px; color: var(--ink-soft); }
.list-row.clickable { cursor: pointer; transition: transform var(--t-fast) var(--ease); }
.list-row.clickable:active { transform: scale(0.985); }
.list-row.inactive { opacity: 0.5; }
.row-avatar {
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: var(--mint); color: #063137;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
}
.row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.row-thumb {
    width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
    background: var(--mint-tint);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--brand);
}
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }

.amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount.pos { color: var(--danger); }     /* offen = schuldet der Hütte */
.amount.neg { color: var(--success); }    /* Guthaben */
.amount.zero { color: var(--ink-faint); }

.pill {
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
    border-radius: 999px; padding: 2px 9px;
    text-transform: uppercase;
}
.pill.admin { background: var(--brand-tint); color: var(--brand); }
.pill.kassier { background: var(--warn-tint); color: var(--warn); }
.pill.guest { background: var(--mint-tint); color: var(--ink-soft); }
.pill.bar { background: var(--success-tint); color: var(--success); }
.pill.paypal { background: var(--brand-tint); color: var(--brand); }

.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 4px 2px 12px;
}
.section-head h2 { font-size: 18px; letter-spacing: -0.01em; }

.empty-state {
    text-align: center; color: var(--ink-soft);
    padding: 44px 20px;
    background: var(--mint-tint);
    border-radius: var(--r-lg);
    font-size: 14.5px;
}
.empty-state strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }

/* ---------- Kassenbuch & Statistik ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.stat-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px 14px;
    box-shadow: var(--shadow);
}
.stat-tile .label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.stat-tile .value { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-top: 2px; }
.stat-tile.accent { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.stat-tile.accent .label { color: var(--on-brand); opacity: 0.75; }

.filter-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pills button {
    padding: 7px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line-strong);
    font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
    white-space: nowrap;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.filter-pills button.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.seg {
    display: flex; gap: 4px;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: 4px;
    margin-bottom: 14px;
}
.seg button {
    flex: 1;
    padding: 9px 4px;
    border-radius: 9px;
    font-size: 14px; font-weight: 600;
    color: var(--ink-soft);
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.seg button.active { background: var(--brand); color: var(--on-brand); }

.totals-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 4px 16px;
    box-shadow: var(--shadow);
    margin-bottom: 6px;
}
.stat-h {
    font-size: 15px; font-weight: 650;
    margin: 24px 2px 10px;
}

.chart {
    display: flex; align-items: stretch; gap: 4px;
    height: 150px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px 12px 8px;
    box-shadow: var(--shadow);
}
.chart-col {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end;
    gap: 3px;
}
.chart-bar {
    width: 100%; max-width: 34px;
    background: var(--brand);
    border-radius: 4px 4px 0 0;
    min-height: 0;
}
.chart-label { font-size: 10px; color: var(--ink-faint); white-space: nowrap; max-width: 100%; overflow: hidden; }
.guv-total { font-weight: 700; border-top: 2px solid var(--line-strong); }
.chart-val { font-size: 11px; font-weight: 700; color: var(--ink-soft); }

.tablewrap { overflow-x: auto; }
.stat-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    font-size: 14px;
    box-shadow: var(--shadow);
}
.stat-table th {
    text-align: left; font-size: 12px; font-weight: 650;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--ink-soft);
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-strong);
    background: var(--surface-soft);
}
.stat-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); }
.stat-table tr:last-child td { border-bottom: none; }
.stat-table th.num, .stat-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.stat-table tr.total td { font-weight: 700; border-top: 2px solid var(--line-strong); background: var(--surface-soft); }
.pos-val { color: var(--success); }
.neg-val { color: var(--danger); }

/* ---------- Sheet ---------- */
.sheet-backdrop {
    position: fixed; inset: 0; z-index: 40;
    background: var(--overlay);
    animation: fade var(--t-med) var(--ease);
}
.sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--surface);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    box-shadow: var(--shadow-lg);
    max-height: 88dvh;
    display: flex; flex-direction: column;
    animation: slide-up var(--t-med) var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
}
.sheet.closing, .sheet-backdrop.closing { animation: none; transition: opacity var(--t-fast) ease, transform var(--t-fast) ease; opacity: 0; }
.sheet.closing { transform: translateY(30px); }
.sheet-handle {
    width: 40px; height: 4px; border-radius: 999px;
    background: var(--line-strong);
    margin: 10px auto 2px;
    flex-shrink: 0;
}
.sheet-content { overflow-y: auto; padding: 14px 20px 24px; }
.sheet-content h2 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 14px; }
.sheet-content h3 { font-size: 14px; color: var(--ink-soft); margin: 18px 0 8px; }
@keyframes slide-up { from { transform: translateY(60px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 640px) {
    .sheet { left: 50%; right: auto; transform: translateX(-50%); width: 520px; border-radius: var(--r-lg); bottom: 24px; }
    .sheet.closing { transform: translateX(-50%) translateY(20px); }
}

/* Profil-Sheet */
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile-avatar {
    width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
    background: var(--mint); color: #063137;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 22px;
    position: relative;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.balance-card {
    background: var(--brand); color: var(--on-brand);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    margin-bottom: 14px;
}
.balance-card .label { font-size: 13px; opacity: 0.8; }
.balance-card .value { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.balance-card .sub { font-size: 13px; opacity: 0.8; margin-top: 2px; }
.pay-hint {
    display: flex; align-items: center; gap: 8px;
    background: var(--warn-tint); color: var(--warn);
    border-radius: var(--r-md);
    padding: 10px 12px;
    font-size: 13.5px; font-weight: 600;
    margin: 10px 0;
}
.qr-holder { display: flex; justify-content: center; padding: 14px; }
.qr-holder canvas, .qr-holder img { border-radius: var(--r-md); background: #fff; padding: 12px; }
.history-row {
    display: flex; align-items: baseline; gap: 10px;
    padding: 9px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
}
.history-row:last-child { border-bottom: none; }
.history-row .grow { flex: 1; }
.history-row .when { font-size: 12.5px; color: var(--ink-faint); }
.history-row.storno { color: var(--ink-faint); text-decoration: line-through; }

/* ---------- Kiosk ---------- */
.kiosk-head {
    display: flex; align-items: center; gap: 12px;
    padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.kiosk-logo { width: 40px; height: 40px; object-fit: contain; }
.kiosk-title { font-weight: 700; font-size: 19px; flex: 1; letter-spacing: -0.01em; }
.kiosk-main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 18px 16px 32px; }

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 12px;
}
.member-tile {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 16px 8px 14px;
    box-shadow: var(--shadow);
    transition: transform var(--t-fast) var(--ease);
    text-align: center;
}
.member-tile:active { transform: scale(0.95); }
.member-avatar {
    width: 68px; height: 68px; border-radius: 50%; overflow: hidden;
    background: var(--mint); color: #063137;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 24px;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.member-tile .full-name { font-size: 11.5px; color: var(--ink-faint); margin-top: -4px; }
.member-tile.guest .member-avatar { background: var(--surface-soft); color: var(--ink-soft); }
.member-tile.add-guest { border-style: dashed; border-color: var(--line-strong); box-shadow: none; background: transparent; }
.member-tile.add-guest .member-avatar { background: transparent; border: 2px dashed var(--line-strong); color: var(--ink-faint); }

.kiosk-booking-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
}
.kiosk-booking-head .who { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; flex: 1; }
.kiosk-drinks .drink-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.kiosk-confirm {
    position: fixed; inset: 0; z-index: 60;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: var(--overlay);
    animation: fade var(--t-fast) var(--ease);
}
.kiosk-confirm .card {
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 34px 42px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-size: 19px; font-weight: 700;
    max-width: min(420px, calc(100% - 40px));
    text-align: center;
}
.kiosk-confirm .check {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--success-tint); color: var(--success);
    display: flex; align-items: center; justify-content: center;
    font-size: 34px;
}

/* ---------- Toast & Update-Banner ---------- */
.toast {
    position: fixed; bottom: calc(86px + env(safe-area-inset-bottom)); left: 50%;
    transform: translateX(-50%);
    z-index: 70;
    background: var(--ink); color: var(--bg);
    border-radius: 999px;
    padding: 11px 20px;
    font-size: 14.5px; font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px;
    max-width: calc(100% - 32px);
    animation: toast-in var(--t-med) var(--ease);
}
.toast button { color: inherit; font-weight: 700; text-decoration: underline; }
/* Buchungs-Toast mit Aktion: Text oben, Button volle Breite darunter */
.toast.stacked {
    flex-direction: column;
    gap: 10px;
    border-radius: var(--r-lg);
    width: calc(100% - 32px);
    max-width: 420px;
    padding: 14px 16px;
    text-align: center;
}
.toast.stacked button {
    width: 100%;
    text-decoration: none;
    padding: 10px 0;
    border-radius: var(--r-md);
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
    transition: transform var(--t-fast) var(--ease);
}
.toast.stacked button:active { transform: scale(0.97); }
@keyframes toast-in { from { transform: translate(-50%, 16px); opacity: 0; } }

.update-banner {
    position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%;
    transform: translateX(-50%);
    z-index: 80;
    background: var(--brand); color: var(--on-brand);
    border-radius: var(--r-md);
    padding: 10px 12px 10px 16px;
    display: flex; align-items: center; gap: 14px;
    font-size: 14px; font-weight: 600;
    box-shadow: var(--shadow-lg);
    max-width: calc(100% - 24px);
}

/* ---------- Offline-Hinweis ---------- */
.offline-chip {
    position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 30;
    background: var(--warn-tint); color: var(--warn);
    font-size: 12.5px; font-weight: 700;
    border-radius: 999px; padding: 5px 12px;
}

/* ---------- Motion-Rücksicht ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
