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

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

body {
    font-family: "Barlow", sans-serif;
    color: #444444;
    background: #efeff6;
    font-weight: 400;
    font-size: clamp(1rem, 1vw, 1.125rem);
    /* 1rem = 16px */
    line-height: 1.5;
    box-shadow: 0 0 100px 0 rgba(0, 0, 0, 0.1);
}

a {
    color: #2d7808;
}

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

b,
strong {
    font-weight: 600;
}

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

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

@media (min-width: 992px) {
    #logo img {
        transition: max-width 300ms linear;
    }

    .is-sticky #logo img {
        max-width: 240px;
    }
}

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

nav.horizontally {
    padding: 12px 0;
    background: #5b5bad;
}

/* 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: #5b5bad;
        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: #ededf3;
        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: 4px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    #sticky-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 60;
    }

    nav.horizontally>.row {
        max-width: 1440px;
        width: 100%;
    }

    nav.horizontally {
        background: rgba(237, 237, 243, 0.9);
        transition: background 300ms linear;
    }

    .is-sticky nav.horizontally {
        background: #ededf3;
    }

    nav.horizontally .navbar-nav {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify !important;
        -ms-flex-pack: justify !important;
        justify-content: space-between !important;
        -webkit-box-align: center !important;
        -ms-flex-align: center !important;
        align-items: center !important;
        flex-wrap: wrap;
        width: 100%;
    }

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

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"] {
        border-bottom: 1px solid rgba(255, 255, 255, 1);
    }
}

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

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

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

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"][data-toggle="dropdown"]::after {
        content: "";
        position: absolute;
        display: block;
        right: 2px;
        top: 50%;
        margin-top: -7px;
        width: 8px;
        height: 8px;
        border-radius: 1px;
        display: inline-block;
        border-left: 2px solid #333399;
        border-bottom: 2px solid #333399;
        transform: rotate(-45deg);
        transition: border 300ms linear;
    }
}

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    background: #333399;
    width: 0;
    transition: width 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) {
    color: #333399;
}

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

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    padding: 10px;
    background-color: #333399;
}

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

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

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

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

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

    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: #fff;
    text-align: left;
    padding: 10px 40px 10px 20px;
    font-weight: 400;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (min-width: 992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::after {
        content: "\203A \203A";
        position: absolute;
        right: 20px;
        top: 50%;
        margin-top: -10px;
        font-size: 18px;
        line-height: 1;
    }
}

/* 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: #1b1b77;
    color: #ffffff;
}

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

/* ---------------------------------------- buttonsBox ------------------------------------- */

#buttonsBox {
    display: grid;
    padding-top: 16px;
    text-align: center;
    gap: 10px;
}

@media (min-width: 992px) {
    #buttonsBox {
        border-top: none;
        padding-top: 0;
        margin-left: 15px;
        display: flex;
        align-items: center;
        align-content: center;
        justify-content: center;
    }

    #myNavbar.navbar-collapse.collapse {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-line-pack: center;
        align-content: center;
        -webkit-box-align: center !important;
        -ms-flex-align: center !important;
        align-items: center !important;
    }
}

@media (min-width: 1200px) {
    #buttonsBox {
        margin-left: 30px;
    }
}

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

#slider {
    max-height: clamp(300px, 46vw, 450px);
    overflow: hidden;
    position: relative;
}

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

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(450px, 78vw, 900px);
    }
}

#headerpic .theme-nivo .nivo-controlNav .slick-dots li,
#headerpic .nivo-directionNav a,
#headerpic a.nivo-control,
#headerpic a.nivo-control.active {
    color: #222222 !important;
}

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

.slider-mask {
    display: block;
    background: url('../img/banner-welle.png') right bottom / 100% auto no-repeat, rgba(34, 34, 34, 0.45);
}

#bannerOverlay {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

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

@media (min-width: 992px) {
    #bannerOverlay {
        position: absolute;
        left: 0;
        right: 30px;
        bottom: 90px;
        z-index: 51;
        pointer-events: none;
    }

    #headerpic .nivo-controlNav {
        bottom: 15px;
    }
}

@media (min-width: 1200px) {
    #bannerOverlay {
        bottom: 200px;
    }
}

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

/* ---------------------------------------- slogan ------------------------------------- */

#slogan {
    pointer-events: auto;
    position: relative;
    color: #ffffff;
    line-height: 1.3;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

#slogan :is(h1, h2, h3, .sloganHeadline) {
    background-color: rgba(255, 255, 255, 0.93);
    margin: 0;
    padding: 10px 40px;
    width: fit-content;
    font-size: clamp(1.875rem, 4vw, 4.1875rem);
    border-bottom: 5px solid #333399;
}

#slogan :is(h4, h5, h6) {
    font-size: 1.5rem;
    padding: 10px 40px;
    width: fit-content;
    background-color: rgba(255, 255, 255, 0.93);
}

#slogan a {
    color: #ffffff;
}

@media (min-width: 1200px) {

    #slogan :is(h1, h2, h3, .sloganHeadline),
    #slogan :is(h4, h5, h6) {
        padding: 10px 100px 10px 40px;
    }
}

/* ------------------------------------------- buttons ------------------------------------------ */

.button-style a:not([href^="mailto:"]) {
    margin-top: 22px;
    text-decoration: none !important;
    display: inline-block;
    font-weight: 500;
    color: #333399;
    text-align: center;
    font-size: 0.9375rem;
    min-width: 110px;
    border-radius: 17px;
    padding: 5px clamp(10px, 2vw, 30px);
    transition: background-color 300ms linear, color 300ms linear, border 100ms linear;
}

#buttonsBox .button-style a:not([href^="mailto:"]) {
    margin-top: 0;
    color: #191919;
    padding: 9px 20px;
    border-radius: 20px;
}

#buttonsBox .button-style1 a:not([href^="mailto:"]) {
    background: #ff9124;
}

#buttonsBox .button-style2 a:not([href^="mailto:"]) {
    background: #75c74d;
}

#buttonsBox .button-style3 a:not([href^="mailto:"]) {
    background: #fff;
}

#buttonsBox .button-style a:not([href^="mailto:"]):is(:hover, :focus) {
    color: #ffffff;
    background: #333399;
}

#tabs .button-style a:not([href^="mailto:"]) {
    margin-top: 0;
    color: #ffffff;
    font-size: clamp(1rem, 1vw, 1.125rem);
    border-radius: 25px;
    padding: 11px 30px;
    background: #333399;
}

#tabs .button-style a:not([href^="mailto:"]):is(:hover, :focus) {
    color: #333399;
    background: #dfdfe5;
}

#footer .button-style a:not([href^="mailto:"]) {
    color: #333399;
    background: #ffffff;
}

#footer .button-style a:not([href^="mailto:"]):is(:hover, :focus) {
    background: #333399;
    color: #ffffff;
}

#tabs .button-style a:not([href^="mailto:"])+a:not([href^="mailto:"]),
#footer .button-style a:not([href^="mailto:"])+a:not([href^="mailto:"]) {
    margin-left: 20px;
}

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

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

main {
    background: url('../img/footer-welle.png') bottom -1px center / 100% auto no-repeat;
}

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

#tabs {
    padding-bottom: 65px;
    position: relative;
}

#tabs hr {
    margin-top: 25px;
    margin-bottom: 30px;
    border-width: 2px;
    border-color: rgba(0, 0, 0, 0.1);
}

@media (min-width: 1200px) {
    #tabs>.row::after {
        content: '';
        position: absolute;
        pointer-events: none;
        bottom: 160px;
        right: -365px;
        width: 320px;
        height: 463px;
        background: url('../img/deko-alter-mann-winkt.png') center no-repeat;
    }
}

#tabs .tab {
    padding-top: 70px;
    margin-bottom: clamp(15px, 5vw, 85px);
    position: relative;
}

#tabs .tab::before {
    content: '';
    position: absolute;
    pointer-events: none;
    left: 115px;
    top: 0;
    width: 277px;
    height: 239px;
    background: url('../img/deko-tab-klecks.png') center no-repeat;
}

@media (max-width: 767px) {
    #tabs .tab::before {
        left: 15px;
    }
}

#tabs .tab .tabHeadline {
    text-transform: uppercase;
    position: relative;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: clamp(15px, 3vw, 45px);
}

#tabs .button-style {
    margin-top: clamp(30px, 3vw, 55px);
}

/* ----------------------------------------------- @17b banner ----------------------------------------------- */

#b17 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 245px 195px 165px 50px;
    gap: 30px;
    overflow: hidden;
}

@media (max-width: 767px) {
    #b17 {
        grid-template-rows: 100px 100px 50px;
        gap: 15px;
    }
}

#b17 .box {
    width: 100%;
    height: 100%;
    display: grid;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.box1 {
    grid-row: 1/2;
    grid-column: 1/2;
}

.box2 {
    grid-row: 2/4;
    grid-column: 1/2;
}

.box3 {
    grid-row: 1/3;
    grid-column: 2/3;
    position: relative;
}

@media (min-width: 768px) {
    .box3::before {
        content: '';
        position: absolute;
        pointer-events: none;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        width: 210px;
        height: 231px;
        background: url('../img/deko-altes-paar-handhalten.png') center no-repeat;
    }
}

.box4 {
    grid-row: 3/5;
    grid-column: 2/3;
}

.box5 {
    grid-row: 1/2;
    grid-column: 3/4;
}

.box6 {
    grid-row: 2/4;
    grid-column: 3/4;
    position: relative;
}

@media (min-width: 1200px) {
    .box6::before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: -65px;
        left: -100px;
        width: 195px;
        height: 195px;
        background: url('../img/kapeso-logo-kreis.png') center no-repeat;
        filter: drop-shadow(0px 0px 15px rgba(0, 0, 0, 0.1));
    }
}

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

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

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.875rem, 4.5vw, 2.1875rem);

}

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

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

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

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

/* -------------------------------------------- footer ------------------------------------------ */

#footer {
    background: #dfdfe5;
    padding-top: clamp(30px, 4vw, 65px);
    padding-bottom: clamp(30px, 3vw, 45px);
    color: #222222;
    font-size: 1rem;
    position: relative;
}

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

@media (min-width: 1200px) {
    #footer>.row::before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: 5px;
        right: -275px;
        width: 143px;
        height: 125px;
        background: url('../img/footer-deko-kugeln.png') center no-repeat;
    }
}

#footer a {
    color: #333399;
    text-decoration: underline;
}

.footerHeadline {
    color: #333399;
    margin: 0 0 10px 0;
    font-size: 1.5625rem;
}

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

#innerfooter {
    color: #ffffff;
    background-color: #333399;
    padding: 20px 0;
    font-size: 1rem;
    position: relative;
}

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

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

@media (min-width: 1200px) {
    #innerfooter>.row::before {
        content: '';
        position: absolute;
        pointer-events: none;
        bottom: -20px;
        left: -320px;
        width: 231px;
        height: 366px;
        background: url('../img/footer-deko-links-alte-frau-gehstock.png') center no-repeat;
    }
}

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

.innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    padding: 10px 12px;
}

.innerfooter a:is(:hover, :focus) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.innerfooter li+li {
    margin-left: 10px;
}

@media (max-width: 575px) {
    #innerfooter li {
        display: block;
    }

    .innerfooter li+li {
        margin-left: 0px;
    }
}

/* ------------------------------------------ tabsocls ------------------------------------------ */

.tabsocls p {
    font-size: 0;
    line-height: 0;
    display: inline-block;
}

.tabsocls a.has-image,
.tabsocls a {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    background: #363636;
    width: 50px;
    height: 50px;
    border-radius: 100%;
}

.tabsocls a.has-image,
.tabsocls p img {
    object-fit: scale-down;
    object-position: center;
}

.tabsocls a.has-image:focus,
.tabsocls a.has-image:hover,
.tabsocls a:hover,
.tabsocls a:focus {
    background: #ffffff;
}

.tabsocls img:hover,
.tabsocls img:focus {
    filter: invert(20%) sepia(18%) saturate(12%) hue-rotate(16deg) brightness(20%) contrast(96%);
}

.tabsocls p+p {
    margin-left: 20px;
}

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

#vernetzt {
    gap: 14px;
    text-align: right;
    color: #ffffff;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
    font-size: 0.8125rem;
}

#vernetzt span span {
    display: block;
}