header .container:before, header .container:after {
    display: none;
}

.logomobil {
    display: none;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
    width: auto;
}

.logo2 {
    height: 60px;  
}

header > .container > *:nth-child(1) img {
    width: 25px;
    margin-right: 1rem;
}

#logo img {
    height: 80px;
}   

nav ul {
    padding-left: 0;
}

nav a:hover {
    text-decoration: none;
}

.maplink:before {
    content: "\e062";
    font-weight: normal;
    font-size: inherit;
    margin-right: 3px;
    text-decoration: none;
    font-family: 'Glyphicons Halflings';
    color: #008499;
}

header > .header a:before {
    color: #008499;
}

header > .header .telefonlink {
    color: #333;
    font-weight: 300;
}

@media (min-width: 992px) {

    .slider.header8fix {
        margin-top: 16rem;
    }

    nav ul {
        display: flex;
        align-content: center;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
    }
    
    header {
        position: fixed;
        z-index: 1200;
        width: 100%;
        overflow: visible !important;
        background: #fff;
        box-shadow: 0px 0px 2px 2px #ccc;
    }
    
    header .header {
        margin-top: 0;
        position: relative;
        overflow-y: visible;
        z-index: 1200;
        padding: 0 1.5rem;
    }
    
    header #logo {
        top: 0px;
        margin: 0 0 0 0;
        padding: 0 0 0 0;
        float: left;
    }
    
    header .logo {
        position: inherit;
        opacity: 1;
    }
    
    header .menueleiste nav {
        width: auto;
        height: 70px;
        line-height: 70px;
        z-index: 1;
    }
    
    .topmenu {
        margin-bottom: 0;
    }
    
    nav ul li {
        display: block;
        width: auto;
        position: relative;
        padding: 0 0 0 0;
        float: left;
    }
    
    nav ul li:hover ul {
        display: block;
    }
    
    nav ul li ul {
        display: none;
        top: 100%;
        width: 30rem;
        height: auto;
        position: absolute;
        margin: 0 0 0 0;
        padding: 0 0 0 0;
    }
    
    header nav ul > li > ul > li {
        float: none;
        display: block;
        border-right: none;
    }
    
    nav ul li a {
        display: block;
        color: #333;
        padding: 0rem 8px 0;
        width: auto;
        margin-top: 0px;
        font-weight: 300;
        -moz-transition: all .1s ease-in;
        -o-transition: all .1s ease-in;
        -webkit-transition: all .1s ease-in;
        transition: all .1s ease-in;
    }
    
    nav ul.sub-menu > li > a {
        display: block;
        padding: 0.8rem;
        width: auto;
        line-height: 2rem;
        color: #fff;
        background: #008499;
        -moz-transition: none;
        -o-transition: none;
        -webkit-transition: none;
        transition: none;
    }
    
    nav ul.sub-menu > li:hover > a {
        background: #fff;
        color: #333;    
    }
    
    nav > ul > li:hover > a {
        color: #008499;
    }
    
    header > .container {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 1fr auto 1fr;
        grid-template-columns: 1fr auto 1fr;
        -ms-grid-rows: auto auto;
        grid-template-rows: auto;
        justify-items: center;
        padding-top: 1rem;
    }
    
    header > .container > *:nth-child(1) {
        -ms-grid-column: 1;
        -ms-grid-column-span: 2;
        grid-column: 1/3;
        -ms-grid-row: 1;
        -ms-grid-row-span: 1;
        grid-row: 1/2;
        -ms-grid-column-align: start;
        justify-self: start;
        -ms-grid-row-align: start;
        align-self: start;
        display: block;
    }
    
    header > .container > *:nth-child(2) {
        -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;
        -ms-grid-column-align: center;
        justify-self: center;
        display: block;
    }
    
    header > .container > *:nth-child(3) {
        -ms-grid-column: 3;
        -ms-grid-column-span: 1;
        grid-column: 2/4;
        -ms-grid-row: 1;
        -ms-grid-row-span: 1;
        grid-row: 1/2;
        -ms-grid-column-align: end;
        justify-self: end;
        -ms-grid-row-align: start;
        align-self: start;
        display: block;   
    }
    
    header > .container > *:nth-child(4) {
        -ms-grid-column: 1;
        -ms-grid-column-span: 1;
        grid-column: 1/2;
        -ms-grid-row: 2;
        -ms-grid-row-span: 1;
        grid-row: 2/3;
        -ms-grid-column-align: start;
        justify-self: start;
        -ms-grid-row-align: center;
        align-self: center;
        display: none;
    }
    
    header > .container > *:nth-child(5) {
        -ms-grid-column: 2;
        -ms-grid-column-span: 1;
        grid-column: 2/3;
        -ms-grid-row: 2;
        -ms-grid-row-span: 1;
        grid-row: 2/3;
        position: relative;
        -ms-grid-row-align: center;
        align-self: center;
    }                                                
    
    header > .container > *:nth-child(6) {
        -ms-grid-column: 3;
        -ms-grid-column-span: 1;
        grid-column: 2/4;
        -ms-grid-row: 2;
        -ms-grid-row-span: 1;
        grid-row: 2/3;
        -ms-grid-column-align: end;
        justify-self: end;
        -ms-grid-row-align: center;
        align-self: center;
        display: none;
        margin-bottom: 0;
    }
    
    li.current-menu-item > a, li.current-menu-item:hover > a {
        color: #008499;
    }
    
    .tel-quicklink {
        display: none;
    }
    
    #logo {
        margin: 0 auto;
        position: relative;
        top: 0;
        left: 0;
        width: auto;
        max-width: 100%;
        height: auto;
        display: inline-block;
    }

    header > .header > a {
        font-weight: 300;
        color: #333;
    }

    img.flag {
        width: 40px;
        margin-left: 20px;
    }

    #logo + div {
        display: flex;
        flex-direction: column;
        row-gap: 1rem;
        align-items: flex-end;
    }

    .socialicon {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: flex-end;
        column-gap: 1rem;
    }

    .socialicon img {
        width: 30px;
    }

}

@media (max-width: 991px) {

    header > .container > *:not(:nth-child(5)) {
        display: none;
    }
    
    header > .container > *:nth-child(5) {
        position: fixed;
    }  
    
    header > .container > *:nth-child(1) {
        display: none;
    } 
    
    header > .container > *:nth-child(3) {
        display: none;
    } 
    
    header > .container {
        padding-top: 0;
    }
    
    .tel-quicklink a {
        color: #fff;
    }
    
    .logomobil {
        display: block;
        width: 60%;
        margin: 10rem auto 0 auto;
        padding: 2rem;
        max-width: 120px;
    }
    
    .header-mobile-buttons .textwidget {
        text-align: center;
    }
    
    .menueleiste {
        position: fixed;
        top: 0;
        left: -310px;
        height: 100vh;
        overflow-y: scroll;
        z-index: 300;
        background: #eee;
        width: 310px;
    }
    
    .header-mobile-buttons {
        margin-bottom: 2rem;  
        margin-top: 3rem;  
        text-align: center;    
    }
    
    .header-mobile-buttons > div > div {
        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-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }
    
    .tel-quicklink {
        display: block;
        position: absolute;
        top: 1.3rem;
        left: 1.5rem;
        color: #fff;
    }
    
    .header-mobile-buttons .btn-primary {
        font-size: 1.8rem;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        margin: 0 auto;
        width: 50%;
        margin-bottom: 1rem;
        display: inline-block;
        min-width: 200px;
    }

    .mobil-menu-button-bg {
        position: fixed;
        z-index: 5;
        width: 100%;
        background: transparent;
    }
    
    .mobil-menu-button {
        position: relative;
        width: 60px;
        top: 0;
        height: 50px;
        z-index: 50;
        float: right;
        background: rgb(255 255 255 / 85%);
    }
    
    .mobil-menu-button span {
        float: right;
        width: 30px;
        top: 1rem;
        height: 0.2rem;
        background: #008499;
        margin-top: 25px;
        margin-right: 15px;
    }
    
    .mobil-menu-button span:before {
        width: 3rem;
        height: 0.2rem;
        background: #008499;
        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 span:after {
        width: 3rem;
        height: 0.2rem;
        background: #008499;
        transition: 0.3s;
        right: 15px;
        position: absolute;
        top: 3.3rem;
        content: '';
        -webkit-transform-origin: 0.001rem center;
        transform-origin: 0.005rem center;
    }

    .derbutton {
        color: #333;
        position: relative;
        right: 0;
        top: 0;
        float: right;
        font-size: 1.5rem;
        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;
    }

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

    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;
    }

    .drehen + .sub-menu {
        display: block;
    }

    .mobil-menu-button.menu-open span {
        height: 0;
    }

    .mobil-menu-button.menu-open span:before {
        transform: rotate3d(0,0,1,45deg);
        right: 15px;
        top: 1.3rem;
    }

    .mobil-menu-button.menu-open span:after {
        transform: rotate3d(0,0,1,-45deg);
        right: 15px;
        top: 34px;
    }

    nav ul li a {
        color: #333;
        font-weight: 400;;
    }

    .header-mobile-buttons > p {
        margin-top: 0rem;
        margin-bottom: 1rem;
    }

    div.logo {
        margin-bottom: 5rem;
    }

    nav li.btn-primary {
        display: none;
    }
    
}