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

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

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

a {
    color: #4f7836;
}

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

b,
strong {
    font-weight: 500;
}

@media (min-width: 1200px) {
    .row {
        max-width: 1420px;
        width: 100%;
    }
}

#over {
    overflow: hidden;
    position: relative;
}

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

#topbar {
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    background: linear-gradient(to right, #ec1620, #ec1620) bottom 12px left / 100% 5px no-repeat, #ffffff;
}

@media (max-width: 991px) {
    #topbar {
        min-height: 95px;
    }
}

@media (min-width: 992px) {
    #topbar {
        background: linear-gradient(to right, #ec1620, #ec1620) bottom 12px left / 100% 5px no-repeat, #ffffff;
    }

    #topbar>.row>div:last-child {
        padding-top: 34px;
        padding-bottom: 40px;
    }
}

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

#logo {
    display: inline-block;
    padding: 14px 20px 20px 20px;
    background: #ffffff;
    box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    position: absolute;
    top: 0;
    left: 15px;
    z-index: 50;
}

#logo img {
    display: block;
}

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

/* -------------------------------------------- search ------------------------------------------ */

form[id^="search"] {
    display: inline-flex;
    margin: 20px auto;
    max-width: 250px;
    width: 100%;
}

@media (max-width: 991px) {
    form[id^="search"] {
        background: #ffffff;
    }
}

@media (min-width: 992px) {
    form[id^="search"] {
        margin: 0 20px 0 0;
    }
}

form [id^="search_input"] {
    color: #444444;
    font-size: 1.0625rem;
    font-style: normal;
    background: transparent;
    padding: 6px 14px;
    border: 0;
    width: 100%;
}

form [id^="search_submit"] {
    width: 38px;
    border: none;
    background: url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    font-size: 0;
    transition: background 150ms linear;
}

form [id^="search_submit"]:is(:hover, :focus) {
    background-color: rgba(0, 0, 0, 0.1);
}

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

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

.innerfooter {
    font-size: 1rem;
}

@media (min-width: 992px) {
    #search1+* {
        border-left: 1px solid #e8e8e8;
        padding: 8px 0 8px 30px;
    }
}

.innerfooter ul {
    padding: 0;
}

@media (max-width: 991px) {
    .innerfooter {
        background: #ffffff;
    }

    .innerfooter ul {
        padding: 25px 15px;
        margin-bottom: 25px;
        margin-top: 25px;
    }
}

.innerfooter a {
    color: #444444;
    text-decoration: none;
}

.innerfooter a:is(:hover, :focus) {
    color: #3a4088;
    text-decoration: underline;
}

@media (min-width: 992px) {
    .innerfooter li {
        display: inline-block;
    }

    .innerfooter li+li::before {
        content: "\00B7";
        margin: 0 clamp(15px, 2vw, 25px);
        color: #444444;
    }
}

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


#headerpic {
    position: relative;
}

#slider {
    overflow: hidden;
    position: relative;
    /*1920px * 555px*/
    height: 40vw;
    max-height: 555px;
}

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

@media (min-width: 992px) {
    #headerpic a.nivo-prevNav {
        left: 65px;
    }

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

@media (max-width: 991px) {

    #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/banner-overlay.png') center bottom / 100% auto no-repeat;
}

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

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

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

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

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

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #207a46;
        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: 6px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.navbar {
        border-radius: 2px;
        padding: 30px 20px;
        background: #207a46;
        position: relative;
        box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    }

    #nav-position {
        padding-top: 5px;
        position: relative;
        z-index: 99;
    }

    #nav-position::before {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        background: #304b78;
        pointer-events: none;
        z-index: -1;
        opacity: 0;
        transition: opacity 300ms linear;
    }

    #nav-position:is(:hover, :focus-within)::before {
        opacity: 0.2;
    }

    nav.navbar .navbar-nav>li {
        display: block !important;
        width: 100%;
        float: none;
        position: relative;
    }

    nav.navbar .navbar-nav li[class*="toplevel"]>ul {
        pointer-events: none;
        position: absolute;
        left: 100%;
        top: 0 !important;
        z-index: 1000;
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 300ms linear;
    }

    nav.navbar .navbar-nav>li:is(.open, :hover)>ul,
    nav.navbar .navbar-nav>li.open:focus-within>ul {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible;
        top: 100%;
    }

    nav.navbar .navbar-nav>li.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.navbar .navbar-nav>li:is(:hover, :focus)>ul {
        z-index: 1003;
    }

    nav.navbar [class*="secondlevel"]>ul {
        display: block !important;
    }
}

/* toplevel */

nav.navbar .navbar-nav a[class*="toplevel"] {
    color: #444444;
    font-weight: 500;
    text-align: left;
    padding: 10px 35px 10px 15px;
    position: relative;
    font-size: 1.125rem;
    background: #f4f3f3;
    line-height: 1.2;
    text-decoration: none;
}

nav.navbar .navbar-nav li[class*="toplevel"]+li {
    margin-top: 2px;
}

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

@media (min-width: 992px) {
    nav.navbar .navbar-nav a[class*="toplevel"] {
        padding: 9px 15px;
        font-size: 1.25rem;
    }

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

    nav.navbar .navbar-nav a[class*="toplevel"].dropdown-toggle::before {
        content: "\00BB";
        position: absolute;
        right: 15px;
        top: 21px;
        line-height: 0;
        font-family: "Khand", sans-serif;
    }
}

/* toplevel-over */

nav.navbar .navbar-nav li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.navbar .navbar-nav li[class*="toplevel"]>a:is(:hover, :focus),
nav.navbar .navbar-nav li[class*="toplevel"].open>a,
nav.navbar .navbar-nav li[class*="toplevel"].open>a:is(:hover, :focus),
nav.navbar .navbar-nav li[class*="toplevel"][class*="_over"]>a,
nav.navbar .navbar-nav li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #ffffff;
    background: #207a46;
}

/* secondlevel + thirdlevel dropdown-box */

nav.navbar [class*="toplevel"]>ul {
    padding: 10px;
    background: #ffffff;
    border-radius: 2px;
}

@media (min-width: 992px) {
    nav.navbar [class*="toplevel"]>ul {
        margin-top: -20px;
        padding: 20px 20px;
        min-width: 360px;
        max-width: 500px;
        margin-left: 50px;
        box-shadow: 0 0 5px 0 rgba(43, 43, 43, 0.2);
    }

    nav.navbar li[class*="secondlevel"] {
        margin-bottom: 2px;
    }

    nav.navbar [class*="toplevel"]>ul::before,
    nav.navbar [class*="toplevel"]>ul::after {
        content: "";
        position: absolute;
        display: block;
    }

    nav.navbar [class*="toplevel"]>ul::before {
        width: 50px;
        top: 0;
        bottom: 0;
        left: -50px;
    }

    nav.navbar [class*="toplevel"]>ul::after {
        top: 12px;
        left: -24px;
        width: 24px;
        height: 38px;
        background: #ffffff;
        clip-path: polygon(100% 100%, 100% 0, 0 50%);
    }
}

nav.navbar [class*="secondlevel"]>ul {
    margin: 0px;
    padding: 4px 0;
}

/* secondlevel + thirdlevel */

nav.navbar a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #444444;
    font-size: 1rem;
    text-align: left;
    position: relative;
    line-height: 1.2;
    text-decoration: none;
}

nav.navbar a[class*="secondlevel"] {
    padding: 8px 35px 8px 10px;
    background: #f4f3f3;
    font-weight: 500;
}

@media (min-width: 992px) {
    nav.navbar a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        font-size: 1.125rem;
    }

    nav.navbar a[class*="secondlevel"] {
        padding: 10px 20px
    }
}

nav.navbar a[class*="thirdlevel"] {
    padding: 6px 15px 6px 38px;
    font-weight: 400;
}

nav.navbar a[class*="thirdlevel"]::before {
    content: "\00BB";
    display: block;
    position: absolute;
    top: 15px;
    line-height: 0;
    left: 25px;
}

/* secondlevel + thirdlevel over */

nav.navbar li[class*="secondlevel"]:is(:hover, :focus-within)>a,
nav.navbar li[class*="secondlevel"]>a:is(:hover, :focus),
nav.navbar li[class*="secondlevel"].open>a,
nav.navbar li[class*="secondlevel"].open>a:is(:hover, :focus),
nav.navbar li[class*="secondlevel"][class*="_over"]>a,
nav.navbar li[class*="secondlevel"][class*="_over"]>a:is(:hover, :focus) {
    background: #207a46;
    color: #ffffff;
}

nav.navbar li[class*="thirdlevel"]:is(:hover, :focus-within)>a,
nav.navbar li[class*="thirdlevel"]>a:is(:hover, :focus),
nav.navbar li[class*="thirdlevel"].open>a,
nav.navbar li[class*="thirdlevel"].open>a:is(:hover, :focus),
nav.navbar li[class*="thirdlevel"][class*="_over"]>a,
nav.navbar li[class*="thirdlevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #207a46;
}

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

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

#vernetzt {
    gap: 15px;
    text-align: left;
    font-size: 0.875rem;
    color: #ffffff;
    justify-content: center;
    line-height: 1.3;
    margin: 0 auto 30px auto;
    text-decoration: none;
    max-width: calc(100% - 30px);
}

@media (min-width: 992px) {
    #vernetzt {
        margin: 40px auto 0 auto;
        max-width: unset;
    }
}

#vernetzt span span {
    display: block;
}

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

main>.row {
    row-gap: 30px;
}

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

@media (min-width: 1200px) {
    #bg-content {
        position: relative;
    }

    #bg-content::before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: -215px;
        right: -115px;
        width: 187px;
        height: 242px;
        background: url('../img/deko-baum-strichzeichnung.png') center no-repeat;
        z-index: 12;
    }
}

/* ----------------------------------------------- @1nw news -------------------------------------------- */

#nw1 {
    padding-top: clamp(35px, 4vw, 60px);
    padding-bottom: clamp(30px, 4vw, 55px);
    position: relative;
}

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

@media (min-width: 1200px) {
    #nw1>.row::before {
        content: '';
        position: absolute;
        pointer-events: none;
        bottom: clamp(-50px, -4vw, -30px);
        left: -197px;
        width: 176px;
        height: 204px;
        background: url('../img/deko-kinder-strichzeichnung.png') center no-repeat;
    }
}

#nw1 .tab {
    color: #ffffff;
    padding: 30px;
    overflow: hidden;
    border-radius: 3px;
    background: url('../img/icon-meldungen.png') top 20px right 20px no-repeat, #207a46;
    box-shadow: 0px 13px 22px 0px rgba(43, 43, 43, 0.15);
}

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

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

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

#nw1 .tab_link_entries {
    display: grid;
    gap: 30px;
}

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

@media (min-width: 768px) {
    #nw1 .tab_link_entries {
        grid-template-columns: repeat(3, 1fr);
    }
}

#nw1 .tab_link_entry {
    font-size: 1.0625rem;
    position: relative;
    width: 100%;
    border-radius: 3px;
    padding: 160px 30px 30px 30px;
    background: #ffffff;
    border: unset !important;
    box-shadow: 0px 13px 22px 0px rgba(43, 43, 43, 0.15);
}

#nw1 .vorschau {
    opacity: 1;
}

#nw1 .tab_preview_picture {
    background: #ffffff;
}

#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;
    border-radius: 3px 3px 0 0;
}

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

#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: 100px;
    font-weight: 500;
    color: #ffffff;
    font-size: 1rem;
    padding: 8px 20px;
    background: #207a46;
}

#nw1 .tab_link_title a {
    display: block;
    font-weight: 700;
    font-size: 1.125rem;
    color: #207a46;
    line-height: 1.2;
    margin-bottom: 8px;
}

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

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

#nw1 .buttonStyle a {
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    padding: 5px 16px;
    border: 1px solid #ffffff;
    background: #207a46;
    transition: background 300ms linear, color 300ms linear;
}

@media (min-width: 768px) {
    #nw1 .buttonStyle a+a {
        margin-left: 12px;
    }
}

#nw1 .buttonStyle a:hover,
#nw1 .buttonStyle a:focus {
    color: #444444;
    background: #f4f3f3;
}

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

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

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

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

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.8125rem, 3vw, 2.3125rem);
}

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

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

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

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

.besucherWrapper {
    color: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 3px;
    background: #207a46;
    box-shadow: 0px 13px 22px 0px rgba(43, 43, 43, 0.15);
}

@media (min-width: 1200px) {
    .besucherWrapper {
        margin-top: -56px;
    }
}

footer {
    border-top: 5px solid #ec1620;
    font-size: clamp(1rem, 1vw, 1.125rem);
    position: relative;
    background: #ffffff;
    padding: 30px 0;
    margin-bottom: 375px;
}

footer>.row {
    row-gap: 30px;
}

footer::before,
footer::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
}

footer::before {
    background: url('../img/footer-overlay.png') center top / 100% auto no-repeat;
    height: 120px;
    bottom: -120px;
    z-index: 1;
}

footer::after {
    bottom: -375px;
    height: 375px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

footer :is(h1, h2, h3, h4, h5, h6, .footerHeadline) {
    font-size: 1.875rem;
    margin-bottom: 20px;
}

footer a {
    text-decoration: underline;
}

footer a,
footer a:is(:hover, :focus) {
    color: #3a4088;
}

.iframetab iframe,
.iframetab .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
}

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