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

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

body {
    font-family: "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: #b25e0a;
}

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

#content a,
b,
strong {
    font-weight: 600;
}


a:focus {
    outline: 3px solid #880000 !important;
}

button:focus {
    outline: 3px solid #880000 !important;
}

form:focus {
    outline: 3px solid #880000 !important;
}

#newsletter_input:focus,
#newsletter_submit:focus,
#search_input1:focus,
#search_submit1:focus {
    outline: 3px solid #880000 !important;
}


#overflow {
    overflow: clip;
    position: relative;
}
/* ------------------------------------------- logo --------------------------------------------- */

#logo {
    display: inline-block;
    text-decoration: none;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    position: relative;
    border-radius: 20px;
    
}

@media (min-width: 992px) {
    #logo {
        max-width: 270px;
        height: fit-content;
        width: 100%;
        display: block;
    }

    .is-sticky #logo {
        height: 142px;
    }

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

.logoText {
    text-align: center;
    font-weight: 400;
      color: #3e8325;
    line-height: 1.2;
    font-size: clamp(1rem, 2vw, 1.375rem);
    text-decoration: none;
    font-family: "Oleo Script", system-ui;
    display: block;
}

#logo img {
    display: block;
    margin: 0 auto;
}

@media (max-width: 991px) {
    #logo img {
        max-width: 120px;
        width: 100%;
    }
    #logo {
        padding: 15px 0;
    }
}

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

nav.horizontally {
    background: #3e8325;
}

/* 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: #2e611b;
        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: #3e8325;
        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 .navbar-nav {
        margin: 15px 0;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: center !important;
    }

    .is-sticky nav.horizontally {
        left: unset !important;
    }

    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:focus-within, :hover)>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:is(:hover, :focus-within)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 10px 35px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

nav.horizontally li[class*="toplevel"]:last-child>a {
    background: #fff;
    color: #3e8325 !important;
    padding-left: 14px;
    padding-right: 14px;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"] {
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }
    nav.horizontally a[class*="toplevel"] {
        text-align: left;
          overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
  padding-left:25px;
    }
    nav.horizontally li[class*="toplevel"]:last-child>a {
        text-align: left;
        padding-left:25px;
    }
}

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

    nav.horizontally a[class*="toplevel"] {
        padding: 8px 0;
    }

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

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"][data-toggle="dropdown"]::after {
        content: "";
        position: absolute;
        display: block;
        right: 2px;
        top: 50%;
        margin-top: -7px;
        width: 8px;
        height: 8px;
        border-radius: 1px;
        display: inline-block;
        border-left: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: rotate(-45deg);
        transition: border 300ms linear;
    }
}

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

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

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

    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: #ffffff;
    text-align: center;
    padding: 10px 40px 10px 20px;
    font-weight: 400;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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


@media (max-width: 991px) {
nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]){
        text-align: left;
          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) {
    background: #2e611b;
    color: #ffffff;
}

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

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

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

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

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

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

.slider-mask {
    display: none;
}

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

@media (min-width: 992px) {
    #banneroverlay {
        position: absolute;
        top: 0;
        bottom:0;
        margin:auto;
        height: fit-content;
        left: 0;
        width: 100%;
        z-index: 55;
    }
}
@media (max-width: 991px) {
        #banneroverlay{
        background-color: #3e8325;
        
    }
}
/* #endregion --------------------------------- banner ------------------------------------------ */

/* ---------------------------------------- tab with border ------------------------------------- */
#introContent > .row > div {
    margin-bottom: 30px;
}
.introTab {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    position: relative;
    border-radius: 20px;
    height: 100%;
}

.introTab {
    font-size: clamp(1.5625rem, 3vw, 2.1875rem);
    color: #3e8325;
    font-weight: 400;
    line-height: 1.1;
    overflow: hidden;
    font-family: "Oleo Script", system-ui;
}

.introTab1 img {
    margin-top: 20px;
}

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

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

#introContent {
    background-attachment: fixed;
    background-size: cover;
    padding: clamp(80px, 22vw, 300px) 0;
}

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

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

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

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

}

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

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

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

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


/* ----------------------------------------------- @4nw news -------------------------------------------- */

#nw4 {
    font-size: 1rem;
    padding: clamp(30px, 4vw, 70px) 0 clamp(30px, 3vw, 45px) 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fdd491;
    background-attachment: fixed;
}

#nw4>.row {
    row-gap: clamp(30px, 3.5vw, 70px);
}

#nw4 .tab {
    color: #2e2e2e;
}

#nw4 .tab a {
    color: #ffffff;
    text-decoration: underline;
}

#nw4 .tabHeadline {
    font-weight: 700;
    color: #2e2e2e;
    font-size: clamp(1.8125rem, 3vw, 2.5rem);
    margin-bottom: 0;
}

#nw4 .tab_link_entries {
    position: relative;
    display: grid;
    gap: clamp(30px, 4vw, 60px);
}

@media (min-width: 992px) {
    #nw4 .tab_link_entries {
        grid-template-columns: repeat(2, 1fr);
    }
}

#nw4 .tab_link_entry {
    position: relative;
    font-size: 1rem;
    padding: 20px;
    hyphens: auto;
    background: #ffffff;
    border-bottom: none !important;
}

#nw4 .tab_link_title a {
    display: block;
    color: #3e8325;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: clamp(20px, 3vw, 30px);
}

#nw4 .tab_link_mandat a {
    color: inherit;
}

#nw4 .tab_link_entry::after,
#nw4 .tab_preview_picture {
    position: absolute;
    display: block;
    overflow: hidden;
}

#nw4 .tab_link_entry::after {
    content: "";
    background: center / cover no-repeat, #ffffff;
}

#nw4 .tab_preview_picture {
    background: #ffffff;
}

#nw4 .tab_preview_picture img {
    position: absolute;
    z-index: 2;
    margin: 0 !important;
    left: 50%;
    top: 50%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    max-width: 350px;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
}

@media (max-width: 767px) {
    #nw4 .tab_link_entry {
        margin-top: 190px;
    }

    #nw4 .tab_link_entry::after,
    #nw4 .tab_preview_picture {
        top: -190px;
        width: 100%;
        height: 170px;
        left: 0;
        right: 0;
    }
}

@media (min-width: 768px) {
    #nw4 .tab_link_entry {
        margin-left: 210px;
        min-height: 105px;
    }

    #nw4 .tab_link_entry::after,
    #nw4 .tab_preview_picture {
        top: 0;
        left: -210px;
        width: 190px;
        height: 100%;
    }
}

@media (min-width: 1200px) {
    #nw4 .tab_link_entry>* {
        width: 100%;
    }

    #nw4 .tab_link_entry {
        position: relative;
        margin-left: 285px;
        min-height: 277px;
        display: flex;
        flex-wrap: wrap;
        padding: 30px 20px 30px 20px;
    }

    #nw4 .tab_link_entry::after,
    #nw4 .tab_preview_picture {
        left: -285px;
        top: 0;
        width: 270px;
        height: 100%;
    }

    #nw4 .vorschau {
        opacity: 1;
        font-weight: 400;
    }

    #nw4 .tab_date {
        text-align: center;
        position: absolute;
        z-index: 55;
        top: -15px;
        left: -55%;
        color: #ffffff;
        font-size: 1rem;
        padding: 3px 10px;
        width: fit-content;
        background: #2e611b;
        transform: translate(-50%, 0);
    }
}

#nw4 .tab_spacer,
#nw4 .tab_link_entry>div:nth-last-child(2) {
    display: none;
}

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

#footer {
    background: #3e8325;
    padding: 40px 0;
    color: #ffffff;
    font-size: 1rem;
}

#footer>.row>* {
    margin-bottom: 30px;
}

@media (max-width: 991px) {
    :is(#innerfooter)>.row>.col-xs-12+* {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 20px;
        padding-top: 20px;
    }
}

@media (min-width: 768px) {
    #innerfooter>.row>.col-xs-12+:nth-child(2) {
        border: none;
        margin-top: 0;
        padding-top: 0;
    }
}

#footer a {
    color: #ffffff;
    text-decoration: underline;
}

.footerHeadline {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 1.5625rem;
}

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

#innerfooter {
    color: #ffffff;
    background-color: #2e611b;
    padding: 20px 0;
    font-family: "Cairo", serif;
    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;
    background: rgba(255, 255, 255, 0.08);
}

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

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

#scroll-top {
    font-size: 0;
    width: 33px;
    height: 33px;
    display: block;
    position: relative;
    margin: 0 auto;
    background: #ffffff;
}

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

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

#scroll-top::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 #b25e0a;
    border-top: 3px solid #b25e0a;
    transform: rotate(-45deg);
    transition: border 300ms linear;
}

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

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

#vernetzt {
    gap: 14px;
    text-align: right;
    color: #ffffff;
    line-height: 1.3;
    font-weight: 400;
    text-decoration: none;
    font-size: 0.8125rem;
}

#vernetzt span span {
    display: block;
}

/* ------------------------------------------- buttons ------------------------------------------ */

.button-style a:not(.has-image):not(#logo) {
    color: #b25e0a !important;
    background: #fff;
    font-weight: 700;
    display: inline-block;
    text-align: center;
    font-size: 0.9375rem;
    text-decoration: none !important;
    min-width: 110px;
    padding: 4px clamp(10px, 2vw, 20px);
    margin-top: 22px;
    border: 2px solid transparent;
    border-color: #b25e0a;
    transition: background-color 300ms linear, color 300ms linear, border 100ms linear;
}

.button-style a:not(.has-image):not(#logo):is(:hover, :focus) {
    color: #ffffff !important;
    background: #b25e0a;
    border-color: #b25e0a;
}

.button-style a+a,
.socialMedia a+a {
    margin-left: 20px;
}