@import url("https://fonts.verwaltungsportal.de/import/?family=Open+Sans:400,600,700,400i,600i,700i");
@import url("https://fonts.verwaltungsportal.de/import/?family=UnifrakturMaguntia:400");
@import url("https://fonts.verwaltungsportal.de/import/?family=Libre+Baskerville:400,400i,700");

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

body {
    font-family: "Open Sans", sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    font-size: 1.0625rem;
    /* 1rem = 16px */
    line-height: 1.5;
}

a {
    color: #008a00;
}

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

b,
strong {
    font-weight: 700;
}



/* ------------------------------------------- Topbar --------------------------------------------- */

#topbar {
    background-color: #008a00;
    padding: 5px 0;
}

#contrast_style button,
#style button {
    border: none;
    color: #fff;
    display: inline-block;
    width: 27px;
    height: 27px;
    font-weight: 400;
    text-align: center;
    background-color: #008a00;
    position: relative;
    line-height: 1;
    transition: background 150ms linear;
    border: 1px solid #fff;
    padding: 0;
    font-size: 17px;
}



#contrast_style.contrast_light_font button {
    background: #fff !important;
}

#style {
    margin-right: 30px;
}

#contrast_style button+button,
#style button+button {
    margin-left: 8px;
}

#contrast_style button:hover,
#style button:hover {
    background: #007c00;
}

#newsletterInputs,
#search,
#search2 {
    background: #fff;
    display: inline-block;
    position: relative;
    line-height: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 5px 0 rgb(0, 0, 0, 0.2);
}

#newsletterInputs {
    min-width: 240px;
}

#newsletter span {
    font-size: 0.6875rem;
    display: block;
    margin-top: 15px;
}

input[id*="newsletter_input"],
input[id*="search_input"] {
    color: #1a1a1a;
    font-size: 0.75rem;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    padding-left: 10px;
    padding-right: 103px;
    min-height: 25px;
    width: 100%;
}

input[id*="newsletter_input"] {
    padding-right: 40px;
}

#newsletter_submit,
#search_submit,
#search_submit2 {
    width: 60px;
    background-color: #008a00;
    padding: 0;
    cursor: pointer;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    min-height: 100%;
    font-size: 0;
    transition: background-color 300ms linear;
    font-size: 12px;
    color: #fff;
}

#newsletter_submit.contrast_light_font,
#search_submit.contrast_light_font,
#search_submit2.contrast_light_font {
    background-color: #000;
    border: 2px solid #fff !important;
}

#newsletter_submit {
    background-image: url(../img/icon-mail.png);
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0;
    width: 30px;
}

#search_submit:hover {
    background-color: #143e3e;
}

input[id*="newsletter_input"]::placeholder,
input[id*="search_input"]::placeholder {
    color: color-mix(in srgb, currentColor 100%, transparent) !important;
}

input[id*="newsletter_input"]::-ms-input-placeholder,
input[id*="search_input"]::-ms-input-placeholder {
    color: #fff !important;
}

input[id*="newsletter_input"]::-webkit-input-placeholder,
input[id*="search_input"]::-webkit-input-placeholder {
    color: #fff !important;
}

input[id*="newsletter_input"]::-moz-placeholder,
input[id*="search_input"]::-moz-placeholder {
    opacity: 1;
}

input[id*="newsletter_input"]:-moz-placeholder,
input[id*="search_input"]:-moz-placeholder {
    opacity: 1;
}

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


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

/* burgermenu for tablet */

@media (max-width: 991px) {
    #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: #008a00;
        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: 7px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav.horizontally .navbar-nav>li {
        flex-grow: 1;
    }

    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: #1a1a1a;
    font-weight: 700;
    text-align: left;
    padding: 10px 35px 15px 35px;
    position: relative;
    font-size: 1.0625rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

    nav.horizontally a[class*="toplevel"] {
        padding: 18px 0;
        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: #007500;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: rgba(0, 138, 0, 0.90);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
}

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

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


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

    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::before {
        width: 10px;
        top: 0;
        bottom: 0;
        left: -10px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #fff;
    font-weight: 400;
    text-align: left;
    padding: 9px 25px 9px 38px;
    font-size: 1.0625rem;
    line-height: 1.2;
    text-decoration: none;
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    content: '';
    background: url(../img/aktiv.png) no-repeat center;
    width: 18px;
    height: 22px;
    left: 9px;
    top: 11px;
    position: absolute;
    transition: opacity 200ms linear;
    opacity: 0;
}

/* secondlevel + thirdlevel over */

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 ------------------------------------------ */


@media (min-width: 992px) {

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

    #headerpic {
        min-height: 400px;
        position: relative;
        overflow: hidden;
    }


    #headerpic .slider-wrapper {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }

    .index #headerpic {
        min-height: 630px;
    }

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

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

    #slider {
        height: 100%;
    }
}

@media (max-width: 991px) {


    #slider {
        overflow: hidden;
        position: relative;
        /*1920px * 768px*/
        height: 56vw;
    }

    body:not(.index) #slider {
        /*1920px * 576px*/
        height: 30vw;
    }

    #slider-onebanner,
    #slider .nivo-box>div,
    #slider .nivo-slice>div,
    #slider .nivo-main-image,
    #slider div[style*='background-size'] {
        background-attachment: unset !important;
        background-size: 100% auto !important;
    }
}

.slider-mask {
    display: block;
    background: url(../img/slider-mask.png) no-repeat left top / 1920px auto, url(../img/slider-mask-bottom.png) no-repeat bottom center / 1920px auto;
}

@media (max-width: 991px) {
    .slider-mask {
        background: url(../img/slider-mask.png) no-repeat left top / 100% auto;
    }
}

#overlay.contrast_light_font>.row,
#overlay.contrast_light_font {
    background: transparent !important;
}

#overlay,
#logoWrapper {
    z-index: 12;
    position: relative;
}

#logo.contrast_dark_font {
    background: #fff !important;
}

#logo {
    margin-top: 10px;
    display: inline-block;
}

#logo p {
    color: #1a1a1a;
    font-size: clamp(18px, 2vw, 22px);
}

#logo h2 {
    font-family: "UnifrakturMaguntia", cursive;
    color: #1a1a1a;
    font-size: clamp(20px, 3vw, 44px);
    margin-left: clamp(0px, 8vw, 70px);
    display: block;

}



/* ------------------------------------------- tab ------------------------------------------ */

@media (min-width: 992px) {
    #overlay .tab {
        margin-top: 0;
        margin-bottom: 200px;
    }
}

@media (max-width: 991px) {
    #leftElements>.row>* {
        margin-top: 25px;
    }

    #leftElements .buttonWrapper {
        margin-top: -25px;
    }
}

#leftElements>.row>*:last-child {
    margin-top: 25px;
}

.buttonWrapper a:not(.has-image):not([rel]),
.tabHeadline {
    color: #fff;
    background: #008a00;
    font-family: "Libre Baskerville", serif;
    font-size: calc(1rem, 2vw, 1.25rem);
    padding: 13px 10px;
    text-align: center;
    margin: 0;
    border: 1px solid #fff;
    box-shadow: 0px 0px 5px 0 rgb(0, 0, 0, 0.2);
    font-weight: 700;
    hyphens: auto;

}

.buttonWrapper a:not(.has-image):not([rel]) {
    display: block;
    width: 100%;
    margin-top: 25px;
    text-decoration: none;
}

.buttonWrapper a:not(.has-image):not([rel]):hover,
.buttonWrapper a:not(.has-image):not([rel]):focus {
    background: #007c00;
}

.tab {
    box-shadow: 0px 0px 5px 0 rgb(0, 0, 0, 0.2);
    color: #515a5f;
}

.tabContent {
    padding: 10px 15px;
    background: #fff;
}

.tab_link_title a {
    color: #515a5f;
    font-weight: 700;
}

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

main {
    background: #effbf0;
    padding-bottom: 30px;
}

#content {
    margin-top: -20px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.2);
    z-index: 12;
    position: relative;
}

@media (min-width: 992px) {
    #content::before {
        content: '';
        background: url(../img/content-mask.png) no-repeat left 9px bottom -9px / calc(100% + -26px)auto;
        width: calc(100% + 40px);
        height: 127px;
        pointer-events: none;
        display: block;
        position: absolute;
        top: -126px;
        left: -16px;
        right: 0;
        z-index: 6;
    }
}

@media (min-width: 1200px) {
    #content::before {
        content: '';
        background: url(../img/content-mask.png) no-repeat left 7px bottom -9px / calc(100% - 22px) auto;
        width: calc(100% + 40px);
        height: 127px;
        pointer-events: none;
        display: block;
        position: absolute;
        top: -127px;
        left: -16px;
        right: 0;
        z-index: 6;
    }
}



@media (max-width: 991px) {

    #overlay,
    #content {
        margin-top: 25px;
    }

    #headerpic {
        background: #effbf0;
    }
}

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

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

h1,
.h1,
.legacy_h1 {
    font-size: 1.875rem;
}

h2,
.h2,
.legacy_h2 {
    font-size: 1.5rem;
}

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

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

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

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

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

footer {
    background-color: #fff;
    padding: 30px 0;
    color: #1a1a1a;
    border-top: 10px solid #008a00;
}

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

@media (max-width: 991px) {
    footer>.row>.col-xs-12:last-child {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 15px;
        padding-top: 15px;
    }
}


div[id*="innerfooter"] li>a {
    display: inline-block !important;
}

div[id*="innerfooter"] ul {
    padding: 0;
}

div[id*="innerfooter"] a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
    font-size: 1rem;
}

div[id*="innerfooter"] a:is(:hover, :focus) {
    text-decoration: underline;
}

@media (min-width: 576px) {
    div[id*="innerfooter"] li+li::before {
        content: "|";
        margin: 0 clamp(15px, 2vw, 25px);
        color: #ffffff;
    }

    div[id*="innerfooter"] li {
        display: inline-block;
    }
}


@media (max-width: 991px) {

    div[id*="innerfooter"] a,
    div[id*="innerfooter"] li+li::before {
        color: #1a1a1a;
    }
}

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

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

#vernetzt {
    gap: 18px;
    text-align: left;
    font-size: 0.875rem;
    color: #1a1a1a;
    line-height: 1.3;
    font-weight: 300;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}