CSS

/*
 * Schablone für das Navigationsmenü.
 * Dieser Code steuert das Aussehen des Menüs auf Desktop- und Mobilgeräten.
 */

/* ==================================== */
/* Desktop Navigation                   */
/* ==================================== */
.navbar {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-list li a {
    color: #333333;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    font-size: 0.95em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

.nav-list li a:hover {
    background-color: rgba(0, 136, 204, 0.1);
    color: #0088cc;
}

/* ==================================== */
/* Mobile Navigation & Hamburger        */
/* ==================================== */
.hamburger-icon {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-icon .bar {
    width: 100%;
    height: 3px;
    background-color: #0088cc;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 900px) {
    .hamburger-icon {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 280px;
        position: fixed;
        top: 0;
        right: -280px;
        height: 100vh;
        background-color: #2d3748;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.4);
        z-index: 1001;
        transition: right 0.35s ease-in-out;
        padding-top: 60px;
        box-sizing: border-box;
    }

    .nav-list.active {
        right: 0;
        display: flex;
    }

    .nav-list li {
        width: 100%;
    }
    
    .nav-list li a {
        padding: 18px 25px;
        text-align: left;
        color: #e2e8f0;
        font-weight: bold;
        border-radius: 0;
        border-bottom: 1px solid #4a5568;
    }
    
    .nav-list li:last-child a { 
        border-bottom: none; 
    }

    .nav-list li a:hover {
        background-color: #4a5568;
        color: #63b3ed;
    }
    
    .hamburger-icon.active {
        position: fixed;
        right: 20px;
        top: 22px;
    }

    .hamburger-icon.active .bar {
        background-color: #e2e8f0;
    }
    .hamburger-icon.active .bar:nth-child(2) { 
        opacity: 0; 
    }
    .hamburger-icon.active .bar:nth-child(1) { 
        transform: translateY(8px) rotate(45deg); 
    }
    .hamburger-icon.active .bar:nth-child(3) { 
        transform: translateY(-8px) rotate(-45deg); 
    }
}
