/* kasse.css - Warenkorb, Kasse und Bestellbestaetigung */

.titel-zahl { color: var(--grau); font-weight: 400; font-size: .7em; }

.kasse-spalten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
@media (min-width: 900px) {
  .kasse-spalten { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 36px; }
  .wk-summe { position: sticky; top: 118px; }
}

.gratis { color: #25652f; font-weight: 700; }

/* ---------- Warenkorb ---------- */
.wk-liste { display: grid; gap: 12px; }
.wk-karte {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "bild info preis" "bild info x";
  gap: 4px 16px; align-items: center; background: #fffcf6; border: 1px solid #e8dac2; border-radius: 14px; padding: 12px;
  box-shadow: 0 4px 14px rgba(73, 54, 45, .08);
}
.wk-bild { grid-area: bild; display: block; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: linear-gradient(145deg, #efe0c6, #dec7a3); display: flex; align-items: center; justify-content: center; }
.wk-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-bild .platzhalter-vinyl { width: 78%; }
.wk-info { grid-area: info; min-width: 0; }
.wk-kuenstler { margin: 0 0 2px; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--kupfer); font-weight: 600; }
.wk-titel { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.25; }
.wk-titel a { text-decoration: none; color: inherit; }
.wk-titel a:hover { text-decoration: underline; }
.wk-einzel { margin: 0; font-size: .8rem; color: var(--grau); }
.wk-preis { grid-area: preis; font-size: 1.3rem; font-weight: 800; text-align: right; align-self: end; }
.wk-entfernen { grid-area: x; text-align: right; align-self: start; margin: 0; }
.wk-x {
  min-height: 44px; padding: 0 10px; background: none; border: none; color: var(--grau); font-size: .85rem; cursor: pointer;
  border-radius: 8px; display: inline-flex; align-items: center; gap: 2px;
}
.wk-x:hover { color: var(--rot); background: #fbe9e9; }
.wk-x span[aria-hidden] { font-size: 1.4rem; line-height: 1; }
.wk-hinweis { margin: 4px 2px 0; font-size: .86rem; color: var(--grau); }

.wk-summe {
  background: #fffcf6; border: 1px solid #e8dac2; border-radius: 14px; padding: 20px; box-shadow: 0 6px 18px rgba(73, 54, 45, .10);
}
.wk-summe h2 { margin: 0 0 14px; font-size: 1.1rem; }
.summen { margin: 0; display: grid; gap: 8px; }
.summen > div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.summen dt { color: var(--grau); }
.summen dd { margin: 0; font-weight: 600; text-align: right; }
.summen-total { border-top: 1px solid var(--rand); padding-top: 12px; margin-top: 4px; font-size: 1.1rem !important; }
.summen-total dt { color: var(--violett-dunkel) !important; font-weight: 700; }
.summen-total dd { font-size: 1.3rem; font-weight: 800; }
.summen-abholung dt, .summen-abholung dd { font-size: .85rem; }
.gratis-balken { height: 8px; border-radius: 999px; background: #eadfc9; overflow: hidden; margin: 14px 0 6px; }
.gratis-fuellung { height: 100%; background: linear-gradient(90deg, var(--kupfer), var(--rot)); border-radius: 999px; }
.gratis-text { margin: 8px 0 0; font-size: .86rem; color: var(--grau); }
.gratis-ok { color: #25652f; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.zur-kasse {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin-top: 18px;
  font-size: 1.15rem; font-weight: 700; border-radius: 14px; box-shadow: 0 10px 24px rgba(233, 45, 69, .35);
}
.vertrauen-klein { list-style: none; margin: 16px 0 4px; padding: 0; display: grid; gap: 8px; font-size: .86rem; color: var(--braun); }
.vertrauen-klein li { display: flex; gap: 10px; align-items: center; }
.vertrauen-klein .ico { color: var(--kupfer); font-size: 1.15rem; }
.weiter-stoebern { display: inline-block; margin-top: 12px; font-size: .88rem; color: var(--violett); text-decoration: none; }
.weiter-stoebern:hover { text-decoration: underline; }

/* leerer Warenkorb */
.leer-warenkorb { text-align: center; max-width: 520px; margin: 28px auto 10px; padding: 36px 20px; background: #fffcf6; border: 1px dashed #d9c6a4; border-radius: 16px; }
.leer-warenkorb .platzhalter-vinyl { width: 120px; margin: 0 auto 14px; }
.leer-warenkorb h2 { margin: 0 0 8px; font-size: 1.4rem; }
.leer-warenkorb p { margin: 0 0 20px; color: var(--grau); }
.leer-knoepfe { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* feste Leiste unten (Handy) */
.wk-leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; gap: 12px;
  background: #fffcf6; border-top: 1px solid #e0cfae; box-shadow: 0 -8px 24px rgba(73, 54, 45, .16);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.wk-leiste-summe { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.wk-leiste-summe small { color: var(--grau); }
.wk-leiste-summe b { font-size: 1.25rem; }
.wk-leiste .knopf { min-height: 50px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.wk-leiste ~ footer, body.seite-kasse:has(.wk-leiste) footer.fuss { margin-bottom: 76px; }
@media (min-width: 900px) { .wk-leiste { display: none; } body.seite-kasse:has(.wk-leiste) footer.fuss { margin-bottom: 0; } }
@media (max-width: 560px) {
  .wk-karte { grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "bild info" "bild preis" "x x"; padding: 10px; gap: 2px 12px; }
  .wk-bild { width: 76px; height: 76px; }
  .wk-preis { text-align: left; align-self: start; font-size: 1.15rem; }
  .wk-entfernen { text-align: left; margin-left: -10px; }
}

/* ---------- Kasse ---------- */
.kasse-formular { display: grid; gap: 16px; min-width: 0; }
.kasse-abschnitt { background: #fffcf6; border: 1px solid #e8dac2; border-radius: 14px; padding: 20px; box-shadow: 0 4px 14px rgba(73, 54, 45, .08); }
.kasse-abschnitt h2 { margin: 0 0 14px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.kasse-abschnitt h3 { margin: 18px 0 10px; font-size: .95rem; }
.kasse-abschnitt .nr {
  width: 26px; height: 26px; border-radius: 50%; background: var(--violett-dunkel); color: #fff; font-size: .85rem;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.eingeloggt { margin: 0; color: var(--grau); }
.hinweis-klein { margin: 0 0 12px; font-size: .86rem; color: var(--grau); line-height: 1.5; }
.hinweis-klein a { color: var(--violett); }
.feld { display: block; margin-bottom: 12px; }
.feld > span { display: block; font-size: .86rem; color: var(--grau); margin-bottom: 5px; }
.feld small { display: block; margin-top: 4px; font-size: .78rem; color: var(--grau); }
.feld input, .feld select {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--rand); border-radius: 10px; font-size: 16px; background: #fff; color: inherit;
}
.feld input:focus, .feld select:focus { outline: 2px solid var(--violett); outline-offset: 1px; }
.feld-reihe { display: grid; gap: 12px; }
.plz-ort { grid-template-columns: 100px minmax(0, 1fr); }
.adress-block[hidden], #rechnungsfelder[hidden] { display: none; }

.wahl-karten { display: grid; gap: 10px; margin-bottom: 12px; }
@media (min-width: 640px) { .wahl-karten { grid-template-columns: 1fr 1fr; } }
.wahl { position: relative; display: block; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl-inhalt {
  display: block; padding: 14px 16px 14px 46px; border: 2px solid var(--rand); border-radius: 12px; background: #fff; min-height: 64px;
  position: relative; transition: border-color .15s, box-shadow .15s;
}
.wahl-inhalt::before {
  content: ""; position: absolute; left: 15px; top: 18px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9b79a; background: #fff;
}
.wahl input:checked + .wahl-inhalt { border-color: var(--rot); box-shadow: 0 4px 14px rgba(233, 45, 69, .18); }
.wahl input:checked + .wahl-inhalt::before { border-color: var(--rot); background: radial-gradient(circle, var(--rot) 0 5px, #fff 6px); }
.wahl input:focus-visible + .wahl-inhalt { outline: 3px solid var(--violett); outline-offset: 2px; }
.wahl-inhalt b { display: block; font-size: .98rem; }
.wahl-inhalt small { display: block; margin-top: 2px; font-size: .82rem; color: var(--grau); }
.wahl.gesperrt { cursor: not-allowed; opacity: .5; }
.haken { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: .92rem; margin-top: 6px; }
.haken input { width: 20px; height: 20px; accent-color: var(--rot); }

.bestell-knopf { width: 100%; min-height: 60px; font-size: 1.15rem; font-weight: 700; border-radius: 14px; box-shadow: 0 10px 24px rgba(233, 45, 69, .35); }
.bestell-knopf:disabled { opacity: .7; cursor: wait; }
.agb-hinweis { margin: 0; font-size: .8rem; color: var(--grau); line-height: 1.55; text-align: center; }
.agb-hinweis a { color: var(--violett); }

.uebersicht-liste { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.uebersicht-liste li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.uebersicht-liste img, .uebersicht-liste .platzhalter-vinyl { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; border: 1px solid var(--rand); }
.uebersicht-liste .platzhalter-vinyl { border-radius: 50%; border: 0; }
.u-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.u-text b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.u-text small { color: var(--grau); font-size: .78rem; }
.u-preis { font-weight: 700; font-size: .95rem; white-space: nowrap; }

/* ---------- Bestellbestaetigung ---------- */
.bestaetigung { max-width: 1000px; margin: 0 auto; }
.best-kopf { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 16px; margin-bottom: 12px; }
.best-kopf h1 { margin: 0 0 4px; font-size: clamp(1.3rem, 3.5vw, 1.8rem); }
.best-kopf p { margin: 0; }
.best-kopf.ok { background: #e3f1e5; color: #1b4d27; }
.best-kopf.warte { background: #fdf3d8; color: #6b5200; }
.best-kopf.pruefen { background: #fbe3e3; color: #7a1d1d; }
.best-haken { width: 52px; height: 52px; border-radius: 50%; background: currentColor; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; font-weight: 800; }
.best-haken { color: inherit; }
.best-kopf.ok .best-haken { background: #25652f; color: #fff; }
.best-kopf.warte .best-haken { background: #e0b400; color: #fff; }
.best-kopf.pruefen .best-haken { background: #c62828; color: #fff; }
.dreher { width: 24px; height: 24px; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: dreh 1s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
.best-nummer { margin: 0 0 18px; color: var(--grau); }
.best-nummer b { color: var(--violett-dunkel); font-size: 1.05rem; }
.best-karte { background: #fffcf6; border: 1px solid #e8dac2; border-radius: 14px; padding: 18px 20px; box-shadow: 0 4px 14px rgba(73, 54, 45, .08); }
.best-karte h2 { margin: 0 0 12px; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.best-karte h2 .ico { color: var(--kupfer); }
.best-karte p { margin: 0 0 6px; }
.best-seite { display: grid; gap: 14px; }
.adr { color: var(--grau); line-height: 1.5; }
.adr-titel { margin-top: 10px !important; font-weight: 700; font-size: .85rem; }
.status-ok { color: #25652f; font-weight: 700; }
.best-weiter { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .dreher { animation: none; } }

/* ---------- Gutschein einloesen (Kasse) und Gutschein-Seiten ---------- */
.gutschein-feld { margin-bottom: 18px; }
.gutschein-feld .feld { margin-bottom: 6px; }
.gutschein-reihe { display: flex; gap: 8px; }
.gutschein-reihe input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid #d9c9ad; border-radius: 10px; background: #fff; font: inherit; letter-spacing: .04em; text-transform: uppercase; }
.gutschein-reihe .knopf { min-height: 48px; padding: 0 18px; }
#gutscheinMeldung { display: block; min-height: 1.2em; color: var(--grau); }
.gutschein-code { font-family: "Courier New", monospace; font-size: 1.6rem; font-weight: 700; letter-spacing: .08em; margin: 6px 0 14px; overflow-wrap: anywhere; }
.betrag-wahl { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }

/* "hidden" gilt auch fuer Zeilen und Felder, die sonst eine eigene Anzeige-Regel haben */
.kasse-spalten [hidden], .summen [hidden], .feld[hidden] { display: none !important; }
.feld textarea { width: 100%; padding: 10px 14px; border: 1px solid #d9c9ad; border-radius: 10px; background: #fff; font: inherit; line-height: 1.4; resize: vertical; min-height: 84px; }
.feld textarea:focus { outline: 2px solid var(--violett); outline-offset: 1px; }
