/* =====================================================================
   BEISPIEL SHOP – STYLES
   Layout: klare Shop-Struktur, Topbar → Kopfzeile → Kategorien → Inhalt
   Die Akzentfarbe (--accent) wird per Farbauswahl / shop-config.js gesetzt.
   ===================================================================== */
:root {
  --accent: #2350d8;
  --on-accent: #ffffff;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --fg: #171a21;
  --muted: #5d6474;
  --line: #dfe2e8;
  --ok: #1d7a4f;
  --warn: #b25e00;
  --bad: #b3261e;
  --shadow: 0 1px 2px rgba(20, 24, 35, .06), 0 8px 24px rgba(20, 24, 35, .07);
  --radius: 14px;
  --radius-sm: 9px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --accent-soft: color-mix(in srgb, var(--accent) 11%, var(--surface));
  --accent-line: color-mix(in srgb, var(--accent) 30%, var(--line));
  --accent-ink: color-mix(in srgb, var(--accent) 82%, var(--fg));
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101217; --surface: #181b22; --surface-2: #20242d; --fg: #eceef3; --muted: #9aa1b0;
    --line: #2b303b; --ok: #4cc38a; --warn: #f0a548; --bad: #ff7a70;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    --accent-soft: color-mix(in srgb, var(--accent) 20%, var(--surface));
    --accent-ink: color-mix(in srgb, var(--accent) 55%, #ffffff);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101217; --surface: #181b22; --surface-2: #20242d; --fg: #eceef3; --muted: #9aa1b0;
  --line: #2b303b; --ok: #4cc38a; --warn: #f0a548; --bad: #ff7a70;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  --accent-soft: color-mix(in srgb, var(--accent) 20%, var(--surface));
  --accent-ink: color-mix(in srgb, var(--accent) 55%, #ffffff);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.55 var(--font); overflow-x: hidden;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 32px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.muted { color: var(--muted); }
.eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--accent-ink); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons & Felder ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, filter .15s ease, background .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); filter: none; }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 650; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); outline: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field.has-error input, .field.has-error select { border-color: var(--bad); }
.field .error { color: var(--bad); font-size: .82rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Topbar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--fg); }
.topbar { background: var(--fg); color: var(--bg); font-size: .86rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; min-height: 42px; flex-wrap: wrap; padding-block: 5px; }
.topbar-note { display: flex; align-items: center; gap: 8px; min-width: 0; }
.test-pill { background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.topbar-tools { display: flex; align-items: center; gap: 6px; }
.top-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 12%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent);
  color: var(--bg); cursor: pointer; font-weight: 650; font-size: .85rem;
}
.top-btn:hover { background: color-mix(in srgb, var(--bg) 22%, transparent); }
.top-btn .swatch-now { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg) 70%, transparent); }

/* Farbauswahl-Popover */
.color-wrap { position: relative; }
.color-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); z-index: 80;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; display: grid; gap: 14px;
}
.color-pop h3 { font-size: .95rem; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.swatch {
  aspect-ratio: 1; width: 100%; border-radius: 50%; border: 2px solid var(--surface); cursor: pointer;
  box-shadow: 0 0 0 1px var(--line); position: relative;
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--fg); }
.swatch[aria-pressed="true"]::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: #fff; opacity: .9; }
.custom-color { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.custom-color input[type="color"] { width: 44px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 2px; cursor: pointer; }
.custom-color code { font-size: .82rem; color: var(--muted); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 3px; }
.segmented button { border: 0; background: transparent; border-radius: 8px; padding: 7px 0; cursor: pointer; font-weight: 650; font-size: .86rem; color: var(--muted); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pop-foot { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; }

/* ---------- Kopfzeile ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.header-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; min-height: 76px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font: 800 1rem var(--font-display); letter-spacing: -.02em; flex: none;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.logo-text { display: grid; line-height: 1.1; min-width: 0; }
.logo-text strong { font: 800 1.25rem var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.logo-text small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { display: flex; max-width: 520px; width: 100%; margin: 0 auto; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); overflow: hidden; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; height: 46px; outline: 0; }
.search button { border: 0; background: transparent; width: 50px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.header-icons { display: flex; gap: 8px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 650; font-size: .92rem;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; flex: none; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: .76rem; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.nav { border-top: 1px solid var(--line); }
.nav-scroll { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: .93rem; white-space: nowrap; color: var(--muted); }
.nav a:hover { color: var(--fg); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }

@media (max-width: 860px) {
  .header-main { grid-template-columns: 1fr auto; gap: 12px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .icon-btn .label { display: none; }
  .icon-btn { padding: 0 12px; }
}
@media (max-width: 420px) { .logo-text small { display: none; } }

/* ---------- Sektionen ---------- */
.section { padding-block: 56px; }
.section-tight { padding-block: 32px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { color: var(--muted); }
.page-head { padding-block: 34px 8px; display: grid; gap: 8px; }
.crumbs { font-size: .86rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; padding-block: 56px; }
.hero-copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.hero-copy p { color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stage { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1.15; max-width: 100%; min-width: 0; }
.hero-stage a { text-decoration: none; border-radius: var(--radius); overflow: hidden; position: relative; display: block; }
.hero-stage a:first-child { grid-row: 1 / 3; }
.hero-stage .pimg { height: 100%; aspect-ratio: auto; }
.hero-stage .tag-price {
  position: absolute; left: 12px; bottom: 12px; background: var(--surface); color: var(--fg); border-radius: 999px;
  padding: 5px 12px; font-size: .85rem; font-weight: 700; box-shadow: var(--shadow);
}
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 36px; gap: 28px; } }

/* Vorteile */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; min-width: 0; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.perk-ico svg { width: 21px; height: 21px; }
.perk p { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .perks { grid-template-columns: 1fr; } .perk + .perk { border-left: 0; border-top: 1px solid var(--line); } }

/* Kategorien */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; transition: border-color .15s, transform .15s;
}
.cat-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.cat-card .cat-ico { grid-row: 1 / 3; grid-column: 2; width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.cat-card .cat-ico svg { width: 30px; height: 30px; }
.cat-card p { font-size: .87rem; color: var(--muted); }
.cat-card .count { grid-column: 1 / -1; font-size: .8rem; font-weight: 700; color: var(--accent-ink); margin-top: 8px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cat-grid { grid-template-columns: 1fr; } }

/* Produktbild (Platzhalter) */
.pimg {
  --p: var(--accent);
  aspect-ratio: 1; width: 100%; position: relative; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--p) 30%, transparent), transparent 55%),
    linear-gradient(150deg, color-mix(in srgb, var(--p) 20%, var(--surface)), color-mix(in srgb, var(--p) 6%, var(--surface)));
  color: color-mix(in srgb, var(--p) 78%, var(--fg));
}
.pimg svg { width: 46%; height: 46%; max-width: 160px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pimg svg .fill { fill: color-mix(in srgb, var(--p) 22%, transparent); }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pimg .ph-label { position: absolute; left: 10px; top: 10px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: color-mix(in srgb, var(--surface) 78%, transparent); padding: 2px 7px; border-radius: 999px; }

/* Produktkarten */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 360px) { .product-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; min-width: 0; transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; text-decoration: none; }
.card-media .pimg .ph-label { display: none; }
.badge {
  position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: .74rem; font-weight: 800; letter-spacing: .02em;
}
.badge.sale { background: var(--bad); color: #fff; }
.badge.out { background: var(--fg); color: var(--bg); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.card-cat { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-title { font-weight: 700; text-decoration: none; line-height: 1.3; }
.card-title:hover { color: var(--accent-ink); }
.card-desc { color: var(--muted); font-size: .88rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font-weight: 800; font-size: 1.08rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price .old { color: var(--muted); font-weight: 500; text-decoration: line-through; font-size: .85em; margin-left: 6px; }
.price.is-sale > span:first-child { color: var(--bad); }
.add-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.add-btn:hover { background: var(--accent); color: var(--on-accent); }
.add-btn svg { width: 20px; height: 20px; }
.add-btn[disabled] { opacity: .4; cursor: not-allowed; background: var(--surface-2); color: var(--muted); }
.stock { font-size: .82rem; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.ok { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--bad); }

/* Über uns */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 38px; }
.about-copy { display: grid; gap: 14px; min-width: 0; }
.about-copy p { color: var(--muted); max-width: 60ch; }
.about-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.about-list li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); font-weight: 650; }
.about-list li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; padding: 24px; gap: 22px; } }

/* Newsletter */
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--accent); color: var(--on-accent); border-radius: calc(var(--radius) + 6px); padding: 32px 36px; }
.newsletter p { opacity: .85; }
.newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input { height: 46px; border-radius: 999px; border: 0; padding: 0 18px; min-width: 0; width: 260px; max-width: 100%; background: var(--surface); color: var(--fg); }
.newsletter .btn { background: var(--fg); color: var(--bg); }
.newsletter .msg { grid-column: 1 / -1; font-weight: 650; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; padding: 24px; } .newsletter input { width: 100%; flex: 1 1 200px; } }

/* ---------- Shop-Seite ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 650; font-size: .9rem; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.toolbar select { min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); display: grid; gap: 12px; justify-items: center; }

/* ---------- Produktdetail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; padding-block: 18px 56px; }
.pdp-media { border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); position: relative; min-width: 0; }
.pdp-info { display: grid; gap: 18px; min-width: 0; }
.pdp-info .price { font-size: 1.6rem; }
.tax-note { font-size: .84rem; color: var(--muted); }
.variant { display: grid; gap: 8px; }
.variant-label { font-weight: 700; font-size: .92rem; }
.variant-label span { font-weight: 500; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-width: 48px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 650; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 200px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); height: 46px; }
.qty button { width: 40px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; }
.qty input { width: 40px; text-align: center; border: 0; background: transparent; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: 36px; } .qty.sm button { width: 32px; } .qty.sm input { width: 30px; }
.spec { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.spec li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.spec li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.ship-box { display: grid; gap: 6px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .9rem; }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Warenkorb & Kasse ---------- */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; padding-block: 12px 56px; }
.checkout > * { min-width: 0; }
@media (max-width: 940px) { .checkout { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; }
.checkout .panel + .panel { margin-top: 16px; }
.panel-title { display: flex; align-items: center; gap: 12px; }
.step-no { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: .86rem; flex: none; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .pimg { border-radius: 10px; }
.cart-line .pimg svg { stroke-width: 3; }
.cart-line .pimg .ph-label { display: none; }
.line-info { display: grid; gap: 4px; min-width: 0; }
.line-info a { font-weight: 700; text-decoration: none; }
.line-meta { font-size: .84rem; color: var(--muted); }
.line-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.line-total { text-align: right; display: grid; gap: 6px; justify-items: end; }
@media (max-width: 520px) { .cart-line { grid-template-columns: 60px 1fr; } .line-total { grid-column: 2; justify-items: start; text-align: left; } }
.radio-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { accent-color: var(--accent); width: 18px; height: 18px; }
.radio-card small { display: block; color: var(--muted); }
.radio-card.disabled { opacity: .55; cursor: not-allowed; }
.radio-list { display: grid; gap: 10px; }
.summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 140px); }
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.sum-row.total { font-size: 1.2rem; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--line); }
.sum-row.discount { color: var(--ok); }
.free-bar { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.free-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; min-height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); padding: 0 12px; text-transform: uppercase; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--fg); font-size: .92rem; border: 1px solid var(--accent-line); }
.notice strong { color: var(--accent-ink); }
.notice.warn { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }

/* Bestätigung */
.confirm-hero { text-align: center; display: grid; gap: 12px; justify-items: center; padding-block: 44px 24px; }
.confirm-ico { width: 68px; height: 68px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); display: grid; place-items: center; }
.confirm-ico svg { width: 34px; height: 34px; }
.order-no { font: 800 1.2rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; background: var(--surface); border: 1px dashed var(--accent-line); padding: 8px 16px; border-radius: 10px; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .order-grid { grid-template-columns: 1fr; } }
.order-list { display: grid; gap: 14px; }
.order-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; }
.order-item:hover { border-color: var(--accent-line); }
.status-pill { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; background: color-mix(in srgb, var(--warn) 15%, var(--surface)); color: var(--warn); }
.inline-confirm { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; background: color-mix(in srgb, var(--bad) 10%, var(--surface)); border-radius: var(--radius-sm); }

/* ---------- Textseiten ---------- */
.prose { max-width: 72ch; display: grid; gap: 14px; padding-block: 12px 56px; }
.prose h2 { font-size: 1.25rem; margin-top: 18px; }
.prose p, .prose li { color: color-mix(in srgb, var(--fg) 84%, var(--muted)); }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.ph { background: color-mix(in srgb, var(--warn) 16%, transparent); border-radius: 4px; padding: 0 4px; font-weight: 650; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding-block: 12px 56px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: .8rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-block: 44px 28px; }
.footer-grid > * { min-width: 0; }
.footer-grid h4 { margin: 0 0 12px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--accent-ink); }
.footer-about p { color: var(--muted); font-size: .92rem; margin-top: 12px; max-width: 36ch; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.pay-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-icons span { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: .74rem; font-weight: 700; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Toast ---------- */
.toast-zone { position: fixed; z-index: 120; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.toast { pointer-events: auto; background: var(--fg); color: var(--bg); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; font-weight: 600; max-width: min(380px, calc(100vw - 32px)); animation: toastIn .25s ease; }
.toast a { color: inherit; font-weight: 800; white-space: nowrap; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Führung ---------- */
.tour-invite {
  position: fixed; z-index: 110; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(340px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; display: grid; gap: 10px; animation: toastIn .3s ease;
}
.tour-invite p { color: var(--muted); font-size: .92rem; }
.tour-invite .row { display: flex; gap: 8px; flex-wrap: wrap; }
.tour-spot {
  position: fixed; z-index: 200; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 4px var(--accent), 0 0 0 9999px rgba(10, 12, 18, .58);
  transition: all .3s ease;
}
.tour-spot.center { width: 0 !important; height: 0 !important; left: 50% !important; top: 40% !important; box-shadow: 0 0 0 9999px rgba(10, 12, 18, .58); }
.tour-block { position: fixed; inset: 0; z-index: 199; }
.tour-tip {
  position: fixed; z-index: 201; width: min(360px, calc(100vw - 32px)); background: var(--surface); color: var(--fg);
  border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.3); padding: 20px; display: grid; gap: 10px;
  transition: top .3s ease, left .3s ease;
}
.tour-tip .tour-step { font-size: .78rem; font-weight: 800; color: var(--accent-ink); letter-spacing: .06em; text-transform: uppercase; }
.tour-tip p { color: var(--muted); font-size: .94rem; }
.tour-tip code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: .86em; }
.tour-dots { display: flex; gap: 5px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { background: var(--accent); width: 18px; border-radius: 99px; }
.tour-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.tour-nav .row { display: flex; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
