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

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

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

a {
    color: #507769;
}

a:is(:hover, :focus) {
    color: #507769;
}

b,
strong {
    font-weight: 600;
}

:is(header, #leistungen, #team) {
    overflow: hidden;
    position: relative;
}

/* #region --------------------------------- buttonStyle ---------------------------------------- */

#aktuelles .tab_link_mehr a,
:is(.buttonStyle, .buttonStyleNeutral) a:not(.has-image):not([rel]):not(.nivo-directionNav > a) {
    background: #c3d7ce;
    border: 1px solid #c3d7ce;
    border-radius: 8px;
    color: #191919;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 16px 20px;
    transition: all 300ms;
    position: relative;
    line-height: 1.2;
}

.buttonStyle a:not(.has-image):not([rel]):not(.nivo-directionNav > a):is(:focus, :hover) {
    background: #fff;
}

#aktuelles .tab_link_mehr a,
#termin a {
    background: #fff;

}

#termin a {
    padding: 10px 20px;
    margin-top: 30px;
}

#aktuelles .tab_link_mehr a:is(:focus, :hover),
#termin a:is(:hover, :focus) {
    background-color: #c3d7ce;
    border-color: #fff;
}

.buttonStyleNeutral a:not(.has-image):not([rel]):not(.nivo-directionNav > a):is(:focus, :hover) {
    background: #fff;
    color: #191919;
}

/* specific buttons */

#aktuelles .tab_link_mehr {
    font-size: 0;
}

#termin .buttonStyleNeutral a:not(.has-image):not([rel]) {
    font-size: inherit;
}

/* #endregion ------------------------------ buttonStyle ---------------------------------------- */

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

nav.horizontally {
    padding: 20px 0;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

nav.horizontally>.row {
    row-gap: 20px;
}

/* burgermenu for tablet */

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

    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 8px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #507769;
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #ffffff;
        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 0;
    }

    .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;
        right: 15px;
        top: 15px;
        z-index: 101;
    }

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        padding: 8px 0 0 0;
        transition: padding 200ms linear;
    }

    .is-sticky nav.horizontally {
        padding: 10px 0 10px 0;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        row-gap: 2px;
        transition: margin-top 200ms linear;
    }

    .is-sticky nav.horizontally .navbar-nav {
        margin-top: 12px;
    }

    nav.horizontally .navbar-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        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: #191919;
    font-weight: 600;
    padding: 12px 15px;
    position: relative;
    text-align: left;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 5px;
    }

    nav.horizontally a[class*="toplevel"].dropdown-toggle::after {
        content: "";
        border-bottom: 1px solid #191919;
        border-left: 1px solid #191919;
        border-radius: 1px;
        display: block;
        position: absolute;
        right: 13px;
        top: calc(50% - 5px);
        transform: rotate(-45deg);
        height: 6px;
        width: 6px;
        transition: border 300ms linear;
    }
}

/* 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) {
    background: #f7faf9;
    color: #507769;
}

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a[class*="toplevel"].dropdown-toggle::after,
nav.horizontally li[class*="toplevel"]>a[class*="toplevel"].dropdown-toggle::after:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open>a[class*="toplevel"].dropdown-toggle::after,
nav.horizontally li[class*="toplevel"].open>a[class*="toplevel"].dropdown-toggle::after:is(:hover, :focus),
nav.horizontally li[class*="toplevel"][class*="_over"]>a[class*="toplevel"].dropdown-toggle::after,
nav.horizontally li[class*="toplevel"][class*="_over"]>a[class*="toplevel"].dropdown-toggle::after:is(:hover, :focus) {
    border-color: #507769;
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

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

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #191919;
    font-weight: normal;
    text-align: left;
    padding: 9px 15px;
    font-size: 0.875rem;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 8px;
}

@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: #f7faf9;
    color: #507769;
}

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

/* #region ------------------------------------ banner ------------------------------------------ */

#headerpic>.row:first-child {
    max-width: 1400px;
    width: 100%;
}

@media (max-width: 767px) {
    #headerpic {
        margin-top: 32px;
    }
}

.slider-wrapper {
    display: inline-block;
}

@media (max-width: 1199px) {
    #headerpic>.row>* {
        display: flex;
    }

    .headerbanner {
        width: 33%;
    }

    .headerbanner .slider-wrapper {
        aspect-ratio: 1/1;
        width: 100%;
        height: auto !important;
    }
}

@media (min-width: 1200px) and (max-width:1439px) {
    #headerpic>.row>* {
        display: flex;
    }

    .headerbanner {
        width: 33%;
    }

    .headerbanner .slider-wrapper {
        aspect-ratio: 1/1;
        width: 100%;
        height: auto !important;
    }
}

@media (min-width: 1440px) {
    .slider-wrapper {
        height: 530px;
        width: 450px;
    }
}

.headerbanner {
    display: inline-block;
}

.headerbanner+.headerbanner {
    margin-left: 5px;
}

.headerbanner:first-of-type .slick-slide img {
    border-bottom-left-radius: 30px;
}

.headerbanner:last-of-type .slick-slide img {
    border-bottom-right-radius: 30px;
}

.slider-mask {
    display: none;
}


/* ------------------------------------------------ bannerTabs ----------------------------------------------- */

@media (max-width: 991px) {
    #bannerTabs {
        padding: 30px 0;
    }
}

@media (max-width: 767px) {
    #bannerTabs>.row>*+* {
        margin-top: 30px;
    }
}

#bannerTabs .tab {
    color: #121212;
    font-size: 1rem;
    padding: 25px 25px 25px 106px;
    background-color: #ffffff !important;
    border-radius: 10px;
    box-shadow: 0px 5px 10px 0px rgba(25, 25, 25, 0.05);
    -webkit-box-shadow: 0px 5px 10px 0px rgba(25, 25, 25, 0.05);
    -moz-box-shadow: 0px 5px 10px 0px rgba(25, 25, 25, 0.05);
}

#bannerTabs .tab1 {
    background: url('../img/vision-icon.png') left 30px center no-repeat;
}

#bannerTabs .tab2 {
    background: url('../img/icon-mithelfen.png') left 20px center no-repeat;
}

#bannerTabs .tab3 {
    background: url('../img/icon-fragen.png') left 30px center no-repeat;
}

#bannerTabs .tab :is(h1, h2, h3, h4, h5, h6) {
    color: #507769;
    font-size: 1.25rem;
}

@media (min-width: 992px) {
    #bannerTabs>.row {
        position: relative;
        z-index: 12;
        margin-top: -65px;
    }
}

#bannerTabs a {
    background: #c3d7ce;
    border: 1px solid #c3d7ce;
    border-radius: 8px;
    color: #191919;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 5px 20px;
    transition: all 300ms;
    position: relative;
    line-height: 1.2;
}

#bannerTabs a:is(:focus, :hover) {
    background: #fff;
    color: #191919;
}

/* Banner-Tabs icon */

#bannerTabs .tab::before {
    content: "";
    display: block;
    height: 30px;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 30px;
}

/* #endregion --------------------------------- banner ------------------------------------------ */

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

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

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

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

h1,
.h1,
.legacy_h1,
:is(#leistungen, #team, #feedback .tabHeadline, #termin) :is(h1, h2) {
    font-size: clamp(1.75rem, 4vw, 2rem);
}

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

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

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

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

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

#bannerTabs .tab .tabHeadline,
#team .member :is(h3, h4, h5, h6),
#footer :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1.125rem;
}



:is(h1, h2, h3) :is(i, em) {
    color: #507769;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 8px;
    font-style: normal;
    display: block;
}

:is(#termin .tab, #aktuelles .tabHeadline) :is(h1, h2, h3) :is(i, em) {
    color: #ffffff;
}

#team :is(h1, h2, h3, h4, h5, h6) {
    margin: 0 0 25px 0;
}

#team :is(i, em) {
    color: #507769;
    font-style: normal;
    margin: 0;
    font-size: 1.25rem;
}

/* #region ------------------------------------- team ------------------------------------------- */

#team {
    background: #f7faf9 url(../img/tauben-fussspuren-tabbereich.png) left center;
    padding: clamp(40px, 6vw, 80px) 0;
}

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

@media (min-width: 992px) {
    #team>.row>div:nth-child(1) {
        padding-right: 45px;
    }
}

#team .member {
    font-size: 1rem;
    margin-top: clamp(30px, 4vw, 50px);
}

#team .member :is(h3, h4, h5, h6) {
    margin-bottom: 5px;
}

/* aktuelles */

#aktuelles {
    background: #9fb1a9;
    border-radius: 20px;
    max-width: 370px;
    position: relative;
    z-index: 1;
}

#aktuelles :is(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    color: #191919;
}

#aktuelles .tabHeadline {
    background: #c1d6cd;
    border-radius: 20px 20px 0 0;
    padding: 35px 30px;
    position: relative;
}

#aktuelles :is(i, em) {
    color: #191919;
    font-style: normal;
}

#aktuelles .tabHeadline::before {
    content: "";
    background: url('../img/tauben-fussspuren-news.png') no-repeat;
    width: 309px;
    height: 422px;
    display: block;
    position: absolute;
    right: -71px;
    top: -234px;
}

#aktuelles .tabHeadline:is(:hover, :focus-within)::before {
    animation: shake 1s ease 1;
}

#aktuelles .tabHeadline a {
    text-decoration: underline;
    color: #191919;
}

#aktuelles .tabContent {
    padding: 35px 30px 30px 30px;
}

#aktuelles .tab_spacer {
    height: 25px;
}

#aktuelles .tab_link_title a {
    font-weight: 700;
    color: #191919;
}

#aktuelles .tab_link_date {
    font-size: 1rem;
}

/* #endregion ---------------------------------- team ------------------------------------------- */

/* #region ------------------------------------- termin ----------------------------------------- */

#termin {
    z-index: 1;
    background: url('../img/tauben-fussspuren-links.png') left bottom no-repeat,
        url('../img/tauben-fussspuren-footer-rechts.png') right bottom no-repeat;
    padding: 100px 15px 60px 15px;
}

#termin :is(em, i) {
    font-style: normal;
    font-size: 1.25rem;
}

#termin>.row {
    background: #c3d7cc url(../img/tauben-fussspuren-mithelfen.png) bottom -20px left -70px repeat-x;
    border-radius: 20px;
}

@media (min-width: 768px) {
    #termin>.row::before {
        content: "";
        background-image: url('../img/taube-mithelfen.png');
        width: 212px;
        height: 415px;
        display: block;
        position: absolute;
        top: -87px;
        right: 0;
        bottom: 0;
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }
}

@media (min-width: 1200px) {
    #termin>.row {
        max-width: 1170px;
        width: 100%;
    }
}

#termin .tab {
    padding: clamp(40px, 5vw, 70px) clamp(30px, 4vw, 60px) clamp(40px, 7vw, 100px) clamp(30px, 4vw, 60px);
}

#termin .tab,
#termin .tab :is(h1, h2, h3, h4, h5, h6) {
    color: #191919;
}

#tabImg {
    background: center / cover no-repeat;
}

/* #endregion ---------------------------------- termin ----------------------------------------- */

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

#f5 {
    padding-top: 25px;
    padding-bottom: 25px;
    background-color: #c1d6cd;
}

#f5>.row {
    row-gap: 25px;
}

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

#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: #191919;
    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 {
    gap: 12px;
    text-align: right;
    font-size: 0.9375rem;
    color: #191919;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt :is(b, strong) {
    color: #507769;
    font-weight: 700;
}

#vernetzt span span {
    display: block;
}