/* =============================================
   TM24 ANKAUF – CHECKOUT (Modul)
   Scoped: nur .checkout-* Klassen
   ============================================= */

/* ===== CHECKOUT TABS (Step Navigation) ===== */
.checkout-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #eef0fb;
}

.checkout-tab {
    flex: 1;
    padding: 16px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    background: #f8f9fc;
    cursor: default;
    transition: all 0.3s;
    border-right: 1px solid #eef0fb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-tab:last-child {
    border-right: none;
}

.checkout-tab.active {
    background: #fff;
    color: #1a1a2e;
    font-weight: 700;
    box-shadow: inset 0 -3px 0 #2e2bcb;
}

.checkout-tab.done {
    background: #f0faf0;
    color: #16a34a;
}

.checkout-tab-nr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.3s;
}

.checkout-tab.active .checkout-tab-nr {
    background: linear-gradient(135deg, #2e2bcb, #6366f1);
    color: #fff;
}

.checkout-tab.done .checkout-tab-nr {
    background: #16a34a;
    color: #fff;
}

/* ===== CHECKOUT PANES ===== */
.checkout-content {
    max-width: 720px;
    margin: 0 auto;
}

.checkout-pane {
    display: none;
}

.checkout-pane.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.checkout-pane-inner {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #eef0fb;
}

.checkout-pane-titel {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f5;
}

/* ===== TAB 1: ZUSAMMENFASSUNG ===== */
.checkout-item-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 14px;
    border: 1px solid #eef0fb;
    margin-bottom: 20px;
}

.checkout-item-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.checkout-item-details {
    flex: 1;
}

.checkout-item-name {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.checkout-item-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.checkout-item-preis {
    font-size: 22px;
    font-weight: 800;
    color: #16a34a;
}

/* ===== TAB 2: KUNDENDATEN ===== */
.checkout-intro-hint {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Form-Styling innerhalb Checkout */
#schritt-4 .form-label {
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 4px;
}

#schritt-4 .form-control {
    border-radius: 10px;
    border: 1.5px solid #e0e0e8;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#schritt-4 .form-control:focus {
    border-color: #2e2bcb;
    box-shadow: 0 0 0 3px rgba(46,43,203,0.08);
    outline: none;
}

#schritt-4 select.form-control {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
    cursor: pointer;
    background: #fff;
}

/* ===== AUSZAHLUNG ===== */
.auszahlung-titel {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 28px;
    margin-bottom: 6px;
}

.auszahlung-disclaimer {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.checkout-payment-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #555;
    background: #f8f9ff;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #eef0fb;
    margin-bottom: 16px;
}

.checkout-payment-hint i {
    color: #2e2bcb;
    font-size: 14px;
    flex-shrink: 0;
}

.auszahlung-optionen {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.auszahlung-label {
    flex: 1;
    cursor: pointer;
}

.auszahlung-label input[type="radio"] {
    display: none;
}

.auszahlung-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: 2px solid #e0e0e8;
    border-radius: 12px;
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.auszahlung-box:hover {
    border-color: #bbb;
}

.auszahlung-label input[type="radio"]:checked + .auszahlung-box {
    border-color: #2e2bcb;
    background: #f0f0ff;
    color: #2e2bcb;
    box-shadow: 0 2px 8px rgba(46,43,203,0.1);
}

.auszahlung-box i {
    font-size: 18px;
}

/* ===== TAB 3: PFLICHT / AGB ===== */
.pflicht-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #f8f9fc;
    border: 1.5px solid #e8e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

.check-label:hover {
    border-color: #2e2bcb;
    background: #f0f0ff;
}

.check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2e2bcb;
    flex-shrink: 0;
    margin-top: 1px;
}

.check-label a {
    color: #2e2bcb;
    text-decoration: underline;
    font-weight: 600;
}

.checkout-final-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #555;
    background: #f8f9ff;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #eef0fb;
    margin-bottom: 16px;
    line-height: 1.5;
}

.checkout-final-hint i {
    color: #2e2bcb;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== CHECKOUT BUTTONS ===== */
.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.btn-checkout-next {
    background: linear-gradient(135deg, #2e2bcb, #6366f1);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(46,43,203,0.25);
    flex: 1;
    max-width: 280px;
}

.btn-checkout-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(46,43,203,0.35);
}

.btn-checkout-back {
    background: none;
    border: 2px solid #e0e0e8;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-checkout-back:hover {
    border-color: #999;
    color: #333;
}

.btn-checkout-final {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(22,163,74,0.3);
    flex: 1;
    max-width: 320px;
    position: relative;
    overflow: hidden;
}

.btn-checkout-final:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(22,163,74,0.4);
}

/* Shimmer-Effekt auf Final-Button */
.btn-checkout-final::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

/* ===== SSL HINWEIS ===== */
.ssl-hinweis {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ssl-hinweis i {
    color: #16a34a;
}

/* ===== FOTO-UPLOAD ===== */
.foto-upload-section {
    border-top: 1px solid #eef0fb;
    padding-top: 20px;
}

.foto-upload-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.foto-upload-optional {
    font-weight: 400;
    font-size: 12px;
    color: #999;
    margin-left: 4px;
}

.foto-upload-hint {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .checkout-tabs {
        flex-direction: column;
        border-radius: 12px;
    }

    .checkout-tab {
        border-right: none;
        border-bottom: 1px solid #eef0fb;
        padding: 12px;
        font-size: 12px;
    }

    .checkout-tab:last-child {
        border-bottom: none;
    }

    .checkout-pane-inner {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .checkout-item-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .checkout-actions {
        flex-direction: column;
    }

    .btn-checkout-next,
    .btn-checkout-final {
        max-width: 100%;
        width: 100%;
    }

    .btn-checkout-back {
        width: 100%;
        text-align: center;
    }

    .auszahlung-optionen {
        flex-direction: column;
    }

    .checkout-pane-titel {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .checkout-pane-inner {
        padding: 16px 12px;
    }

    .checkout-tab-nr {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .checkout-item-img {
        width: 60px;
        height: 60px;
    }
}
