:root {
    font-family: 'Consolas','Verdana','Tahoma','Courier New', Courier, monospace;
    font-size: clamp(0.5em, 2.8vw, 1.3em);
    --lightblue-background: #a2afcc;   
    --mediumblue-background: #7288b6;
    --darkblue-background: #415b90;
    --light-text-colour:  aliceblue;
    text-decoration: none;

}

#restorepw{
    text-align: center;
}

.a {
    text-decoration: none;
    color: var(--light-text-colour);
}
a.menu{
    text-decoration: none;
    color: #0d0d0d;
}
a.notunderlined{
    text-decoration: none;
    color: #5f589d;
}

input.jetztlernenbutton{
    padding: 0.5%;
}

input.jetztlernenbutton:hover{
    background-color: #555;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0%;
}

img {
    display: block;
    width: 35%;
    height: 35%;
    margin: auto;
    padding: 1%;
}
header {
    width: 100%;
    background-color: #415b90;
    color: aliceblue;
    text-align: center;
}



h1 {
    color: #0d0d0d;
}

h2 {
    color: #0d0d0d;
}

button {
    color: aliceblue;
    background-color: #7288b6;
    border: none;
    box-shadow: none;
    padding: 10px 15px 10px 10px;
}

.mainbody {
    display: flex;
    min-height: 100vh;
}

.lerninhalte {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    padding: 2%;
    width: 75%;
}

#nested-summary {
    padding-left: 2%;
  
}


/*ASIDES*/
.mainbody > aside{
    order: -1;
    background-color: #ededf0;
    color: #0d0d0d;
    width: 15%;
    padding-left: 1%;
}

.mainbody > aside.right{
    order: 2;
    background-color: white;
    width: 10%;
}

#wideaside{
    width:20%;
}

.menu:hover {
    background-color: #f2f2f3;
    
}


.content {
    display: none;
    padding: 10px;
}

.content.active {
    display: block;
}

.menu {
    padding-top: 3%;
    padding-bottom: 3%;
    padding-left: 5%;
    text-decoration: none;
}

.mainbody > details{
    padding-left: 2%;
    padding-top:2%;
}

.mainbody > section{
    flex:1;
    padding-left: 2%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    padding:1em;
    margin: 0;
    list-style-type: none;
    background-color: var(--mediumblue-background);
}

.navbar-left{
    display: flex;
    justify-content: flex-start;
    align-content: center;
    width:400px;
}

.menu-header{
    display:flex;
    flex-direction: column;
}

.navbar-right {
    display: flex;
    justify-content: flex-end;
    align-content: center;
}

.navbar a {
    color: aliceblue;
    text-decoration: none;
    padding-top: 0.5em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    
}

.navbar a:hover{
    background-color: #697ca7;
}



button[type="submit"]{
    width: 10%;
}


.dropdown-container{
    display: none;
    position: relative;
    width: 100%;

}

.dropdown-menu:hover  ~ .dropdown-container{
    display: flex;
    width: 100%;
    height: 0;
    
    
}

.dropdown-content {
    position: absolute;
    top: -2px;
    right: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    background-color: var(--lightblue-background);
}

.dropdown-container:hover {
    display:flex !important;
    
}

.flex-container{
    display: flex;
    flex-direction: column;
    padding-top: 2%;
    padding-bottom: 2%;
    
}

.quizbox{
    border: 1px solid var(--darkblue-background);
    padding: 2%;
    
    display: flex;
    flex-direction: column;
}

.current-question {
    font-size: 1.1em;
}

.frageerstellen {
    display: flex;
    flex-direction: column;
    padding-bottom: 2%;
}

.antworten-erstellen {
    display: flex;
    flex-direction: column;
}

.container {
    display: flex;
    flex-direction: row; /* Elemente nebeneinander platzieren */
    justify-content: space-between; /* Platz zwischen den Bereichen einfügen */
    align-items: flex-start; /* Inhalte am oberen Rand ausrichten */
    gap: 20px; /* Abstand zwischen den Bereichen */
}

/*LOGIN*/
h2.active{
    color: #0d0d0d;
    border-bottom: 2px solid var(--mediumblue-background);
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    font-size: 1.3em;
}

h2.inactive {
    color: #cccccc;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    font-size: 1.2em;
}

#loginForm{
    display: flex;
    justify-content: center;
    padding-top: 5%;
    text-align: center;
}

.loginForm{
    width: 45%;
    height: fit-content;
    background-color: #f3f3f5;
    border: solid#ededf0;
    border-radius: 10px 10px 10px 10px;
    padding-bottom: 1%;
}

.logintext{
    padding: 2%;
    color: #0d0d0d;
    border-radius: 5px 5px 5px 5px;
    background-color: #eaeaec;
    text-decoration: none;
    border: none;
    width: 70%;
    margin: 3%;
    text-align: center;
}

input[type="submit"]:hover{
    background-color: var(--darkblue-background);
}

#loginFooter>a{
    text-decoration: none;
    color: #0d0d0d;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.loginbutton{
    background-color: var(--lightblue-background);
    border: none;
    padding-top: 2%;
    padding-bottom: 2%;
    padding-left: 4%;
    padding-right: 4%;
    color: aliceblue;
    border-radius: 5px 5px 5px 5px;
    margin-bottom: 5%;
    margin-top: 3%;
}





/* Styling für Formularelemente */
.form-group {
    display: flex;
    flex-direction: row; /* Elemente nebeneinander anordnen */
    align-items: center; /* Vertikale Zentrierung */
    margin-bottom: 15px; /* Abstand zwischen den Gruppen */
}



.form-group label {
    margin-right: 10px; /* Abstand zwischen Label und Textarea */
}

textarea {
    margin-right: 20px; /* Abstand zwischen Textarea und Radiobuttons */
}

.radio-group {
    display: flex;
    align-items: center; /* Radiobuttons vertikal zentrieren */
    gap: 10px; /* Abstand zwischen Radiobuttons und Labels */
}

.left form {
    display: flex;
    flex-direction: column; /* Eingabeelemente und Optionen vertikal anordnen */
    gap: 20px; /* Abstand zwischen den Abschnitten */
}

.left form button {
    align-self: flex-start; /* Button linksbündig ausrichten */
}
.radio-group-right {
    display: flex;
    flex-direction: column; /* Elemente untereinander anordnen */
    gap: 10px; /* Abstand zwischen den Radiobuttons */
    padding: 10px; /* Innenabstand für bessere Lesbarkeit */
}

.radio-group-right input[type="radio"] {
    margin-right: 10px; /* Abstand zwischen Radiobutton und Label */
}


/*FOOTER*/


footer {
    background-color: #415b90;
    max-height:10%;
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    padding: 1%;
}

.footer-text {
    color: aliceblue;
    padding-right: 2%;
    font-size: 0.8em;
    text-align: right;
}
 .footer-text >a{
    
    text-decoration: none;
    color: aliceblue;
    text-align: right;
 }



/* von : https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_tooltip'*/
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
  }
  
  .tooltip .tooltiptext {
    visibility: hidden;
    width: 180px;
    height:115px;
    background-color: #6c6b6b;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    font-size: medium;
    padding: 5px 5px;
    position: absolute;
    z-index: 1;
    bottom: 120%;
    left: 50%;
    margin-left: -90px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
  }
  
  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }


  .reihe{
    display:flex;
    align-items:center;
    margin-bottom: 10px;
  }
  .form-label{
    width: 350px;
  }
  .form-input{
    width: 200px;
    padding: 5px;
  }