header {
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    width: 100vw;
    background-color: var(--white);
    padding: 0.75rem;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
}

body:has(main.page-home) header {
    display: none;
}

.header--sticky {
    position: sticky;
}

.header--fixed {
    position: fixed;
}

.header--container {
    position: relative;
    display: block;
    margin: 0 auto;
    width: fit-content;
    height: 95px;
}

.header--fixed ~ main,
.header--sticky ~ main {
    padding-top: var(--header-height);
}

.header--line:first-child {
    position: relative;
    z-index: 10;

    background-image: var(--background-url),
    linear-gradient(
            var(--primary-dark),
            var(--primary-dark) calc(80 / 91 * 100%),
            var(--secondary-dark) calc(80 / 91 * 100%),
            var(--secondary-dark) calc(89 / 91 * 100%),
            transparent calc(89 / 91 * 100%));
    background-position: top center;
    background-repeat: no-repeat;
    background-size: auto 81.5%;
}

.header--line-inner {
    position: relative;

    display: flex;
}

.header--logo {
    display: block;
    width: auto;
    height: auto;
}

.header--logo-link:not(:has(picture)) img {
    width: var(--width-mobile);
    height: var(--height-mobile);
}

.header--logo-link {
    min-width: var(--width-mobile);
    min-height: var(--height-mobile);
    margin: 0 auto;
}

.header--logo:focus-visible {
    outline: -webkit-focus-ring-color auto 0px;
}

.header--line:nth-child(2) {
    margin-top: -1rem;
    background: var(--primary);

    transition: transform var(--transition-time);
}

body:not(:has(.header--modal.is-open)) header[data-visible="false"] .header--line:nth-child(2) {
    transform: translateY(-100%);
}

.header--nav {
    display: flex;
    align-items: center;
}

.header--nav.header--modal:not(.header--modal__desktop-only) {
    flex-direction: column;
}

.header--nav-links {
    display: flex;
}

.header--nav.header--modal:not(.header--modal__desktop-only) .header--nav-links {
    flex-direction: column;

    width: 100%;
    padding: 0;
}

.header--nav-item,
.header--component-menu-item__item {
    border-bottom: .063rem solid var(--primary);
}

.header--nav-item.componentAccordion,
.header--component-menu-item__item--link {
    display: block;
    padding: 0.5rem 1rem;
}

.header--nav-item:last-child,
.header--component-menu-item__item:last-child {
    border-bottom: none;
}

.header--component-menu-item__subitem--link {
    display: block;
    padding-left: 1rem;
}

header .header--accordion-title {
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 0;
}

.header--nav:not(.header--modal):not(.header--modal__mobile-only) .header--accordion-content {
    position: absolute;
}

.header--search-burger-wrapper {
    position: relative;
    z-index: 7;

    background-color: var(--primary);
    box-shadow: var(--shadow);
}

.header--search-burger {
    display: flex;
    justify-content: space-between;

    width: var(--content-width);
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: space-between;
    width: var(--content-width);
    margin: -.5rem auto 0;
    padding: 1rem 0 .25rem;
}

.header--burger {
    pointer-events: visible;
    cursor: pointer;
}

.header--search-lang button {
    border: none;
    background: none;
    min-width: 48px;
}

.header--burger path {
    stroke: var(--white);
    transform-origin: center center;
    transition: transform var(--transition-time);
}

/* MODALS */

.header--modal {
    position: fixed;
    top: var(--header-height);
    left: 0;
    z-index: 5;

    width: 100vw;
    transform: translateY(calc(-100% - 6rem));

    overflow: auto;
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow);

    transition: transform var(--transition-time);
}

.header--modal.is-open {
    transform: translateY(-.25rem);
}

.header--nav:not(
.header--modal),
.header--modal__desktop-only {
    position: static;

    height: auto;
    width: auto;

    transform: none;
    opacity: 1;

    overflow: auto;
}

.header--nav-links {
    list-style: none;
}

header .header--accordion-title:after {
    position: static;
    background-image: var(--dropdown-arrow-background--text);
}

@media screen and (min-width: 64rem) /* 1024px */ {

    /* :root {
        --navbar-shadow-blur: 0.25rem;
        --navbar-shadow-color: hsla(0, 0%, 0%, 0.250);
        --navbar-shadow: 0rem 0.25rem var(--navbar-shadow-blur) 0rem var(--navbar-shadow-color);
    } */
    /* STICKY ON SCROLL HEADER */
    header[data-visible="sticky"] .header--container,
    header[data-visible="true"] .header--container,
    header[data-visible="false"] .header--container {
        left: 0;
        right: 0;
        transition: top var(--transition-time, 0.2s);
    }

    header[data-visible="sticky"] .header--container,
    header[data-visible="true"] .header--container {
        top: 0;
    }

    /* header[data-visible="sticky"] .header--container {
        box-shadow: var(--navbar-shadow);
    } */
    .header--line:first-child {
        pointer-events: none;
    }

    .header--logo-link,
    .header--search-lang {
        pointer-events: all;
    }

    .header--logo-link:not(:has(picture)) img {
        width: var(--width-desktop);
        height: var(--height-desktop);
    }

    .header--line:nth-child(2) {
        margin-top: -1.5rem;
    }

    /* HEADER MODALS */
    .header--nav:not(.header--modal),
    .header--nav.header--modal:not(.header--modal__desktop-only) {
        display: flex;
        flex-direction: row;
    }

    .header--nav.header--modal:not(.header--modal__mobile-only) {
        flex-direction: column;
    }

    .header--nav.header--modal.header--modal__mobile-only .header--nav-links {
        flex-direction: row;
    }

    .header--nav.header--modal.header--modal__desktop-only .header--nav-links {
        flex-direction: column;
    }

    .header--nav:not(.header--modal) .header--accordion-content,
    .header--nav.header--modal.header--modal__mobile-only .header--accordion-content {
        position: absolute;
    }

    .header--modal__mobile-only {
        position: static;

        height: auto;
        width: auto;

        transform: none;
        opacity: 1;
    }

    .header--modal__desktop-only {
        position: fixed;

        height: calc(100vh - var(--header-height));
        width: 100vw;

        transform: translateX(100%);
    }

    .header--modal__desktop-only .header--nav-links {
        flex-direction: column;
    }

    /**
    PROJECT SPECIFIC
    **/
    .header * {
        font-size: .875rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .header--search-lang {
        position: absolute;
        right: 0;
        top: calc(50% - .5rem);
        transform: translateY(-50%);
    }

    .header--search-burger-wrapper {
        display: none;
    }

    .header--nav {
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .header--nav-links {
        width: var(--content-width);
        max-width: var(--max-content-width);
        margin: .625rem auto .125rem;
        justify-content: start;
    }

    .first-after-half {
        margin-left: auto;
    }

    .header--nav-links:not(:has(*)) {
        display: none;
    }

    .header--accordion-content {
        transform: translate(-1rem, -.5rem);

        padding: .5rem 0;
    }

    .header--nav-item,
    .header--component-menu-item__item {
        border-bottom: none;
    }

    .header--nav-subitems {
        padding: .75rem 0 .25rem;

        background: linear-gradient(white, white .6rem, hsla(0, 0%, 100%, 90%) .7rem);
        border-radius: 0 0 .25rem .25rem;
        box-shadow: var(--shadow);
        list-style: none;
    }

    .header--component-menu-item__subitem {
        padding-left: 0;
    }

    .header--component-menu-item__subitem--link {
        padding: .25rem 1rem;
    }

}