/* ------------------------------ */
/* ----------- Header ----------- */
/* ------------------------------ */

header {
    min-height: var(--height-header); 
}
 
.site_header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--height-header);
    background-color: var(--brand-white);
    -webkit-transition: top var(--transition-2), height var(--transition-1), padding var(--transition-1);
    -o-transition: top var(--transition-2), height var(--transition-1), padding var(--transition-1);
    transition: top var(--transition-2), height var(--transition-1), padding var(--transition-1);
}

.page-scrolled .site_header {
    top: calc(-1* var(--height-header));
}

.header-fixed .site_header, .menu-open .site_header {
    top: 0 !important;
}

.logged-in .site_header {
    top: 50px;
}

.logged-in.page-scrolled .site_header {
    top: calc(-1 * var(--height-header));
}

.logged-in.page-scrolled.header-fixed .site_header {
    top: 50px !important;
}
 
.site_header__content {
     width: 100%;
}
 
.site_header__row {
     margin-left: 0;
     margin-right: 0;
}

.site_logo {
    position: relative;
    z-index: 10;
    line-height: 1;
}

.site_logo img {
    max-width: 89px;
}


/* Language switcher */
.site_header__languages {
    position: relative;
    z-index: 15;
    background-color: var(--brand-black);
}

.site_header__languages .wpml-ls > ul {
    text-align: right;
}

.site_header__languages a {
    font-size: var(--font-size-1-5);
    color: var(--brand-white);
}

.site_header__languages .wpml-ls > ul > li {
    display: inline-block;
}

.site_header__languages .wpml-ls > ul > li > a {
    display: block;
    padding: 10px 18px 10px 0;

    background-image: url('data:image/svg+xml;utf8,<svg width="11" height="7" viewBox="0 0 11 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.5 6L10 1.39313L9.61599 1L5.5 5.21373L1.38401 1L1 1.39313L5.11599 5.60687L5.5 6Z" fill="%23ffffff" stroke="%23ffffff" stroke-width="0.5"/></svg>');
    background-repeat: no-repeat;
    background-position: center right;
}

.site_header__languages .wpml-ls-sub-menu {
    position: absolute;
    background: var(--brand-black);
    text-align: left;

    opacity: 0;
    visibility: hidden;
    z-index: -1;
    -webkit-transform: translateY(-8px);
    -ms-transform: translateY(-8px);
    transform: translateY(-8px);
    -webkit-transition: all var(--transition-1);
    -o-transition: all var(--transition-1);
    transition: all var(--transition-1);
}

.no-touchevents .site_header__languages .wpml-ls > ul > li:hover .wpml-ls-sub-menu, li.wpml-ls-item-legacy-dropdown.is-active .wpml-ls-sub-menu {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
}


.site_header__languages .wpml-ls-sub-menu li, .site_header__languages .wpml-ls-sub-menu li a {
    display: block;
}

.site_header__languages .wpml-ls-sub-menu li a {
    display: block;
    padding: var(--spacing-1) var(--spacing-4);

    -webkit-transition: var(--transition-2);
    -o-transition: var(--transition-2);
    transition: var(--transition-2);
}

.no-touchevents .site_header__languages .wpml-ls-sub-menu li a:hover {
    opacity: var(--opacity-1);
}


.site_header__languages .wpml-ls-sub-menu li:first-child a {
    padding-top: var(--spacing-2);
}

.site_header__languages .wpml-ls-sub-menu li:last-child a {
    padding-bottom: var(--spacing-4);
}



/* ------------------------------ */
/* ---- Headerimage / -video ---- */
/* ------------------------------ */

.site_cover {
    position: relative;
    z-index: 1;
    max-width: var(--width-container);
    margin-top: var(--height-header);
    margin-left: auto;
    margin-right: auto;
}

.site_cover__container {
   position: relative;
   height: 100%;
   width: 100%;
}

.site_cover__content {
    position: relative;
    z-index: 1;
    height: 100%;
    text-align: left;
}

.site_cover__content__headline {
    position: relative;
    width: 100%;
}

.headline__container {
    color: var(--brand-white);
}

.headline__container p, .headline__container .button {
    max-width: 620px;
}

.headline__container h1 {
    position: relative;
    font-size: var(--font-size-8);
    margin: 0 0 var(--spacing-6);
    max-width: 100%;
    text-align: left;
}

.headline__container p {
    margin-bottom: 0;
}

.headline__container p + .button {
    display: inline-block;
}


/* Bottom */
.site_cover__bottom {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
}

.site_cover__bottom.intro-animation {
    -webkit-transition-delay: calc(var(--transition-delay) * 6);
    -o-transition-delay: calc(var(--transition-delay) * 6);
    transition-delay: calc(var(--transition-delay) * 6);
}

.site_cover__bottom a {
    position: relative;
    display: block;
    height: 70px;
    width: 48px;
    margin: 0 auto;
    padding: 10px 15px;
}

.site_cover__bottom svg {
    -webkit-transition: var(--transition-2);
    -o-transition: var(--transition-2);
    transition: var(--transition-2);
    -webkit-animation: MoveUpDown 2s linear infinite;
    animation: MoveUpDown 2s linear infinite;
}

.no-touchevents .site_cover__bottom a:hover svg {
    opacity: var(--opacity-1);
}

@-webkit-keyframes MoveUpDown {
    0%, 100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    
    50% {
        -webkit-transform: translateY(10px);
        transform: translateY(10px);
    }
}


@keyframes MoveUpDown {
    0%, 100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    
    50% {
        -webkit-transform: translateY(10px);
        transform: translateY(10px);
    }
}



/* ------------------------------ */
/* -------- Media Queries ------- */
/* ------------------------------ */

@media all and (min-width: 768px) {

    .site_logo a {
        display: inline-block;
        padding-right: 14px;
        margin-right: 10px;
        border-right: 1px solid #E0E4E9;
    }
   
    .site_logo span {
       font-size: var(--font-size-1-5);
    }

    .site_header__languages {
        height: 42px;
    }

    .site_header__languages .wpml-ls-sub-menu {
        top: 42px;
    }

    .header--cover-big .site_cover {
        height: calc(100vh - var(--height-header));
    }
    
    .header--cover-medium .site_cover {
        height: calc(80vh - var(--height-header));
    }
    
    .header--cover-small .site_cover {
        height: calc(60vh - var(--height-header));
    }

    .site_cover__content__headline {
        top: calc(-1 * var(--spacing-4));
    }

}


@media all and (min-width: 992px) {

    .headline__container h1 {
        left: -3px;
    }

}


@media all and (min-width: 1280px) {

    .site_header__languages .wpml-ls-sub-menu {
        right: calc(var(--spacing-6) - 20px);
        width: 115px;
    }

    .header--cover-big .site_cover {
        min-height: 650px;
    }
    
    .header--cover-medium .site_cover {
        min-height: 500px;
    }
    
    .header--cover-small .site_cover {
        min-height: 400px;
    }

    .lang--fr .site_logo {
        margin-top: 8px;
    }

}


@media all and (min-width: 1600px) {

    .site_cover__bottom {
        margin-bottom: var(--spacing-8);
    }

}


@media all and (min-width: 1440px) {

    .site_header__content {    
        margin-top: 28px;
    }

    .site_header__nav {
        margin-top: 17px;
    }

}


@media all and (max-width: 1599.98px) and (min-width: 1280px) {

    .site_cover__bottom {
        margin-bottom: var(--spacing-7);
    }

}


@media all and (max-width: 1439.98px) and (min-width: 1280px) {

    .site_header__content {    
        padding-top: 25px;
    }

    .site_header__nav {
        margin-top: 15px;
    }

}


@media all and (max-width: 1279.98px) and (min-width: 992px) {

    .site_header__languages .wpml-ls-sub-menu {
        right: 16px;
        width: 112px;
    }

    .site_header__content {    
        padding-top: 22px;
    }

    .site_header__nav {
        margin-top: 14px;
    }

    .footer__links {
        padding-left: var(--spacing-5);
    }

    .lang--fr .site_logo {
        margin-top: 7px;
    }

}


@media all and (max-width: 1279.98px) and (min-width: 768px) {

    .site_header__content {    
        padding-top: 22px;
    }

    .header--cover-big .site_cover {
        min-height: 600px;
        max-height: 700px;
    }

    .header--cover-medium .site_cover {
        min-height: 400px;
        max-height: 450px;
    }

    .header--cover-small .site_cover {
        min-height: 300px;
        max-height: 375px;
    }

    .site_cover__bottom {
        margin-bottom: var(--spacing-6);
    }

}


@media all and (max-width: 991.98px) and (min-width: 768px) {

    .site_header__languages .wpml-ls-sub-menu {
        right: 10px;
        width: 108px;
    }

    .site_header__content {    
        padding-bottom: 22px;
    }

}


@media all and (max-width: 991.98px) {

    .site_header__row {
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    .lang--de .site_logo img {
        width: 89px;
        height: 80px;
    }

    .lang--fr .site_logo img {
        width: 111px;
        height: 80px;
    }

    .lang--it .site_logo img {
        width: 88px;
        height: 80px;
    }

    .lang--en .site_logo img {
        width: 87px;
        height: 80px;
    }

}


@media all and (max-width: 767.98px) {

    .site_header__content {    
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .site_header__languages {
        height: 41px;
    }

    .site_header__languages .wpml-ls-sub-menu {
        top: 41px;
        right: 10px;
        width: 97px;
    }

    .site_header__languages a {
        font-size: 14px;
    }

    .headline__container {
        padding-top: var(--spacing-11);
        padding-bottom: var(--spacing-9);
    }

    .header--cover:not(.header--cover-big) .picture_container--cover, .header--cover:not(.header--cover-big) .picture_container--cover picture {
        position: relative;
        height: auto;
    }

}