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

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

body {
    font-family: "Roboto", sans-serif;
    color: #282828;
    background: #ffffff;
    font-size: 1rem;
    /* 1rem = 16px */
    line-height: 2;
}

a {
    color: #0f6733;
}

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

b,
strong {
    font-weight: 600;
}

#overflow {
    overflow: hidden;
}

/* #region --------------------------------------- logo ----------------------------------------- */

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

    #logo .row {
        margin-left: -15px;
        margin-right: -15px;
    }
}

/* #endregion ----------------------------------- logo ------------------------------------------ */

/* #region -------------------------------------- topbar ---------------------------------------- */

#topbar {
    padding: 15px 0 18px 0;
    line-height: 1.2;
    font-size: 1.125rem;
}

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

@media (min-width: 576px) and (max-width: 991px) {
    #topbar>.row>*:last-child>*:last-child {
        margin-right: 70px;
    }
}

#topbar .tab a {
    background-color: #93b87a;
    color: #282828;
    padding: 7px 15px;
    min-width: 150px;
    display: inline-block;
    text-align: center;
}

@media (min-width: 576px) {
    #topbar .tab a+a {
        margin-left: 18px;
    }
}

@media (max-width: 575px) {
    #topbar .tab a+a {
        margin: 5px;
    }
}

#search {
    height: 33px;
    background: #b6dda3;
    display: inline-block;
    position: relative;
    margin-top: 10px;
}

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

#search_input {
    color: #000000;
    font-size: 16px;
    font-style: normal;
    background: transparent;
    padding: 0;
    border: 0;
    line-height: 33px;
    padding-left: 10px;
    padding-right: 43px;
    height: 33px;
    width: 100%;
}

#search_submit {
    width: 33px;
    background: url('../img/icon-lupe.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    line-height: 33px;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    font-size: 0;
    -webkit-transition: background-color 300ms linear;
    -moz-transition: background-color 300ms linear;
    -ms-transition: background-color 300ms linear;
    -o-transition: background-color 300ms linear;
    transition: background-color 300ms linear;
}

#search_input::-ms-input-placeholder {
    color: #000000 !important;
}

#search_input::-webkit-input-placeholder {
    color: #000000 !important;
}

#search_input::-moz-placeholder {
    opacity: 1;
}

#search_input:-moz-placeholder {
    opacity: 1;
}

/* #endregion ----------------------------------- topbar ---------------------------------------- */

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

/* 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: #ff9029;
        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 {
        padding: 20px 10px;
    }

    .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: 30px;
        right: 15px;
        z-index: 101;
        transition: top 300ms linear;
    }

    .is-sticky .navbar-header {
        top: 15px;
    }

    .dropdown-toggle-button-wrapper {
        top: 11px;
        right: 0;
    }

    .dropdown-toggle-button-wrapper2 {
        top: 1px;
        right: 0;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .navbar-header {
        top: 38px;
    }
}

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background: #ffffff;
        border-bottom: 6px solid #b6dda3;
    }

    nav.horizontally .navbar-nav {
        margin-bottom: -6px;
        padding: 0 25px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav.horizontally [class*="toplevel"]>ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
    }

    nav.horizontally .navbar-nav li:last-child :is([class*="toplevel"]>ul) {
        right: 0;
        left: unset;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        position: absolute;
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav li {
        position: relative;
    }

    nav.horizontally .navbar-nav li :is([class*="toplevel"]>ul, [class*="secondlevel"]>ul) {
        display: block !important;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 300ms linear;
    }

    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: #282828;
    font-weight: 400;
    text-align: left;
    padding: 14px 5px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
    transition: border 300ms linear;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-top: 2px;
    }

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

    nav.horizontally a[class*="toplevel"] {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
    }
}

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

nav.horizontally a[class*="toplevel"]::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 0;
    height: 6px;
    width: 0;
    background: #93b87a;
    transform: translateX(-50%);
    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: #0f6733;
}

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

/* secondlevel + thirdlevel dropdown-box */

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

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

    nav.horizontally [class*="secondlevel"]>ul {
        margin: 10px;
        padding: 5px;
    }
}

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

    nav.horizontally [class*="toplevel"]>ul {
        border-radius: 0 0 6px 6px;
    }

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

    nav.horizontally [class*="secondlevel"]>ul::before {
        content: "";
        position: absolute;
        display: block;
        width: 12px;
        top: 0;
        bottom: 0;
        left: -12px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]) {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #282828;
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
    padding: 10px 0px 10px 0px;
    line-height: 1.2;
    text-decoration: none;
    position: relative;
}

@media(max-width: 991px) {
    nav.horizontally a[class*="secondlevel"].dropdown-toggle2 {
        padding-right: 35px;
    }

    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
    }
}

/* 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: #0f6733;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within) {
    border-bottom: 2px solid #93b87a;
}

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

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

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

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

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

@media (min-width: 992px) {
    .theme-nivo .nivo-controlNav {
        bottom: 60px;
    }

    .slider-mask {
        display: block;
        background: url('../img/slider-mask.png') bottom -1px center no-repeat;
    }
}

/* ---------------------------------------------- Bannerbedienung Pfeile ---------------------------------------------- */

#headerpic .slider-wrapper .nivo-control.active::after {
    width: 20px;
}

#headerpic .slider-wrapper .nivo-directionNav a {
    background: #b6dda3;
    font-size: 0px;
    height: 50px;
    opacity: 1;
    position: absolute;
    text-indent: unset;
    width: 50px;
}

@media (min-width: 992px) {
    #headerpic .slider-wrapper .nivo-directionNav a {
        left: 70px !important;
    }

    #headerpic .slider-wrapper .nivo-directionNav a.nivo-nextNav {
        left: unset !important;
        right: 70px !important;
    }
}

#headerpic .slider-wrapper .nivo-directionNav a::after {
    content: "\2039";
    position: absolute;
    top: 50%;
    right: 50%;
    font-size: 50px;
    font-weight: 400;
    color: #282828;
    line-height: 12px;
    height: 21px;
    width: 15px;
    transform: translate(50%, -50%);
    transition: all, 250ms;
}

#headerpic .nivo-prevNav::after {
    color: #282828 !important;
}

#headerpic .slider-wrapper .nivo-directionNav a.nivo-nextNav::after {
    content: "\203A";
}

#headerpic .slider-wrapper .nivo-directionNav a:is(:hover, :focus) {
    background: #93b87a;
}

#headerpic a.nivo-nextNav,
#headerpic a.nivo-prevNav {
    background-image: unset;
    padding: 25px;
}

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

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

#content [id^="form"] input[type="submit"] {
    color: #282828 !important;
    background-color: #b6dda3 !important;
}

#content [id^="form"] input[type="submit"]:is(:hover, :focus) {
    background-color: #ff9029 !important;
}

/* ----------------------------------------------- @1nw news + events -------------------------------------------- */

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

#nw1 {
    padding-top: 20px;
    padding-bottom: 20px;
}

#ev1>.row,
#nw1>.row {
    row-gap: 30px;
    position: relative;
}

#ev1 .tab,
#nw1 .tab {
    color: #282828;
    padding: 30px;
    overflow: hidden;
    background: #b6dda3;
}

#ev1 .tab a,
#nw1 .tab a {
    color: #282828;
    text-decoration: underline;
}

#ev1 .tabHeadline,
#nw1 .tabHeadline {
    color: #282828;
    font-weight: 700;
    hyphens: auto;
    font-size: clamp(1.75rem, 2vw, 2rem);
}

#ev1 .tab,
#ev1 .tab_link,
#ev1 .tab_link>div,
#nw1 .tab,
#nw1 .tab_link,
#nw1 .tab_link>div {
    height: 100%;
    min-height: 100%;
}

#ev1 .tab_link_entries,
#nw1 .tab_link_entries {
    display: grid;
    height: 100%;
    gap: 30px;
}

@media (min-width: 576px) {

    #ev1 .tab_link_entries,
    #nw1 .tab_link_entries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {

    #ev1 .tab_link_entries,
    #nw1 .tab_link_entries {
        grid-template-columns: repeat(3, 1fr);
    }
}

#ev1 .tab_link_entry,
#nw1 .tab_link_entry {
    font-size: 1rem;
    position: relative;
    width: 100%;
    padding: 160px 30px 30px 30px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

#ev1 .vorschau,
#nw1 .vorschau {
    opacity: 1;
    display: none;
}

#ev1 .tab_preview_picture,
#nw1 .tab_preview_picture {
    background: #ffffff;
}

#ev1 .tab_link_entry::before,
#ev1 .tab_link_entry .tab_preview_picture,
#nw1 .tab_link_entry::before,
#nw1 .tab_link_entry .tab_preview_picture {
    position: absolute;
    display: block;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 120px;
    overflow: hidden;
}

#ev1 .tab_link_entry::before,
#nw1 .tab_link_entry::before {
    content: "";
    background: center / cover no-repeat, #666666;
}

#ev1 .tab_preview_picture img,
#nw1 .tab_preview_picture img {
    position: absolute;
    margin: 0 !important;
    left: 50%;
    top: 50%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    max-width: 350px;
    width: auto;
    height: auto;
    -ms-interpolation-mode: bicubic;
    transform: translateX(-50%) translateY(-50%);
}

#nw1 .tab_date {
    display: inline-block;
    position: absolute;
    z-index: 1;
    left: -1px;
    top: 105px;
    font-weight: 400;
    color: #282828;
    font-size: 0.75rem;
    padding: 6px 20px;
    background: #93b87a;
}

#ev1 .tab_link_title a,
#nw1 .tab_link_title a {
    display: block;
    font-weight: 700;
    font-size: 1.75rem;
    color: #0f6733;
    line-height: 1.2;
    margin-bottom: 8px;
    font-family: "Amatic SC", cursive;
}

#ev1 .tab_link_entries+div,
#ev1 .tab_link_entries .tab_spacer,
#ev1 .tab_link_mehr,
#nw1 .tab_link_entries+div,
#nw1 .tab_link_entries .tab_spacer,
#nw1 .tab_link_entry>div:nth-last-child(2) {
    display: none;
}

/* ------------------------------------------- @1nw buttonStyle ------------------------------------------- */

#ev1 .buttonStyle a,
#nw1 .buttonStyle a {
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.2;
    color: #282828;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f6b48f;
    border: 1px solid transparent;
    transition: background 300ms linear, border 300ms linear;
}

@media (min-width: 768px) {

    #ev1 .buttonStyle a+a,
    #nw1 .buttonStyle a+a {
        margin-left: 12px;
    }
}

#ev1 .buttonStyle a:hover,
#ev1 .buttonStyle a:focus,
#nw1 .buttonStyle a:hover,
#nw1 .buttonStyle a:focus {
    background: #ff9029;
    border-color: #ffffff;
}

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

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

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

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

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

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

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

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


/* ----------------------------------------------- @12f footer ----------------------------------------------- */

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

#footer {
    color: #282828;
    font-size: 1rem;
    background-color: #b6dda3;
}

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

#footer a,
#footer a:hover,
#footer a:focus {
    color: #282828;
}

#footer .footerTab {
    font-size: 1rem;
    padding-top: 20px;
    padding-bottom: 20px;
}

@media (min-width: 992px) {
    #footer {
        margin-top: 40px;
    }

    #footer .footerTab {
        padding-top: 55px;
        padding-bottom: 50px;
    }
}

#footer .tabHeadline {
    color: #282828;
    font-size: clamp(1.25rem, 10vw, 1.75rem);
    font-weight: 700;
    text-transform: uppercase;
}

#footer .footerTab a {
    color: #6b3400;
    font-style: normal;
    text-decoration: underline;
}

#footer .footerTab a:hover,
#footer .footerTab a:focus {
    color: #282828;
    text-decoration: underline;
}

#footer>.row {
    position: relative;
}

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

#innerfooter {
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #b6dda3;
}

@media (max-width: 767px) {
    #innerfooter {
        margin-bottom: 15px;
    }
}

@media (min-width: 992px) {
    #innerfooter {
        position: relative;
        padding-top: 40px;
        padding-bottom: 40px;
        padding-right: 100px;
    }

}

@media (min-width: 1200px) {
    #innerfooter::after {
        right: -160px;
    }
}

#innerfooter ul {
    padding: 0;
    z-index: 1;
    line-height: 1.5;
    position: relative;
}

#innerfooter li {
    width: 100%;
    display: inline-block;
    padding-right: 15px;
}

#innerfooter a {
    display: block;
    font-weight: 400;
    position: relative;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    padding: 6px 10px 6px 20px;
}

#innerfooter a:hover,
#innerfooter a:focus {
    color: #282828;
    text-decoration: underline;
}

#footerBG {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #93b87a;
    display: block;
}

@media (min-width: 992px) {
    #footerBG {
        left: calc((100vw - 992px) / -2);
    }
}

@media (min-width: 1200px) {
    #footerBG {
        left: calc((100vw - 1200px) / -2);
    }
}

@media (max-width: 991px) {
    #footerBG {
        display: none;
    }
}

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

#vernetzt {
    font-size: 1rem;
    color: #282828;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
}

#vernetzt span {
    display: block;
}

#vernetzt b {
    color: #282828;
}

@media (min-width: 768px) and (max-width:991px) {
    #vernetzt {
        margin-top: 30px;
        display: inline-block;
    }
}