/* Header-Stile */
.header-wrapper {
    width: 100%;
    margin: 0;
    background-color: lightgrey;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.header-wrapper .headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-wrapper .headline h1 {
    margin: 0;
}

.header-wrapper .user-info {
    text-align: right;
}

.header-wrapper::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px; /* Höhe des Balkens */
    background-color: red; /* Farbe des Balkens */
    margin-top: 10px; /* Abstand zum Inhalt des Headers */
}

/* Navigation-Stile */
.navigation-wrapper {
    width: 100%;
    background-color: lightgrey;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.navigation-wrapper nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
}

nav ul li a:hover,
nav ul li a:focus {
    background-color: #ddd;
}

nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: lightgrey;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    width: 200px;
}

nav ul li:hover > ul,
nav ul li:focus-within > ul {
    display: flex;
}

nav ul li ul li a {
    padding: 10px 20px;
}

.nav-category {
    padding: 10px;
    font-weight: bold;
    color: #ccc;
    text-transform: uppercase;
}


/* Responsive Anpassungen */
@media (max-width: 768px) {
    .header-wrapper {
        padding: 15px;
        margin: 0;
    }

    .header-wrapper .headline {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-wrapper .user-info {
        text-align: left;
        margin-top: 10px;
    }

    .navigation-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li ul {
        position: static;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        padding: 10px;
    }

    .header-wrapper .headline h1 {
        font-size: 20px;
    }

    .header-wrapper .user-info button {
        font-size: 14px;
    }

    nav ul li a {
        padding: 10px;
        font-size: 14px;
    }
}
