/* Powercable Shop – Grundlagen: Farben, Schrift, Navigation, Overlays */
:root {
  color-scheme: light;
  --bg: #FAFAFC;
  --surface: #FFFFFF;
  --surface-2: #F4F4F7;
  --ink: #1D1D1F;
  --ink-2: #515154;
  --muted: #6E6E73;
  --line: #E3E3E8;
  --accent: #A0552A;
  --accent-soft: #F6EAE2;
  --cta: #1D1D1F;
  --cta-ink: #FFFFFF;
  --ok: #1E7F45;
  --ok-bg: #E7F4EC;
  --warn: #8F5400;
  --warn-bg: #FFF1D9;
  --nav-bg: rgba(250, 250, 252, .74);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .08);
  --art-body: #2A2C31;
  --art-body-2: #17181B;
  --art-top: #3B3E45;
  --art-hole: #0B0C0E;
  --art-pin: #D8B26A;
  --art-floor: rgba(0, 0, 0, .10);
  --f: "Geist", -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-card: 18px;
  --r-ctl: 12px;
  --max: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A0A0B; --surface: #151517; --surface-2: #1D1D20; --ink: #F5F5F7; --ink-2: #C7C7CC;
    --muted: #98989D; --line: #2C2C30; --accent: #E39A68; --accent-soft: #2E2019; --cta: #F5F5F7;
    --cta-ink: #111113; --ok: #5AC985; --ok-bg: #11291A; --warn: #F0B65E; --warn-bg: #30230F;
    --nav-bg: rgba(10, 10, 11, .72); --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .5);
    --art-body: #3A3D44; --art-body-2: #24262B; --art-top: #4C5058; --art-hole: #0D0E10; --art-pin: #E3C27F;
    --art-floor: rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0A0B; --surface: #151517; --surface-2: #1D1D20; --ink: #F5F5F7; --ink-2: #C7C7CC;
  --muted: #98989D; --line: #2C2C30; --accent: #E39A68; --accent-soft: #2E2019; --cta: #F5F5F7;
  --cta-ink: #111113; --ok: #5AC985; --ok-bg: #11291A; --warn: #F0B65E; --warn-bg: #30230F;
  --nav-bg: rgba(10, 10, 11, .72); --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .5);
  --art-body: #3A3D44; --art-body-2: #24262B; --art-top: #4C5058; --art-hole: #0D0E10; --art-pin: #E3C27F;
  --art-floor: rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--f); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a.link, .link { color: var(--accent); }
a.link:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); letter-spacing: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { margin: 0; letter-spacing: -.022em; text-wrap: balance; }
p { margin: 0; }
svg { display: block; }

.proto-note {
  background: var(--surface-2); color: var(--muted); font-size: 12px; text-align: center;
  padding: 6px 16px; border-bottom: 1px solid var(--line);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 30; background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: var(--max); margin: 0 auto; padding: 0 22px; height: 56px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; flex: none; }
.brand-mark { width: 24px; height: 24px; color: var(--ink); }
.brand-core { fill: var(--accent); }
.nav-cats { display: flex; gap: 20px; font-size: 13px; color: var(--ink-2); min-width: 0; overflow: hidden; white-space: nowrap; }
.nav-cats a:hover, .nav-cats a[aria-current="page"] { color: var(--ink); }
.nav-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px;
  min-width: 220px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: 13px;
}
.nav-search svg, .icon-btn svg, .spot-field svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-search kbd {
  margin-left: auto; font: 500 11px var(--f-mono); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; color: var(--muted); background: var(--surface-2);
}
.nav-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 500; }
.land-pick select {
  appearance: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  height: 30px; padding: 0 12px; font-size: 12.5px; color: var(--ink-2);
}
.icon-btn { position: relative; width: 34px; height: 34px; border-radius: 999px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); }
.lang-btn { width: auto; padding: 0 9px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.badge {
  position: absolute; top: 1px; right: -1px; min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #FFF; font-size: 10.5px; font-weight: 600;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}

/* ---------- Buttons & Formulare ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0;
  border-radius: 999px; height: 44px; padding: 0 22px; font-weight: 500; font-size: 15px;
  background: var(--cta); color: var(--cta-ink); transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn.secondary { background: var(--surface-2); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--accent); padding: 0 6px; height: auto; }
.btn.small { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  height: 44px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface);
  padding: 0 14px; font-size: 15px; color: var(--ink);
}
.field textarea { height: 88px; padding: 10px 14px; resize: vertical; }
.hint { font-size: 12.5px; color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--ink-2);
}
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; }
.pill.ok { color: var(--ok); background: var(--ok-bg); }
.pill.warn { color: var(--warn); background: var(--warn-bg); }
.pill.muted { color: var(--muted); background: var(--surface-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Mengenwähler ---------- */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); height: 40px; }
.qty button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 18px; color: var(--ink-2); border-radius: 999px; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 64px; border: 0; background: transparent; text-align: center; font: 500 15px var(--f-mono); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty.small { height: 32px; }
.qty.small button { width: 30px; height: 30px; font-size: 16px; }
.qty.small input { width: 52px; font-size: 13.5px; }

/* ---------- Spotlight-Suche ---------- */
.spotlight { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .28); display: grid; justify-items: center; align-items: start; padding: 11vh 16px 16px; }
.spot-panel {
  width: min(680px, 100%); background: var(--surface); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
  overflow: hidden; border: 1px solid var(--line);
}
.spot-field { display: flex; align-items: center; gap: 12px; padding: 0 16px 0 20px; height: 62px; border-bottom: 1px solid var(--line); }
.spot-field svg { width: 22px; height: 22px; color: var(--muted); }
.spot-field input { flex: 1; border: 0; background: transparent; font-size: 20px; outline: none; color: var(--ink); min-width: 0; }
.spot-field input::-webkit-search-cancel-button { display: none; }
.spot-esc { border: 1px solid var(--line); background: var(--surface-2); border-radius: 6px; font: 500 11px var(--f-mono); color: var(--muted); padding: 3px 7px; }
.spot-results { max-height: min(62vh, 560px); overflow-y: auto; padding: 8px; }
.spot-group { padding: 10px 12px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spot-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 12px; }
.spot-item[aria-selected="true"], .spot-item:hover { background: var(--surface-2); }
.spot-thumb { width: 52px; height: 40px; }
.spot-title { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-price { font: 500 13px var(--f-mono); color: var(--ink-2); text-align: right; }
.spot-empty { padding: 26px 18px; color: var(--muted); font-size: 14px; }
mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Warenkorb-Schublade, Modal, Toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .28); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 50; background: var(--surface);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .18); display: flex; flex-direction: column;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; display: grid; gap: 12px; }
.close-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 18px; line-height: 1; color: var(--ink-2); }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .32); display: grid; place-items: center; padding: 16px; }
.modal-card { width: min(460px, 100%); background: var(--surface); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); padding: 26px; display: grid; gap: 16px; max-height: 92vh; overflow-y: auto; }
.modal-card h2 { font-size: 22px; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--bg);
  padding: 11px 18px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px);
}

/* ---------- Fußzeile ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 36px 0 44px; color: var(--muted); font-size: 12.5px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer h3 { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: 0; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer a:hover { color: var(--ink); }
.footer-base { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (max-width: 980px) {
  .nav-cats { display: none; }
  .nav-search { min-width: 0; flex: 1; }
  .nav-search kbd { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav-in { gap: 10px; padding: 0 14px; }
  .brand span { display: none; }
  .land-pick, .lang-btn { display: none; }
  .nav-search span { display: none; }
  .nav-search { flex: 0 0 auto; width: 34px; min-width: 34px; padding: 0; justify-content: center; }
  .wrap { padding: 0 16px; }
}
