@import url("https://fonts.verwaltungsportal.de/import/?family=Nunito:400,400i,700,700i");

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #fdf8f2;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #004101 #ffffff;
}

body {
    font-family: "Nunito", sans-serif;
    font-weight: 300;
    color: #191919;
    background: #ffffff;
    font-size: clamp(1rem, 2vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
}

a {
    color: #c6360d;
}

a:is(:hover, :focus) {
    color: #c6360d;
    text-decoration: underline;
}

#content a,
b,
strong {
    font-weight: 700;
}

#over {
    position: relative;
    overflow: hidden;
}

/* -------------------------------------------- logo -------------------------------------------- */

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

@media (max-width: 991px) {
    #logo img {
        max-width: calc(100vw - 120px);
        width: 100%;
    }
}

/* #region ---------------------------------- navigation ---------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: static !important;
    }

    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #ffffff;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #c6360d;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        transition: transform 200ms linear, opacity 200ms linear;
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    #burgerButton[aria-expanded="true"]::before {
        opacity: 0;
    }

    #burgerButton[aria-expanded="true"]:after {
        transform: rotate(45deg) translate(-4px, -6px);
    }

    #burgerButtonInner {
        top: 16px;
    }

    #burgerButton::before {
        top: 24px;
        content: "";
    }

    #burgerButton::after {
        top: 32px;
        content: "";
    }

    .navbar-nav {
        margin: 20px 15px;
    }

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #ffffff;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 100;
        height: auto !important;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        overflow-y: auto;
        transition: left 300ms linear, opacity 300ms linear, box-shadow 600ms linear;
        box-shadow: 250px 0 50vw 50vw rgba(255, 255, 255, 0);
    }

    .navbar-collapse:is([aria-expanded="true"], .in) {
        left: 0;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        box-shadow: 250px 0 50vw 50vw rgba(0, 0, 0, 0.6);
    }

    .navbar-header {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
    }

    .dropdown-toggle-button-wrapper {
        top: 2px;
    }

    .dropdown-toggle-button-wrapper2 {
        top: 1px;
    }
}

/* menu desktop */

#menu {
    padding: 9px 0;
}

@media (min-width: 1200px) {
    .horizontally>.row {
        max-width: 1600px;
        width: 100% !important;
    }
}

@media (min-width: 992px) {
    #menu {
        padding: 0;
    }
    .horizontally {
        background: #ffffff;
        padding: 0 20px;
        transition: box-shadow 300ms linear;
    }

    .is-sticky .horizontally {
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
    }

    nav.horizontally .navbar-nav {
        padding-left: clamp(15px, 2vw, 30px);
        flex-grow: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    nav.horizontally .navbar-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    nav.horizontally .navbar-nav [class*="secondlevel"]>ul {
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav li {
        position: relative;
    }

    nav.horizontally .navbar-nav li:is(.open, :hover)>ul,
    nav.horizontally .navbar-nav li.open:focus-within>ul,
    nav.horizontally .navbar-nav li[class*="secondlevel"]>ul[style*="block"] {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible;
    }

    nav.horizontally .navbar-nav li.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.horizontally .navbar-nav li:is(:hover, :focus)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #004101;
    font-weight: bold;
    text-align: left;
    padding: 10px 35px;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (min-width: 992px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 10px;
    }

    nav.horizontally a[class*="toplevel"] {
        padding: 10px 0;
        text-align: center;
    }
}

nav.horizontally a[class*="toplevel"]::before,
nav.horizontally a[class*="toplevel"]::after {
    content: "";
    width: 0;
    height: 1px;
    display: block;
    position: absolute;
    left: 0;
    transform: translateX(-50%);
    bottom: 0;
    background-color: #c6360d;
    opacity: 0;
    -webkit-transition: opacity 300ms linear, width 300ms linear;
    -moz-transition: opacity 300ms linear, width 300ms linear;
    -ms-transition: opacity 300ms linear, width 300ms linear;
    -o-transition: opacity 300ms linear, width 300ms linear;
    transition: opacity 300ms linear, width 300ms linear;
}

nav.horizontally a[class*="toplevel"]::before {
    top: 0;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::before,
    nav.horizontally a[class*="toplevel"]::after {
        left: 50%;
    }
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open>a,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"][class*="_over"]>a,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #c6360d;
    background-color: #ffffff;
}

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::before,
nav.horizontally li[class*="toplevel"]>a::before:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open>a::before,
nav.horizontally li[class*="toplevel"].open>a::before:is(:hover, :focus),
nav.horizontally li[class*="toplevel"][class*="_over"]>a::before,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::before:is(:hover, :focus),
nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::after,
nav.horizontally li[class*="toplevel"]>a::after:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open>a::after,
nav.horizontally li[class*="toplevel"].open>a::after:is(:hover, :focus),
nav.horizontally li[class*="toplevel"][class*="_over"]>a::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::after:is(:hover, :focus) {
    opacity: 1;
    width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #ffffff;
    border-left: 4px solid #004101;
    border-radius: 20px;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    nav.horizontally [class*="toplevel"]>ul {
        padding: 15px;
    }
}

@media(min-width:992px) {
    nav.horizontally [class*="toplevel"] ul {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 30px;
        left: -20px;
    }

    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::before {
        content: "";
        position: absolute;
        display: block;
    }

    nav.horizontally [class*="toplevel"]>ul::before {
        height: 30px;
        left: 0;
        right: 0;
        top: -30px;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        margin-left: 10px;
        margin-top: -18px;
    }

    nav.horizontally [class*="secondlevel"]>ul::before {
        width: 10px;
        top: 0;
        bottom: 0;
        left: -10px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #444444;
    font-weight: 400;
    text-align: left;
    padding: 7px 35px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (min-width: 992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding: 7px 20px;
    }
}

/* secondlevel + thirdlevel over */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus) {
    background: #ffffff;
    color: #c6360d;
}

/* #endregion ------------------------------- navigation ---------------------------------------- */

/* -------------------------------------------- search ------------------------------------------ */

#search {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: block;
    padding-top: 16px;
}

@media (min-width: 992px) {
    #search {
        border-top: none;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        margin-left: clamp(15px, 2vw, 30px);
        padding: 16px 0 16px 15px;
        flex: 0 0 auto;
    }
}

@media (min-width: 1200px) {
    #search {
        padding: 16px 9px 16px 24px;
    }
}

#search img {
    display: block;
    margin: 0 auto;
    padding: 10px;
    border: 2px solid transparent;
    transition: border 200ms linear;
}

@media (min-width: 992px) {
    #search img {
        padding: 4px;
    }
}

#search:is(:hover, :focus) img {
    border-color: #c6360d;
}

/* -------------------------------------------- banner ------------------------------------------ */

#slider {
    max-height: clamp(300px, 58vw, 509px);
    position: relative;
}

@media (min-width: 768px) {
    .index #headerpic .nivo-controlNav {
        bottom: unset;
        top: 30px;
    }
}

@media (min-width: 992px) {
    #slider {
        min-height: 200px;
    }

    #headerpic a.nivo-prevNav {
        left: 65px;
    }

    #headerpic a.nivo-nextNav {
        right: 65px;
    }
}

#headerpic {
    padding: 0;
    position: relative;
}

.slider-wrapper,
#slider {
    height: 100%;
}

.slider-mask {
    display: block;
    background: url('../img/slider-mask.png') no-repeat bottom center / 100% auto;
}

/* --------------------------------------------- tabs ------------------------------------------- */

#tabs {
    margin-top: 15px;
    row-gap: 15px;
}

@media (min-width: 1200px) {
    #tabs {
        margin-top: -100px;
        position: relative;
        z-index: 55;
    }
}

#headerpic .tab {
    font-size: 1rem;
    background: #fdf8f2;
    min-height: 100%;
    position: relative;
    padding: clamp(20px, 3vw, 40px);
    border-radius: 30px;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
}

#headerpic .tabHeadline {
    margin: 0 0 5px 0;
    font-size: 1.375rem;
    text-transform: none;
}

#headerpic .tab.tab1 a,
.buttonStyle a:not(.has-image) {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fefefe;
    padding: 10px 15px;
    border-radius: 19px;
    margin-top: 20px;
    background-color: #c6360d;
}

#headerpic .tab.tab1 a:is(:hover, :focus),
.buttonStyle a:is(:hover, :focus) {
    text-decoration: none;
    background-color: #004101;
}

#headerpic .tab.tab2 a {
    text-decoration: underline;
}

#headerpic .tab a+a {
    margin-left: 15px;
}

/* ------------------------------------------- content ------------------------------------------ */

#content {
    text-align: left;
    padding-bottom: clamp(40px, 6vw, 80px);
    padding-top: clamp(40px, 6vw, 50px);
}

.index #content>.row {
    padding-bottom: 40px;
}

/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #004101;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Nunito', sans-serif;
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(2.375rem, 4vw, 2.8125rem);
}

h2,
.h2,
.legacy_h2 {
    font-size: clamp(2.1875rem, 4vw, 2.5rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(2.0625rem, 4vw, 2.375rem);
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: clamp(1.75rem, 4vw, 2.0625rem);
}

h5,
.h5,
.legacy_h5 {
    font-size: clamp(1.5625rem, 4vw, 1.875rem);
}

h6,
.h6,
.legacy_h6 {
    font-size: clamp(1.4375rem, 4vw, 1.75rem);
}

/* -------------------------------------------- offer ------------------------------------------- */

#offer>.row {
    row-gap: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 40px;
}

#offer .firstHeadline {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    margin-top: 15px;
}

#offer .tabHeadline {
    color: #c6360d;
    font-size: 1.375rem;
}

#offer .tab {
    padding: 120px 30px 30px 30px;
    position: relative;
    border-radius: 30px;
    background: #fdf8f2;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
    #offer .tab {
        min-height: 100%;
    }
}

#offer .tab::before {
    content: '';
    display: block;
    width: 82px;
    height: 82px;
    position: absolute;
    left: calc(50% - 34px);
    top: 25px;
    border-radius: 50%;
    background: #004101 url('../img/icon-beratung.png') center no-repeat;
}

#offer .tab2::before {
    background: #004101 url('../img/icon-psychotherapie.png') center no-repeat;
}

#offer .tab3::before {
    background: #004101 url('../img/icon-naturtherapie.png') center no-repeat;
}

/* #region ---------------------------------- leistungen ---------------------------------------- */

#leistungen {
    padding-top: clamp(30px, 3vw, 50px);
    position: relative;
    z-index: 1;
}

#leistungen :is(h4,h5,h6) {
    color: #c6360d;
    font-size: 1rem;
    font-weight: 400;
}

#leistungen :is(h1,h2,h3) {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

@media (min-width: 1200px) {
    #leistungen :is(h1,h2,h3) {
        padding-right: 80px;
    }
}

#leistungen>.row {
    row-gap: 30px;
}

@media (min-width: 992px) {
    #leistungen>.row>*:last-child {
        padding-top: clamp(40px, 4vw, 60px);
        padding-bottom: clamp(40px, 4vw, 60px);
    }
}

/* list */

#leistungen ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#leistungen ul li {
    background: transparent;
    padding: 5px 0 5px 22px;
    position: relative;
}

#leistungen ul li::before {
    content: "";
    background: #004101;
    display: block;
    height: 8px;
    left: 0;
    position: absolute;
    top: 15px;
    width: 8px;
}

/* banner */

@media (min-width: 992px) {
    #leistungen .picture {
        min-height: 544px;
    }
}

#leistungen .picture {
    min-height: 544px;
}

#leistungen .picture .banner {
    border-radius: 50%;
    overflow: hidden;
    width: 100%;
}

#leistungen .picture .banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#leistungen .picture .banner:nth-child(1) {
    max-width: 544px;
    margin-left: -100px;
    background: #fdf8f2;
    margin-bottom: clamp(30px, 5vw, 70px);
}

#leistungen .picture .banner:nth-child(1) img {
    opacity: 0.1;
}

#leistungen .picture .banner:nth-child(2) {
    max-width: 335px;
    width: calc(100% - 30px);
    height: clamp(250px, 55%, 335px);
    background: #edeefc;
    position: absolute;
    z-index: 2;
    left: 15px;
    bottom: 0;
}

@media (min-width: 1200px) {
    #leistungen .picture .banner:nth-child(2) {
        left: 145px;
    }
}

/* #endregion ------------------------------- leistungen ---------------------------------------- */

/* ----------------------------------------------- @2f footer ----------------------------------------------- */

#f2 {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (min-width: 992px) {
    #f2 {
        background-attachment: fixed; 
    }
}

#f2::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: url(../img/overlay-bogen.png) no-repeat top center / 100% auto;
    pointer-events: none;
    display: block;
    z-index: 6;
}

#footer {
    color: #444444;
    padding-top: 30px;
    padding-bottom: 30px;
}

@media (min-width: 992px) {
    #footer {
        padding-top: 60px;
        padding-bottom: 45px;
    }
}

@media (min-width:768px) and (max-width: 991px) {
    #footer>.row>*+* {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    #footer .row>.col-xs-12:not(:first-child)::before {
        background: #000000;
        content: " ";
        display: block;
        height: 1px;
        margin: 25px 0;
        opacity: 0.2;
        width: 100%;
    }

    #footer .row>.col-xs-12.hidden-xs~.col-xs-12::before,
    #footer .row>.col-xs-12.hidden-sm~.col-xs-12::before {
        display: none;
    }
}

/* --------------------------------------------- logoFooter -------------------------------------------- */

#logoFooter {
    display: inline-block;
}

#logoFooter img {
    display: block;
}

#logoFooter .btgrid .row.row-1 div+div {
    text-align: right;
}

@media (max-width: 767px) {
    #logoFooter .btgrid .row.row-1 div+div {
        text-align: center;
    }
}

/* --------------------------------------------- footerTab -------------------------------------------- */

#footerTab {
    font-size: 1rem;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 2px solid rgba(198, 54, 13, 0.3);
}

/* ----------------------------------------------- scrollTop ----------------------------------------------- */

#scrollTop {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    opacity: 1 !important;
    max-width: 170px;
    padding: 10px 20px;
    margin: 0 auto 25px auto;
    border-radius: 30px;
    background-color: #c6360d;
}

@media (min-width: 768px) {
    #scrollTop {
        margin: 0 0 0 auto;
    }
}

#scrollTop:hover,
#scrollTop:focus {
    background-color: #004101
}

#scrollTop span {
    position: relative;
    display: inline-block;
    font-size: 0;
    height: 35px;
    width: 18px;
    margin-right: 4px;
    -webkit-transition: border-radius 300ms linear;
    -moz-transition: border-radius 300ms linear;
    -ms-transition: border-radius 300ms linear;
    -o-transition: border-radius 300ms linear;
    transition: border-radius 300ms linear;
}

#scrollTop span::after {
    content: "";
    position: absolute;
    display: inline-block;
    margin-top: -1px;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 1px;
    border-right: 2px solid #ffffff;
    border-top: 2px solid #ffffff;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

/* ----------------------------------------------- @5f footer ----------------------------------------------- */

#f5 {
    padding-top: 12px;
    padding-bottom: 12px;
    background-color: #ffffff;
}

/* --------------------------------------------- innerfooter -------------------------------------------- */

@media (max-width: 767px) {
    #innerfooter {
        border-bottom: 1px solid rgba(8, 8, 8, 0.1);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #191919;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

#innerfooter a:hover,
#innerfooter a:focus {
    color: #c6360d;
    text-decoration: underline;
}

#innerfooter li+li::before {
    content: "";
    margin: 0 6px;
}

@media (min-width: 992px) {
    #innerfooter li+li::before {
        margin: 0 15px;
    }
}

@media (max-width: 767px) {
    #innerfooter li {
        display: block;
        text-align: center;
        padding: 5px;
        margin: 0;
    }

    #innerfooter li+li::before {
        display: none;
    }
}

/* --------------------------------------------- vernetzt -------------------------------------------- */

#vernetzt {
    text-align: right;
    font-size: 0.9375rem;
    color: #191919;
    line-height: 1.3;
    margin: 0 auto;
    text-decoration: none;
}

@media (min-width: 768px) {
    #vernetzt {
        margin: 0;
    }
}

#vernetzt span {
    color: #191919;
}

#vernetzt span span {
    display: block;
}

#vernetzt img {
    margin-left: 12px;
}