/* ============ Grundlagen ============ */
:root {
  --bg: #0b0b0b;
  --surface: #151515;
  --surface-2: #1f1f1f;
  --line: #2b2b2b;
  --text: #f3f3f3;
  --muted: #a1a1a1;
  --accent: #e5383b;
  --accent-hi: #ff5457;
  --ok: #3ecf8e;
  --radius: 14px;
  --header-h: 64px;
  --shadow: 0 10px 40px rgba(0,0,0,.5);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --script: "Brush Script MT", "Segoe Script", "Lucida Handwriting", "Apple Chancery", cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============ Kopfzeile ============ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11,11,11,.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar__inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 16px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px 20px; align-items: center;
}
/* Logo wie auf dem Leinwand-Schild im Shop: „A“ + „Feal“ als Koralle-Pinselschrift, „ROMA“ kräftig in Weiß.
   Schriften liegen im Ordner fonts/ (Days One + Kaushan Script, freie OFL-Lizenz) – keine externen Server nötig. */
@font-face { font-family: "AF Logo"; src: url("fonts/DaysOne-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "AF Pinsel"; src: url("fonts/KaushanScript-Regular.woff2") format("woff2"); font-display: swap; }
:root { --logo-koralle: #ef7d5f; --logo-weiss: #f6f4ef; }
.logo { display: inline-flex; align-items: baseline; gap: .3em; text-decoration: none; color: var(--text); white-space: nowrap; }
.logo__a { font-family: "AF Logo", var(--font); font-weight: 400; letter-spacing: .03em; text-transform: uppercase; font-size: 1.15rem; color: var(--logo-weiss); -webkit-text-stroke: .025em currentColor; }
.logo__an { font-family: "AF Pinsel", var(--script); font-size: 1.6em; line-height: 0; color: var(--logo-koralle); letter-spacing: 0; margin-right: .03em; -webkit-text-stroke: 0; }
.logo__b { font-family: "AF Pinsel", var(--script); font-size: 1.9rem; line-height: 1; color: var(--logo-koralle); font-style: normal; }
.logo--big .logo__a { font-size: 1.6rem; }
.logo--big .logo__b { font-size: 2.6rem; }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 14px; height: 44px; max-width: 560px; width: 100%; justify-self: center;
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 20px; height: 20px; fill: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 100%; font-size: 16px; }
.search input::-webkit-search-cancel-button { filter: invert(1); }

.cartbtn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--accent); border: 0; color: #fff; font-weight: 600;
}
.cartbtn:hover { background: var(--accent-hi); }
.cartbtn svg { width: 20px; height: 20px; fill: currentColor; }
.badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #fff; color: var(--accent); font-size: .78rem; font-weight: 800;
  display: inline-grid; place-items: center;
}

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(ellipse at 20% 40%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(ellipse at 75% 60%, rgba(255,255,255,.07), transparent 50%),
    radial-gradient(ellipse at 50% 120%, rgba(229,56,59,.18), transparent 60%),
    #050505;
  border-bottom: 1px solid var(--line);
}
.hero__inner { max-width: 1280px; margin: 0 auto; padding: 36px 16px 30px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -.01em; }
.hero p { margin: 0; color: var(--muted); max-width: 60ch; }

/* ============ Toolbar ============ */
.toolbar { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top)); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.toolbar__inner { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .92rem; white-space: nowrap;
}
.chip small { color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: #444; }
.chip[aria-pressed="true"] { background: var(--text); color: #000; border-color: var(--text); }
.chip[aria-pressed="true"] small { color: #555; }
.chip--neu[aria-pressed="false"] { border-color: rgba(229,56,59,.6); }
.toolbar__right { display: flex; gap: 12px; align-items: center; flex: none; }
select {
  height: 36px; padding: 0 30px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat;
}
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); cursor: pointer; white-space: nowrap; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { width: 36px; height: 20px; border-radius: 999px; background: #3a3a3a; position: relative; transition: background .2s; }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============ Grid & Karten ============ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 16px 16px 40px; min-height: 50vh; }
.count { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: #3a3a3a; }
.card__open { all: unset; cursor: pointer; display: flex; flex-direction: column; flex: 1; }
.card__open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__kat { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card__name { font-weight: 650; line-height: 1.3; }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.preis { font-weight: 700; }
.preis small { color: var(--muted); font-weight: 400; }
.preis--anfrage { color: var(--muted); font-weight: 500; font-size: .9rem; }
.card__add {
  position: absolute; right: 10px; bottom: 10px;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--accent); color: #fff; font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(229,56,59,.35);
}
.card__add:hover { background: var(--accent-hi); }
.card.is-out { opacity: .6; }
.card .incart {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: #fff; color: #000; font-size: .75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px;
}

.media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #111; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #121212; }
.ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 800; font-size: 2.2rem; letter-spacing: .04em; color: rgba(255,255,255,.85);
  background:
    radial-gradient(circle at 30% 30%, hsla(var(--h), 55%, 38%, .5), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,.08), transparent 50%),
    #121212;
}
.tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.tag { font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.tag--neu { background: var(--accent); color: #fff; }
.tag--out { background: #333; color: #ddd; }

.skeleton { min-height: 300px; background: linear-gradient(100deg, #151515 30%, #1d1d1d 50%, #151515 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

.empty, .more, .error { text-align: center; padding: 30px 0; color: var(--muted); }
.error { color: #ffb4b4; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hi); }
.btn--primary:disabled { opacity: .5; cursor: not-allowed; }
.btn--ghost { background: transparent; border-color: #3a3a3a; color: var(--text); }
.btn--ghost:hover { border-color: #666; }
.btn--block { width: 100%; height: 52px; font-size: 1.02rem; }

/* ============ Dialoge ============ */
dialog { padding: 0; border: 0; background: transparent; color: var(--text); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.close {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.6); color: #fff; font-size: 1.6rem; line-height: 1;
}
.close:hover { background: rgba(0,0,0,.85); }

/* Produktdetail */
.sheet { width: min(920px, calc(100vw - 32px)); margin: auto; }
.sheet__panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-height: min(86vh, 720px); min-height: min(440px, 86vh); }
.detail__media { aspect-ratio: auto; min-height: 100%; }
.detail__media .ph { font-size: 4rem; }
.detail__body { min-width: 0; padding: 28px 28px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.detail__meta { margin: 0; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.detail h2 { margin: 0; font-size: 1.6rem; line-height: 1.2; padding-right: 40px; }
.detail__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.detail__preis { margin: 4px 0 0; font-size: 1.4rem; font-weight: 800; }
.detail__text { color: #d6d6d6; white-space: pre-line; }
.detail__text.leer { color: var(--muted); font-style: italic; }
.detail__actions { margin-top: auto; padding-top: 14px; display: flex; gap: 12px; align-items: center; }
.detail__actions .btn { flex: 1; }
.out-note { margin-top: auto; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--muted); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; height: 46px; background: var(--surface-2); flex: none; }
.stepper button { width: 42px; height: 100%; border: 0; background: transparent; font-size: 1.3rem; }
.stepper button:hover { color: var(--accent-hi); }
.stepper output { min-width: 32px; text-align: center; font-weight: 700; }
.stepper--sm { height: 36px; border-radius: 10px; }
.stepper--sm button { width: 34px; font-size: 1.1rem; }

/* Warenkorb-Drawer */
.drawer { margin: 0 0 0 auto; height: 100dvh; width: min(460px, 100vw); }
.drawer[open] { animation: slidein .25s ease; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.drawer__panel { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); }
.drawer__head { position: relative; padding: 18px 20px; border-bottom: 1px solid var(--line); padding-top: calc(18px + env(safe-area-inset-top)); }
.drawer__head h2 { margin: 0; font-size: 1.25rem; }
.drawer__head .close { top: calc(8px + env(safe-area-inset-top)); background: var(--surface-2); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; -webkit-overflow-scrolling: touch; }
.drawer__foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .media { width: 56px; border-radius: 10px; }
.line .ph { font-size: 1rem; }
.line__name { font-weight: 600; line-height: 1.3; }
.line__sub { color: var(--muted); font-size: .85rem; }
.line__right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line__del { border: 0; background: none; color: var(--muted); font-size: .8rem; padding: 0; text-decoration: underline; }
.line__del:hover { color: var(--accent-hi); }
.leer { text-align: center; padding: 30px 0 10px; color: var(--muted); }
.summe { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; font-weight: 700; font-size: 1.05rem; }
.summe small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.summe:empty { display: none; }

form h3 { margin: 18px 0 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .92rem; font-weight: 600; }
.req { color: var(--accent-hi); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 12px; font-size: 16px; outline: none; color-scheme: dark;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field.invalid input { border-color: var(--accent-hi); }
#kundennummer { font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; }
.field small { color: var(--muted); font-size: .8rem; }
.err { color: #ff8a8c !important; font-size: .85rem; }
.err:empty { display: none; }
.err--block { padding: 10px 12px; border-radius: 10px; background: rgba(229,56,59,.12); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: #d6d6d6; margin: 2px 0 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.info { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; }

.success { position: absolute; inset: 0; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 24px; gap: 6px; overflow-y: auto; }
.success__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #04130b; font-size: 2.4rem; font-weight: 900; display: grid; place-items: center; margin-bottom: 8px; }
.success h2 { margin: 0; }
.success p { margin: 0; }
.muted { color: var(--muted); }
.success__list { width: 100%; max-width: 360px; text-align: left; background: var(--surface-2); border-radius: 12px; padding: 14px; font: .88rem/1.6 var(--font); white-space: pre-wrap; margin: 10px 0 14px; }

/* Schwebende Warenkorb-Leiste */
.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25;
  display: none; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 18px; border-radius: 16px; border: 0;
  background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.cartbar__go { font-weight: 600; opacity: .95; }

/* Anmeldung */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 25% 20%, rgba(255,255,255,.09), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(255,255,255,.06), transparent 50%),
    radial-gradient(ellipse at 50% 110%, rgba(229,56,59,.22), transparent 60%), #050505; }
.login__box { width: 100%; max-width: 400px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.login h1 { margin: 10px 0 0; font-size: 1.6rem; }
.login p { margin: 0; }
.login form { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
#loginCode { width: 100%; height: 58px; text-align: center; font-size: 1.4rem; font-weight: 700; letter-spacing: .12em;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; outline: none; color-scheme: dark; }
#loginCode::placeholder { font-weight: 500; letter-spacing: .02em; color: #6b6b6b; font-size: 1.1rem; }
#loginCode:focus { border-color: var(--accent); }
.loginpin { width: 100%; display: flex; flex-direction: column; gap: 8px; animation: pinRein .25s ease; }
.loginpin input { width: 100%; height: 58px; text-align: center; font-size: 1.5rem; font-weight: 700; letter-spacing: .4em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; outline: none; color-scheme: dark; color: inherit; }
.loginpin input::placeholder { letter-spacing: .05em; font-weight: 500; font-size: 1.1rem; color: #6b6b6b; }
.loginpin input:focus { border-color: var(--accent); }
.loginpin__hint { margin: 0; line-height: 1.4; }
@keyframes pinRein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
#pinDlg input[type=password] { letter-spacing: .3em; font-size: 1.2rem; text-align: center; }
.login__hint { color: var(--muted); font-size: .9rem; }
.login__hint.small { font-size: .8rem; }
.login__links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: .85rem; margin-top: 6px; }
.login__links a { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.is-loading::after { content: ""; position: fixed; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #333; border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Benutzer-Menü */
.topbar__actions { display: flex; gap: 8px; align-items: center; }
.usermenu { position: relative; }
.userbtn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: .9rem; }
.userbtn svg { width: 18px; height: 18px; fill: var(--muted); }
.userbtn:hover { border-color: #444; }
.usermenu__pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; }
.usermenu__who { margin: 0; padding: 8px 10px 10px; font-size: .9rem; border-bottom: 1px solid var(--line); margin-bottom: 6px; line-height: 1.45; }
.usermenu__item { display: block; width: 100%; text-align: left; padding: 10px; border-radius: 10px; border: 0; background: none;
  color: var(--text); text-decoration: none; font-size: .95rem; }
.usermenu__item:hover { background: var(--surface-2); }
.adminbar { background: #2a1415; border-bottom: 1px solid #4a2324; color: #ffd0d0; text-align: center; padding: 8px 16px; font-size: .9rem; }
.adminbar a { color: #fff; font-weight: 700; margin-left: 6px; }
.kundeinfo { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--line); margin-bottom: 14px; }
.kundeinfo span { font-size: .8rem; color: var(--muted); }

/* Varianten, Bestand, Zeitfenster */
.varianten { display: flex; flex-wrap: wrap; gap: 8px; }
.varianten:empty { display: none; }
.var { min-height: 40px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  font-weight: 600; display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.var small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.var[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.var:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.bestandhinweis { margin: 0; color: #f0b429; font-weight: 600; font-size: .92rem; }
.tag--knapp { background: #f0b429; color: #000; }
.fselect { width: 100%; height: 48px; background-color: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: 16px; padding: 0 36px 0 12px; }
.field.invalid .fselect { border-color: var(--accent-hi); }
.success__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Meine Bestellungen */
.mb { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 12px 0; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.mb__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mb__nr { font-weight: 800; }
.mb__meta { color: var(--muted); font-size: .85rem; }
.mb ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.mb li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.mb__sum { display: flex; justify-content: space-between; font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; }
.mb__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mb__btns .btn { height: 40px; font-size: .9rem; flex: 1; }
.st { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 6px; white-space: nowrap; background: #333; }
.st--neu { background: #2b3b55; color: #cfe0ff; }
.st--bereit { background: #f0b429; color: #000; }
.st--abgeholt { background: var(--ok); color: #000; }
.st--storniert { background: #3a3a3a; color: #bbb; }

/* Banner */
.banners { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.banners:not(:empty) { padding-top: 12px; }
.bn { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.bn__icon { font-size: 1.3rem; flex: none; }
.bn__text { flex: 1; min-width: 0; font-size: .95rem; }
.bn__text small { display: block; color: var(--muted); }
.bn__btns { display: flex; gap: 6px; flex: none; }
.bn .btn { height: 36px; padding: 0 12px; font-size: .88rem; }
.bn__x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 1.2rem; }
.bn--ok { background: #10291d; border-color: #1f5c3e; }
.bn--msg { background: #2a2410; border-color: #6b5a1c; }
.bn--da { background: #1d1f33; border-color: #353b7a; }

/* Zuletzt bestellt */
.zuletzt { margin-bottom: 18px; }
.zuletzt h2 { font-size: 1rem; margin: 0 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.zuletzt__liste { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.zk { flex: none; width: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.zk .media { aspect-ratio: 4 / 3; }
.zk .ph { font-size: 1.4rem; }
.zk__body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.zk__name { font-size: .85rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zk__preis { font-size: .85rem; color: var(--muted); margin-top: auto; }
.zk__add { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 1.3rem; display: grid; place-items: center; }
.zk--aus { opacity: .5; }
.zk__open { all: unset; cursor: pointer; display: flex; flex-direction: column; flex: 1; }

/* Favoriten */
.herz { position: absolute; top: 8px; right: 8px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.55); color: #fff; font-size: 1.15rem; line-height: 1; display: grid; place-items: center; }
.herz[aria-pressed="true"] { color: var(--accent-hi); }
.herz--gross { position: static; width: 42px; height: 42px; background: var(--surface-2); flex: none; font-size: 1.35rem; }
.card .incart { top: auto; bottom: 10px; right: auto; left: 10px; }
.detail__titelzeile { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.detail__titelzeile h2 { padding-right: 0 !important; }
.detail .close { right: 10px; }
@media (min-width: 981px) { .detail__titelzeile { padding-right: 44px; } }
.merkbtn { margin-top: 10px; }
.merkbtn[aria-pressed="true"] { border-color: #353b7a; background: #1d1f33; }

/* Änderungsmodus, Wunsch, Links */
.aenderinfo { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0 4px; padding: 10px 12px;
  border-radius: 12px; background: #1d1f33; border: 1px solid #353b7a; font-size: .92rem; }
.aenderinfo .btn { height: 34px; padding: 0 12px; font-size: .85rem; }
.sheet--klein { width: min(480px, calc(100vw - 32px)); }
.wunsch { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.wunsch h2 { margin: 0; padding-right: 40px; }
.wunsch p { margin: 0; }
.wunsch textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 16px; color-scheme: dark; resize: vertical; }
.wunsch .close { background: var(--surface-2); }
.linkbtn { border: 0; background: none; color: var(--muted); text-decoration: underline; padding: 0; font-size: .88rem; }
.linkbtn:hover { color: var(--text); }
.empty__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mb__msg { background: #2a2410; border: 1px solid #6b5a1c; border-radius: 10px; padding: 8px 10px; font-size: .9rem; color: #f3e3b0; white-space: pre-line; }

.pushstatus { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.pushios { font-size: .88rem; background: #1d1f33; border: 1px solid #353b7a; border-radius: 10px; padding: 10px 12px; }

.wfotos { display: flex; gap: 8px; flex-wrap: wrap; }
.wfotos:empty { display: none; }
.wfoto { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: #111; border: 1px solid var(--line); }
.wfoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wfoto button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: .95rem; line-height: 1; }
.wfoto.laedt::after { content: "…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); font-weight: 800; font-size: 1.4rem; }
.wfoto-btn { align-self: flex-start; cursor: pointer; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px);
  background: #fff; color: #000; padding: 12px 18px; border-radius: 12px; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 24px 16px 100px; text-align: center; color: var(--muted); font-size: .88rem; }
.footer p { margin: 0 0 10px; }
.footer nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ============ Tablet ============ */
@media (max-width: 980px) {
  .detail { grid-template-columns: minmax(0, 1fr); max-height: none; min-height: 0; }
  .detail__media { aspect-ratio: 16 / 10; min-height: 0; }
}

/* ============ Smartphone ============ */
@media (max-width: 760px) {
  :root { --header-h: 118px; }
  .topbar__inner { grid-template-columns: 1fr auto; padding: 10px 12px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .cartbtn { height: 40px; padding: 0 12px; }
  .userbtn { height: 40px; padding: 0 12px; }
  .cartbtn__label { display: none; }
  .logo__b { font-size: 1.7rem; }

  .hero__inner { padding: 22px 12px 18px; }
  .hero p { font-size: .95rem; }

  .toolbar { position: static; }
  .toolbar__inner { flex-direction: column; align-items: stretch; padding: 10px 12px; gap: 10px; }
  .toolbar__right { justify-content: space-between; }

  .wrap { padding: 12px 12px 40px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 10px 10px 12px; }
  .card__name { font-size: .93rem; }
  .card__add { width: 36px; height: 36px; font-size: 1.35rem; right: 8px; bottom: 8px; }
  .card .preis { font-size: .95rem; }

  /* Detail als Bottom-Sheet */
  .sheet { width: 100vw; margin: auto 0 0; }
  .sheet[open] .sheet__panel { animation: up .25s ease; }
  @keyframes up { from { transform: translateY(40px); opacity: .4; } }
  .sheet__panel { border-radius: 20px 20px 0 0; max-height: 92dvh; overflow-y: auto; border-bottom: 0; }
  .detail__body { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); overflow: visible; }
  .detail h2 { font-size: 1.35rem; padding-right: 0; }
  .detail__actions { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 0; }

  .drawer { width: 100vw; }
  .drawer__body { padding: 6px 16px 20px; }
  .drawer__foot { padding-left: 16px; padding-right: 16px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }

  .cartbar:not([hidden]) { display: flex; }
  .banners { padding: 0 12px; }
  .bn { flex-wrap: wrap; }
  .bn__btns { width: 100%; justify-content: flex-end; }
  .sheet--klein { width: 100vw; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .grid { gap: 8px; }
  .logo__a { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.fselect { background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }

/* ============ Erweiterungen: Filter, Öffnungszeiten, Kalender, Chat, Vorlagen & Mixe, Profil ============ */
.userbtn { position: relative; }
.badge--chat { position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff; min-width: 20px; height: 20px; border-radius: 999px; font-size: .72rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.mbadge { background: var(--accent); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 800; padding: 1px 7px; margin-left: 6px; }
.filterbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .9rem; }
.filterbtn svg { width: 16px; height: 16px; fill: currentColor; }
.filterbtn__anz { background: var(--accent); color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 800; padding: 1px 7px; }
.filterpanel { max-height: 86vh; overflow-y: auto; }
.fgruppe { display: flex; flex-direction: column; gap: 8px; }
.fgruppe h3 { margin: 4px 0 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fgruppe .switch { color: var(--text); }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: .9rem; }
.fchip small { color: var(--muted); margin-left: 5px; }
.fchip[aria-pressed="true"] { background: var(--text); color: #000; border-color: var(--text); }
.fchip[aria-pressed="true"] small { color: #555; }
#preisRegler { width: 100%; accent-color: var(--accent); }
.filterfoot { position: sticky; bottom: -22px; z-index: 3; background: var(--surface); margin: 4px -22px -22px; padding: 12px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex-wrap: nowrap !important; }
.filterfoot .btn { flex: 1; }
.tag--fuer { background: #2f2a12; color: #ffd98a; border: 1px solid #6b5a1c; }
.card__mk { font-size: .78rem; color: #cfcfcf; }
.merkmale { display: flex; flex-wrap: wrap; gap: 6px; }
.merkmale:empty { display: none; }
.mk { font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.mk--st b { color: var(--accent); letter-spacing: 1px; }
.detail__extra { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: .88rem; }
.chipbtn[aria-pressed="true"] { border-color: #b08a2a; color: #ffd98a; }
.passt h3 { margin: 6px 0 8px; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.passt__liste { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.passt .zk { width: 130px; }
.oepill { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .88rem; }
.oepill__punkt { width: 9px; height: 9px; border-radius: 50%; background: #888; flex: none; }
.oepill--offen .oepill__punkt { background: #2fd27a; box-shadow: 0 0 0 4px rgba(47, 210, 122, .15); }
.oepill--zu .oepill__punkt { background: var(--accent); }
.oztab { border-collapse: collapse; width: 100%; font-size: .95rem; }
.oztab th { text-align: left; font-weight: 600; padding: 6px 0; width: 40%; }
.oztab td { padding: 6px 0; }
.oztab tr + tr { border-top: 1px solid var(--line); }
.oztab tr.heute { color: #ffd98a; }
.ozliste { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.kal { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface-2); }
.kal__kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kal__kopf strong { text-transform: capitalize; }
.kal .ibtn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.2rem; }
.kal .ibtn:disabled { opacity: .3; }
.kal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.kal__wt { font-size: .72rem; color: var(--muted); padding-bottom: 2px; }
.kt { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: .85rem; }
.kt--offen { background: #10291d; color: #b9f0d0; }
.kt--ruhe { background: #262626; color: #8a8a8a; }
.kt--urlaub { background: #3a1d1e; color: #ffb4b4; }
.kt--feiertag { background: #2f2a12; color: #ffd98a; }
.kt--heute { outline: 2px solid var(--text); }
.kt--vorbei { opacity: .35; }
.kal__legende { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.kal__legende i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; }
.kallink { display: block; margin-top: 4px; font-size: .82rem; text-align: left; }
.bn--zu { background: #2a1717; border-color: #6b2a2c; }
.bn--rund { background: #1d1f33; border-color: #353b7a; }
.bn--nach { background: #15232b; border-color: #2a5366; }
.nslist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.nsbtn { border: 1px solid #2a5366; background: #0f1a20; color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: .85rem; }
.nsbtn b { color: #7fd0f5; margin-left: 4px; }
.vlist { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.vk { flex: none; width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.vk__name { font-weight: 700; }
.vk__sub { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.zuletzt h2 .linkbtn { text-transform: none; letter-spacing: 0; margin-left: 8px; font-size: .82rem; }
.vorlagebtn { display: block; margin: 4px 0 14px; }
.segtabs { display: flex; gap: 6px; padding: 0 18px 10px; }
.segtabs button { flex: 1; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-weight: 600; }
.segtabs button[aria-pressed="true"] { background: var(--text); color: #000; border-color: var(--text); }
.mixteile { display: flex; flex-direction: column; gap: 6px; }
.mixteil { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; }
.mixteil output { min-width: 22px; text-align: center; }
.mixtreffer { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.mixtreffer button { text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: .9rem; }
#mixDlg input, #nameEingabe { width: 100%; height: 48px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 16px; color: var(--text); }
#nameDlg .muted { font-size: .9rem; }
.profil { max-height: 88vh; overflow-y: auto; }
.pblock { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pblock h3 { margin: 0; font-size: 1rem; }
.pblock input:not([type=checkbox]) { width: 100%; height: 46px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 16px; color: var(--text); }
.pblock .field { margin-bottom: 6px; }
.pzeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; cursor: pointer; }
.pzeile strong { display: block; font-size: .95rem; }
.pzeile small { color: var(--muted); font-size: .82rem; }
.pzeile2 { margin: 0; font-size: .9rem; }
.loeschbox { border: 1px solid #6b2a2c; background: #2a1717; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.danger { color: #ff8a8c !important; }
.chat { display: flex; flex-direction: column; gap: 6px; }
.chat__m { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: .92rem; white-space: pre-line; line-height: 1.4; word-wrap: break-word; }
.chat__m small { display: block; font-size: .72rem; opacity: .7; margin-bottom: 2px; }
.chat__m--shop { align-self: flex-start; background: #2a2410; border: 1px solid #6b5a1c; color: #f3e3b0; border-bottom-left-radius: 4px; }
.chat__m--ich { align-self: flex-end; background: #1d1f33; border: 1px solid #353b7a; border-bottom-right-radius: 4px; }
.antwort summary { cursor: pointer; color: var(--muted); font-size: .9rem; padding: 4px 0; }
.antwort__form { display: flex; gap: 8px; align-items: flex-end; margin-top: 6px; }
.antwort__form textarea { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 16px; color: var(--text); resize: vertical; }
.chatpanel { display: flex; flex-direction: column; }
.chatverlauf { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.chateingabe { display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.chateingabe textarea { flex: 1; min-height: 46px; max-height: 140px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 16px; color: var(--text); resize: none; }
.chateingabe .btn { width: 52px; padding: 0; font-size: 1.2rem; }
@media (max-width: 760px) {
  .filterbtn { padding: 0 10px; }
  .vk { width: 200px; }
}
.sheet--klein .wunsch { max-height: 90vh; max-height: 90dvh; overflow-y: auto; }
.wunsch .close { position: sticky; top: 0; margin-left: auto; margin-bottom: -44px; z-index: 2; }
.kt { aspect-ratio: auto; height: 34px; }
@media (max-width: 760px) {
  .toolbar__right { gap: 8px; min-width: 0; }
  .toolbar__right select { flex: 1 1 auto; min-width: 0; width: 0; }
  .toolbar__right .switch { font-size: .82rem; gap: 6px; }
  .filterbtn { flex: none; }
}
.wunsch h2 { padding-right: 56px; }

/* ============ Bald da, Abholschein, Chat live ============ */
.tag--bald { background: #12324a; color: #9fd4ff; border: 1px solid #2a5a80; }
.bald-note { background: #12243a; border-color: #2a5a80; color: #cfe6ff; margin: 0; }
.chatfoto { width: 46px; height: 46px; padding: 0; display: grid; place-items: center; font-size: 1.2rem; flex: none; cursor: pointer; }
.chatbild { display: block; max-width: 220px; max-height: 260px; border-radius: 10px; margin: 4px 0; }
.chatweg { border: 0; background: none; color: inherit; text-decoration: underline; padding: 0; font-size: inherit; opacity: .8; cursor: pointer; }
.chat__m.tippt { display: inline-flex; gap: 4px; padding: 12px 14px; width: auto; }
.chat__m.tippt span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .4; animation: tippt 1.2s infinite ease-in-out; }
.chat__m.tippt span:nth-child(2) { animation-delay: .2s; }
.chat__m.tippt span:nth-child(3) { animation-delay: .4s; }
@keyframes tippt { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.schein { text-align: center; }
.schein__qr { background: #fff; border-radius: 16px; padding: 14px; width: min(260px, 70vw); margin: 0 auto; }
.schein__qr svg { display: block; width: 100%; height: auto; }
.schein__nr { font-size: 1.6rem; font-weight: 800; letter-spacing: .06em; }
.schein__info { line-height: 1.7; }
.schein__liste { text-align: left; margin: 0 auto; max-width: 320px; padding-left: 18px; color: #ddd; }
.bereichtabs { max-width: 1280px; margin: 0 auto; padding: 12px 16px 0; display: flex; gap: 8px; overflow-x: auto; }
.bereichtabs button { flex: none; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: .95rem; }
.bereichtabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- Chat: Bereiche Chat / Bestellungen / Wünsche ---- */
.chattabs { display: flex; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.chattabs::-webkit-scrollbar { display: none; }
.chattabs button { position: relative; flex: 1 0 auto; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chattabs button[aria-pressed="true"] { background: var(--accent, #e5383b); border-color: transparent; color: #fff; }
.ctdot { position: absolute; top: 4px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #ffd23f; box-shadow: 0 0 0 2px var(--surface); }
.chatthemen { display: flex; flex-direction: column; gap: 12px; }
.thema { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.thema__kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.thema__kopf strong { font-size: .98rem; }
.thema__meta { color: var(--muted); font-size: .82rem; }
.thema .chat { margin: 0; }
.thema__text { white-space: pre-wrap; }
.thema__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.thema--neu { border-color: #ffd23f; }
.wst { font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.wst--offen { background: rgba(91,141,239,.18); color: #9dbbff; }
.wst--erledigt { background: rgba(62,207,142,.18); color: #6fe3ae; }
.themen__leer { text-align: center; color: var(--muted); padding: 24px 8px; }
.themen__oben { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---- Meine Bestellungen: Filter ---- */
.mbfilter { display: flex; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.mbfilter::-webkit-scrollbar { display: none; }
.mbfilter button { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mbfilter button span { opacity: .65; font-weight: 500; margin-left: 4px; }
.mbfilter button[aria-pressed="true"] { background: var(--text); color: var(--bg, #0b0b0b); border-color: transparent; }
.mbfilter button:disabled { opacity: .4; cursor: default; }

/* ---- Meine Gutscheine ---- */
.gutscheine { display: flex; flex-direction: column; gap: 12px; max-height: min(88vh, 900px); overflow-y: auto; }
.stempelkarte { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface-2); }
.stempelkarte h3 { margin: 0 0 8px; font-size: 1rem; }
.stempel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 8px; }
.stempel span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: .9rem; }
.stempel span.voll { border: 2px solid var(--accent, #e5383b); background: rgba(229,56,59,.15); color: #fff; }
.gkarte { border-radius: 16px; padding: 14px; background: linear-gradient(135deg, #2a1213, #161616 60%); border: 1px solid rgba(229,56,59,.45); display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.gkarte__kopf { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.gkarte__wert { font-size: 2rem; font-weight: 800; }
.gkarte__wert small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.gkarte__text { margin: 0; font-size: .92rem; }
.gkarte__qr { width: 180px; max-width: 70%; background: #fff; border-radius: 12px; padding: 8px; }
.gkarte__qr svg { width: 100%; height: auto; display: block; }
.gkarte__code { font-family: ui-monospace, Menlo, monospace; font-size: 1.15rem; letter-spacing: .08em; font-weight: 700; }
.galt summary { cursor: pointer; color: var(--muted); font-size: .9rem; }

/* ---- Erlebnis: Aktionen, Frisch eingetroffen, Top 10, Mix der Woche ---- */
.erlebnis { display: flex; flex-direction: column; gap: 16px; margin: 4px 0 18px; }
.aktion { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(120deg, #5a0f12, #e5383b); color: #fff; box-shadow: 0 8px 24px rgba(229,56,59,.25); }
.aktion strong { display: block; font-size: 1.05rem; }
.aktion span { font-size: .9rem; opacity: .92; }
.aktion--bald { background: linear-gradient(120deg, #2a2310, #6b5418); box-shadow: none; }
.aktion__uhr { text-align: right; white-space: nowrap; }
.aktion__uhr small { display: block; font-size: .72rem; opacity: .85; }
.aktion__uhr b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.ereihe h2 { font-size: 1.05rem; margin: 0 0 8px; }
.ereihe h2 small { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 6px; }
.ereihe__scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.ereihe__scroll::-webkit-scrollbar { display: none; }
.ereihe__scroll--gross { grid-auto-columns: 220px; }
.ekarte { position: relative; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.ekarte.is-out { opacity: .55; }
.ekarte__open { display: flex; flex-direction: column; gap: 4px; padding: 0 0 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; position: relative; }
.ekarte__open .media { aspect-ratio: 1; border-radius: 0; }
.ekarte__name { padding: 0 10px; font-weight: 700; font-size: .92rem; line-height: 1.25; }
.ekarte__preis { padding: 0 10px; font-size: .9rem; }
.ekarte__add { position: absolute; right: 8px; top: 8px; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 999px; border: 0; background: var(--accent, #e5383b); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.rang { position: absolute; left: 8px; top: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #111; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.mixwoche { border-radius: 16px; padding: 14px 16px; border: 1px solid rgba(124,92,255,.5); background: linear-gradient(135deg, #1b1430, #141414 70%); }
.mixwoche__kopf span { display: block; font-size: .8rem; color: #b9a8ff; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mixwoche__kopf strong { font-size: 1.2rem; }
.mixwoche p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.mixwoche__teile { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.mixteil { padding: 6px 10px; border-radius: 999px; border: 1px solid #3a3160; background: #1f1838; color: inherit; font: inherit; font-size: .88rem; cursor: pointer; }
.mixwoche__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.preis--aktion s { color: var(--muted); font-weight: 400; font-size: .85em; margin-right: 2px; }
.preis--aktion { color: #ff8a8c; }
.tag--aktion { background: #e5383b; color: #fff; }
.bew { display: inline-flex; align-items: center; gap: 2px; font-size: .78rem; color: #ffd98a; margin-left: 6px; white-space: nowrap; }
.bew small { color: var(--muted); }
.bew--gross { font-size: .9rem; margin-left: 10px; }
.card__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }

/* Unterwegs & Bewertung */
.wegwahl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.wegwahl .btn { height: 52px; font-size: 1.02rem; }
.mb__weg { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(62,207,142,.12); color: #6fe3ae; font-size: .88rem; }
.mb__bew { display: block; width: 100%; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; border: 1px dashed #6b5418; background: #1d1810; color: #ffd98a; font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.bewzeile { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bewzeile__name { font-weight: 700; margin-bottom: 8px; }
.bewzeile__wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bewzeile__wahl button { padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: inherit; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.bewzeile__wahl button span { font-size: 1.6rem; }
.bewzeile__wahl button small { font-size: .75rem; color: var(--muted); }
.bewzeile__wahl button[aria-pressed="true"] { border-color: var(--accent, #e5383b); background: #2a1213; }
.bewzeile textarea { width: 100%; margin-top: 8px; }
#bewDlg .wunsch { max-height: min(90vh, 900px); overflow-y: auto; }

/* Kleine Hilfe-Links in Fenstern (führen zur Kundenhilfe) */
.hilfelink { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 700; text-decoration: none; vertical-align: middle; }
.hilfelink:hover { color: #fff; border-color: var(--accent); }
.login__hint a { color: inherit; }

/* ---- Preise, Sets, Code, Zugaben ---- */
.tag--gruppe { background: #1f3b6b; color: #cfe1ff; }
.pill { display: inline-block; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .72rem; margin-left: 4px; }
.line__sub s { color: var(--muted); margin-right: 2px; }
.setkarte .ekarte__open { cursor: default; }
.setteile { padding: 0 10px; font-size: .78rem; color: var(--muted); line-height: 1.35; }
#korbExtras { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.zugabe { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .9rem; }
.zugabe--ok { background: rgba(62,207,142,.12); color: #8ff0c2; }
.zbalken { height: 6px; border-radius: 3px; background: #2b2b2b; margin-top: 6px; overflow: hidden; }
.zbalken span { display: block; height: 100%; background: linear-gradient(90deg, #e5383b, #ff8a3c); }
.codebox { border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; }
.codebox summary { cursor: pointer; font-size: .92rem; color: var(--muted); }
.codebox__in { display: flex; gap: 8px; margin-top: 8px; }
.codebox__in .input { flex: 1; text-transform: uppercase; }
.codezeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(124,92,255,.14); font-size: .9rem; }
/* Events & Verlosungen */
.eventkarte, .verlosung { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.eventkarte__datum { width: 56px; height: 60px; border-radius: 12px; background: #f2f2f2; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; }
.eventkarte__datum b { font-size: 1.4rem; line-height: 1; }
.eventkarte__datum span { font-size: .75rem; text-transform: uppercase; }
.eventkarte__text, .verlosung__text { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.eventkarte__text span, .verlosung__text span { color: var(--muted); font-size: .88rem; }
.eventkarte__text small, .verlosung__text small { color: #ccc; font-size: .85rem; }
.eventkarte__btn { display: flex; gap: 6px; }
.eventkarte__btn select { width: auto; height: 36px; }
.verlosung { border-color: rgba(62,207,142,.4); background: linear-gradient(135deg, #10291d, #141414 70%); }
.verlosung__bild { width: 64px; flex: 0 0 64px; }
.verlosung__bild .media { aspect-ratio: 1; border-radius: 10px; }
/* Detail: Vormerken & Bewertungen */
.vormerk { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin: 10px 0; border-radius: 14px; border: 1px solid #3a3160; background: #1b1430; }
.vormerk small { display: block; color: var(--muted); font-size: .83rem; }
.vormerk__in { display: flex; gap: 6px; }
.vormerk__in select { width: 70px; height: 36px; }
.dbew { margin: 18px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.dbew h3 { margin: 0 0 8px; font-size: 1rem; }
.dbew h3 small { color: var(--muted); font-weight: 400; }
.dbew__ich { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.dbew__ich > span { font-size: .9rem; color: var(--muted); }
.dbew__wahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dbew__wahl button { padding: 6px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: inherit; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.dbew__wahl button span { font-size: 1.5rem; }
.dbew__wahl button small { font-size: .72rem; color: var(--muted); }
.dbew__wahl button[aria-pressed="true"] { border-color: var(--accent, #e5383b); background: #2a1213; }
.dbew__e { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.dbew__e > span { font-size: 1.3rem; }
.dbew__e p { margin: 2px 0 0; color: #ddd; }
/* Prämien, Werben, Rückblick, Banner */
.gkarte--praemie { border-color: rgba(255,196,0,.45); }
.gkarte__wert--text { font-size: 1.25rem; }
.bn--warn { border-color: #6b2a2c; background: #2a1717; }
.werben__belohn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.werben__belohn div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.werben__belohn span { display: block; font-size: .78rem; color: var(--muted); }
.werben__code { margin: 14px 0 10px; padding: 14px; border-radius: 14px; border: 2px dashed var(--accent, #e5383b); text-align: center; }
.werben__code span { display: block; font-size: .8rem; color: var(--muted); }
.werben__code b { font-size: 1.6rem; letter-spacing: .08em; }
.werben__btns { display: flex; gap: 8px; }
.werben__btns .btn { flex: 1; }
.rueckblick { background: radial-gradient(circle at 20% 0%, #3a1214, #0b0b0b 60%); }
.rb { text-align: center; display: flex; flex-direction: column; gap: 12px; }
.rb__kopf small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.rb__kopf b { display: block; font-size: 3.2rem; line-height: 1.1; color: #ff8a8c; }
.rb__zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rb__zahlen div { padding: 12px 6px; border-radius: 14px; background: rgba(255,255,255,.05); }
.rb__zahlen b { display: block; font-size: 1.7rem; }
.rb__zahlen span { font-size: .78rem; color: var(--muted); }
.rb__top { text-align: left; }
.rb__top h3 { margin: 0 0 6px; text-align: center; }
.rb__top div { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.rb__top small { margin-left: auto; color: var(--muted); }
.rb__rang { font-size: 1.05rem; }
.rb__geschenk { padding: 12px; border-radius: 14px; background: rgba(255,196,0,.12); color: #ffe08a; }
.rb__geschenk small { display: block; color: var(--muted); }
.rb__danke { font-size: 1.1rem; margin: 6px 0 0; }

/* ---- Kamera-Scanner ---- */
.scanov { position: fixed; inset: 0; z-index: 1000; background: #000; display: flex; flex-direction: column; }
.scanov__kopf { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: #fff; }
.scanov video { flex: 1; width: 100%; object-fit: cover; min-height: 0; }
.scanov__rahmen { position: absolute; left: 50%; top: 50%; width: min(70vw, 420px); height: min(40vw, 240px); transform: translate(-50%, -40%); border: 3px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.scanov__hinweis { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; text-shadow: 0 2px 8px #000; }

/* ---- SB-Kasse ---- */
body.sbmodus { font-size: 18px; }
body.sbmodus #pushBtn, body.sbmodus #logoutBtn, body.sbmodus #adminLink, body.sbmodus #werbenBtn, body.sbmodus #profilBtn, body.sbmodus #chatBtn,
body.sbmodus .install, body.sbmodus #installBanner, body.sbmodus #cartBar, body.sbmodus .usermenu__item[href="anleitung.html"] { display: none !important; }
body.sbmodus .wrap { padding-bottom: 120px; }
.sbstart { position: fixed; inset: 0; z-index: 900; background: radial-gradient(circle at 50% 0%, #3a1214, #0b0b0b 65%); display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.sbstart__in { width: min(720px, 100%); text-align: center; }
.sbstart__logo { justify-content: center; }
.sbstart__logo .logo__a { font-size: 1.5rem; }
.sbstart__logo .logo__b { font-size: 2.5rem; }
.sbstart h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 18px 0 6px; }
.sbstart p { color: #ccc; font-size: 1.1rem; }
.sbstart__test { color: #ffd36b !important; }
.sbstart__btns { display: grid; gap: 14px; margin: 28px 0 16px; }
.sbbig { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 18px; border-radius: 20px; border: 1px solid #333; background: #161616; color: #fff; font: inherit; cursor: pointer; }
.sbbig span { font-size: 2.2rem; line-height: 1; }
.sbbig b { font-size: 1.3rem; }
.sbbig small { color: var(--muted); }
.sbbig--primary { background: var(--accent, #e5383b); border-color: transparent; }
.sbbig--primary small { color: #ffe0e0; }
.sbnummer { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sbnummer .input { font-size: 1.5rem; height: 60px; width: 260px; text-align: center; letter-spacing: .1em; }
.sbnummer .btn { height: 60px; font-size: 1.1rem; padding: 0 26px; }
.sbleiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: grid; grid-template-columns: 1.3fr 1.3fr .8fr; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(11,11,11,.96); border-top: 1px solid #2b2b2b; }
.sbleiste button { height: 64px; border-radius: 16px; border: 0; font: inherit; font-size: 1.1rem; font-weight: 800; cursor: pointer; }
.sbleiste__scan { background: var(--accent, #e5383b); color: #fff; }
.sbleiste__korb { background: #f2f2f2; color: #111; }
.sbleiste__fertig { background: #222; color: #fff; }
.sbpay { display: grid; gap: 10px; }
.sbpay .btn { height: 60px; font-size: 1.15rem; }
.sbdanke { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 24px; }
.sbdanke__in { max-width: 560px; text-align: center; background: #151515; border: 1px solid #2b2b2b; border-radius: 24px; padding: 30px 26px; }
.sbdanke__in h2 { font-size: 1.8rem; margin: 0 0 10px; }
.sbdanke__in p { font-size: 1.15rem; color: #ddd; }
.sbspinner { width: 56px; height: 56px; margin: 18px auto; border-radius: 50%; border: 5px solid #333; border-top-color: var(--accent, #e5383b); animation: sbdreh 1s linear infinite; }
@keyframes sbdreh { to { transform: rotate(360deg); } }
.sbfehler { max-width: 520px; margin: 15vh auto; padding: 24px; text-align: center; color: #eee; font-family: system-ui, sans-serif; }
/* einfache Eingabefelder (Code, Vormerken, Events, SB) */
.input { height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px; min-width: 0; }
textarea.input { height: auto; padding: 10px 12px; width: 100%; }
select.input { padding-right: 28px; }
.codebox__in .input { min-width: 0; }
body.sbmodus #banners, body.sbmodus #oePill, body.sbmodus .anlhinweis { display: none !important; }
body.sbmodus .hero { padding-top: 18px; padding-bottom: 18px; }
/* Kategorie-Leiste schrumpft und scrollt, statt unter die Filter zu rutschen */
.toolbar__inner > .chips { min-width: 0; flex: 1 1 auto; }
.userbtn { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1000px) {
  .toolbar__right { gap: 8px; }
  .toolbar__right .switch { font-size: .82rem; }
}

/* ===== Abholtag & Uhrzeit als Knöpfe ===== */
.tagwahl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tagwahl--fenster { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.tagchip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; padding: 8px 4px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .12s ease, background .12s ease, transform .08s ease; -webkit-tap-highlight-color: transparent; }
.tagchip b { font-size: .98rem; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.tagchip small { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.tagchip:hover:not(:disabled) { border-color: #4a4a4a; }
.tagchip:active:not(:disabled) { transform: scale(.97); }
.tagchip.is-an { border-color: var(--accent); background: rgba(229,56,59,.16); box-shadow: inset 0 0 0 1px var(--accent); }
.tagchip.is-an small { color: var(--text); }
.tagchip:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.tagchip--anders b { font-size: 1.05rem; }
.field.invalid .tagwahl .tagchip:not(:disabled):not(.is-an) { border-color: rgba(255,138,140,.55); }
.datumanders { margin-top: 4px; }
#datumFeld .kallink { align-self: flex-start; }
@media (max-width: 360px) { .tagwahl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== Warenkorb: Angaben eingeklappt ===== */
.angaben { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin: 4px 0 14px; }
.angaben > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; cursor: pointer; }
.angaben > summary::-webkit-details-marker { display: none; }
.angaben__wer { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.angaben__wer small { font-size: .78rem; color: var(--muted); }
.angaben__wer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.angaben__kurz:empty { display: none; }
.angaben__link { flex: none; font-size: .85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.angaben[open] .angaben__link { color: var(--text); }
.angaben[open] .angaben__link::after { content: " ▴"; }
.angaben__in { padding: 0 14px 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.angaben__in .field input, .angaben__in .field textarea { background: var(--surface); }

/* ===== Kopfzeile: Vorname statt Kundennummer ===== */
#userLabel { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Ausverkauft klarer ===== */
.card .tags { right: 52px; flex-wrap: wrap; }
.card.is-out { opacity: 1; }
.card.is-out .card__open { opacity: .55; }
.card.is-out .tag--out { background: #2a2a2a; color: #eee; border: 1px solid #444; }
.card__bell { margin: 0 10px 10px; padding: 9px 10px; border-radius: 10px; border: 1px dashed #4a4a4a; background: transparent; color: var(--text);
  font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; line-height: 1.25; }
.card__bell:hover { border-color: var(--accent); }
.card__bell.is-an { border-style: solid; border-color: rgba(229,56,59,.6); background: rgba(229,56,59,.12); }

/* ===== Größen-Schnellauswahl beim „+“ ===== */
.varwahl { padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); }
.varwahl__marke { margin: 0; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.varwahl h2 { margin: 2px 44px 2px 0; font-size: 1.2rem; line-height: 1.25; }
.varwahl__frage { margin: 4px 0 0; font-size: .9rem; }
.varwahl__liste { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 12px; }
.varwahl__opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 12px 10px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.varwahl__opt > span:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.varwahl__opt b { font-size: 1rem; }
.varwahl__opt small { color: var(--muted); font-size: .8rem; }
.varwahl__preis { font-weight: 700; white-space: nowrap; }
.varwahl__preis s { font-weight: 400; font-size: .85rem; }
.varwahl__plus { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.25rem; line-height: 1; }
.varwahl__opt:hover:not(:disabled) { border-color: var(--accent); }
.varwahl__opt:active:not(:disabled) { transform: scale(.99); }
.varwahl__opt:disabled { opacity: .45; cursor: not-allowed; }
.varwahl__opt:disabled .varwahl__plus { background: #444; }

/* Anmeldung: Clubkarte scannen & Shop-Team */
.login__oder { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; }
.login__oder::before, .login__oder::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#loginQr { height: 52px; font-size: 1.05rem; }
.login__team { width: 100%; margin-top: 8px; text-align: left; }
.login__team summary { cursor: pointer; color: var(--muted); font-size: .85rem; text-align: center; list-style: none; }
.login__team summary::-webkit-details-marker { display: none; }
.login__team[open] summary { margin-bottom: 4px; }
.login__user { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#teamCode { width: 100%; height: 52px; padding: 0 14px; font-size: 1.05rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; outline: none; color: inherit; color-scheme: dark; }
#teamCode:focus { border-color: var(--accent); }

/* Produktwunsch: Status & Fortschritt */
.wst--neu { background: rgba(91,141,239,.18); color: #9dbbff; }
.wst--pruefung { background: rgba(245,158,11,.18); color: #fcd34d; }
.wst--bestellt { background: rgba(168,85,247,.2); color: #d8b4fe; }
.wst--eingetroffen { background: rgba(62,207,142,.2); color: #6fe3ae; }
.wst--abgelehnt { background: rgba(156,163,175,.2); color: #d1d5db; }
.wschritte { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 2px 0 0; padding: 0; counter-reset: s; }
.wschritte li { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; opacity: .4; position: relative; padding-top: 6px; border-top: 3px solid var(--line); }
.wschritte li span { font-size: 1.05rem; line-height: 1; }
.wschritte li small { font-size: .68rem; color: var(--muted); line-height: 1.2; }
.wschritte li.fertig { opacity: .85; border-top-color: #3ecf8e; }
.wschritte li.jetzt { opacity: 1; border-top-color: #ffd23f; }
.wschritte li.jetzt small { color: var(--text); font-weight: 700; }
.wprodk { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: rgba(62,207,142,.1); border: 1px solid rgba(62,207,142,.35); font-size: .9rem; font-weight: 600; }

/* ===== Fenster (Dialoge): Hintergrund fest, nichts scrollt oder reagiert dahinter ===== */
html.dlg-offen, html.dlg-offen body { overflow: hidden; }
@media (pointer: coarse), (max-width: 760px) {
  /* iPhone/Android: nur „position: fixed“ hält die Seite dahinter wirklich fest */
  html.dlg-offen body { position: fixed; left: 0; right: 0; width: 100%; }
}
dialog { overscroll-behavior: contain; }
dialog .sheet__panel, dialog .drawer__body, dialog .pedit, dialog [class*="liste"], dialog [class*="__body"] { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  /* Unsichtbare Fläche über dem ganzen Bildschirm, die zum Fenster gehört:
     jeder Fingertipp neben das Fenster landet im Fenster (= schließen), nie im Shop dahinter */
  .sheet[open]::before { content: ""; position: fixed; inset: 0; }
}

/* ============ Handy: 3 Kacheln nebeneinander, kompakte Top 10 / Zuletzt bestellt ============ */
@media (max-width: 760px) {
  /* Produktkacheln */
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .card { border-radius: 12px; container-type: inline-size; }
  .card .ph { font-size: 1.7rem; }
  .card__body { padding: 7px 8px 8px; gap: 1px; }
  .card__kat { font-size: .58rem; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card__name { font-size: .78rem; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card__mk { display: none; }
  .card__foot { padding-top: 5px; padding-right: 30px; min-height: 30px; gap: 0; }
  .card .preis { font-size: .8rem; line-height: 1.15; }
  .card .preis small { display: block; font-size: .64rem; }
  .card .preis--anfrage { font-size: .7rem; }
  .card .bew { display: none; }
  .card__add { width: 28px; height: 28px; font-size: 1.15rem; right: 6px; bottom: 7px; box-shadow: 0 2px 8px rgba(229,56,59,.35); }
  .card .herz { width: 28px; height: 28px; top: 5px; right: 5px; font-size: .9rem; }
  .card .tags { top: 5px; left: 5px; right: 36px; gap: 3px; }
  .card .tag { font-size: .55rem; padding: 2px 5px; border-radius: 5px; letter-spacing: .02em; }
  .card .incart { top: calc(100cqw - 22px); bottom: auto; left: 5px; font-size: .6rem; padding: 2px 6px; }
  .card__bell { margin: 0 6px 6px; padding: 6px 6px; font-size: .64rem; line-height: 1.2; border-radius: 8px; }

  /* Top 10, Frisch eingetroffen u. a. Reihen – bewusst kleiner als die Produktkacheln */
  .ereihe { margin-bottom: 4px; }
  .ereihe h2 { font-size: .88rem; margin-bottom: 5px; }
  .ereihe__scroll { grid-auto-columns: 86px; gap: 6px; padding-bottom: 4px; }
  .ereihe__scroll--gross { grid-auto-columns: 120px; }
  .ekarte { border-radius: 10px; }
  .ekarte__open { gap: 1px; padding-bottom: 6px; }
  .ekarte__open .media { aspect-ratio: 4 / 3; }
  .ekarte .ph { font-size: 1.15rem; }
  .ekarte__name { padding: 0 6px; font-size: .66rem; line-height: 1.2; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ekarte__preis { padding: 0 6px; font-size: .66rem; }
  .ekarte__preis .preis small { display: none; }
  .ekarte__preis .preis--anfrage { font-size: .62rem; }
  .ekarte__add { right: 4px; top: 4px; min-width: 22px; height: 22px; padding: 0 6px; font-size: .72rem; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
  .rang { left: 4px; top: 4px; width: 18px; height: 18px; font-size: .62rem; }

  /* Zuletzt bestellt */
  .zuletzt { margin-bottom: 12px; }
  .zuletzt h2 { font-size: .74rem; margin-bottom: 5px; }
  .zuletzt__liste { gap: 6px; padding-bottom: 4px; }
  .zk { width: 86px; border-radius: 10px; }
  .zk .media { aspect-ratio: 4 / 3; }
  .zk .ph { font-size: 1rem; }
  .zk__body { padding: 4px 6px 6px; gap: 1px; }
  .zk__name { font-size: .66rem; line-height: 1.2; }
  .zk__preis { font-size: .66rem; }
  .zk__add { right: 4px; top: 4px; width: 22px; height: 22px; font-size: .9rem; }
}
@media (max-width: 360px) {
  .grid { gap: 6px; }
  .card__name { font-size: .74rem; }
}

/* Produktdetails am Handy: Bild und Text sauber untereinander (kein Raster).
   Sonst kann Safari (iPhone) die Bildzeile zusammenschieben – das Bild liegt dann über Name, Größen und Preis,
   und man kann nicht mehr hinaufscrollen. */
@media (max-width: 980px) {
  .detail { display: block; }
  .detail__media { width: 100%; aspect-ratio: 16 / 10; height: auto; min-height: 0; flex: none; }
  .detail__body { display: flex; }
}

/* SB-Kasse: unauffälliger Knopf zum Beenden (nur mit Team-Code) */
.sbstart__ende { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: rgba(255,255,255,.45); font-size: 1rem; cursor: pointer; }
.sbstart__ende:hover { color: #fff; background: rgba(255,255,255,.1); }
.sbende { margin-top: 18px; }

/* Produktdetails: Scrollen mit Mausrad / Trackpad.
   Großer Bildschirm: Bild links bleibt stehen, nur der Text rechts scrollt – das Fenster selbst nie
   (vorher konnte es beim Klick auf ＋ / Varianten nach unten springen und ließ sich mit dem Mausrad nicht mehr ganz hinaufscrollen).
   Tablet/kleines Fenster: das ganze Fenster scrollt in sich, höchstens 92 % der Bildschirmhöhe. */
#detail .sheet__panel, #detail .detail__body { overflow-anchor: none; }
@media (min-width: 981px) {
  #detail .sheet__panel { overflow: clip; }
  .detail__body { max-height: min(86vh, 720px); overscroll-behavior: contain; }
}
@media (max-width: 980px) {
  #detail .sheet__panel { max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
  /* Der Textteil darf hier kein eigener Scrollbereich sein – sonst bleibt das Mausrad an ihm hängen
     und man kommt nicht mehr ganz nach oben (Tablet / schmales Browserfenster). */
  .detail__body { overflow: visible; overscroll-behavior: auto; }
}

/* Shop-Infos wegklicken (× oben rechts, pro Kunde gespeichert) */
.exbox { position: relative; }
.ex { position: absolute; top: 6px; right: 6px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line, #333); background: rgba(0,0,0,.55); color: #fff; font-size: 1.1rem; line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ex:hover, .ex:focus-visible { background: rgba(0,0,0,.8); }
.ereihe.exbox > h2, .mixwoche.exbox .mixwoche__kopf { padding-right: 40px; }
.aktion.exbox, .eventkarte.exbox, .verlosung.exbox { padding-right: 44px; }
#pfWegZurueck { white-space: normal; height: auto; min-height: 38px; text-align: left; }
