/* Grundlegende Navbar-Stile */
/* Hellere und freundlichere Navbar-Stile */
.navbar {
    background-color: #f0f7ff;
    /* Sehr helles Blau statt dunkel */
    padding: clamp(10px, 1.5vw, 20px) clamp(15px, 2vw, 30px);
    display: flex;
    justify-content: center;
    /* Zentriert die Navigation */
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtile Abgrenzung */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    /* Sanfter Schatten */
}

/* Navigation Links */
.navbar-list {
    display: flex;
    justify-content: center;
    /* Zentriert die Links */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: clamp(15px, 3vw, 40px);
}

.navbar-list a {
    color: #4a6fa5;
    /* Mittelblau für guten Kontrast */
    font-size: clamp(0.9rem, 1.1vw, 1.2rem);
    font-weight: 500;
    /* Etwas dicker für bessere Lesbarkeit */
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    /* Padding für den Rahmen */
}

.navbar-list a:hover {
    color: #6aa5d8;
    /* Helleres Blau beim Hover */
}

/* Hover-Effekt mit Rahmen statt Unterstreichung */
.navbar-list a:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #6aa5d8;
    border-radius: 4px;
    box-sizing: border-box;
    animation: borderFadeIn 0.3s ease forwards;
}

/* Animation für den Rahmen */
@keyframes borderFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Entfernung des alten Unterstrich-Effekts */
/* .navbar-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #6aa5d8;
    transition: width 0.3s ease;
}

.navbar-list a:hover::after {
    width: 100%;
} */

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Logo-Styling */
.navbar .logo {
    position: absolute;
    /* Position angepasst */
    left: 20px;
    /* Position angepasst */
    margin-right: 20px;
}

.navbar .logo img {
    height: clamp(30px, 5vw, 50px);
    width: auto;
    border-radius: 5px;
    /* Abgerundete Ecken */
}

.navbar .logo h1 {
    margin: 0;
    font-size: clamp(1.2rem, 1.5vw, 1.8rem);
    color: #ecf0f1;
}

/* Responsive Design für kleine Bildschirme */
/* Responsive Design Anpassungen */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
    }

    .navbar .logo {
        position: static;
        /* Zurück zur normalen Position */
        margin-right: 0;
        margin-bottom: 15px;
    }

    .navbar-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* Responsive Design für verschiedene Bildschirmgrößen */

/* Mittlere Bildschirme (Laptops, Desktops) */
@media (min-width: 1200px) and (max-width: 1599px) {
    .navbar-list a {
        font-size: 1.05rem;
    }
}

/* Größere Bildschirme (größere Desktops) */
@media (min-width: 1600px) and (max-width: 1919px) {
    .navbar {
        padding: 15px 40px;
    }

    .navbar-list a {
        font-size: 1.1rem;
    }

    .navbar-list {
        gap: 35px;
    }
}

/* Sehr große Bildschirme (4K und größer) */
@media (min-width: 1920px) {
    .navbar {
        padding: 20px 50px;
    }

    .navbar-list a {
        font-size: 1.2rem;
    }

    .navbar-list {
        gap: 40px;
    }
}

/* Kleine Bildschirme (Tablets, Mobilgeräte) */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .navbar {
        padding: 10px;
    }

    .navbar-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    /* Wenn JavaScript verwendet wird, um das Menü zu toggeln */
    .navbar.collapsed .navbar-list {
        display: none;
    }
}