@import url('https://fonts.verwaltungsportal.de/import/?family=Source+Sans+3:400,600,700,400i,600i,700i');

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

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

a {
    color: #317636;
}

#content a {
    text-decoration: underline;
}

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

b,
strong {
    font-weight: 600;
}

a:focus-visible,
button:focus-visible,
form:focus-visible,
input:focus-visible {
    outline: 3px solid #0066ff !important;
}

/* ------------------------------------------ topbar -------------------------------------------- */

#topbar {
    padding: clamp(15px, 2vw, 24px) 0 clamp(15px, 2vw, 18px) 0;
    background-color: #317636;
}

#topbar>.row {
    row-gap: 15px;
}

@media (min-width: 992px) {
    #topbar {
        background: url("../img/topbar-hintergrund.png") center / cover no-repeat, #317636;
    }

    .topbarWord {
        text-align: center;
        margin-right: 38px;
    }

    .firstTopbar {
        flex-wrap: wrap;
    }
}

.topbarWord span {
    font-style: italic;
    color: #ffffff;
    font-size: 0.9375rem;
    padding-bottom: 6px;
}

@media (max-width: 991px) {
    .topbarWord {
        text-align: left;
        margin-bottom: 15px;
    }
}

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

#logo {
    display: flex;
    align-items: center;
    align-content: center;
    gap: 10px;
    text-decoration: none;
}

#logo .logoImg img {
    display: block;
}

@media (max-width: 991px) {
    #logo .logoImg img {
        max-width: 210px;
        width: 100%;
    }
}

#logo .logoTxt {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    font-size: clamp(1rem, 2vw, 1.5rem);
}

#logo .logoTxt :is(b, strong) {
    display: block;
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.875rem);
}

/* ------------------------------------------------ contrast_style ---------------------------------------------- */

#contrast_style button {
    color: #404040;
    padding: 0;
    font-size: 0;
    border: unset !important;
    display: inline-block;
    text-align: center;
    width: 36px;
    height: 36px;
    font-weight: 400;
    background: #ffffff;
    transition: color 300ms linear, background 300ms linear;
    position: relative;
    z-index: 1;
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

#contrast_style button:hover,
#contrast_style button:focus {
    color: #235323;
    background: #d6e6b7;
}

#contrast_style button+button {
    margin-left: 10px;
}

/* ------------------------------------------------ styler ---------------------------------------------- */

#style button {
    padding: 0;
    border: none;
    color: #404040;
    display: inline-block;
    min-width: 36px;
    min-height: 36px;
    font-weight: 600;
    font-size: 1.125rem;
    text-align: center;
    background: #ffffff;
    position: relative;
    line-height: 1;
    transition: color 300ms linear, background 300ms linear;
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

#style button+button {
    margin-left: 10px;
}

#style button:hover,
#style button:focus {
    color: #235323;
    background: #d6e6b7;
}

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

#search {
    background: #ffffff;
    display: inline-flex;
    width: 100%;
    box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.2), 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
    #search {
        max-width: 270px;
        margin-top: 20px;
    }
}

#search_input {
    color: #666666;
    font-size: 0.9375rem;
    font-style: normal;
    background: transparent;
    padding: 6px 14px;
    border: 0;
    width: 100%;
}

#search_submit {
    min-width: 48px;
    flex-shrink: 0;
    background: url('../img/lupe-icon.png') center no-repeat, #ffffff;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0;
}

#search_submit:is(:hover, :focus) {
    background-color: #d6e6b7;
}

#search_input::placeholder {
    color: #666666 !important;
    opacity: 1 !important;
    font-style: italic !important;
}

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

/* burgermenu for tablet */

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

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #235323;
        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: #d6e6b7;
        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: 6px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        border-top: 4px solid #ffffff;
        background-color: #d6e6b7;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
    }

    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: #235323;
    font-weight: 700;
    text-align: left;
    padding: 12px 15px;
    text-transform: uppercase;
    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(0, 0, 0, 0.1);
    }

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

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

    nav.horizontally a[class*="toplevel"] {
        padding: 20px 0 19px 0;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
    }
}

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    width: 0;
    height: 4px;
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    background-color: #235323;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 300ms linear, 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: #235323;
}

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 {
    opacity: 1;
    width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

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

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

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: 10px;
        left: 50%;
        transform: translate(-50%, 0);
    }

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

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

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #404040;
    font-weight: 700;
    text-align: center;
    padding: 10px 15px;
    text-transform: uppercase;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        text-align: left;
    }

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

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])+li:not(:nth-child(2)) {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    content: "\203A \203A";
    display: inline-block;
    position: relative;
    bottom: 2px;
    position: absolute;
    left: 0;
    top: 8px;
    opacity: 0;
    transition: opacity 300ms linear;
}

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

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);
    overflow: hidden;
    position: relative;
}

@media (min-width: 992px) {
    body.index #slider {
        max-height: clamp(400px, 62vw, 600px);
    }

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

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

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

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

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

.slider-mask {
    display: none;
}

/* #region -------------------------------------- tab ------------------------------------------- */

#tabs {
    padding-top: 30px;
}

@media (min-width: 992px) {
    #tabs {
        padding-top: 0;
        position: relative;
        z-index: 60;
        margin-top: -100px;
    }
}

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

#tabs .tab {
    hyphens: auto;
    background: #ffffff url('../img/tab-hintergrund.png') center / cover no-repeat;
    border-radius: 20px;
    padding: 40px 20px 105px 20px;
    height: 100%;
    min-height: 100%;
    box-shadow: 0 60px 20px -50px rgba(0, 0, 0, 0.1);
}

#tabs .tab.tab3 {
    hyphens: auto;
    padding-bottom: 40px;
}

#tabs .tab.tab2 {
    hyphens: auto;
    font-size: 1.5625rem;
    background: #d6e6b7 url('../img/tab-hintergrund2.png') bottom center no-repeat;
    padding-bottom: 40px;
    box-shadow: 0 60px 20px -50px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
    #tabs .tab.tab2 {
        padding-left: 25px;
        padding-right: 25px;
    }
}

#tabs .tab .tabHeadline {
    font-size: 1.4375rem;
    text-transform: uppercase;
    margin-bottom: 0;
    padding-bottom: 20px;
}

#tabs .tab.tab2 .tabHeadline {
    font-size: 2.1875rem;
    padding-bottom: 0;
    text-transform: none;
}

#tabs .tab.tab2,
#tabs .tab.tab2 :is(h1, h2, h3, h4, h5, h6, .tabHeadline) {
    color: #235323;
}

#tabs .tab.tab2 a {
    color: #235323;
    text-decoration: underline;
}

#tabs .tab.tab2 :is(b, strong) {
    font-weight: 700;
    font-size: clamp(2.1875rem, 4vw, 3.4375rem);
    text-transform: uppercase;
    line-height: 1;
}

#tabs .tab_link a {
    color: inherit;
}

#tabs .tab_link_title a {
    font-weight: 600;
}

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

#tabs .tab_spacer {
    height: 15px;
}

/* #endregion ----------------------------------- tab ------------------------------------------- */

/* ------------------------------------------- button style ------------------------------------- */

#tabs .tab3 a,
#tabs .tab_link_mehr a {
    font-size: 1.125rem;
    color: #404040;
    background: #ffffff;
    border-radius: 30px;
    border: 1px solid #317636;
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none;
}

#tabs .tab_link_mehr a {
    position: absolute;
    left: 50%;
    bottom: 40px;
    white-space: nowrap;
    transform: translateX(-50%);
}

#tabs .tab3 a::after,
#tabs .tab_link_mehr a::after {
    content: " \203A \203A";
}

#tabs .tab3 a:is(:hover, :focus),
#tabs .tab_link_mehr a:is(:hover, :focus) {
    color: #ffffff;
    background: #317636;
}

/* ------------------------------------------- contentBox ------------------------------------------ */

.index main {
    background: #fafafa;
}

#contentBox {
    text-align: left;
    padding-top: clamp(40px, 6vw, 85px);
    padding-bottom: clamp(40px, 5vw, 70px);
}

/* ------------------------------------------- tabsLeft ------------------------------------------ */

@media (max-width: 991px) {
    #tabsLeft {
        margin: 0 auto 30px auto;
    }
}

#tabsLeft .tab {
    font-size: 1rem;
    border-radius: 20px;
    padding: 45px 25px 35px 25px;
    background: #ffffff;
    box-shadow: 0 60px 20px -50px rgba(0, 0, 0, 0.1);
}

#tabsLeft .tab .tabHeadline {
    font-size: 1.25rem;
    text-transform: uppercase;
}

/* ------------------------------------------- breaker ------------------------------------------ */

#breaker {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #d6e6b7;
    min-height: 200px;
    position: relative;
}

#breaker::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/breaker-kringeling-deko.png') top center no-repeat;
}

@media (min-width: 992px) {
    #breaker {
        min-height: 400px;
    }
}

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

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

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

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

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.5625rem, 3vw, 2rem);
}

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

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

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


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

footer {
    margin-top: -20px;
    font-size: 1rem;
}

footer::before {
    content: "";
    display: block;
    height: 100px;
    background: #317636;
    margin: 0 15px;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

#footer {
    position: relative;
    padding: clamp(40px, 5vw, 70px) 0 clamp(40px, 4vw, 65px) 0;
}

:is(#footer, #innerfooter)>.row {
    row-gap: 30px;
}

#footer::before,
#footer::after {
    content: "";
    display: block;
    width: 117px;
    height: 100px;
    position: absolute;
    top: -80px;
    pointer-events: none;
    background: #235323 linear-gradient(9deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.4) 51%) bottom -14px right / 102px 50px no-repeat;
}

#footer::before {
    left: 0;
}

#footer::after {
    right: 0;
    transform: scaleX(-1);
}

@media (min-width: 992px) {
    footer::before {
        margin: 0 158px;
    }

    #footer::before,
    #footer::after {
        width: 260px;
    }
}

#footerlogo {
    position: absolute;
    z-index: 2;
    top: -190px;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 991px) {
    #footerlogo {
        top: -150px;
    }

    #footerlogo img {
        max-width: 100px;
    }
}

#footer a {
    text-decoration: underline;
}

#footer .footerHeadline {
    font-size: 1.0625rem;
    text-transform: uppercase;
    margin-bottom: 6px;
}

#footer .footerHeadline::before {
    content: "";
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #d6e6b7;
    margin: 0 auto 15px auto;
    background-position: center;
    background-repeat: no-repeat;
}

#footer .tab1 .footerHeadline::before {
    background-image: url('../img/icon-fragen.png');
}

#footer .tab2 .footerHeadline::before {
    background-image: url('../img/icon-location.png');
}

#footer .tab3 .footerHeadline::before {
    background-image: url('../img/icon-mail.png');
}

#innerfooter {
    font-size: 1rem;
    padding: 23px 0;
    background-color: #317636;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
}

#innerfooter ul {
    padding: 0;
}

@media (min-width: 576px) {
    #innerfooter li {
        display: inline-block;
    }

    #innerfooter li+li {
        margin-left: clamp(20px, 3vw, 40px);
    }
}

#innerfooter a {
    color: #ffffff;
}

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

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

#vernetzt {
    gap: 18px;
    text-align: right;
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}

/* ------------------------------------------ kontraste ------------------------------------------ */

.contrast_dark_font #topbar,
.contrast_dark #contrast_style button {
    background-color: #ffffff !important;
}

.contrast_dark #style button,
.contrast_dark #search {
    border: 1px solid #ffffff !important;
}