@import url("https://fonts.verwaltungsportal.de/css/?family=Work+Sans:400,500,600,400i,500i,600i&7COswald:700,700i");


/*Fonts für Dekor*/
@import url("https://fonts.verwaltungsportal.de/css/?family=Poppins:900");

:root {
    --default-font: #404040;
    --darker-font: #262626;
    --main-color: #537529;
}

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #eef5e6;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: var(--main-color) #ffffff;
    scrollbar-width: thin;
}

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

a {
    color: var(--main-color);
}

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

main a {
    font-weight: 500;
    text-decoration: underline;
}

b,
strong {
    font-weight: 600;
}

#overflow {
    overflow: hidden;
}
/* #region ----------------------------------- topbar ------------------------------------------- */

#topbar {
    padding: 9px 0;
    font-size: 0.875rem;
    background: var(--main-color);
}

@media (max-width: 991px) {
    #topbar>.row>* {
        flex-wrap: wrap;
        justify-content: start;
    }

    #topbar .optionsbar {
        justify-content: start;
        margin-left: 0 !important;
    }

    #contrast_style {
        padding: 0 !important;
    }
}

#topbar>.row>* {
    gap: 9px 30px;
}

#topbar,
#topbar * {
    color: #ffffff;
}

#topbar .contact-button a {
    font-weight: 700;
    display: inline-block;
    background: #fff center left 15px no-repeat;
    color: var(--darker-font);
    padding: 10px 15px 10px 45px;
    text-decoration: none;
    text-transform: uppercase;
}

#topbar .contact-button a:is(:hover, :focus) {
    background-color: #eef5e6;
}

#topbar .contact-button.contact-1 a {
    background-image: url("../img/icon-phone.png");
}

#topbar .contact-button.contact-2 a {
    background-image: url("../img/icon-zeit.png");
}

#topbar .optionsbar {
    margin-left: auto;
}

#topbar .optionsbar span {
    margin-right: 8px;
}

/* -------------------------------------------- contrast_style -------------------------------------------- */

#contrast_style {
    padding-left: 25px;
    padding-right: 17px;
}

#contrast_style button {
    display: inline-block;
    color: #000000;
    position: relative;
    z-index: 1;
    padding: 0;
    font-size: 0;
    width: 21px;
    height: 21px;
    font-weight: 400;
    border-radius: 50%;
    text-align: center;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.6);
    transition: background 300ms linear;
}

#contrast_style *+* {
    margin-left: 10px;
}

#contrast_style button:hover,
#contrast_style button:focus {
    background-color: rgba(255, 255, 255, 0.8);
}

/* -------------------------------------------- styler -------------------------------------------- */

@media (min-width: 992px) {
    #style {
        padding-left: 15px;
        padding-right: 5px;
        border-left: 1px solid rgba(255, 255, 255, 0.50);
    }

    #style button {
        font-size: 20px;
        background: transparent;
        padding: 0;
        border: none;
        color: #ffffff;
        display: inline-block;
        font-weight: 400;
        text-align: center;
        position: relative;
        width: 25px;
        height: 20px;
        line-height: 1;
        margin: 0 3px;
        -webkit-transition: color 150ms linear;
        -moz-transition: color 150ms linear;
        -ms-transition: color 150ms linear;
        -o-transition: color 150ms linear;
        transition: color 150ms linear;
    }

    #style button+button::before {
        content: '';
        position: absolute;
        pointer-events: none;
        display: inline-block;
        left: -3px;
        top: 0;
        bottom: 0;
        width: 1px;
        height: 100%;
        background: #ffffff;
    }

    #style button:hover {
        color: #ccdc65;
        text-decoration: underline;
    }

    #style button:focus-visible {
        outline: 2px auto
    }
}


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

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

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

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

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

/* #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: var(--main-color);
        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: 75px;
        right: 15px;
        z-index: 101;
    }

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

    .dropdown-toggle-button-wrapper {
        top: 7px;
    }

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

/* menu desktop */

@media (min-width: 992px) {
    .sticky-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }

    nav.horizontally {
        background: rgba(255, 255, 255, 0.94);
        padding: 12px 0;
        box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.1);
        transition: padding 200ms linear;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

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

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: var(--darker-font);
    font-weight: 700;
    text-align: left;
    padding: 12px 15px;
    position: relative;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: none;
    font-family: "Oswald", sans-serif;
}

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

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

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 10px 0;
        text-align: center;
    }

    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 15px;
    }
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"]::before {
        position: absolute;
        display: block;
        content: '';
        width: 97px;
        height: 29px;
        bottom: -53px;
        background: url(../img/ochse-nav.png);
        left: 0;
        margin: auto;
        opacity: 0;
        z-index: 2;
        transition: transform 1500ms ease, opacity 300ms linear;
    }

    .navbar-default .navbar-nav>li.dropdownpr>a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: calc(50% - 3px);
        display: block;
        width: 6px;
        height: 6px;
        border-right: 1px solid #595959;
        border-bottom: 1px solid #595959;
        transform: rotate(45deg);
    }
}

/* 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: var(--main-color);
    background-color: transparent;
}

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::before,
nav.horizontally li[class*="toplevel"]>a::before:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open>a::before,
nav.horizontally li[class*="toplevel"].open>a::before:is(:hover, :focus) {
    opacity: 1;
    transform: translateX(50%);
}

/* secondlevel + thirdlevel dropdown-box */

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

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

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

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

    .is-sticky nav.horizontally [class*="toplevel"]>ul {
        margin-top: 38px;
    }

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

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

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

    nav.horizontally [class*="secondlevel"]>ul::before {
        width: 20px;
        top: 0;
        bottom: 0;
        left: -20px;
    }
}

/* secondlevel + thirdlevel */

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

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

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

/* 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: var(--main-color);
    color: #ffffff;
}

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

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

#slider {
    height: clamp(300px, 55vw, 550px);
    position: relative;
}

@media (min-width: 992px) {
    body.index #slider {
        height: clamp(550px, 70vw, 865px);
    }

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

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

    body:not(.index) #headerpic .nivo-controlNav {
        bottom: 26px;
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .index #headerpic a.nivo-nextNav {
        left: 65px;
        right: unset;
        top: 51%;
    }
}

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

.slider-wrapper {
    overflow: hidden;
}

.slider-wrapper,
.nivo-main-image,
#slider>a>div {
    height: 100% !important;
}

#headerpic .nivo-controlNav {
    bottom: 8%;
    left: 27%;
    text-align: left;
}

.slider-mask {
    display: block;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="%23fff" width="1920px" height="260px"><path d="M3.000,-0.000 C3.000,-0.000 475.764,206.475 543.764,240.475 C600.431,265.475 600.133,258.267 615.1000,256.1000 C626.467,254.533 1976.1000,2.1000 1976.1000,2.1000 L1976.1000,259.1000 L0.000,259.1000 L3.000,-0.000 Z"/></svg>') no-repeat bottom -1px right / 102% auto;
}

/* overlay */

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

@media (min-width: 992px) {
    #overlay {
        position: absolute;
        pointer-events: none;
        z-index: 12;
        left: 0;
        right: 0;
        bottom: 20px;
    }
}

#overlay .tab {
    font-size: 1rem;
    text-transform: uppercase;
    pointer-events: auto;
    background: #ffffff;
    padding: clamp(30px, 3vw, 40px) 30px;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.1);
}

#overlay .tab a {
    text-transform: none;
}

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

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

.tab_link_mehr a,
.buttonStyle a:not(.has-image):not([rel]) {
    font-weight: 700;
    display: inline-block;
    padding: 7px 18px 8px 18px;
    color: var(--darker-font);
    background: #c7deac;
    font-size: 1rem;
    text-decoration: none;
}

.tab_link_mehr a:is(:hover, :focus),
.buttonStyle a:not(.has-image):not([rel]):is(:hover, :focus) {
    color: #ffffff;
    background: var(--main-color);
}

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

#content {
    text-align: left;
    padding-top: clamp(40px, 4vw, 50px);
    padding-bottom: clamp(40px, 8vw, 90px);
}

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

@media (min-width: 992px) {
    main {
        position: relative;
    }

    main::after {
        content: "";
        display: block;
        position: absolute;
        z-index: 6;
        right: 0;
        top: -60px;
        background: url("../img/pfoten.png") center no-repeat;
        width: 330px;
        height: 195px;
    }
}

/* ----------------------------------------------- @10nw news -------------------------------------------- */

#nw10 .tab {
    margin-top: 32px;
    font-size: 0.9375rem;
    position: relative;
    z-index: 7;
    padding: 45px 20px 20px 20px;
    background: #ffffff;
    border-top: 4px solid #c7deac;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}

#nw10 .tab::before {
    content: "";
    position: absolute;
    display: block;
    top: -32px;
    left: 0;
    right: 0;
    margin: auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: url("../img/icon-aktuelles.png") center no-repeat, #ffffff;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15);
}

#nw10 .tabSpecial {
    margin-bottom: 20px;
}

:is(#nw10, #contact) .tabHeadline {
    font-size: 1.4375rem;
    font-weight: 700;
    color: #537529;
    text-transform: uppercase;
}

#nw10 .tabHeadline {
    margin-bottom: 0;
}

#nw10 .tab .tab_link_entries {
    display: grid;
    gap: 20px;
}

#nw10 .tab .tab_link_title :is(a, h1, h2, h3) {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

#nw10 .tab .tab_link_mandat a {
    color: inherit;
    text-decoration: none;
}

#nw10 .tab .tab_link_mehr {
    margin-top: 20px;
}

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

/* #region -------------------------------------- contact ------------------------------------------ */

#contact {
    padding: clamp(40px, 8vw, 110px) 0 clamp(40px, 6vw, 65px) 0;
    position: relative;
    z-index: 12;
    background: center, bottom right no-repeat;
    margin-bottom: 10px;
}

@media (min-width: 1200px) {
    #contact::before {
        content: "";
        display: block;
        position: absolute;
        z-index: 1;
        bottom: -20px;
        right: 0;
        background: url("../img/ochse-deko.png") center no-repeat;
        width: 592px;
        height: 191px;
    }
}

#contact::after {
    content: "";
    pointer-events: none;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="%23fff" width="1920px" height="260px"><path d="M1973.1000,-0.000 C1973.1000,-0.000 1501.235,206.475 1433.235,240.475 C1376.569,265.475 1376.867,258.267 1360.1000,256.1000 C1350.533,254.533 0.000,2.1000 0.000,2.1000 L0.000,259.1000 L1976.1000,259.1000 L1973.1000,-0.000 Z"/></svg>') no-repeat bottom -1px center / 100% auto;
    width: 100%;
    height: 257px;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    z-index: -1;
}

#contact>.row {
    z-index: 2;
}

#contact .tab {
    font-size: 1rem;
    background: #fff;
    padding: 30px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15);
    position: relative;
}

@media (min-width: 1200px) {
    #contact .tab::after {
        content: "";
        display: block;
        position: absolute;
        top: -185px;
        right: calc(50% + 420px);
        background: url("../img/hufe.png") center no-repeat;
        width: 190px;
        height: 406px;
    }
}

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

#contact .tab a {
    font-weight: 500;
}

.iframeTab .template-page :is(.row, .row>*) {
    position: static !important;
}

.iframeTab :is(.iframe-wrapper-manual-enabling, iframe) {
    width: 100% !important;
    min-width: 100% !important;
}

/* #endregion ----------------------------------- contact ------------------------------------------ */

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

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

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

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

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

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4,
#news .tab_link_entry .tab_link_title {
    font-size: 1.375rem;
}

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

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

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

#footerNav {
    background: var(--main-color);
    padding: 20px 0;
}

@media (max-width: 767px) {
    #footerNav>.row>*+* {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

#innerfooter ul {
    padding: 0;
    font-size: 1rem;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter li+li {
    margin-left: 20px;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
}

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

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

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

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

#vernetzt span span {
    display: block;
}


/* #region ----------------------------------- contrastSetting ------------------------------------------- */


#logo.contrast_light_font img {
    background: #fff !important;
}

.contact-button.contrast_light_font a {
    color: #000 !important;
}