/*
 * Stadtlauf-Shop (#388) — Shop-Übersicht + Produkt-Template (Nicht-Lauf-Produkte)
 *
 * 1:1 aus Claude Design: src/produkt.jsx (.pd-*), src/shop.jsx (.sc-*),
 * src/shop-data.jsx (ShopBaseStyles: .wc-price, .pd-spot, .pd-main, .pd-sw, .sc-card …).
 * Breakpoints wie im JSX: 1180 / 1000 / 700 / 640 px.
 * Alles unter .stadtlauf-shop gescoped. Tokens aus stadtlauf.css (:root).
 * Sticky-Offsets über --site-header-h + --wp-admin--admin-bar--height (Lesson #335).
 * Nur geladen auf Shop-Seite, Produkt-Archiven und Nicht-Lauf-Produkten.
 */

/* ============================================================ */
/* 0. Basis                                                      */
/* ============================================================ */
.stadtlauf-shop {
  background: var(--bg);
  padding-bottom: 80px;
}
.stadtlauf-shop [hidden] { display: none !important; }
.stadtlauf-shop .pd-row { display: flex; align-items: center; gap: 10px; }
.stadtlauf-shop .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.stadtlauf-shop .product-breadcrumb .container { flex-wrap: wrap; row-gap: 4px; }

/* Preis-HTML (WcPriceHtml) */
.stadtlauf-shop .wc-price {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.stadtlauf-shop .wc-price.lg { font-size: 44px; }
.stadtlauf-shop .wc-price.sm {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
}
.stadtlauf-shop .wc-price del { color: var(--mute); font-size: 0.6em; margin-right: 6px; }
.stadtlauf-shop .wc-price.sm del { font-size: 1em; }
.stadtlauf-shop .wc-price ins { text-decoration: none; color: var(--burgundy); }
.stadtlauf-shop .wc-price .price { color: inherit; }

/* Bild-Behandlung: Motiv auf Papier-Scheibe vs. Foto */
.stadtlauf-shop .pd-spot {
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
}
.stadtlauf-shop .pd-main {
  position: relative;
  width: 58%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(26, 19, 12, 0.24));
}
.stadtlauf-shop .pd-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stadtlauf-shop .pd-ph-fill {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

/* Farb-Swatch (WcSwatch) */
.stadtlauf-shop .pd-sw {
  display: inline-block;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--paper), 0 0 0 1px var(--line-soft);
}

/* ============================================================ */
/* 1. Produktseite · Hero (Galerie + Kauf-Spalte)                 */
/* ============================================================ */
.stadtlauf-shop .pd-section--hero { padding: 40px 0 100px; }
.stadtlauf-shop .pd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.stadtlauf-shop .pd-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background: var(--bg-2);
  border: 1.5px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.stadtlauf-shop .pd-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stadtlauf-shop .pd-stage-tags {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
  z-index: 1;
}
.stadtlauf-shop .pd-thumbs { display: grid; gap: 12px; margin-top: 14px; }
.stadtlauf-shop .pd-thumb {
  position: relative;
  aspect-ratio: 1;
  min-height: 44px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--line-soft);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease;
}
.stadtlauf-shop .pd-thumb.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stadtlauf-shop .pd-thumb .pd-main { filter: none; }

.stadtlauf-shop .pd-info {
  position: sticky;
  top: calc(var(--site-header-h, 76px) + var(--wp-admin--admin-bar--height, 0px) + 20px);
}
.stadtlauf-shop .pd-eyebrow-link { color: inherit; }
.stadtlauf-shop .pd-title {
  font-size: clamp(46px, 5.8vw, 84px);
  margin: 16px 0 14px;
}
.stadtlauf-shop .pd-title-accent { color: var(--burgundy); }
.stadtlauf-shop .pd-title-year { font-weight: 400; font-size: 0.62em; }
.stadtlauf-shop .pd-lede {
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 18px 0 26px;
  max-width: 540px;
  text-wrap: pretty;
}
.stadtlauf-shop .pd-lede p { margin: 0 0 0.6em; }
.stadtlauf-shop .pd-lede > :last-child { margin-bottom: 0; }

.stadtlauf-shop .pd-pricebox {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1.5px dashed var(--line-soft);
}
.stadtlauf-shop .pd-price-row { align-items: baseline; flex-wrap: wrap; }
.stadtlauf-shop .pd-unit { margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.stadtlauf-shop .pd-tax {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-2);
}
.stadtlauf-shop .pd-tax a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Merkmal-Auswahl (natives WC-Variationsformular) ---------- */
.stadtlauf-shop .variations_form { margin: 0; }
.stadtlauf-shop table.variations {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  background: none;
  border-collapse: collapse;
}
.stadtlauf-shop table.variations tbody { display: block; }
.stadtlauf-shop table.variations tr {
  display: block;
  position: relative;
  margin-bottom: 16px;
}
.stadtlauf-shop table.variations th.label,
.stadtlauf-shop table.variations td.value {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  line-height: 1.4;
}
.stadtlauf-shop table.variations th.label label {
  display: block;
  margin: 0;
  font-family: var(--ff-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  font-weight: 500;
}
.stadtlauf-shop table.variations tr:has(.pd-chartlink) th.label label { padding-right: 130px; }
/* Ohne JS bleibt das Select sichtbar und bedienbar. */
.stadtlauf-shop table.variations td.value select {
  margin-top: 10px;
  min-height: 44px;
  width: 100%;
  max-width: 360px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-soft);
  background-color: var(--paper);
  font-size: 14px;
}
/* Mit JS: Select visuell aus, Pills übernehmen (Select bleibt Quelle für WC). */
.stadtlauf-shop table.variations td.value select.pd-sel-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.stadtlauf-shop .pd-opts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.stadtlauf-shop .pd-var {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-soft);
  font-weight: 600;
  font-size: 14px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s ease;
}
.stadtlauf-shop .pd-var.size {
  min-width: 56px;
  padding: 0 12px;
  font-family: var(--ff-mono);
  font-size: 13px;
}
.stadtlauf-shop .pd-var.has-sw { padding-left: 8px; }
.stadtlauf-shop .pd-var.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stadtlauf-shop .pd-var.oos { color: var(--mute); text-decoration: line-through; border-style: dashed; }
.stadtlauf-shop .pd-var:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }

.stadtlauf-shop .pd-chartlink {
  position: absolute;
  top: -14px;
  right: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 11px;
  color: var(--burgundy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stadtlauf-shop .pd-chart-fallback { margin: 0 0 10px; }
.stadtlauf-shop .pd-chart-fallback .pd-chartlink { position: static; }

.stadtlauf-shop a.reset_variations.pd-reset {
  display: inline-block;
  visibility: hidden; /* WC-JS schaltet auf visible, sobald etwas gewählt ist */
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--burgundy);
}
.stadtlauf-shop .reset_variations_alert { margin: 0; }

/* Bestand */
.stadtlauf-shop .pd-stock-row { display: flex; flex-wrap: wrap; margin: 4px 0 16px; }
.stadtlauf-shop .pd-stock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
}
.stadtlauf-shop .pd-stock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ---------- Kaufkasten ---------- */
.stadtlauf-shop .pd-buy,
.stadtlauf-shop .variations_form .single_variation_wrap {
  padding: 20px;
  background: var(--bg-2);
  border: 1.5px solid var(--line-soft);
  border-radius: 20px;
}
.stadtlauf-shop .pd-buy > p.stock,
.stadtlauf-shop .variations_form > p.stock { display: none; }
.stadtlauf-shop .pd-buy form.cart,
.stadtlauf-shop .woocommerce-variation-add-to-cart,
.stadtlauf-shop .pd-buy-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
}
.stadtlauf-shop .single_variation .woocommerce-variation-price,
.stadtlauf-shop .single_variation .woocommerce-variation-availability,
.stadtlauf-shop .single_variation .wc-gzd-additional-info,
.stadtlauf-shop .single_variation .legal-price-info,
.stadtlauf-shop .pd-buy .wc-gzd-additional-info,
.stadtlauf-shop .pd-buy .legal-price-info { display: none; }
.stadtlauf-shop .single_variation .woocommerce-variation-description {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 14px;
}
.stadtlauf-shop .single_variation .woocommerce-variation-description p { margin: 0; }
.stadtlauf-shop .wc-no-matching-variations {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--ink-2);
}
.stadtlauf-shop .wc-no-matching-variations::before { display: none; }

/* Menge (WC-Quantity-Input, shop.js ergänzt −/+) */
.stadtlauf-shop .quantity {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}
.stadtlauf-shop .quantity.hidden,
.stadtlauf-shop .quantity:has(input[type="hidden"]) { display: none; }
.stadtlauf-shop .quantity input.qty {
  width: 56px;
  height: 52px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  text-align: center;
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.stadtlauf-shop .quantity.pd-qty-ready input.qty {
  width: 32px;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stadtlauf-shop .quantity.pd-qty-ready input.qty::-webkit-outer-spin-button,
.stadtlauf-shop .quantity.pd-qty-ready input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stadtlauf-shop .pd-qty-btn {
  width: 44px;
  height: 52px;
  font-size: 20px;
  border-radius: 999px;
  color: var(--ink);
}
.stadtlauf-shop .pd-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* CTA „In den Korb" — Spezifität schlägt WC-/Theme-.button-Regeln ohne !important */
.stadtlauf-shop .pd-purchase form.cart button.single_add_to_cart_button.button,
.stadtlauf-shop .pd-cta {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 18px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--paper);
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  opacity: 1;
  transition: background .25s ease;
}
.stadtlauf-shop .pd-purchase form.cart button.single_add_to_cart_button.button:hover,
.stadtlauf-shop .pd-purchase form.cart button.single_add_to_cart_button.button:focus-visible {
  background: var(--burgundy-2);
  color: var(--paper);
}
.stadtlauf-shop .pd-purchase form.cart button.single_add_to_cart_button.button svg { transition: transform .25s ease; }
.stadtlauf-shop .pd-purchase form.cart button.single_add_to_cart_button.button:hover svg { transform: translateX(3px); }
.stadtlauf-shop .pd-purchase form.cart button.single_add_to_cart_button.button.disabled,
.stadtlauf-shop .pd-purchase form.cart button.single_add_to_cart_button.button.disabled:hover,
.stadtlauf-shop .pd-purchase form.cart button.single_add_to_cart_button.button:disabled,
.stadtlauf-shop .pd-cta.pd-cta-off {
  background: var(--line-soft);
  color: var(--ink-2);
  cursor: not-allowed;
  opacity: 1;
}

/* Notices im Look .pd-added */
.stadtlauf-shop .pd-notices { display: flex; flex-direction: column; gap: 8px; }
.stadtlauf-shop .pd-added {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--paper);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.stadtlauf-shop .pd-added a,
.stadtlauf-shop .pd-added-link { font-weight: 600; color: var(--burgundy); }
.stadtlauf-shop .pd-added--error { box-shadow: inset 3px 0 0 var(--burgundy); }

.stadtlauf-shop .pd-oos-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.stadtlauf-shop .pd-mail { color: var(--burgundy); font-weight: 600; }
.stadtlauf-shop .pd-trust {
  margin-top: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.stadtlauf-shop .pd-trust .mono { font-size: 11px; color: var(--mute); letter-spacing: 0.04em; }

.stadtlauf-shop .pd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-2);
}
.stadtlauf-shop .pd-meta a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================ */
/* 2. Beschreibung (Burgund)                                     */
/* ============================================================ */
.stadtlauf-shop .pd-story { background: var(--burgundy); color: var(--paper); padding: 120px 0; }
.stadtlauf-shop .pd-story-in {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}
.stadtlauf-shop .pd-story-in.no-art { grid-template-columns: minmax(0, 1fr); }
.stadtlauf-shop .pd-story-art {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--burgundy-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stadtlauf-shop .pd-story-img { width: 70%; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.3)); }
.stadtlauf-shop .pd-story-disc {
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.28);
}
.stadtlauf-shop .pd-story-disc img { width: 100%; height: auto; }
.stadtlauf-shop .pd-story-disc.is-photo img { height: 100%; object-fit: cover; }
.stadtlauf-shop .pd-story-title {
  font-size: clamp(44px, 5.4vw, 76px);
  margin: 16px 0 36px;
  color: var(--paper);
}
.stadtlauf-shop .pd-story-title--name { margin: 16px 0 28px; }
.stadtlauf-shop .pd-story-em { font-weight: 400; color: var(--yellow); }
.stadtlauf-shop .pd-points { list-style: none; margin: 0; padding: 0; }
.stadtlauf-shop .pd-points li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(252, 248, 238, 0.18);
}
.stadtlauf-shop .pd-points li:last-child { border-bottom: 1px solid rgba(252, 248, 238, 0.18); }
.stadtlauf-shop .pd-points .mono { color: var(--yellow); font-weight: 600; font-size: 14px; padding-top: 3px; }
.stadtlauf-shop .pd-points strong { font-size: 18px; }
.stadtlauf-shop .pd-points p { margin: 4px 0 0; opacity: 0.85; line-height: 1.5; }
.stadtlauf-shop .pd-points + .pd-story-text { margin-top: 28px; }
.stadtlauf-shop .pd-story-text p { font-size: 19px; line-height: 1.6; margin: 0 0 1em; opacity: 0.9; }
.stadtlauf-shop .pd-story-text p:empty { display: none; }
.stadtlauf-shop .pd-story-text > :last-child { margin-bottom: 0; }
.stadtlauf-shop .pd-story-text a { color: var(--yellow); text-decoration: underline; }
.stadtlauf-shop .pd-story-text ul,
.stadtlauf-shop .pd-story-text ol { margin: 0 0 1em; padding-left: 1.2em; font-size: 17px; line-height: 1.6; opacity: 0.9; }

/* ============================================================ */
/* 3. Zusätzliche Informationen (Ticket)                         */
/* ============================================================ */
.stadtlauf-shop .pd-section--info { padding: 110px 0; }
.stadtlauf-shop .pd-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  background: var(--paper);
  border: 1.5px solid var(--line-soft);
  border-radius: 24px;
  overflow: hidden;
}
.stadtlauf-shop .pd-stub {
  position: relative;
  padding: 34px 32px;
  border-right: 2px dashed var(--line-soft);
}
.stadtlauf-shop .pd-stub::before,
.stadtlauf-shop .pd-stub::after {
  content: '';
  position: absolute;
  right: -16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line-soft);
}
.stadtlauf-shop .pd-stub::before { top: -16px; }
.stadtlauf-shop .pd-stub::after { bottom: -16px; }
.stadtlauf-shop .pd-stub-eyebrow { color: var(--burgundy); }
.stadtlauf-shop .pd-stub-name { font-size: 34px; margin: 12px 0 10px; }
.stadtlauf-shop .pd-stub-sku { font-size: 12px; color: var(--mute); }
.stadtlauf-shop .pd-specs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stadtlauf-shop .pd-specs > div {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  margin-left: -1px;
  margin-bottom: -1px;
}
.stadtlauf-shop .pd-specs dt { color: var(--mute); margin-bottom: 6px; }
.stadtlauf-shop .pd-specs dd { margin: 0; font-weight: 600; font-size: 17px; line-height: 1.4; }
.stadtlauf-shop .pd-specs dd a { text-decoration: underline; }
.stadtlauf-shop .pd-specs dd p { margin: 0; }

/* ============================================================ */
/* 4. Gut zu wissen (FAQ) · Passt dazu                           */
/* ============================================================ */
.stadtlauf-shop .pd-section--faq { padding: 0 0 110px; }
.stadtlauf-shop .pd-section--hero + .pd-section--faq,
.stadtlauf-shop .pd-story + .pd-section--faq { padding-top: 110px; }
.stadtlauf-shop .pd-faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.stadtlauf-shop .pd-faq-title { font-size: clamp(40px, 5vw, 64px); margin: 14px 0 18px; }
.stadtlauf-shop .pd-faq-intro { color: var(--ink-2); line-height: 1.55; max-width: 380px; }
.stadtlauf-shop .faq-item__body-inner p:last-child { margin-bottom: 0; }

.stadtlauf-shop .pd-section--cross { padding: 100px 0 40px; }
.stadtlauf-shop .pd-cross-head {
  margin-bottom: 30px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}
.stadtlauf-shop .pd-cross-title { font-size: clamp(36px, 4.4vw, 56px); margin: 14px 0 0; }
/* auto-fill statt auto-fit: eine einzelne Kachel bleibt Kachelbreit statt raumfüllend. */
.stadtlauf-shop .pd-cross { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.stadtlauf-shop .pd-card-run {
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: 24px;
  background: var(--burgundy);
  color: var(--paper);
  padding: 26px;
  gap: 14px;
  min-height: 340px;
  transition: background .25s ease;
}
.stadtlauf-shop .pd-card-run:hover { background: var(--burgundy-2); }
.stadtlauf-shop .pd-card-run-eyebrow { color: var(--yellow); }
.stadtlauf-shop .pd-card-run-title { font-size: 40px; line-height: 0.95; }
.stadtlauf-shop .pd-card-run-text { font-size: 15px; line-height: 1.5; opacity: 0.9; }
.stadtlauf-shop .pd-card-run-btn {
  background: var(--paper);
  color: var(--ink);
  align-self: flex-start;
  margin-top: auto;
}

/* Mobile Sticky-CTA (nur ≤ 700 px, per JS freigeschaltet) */
.stadtlauf-shop .pd-sticky { display: none; }
.stadtlauf-shop .pd-sticky-txt { min-width: 0; }
.stadtlauf-shop .pd-sticky-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stadtlauf-shop .pd-sticky-price { font-size: 12px; opacity: 0.8; }
.stadtlauf-shop .pd-sticky-price del { opacity: 0.7; margin-right: 4px; }
.stadtlauf-shop .pd-sticky-price ins { text-decoration: none; }
.stadtlauf-shop .pd-sticky-btn {
  background: var(--rose);
  color: #fff;
  padding: 12px 18px;
  min-height: 44px;
  font-size: 14px;
}
.stadtlauf-shop .pd-sticky-btn:hover { background: var(--rose-2); }
.stadtlauf-shop .pd-sticky-state { font-size: 12px; padding: 12px 14px; white-space: nowrap; }

/* Größentabelle (<dialog>) */
.stadtlauf-shop dialog.pd-modal {
  width: min(520px, calc(100% - 40px));
  max-width: none;
  max-height: 90vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.stadtlauf-shop dialog.pd-modal::backdrop { background: rgba(26, 19, 12, 0.5); }
.stadtlauf-shop .pd-modal-in {
  background: var(--paper);
  border-radius: 24px;
  padding: 28px;
  max-height: 90vh;
  overflow: auto;
}
.stadtlauf-shop .pd-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.stadtlauf-shop .pd-modal-title { font-size: 30px; }
.stadtlauf-shop .pd-x {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 22px;
  line-height: 1;
}
.stadtlauf-shop .pd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stadtlauf-shop .pd-table th {
  text-align: left;
  font-weight: 500;
  color: var(--mute);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 0 12px 10px 0;
}
.stadtlauf-shop .pd-table td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line-soft); }

/* ============================================================ */
/* 5. Shop-Übersicht · Hero + Kategorie-Startnummern             */
/* ============================================================ */
.stadtlauf-shop .sc-section--hero { padding: 40px 0 64px; }
.stadtlauf-shop .sc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
.stadtlauf-shop .sc-hero-title { font-size: clamp(64px, 10vw, 150px); margin: 18px 0 22px; }
.stadtlauf-shop .sc-hero-accent { color: var(--burgundy); }
.stadtlauf-shop .sc-hero-italic { font-weight: 400; font-size: 0.5em; }
.stadtlauf-shop .sc-hero-lede {
  font-size: 20px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
  max-width: 520px;
  text-wrap: pretty;
}
.stadtlauf-shop .sc-bibs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stadtlauf-shop .sc-bib {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .2s ease, box-shadow .3s ease;
}
.stadtlauf-shop .sc-bib:hover { transform: translateY(-3px); }
.stadtlauf-shop .sc-bib.on {
  border-color: var(--ink);
  transform: rotate(-2deg) translateY(-6px);
  box-shadow: 0 16px 30px rgba(26, 19, 12, 0.16);
}
.stadtlauf-shop .sc-hole {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  z-index: 1;
}
.stadtlauf-shop .sc-hole.tl { top: 7px; left: 7px; }
.stadtlauf-shop .sc-hole.tr { top: 7px; right: 7px; }
.stadtlauf-shop .sc-hole.bl { bottom: 7px; left: 7px; }
.stadtlauf-shop .sc-hole.br { bottom: 7px; right: 7px; }
.stadtlauf-shop .sc-bib-top { display: flex; align-items: center; gap: 6px; padding: 12px 20px 10px; }
.stadtlauf-shop .sc-bib-top svg { flex-shrink: 0; }
.stadtlauf-shop .sc-bib-top .mono {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stadtlauf-shop .sc-bib-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0 12px;
  color: var(--paper);
}
.stadtlauf-shop .sc-bib-mid span { font-size: clamp(56px, 6vw, 88px); font-variant-numeric: tabular-nums; }
.stadtlauf-shop .sc-bib-bot { display: flex; flex-direction: column; gap: 2px; padding: 12px 20px 20px; }
.stadtlauf-shop .sc-bib-bot strong { font-size: 15px; line-height: 1.2; }
.stadtlauf-shop .sc-bib-bot .mono { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================ */
/* 6. Filterleiste                                               */
/* ============================================================ */
.stadtlauf-shop .sc-bar {
  position: sticky;
  top: calc(var(--site-header-h, 76px) + var(--wp-admin--admin-bar--height, 0px));
  z-index: 20;
  background: rgba(247, 241, 225, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--line-soft);
  border-bottom: 1.5px solid var(--line-soft);
}
.stadtlauf-shop .sc-bar-in {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 14px 28px;
  flex-wrap: wrap;
}
.stadtlauf-shop .sc-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
}
.stadtlauf-shop .sc-count .woocommerce-result-count {
  float: none;
  margin: 0;
  padding: 0;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-2);
}
.stadtlauf-shop .sc-filters { display: flex; align-items: center; gap: 10px 24px; flex-wrap: wrap; flex: 1; }
.stadtlauf-shop .sc-fgroup { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stadtlauf-shop .sc-fgroup .ts-eyebrow { color: var(--mute); margin-right: 4px; }
.stadtlauf-shop .sc-fsw {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  transition: border-color .2s ease;
}
.stadtlauf-shop .sc-fsw.on { border-color: var(--ink); }
.stadtlauf-shop .sc-fsize {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1.5px solid var(--line-soft);
  background: var(--paper);
  font-size: 12px;
  font-weight: 500;
}
.stadtlauf-shop .sc-fsize.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stadtlauf-shop .sc-reset { font-size: 12px; color: var(--burgundy); }
.stadtlauf-shop .sc-order { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.stadtlauf-shop .sc-order .woocommerce-ordering { float: none; margin: 0; }
.stadtlauf-shop .sc-order select.orderby {
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line-soft);
  background-color: var(--paper);
  padding: 0 16px;
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink);
}

/* ============================================================ */
/* 7. Raster · Kacheln                                           */
/* ============================================================ */
.stadtlauf-shop .sc-section--grid { padding: 40px 0 100px; }
.stadtlauf-shop .sc-notices { margin-bottom: 24px; }
.stadtlauf-shop .sc-notices .woocommerce-notices-wrapper { padding: 0; }
.stadtlauf-shop .sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }

/* ShopCard */
.stadtlauf-shop .sc-cell { display: flex; border-radius: 24px; }
.stadtlauf-shop .sc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--paper);
  border: 1.5px solid var(--line-soft);
  border-radius: 24px;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.stadtlauf-shop .sc-cell:hover > .sc-card { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(26, 19, 12, 0.1); }
.stadtlauf-shop .sc-art {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.stadtlauf-shop .sc-art .pd-main { width: 62%; }
.stadtlauf-shop .sc-art .pd-spot { width: 80%; }
.stadtlauf-shop .sc-tags { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; z-index: 1; }
.stadtlauf-shop .sc-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.stadtlauf-shop .sc-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 6px;
}
.stadtlauf-shop .sc-name { font-size: 24px; line-height: 1.05; margin: 0; }
/* Ganze Kachel klickbar über den Namens-Link; Button + Versandkosten-Link liegen darüber. */
.stadtlauf-shop .sc-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 24px;
}
.stadtlauf-shop .sc-link:focus-visible { outline: none; }
.stadtlauf-shop .sc-link:focus-visible::after { outline: 2px solid var(--burgundy); outline-offset: 4px; }
.stadtlauf-shop .sc-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stadtlauf-shop .sc-gzd { font-size: 11px; color: var(--ink-2); line-height: 1.4; }
.stadtlauf-shop .sc-gzd a { position: relative; z-index: 2; text-decoration: underline; text-underline-offset: 2px; }
.stadtlauf-shop .sc-attrs { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-2); }
.stadtlauf-shop .sc-sw { display: flex; gap: 4px; }
.stadtlauf-shop a.sc-btn {
  position: relative;
  z-index: 2;
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  transition: background .25s ease;
}
.stadtlauf-shop a.sc-btn:hover { background: var(--burgundy); color: var(--paper); }
.stadtlauf-shop a.sc-btn.added { background: var(--green); }
.stadtlauf-shop a.sc-btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.stadtlauf-shop a.sc-btn.ghost:hover { background: var(--ink); color: var(--paper); }
.stadtlauf-shop a.sc-btn svg { flex-shrink: 0; transition: transform .25s ease; }
.stadtlauf-shop a.sc-btn:hover svg { transform: translateX(3px); }
.stadtlauf-shop .added_to_cart { position: relative; z-index: 2; font-size: 13px; color: var(--burgundy); font-weight: 600; }

/* ShopFeature „Empfohlen" */
.stadtlauf-shop .sc-feature {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  background: var(--burgundy);
  color: var(--paper);
  border-radius: 24px;
  overflow: hidden;
  min-height: 100%;
}
.stadtlauf-shop .sc-feature-art {
  position: relative;
  background: var(--burgundy-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.stadtlauf-shop .sc-feature-disc {
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.28);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.stadtlauf-shop .sc-feature:hover .sc-feature-disc { transform: scale(1.03); }
.stadtlauf-shop .sc-feature-disc img { width: 100%; height: auto; }
.stadtlauf-shop .sc-feature-disc.is-photo img { height: 100%; object-fit: cover; }
.stadtlauf-shop .sc-feature-b { display: flex; flex-direction: column; padding: 32px; }
.stadtlauf-shop .sc-feature-tags { gap: 10px; flex-wrap: wrap; }
.stadtlauf-shop .sc-feature-name { font-size: clamp(40px, 4.4vw, 60px); margin: 20px 0 14px; color: var(--paper); }
.stadtlauf-shop .sc-feature-text { margin: 0 0 22px; font-size: 17px; line-height: 1.55; opacity: 0.9; max-width: 440px; }
.stadtlauf-shop .sc-feature-foot { gap: 16px; flex-wrap: wrap; margin-top: auto; }
.stadtlauf-shop .sc-feature-cta { background: var(--paper); color: var(--ink); }
.stadtlauf-shop .sc-feature-note { font-size: 12px; opacity: 0.85; }
.stadtlauf-shop .sc-feature:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; }

/* Leer-Zustand · Pagination · Germanized-Hinweis */
.stadtlauf-shop .sc-empty {
  padding: 72px 32px;
  text-align: center;
  border: 2px dashed var(--line-soft);
  border-radius: 24px;
}
.stadtlauf-shop .sc-empty-title { font-size: 32px; margin: 0; }
.stadtlauf-shop .sc-empty-btn { margin-top: 20px; }
.stadtlauf-shop .sc-pagination nav.woocommerce-pagination { margin-top: 36px; text-align: left; }
.stadtlauf-shop .sc-pagination nav.woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}
.stadtlauf-shop .sc-pagination nav.woocommerce-pagination ul.page-numbers li { float: none; margin: 0; border: 0; overflow: visible; }
.stadtlauf-shop .sc-pagination nav.woocommerce-pagination ul.page-numbers li a.page-numbers,
.stadtlauf-shop .sc-pagination nav.woocommerce-pagination ul.page-numbers li span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-soft);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 13px;
  line-height: 1;
}
.stadtlauf-shop .sc-pagination nav.woocommerce-pagination ul.page-numbers li span.page-numbers.current {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.stadtlauf-shop .sc-pagination nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover { border-color: var(--ink); background: var(--paper); }
.stadtlauf-shop .sc-gzd-note { margin: 36px 0 0; font-size: 12px; color: var(--ink-2); }
.stadtlauf-shop .sc-gzd-note a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================ */
/* 8. Breakpoints (aus dem JSX)                                  */
/* ============================================================ */
@media (max-width: 1180px) {
  .stadtlauf-shop .sc-bar { position: static; }
}
@media (max-width: 1000px) {
  .stadtlauf-shop .pd-hero { grid-template-columns: 1fr; gap: 36px; }
  .stadtlauf-shop .pd-info { position: static; }
  .stadtlauf-shop .pd-faq { grid-template-columns: 1fr; gap: 30px; }
  .stadtlauf-shop .pd-story-in { grid-template-columns: 1fr; gap: 48px; }
  .stadtlauf-shop .pd-story-art { max-width: 420px; width: 100%; margin: 0 auto; }
  .stadtlauf-shop .sc-hero { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 700px) {
  .stadtlauf-shop .pd-ticket { grid-template-columns: 1fr; }
  .stadtlauf-shop .pd-stub { border-right: none; border-bottom: 2px dashed var(--line-soft); }
  .stadtlauf-shop .pd-stub::before,
  .stadtlauf-shop .pd-stub::after { display: none; }
  .stadtlauf-shop .pd-story { padding: 80px 0; }
  .stadtlauf-shop .pd-story-in { padding: 0 20px; }
  .stadtlauf-shop--product { padding-bottom: 96px; }
  .stadtlauf-shop .pd-sticky {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--ink);
    color: var(--paper);
    border-radius: 999px;
    padding: 8px 8px 8px 22px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  }
}
@media (max-width: 640px) {
  .stadtlauf-shop .sc-feature { grid-column: auto; grid-template-columns: 1fr; }
  .stadtlauf-shop .sc-bar-in { padding: 12px 20px; }
  .stadtlauf-shop .sc-bibs { gap: 8px; }
  .stadtlauf-shop .sc-bib-top { padding: 12px 12px 8px; }
  .stadtlauf-shop .sc-bib-top .mono { display: none; }
  .stadtlauf-shop .sc-bib-bot { padding: 10px 12px 18px; }
  .stadtlauf-shop .sc-bib-bot strong { font-size: 13px; }
}

/* ============================================================ */
/* 9. Reduced Motion (Marquee/Animationen: stadtlauf.css)        */
/* ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .stadtlauf-shop .sc-cell:hover > .sc-card,
  .stadtlauf-shop .sc-bib:hover,
  .stadtlauf-shop .sc-feature:hover .sc-feature-disc { transform: none; }
  .stadtlauf-shop .sc-bib.on { transform: rotate(-2deg); }
  .stadtlauf-shop .sc-card,
  .stadtlauf-shop .sc-bib,
  .stadtlauf-shop .sc-feature-disc,
  .stadtlauf-shop .pd-var,
  .stadtlauf-shop .pd-thumb { transition: none; }
}
