/*--------------------------------------------------------------
   Header
--------------------------------------------------------------*/
.johannes-header-window .header-bottom > .container,
.johannes-header-window .header-top > .container,
.johannes-header-window .header-middle > .container{
	max-width: 100%;
}
.johannes-header{
    position: relative;
    z-index: 200;
}

.johannes-header .site-title{
    margin:0;
    font-size: 0;
    line-height: 1;
    display: block;
}
.slot-c .johannes-date {
    width: 200px;
    text-align: center;
    display: block;
}
//Header slots
.slot-l, 
.slot-r {
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    flex: 1;
}
.slot-l{
    margin-right: auto;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;	
}
.slot-c {
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    flex: 0 0 auto;
}
.slot-r {
    margin-left: auto;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}
.flex-item-auto .slot-l,
.flex-item-auto .slot-r{
    flex: auto;
}
.justify-content-center .slot-c{
    justify-content: center;
    display: flex;
}
.header-top .slot-c{
    flex: 0;
}
.header-top .slot-r,
.header-top .slot-l{
    flex:1;
}
.header-middle nav{
    flex: 0 0 auto;
}
.header-top .container {
    height: 50px;
}
.header-top {
    font-size: 1.2rem;
}
      

//slot items possitions
.slot-r ul + ul,
.slot-r nav + ul,
.slot-r div + ul{
    margin-left: 30px;
}
.slot-l ul + ul,
.slot-l nav + ul,
.slot-l div + ul{
    margin-right: 30px;
}
.slot-l .johannes-search{
    margin-right: 30px;
}
.slot-l > nav > ul > li{
    padding-left: 15px;
    padding-right: 15px;
    &:last-child{
        @include margin-reset()
    }
}
.slot-r > nav > ul > li,
.slot-r > div > nav > ul > li{
    padding-left: 15px;
    padding-right: 15px;
}
.slot-c > nav > ul > li{
    padding-left: 15px;
    padding-right: 15px;
}
.header-sticky-main .slot-c > div > nav > ul > li{
    padding-left: 15px;
    padding-right: 15px;
}
.header-sticky-main .slot-l > div > nav > ul > li{
    padding-left: 15px;
    padding-right: 15px;
    &:last-child{
        @include margin-reset()
    }
}

.slot-r > nav > ul > li:last-child{
    padding-right: 0;
}
.slot-l > nav > ul > li:first-child{
    padding-left: 0;
}

.header-bottom{
    .slot-r nav > ul > li{
        padding-left: 15px;
        padding-right: 15px;
    }
    .johannes-site-branding + nav{
        margin-left: 30px;
    }
    .slot-r ul + ul,
    .slot-r nav + ul{
        margin-left: 30px;
    }
    .slot-c nav > ul > li{
        padding-left: 15px;
        padding-right: 15px;
    }
    .slot-c nav + ul,
    .slot-c ul + ul{
        margin-left: 30px;
    }
    .slot-c .johannes-menu-social{
        margin-left: 30px;
    }

}
.header-bottom .slot-c > nav > ul > li:first-child{
    padding-left: 0;
}
.header-bottom .slot-c > nav > ul > li:last-child{
    padding-right: 0;
}

.header-sticky .slot-r>div>nav>ul>li:last-child{
    padding-right: 0;
}
.johannes-header-sticky-active .header-sticky-modal{
    height: 100%;
}

.johannes-header-multicolor .header-middle .slot-l,
.johannes-header-multicolor .header-sticky .header-sticky-main .container > .slot-l,
.johannes-header-multicolor .header-mobile .slot-l{
    flex-direction: row;
    height: 100%;
    position: relative;
    flex: 0 0 auto;
    padding: 0 40px 0 0px;
    margin-right: 20px;
}
.johannes-header-multicolor .slot-l .johannes-site-branding:after,
.johannes-header-multicolor .header-sticky .slot-l .johannes-site-branding:after,
.johannes-header-multicolor .header-mobile .slot-l .johannes-site-branding:after{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 200vh;
    transform: translateX(-100%);
    z-index: 1;
}
.johannes-header-multicolor .site-title{
    position: relative;
    z-index: 2;
}

.site-description{
    font-size: 1.6rem;
    font-weight: normal;
}
.header-layout-3 .johannes-site-branding{
    flex: 0 0 auto;
    margin-right: 30px;
}
.header-layout-4 .johannes-site-branding,
.header-layout-5 .johannes-site-branding,
.header-layout-6 .johannes-site-branding,
.header-layout-7 .johannes-site-branding{
    text-align: center;
}

.johannes-header-bottom-boxed.johannes-header-bottom-color .header-bottom-slots{
    @include mq('lg') {
        padding-left: get-gutter-width('lg');
        padding-right: get-gutter-width('lg');
    }
    @include mq('xl') {
        padding-left: get-gutter-width('lg');
        padding-right: get-gutter-width('lg');
    }
}
.johannes-header-bottom-color .header-bottom-slots,
.johannes-header-bottom-color .header-bottom,
.johannes-header-bottom-boxed.johannes-header-bottom-color .header-bottom-slots{
    border: none;
}


.johannes-header-main{
    margin-bottom: 48px;
}

.johannes-header-no-margin .johannes-header-main{
    margin-bottom: 0;
}

.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
    transition: transform .3s ease-in-out;
    transform: translateY(-200px);
}

.header-sticky-contextual > .container{
    height: 45px;
    @include mq('md') {
        height: 36px;
    }
    @include mq('lg') {
        height: 45px;
    }
}
.header-sticky-contextual{
    font-size: 1.4rem;
}
.header-sticky-contextual .meks_ess,
.header-sticky-contextual .meta-comments{
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
}
.header-sticky-contextual .meta-comments:after{
    content: "";
    height: 1px;
    width: 10px;
    display: inline-block;
    margin: 0 7px;
}
body .johannes-wrapper .header-sticky-contextual .meks_ess {
    padding: 0;
    border: 0;
}

body .header-sticky-contextual .meks_ess a{
    background: transparent;
    color: inherit;
    width: auto;
    min-width: auto;
    margin: 0 !important;
    padding: 0 7px;
    background: transparent !important;
}

.header-sticky-contextual .meks_ess a:last-child{
    padding-right: 0;
}
.header-sticky-contextual .johannes-share-label{
    display: inline-block !important;
    font-weight: normal;
    margin-right: 7px;
}
.header-sticky-contextual .slot-l{
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}

.johannes-header-sticky-active .header-sticky{
    transform: translateY(0px);
}

.header-sticky{
    box-shadow: 0 0 25px 0 rgba(0,0,0,0.15);
}

.header-mobile > .container{
    height: 70px
}
.header-mobile .slot-l{
    flex-wrap: nowrap;
    flex: auto;    
    max-width: 70%;
}

@media (max-width: 600px){
    .header-mobile > .container,
    .header-sticky-main > .container{
        max-width: 100%;
    }
}

.johannes-header-labels-hidden .header-el-label{
    display: none;
}

.johannes-cover-indent .johannes-header-main .johannes-site-branding,
.johannes-cover-indent .header-mobile .johannes-site-branding{
    filter: brightness(100);
}

.johannes-cover-indent .johannes-header-main .johannes-site-branding .logo-img-none a,
.johannes-cover-indent .johannes-header-main .johannes-site-branding .logo-img-none a:hover,
.johannes-cover-indent .header-mobile .johannes-site-branding .logo-img-none a,
.johannes-cover-indent .header-mobile .johannes-site-branding .logo-img-none a:hover{
    color: #fff;
}

.header-middle.header-layout-8 .slot-r,
.header-middle.header-layout-9 .slot-r,
.header-middle.header-layout-10 .slot-r{
    flex: 0 0 728px;
}