:root { 
    --bg-cream: #FDFDFC; 
    --text-primary: #1b1b18; 
    --text-secondary: #706f6c; 
    --accent: #f53003; 
    --accent-hover: #d92a02; 
    --border: #e3e3e0; 
    --white: #ffffff; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Instrument Sans', sans-serif; 
    background: var(--bg-cream); 
    color: var(--text-primary); 
    min-height: 100vh; 
    line-height: 1.5; 
}

/* Header */
header { 
    background: var(--white); 
    padding: 1rem 2rem; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 100; 
    box-shadow: 0 1px 0 var(--border); 
}

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

.logo { 
    display: block; 
    text-decoration: none; 
    line-height: 0; 
}

.header-title { 
    color: var(--text-primary); 
    font-weight: 600; 
    font-size: 1rem; 
    margin-left: auto; 
}

/* Progress Bar */
.progress-container { 
    position: fixed; 
    top: 56px; 
    left: 0; 
    right: 0; 
    background: var(--white); 
    border-bottom: 1px solid var(--border); 
    z-index: 99; 
    padding: 1rem 2rem 0.5rem 2rem; 
}

.progress-content { 
    max-width: 600px; 
    margin: 0 auto; 
    margin-top: 15px; 
}

.progress-bar { 
    height: 8px; 
    background: var(--border); 
    border-radius: 4px; 
    overflow: hidden; 
    margin-bottom: 0.5rem; 
}

.progress-fill { 
    height: 100%; 
    background: var(--accent); 
    transition: width 0.4s ease; 
}

.progress-text { 
    display: none !important; 
}

/* Wizard Container - Mehr Abstand oben! */
.wizard-container { 
    max-width: 600px; 
    margin: 0 auto; 
    padding: 85px 1.5rem 2rem; /* Erhöht von 110px auf 150px */
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; /* Geändert von center auf flex-start */
}

/* Steps */
.step { 
    display: none; 
    opacity: 0; 
    transform: translateX(50px); 
    transition: all 0.4s ease; 
}

.step.active { 
    display: block; 
    opacity: 1; 
    transform: translateX(0); 
}

.step.prev { 
    transform: translateX(-50px); 
}

.step-number { 
    font-size: 0.875rem; 
    color: var(--accent); 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    margin-bottom: 0.5rem; 
}

.step-title { 
    font-size: 1.75rem; 
    font-weight: 700; 
    color: var(--text-primary); 
    margin-bottom: 1rem; 
    line-height: 1.2; 
}

.step-description { 
    color: var(--text-secondary); 
    margin-bottom: 2rem; 
    font-size: 1rem; 
}

.optional-badge { 
    display: inline-block; 
    font-size: 0.75rem; 
    background: var(--border); 
    color: var(--text-secondary); 
    padding: 0.25rem 0.5rem; 
    border-radius: 4px; 
    margin-left: 0.5rem; 
    font-weight: 500; 
}

/* Option List - Grid für Checkboxen */
.option-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 1rem; 
}

/* Radio-Buttons: Volle Breite! */
.option-list:has(input[type="radio"]) { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem;
}

[data-step="9"] .option-list { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem;
}

/* Option Items - Checkboxen (Grid) */
.option-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 0.75rem; 
    padding: 1.5rem 1rem; 
    background: var(--white); 
    border: 2px solid var(--border); 
    border-radius: 12px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    position: relative; 
    min-height: 140px; 
}

/* Radio-Buttons: Horizontal + keine min-height */
.option-item:has(input[type="radio"]) { 
    flex-direction: row; 
    min-height: auto; /* Wichtig! */
    padding: 1.25rem; 
    justify-content: flex-start; 
}

.option-item:has(input[type="radio"]) input { 
    position: static; 
}

.option-item:has(input[type="radio"]) label { 
    flex-direction: row; 
    text-align: left; 
    justify-content: flex-start; 
}

/* Spezifisch für Schritt 9 (Farbwunsch) */
[data-step="9"] .option-item { 
    flex-direction: row; 
    min-height: auto; 
    padding: 1.25rem; 
    justify-content: flex-start; 
}

[data-step="9"] .option-item input { 
    position: static; 
}

[data-step="9"] .option-item label { 
    flex-direction: row; 
    text-align: left; 
    justify-content: flex-start; 
}

/* Hover & Selected */
.option-item:hover { 
    border-color: var(--accent); 
    background: #fff5f2; 
}

.option-item.selected { 
    border-color: var(--accent); 
    background: #fff5f2; 
}

/* Inputs */
.option-item input[type="checkbox"], 
.option-item input[type="radio"] { 
    position: absolute; 
    top: 12px; 
    right: 12px; 
    width: 20px; 
    height: 20px; 
    accent-color: var(--accent); 
    cursor: pointer; 
}

.option-item label { 
    cursor: pointer; 
    font-weight: 500; 
    font-size: 0.95rem; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 0.75rem; 
    text-align: center; 
    width: 100%; 
}

/* Icons */
.option-icon { 
    width: 48px; 
    height: 48px; 
    color: var(--text-secondary); 
    flex-shrink: 0; 
}

.option-item.selected .option-icon { 
    color: var(--accent); 
}

/* Sonstiges Input */
.sonstiges-input { 
    position: absolute; 
    bottom: -60px; 
    left: 0; 
    right: 0; 
    padding: 0.75rem; 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    font-size: 0.95rem; 
    display: none; 
    background: var(--white); 
}

.sonstiges-input.active { 
    display: block; 
}

.option-item.has-input { 
    margin-bottom: 60px; 
}

/* Text Input */
.text-input { 
    width: 100%; 
    padding: 1rem 1.25rem; 
    border: 2px solid var(--border); 
    border-radius: 12px; 
    font-size: 1.125rem; 
    font-family: inherit; 
    background: var(--white); 
}

.text-input:focus { 
    outline: none; 
    border-color: var(--accent); 
    box-shadow: 0 0 0 3px rgba(245, 48, 3, 0.1); 
}

/* Buttons */
.btn-container { 
    display: flex; 
    gap: 1rem; 
    margin-top: 2.5rem; 
    flex-wrap: wrap; 
}

.btn-fixed-container { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: var(--white); 
    border-top: 1px solid var(--border); 
    z-index: 98; 
    padding: 1rem 2rem; 
    display: none; 
}

.btn-primary { 
    flex: 1; 
    min-width: 140px; 
    padding: 1rem 2rem; 
    background: var(--accent); 
    color: var(--white); 
    font-size: 1rem; 
    font-weight: 600; 
    border: none; 
    border-radius: 12px; 
    cursor: pointer; 
}

.btn-secondary { 
    padding: 1rem 2rem; 
    background: transparent; 
    color: var(--text-secondary); 
    font-size: 1rem; 
    font-weight: 500; 
    border: 2px solid var(--border); 
    border-radius: 12px; 
    cursor: pointer; 
}

.btn-text { 
    padding: 1rem; 
    background: transparent; 
    color: var(--text-secondary); 
    font-size: 0.875rem; 
    font-weight: 500; 
    border: none; 
    cursor: pointer; 
    text-decoration: underline; 
}

/* Checkbox Field */
.checkbox-field { 
    display: flex; 
    align-items: flex-start; 
    gap: 0.75rem; 
    margin-top: 1rem; 
}

.checkbox-field input { 
    width: 18px; 
    height: 18px; 
    margin-top: 2px; 
    accent-color: var(--accent); 
}

/* Utility */
.hidden { 
    display: none !important; 
}

/* Loading */
.loading-box { 
    text-align: center; 
    padding: 3rem 1rem; 
}

.loading-spinner { 
    width: 60px; 
    height: 60px; 
    border: 5px solid var(--border); 
    border-top-color: var(--accent); 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
    margin: 0 auto 1.5rem; 
}

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

.loading-bar-wrap { 
    width: 100%; 
    height: 12px; 
    background: var(--border); 
    border-radius: 6px; 
    overflow: hidden; 
    margin: 1.5rem 0; 
}

.loading-bar { 
    height: 100%; 
    background: var(--accent); 
    border-radius: 6px; 
    width: 0%; 
    transition: width 0.3s; 
}

.loading-pct { 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: var(--accent); 
    margin-bottom: 0.5rem; 
}

/* Result */
.result-box { 
    background: var(--accent); 
    color: white; 
    padding: 2rem; 
    border-radius: 16px; 
    text-align: center; 
    margin-bottom: 1.5rem; 
}

.result-num { 
    font-size: 4rem; 
    font-weight: 700; 
    margin-bottom: 0.25rem; 
}

/* Form */
.form-box { 
    background: var(--white); 
    border: 2px solid var(--border); 
    border-radius: 16px; 
    padding: 1.5rem; 
}

.form-row { 
    margin-bottom: 1rem; 
}

.form-row label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 0.4rem; 
    font-size: 0.85rem; 
    color: var(--text-secondary); 
}

/* Footer */
.site-footer { 
    border-top: 1px solid var(--border); 
    padding: 40px 24px; 
    background: var(--white); 
}

.footer-inner { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 16px; 
}

.footer-links { 
    display: flex; 
    gap: 24px; 
    flex-wrap: wrap; 
}

.footer-links a { 
    font-size: 13px; 
    color: var(--text-secondary); 
    text-decoration: none; 
    transition: color .2s; 
}

.footer-links a:hover { 
    color: var(--text-primary); 
}

.footer-copy { 
    font-size: 13px; 
    color: var(--text-secondary); 
}

/* Responsive */
@media (max-width: 768px) { 
    .option-list { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 0.75rem; 
    } 
    
    .option-item { 
        min-height: 120px; 
        padding: 1rem 0.75rem; 
    }
    
    .step .btn-container { 
        display: none; 
    } 
    
    .btn-fixed-container { 
        display: flex; 
        gap: 1rem; 
    } 
    
    .btn-fixed-container.hidden { 
        display: none !important; 
    } 
    
    .wizard-container { 
        padding-bottom: 100px; 
    }
}
