/* Da Aurora · Ballkorb, Anzeigetafel und Wurf. Aus seite.css ausgelagert. */

.korb { position: sticky; top: 5rem; }
.korb__innen { background: var(--nacht); color: var(--linie); border-radius: .6rem; padding: 1.4rem; box-shadow: 0 30px 60px -34px rgba(18, 26, 46, .9); }
.korb__titel { font-family: var(--sc-font-display); font-weight: 800; font-size: 1.5rem; margin: 0 0 1rem; letter-spacing: -.02em; }
.korb__art { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; border: 0; padding: 0; margin: 0 0 1.1rem; }
.korb__art label {
  display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(246, 243, 236, .4); cursor: pointer; font-weight: 700;
}
.korb__art label:has(input:checked) { background: var(--ball); color: var(--nacht); box-shadow: none; }
.korb__art input { accent-color: var(--nacht); }
.korb__art label:has(input:focus-visible) { outline: 3px solid var(--ball); outline-offset: 3px; }

/* Die Anzeigetafel: Klappziffern nach 21st.dev „FlipCountdown“ (jahed). */
.anzeige { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; padding: .75rem .9rem; background: #0b1020; border-radius: .4rem; }
.anzeige__was { margin: 0; font-size: .875rem; color: var(--leise-dunkel); }
.anzeige__tafel { display: flex; gap: .2rem; margin: 0; perspective: 300px; }
.klappe {
  position: relative; display: inline-grid; place-items: center; min-width: 1.35em; height: 1.75em;
  font-family: var(--sc-font-display); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums;
  color: var(--ball); background: linear-gradient(180deg, #1e2946 0 49%, #0b1020 49% 51%, #1a2440 51%); border-radius: .2rem;
}
.klappe--zeichen { min-width: .55em; background: none; }
.klappe--neu { animation: klappen 320ms var(--sc-ease-out, ease-out); }
@keyframes klappen { from { transform: rotateX(-88deg); opacity: .35; } to { transform: none; opacity: 1; } }

.korb__posten { list-style: none; margin: 0; padding: 0; max-height: 15rem; overflow: auto; }
.posten { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .75rem; padding: .55rem 0; border-bottom: 1px solid rgba(246, 243, 236, .14); }
.posten__name { font-weight: 700; line-height: 1.25; }
.posten__summe { font-family: var(--sc-font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.posten__menge { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; }
.posten__menge button {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--nacht-hell); color: var(--linie); font-size: 1.25rem; font-weight: 700;
}
.posten__menge button:hover { background: #28355c; }
.korb__leer, .korb__stand { margin: .5rem 0 1rem; color: var(--leise-dunkel); }
.korb__stand strong { color: var(--ball); }
.korb__angaben { display: grid; gap: .7rem; margin-top: 1rem; }
.feld { display: grid; gap: .25rem; font-size: .9375rem; }
.feld em { color: var(--leise-dunkel); font-style: normal; }
.feld input {
  min-height: 2.75rem; padding: .5rem .75rem; border-radius: .35rem; border: 1.5px solid rgba(246, 243, 236, .35);
  background: #0b1020; color: var(--linie); font: inherit;
}
.feld input::placeholder { color: #8c95ad; }
.feld input:focus-visible { outline: 3px solid var(--ball); outline-offset: 1px; border-color: transparent; }
.korb__adresse { display: grid; gap: .7rem; }
.korb__adresse[hidden] { display: none; }
.korb__fehler { margin: 0; padding: .6rem .75rem; border-radius: .35rem; background: #3a1712; color: #ffd7cf; }
.knopf--senden { width: 100%; background: var(--ball); color: var(--nacht); }
.knopf--senden:hover { background: #e6f36a; }
.korb__klein { margin: 0; font-size: .875rem; line-height: 1.45; color: var(--leise-dunkel); }
.korb__anruf { margin: 1rem 0 0; font-size: .9375rem; }
.korb__anruf a { font-weight: 700; }
.korb-sprung { display: none; }

/* Der Wurf in den Korb: ein Ball auf einem Bogen (21st.dev „Add to basket“). */
.wurf { position: fixed; left: 0; top: 0; z-index: 70; width: 1.4rem; height: 1.4rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #f2fa9a 0 18%, var(--ball) 20% 64%, #b3c42a 100%); }
.korb__fragen { margin: 0 0 1rem; padding: .6rem .75rem; border-radius: .35rem; background: #1f2a4a; font-size: .9375rem; }
.korb__fragen p { margin: 0 0 .25rem; font-weight: 700; }
.korb__fragen ul { margin: 0; padding-left: 1.1rem; }
.korb__zu { margin: 0 0 1rem; padding: .6rem .75rem; border-radius: .35rem; background: #3a2a12; color: #ffe7c2; font-size: .9375rem; }
.korb__anruf a { display: inline-flex; align-items: center; min-height: 2.75rem; }

@media (max-width: 860px) {
  .korb { position: static; }
  .korb-sprung {
    position: sticky; bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 30;
    display: flex; justify-content: center; pointer-events: none;
  }
  .korb-sprung[hidden] { display: none; }
  .korb-sprung span {
    pointer-events: auto; display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem;
    border-radius: 999px; background: var(--tinte); color: var(--ball); font-family: var(--sc-font-display); font-weight: 700;
    box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6);
  }
}
