/* SpieleGamer Shop – Design */
:root {
  --bg: #0a0a12; --bg2: #10101c; --card: #151524; --card2: #1b1b2e; --line: #26263d; --line2: #33334f;
  --text: #ececf6; --muted: #9a9ab5; --dim: #6c6c88;
  --acc: #7c5cff; --acc2: #00d4ff; --ok: #22c55e; --warn: #f59e0b; --err: #ef4444; --info: #38bdf8;
  --r: 16px; --r-sm: 10px; --shadow: 0 10px 40px rgba(0,0,0,.45);
  --grad: linear-gradient(135deg, var(--acc), var(--acc2));
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%),
              radial-gradient(700px 420px at -10% 20%, color-mix(in srgb, var(--acc2) 12%, transparent), transparent 70%); }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1240px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Topbar & Header */
.topbar { background: var(--grad); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 7px 12px; }
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--acc) 45%, transparent); }
.logo-mark svg { width: 22px; height: 22px; stroke: #fff; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a:hover, .nav a.on { color: #fff; background: var(--card); }
.search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.search input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); padding: 0 14px 0 40px; font: inherit; }
.search input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 25%, transparent); }
.search svg { position: absolute; left: 12px; top: 11px; color: var(--dim); }
.hicons { display: flex; gap: 6px; }
.hicon { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--muted);
  background: transparent; border: 0; cursor: pointer; }
.hicon:hover { background: var(--card); color: #fff; }
.badge-count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.badge-count:empty, .badge-count[data-n="0"] { display: none; }
.burger { display: none; }
@media (max-width: 900px) {
  .nav { display: none; } .burger { display: grid; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin: 0 0 10px; }
  .header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 10px; }
  .logo { margin-right: auto; }
  body.nav-open .nav { display: flex; flex-direction: column; order: 6; flex-basis: 100%; padding-bottom: 10px; }
}

/* ---------- Buttons & Formulare */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px;
  border: 1px solid var(--line2); background: var(--card2); color: var(--text); font: 700 14px var(--font); cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { border-color: var(--acc); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 26px color-mix(in srgb, var(--acc) 40%, transparent); }
.btn-primary:hover { box-shadow: 0 12px 34px color-mix(in srgb, var(--acc) 55%, transparent); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; }
.btn-danger { border-color: color-mix(in srgb, var(--err) 50%, transparent); color: #fca5a5; }
.btn-danger:hover { background: color-mix(in srgb, var(--err) 18%, transparent); border-color: var(--err); }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
label { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 44px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg2); color: var(--text);
  padding: 10px 13px; font: inherit; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }
input[type=color] { width: 60px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg2); padding: 4px; }
.field { margin-bottom: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--text); font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--acc); flex: none; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- Karten & Layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head p { margin: 0; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--acc2); margin-bottom: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px;
  font-weight: 700; background: var(--card2); border: 1px solid var(--line2); color: var(--muted); }
.pill.ok { color: #86efac; border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.pill.warn { color: #fcd34d; border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.pill.info { color: #7dd3fc; border-color: color-mix(in srgb, var(--info) 45%, transparent); background: color-mix(in srgb, var(--info) 12%, transparent); }
.pill.err { color: #fca5a5; border-color: color-mix(in srgb, var(--err) 45%, transparent); background: color-mix(in srgb, var(--err) 12%, transparent); }
.pill.acc { color: #fff; border: 0; background: var(--grad); }

/* ---------- Hero */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.6vw, 66px); line-height: 1.02; margin-bottom: 18px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero-trust svg { color: var(--acc2); }
.hero-art { position: relative; aspect-ratio: 1; }
.hero-art .orb { position: absolute; inset: 8%; border-radius: 50%; background: var(--grad); filter: blur(60px); opacity: .45; animation: pulse 7s ease-in-out infinite; }
.hero-art .stack { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-card { position: absolute; width: 58%; border-radius: 22px; background: var(--card); border: 1px solid var(--line2); box-shadow: var(--shadow);
  overflow: hidden; animation: float 6s ease-in-out infinite; }
.hero-card img, .hero-card .ph { aspect-ratio: 1; object-fit: cover; width: 100%; }
.hero-card .meta { padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 14px; }
.hero-card:nth-child(2) { transform: translate(-30%, 12%) rotate(-8deg); animation-delay: -2s; z-index: 1; }
.hero-card:nth-child(3) { transform: translate(32%, -10%) rotate(7deg); animation-delay: -4s; z-index: 2; }
@keyframes float { 50% { margin-top: -14px; } }
@keyframes pulse { 50% { opacity: .25; transform: scale(.92); } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 420px; margin: 0 auto; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-card, .hero-art .orb { animation: none; } }

/* ---------- Kategorien */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cat { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, background .2s; }
.cat:hover { transform: translateY(-3px); border-color: var(--acc); background: var(--card2); }
.cat .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px;
  background: color-mix(in srgb, var(--acc) 16%, var(--card2)); flex: none; }
.cat b { display: block; } .cat small { color: var(--dim); }

/* ---------- Produktkarten */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.pcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 60%, var(--line)); box-shadow: var(--shadow); }
.pcard .img { position: relative; aspect-ratio: 1; background: var(--bg2); overflow: hidden; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .img img { transform: scale(1.06); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 54px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 30%, var(--bg2)), color-mix(in srgb, var(--acc2) 20%, var(--bg2))); }
.pcard .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.pcard .fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--bg) 70%, transparent); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.fav.on svg { fill: #ff4d7d; stroke: #ff4d7d; }
.pcard .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .name { font-weight: 700; font-size: 15px; line-height: 1.35; }
.pcard .short { color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; font-size: 18px; }
.price s { color: var(--dim); font-weight: 600; font-size: 14px; margin-left: 6px; }
.stars { color: #fbbf24; letter-spacing: 1px; font-size: 13px; }
.stars .n { color: var(--dim); letter-spacing: 0; margin-left: 4px; }
.add-btn { width: 40px; height: 40px; border-radius: 11px; border: 0; background: var(--grad); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: transform .15s; }
.add-btn:hover { transform: scale(1.08); }
.add-btn svg { stroke: #fff; }
.soldout { filter: grayscale(.7); opacity: .75; }

/* ---------- Features-Band */
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { display: flex; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; flex: none; }
.feature .ic svg { stroke: #fff; }
.feature b { display: block; margin-bottom: 2px; } .feature span { color: var(--muted); font-size: 13px; }

/* ---------- Listing */
.page-head { padding: 40px 0 18px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--muted);
  font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; }
.chip.on, .chip:hover { border-color: var(--acc); color: #fff; background: color-mix(in srgb, var(--acc) 18%, var(--card)); }
.toolbar select { width: auto; min-height: 38px; padding: 6px 12px; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .big { font-size: 56px; margin-bottom: 10px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }

/* ---------- Produktseite */
.pd { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; padding: 20px 0 50px; }
@media (max-width: 900px) { .pd { grid-template-columns: 1fr; gap: 24px; } }
.gallery .main { aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); position: relative; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumbs button { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg2);
  cursor: pointer; flex: none; }
.thumbs button.on { border-color: var(--acc); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(26px, 3.2vw, 38px); }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 6px; }
.pd-price .price { font-size: 34px; }
.pd-price .save { font-size: 13px; }
.vat { font-size: 12px; color: var(--dim); margin-bottom: 22px; }
.variants { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.variants label { margin: 0; }
.variants input { position: absolute; opacity: 0; pointer-events: none; }
.variants span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line2);
  background: var(--card); color: var(--text); font-weight: 700; cursor: pointer; transition: all .15s; }
.variants input:checked + span { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 20%, var(--card)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 20%, transparent); }
.variants input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.buy { display: flex; gap: 10px; margin-bottom: 18px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); height: 54px; }
.qty button { width: 42px; height: 100%; border: 0; background: none; color: var(--text); font-size: 20px; cursor: pointer; }
.qty input { width: 46px; min-height: 0; height: 100%; border: 0; background: none; text-align: center; font-weight: 700; padding: 0; box-shadow: none !important; }
.qty.sm { height: 38px; } .qty.sm button { width: 32px; font-size: 16px; } .qty.sm input { width: 36px; }
.stockline { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.dot.low { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 20%, transparent); }
.dot.out { background: var(--err); box-shadow: 0 0 0 4px color-mix(in srgb, var(--err) 20%, transparent); }
.perks { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.perks div { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.perks svg { color: var(--acc2); }
.prose { color: #d3d3e6; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; color: var(--text); }
.prose ul { padding-left: 20px; } .prose li { margin: 4px 0; }
.prose a { color: var(--acc2); text-decoration: underline; text-underline-offset: 3px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; color: var(--muted); font: 700 15px var(--font); padding: 12px 14px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: #fff; border-color: var(--acc); }
.tab-panel { display: none; } .tab-panel.on { display: block; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border: 0; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { font-size: 28px; color: var(--line2); cursor: pointer; margin: 0; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #fbbf24; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.9); display: none; place-items: center; cursor: zoom-out; }
.lightbox.on { display: grid; } .lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 14px; }

/* ---------- Warenkorb & Kasse */
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; padding-bottom: 60px; }
@media (max-width: 960px) { .cart-grid { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:first-child { padding-top: 0; } .line:last-child { border: 0; padding-bottom: 0; }
.line .thumb { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--bg2); }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .thumb .ph { font-size: 30px; }
.line .right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.summary { position: sticky; top: 90px; }
.sumrow { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; color: var(--muted); }
.sumrow b { color: var(--text); }
.sumrow.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 19px; color: var(--text); font-weight: 800; }
.ship-bar { height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; margin: 8px 0 4px; }
.ship-bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.pay-icons { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.pay-icons span { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); }
.steps { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; font-size: 13px; font-weight: 700; color: var(--dim); flex-wrap: wrap; }
.steps .on { color: #fff; } .steps i { width: 26px; height: 1px; background: var(--line2); }
.steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--card2); margin-right: 6px; font-size: 12px; }
.steps .on b { background: var(--grad); }

/* ---------- Hinweise */
.flash-wrap { position: fixed; top: 84px; right: 16px; z-index: 120; display: grid; gap: 10px; width: min(380px, calc(100% - 32px)); }
.flash { padding: 13px 16px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 600;
  font-size: 14px; display: flex; gap: 10px; align-items: flex-start; animation: slidein .3s ease; }
.flash.ok { border-color: color-mix(in srgb, var(--ok) 60%, transparent); } .flash.ok::before { content: "✓"; color: var(--ok); }
.flash.error { border-color: color-mix(in srgb, var(--err) 60%, transparent); } .flash.error::before { content: "!"; color: var(--err); font-weight: 900; }
.flash.info::before { content: "i"; color: var(--info); font-weight: 900; }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } }
.alert { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); margin-bottom: 18px; font-size: 14px; }
.alert.err { border-color: color-mix(in srgb, var(--err) 60%, transparent); background: color-mix(in srgb, var(--err) 10%, var(--card)); }
.alert.ok { border-color: color-mix(in srgb, var(--ok) 60%, transparent); background: color-mix(in srgb, var(--ok) 10%, var(--card)); }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------- Bestellung */
.status-hero { text-align: center; padding: 34px 20px; }
.status-hero .big { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 40px;
  background: color-mix(in srgb, var(--ok) 18%, var(--card)); border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); }
.status-hero .big.wait { background: color-mix(in srgb, var(--warn) 14%, var(--card)); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.keybox { font-family: ui-monospace, Consolas, monospace; background: var(--bg2); border: 1px dashed var(--line2); border-radius: 10px; padding: 8px 12px;
  display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 6px; word-break: break-all; }
.timeline { display: flex; justify-content: space-between; position: relative; margin: 24px 0 8px; }
.timeline::before { content: ""; position: absolute; top: 13px; left: 8%; right: 8%; height: 2px; background: var(--line2); }
.timeline div { position: relative; text-align: center; flex: 1; font-size: 12px; color: var(--dim); font-weight: 700; }
.timeline div b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card2); border: 2px solid var(--line2);
  margin: 0 auto 6px; }
.timeline div.done { color: var(--text); } .timeline div.done b { background: var(--grad); border-color: transparent; }

/* ---------- Tabellen */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--card2) 60%, transparent); }
.num { text-align: right; white-space: nowrap; }

/* ---------- Auth */
.auth { max-width: 440px; margin: 50px auto 80px; }
.auth .card { padding: 30px; }
.auth h1 { font-size: 28px; text-align: center; }
.auth .sub { text-align: center; color: var(--muted); margin-bottom: 22px; }

/* ---------- Footer */
.footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg2); padding: 48px 0 24px; }
.fgrid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
@media (max-width: 800px) { .fgrid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 14px; }
.footer a { display: block; color: var(--muted); padding: 3px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; padding: 0; }
.fbottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }

/* ---------- Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140%); z-index: 150; background: var(--card2); border: 1px solid var(--line2);
  border-radius: 14px; padding: 12px 14px 12px 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; font-weight: 600;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2); max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); }

/* ---------- Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Korrekturen */
html, body { overflow-x: clip; }
.hero { overflow: hidden; }
.search input[type=search] { padding-left: 40px; }
.pd > *, .cart-grid > *, .form-grid > *, .two > * { min-width: 0; }
@media (max-width: 600px) {
  .logo { font-size: 16px; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; }
  .hicons { gap: 0; }
  .hicon { width: 36px; height: 36px; }
  .buy { flex-wrap: wrap; }
  .buy .btn-primary { min-width: 0; padding: 0 14px; }
  .line { grid-template-columns: 64px 1fr; }
  .line .thumb { width: 64px; height: 64px; }
  .line .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .hero-art { max-width: 300px; }
  .hero-trust { gap: 12px; }
  .section-head { flex-wrap: wrap; align-items: flex-start; }
}

/* ---------- Rechnung (Druck) */
.invoice { background: #fff; color: #111; max-width: 820px; margin: 30px auto; padding: 48px; border-radius: 10px; font-size: 14px; }
.invoice table th, .invoice table td { border-color: #ddd; color: #111; }
.invoice .muted { color: #666; }
@media print { body { background: #fff; } body::before, .no-print { display: none !important; } .invoice { margin: 0; padding: 0; box-shadow: none; } }
