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

.adresse-top p {
    font-weight: 400;
}

.adresse-top>*:nth-child(1) {
    -ms-grid-column: 2;
    -ms-grid-column-span: 1;
    grid-column: 2 / 3;
    -ms-grid-column-align: start;
    justify-self: start;
    align-self: center;
}

.adresse-top>*:nth-child(2) {
    -ms-grid-column: 3;
    -ms-grid-column-span: 1;
    grid-column: 3 / 4;
    -ms-grid-column-align: end;
    justify-self: end;
    align-self: center;
    text-align: right;
}

nav ul>li:hover {
    cursor: auto;
}

#logo .logo {
    padding: 1rem 0;
    height: 100%;
    position: absolute;
}

#logo .logo-klein {
    padding: 1rem 0;
    height: 100%;
}

.logo-klein {
    display: none;
    max-height: 70px;
}

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

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

@media (min-width: 1400px) {

    .adresse-top {
        -ms-grid-columns: 1fr 685px 685px 1fr;
        grid-template-columns: 1fr 685px 685px 1fr;
    }

}

@media (min-width: 1200px) and (max-width: 1399px) {

    .adresse-top {
        -ms-grid-columns: 1fr 570px 570px 1fr;
        grid-template-columns: 1fr 570px 570px 1fr;
    }

}

@media (min-width: 992px) {

    nav ul li ul li.menu-item-has-children>a:after {
        content: "\e258";
        float: right;
        color: var(--text-color);
        font-size: inherit;
        font-family: "Glyphicons Halflings";
    }

    nav ul li ul li.menu-item-has-children:hover>a:after{
        color: var(--text-invert);
        transition: all 0.4s;
    }

    #menueleisten-id .telefonlink,
    #menueleisten-id>a>img {
        display: none;
        position: absolute;
    }

    .menueleiste {
        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: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        -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-row-align: end;
        -ms-grid-column-align: end;
        -ms-grid-row-align: stretch;
        align-self: stretch;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
        position: relative;
    }

    header {
        position: fixed;
        z-index: 1200;
        width: 100%;
        overflow: visible;
        background: white;
        box-shadow: 0px 2px 2px rgb(172 172 172);
    }

    nav {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        position: relative;
        right: 0rem;
    }

    nav>ul {
        width: auto;
        max-width: 965px;
        margin: 0 auto;
        padding: 0 0 0 0;
        list-style: none;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: end;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }

    .menueleiste>.btn,
    .menueleiste>.telefonlink {
        margin: 0;
        display: inline-table;
        margin-left: 1.4rem;
        font-weight: 500;
        letter-spacing: 1px;
        align-self: center;
    }

    nav ul li {
        display: -ms-grid;
        display: grid;
        position: relative;
    }

    nav>ul>li>a {
        padding: 0rem 1.4rem 0;
        text-align: center;
        font-weight: 400;
        line-height: 130px;
        -moz-transition: all .3s ease-in;
        -o-transition: all .3s ease-in;
        -webkit-transition: all .3s ease-in;
        transition: all .3s ease-in;
        align-self: center;
        color: var(--text-color);
    }

    nav>ul>li>a:before {
        content: "";
        position: absolute;
        z-index: -1;
        left: 51%;
        right: 51%;
        bottom: 0;
        background: var(--primary-color);
        height: 3px;
        -webkit-transition-property: left, right;
        transition-property: left, right;
        -webkit-transition-duration: 0.15s;
        transition-duration: 0.15s;
        -webkit-transition-timing-function: ease-out;
        transition-timing-function: ease-out;
    }

/*Terminbutton-Menue Anfang*/
 header nav>ul>li:last-of-type a {
     display: flex;
     align-items: center;
     padding: 1rem 3rem;
     border-radius: 10rem;
     color: var(--text-color);
     border: 1px solid var(--primary-color);
     transition: all .3s;
     position: relative;
     overflow: hidden;
     z-index: 1;
     text-decoration: none;
     width: fit-content;
     background: var(--secondary-color);
     height: 41px;
 }

 header nav>ul>li:last-of-type a:after {
     background-image: url(/wp-content/uploads/2023/03/pfeil-icon-grau.png);
     display: inline-block;
     background-size: 20px;
     background-repeat: no-repeat;
     width: 20px;
     height: 20px;
     content: '';
     margin: 0.5rem;
     transition: all 0.3s;
 }

 header nav>ul>li:last-of-type a:before {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 0%;
     height: 100%;
     background-color: var(--primary-color);
     transition: all .3s;
     border-radius: 10rem;
     z-index: -1;
 }

 header nav>ul>li:last-of-type a:hover {
     color: var(--text-invert);
     border-color: var(--text-invert);
 }

 header nav>ul>li:last-of-type a:hover:before {
     width: 100%;
 }

 header nav>ul>li:last-of-type a:hover:after {
     background-image: url(/wp-content/uploads/2023/03/pfeil-icon.png);
 }
/*Terminbutton-Menue Ende*/

    nav>ul>li>ul>li:hover>ul.sub-menu {
        display: block;
        position: absolute;
        right: 100%;
        top: 0;
        z-index: 20;
    }

    nav ul li:hover ul {
        display: block;
    }

    nav ul li ul {
        display: none;
        top: 100%;
        right: 0;
        width: 30rem;
        height: auto;
        position: absolute;
        margin: 0 0 0 0;
        padding: 0 0 0 0;
        background: transparent;
        box-shadow: 0 0.2rem 12px #999;
    }

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

    nav ul.sub-menu>li>a {
        display: block;
        padding: 0.8rem;
        width: auto;
        line-height: 2rem;
        color: var(--text-color);
        background: var(--secondary-color);
        font-size: 1.6rem;
        -moz-transition: none;
        -o-transition: none;
        -webkit-transition: none;
        transition: none;
        font-weight: 400;
    }

    nav ul.sub-menu>li:hover>a {
        background: var(--primary-color);
        color: var(--text-invert);
    }

    nav>ul>li>ul>li>ul.sub-menu {
        opacity: 0;
    }

    nav>ul>li>ul>li:hover>ul.sub-menu {
        display: block;
        position: absolute;
        left: 100%;
        top: 0;
        z-index: 20;
        opacity: 1;
        transition: all 0.4s;
    }

    header .current-menu-item>a:before,
    header .current-menu-parent>a:before,
    header .current-menu-ancestor>a:before,
    header .current-page-parent>a:before,
    nav ul li a:hover:before {
        left: 0;
        right: 0;
    }

    .adresse-top {
        background: linear-gradient(0deg, var(--primary-color) 1px, var(--secondary-color) 1px);
        padding: 1rem;
        display: -ms-grid;
        display: grid;
        -ms-grid-rows: 1fr;
        grid-template-rows: 1fr;
    }

    .adresse-top a {
        font-weight: 400;
		color: var(--text-color);
    }

    .menuezeile {
        display: grid;
        grid-template-columns: minmax(130px, 1fr) 2fr;
        grid-template-rows: 1fr;
    }

    header #logo {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        height: 100%;
        max-height: 130px;
        width: auto;
        display: flex;
        align-items: center;
        position: relative;
    }

    .sub-menu>.current-menu-item>a,
    .sub-menu>.current-menu-parent>a {
        color: var(--text-invert);
        background: var(--primary-color);
    }

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

}

@media (min-width: 992px) and (max-width: 1199px) {

    .adresse-top {
        -ms-grid-columns: 1fr 470px 470px 1fr;
        grid-template-columns: 1fr 470px 470px 1fr;
    }

    header #logo {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    #logo img {
        height: 69%;
    }

}

@media (max-width: 991px) {

    .adresse-top {
        display: none;
    }

    .menueleiste {
        position: fixed;
        top: 5rem;
        right: -105%;
        height: calc(100vh - 9rem);
        z-index: 300;
        background: var(--secondary-color);
        width: 100%;
		overflow-x: auto;
    }

    .menueleiste nav {
        width: 100vw;
    }

    nav ul#menu-hauptmenue {
        padding-left: 0;
    }

    .mobil-menu-button {
        position: relative;
        width: 70px;
        background: transparent;
        top: 0;
        height: 5rem;
        z-index: 50;
        float: right;
    }

    .mobil-menu-button-bg {
        position: fixed;
        z-index: 5;
        width: 100%;
        background: var(--background);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobil-menu-button span {
        float: right;
        width: 30px;
        top: 1rem;
        height: 0.2rem;
        background: var(--text-color);
        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: var(--text-color);
        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: var(--text-color);
        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: var(--text-color);
        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: var(--text-color);
        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: 1.5rem;
        list-style: none;
        position: relative;
        border-bottom: 1px solid var(--background);
    }

    nav ul li ul {
        display: none;
        top: 0;
        left: 0;
        width: 100%;
        height: auto !important;
        position: relative;
        margin: 0 0 0 0;
        padding: 0 0 0 0;
        background: transparent;
    }

    nav ul li ul>li {
        animation-name: animateli;
        animation-duration: 350ms;
        animation-delay: calc(var(--animation-order) * 100ms);
        animation-fill-mode: both;
        animation-timing-function: ease-in-out;
    }

    nav ul>li ul li:nth-of-type(1) {
        --animation-order: 1;
    }

    nav ul>li ul li:nth-of-type(2) {
        --animation-order: 2;
    }

    nav ul>li ul li:nth-of-type(3) {
        --animation-order: 3;
    }

    nav ul>li ul li:nth-of-type(4) {
        --animation-order: 4;
    }

    nav ul>li ul li:nth-of-type(5) {
        --animation-order: 5;
    }

    nav ul>li ul li:nth-of-type(6) {
        --animation-order: 6;
    }

    nav ul>li ul li:nth-of-type(7) {
        --animation-order: 7;
    }

    nav ul>li ul li:nth-of-type(8) {
        --animation-order: 8;
    }

    @keyframes animateli {
        0% {
            opacity: 0;
            transform: scale(.8) translateY(-8px)
        }

        100% {
            opacity: 1
        }
    }

    nav ul li ul li {
        float: none;
        display: block;
        border: none;
    }

    .derbutton {
        color: var(--text-color);
        right: 2rem;
        top: 1.5rem;
        position: absolute;
        transition: all .2s ease;
    }

    .derbutton:before {
        transition: all .2s ease;
        font-size: 2rem;
        transform: rotate(90deg);
        display: block;
    }

    .derbutton.drehen:before {
        -webkit-transform: rotate(-90deg);
        -moz-transform: rotate(-90deg);
        -o-transform: rotate(-90deg);
        -ms-transform: rotate(-90deg);
        transform: rotate(-90deg);
        display: block;
    }

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

    .header #logo {
        display: none;
    }

    nav+.telefonlink {
        display: none;
    }

    nav ul li a {
        color: var(--text-color);
        display: block;
        font-weight: 400;
        line-height: 3;
    }

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

    .mobil-menu-button-bg .telefonlink {
        color: var(--text-invert);
        margin-top: 1.2rem;
        position: absolute;
        margin-left: 2rem;
    }

    .header-mobile-buttons img {
        width: 90%;
        max-width: 200px;
        display: block;
        margin: 0 auto;
    }

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

    .header-mobile-buttons .more-link {
        margin: 2rem auto;
        width: 80%;
        justify-content: center;
    }

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

    .socialicon img {
        max-width: 50px;
        padding: 1rem;
    }

    header nav>ul>li:last-of-type a {
        background: transparent;
    }

    .header-mobile-block img {
        width: 40%;
        margin-left: 1.5rem;
    }

    #logo img {
        display: none;
    }

    aside {
        display: none;
    }

}

@media (min-width: 992px) and (max-width: 1399px) {
    nav>ul>li>a {
        font-size: 1.3rem;
    }
}

/*  HEADER ENDE  ---------------------------------------------------------------------------------------------------------------------------   */