/* kasse.css – Kasse */

/* Banner oben (Shop) */
.shop-banner {
    height: 140px;
}

/* Top-Bar */
.shop-top-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-areas: "nav account cart";
    gap: 1.5rem;
}

.shop-top-section {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.shop-top-section--nav    { grid-area: nav; }
.shop-top-section--account{ grid-area: account; }
.shop-top-section--cart   { grid-area: cart; }

.shop-nav-header,
.shop-top-section h2 {
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
}

.shop-heading-icon {
    font-size: 1.1rem;
}

/* Shop Navigation */
.shop-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 2rem;
    font-size: 0.9rem;
}
.shop-nav-col a {
    display: block;
    text-decoration: none;
    color: inherit;
    line-height: 1.6;
}
.shop-nav-col a:hover {
    text-decoration: underline;
}

/* Konto */
.shop-account-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
}
.shop-account-link {
    text-decoration: none;
    color: inherit;
    line-height: 1.6;
    font-size: 0.9em;
}
.shop-account-link:hover {
    text-decoration: underline;
}

/* Warenkorb-Zusammenfassung */
.shop-cart-summary {
    font-size: 0.9rem;
}
.shop-cart-summary .cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

/* Tablet / Mobile Layout Top-Bar */
@media (max-width: 992px) {
    .shop-top-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "nav nav"
            "account cart";
    }
}
@media (max-width: 768px) {
    .shop-top-bar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "nav"
            "account"
            "cart";
    }
}

/* Mobile: Zurück zum Shop */
.cart-mobile-shop-link {
    display: none;
    padding: 1rem 1rem 0.3rem;
}
.cart-mobile-shop-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.cart-mobile-shop-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border-radius: 18px;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}
.cart-mobile-shop-button i {
    font-size: 1rem;
}
@media (max-width: 768px) {
    .cart-mobile-shop-link {
        display: block;
    }
}

/* -----------------------------------------
   Checkout Hauptlayout 65 / 35
------------------------------------------ */

.checkout-main {
    padding: 2rem 0 3rem;
}

.checkout-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 2rem;
}

.checkout-left,
.checkout-right {
    min-width: 0;
}

@media (max-width: 992px) {
    .checkout-inner {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------
   Tabs & Panels
------------------------------------------ */

.checkout-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkout-tab-button {
    flex: 1;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #ccc;
    background: #f6f3ef;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.checkout-tab-button.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}
.checkout-tab-button.is-disabled {
    opacity: 0.4;
    cursor: default;
}

/* Panels */
.checkout-tab-panels {
    background: transparent;
}

.checkout-panel {
    display: none;
    background: #ffffff;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.checkout-panel.is-active {
    display: block;
}

.checkout-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.checkout-panel-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

/* Equals Button */
.btn-equals-address {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    border: none;
    background: #111;
    color: #fff;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}
.btn-equals-address i {
    font-size: 0.9rem;
}

/* Formulare */
.checkout-form .form-row {
    margin-bottom: 0.75rem;
}
.checkout-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}
.checkout-form input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
    box-sizing: border-box;
}

/* PLZ & Ort in einer Zeile – 30/70 */
.checkout-form .form-row-inline {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.75rem;
}
.checkout-form .form-row-inline > div {
    min-width: 0;
}
.checkout-form .form-row-inline > div:first-child {
    flex: 0 0 30%;
}
.checkout-form .form-row-inline > div:last-child {
    flex: 0 0 70%;
}
@media (max-width: 480px) {
    .checkout-form .form-row-inline {
        flex-direction: column !important;
    }
    .checkout-form .form-row-inline > div:first-child,
    .checkout-form .form-row-inline > div:last-child {
        flex: 1 1 auto;
    }
}

/* Gutscheine-Panel */
.checkout-coupon-area p {
    margin-top: 0;
    font-size: 0.9rem;
}
.checkout-coupon-input-row {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
}
.checkout-coupon-input {
    flex: 1;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
}
.checkout-coupon-apply {
    border-radius: 999px;
    border: none;
    padding: 0.55rem 1.1rem;
    background: #111;
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}
.checkout-coupon-message {
    font-size: 0.85rem;
    min-height: 1.1em;
}
.checkout-coupon-message.is-error {
    color: #b00020;
}
.checkout-coupon-message.is-success {
    color: #0d7a2b;
}

.checkout-coupon-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.checkout-coupon-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem 0.35rem 0.6rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-size: 0.85rem;
}
.checkout-coupon-pill button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.checkout-coupon-pill i {
    font-size: 0.85rem;
}

/* -----------------------------------------
   Datenschutz & AGB Switches
------------------------------------------ */

.checkout-legal {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.checkout-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkout-switch input {
    display: none;
}

.checkout-switch-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #d0d0d0;
    flex-shrink: 0;
    cursor: pointer;
}

.checkout-switch-toggle::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.checkout-switch input:checked + .checkout-switch-toggle {
    background: #111;
}
.checkout-switch input:checked + .checkout-switch-toggle::before {
    transform: translateX(20px);
}

.checkout-switch-label a {
    text-decoration: underline;
}

/* -----------------------------------------
   Rechte Spalte – Zusammenfassung
------------------------------------------ */

.checkout-summary-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}
.checkout-summary-box h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.summary-placeholder {
    margin: 0;
    font-size: 0.85rem;
    color: #777;
}
.summary-lines {
    display: none;
    font-size: 0.9rem;
}
.summary-lines span {
    display: block;
}

/* PLZ & Ort in einer Zeile (Summary) */
.summary-zip-city {
    display: block;
}
.summary-zip-city span {
    display: inline;
    margin-right: 0.4rem;
}

/* Versand-Zeile: Preis rechtsbündig */
.summary-shipping-price {
    display: block;
    text-align: right;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}
.checkout-total-row--strong {
    margin-top: 0.6rem;
    font-weight: 600;
}

.checkout-shipping-button {
    margin-top: 1rem;
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 0.65rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    background: #111;
    color: #fff;
}
.checkout-shipping-button[disabled] {
    background: #d0d0d0;
    cursor: not-allowed;
}

/* Bestellübersicht */
.checkout-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}
.checkout-items-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid #eee;
}
.checkout-items-list li:last-child {
    border-bottom: none;
}
.checkout-items-list .item-title {
    font-weight: 500;
}
.checkout-items-list .item-qty {
    text-align: right;
}
.checkout-items-list .item-price {
    text-align: right;
}

/* Zahlungsblock rechts */
.checkout-payment-box.checkout-payment-box--disabled {
    opacity: 0.5;
    pointer-events: none;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}
.payment-option input {
    margin-right: 0.2rem;
}

.checkout-place-order-button {
    margin-top: 1rem;
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    background: #111;
    color: #fff;
}
.checkout-place-order-button[disabled] {
    background: #d0d0d0;
    cursor: not-allowed;
}

/* -----------------------------------------
   Versand-Modal
------------------------------------------ */

.checkout-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.checkout-modal-overlay.is-visible {
    display: flex;
}
.checkout-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 14px 40px rgba(0,0,0,0.2);
}
.checkout-modal h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}
.checkout-modal p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

/* Versandoptionen */
.shipping-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.shipping-option input {
    margin-right: 0.5rem;
}
.shipping-label {
    flex: 1;
}
.shipping-price {
    white-space: nowrap;
}

/* Modal Buttons */
.checkout-modal-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}
.checkout-modal-btn {
    border-radius: 999px;
    border: none;
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
    cursor: pointer;
    background: #111;
    color: #fff;
}
.checkout-modal-btn.checkout-modal-cancel {
    background: #e0e0e0;
    color: #222;
}

/* -----------------------------------------
   Footer wie bei cart.css
------------------------------------------ */

.cart-footer {
    background: #ffffff;
    border-top: 1px solid #ddd;
    min-height: 80px;
    padding: 1rem 0 1.5rem;
}
.cart-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.cart-footer-inner > .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Box mit gespeicherten Adressen rechts auf der Kasse */
.checkout-address-selector {
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 20px;
    padding: 18px 20px 20px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.06);
}

.checkout-address-selector h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.checkout-address-selector-intro {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #555;
}

/* Liste der Adressen */
.checkout-address-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Karte pro Adresse (angelehnt an adressen.php) */
.checkout-address-card {
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 10px 12px;
    font-size: 0.9rem;
    background: #faf7f2;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-address-card:hover {
    background: #f3e8dc;
    border-color: #e0c9a4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.checkout-address-card-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.checkout-address-card-label {
    font-weight: 600;
}

.checkout-address-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

/* Buttons für "als Rechnungsadresse" / "als Lieferadresse" */
.checkout-address-apply {
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1e2cf;
    color: #4b3b24;
}

.checkout-address-apply:hover {
    background: #e3d1b8;
}

.checkout-address-apply i {
    font-size: 0.8rem;
}

/* kleine Adress-Zeilen */
.checkout-address-card-lines span {
    display: block;
    line-height: 1.3;
}

/* Mobile Anpassung */
@media (max-width: 900px) {
    .checkout-address-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-address-apply {
        justify-content: center;
        width: 100%;
    }
}

    /* Adressliste im eingeloggten Bereich */
    .checkout-address-list--scroll {
        max-height: 200px;
        overflow-y: auto;
    }

    /* Zusammenfassung: Titel + Icons */
    .checkout-summary-box .summary-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .summary-title-actions {
        display: none; /* wird per JS eingeblendet */
        align-items: center;
        gap: 8px;
        font-size: 0.9em;
        color: #008000; /* Check-Icon-Farbe */
    }

    .checkout-summary-box.has-address .summary-title-actions {
        display: inline-flex;
    }

    .summary-edit-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        color: inherit;
    }

    /* Box für Rechnungs-/Lieferadresse animierbar machen */
    .checkout-summary-box .summary-address {
        overflow: hidden;
    }

/* Tablet: Rechnungs- & Lieferadresse nebeneinander */
@media (min-width: 701px) and (max-width: 1024px) {
    .checkout-right-addresses {
        display: flex;
        gap: 16px;
    }

    .checkout-right-addresses .checkout-summary-box {
        flex: 1 1 0;
    }
}

/* Handy & Desktop: Wrapper verhält sich wie ein normaler Block (untereinander) */
@media (max-width: 700px), (min-width: 1025px) {
    .checkout-right-addresses {
        display: block;
    }
}

