/* ch!li cooperation — Shop & Kasse: kleine Ergänzungen zum bestehenden Design-System (style.css).
   Mobile-first geschrieben (Basis = Smartphone, @media min-width vergrößert für größere Screens) –
   der Shop ist der Fokus der Seite und soll auf dem Handy genauso gut funktionieren wie am Desktop. */

html {
  scroll-behavior: smooth;
}

/* ---------------- Kasse: Schritt-Anzeige, Vertrauens-Hinweis ---------------- */

.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
}
.checkout-step b {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.checkout-step.active { background: var(--accent-soft); color: var(--accent); }
.checkout-step.active b { background: var(--accent); color: #fff; }

.checkout-trust {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-2);
  text-align: center;
  line-height: 1.5;
}

/* Etwas kompakter als der Standard-Konfigurator, damit die Warenkorb-Übersicht
   nicht unnötig viel Leerraum um wenige Positionen herum zeigt. */
#chiliCheckoutStep1.config-summary,
#chiliCheckoutMain .config-summary {
  padding: 26px 24px;
}

/* ---------------- Shop-Hero (angelehnt an apple.com/de/shop/buy-iphone) ---------------- */

.shop-hero {
  padding: 120px 0 26px;
}
@media (max-width: 640px) {
  .shop-hero { padding-top: 100px; }
}
/* ---------------- Shop-Hero v2 (Foto + diagonaler Farbblock, Konzept-Freigabe 2026-09-24) ---------------- */

.shop-hero-grid-v2 {
  display: flex;
  flex-direction: column-reverse;
  gap: 32px;
}
@media (min-width: 860px) {
  .shop-hero-grid-v2 {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
}
.shop-hero-copy { flex: 1 1 auto; }
.shop-hero-pill {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.shop-hero-h1 {
  font-size: clamp(36px, 6.5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.shop-hero-grad {
  background: linear-gradient(120deg, #ffb800, #ff5500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shop-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 460px;
  margin-bottom: 24px;
}
.shop-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.shop-hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
}
.shop-hero-stars { color: #f5a623; letter-spacing: 1.5px; }

.shop-hero-photo-wrap {
  position: relative;
  flex: 0 0 auto;
  height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 860px) {
  .shop-hero-photo-wrap { flex: 0 0 360px; height: 420px; }
}
.shop-hero-photo {
  position: relative;
  z-index: 1;
  max-width: 92%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.18));
}

.shop-trustbar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 34px 0 30px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) {
  .shop-trustbar { grid-template-columns: repeat(4, 1fr); }
}
.shop-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-trust-item .ti { font-size: 22px; flex-shrink: 0; }
.shop-trust-item b { display: block; font-size: 13.5px; }
.shop-trust-item small { display: block; font-size: 12px; color: var(--text-2); }

/* ---------------- Wunschliste-Herz auf den Produktkarten ---------------- */

.shop-wish-btn {
  position: absolute;
  top: 38px;
  right: 38px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.shop-wish-btn:hover { transform: scale(1.1); }
.shop-wish-btn.on { color: #ff5500; }
.shop-tile:has(.shop-tag--accent) .shop-wish-btn { background: rgba(255, 255, 255, 0.35); color: #fff; }
.shop-tile:has(.shop-tag--accent) .shop-wish-btn.on { color: #fff; }

/* ---------------- Kleingedrucktes unter dem Produktraster ---------------- */

.shop-fineprint {
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 760px;
  margin: 6px auto 40px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.shop-fineprint a { color: var(--text-2); text-decoration: underline; }
.shop-fineprint a:hover { color: var(--accent); }

/* ---------------- Häufige Fragen (FAQ) ---------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 20px;
  background: var(--bg-elev);
}
.faq-item summary {
  padding: 16px 0;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-2);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0 0 18px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.shop-quicknav {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.shop-quicknav::-webkit-scrollbar {
  display: none;
}
.shop-quicknav a {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 14px;
  white-space: nowrap;
}
.shop-quicknav a:hover {
  color: var(--accent);
}

/* ---------------- Kategorie-Abschnitt ---------------- */

.shop-section {
  scroll-margin-top: 20px;
}
.shop-section-head {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.shop-section-head span {
  font-weight: 400;
  color: var(--text-2);
}

/* ---------------- Konfigurator-Teaser ---------------- */

.shop-configurator-teaser {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(100deg, #0b0a3f, #211f6b);
  color: #fff;
  border-radius: 24px;
  padding: 22px 26px;
  margin: 8px 0 44px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shop-configurator-teaser:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(11, 10, 63, 0.28); }
.sct-emoji { font-size: 30px; flex-shrink: 0; }
.sct-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.sct-body strong { font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.sct-body span { font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.sct-arrow { font-size: 22px; flex-shrink: 0; transition: transform 0.25s ease; }
.shop-configurator-teaser:hover .sct-arrow { transform: translateX(4px); }
@media (max-width: 620px) {
  .shop-configurator-teaser { flex-wrap: wrap; }
  .sct-arrow { display: none; }
}

/* ---------------- Produkt-Kachel (rail-card-Variante) ---------------- */

.shop-tile {
  width: min(340px, 82vw);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
/* Badge sitzt wie ein Aufkleber auf dem Bild, das jetzt oben in der Kachel liegt. */
.shop-tag {
  position: absolute;
  top: 38px;
  left: 38px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
}
.shop-tag--accent {
  background: linear-gradient(95deg, #ffb800, #ff5500);
  color: #fff;
}
.shop-tag--muted {
  background: var(--accent-soft);
  color: var(--accent);
}
/* Karten mit "Beliebt"/Akzent-Badge bekommen den vollen Orange-Verlauf des
   Badges als Hintergrund, damit sie als Empfehlung wirklich auffallen statt
   in der Reihe unterzugehen – Inhalte dafür in Weiß, der Badge selbst wird
   auf der orangenen Fläche zu einer weißen Pille mit orangenem Text. */
.shop-tile:has(.shop-tag--accent) {
  background: linear-gradient(155deg, #ffb800, #ff5500);
}
.shop-tile:has(.shop-tag--accent) .shop-tag--accent {
  background: #fff;
  color: #ff5500;
}
.shop-tile:has(.shop-tag--accent) h3,
.shop-tile:has(.shop-tag--accent) .shop-price {
  color: #fff;
}
.shop-tile:has(.shop-tag--accent) .shop-tile-tagline {
  color: rgba(255, 255, 255, 0.88);
}
.shop-tile:has(.shop-tag--accent) .shop-visual {
  background: rgba(255, 255, 255, 0.18);
}
.shop-tile h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.shop-stars {
  display: block;
  color: #f5a623;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  margin: 2px 0 4px;
}
.shop-tile:has(.shop-tag--accent) .shop-stars { color: #fff; }
.shop-tile-tagline {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.4;
  min-height: 38px;
}
.shop-visual {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, var(--accent-soft), var(--bg-soft));
  overflow: hidden;
}
.shop-visual span {
  font-size: 84px;
  line-height: 1;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.12));
}
.shop-price-row { margin-bottom: 6px; }
.shop-price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}
.shop-price-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-2);
}
.shop-tile:has(.shop-tag--accent) .shop-price-note { color: rgba(255, 255, 255, 0.75); }

.shop-tile-foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-tile-foot .btn {
  padding: 11px 16px;
  font-size: 13.5px;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  justify-content: center;
}
.shop-more-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.shop-more-link:hover { color: var(--accent); }
.shop-tile:has(.shop-tag--accent) .shop-more-link { color: rgba(255, 255, 255, 0.75); }
.shop-tile:has(.shop-tag--accent) .shop-more-link:hover { color: #fff; }

@media (min-width: 640px) {
  .shop-tile {
    width: 340px;
  }
}

/* ---------------- Kasse: sticky Bestell-Leiste auf dem Handy ---------------- */

.checkout-stickybar {
  display: none;
}

@media (max-width: 860px) {
  .checkout-stickybar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    padding: 12px max(16px, env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-bottom));
    margin: 0 -20px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  }
  .checkout-stickybar .csb-info {
    min-width: 0;
  }
  .checkout-stickybar .csb-name {
    font-size: 13px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .checkout-stickybar .csb-price {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
  }
  .checkout-stickybar .btn {
    flex: 0 0 auto;
  }
}

.cfg-feedback {
  min-height: 22px;
  font-size: 14.5px;
  font-weight: 600;
  margin: 6px 0 4px;
}

#paypalButtonContainer {
  max-width: 420px;
}

@media (max-width: 640px) {
  #paypalButtonContainer {
    max-width: none;
  }
}

/* ---------------- Kasse: Produkt-Karten statt Pillen (Redesign 2026-09-24) ---------------- */

.chip-group--products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}
.chip-product {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 22px 14px 18px;
  border-radius: 20px;
  line-height: 1.3;
}
.chip-product:hover, .chip-product:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.chip-product .cp-icon { font-size: 30px; line-height: 1; }
.chip-product .cp-name { font-weight: 700; font-size: 14px; color: inherit; }
.chip-product .cp-price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 11px;
  border-radius: 99px;
  margin-top: 2px;
}
.chip-product.on { transform: translateY(-3px); box-shadow: var(--shadow); }
.chip-product.on .cp-price { background: rgba(255, 255, 255, 0.22); color: #fff; }
.chip-product.on::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- Kasse: Zusatzoptionen & Stil-Auswahl, gleiche griffige Optik ---------------- */

.chip-toggle {
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 600;
}
.ct-icon { margin-right: 2px; }
