/* R1SE Academy, Shop (shop.js). Farben über die Variablen der Academy (Themes); einzige eigene Fläche ist die helle
   Produktbühne, weil Produktfotos und Buchcover auf hellem Grund gestaltet sind. Präfix .sh- */
:root{--sh-buehne:radial-gradient(circle at 50% 36%,#ffffff 0%,#eef0f4 62%,#e2e5eb 100%)}
:root[data-theme=dunkel]{--sh-buehne:radial-gradient(circle at 50% 36%,#f7f7f9 0%,#e3e5ea 62%,#cfd2d9 100%)}

/* Kopf und Vorteile */
.sh-kopf{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:4px 0 14px}
.sh-kopf h1{font-family:var(--display);font-size:34px;line-height:1.05;letter-spacing:.01em}
.sh-kopf p{color:var(--mute);font-size:15px;margin-top:6px;max-width:560px}
.sh-kopf-k{display:flex;gap:8px;align-items:center}
.sh-korb-knopf{position:relative}
.sh-zahl{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--red);color:#fff;font-size:11px;font-weight:800;display:inline-grid;place-items:center}
.sh-vorteile{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.sh-vorteile span{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;border:1px solid var(--line);background:var(--panel);font-size:12.5px;color:var(--mute)}
.sh-vorteile svg.i{width:16px;height:16px;color:var(--text)}
.sh-chips{margin-bottom:18px;flex-wrap:wrap;overflow:visible}  /* wenige Kategorien: umbrechen statt Blätter-Pfeile */

/* Raster und Karten */
.sh-gruppe{margin-bottom:28px}
.sh-gruppe-kopf{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.sh-gruppe-kopf h2{font-size:18px;text-transform:uppercase;letter-spacing:.06em}
.sh-raster{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.sh-karte{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);background:var(--panel);overflow:hidden;text-decoration:none;color:var(--text);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;min-width:0}
.sh-karte:hover{transform:translateY(-3px);border-color:var(--line2);box-shadow:var(--schatten,0 14px 34px rgba(0,0,0,.28))}
.sh-buehne{position:relative;aspect-ratio:1/1;background:var(--sh-buehne);display:grid;place-items:center;overflow:hidden}
.sh-buehne img{width:100%;height:100%;object-fit:contain;padding:9%;transition:transform .35s ease;mix-blend-mode:multiply}  /* weißer Bildgrund verschmilzt mit der Bühne */
.sh-karte:hover .sh-buehne img{transform:scale(1.05)}
.sh-karte.zeigen .sh-buehne img{opacity:.92}
.sh-platz{color:var(--dim)}
.sh-platz svg.i{width:46px;height:46px;stroke-width:1.3}
.sh-badge{position:absolute;top:10px;left:10px;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#fff;
  background:linear-gradient(180deg,var(--red),var(--red2));box-shadow:0 4px 14px rgba(255,46,46,.3)}
html[data-akzent] .sh-badge:not(.neu):not(.aus){background:var(--akzent);box-shadow:0 4px 14px color-mix(in srgb,var(--akzent) 30%,transparent)}
.sh-badge.neu{background:var(--good);box-shadow:none;color:#06210f}
.sh-badge.aus{background:var(--text);color:var(--bg);box-shadow:none;left:auto;right:10px}
.sh-karte-text{display:flex;flex-direction:column;gap:3px;padding:12px 14px 14px;flex:1;min-width:0}
.sh-kat{font-size:10.5px;text-transform:uppercase;letter-spacing:.1em;color:var(--dim);font-weight:700}
.sh-name{font-size:15.5px;line-height:1.25}
.sh-unter{color:var(--mute);font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sh-karte-fuss{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:10px}
.sh-preis{display:inline-flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.sh-preis b{font-size:17px;font-weight:800}
.sh-preis small{color:var(--mute);font-size:12px}
.sh-preis s{color:var(--dim);font-size:13px}
.sh-pfeil{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--panel2);color:var(--mute);transition:.18s;flex:none}
.sh-karte:hover .sh-pfeil{background:var(--akzent,var(--red));color:#fff}
.sh-pfeil svg.i{width:16px;height:16px}
.sh-geschenk{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;color:var(--gold,#d8a531);line-height:1.3}
.sh-geschenk svg.i{width:17px;height:17px;flex:none}

/* Produktseite */
.sh-zurueck{display:inline-flex;align-items:center;gap:4px;color:var(--mute);font-size:13px;text-decoration:none;margin:2px 0 12px}
.sh-zurueck:hover{color:var(--text)}
.sh-zurueck svg.i{width:16px;height:16px}
.sh-produkt{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:30px;align-items:start}
.sh-galerie{position:sticky;top:76px;display:grid;gap:10px;min-width:0}
.sh-gal-haupt{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:var(--r);border:1px solid var(--line);scrollbar-width:none}
.sh-gal-haupt::-webkit-scrollbar{display:none}
.sh-gal-bild{flex:0 0 100%;aspect-ratio:1/1;scroll-snap-align:start;background:var(--sh-buehne);display:grid;place-items:center;cursor:zoom-in;border:0;padding:0}
.sh-gal-bild img{width:100%;height:100%;object-fit:contain;padding:7%;mix-blend-mode:multiply}
.sh-gal-daumen{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.sh-gal-daumen button{flex:0 0 68px;height:68px;border-radius:12px;border:2px solid transparent;background:var(--sh-buehne);overflow:hidden;opacity:.7;transition:.15s;padding:0}
.sh-gal-daumen button.an{border-color:var(--akzent,var(--red));opacity:1}
.sh-gal-daumen img{width:100%;height:100%;object-fit:contain;padding:6px;mix-blend-mode:multiply}
.sh-info{display:flex;flex-direction:column;gap:14px;min-width:0}
.sh-titel{font-family:var(--display);font-size:34px;line-height:1.05;letter-spacing:.01em;margin-top:2px}
.sh-untertitel{color:var(--mute);font-size:16px;margin-top:-6px}
.sh-preisblock{display:flex;flex-direction:column;gap:3px;padding:14px 16px;border-radius:14px;background:var(--panel);border:1px solid var(--line)}
.sh-preisblock .sh-preis b{font-size:30px;letter-spacing:-.01em}
.sh-preisblock .sh-preis s{font-size:16px}
.sh-spar{color:var(--good);font-size:13px;font-weight:700}
.sh-summe{font-size:13px}
.sh-mwst{font-size:12px}
.sh-kurz{font-size:15px;line-height:1.55}
.sh-option-kopf{display:flex;gap:8px;align-items:baseline;margin-bottom:8px;font-size:14px}
.sh-wahl{display:flex;gap:8px;flex-wrap:wrap}
.sh-wahl button{min-height:44px;padding:0 16px;border-radius:12px;border:1px solid var(--line);background:var(--panel2);color:var(--text);font-weight:600;font-size:14px;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;transition:.15s}
.sh-wahl button small{font-size:11px;color:var(--mute);font-weight:500}
.sh-wahl button:hover:not(:disabled){border-color:var(--line2)}
.sh-wahl button.an{border-color:var(--akzent,var(--red));background:var(--rot-weich);box-shadow:0 0 0 3px var(--rot-weich)}
.sh-wahl button.aus{opacity:.45;text-decoration:line-through}
.sh-staffel{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px}
.sh-stufe{display:flex;flex-direction:column;gap:2px;align-items:flex-start;text-align:left;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--panel);transition:.15s;min-height:44px}
.sh-stufe span{font-size:12px;color:var(--mute)}
.sh-stufe b{font-size:17px}
.sh-stufe small{font-size:11.5px;color:var(--good);font-weight:600}
.sh-stufe.an{border-color:var(--good);background:color-mix(in srgb,var(--good) 10%,var(--panel))}
.sh-kauf{display:flex;gap:10px;align-items:stretch}
.sh-rein{flex:1;min-height:52px;font-size:16px}
.sh-menge{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:12px;background:var(--panel2);overflow:hidden;flex:none}
.sh-menge button{width:44px;height:52px;display:grid;place-items:center;color:var(--text)}
.sh-menge button:disabled{opacity:.35}
.sh-menge button:hover:not(:disabled){background:var(--panel3)}
.sh-menge button svg.i{width:18px;height:18px}
.sh-menge-zahl{width:44px;text-align:center;border:0;background:transparent;font-weight:800;font-size:16px;color:var(--text);outline:none}
.sh-menge.klein button{width:36px;height:36px}
.sh-menge.klein span{min-width:26px;text-align:center;font-weight:800}
.sh-inklusive{border:1px dashed color-mix(in srgb,var(--gold,#d8a531) 60%,transparent);border-radius:14px;padding:12px 14px;background:color-mix(in srgb,var(--gold,#d8a531) 7%,transparent)}
.sh-inklusive b{display:flex;align-items:center;gap:8px;color:var(--gold,#d8a531);font-size:14px;margin-bottom:4px}
.sh-inklusive ul{margin:0;padding-left:22px;font-size:14px;line-height:1.6}
.sh-fakten{display:grid;gap:8px;font-size:13px;color:var(--mute)}
.sh-fakten span{display:flex;align-items:center;gap:9px}
.sh-fakten svg.i{width:17px;height:17px;color:var(--text);flex:none}
.sh-bloecke{max-width:860px;margin:30px 0 10px;display:grid;gap:12px}
.sh-block{border:1px solid var(--line);border-radius:var(--r);background:var(--panel);padding:16px 18px}
.sh-block h3{font-size:14px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}
.sh-block summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;font-size:14px;text-transform:uppercase;letter-spacing:.06em}
.sh-block summary::-webkit-details-marker{display:none}
.sh-block[open] summary{margin-bottom:10px}
.sh-klapp{width:18px;height:18px;transition:transform .2s;color:var(--mute)}
.sh-block[open] .sh-klapp{transform:rotate(180deg)}
.sh-md{font-size:15px;line-height:1.65}
.sh-md p{margin:0 0 10px}
.sh-md ul,.sh-md ol{margin:0 0 10px;padding-left:22px}
.sh-md li{margin:3px 0}
.sh-md li::marker{color:var(--akzent,var(--red))}

/* Warenkorb und Kasse */
.sh-korb{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}
.sh-korb-liste{padding:6px 16px}
.sh-pos{display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px 14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}
.sh-pos:last-of-type{border-bottom:0}
.sh-pos.weg{opacity:.55}
.sh-pos-bild{width:76px;height:76px;border-radius:12px;background:var(--sh-buehne);overflow:hidden;display:grid;place-items:center}
.sh-pos-bild img{width:100%;height:100%;object-fit:contain;padding:6px;mix-blend-mode:multiply}
.sh-pos-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.sh-pos-text a{color:var(--text);text-decoration:none}
.sh-pos-text small{font-size:12.5px}
.sh-tipp{color:var(--good);display:flex;align-items:center;gap:5px;font-weight:600}
.sh-tipp svg.i{width:14px;height:14px}
.sh-pos-r{grid-column:2;display:flex;align-items:center;gap:10px;justify-content:space-between}
.sh-pos-r .sh-pos-summe{margin-left:auto}
.sh-pos-summe{min-width:76px;text-align:right}
.sh-summe-karte{position:sticky;top:76px;display:grid;gap:12px}
.sh-summe-karte h3{margin-bottom:0}
.sh-land{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--mute)}
.sh-land svg.i{width:17px;height:17px;flex:none}
.sh-land select{min-height:38px;padding:6px 10px;flex:1;font-size:14px}
.sh-summen{display:grid;gap:8px;font-size:14px}
.sh-summen>div{display:flex;justify-content:space-between;gap:10px}
.sh-summen span{color:var(--mute)}
.sh-frei{color:var(--good)!important;font-size:12.5px;align-items:center;justify-content:flex-start!important;gap:6px!important;font-weight:600}
.sh-frei svg.i{width:15px;height:15px}
.sh-coins-zeile b{color:var(--good)}
.sh-gesamt{border-top:1px solid var(--line);padding-top:10px;margin-top:2px}
.sh-gesamt span{color:var(--text)!important;font-weight:700}
.sh-gesamt b{font-size:22px}
.sh-coins{display:block;cursor:pointer}
.sh-coins input{position:absolute;opacity:0;pointer-events:none}
.sh-coins-text{display:flex;gap:10px;align-items:center;padding:11px 12px;border-radius:12px;border:1px solid var(--line);background:var(--panel2);transition:.15s}
.sh-coins-text svg.i{width:22px;height:22px;color:var(--gold,#d8a531);flex:none}
.sh-coins-text b{display:block;font-size:14px}
.sh-coins-text small{font-size:12px}
.sh-coins.an .sh-coins-text{border-color:var(--good);background:color-mix(in srgb,var(--good) 9%,var(--panel2))}
.sh-coins input:focus-visible+.sh-coins-text{box-shadow:0 0 0 3px var(--rot-weich)}
.sh-klein{font-size:12px;text-align:center}
.sh-hinweis{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--panel2);font-size:13.5px;line-height:1.5;margin:10px 0}
.sh-hinweis svg.i{width:19px;height:19px;flex:none;margin-top:1px;color:var(--warn)}
.sh-kasse h3{margin-bottom:12px}
.sh-kasse>.sh-feld{margin-top:14px}
.sh-felder{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.sh-feld{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--mute);min-width:0}
.sh-feld.breit{grid-column:1/-1}
.sh-feld i{font-style:normal}
.sh-check{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;margin-top:12px;line-height:1.45;cursor:pointer}
.sh-check input{width:20px;height:20px;margin-top:1px;accent-color:var(--akzent,var(--red));flex:none}
.sh-wege{display:grid;gap:8px}
.sh-weg{display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--panel2);cursor:pointer;min-height:48px}
.sh-weg input{accent-color:var(--akzent,var(--red));width:18px;height:18px}
.sh-mini{display:grid;gap:6px;font-size:13px;border-top:1px solid var(--line);padding-top:10px}
.sh-mini>div{display:flex;justify-content:space-between;gap:10px}
.sh-leer-korb{display:grid;justify-items:center;gap:6px;padding-bottom:30px}
.sh-drin{display:flex;gap:14px;align-items:center;margin-bottom:6px}
.sh-drin img{mix-blend-mode:multiply}
.sh-drin img,.sh-drin .sh-platz{width:72px;height:72px;border-radius:12px;background:var(--sh-buehne);object-fit:contain;padding:5px;flex:none}
.sh-drin h2{margin-bottom:4px}
.sh-danke{max-width:560px;margin:30px auto;text-align:center;display:grid;gap:12px;justify-items:center;padding:34px 22px}
.sh-danke-ico{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--good) 16%,transparent);color:var(--good);animation:sh-pop .45s ease}
.sh-danke-ico svg.i{width:38px;height:38px;stroke-width:2.4}
.sh-danke .sh-hinweis{flex-direction:column;align-items:center;text-align:center;width:100%}
.sh-danke h1{font-family:var(--display);font-size:30px}
@keyframes sh-pop{0%{transform:scale(.5);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}
.sh-best{padding:14px 16px}
.sh-best-kopf{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.sh-status{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;padding:3px 9px;border-radius:999px;background:var(--panel2);color:var(--mute)}
.sh-status.gut{color:var(--good);background:color-mix(in srgb,var(--good) 12%,transparent)}
.sh-status.warn{color:var(--warn);background:color-mix(in srgb,var(--warn) 12%,transparent)}
.sh-status.rot{color:var(--red);background:var(--rot-weich)}

/* Menü und Kopf */
.sh-nav-zahl{margin-left:auto;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--red);color:#fff;font-size:10.5px;font-weight:800;display:inline-grid;place-items:center}
.sh-nav-zahl[hidden]{display:none}
#kopf-korb .sh-kopf-zahl{position:absolute;top:3px;right:2px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--red);color:#fff;font-size:9.5px;font-weight:800;display:grid;place-items:center}

@media (max-width:900px){
  .sh-produkt{grid-template-columns:minmax(0,1fr);gap:18px}
  .sh-galerie{position:static}
  .sh-korb{grid-template-columns:minmax(0,1fr)}
  .sh-summe-karte{position:static}
}
@media (max-width:600px){
  .sh-kopf h1,.sh-titel{font-size:27px}
  .sh-raster{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .sh-karte-text{padding:10px 11px 12px}
  .sh-name{font-size:14px}
  .sh-unter{font-size:12px}
  .sh-preis b{font-size:15px}
  .sh-pfeil{display:none}
  .sh-badge{top:7px;left:7px;font-size:9.5px;padding:3px 8px}
  .sh-vorteile{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:6px}
  .sh-vorteile span{flex-direction:column;justify-content:center;text-align:center;gap:4px;border-radius:12px;padding:8px 6px;font-size:11px;line-height:1.25}
  .sh-gal-haupt{margin:0 -4px;border-radius:14px}
  .sh-gal-daumen button{flex-basis:58px;height:58px}
  .sh-preisblock .sh-preis b{font-size:26px}
  .sh-pos{grid-template-columns:60px minmax(0,1fr);gap:10px}
  .sh-pos-bild{width:60px;height:60px}
  .sh-felder{grid-template-columns:minmax(0,1fr)}
  .sh-kopf-k .knopf.klein{min-height:44px}
  .sh-menge.klein button{width:44px;height:44px}
  .sh-chips .chip{height:40px;padding:0 16px}
  .sh-land select{min-height:44px}
  .knopf.voll,.sh-summe-karte .knopf{min-height:48px}
  .sh-zurueck{min-height:40px;padding-right:12px}
  .sh-check input{width:24px;height:24px}
}
.sh-teilen{align-self:flex-start;justify-self:start;width:auto;margin-top:4px}
