/*  HEADER ANFANG  -------------------------------------------------------------------------------------------------------------------------  */

header p {
    margin: 0;
    padding: 0;
}                                                            

@media (min-width: 992px) {

header {
    position: fixed;
    top: 0;
    z-index: 1200;
    width: 100%;
    overflow: visible !important;
    background: #fff;
    transition: all 0.5s ease-in-out;
    border-bottom: 1px solid var(--primary-color);
} 

header .logo {
    position: inherit;
    opacity: 1;
    padding: 1rem 1rem;
}

header .menueleiste nav {
    position: absolute;
}    
    
nav ul {
    margin: 0 auto;
    padding-left: 0;
}

nav ul li {
    display: block;
    float: left;
    line-height: 151px;
    position: relative;
}

header nav ul > li > ul > li {
    float: none;
    display: block;
    border-right: none;
}

li.menu-item-119:hover>ul {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(19,auto);
    top: 100%;
    background: #eee;
    left: -20%;
}

li.menu-item-119>ul {
    width: 40vw;
}

.maplink:before {
    content: "\e062";
    font-weight: 400;
    font-size: inherit;
    margin-right: 3px;
    text-decoration: none;
    font-family: 'Glyphicons Halflings';
    color: inherit;
}

header #logo {
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
    grid-column: 1 / 2;
    -ms-grid-row: 1;
    -ms-grid-row-span: 2;
    grid-row: 1 / 3;
    -ms-grid-row-align: end;
    align-self: end;
    height: 150px;     
    -webkit-transition: all 0.5s ease-in-out;     
    -o-transition: all 0.5s ease-in-out;     
    transition: all 0.5s ease-in-out;   
    display: -webkit-box;   
    display: -ms-flexbox;   
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    white-space: nowrap;
    max-width: 100%;
	justify-self: start;
}  

.menueleiste {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center; 
    -webkit-box-align: center; 
        -ms-flex-align: center; 
            align-items: center;   
    -ms-grid-row: 1;   
    -ms-grid-row-span: 1;   
    grid-row: 1 / 2;
    -ms-grid-column: 2;
    -ms-grid-column-span: 1;
    grid-column: 2 / 3;
    -ms-grid-row-align: center;
        align-self: center;
    position: relative;  
    height: 100%;       
}

img.logo {
	height: 100%;
	width: auto;
    padding-top: 2rem;
}

.adresse-top {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -ms-grid-column: 3;
    -ms-grid-column-span: 1;
    grid-column: 3 / 4;
    -ms-grid-row: 1;
    -ms-grid-row-span: 1;
    grid-row: 1 / 2;    
}

.adresse-top a {
    font-weight: 700;
    color: var(--font-color);
    text-align: right;
}

.adresse-top a:hover {
    color: var(--font-color);
}

#menueleisten-id .telefonlink {
    display: none;
}
    
.header {
    display: grid;
    grid-template-columns: 1fr minmax(200px, 55%) 1fr;
    grid-template-rows: 1fr;
} 

header .current-menu-item > a, header .current-menu-parent > a {
    background: transparent;
    color: var(--primary-color);
}

nav > ul > li > a:before{
    content: "";
    position: absolute;
    z-index: -1;
    left: 51%;
    right: 51%;
    bottom: 0;
    background: var(--primary-color);
    height: 2px;
    -webkit-transition-property: left,right;
    transition-property: left,right;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

header .current-menu-item > a:before, header .current-menu-parent > a:before, nav ul li a:hover:before {
    left: 0;
    right: 0;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.mobil-menu-button-bg {
        display: none;    
} 

nav ul.sub-menu > li > a {
    display: block;
    padding: 0.8rem 2rem;
    width: auto;
    line-height: 2rem;
    color: var(--font-color);
    background: #fff;
    font-size: 1.4rem;
    -moz-transition: none;
    -o-transition: none;
    -webkit-transition: none;
    transition: none;
	white-space: nowrap;
} 

nav ul li a {
    display: block;
    padding: 0rem 1.4rem 0;
    width: auto;
    margin-top: 0px;
    color: var(--font-color);
    font-weight: 300;
    font-size: 1.6rem;
    -webkit-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    line-height: 150px;
}
    
nav ul li:hover ul {
    display: block;
}

nav ul li ul {
    display: none;
    top: 100%;
    width: fit-content;
    height: auto;
    position: absolute;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    background: transparent;
    box-shadow: 0 0.2rem 12px #999;
}

header nav ul > li > ul > li {
    float: none;
    display: block;
    border-right: none;
}  

nav ul.sub-menu > li:hover > a {
    color: #fff;
    background: var(--primary-color);
}

nav > ul > li > ul > li > ul.sub-menu {
    display: none;
}

nav > ul > li > ul > li:hover > ul.sub-menu {
    display: block;
    position: absolute;
    right: 100%;
    top: 0;
    z-index: 20;
}

header #logo {
    top: 0px;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    float: left;
}

header .logo {
    position: inherit;
    opacity: 1;
}

.current-menu-item a, .current-menu-ancestor > a, .current-menu-parent > a, .current-menu-parent .current_page_item a, .current-page-parent a {
    color: var(--font-color);
    text-decoration: none;
}

.sub-menu .current-menu-item > a {
    color: #fff;
    background: var(--primary-color);
} 

}

@media (min-width: 1200px) and (max-width: 1399px) {
    .adresse-top a {
        font-size: 1.2rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .adresse-top a {
        font-size: 1rem;
    }    
}

@media (max-width: 991px) {
    
    .adresse-top {
        display: none; 
}
    
    .header #logo {
        display: none;
}

    nav + .telefonlink {
        display: none;
} 
    
   .menueleiste nav ul {
        list-style: none;
        padding-left: 0;
}

    .topmenu {
        padding-top: 2rem;
    	padding-bottom: 2rem;
    	max-height: calc(100vh - 5rem);
    	overflow: scroll;
}

    nav ul li {
        text-align: left;
        padding-left: 15px;
}

    nav ul li a {
        color: var(--font-color);
        line-height: 2;
        display: block;
        font-weight: 400;
		font-size: 1.5rem;
}

    nav ul li ul {
        display: none;
        transition: all 0.2s ease-out;
        -webkit-transition: all 0.2s ease-out;
        -moz-transition: all 0.2s ease-out;
        -o-transition: all 0.2s ease-out;
        -ms-transition: all 0.2s ease-out;
}

    .header-mobile-block {
        position: absolute;
        bottom: 2.5rem;
        margin-left: 1.5rem;
}

.mobil-menu-button {
    position: relative;
    width: 70px;
    background: var(--primary-color);
    top: 0;
    height: 50px;
    z-index: 50;
    float: right;
}

.mobil-menu-button-bg {
	top: 0;
    position: fixed;
    z-index: 5;
    width: 100%;
    background: var(--primary-color);
}

.mobil-menu-button span {
    float: right;
    width: 30px;
    top: 1rem;
    height: 0.2rem;
    background: var(--font-color2);
    margin-top: 25px;
    margin-right: 15px;
}

.mobil-menu-button.menu-open span {
    height: 0px;
}


.mobil-menu-button.menu-open span:before {
    width: 3rem;
    height: 0.2rem;
    transition: 0.3s;
    right: 15px;
    position: absolute;
    top: 1.3rem;
    content: '';
    transform: rotate3d(0, 0, 1, 45deg);
}

.mobil-menu-button span:before {
    width: 3rem;
    height: 0.2rem;
    background: inherit;
    top: 1.7rem;
    transition: 0.3s;
    right: 15px;
    position: absolute;
    content: '';
    -webkit-transform-origin: 0.001rem center;
    transform-origin: 0.005rem center;
}

.mobil-menu-button.menu-open span:after {
    width: 3rem;
    height: 0.2rem;
    transition: 0.3s;
    right: 15px;
    position: absolute;
    top: 34px;
    content: '';
    transform: rotate3d(0, 0, 1, -45deg);
}

.mobil-menu-button span:after {
    width: 3rem;
    height: 0.2rem;
    background: inherit;
    transition: 0.3s;
    right: 15px;
    position: absolute;
    top: 3.3rem;
    content: '';
    -webkit-transform-origin: 0.001rem center;
    transform-origin: 0.005rem center;
}

.derbutton {
    color: inherit;
    position: relative;
    right: 0;
    float: right;
    font-size: 1.5rem;
    top: -2.2rem;
    padding: 0rem 1rem;
    -moz-transition: all .2s ease;
    -o-transition: all .2s ease;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
}

.drehen {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    -moz-transition: all .2s ease;
    -o-transition: all .2s ease;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
}

.drehen + .sub-menu {                           
    display: block !important;
}
}

@media (min-width:992px) and (max-width:1199px){
nav ul li a {
    font-size: 1.2rem;
    padding: 0rem 0.3rem 0;
}    
}

@media (min-width:1200px) and (max-width:1399px){
nav ul li a {
    font-size: 1.4rem;
    padding: 0rem 0.6rem 0;
}    
}

/*  HEADER ENDE  ---------------------------------------------------------------------------------------------------------------------------  */