/* === REFERRAL BANNER === */
.referral-banner {
    background: linear-gradient(135deg, var(--highlight) 0%, #8B7355 100%);
    color: var(--card);
    padding: 15px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 3px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.referral-banner strong {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* === LOGIN STATUS BAR === */
.login-status-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.login-status-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-status-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-status-info svg {
    opacity: 0.7;
    fill: #6c757d;
}

.login-status-info strong {
    font-weight: 600;
    color: #343a40;
}

.login-status-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-status-actions .separator {
    opacity: 0.4;
    color: #adb5bd;
}

.status-link {
    color: #6c757d;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 3px;
    transition: all 0.2s;
    font-size: 12px;
}

.status-link:hover {
    background: rgba(0,0,0,0.05);
    color: #495057;
    text-decoration: none;
}

/* === PROGRESS STEPS === */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    margin: 0px;
}

.checkout-header {
    background: #fff;
    border-bottom: 1px solid #e1e8ed;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.checkout-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1;
}


.checkout-features {
    display: flex;
    gap: 30px;
    font-size: 14px;
    color: #666;
}

.checkout-features .support-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-features .support-link:hover {
    color: #6a4f3b;
}

.checkout-features .support-link svg {
    width: 16px;
    height: 16px;
}

.checkout-feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-feature svg {
    width: 16px;
    height: 16px;
    color: #4CAF50;
}

.checkout-progress {
    background: linear-gradient(135deg, #6a4f3b 0%, #a67c52 50%, #e7d7c1 100%);

    padding: 15px 0;
    color: white;
}

.progress-steps {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.progress-step.active {
    opacity: 1;
}

.progress-step-number {
    width: 24px;
    height: 24px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.progress-step.active .progress-step-number {
    background: white;
    color: #6a4f3b;
}

.progress-step.completed .progress-step-number {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.progress-step.completed .progress-step-number::after {
    content: '✓';
    font-weight: bold;
}

.progress-arrow {
    color: rgba(255,255,255,0.5);
    margin: 0 10px;
}

.checkout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.checkout-main {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.checkout-sidebar {
    height: fit-content;
}

.product-summary {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
}

.product-summary h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
    font-weight: 500;
}

.product-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e8ed;
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    background: #f0f0f0;
}

.product-details {
    flex: 1;
}

.product-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.product-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.price-breakdown {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.price-row.discount {
    color: #4CAF50;
}

.price-row.total {
    font-size: 18px;
    font-weight: 600;
    padding-top: 10px;
    border-top: 1px solid #e1e8ed;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6a4f3b;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Validierungsstatus */
.form-group input.valid,
.form-group select.valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

#salutation{
    cursor: pointer;
}
.form-group input.invalid,
.form-group select.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* Validierungs-Icon */
.form-group .validation-icon {
    position: absolute;
    right: 18px;
    top: 32px;
    font-size: 18px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.form-group .validation-icon.show {
    opacity: 1;
}

.form-group .validation-icon.valid {
    color: #10b981;
}

.form-group .validation-icon.invalid {
    color: #ef4444;
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.coupon-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.coupon-button {
    padding: 8px 16px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.coupon-button:hover {
    background: #4b5563;
}

.coupon-message {
    margin-top: 10px;
    font-size: 13px;
    padding: 8px;
    border-radius: 4px;
}

.coupon-message.success {
    background: #d4edda;
    color: #155724;
}

.coupon-message.error {
    background: #f8d7da;
    color: #721c24;
}

.payment-methods {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.payment-methods h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #6a4f3b;
}

.payment-option.selected {
    border-color: #6a4f3b;
    background: #eff6ff;
}

.payment-option input[type="radio"] {
    margin-right: 12px;
}

.payment-logo {
    height: 24px;
    margin-left: auto;
}

.consent-section {
    margin: 25px 0;
}

.consent-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    cursor: pointer;
}

.consent-item input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
}

.consent-item label {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.consent-item a {
    color: #6a4f3b;
    text-decoration: none;
}

.consent-item a:hover {
    text-decoration: underline;
}

.checkout-button {
    padding: 15px;
    background: #6a4f3b;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.checkout-button:hover {
    background: #a67c52;
}

.checkout-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Step Navigation Styles */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.step-navigation .btn-back,
.step-navigation .btn-next,
.checkout-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.step-navigation .btn-next,
.checkout-button {
    position: relative;
    background: #a67c52;
    color: white;
    margin-left: auto;
    overflow: hidden;
    z-index: 1;
}

.step-navigation .btn-next::before,
.checkout-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #6a4f3b;
    z-index: -1;
    transition: opacity 2s ease;
    opacity: 1;
}

.step-navigation .btn-next::after,
.checkout-button::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-5px);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 18px;
}

.step-navigation .btn-next:hover,
.checkout-button:hover {
    padding-right: 45px;
}

.step-navigation .btn-next:hover::before,
.checkout-button:hover::before {
    opacity: 0;
}

.step-navigation .btn-next:hover::after,
.checkout-button:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.step-navigation .btn-next:disabled,
.checkout-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.step-navigation .btn-back {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.step-navigation .btn-back:hover {
    background: #e5e7eb;
}

/* Form Step Styles */
.form-step {
    min-height: 400px;
}

.form-step h2 {
    color: #1f2937;
    margin-bottom: 24px;
}

/* Hide inactive steps */
.form-step[style*="display: none"] {
    display: none !important;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e1e8ed;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #6a4f3b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-status {
    text-align: center;
    color: #fff;
    max-width: 400px;
    padding: 0 20px;
}

.loading-status h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #fff;
}

.loading-status p {
    font-size: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Hinweise */
.checkout-footer {
    background: #f8f9fa;
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #e1e8ed;
    font-size: 14px;
    color: #666;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.footer-section h4 {
    color: #333;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 15px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.footer-section li:before {
    content: '•';
    color: #6a4f3b;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.footer-section a {
    color: #6a4f3b;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-trust {
    text-align: center;
}

.trust-badge {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.trust-logo strong {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.bendyourmind-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #6a4f3b;
}

.bendyourmind-logo span {
    font-size: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: #6a4f3b;
    border-bottom-color: #6a4f3b;
}

.footer-copyright {
    font-size: 12px;
    color: #999;
    text-align: center;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-features {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .product-summary {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
}
