/* =========================================================
   AUTOLOTTO – CHECKOUT
   Datei: assets/css/checkout.css
========================================================= */


/* =========================================================
   1. SEITENGRUNDLAGE
========================================================= */

.page-checkout {
    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(31, 122, 255, 0.11),
            transparent 32rem
        ),
        radial-gradient(
            circle at 94% 24%,
            rgba(42, 103, 214, 0.08),
            transparent 30rem
        ),
        linear-gradient(
            180deg,
            #07111d 0%,
            #08131f 48%,
            #06101a 100%
        );
    color: #ffffff;
}

.page-checkout main {
    min-height: 75vh;
}

.page-checkout img {
    max-width: 100%;
}

.page-checkout input,
.page-checkout select,
.page-checkout textarea,
.page-checkout button {
    font: inherit;
}

.page-checkout input,
.page-checkout select,
.page-checkout textarea {
    color-scheme: dark;
}


/* =========================================================
   2. CHECKOUT-HERO
========================================================= */

.checkout-hero {
    position: relative;
    overflow: hidden;
    padding:
        clamp(2.5rem, 5vw, 5.2rem)
        0
        clamp(2.4rem, 4vw, 4rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.checkout-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.015),
            transparent 65%
        );
}

.checkout-hero-glow {
    position: absolute;
    top: -11rem;
    right: -8rem;
    width: 35rem;
    height: 35rem;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(
            circle,
            rgba(38, 128, 255, 0.16) 0%,
            rgba(38, 128, 255, 0.06) 38%,
            transparent 72%
        );
}

.checkout-hero .container {
    position: relative;
    z-index: 1;
}


/* =========================================================
   3. BREADCRUMB
========================================================= */

.checkout-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.4rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.88rem;
}

.checkout-breadcrumb a {
    color: rgba(255, 255, 255, 0.66);
    text-decoration: none;
    transition: color 0.2s ease;
}

.checkout-breadcrumb a:hover {
    color: #ffffff;
}

.checkout-breadcrumb span[aria-current="page"] {
    color: #74adff;
}


/* =========================================================
   4. CHECKOUT-ÜBERSCHRIFT
========================================================= */

.checkout-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.5rem;
}

.checkout-heading > div:first-child {
    max-width: 47rem;
}

.checkout-heading .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
    color: #58a4ff;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.checkout-heading .section-eyebrow::before {
    content: "";
    width: 1.7rem;
    height: 2px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            #4f9cff,
            rgba(79, 156, 255, 0.18)
        );
}

.checkout-heading h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.3rem, 5vw, 4.35rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.checkout-heading h1 span {
    color: #4f9cff;
}

.checkout-heading p {
    max-width: 42rem;
    margin: 1.2rem 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    line-height: 1.75;
}


/* =========================================================
   5. SCHRITTANZEIGE
========================================================= */

.checkout-step-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 25rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.15rem;
    background:
        linear-gradient(
            145deg,
            rgba(18, 39, 63, 0.82),
            rgba(7, 20, 34, 0.88)
        );
    box-shadow:
        0 1rem 2.8rem rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(12px);
}

.checkout-step-indicator > div {
    display: flex;
    min-width: 5.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.checkout-step-indicator > div > span {
    display: inline-flex;
    width: 2.15rem;
    height: 2.15rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.78rem;
    font-weight: 850;
}

.checkout-step-indicator > div > strong {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.7rem;
    font-weight: 750;
}

.checkout-step-indicator > i {
    flex: 1 1 auto;
    min-width: 2rem;
    height: 1px;
    margin: 0 0.3rem 1.3rem;
    background: rgba(255, 255, 255, 0.1);
}

.checkout-step-indicator > div.is-complete > span {
    color: #07131f;
    border-color: rgba(95, 223, 151, 0.5);
    background: #72dda3;
}

.checkout-step-indicator > div.is-complete > strong {
    color: #7ee6aa;
}

.checkout-step-indicator > div.is-active > span {
    color: #ffffff;
    border-color: rgba(87, 161, 255, 0.62);
    background:
        linear-gradient(
            145deg,
            #347fdc,
            #1d5fab
        );
    box-shadow:
        0 0 0 4px rgba(68, 145, 244, 0.12);
}

.checkout-step-indicator > div.is-active > strong {
    color: #8fc0ff;
}

.checkout-step-indicator > div.is-complete + i {
    background:
        linear-gradient(
            90deg,
            rgba(102, 222, 154, 0.8),
            rgba(79, 156, 255, 0.45)
        );
}


/* =========================================================
   6. HAUPTBEREICH
========================================================= */

.checkout-page-content {
    position: relative;
    padding:
        clamp(2.5rem, 5vw, 5rem)
        0
        clamp(4rem, 8vw, 7rem);
}

.checkout-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(20rem, 25rem);
    align-items: start;
    gap: clamp(1.5rem, 3vw, 2.6rem);
}

.checkout-main-column {
    display: grid;
    min-width: 0;
    gap: 1.3rem;
}


/* =========================================================
   7. CHECKOUT-KARTEN
========================================================= */

.checkout-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.3rem;
    background:
        linear-gradient(
            145deg,
            rgba(15, 32, 51, 0.97),
            rgba(8, 21, 35, 0.97)
        );
    box-shadow:
        0 1.2rem 3.3rem rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.checkout-card::before {
    content: "";
    position: absolute;
    top: -6rem;
    right: -6rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(
            circle,
            rgba(74, 151, 255, 0.08),
            transparent 70%
        );
}

.checkout-card > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   8. KARTENÜBERSCHRIFT
========================================================= */

.checkout-card-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.checkout-card-number {
    flex: 0 0 auto;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(79, 156, 255, 0.27);
    border-radius: 0.9rem;
    color: #80b7ff;
    background:
        linear-gradient(
            145deg,
            rgba(79, 156, 255, 0.15),
            rgba(79, 156, 255, 0.045)
        );
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.checkout-card-heading > div > span {
    display: block;
    margin-bottom: 0.25rem;
    color: #4f9cff;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.checkout-card-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    line-height: 1.2;
}


/* =========================================================
   9. FORMULAR-GRID
========================================================= */

.checkout-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.checkout-field {
    min-width: 0;
}

.checkout-field-wide {
    grid-column: 1 / -1;
}

.checkout-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    font-weight: 700;
}

.checkout-field label span {
    color: #ff8181;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    outline: none;
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            rgba(5, 16, 28, 0.95),
            rgba(8, 21, 35, 0.95)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.checkout-field input,
.checkout-field select {
    min-height: 3.2rem;
    padding: 0.78rem 0.9rem;
}

.checkout-field textarea {
    min-height: 8rem;
    padding: 0.9rem;
    resize: vertical;
    line-height: 1.6;
}

.checkout-field select {
    cursor: pointer;
}

.checkout-field input::placeholder,
.checkout-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.checkout-field input:hover,
.checkout-field select:hover,
.checkout-field textarea:hover {
    border-color: rgba(79, 156, 255, 0.25);
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
    border-color: rgba(79, 156, 255, 0.68);
    background: rgba(8, 23, 39, 0.98);
    box-shadow:
        0 0 0 3px rgba(79, 156, 255, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.checkout-field input:invalid:not(:placeholder-shown),
.checkout-field textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 105, 105, 0.42);
}

.checkout-field small {
    display: block;
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.72rem;
    line-height: 1.45;
}


/* =========================================================
   10. ZAHLUNGSARTEN
========================================================= */

.checkout-payment-methods {
    display: grid;
    gap: 0.85rem;
}

.checkout-payment-option {
    display: block;
    cursor: pointer;
}

.checkout-payment-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.checkout-payment-custom {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 5rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.checkout-payment-option:hover .checkout-payment-custom {
    border-color: rgba(79, 156, 255, 0.28);
    background: rgba(79, 156, 255, 0.055);
    transform: translateY(-1px);
}

.checkout-payment-option > input:checked
+ .checkout-payment-custom {
    border-color: rgba(79, 156, 255, 0.58);
    background:
        linear-gradient(
            145deg,
            rgba(48, 124, 220, 0.17),
            rgba(11, 33, 56, 0.62)
        );
    box-shadow:
        0 0 0 3px rgba(79, 156, 255, 0.08);
}

.checkout-payment-option > input:focus-visible
+ .checkout-payment-custom {
    box-shadow:
        0 0 0 3px rgba(79, 156, 255, 0.18);
}

.checkout-payment-icon {
    flex: 0 0 auto;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(79, 156, 255, 0.22);
    border-radius: 0.85rem;
    color: #78b2ff;
    background: rgba(79, 156, 255, 0.08);
    font-size: 1rem;
    font-weight: 900;
}

.checkout-payment-content {
    min-width: 0;
    flex: 1 1 auto;
}

.checkout-payment-content strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
}

.checkout-payment-content small {
    display: block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.74rem;
    line-height: 1.5;
}

.checkout-radio-indicator {
    flex: 0 0 auto;
    position: relative;
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.checkout-radio-indicator::after {
    content: "";
    position: absolute;
    inset: 0.26rem;
    border-radius: 50%;
    background: #60a4ff;
    opacity: 0;
    transform: scale(0.4);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.checkout-payment-option > input:checked
+ .checkout-payment-custom
.checkout-radio-indicator {
    border-color: #60a4ff;
}

.checkout-payment-option > input:checked
+ .checkout-payment-custom
.checkout-radio-indicator::after {
    opacity: 1;
    transform: scale(1);
}


/* =========================================================
   11. BESTELLÜBERSICHT
========================================================= */

.checkout-summary-panel {
    position: sticky;
    top: 6.5rem;
    overflow: hidden;
    padding: clamp(1.2rem, 2.5vw, 1.7rem);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1.3rem;
    background:
        linear-gradient(
            150deg,
            rgba(15, 33, 54, 0.98),
            rgba(7, 19, 32, 0.99)
        );
    box-shadow:
        0 1.5rem 4rem rgba(0, 0, 0, 0.29),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.checkout-summary-panel::before {
    content: "";
    position: absolute;
    top: -7rem;
    right: -7rem;
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(
            circle,
            rgba(65, 146, 255, 0.13),
            transparent 70%
        );
}

.checkout-summary-panel > * {
    position: relative;
    z-index: 1;
}

.checkout-summary-heading {
    margin-bottom: 1.2rem;
}

.checkout-summary-heading > span {
    display: block;
    margin-bottom: 0.3rem;
    color: #4f9cff;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.checkout-summary-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.55rem;
}


/* =========================================================
   12. BESTELLPOSITIONEN
========================================================= */

.checkout-summary-items {
    display: grid;
    gap: 0.75rem;
    max-height: 26rem;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.checkout-summary-items::-webkit-scrollbar {
    width: 0.35rem;
}

.checkout-summary-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
}

.checkout-summary-items::-webkit-scrollbar-thumb {
    background: rgba(79, 156, 255, 0.35);
    border-radius: 999px;
}

.checkout-summary-item {
    display: grid;
    grid-template-columns:
        4.2rem
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.025);
}

.checkout-summary-image {
    display: block;
    width: 4.2rem;
    height: 3.7rem;
    overflow: hidden;
    border-radius: 0.7rem;
    background: #0a1725;
}

.checkout-summary-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.checkout-summary-item-content {
    min-width: 0;
}

.checkout-summary-item-content > span {
    display: block;
    margin-bottom: 0.15rem;
    color: #5fa5ff;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.checkout-summary-item-content h3 {
    margin: 0;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-summary-item-content h3 a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.checkout-summary-item-content h3 a:hover {
    color: #79b1ff;
}

.checkout-summary-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.68rem;
}

.checkout-summary-item > strong {
    color: #ffffff;
    font-size: 0.85rem;
    white-space: nowrap;
}


/* =========================================================
   13. WARENKORB BEARBEITEN
========================================================= */

.checkout-edit-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.68rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
    font-size: 0.78rem;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.checkout-edit-cart:hover {
    color: #ffffff;
    border-color: rgba(79, 156, 255, 0.27);
    background: rgba(79, 156, 255, 0.07);
    transform: translateX(-2px);
}


/* =========================================================
   14. PREISZEILEN
========================================================= */

.checkout-summary-lines {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.1rem;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.checkout-summary-lines > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.checkout-summary-lines span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.87rem;
}

.checkout-summary-lines strong {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.89rem;
}

.checkout-summary-lines .is-free {
    color: #7ee6aa;
}


/* =========================================================
   15. GESAMTBETRAG
========================================================= */

.checkout-summary-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0;
}

.checkout-summary-total > div {
    min-width: 0;
}

.checkout-summary-total span {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 850;
}

.checkout-summary-total small {
    display: block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.66rem;
    line-height: 1.4;
}

.checkout-summary-total > strong {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}


/* =========================================================
   16. CHECKBOXEN UND ZUSTIMMUNGEN
========================================================= */

.checkout-consents {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 0 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.checkout-checkbox {
    display: grid;
    grid-template-columns: 1.3rem minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
    cursor: pointer;
}

.checkout-checkbox > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.checkout-checkbox > span {
    position: relative;
    display: inline-flex;
    width: 1.3rem;
    height: 1.3rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.025);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.checkout-checkbox > span::after {
    content: "✓";
    color: #07131f;
    font-size: 0.78rem;
    font-weight: 900;
    opacity: 0;
    transform: scale(0.4);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.checkout-checkbox > input:checked + span {
    border-color: #70dca0;
    background: #70dca0;
}

.checkout-checkbox > input:checked + span::after {
    opacity: 1;
    transform: scale(1);
}

.checkout-checkbox > input:focus-visible + span {
    box-shadow:
        0 0 0 3px rgba(79, 156, 255, 0.16);
}

.checkout-checkbox p {
    margin: 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.73rem;
    line-height: 1.55;
}

.checkout-checkbox p a {
    color: #72adff;
    text-decoration: underline;
    text-decoration-color: rgba(114, 173, 255, 0.38);
    text-underline-offset: 2px;
}

.checkout-checkbox p a:hover {
    color: #ffffff;
}

.checkout-checkbox p strong {
    color: #ff8585;
}


/* =========================================================
   17. BESTELLBUTTON
========================================================= */

.checkout-submit-button {
    display: inline-flex;
    width: 100%;
    min-height: 3.6rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 0;
    border-radius: 0.95rem;
    cursor: pointer;
    font-weight: 850;
    text-align: center;
    box-shadow:
        0 1rem 2rem rgba(30, 105, 210, 0.23);
}

.checkout-submit-button > span:last-child {
    transition: transform 0.2s ease;
}

.checkout-submit-button:hover > span:last-child {
    transform: translateX(3px);
}

.checkout-submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.checkout-required-note {
    margin: 0.7rem 0 0;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.67rem;
    line-height: 1.45;
    text-align: center;
}


/* =========================================================
   18. SICHERHEITSLISTE
========================================================= */

.checkout-security-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.3rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.checkout-security-list > div {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.checkout-security-list span {
    flex: 0 0 auto;
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(92, 226, 147, 0.25);
    border-radius: 50%;
    color: #7ee6aa;
    background: rgba(92, 226, 147, 0.06);
    font-size: 0.68rem;
    font-weight: 900;
}

.checkout-security-list p {
    margin: 0;
    color: rgba(255, 255, 255, 0.53);
    font-size: 0.76rem;
    line-height: 1.4;
}

.checkout-reservation-notice {
    margin: 1.1rem 0 0;
    padding: 0.8rem;
    border: 1px solid rgba(79, 156, 255, 0.13);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(79, 156, 255, 0.035);
    font-size: 0.7rem;
    line-height: 1.55;
}


/* =========================================================
   19. FEHLERMELDUNGEN
========================================================= */

.checkout-form-message,
.checkout-error-box {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.3rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 90, 90, 0.25);
    border-radius: 0.95rem;
    background:
        linear-gradient(
            145deg,
            rgba(94, 28, 34, 0.32),
            rgba(38, 16, 20, 0.48)
        );
}

.checkout-form-message > span,
.checkout-error-box > span {
    flex: 0 0 auto;
    display: inline-flex;
    width: 1.8rem;
    height: 1.8rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #350f13;
    background: #ff7777;
    font-size: 0.78rem;
    font-weight: 900;
}

.checkout-form-message p,
.checkout-error-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.86rem;
    line-height: 1.55;
}

.checkout-error-box strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #ffffff;
    font-size: 0.95rem;
}


/* =========================================================
   20. LEERER UND NICHT VERFÜGBARER CHECKOUT
========================================================= */

.checkout-empty-state,
.checkout-unavailable-state {
    max-width: 46rem;
    margin: 0 auto;
    padding:
        clamp(2.6rem, 6vw, 5rem)
        clamp(1.3rem, 5vw, 3.5rem);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    background:
        radial-gradient(
            circle at top,
            rgba(63, 145, 255, 0.1),
            transparent 23rem
        ),
        linear-gradient(
            145deg,
            rgba(15, 31, 50, 0.96),
            rgba(8, 20, 33, 0.97)
        );
    box-shadow:
        0 1.5rem 4rem rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    text-align: center;
}

.checkout-empty-icon,
.checkout-unavailable-icon {
    display: inline-flex;
    width: 5rem;
    height: 5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.35rem;
    border: 1px solid rgba(79, 156, 255, 0.23);
    border-radius: 1.35rem;
    color: #69a9ff;
    background:
        linear-gradient(
            145deg,
            rgba(79, 156, 255, 0.16),
            rgba(79, 156, 255, 0.04)
        );
    font-size: 2rem;
    font-weight: 900;
}

.checkout-unavailable-icon {
    color: #ffb676;
    border-color: rgba(255, 169, 81, 0.26);
    background:
        linear-gradient(
            145deg,
            rgba(255, 155, 62, 0.14),
            rgba(255, 155, 62, 0.04)
        );
}

.checkout-empty-state .section-eyebrow,
.checkout-unavailable-state .section-eyebrow {
    display: block;
    margin-bottom: 0.65rem;
    color: #4f9cff;
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.checkout-empty-state h2,
.checkout-unavailable-state h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.15;
}

.checkout-empty-state p,
.checkout-unavailable-state p {
    max-width: 35rem;
    margin: 1rem auto 1.7rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}


/* =========================================================
   21. LADEZUSTAND
========================================================= */

.checkout-layout.is-loading {
    pointer-events: none;
}

.checkout-layout.is-loading .checkout-submit-button {
    opacity: 0.62;
}

.checkout-layout.is-loading .checkout-submit-button::after {
    content: "";
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: checkoutSpinner 0.8s linear infinite;
}

@keyframes checkoutSpinner {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   22. ANIMATIONEN
========================================================= */

@keyframes checkoutCardAppear {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-card,
.checkout-summary-panel {
    animation:
        checkoutCardAppear 0.45s ease both;
}

.checkout-card:nth-child(2) {
    animation-delay: 0.05s;
}

.checkout-card:nth-child(3) {
    animation-delay: 0.1s;
}

.checkout-card:nth-child(4) {
    animation-delay: 0.15s;
}

.checkout-summary-panel {
    animation-delay: 0.08s;
}


/* =========================================================
   23. TABLET
========================================================= */

@media (max-width: 1120px) {
    .checkout-layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(19rem, 22rem);
    }

    .checkout-heading {
        align-items: flex-start;
    }

    .checkout-step-indicator {
        min-width: 22rem;
    }

    .checkout-step-indicator > div {
        min-width: 4.6rem;
    }

    .checkout-summary-item {
        grid-template-columns:
            3.8rem
            minmax(0, 1fr);
    }

    .checkout-summary-item > strong {
        grid-column: 2;
        justify-self: start;
    }

    .checkout-summary-image {
        width: 3.8rem;
        height: 3.5rem;
        grid-row: 1 / span 2;
    }
}


@media (max-width: 920px) {
    .checkout-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-step-indicator {
        width: 100%;
        min-width: 0;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary-panel {
        position: relative;
        top: auto;
    }

    .checkout-summary-items {
        max-height: none;
    }
}


/* =========================================================
   24. MOBIL
========================================================= */

@media (max-width: 700px) {
    .checkout-hero {
        padding-top: 2.2rem;
    }

    .checkout-heading h1 {
        font-size: clamp(2.1rem, 11vw, 3.3rem);
    }

    .checkout-step-indicator {
        padding: 0.85rem 0.75rem;
    }

    .checkout-step-indicator > div {
        min-width: 0;
        flex: 1 1 0;
    }

    .checkout-step-indicator > div > strong {
        font-size: 0.62rem;
    }

    .checkout-step-indicator > i {
        min-width: 1rem;
    }

    .checkout-card {
        padding: 1.15rem;
    }

    .checkout-card-heading {
        align-items: flex-start;
    }

    .checkout-card-number {
        width: 2.6rem;
        height: 2.6rem;
    }

    .checkout-form-grid {
        grid-template-columns: 1fr;
    }

    .checkout-field-wide {
        grid-column: auto;
    }

    .checkout-payment-custom {
        align-items: flex-start;
    }

    .checkout-payment-icon {
        width: 2.7rem;
        height: 2.7rem;
    }

    .checkout-radio-indicator {
        margin-top: 0.65rem;
    }
}


@media (max-width: 520px) {
    .checkout-page-content {
        padding-top: 1.8rem;
    }

    .checkout-breadcrumb {
        font-size: 0.78rem;
    }

    .checkout-step-indicator {
        gap: 0.2rem;
    }

    .checkout-step-indicator > div > span {
        width: 1.9rem;
        height: 1.9rem;
        font-size: 0.7rem;
    }

    .checkout-step-indicator > div > strong {
        max-width: 4.3rem;
        line-height: 1.25;
    }

    .checkout-step-indicator > i {
        margin-right: 0;
        margin-left: 0;
    }

    .checkout-card-heading {
        gap: 0.75rem;
    }

    .checkout-card-heading h2 {
        font-size: 1.2rem;
    }

    .checkout-payment-custom {
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .checkout-payment-content small {
        font-size: 0.7rem;
    }

    .checkout-summary-panel {
        padding: 1.1rem;
    }

    .checkout-summary-item {
        grid-template-columns:
            3.5rem
            minmax(0, 1fr);
    }

    .checkout-summary-image {
        width: 3.5rem;
        height: 3.3rem;
    }

    .checkout-summary-total {
        align-items: center;
    }

    .checkout-summary-total > strong {
        font-size: 1.55rem;
    }

    .checkout-submit-button {
        min-height: 3.4rem;
        padding-right: 0.9rem;
        padding-left: 0.9rem;
        font-size: 0.82rem;
    }
}


/* =========================================================
   25. SEHR KLEINE DISPLAYS
========================================================= */

@media (max-width: 390px) {
    .checkout-step-indicator > div > strong {
        display: none;
    }

    .checkout-step-indicator > i {
        margin-bottom: 0;
    }

    .checkout-card {
        padding: 0.95rem;
    }

    .checkout-card-number {
        width: 2.4rem;
        height: 2.4rem;
    }

    .checkout-payment-icon {
        display: none;
    }

    .checkout-summary-total {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-summary-total > strong {
        margin-top: 0.35rem;
    }

    .checkout-checkbox {
        grid-template-columns: 1.2rem minmax(0, 1fr);
        gap: 0.55rem;
    }

    .checkout-checkbox > span {
        width: 1.2rem;
        height: 1.2rem;
    }
}


/* =========================================================
   26. REDUZIERTE BEWEGUNG
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .checkout-card,
    .checkout-summary-panel,
    .checkout-payment-custom,
    .checkout-submit-button,
    .checkout-submit-button > span,
    .checkout-edit-cart,
    .checkout-field input,
    .checkout-field select,
    .checkout-field textarea {
        animation: none;
        transition: none;
    }
}