body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    /*align-items: center;*/
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    margin-top: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

input[type="text"],
input[type="password"],
select{
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

select:focus {
    outline: none;
    border-color: #7b2ff7;
    box-shadow: 0 0 0 3px rgba(123, 47, 247, 0.15);
}

button {
    background-color: #007bff;
    color: white !important;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    box-sizing: border-box;
    transition: 0.2s;
}

.image-button {    
    height: 24px; 
    padding: 0;
    min-width: 25px;
}

button:hover {
    background-color: #0056b3;
}

#next-question {
    width : 100%;
}

.options-container label {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.options-container label:hover {
    background-color: #e9e9e9;
}

.options-container input[type="radio"], .options-container input[type="checkbox"] {
    margin-right: 10px;
}

#result-container {
    margin-top: 20px;
    line-height: 1.5;
}

/* Frage */
.question, .info {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #222;
}

/* Antwort */
.answer {
    padding: 6px 10px;
    margin-left: 15px;
    margin-bottom: 4px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

/* richtige Antwort */
.answer.correct {
    color: #1e7e34;
    font-weight: bold;
    background: #e8f8ee;
    border-left: 4px solid #2ecc71;
}

/* falsche (falls du sie später nutzt) */
.answer.wrong {
    color: #c0392b;
    font-weight: bold;
    background: #fdeaea;
    border-left: 4px solid #e74c3c;
}

/* bessere Trennung zwischen Fragen */
.question + .answer {
    margin-top: 5px;
}

/* Score oben */
#results h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.score {
    font-size: 24px;
    font-weight: bold;
    color: #1e7e34;
}

p {
    margin-bottom: 15px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

label:has(.wrong) {
    background-color: red;
}

label:has(.correct) {
    background-color: green;
}

.quiz-progress {
    position: relative;
    flex: 1;
    overflow: hidden;
    align-items: center;
}

#print-result {
    background: transparent;
    font-size: 20px;
}

#reset-quiz {
    position: absolute;
    right: 0;
    top: -10px;
    height: 24px;
    padding: 0;
    background: transparent;
    font-size: 24px;
    min-width: 50px !important;
    /*display: flex;
    align-items: center;
    justify-content: center;*/
    cursor: pointer;
    transition:
        background-color 0.2s,
        transform 0.2s;
}

#progress-wrapper {
    display: flex;
    /*flex: 1 1 auto;  */
    width: 100%;
    height: 18px;
    border-radius: 20px;
    overflow: hidden;
    background: #ddd;
}

.progress-segment {
    flex: 1;
    transition: background 0.3s ease;
}

.progress-segment.pending {
    background: #e0e0e0;
}

.progress-segment.correct {
    background: #2ecc71;
}

.progress-segment.wrong {
    background: #e74c3c;
}

@media print {

    body {
        background-color: white;
    }
    
    .container {
        width: 100%;
        max-width: 1024px;
        box-shadow: none;
    }

    .classname {
        margin-top: 0;
    }

    #quiz-filter, .quiz-progress, .username, h2, h3 {
        display: none;
    }
}

/* mobile optimiert */
@media (max-width: 600px) {

    .container {
        max-width: 1024px;
    }

    .answer {
        margin-left: 8px;
        font-size: 13px;
    }

    .question {
        font-size: 15px;
    }
}