.site-header {
    position: sticky;
    top: 0;
    background: #fff; /* helles Header-Background */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 20px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* On narrow/mobile screens allow full-bleed and respect iOS safe-area insets */
@media (max-width: 700px) {
    .site-header {
        left: 0;
        right: 0;
        width: 100vw;
        box-sizing: border-box;
        padding-left: calc(20px + env(safe-area-inset-left));
        padding-right: calc(20px + env(safe-area-inset-right));
    }
}

/* allow header items to wrap instead of overlapping content */
.site-header {
    flex-wrap: wrap;
}

.site-header .logo img {
    height: 45px; /* reduced ~10% to shrink logo without changing proportions */
    width: auto;
}

/* make logo and nav flexible so they can shrink/wrap on narrower screens */
.site-header .logo {
    flex: 0 0 auto;
}
.main-nav {
    flex: 1 1 auto;
    min-width: 0; /* allow shrinking */
}
.main-nav ul {
    overflow: hidden;
    flex-wrap: wrap;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

/* make the nav a flex container so the language switch can be pushed to the right */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav ul li a {
    color: #333; /* graue Schrift vom Logo */
    font-weight: bold;
}

.language-switch a.active {
    font-weight: bold;
    color: #c00;
}

/* align the language switch to the right within the nav */
.language-switch {
    margin-left: auto;
    text-align: right;
}

.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}
