/* Powercable Shop – Seiten: Start, Kategorie, Artikel, Warenkorb, Kasse */

/* ---------- Start ---------- */
.hero { padding: 72px 0 36px; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin-top: 14px; font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; white-space: pre-line; }
.hero .sub { margin: 18px auto 0; max-width: 40ch; font-size: clamp(17px, 2vw, 21px); line-height: 1.4; color: var(--ink-2); }
.hero-search {
  margin: 34px auto 0; width: min(640px, 100%); height: 58px; display: flex; align-items: center; gap: 12px;
  padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow); color: var(--muted); font-size: 17px; text-align: left;
}
.hero-search svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.quick { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.facts { margin: 44px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 40px; color: var(--muted); font-size: 13.5px; }
.facts b { display: block; color: var(--ink); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }

.section { margin-top: 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 15px; margin-top: 6px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 18px; }
.cat-tile {
  display: grid; grid-template-rows: 150px auto; gap: 14px; padding: 22px; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-tile .art { background: var(--surface-2); border-radius: 16px; display: grid; place-items: center; overflow: hidden; }
.cat-tile .art svg { width: 78%; height: 88%; }
.cat-tile h3 { font-size: 18px; font-weight: 600; }
.cat-tile p { color: var(--muted); font-size: 13.5px; margin-top: 3px; }

.usp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.usp div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.usp svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.usp h3 { font-size: 16px; font-weight: 600; }
.usp p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 44px; }
.story h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; line-height: 1.08; white-space: pre-line; }
.story p { color: var(--ink-2); font-size: 17px; margin-top: 16px; max-width: 46ch; }
.story .btn { margin-top: 24px; }
.story-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.story-art > div { aspect-ratio: 1; background: var(--surface-2); border-radius: 16px; display: grid; place-items: center; }
.story-art svg { width: 80%; height: 80%; }

.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.row-scroll > * { scroll-snap-align: start; }

/* ---------- Produktkarte ---------- */
.card {
  display: grid; gap: 10px; padding: 14px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
  transition: box-shadow .2s ease, transform .2s ease; align-content: start; min-width: 0;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.card .art { aspect-ratio: 4 / 3; background: var(--surface-2); border-radius: 13px; display: grid; place-items: center; overflow: hidden; }
.card .art svg { width: 82%; height: 82%; }
.card .maker { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.card .mpn { font-size: 13px; color: var(--ink); }
.card .title { font-size: 14px; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card .foot { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: 2px; }
.price-from { font-size: 12px; color: var(--muted); }
.price-from b { display: block; font: 600 17px var(--f); color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

/* ---------- Kategorie ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 22px 0 4px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding: 6px 0 24px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
.page-head .count { color: var(--muted); font-size: 15px; margin-top: 6px; }
.tools { display: flex; align-items: center; gap: 10px; }
.tools select { height: 34px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 0 12px; font-size: 13px; }
.cat-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: 76px; display: grid; gap: 22px; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 4px; }
.fgroup h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; letter-spacing: 0; }
.fcheck { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); padding: 3px 0; cursor: pointer; }
.fcheck input { width: 16px; height: 16px; accent-color: var(--ink); }
.fcheck .n { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchips .chip { height: 28px; padding: 0 10px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #FFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(16px); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 16px; }
.more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 20px; }

.ptable-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ptable th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.ptable tbody tr:first-child td { border-top: 0; }
.ptable tbody tr:hover { background: var(--surface-2); }
.ptable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable .thumb { width: 56px; height: 42px; }
.ptable .act { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }

/* ---------- Artikel ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 52px; align-items: start; }
.gallery { position: sticky; top: 80px; }
.gallery .main { aspect-ratio: 1 / 1; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; display: grid; place-items: center; position: relative; overflow: hidden; }
.gallery .main svg { width: 76%; height: 76%; }
.gallery .tag { position: absolute; left: 18px; bottom: 16px; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 4px 10px; border-radius: 999px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { width: 76px; height: 76px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 6px; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs svg { width: 100%; height: 100%; }
.pdp-info { display: grid; gap: 18px; min-width: 0; }
.pdp-maker { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.pdp-info h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.12; margin-top: 6px; }
.pdp-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.idline { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.idline b { font-weight: 500; color: var(--ink); }
.copy { border: 0; background: var(--surface-2); color: var(--ink-2); font-size: 12px; border-radius: 999px; padding: 2px 9px; margin-left: 6px; }
.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.unit { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.unit b { font-size: 36px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.unit span { color: var(--muted); font-size: 13.5px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tier { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--surface); text-align: left; display: grid; gap: 1px; }
.tier small { color: var(--muted); font-size: 11.5px; }
.tier b { font: 500 14px var(--f-mono); color: var(--ink); }
.tier i { font-style: normal; font-size: 11px; color: var(--ok); min-height: 1em; }
.tier[aria-current="true"] { border-color: var(--ink); background: var(--surface-2); }
.tier.below { opacity: .38; }
.buyrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.buyrow .total { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--muted); }
.buyrow .total b { display: block; font-size: 20px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.buybox .btn.add { width: 100%; height: 50px; font-size: 16px; }
.nudge { font-size: 13px; color: var(--ok); background: var(--ok-bg); border-radius: 12px; padding: 9px 12px; }
.stockline { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.rules { font-size: 12.5px; color: var(--muted); }
.specs { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.specs div { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.specs div:first-child { border-top: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.pdp-block h2 { font-size: 20px; margin-bottom: 12px; }

/* ---------- Warenkorb & Kasse ---------- */
.cline { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.cline:first-child { border-top: 0; }
.cline .thumb { width: 60px; height: 48px; background: var(--surface-2); border-radius: 10px; display: grid; place-items: center; }
.cline .thumb svg { width: 86%; height: 86%; }
.cline .t { font-size: 14px; font-weight: 500; line-height: 1.3; }
.cline .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cline .r { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.cline .p { text-align: right; font-size: 12px; color: var(--muted); }
.cline .p b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.cline .rm { border: 0; background: none; color: var(--muted); font-size: 12.5px; padding: 0; }
.cline .rm:hover { color: var(--ink); }
.totals { display: grid; gap: 8px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-size: 18px; font-weight: 600; padding-top: 10px; border-top: 1px solid var(--line); }
.totals span:last-child { font-variant-numeric: tabular-nums; }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; padding-top: 12px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 16px; }
.step + .step { margin-top: 16px; }
.step h2 { font-size: 19px; display: flex; align-items: center; gap: 12px; }
.step h2 i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 13px; display: grid; place-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid2 .full { grid-column: 1 / -1; }
.payopts { display: grid; gap: 10px; }
.payopt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; }
.payopt input { margin-top: 3px; accent-color: var(--ink); }
.payopt b { font-weight: 600; font-size: 15px; }
.payopt span { grid-column: 2; color: var(--muted); font-size: 13px; }
.payopt:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.payopt.locked { opacity: .45; cursor: not-allowed; }
.summary { position: sticky; top: 80px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 16px; }
.summary h2 { font-size: 18px; }
.legal { font-size: 12px; color: var(--muted); }
.confirm { text-align: center; padding: 80px 0 40px; display: grid; justify-items: center; gap: 14px; }
.confirm .ring { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.confirm .ring svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.confirm h1 { font-size: 36px; }
.confirm p { color: var(--muted); max-width: 46ch; }

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  .usp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: 1fr; padding: 30px; }
}
@media (max-width: 980px) {
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .usp { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 10px; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: 1fr; }
  .story { padding: 24px; border-radius: 22px; }
}
