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

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

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

a {
    color: #217e20;
}

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

b,
strong {
    font-weight: 700;
}

#overflow {
    overflow: hidden;
}

/* ------------------------------------------- logo --------------------------------------------- */
#topbar {
    padding: 10px 0 10px 0;
    position: relative;
    z-index: 102;
}

@media (min-width: 992px) {
    #topbar {
        padding: 35px 0 0px 0;
    }
}

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

@media (min-width: 992px) {
    #logo {
        position: absolute;
        top: -25px;
        z-index: 55;
    }
}

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

a.wortmarke {
    color: #282828;
    font-weight: 700;
    font-size: clamp(1.375rem, 3vw, 1.875rem);
}

a.wortmarke:hover {
    text-decoration: none;
}

/* #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: 6px;
        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: #217e20;
        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 {
        padding: 20px 10px;
    }

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #fff;
        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;
        transition: top 300ms linear;
    }

    .dropdown-toggle-button-wrapper {
        top: 9px;
        right: 0;
    }

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

    #sticky-wrapper {
        height: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .navbar-header {
        top: 27px;
    }
}

/* menu desktop */

@media (min-width: 992px) {

    nav.horizontally {
        background: #fff;
        padding: 10px 0 10px 0;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.08);
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    nav.horizontally li[class*="toplevel"]>ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

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

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

    nav.horizontally .navbar-nav li :is([class*="toplevel"]>ul, [class*="secondlevel"]>ul) {
        display: block !important;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 300ms linear;
    }

    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: #282828;
    font-weight: 400;
    text-align: left;
    padding: 14px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 10px;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-top: 2px;
    }

    nav.horizontally a[class*="toplevel"].dropdown-toggle {
        padding-right: 35px;
    }
}

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

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

/* 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: #fff;
    background-color: #217e20;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background: #ffffff;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.12);
}

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

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

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

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

    nav.horizontally [class*="secondlevel"]>ul::before {
        content: "";
        position: absolute;
        display: block;
        width: 37px;
        top: 0;
        bottom: 0;
        left: -37px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #282828;
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
    padding: 10px 20px 10px 30px;
    line-height: 1.2;
    text-decoration: none;
    position: relative;
    border-radius: 4px;
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    content: '';
    display: block;
    position: absolute;
    top: 10px;
    left: 5px;
    width: 20px;
    height: 20px;
    background: url('../img/icon-sonne.png') no-repeat;
    opacity: 0;
    transition: opacity 300ms;
}

.navbar-default li:is([class*="secondlevel"], [class*="thirdlevel"])+li {
    margin-top: 1px;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
        padding-right: 35px;
    }
}

/* 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: #217e20;
    color: #fff;
}

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

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

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

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

@media (min-width: 992px) {

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

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

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

@media (min-width: 992px) {
    #headerpic::before {
        content: '';
        display: block;
        position: absolute;
        bottom: -43px;
        left: 0;
        width: 93px;
        height: 123px;
        background: url('../img/Deko.png') no-repeat;
        z-index: 55;
        pointer-events: none;
    }

    #headerpic {
        background-color: #217e20;
    }

    .theme-nivo .nivo-controlNav .slick-dots li {
        color: #fff;
    }
}

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

.slider-mask {
    display: none;
}

.slogan {
    font-size: clamp(1.375rem, 3vw, 1.875rem);
}

.slogan :is(h1, h2, h3, h4, h5, h6) {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 700;
}

@media (max-width: 991px) {
    #banneroverlay {
        margin-top: 30px; 
    }
}

@media (min-width: 992px) {
    #banneroverlay {
        position: absolute;
        bottom: 10%;
        width: 100%;
        z-index: 55;
    }

    .slogan {
        color: #fff;
        text-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
    }
    .slogan :is(h1, h2, h3, h4, h5, h6) {
        color: #fff;
    }
}

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

#content {
    text-align: left;
    padding-top: clamp(30px, 4vw, 60px);
    padding-bottom: clamp(30px, 4vw, 60px);
}

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

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #217e20;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Vesper Libre", serif;
}

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

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

h3,
.h3,
.legacy_h3 {
    font-size: 1.75rem;
}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited),
.legacy_h4 {
    font-size: 1.625rem;
}

h5,
.h5,
.legacy_h5 {
    font-size: 1.5rem;
}

h6,
.h6,
.legacy_h6 {
    font-size: 1.375rem;
}

/* #region ----------------------------------- about ------------------------------------------- */

#about,
#leistungen {
    max-width: 1860px;
    margin: 0 auto;
    padding: 45px 0;
    background-color: #f5fae8;
    border-radius: 50px;
}

#about .tabHeadline,
#leistungen .tabHeadline,
#therapie .tabHeadline {
    font-size: 1.875rem;
}

.aboutBanner .banner img {
    border-radius: 50%;
}

#about .aboutBanner {
    position: relative;
    line-height: 0;
    z-index: 1;
}

@media (min-width: 768px) {
    #about .aboutBanner {
        padding-left: 84px;
    }
}

#about .aboutBanner::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 147px;
    height: 171px;
    background: url('../img/Deko2.png') no-repeat;
    z-index: -1;
}

#therapie {
    padding: 50px 0;
    position: relative;
}

#therapie>.row {
    position: relative;
}

#therapie>.row::before {
    content: '';
    display: block;
    position: absolute;
    top: -195px;
    left: -360px;
    width: 302px;
    height: 456px;
    background: url('../img/blume.png') no-repeat;
}

#therapie>.row::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -155px;
    right: -360px;
    width: 321px;
    height: 404px;
    background: url('../img/pflanze.png') no-repeat;
}

/* #region ----------------------------------- footer ------------------------------------------- */

footer {
    background: #217e20;
    padding: clamp(25px, 4vw, 50px) 0;
    color: #ffffff;
    position: relative;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}

@media (max-width: 991px) {
    footer>.row>.col-xs-12+* {
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        margin-top: 25px;
        padding-top: 25px;
    }
}

@media (min-width: 768px) {
    footer>.row>.col-xs-12:nth-child(2) {
        border: none;
        margin-top: unset;
        padding-top: unset;
    }
}

@media (min-width: 992px) {
    #kontakt {
        position: relative;
    }

    #kontakt::after {
        content: "";
        background: #ffffff;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 1px;
        display: block;
        opacity: 0.25;
    }

    footer>.row>div {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    footer>.row>div:nth-child(2) {
        padding-right: 30px;
    }

    footer>.row>div:nth-child(3) {
        padding-left: 30px;
    }
}

#innerfooter {
    line-height: 1.7;
}

#innerfooter ul {
    padding: 0;
}

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

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

/* #endregion -------------------------------- footer ------------------------------------------- */

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

#vernetzt {
    gap: 18px;
    text-align: left;
    font-size: 0.875rem;
    color: #fff;
    line-height: 1.4;
    font-weight: 400;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

/* ------------------------------------------- kontakt ------------------------------------------ */

#kontakt {
    font-size: 1rem;
}

#kontakt .tabHeadline {
    color: #ffffff;
    margin: 0 0 20px 0;
}

#kontakt a {
    color: #ffffff;
    text-decoration: underline;
}

/* ------------------------------------------ scroll top ---------------------------------------- */

#scroll-top {
    font-size: 0;
    border: 1px solid #ffffff;
    border-radius: 3px;
    width: 40px;
    height: 40px;
    display: block !important;
    position: relative;
    margin: 0 auto;
    background-color: #217e20;
}

@media (min-width: 992px) {
    #scroll-top {
        margin-right: 0;
    }
}

#scroll-top::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-top: 10px;
    display: inline-block;
    border-right: 3px solid #ffffff;
    border-top: 3px solid #ffffff;
    transform: rotate(-45deg);
    transition: border 300ms linear;
}

#scroll-top:is(:hover, :focus) {
    background: rgba(0, 0, 0, 0.2);
}