/* ========================================
   NASCH e.V. Quiz Styles - Chef de Cuisine
   ======================================== */

.quiz-body {
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    min-height: 100vh;
    position: relative;
}

.quiz-body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background-image: url('../images/kochmuetze.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
}



.quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 40px;
    position: relative;
    z-index: 1;
}

/* Close Button */
.quiz-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #D46A4C;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 106, 76, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.quiz-close-btn:hover {
    background-color: #c25a3c;
    transform: rotate(90deg);
    box-shadow: 0 6px 20px rgba(212, 106, 76, 0.4);
}

/* Quiz Logo */
.quiz-logo {
    margin-bottom: 30px;
}

.quiz-logo img {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Welcome Screen */
.quiz-welcome {
    text-align: center;
    padding: 25px 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.quiz-welcome::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-image: url('../images/kochmuetze.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.quiz-welcome > * {
    position: relative;
    z-index: 1;
}

.quiz-welcome h1 {
    color: #294b44;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.welcome-text {
    text-align: left;
    margin: 0 auto 20px;
    max-width: 700px;
}

.welcome-text p {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.quiz-start-btn {
    font-size: 16px;
    padding: 12px 40px;
    margin-top: 10px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 50px;
}

.quiz-header h1 {
    color: #294b44;
    font-size: 36px;
    margin-bottom: 15px;
}

.quiz-header p {
    color: #666;
    font-size: 18px;
}

.quiz-question {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    position: relative;
    overflow: hidden;
}

.quiz-question::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-image: url('../images/kochmuetze.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
}

.quiz-question > * {
    position: relative;
    z-index: 1;
}

.quiz-question.active {
    display: block;
}

.question-number {
    color: #294b44;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 19px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    background-color: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    color: #333;
}

.quiz-option:hover {
    background-color: #e8f3ed;
    border-color: #294b44;
}

.quiz-option.selected {
    background-color: #294b44;
    color: #ffffff;
    border-color: #294b44;
}

.quiz-option.correct {
    background-color: #4CAF50;
    color: #ffffff;
    border-color: #4CAF50;
}

.quiz-option.incorrect {
    background-color: #f44336;
    color: #ffffff;
    border-color: #f44336;
}

/* Quiz Feedback */
.quiz-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: 500;
}

.feedback-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4CAF50;
    padding: 12px 15px;
    margin: 0;
}

.feedback-error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
    padding: 12px 15px;
    margin: 0;
}

.quiz-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.quiz-btn {
    background-color: #294b44;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.quiz-btn:hover {
    background-color: #1f3d33;
}

.quiz-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.quiz-btn-secondary {
    background-color: #D46A4C;
}

.quiz-btn-secondary:hover {
    background-color: #c25a3c;
}

.quiz-progress {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.quiz-result {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    position: relative;
    overflow: hidden;
}

.quiz-result::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-image: url('../images/kochmuetze.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
}

.quiz-result > * {
    position: relative;
    z-index: 1;
}

.quiz-result.active {
    display: block;
}

/* Kochmützen Display */
.kochmuetze-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    min-height: 100px;
}

.kochmuetze-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: fadeInScale 0.5s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-score {
    font-size: 48px;
    color: #294b44;
    font-weight: 700;
    margin: 20px 0;
}

.result-message {
    font-size: 26px;
    color: #294b44;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.result-details {
    color: #666;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.result-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Newsletter Section */
.quiz-newsletter {
    display: none;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 50px 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quiz-newsletter h2 {
    color: #294b44;
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.newsletter-intro {
    text-align: center;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto 30px;
}

.newsletter-form .form-group {
    margin-bottom: 25px;
}

.newsletter-form label {
    display: block;
    margin-bottom: 8px;
    color: #294b44;
    font-weight: 500;
    font-size: 14px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #294b44;
}

.newsletter-form .checkbox-group {
    margin-top: 20px;
}

.newsletter-form .checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    color: #333;
}

.newsletter-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 3px;
    flex-shrink: 0;
}

.newsletter-form .submit-button {
    width: 100%;
    background-color: #D46A4C;
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.newsletter-form .submit-button:hover {
    background-color: #c25a3c;
}

.dsgvo-notice {
    text-align: center;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    margin: 20px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#backToResultBtn {
    display: block;
    margin: 30px auto 0;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-container {
        padding: 40px 20px;
    }

    .quiz-welcome h1 {
        font-size: 32px;
    }

    .welcome-text {
        text-align: center;
    }

    .quiz-header h1 {
        font-size: 28px;
    }

    .quiz-question {
        padding: 30px 20px;
    }

    .question-text {
        font-size: 18px;
    }

    .quiz-option {
        padding: 15px 20px;
        font-size: 14px;
    }

    .kochmuetze-icon {
        width: 60px;
        height: 60px;
    }

    .kochmuetze-container {
        gap: 10px;
    }

    .result-score {
        font-size: 36px;
    }

    .result-message {
        font-size: 20px;
    }

    .result-buttons {
        flex-direction: column;
    }

    .result-buttons .quiz-btn {
        width: 100%;
    }

    .quiz-newsletter {
        padding: 40px 20px;
    }

    .newsletter-form {
        padding: 0;
    }
}
