/* =====================================================
   BEWERTUNG WIZARD — Styles
   ===================================================== */

/* Section */
.bewertung-section {
    padding: 120px 0;
    position: relative;
    background: url('interior_living_room.webp') center/cover no-repeat fixed;
    color: #fff;
    z-index: 1;
}

.bewertung-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Sehr dunkles, fast schwarzes Overlay mit 85% Deckkraft */
    background: rgba(5, 7, 15, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: -1;
}

.bewertung-section .section-header {
    margin-bottom: 24px;
}

.bewertung-section .section-title {
    color: #fff;
}

.bewertung-section .section-title .text-highlight {
    color: #fff;
    position: relative;
    display: inline-block;
}

.bewertung-section .section-title .text-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.bewertung-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* Bewertung Modal */
.bw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.bw-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.bw-modal-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 12px;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.bw-modal-overlay.is-open .bw-modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.bw-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f0f0f0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    z-index: 10;
    transition: all 0.2s ease;
}

.bw-modal-close:hover {
    background: #e0e0e0;
    color: #000;
}

.bw-modal-close svg {
    width: 20px;
    height: 20px;
}

/* Wizard Container */
.wizard-container {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(32, 2, 112, 0.08);
    overflow: hidden;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    padding: 24px 32px 16px;
    gap: 12px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.step-dot {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.step-dot .dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-dot .dot-label {
    font-size: 0.8rem;
    color: #999;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.step-dot.active .dot {
    background: var(--primary-color);
    color: #fff;
}

.step-dot.active .dot-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-dot.done .dot {
    background: #28a745;
    color: #fff;
}

.step-dot.done .dot-label {
    color: #28a745;
}

/* Step Content */
.wizard-body {
    padding: 32px;
}

.wizard-step {
    display: none;
    animation: fadeInStep 0.35s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}

.wizard-step .step-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Form Fields */
.bw-field {
    margin-bottom: 20px;
}

.bw-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.bw-field input[type="text"],
.bw-field input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    color: #111;
    transition: border-color 0.2s ease;
    font-family: var(--font-sans);
    background: #fff;
}

.bw-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(32, 2, 112, 0.08);
}

.bw-field input::placeholder {
    color: #bbb;
}

/* Address Autocomplete */
.address-wrapper {
    position: relative;
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: none;
}

.address-suggestions.visible {
    display: block;
}

.suggestion-item {
    padding: 10px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f5f3ff;
}

/* Address Status */
.address-status {
    margin-top: 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
}

.address-status.found {
    color: #28a745;
}

.address-status.error {
    color: #dc3545;
}

.address-status.loading {
    color: #666;
}

/* Radio Group (Object Type) */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.radio-option {
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.radio-option label svg {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    color: #999;
    transition: color 0.2s ease;
}

.radio-option label .radio-label-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    transition: color 0.2s ease;
}

.radio-option input:checked + label {
    border-color: var(--primary-color);
    background: #f5f3ff;
}

.radio-option input:checked + label svg {
    color: var(--primary-color);
}

.radio-option input:checked + label .radio-label-text {
    color: var(--primary-color);
    font-weight: 600;
}

/* Zustand Buttons */
.zustand-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.zustand-btn {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.zustand-btn:hover {
    border-color: #bbb;
}

.zustand-btn.selected {
    border-color: var(--primary-color);
    background: #f5f3ff;
    color: var(--primary-color);
    font-weight: 600;
}

/* Two column fields */
.bw-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Navigation Buttons */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.btn-wizard {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.btn-wizard-back {
    background: transparent;
    color: #666;
    padding-left: 0;
}

.btn-wizard-back:hover {
    color: #111;
}

.btn-wizard-next {
    background: var(--primary-color);
    color: #fff;
    margin-left: auto;
}

.btn-wizard-next:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-wizard-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* =====================================================
   STEP 3: Result
   ===================================================== */

.result-card {
    text-align: center;
    padding: 20px 0;
}

.result-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.result-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.result-range {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 32px;
}

/* Breakdown */
.result-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.breakdown-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.breakdown-item .bd-label {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-item .bd-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
}

.brw-info {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 28px;
    line-height: 1.5;
}

.brw-info strong {
    color: #666;
}

/* Disclaimer */
.result-disclaimer {
    background: #fbfbfb;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.78rem;
    color: #777;
    line-height: 1.5;
    margin-top: 20px;
    margin-bottom: 0;
    text-align: left;
}

.result-disclaimer strong {
    display: inline;
    color: #444;
    margin-right: 4px;
}

/* CTA */
.result-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-cta .btn-wizard-next {
    width: 100%;
    text-align: center;
    padding: 14px 28px;
    font-size: 1rem;
}

.result-cta .btn-restart {
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-sans);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.result-cta .btn-restart:hover {
    color: #111;
}

/* Loading Spinner */
.bw-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 16px;
}

.bw-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: bwSpin 0.7s linear infinite;
}

@keyframes bwSpin {
    to { transform: rotate(360deg); }
}

.bw-loading-text {
    font-size: 0.9rem;
    color: #888;
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 680px) {
    .wizard-container {
        margin: 0 16px;
        border-radius: 10px;
    }

    .wizard-body {
        padding: 24px 20px;
    }

    .step-indicator {
        padding: 16px 20px 12px;
        gap: 8px;
    }

    .step-dot .dot-label {
        font-size: 0.7rem;
    }

    .result-value {
        font-size: 2.2rem;
    }

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

    .zustand-group {
        grid-template-columns: 1fr 1fr;
    }

    .result-breakdown {
        grid-template-columns: 1fr;
    }

    /* Fullscreen Modal on Mobile */
    .bw-modal-overlay {
        padding: 0;
    }
    
    .bw-modal-container {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        transform: scale(1) translateY(20px);
    }
    
    .bw-modal-overlay.is-open .bw-modal-container {
        transform: scale(1) translateY(0);
    }
    
    .bw-modal-close {
        top: 15px;
        right: 15px;
        background-color: rgba(0,0,0,0.7);
    }
}
