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

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

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

a {
    color: #317636;
}

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

b,
strong {
    font-weight: 700;
}

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

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

#topbar {
    padding: 14px 0;
    background: #317636;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

/* #region ------------------------------- contrast + styler ------------------------------------ */

#stylerBox {
    width: 100%;
    column-gap: 30px;
}

@media (min-width: 992px) {
    #style button {
        font-size: 1rem;
        background: #235323;
        padding: 0;
        border: none;
        color: #ffffff;
        display: inline-block;
        font-weight: 700;
        text-align: center;
        position: relative;
        line-height: 1;
        min-width: 40px;
        min-height: 40px;
        height: 100%;
        width: 100%;
        border-radius: 5px;
        transition: background 300ms linear;
    }

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

    #style button:hover,
    #style button:focus {
        background: #1d3f1d;
    }

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

div[id^="contrast_style"] {
    border-radius: 5px;
    font-size: 0;
    list-style: 0;
    background: #235323;
    min-height: 40px;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    padding: 5px 10px;
}

@media (max-width: 991px) {
    div[id^="contrast_style"] {
        width: fit-content;
        margin: auto;
    }
}

div[id^="contrast_style"] button {
    color: #ffffff;
    padding: 0;
    font-size: 0;
    border: unset !important;
    display: inline-block;
    text-align: center;
    width: 20px;
    height: 20px;
    font-weight: 400;
    transition: transform 300ms linear;
    background: transparent;
    position: relative;
    z-index: 1;
}

div[id^="contrast_style"] button:hover,
div[id^="contrast_style"] button:focus {
    transform: scale(1.1);
}

div[id^="contrast_style"] *+* {
    margin-left: 10px;
}

/* #endregion ---------------------------- contrast + styler ------------------------------------ */

/* #region ------------------------------------- search ----------------------------------------- */

form[id^="search"] {
    background: #235323;
    display: inline-flex;
    border-radius: 10px;
    width: fit-content;
    overflow: hidden;
}

@media (max-width: 991px) {
    form[id^="search"] {
        width: calc(100% - 30px);
        margin: 20px 15px;
    }
}

form [id^="search_input"] {
    color: #ffffff;
    font-size: 0.9375rem;
    font-style: normal;
    background: transparent;
    padding: 9px 15px;
    border: 0;
    width: 100%;
}

form [id^="search_submit"] {
    min-width: 40px;
    border: none;
    background: url('../img/lupe-icon.png') center no-repeat, #235323;
    padding: 0;
    cursor: pointer;
    font-size: 0;
}

form [id^="search_submit"]:is(:hover, :focus) {
    background-color: #1d3f1d;
}

form [id^="search_input"]::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
    font-style: normal !important;
}

/* für :focus-visible -> setzt die Umrandung -3px weiter hinein */
form[id^="search"],
form [id^="search_input"],
form [id^="search_submit"] {
    outline-offset: -3px;
}

/* #endregion ---------------------------------- search ----------------------------------------- */


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

/* burgermenu for tablet */

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

    #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: #317636;
        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: 14px;
    }

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

/* menu desktop */

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

    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;
    }

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

    nav.horizontally .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

    nav.horizontally .navbar-nav>li>.dropdown-menu>li>.dropdown-menu {
        position: absolute;
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav>li, nav.horizontally .navbar-nav>li>.dropdown-menu>li {
        position: relative;
    }

    .navbar-default .navbar-nav li[class*="toplevel"]>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]>ul {
        display: block !important;
        pointer-events: none;
        opacity: 0;
        -webkit-transition: opacity 300ms linear;
        -moz-transition: opacity 300ms linear;
        -ms-transition: opacity 300ms linear;
        -o-transition: opacity 300ms linear;
        transition: opacity 300ms linear;
    }

    .navbar-default .open>.dropdown-menu,
    .navbar-default .navbar-nav li[class*="toplevel"]:hover>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]:hover>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]>ul[style*="block"] {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    .navbar-default .navbar-nav li[class*="toplevel"]:focus-within>ul,
    .navbar-default .navbar-nav li[class*="secondlevel"]:focus-within>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    .navbar-default .nav .open>.dropdown-menu {
        pointer-events: none !important;
        opacity: 0 !important;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #235323;
    font-weight: 700;
    text-align: left;
    padding: 15px 15px;
    position: relative;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

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

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

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 18px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}

/* 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: #ffffff;
    background: #317636;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    border-top: 4px solid #317636;
    background: #ffffff;
    box-shadow: 0 5px 12px 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 0;
        border-radius: 5px;
    }

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

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

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

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

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

/* secondlevel + thirdlevel */

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

@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) {
    color: #235323;
    background: #d6e6b7;
}

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

/* -------------------------------------------- banner ------------------------------------------ */

#slider {
    max-height: clamp(300px, 42vw, 400px);
    position: relative;
}

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

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

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

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

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

.slider-mask {
    display: none;
}

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

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

@media (min-width: 992px) {
    .index #contentCol {
        padding-top: 15px;
    }
}

#content>.row {
    row-gap: 40px;
}

@media (max-width: 991px) {
    #contentCol {
        -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
        order: -1;
    }
}

/* #region -------------------------------------- tabs ------------------------------------------ */

#tabsLeft {
    display: grid;
    gap: 30px;
}

@media (min-width: 576px) and (max-width: 991px) {
    #tabsLeft {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    #tabsLeft {
        align-items: start;
        align-content: start;
    }

    #tabsLeft {
        padding-right: clamp(20px, 2vw, 38px);
    }
}

#tabsLeft .tab {
    max-width: 360px;
    margin: 32px auto 0 auto;
    position: relative;
    color: #191919;
    font-size: 1rem;
    padding: 45px 20px 20px 20px;
    border-top: 4px solid #317636;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.1);
}

#tabsLeft .tab::before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    position: absolute;
    top: -32px;
    left: 50%;
    margin-left: -30px;
    border-radius: 50%;
    background: #317636 url('../img/icon-meldungen.png') center no-repeat;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15);
}

#tabsLeft .tab :is(h1, h2, h3, h4, h5, h6, .tabHeadline) {
    color: #317636;
    font-size: 1.5625rem;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    text-align: center;
}

#tabsLeft .tab .tab_link_title a {
    color: #317636;
    font-weight: 700;
    font-size: 1.125rem;
}

#tabsLeft .tab .tab_spacer {
    height: 15px;
}

#tabsLeft .tab .tab_link_mehr {
    font-size: 0;
}

#tabsLeft .tab .tab_link_mehr a {
    display: inline-block;
    position: relative;
    text-decoration: none;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 700;
    color: #235323;
    border-radius: 5px;
    border: 2px solid #235323;
    padding: 4px 12px 2px 12px;
    background: #d6e6b7;
}

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

/* #endregion ----------------------------------- tabs ------------------------------------------ */

/* ------------------------------------------------ @17ev ----------------------------------------------- */

#ev17 {
    padding-top: 25px;
    padding-bottom: clamp(30px, 4vw, 60px);
}

#ev17 .specialHeadline {
    background: #d6e6b7;
    padding: 0 0 0 50px;
    width: calc(100% - 30px);
    max-width: 1170px;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 auto clamp(30px, 2vw, 40px) auto;
}

#ev17 .tabHeadline {
    color: #235323;
    font-size: 1.5625rem;
    text-transform: uppercase;
    margin: 0px;
}

#ev17 .specialHeadline a:not(.has-image):not([rel]) {
    position: relative;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
    max-width: 200px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 15px 25px 15px 25px;
    background: #317636;
    outline-offset: -3px;
}

#ev17 .specialHeadline a:not(.has-image):not([rel])::after {
    content: ' \00BB';
}

#ev17 .specialHeadline a:not(.has-image):not([rel]):hover,
#ev17 .specialHeadline a:not(.has-image):not([rel]):focus {
    background: #235323;
}

@media (max-width: 768px) {
    #ev17 .specialHeadline {
        padding: 0px;
    }

    #ev17 .specialHeadline .tabHeadline {
        margin-bottom: 10px;
        margin-top: 10px;
    }

    #ev17 .specialHeadline a:not(.has-image):not([rel]) {
        max-width: unset;
    }
}

#ev17 .tab_link_entries {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

#ev17 .tab_link_entry {
    width: 100%;
    padding: 35px 30px;
    border: unset;
    border-top: 4px solid #317636;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.1);
}

@media (min-width: 575px) and (max-width: 767px) {
    #ev17 .tab_link_entry {
        max-width: calc(50% - 15px);
    }

    #ev17 .tab_link_entry:last-child {
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    #ev17 .tab_link_entry {
        max-width: calc(33.3333333% - 20px);
    }
}

#ev17 .tab_link_title a {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 700;
    color: #317636;
    margin-bottom: 10px;
    display: inline-block;
}

#ev17 .tab_link_date {
    color: #191919;
    font-size: 1rem;
}

#ev17 .tab_link_mandat {
    display: none;
}

#ev17 .tab_spacer,
#ev17 .vorschau {
    display: none;
}

#ev17 .tab_link_mehr {
    font-size: 0px;
    margin-top: 20px;
    text-align: left !important;
}

#ev17 .tab_link_mehr a {
    display: inline-block;
    position: relative;
    text-decoration: none;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 700;
    color: #235323;
    border-radius: 5px;
    border: 2px solid #235323;
    padding: 5px 10px 4px 10px;
    background: #d6e6b7;
}

#ev17 .tab_link_mehr a:hover,
#ev17 .tab_link_mehr a:focus {
    color: #ffffff;
    background: #317636;
}

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

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

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

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

}

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;
}

/* --------------------------------------------- footerKontakt -------------------------------------------- */

#footerKontakt {
    color: #ffffff;
    font-size: 1rem;
    padding-top: clamp(30px, 3vw, 50px);
    padding-bottom: clamp(30px, 3vw, 65px);
    background: #317636;
    font-size: 0.9375rem;
}

@media (min-width: 1200px) {
    #footerKontakt {
        background: url('../img/wappen-wasserzeichen.png') right 30px center no-repeat, #317636;
    }
}

@media (min-width: 768px) {
    #footerKontakt>.row>*+* {
        padding-left: 35px;
        border-left: 1px solid #ffffff;
    }
}

@media (max-width: 767px) {
    #footerKontakt>.row>*+* {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

#footerKontakt a {
    color: #ffffff;
}

#footerKontakt a[href^="mailto:"] {
    text-decoration: underline;
}

#footerKontakt .tabHeadline {
    color: #ffffff;
    font-size: 1.125rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

#footerKontakt ul {
    margin: 0;
}

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

#f5 {
    padding-top: 14px;
    padding-bottom: 14px;
    background-color: #ffffff;
}

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

@media (max-width: 767px) {
    #innerfooter {
        border-bottom: 1px solid rgba(25, 25, 25, 0.1);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
}

#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: #317636;
    text-decoration: underline;
}

#innerfooter li+li::before {
    content: "";
    margin: 0 6px;
}

@media (min-width: 992px) {
    #innerfooter li+li::before {
        margin: 0 15px;
    }
}

@media (min-width: 1200px) {
    #innerfooter li+li::before {
        margin: 0 20px;
    }
}

@media (max-width: 767px) {
    #innerfooter li {
        display: block;
        text-align: center;
        padding: 5px;
        margin: 0;
    }

    #innerfooter li+li::before {
        display: none;
    }
}

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

#vernetzt {
    text-align: right;
    font-size: 0.875rem;
    color: #191919;
    line-height: 1.3;
    margin: 0 auto;
    text-decoration: none;
}

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

#vernetzt span {
    color: #191919;
}

#vernetzt b {
    color: #317636;
}

#vernetzt span span {
    display: block;
}

#vernetzt img {
    margin-left: 12px;
}

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

.contrast_light_font div[id^="contrast_style"],
.contrast_light_font form[id^="search"],
.contrast_light_font #style button {
    border: 1px solid #ffffff !important;
}

.contrast_dark_font #logo img {
    background-color: #000 !important;
}

.contrast_dark_font div[id^="contrast_style"],
.contrast_dark_font form[id^="search"],
.contrast_dark_font #style button {
    border: 1px solid #000 !important;
}

.contrast_dark_font #footerKontakt,
.contrast_dark_font form[id^="search"] {
    background-color: #ffffff !important;
}

.contrast_dark_font form [id^="search_input"],
.contrast_dark_font form [id^="search_input"]::placeholder {
    color: #000 !important;
}