/* Allgemeine Styles */
@font-face {
    font-family: 'Asap';
    src: url('../fonts/AsapCondensed-Regular.ttf');
}

/* Quiz Modal Styles */

/* Quiz Button */
.quiz-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #008400;
    color: white;
    padding: 14px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    margin-left: 10px;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-family: "Asap", sans-serif;
    font-size: 0.9em;
    line-height: 1.0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.quiz-button:hover {
    background: #006600;
    transform: translateY(-2px);
}

.quiz-button:active {
    transform: translateY(0);
}

/* Modal Overlay */
#quizModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

#quizModal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Container */
.quiz-modal-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
	font-family: "Asap", sans-serif;
    font-size: 0.95em;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modal Header */
.quiz-modal-header {
    background: linear-gradient(135deg, #004d00 0%, #006600 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-modal-header h2 {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
}

#closeQuizBtn {
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: opacity 0.2s;
    width: 40px;
    height: 40px;
}

#closeQuizBtn:hover {
    opacity: 0.7;
}

/* Progress Bar */
#progressContainer {
    display: none;
    background: #e0e0e0;
    height: 4px;
}

#progressContainer.active {
    display: block;
}

#progressBar {
    background: #004d00;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease-in-out;
}

/* Modal Content */
.quiz-modal-content {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.quiz-modal-content::-webkit-scrollbar {
    width: 8px;
}

.quiz-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.quiz-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.quiz-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Quiz Content Styles */
.quiz-emoji {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

.quiz-intro-title {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.quiz-intro-text {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
    white-space: pre-line;
    margin-bottom: 30px;
}

.quiz-scale-box {
    background: #C0FFC0;
    border-left: 4px solid #004d00;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.quiz-scale-box h4 {
    margin-top: 0;
    color: #004d00;
    font-weight: bold;
}

.quiz-scale-box ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.quiz-scale-box li {
    color: #333;
    padding: 5px 0;
}

/* Question Styles */
.quiz-section-badge {
    display: inline-block;
    background: #C0FFC0;
    color: #004d00;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    margin-bottom: 20px;
}

.quiz-area-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.quiz-question-box {
    background: #f9f9f9;
    border-left: 4px solid #004d00;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.quiz-question-text {
    font-size: 0.95em;
    color: #333;
    margin: 0;
}

/* Radio Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.radio-option:hover {
    background: #f5f5f5;
    border-color: #004d00;
}

.radio-option.selected {
    background: #C0FFC0;
    border-color: #004d00;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #004d00;
}

.radio-option label {
    cursor: pointer;
    font-size: 0.9em;
    color: #333;
    font-weight: 500;
    flex: 1;
}

/* Results Styles */
.quiz-result-emoji {
    font-size: 2em;
    text-align: center;
    margin-bottom: 10px;
}

.quiz-result-score {
    font-size: 1.3em;
    font-weight: bold;
    color: #004d00;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.2;
}

.quiz-result-level {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.2;
}

.quiz-result-box {
    background: linear-gradient(135deg, #C0FFC0 0%, #E0FFE0 100%);
    border-left: 4px solid #004d00;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.quiz-result-title {
    font-size: 0.95em;
    font-weight: bold;
    color: #004d00;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.quiz-result-description {
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
    font-size: 0.85em;
}

.quiz-result-action {
    color: #004d00;
    font-weight: bold;
    margin: 0;
    font-size: 0.85em;
    line-height: 1.3;
}

/* Contact Form */
.quiz-final-section {
    padding-top: 15px;
    margin-top: 15px;
}

.quiz-final-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.2;
}

.quiz-final-text {
    color: #555;
    line-height: 1.4;
    white-space: pre-line;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.85em;
}

.quiz-contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.quiz-form-group {
    margin-bottom: 12px;
}

.quiz-form-label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.quiz-form-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.quiz-form-input:focus {
    outline: none;
    border-color: #004d00;
}

.quiz-submit-btn {
    width: 100%;
    background: #004d00;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.quiz-submit-btn:hover {
    background: #006600;
    transform: scale(1.02);
}

.quiz-submit-btn:active {
    transform: scale(1);
}

.quiz-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

/* Modal Footer */
.quiz-modal-footer {
    border-top: 2px solid #e0e0e0;
    padding: 20px 30px;
    background: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-nav-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

#prevBtn {
    background: #ccc;
    color: #333;
}

#prevBtn:hover {
    background: #bbb;
}

#prevBtn.hidden {
    visibility: hidden;
}

#nextBtn {
    background: #004d00;
    color: white;
}

#nextBtn:hover {
    background: #006600;
}

#nextBtn.hidden {
    display: none;
}

#pageInfo {
    font-size: 0.8em;
    color: #666;
}

/* Message Container */
#messageContainer {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    max-width: 400px;
}

#messageBox {
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    font-weight: bold;
}

#messageBox.success {
    background: #28a745;
}

#messageBox.error {
    background: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-modal-container {
        margin: 10px;
        max-height: 95vh;
    }
    
    .quiz-modal-header {
        padding: 15px 20px;
    }
    
    .quiz-modal-header h2 {
        font-size: 1em;
    }
    
    .quiz-modal-content {
        padding: 20px;
    }
    
    .quiz-intro-title {
        font-size: 0.95em;
    }
    
    .quiz-area-title {
        font-size: 1em;
    }
    
    .quiz-result-score {
        font-size: 1.2em;
    }
    
    .quiz-result-level {
        font-size: 0.95em;
    }
    
    .quiz-button {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .quiz-emoji {
        font-size: 2em;
    }
    
    .quiz-result-emoji {
        font-size: 1.8em;
    }
    
    .radio-option {
        padding: 12px;
    }
    
    .quiz-modal-footer {
        flex-wrap: wrap;
        gap: 10px;
    }
}
