@import url('https://fonts.googleapis.com/css2?family=Alata&display=swap');

#navbar {
    width: 100%;
    height: 90px;
    box-shadow: 0px 4px 4.1px 0px rgba(0, 0, 0, 0.25);
    background: #F2F2F2;
    display: grid;
    grid-template-columns: 140px 1fr 0.5fr;
    grid-column-gap: 5%;
}

#navbar_logo {
    display: flex;
    justify-content: center; /* Horizontal zentrieren */
    align-items: center; /* Vertikal zentrieren */
    height: 100%; /* Hier die Höhe deines Containers anpassen */
}
#navbar_logo img {
    max-width: 50%; /* Das Bild nimmt maximal die Breite seines Containers an */
    height: auto; /* Das Verhältnis von Breite zu Höhe beibehalten */
    margin: 0;
}
.navbar_elements {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    justify-content: center; /* Horizontal zentrieren */
    align-items: center; /* Vertikal zentrieren */
}

.navbar_elements p{
    text-align: center;
    font-family: "Alata", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 19px;
}

.navbar_elements p a {
    text-decoration: none;
    color: #0A1126;
    transition: color 250ms;
}

.navbar_elements p a:hover {
    color:   #2ABFB0;
}

.active {
    color:  #2ABFB0;
}

#navbar_language {
    display: flex;
    justify-content: right; /* Horizontal zentrieren */
    align-items: center; /* Vertikal zentrieren */
    flex-direction: row;
    margin-right: 25px;
}

#navbar_language_container {
    display: flex;
    justify-content: center; /* Horizontal zentrieren */
    align-items: center; /* Vertikal zentrieren */
    flex-direction: row;
    border-radius: 14px;
    background: #FFF;
    height: 45px;
    width: 210px;
}

#navbar_language_container img {
    max-width: 15%; /* Das Bild nimmt maximal die Breite seines Containers an */
    height: auto; /* Das Verhältnis von Breite zu Höhe beibehalten */
    margin: 0;
}

#navbar_language_container select {
    text-align: center;
    font-family: "Alata", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    margin-left: 16px;
    border: 0px;
    width: 60%;
    background-color: #FFF;
}

#navbar_language_container select:focus {
    border: 0px;
}

#navbar_language_container select:after {
    border: 0px;
}

#dropdown {
    display: none;
}

#dropdown-btn {
    display: none;
}

@media screen and (min-width: 320px) and (max-width: 999px) {
    #navbar {
        height: 55px;
        background-color: white;
        border-bottom: 2px solid #F2F2F2;
        box-shadow:none;
    }

    #navbar_logo {
        align-items: left;
        justify-content: left;
    }

    #navbar_logo img {
        max-width: 35%;
        margin-left: 25px;
    }
    
    .navbar_elements {
        display: none;
    }

    #navbar_language {
        display: none;
    }

    #dropdown-btn {
        display: flex;
        justify-content: right;
        align-items: center;
        grid-column-start: 3;
        grid-column-end: 4;
    }

    #dropdown-btn img {
        width: 44px;
        height: 44px; /* Das Verhältnis von Breite zu Höhe beibehalten */
        margin: 0;
        margin-right: 25px;
    }
    #dropdown {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        display: block; /* Initial anzeigen, damit die Höhe berechnet werden kann */
    }
    #dropdown.showDrop {
        max-height: 500px;
    }
    .dropdown_elements {
        display: grid;
        grid-template-columns: 1fr;
    }

    .drop_navbar_language {
        width: 100%;
        justify-content: right; /* Horizontal zentrieren */
        align-items: center; /* Vertikal zentrieren */
        flex-direction: row;

    }

    #drop_navbar_language_container {
        display: flex;
        justify-content: center; /* Horizontal zentrieren */
        align-items: center; /* Vertikal zentrieren */
        flex-direction: row;
        background: #F2F2F2;
        height: 45px;
        width: 100%;
    }
    
    #drop_navbar_language_container img {
        max-width: 10%; /* Das Bild nimmt maximal die Breite seines Containers an */
        height: auto; /* Das Verhältnis von Breite zu Höhe beibehalten */
        margin: 0;
    }
    
    #drop_navbar_language_container select {
        text-align: center;
        font-family: "Alata", sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 18px;
        margin-left: 16px;
        border: 0px;
        width: 60%;
        background: #F2F2F2;
        color: black;

    }

    .dropdown_elements p {
        font-family: "Alata", sans-serif;
        margin-left: 25px;
    }

    .dropdown_elements p a {
        text-decoration: none;
        color: #0A1126;
    }
    
}