/* ══════════════════════════════════════════════════════════════════════════
   Kasse und Bestellbestaetigung
   --------------------------------------------------------------------------
   Zwei Spalten ab 900px: links das Formular, rechts die Bestellung, die
   beim Scrollen stehen bleibt. Darunter eine Spalte, die Bestellung rueckt
   unter das Formular; die Summe steht zusaetzlich direkt am Knopf.

   Eingabefelder 16px Schrift: darunter zoomt Safari am iPhone beim
   Antippen ungefragt in die Seite.
   ══════════════════════════════════════════════════════════════════════════ */

.kasse, .bestaetigung { padding-bottom: 50px; }
.kasse .section-title h1,
.bestaetigung h1 {
    font-family: 'JOYSTIX', monospace; font-size: 20px; letter-spacing: 3px;
}

.kasse-raster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.kasse-meldung {
    margin: 0 0 20px; padding: 12px 16px; border-radius: 6px;
    font-family: 'Open Sans', sans-serif; font-size: 14px;
    background: #1d2a22; border: 2px solid #2d5a3f; color: #cfeedd;
}
.kasse-meldung.fehler { background: #2a1a1e; border-color: #6a2a36; color: #ffd6dc; }
.kasse-meldung a { color: inherit; text-decoration: underline; margin-left: 6px; }

/* ── Abschnitte ────────────────────────────────────────────────────────── */

.kschritt {
    background: #17171c;
    border: 2px solid #24242c;
    border-radius: 8px;
    padding: 20px 20px 22px;
    margin-bottom: 16px;
}
.kschritt-ohne-kopf { margin-top: -10px; border-top-left-radius: 0; border-top-right-radius: 0; }
.kschritt h2 {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 18px;
    font-family: 'JOYSTIX', monospace; font-size: 12px; letter-spacing: 1.5px; color: #e4e4e2;
}
.kschritt h2 span {
    width: 26px; height: 26px; flex: 0 0 auto;
    display: grid; place-items: center;
    background: #39fa93; color: #06331d; border-radius: 50%;
    font-size: 10px;
}

.kgitter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 14px;
}

/* ── Felder ────────────────────────────────────────────────────────────── */

.kfeld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kfeld.breit { grid-column: 1 / -1; }
.kfeld[hidden], .kleinhinweis[hidden], [data-opt][hidden] { display: none; }
.kfeld.latein .kleinhinweis { margin: 0; }
.kfeld label {
    font-family: 'Open Sans', sans-serif; font-size: 12.5px; color: #a9a9b2;
}
.kfeld label .opt { color: #6b6b75; font-size: 11.5px; margin-left: 4px; }
.kfeld input,
.kfeld select,
.kfeld textarea {
    width: 100%;
    padding: 11px 12px;
    background: #101014;
    border: 2px solid #2c2c35;
    border-radius: 5px;
    color: #ececf0;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.3;
}
.kfeld select { appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a9a9b2' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.kfeld textarea { resize: vertical; min-height: 56px; }
.kfeld input:focus,
.kfeld select:focus,
.kfeld textarea:focus { outline: 0; border-color: #39fa93; }
.kfeld.fehler input,
.kfeld.fehler select { border-color: #d0485c; }
.kfehler {
    margin: 2px 0 0;
    font-family: 'Open Sans', sans-serif; font-size: 12.5px; color: #ff9aa8;
}
.kleinhinweis {
    margin: 10px 0 0;
    font-family: 'Open Sans', sans-serif; font-size: 12px; color: #7f7f89; line-height: 1.5;
}

/* Kontrollkaestchen mit Text */
.kwahl {
    display: flex; align-items: flex-start; gap: 11px;
    margin-top: 16px; cursor: pointer;
    font-family: 'Open Sans', sans-serif; font-size: 14px; color: #cfcfd6; line-height: 1.45;
}
.kwahl input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: #39fa93; cursor: pointer; }
.kwahl em { display: block; font-style: normal; font-size: 12px; color: #7f7f89; }
.kwahl a { color: #39fa93; text-decoration: underline; }
.kwahl.fehler span { color: #ff9aa8; }
.kschaltbar { margin-top: 14px; }
.kschaltbar[hidden] { display: none !important; }

/* Anmelden */
.anmelden-box summary {
    cursor: pointer; list-style: none;
    font-family: 'Open Sans', sans-serif; font-size: 14px; color: #39fa93;
}
.anmelden-box summary::-webkit-details-marker { display: none; }
.anmelden-box summary::before { content: "\25B8"; margin-right: 8px; display: inline-block; transition: transform .15s; }
.anmelden-box[open] summary::before { transform: rotate(90deg); }
.anmelden-form {
    display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end;
    margin-top: 14px;
}
.knopf-klein { padding: 12px 18px; flex: 0 0 auto; }
.angemeldet { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-family: 'Open Sans', sans-serif; font-size: 14px; color: #cfcfd6; }
.angemeldet p { margin: 0; }
.textknopf { background: none; border: 0; padding: 0; color: #8a8a94; text-decoration: underline; cursor: pointer;
    font-family: 'Open Sans', sans-serif; font-size: 13px; }

/* Zahlarten */
.zahlarten { display: grid; gap: 10px; }
.zahlart {
    display: grid; grid-template-columns: 22px 1fr; gap: 3px 12px; align-items: center;
    padding: 14px 16px;
    background: #121216; border: 2px solid #2a2a33; border-radius: 6px;
    cursor: pointer;
}
.zahlart input { grid-row: 1 / span 3; width: 20px; height: 20px; margin: 0; accent-color: #39fa93; }
.zahlart .zsymbole { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.zahlart .zsymbole img { display: block; width: 38px; height: 24px; }
.zahlart .zsymbole img[hidden] { display: none; }
.zahlart.aus .zsymbole { filter: grayscale(1); }
.zahlart .zname { font-family: 'JOYSTIX', monospace; font-size: 11px; color: #e4e4e2; letter-spacing: 1px; }
.zahlart .zhinweis { font-family: 'Open Sans', sans-serif; font-size: 12.5px; color: #8a8a94; }
.zahlart:has(input:checked) { border-color: #39fa93; background: #14231b; }
.zahlart.aus { opacity: .5; cursor: not-allowed; }

/* Abschluss */
.kasse-abschluss {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    margin-top: 20px; padding-top: 18px; border-top: 1px solid #2a2a33;
}
.kasse-endsumme span { display: block; font-family: 'Open Sans', sans-serif; font-size: 12px; color: #8a8a94; }
.kasse-endsumme strong { font-family: 'JOYSTIX', monospace; font-size: 20px; color: #39fa93; }
.kasse-knopf { flex: 1 1 260px; max-width: 360px; text-align: center; font-size: 12px; }

/* ── Rechte Spalte ─────────────────────────────────────────────────────── */

.kasse-rechts { position: sticky; top: 16px; }
.kasse-uebersicht {
    background: #17171c; border: 2px solid #24242c; border-radius: 8px;
    padding: 18px 18px 20px;
}
.kasse-uebersicht h2 {
    margin: 0 0 14px;
    font-family: 'JOYSTIX', monospace; font-size: 12px; letter-spacing: 1.5px; color: #e4e4e2;
}
.kasse-posten { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.kasse-posten li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.kp-bild {
    position: relative; width: 58px; aspect-ratio: 5 / 4;
    background: #fff; border-radius: 4px;
}
.kp-bild img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 4px; }
.kp-menge {
    position: absolute; top: -7px; right: -7px;
    min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center;
    background: #3a3a46; color: #fff; border-radius: 999px;
    font-family: 'JOYSTIX', monospace; font-size: 8px;
}
.kp-text { min-width: 0; }
.kp-name {
    display: block; font-family: 'JOYSTIX', monospace; font-size: 9px; line-height: 1.6; color: #e4e4e2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kp-opt { display: block; font-family: 'Open Sans', sans-serif; font-size: 11.5px; color: #8a8a94; }
.kp-preis { font-family: 'JOYSTIX', monospace; font-size: 10px; color: #39fa93; white-space: nowrap; }

.kasse-summen {
    display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0;
    padding-top: 14px; border-top: 1px solid #2a2a33;
    font-family: 'Open Sans', sans-serif; font-size: 13.5px; color: #a9a9b2;
}
.kasse-summen dd { margin: 0; text-align: right; }
.kasse-summen dt span { display: block; font-size: 11.5px; color: #6b6b75; }
.kasse-summen .gesamt {
    padding-top: 10px; margin-top: 2px; border-top: 1px solid #2a2a33;
    font-family: 'JOYSTIX', monospace; font-size: 12px; color: #e4e4e2;
}
.kasse-zurueck {
    display: block; margin-top: 14px; text-align: center;
    font-family: 'Open Sans', sans-serif; font-size: 12.5px; color: #8a8a94;
}

/* ── Bestaetigung ──────────────────────────────────────────────────────── */

.best-kopf { text-align: center; padding: 30px 0 22px; }
.best-haken {
    width: 64px; height: 64px; margin: 0 auto 18px;
    display: grid; place-items: center;
    background: #39fa93; color: #06331d; border-radius: 50%;
}
.best-haken svg { width: 34px; height: 34px; }
.best-nummer { font-family: 'Open Sans', sans-serif; font-size: 15px; color: #a9a9b2; margin: 10px 0 0; }
.best-nummer strong { font-family: 'JOYSTIX', monospace; font-size: 13px; color: #e4e4e2; letter-spacing: 1px; }

.best-box {
    max-width: 640px; margin: 0 auto 26px; padding: 18px 20px;
    background: #17171c; border: 2px solid #3a3a46; border-radius: 8px;
    font-family: 'Open Sans', sans-serif; font-size: 14px; color: #cfcfd6; line-height: 1.6;
}
.best-box.ok { border-color: #2d7a50; background: #14231b; }
.best-box h2 { margin: 0 0 8px; font-family: 'JOYSTIX', monospace; font-size: 12px; letter-spacing: 1px; color: #e4e4e2; }
.best-box p { margin: 0; }
.bankdaten { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 12px 0; }
.bankdaten dt { color: #8a8a94; }
.bankdaten dd { margin: 0; color: #ececf0; }
.bankdaten .mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5px; }

.best-raster { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.best-teil {
    background: #17171c; border: 2px solid #24242c; border-radius: 8px; padding: 18px 20px;
}
.best-teil h2 { margin: 0 0 14px; font-family: 'JOYSTIX', monospace; font-size: 12px; letter-spacing: 1.5px; color: #e4e4e2; }
.best-teil address {
    font-style: normal; font-family: 'Open Sans', sans-serif; font-size: 14px; color: #cfcfd6; line-height: 1.7;
}
.best-teil .knopf { display: block; text-align: center; margin-top: 20px; text-decoration: none; }

/* ── Schmal ────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .kasse-raster { grid-template-columns: 1fr; gap: 16px; }
    .kasse-rechts { position: static; }
    .best-raster { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .kschritt { padding: 16px 14px 18px; }
    .kgitter { grid-template-columns: 1fr; }
    .anmelden-form { grid-template-columns: 1fr; }
    .kasse-knopf { max-width: none; flex-basis: 100%; }
    .kasse-abschluss { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Kontakt: Honigtopf gegen Spam-Bots, fuer Menschen unsichtbar */
.kontakt-topf { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sendungsstatus in der Bestellansicht (DHL-Sendungsverfolgung) */
.sendung p { margin: 0; }
.sendung .sd-stand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; }
.sendung .sd-punkt { width: 10px; height: 10px; border-radius: 50%; background: #e0b341; flex: none; }
.sendung .sd-punkt.sd-delivered { background: #39fa93; }
.sendung .sd-punkt.sd-failure { background: #ff5a5a; }
.sendung .sd-punkt.sd-pre-transit { background: #9d9dab; }
.sendung .sd-eta { color: #a9b3ad; font-size: 13px; }
.sendung .sd-text { margin-top: 4px; color: #d0d6d2; }
.sendung .sd-nr { margin-top: 8px; font-size: 13px; color: #a9b3ad; overflow-wrap: anywhere; }
.sendung .sd-schritte { margin-top: 10px; font-size: 13px; }
.sendung .sd-schritte summary { cursor: pointer; color: #cfd8d3; }
.sendung .sd-schritte ol { list-style: none; margin: 8px 0 0; padding: 0; border-left: 2px solid #2d7a50; }
.sendung .sd-schritte li { position: relative; padding: 0 0 8px 14px; display: grid; gap: 1px; }
.sendung .sd-schritte li::before { content: ""; position: absolute; left: -5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #2d7a50; }
.sendung .sd-schritte li:first-child::before { background: #39fa93; }
.sendung .sd-schritte time { color: #8d978f; font-size: 12px; }
.sendung .sd-schritte em { font-style: normal; color: #8d978f; }
.sendung .sd-nr a { color: #39fa93; font-weight: 600; white-space: nowrap; }
.sendung .sd-nr .mono { font-family: ui-monospace, Menlo, Consolas, monospace; color: #e4e4e2; }

/* Sprung zu einem Feld (Fehler, Browser-Pruefung): nicht unter dem festen Kopf */
#kassenform input, #kassenform select, #kassenform textarea, #kassenform .kfeld, #kassenform .kwahl { scroll-margin-top: 110px; scroll-margin-bottom: 40px; }

/* Lieferzeit in der Bestelluebersicht, ueber die ganze Breite */
.kasse-summen dt.lieferzeit-zeile { grid-column: 1 / -1; font-size: 12px; color: #a9a9b2; }
.kasse-summen dd.lieferzeit-zeile { display: none; }
