/* KASSE (/kasse, kasse.js) - Felix, 06.11.2026: "lass ihn einfach nicht
   direkt im warenkorb kaufen sondern erst zum checkout und da kann er dann
   kaufen".
   Am Rechner zwei Spalten: links die Bestellung (Positionen, Rabattcode)
   und darunter seit 07.11.2026 die Lieferadresse, rechts Zahlart, Summe,
   Rechtshinweis und der Knopf - Gesamtpreis und Knopf stehen beieinander.
   Am Handy alles untereinander in derselben Reihenfolge. Weisse Kaesten mit feinem Rand wie die Info-Seiten, der Knopf
   seit 14.11.2026 primaer wie alle Schritte zum Kauf (O-10, styles.css
   --knopf-primaer: Gold, Navy darauf 7,1 : 1). */
.platzhalter-seite.kasse-seite { max-width: var(--breite-mittel); }
/* Leere Kasse: nur Satz und Knopf - mittig in der Textspalte (O-11). */
.platzhalter-seite.kasse-seite.kasse-leer { max-width: var(--breite-text); }
.kasse-lead { margin: 0 0 24px; font-size: 16px; line-height: 1.5; color: var(--text-soft); }
.kasse-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) {
  .kasse-raster { grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr); gap: 24px; align-items: start; }
}
.kasse-spalte { display: grid; gap: 16px; min-width: 0; }
.kasse-block {
  min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--card);
}
.kasse-block h2, .kasse-zahlart legend {
  margin: 0 0 12px; padding: 0; font-family: var(--font-display); font-weight: 800; font-size: 19px;
  line-height: 1.2; letter-spacing: -0.02em; color: var(--navy);
}
.kasse-block-kopf {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; margin-bottom: 2px;
}
.kasse-block-kopf h2 { margin: 0; }
/* "Warenkorb bearbeiten": ein Knopf (oeffnet die Schublade), der wie ein
   Link aussieht; 44 px hoch zum Antippen. */
.kasse-bearbeiten {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: none; background: none; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 3px;
}
.kasse-bearbeiten:hover { color: var(--link-hover); }
.kasse-bearbeiten:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }

/* Positionen: Bild, Angaben, Preis. Set · Nummer und Zustand · Sprache wie
   in der Schublade (.line-set, .line-merkmale aus warenkorb.js). */
.kasse-posten-liste { margin: 0; padding: 0; list-style: none; }
.kasse-posten {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.kasse-posten:last-child { border-bottom: none; }
.kasse-posten-bild { width: 64px; height: 90px; border-radius: 8px; background: var(--inset); overflow: hidden; }
.kasse-posten-bild img { display: block; width: 100%; height: 100%; object-fit: contain; }
.kasse-posten-info { min-width: 0; font-size: 14px; }
.kasse-posten-name { margin: 0; font-weight: 700; line-height: 1.35; color: var(--navy); overflow-wrap: anywhere; }
.kasse-posten .line-set { margin-top: 2px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.kasse-posten .line-merkmale { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 5px; }
.kasse-klein.kasse-vorbestellung, .kasse-versand-zeit.kasse-vorbestellung { font-weight: 700; color: var(--gold-ink); }
.kasse-posten .line-vorbestellung { margin-top: 5px; font-size: 12.5px; font-weight: 700; line-height: 1.35; color: var(--gold-ink); }
.kasse-posten-menge { margin: 6px 0 0; font-size: 13px; color: var(--text-soft); }
/* "Entfernen" je Position: klein wie ein Link, 32 px zum Antippen. */
.kasse-entfernen {
  display: inline-flex; align-items: center; min-height: 32px; margin-top: 2px; padding: 0; border: none; background: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.kasse-entfernen:hover { color: var(--danger-text); }
.kasse-entfernen:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.kasse-posten-preis { margin: 0; font-weight: 800; color: var(--gold-text); white-space: nowrap; text-align: right; }
/* Nicht mehr (in der Menge) da: deutlich rot, der Kauf ist gesperrt. */
.kasse-posten-warnung {
  margin: 8px 0 0; padding: 6px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--danger-text); background: var(--danger-flaeche);
}
.kasse-posten-fehlt .kasse-posten-bild { opacity: .5; }
.kasse-posten-fehlt .kasse-posten-preis { color: var(--muted); text-decoration: line-through; }
@media (max-width: 420px) {
  .kasse-posten { grid-template-columns: 56px minmax(0, 1fr); }
  .kasse-posten-bild { width: 56px; height: 78px; grid-row: span 2; }
  .kasse-posten-preis { grid-column: 2; text-align: left; }
}

/* Rabattcode unter den Positionen (dieselbe Pruefung wie in der Schublade). */
.kasse-rabattfeld { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--border); }
.kasse-rabattfeld label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--navy); }
.kasse-rabatt-zeile { display: flex; gap: 8px; max-width: 420px; }
.kasse-rabatt-zeile input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--field-border); border-radius: 10px;
  font: inherit; font-size: 16px; color: var(--text); background: #fff;
}
.kasse-rabatt-zeile input:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.kasse-rabatt-zeile button {
  flex: none; height: 46px; padding: 0 18px; border: 1px solid var(--field-border); border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); background: #fff;
  transition: border-color .2s ease, color .2s ease;
}
.kasse-rabatt-zeile button:hover:not(:disabled) { color: var(--gold-ink); border-color: var(--gold); }
.kasse-rabatt-zeile button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.kasse-rabatt-zeile :disabled { opacity: .6; cursor: progress; }
.kasse-rabatt-meldung { margin: 0; font-size: 13px; }
.kasse-rabatt-meldung:not(:empty) { margin-top: 6px; }
.kasse-rabatt-meldung.ok { color: var(--ok-text); }   /* Schrift: dunklere Stufe (C-39) */
.kasse-rabatt-meldung.err { color: var(--danger); }

/* LIEFERADRESSE (07.11.2026): Vorname | Nachname, Strasse, Zusatz,
   PLZ | Ort, Land fest. Felder wie das Rabattfeld (46 px hoch, 16 px Schrift
   - kleiner zoomt iOS beim Antippen). Fehler: roter Rahmen am Feld
   (aria-invalid) und der Text darunter, leer ausgeblendet. */
.kasse-adresse-felder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 14px; margin: 0; }
.kasse-feld { min-width: 0; grid-column: span 6; }
.kasse-feld-vorname, .kasse-feld-nachname { grid-column: span 3; }
.kasse-feld-plz { grid-column: span 2; }
.kasse-feld-ort { grid-column: span 4; }
.kasse-feld label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--navy); }
.kasse-feld-optional { font-weight: 400; color: var(--text-soft); }
.kasse-feld input {
  display: block; width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--field-border); border-radius: 10px;
  font: inherit; font-size: 16px; color: var(--text); background: #fff;
}
.kasse-feld input:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.kasse-feld input:disabled { opacity: .6; cursor: progress; }
.kasse-feld input[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.kasse-feld-fehler { margin: 6px 0 0; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--danger); }
.kasse-feld-fehler:empty { display: none; }
/* Abweichende Rechnungsadresse (08.11.2026): Haken unter der Lieferadresse,
   darunter dasselbe Raster wie oben (6 Spalten). */
.kasse-rechnung { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.kasse-rechnung-haken { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; }
.kasse-rechnung-haken input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); flex: none; }
.kasse-rechnung-felder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 14px; margin: 10px 0 0; padding: 0; border: 0; min-width: 0; }
.kasse-rechnung-felder legend { grid-column: 1 / -1; padding: 0; margin-bottom: 4px; font-size: 16px; font-weight: 800; color: var(--navy); }
.kasse-feld-rvorname, .kasse-feld-rnachname { grid-column: span 3; }
.kasse-feld-rplz { grid-column: span 2; }
.kasse-feld-rort { grid-column: span 4; }
.kasse-feld select {
  display: block; width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--field-border); border-radius: 10px;
  font: inherit; font-size: 16px; color: var(--text); background: #fff;
}
.kasse-feld select:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.kasse-feld select[aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
/* Schmalere Bildschirme (Pruefung 07.11.2026): die PLZ bekam nur 2 von 6
   Spalten - bei 375 px rund 95 px, und ihre Fehlermeldung (60 Zeichen)
   brach dort auf fuenf, sechs Zeilen um. Bis 560 px PLZ und Ort je zur
   Haelfte, bis 420 px alles untereinander (wie Vor- und Nachname). */
@media (max-width: 560px) {
  .kasse-feld-plz, .kasse-feld-ort, .kasse-feld-rplz, .kasse-feld-rort { grid-column: span 3; }
}
@media (max-width: 420px) {
  .kasse-feld-vorname, .kasse-feld-nachname, .kasse-feld-plz, .kasse-feld-ort,
  .kasse-feld-rvorname, .kasse-feld-rnachname, .kasse-feld-rplz, .kasse-feld-rort { grid-column: span 6; }
}

/* Kurz ueber den Summen, was bestellt wird (kasse.js kurzlisteHtml) - am
   Handy steht die ausfuehrliche Liste weit ueber dem Knopf. */
.kasse-kurzliste { margin: 0 0 8px; padding: 0 0 8px; list-style: none; border-bottom: 1px solid var(--border); }
.kasse-kurz { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; font-size: 14px; color: var(--text); }
.kasse-kurz-text { min-width: 0; overflow-wrap: anywhere; }
.kasse-kurz-name { font-weight: 700; color: var(--navy); }
.kasse-kurz-merkmale { display: block; margin-top: 1px; font-size: 12.5px; color: var(--text-soft); }
.kasse-kurz-preis { flex: none; font-weight: 700; white-space: nowrap; }

/* Summe: die Gesamtsumme gross, darunter Steuer und Lieferzeit. */
.kasse-zahlen { margin: 0; }
.kasse-zahlen div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; color: var(--text); }
.kasse-zahlen dt, .kasse-zahlen dd { margin: 0; }
.kasse-zahlen dd { font-weight: 700; white-space: nowrap; }
.kasse-zahlen .kasse-rabatt { color: var(--ok-text); }
.kasse-zahlen .kasse-gesamt {
  margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy);
}
.kasse-zahlen .kasse-gesamt dd { font-weight: 800; }
.kasse-versand-hinweis {
  margin: 8px 0 0; padding: 8px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--navy); background: var(--gold-soft);
}
.kasse-klein { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-soft); }
.kasse-klein + .kasse-klein { margin-top: 2px; }

/* ZAHLART als waehlbare Kacheln: echte Radioknoepfe (Tastatur: Tab hinein,
   Pfeiltasten waehlen), die ganze Kachel ist das Label. Gewaehlt: blauer
   Rahmen und Grund; Fokus: Navy-Rahmen um die Kachel. Mindestens 56 px hoch. */
.kasse-zahlart { min-width: 0; margin: 0; padding: 0; border: none; }
.zahlart-liste { display: grid; gap: 10px; }
.zahlart-kachel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 56px; padding: 12px 14px;
  border: 1px solid var(--field-border); border-radius: 12px; background: var(--card); cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
/* Gewaehlt: Navy wie die gewaehlten Reiter (O-10; bis 14.11.2026 Blau). */
.zahlart-kachel:hover { border-color: var(--navy); }
.zahlart-kachel input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.zahlart-kachel:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #f7f8fa; }
.zahlart-kachel:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
@supports selector(:has(*)) {
  .zahlart-kachel input:focus-visible { outline: none; }
}
.zahlart-kachel:has(input:disabled) { cursor: progress; opacity: .65; }
.zahlart-kachel input:disabled { cursor: progress; }
.zahlart-name { font-size: 16px; font-weight: 700; color: var(--navy); }
.zahlart-logos { display: inline-flex; align-items: center; gap: 6px; }
.zahlart-kachel .zahl-logo-paypal { width: 84px; height: 23px; }
.zahlart-kachel .zahl-logo-visa, .zahlart-kachel .zahl-logo-mastercard { width: 39px; height: 26px; }

.kasse-hinweis { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-soft); }
.kasse-recht { margin: 16px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text); }
.kasse-recht a { font-weight: 600; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.kasse-recht a:hover { color: var(--link-hover); }
.kasse-recht a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 2px; }

/* Gesperrt (Artikel weg) und Meldungen nach einem Kaufversuch. */
.kasse-sperre, .kasse-meldung {
  margin: 14px 0 0; padding: 12px 14px; border: 1px solid rgba(226, 59, 87, .45); border-radius: 10px;
  background: var(--danger-flaeche); color: var(--danger-text); font-size: 14px; font-weight: 600; line-height: 1.45;
}
.kasse-sperre p { margin: 0; }
.kasse-sperre .kasse-bearbeiten { color: var(--danger-text); }
.kasse-meldung[hidden] { display: none; }
.kasse-meldung:focus { outline: 2px solid var(--danger); outline-offset: 2px; }
.kasse-meldung.kasse-meldung-ok { border-color: rgba(31, 157, 87, .35); background: rgba(31, 157, 87, .06); color: #136b3a; }
.kasse-meldung.kasse-meldung-ok:focus { outline-color: var(--ok); }
.kasse-leer .kasse-meldung { max-width: 640px; margin: 0 0 16px; }

/* DER KNOPF: volle Breite, nur Text (kasse.js KAUF_TEXT). Primaer wie jeder
   Schritt zum Kauf (O-10): Gold mit Navy-Schrift - bis 14.11.2026 Blau bzw.
   Navy, waehrend "In den Warenkorb" Gold und "Zur Kasse" Blau war. */
.kasse-kaufen {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 16px; padding: 0 20px;
  border: none; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--knopf-primaer-text); background: var(--knopf-primaer);
  transition: background-color .2s ease;
}
.kasse-kaufen:hover:not(:disabled) { background: var(--knopf-primaer-hover); }
.kasse-kaufen:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.kasse-kaufen:disabled { opacity: .5; cursor: not-allowed; }
.kasse-kaufen[aria-busy="true"] { opacity: .75; cursor: progress; }
.kasse-geschlossen { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--navy); }

@media (max-width: 640px) {
  .kasse-block { padding: 16px 14px; }
  .kasse-lead { margin-bottom: 16px; }
  .kasse-zahlen .kasse-gesamt { font-size: 19px; }
}

/* EXPRESS "Weiter mit PayPal" (08.11.2026, kasse.js expressHtml): oben auf
   der Kasse. Kein Bestellknopf - deshalb nicht im Blau der Kauf-Aktionen.
   Seit 08.11.2026 nur das PayPal-Logo ohne Text (Felix: "statt dem
   haesslichen gelben Button" - das war ein gelber Knopf mit Text). Seit
   dem spaeten Abend wie bei Topps: das Gold von PayPal (#FFC439) ohne Rahmen,
   darauf das blaue Logo (paypal.svg: #003087 und #009CDE), 48 px hoch, Ecken
   8 px; darunter "oder" zum Formular. */
.kasse-express { margin: 0 0 20px; max-width: 520px; }
.kasse-express-knopf {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 8px;
  border: none; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 800; line-height: 1.2; color: #003087; background: #ffc439;
  transition: background-color .2s ease;
}
/* Das Logo mittig, hoechstens zwei Drittel der Knopfbreite (am Handy sind
   die drei Knoepfe schmal). */
.kasse-express-knopf img { display: block; width: 88px; max-width: 65%; height: auto; }
.kasse-express-knopf:hover:not(:disabled) { background: #f2ba36; }
.kasse-express-knopf:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.kasse-express-knopf:disabled { opacity: .5; cursor: not-allowed; }
.kasse-express-knopf[aria-busy="true"] { opacity: .75; cursor: progress; }
.kasse-express .kasse-meldung { margin-top: 10px; }
.kasse-express-oder {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 13.5px; color: var(--text-soft);
}
.kasse-express-oder::before, .kasse-express-oder::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* PRUEFSEITE (/kasse/pruefen, kasse-pruefen.js): dieselben Kaesten wie die
   Kasse, dazu die Anschrift aus PayPal und die Wege zurueck. */
.kasse-paypal-anschrift { margin: 0; font-style: normal; font-size: 15px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.kasse-paypal-wege { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 4px; }
.kasse-paypal-zahlart { margin: 0; }
.kasse-paypal-zahlart .zahl-logo-paypal { width: 84px; height: 23px; }
.kasse-hinweis-wichtig { margin: 0 0 12px; }
.kasse-pruefen > .kasse-meldung { max-width: 640px; margin: 0 0 16px; }
.kasse-pruefen-wege { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.kasse-pruefen-wege .info-knopf { border: none; font: inherit; font-weight: 700; cursor: pointer; }
.kasse-pruefen-wege .info-knopf:disabled { opacity: .6; cursor: progress; }

/* ==========================================================================
   SHOP-STIL (Felix, 08.11.2026, Vorlage Shopify-Kasse: "das finde ich sieht
   richtig gut aus. mach unseren checkout auch in dem stil"). Nur die Kasse
   (.kasse-geteilt), die Pruefseite behaelt ihre Kaesten.
   Ein grosser Kasten: links weiss Express, Adresse, Zahlung, Summe und der
   dunkle Knopf; rechts grau die Bestellung mit Bildern, Rabattcode und
   Summen. Im Quelltext steht die Bestellung VOR Express, Adresse und Knopf
   (am Handy oben, wie bei Shopify); am Rechner legen die grid-areas sie
   rechts daneben und halten sie beim Scrollen sichtbar (sticky).
   ========================================================================== */
.kasse-geteilt {
  gap: 0; border: 1px solid var(--border); border-radius: 18px; overflow: clip;
  background: var(--card); box-shadow: 0 1px 2px rgba(11, 27, 58, .05);
}
.kasse-geteilt .kasse-block { padding: 0; border: none; border-radius: 0; background: none; }
.kasse-geteilt .kasse-haupt { display: grid; gap: 30px; padding: 24px 18px 28px; }
.kasse-geteilt .kasse-seitenleiste { padding: 22px 18px; background: #f5f6f8; border-bottom: 1px solid var(--border); }
.kasse-geteilt .kasse-block h2, .kasse-geteilt .kasse-zahlart legend { font-size: 21px; margin-bottom: 14px; }
.kasse-geteilt .kasse-express { max-width: none; margin: 0; padding: 24px 18px 0; text-align: center; }
/* Am Handy die Bestellung zuoberst (wie bei Shopify), dann Express und "oder" -
   sonst stuende "oder" ueber der Bestellung statt ueber der Adresse. Seit
   der Pruefung vom Abend des 08.11.2026 steht sie dafuer auch im Quelltext
   vorn (kasse.js kasseHtml) - vorher schob "order: -1" sie nur im Bild nach
   oben, und Vorleser und Tastatur kamen erst zu Apple Pay, dann zu Artikeln
   und Gesamtpreis. */
@media (max-width: 899px) {
  .kasse-geteilt .kasse-express { padding-top: 22px; }
}
@media (min-width: 900px) {
  .kasse-raster.kasse-geteilt {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr); grid-template-areas: "haupt seite"; align-items: stretch;
  }
  .kasse-raster.kasse-geteilt.mit-express { grid-template-areas: "express seite" "haupt seite"; grid-template-rows: auto 1fr; }
  .kasse-geteilt .kasse-express { grid-area: express; padding: 36px 44px 0; }
  .kasse-geteilt .kasse-haupt { grid-area: haupt; padding: 32px 44px 40px; align-content: start; }
  .kasse-geteilt.mit-express .kasse-haupt { padding-top: 26px; }
  .kasse-geteilt .kasse-seitenleiste { grid-area: seite; padding: 36px 36px 40px; border-bottom: none; border-left: 1px solid var(--border); }
  /* Die Bestelluebersicht rechts klebt BEWUSST NICHT (Shop-Pruefung C-34,
     Entscheidung 14.11.2026). Bis dahin stand hier "position: sticky; top:
     calc(var(--kopf-hoehe) + 20px)" - ohne Wirkung, weil das Raster der
     Seitenleiste die Uebersicht auf deren volle Hoehe streckt; der fehlende
     --leiste-hoehe-Anteil im top-Wert spielte deshalb nie eine Rolle. Klebt
     sie wirklich (align-self: start), verschwinden Rabattfeld und Summe aus
     dem Bild, sobald die Uebersicht hoeher als das Fenster ist (1024x600 mit
     3 Artikeln, 1280x720 mit 5), und der Tab-Fokus landet im unsichtbaren
     Rabattfeld (WCAG 2.4.11). Also: mitrollen wie der Rest der Seite. */
}

/* Express: kleine Ueberschrift, gelber PayPal-Knopf, "oder" als Trennlinie. */
.kasse-geteilt .kasse-express-titel {
  margin: 0 0 12px; font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text-soft);
}
.kasse-geteilt .kasse-express-oder { margin: 22px 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* Positionen in der grauen Leiste: Bild mit Rahmen und Stueckzahl-Abzeichen. */
.kasse-geteilt .kasse-block-kopf { margin-bottom: 6px; }
.kasse-geteilt .kasse-block-kopf h2 { font-size: 18px; margin: 0; }
.kasse-geteilt .kasse-bearbeiten { font-size: 13.5px; font-weight: 600; }
.kasse-geteilt .kasse-posten { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 2px 14px; padding: 12px 0; border-bottom: none; }
.kasse-geteilt .kasse-posten-bild { position: relative; width: 58px; height: 80px; overflow: visible; background: none; border-radius: 0; }
.kasse-posten-rahmen { width: 100%; height: 100%; overflow: hidden; border-radius: 8px; }
.kasse-geteilt .kasse-posten-rahmen { border: 1px solid var(--field-border); background: #fff; }
.kasse-posten-rahmen img { display: block; width: 100%; height: 100%; object-fit: contain; }
.kasse-posten-anzahl { display: none; }
.kasse-geteilt .kasse-posten-anzahl {
  position: absolute; top: -8px; right: -8px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; font-size: 12px; font-weight: 700; line-height: 1; color: #fff; background: var(--navy);
  box-shadow: 0 0 0 2px #f5f6f8;
}
.kasse-geteilt .kasse-posten-name { font-size: 14px; font-weight: 600; }
.kasse-geteilt .kasse-posten-menge { margin-top: 3px; font-size: 12.5px; }
.kasse-geteilt .kasse-posten-preis { font-size: 14px; font-weight: 600; color: var(--text); }
@media (max-width: 420px) {
  .kasse-geteilt .kasse-posten { grid-template-columns: 50px minmax(0, 1fr); }
  .kasse-geteilt .kasse-posten-bild { width: 50px; height: 70px; }
}

/* Rabattcode in der Leiste: Feld und grauer Knopf in einer Zeile. */
.kasse-geteilt .kasse-rabattfeld { margin-top: 10px; padding-top: 16px; }
.kasse-geteilt .kasse-rabatt-zeile { max-width: none; }
.kasse-geteilt .kasse-rabatt-zeile input { height: 50px; border-radius: 8px; background: #fff; }
.kasse-geteilt .kasse-rabatt-zeile button { height: 50px; border-radius: 8px; color: var(--text-soft); background: #eceef2; border-color: #e1e4ea; }

/* Summen in der Leiste: Gesamt gross mit "EUR" davor. */
.kasse-seite-zahlen { margin: 18px 0 0; }
.kasse-seite-zahlen div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14.5px; color: var(--text); }
.kasse-seite-zahlen dt, .kasse-seite-zahlen dd { margin: 0; }
.kasse-seite-zahlen dd { white-space: nowrap; }
.kasse-seite-rabatt { color: var(--ok-text); }
.kasse-seite-zahlen .kasse-seite-gesamt { align-items: baseline; margin-top: 10px; }
.kasse-seite-zahlen .kasse-seite-gesamt dt { font-size: 19px; font-weight: 800; color: var(--navy); }
.kasse-seite-zahlen .kasse-seite-gesamt dd { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.kasse-waehrung { margin-right: 4px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }

/* Felder mit der Beschriftung IM Feld: leer gross wie ein Platzhalter, mit
   Inhalt oder Fokus klein oben (:placeholder-shown, kasse.js feldHtml setzt
   placeholder=" "). Ohne :has() bleibt sie einfach klein oben. */
.kasse-geteilt .kasse-feld { position: relative; }
.kasse-geteilt .kasse-feld label {
  position: absolute; top: 8px; left: 13px; right: 13px; z-index: 1; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 12px; font-weight: 500; color: var(--muted); pointer-events: none; transition: top .15s ease, font-size .15s ease;
}
.kasse-geteilt .kasse-feld-optional { font-weight: 400; }
.kasse-geteilt .kasse-feld input, .kasse-geteilt .kasse-feld select {
  height: 54px; padding: 22px 12px 6px; border-radius: 8px; border-color: #d3d7de; font-size: 16px;
}
.kasse-geteilt .kasse-feld:has(input:placeholder-shown:not(:focus)) label { top: 17px; font-size: 15px; }
.kasse-geteilt .kasse-feld input:focus-visible, .kasse-geteilt .kasse-feld select:focus-visible {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy);
}
.kasse-geteilt .kasse-adresse-felder, .kasse-geteilt .kasse-rechnung-felder { gap: 12px; }

/* Zahlungsart: Kacheln nebeneinander (Shop-Stil), Auswahl dunkel umrandet. */
.kasse-geteilt .zahlart-liste { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kasse-geteilt .zahlart-kachel {
  position: relative; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px;
  min-height: 82px; padding: 14px; border-radius: 10px; border-color: #d3d7de;
}
.kasse-geteilt .zahlart-kachel input { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; accent-color: var(--navy); }
.kasse-geteilt .zahlart-kachel:hover { border-color: var(--navy); }
.kasse-geteilt .zahlart-kachel:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #f7f8fa; }
.kasse-geteilt .zahlart-name { font-size: 15px; }
.kasse-geteilt .kasse-zahlwahl .kasse-hinweis { margin-top: 12px; }

/* Rechnungsadresse direkt unter der Zahlart. */
.kasse-geteilt .kasse-haupt > .kasse-rechnung-block { margin-top: -14px; }
.kasse-geteilt .kasse-rechnung { margin: 0; padding: 0; border: none; }
.kasse-geteilt .kasse-rechnung-haken { font-size: 14.5px; font-weight: 500; color: var(--text); }
.kasse-geteilt .kasse-rechnung-felder { margin-top: 12px; }
.kasse-geteilt .kasse-rechnung-felder legend { font-size: 17px; }

/* Vor dem Knopf: die Summe mit Kurzliste als ruhiger Kasten. */
.kasse-geteilt .kasse-summe { padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: #fafbfc; }
.kasse-geteilt .kasse-summe h2 { margin-bottom: 8px; font-size: 16px; }
.kasse-geteilt .kasse-zahlen .kasse-gesamt { font-size: 19px; }
.kasse-geteilt .kasse-kauf { margin-top: -14px; }
.kasse-geteilt .kasse-recht { margin-top: 0; }

/* Der Knopf: gross, volle Breite (Farbe wie oben, primaer). */
.kasse-geteilt .kasse-kaufen { min-height: 58px; margin-top: 18px; border-radius: 10px; font-size: 17.5px; }

/* ==========================================================================
   KONTAKT, VERSAND, KARTE DIREKT AUF DER KASSE (Felix, 08.11.2026: "versuch
   mir einfach allgemein wie beim angefügten screenshot diese checkout seite
   so nachzubauen"). Wie in der Vorlage: "Kontakt" mit E-Mail zuoberst,
   "Versand" als ein umrandeter, gewaehlter Kasten, bei "Kreditkarte" die
   Kartenfelder von Stripe direkt unter den Kacheln (kasse.js karteHtml; das
   Aussehen IM Feld setzt kasse-karte.js karteAussehen - Navy, Radius 8 px).
   ========================================================================== */
.kasse-kontakt-felder { margin: 12px 0 0; }

.kasse-versand-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--navy); border-radius: 8px; background: #f7f8fa; box-shadow: inset 0 0 0 1px var(--navy);
}
.kasse-versand-text { display: grid; gap: 2px; min-width: 0; }
.kasse-versand-name { font-size: 15px; font-weight: 600; color: var(--text); }
.kasse-versand-zeit { font-size: 13px; color: var(--text-soft); }
.kasse-versand-preis { flex: none; font-size: 15px; font-weight: 700; white-space: nowrap; color: var(--text); }

/* Die Kartenfelder: ein ruhiger Kasten unter den Kacheln, wie die
   aufgeklappte Kachel in der Vorlage. Die Felder selbst zeichnet Stripe. */
.kasse-karte { margin-top: 12px; padding: 16px; border: 1px solid #d3d7de; border-radius: 10px; background: #f7f8fa; }
.kasse-karte[hidden], .kasse-karte-weiter[hidden] { display: none; }
.kasse-karte-insel { min-width: 0; }
.kasse-karte-laedt { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-soft); }
.kasse-karte-weiter { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-soft); }

/* Kartenmarken in der Kachel: American Express wie Visa/Mastercard, "+4" als
   Plakette in derselben Hoehe. */
.zahlart-kachel .zahl-logo-american-express { width: 39px; height: 26px; }
.zahlart-kachel .zahl-mehr { min-width: 34px; height: 26px; font-size: 12px; }
.kasse-geteilt .zahlart-logos { flex-wrap: wrap; }

/* Pruefung 08.11.2026: waehrend gekauft wird, sind die Kartenfelder nur
   lesbar (readOnly) - das sieht man ihnen nicht an ("doesn't change the
   Payment Element's visual appearance"). Deshalb blasser und nicht
   anklickbar (kasse.js karteHtml, Klasse "gesperrt"). */
.kasse-karte.gesperrt .kasse-karte-insel { opacity: .55; pointer-events: none; }
/* Klarna (14.11.2026): derselbe Kasten wie die Kartenfelder, darunter der Satz,
   dass es nach "Zahlungspflichtig bestellen" zu Klarna geht (kasse.js klarnaHtml). */
.kasse-klarna-weiter { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-soft); }

/* ==========================================================================
   APPLE PAY / GOOGLE PAY OBEN (Felix, 08.11.2026: "die muessen oben gehen.
   beim topps checkout ist das auch so"). Wie bei Topps (Shopify) EINE Reihe
   gleich breiter, gleich hoher Knoepfe (48 px, kasse-karte.js WALLET_HOEHE),
   8 px Abstand: PayPal | Apple Pay | Google Pay - auch am Handy (ab 320 px)
   nebeneinander. Seit dem spaeten Abend je Zahlart eine eigene Zelle mit
   eigenem Element von Stripe (kasse.js WALLET_GRUPPEN) - in EINEM Element
   legte Stripe Apple Pay und Google Pay uebereinander, daneben stand PayPal
   allein (Felix: "das soll genau so aussehen wie ... beim topps checkout").
   Solange Stripe fuer eine Zelle nicht gemeldet hat, dass es ihren Knopf
   zeigt (Klasse "bereit" fehlt), liegt sie unsichtbar UEBER der Reihe statt
   in ihr - kein Platz, keine Luecke, die anderen Knoepfe teilen sich die
   Breite; Stripe kann sie trotzdem einrichten (sichtbar ist sie nur nicht).
   ========================================================================== */
/* Ein Raster statt flex (Pruefung 09.11.2026): mit "flex: 1 1 0" blieb der
   Innenabstand des PayPal-Knopfs (0 8px) als Grundbreite stehen - PayPal war
   immer 16 px breiter als Apple Pay und Google Pay (gemessen bei 250 px
   Reihe: 88,7 / 72,7 / 72,7 px). Gleiche Spalten (minmax(0, 1fr)) haengen
   nicht vom Innenabstand ab; die Zellen ohne "bereit" liegen absolut und
   belegen keine Spalte. Nebenbei: gap im Raster kennt auch Safari vor 14.1. */
.kasse-express-knoepfe { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.kasse-express-knoepfe > * { min-width: 0; }
.kasse-wallet { min-height: 48px; }
.kasse-wallet:not(.bereit) {
  position: absolute; top: 0; left: 0; width: 100%; min-height: 0; visibility: hidden; pointer-events: none;
}
/* Gesperrt wie der PayPal-Knopf (Kauf laeuft, Rabatt wird neu berechnet). */
.kasse-wallet.gesperrt { opacity: .5; pointer-events: none; }
/* Kein PayPal und (noch) keine Wallet-Knoepfe: die Zeile nimmt keinen Platz,
   bleibt aber im Aufbau, damit Stripe die Insel einrichten kann. */
.kasse-geteilt .kasse-express.ohne-knoepfe, .kasse-express.ohne-knoepfe {
  height: 0; margin: 0; padding: 0; overflow: hidden; visibility: hidden;
}
