/* ------------------------------ */
/* ----------- Header ----------- */
/* ------------------------------ */

header {
    position: relative;
    min-height: var(--height-header); 
}
 
.site_header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: var(--height-header);
    -webkit-transition: var(--transition-2);
    -o-transition: var(--transition-2);
    transition: var(--transition-2);
}
 
.page-scrolled .site_header {
     top: calc(-1* var(--height-header));
     -webkit-transition: var(--transition-2);
    -o-transition: var(--transition-2);
    transition: top var(--transition-2);
}

.logged-in.admin-bar.page-scrolled .site_header {
    top: calc(-1* var(--height-header));
}

.page-scrolled.header-fixed .site_header, .page-scrolled.menu-open .site_header {
     top: 0;
}

.logged-in.admin-bar .site_header, .logged-in.admin-bar.page-scrolled.header-fixed .site_header {
    top: 50px;
}
 
.site_header__inside {
     width: 100%;
}
 
.site_header__row {
     margin-left: 0;
     margin-right: 0;
}



/* ------------------------------ */
/* ---- Headerimage / -video ---- */
/* ------------------------------ */

.site_cover {
    position: relative;
    z-index: 1;
    max-width: 1920px;
    margin: 0 auto;
}

.site_cover__container {
   position: relative;
   height: 100%;
   width: 100%;
}

.site_cover__media {
    width: 100%;
    height: 100%;
    background-color: var(--brand-brown);
}

.site_cover__media::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}
  
.site_cover .video_container.is-playing .picture_container {
    opacity: 0;
}

.site_cover--video .video_container .picture_container {
    z-index: 1;
}
  
.site_cover--video #video_player.is-playing + .picture_container {
    opacity: 0;
}

.site_cover__map {
    background-color: #faf9f5;
}


/* ------------------------------ */
/* -------- Media Queries ------- */
/* ------------------------------ */

@media all and (min-width: 768px) {

    .header--cover-small .site_cover__media::before {
        height: 160px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    }

}


@media all and (min-width: 992px) {

    .header::before {
        height: 20%;
    }

    .header--cover-small .site_cover {
        height: 60vh;
    }

}


@media all and (min-width: 1240px) {

    .site_header {
        padding: var(--spacing-3) 0 0;
    }
    
    .header--cover-small .site_cover {
        min-height: 450px;
    }

}


@media all and (min-width: 1400px) {

    .site_cover__bottom span {
        top: 42%;
    }

}


@media all and (max-width: 1239.98px) and (min-width: 992px) {

    .header--cover-small .site_cover {
        min-height: 420px;
    }

}


@media all and (max-width: 1239.98px) {

    .site_header {
        padding: var(--spacing-2) 0 0;   
    }

    .page-scrolled.menu-active .site_header {
        background-color: var(--brand-white);
    }

}


@media all and (max-width: 991.98px) and (min-width: 768px) {
    
    .header--cover-small .site_cover {
        height: 50vh;
        min-height: 400px;
    }

}


@media all and (max-width: 991.98px) {

    .header::before {
        height: calc(var(--height-header) + 5%);
    }

}


@media all and (max-width: 767.98px) {

    .header--cover-small .site_cover__media::before {
        height: 170px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    }


    header:not(.header--cover-map) .site_cover:not(.site_cover--video) .picture_container--cover, header:not(.header--cover-map) .site_cover:not(.site_cover--video) .picture_container--cover picture,
    header:not(.header--cover-big):not(.header--cover-map) .site_cover .video_container--cover {
        position: relative;
        width: auto;
        height: auto;
    }

    header:not(.header--cover-big) .site_cover .video_container--cover {
        aspect-ratio: 768 / 485;
    }

    .header--cover-map .site_cover {
        display: none;
        margin-bottom: var(--spacing-6);
    }

}