/*
Theme Name: FGR Basic Theme Menu
Theme URI: http://fgr.design/
Description: Das FGR Basic-Theme wurde eigens für FGR Kunden entwickelt. Es bedarf keinerlei zusätzliche Lizenz, jedoch darf die Gestaltung die durch die FGR vorgegeben wurde nicht verändert werden - es erlischt umgehend das Nutzungsrecht. Inhaltliche Änderungen dürfen selbstverständlich getätigt werden. Im Zweifelsfall steht die <a href="http://fgrepublik.com/">Freie Gestalterische Republik</a> jederzeit bereit, um Fragen zu beantworten.
Author: der Freien Gestalterischen Republik
Author URI: http://fgr.design/
Version: 1.3.4
License: Keine Nutzung ohne vorherige Absprache erlaubt.
License URI: license.txt
Tags: FGR, basic, Widgetfähig, Menü, Responsive
*/

/* #####################################################

1. Header 
2. Main Menu
3. Logo
4. Mobile

################## 1. Header ##################*/

header {
    position: fixed;
    z-index: 1111;
    background-color: var(--lightColor);
}

header:not(.initial-state){
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

header.nav-up {
    transform: translateY(-45px);
}

header .row>div {
    display: flex;
    align-items: center;
}

.nav-wrap{
    width: 100%;
}

.header-bottom{
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 32.5px 0;
transition: 0.5s all;
}

header.nav-up .header-bottom{
    padding: 17.5px 0; 
}

@media screen and (max-width:991px) {
    .header-bottom{
        padding: 22.5px 0;
    }  
}

@media screen and (max-width:767px) {
    .header-bottom, header.nav-up .header-bottom{
        padding: 15px 0;
        }

    .nav-wrap {
        transform: translateX(-100%);
        opacity: 0;
        position: absolute;
        width: calc(100vw + 5px);
        top: 70px;
        height: calc(100vh - 110px);
        min-height: calc(100vh - 110px);
        background-color: var(--lightGray);
        display: flex;
        align-content: flex-start;
        transition: 0.75s opacity;
        z-index: 11;
        left:0;
        flex-wrap: wrap;
        overflow: scroll;
        padding-bottom: 0px !important;
    }

    header.nav-up .nav-wrap{
        height: calc(100vh - 65px);
        min-height: calc(100vh - 65px);
    }

    header .row>div {
        min-height: 45px;
        justify-content: space-between;
    }

    .nav-wrap>div {
        flex: 0 0 100%;
        display: flex;
        flex-wrap: wrap;
        padding-bottom: 20px;
    } 

    .nav-wrap>div:not(.header-info){
        background-color: var(--lightColor);
    }

    .nav-wrap>div>div {
        flex: 0 0 100%;
    }

    .nav-wrap.opened {
        opacity: 1;
        transform: translateX(0%);
    }

    .nav-wrap.opened {
        pointer-events: all;
    }
}

/**/

.header-info{
    background-color: var(--lightGray);
    height: 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-info:after{
    background-color: var(--lightGray);
    content:"";
    position: absolute;
    height:100%;
    width: 200vw;
    left:-100vw;
    top:0;
}

.header-info > div{
    font: 400 normal var(--paragraphs) "Fira Sans", sans-serif;
    display: inline-flex;
    align-items: center;
}

.header-info > div > div{
    margin: 0 20px 0 10px;
}

.header-info div span{
    margin-right: 5px;
}

.header-info a{
    color: var(--darkColor);
display: flex;
    align-items: center;
}

.header-info a img.top-bar-icon{
    width: 17px;
    height: 17px;
    object-fit: contain;
    margin-right: 7.5px;
}

.header-info > div:not(.some-wrap) a:hover{
    opacity: 0.5;
}

.header-cta{
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: var(--biggerParagraphs);
    background-size: 200% 100%;
    transition: 0.5s ease-in-out;
    opacity: 1 !important;
    background-image: linear-gradient(to left, var(--shadedPrimaryColor) 0%, var(--primaryColor) 50%, var(--primaryColor) 50%);
}

.header-cta:hover {
    background-size: 100% 100%;
    transition: 0.25s ease-in-out;
    opacity: 1 !important;
    }

    .header-info > div > div:first-of-type{
        transition: 0.35s all;
    }

    @media screen and (max-width:1110px){
        .header-info > div > div:first-of-type{
            margin-left: 20px;
        }
    }
    
    @media screen and (max-width:767px) {
        .header-info > div > div {
            margin: 0 0px 0 7.5px;
            }
    }

/*SOME*/
.some-wrap a{
    height: 24px;
    width: 24px;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lightColor);
    opacity: 1 !important;
    transition: 0.25s all !important;
}

.some-wrap a:hover{
    transform: translate3d(0,-2.5px,0);
    filter:drop-shadow( 0 2px 4px rgba(0, 0, 0, 0.4));
    opacity: 1 !important;
}

/*################## 2. Main Menu ##################*/

header .menu li {
    display: inline-flex;
}

header .menu>li {
    align-items: center;
}

header .menu>li>a {
    font: normal 500 var(--menuFS) 'basic-sans', sans-serif;
    color: var(--lightColor);
    position: relative;
    border-bottom: 3px solid rgba(0, 0, 0, 0);
    border-top: 3px solid rgba(0, 0, 0, 0);
}

header .menu li.current-menu-item:not(.btn){
    opacity: 0.5;
}

@media screen and (min-width:768px) {
    header .menu{
        text-align: right;
    }

    header .menu>li {
        height: 37.5px;
        margin: 0 10px;
    }

    header .menu>li:hover > a{
        opacity: 0.5;
    }

    header .menu > li.menu-item-has-children > a{
        position: relative;
    }

    header .menu > li.menu-item-has-children > a:after{
        position: absolute;
        right: -2.5px;
        top: 11.5px;
        content: "";
        width: 9.5px;
        height: 8px;
        background: url(../_img/arrow-down.svg) no-repeat center center;
        background-size: contain;  
    }

    header .menu > li.menu-item-has-children > a:before{
        background-color: rgba(255, 0, 0,0);
        position: absolute;
        left:0px;
        bottom: -40px;
        height: 50px;
        width: calc(100% + 10px);
        content: "";
    }

    header.nav-up .menu > li.menu-item-has-children > a:before{
        height: 35px;
        bottom: -25px;
    }

    header .menu{
        padding-left: 12.5px;
    }

    header .menu>li>a {
        display: inline-flex;
        align-items: center;
        height: 100%;
        padding: 0 10px;
        position: relative;
        color: var(--darkColor);
        font: 400 normal var(--biggerParagraphs) "Fira Sans", sans-serif;
    }

    header .menu li:last-of-type {
       margin-right: 0px;
    }

    header .menu li:last-of-type a{
        padding-right: 0px;
    }

    header .menu li ul{
        opacity: 0;
        pointer-events: none;
        position: absolute;
        left:0;
        padding: 0px 0 10px 0;
        top: 110px;
        width: 100%;
        background-color: var(--lightColor);
        text-align: left;
        z-index: 11;
        transition: 0.5s all;
    }
    header .menu li:hover ul{
        pointer-events: all;
        opacity: 1;
    }


    header .menu li ul *{
        pointer-events: none;
    }
    header .menu li:hover ul *{
        pointer-events: all;
    }
    header.nav-up .menu li ul{
        top: 80px;
    }

    header .menu li ul:after{
        position: absolute;
        content:"";
        background-color: var(--lightColor);
        left: -100vw;
        width: 200vw;
        top:0px;
        height: 100%;
        z-index: -1;
    }

    header .menu li ul:before{
        position: absolute;
        content: "";
        background-image: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) );
        left: -100vw;
        width: 200vw;
        bottom: -10px;
        height: 10px;
    }

    header .menu li ul li{
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        margin: 0 -10px;
    }

    header .menu li ul li div{
        flex:0 0 calc(16.6667% - 20px);
        margin:  10px;
    }

    header .menu li ul li div img{
        margin-bottom: 10px !important;
        transition: 0.35s all;
    }

    .menu > li > ul > li > div:hover > img{
        transform:scale(1.1);
    }

    header .menu li ul li div a h3{
        font-size: var(--paragraphs);
    }

    .toggle{
        display: none !important;
    }
}
@media screen and (min-width:992px) {
    header .menu>li {
        height: 50px;
    }
    header .menu > li.menu-item-has-children > a:after{
        top: 17.5px;
    }
}

@media screen and (max-width:767px) {
    header .menu li:not(.btn) a {
        font: 700 normal var(--tertiaryHead) "Fira Sans", sans-serif;
    }

    header .menu li.btn:before {
        font-size: 18px;
        top: 0px;
        }

    header .menu li:not(.btn-cta) a {
        color: var(--darkColor);
    }

    header .menu li:not(.btn-cta) a:hover{
      opacity: 0.5;
    }

    header .menu li:not(.btn-cta) {
        display: block;
        position: relative;
        margin: 7.5px 0;
    }

    header .menu {
        padding: 7.5px 20px 0 20px;
    }

    header .menu ul{
        display: none;
        padding-bottom: 7.5px;
    }

    .toggle{
        margin-left: 5px;
        transition: 0.25s all;
    }

    .toggle.active svg{
       transform: rotate(180deg);
    }

    header ul{
        width: 100%;
    }

    header .menu li ul li{
        columns: 2
    }

    header .menu li ul li > div{
        flex:0 0 calc(50% - 0px);
        padding: 5px 10px;
    }

    header .menu li ul li div h3 {
        font: 400 normal var(--smallerParagraphs) "Fira Sans", sans-serif !important;
        margin: 0;
        color: var(--darkGray);
        text-align: left;
        }
        header  .feed-leistungen img.leistung-icon {
           display: none;
}
}

@media screen and (max-width:991px) and (min-width:768px) {
    header .menu li ul li div img{  font: 600 normal var(--smallerParagraphs) "Fira Sans", sans-serif !important;

        }
        header .menu li ul li div{
            flex:0 0 calc(25% - 20px) !important;
            margin:  10px;
        }

        header .menu li ul li div img {
    max-width: 40px !important;
    height: 30px !important; 
}
}


.menu-hauptnavigation-container{
    transition: 0.35s all;
}

@media screen and (max-width:1110px) and (min-width:768px){
    .menu-hauptnavigation-container{
        margin-right: 15px;
    }
}

/**/
.mobile-additional{
    background-color: var(--lightGray) !important;
    padding: 0px 20px 80px 20px !important;
}

.mobile-additional a{
    color: var(--darkColor);
}

.mobile-additional p:not(:last-of-type){
    margin-bottom: 20px;
}

.mobile-additional .small-head{
    margin-top: 30px;
    display: block;
}

/*################## 3. Logo ##################*/

.logo {
    width: 211.5px;
    height: auto;
    line-height: 0;
    transition: 0.5s all;
}

.logo-wrap {
    position: relative;
    transition: none;
    display: inline-table;
}

@media screen and (max-width:991px) {
    .logo {
        width: 195px;
        height: auto;
    } 
}

@media screen and (max-width:1110px){
    .logo {
        margin-left: 10px;
    }
}

@media screen and (max-width:767px){
    .logo {
        height: auto;
        width: 175px;
    } 
}

/*################## 4. Mobile ##################*/

@media screen and (max-width:767px) {
    body .nav-mobile-wrap {
        display: flex !important;
        align-items: center;
        z-index: 1;
    }

    #navbtn {
        padding: 9.5px 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
    }

    body .nav-mobile-wrap span {
        display: none;
    }

    body .nav-mobile-wrap {
        flex-direction: row-reverse;
    }
}

/*Hamburger*/

#hamburger-icon {
    width: 30px;
    height: 21px;
    position: relative;
    display: block;
}

#hamburger-icon .line {
    display: block;
    background: var(--darkColor);
    width: 30px;
    height: 2px;
    position: absolute;
    left: 0;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
}

#hamburger-icon .line.line-1 {
    top: 0;
}

#hamburger-icon .line.line-2 {
    top: 9px;
}

#hamburger-icon .line.line-3 {
    top: 18px;
}

#hamburger-icon.active .line-1 {
    transform: translateY(9px) translateX(0) rotate(45deg);
}

#hamburger-icon.active .line-2 {
    opacity: 0;
}

#hamburger-icon.active .line-3 {
    transform: translateY(-9px) translateX(0) rotate(-45deg);
}

/**/


.open-search-form a{
    position: relative;
}

@media screen and (min-width:768px) {
    .open-search-form a{
        width:22px;
        float:right;
        font-size: 0px !important;
    }      
}

.open-search-form a:before,
.open-search-form a:after{
    position: absolute;
    left:0;
    top:calc(50% - 15px);
    height:22px;
    width:100%;
    content:"";
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: 0.5s all;
}

.open-search-form a:before{
    background-image: url(../_img/icon-glasses.svg);
    opacity: 1;
}

.open-search-form a:after{
    background-image: url(../_img/icon-close.svg);
    opacity: 0;
}

.open-search-form a.active:before{
    opacity: 0;
}

.open-search-form a.active:after{
    opacity: 1;
}

#searchform{
    opacity: 0;
    pointer-events: none;
    position: absolute;
    display: flex;
    align-items: center;
    top:0px;
    height:100%;
    bottom:0;
    width: calc(100% - 275px);
    right:30px;
    z-index: 111;
    background-color: #fff;
    display: flex;
justify-content: flex-end;
    padding-right: 20px;
    transition: 0.35s all;
}

@media screen and (max-width:1110px) {
    #searchform{
    right:45px;
}
}

#searchform > div{
    min-width: 350px;
}

#searchform.active{
    opacity: 1;
    pointer-events: all;
}
@media screen and (max-width:991px) {
    .open-search-form a{
        width:17px;
    }
    .open-search-form a:before,
.open-search-form a:after{
    height:17px;
    top: calc(50% - 13px);
}
}

@media screen and (max-width:767px) {
    header #searchform, .open-search-form{
        display: none !important;
    }

}

#searchform input[type="text"] {
    width:100%;
    color: var(--darkColor);
    font: normal 400 var(--smallerParagraphs) 'Fira Sans', sans-serif;
    font-weight: bold;
    padding: 0px 40px 0px 30px;
    margin-right: 12.5px;
    display: inline-flex;
    height: 43px;
    border-radius: 21.5px;
    transition: 0.35s all;
    cursor: pointer;
    border: none;
    margin-top: -2.5px;
    appearance: none;
    -webkit-appearance: none;
    justify-content: center;
    align-items: center;
    line-height: 1 !important;
    position: relative;
    transform: translate3d(0,0,0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
    }

    #searchform input[type="submit"]{
        width: 35px;
        height: 100%;
        appearance: none;
        -webkit-appearance: none;
        border: none;
        border-radius: 10px;
        background: url(../_img/link-arrow.svg) no-repeat center center;
        background-size: 9.5px 8px;
        position: absolute;
        right: 15px;
        top: -2.5px;
    }

    @media screen and (max-width:991px) {
        #searchform input[type="text"] {
            height: 40px;
            padding: 0px 35px 0px 25px;
        }

        #searchform input[type="submit"]{
            width: 35px;
            height: 100%;
            appearance: none;
            -webkit-appearance: none;
            border: none;
            border-radius: 10px;
            background: url(../_img/link-arrow.svg) no-repeat center center;
            background-size: 9.5px 8px;
            position: absolute;
            right: 10px;
            top: -2.5px;
        }
    }

    #contentwrap #searchform{
        position: relative;
        opacity: 1;
        pointer-events: all;
        RIGHT:0;
        justify-content: flex-start;
        background-color: rgba(0, 0, 0, 0);
        max-width: 350px;
        height: auto;
        margin-top: 30px;
        width: auto;
    }

    .search .open-search-form,
    .search-results .open-search-form{
        display:none;
    }

    .search-result-item{
        margin: 30px 0;
    }

    .search h3 a{
        color: var(--darkColor);
    }

    .search #contentwrap .text-btn{
        margin-top: 10px;
    }

    .search #contentwrap .text-btn:hover{
        opacity: 0.5;
    }

    .search #contentwrap .text-btn:before{
        top:6px;
    }

    .search  #contentwrap .small-head{
        margin-bottom: 5px;
    }

    .search .btn-light{
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
    }

    .search #contentwrap .pagination-wrapper{
        margin-top: 30px;
    }

    .search .pagination-row .pagination {
        padding-bottom: 0px;
        justify-content: flex-start;
    }

    .search .pagination-row > div{
        margin: 10px 0 0 -10px;
    }

    @media screen and (min-width:768px) {
        .search .menu-hauptnavigation-container{
            margin-right: -12.5px;
        }
    }