@import url('https://fonts.verwaltungsportal.de/import/?family=Work+Sans:400,400i,700,700i');
@import url("https://fonts.verwaltungsportal.de/import/?family=Aleo:700,700i");

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

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

@media (min-width: 768px) {
    body {
        font-size: 1.125rem;
    }
}

a {
    color: #6d7a1a;
}

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

b,
strong {
    font-weight: 700;
}

@media (min-width: 992px) {
    body {
        padding-left: clamp(25px, 4vw, 45px);
        padding-right: clamp(25px, 4vw, 45px);
    }
}

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

#logo a {
    display: inline-block;
    margin: 15px auto;
}

#logo img {
    display: block;
}

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

/* -------------------------------------------- buttonStyle -------------------------------------------- */

.buttonStyle a {
    text-decoration: none;
    display: inline-block;
    color: #191919;
    font-size: 0.875rem;
    font-family: "Aleo", sans-serif;
    font-weight: 700;
    padding: 6px 22px;
    border-radius: 40px;
    background: #bcd233;
}

.buttonStyle a:is(:hover, :focus) {
    background: #6d7a1a;
    color: #ffffff;
}

/* #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: #6d7a1a;
        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: 5px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        background: #ffffff;
        position: relative;
    }

    .is-sticky nav.horizontally {
        border-bottom: 1px solid #6d5046;
    }

    nav.horizontally .navbar-nav>li {
        display: inline-block;
    }

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

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

    #myNavbar {
        display: flex;
        align-items: center;
        align-content: center;
        justify-content: space-between;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #6d5046;
    font-weight: 700;
    text-align: left;
    padding: 10px 15px;
    font-family: "Aleo", sans-serif;
    font-size: 1.25rem;
    line-height: 1.2;
    text-decoration: none;
}

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

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

    nav.horizontally a[class*="toplevel"] {
        padding: 16px 5px;
        margin: 10px 0;
    }
}

/* 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: #6d7a1a;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #7c6050;
}

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

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

    nav.horizontally [class*="toplevel"]>ul {
        margin-top: -10px;
        left: 50%;
        transform: translate(-50%, 0);
    }

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

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

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    color: #ffffff;
    font-weight: 400;
    text-align: left;
    padding: 8px 25px 8px 38px;
    font-size: 1rem;
    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"])::before {
    content: "\00BB";
    position: absolute;
    top: 7px;
    left: 25px;
    margin-right: 4px;
}

/* 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: #ffffff;
    color: #6d7a1a;
}

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

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

#slider {
    height: 200px;
    overflow: hidden;
    position: relative;
}

#slider>* {
    height: 100% !important;
}

@media (min-width: 768px) {
    #slider {
        height: 300px;
    }
}

@media (min-width: 992px) {
    #slider {
        height: 100%;
        max-height: 400px;
    }

    .index #slider {
        max-height: 675px;
    }

    #headerpic .slider-wrapper {
        height: 100%;
        position: relative;
    }

    .index #headerpic .slider-wrapper {
        height: auto;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 55.46%;
        min-height: 675px;
    }

    #headerpic .nivo-directionNav a {
        z-index: 61;
    }
}

#headerpic {
    margin: 0 auto;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-mask {
    display: none;
}

@media (min-width: 992px) {

    #headerpic a.nivo-prevNav,
    #headerpic a.nivo-nextNav {
        right: 100px;
        left: auto;
        top: 45%;
    }

    #headerpic .theme-default a.nivo-nextNav {
        margin-top: 50px;
    }

    #headerpic .theme-default .nivo-controlNav {
        text-align: right;
        padding-right: 100px;
        font-size: 0;
        bottom: 20px;
    }
}

/* ------------------------------------------------ bannerOverlay ----------------------------------------------- */

#bannerOverlay {
    padding-top: 20px;
    padding-bottom: 20px;
    background: #bcd233;
}

#bannerOverlay>.row>div {
    position: relative;
    z-index: 61;
}

@media (min-width: 992px) {
    #bannerOverlay {
        padding-top: 60px;
        padding-bottom: 60px;
        min-height: 400px;
        overflow: hidden;
    }
}

@media (min-width: 1200px) {
    #bannerOverlay {
        padding-top: 105px;
        padding-bottom: 110px;
        min-height: 675px;
        background: #bcd233;
    }
}

#bannerOverlay :is(h1, h2, h3, h4, h5, h6) {
    color: #191919;
}

#bannerOverlay .tabHeadline {
    margin: 0 0 30px 0;
    font-size: clamp(2rem, 4vw, 3.75rem);
    color: #191919;
    position: relative;
}

#bannerOverlay .tabHeadline::after {
    content: '';
    position: absolute;
    pointer-events: none;
    bottom: -15px;
    left: 0;
    width: 100%;
    max-width: 50px;
    height: 1px;
    background: #191919;
}

#bannerOverlay .tabContent a {
    color: #191919;
    text-decoration: underline;
}

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

/* ----------------------------------------- scroll bottom -------------------------------------- */

#scrollBottom {
    border-bottom: 1px solid #6d5046;
    padding: clamp(10px, 3vw, 44px) 0 clamp(10px, 1vw, 14px) 0;
}

#scrollBottom a {
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    border-radius: 100%;
    background-color: #bcd233;
}

#scrollBottom a:is(:hover, :focus) {
    background-color: #dde899;
}

#scrollBottom a::after {
    content: "";
    width: 0;
    height: 0;
    display: block;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: #191919 transparent transparent transparent;
    transition: border 300ms linear;
}

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

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

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

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

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

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.6875rem, 2vw, 2.1875rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.5625rem, 2vw, 1.875rem);
}

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

/* -------------------------------------------- teaser ------------------------------------------ */

#teaser {
    color: #ffffff;
    font-weight: 400;
    font-size: 1.25rem;
    padding: clamp(40px, 5vw, 80px) 0 clamp(40px, 4vw, 75px) 0;
    background-attachment: scroll, fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #7c6050;
}

#teaser .tabHeadline {
    margin: 0 0 30px 0;
    font-size: clamp(2rem, 5vw, 3.125rem);
    color: #ffffff;
    position: relative;
}

#teaser .tabHeadline::after {
    content: '';
    position: absolute;
    pointer-events: none;
    bottom: -15px;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    max-width: 50px;
    height: 1px;
    background: #ffffff;
}

#teaser a {
    text-decoration: none;
    display: inline-block;
    color: #191919;
    font-size: 0.875rem;
    font-family: "Aleo", sans-serif;
    font-weight: 700;
    padding: 6px 28px;
    border-radius: 40px;
    background: #bcd233;
}

#teaser a:is(:hover, :focus) {
    background: #6d7a1a;
    color: #ffffff;
}

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

@media (max-width: 767px) {
    #footer>.row>div+div {
        border-top: 1px solid #7c6050;
        margin-top: 20px;
        padding-top: 20px;
    }
}

@media (min-width: 768px) and (max-width:991px) {
    #footer>.row {
        row-gap: 22px;
    }
}

@media (min-width: 768px) {
    #footer>.row>div:not(:last-child) {
        padding-top: 10px;
        padding-bottom: 10px;
        border-left: 1px solid #7c6050;
    }
}

#footer {
    padding: 20px 0;
    font-size: 1rem;
}

@media (min-width: 768px) {
    #footer>.row {
        align-items: stretch;
        align-content: stretch;
    }

    #footer>.row>* {
        display: flex;
        align-items: center;
        align-content: center;
    }
}

#footer .footerContactTab .tabHeadline {
    font-size: 1.625rem;
    margin-bottom: 5px;
}

#footer .footerContactTab a {
    text-decoration: underline;
}

#innerfooter ul {
    padding: 0;
    line-height: 1.7;
}

#innerfooter a {
    color: #191919;
    text-decoration: none;
    display: inline-block;
}

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

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

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

#vernetzt {
    gap: 12px;
    text-align: left;
    font-size: 0.8125rem;
    color: #191919;
    line-height: 1.3;
    text-decoration: none;
}

#vernetzt b {
    font-weight: 400;
    color: #6d7a1a;
}

#vernetzt span span {
    display: block;
}

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

#scrollTop {
    font-size: 0;
    background-color: #bcd233;
    color: #191919;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: block !important;
    position: relative;
    margin: 0 0 0 auto;
}

#scrollTop:is(:hover, :focus) {
    background-color: #dde899;
}

#scrollTop::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    left: 9px;
    top: 12px;
    border-style: solid;
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #191919 transparent;
    transform: none;
}