/* Shop im Look der Website (baut auf home.css und pages.css auf), hell und dunkel wie die Website (Schalter im Kopf, home.js).
   Alles unter .sp-shop, damit die Grundstile aus site.css (Konto, Admin) unberührt bleiben. */

.sp-shop { --shop-max: 1240px; padding-bottom: clamp(40px, 6vw, 80px); }
.sp-shop > section, .sp-shop > article { max-width: var(--shop-max); margin-left: auto; margin-right: auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.sp-shop a { color: inherit; }
.sp-shop .sp-crumbs a { color: var(--muted); text-decoration: none; }
.sp-shop .sp-crumbs a:hover { color: var(--accent); }

/* ---------- Farben für Hell und Dunkel ----------
   Produktfotos haben meist weißen Grund: sie liegen deshalb in beiden Modi auf einer hellen „Bühne“ (--shop-plate),
   im Dunkeln etwas gedämpft, damit nichts blendet. Status-Farben (ok, Hinweis, Fehler) je Modus. */
body.lp .sp-shop, body.lp .shop-toast, body.lp .pdp-sticky {
    --shop-plate: linear-gradient(180deg, #ffffff, #f1f3f6); --shop-plate-solid: #fff; --shop-plate-line: transparent;
    --ok: var(--ok); --ok-dot: #2fb36d; --ok-soft: var(--ok-soft);
    --warn-line: #f3c27a; --warn-soft: #fff8ec;
    --danger: #c62828; --danger-soft: #fff5f5;
    --shadow: var(--shadow); --glass: color-mix(in srgb, var(--bg) 90%, transparent);
}
html:not([data-theme="light"]) body.lp .sp-shop, html:not([data-theme="light"]) body.lp .shop-toast, html:not([data-theme="light"]) body.lp .pdp-sticky {
    --shop-plate: linear-gradient(180deg, #e9ecf1, #d9dee6); --shop-plate-solid: #e4e8ee; --shop-plate-line: rgba(255, 255, 255, .06);
    --ok: #46d38a; --ok-dot: #46d38a; --ok-soft: rgba(70, 211, 138, .14);
    --warn-line: rgba(255, 179, 0, .45); --warn-soft: rgba(255, 179, 0, .08);
    --danger: #ff6b6b; --danger-soft: rgba(255, 107, 107, .1);
    --shadow: rgba(0, 0, 0, .6);
}

/* ---------- Kopf ---------- */
.shop-hero { padding-bottom: clamp(28px, 4vw, 56px); }
.shop-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-chips a { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s, transform .15s; }
.shop-chips a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.shop-chips a[aria-current="true"] { background: var(--accent-bg); border-color: var(--accent-bg); color: #fff; }

.shop-showcase { position: relative; aspect-ratio: 5 / 4; }
.shop-showcase-item { position: absolute; display: block; border-radius: 22px; overflow: hidden; background: var(--shop-plate); border: 1px solid var(--line); box-shadow: 0 30px 60px -28px var(--shadow); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.shop-showcase-item img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 6%; box-sizing: border-box; }
.shop-showcase-item:hover { transform: translateY(-6px) rotate(0deg) !important; }
.shop-showcase-1 { left: 22%; top: 0; width: 56%; height: 92%; z-index: 2; }
.shop-showcase-2 { left: 0; top: 18%; width: 38%; height: 68%; rotate: -5deg; }
.shop-showcase-3 { right: 0; top: 24%; width: 36%; height: 64%; rotate: 5deg; }
.shop-showcase .sp-float { box-shadow: 0 18px 36px -14px var(--shadow); }
.shop-showcase .sp-float-a { left: -2%; top: 4%; } .shop-showcase .sp-float-b { right: -2%; bottom: 0; }

/* ---------- Lizenz-Band ---------- */
.shop-license { display: flex !important; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.shop-license > div { flex: 1 1 420px; }
.shop-license { position: relative; }
.shop-license::before { content: ""; position: absolute; inset: 0 clamp(16px, 4vw, 40px); z-index: -1; border-radius: 20px; background: linear-gradient(120deg, var(--accent-soft), transparent 70%), var(--card); border: 1px solid var(--line); }
.shop-license { padding-top: 26px !important; padding-bottom: 26px !important; }
.shop-license > * { margin-left: clamp(4px, 2vw, 28px); margin-right: clamp(4px, 2vw, 28px); }
.shop-license h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 0 0 6px; max-width: none; }
.shop-license p:not(.lp-eyebrow) { color: var(--muted); font-size: .98rem; max-width: 46em; }
.shop-license .lp-eyebrow { margin-bottom: 6px !important; }

/* ---------- Filter und Ergebnisse ---------- */
.sp-shop .shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: clamp(32px, 5vw, 56px); }
.sp-shop .shop-filter { position: sticky; top: 84px; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; background: var(--card); display: grid; gap: 14px; max-height: calc(100vh - 104px); overflow: auto; box-shadow: 0 20px 40px -30px var(--shadow); }
.sp-shop .shop-filter-box, .sp-shop .shop-filter-body { display: grid; gap: 14px; }
.sp-shop .shop-filter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; list-style: none; cursor: default; }
.sp-shop .shop-filter-head::-webkit-details-marker { display: none; }
.sp-shop .shop-filter-head h2 span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; border-radius: 99px; background: var(--accent-bg); color: #fff; font-size: .72rem; vertical-align: 2px; }
.sp-shop .shop-filter-head h2 { font-size: 1.05rem; margin: 0; letter-spacing: 0; }
.sp-shop .shop-filter-head a { font-size: .85rem; color: var(--accent); }
.sp-shop .shop-facet { border: 0; border-top: 1px solid var(--line); padding: 12px 0 0; margin: 0; display: grid; gap: 2px; }
.sp-shop .shop-facet legend { float: left; width: 100%; padding: 0 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sp-shop .shop-check { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; margin: 0; padding: 4px 6px; border-radius: 8px; line-height: 1.35; }
.sp-shop .shop-check:hover { background: var(--bg-2); }
.sp-shop .shop-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent-bg); }
.sp-shop .shop-check.is-empty { opacity: .45; }
.sp-shop .shop-count { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; min-width: 22px; text-align: center; padding: 1px 6px; border-radius: 99px; background: var(--bg-2); }
.sp-shop .shop-check:has(input:checked) { color: var(--accent); font-weight: 600; }
.sp-shop .shop-check:has(input:checked) .shop-count { background: var(--accent-soft); color: var(--accent); }
.sp-shop .shop-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-shop .shop-price label { display: grid; gap: 3px; font-size: .8rem; color: var(--muted); margin: 0; }
.sp-shop .shop-price input { font: inherit; font-size: .95rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); width: 100%; min-width: 0; box-sizing: border-box; }
.sp-shop .shop-filter .lp-btn { width: 100%; padding: 11px 16px; }

.sp-shop .shop-hits { color: var(--muted); font-size: .95rem; margin: 0 0 18px !important; }
.sp-shop .shop-hits b { color: var(--fg); }
.sp-shop .shop-hits a { color: var(--accent); }
.sp-shop .shop-group { margin: 0 0 clamp(32px, 4vw, 48px); }
.sp-shop .shop-group > h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; max-width: none; }
.sp-shop .shop-group > h2 span { font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 2px 10px; letter-spacing: 0; }
.sp-shop .shop-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sp-shop .shop-none { border: 1px dashed var(--line); border-radius: 18px; padding: 28px; background: var(--card); }
.sp-shop .shop-none a { color: var(--accent); }
.sp-shop .shop-note { color: var(--muted); font-size: .9rem; }

/* ---------- Produktkachel ---------- */
.sp-shop .pcard { position: relative; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: var(--card); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; }
.sp-shop .pcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 26px 50px -26px var(--shadow); }
.sp-shop .pcard:has(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.sp-shop .pcard-img { position: relative; aspect-ratio: 1; background: var(--shop-plate); border-bottom: 1px solid var(--line); }
.sp-shop .pcard-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 7%; box-sizing: border-box; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.sp-shop .pcard:hover .pcard-img img { transform: scale(1.05); }
.sp-shop .pcard-size { position: absolute; left: 12px; top: 12px; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(11, 11, 18, .78); color: #fff; letter-spacing: .02em; }
.sp-shop .pcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sp-shop .pcard-body h3 { font-size: 1rem; line-height: 1.3; margin: 0; font-weight: 650; }
.sp-shop .pcard-body h3 a { color: var(--fg); text-decoration: none; }
.sp-shop .pcard-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sp-shop .pcard-body p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sp-shop .pcard-body .pcard-variants { color: var(--accent); font-size: .78rem; font-weight: 650; letter-spacing: .01em; -webkit-line-clamp: 1; }
.sp-shop .pcard-body .pcard-price { margin-top: auto; padding-top: 10px; color: var(--fg); display: flex; align-items: baseline; gap: 6px; -webkit-line-clamp: unset; }
.sp-shop .pcard-price strong { font-size: 1.2rem; letter-spacing: -.01em; }
.sp-shop .pcard-price span { color: var(--muted); font-size: .8rem; }
.sp-shop .pcard-price i { margin-left: auto; font-style: normal; color: var(--accent); font-weight: 700; transition: transform .2s; }
.sp-shop .pcard:hover .pcard-price i { transform: translateX(4px); }

/* ---------- Versand und Bestellen ---------- */
.shop-bottom { display: grid !important; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.shop-panel { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 24px 26px; display: grid; gap: 12px; align-content: start; }
.shop-panel h2 { font-size: 1.25rem; margin: 0; max-width: none; }
.shop-panel p { color: var(--muted); font-size: .95rem; }
.shop-panel ul { list-style: none; margin: 0; padding: 0; display: grid; }
.shop-panel li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.shop-panel li span { color: var(--muted); }
.shop-panel-cta { background: linear-gradient(140deg, var(--accent-soft), transparent 70%), var(--card); justify-items: start; }
.shop-muted { color: var(--muted); }

/* ---------- Produktseite ---------- */
.sp-shop .pdp { padding-top: clamp(20px, 3vw, 36px); }
.sp-shop .pdp .sp-crumbs { margin-bottom: 20px; }
.sp-shop .pdp-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin: 0 0 clamp(36px, 5vw, 64px); }
.sp-shop .pdp-gallery { position: sticky; top: 84px; }
.sp-shop .pdp-main { margin: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--shop-plate); overflow: hidden; box-shadow: 0 30px 60px -34px var(--shadow); }
.sp-shop .pdp-main img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; display: block; padding: 6%; box-sizing: border-box; }
.sp-shop .pdp-thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.sp-shop .pdp-thumbs a { display: block; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--shop-plate); transition: border-color .15s; }
.sp-shop .pdp-thumbs a:hover { border-color: var(--muted); }
.sp-shop .pdp-thumbs a[aria-current="true"] { border-color: var(--accent); }
.sp-shop .pdp-thumbs img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; display: block; padding: 6%; box-sizing: border-box; }
.sp-shop .pdp-buy { display: grid; gap: 16px; justify-items: start; }
.sp-shop .pdp-buy h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.06; letter-spacing: -.03em; }
.sp-shop .pdp-buy .lp-eyebrow { margin-bottom: 0 !important; }
.sp-shop .pdp-buy .lp-lead { font-size: 1.08rem; }
.sp-shop .pdp-b2b { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--muted); margin: 0; }
.sp-shop .pdp-b2b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
/* Variantenauswahl (Größe, Farbe): Links auf die Varianten, die aktuelle hervorgehoben */
.sp-shop .pdp-variants { display: grid; gap: 14px; width: 100%; margin: 0; }
.sp-shop .pdp-variant { display: grid; gap: 8px; }
.sp-shop .pdp-variant dt { font-size: .82rem; font-weight: 650; color: var(--muted); }
.sp-shop .pdp-variant dt b { color: var(--fg); font-weight: 650; }
.sp-shop .pdp-variant dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-shop .pdp-variant a, .sp-shop .pdp-variant span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); color: var(--fg); font-size: .92rem; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.sp-shop .pdp-variant a:hover { border-color: var(--muted); }
.sp-shop .pdp-variant [aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); }
.sp-shop .pdp-swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); background: var(--sw, #999); }
.sp-shop .pdp-price { margin: 4px 0 0; padding: 18px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); width: 100%; box-sizing: border-box; }
.sp-shop .pdp-price strong { font-size: clamp(1.8rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.sp-shop .pdp-price span { display: block; color: var(--muted); font-size: .88rem; }
.sp-shop .pdp-shipnote { margin: -6px 0 0; font-size: .9rem; color: var(--muted); }
.sp-shop .pdp-delivery { margin: -6px 0 0; font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.sp-shop .pdp-delivery::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok-dot); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok-dot) 18%, transparent); }
.sp-shop .pdp-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-shop .pdp-highlights li { position: relative; padding-left: 28px; font-size: .97rem; }
.sp-shop .pdp-highlights li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--accent); background: var(--accent-soft); }
.sp-shop .pdp-buy form { margin: 4px 0 0; }
.sp-shop .pdp-buy .lp-btn { padding: 15px 28px; font-size: 1.02rem; }
.sp-shop .pdp-buy .muted { color: var(--muted); }
.sp-shop .pdp-note { color: var(--muted); font-size: .84rem; line-height: 1.55; margin: 0; }
.sp-shop .pdp-note a { color: var(--accent); }

.sp-shop .pdp-text, .sp-shop .pdp-specs, .sp-shop .pdp-legal { max-width: 860px; margin: 0 0 clamp(32px, 4vw, 52px); }
.sp-shop .pdp h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 16px; }
.sp-shop .pdp-text p { color: var(--fg); font-size: 1.02rem; line-height: 1.7; margin: 0 0 14px; max-width: 42em; }
.sp-shop .pdp-specs table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.sp-shop .pdp-specs th, .sp-shop .pdp-specs td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.sp-shop .pdp-specs tr:last-child th, .sp-shop .pdp-specs tr:last-child td { border-bottom: 0; }
.sp-shop .pdp-specs th { width: 38%; font-weight: 600; color: var(--muted); background: var(--bg-2); }
.sp-shop .pdp-legal { padding: 24px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.sp-shop .pdp-legal h2 { font-size: 1.3rem; }
.sp-shop .pdp-legal h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 0 8px; }
.sp-shop .pdp-legal address { font-style: normal; line-height: 1.6; font-size: .95rem; }
.sp-shop .pdp-legal address a { color: var(--accent); }
.sp-shop .pdp-legal ul { margin: 0; padding-left: 18px; font-size: .93rem; }
.sp-shop .pdp-legal li { margin: 0 0 6px; }
.sp-shop .pdp-legal .muted { color: var(--muted); font-size: .85rem; margin-top: 12px; }
.sp-shop .pdp-legal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px; }
.sp-shop .pdp-related { max-width: none; }

/* ---------- Warenkorb, Kasse, Bestellung ---------- */
.sp-shop .shop-flow { max-width: 980px; padding-top: clamp(28px, 4vw, 56px); }
.sp-shop .shop-flow h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.03em; margin: 0 0 10px; }
.sp-shop .shop-flow > .muted { color: var(--muted); margin: 0 0 24px; }
.sp-shop .shop-flow .card { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 24px 26px; margin: 0 0 18px; box-shadow: 0 20px 40px -34px var(--shadow); }
.sp-shop .shop-flow .card h2 { font-size: 1.2rem; margin: 6px 0 14px; max-width: none; }
.sp-shop .shop-flow .card h2:not(:first-child) { margin-top: 26px; }
.sp-shop .shop-flow .card p { margin: 0 0 10px; }
.sp-shop .shop-flow a:not(.btn) { color: var(--accent); }
.sp-shop .shop-flow table.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sp-shop .shop-flow table.list th, .sp-shop .shop-flow table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sp-shop .shop-flow table.list thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.sp-shop .shop-flow table.list tfoot td { border-bottom: 0; }
.sp-shop .shop-flow input[type=number], .sp-shop .shop-flow input[type=text], .sp-shop .shop-flow input[type=tel], .sp-shop .shop-flow input[type=email] {
    font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); width: 100%; box-sizing: border-box;
}
.sp-shop .shop-flow input.num { max-width: 110px; }
.sp-shop .shop-flow input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sp-shop .shop-flow .hint { color: var(--muted); font-size: .85rem; }
.sp-shop .shop-flow .field span { font-weight: 600; font-size: .92rem; }
.sp-shop .shop-flow .btn { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 8px; border: 1px solid var(--accent-bg); background: var(--accent-bg); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s; }
.sp-shop .shop-flow .btn:hover { background: var(--accent); }
.sp-shop .shop-flow .btn.secondary { background: transparent; color: var(--fg); border-color: var(--line); }
.sp-shop .shop-flow .btn.secondary:hover { background: var(--bg-2); }
.sp-shop .shop-flow .error { color: var(--danger); }

/* Hinweis Lizenzen und Bildschirme (blockiert nicht) */
.sp-shop .shop-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; justify-content: space-between; margin: 0 0 18px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--warn-line); background: var(--warn-soft); }
.sp-shop .shop-hint-more, .sp-shop .shop-hint-subscription { border-color: var(--line); background: var(--card); }
.sp-shop .shop-hint-text { display: grid; gap: 4px; flex: 1 1 360px; }
.sp-shop .shop-hint-text span { color: var(--muted); font-size: .92rem; }
.sp-shop .shop-hint-text b::before { content: "!"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: #ffb300; color: #0b0b12; font-size: .75rem; vertical-align: 1px; }
.sp-shop .shop-hint-more .shop-hint-text b::before, .sp-shop .shop-hint-subscription .shop-hint-text b::before { content: "i"; background: var(--accent-soft); color: var(--accent); }
.sp-shop .shop-hint-fix { margin: 0; }

/* ---------- Schmal ---------- */
@media (max-width: 980px) {
    .sp-shop .shop-layout { grid-template-columns: 1fr; }
    .sp-shop .shop-filter { position: static; max-height: none; padding: 0; }
    .sp-shop .shop-filter-box { gap: 0; }
    .sp-shop .shop-filter-head { cursor: pointer; padding: 14px 18px; }
    .sp-shop .shop-filter-head h2::before { content: "▸"; display: inline-block; margin-right: 8px; color: var(--accent); transition: transform .2s; }
    .sp-shop .shop-filter-box[open] .shop-filter-head h2::before { transform: rotate(90deg); }
    .sp-shop .shop-filter-body { padding: 0 18px 18px; }
    .sp-shop .pdp-top { grid-template-columns: 1fr; }
    .sp-shop .pdp-gallery { position: static; }
    .shop-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .shop-hero { grid-template-columns: 1fr !important; }
    .shop-showcase { max-width: 520px; width: 100%; margin: 0 auto; }
    .sp-shop .pdp-legal-grid { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 520px) {
    .sp-shop .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sp-shop .pcard-body { padding: 12px; }
    .sp-shop .pcard-body p { display: none; }
    .sp-shop .pcard-price strong { font-size: 1.02rem; white-space: nowrap; }
    /* Schmale Karten (zwei nebeneinander auf dem Handy): "netto" rutscht unter den Preis statt am Kartenrand abgeschnitten zu werden */
    .sp-shop .pcard-body .pcard-price { flex-wrap: wrap; row-gap: 0; }
    .sp-shop .pcard-body h3 { overflow-wrap: anywhere; hyphens: auto; }
    .sp-shop .pdp-specs th, .sp-shop .pdp-specs td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .sp-shop .pcard, .sp-shop .pcard-img img, .shop-showcase-item { transition: none; }
}

/* =====================================================================================================
   Shop 2 (verkaufsstark): Vertrauensleiste, Kategorien, Werkzeugleiste, Kacheln mit Kauf-Knopf,
   Produktseite mit Kaufbox, Warenkorb und Kasse mit fester Zusammenfassung, Toast, Kaufleiste.
   ===================================================================================================== */
.sp-shop .sr-only, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-shop .shop-ico { flex: none; }
.sp-shop .shop-h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 0 0 18px; max-width: none; }
.shop-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0 !important; }

/* Vertrauensleiste */
.sp-shop .shop-trust ul { list-style: none; margin: 0; padding: 18px 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.sp-shop .shop-trust li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sp-shop .shop-trust .shop-ico { width: 40px; height: 40px; padding: 9px; box-sizing: border-box; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.sp-shop .shop-trust span { display: grid; gap: 1px; min-width: 0; }
.sp-shop .shop-trust b { font-size: .92rem; }
.sp-shop .shop-trust small { color: var(--muted); font-size: .8rem; }

/* Kategorien */
.sp-shop .shop-cats { margin-top: clamp(32px, 5vw, 56px); }
.sp-shop .shop-cats-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sp-shop .shop-cat { display: grid; grid-template-rows: auto 1fr; height: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-decoration: none; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.sp-shop .shop-cat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 20px 40px -26px var(--shadow); }
.sp-shop .shop-cat-img { display: block; aspect-ratio: 4 / 3; background: var(--shop-plate); }
.sp-shop .shop-cat-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; transition: transform .4s; }
.sp-shop .shop-cat:hover .shop-cat-img img { transform: scale(1.06); }
.sp-shop .shop-cat-text { display: grid; gap: 2px; padding: 12px 14px 14px; }
.sp-shop .shop-cat-text b { font-size: .95rem; line-height: 1.25; }
.sp-shop .shop-cat-text small { color: var(--muted); font-size: .8rem; }

/* Werkzeugleiste, aktive Filter, Ladezustand */
.sp-shop .shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.sp-shop .shop-toolbar .shop-hits { margin: 0 !important; }
.sp-shop .shop-sort { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin: 0; }
.sp-shop .shop-sort select { font: inherit; font-size: .92rem; color: var(--fg); padding: 8px 34px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23566070' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sp-shop .shop-chips-active { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sp-shop .shop-chips-active button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; margin: 0; border: 0; }
.sp-shop .shop-chips-active button:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.sp-shop .shop-chips-active a { font-size: .85rem; color: var(--muted); }
.sp-shop .shop-layout { scroll-margin-top: 80px; }
.sp-shop .shop-layout.is-loading .shop-results { opacity: .45; transition: opacity .15s; pointer-events: none; }
.shop-js .sp-shop .shop-layout.is-live .shop-filter-apply { display: none; }

/* Kacheln: Fuß mit Preis und Kauf-Knopf */
.sp-shop .pcard-incart { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 3px 9px 3px 6px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); }
.sp-shop .pcard-incart .shop-ico { width: 14px; height: 14px; }
.sp-shop .pcard-body .pcard-delivery { color: var(--ok); font-size: .78rem; font-weight: 600; -webkit-line-clamp: 1; display: flex; align-items: center; gap: 6px; }
.sp-shop .pcard-body .pcard-delivery::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok-dot); flex: none; }
.sp-shop .pcard-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sp-shop .pcard-foot .pcard-price { margin: 0; padding: 0; }
.sp-shop .pcard-foot form { margin: 0; position: relative; z-index: 2; }
.sp-shop .pcard-btn { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--accent-bg); background: var(--accent-bg); color: #fff !important; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.sp-shop .pcard-btn:hover { background: var(--accent); transform: translateY(-1px); }
.sp-shop .pcard-btn .shop-ico { width: 18px; height: 18px; }
.sp-shop .pcard-btn-ghost { background: transparent; color: var(--fg) !important; border-color: var(--line); }
.sp-shop .pcard-btn-ghost:hover { background: var(--bg-2); }
.sp-shop .pcard-btn.is-busy { opacity: .6; }
.sp-shop .pcard-btn.is-done { background: var(--ok); border-color: var(--ok); }
@container (max-width: 250px) { .sp-shop .pcard-btn span { display: none; } }
.sp-shop .pcard { container-type: inline-size; }

/* FAQ */
.sp-shop .shop-faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.sp-shop .shop-faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sp-shop .shop-faq summary::-webkit-details-marker { display: none; }
.sp-shop .shop-faq summary::after { content: "+"; color: var(--accent); font-weight: 700; transition: transform .2s; }
.sp-shop .shop-faq details[open] summary::after { transform: rotate(45deg); }
.sp-shop .shop-faq details p { margin: 8px 0 2px; }
.sp-shop .shop-faq-more a { color: var(--accent); }
.shop-license-add { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* ---------- Produktseite 2 ---------- */
.sp-shop .pdp-main { position: relative; }
.sp-shop .pdp-nav { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 20px -10px var(--shadow); opacity: 0; transition: opacity .2s; }
.sp-shop .pdp-main:hover .pdp-nav, .sp-shop .pdp-nav:focus-visible { opacity: 1; }
.sp-shop .pdp-prev { left: 12px; } .sp-shop .pdp-next { right: 12px; }
.sp-shop .pdp-count { position: absolute; right: 14px; bottom: 12px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(11, 11, 18, .7); color: #fff; }
.sp-shop .pdp-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: -6px 0 0; color: var(--muted); font-size: .84rem; }
.sp-shop .pdp-meta .pdp-b2b { font-size: .78rem; padding: 3px 10px; }
.sp-shop .pdp-box { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 22px 24px; display: grid; gap: 14px; box-shadow: 0 24px 50px -36px var(--shadow); }
.sp-shop .pdp-box .pdp-price { margin: 0; padding: 0; border: 0; background: none; display: grid; gap: 2px; }
.sp-shop .pdp-box .pdp-price strong { font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.05; }
.sp-shop .pdp-price .pdp-price-net { color: var(--muted); font-size: .88rem; }
.sp-shop .pdp-price .pdp-price-gross { color: var(--fg); font-size: .88rem; font-weight: 600; }
.sp-shop .pdp-box .pdp-delivery, .sp-shop .pdp-box .pdp-shipnote { margin: 0; }
.sp-shop .pdp-delivery b { color: var(--ok); }
.sp-shop .pdp-form { display: grid; gap: 12px; margin: 4px 0 0 !important; }
.sp-shop .pdp-license { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); font-size: .9rem; cursor: pointer; margin: 0; }
.sp-shop .pdp-license input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent-bg); }
.sp-shop .pdp-license:has(input:checked) { border-style: solid; border-color: var(--accent); }
.sp-shop .pdp-buyrow { display: flex; gap: 10px; align-items: stretch; }
.sp-shop .pdp-buyrow .pdp-cta { flex: 1; justify-content: center; gap: 8px; padding: 15px 22px; font-size: 1.05rem; }
.sp-shop .pdp-buyrow .pdp-cta .shop-ico { width: 20px; height: 20px; }
.sp-shop .pdp-cta.is-done { background: var(--ok); border-color: var(--ok); }
.sp-shop .pdp-incart { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--ok); font-weight: 600; }
.sp-shop .pdp-incart a { color: var(--accent); }
.sp-shop .pdp-usp { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 100%; }
.sp-shop .pdp-usp li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.sp-shop .pdp-usp b { color: var(--fg); }
.sp-shop .pdp-usp .shop-ico { width: 34px; height: 34px; padding: 7px; box-sizing: border-box; border-radius: 10px; color: var(--accent); background: var(--accent-soft); }
.sp-shop .pdp-tabs { position: sticky; top: 64px; z-index: 5; display: flex; gap: 4px; overflow-x: auto; margin: 0 auto clamp(24px, 3vw, 40px) !important; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); scrollbar-width: none; }
.sp-shop .pdp-tabs a { flex: none; padding: 9px 16px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.sp-shop .pdp-tabs a:hover { background: var(--bg-2); color: var(--fg); }
.sp-shop .pdp [id] { scroll-margin-top: 130px; }
.sp-shop .pdp-details { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sp-shop .pdp-details > section { max-width: none; }
.sp-shop .pdp-details .pdp-highlights { margin-top: 18px; }
.sp-shop .pdp-sp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin: 0 0 clamp(36px, 5vw, 60px); padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: #0b0b12; color: #eef1f5; }
.sp-shop .pdp-sp h2 { color: #fff; }
.sp-shop .pdp-sp p { color: #b8c0cc; }
.sp-shop .pdp-sp .lp-eyebrow { color: #ff3d81; }
.sp-shop .pdp-sp .lp-btn-ghost { color: #fff !important; border-color: rgba(255, 255, 255, .25); }
.sp-shop .pdp-sp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: st; }
.sp-shop .pdp-sp-steps li { display: grid; gap: 6px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.sp-shop .pdp-sp-steps .shop-ico { color: #ff3d81; width: 28px; height: 28px; }
.sp-shop .pdp-sp-steps span { color: #b8c0cc; font-size: .85rem; }
.pdp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(11, 11, 18, .25); transform: translateY(110%); transition: transform .25s; }
.pdp-sticky.is-on { transform: none; }
.pdp-sticky-name { flex: 1; min-width: 0; font-weight: 650; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-sticky-price small { color: var(--muted); }
.pdp-sticky .lp-btn { padding: 11px 16px; font-size: .92rem; }
@media (min-width: 981px) { .pdp-sticky { display: none !important; } }

/* Mengenwahl (Produktseite, Warenkorb) */
.sp-shop .qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.sp-shop .qty button { width: 40px; border: 0; background: transparent; color: var(--fg); font-size: 1.15rem; cursor: pointer; }
.sp-shop .qty button:hover { background: var(--bg-2); color: var(--accent); }
.sp-shop .qty input, .sp-shop .shop-flow .qty input.num { width: 52px; max-width: 52px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; text-align: center; font: inherit; font-weight: 650; padding: 8px 2px; background: transparent; color: var(--fg); -moz-appearance: textfield; }
.sp-shop .qty input::-webkit-outer-spin-button, .sp-shop .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sp-shop .pdp-buyrow .qty button { width: 44px; }

/* Bezahlarten */
.sp-shop .shop-pay { display: grid; gap: 8px; }
.sp-shop .shop-pay p { margin: 0 !important; display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.sp-shop .shop-pay p .shop-ico { width: 16px; height: 16px; }
.sp-shop .shop-pay ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sp-shop .shop-pay li { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }

/* ---------- Bestellweg: Schritte, Warenkorb, Kasse ---------- */
.sp-shop .shop-flow { max-width: var(--shop-max); }
.sp-shop .shop-flow-n { font-size: .4em; font-weight: 600; color: var(--muted); letter-spacing: 0; vertical-align: middle; margin-left: 6px; }
.sp-shop .shop-steps { list-style: none; margin: 10px 0 22px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; counter-reset: none; }
.sp-shop .shop-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: .85rem; font-weight: 600; color: var(--muted); }
.sp-shop .shop-steps i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-2); font-style: normal; font-size: .78rem; }
.sp-shop .shop-steps .is-now { color: var(--fg); border-color: var(--accent); }
.sp-shop .shop-steps .is-now i { background: var(--accent-bg); color: #fff; }
.sp-shop .shop-steps .is-done i { background: var(--ok-soft); color: var(--ok); }
.sp-shop .cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(18px, 3vw, 32px); align-items: start; }
.sp-shop .cart-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.sp-shop .shop-cart.is-loading .cart-main, .sp-shop .shop-cart.is-loading .cart-summary { opacity: .55; transition: opacity .15s; }
.sp-shop .cart-lines { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.sp-shop .cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 110px 40px; gap: 16px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sp-shop .cart-line:last-child { border-bottom: 0; }
.sp-shop .cart-img { width: 88px; height: 88px; border-radius: 14px; border: 1px solid var(--line); background: var(--shop-plate); overflow: hidden; display: grid; place-items: center; }
.sp-shop .cart-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
.sp-shop .cart-img-license { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.sp-shop .cart-img-license .shop-ico { width: 38px; height: 38px; }
.sp-shop .cart-name { display: grid; gap: 4px; min-width: 0; }
.sp-shop .cart-name a, .sp-shop .cart-name b { color: var(--fg) !important; font-weight: 650; text-decoration: none; line-height: 1.3; }
.sp-shop .cart-name a:hover { color: var(--accent) !important; }
.sp-shop .cart-name small { color: var(--muted); font-size: .84rem; }
.sp-shop .cart-sum { display: grid; text-align: right; }
.sp-shop .cart-sum small { color: var(--muted); font-size: .78rem; }
.sp-shop .cart-remove { width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.sp-shop .cart-remove:hover { color: var(--danger); border-color: var(--line); background: var(--danger-soft); }
.sp-shop .cart-remove .shop-ico { width: 19px; height: 19px; }
.sp-shop .cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 0 !important; }
.sp-shop .cart-actions a { font-weight: 600; text-decoration: none; }
.shop-js .sp-shop [data-cart-refresh] { display: none; }
.sp-shop .cart-upsell { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 16px; padding: 16px 18px; border-radius: 18px; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(120deg, var(--accent-soft), transparent 70%), var(--card); }
.sp-shop .cart-upsell .cart-img { width: 64px; height: 64px; }
.sp-shop .cart-upsell p { margin: 2px 0 0 !important; color: var(--muted); font-size: .9rem; }
.sp-shop .cart-upsell form { margin: 0; }
.sp-shop .cart-note { margin-top: 14px !important; color: var(--muted); }
.sp-shop .cart-summary h2 { margin-top: 0 !important; }
.sp-shop .cart-go { width: 100%; justify-content: center; gap: 8px; padding: 15px 22px !important; font-size: 1.05rem; margin: 16px 0 12px; box-sizing: border-box; }
.sp-shop .cart-go .shop-ico { width: 20px; height: 20px; }
.sp-shop .cart-guest { font-size: .86rem; color: var(--muted); margin: 0 0 14px !important; }
.sp-shop .cart-trust { list-style: none; margin: 0; padding: 0 6px; display: grid; gap: 8px; }
.sp-shop .cart-trust li { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.sp-shop .cart-trust .shop-ico { color: var(--accent); width: 18px; height: 18px; }
.sp-shop .cart-empty { text-align: center; padding: clamp(32px, 6vw, 64px) 20px; border: 1px dashed var(--line); border-radius: 22px; background: var(--card); display: grid; justify-items: center; gap: 10px; }
.sp-shop .cart-empty-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.sp-shop .cart-empty-ico .shop-ico { width: 34px; height: 34px; }
.sp-shop .cart-empty h2 { margin: 6px 0 0; }
.sp-shop .cart-empty p { color: var(--muted); margin: 0; }
.sp-shop .cart-empty-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px !important; }
.sp-shop .cart-empty-cta form { margin: 0; }
.sp-shop .cart-suggest { margin-top: clamp(32px, 5vw, 56px); }
.sp-shop .cart-edit { margin: 10px 0 0 !important; font-size: .9rem; }

/* Summen */
.sp-shop .sum-lines { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.sp-shop .sum-lines li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .9rem; }
.sp-shop .sum-img { position: relative; width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--shop-plate); display: grid; place-items: center; color: var(--accent); }
.sp-shop .sum-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.sp-shop .sum-img i { position: absolute; right: -6px; top: -6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 99px; background: var(--fg); color: var(--bg); font-style: normal; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.sp-shop .sum-name { display: grid; gap: 2px; min-width: 0; }
.sp-shop .sum-name small { color: var(--muted); font-size: .78rem; }
.sp-shop .sum-rows { margin: 0; display: grid; gap: 0; }
.sp-shop .sum-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .93rem; }
.sp-shop .sum-rows dt { color: var(--muted); }
.sp-shop .sum-rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.sp-shop .sum-sub { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px !important; }
.sp-shop .sum-sub dt, .sp-shop .sum-sub dd { color: var(--fg) !important; font-weight: 600; }
.sp-shop .sum-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px !important; font-size: 1.1rem !important; }
.sp-shop .sum-total dt { color: var(--fg) !important; font-weight: 700; }
.sp-shop .sum-total dt small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.sp-shop .sum-total dd { font-weight: 800; font-size: 1.25rem; }
.sp-shop .sum-hint { color: var(--muted); font-size: .84rem; margin: 6px 0 0 !important; }

/* Kasse */
.sp-shop .checkout-form h2 { display: flex; align-items: center; }
.sp-shop .checkout-fields { display: grid; gap: 4px; }
.sp-shop .checkout-zip { display: grid !important; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
.sp-shop .checkout-form .field { display: grid; gap: 5px; margin: 0 0 10px; }
.sp-shop .checkout-terms { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 6px; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); }
.sp-shop .checkout-terms input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-bg); flex: none; }
.sp-shop .checkout-form .shop-pay { margin: 4px 0 6px; }

/* Bestätigung */
.sp-shop .shop-done { max-width: 760px; }
.sp-shop .done-card { text-align: center; display: grid; justify-items: center; gap: 8px; padding: clamp(28px, 5vw, 48px) !important; }
.sp-shop .done-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.sp-shop .done-ico.is-paid { background: var(--ok-soft); color: var(--ok); }
.sp-shop .done-ico .shop-ico { width: 36px; height: 36px; }
.sp-shop .done-next { list-style: none; counter-reset: n; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: left; width: 100%; }
.sp-shop .done-next li { counter-increment: n; display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: var(--bg-2); font-size: .88rem; }
.sp-shop .done-next li b::before { content: counter(n) ". "; color: var(--accent); }
.sp-shop .done-next span { color: var(--muted); }
.sp-shop .done-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Toast */
.shop-toast { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; width: min(440px, calc(100vw - 24px)); box-sizing: border-box; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px var(--shadow); }
.shop-toast[hidden] { display: none; }
.shop-toast.is-in { animation: shopToastIn .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes shopToastIn { from { opacity: 0; transform: translateY(14px); } }
.shop-toast-img { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--line); background: var(--shop-plate); overflow: hidden; }
.shop-toast-img[hidden] { display: none; }
.shop-toast-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.shop-toast-text { display: grid; gap: 2px; font-size: .86rem; color: var(--muted); min-width: 0; }
.shop-toast-text b { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: .9rem; }
.shop-toast-text .shop-ico { width: 16px; height: 16px; }
.shop-toast .lp-btn { padding: 9px 14px; font-size: .86rem; }
.shop-toast-x { width: 30px; height: 30px; border: 0; background: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; border-radius: 8px; }
.shop-toast-x:hover { background: var(--bg-2); }

@media (max-width: 1100px) {
    .sp-shop .shop-trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-shop .cart-grid { grid-template-columns: 1fr; }
    .sp-shop .cart-side { position: static; }
}
@media (max-width: 980px) {
    .sp-shop .pdp-details, .sp-shop .pdp-sp { grid-template-columns: 1fr; }
    .sp-shop .pdp-tabs { top: 58px; }
}
@media (max-width: 680px) {
    .sp-shop .shop-trust ul { grid-template-columns: 1fr; padding: 14px 16px; gap: 12px; }
    .sp-shop .cart-line { grid-template-columns: 64px minmax(0, 1fr) 36px; grid-template-areas: "img name rm" "img qty sum"; gap: 8px 12px; padding: 14px; }
    .sp-shop .cart-line .cart-img { grid-area: img; width: 64px; height: 64px; }
    .sp-shop .cart-line .cart-name { grid-area: name; }
    .sp-shop .cart-line .qty { grid-area: qty; justify-self: start; }
    .sp-shop .cart-line .cart-sum { grid-area: sum; grid-column: 3 / 4; }
    .sp-shop .cart-line .cart-sum { grid-column: auto; }
    .sp-shop .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img name rm" "img qty sum"; }
    .sp-shop .cart-line .cart-remove { grid-area: rm; }
    .sp-shop .cart-upsell { grid-template-columns: 1fr; }
    .sp-shop .cart-upsell .cart-img { display: none; }
    .sp-shop .pdp-sp-steps, .sp-shop .done-next { grid-template-columns: 1fr; }
    .sp-shop .pdp-nav { opacity: 1; width: 36px; height: 36px; }
    .sp-shop .shop-steps li span { display: none; }
    .sp-shop .shop-steps li.is-now span { display: inline; }
    .shop-toast { right: 12px; bottom: 12px; grid-template-columns: minmax(0, 1fr) auto auto; }
    .shop-toast-img { display: none; }
}
@media (max-width: 520px) {
    .sp-shop .pcard-foot { flex-direction: column; align-items: stretch; }
    .sp-shop .pcard-btn { justify-content: center; height: 36px; }
    .sp-shop .pdp-buyrow { flex-direction: column; }
    .sp-shop .pdp-buyrow .qty { align-self: flex-start; }
    .sp-shop .checkout-zip { grid-template-columns: 1fr; }
}
.sp-shop .shop-flow .pcard-body h3 a { color: var(--fg) !important; }
.sp-shop .shop-cat-img { background: var(--shop-plate); }
.sp-shop .shop-step { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--accent-bg); color: #fff; font-size: .85rem; flex: none; }
@media (max-width: 600px) {
    /* Auf dem Handy schneller zu den Produkten: Schaubild weg, Kategorien als waagrechte Leiste. */
    .shop-showcase { display: none !important; }
    .sp-shop .shop-cats-grid { grid-auto-flow: column; grid-auto-columns: 150px; grid-template-columns: none; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
    .sp-shop .shop-cats-grid li { scroll-snap-align: start; }
}
.cart-bar { display: none; }
@media (max-width: 1100px) {
    .sp-shop .cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(11, 11, 18, .25); }
    .sp-shop .cart-bar span { display: grid; }
    .sp-shop .cart-bar small { color: var(--muted); font-size: .75rem; }
    .sp-shop .cart-bar b { font-size: 1.15rem; }
    .sp-shop .shop-cart { padding-bottom: 90px; }
}

/* Lizenz als Verpackung (public/img/shop/lizenz-box*.webp) */
.shop-license-box { flex: 0 0 auto; width: clamp(130px, 16vw, 190px); height: auto; margin-top: -46px; margin-bottom: -40px; filter: drop-shadow(0 18px 30px rgba(214, 31, 100, .18)); transform: rotate(-3deg); transition: transform .3s ease; }
.shop-license:hover .shop-license-box { transform: rotate(0) translateY(-4px); }
.shop-license { overflow: visible; }
.sp-shop .cart-img-license { background: linear-gradient(140deg, var(--accent-soft), transparent); }
.sp-shop .cart-img-license img { width: 100%; height: 100%; object-fit: contain; }
.sp-shop .shop-cat-license .shop-cat-img { background: linear-gradient(140deg, var(--accent-soft), transparent); }
.sp-shop .shop-cat-license .shop-cat-img img { object-fit: contain; padding: 6px; }
@media (max-width: 640px) { .shop-license-box { margin: 0 auto -10px; width: 140px; } }
@media (prefers-reduced-motion: reduce) { .shop-license-box { transition: none; } }
.sp-shop .shop-license { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 28px; }
.sp-shop .shop-license > div { flex: none; }
@media (max-width: 980px) {
    .sp-shop .shop-license { grid-template-columns: auto minmax(0, 1fr); row-gap: 14px; }
    .sp-shop .shop-license-add { grid-column: 2; }
}
@media (max-width: 640px) {
    .sp-shop .shop-license { grid-template-columns: 1fr; text-align: left; }
    .sp-shop .shop-license-add { grid-column: 1; }
    .sp-shop .shop-license-box { justify-self: center; }
}
.sp-shop .shop-cat-text b { hyphens: auto; overflow-wrap: anywhere; }
.sp-shop .shop-license-box { width: clamp(110px, 11vw, 150px); margin: -34px 0 -6px clamp(16px, 3vw, 40px); }
/* Lizenzstufe im Warenkorb (Standard / Pro / Business) */
.sp-shop .cart-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.sp-shop .cart-plan-opt { position: relative; cursor: pointer; }
.sp-shop .cart-plan-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sp-shop .cart-plan-opt span { display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; font-weight: 600; background: var(--bg-2); }
.sp-shop .cart-plan-opt span small { font-weight: 500; color: var(--muted); }
.sp-shop .cart-plan-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.sp-shop .cart-plan-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.sp-shop .cart-plan a { font-size: .82rem; margin-left: 4px; }
/* Drei Lizenzstufen im Lizenz-Band */
.sp-shop .shop-plans { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.sp-shop .shop-plan { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.sp-shop .shop-plan h3 { margin: 0; font-size: 1.1rem; }
.sp-shop .shop-plan-price { margin: 0; }
.sp-shop .shop-plan-price strong { font-size: 1.5rem; }
.sp-shop .shop-plan-price span { color: var(--muted); font-size: .85rem; }
.sp-shop .shop-plan ul { margin: 4px 0 8px; padding: 0 0 0 18px; color: var(--muted); font-size: .92rem; flex: 1; }
.sp-shop .shop-plan .shop-plan-inherit { list-style: none; margin-left: -18px; color: var(--fg); font-weight: 600; }
.sp-shop .shop-plan .lp-btn { align-self: flex-start; }
@media (max-width: 860px) { .sp-shop .shop-plans { grid-template-columns: 1fr; } .sp-shop .shop-license-compare { grid-column: 2; justify-self: start; } }
@media (max-width: 640px) { .sp-shop .shop-license-compare { grid-column: 1; } }

/* ---------- Feinschliff (hell und dunkel) ----------
   Fotos auf heller Bühne mit Innenabstand, weiche Ränder, ruhige Schatten, klare Preis- und Kaufzone. */
.sp-shop .pcard-img img, .sp-shop .shop-cat-img img, .sp-shop .pdp-main img, .sp-shop .pdp-thumbs img, .sp-shop .cart-img img,
.shop-showcase-item img, .shop-toast-img img { mix-blend-mode: multiply; }
.sp-shop .pcard { border-radius: 20px; background: var(--card); }
.sp-shop .pcard-img { margin: 8px 8px 0; border-radius: 14px; overflow: hidden; border-bottom: 0; box-shadow: inset 0 0 0 1px var(--shop-plate-line); }
.sp-shop .pcard:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 28px 50px -28px var(--shadow); }
.sp-shop .pcard-size { left: 10px; top: 10px; background: rgba(11, 11, 18, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sp-shop .pcard-incart { right: 10px; top: 10px; }
.sp-shop .pcard-body { padding: 14px 16px 16px; }
.sp-shop .pcard-body h3 { font-size: 1.02rem; letter-spacing: -.005em; }
.sp-shop .pcard-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sp-shop .pcard-foot .pcard-price { margin: 0; padding: 0; }
.sp-shop .pcard-price strong { font-size: 1.25rem; }
.sp-shop .pcard-btn { border-radius: 999px; height: 38px; padding: 0 15px; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--accent-bg) 80%, transparent); }
.sp-shop .pcard-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sp-shop .pcard-btn-ghost { background: transparent !important; color: var(--fg) !important; border-color: var(--line) !important; box-shadow: none; }
.sp-shop .pcard-btn-ghost:hover { border-color: var(--accent) !important; color: var(--accent) !important; }

/* Filter: eigene Kästchen, ruhige Gruppen */
.sp-shop .shop-filter { border-radius: 20px; padding: 18px; box-shadow: none; scrollbar-width: thin; }
.sp-shop .shop-check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid color-mix(in srgb, var(--muted) 60%, transparent); background: var(--bg); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.sp-shop .shop-check input::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; rotate: -45deg; translate: 0 -1px; opacity: 0; transition: opacity .12s; }
.sp-shop .shop-check input:checked { background: var(--accent-bg); border-color: var(--accent-bg); }
.sp-shop .shop-check input:checked::after { opacity: 1; }
.sp-shop .shop-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sp-shop .shop-check:has(input:checked) { color: var(--fg); background: var(--accent-soft); }
.sp-shop .shop-price input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sp-shop [data-shop-list][aria-busy="true"] .shop-grid { opacity: .45; transition: opacity .15s; }
.sp-shop .shop-chips-active button, .sp-shop .shop-chips-active a { border-radius: 999px; }

/* Kategorien */
.sp-shop .shop-cat { border-radius: 20px; overflow: hidden; }
.sp-shop .shop-cat-img { margin: 8px 8px 0; border-radius: 14px; overflow: hidden; }
.sp-shop .shop-cat-img img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.sp-shop .shop-cat:hover .shop-cat-img img { transform: scale(1.06); }
.sp-shop .shop-cat-license .shop-cat-img { background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--bg-2); }
.sp-shop .shop-cat-license .shop-cat-img img { mix-blend-mode: normal; }

/* Hero-Bühne */
.shop-showcase-item { border-color: var(--shop-plate-line); }

/* Lizenzstufen */
.sp-shop .shop-plans { align-items: stretch; }
.sp-shop .shop-plan { position: relative; border-radius: 18px; padding: 22px 20px 20px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.sp-shop .shop-plan:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 24px 44px -30px var(--shadow); }
.sp-shop .shop-plan h3 { color: var(--fg); margin: 0; font-size: 1.15rem; }
.sp-shop .shop-plan ul { color: var(--muted); }
.sp-shop .shop-plan .lp-btn { margin-top: auto; justify-content: center; }
.sp-shop .shop-plan.is-pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 26px 50px -30px color-mix(in srgb, var(--accent) 70%, transparent); background: linear-gradient(180deg, var(--accent-soft), transparent 45%), var(--card); }
.sp-shop .shop-plan-badge { position: absolute; top: -11px; left: 20px; padding: 3px 10px; border-radius: 999px; background: var(--accent-bg); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sp-shop .shop-plan-price strong { font-size: 1.6rem; letter-spacing: -.02em; color: var(--fg); }
.sp-shop .shop-license-box { mix-blend-mode: normal; }

/* Produktseite und Warenkorb */
.sp-shop .pdp-main { border-radius: 24px; border-color: var(--shop-plate-line); }
.sp-shop .pdp-thumbs a { border-color: transparent; box-shadow: 0 0 0 1px var(--line); }
.sp-shop .pdp-thumbs a[aria-current="true"], .sp-shop .pdp-thumbs a:hover { border-color: var(--accent); }
.sp-shop .pdp-box { border-radius: 22px; }
.sp-shop .pdp-cta { border-radius: 999px; }
html:not([data-theme="light"]) .sp-shop .pdp-sp { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--card)), var(--card) 60%); border: 1px solid var(--line); }
.sp-shop .cart-line { transition: background .15s; }
.sp-shop .qty { border-radius: 999px; }
.sp-shop .cart-go { border-radius: 999px; justify-content: center; }
.sp-shop .cart-plan-opt input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--fg); }
.sp-shop .pcard-price strong { white-space: nowrap; }
.sp-shop .cart-img-license { background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--bg-2) !important; }
.sp-shop .cart-img-license img { mix-blend-mode: normal; }
@media (max-width: 600px) {
    .sp-shop .pcard-body { padding: 12px 12px 14px; }
    .sp-shop .pcard-body h3 { font-size: .95rem; }
    .sp-shop .pcard-foot { flex-direction: column; align-items: stretch; gap: 8px; }
    .sp-shop .pcard-foot form { display: grid; }
    .sp-shop .pcard-price strong { font-size: 1.1rem; }
    .sp-shop .pcard-btn { justify-content: center; width: 100%; }
}

/* Verpackung je Lizenzstufe (public/img/shop/lizenz-standard|business|pro*.webp, oben im Band alle drei: lizenz-stufen.webp). */
.sp-shop .shop-license-box { width: clamp(170px, 19vw, 250px); margin: -40px 0 -18px clamp(8px, 2vw, 28px); transform: none; filter: drop-shadow(0 22px 32px rgba(0, 0, 0, .35)); }
.shop-license:hover .shop-license-box { transform: translateY(-4px); }
.sp-shop .shop-plan { padding-right: 104px; }
.sp-shop .shop-plan-box { position: absolute; right: 16px; top: -26px; width: 78px; height: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); transform: rotate(4deg); transition: transform .3s ease; pointer-events: none; }
.sp-shop .shop-plan:hover .shop-plan-box { transform: rotate(0) translateY(-4px); }
.sp-shop .shop-plan ul, .sp-shop .shop-plan .lp-btn { margin-right: -84px; }
.sp-shop .shop-plans { margin-top: 18px; }
.sp-shop .cart-img-license img { width: 62%; height: auto; }
@media (prefers-reduced-motion: reduce) { .sp-shop .shop-plan-box { transition: none; } }

/* ---------- Kachel: wischbare Fotos und Farbtupfer (shop/partials/card, public/js/shop.js) ----------
   Die Bildleiste liegt über dem Titel-Link der Kachel (z-index 2), damit Wischen auf dem Handy die Fotos bewegt
   statt die Seite; jedes Foto ist selbst ein Link zum Produkt. Punkte unten zeigen, dass es mehrere Fotos gibt. */
.sp-shop .pcard-gallery { position: absolute; inset: 0; z-index: 2; }
.sp-shop .pcard-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sp-shop .pcard-track::-webkit-scrollbar { display: none; }
.sp-shop .pcard-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: block; }
.sp-shop .pcard-slide img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 7%; box-sizing: border-box; transition: transform .6s cubic-bezier(.2, .8, .2, 1); -webkit-user-drag: none; user-select: none; }
.sp-shop .pcard:hover .pcard-slide img { transform: scale(1.05); }
.sp-shop .pcard-dots { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; display: flex; gap: 5px; padding: 4px 7px; border-radius: 99px; background: rgba(11, 11, 18, .45); pointer-events: none; }
.sp-shop .pcard-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: width .2s, background .2s; }
.sp-shop .pcard-dots i.is-on { width: 16px; border-radius: 3px; background: #fff; }
.sp-shop .pcard-arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--fg); font: 700 1.3rem/1 system-ui, sans-serif; cursor: pointer; place-items: center; padding: 0 0 3px; opacity: 0; transition: opacity .2s; }
.sp-shop .pcard-prev { left: 8px; } .sp-shop .pcard-next { right: 8px; }
.shop-js .sp-shop .pcard-arrow { display: grid; }
.sp-shop .pcard:hover .pcard-arrow, .sp-shop .pcard-arrow:focus-visible { opacity: 1; }
@media (hover: none) { .shop-js .sp-shop .pcard-arrow { display: none; } }
.sp-shop .pcard-size, .sp-shop .pcard-incart { z-index: 3; pointer-events: none; }

.sp-shop .pcard-swatches { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 2; }
.sp-shop .pcard-swatch { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--sw, #9ca3af); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 0 0 2px var(--card), 0 0 0 3px var(--line); transition: box-shadow .15s, transform .15s; }
.sp-shop .pcard-swatch:hover { transform: scale(1.08); }
.sp-shop .pcard-swatch.is-on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.sp-shop .pcard-swatch:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
/* Handy: Kurztexte sind dort ausgeblendet, der Varianten-Hinweis („2 Farben · 3 Größen“) bleibt sichtbar */
@media (max-width: 520px) {
    .sp-shop .pcard-body p.pcard-variants { display: -webkit-box; font-size: .74rem; }
    .sp-shop .pcard-swatch { width: 20px; height: 20px; }
    .sp-shop .pcard-dots { bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .sp-shop .pcard-track { scroll-behavior: auto; }
    .sp-shop .pcard-slide img, .sp-shop .pcard-dots i { transition: none; }
}

/* ---------- Übersicht kompakt (Timur 2026-11-29): Kategorie-Leiste, Filter hinter einem Knopf, volle Breite für die Kacheln ----------
   Ersetzt die Seitenleiste: Filter klappen als Feld unter dem Knopf auf, Trefferzahl und Sortierung stehen rechts daneben. */
.sp-shop .shop-layout { display: block; }
.sp-shop .shop-catbar { display: flex; flex-wrap: wrap; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding: 2px 0 4px; }
.sp-shop .shop-catbar::-webkit-scrollbar { display: none; }
.sp-shop .shop-catbar a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s; }
.sp-shop .shop-catbar a:hover { border-color: var(--accent); }
.sp-shop .shop-catbar a span { color: var(--muted); font-size: .76rem; font-weight: 700; }
.sp-shop .shop-catbar a[aria-current="true"] { background: var(--accent-bg); border-color: var(--accent-bg); color: #fff; }
.sp-shop .shop-catbar a[aria-current="true"] span { color: rgba(255, 255, 255, .8); }
.sp-shop .shop-catbar a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.sp-shop .shop-filter { position: relative; top: auto; display: block; max-height: none; overflow: visible; margin: 0 0 18px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.sp-shop .shop-filter-box { display: block; }
.sp-shop .shop-filter-toggle { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--fg); font-weight: 650; font-size: .92rem; cursor: pointer; list-style: none; user-select: none; }
.sp-shop .shop-filter-toggle::-webkit-details-marker { display: none; }
.sp-shop .shop-filter-toggle:hover, .sp-shop .shop-filter-box[open] .shop-filter-toggle { border-color: var(--accent); }
.sp-shop .shop-filter-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sp-shop .shop-filter-toggle b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent-bg); color: #fff; font-size: .72rem; }
.sp-shop .shop-filter .shop-toolbar { position: absolute; right: 0; top: 0; height: 42px; margin: 0; flex-wrap: nowrap; }
.sp-shop .shop-filter-body { margin-top: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 24px; align-items: start; }
.sp-shop .shop-filter-body .shop-facet { border-top: 0; padding: 0; }
.sp-shop .shop-facet-list { display: grid; gap: 2px; max-height: 236px; overflow-y: auto; overflow-x: hidden; padding-right: 6px; scrollbar-width: thin; scrollbar-gutter: stable; }
.sp-shop .shop-filter-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.sp-shop .shop-filter-foot a { color: var(--accent); font-size: .88rem; }
.sp-shop .shop-filter .lp-btn { width: auto; }

/* Kompaktere Kacheln: mehr Produkte je Zeile, Kurztext höchstens zwei Zeilen */
.sp-shop .shop-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sp-shop .pcard-body { padding: 14px 16px 16px; gap: 5px; }
.sp-shop .pcard-body p:not(.pcard-variants):not(.pcard-delivery):not(.pcard-price) { -webkit-line-clamp: 2; font-size: .85rem; }
.sp-shop .shop-group > h2 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin-bottom: 14px; }

@media (max-width: 520px) {
    .sp-shop .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sp-shop .pcard-body { padding: 12px 12px 14px; }
    .sp-shop .shop-catbar { flex-wrap: nowrap; }
    .sp-shop .shop-sort > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .sp-shop .shop-filter .shop-toolbar { gap: 8px; }
    .sp-shop .shop-filter .shop-hits { font-size: .82rem; }
    .sp-shop .shop-sort select { padding: 8px 30px 8px 10px; font-size: .86rem; max-width: 150px; }
    .sp-shop .shop-filter-toggle { padding: 0 14px; }
    .sp-shop .shop-filter-body { grid-template-columns: 1fr; padding: 14px; }
    .sp-shop .shop-catbar { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 380px) {
    .sp-shop .shop-filter .shop-hits { display: none; }
}

/* Fokus-Rahmen nur bei Tastatur, in Markenfarbe */
.sp-shop { --focus: var(--accent); }
/* Titel höchstens zwei Zeilen, ganzer Name im Tooltip (title) */
.sp-shop .pcard-body h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
/* Farbtupfer im Foto oben rechts statt eigener Zeile */
.sp-shop .pcard-img .pcard-swatches { position: absolute; right: 10px; top: 10px; margin: 0; z-index: 4; gap: 6px; flex-wrap: nowrap; padding: 5px 7px; border-radius: 99px; background: rgba(11, 11, 18, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sp-shop .pcard-img .pcard-swatch { width: 16px; height: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.sp-shop .pcard-img .pcard-swatch.is-on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 0 0 2px rgba(11, 11, 18, .55), 0 0 0 3.5px var(--accent); }
.sp-shop .pcard-img:has(.pcard-swatches) .pcard-incart { top: 44px; }
@media (max-width: 520px) { .sp-shop .pcard-img .pcard-swatch { width: 14px; height: 14px; } .sp-shop .pcard-img .pcard-swatches { right: 8px; top: 8px; padding: 4px 6px; } }
/* Kopfzeile versteckt sich beim Runterscrollen: Reiter-Leiste und Galerie rutschen dann mit nach oben statt mitten im Bild zu hängen */
.sp-shop .pdp-tabs, .sp-shop .pdp-gallery { transition: top .25s ease; }
.sp-shop .pdp-tabs { top: 78px; }
body:has(.top.lp-top-hide:not(.sp-mega-open)) .sp-shop .pdp-tabs { top: 10px; }
body:has(.top.lp-top-hide:not(.sp-mega-open)) .sp-shop .pdp-gallery { top: 20px; }
