/* Gesamtes Seiten-Layout */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    /* Helles Grau für den Hintergrund */
    margin: 0;
    padding: 0px;
    color: #333;
    /* Dunkles Grau für den Text */
}

/* Wrapper für den gesamten Inhalt */
#wrapper {
    max-width: 900px;
    margin: 4px auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Sanfter Schatten */
    padding: 20px;
}



/* Header-Styles */
header {
    background-color: #2c3e50;
    /* Dunkles Blau-Grau */
    color: #ecf0f1;
    /* Helles Grau für den Text */
    padding: 16px;
    border-radius: 10px 10px 0 0;
    /* Abgerundete Ecken oben */
    text-align: center;
    padding-bottom: 10px;
    background-image: url(logo2.webp);
    background-size: 84px;
    background-position: 20px 20px;
    background-repeat: no-repeat;
}

.tnav {
    margin:0 auto;
}

.tnav td {
    padding:6px;
}


h1:hover {
    color: #e75954;
    cursor: pointer;
}

#menu {
    margin-top: 0px;
    display: flex;
    margin-left: -40px;
    border-right: 1px solid #ccc;
}

#menu li {
    flex-grow: 1;
    list-style-type: none;
}

#menu li button {
    flex-grow: 1;
    width: 100%;
    padding: 8px;
    border-radius: 0;
    border: 1px solid #ccc;
    border-right: none;
}

#menu li button:hover {
    background-color: white;
    cursor: pointer;    
}


#anzeige {
    margin-top: 10px;
    display: flex;
    font-size: 0.9rem;
}

.spo {
    flex-grow: 1;
}

h1 {
    font-size: 1.9rem;
    font-weight: 600;
    margin: 0;
}

/* Navigation */
nav {
    margin-top: 14px;
    position: relative;
}

/* Main Bereich */
main {
    margin-top: 0px;
}

/* Frage-Bereich */
h2 {
    font-size: 1.4rem;
    color: #34495e;
    /* Dunkles Blau-Grau für den Text */
    font-weight: 500;
    margin-bottom: 15px;
}

/* Optionen */
#options {
    margin-bottom: 20px;
}

#options div {
    background-color: #fff;
    border: 1px solid #ccc;
    /* Sanfte Umrandung */
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.option {
    display: flex;
    align-items: center;
    /* Zentriert den Radiobutton und den Text vertikal */
}

label {
    vertical-align: middle;
    line-height: 1.2;
    cursor: pointer;
}

#options div:hover {
    background-color: #ecf0f1;
    /* Helles Grau beim Hover */
    border-color: #3498db;
    /* Blau für den Hover-Effekt */
}

/* Ergebnisbereich */
#result {
    font-size: 1.2rem;
    color: #27ae60;
    /* Grün für das Ergebnis */
    text-align: center;
    font-weight: 500;
}

/* Styles für Buttons */
.qButton {
    background-color: #3498db;
    /* Blau für den Button */
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0px 8px;
    border:1px solid #ecf0f1;
}

#submitAnswer {
    margin-right: 3px;
}
#nextButton {
    margin-left: 3px;
}


.qButton:hover {
    background-color: #2980b9;
    /* Dunkleres Blau beim Hover */
}

/* Styling für den gesamten Quiz-Container */
#options div input {
    margin-right: 10px;
    /* Abstand zwischen Radio-Button und Text */
}

.disable {
    background-color: "#bbb";
    opacity: 0.7;
}

.fliste {
    margin-top: 8px;
}

.fliste li {
    margin-bottom: 6px;
    font-weight: bold;
    /*    color:crimson;   */
}

#feedback {
    font-family: Arial, sans-serif;
    /*    color: #d9534f; */
    /* Rot für Fehler */
    margin-top: 0px;
    padding: 8px;
    padding-bottom: 4px;
    border: 1px solid #ccc;
    /*    border: 1px solid #e2918f;  */
    border-radius: 5px;
    background-color: #fafafa;
    /*    background-color: #f9e6e6;  */
    /* Helles Rot als Hintergrund */
    min-height: 28px;
}



#menu-toggle {
    display: none;
    /* hide the checkbox */
}

@media only screen and (max-width: 760px) {
    .labelcheck {
        position: absolute;
        right: 28px;
        top: 110px;
        cursor: pointer;
        display: block;
        width: 40px;
        height: 40px;
        background-image: url(toggle-menu.png);
        background-size: 100% auto;
    }

    header {
        background-position: 20px 60px;

    }

    #menu {
        display: none;
    }

    #menu-toggle:checked+#menu {
        display: block;
        visibility: visible;
    }

    #menu li button {
        border-bottom: none;
    }

    #menu li:last-child {
        border-bottom: 1px solid #ccc;
    }
}

.disabled {
    background-color: #bbb;
    opacity: 0.7;
    pointer-events: none;
    /* Deaktiviert Interaktion */
}

.active {
    background-color: #3498db;
    opacity: 1;
}

.pfeil {
    display: inline-block;
    font-weight: bolder;
    font-size: 1.7em;
    position:relative;
    top:4px; 
}


.pfeil:hover {
    color: #d9534f;
    cursor: pointer;
}

input[type="radio"] {
    margin-right: 10px;
    /* Abstand zwischen Radiobutton und Text */
    vertical-align: middle;
    /* Grundsätzlich auf die Textmitte ausrichten */
    position: relative;
    /* Ermöglicht pixelgenaue Anpassung */
    top: -1px;
    /* Korrigiert die vertikale Ausrichtung (Anpassung anpassen!) */
}

#newStartButton {
    display:none;
    margin:none;
}

/* Stil für den Codeblock */
code {
    color:darkblue;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-family: monospace;  /* Optional: für den Code eine Monospace-Schriftart */
}

pre {
    margin:0.6rem;
}

pre code {
    font-size: 17px;
}

/* Optional: Stil für den normalen Text */
.question-text {
    margin-bottom: 10px;  /* Du kannst auch den Abstand zum Text anpassen */
}

.lb {
    font-size: 17px;;
}