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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.quiz-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    width: 100%;
    padding: 40px;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Start Screen */
#start-screen h1 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quiz Screen */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.question-counter {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

#question-container {
    margin-bottom: 40px;
}

#question-text {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 30px;
    line-height: 1.4;
}

#answers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.answer-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.answer-option label {
    flex: 1;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
}

.answer-option input[type="radio"]:checked + label {
    font-weight: 600;
    color: #667eea;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.navigation-buttons .btn {
    flex: 1;
}

/* Result Screen */
#result-screen h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.result-box {
    background: #f8f9ff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.result-box h2 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.result-box p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 15px;
}

.result-box ul {
    margin: 15px 0 15px 25px;
    color: #333;
}

.result-box li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.advice-hint {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
}

#restart-btn {
    display: block;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 600px) {
    .quiz-container {
        padding: 25px;
    }
    
    #start-screen h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    #question-text {
        font-size: 1.2rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .result-box h2 {
        font-size: 1.5rem;
    }
}

/* CTA Button */
.cta-button {
    margin-top: 25px;
    width: 100%;
    font-size: 1.1rem;
    padding: 18px 35px;
}

/* Lead-Formular */
#lead-screen h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}

#lead-screen .subtitle {
    text-align: center;
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-group {
    margin-top: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-group span {
    flex: 1;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-buttons .btn {
    flex: 1;
}

.form-status {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.status-loading {
    background: #e3f2fd;
    color: #1976d2;
    margin: 0;
}

.status-error {
    background: #ffebee;
    color: #c62828;
    margin: 0;
}

.status-success {
    background: #e8f5e9;
    color: #2e7d32;
    margin: 0;
}

/* Danke-Seite */
#thank-you-screen {
    text-align: center;
}

.thank-you-content {
    padding: 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

#thank-you-screen h1 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

#thank-you-screen .subtitle {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 20px;
}

#thank-you-screen p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

#final-restart-btn {
    margin-top: 20px;
}