/* Tössklang – Warenkorb und Kaufknöpfe auf der Startseite (Live-Entwurf, Karte L1 t_727e6d6e).
   Ergänzt css/stil.css, ändert dort nichts. Übernommen aus css/vorschau-stile.css (Testseite, von Salvi geprüft),
   ohne die Stil-Auswahl und die Flug-Animation. */

/* Kopfleiste: Navigation + Warenkorb-Symbol rechts */
.leiste__rechts { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.korb-knopf {
  position: relative; flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(242, 235, 221, 0.4);
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--creme);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.korb-knopf:hover { background: var(--creme-leise); border-color: var(--creme); }
.korb-knopf svg { width: 24px; height: 24px; fill: currentColor; }
.korb-knopf__zahl {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--terrakotta); color: var(--graphit);
  font-size: 0.8rem; font-weight: 700; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums;
}
.korb-knopf__zahl.leer { background: var(--creme-leise); color: var(--creme-text); }

/* Warenkorb-Fenster oben rechts */
.korb {
  position: fixed; z-index: 80; top: 4.6rem; right: clamp(0.75rem, 3vw, 1.5rem);
  width: min(24rem, calc(100vw - 1.5rem)); max-height: calc(100vh - 6rem - var(--player-h)); overflow-y: auto;
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--glas);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--creme-linie); border-radius: 20px;
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.8);
}
.korb[hidden] { display: none; }
.korb__kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.korb__titel { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.korb__zu {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--creme-text);
}
.korb__zu:hover { background: var(--creme-leise); color: var(--creme); }
.korb__zu svg { width: 22px; height: 22px; fill: currentColor; }
.korb__leer { margin: 0.4rem 0 1rem; color: var(--creme-text); }
.korb__liste { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.korb__posten {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.2rem 0.8rem;
  padding: 0.65rem 0; border-bottom: 1px solid var(--creme-linie);
}
.korb__name { margin: 0; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.korb__preis { margin: 0; color: var(--creme-text); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.korb__weg {
  grid-row: 1 / span 2; grid-column: 2;
  min-height: 44px; padding: 0 0.9rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 0.9rem; font-weight: 500;
  background: transparent; color: var(--creme); border: 1px solid rgba(242, 235, 221, 0.4);
}
.korb__weg:hover { background: var(--creme-leise); border-color: var(--creme); }
.korb__summe { display: flex; justify-content: space-between; margin: 0.6rem 0 0.2rem; font-size: 1.1rem; }
.korb__summe strong { font-variant-numeric: tabular-nums; }
.korb__klein { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--creme-text); }
.korb__kasse { width: 100%; margin-top: 0.8rem; }
.korb__kasse[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.korb__fehler { margin: 0.6rem 0 0; padding: 0.6rem 0.8rem; border-radius: 12px; background: var(--wasserblau-tief); color: var(--creme); font-size: 0.95rem; }

/* Gratis-Bestellung im Warenkorb (G2 t_aedeca14): nur Gratis-Lieder im Korb -> E-Mail-Adresse + «Gratis bestellen» */
.korb [hidden] { display: none !important; }
.korb__gratis { margin-top: 0.8rem; }
.korb__label { display: block; margin: 0 0 0.35rem; font-weight: 600; }
.korb__eingabe {
  display: block; width: 100%; min-height: 48px; padding: 0.6rem 0.9rem; border-radius: 12px;
  font: inherit; font-size: 1rem; color: var(--creme); background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(242, 235, 221, 0.4);
}
.korb__eingabe:focus { outline: 2px solid var(--terrakotta); outline-offset: 2px; border-color: var(--creme); }
.korb__ok { margin: 0.6rem 0 0; padding: 0.6rem 0.8rem; border-radius: 12px; border: 1px solid rgba(242, 235, 221, 0.5); color: var(--creme); font-size: 0.95rem; overflow-wrap: anywhere; }

/* Kaufknopf / Gratis-Knopf in der Lied-Kachel */
.kachel .kauf-knopf, .kachel .gratis-knopf { align-self: stretch; margin: auto 0 0; white-space: nowrap; }
.kachel .gratis-knopf { margin-top: 0.9rem; }
.kachel .kauf-knopf.drin, .kachel .gratis-knopf.drin { background: transparent; color: var(--creme); border-color: rgba(242, 235, 221, 0.5); box-shadow: none; }
.kasse-abbruch { margin: 0 0 0.9rem; padding: 0.7rem 0.9rem; border-radius: 12px; border: 1px solid rgba(217, 119, 74, 0.65); }
.kauf-hinweis { margin-top: 0.9rem; }

@media (max-width: 640px) {
  .leiste__rechts { gap: 0.2rem; }
  .korb { top: 4.2rem; }
  .kachel .kauf-knopf, .kachel .gratis-knopf { font-size: 0.95rem; padding: 0.5rem 0.8rem; }
}
