@import url('https://fonts.verwaltungsportal.de/css/?family=Poppins:300,400,600,300i,400i,600i%7CMerriweather:700,700i');

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

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

a {
    color: #bc0003;
}

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

b,
strong {
    font-weight: 600;
}

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

/* ----------------------------------- dekor, header + footer ----------------------------------- */

@media (min-width: 992px) {

    footer {
        background: url('../img/illu-foter.png') bottom right no-repeat, linear-gradient(to right, transparent, transparent calc(50% + 402px), #f8ebcc calc(50% + 402px));
    }

    header {
        background: url('../img/bauerngemuesegruen-und-gemuese-vektorskizze.png') top right no-repeat, linear-gradient(to right, transparent, transparent calc(50% + 480px), #f8ebcc calc(50% + 480px));
    }
}

/* --------------------------------------------- contact ---------------------------------------- */

#topbar {
    padding: 10px 0 10px 0;
}

.contact {
    font-size: 0.875rem;
    color: #282828;
    border-bottom: 1px solid rgba(0, 0, 0, 0.30);
    padding: 10px 0 10px 0;
}

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

    .contact p+p {
        margin-left: 7px;
    }
}

.contact .template-page {
    opacity: 0.8;
}

.contact a {
    color: #282828;
    font-style: italic;
    text-decoration: underline;
}

.loginsBox {
    display: grid;
    gap: 15px;
}

@media (min-width: 768px) {
    .loginsBox {
        display: flex;
        align-items: center;
        align-content: center;
    }
}

@media (min-width: 992px) {
    .loginsBox {
        justify-content: space-between;
    }
}

.login a {
    background-color: #477c3c;
    color: #fff;
    padding: 8px 36px;
    font-size: 1rem;
    border-radius: 5px;
}

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

@media (max-width: 991px) {
    #logo {
        margin-bottom: 15px;
        padding: 30px 0;
    }

    #logo img {
        max-width: 125px;
        width: 100%;
    }
}

@media (min-width: 992px) {
    nav.horizontally>.row>* {
        position: static;
    }

    #logo {
        margin-top: -55px;
    }

    .is-sticky #logo {
        margin-top: 0px;
    }

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

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

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        position: static !important;
        background-color: #477c3c;
    }

    #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: #477c3c;
        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 {
        border-left: 10px solid #477c3c;
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #fff;
        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: 9px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        position: relative;
        z-index: 101;
        border-bottom: 1px solid transparent;
        transition: border 200ms linear;
    }

    .is-sticky nav.horizontally {
        padding: 4px 0;
        border-color: #477c3c;
        background-color: #fff;
    }

    nav.horizontally .navbar-nav {
        padding: 30px 0 30px 0;
        display: flex;
        justify-content: space-between;
        transition: padding 200ms linear;
    }

    .is-sticky nav.horizontally .navbar-nav {
        padding: 17px 0;
    }

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

    nav.horizontally .navbar-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        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;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #282828;
    font-weight: 400;
    text-align: left;
    padding: 14px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.horizontally li[class*="toplevel"] {
        border-bottom: 1px solid rgba(46, 60, 72, 0.2);
    }

    nav.horizontally li[class*="toplevel"]+li {
        border-top: 1px solid rgba(0, 0, 0, 0.2);
    }

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

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

/* 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) {
    background-color: #477c3c;
    color: #fff;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #ffffff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

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

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

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

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

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

    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: #282828;
    font-weight: 300;
    text-align: left;
    padding: 10px 20px;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding: 10px 35px 10px 15px
    }
}

@media (min-width: 992px) {
    nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])+li:not(:nth-child(2)) {
        border-top: 1px solid rgba(0, 0, 0, 0.15);
    }
}

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

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

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

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

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

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

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

#headerpic {
    padding: 0 0 clamp(30px, 4vw, 75px) 0;
    overflow: hidden;
    position: relative;
}

#headerpic>.slider-wrapper {
    max-width: 1580px;
    margin: 0 auto;
}

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

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


@media (min-width: 992px) {
    #banneroverlay {
        pointer-events: none;
        position: absolute;
        bottom: 105px;
        z-index: 55;
        width: 100%;
    }

    #banneroverlay>.row {
        pointer-events: all;
    }
}

.slogan {
    color: #282828;
    font-size: clamp(1.375rem, 3vw, 2.0625rem);
    font-family: "Merriweather", serif;
}

.slogan a {
    color: #477c3c;
}

@media (min-width: 992px) {
    .slogan {
        color: #fff;
        margin-top: clamp(100px, 12vw, 170px);
    }

    .slogan a {
        color: #fff;
    }
}


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

#scrollBottom a {
    position: relative;
    font-size: 0;
    display: block;
    width: 40px;
    height: 40px;
    margin: 50px auto 10px auto;
    text-align: center;
    background-color: #477c3c;
    pointer-events: auto;
    -webkit-transition: all .2s ease-in;
    transition: all .2s ease-in;
}

@media (min-width: 1200px) {
    #scrollBottom a {
        margin-top: 70px;
    }
}

#scrollBottom a:hover,
#scrollBottom a:focus {
    background-color: #376a2c;
}



#scrollBottom a::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 21px;
    height: 19px;
    background: url('../img/down-arrow.png') no-repeat;
    -webkit-transition: border 300ms linear;
    -moz-transition: border 300ms linear;
    -ms-transition: border 300ms linear;
    -o-transition: border 300ms linear;
    transition: border 300ms linear;
}


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

body #content:not(:has(#welcomepage-wrapper)) {
    text-align: left;
    padding-top: clamp(30px, 4vw, 60px);
    padding-bottom: clamp(40px, 4vw, 60px);
}

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

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

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

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

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: clamp(1.5rem, 2.5vw, 1.625rem);
}

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

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

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

footer {
    padding: 30px 0;
}

@media (max-width: 991px) {
    footer {
        border-top: 5px solid #477c3c;
    }
}

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

#innerfooter ul {
    padding: 0;
}

#innerfooter a {
    color: #282828;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
}

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

    #innerfooter li+li::before {
        content: "•";
        margin: 0 15px;
        color: #282828;
    }
}

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

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

#vernetzt {
    gap: 30px;
    text-align: right;
    font-size: 0.9375rem;
    color: #282828;
    line-height: 1.3;
    margin: 0 auto;
    font-weight: 400;
    text-decoration: none;
}

#vernetzt span span {
    display: block;
}