@import url("https://fonts.verwaltungsportal.de/css/?family=Roboto:400,400i,500,500i,600,600i,700,700i");
@import url("https://fonts.verwaltungsportal.de/css/?family=Poppins: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: #335f1c #ffffff;
}

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

a {
    color: #335f1c;
}

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

#content a {
    font-style: italic;
}

b,
strong {
    font-weight: 700;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

/* ------------------------------------------- stylerBox --------------------------------------------- */

@media (max-width: 991px) {
    #stylerBox {
        padding: 15px 15px;
        background-color: #f2f8fa;
    }
}

@media (min-width: 992px) {
    #stylerBox {
        padding-bottom: 16px;
    }
}

#stylerBox>*+* {
    margin-left: 30px;
}

#stylerBox span {
    display: block;
    font-size: 0.9375rem;
    color: #444444;
    text-align: center;
}

@media (max-width: 991px) {
    #stylerBox span {
        text-align: left;
        padding-left: 8px;
    }
}

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

#contrast_style {
    line-height: 1;
}

@media (max-width: 991px) {
    #contrast_style {
        justify-content: center;
    }
}

#contrast_style button {
    color: #000000;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.6);
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-weight: 400;
    text-align: center;
    background: #ffffff;
    position: relative;
    z-index: 1;
    font-size: 0;
}

#contrast_style *+* {
    margin-left: 8px;
}

#contrast_style button::after {
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    right: 3px;
    left: 3px;
    bottom: 3px;
    border: 1px solid rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

#contrast_style button:nth-of-type(1)::after {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) 50%, rgba(255, 255, 255, 1) 50%);
}

#contrast_style button:nth-of-type(2)::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1) 50%, rgba(0, 0, 0, 0.6) 50%);
}

#contrast_style button:nth-of-type(3)::after {
    background: #ea5b0c;
    border: none;
}

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

@media (min-width: 992px) {
    #style button {
        font-size: 20px;
        background: transparent;
        padding: 0;
        border: none;
        color: #335f1c;
        display: inline-block;
        font-weight: 500;
        font-family: "Poppins", serif;
        text-align: center;
        position: relative;
        line-height: 1;
    }

    #style button+button {
        margin-left: 8px;
        padding-left: 8px;
        border-left: 1px solid #335f1c;
    }

    #style button:hover {
        text-decoration: underline;
    }

    #style button:focus-visible {
        outline: 2px auto;
    }
}

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

nav.horizontally {
    background: #ffffff;
}

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        padding: 10px 0;
        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: #335f1c;
        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;
        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) {
    nav.horizontally {
        padding-top: 18px;
        transition: box-shadow 300ms linear, padding 300ms linear;
    }

    .is-sticky nav.horizontally {
        padding-top: 4px;
        padding-bottom: 4px;
        box-shadow: 0px 5px 5px 0px rgba(11, 47, 57, 0.15);
        -webkit-box-shadow: 0px 5px 5px 0px rgba(11, 47, 57, 0.15);
        -moz-box-shadow: 0px 5px 5px 0px rgba(11, 47, 57, 0.15);
    }

    nav.horizontally .navbar-nav {
        margin: 10px 0;
        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;
    }

    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: #444444;
    font-weight: 500;
    font-family: "Poppins", serif;
    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(2, 123, 157, 0.2);
    }
}

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

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

nav.horizontally a[class*="toplevel"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    background: #335f1c;
    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: #335f1c;
}

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: #fff;
}

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"] ul {
        padding: 15px 0;
        border-radius: 10px;
        box-shadow: 0px 5px 5px 0px rgba(11, 47, 57, 0.15);
        -webkit-box-shadow: 0px 5px 5px 0px rgba(11, 47, 57, 0.15);
        -moz-box-shadow: 0px 5px 5px 0px rgba(11, 47, 57, 0.15);
    }

    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: #444444;
    text-align: left;
    padding: 10px 40px 10px 20px;
    font-weight: 400;
    font-family: "Poppins", serif;
    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: "\00BB";
        position: absolute;
        right: 20px;
        top: 50%;
        margin-top: -12px;
        font-size: 24px;
        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: #407723;
    color: #ffffff;
}

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

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

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

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

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

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

.slider-mask {
    display: block;
    background: url('../img/banner-welle-oben.png') top -1px center / 100% auto no-repeat,
        url('../img/banner-welle.png') bottom -1px center / 100% auto no-repeat;
}

@media (min-width: 992px) {
    #headerpic .nivo-controlNav {
        bottom: 15px;
    }
}

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



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

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

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

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

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

#tabs .tab {
    color: #ffffff;
    height: 100%;
    min-height: 100%;
    border-radius: 10px;
    overflow: hidden;
    padding: 30px 20px;
    background: #407723;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
}

#tabs .tab img {
    display: block;
    margin: -30px -20px 10px -20px;
    width: calc(100% + 40px);
    max-width: calc(100% + 40px);
    transition: opacity 300ms linear;
    z-index: 1;
    position: relative;
}

#tabs .tab .tp-image-wrapper {
    position: relative;
}

#tabs .tab .tp-image-wrapper::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: -30px;
    left: -20px;
    right: -20px;
    bottom: 0;
    width: calc(100% + 40px);
    background: #ffffff;
}

#tabs .tab:hover img,
#tabs .tab:focus img {
    opacity: 0.5;
}

#tabs .tab :is(h1, h2, h3, h4, h5, h6) {
    margin: 0 0 10px 0;
    color: #ffffff;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 3vw, 1.5625rem);
    hyphens: auto;
}

#tabs .tab :is(h1 a, h2 a, h3 a, h4 a, h5 a, h6 a) {
    text-decoration: underline;
}

#tabs .tab a:not(.has-image, .tab_link_mehr a) {
    color: #ffffff;
}

#tabs .tab_link_title a {
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}

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

#tabs .tab_link_mehr a {
    display: inline-block;
    color: #232323;
    background-color: #ccdc65;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
}

#tabs .tab_link_mehr a:hover,
#tabs .tab_link_mehr a:focus {
    color: #232323;
    background-color: #ccdc65;
}

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

.button-style a {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-family: "Poppins", serif;
    color: #232323 !important;
    font-size: 1.125rem;
    min-width: 110px;
    padding: 13px 25px;
    margin-bottom: 20px;
    border-radius: 4px;
    background: #fdf17e;
    transition: color 300ms linear, background 300ms linear;
}

.button-style a:is(:hover, :focus) {
    color: #232323 !important;
    background: #ccdc65;
}

@media (min-width: 992px) {
    .galerie {
        position: relative;
        margin-top: -130px;
        margin-bottom: 60px;
        color: #232323;
    }
}

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

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

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

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

}

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.4rem;
}

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

#footer {
    padding: 50px 0;
    font-size: 1rem;
    background: #407723;
    position: relative;
    margin-top: 60px;
    color: #fff;
}

#footer a {
    color: #fff;
}

#footer .tab a {
    color: #fff;
    text-decoration: underline;
}

#footer .tabHeadline {
    color: #fff;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    text-transform: uppercase;
}

#footer::before {
    content: '';
    display: block;
    position: absolute;
    pointer-events: none;
    top: -439px;
    left: 0;
    right: 0;
    width: 1920px;
    height: 439px;
    background: url('../img/welle-footer.png') no-repeat;
}

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

#innerfooter {
    color: #ffffff;
    background-color: #315d1a;
    padding: 20px 0 16px 0;
    font-size: 1rem;
}

#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;
    text-decoration: underline;
    background: rgba(255, 255, 255, 0.07);
}

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

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

#scrollTop {
    font-size: 0;
    width: 33px;
    height: 33px;
    display: block;
    position: relative;
    margin: 0 auto;
    background: #ffffff;
    transition: background 300ms linear;
}

#scrollTop:hover,
#scrollTop:focus {
    background: #f2f8fa;
}

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

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

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

#scrollTop:hover::after,
#scrollTop:focus::after {
    border-color: #015870;
}

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

#vernetzt {
    gap: clamp(14px, 4vw, 30px);
    text-align: right;
    color: #ffffff;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
    font-size: 0.8125rem;
}

#vernetzt span span {
    display: block;
}

/* ------------------------------------------ contrast ------------------------------------------ */

.contrast_dark #logo img {
    background-color: #fff;
}

.contrast_dark .button-style a {
    color: #fff !important;
}