/*  HEADER ANFANG  -------------------------------------------------------------------------------------------------------------------------  */

.header-mobile-buttons {
    padding-top: 3rem;
    padding-bottom: 1rem;
    background: #fff;
}

nav {
    display: block;
}

header p {
    margin: 0;
    padding: 0;
}                                                            

header nav ul li:last-of-type a {
    padding-right: 0;
}

.menueleiste {
    position: relative;
    background: transparent;
}

.menueleiste nav ul {
    list-style: none;
    padding-left: 0;
}

@media (min-width: 992px) {

.mobil-menu-button {
    display: none;
}

header {
    position: fixed;
    top: 0;
    z-index: 1200;
    width: 100%;
    overflow: visible !important;
    background: #ffffffd4;
    transition: all 0.5s ease-in-out;
} 

header .logo {
    position: inherit;
    opacity: 1;
    padding: 1rem 0;
}

header .menueleiste nav {
    position: absolute;
}    
    
nav ul {
    margin: 0 auto;
    padding-left: 0;
}

nav ul li {
    display: block;
    float: left;
    line-height: 70px;
}

header nav ul > li > ul > li {
    float: none;
    display: block;
    border-right: none;
}

.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: 100%;     
    -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%;
}  

.menueleiste {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end; 
    -webkit-box-align: center; 
        -ms-flex-align: center; 
            align-items: center;  
    -ms-grid-row: 2;  
    -ms-grid-row-span: 1;  
    grid-row: 2 / 3;
    -ms-grid-column: 2;
    -ms-grid-column-span: 1;
    grid-column: 2 / 3;
    align-self: center;
    position: relative;  
    height: 100%;       
}

img.logo {
    height: 80%;
    max-height: 160px;
    width: auto;
}

.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: justify;
        -ms-flex-pack: justify;
            justify-content: flex-start;
    -ms-grid-column: 2;
    -ms-grid-column-span: 1;
    grid-column: 2 / 3;
    -ms-grid-row: 1;
    -ms-grid-row-span: 1;
    grid-row: 1 / 2;    
    padding-top: 1rem;  
}

.adresse-top a {
    font-weight: 400;
    color: #11b3d5;
}

#menueleisten-id .telefonlink {
    display: none;
}
    
.header {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: fit-content(50%);
    grid-template-columns: fit-content(50%);
    -ms-grid-rows: 70px 70px;
    grid-template-rows: 70px 70px;
}.header > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
}.header > *:nth-child(2) {
    -ms-grid-row: 2;
    -ms-grid-column: 1;
}

header .current-menu-item > a, header .current-menu-parent > a, header .current-page-parent > a {
    background: transparent;
    color: #11b3d5;
}

nav ul li a:hover {
    color: #28355F;
}

.mobil-menu-button-bg {
        display: none;    
} 

nav ul.sub-menu > li > a {
    display: block;
    padding: 0.8rem;
    width: auto;
    line-height: 2rem;
    color: #fff;
    background: #11b3d5;
    font-size: 1.4rem;
    -moz-transition: none;
    -o-transition: none;
    -webkit-transition: none;
    transition: none;
} 

nav ul li a {
    display: block;
    padding: 0rem 1.4rem 0;
    width: auto;
    margin-top: 0px;
    color: #28355F;
    font-weight: 400;
    font-size: 1.8rem;
    -moz-transition: all .1s ease-in;
    -o-transition: all .1s ease-in;
    -webkit-transition: all .1s ease-in;
    transition: all .1s ease-in;
    letter-spacing: 1px;
}
    
nav ul li:hover ul {
    display: block;
}

nav ul li ul {
    display: none;
    top: 100%;
    width: 34rem;
    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 {
    background: #fff;
    color: #58C8E0;
}

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: absolute;
    z-index: 100;
    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: #11b3d5;
    text-decoration: none;
}

.sub-menu .current-menu-item a {
    color: #11b3d5;
    background: #fff;
} 
}

@media (max-width: 991px) {

    .menueleiste {
        position: fixed;
        top: 5rem;
        left: -250px;
        height: calc(100% - 5rem);
        overflow-y:scroll;
        z-index: 300;
        background: #11b3d5;
        width: 250px;
    }  

    .mobil-menu-button {
        position: relative;
        width: 70px;
        background: #11b3d5;
        top: 0;
        height: 50px;
        z-index: 50;
        float: right;
    }
    
    .mobil-menu-button-bg {
        position: fixed;
        z-index: 5;
        width: 100%;
        background: #11b3d5;
    }
    
    .mobil-menu-button span {
        float: right;
        width: 30px;
        top: 1rem;
        height: 0.2rem;
        background: white;
        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;
        background: white;
        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: white;
        transition: 0.3s;
        right: 15px;
        position: absolute;
        top: 1.7rem;
        content: '';
        -webkit-transform-origin: 0.001rem center;
        transform-origin: 0.005rem center;
    }
    
    .mobil-menu-button.menu-open span:after {
        width: 3rem;
        height: 0.2rem;
        background: white;
        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: white;
        transition: 0.3s;
        right: 15px;
        position: absolute;
        top: 3.3rem;
        content: '';
        -webkit-transform-origin: 0.001rem center;
        transform-origin: 0.005rem center;
    }
    
    nav ul li {
        text-align: left;
        padding-left: 15px;
    }
    
    nav ul li a:before {
        content: "\e080";
        font-weight: normal;
        font-size: 12px;
        margin-top: 5px;
        margin-right: 5px;
        text-decoration: none;
        font-family: 'Glyphicons Halflings';
    }
    
    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;
    }
    
    nav ul li ul li {
        float: none;
        display: block;
        border-right: none;
    }
    
    .derbutton {
        color: #fff;
        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;
    }
    
    .adresse-top {
        display: none; 
    }
    
    .header #logo {
        display: none;
    }

    nav + .telefonlink {
        display: none;
    } 
    
   .menueleiste nav ul {
        list-style: none;
        padding-left: 0;
    }

    .topmenu {
        margin-top: 8rem;
        margin-bottom: 1rem;
    }

    nav ul li {
        text-align: left;
        padding-left: 8px;
    }

    nav ul li a {
        color: #fff;
        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-bg .telefonlink {
        color: #fff;
        margin-top: 1.2rem;
        position: absolute;
        margin-left: 2rem;
    }

    .header-mobile-buttons img {
        width: 80%;
        max-width: 400px;
        display: block;
        margin: 3rem auto;
    }

    .header-mobile-buttons p {
        text-align: center; 
    }

    .header-mobile-buttons a {
        margin: 1rem 1rem 1rem 1rem;
        display: block;
        color: #11b3d5;
        font-size: 2rem;
    }

    .header-mobile-buttons .btn {
        background: #eee;
        color: #fff;
    }

    .header-mobile-buttons a:hover {
        text-decoration: none;
        font-weight: normal;
        text-decoration: none;
        color: #000;
}

    .header-mobile-buttons a:focus {
        text-decoration: none;
        font-weight: normal;
        text-decoration: none;
    }
}

@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  ---------------------------------------------------------------------------------------------------------------------------  */