/* =====================================================
   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: 16px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.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 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

/* 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: 8px;
    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: var(--gray-50);
}

/* 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: 10px;
    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: var(--gray-50);
}

.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: 8px;
    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: var(--gray-50);
    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: 8px;
    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: 10px;
    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: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.55;
    margin-top: 24px;
    margin-bottom: 0;
    text-align: left;
}

.result-disclaimer strong {
    display: inline;
    color: #1e293b;
    font-weight: 600;
    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;
        border-radius: 0;
    }

    .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);
    }
}

/* =====================================================
   NEW WIZARD STYLES (Tiles, Sliders, Map)
   ===================================================== */
.bw-progress-bar {
    height: 4px;
    background: #f1f5f9;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}
.bw-progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.bw-step-title {
    font-size: 1.4rem;
    color: #0f172a;
    text-align: center;
    margin-bottom: 24px;
    font-weight: 600;
}

/* Data Table (Map Step) */
.bw-data-table {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}
.bw-data-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}
.bw-data-row:last-child {
    border-bottom: none;
}
.bw-data-label {
    color: #64748b;
    font-weight: 500;
}
.bw-data-val {
    color: #0f172a;
    font-weight: 600;
}

/* Tiles Grid */
.bw-tile-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}
.bw-grid-2 { grid-template-columns: 1fr 1fr; }
.bw-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 500px) {
    .bw-grid-3 { grid-template-columns: 1fr 1fr; }
}

.bw-tile {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: #fff;
    min-height: 100px;
}
.bw-tile svg {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    color: var(--primary-color);
}
.bw-tile span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}
.bw-tile:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.bw-tile.selected {
    border-color: var(--primary-color);
    background: #f0fdf4; /* Light green tint like screenshot, or light blue */
    box-shadow: 0 0 0 1px var(--primary-color);
}

/* Info Box */
.bw-info-box {
    background: #f8fafc;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
    position: relative;
}
.bw-info-box::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}
.bw-info-box svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}
.bw-info-box p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    line-height: 1.4;
}

/* Slider Display */
.bw-slider-display {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
    background: #f8fafc;
    display: inline-block;
    padding: 12px 32px;
    border-radius: 16px; box-shadow: var(--shadow-lg);
    left: 50%;
    position: relative;
    transform: translateX(-50%);
}
.bw-slider-display span {
    color: var(--primary-color);
}

/* Range Slider Custom Styling */
.bw-slider-container {
    margin-bottom: 32px;
}
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    margin: 15px 0;
}
input[type=range]:focus {
    outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 12px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 8px;
}
input[type=range]::-webkit-slider-thumb {
    height: 32px;
    width: 32px;
    border-radius: 10px;
    background: var(--primary-color);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    
}
.bw-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 8px;
}

/* Manual Input */
.bw-manual-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}
.bw-manual-input label {
    font-size: 1rem;
    color: #334155;
}
.bw-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 12px;
    background: #fff;
    width: 120px;
}
.bw-input-group input {
    border: none !important;
    padding: 8px 0 !important;
    width: 100%;
    text-align: right;
    font-size: 1rem;
    color: var(--primary-color) !important;
    font-weight: 600;
}
.bw-input-group input:focus {
    box-shadow: none !important;
}
.bw-input-suffix {
    margin-left: 8px;
    color: #0f172a;
    font-weight: 600;
}
