@import url('https://cdn.3wm.de/fonts/css?family=Barlow:300,400,700|Roboto+Condensed:300,400,700&display=swap');

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
}

.menu--open body {
    overflow: hidden;
}

ul, ol, li {
    margin: 0;
    padding: 0;
    position: relative;
}

ol {
    padding-left: 20px;
}

.content ul li {
    margin-left: 22px;
}

[data-webcode="201"] #Streifen_2 li::marker,
[data-webcode="201"] #streifen_13 li::marker {
    color: #fff;
}

a {
    text-decoration: none;
    color: #c1b77d;
}

h1, .h1, h2, .h2, h3, .h3 {
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    font-family: 'Roboto Condensed', sans-serif;
}

h3, .h3 {
    font-weight: normal;
}

#pageWrapper {
    height: 100%;
}

#header {
    height: 100%;
}

#header__logo {
    height: 200px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    transition-duration: 0.5s;
    transition-property: height, padding, margin;
    z-index: 18;
}

#header__logo.smaller {
    height: 80px;
}

.logo__img {
    height: calc(100% - 30px);
}

#header__logo_img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

#header__menu_img {
    position: absolute;
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s
}

#header__menu {
    height: 110px;
    line-height: 110px;
    padding: 0 !important;
    z-index: 100;
    background: #fff;
    position: relative;
    transition: all 0.5s;
}

#content {
    z-index: 6;
}

.sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
}

.sticky #header__menu_img {
    opacity: 1;
    visibility: visible;
    transition: all 0.2s;
    z-index: 1;
}

#header__menu.sticky {
    height: 80px;
    line-height: 80px;
}

#header.no--image {
    height: 310px;
}

#header.no--image #header__menu {
    top: 200px;
    transition: top 0ms;
}

#header.no--image #header__menu.sticky {
    top: 0;
}

ul.menu {
    list-style: none;
    text-align: center;
}

.menu li {
    display: inline-block;
}

.menu a {
    color: #000;
    text-transform: uppercase;
}

.menu li:after {
    content: '|';
    margin: 0 10px;
}

.menu li:last-of-type:after {
    content: '';
}

.strukturbild_image {
    padding-top: 80px;
    height: calc(100% - 80px - 110px);
    background-position: center center;
    background-size: cover;
}

.templateContainer .contentContainer,
#footer .contentContainer {
    width: 1320px;
    margin: 0 auto;
    padding: 30px 0;
}

.templateContainer {
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
}

#content .content {
    padding: 25px;
    position: relative;
    top: 50px;
    opacity: 0;

    transition: 500ms ease-in-out;
    transition-property: top, opacity;
}

#content .content.visible {
    opacity: 1;
    top: 0 !important;
}

.trenner {
    background-position: center center;
    background-size: cover;
    transition: height 0.5s
}

#footer {
    background: #aaaaaa;
    color: #fff;
}

#footer .content {
    padding: 25px;
}

.footer__sub {
    text-transform: uppercase;
    height: 85px;
    line-height: 85px;
    background: #fff;
    color: #aaaaaa;
    transition: all 0.5s;
}

#footer a {
    color: inherit;
}

#header__open_menu_wrapper {
    position: fixed;
    right: 20px;
    top: 40px;
    height: 23px;
    transform: translateY(-50%);
    cursor: pointer;
}

#header__open_menu {
    position: relative;
    top: 10px;
    background: #000;
    transition: all 0ms 300ms;
    display: none;
}

#header__open_menu, #header__open_menu:before, #header__open_menu:after {
    text-shadow: none !important;
    box-shadow: none !important;
    width: 30px;
    height: 2px;
}

#header__open_menu:before, #header__open_menu:after {
    transition: background 250ms ease-in-out;
}

#header__open_menu:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    background: #000;
    transition: bottom 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

#header__open_menu:after {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    background: #000;
    transition: top 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.menu--open #header__open_menu {
    background: rgba(255, 255, 255, 0) !important;
}

.menu--open #header__open_menu:before, .menu--open #header__open_menu:after {
    background: #000;
}

.menu--open #header__open_menu:after {
    top: 0;
    transform: rotate(45deg);
    transition: top 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.menu--open #header__open_menu:before {
    bottom: 0;
    transform: rotate(-45deg);
    transition: bottom 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

div#overlay__choose {
    display: none;
    background-image: url("/theme/images/landingpage_background.jpg");
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background-color: #d8e0eb;
    background-position: center center;
    background-size: cover;
}

#overlay__choose .footer__sub {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 50px;
    height: 50px;
}

#overlay__choose .footer__sub a {
    color: #000;
}

#overlay__kacheln {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: minmax(auto, 400px) minmax(auto, 400px);
    grid-column-gap: 50px;
}

.overlay__kachel {
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 400px;
    border: 5px solid;
    display: inline-block;
    background-color: #fff;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    background-origin: content-box;
    padding: 15%;
    box-sizing: border-box;
}

.overlay__kachel:after {
    content: '';
    display: block;
    padding-top: 100%;
}

#overlay__chose_innere_medizin {
    border-color: #5D80A8;
    background-image: url("/theme/images/innere_medizin.jpg");
}

#overlay__chose_akupunktur {
    border-color: #C1B77D;
    background-image: url("/theme/images/akupunktur.jpg");
}

@media (max-width: 1700px) {
    #header__menu.sticky ul.menu {
        text-align: right;
    }
}

@media (max-width: 1400px) {
    #header__menu.sticky {
        font-size: 18px;
    }

    #header__menu_img {
        left: 30px;
    }
}

@media (max-width: 1340px) {
    .templateContainer .contentContainer, #footer .contentContainer {
        width: 100%;
    }

    .tinymceImage {
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 1300px) {
    #header__logo {
        height: 150px;
    }

    #header__menu {
        font-size: 18px;
    }

    .menu li:after {
        margin: 0 7px;
    }

    .lang_switch {
        left: auto !important;
        right: 115px;
        top: 29px !important;
    }

    /*}*/
    /*@media (max-width: 950px) {*/
    #header__menu_img {
        display: none !important;
    }

    .templateContainer .content {
        padding: 20px;
    }

    #footer .content {
        padding: 15px 20px;
    }

    #header {
        height: 50%;
    }

    #header__logo {
        height: 80px;
    }

    #header__open_menu {
        display: block;
    }

    #header__menu_img {
        display: none;
    }

    #header__menu,
    #header__menu.sticky {
        position: fixed;
        top: 80px;
        width: 300px;
        right: -300px;
        line-height: 1;
        height: calc(100% - 80px);
        transition: right 0.5s;
        font-size: 28px;
        z-index: 15;
        padding: 0 20px !important;
        box-sizing: border-box;
    }

    .menu--open #header__menu {
        right: 0;
        box-shadow: 4px 10px 20px 0 black;
    }

    .menu {
        padding-top: 25px;
        padding-right: 10px;
    }

    .menu li:after {
        content: '';
    }

    .menu li {
        display: block;
        margin: 20px 0;
        text-align: right;
    }

    .sticky {
        left: auto;
    }

    #content,
    .strukturbild_image {
        transition: filter 0.5s;
    }

    .strukturbild_image {
        height: calc(100% - 80px);
    }

    .menu--open #content,
    .menu--open .strukturbild_image,
    .menu--open #footer {
        filter: blur(3px);
        -webkit-filter: blur(3px);
    }

    #header__logo_img {
        left: 20px;
        transform: translateY(-50%);
        height: 50px;
    }

    #content .contentContainer,
    #footer .contentContainer {
        padding: 0;
    }

    .trenner {
        /*height: 350px;*/
    }

    /**
    Erster Streifen -> contenContainer flex, damit Mobil zuerst der Text, dann das Bild ausgegeben wird
     */
    .templateContainer:first-of-type .contentContainer,
    .templateContainer:first-of-type .contentContainer .cms_container {
        display: flex;
        flex-flow: column;
    }

    #cms_content_74 {
        order: 2;
    }

    #cms_content_17 {
        order: 1;
    }

    #header__telefon {
        position: fixed;
        right: 70px;
        top: 40px;
        height: 30px;
        transform: translateY(-50%);
        cursor: pointer;
        color: #000;
    }

    #header__telefon:before {
        content: '\f095';
        font-family: FontAwesome;
        font-size: 26px;
    }

    #footer p {
        text-align: left;
    }

    .content .button_slider.gallery3wm.slide .slideWrapper .item {
        width: calc(100% / 15) !important;
        margin-right: calc(100% / 38);
    }
}

@media (max-width: 800px) {
    #overlay__kacheln {
        grid-column-gap: 50px;
        /*grid-template-columns: minmax(auto, 600px);*/
        grid-row-gap: 5%;
        padding: 100px;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    .overlay__kachel {
        margin: 0 auto;
    }
}

@media (max-width: 660px) {
    #overlay__kacheln {
        grid-template-columns: minmax(auto, 300px);
        padding: 40px 80px;
        padding-bottom: 100px;
        height: calc(100vh - 50px);
        top: 0;
        transform: translate(-50%, 0);
    }

    .content {
        width: 100% !important;
    }

    .content p {
        text-align: left !important;
    }

    .content .button_slider.gallery3wm.slide .slideWrapper .item {
        width: calc(100% / 10) !important;
        margin-right: calc(100% / 18);
    }
}

@media (max-width: 440px) {
    .footer__sub {
        line-height: 60px;
        height: 60px;
        font-size: 15px;
    }

    h1, .h1, h2, .h2, h3, .h3 {
        font-size: 25px;
    }

    .content .button_slider.gallery3wm.slide .slideWrapper .item {
        width: calc(100% / 4) !important;
        margin-right: calc(100% / 1);
    }

    #overlay__kacheln {
        padding: 20px;
    }
}

@media (max-height: 720px) and (max-width: 660px) {
    #overlay__kacheln {
        grid-template-columns: minmax(auto, 200px);
        padding: 20px 80px;
    }
}

@media (max-height: 535px)  and (max-width: 660px) {
    #overlay__kacheln {
        grid-template-columns: minmax(auto, 150px);
        padding: 20px;
    }
}

@media (max-height: 475px)  and (max-width: 660px) {
    .menu {
        padding-top: 0;
    }

    #overlay__kacheln {
        grid-template-columns: minmax(auto, 300px) minmax(auto, 300px);
        padding: 20px;
    }
}

@media (max-height: 390px)  and (max-width: 660px) {
    #overlay__kacheln {
        grid-template-columns: minmax(auto, 200px) minmax(auto, 200px);
        padding: 20px;
    }
}

@media (max-height: 390px) {
    #header__menu {
        overflow: auto;
    }
}

@media (max-width: 390px){
    #header__telefon {
        right: 60px;
    }

    .lang_switch {
        right: 95px !important;
    }

    #header__logo_img {
        height: 40px;
    }
}


.mobile .current_structure {
    display: none !important;
}