/* =========================================================
   PCRIGS – Design-System
   ========================================================= */
:root {
  --bg: #0b0e0d; --bg-2: #0f1312; --surface: #131917; --surface-2: #1a211e; --surface-3: #222b27;
  --line: #27312d; --line-2: #34403b; --text: #e9eeeb; --muted: #8e9993; --faint: #5d6863;
  --accent: #3ddc97; --accent-2: #2bb47a; --accent-ink: #04130b; --accent-soft: rgba(61,220,151,.12);
  --warn: #f5b83d; --warn-soft: rgba(245,184,61,.12); --err: #ff6b6b; --err-soft: rgba(255,107,107,.12);
  --info: #6cb4ff; --gold: #e2b33c; --silver: #b9c0c8; --bronze: #c98552;
  --radius: 10px; --radius-lg: 16px; --shadow: 0 18px 50px rgba(0,0,0,.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --maxw: 1240px; --header-h: 68px;
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #efecec; --bg-2: #e8e5e4; --surface: #ffffff; --surface-2: #f6f5f4; --surface-3: #eceae8;
  --line: #dcd8d5; --line-2: #c9c4c0; --text: #18201c; --muted: #5d6661; --faint: #8f9893;
  --accent: #14a96b; --accent-2: #0e8a56; --accent-ink: #ffffff; --accent-soft: rgba(20,169,107,.1);
  --shadow: 0 18px 40px rgba(30,30,30,.14); color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15.5px/1.6 var(--font); overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 0%, transparent 70%); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons & Formulare ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line-2); background: var(--surface-2);
  padding: 11px 18px; border-radius: var(--radius); font-weight: 650; cursor: pointer; transition: .15s; white-space: nowrap; line-height: 1.2; }
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-soft); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 15px 24px; font-size: 1.04rem; }
.btn-sm { padding: 7px 12px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; position: relative; }
.icon-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg, .btn svg { width: 20px; height: 20px; }
.badge-count { position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 700 11px/18px var(--font); text-align: center; padding: 0 4px; }
label { display: block; font-size: .86rem; color: var(--muted); margin: 0 0 6px; font-weight: 550; }
.input, select.input, textarea.input { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 11px 13px; outline: none; transition: .15s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { min-height: 120px; resize: vertical; }
.field { margin-bottom: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; color: var(--text); font-weight: 400; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--muted); }
.seg button.on { background: var(--surface-3); color: var(--text); }
.alert { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface-2); margin: 10px 0; font-size: .92rem; }
.alert.err { border-color: var(--err); background: var(--err-soft); }
.alert.ok { border-color: var(--accent); background: var(--accent-soft); }
.alert.warn { border-color: var(--warn); background: var(--warn-soft); }

/* ---------- Header ---------- */
.topbar { background: var(--accent); color: var(--accent-ink); font: 600 12.5px/1 var(--mono); letter-spacing: .06em; text-align: center; padding: 8px 12px; overflow: hidden; white-space: nowrap; }
.topbar span { margin: 0 18px; opacity: .92; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-in { height: var(--header-h); display: flex; align-items: center; gap: 22px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 1.42rem/1 var(--display); letter-spacing: .14em; flex: none; }
.logo svg { width: 34px; height: 34px; }
.logo img { display: block; width: auto; }
.logo-mark { height: 46px; border-radius: 10px; }
.logo-word { height: 21px; }
.logo:hover { color: var(--text); }
.logo b { color: var(--accent); font-weight: 800; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { white-space: nowrap; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: .93rem; color: var(--muted); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active, .nav a.active:hover { color: var(--accent); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mini-select { background: transparent; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; font: 600 12.5px var(--mono); cursor: pointer; }
.mini-select option { background: var(--surface); color: var(--text); }
.burger { display: none; }
@media (max-width: 1180px) {
  .nav { display: none; } .burger { display: inline-grid; }
  .header-actions .mini-select { display: none; }
}
.mobile-nav { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.5); display: none; }
.mobile-nav.open { display: block; }
.mobile-nav .panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--surface); padding: 22px; overflow: auto; border-right: 1px solid var(--line); }
.mobile-nav .panel a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 650; }
.mobile-nav .panel .mini-select { margin: 14px 8px 0 0; }

/* ---------- Drawer & Suche ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 95; opacity: 0; pointer-events: none; transition: .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(430px, 100vw); background: var(--surface); z-index: 100; transform: translateX(100%); transition: .25s ease; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; text-transform: uppercase; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); background: var(--bg-2); }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line-item .thumb { width: 64px; height: 64px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); object-fit: contain; display: grid; place-items: center; overflow: hidden; }
.line-item .thumb svg { width: 30px; height: 30px; color: var(--accent); }
.line-item .t { font-weight: 650; font-size: .94rem; line-height: 1.3; }
.line-item .v { color: var(--muted); font-size: .82rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; font-weight: 700; }
.qty span { min-width: 26px; text-align: center; font: 600 .9rem var(--mono); }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .8rem; text-decoration: underline; padding: 0; }
.search-box { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 0; transform: translateY(-110%); transition: .2s; box-shadow: var(--shadow); }
.search-box.open { transform: none; }
.search-box .input { font-size: 1.15rem; padding: 14px 16px; }
.search-results { margin-top: 12px; max-height: 60vh; overflow: auto; display: grid; gap: 4px; }
.search-results a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 8px; }
.search-results a:hover { background: var(--surface-2); color: var(--text); }
.search-results img { width: 44px; height: 44px; object-fit: contain; background: var(--surface-2); border-radius: 6px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .95; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin: 18px 0 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats div { font: 700 1.7rem var(--display); }
.hero-stats span { display: block; font: 500 .74rem var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.rig-frame { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: radial-gradient(circle at 60% 35%, var(--accent-soft), transparent 60%), var(--surface); padding: 18px; aspect-ratio: 1 / 1.02; overflow: hidden; }
.rig-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.rig-frame .corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--accent); }
.rig-frame .c1 { top: 8px; left: 8px; border-right: 0; border-bottom: 0; } .rig-frame .c2 { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.rig-frame .c3 { bottom: 8px; left: 8px; border-right: 0; border-top: 0; } .rig-frame .c4 { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.spec-tag { position: absolute; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 11px; font: 600 .76rem var(--mono); box-shadow: var(--shadow); }
.spec-tag b { color: var(--accent); display: block; font-size: .66rem; letter-spacing: .12em; }
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ticker-in { display: flex; gap: 46px; padding: 14px 0; width: max-content; animation: tick 40s linear infinite; font: 600 .84rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ticker-in span::before { content: "◆"; color: var(--accent); margin-right: 14px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-in { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .rig-frame { max-width: 520px; } }

/* ---------- Karten & Raster ---------- */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } .g2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .g3, .g4 { grid-template-columns: 1fr; } .row { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface)); overflow: hidden; transition: .2s; }
.cat-tile:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--text); }
.cat-tile svg { width: 42px; height: 42px; color: var(--accent); }
.cat-tile h3 { font-size: 1.4rem; text-transform: uppercase; margin: 14px 0 2px; }
.cat-tile .n { font: 500 .78rem var(--mono); color: var(--muted); }
.cat-tile .arrow { position: absolute; right: 18px; top: 18px; color: var(--muted); }
.p-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: .2s; position: relative; }
.p-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.p-card .img { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; overflow: hidden; position: relative; }
html:not([data-theme="light"]) .p-card .img { background: linear-gradient(180deg, #f4f5f4, #e6e9e7); }
.p-card .img img { width: 100%; height: 100%; object-fit: contain; transition: .3s; }
.p-card .img.cover img { object-fit: cover; }
.p-card:hover .img img { transform: scale(1.04); }
.p-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-card .brand { font: 600 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.p-card .title { font-weight: 700; line-height: 1.28; font-size: .98rem; }
.p-card .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.p-card .bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font: 600 .7rem var(--mono); padding: 4px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); letter-spacing: .02em; }
.chip.acc { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); }
.price { font: 700 1.2rem var(--display); letter-spacing: .02em; white-space: nowrap; }
.price .from { font: 500 .72rem var(--mono); color: var(--muted); display: block; letter-spacing: .06em; }
.price s { font-size: .8em; color: var(--faint); margin-left: 6px; font-weight: 500; }
.ribbon { position: absolute; top: 12px; left: 12px; z-index: 2; font: 700 .68rem var(--mono); letter-spacing: .08em; padding: 5px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); text-transform: uppercase; }
.ribbon.out { background: #3a3f3d; color: #fff; } .ribbon.sale { background: var(--warn); color: #1b1300; }
.ribbon.gold { background: var(--gold); color: #1b1300; } .ribbon.silber { background: var(--silver); color: #111; } .ribbon.bronze { background: var(--bronze); color: #fff; }
.stock { font: 600 .76rem var(--mono); display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.stock.low::before { background: var(--warn); } .stock.out::before { background: var(--err); }

/* ---------- Feature-Banner ---------- */
.band { border-radius: 22px; border: 1px solid var(--line); background: var(--surface); padding: 44px; position: relative; overflow: hidden; }
.band.accent { background: radial-gradient(circle at 85% 20%, var(--accent-soft), transparent 55%), var(--surface); }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } .band { padding: 28px; } }
.feat-list { display: grid; gap: 12px; margin: 18px 0 24px; padding: 0; list-style: none; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; }
.feat-list li .ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.05rem; }
.compat-demo { display: grid; gap: 8px; font: 600 .84rem var(--mono); }
.compat-demo div { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.compat-demo .ok { color: var(--accent); } .compat-demo .warn { color: var(--warn); } .compat-demo .err { color: var(--err); }
.usp { display: flex; gap: 14px; align-items: flex-start; }
.usp svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.usp h4 { margin: 0 0 3px; font-size: 1.05rem; text-transform: uppercase; }
.usp p { margin: 0; color: var(--muted); font-size: .9rem; }
.grade { border-radius: 14px; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.grade .em { font-size: 2rem; }
.grade.gold { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); } .grade.silber { border-color: color-mix(in srgb, var(--silver) 45%, var(--line)); } .grade.bronze { border-color: color-mix(in srgb, var(--bronze) 45%, var(--line)); }

/* ---------- Shop ---------- */
.page-head { padding: 46px 0 20px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.crumbs { font: 500 .78rem var(--mono); color: var(--muted); margin-bottom: 10px; letter-spacing: .04em; }
.crumbs a:hover { color: var(--accent); }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 22px; }
.filters h4 { font: 700 .76rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.filter-list { display: grid; gap: 4px; }
.filter-list button { text-align: left; border: 0; background: transparent; padding: 7px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; font-weight: 550; color: var(--muted); }
.filter-list button:hover { background: var(--surface-2); color: var(--text); }
.filter-list button.on { background: var(--accent-soft); color: var(--accent); }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; } .filters { position: static; display: none; } .filters.open { display: grid; } .filter-toggle { display: inline-flex; }
}
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }

/* ---------- Produkt ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; padding-bottom: 40px; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 26px; } }
.gallery .main { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; cursor: zoom-in; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery .thumbs button { flex: none; width: 70px; height: 70px; border-radius: 10px; border: 2px solid transparent; background: #fff; padding: 0; overflow: hidden; cursor: pointer; }
.gallery .thumbs button.on { border-color: var(--accent); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { position: sticky; top: calc(var(--header-h) + 18px); }
.pdp-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-transform: none; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 6px; }
.pdp-price .price { font-size: 2.2rem; }
.opt-group { margin: 18px 0; }
.opt-group .name { font: 700 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.opt-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btns button { border: 1px solid var(--line-2); background: var(--bg-2); padding: 9px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.opt-btns button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.opt-btns button.na { opacity: .4; text-decoration: line-through; }
.buy-row { display: flex; gap: 10px; margin: 20px 0 14px; }
.buy-row .qty { margin: 0; } .buy-row .qty button { width: 40px; height: 48px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child { color: var(--muted); font: 600 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; width: 38%; padding-top: 12px; }
.trust { display: grid; gap: 10px; margin-top: 18px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.trust div { display: flex; gap: 10px; align-items: center; }
.trust svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.rte { color: var(--text); }
.rte h2, .rte h3, .rte h4 { text-transform: none; font-size: 1.25rem; margin-top: 1.3em; }
.rte ul { padding-left: 1.2em; } .rte li { margin: .3em 0; }
.rte table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .9rem; }
.rte th, .rte td { border: 1px solid var(--line); padding: 8px; text-align: left; }
.rte hr { border: 0; border-top: 1px solid var(--line); margin: 1.4em 0; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 12px 14px; cursor: pointer; font-weight: 650; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--text); border-color: var(--accent); }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.92); display: none; place-items: center; padding: 30px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; max-width: 92vw; object-fit: contain; background: #fff; border-radius: 10px; }

/* ---------- Warenkorb / Kasse ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 30px; align-items: start; }
@media (max-width: 960px) { .checkout-grid { grid-template-columns: 1fr; } }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: .95rem; }
.sum-row.total { border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 14px; font: 700 1.3rem var(--display); }
.sum-row .muted { font-size: .85rem; }
.step-title { display: flex; align-items: center; gap: 10px; font: 700 1.05rem var(--display); text-transform: uppercase; margin: 0 0 16px; }
.step-title .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 .8rem var(--mono); }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--radius); cursor: pointer; margin-bottom: 8px; background: var(--bg-2); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { accent-color: var(--accent); margin-top: 4px; }
.choice .r { margin-left: auto; font-weight: 700; white-space: nowrap; }
.pay-modal { position: fixed; inset: 0; z-index: 130; background: rgba(0,0,0,.7); display: none; place-items: center; padding: 16px; }
.pay-modal.open { display: grid; }
.pay-modal .box { width: min(560px, 100%); height: min(760px, 92vh); background: #fff; border-radius: 16px; overflow: hidden; position: relative; }
.pay-modal iframe { width: 100%; height: 100%; border: 0; }
.pay-modal .x { position: absolute; top: 8px; right: 8px; z-index: 2; background: #111; color: #fff; }
.status-hero { text-align: center; padding: 54px 20px 30px; }
.status-hero .big { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--accent-soft); color: var(--accent); }
.status-hero .big svg { width: 38px; height: 38px; }
.timeline { display: flex; justify-content: space-between; position: relative; margin: 30px 0; }
.timeline::before { content: ""; position: absolute; top: 13px; left: 6%; right: 6%; height: 2px; background: var(--line-2); }
.timeline div { position: relative; text-align: center; flex: 1; font: 600 .74rem var(--mono); color: var(--muted); }
.timeline div::before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-2); }
.timeline div.done { color: var(--text); } .timeline div.done::before { background: var(--accent); border-color: var(--accent); }

/* ---------- Konto ---------- */
.acc-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .acc-layout { grid-template-columns: 1fr; } }
.acc-nav { display: grid; gap: 4px; }
.acc-nav button { text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.acc-nav button.on, .acc-nav button:hover { background: var(--surface-2); color: var(--text); }
.stat { padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.stat .k { font: 600 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat .v { font: 700 1.8rem var(--display); margin-top: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font: 600 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 600 .72rem var(--mono); background: var(--surface-3); color: var(--muted); }
.pill.ok { background: var(--accent-soft); color: var(--accent); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.err { background: var(--err-soft); color: var(--err); }
.auth-box { max-width: 460px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 60px; padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font: 700 .76rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .92rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font: 500 .78rem var(--mono); color: var(--muted); }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; }
.nl-form { display: flex; gap: 8px; margin-top: 10px; }
.pay-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-icons span { font: 700 .66rem var(--mono); padding: 5px 7px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--muted); }

/* ---------- Toast ---------- */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, 92vw); }
.toast { background: var(--surface-3); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); padding: 12px 14px; border-radius: 10px; box-shadow: var(--shadow); font-size: .92rem; animation: tin .2s ease; }
.toast.err { border-left-color: var(--err); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius-lg); min-height: 320px; }
@keyframes sk { to { background-position: -200% 0; } }
.legal h2 { font-size: 1.35rem; text-transform: none; margin-top: 1.8em; }
.legal { max-width: 820px; }
.legal p, .legal li { color: var(--text); }
.notice-preview { position: fixed; left: 12px; bottom: 12px; z-index: 60; font: 600 .72rem var(--mono); background: var(--warn); color: #1b1300; padding: 6px 10px; border-radius: 7px; }

/* ---------- Konfigurator ---------- */
.cfg { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; padding-bottom: 40px; }
.cfg-left { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 14px); max-height: calc(100vh - var(--header-h) - 28px); overflow: auto; scrollbar-width: thin; }
.cfg-step { width: 100%; display: grid; grid-template-columns: 36px 1fr auto 10px; gap: 10px; align-items: center; text-align: left; padding: 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; }
.cfg-step:hover { background: var(--surface-2); }
.cfg-step.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.cfg-step .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); }
.cfg-step .ic svg { width: 22px; height: 22px; }
.cfg-step .tx { min-width: 0; }
.cfg-step .k { display: block; font: 700 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cfg-step .k i { color: var(--warn); font-style: normal; }
.cfg-step .v { display: block; font-weight: 600; font-size: .88rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.cfg-step .pr { font: 600 .82rem var(--mono); white-space: nowrap; }
.cfg-step .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.cfg-step .dot.ok { background: var(--accent); } .cfg-step .dot.warn { background: var(--warn); } .cfg-step .dot.err { background: var(--err); }
.cfg-step.err { border-color: color-mix(in srgb, var(--err) 50%, transparent); }
.meter { margin: 14px 0; }
.meter .bar { height: 8px; border-radius: 4px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
.issues { display: grid; gap: 6px; margin-bottom: 14px; }
.iss { font-size: .84rem; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); line-height: 1.4; }
.iss.ok { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.iss.err { background: var(--err-soft); color: var(--err); } .iss.warn { background: var(--warn-soft); color: var(--warn); } .iss.info { color: var(--info); }
.pk-item .iss { margin-top: 6px; padding: 5px 8px; font-size: .78rem; }
.pk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.pk-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pk-tools #pk-q { flex: 1; min-width: 180px; }
.pk-brands { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pk-brands button { border: 1px solid var(--line-2); background: transparent; border-radius: 999px; padding: 5px 11px; cursor: pointer; font: 600 .76rem var(--mono); color: var(--muted); }
.pk-brands button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pk-list { display: grid; gap: 8px; }
.pk-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); width: 100%; text-align: left; }
button.pk-item { grid-template-columns: 1fr auto; cursor: pointer; margin-bottom: 8px; font-weight: 650; }
.pk-item.on { border-color: var(--accent); background: var(--accent-soft); }
.pk-item.bad { opacity: .62; }
.pk-item img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; }
.pk-ic { width: 56px; height: 56px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); }
.pk-ic svg { width: 30px; height: 30px; }
.pk-txt { min-width: 0; }
.pk-txt .nm { font-weight: 700; line-height: 1.3; }
.pk-txt .sp { color: var(--muted); font-size: .74rem; margin-top: 3px; }
.pk-buy { display: grid; gap: 6px; justify-items: end; }
.pk-price { font: 700 1.05rem var(--display); white-space: nowrap; }
.cfg-mobilebar { display: none; }
@media (max-width: 900px) {
  .cfg { grid-template-columns: 1fr; } .cfg-left { position: static; max-height: none; }
  .cfg-mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px; gap: 12px; align-items: center; justify-content: space-between; }
  .page-konfigurator .site-footer { padding-bottom: 90px; }
  .pk-item { grid-template-columns: 44px 1fr; } .pk-item img, .pk-ic { width: 44px; height: 44px; } .pk-buy { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
}
/* Grid-Kinder dürfen schrumpfen (verhindert horizontales Scrollen auf dem Handy) */
.grid > *, .pdp > *, .cfg > *, .checkout-grid > *, .shop-layout > *, .acc-layout > *, .hero-grid > *, .band-grid > *, .footer-grid > * { min-width: 0; }
.opt-btns button { max-width: 100%; text-align: left; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } .band { padding: 22px; } .pdp-price .price { font-size: 1.9rem; } .buy-row .btn-lg { padding: 13px 14px; } }
@media (max-width: 520px) {
  .header-in { gap: 8px; } .header-actions { gap: 0; }
  .logo { gap: 8px; } .logo-mark { height: 36px; } .logo-word { height: 18px; }
  .header-actions [data-theme-toggle] { display: none; }
  .icon-btn { width: 38px; height: 38px; }
}
.mobile-nav .panel button[data-theme-toggle] { margin-top: 14px; width: auto; display: inline-flex; gap: 8px; }
.img-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent); background: radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 65%), var(--surface-2); }
.img-fallback svg { width: 38%; height: 38%; max-width: 110px; }
.p-card .img .img-fallback, .gallery .img-fallback { background: radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 65%), #1d2421; }
.line-item .img-fallback { width: 64px; height: 64px; border-radius: 8px; }

/* ---------- KI-Assistent ---------- */
#pr-chat { position: fixed; right: 18px; bottom: 18px; z-index: 90; font-family: var(--font); }
.chat-fab { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.4), 0 0 0 0 var(--accent-soft); transition: transform .18s ease, box-shadow .18s ease; position: relative; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 27px; height: 27px; grid-area: 1 / 1; transition: opacity .15s, transform .2s; }
.chat-fab .i-x { opacity: 0; transform: rotate(-60deg) scale(.6); }
#pr-chat.open .chat-fab .i-chat { opacity: 0; transform: rotate(60deg) scale(.6); }
#pr-chat.open .chat-fab .i-x { opacity: 1; transform: none; }
#pr-chat:not(.open) .chat-fab { animation: chatPulse 3.2s ease-out 2.5s 2; }
@keyframes chatPulse { 0% { box-shadow: 0 10px 28px rgba(0,0,0,.4), 0 0 0 0 rgba(61,220,151,.55); } 70%, 100% { box-shadow: 0 10px 28px rgba(0,0,0,.4), 0 0 0 18px rgba(61,220,151,0); } }
.chat-panel { position: absolute; right: 0; bottom: 72px; width: 372px; max-width: calc(100vw - 28px); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.5); overflow: hidden; animation: chatIn .2s ease; }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.chat-panel header { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.chat-av { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 700 .78rem var(--mono); letter-spacing: .04em; border: 1px solid var(--accent); }
.chat-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.chat-ht b { font-size: .98rem; }
.chat-ht span { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-ht i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.chat-hb { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.chat-hb:hover { background: var(--surface-3); color: var(--text); }
.chat-hb svg { width: 18px; height: 18px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.chat-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg p { margin: 0; } .chat-msg p + p, .chat-msg p + ul, .chat-msg ul + p { margin-top: 6px; }
.chat-msg ul { margin: 4px 0 0; padding-left: 18px; } .chat-msg li { margin: 2px 0; }
.chat-msg a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.chat-msg.bot { background: var(--surface-3); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg.err { border: 1px solid var(--err); }
.chat-msg.typing { display: flex; gap: 5px; padding: 13px 14px; }
.chat-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chatDot 1.1s infinite ease-in-out; }
.chat-msg.typing span:nth-child(2) { animation-delay: .15s; } .chat-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chat-chips button { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: .82rem; cursor: pointer; text-align: left; }
.chat-chips button:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form textarea { flex: 1; resize: none; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); border-radius: 12px; padding: 9px 12px; font: inherit; font-size: .93rem; max-height: 110px; line-height: 1.4; }
.chat-form textarea:focus { outline: none; border-color: var(--accent); }
.chat-form button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.chat-form button svg { width: 20px; height: 20px; }
.chat-note { margin: 0; padding: 0 14px 10px; font-size: .7rem; color: var(--faint); line-height: 1.35; }
@media (max-width: 520px) {
  #pr-chat { right: 12px; bottom: 12px; }
  .chat-fab { width: 54px; height: 54px; }
  .chat-panel { position: fixed; right: 8px; left: 8px; bottom: 76px; width: auto; max-width: none; height: min(78vh, calc(100vh - 96px)); }
}
@media (prefers-reduced-motion: reduce) { .chat-fab, .chat-panel, #pr-chat:not(.open) .chat-fab { animation: none; transition: none; } }
#pr-chat button { -webkit-tap-highlight-color: transparent; }

.opt-btns button.has-sub { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.opt-btns button small { font-size: .72rem; font-weight: 400; opacity: .75; line-height: 1.25; }
