/* Klemmshop OnePage Checkout 1.1.3 – ausschließlich auf #checkout begrenzt. */
#result-wrapper #checkout {
    width: 100%;
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

#result-wrapper #checkout .ks-checkout-titlebar {
    margin: 0 0 1.4rem;
    padding: 1rem 1.15rem;
    border: 1px solid #e2e6e9;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}
#result-wrapper #checkout .ks-checkout-titlebar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
#result-wrapper #checkout .ks-checkout-titlebar__title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}
#result-wrapper #checkout .ks-checkout-titlebar__secure {
    color: #5f676d;
    font-size: .86rem;
    white-space: nowrap;
}
#result-wrapper #checkout .ks-checkout-titlebar__hint {
    margin-top: .35rem;
    color: #697178;
    font-size: .84rem;
}

#result-wrapper #checkout h1 {
    margin-bottom: .85rem;
    font-size: 1.55rem;
    line-height: 1.22;
}
#result-wrapper #checkout h2,
#result-wrapper #checkout .h2 {
    font-size: 1.18rem;
    font-weight: 700;
}
#result-wrapper #checkout h3,
#result-wrapper #checkout .h3,
#result-wrapper #checkout legend {
    font-size: .98rem;
    font-weight: 700;
}

#result-wrapper #checkout .form-control,
#result-wrapper #checkout .custom-select,
#result-wrapper #checkout select {
    min-height: 42px;
    border-color: #cbd2d8;
    border-radius: 5px;
}
#result-wrapper #checkout .form-control:focus,
#result-wrapper #checkout .custom-select:focus,
#result-wrapper #checkout select:focus {
    border-color: #c89b00;
    box-shadow: 0 0 0 3px rgba(248,196,0,.14);
}

#result-wrapper #checkout #order-proceed-as-guest,
#result-wrapper #checkout #register-customer,
#result-wrapper #checkout form.checkout-shipping-form,
#result-wrapper #checkout #order-confirm {
    padding: 1.25rem 1.35rem;
    border: 1px solid #e1e5e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(0,0,0,.035);
}

#result-wrapper #checkout .inc-shipping-address .control-toggle {
    margin-top: .45rem;
    padding: .8rem .9rem;
    border: 1px solid #e2e6e9;
    border-radius: 7px;
    background: #f8f9fa;
}

/* Geburtsdatum bleibt vollständig sichtbar/nutzbar. Ratepay wird nicht verändert. */

#result-wrapper #checkout .checkout-button-row {
    margin-top: 1.2rem;
}
#result-wrapper #checkout .checkout-button-row .btn-primary,
#result-wrapper #checkout #complete-order-button {
    min-height: 46px;
    padding-right: 1.35rem;
    padding-left: 1.35rem;
    font-weight: 700;
}

#result-wrapper #checkout .checkout-shipping-form-options .custom-control,
#result-wrapper #checkout #fieldset-payment .custom-control,
#result-wrapper #checkout .checkout-payment-method {
    position: relative;
    margin: 0 0 .55rem;
    padding: .9rem 1rem .9rem 2.75rem;
    border: 1px solid #dce2e6;
    border-radius: 8px;
    background: #fff;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
#result-wrapper #checkout .checkout-shipping-form-options .custom-control:hover,
#result-wrapper #checkout #fieldset-payment .custom-control:hover,
#result-wrapper #checkout .checkout-payment-method:hover,
#result-wrapper #checkout .ks-opc-selected {
    border-color: #dfac00;
    background: #fffdf6;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
#result-wrapper #checkout .checkout-shipping-form-change {
    margin-bottom: .85rem;
    padding: .75rem .9rem;
    border-radius: 7px;
    background: #f7f8f9;
}

#result-wrapper #checkout .checkout-confirmation .card {
    margin-bottom: .85rem;
    border-color: #e1e5e8;
    border-radius: 8px;
    overflow: hidden;
}
#result-wrapper #checkout .checkout-confirmation .card-header {
    padding: .75rem .9rem;
    border-bottom-color: #e8ebed;
    background: #f7f8f9;
}
#result-wrapper #checkout .checkout-confirmation .card-body {
    padding: .9rem;
}

#result-wrapper #checkout.ks-opc-loading {
    position: relative;
    min-height: 12rem;
    opacity: .62;
    pointer-events: none;
}
#result-wrapper #checkout.ks-opc-loading::after {
    content: "";
    position: absolute;
    z-index: 100;
    top: 5rem;
    left: 50%;
    width: 2.2rem;
    height: 2.2rem;
    margin-left: -1.1rem;
    border: .22rem solid rgba(0,0,0,.15);
    border-top-color: rgba(0,0,0,.62);
    border-radius: 50%;
    animation: ks-opc-spin .7s linear infinite;
}
@keyframes ks-opc-spin { to { transform: rotate(360deg); } }

@media (min-width: 992px) {
    #result-wrapper #checkout > .row > .col-lg-9,
    #result-wrapper #checkout > .row > [class*="col-lg-9"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    #result-wrapper #checkout {
        padding-right: .35rem;
        padding-left: .35rem;
    }
    #result-wrapper #checkout .ks-checkout-titlebar {
        padding: .9rem;
    }
    #result-wrapper #checkout .ks-checkout-titlebar__top {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }
    #result-wrapper #checkout #order-proceed-as-guest,
    #result-wrapper #checkout #register-customer,
    #result-wrapper #checkout form.checkout-shipping-form,
    #result-wrapper #checkout #order-confirm {
        padding: .9rem;
        border-radius: 8px;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #result-wrapper #checkout .checkout-shipping-form-options .custom-control,
    #result-wrapper #checkout #fieldset-payment .custom-control,
    #result-wrapper #checkout .checkout-payment-method {
        transition: none;
    }
    #result-wrapper #checkout.ks-opc-loading::after {
        animation-duration: 1.5s;
    }
}

/* 1.1.3: Zahlungsarten bewusst kompakt halten.
   Nur #fieldset-payment wird verändert; Versandarten bleiben unverändert. */
#result-wrapper #checkout #fieldset-payment .checkout-payment-method {
    margin: 0;
    padding: .38rem .45rem;
    border: 0;
    border-bottom: 1px solid #e8ecef;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
#result-wrapper #checkout #fieldset-payment .checkout-payment-method:first-child {
    border-top: 1px solid #e8ecef;
}
#result-wrapper #checkout #fieldset-payment .checkout-payment-method:hover {
    border-color: #e8ecef;
    background: #fafbfc;
    box-shadow: none;
}
#result-wrapper #checkout #fieldset-payment .checkout-payment-method .custom-control {
    min-height: 1.7rem;
    margin: 0;
    padding: .22rem .3rem .22rem 1.65rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
#result-wrapper #checkout #fieldset-payment .checkout-payment-method .custom-control:hover,
#result-wrapper #checkout #fieldset-payment .checkout-payment-method .custom-control.ks-opc-selected {
    border: 0;
    background: transparent;
    box-shadow: none;
}
#result-wrapper #checkout #fieldset-payment > .custom-control {
    min-height: 2.15rem;
    margin: 0;
    padding: .45rem .45rem .45rem 1.95rem;
    border: 0;
    border-bottom: 1px solid #e8ecef;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
#result-wrapper #checkout #fieldset-payment > .custom-control:first-of-type {
    border-top: 1px solid #e8ecef;
}
#result-wrapper #checkout #fieldset-payment > .custom-control:hover,
#result-wrapper #checkout #fieldset-payment > .custom-control.ks-opc-selected {
    border-color: #e8ecef;
    background: #fafbfc;
    box-shadow: none;
}
#result-wrapper #checkout #fieldset-payment img {
    max-height: 28px;
    width: auto;
}

