body {
    background-color: #FDFAF6;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

html {
    scroll-behavior: smooth;
}

select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: var(--light-color);
    color: var(--primary-color);
    font-size: 1rem;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none; /* entfernt das Standard-Dropdown-Icon (optisch neutraler) */
    outline: none;
    cursor: pointer;
    margin-bottom: 20px;
}

select:focus {
    border-color: var(--unit-color);
    box-shadow: 0 0 10px var(--unit-color);
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #DDF6D2;
    padding: 10px;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100; 
    box-sizing: border-box;
}

.linksOben {
    display: flex;
    align-items: center;
    gap: 0px; /* Abstand zwischen Icon und Text */
    color: #5A827E;
    font-size: 20px;
    font-weight: bold;
}


.hamburger {
    font-size: 24px;
    cursor: pointer;
    color: #5A827E;
    transition: transform ease 0.3s; /*smoothness bei hover*/
    z-index: 201;
    margin-right: 20px; /* Abstand zum title */
}

#closeHam {
    margin-left: 10px;
}

.hamburger:hover { /*Hover-effekte*/
    transform: scale(1.05);
    color: #4B352A;
}
#closeHam:hover {
    font-weight: 500;
    transform: scale(1.001);
}
.profile-div div{
    color: #5A827E;
    border: none;
    outline: 2px solid #5A827E;
    width: 45px;
    font-weight: bold;
    padding: 8px;
    background-color: #B0DB9C;
    border-radius: 10px;
    max-width: 120px;
    margin-right: 30px;
    transition: transform ease 0.3s; /*smoothness bei hover*/
}

.profile { 
    transition: transform ease 0.3s; /*smoothness bei hover*/
}
.profile:hover { /*Hover-effekte*/
    transform: scale(1.05);
}

#sidebar {
    height: 100%;
    width: 350px;
    position: fixed;
    top: 0;
    left: -400px; /* Startposition außerhalb des Bildschirms */
    background-color: #CAE8BD;
    overflow-x: hidden;
    transition: left 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* ANIMATION */
    padding-top: 20px;
    z-index: 200;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2);
}

#sidebar.active {
    left: 0 !important ; /* Reinfliegen */ 
}

#sidebar ul li {
    padding: 10px 20px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    list-style-type: none; /* hier könnte man stichpunktsymbole einfügen */
}

#sidebar ul li a {
    text-decoration: none; /* entfernt Unterstreichung */
    color: #5A827E;
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s;
    transition: transform ease 0.3s; /*smoothness bei hovereffekt */
}

#sidebar ul li a:hover {
    color: #4B352A; /* dunkler beim Hover */
    transform: scale(1.02); /*größer bei hover*/
}

#sidebar.active ul li {
    opacity: 1;
    transform: translateX(0);
}

#sidebar hr.divider {
    border: 0;
    height: 1px;
    background: #5A827E;
    background-image: linear-gradient(to right, #5A827E, #5A627E);
    margin-bottom: 40px; /* Erhöht den Abstand unten*/
    margin-top: 40px;
    width: 70%; /* Verringert die Breite des Dividers */
    margin-left: auto;
    margin-right: auto;
}

/* ANIMATION VON CHAT */
#sidebar.active ul li:nth-child(1) {
    transition-delay: 0.1s;
}
#sidebar.active ul li:nth-child(2) {
    transition-delay: 0.2s;
}
#sidebar.active ul li:nth-child(3) {
    transition-delay: 0.3s;
}
#sidebar.active ul li:nth-child(4) {
    transition-delay: 0.4s;
}


.container {
    display: flex;
    flex-direction: column; /* Elemente untereinander */
    align-items: center;     /* Zentriert sie horizontal */
    max-height: 2800px;
    text-align: center;
    margin-top: 0px;
    padding: 20px 20px;
    gap: 80px;
    position: relative;
    min-height: 100vh;
}

h1, .title {
    color: #5A827E;
    cursor: pointer;
    font-size: 26px;
}
h2 {
    color: #8A784E;
    font-size: 22px;
    font-weight: 400;
}

#headIMG {
    width: 62px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;  /* <-- verhindert extra spacing */
}

#headIMG:hover {
    cursor: pointer;
}

#overlay { /*wird bei sidebarmenu aktiv*/
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 199;
}

#overlay.active {
    opacity: 1;
    visibility: visible;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 40px;
    background-color: #FDFAF6;
    border-radius: 20px;
    gap: 40px;
    transform: translateX(100px);
    transition: all 0.6s ease-out;
}
  
  .feature.reverse {
    transform: translateX(-100px);
    flex-direction: row-reverse;
}

  .feature.vertical {
    flex-direction: column-reverse;
}

  .feature .btn {
    text-decoration: none;
    background-color: #DDF6D2;    
    color: #4B352A;                 
    border: none;
    border-radius: 15px;           
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 5px;
}
  
  .feature .btn:hover {
    background-color: #A0C878;     
    transform: scale(1.05);        
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Sichtbar: Animation wird aktiviert */
.feature.visible {
    opacity: 1;
    transform: translateX(0);
}
  
  .text {
    flex: 1;
    min-width: 280px;
}
  
  .text h1,
  .text h2 {
    color: #84AE92;
    margin-bottom: 10px;
}
  
  .text p {
    font-size: 1.1rem;
    line-height: 1.6;
}
  
  .gif {
    flex: 1;
    min-width: 280px;
    max-width: 720px;
    display: flex;
    justify-content: center;
    transition: transform ease .3s;
}

  .gif.small {
    max-width: 140px;
    display: flex;
    justify-content: center;
    transition: transform ease .3s;
}

  .gif:hover{
    transform: scale(1.05);
}
  
  .gif img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
  

footer {
    background-color: #A0C878;
    padding: 15px 20px;
    text-align: center;
    font-size: 0.9em;
    color: #ffffff;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.1);
}
footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
}
footer a:hover {
    text-decoration: underline;
}

.wave-divider { /*Effekt aus dem internet: https://getwaves.io/ */
    position: absolute;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    z-index: 90;
    bottom: 0;
}
  
  .wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

.full-viewport { /* das dient dazu dass beim laden der homepage die welle immer ganz unten ist */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center; 
}

/* Flexibilität und Responsive Design für Tablet */
@media (max-width: 768px) {
    .text h1,
    .text h2 {
        margin-bottom: 10px; 
        /* Schriftgröße anpassen */
        font-size: 1.5rem;
    }
  
    .text p {
        font-size: 1rem !important;
        line-height: 1.6;
        /* Schriftgröße anpassen */
    }
  
    .gif {
        flex: 1;
        min-width: 280px;
        /* Größe anpassen */
    }

    .gif img {
        max-width: 100%;
        border-radius: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
         /* Größe anpassen */
    }
  
    .footer{
         font-size: 0.9em;
          /* Schriftgröße anpassen */
    }

    .feature .btn {
        border-radius: 15px;           
        padding: 10px 28px;
        font-size: 1rem;
        font-weight: 700;
        margin-top: 5px;
         /* Schriftgröße und evtl. margins anpassen */
    }

   .feature {
        flex-direction: column !important;  /* Forciert die vertikale Anordnung */
        align-items: center;                /* Zentriert die Elemente */
        gap: 30px;            
        transform: translateX(-10px);     /*fixt den bug mit dem nach rechts scrollen */        
    }

    .gif.small {
        max-width: 100px;    /* maximale Breite für das kleine GIF */
        width: auto;         
        height: auto;        /* Damit die Höhe proportional bleibt */
        margin: 0 auto;      /* Zentriert das GIF */
    }

    .title{
        font-size: 1rem;
    }

    .profile a {
        /* Anmeldebutton ragt leider über den rechten Rand hinaus -> hier der fix*/
        margin-right: 10px;
    }
    header {
        /* Anmeldebutton ragt leider über den rechten Rand hinaus -> hier der fix*/
        position: fixed !important;
        top: 0;
        width: 100vw;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 100; 
    }

    body{
        overflow-x: hidden;
    }
}

/* Für Handys */
@media (max-width: 480px) {
    /* dasselbe nur ähnlich */
     .text h1,
    .text h2 {
        margin-bottom: 10px; 
        /* Schriftgröße anpassen */
        font-size: 1.5rem;
    }
    .text p {
        font-size: 1rem !important;
        line-height: 1.6;
        /* Schriftgröße anpassen */
    }
    #handyWeg{
        font-size: 0rem;
    }
    .gif {
        flex: 1;
        min-width: 280px;
        /* Größe anpassen */
    }
  
    .gif img {
        max-width: 100%;
        border-radius: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
         /* Größe anpassen */
    }
  
    .footer{
         font-size: 0.9em;
          /* Schriftgröße anpassen */
    }

    .feature .btn {
        border-radius: 15px;           
        padding: 10px 28px;
        font-size: 1rem;
        font-weight: 700;
        margin-top: 5px;
         /* Schriftgröße und evtl. margins anpassen */
    }
}

/*Für den Zugangspin*/
#pin-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #FDFAF6;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Nunito', sans-serif;
    border: 2px dashed red;
}

#pin-screen input {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 10px;
    text-align: center;
}

#pin-screen button {
    margin-top: 15px;
    padding: 10px 20px;
    font-weight: bold;
    background-color: #A0C878;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#pin-screen p {
    color: red;
    margin-top: 10px;
}

*, *::before, *::after {
    box-sizing: border-box;
}








.dropdown {
    position: relative;
    display: inline-block;
    
}

.dropdown-button {
    width: 75%;
    height: 140%;
    background-color: #B0DB9C;
    color: #5A827E;
    padding: 12px;
    margin-right: 20px;
    font-size: 20px;
    border: 2px solid #5A827E;
    cursor: pointer;
    border-radius: 10px;
}


.dropdown-content {
    margin-right: 20px;
    display: none;
    position: absolute;
    color: #5A827E;
    background-color: #CAE8BD;
    border: 2px solid #5A827E;
    min-width: 140px;
    border-radius: 10px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0;
}

.dropdown-content a {
    padding: 12px 16px;
    color: #5A827E;
    font-weight: bold;
    text-decoration: none;
    display: block;
    position: relative;
}

.dropdown-content a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #5A827E; /* Farbe der Trennlinie */
    z-index: 3;
}

.dropdown-content a:last-child::after {
    display: none; /* Entfernt die Linie nach dem letzten Element */
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropdown-button {
    background-color: #5A827E;
    color: #CAE8BD;
}

.tooltip {
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.nurLehrer{
    display: none; /* am anfang versteckt */
}

.popup {
    display: block;
    position: fixed;
    text-align: center;
    top: 10%; /* Positioniert das Popup näher am oberen Rand */
    left: 50%;
    transform: translate(-50%, 0); /* Zentriert das Popup horizontal und lässt es am oberen Rand */
    background-color: #5A827E;
    color: #DDF6D2;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 1;
    transition: opacity 2s;
}