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

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

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

a {
    color: #4c6f39;
}

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

b,
strong {
    font-weight: 700;
}

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

header {
    background: #ffffff;
    color: #191919;
}

#topbar {
    font-size: 1rem;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.8);
}

@media (min-width: 992px) {
    #header-position {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
    }

    #topbar {
        margin-top: 25px;
    }
}

@media (min-width: 1200px) {
    #topbar {
        max-width: 1170px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: -1px;
    }
}

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

#logo {
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-block;
    color: #191919;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

#logo :is(b, strong) {
    display: block;
    color: #4c6f39;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

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

.telIcon,
.mailIcon {
    padding-left: 30px;
    background-position: center left;
    background-repeat: no-repeat;
}

.telIcon {
    background-image: url('../img/telefon-icon.png');
}

.mailIcon {
    margin-top: 12px;
    background-image: url('../img/mail-icon.png');
}

:is(.telIcon, .mailIcon) a {
    text-decoration: underline;
}

@media (max-width: 991px) {

    .telIcon,
    .mailIcon {
        background-position: center left 10px;
    }
}

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

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

/* menu desktop */

@media (min-width: 992px) {
    nav.horizontally {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        right: 0;
        top: 0;
        max-width: 1930px;
        width: 100% !important;
        z-index: 101;
        transition: background 150ms linear, border 150ms linear;
        border-top: 1px solid transparent;
        border-bottom: 1px solid transparent;
    }

    .is-sticky nav.horizontally {
        background: #f1f7ed;
        border-color: #896815;
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(255, 255, 255, 0.8);
        border-top: 1px solid rgba(137, 104, 21, 0.5);
        border-bottom: 1px solid rgba(137, 104, 21, 0.5);
    }

    .is-sticky nav.horizontally .navbar-nav {
        border: none;
        background: transparent;
    }

    nav.horizontally .navbar-nav li[class*="toplevel"]>ul {
        display: flex !important;
        flex-wrap: wrap;
        pointer-events: none;
        position: absolute;
        opacity: 0;
        top: 150%;
        left: 15px;
        right: 15px;
        z-index: 1000;
        padding: 30px;
        transform-origin: top center;
        transition: top 200ms linear, opacity 200ms linear;
    }

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

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

    nav.horizontally li[class*="secondlevel"] {
        margin-bottom: 15px;
        width: 33.33%;
        padding: 0 15px;
    }

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

/* toplevel */

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

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

@media (min-width: 1200px) {
    .navbar-default .navbar-nav>li>a {
        font-size: 1.25rem;
        text-align: center;
        z-index: 1;
    }
}

nav.horizontally a[class*="toplevel"]::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 66px;
    height: 66px;
    background: url('../img/hover-icon-gruen.png') center no-repeat;
    transition: opacity 300ms linear;
    opacity: 0;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="toplevel"]::before {
        width: 30px;
        height: 30px;
        background-size: contain;
        right: unset;
    }
}

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

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 {
    opacity: 1;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"]>ul {
    background: #ffffff;
}

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"]>ul::after {
        content: "";
        position: absolute;
        display: block;
        height: 2px;
        left: 0;
        right: 0;
        top: -2px;
    }

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

/* secondlevel + thirdlevel */

nav.horizontally a[class*="secondlevel"] {
    color: #191919;
    font-size: 1.125rem;
    font-weight: 700;
    border-bottom: 1px solid #cec1a0;
}

nav.horizontally a[class*="thirdlevel"] {
    color: #191919;
    font-size: 1rem;
    font-weight: 400;
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    background-color: transparent;
    text-align: left;
    position: relative;
    line-height: 1.2;
    text-decoration: none;
    padding: 10px 35px;
}

@media (min-width: 992px) {
    nav.horizontally a[class*="secondlevel"] {
        padding: 5px 0 12px 0;
    }

    nav.horizontally a[class*="thirdlevel"] {
        padding: 6px 15px 6px 25px;
    }
}

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"])::before {
    content: '';
    position: absolute;
    pointer-events: none;
    transition: opacity 300ms linear;
    opacity: 0;
}

nav.horizontally a[class*="secondlevel"]::before {
    top: 0;
    bottom: 0;
    margin: auto;
    width: 30px;
    height: 30px;
    background: url('../img/subnav-hover-icon-gross.png') center no-repeat;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="secondlevel"]::before {
        right: unset;
        left: 0;
    }
}

@media (min-width: 992px) {
    nav.horizontally a[class*="secondlevel"]::before {
        right: 0;
    }
}

nav.horizontally a[class*="thirdlevel"]::before {
    top: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    width: 16px;
    height: 16px;
    background: url('../img/subnav-hover-icon-klein.png') center no-repeat;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="thirdlevel"]::before {
        left: 15px;
    }
}

/* 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) {
    color: #896815;
}

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus)::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a::before,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus)::before {
    opacity: 1;
}

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

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

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

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

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

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

.slider-wrapper {
    height: 100% !important;
}

.slider-mask {
    display: none;
}

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

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

/* #region ---------------------------------- tab-section --------------------------------------- */

#tabs {
    padding-top: clamp(30px, 5vw, 80px);
    padding-bottom: clamp(30px, 4vw, 70px);
    background: #f3f0e7;
    position: relative;
}

@media (min-width: 1200px) {
    #tabs>.row::before {
        content: '';
        position: absolute;
        pointer-events: none;
        top: -235px;
        left: -305px;
        width: 169px;
        height: 183px;
        background: url('../img/dekoratives-huhn.png') center no-repeat;
    }
}

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

#tabs .tab {
    font-size: 1.0625rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    min-height: 100%;
    position: relative;
    z-index: 0;
    bottom: 0;
    padding: 20px;
    border: 2px solid #4c6f39;
    background: #ffffff;
    backface-visibility: hidden;
    transition: transform 300ms linear, bottom 300ms linear, box-shadow 300ms linear;
}

@media (min-width: 992px) {
    #tabs .tab {
        padding: 30px 60px;
    }

    #tabs .tab:is(:hover, :focus-within) {
        transform: scale(1.2);
        z-index: 1;
        bottom: 0;
        box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
        -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
        -moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
    }
}

#tabs .tabHeadline {
    padding-top: 85px;
    position: relative;
    font-size: clamp(1.75rem, 2vw, 1.875rem);
    margin-bottom: 5px;
    hyphens: auto;
}

#tabs .tabHeadline::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
}

#tabs .tab1 .tabHeadline::before {
    width: 50px;
    height: 52px;
    background: url('../img/icon-termin.png') center no-repeat;
}

#tabs .tab2 .tabHeadline::before {
    width: 66px;
    height: 60px;
    background: url('../img/icon-kontakt.png') center no-repeat;
}

#tabs .tab3 .tabHeadline::before {
    width: 52px;
    height: 39px;
    background: url('../img/icon-mitglied-werden.png') center no-repeat;
}

#tabs .tab a[href^="mailto:"] {
    text-decoration: underline;
}

#tabs .tab a:not([href^="mailto:"]) {
    margin-top: 15px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding: 9px 18px;
    font-weight: 700;
    font-size: 0.875rem;
    color: #ffffff;
    background: #4c6f39;
}

#tabs .tab a:not([href^="mailto:"]):is(:hover, :focus) {
    background: #3b572c;
}

/* #endregion ------------------------------- tab-section --------------------------------------- */

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

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

h1,
.h1,
.legacy_h1 {
    font-size: 1.875rem;
}

h2,
.h2,
.legacy_h2 {
    font-size: 1.75rem;
}

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

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

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

#footer {
    color: #ffffff;
    font-size: 0.9375rem;
    padding: 30px 0;
    background-color: #4c6f39;
    position: relative;
}

@media (min-width: 1200px) {
    #footer>.row::after {
        content: '';
        position: absolute;
        pointer-events: none;
        bottom: -14px;
        right: -345px;
        width: 277px;
        height: 249px;
        background: url('../img/dekorativer-hahn.png') center no-repeat;
    }
}

@media (min-width: 992px) {
    #footer {
        padding: 14px 0;
    }
}

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

#innerfooter ul {
    padding: 0;
}

#innerfooter li {
    display: inline-block;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    padding: 10px 0;
}

#innerfooter a::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 30px;
    height: 30px;
    background: url('../img/icon-footer-hover.png') center no-repeat;
    transition: opacity 300ms linear;
    opacity: 0;
}

#innerfooter a:is(:hover, :focus)::before {
    opacity: 1;
}

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

#innerfooter li+li {
    margin-left: clamp(15px, 2vw, 65px);
}

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

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

#vernetzt span span {
    display: block;
}

#vernetzt b {
    color: #ffffff;
}