header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--secondary-color);
    background-color: var(--background-color);
    padding: 15px 15px 5px 15px;
}

header #logo {
    width: auto;
    height: 120px;
}

header .links {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-bottom: 5px;
}

header .links .item {
    color: var(--secondary-color);
    position: relative;
    transition: all 0.1s ease-out;
}

header .links .item:hover {
    opacity: 0.6;
}

header .links .item#selected {
    border-bottom: 1px var(--primary-color) solid;
}

#menu-toggle {
    display: none;
}

#menu-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

#menu-icon img {
    width: 34px;
    height: 34px;
}

#menu-icon:hover {
    opacity: 0.6;
}

#close-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

#close-menu img {
    width: 34px;
    height: 34px;
}

#close-menu:hover {
    opacity: 0.6;
}

#fullscreen-menu-container {
    position: fixed;
    inset: 0;
    width: 100%;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    overflow: auto;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#fullscreen-menu-container {
    min-height: -webkit-fill-available;
    min-height: 100svh;
    min-height: 100dvh;
}

#fullscreen-menu {
    position: relative;
    width: clamp(150px, 100vw, 1000px);
    min-height: 100%;
    max-height: none;
    overflow-y: auto;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    background-color: var(--background-color);
}

#fullscreen-menu .links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    margin-top: 25px;
}

#fullscreen-menu .item {
    color: var(--secondary-color);
    opacity: 1;
    text-decoration: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.1s ease-out;
}

#fullscreen-menu .item:hover {
    opacity: 0.6;
}

#fullscreen-menu label {
    font-weight: bold;
}

hr {
    width: 100%;
    box-sizing: border-box;
    border: 0 none transparent;
    border-top: 3px solid var(--secondary-color);
    border-radius: 10px;
}

#menu-toggle:checked~#fullscreen-menu-container {
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 760px) {
    #fullscreen-menu {
        display: none;
    }

    #menu-icon {
        display: none;
    }

    header .links {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px;
        margin-top: 4px;
        border: 1px solid rgba(212, 238, 236, 0.16);
        border-radius: 999px;
        background-color: rgba(255, 255, 255, 0.03);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
        padding-bottom: 8px;
    }

    header .links .item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0 16px;
        border: 1px solid transparent;
        border-radius: 999px;
        color: rgba(212, 238, 236, 0.86);
        font-size: 0.95rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        background-color: transparent;
        transition:
            color 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
    }

    header .links .item:hover {
        opacity: 1;
        color: var(--primary-color);
        background-color: rgba(255, 255, 255, 0.05);
        border-color: rgba(212, 238, 236, 0.08);
    }

    header .links .item#selected {
        border-bottom: none;
        color: var(--background-color);
        background-color: var(--secondary-color);
        border-color: rgba(255, 255, 255, 0.2);
    }

    header .links .item#selected:hover {
        color: var(--background-color);
        background-color: var(--secondary-color);
    }
}

.social-media-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-media-links a {
    transition: all 0.2s;
}

.social-media-links a img {
    width: auto;
    /* ggf. anpassen */
    height: 30px;
}

.social-media-links a:hover {
    opacity: 0.6;
    /* kleiner Hover-Effekt als Beispiel */
}

html:has(#menu-toggle:checked),
body:has(#menu-toggle:checked) {
    overflow: hidden;
}
