@font-face {font-family: 'Questrial'; font-style: normal; font-weight: 400;
    src: url(/fonts/Questrial.woff2) format('woff2');
}

a {
    color:#f28342;
    text-decoration: none;
}
h1:not(.new_design h1) {
    font-family: "Questrial";
    font-weight: bold;
    font-size: 23px;
    color: #99292e;
    padding-left: 75px;
    padding-top: 0.8em;
    height: 1.8em;
    margin: 0.8em 0 0 0;
}
h1:before:not(.new_design h1) {
    content: '';
    position: absolute;
    background-color: #f28342;
    height: 17px;
    width: 17px;
    margin-top: 4px;
    margin-left: -25px;
}
h2, h3, h4 {
    font-family: "Questrial";
    font-weight: bold;
    font-size: 16px;
    color: #99292e;
    padding-left: 50px;
    margin: 1.0em 0 0.7em 0;
	width:80%;
}

.new_design h2, .new_design h3, .new_design h4 {
    color: black;
}

.new_design h2, .new_design h3, .new_design h4 {
padding-left:0;
}

p {
    font-family: "Questrial";
    font-weight: normal;
    font-size: 16px;
    margin-top: 0.9em;
    color: black;
    padding:0 40px 0 50px;
    margin-bottom: 0;
    line-height: 1.4em;
}

.new_design p {
    padding:0;
}

/*ul {margin-left: 30px;color:#333;width:80%;font-family: "Questrial"; font-weight: normal; font-size: 13px;line-height: 1.4em;}*/
body {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: "Questrial";
    color: #999999;
}
#topbar {
    position:relative;
    background-color: white;
    margin: 0;
    height: 100px;
    /*height: 160px;*/
    /*min-width: 800px;*/
    border-bottom: 1px solid #CCCCCC;
    background: url(../img/site/logo.jpg) no-repeat;
    background-position: center center;
    background-size: contain;
    display: block;
    text-align: right;
}

#bodyContainer, #container {
    position: relative;
    /*width: 100%;*/
    border-bottom: 1px solid #CCCCCC;
    display: block;
    text-align: left;
    background-color: white;
}
#container {
    padding-left: 40px;
    height:0;
    border:none;
    background-color:#f9f9f9;
    overflow: hidden;
}
#container.open {
    height:auto;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #CCCCCC;
}
#bodyContainer {
    position: relative;
    border-style:none;
    padding-left: 25px;
    padding-right: 25px;
    padding-top:20px;
}


#menubar {
    position: relative;
    font-size: 16px;
    font-family: "Questrial";
    line-height: 33px;
    margin: 0 auto;
    z-index: 1;
    cursor: default;
}
.menuItem {
    flex: 1 1 auto;
}
.menuInnerItem {
    text-align: center;
    position: relative;
    padding: 7px;
    display: inline;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    color: #616161;
    cursor: default;
}

.menubar {
    overflow: hidden;
    /*width: 0;*/
    height: auto;
}
/* Hamburger-Button (nur mobil sichtbar) */
#menuToggle {
    display: none;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 21;
}
#menuToggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background-color: #99292e;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#menuToggle span + span {
    margin-top: 6px;
}
body.menu-open #menuToggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
body.menu-open #menuToggle span:nth-child(2) {
    opacity: 0;
}
body.menu-open #menuToggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Abdunkelung hinter dem mobilen Menü (Element wird per JS eingefügt) */
#menuBackdrop {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 18;
}
body.menu-open #menuBackdrop {
    opacity: 1;
    visibility: visible;
}
.wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    background-color: #f5f5f4;;
    padding-bottom: 50px;
    overflow: hidden;
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
}
table {
    font-family: "Questrial";
    font-weight: normal;
    font-size: 16px;
    margin-top: 0.9em;
    color: black;
    padding:0 40px 0 50px;
    margin-bottom: 0;
    line-height: 1.4em;
}

.new_design table {
    padding: 0;
}

td {
    vertical-align: top;
}
#form {
    position: relative;
    max-height: 800px;
    margin-top:20px;
    overflow: hidden;
}
.new_design #form {margin-top:50px;
}
.new_design #form .left {
    margin-left:0;
}
#form .left {
    margin-left: 80px;
    float: left;
    width: 135px;
}
#form .right {
    margin-left: 225px;
    margin-right:30px;
    min-width: 195px;
    /*max-width: 400px;*/
}
#form li {
    display: block;
    text-decoration: none;
    cursor: default;
    font-family: "Questrial";
    font-weight: normal;
    font-size: 14px;
    color: black;
    line-height: 2em;
}
#form input, #messageTextarea {
    border: 1px solid #CCCCCC;
    padding:3px;
    outline: none;
    font-family: "Questrial";
    font-weight: normal;
    font-size: 14px;
    color: #999999;
    background-color: white;
    width: 100%;
    line-height: 1.2em;
    text-align: left;
}
#form button[type="button"] {
    color:#f28342;
    border:none;
    background:none;
    font-family: "Questrial";
    font-weight: normal;
    font-size: 14px;
    line-height: 1.2em;
    text-align: center;
    width:auto;
    float: right;
    margin-right: -10px;
    padding:3px;
}
#form #messageTextarea {
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-y: scroll;
    margin: 2px 0;
    max-height: 300px;
}
/*content .singleSection {
    width: 1000px;
    margin-left: calc(50% - 1000px/2);
    text-align: justify;
}*/
#iconContainer{
    position: relative;
    float: right;
    margin-top: 38px;
    outline: none;
    overflow: hidden;
    width: 0;
}
footer {
    position:relative;
    height:170px;
    background-color: #99292e;
    color: white;
    /*min-width: 800px;*/
    /*border: 1px solid #CCCCCC;*/
}
footer .logo {
    margin: -40px 0 0 50%;
    transform: translateX(-50%);
    width: 70px;
    height:70px;
    border: 3px solid white;
    border-radius: 50px;
}

/* Dropdown */

.wrapper-dropdown {
    /* Size & position */
    position: absolute;
    display: inline-block;
    text-align: right;
    margin: 1em 50px 0 0;
    overflow: visible;
    height: 0;
    /* Styles */
    cursor: default;
    outline: none;
    color: blue;
}

.new_design .wrapper-dropdown {
    display: inline;
    text-align: left;
    position:relative;
    padding-top:30px;
    margin-bottom:30px;
}

#privacy.wrapper-dropdown {
    margin-left: 50px;
    position: relative;
}

#privacy.wrapper-dropdown .dropdown {
    left:0;
    border-left: none;
}
#privacy.wrapper-dropdown .dropdown p {
    margin-top: 1em;
    padding-left: 0;
}
#Datenschutz:before {
    content: ''; display: block; position: relative; width: 0; height: 50px; margin-top: -50px;
}

.wrapper-dropdown .dropdown {
    /* Size & position */
    position: relative;
    text-align: justify;
    left: 50px;
    /*width: calc(100% - 60px);*/
    line-height: 18px;
    
    /* Hiding */
    max-height: 0;
    overflow: hidden;
}

.new_design .wrapper-dropdown .dropdown {
    left:0;
    position:relative;
    text-align: justify;
}

.wrapper-dropdown .dropdown p {
    padding-left:7px;
}
.wrapper-dropdown .dropdown p:first-of-type {
    margin-top: 0;
}
.wrapper-dropdown .dropdown {
    border-left: 6px solid #f28342;
}
.wrapper-dropdown.active .dropdown {
    max-height: 600px;
    margin:0;
    margin-top: 10px;
}
.wrapper-dropdown.tall.active .dropdown {
    max-height: 4000px;
}
.wrapper-dropdown .dropdownLabel {
    display: inline-block;
    color:#f28342;
}
.wrapper-dropdown.active {
    position: relative;
}
#errormsg {
    color:red;
    font-style: italic;
    padding-left: 80px;
}
footer .address {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top:50px;
    line-height: 1.5em;
    text-align: center;
    width: max-content;
}
.logocontainer {
    top: 20px;
}
#icon_phone {
    display: inline-block;
    background: url(../img/site/icon_phone.png) no-repeat;
    background-position: center center;
    background-size: contain;
    width: 35px;
    height: 35px;
    margin-right: 30px;
}
#icon_mail {
    display: inline-block;
    background: url(../img/site/icon_mail.png) no-repeat;
    background-position: center center;
    background-size: contain;
    width: 33px;
    height:33px;
    margin-right: 20px;
}
.profile {
    position: relative;
    display: block;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    border-radius: 125px;
}
.group_photo {
    position: relative;
    display: block;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    border-radius: 10px;
}
#map-canvas {
    display: block;
    height:350px;
    width:80%;    
    margin:20px 50px 20px 50px;
	position:relative;
}



.kd_maps_optin {position:absolute;background:url(../img/site/map-dummy.jpg) center center;background-size:cover;width:100%;height:100%;}
.kd_maps_optin p {font-size:13px;padding:140px 20px 0;width:calc(100% - 40px);font-weight:700;text-align:center;text-shadow: 1px 1px 1px #fff, -1px -1px 1px #fff, 2px 2px 5px #fff, -2px -2px 5px #fff;}
.kd_maps_optin a {font-weight:bold;}
.kd_maps_optin .map-button {font-size:13px;padding:5px 10px;background:#902721;color:#fff;font-weight:bold;border:none;}

.link {
    position: absolute;
    left: 20px;
    bottom: 10px;
}
.link a {
    color: white;
    font-size: 14px;
}

#index-box {
    margin-top:20px;
    display:flex; flex-direction: column; text-align:center;
}
#index-left {
     order:2;
}
#index-right {
     order:1;
    margin-bottom:20px;
}

.vstack {
    margin-top:20px;
    display:flex; flex-direction: column; text-align: justify;
}
.vtop {
     order:1;
}
.vbottom {
     order:2;
    margin-top:30px;
}

.address_box {
    line-height: 2em;
    overflow-x: visible;
    display: inline;
    overflow: hidden; 
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hstack {
    margin-top:20px;
    display:flex; flex-direction: column; text-align: justify;
}
.hleft {
     order:1;
     padding-right:50px;
}

.hright {
    font-size: 1em;
     order:2;
}
.profile:not(.profile.mobile){
    display:none;
}
.contact_container:not(.contact_container.mobile){
    display:none;
}

/* Themen-Untermenü: mobil eingerückt sichtbar, Desktop als Dropdown (siehe Media Query) */
.menuItem.has-submenu .submenu {
    display: block;
    padding-left: 20px;
}
.submenuItem {
    display: block;
    font-family: "Questrial";
    color: #616161;
    text-decoration: none;
    padding: 3px 7px;
    line-height: 1.8;
    transition: color 0.2s ease;
}
.submenuItem:hover, .submenuItem.active {
    color: #99292e;
}
.menuInnerItem {
    transition: color 0.2s ease;
}
.menuInnerItem:hover {
    color: #99292e;
}
.submenuArrow {
    display: none;
}

/* Aufzählungen im Seiteninhalt: kein Blocksatz */
ul, ol {
    text-align: left;
}
.new_design ul {
    font-family: "Questrial";
    font-size: 16px;
    color: black;
    line-height: 1.5;
    margin: 0.6em 0 0.9em 0;
    padding-left: 25px;
}
.new_design ul li {
    margin-bottom: 0.2em;
}
/*
.team_member {
    margin-bottom: 40px;
    flex-wrap: wrap;
    display:flex;
    flex-direction: column;
}
.profile_name {
    order:1;
}
.about {
    order:3;
}

.contact_container{
    order:5;
}
.profile_picture{
    order:2;
}
.contact {
    order:4;
}*/



#bodyContainer.new_design {
    color:black;
    background: #f5f5f4;
}

#index-box.left-align{
    text-align: justify;
}

.new_design h1 {
    font-family: "Questrial";
    font-weight: medium;
    color: black;
    font-size: 20px;
}

#img-index {
    width:100%; margin-bottom:-50px; margin-top:20px;
}

#osteopathie_wrapper {
    background-color: #616161;
    width: 100%;
}

@media (min-width: 820px) {
    #menubar {
        width: 800px;
        height: 33px;
        display: -webkit-flex;
        -webkit-flex-direction: row;
        display : flex;
        flex-direction: row;
    }
    #menubar:after {
        content: '';
        position: absolute;
        left:0px;
        height: 8px;
        bottom: -8px;
        width: 100%;
        opacity: 0.5;
        background: url(../img/site/shadow.png) no-repeat top center;
        background-size: 100% auto;
    }
    .wrapper {
        margin: 30px 0;
        border: 1px solid #CCCCCC;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
        width: 800px;
        margin-left: calc((100% - 800px)/2);
        line-height: 1.5;
    }
    #bodyContainer.new_design .wrapper {
        margin: 30px 0;
        border: none;
        box-shadow: none;
        width: 800px;
        margin-left: calc((100% - 800px)/2);
        background: transparent;
        
    }
    #iconContainer {
        margin-right: 50px;
        width:auto;
    }
    #container, #container.open{
        padding:0;
        height:33px;
        border-bottom: 1px solid #CCCCCC;
    }
    .menuItem {
        text-align: center;
    }
    #container.fixed #menubar{
        height:40px;
        line-height:40px;
    }
    #container.fixed {
        position: fixed;
        top:0px;
        width: 100%;
        z-index: 2;
        opacity: 0.97;
        height:40px;
    }
    #bodyContainer.fixed {
        padding-top: 33px;
    }
    #bodyContainer {
        padding: 0;
        padding-bottom: 60px;
        /*background: url(../img/site/background.png) no-repeat top left;*/
        background-attachment:fixed;
        background-size: cover;
    }
    #bodyContainer.new_design {
        padding-bottom: 60px;
        background-attachment:fixed;
        background-size: cover;
    }
    .menuInnerItem.active {
        border-bottom-color: #99292e;
    }
    #map-canvas {width:87%;}

    /* Themen-Dropdown (Desktop) */
    #container, #container.open {
        overflow: visible;
    }
    .menuItem.has-submenu {
        position: relative;
    }
    .menuItem.has-submenu .submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        min-width: 200px;
        padding: 8px 0;
        background-color: #f9f9f9;
        border: 1px solid #CCCCCC;
        border-top: none;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
        text-align: left;
        z-index: 3;
    }
    .menuItem.has-submenu:hover .submenu,
    .menuItem.has-submenu:focus-within .submenu {
        display: block;
    }
    .submenuItem {
        padding: 3px 18px;
        white-space: nowrap;
        line-height: 1.9;
    }
    .submenuArrow {
        display: inline;
        font-size: 11px;
    }
}
@media (min-width: 715px) {
    #index-box {
        display:table; margin-left: 50px; margin-right: 50px; margin-top:50px; overflow:none;
    }
    #index-left {
        vertical-align: middle; display:table-cell; width:70%;
    }
    #index-right {
        display:table-cell;
        margin-top:0;
    }
    #img-index {
        visibility: hidden;
        height:0px;
    }
    .hstack {
       flex-direction: row;
    }
    .team_member:nth-child(2n) .hleft {
        order:2;
        padding:0;
    }
    
    .team_member:nth-child(2n) .hright {
        order:1;
        padding-right:50px;
    }
    .profile {
        border-radius: 20px;
        width:300px;
    }
    .contact_container:not(.contact_container.mobile){
        display:block;
    }
    .contact_container.mobile{
        display: none;
    }
    .profile:not(.profile.mobile){
        display:block;
    }
    .profile.mobile{
        display:none;
    }
}

@media (max-width: 715px) {
    .hright .vbottom{margin-top: 0;}
.vstack {margin-top:0;}
.contact_container {
padding-top:40px;
}
.team_member {
    margin-bottom:70px;
}
.pricing {
    text-align: left;
}
}
.contact_container {
    text-align: center;
}
.hidden {
    visibility: hidden;
}
.contact_button {
    display: inline-block;
    margin: 5px;
    color: white;
    background-color: #f28342;
    padding: 7px 20px 7px 20px;
    border: 3px solid white;
    border-radius: 20px;
}
.contact_button.doctolib {
    background-color: #00264c;
    opacity: .8;
}
.doctolib_logo {
    vertical-align: middle;
    height:20px;
    margin: 0 5px 0 0px;

}
@media (min-width: 600px) {
    #form .right {
        margin-right: 80px;
    }
}

/* Mobil: fixierte Topbar + Off-Canvas-Menü */
@media (max-width: 819px) {
    body {
        padding-top: 64px;
    }
    body.menu-open {
        overflow: hidden;
    }
    #topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 64px;
        z-index: 20;
        background-color: #ffffff;
        background-position: center center;
        background-size: auto 54px;
        border-bottom: 1px solid #E5E5E5;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }
    #menuToggle {
        display: block;
    }
    #container, #container.open {
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        height: auto;
        padding: 12px 0;
        background-color: #ffffff;
        border: none;
        box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        transform: translateX(110%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s ease;
        z-index: 19;
    }
    #container.open {
        transform: translateX(0);
        visibility: visible;
    }
    #menubar {
        line-height: 1.5;
    }
    .menuInnerItem {
        display: block;
        padding: 13px 24px;
        text-align: left;
        font-size: 17px;
    }
    .menuInnerItem.active {
        color: #99292e;
        border-left: 3px solid #f28342;
        padding-left: 21px;
    }
    .menuItem.has-submenu .submenu {
        padding-left: 0;
    }
    .submenuItem {
        padding: 10px 24px 10px 40px;
    }
}

/* Mobil (einspaltiges Layout): gleiches Padding links/rechts, Bild mittig */
@media (max-width: 714px) {
    .hleft {
        padding-right: 0;
    }
}

/* Mobil: Team-Seite zentrieren */
@media (max-width: 819px) {
    .team_page .team_member,
    .team_page .hstack,
    .team_page .vstack {
        text-align: center;
    }
    .team_page .team_member p {
        text-align: center;
    }
    .team_page .wrapper-dropdown {
        text-align: center;
    }
}

/* Mobil: Karte volle Breite */
@media (max-width: 819px) {
    #map-canvas {
        width: 100%;
        margin: 20px 0;
    }
}

/* Mobil: schmalere Label-Spalte im Kontaktformular */
@media (max-width: 599px) {
    #form .left {
        margin-left: 0;
        width: 105px;
    }
    #form .right {
        margin-left: 115px;
        margin-right: 0;
        min-width: 0;
    }
    #errormsg {
        padding-left: 0;
    }
    #form button[type="button"] {
        margin-right: 0;
    }
}


.price_list {
    font-family: "Questrial";
    font-size: 16px;
    margin-top: 1.2em;
}
.price_item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 30px;
    padding: 0.7em 0;
    border-bottom: 1px solid #ddd;
}
.price_item:last-child {
    border-bottom: none;
}
.price_name {
    font-weight: bold;
}
.price_details {
    text-align: right;
    flex-shrink: 0;
    max-width: 55%;
}
@media (max-width: 500px) {
    .price_item {
        flex-direction: column;
        gap: 4px;
    }
    .price_details {
        text-align: left;
        max-width: 100%;
    }
}

.contact_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 0.7em 0;
    border-bottom: 1px solid #ddd;
}
.contact_row:last-of-type {
    border-bottom: none;
}
.contact_row p {
    margin: 0;
}
.contact_row .contact_button {
    flex-shrink: 0;
}
.contact_row_buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}
@media (max-width: 500px) {
    .contact_row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .contact_row .contact_button,
    .contact_row_buttons {
        align-self: center;
    }
    .contact_row_buttons {
        justify-content: center;
        width: 100%;
    }
    .contact_button {
        box-sizing: border-box;
        width: 260px;
        text-align: center;
    }
}
