/* ===========================================
   NAVIGATION / MENÜ
=========================================== */

/* Allgemeiner Navigationscontainer */
.navbar {
    display: flex;
    flex-wrap: wrap; /* für responsive Höhe */
    gap: 5%;
    align-items: center;
}

/* Home-Logo-Button */
.nav-logo-homebutton {
    background: url("/assets/images/png/Transparent.png") no-repeat left;
    background-size: contain;
    height: 9em;
    width: 15%;
    max-width: 20%;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

/* ===========================================
   DESKTOP NAVIGATION BUTTONS
=========================================== */
.btn-group {
    width: 80%;
    text-align: right;
    gap: 10px; /* Abstand zwischen Buttons */
    padding-top: 3%;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-group button,
.dropdown .dropbtn {
    padding: 10px 15px;
    font-size: 1.5em;
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: white;
    border-radius: 5px;
    white-space: nowrap; /* Kein Umbruch */
    min-width: 160px;
    transition: background-color 0.3s;
}

.btn-group button:hover,
.dropdown .dropbtn:hover,
.btn-group button:focus,
.dropdown .dropbtn:focus {
    background-color: #8c52ff;
    outline: none;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 10;
    border-radius: 5px;
}

.dropdown-content a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: black;
    transition: background-color 0.3s;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
    background-color: #f1f1f1;
    color: #27133a;
    outline: none;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

/* ===========================================
   MOBILE MENU ICON
=========================================== */
.menu-icon {
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}

/* Overlay-Menü */
.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.9);
    overflow-x: hidden;
    transition: width 0.5s ease;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
}

.overlay a {
    padding: 8px 0;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: color 0.3s;
    text-decoration: none;
}

.overlay a:hover,
.overlay a:focus {
    color: #f1f1f1;
    outline: none;
}

.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

@media screen and (max-height: 450px) {
    .overlay a { font-size: 20px; }
    .overlay .closebtn { font-size: 40px; top: 15px; right: 35px; }
}

/* ===========================================
   RESPONSIVE NAVIGATION
=========================================== */
/* Desktop große Bildschirme */
@media only screen and (min-width: 1300px) {
    .btn-group span { display: none; }
}

/* Mobile / Tablet */
@media only screen and (max-width: 1920px) {
    .btn-group button { display: none; }
    .btn-group span {
        display: block;
        float: right;
        font-size: 30px;
        cursor: pointer;
    }
}
