
@import url("variables.css");
/* map/static/map/navbar.css */
.custom-navbar {
    background-color: white;
    height: var(--navbar-height);
    display: flex;
    align-items: center;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.custom-navbar .container {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;

}

.custom-navbar-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-navbar-item {
    text-decoration: none;
    padding: 0.75rem 1rem; /* Erhöhter Padding */
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.2s ease;
    font-size: 1rem; /* Explizite Schriftgröße */
    font-weight: 500; /* Leicht fettere Schrift für bessere Lesbarkeit */
    color: #333; /* Einheitliche Farbe für Links und Labels */
    display: inline-flex; /* bessere vertikale Zentrierung */
    align-items: center;
    gap: 0.35rem; /* für Emojis/Icons */
    line-height: 1.2;
    min-height: 44px; /* gute Klickfläche */
}

.custom-navbar-item:hover {
    background-color: #f5f5f5;
    color: #5aeed1;

}

/* Dropdown Styles */
.custom-dropdown {
    position: relative;
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;  /* weiche Ecken für ganzes Menü */
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.25rem;    /* kleiner Innenabstand */
    overflow: hidden;    /* sauberes Clipping für Hover-Hintergründe */
}

.custom-dropdown:hover .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown-menu .custom-navbar-item {
    display: block;        /* füllt die Menüzellen */
    padding: 0.75rem 1rem; /* konsistent mit Basis */
    border-radius: 4px;    /* konsistent mit Basis */
}

.custom-dropdown-menu .custom-navbar-item:hover {
    background-color: #f5f5f5;
    color: #5aeed1;
}

.custom-dropdown-menu .custom-navbar-item:last-child {
    border-bottom: none;
}

/* Dropdown Arrow */
.custom-dropdown > .custom-navbar-item::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    vertical-align: middle;
    border-top: 4px solid #333;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.2s ease;
}

.custom-dropdown:hover > .custom-navbar-item::after {

    transform: rotate(180deg);


}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-navbar-menu {
        gap: 0.5rem;
    }

    .custom-navbar-item {
        padding: 0.5rem 0.6rem;
        font-size: 1rem; /* nicht reduzieren für Konsistenz */
    }
}

/* Zusätzlich zu bestehender navbar.css */
.dropdown-label {
    cursor: pointer;
    user-select: none;
}

.dropdown-label:hover {
    background-color: #f5f5f5;
    color: #5aeed1;
}




/* Tastaturfokus sichtbar machen */
.custom-navbar-item:focus-visible {
    outline: 2px solid #5aeed1;
    outline-offset: 2px;
}
