/* Header */

#main-header {
    position: relative;
    background-color: var(--secondary);
}

@media only screen and (max-width: 980px) {
    #main-header {
        background-color: var(--white);
    }

    #bdigital_module-nav {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        /* Safari 6.1+ */
        flex-wrap: wrap;
        width: 100%;
        padding: 0;
        max-width: unset;
    }

    #bdigital_module-nav>div:nth-child(2) {
        -webkit-order: 1;
        order: 1;
    }

    #bdigital_module-nav>div:nth-child(3) {
        -webkit-order: 2;
        order: 2;
    }

    .et_header_style_left .logo_container {
        position: relative;
        padding-left: 0;
        text-align: center;
        -webkit-order: 3;
        order: 3;
        margin-top: 30px;
        margin-bottom: 60px
    }

    header .et_pb_column.infobox,
    .et_pb_column.et_pb_column_1_5.infobox {
        width: 100%;
        display: block;
        margin-right: 0;
        margin-bottom: 0;
    }

    header .et_pb_column.infobox .et_pb_module {
        background: var(--altgrey);
        text-align: center;
        color: var(--white);
        font-size: 8px;
        line-height: 12px;
        padding: 3px 0;
    }

    header .infobox p {
        max-width: 90%;
        margin: 0 auto;
    }

    header .infobox br {
        content: "";
    }

    header .infobox br:after {
        content: " ";
    }
}

@media only screen and (min-width: 981px) {

    #top-menu,
    .et-menu,
    nav#top-menu-nav,
    nav.et-menu-nav,
    .et_header_style_slide #top-menu-nav {
        float: unset;
        text-align: center;
        position: absolute;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    #bdigital_module-nav.et_pb_row {
        padding: 45px 0 20px 0;
    }

    .et_header_style_left .logo_container {
        position: relative;
        text-align: left;
    }

    .et_pb_svg_logo #logo {
        width: 175px;
        height: auto;
    }

    #et-secondary-menu {
        float: left;
        text-align: right;
    }

    #top-menu-nav {
        padding: 6px 0 0 0;
    }

    #top-menu li:not(:last-of-type) {
        padding-right: 50px;
    }

    .mobile_menu_bar {
        display: none;
    }
}

/* Infoboxen */

.infobox {
    font-size: 16px;
    line-height: 20px;
    text-align: left;
    letter-spacing: 0;
    color: var(--body);
}

#top-menu a {
    color: var(--white);
    font-family: var(--primary_font);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 26px;
}

.page-template-template_rechtliches #top-menu a {
    color: var(--primary);
}

@media only screen and (min-width: 981px) {
    .indented {
        padding-left: 40px !important;
    }
}

/* Mobile */

@media screen and (max-width: 980px) {
    .container {
        width: 100% !important;
    }

    .et_header_style_left .logo_container {
        padding-left: 0;
    }

    .et_header_style_centered #main-header .mobile_nav {
        background-color: transparent;
    }

    .mobile_nav.closed .select_page {
        display: none;
    }

    .et-fixed-header#main-header {
        background-color: transparent !important;
    }

    li.icon.menu-item {
        display: none;
    }

    .et_header_style_slide .et_slide_in_menu_container.et_pb_slide_menu_opened {
        right: 0 !important;
    }

    .mobile_menu_bar {
        position: absolute;
        display: inline-block;
        bottom: 15px;
        left: 15px;
        transition: all 300ms ease 0ms;
        z-index: 9999;
    }
}

.mobile_menu_bar::before {
    padding-right: 5px;
    top: 8px;
    transition: all 300ms ease 0ms;
}

.mobile_menu_bar.nav_toggle.popped::before {
    content: '\4d';
}

.et_mobile_menu {
    top: 0 !important;
    border-top: 0 !important;
    ;
    background-color: var(--primary) !important;
    padding-top: 15vh;
    height: 100vh;
}

.et_mobile_menu li a {
    text-align: center;
    border: 0;
    padding: 15px 0;
    letter-spacing: 1px;
    font-size: 20px;
    color: var(--white);
}

.mobile_nav ul#mobile_menu .current_page_item>a {
    color: var(--white);
}

.mobile_nav ul#mobile_menu li ul li a {
    font-size: .95em !important;
    margin: auto;
    color: var(--white) !important;
    padding-top: 0.5em;
}

.et_mobile_menu li a:hover {
    opacity: .85;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.mobile_nav.opened .mobile_menu_bar::before {
    color: var(--white);
}

.mobile_nav.opened .mobile_menu_bar::before {
    content: "\4d";
    z-index: 99999;
}

#top-menu li.current-menu-ancestor>a,
#top-menu li.current-menu-item>a {
    color: var(--white);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

/* NESTING MOBILE MENU SETTINGS */
#et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before {
    content: '\4d';
}

#top-menu .menu-item-has-children .menu-item-has-children>a:first-child::after,
#et-secondary-nav .menu-item-has-children .menu-item-has-children>a:first-child::after {
    content: '5';
}

#main-header #mobile_menu.et_mobile_menu .menu-item-has-children {
    position: relative;
}

#main-header #mobile_menu.et_mobile_menu li div.sub-menu-toggle:first-of-type {
    display: none;
}

#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.03);
    z-index: 1;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    top: 6px;
    right: 10px;
    cursor: pointer;
    text-align: center;
}

#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped {
    background-color: rgba(0, 0, 0, 0.1);
}

#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle::before {
    font-family: "ETmodules" !important;
    font-weight: normal;
    font-style: normal;
    font-variant: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 36px;
    font-size: 24px;
    text-transform: none;
    speak: none;
    content: '\33';
    color: var(--white);
}

#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped::before {
    content: '\32';
}

#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle~ul.sub-menu {
    display: none !important;
    padding-left: 0;
}

#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped~ul.sub-menu {
    display: block !important;
    padding: 16px 0;
}

#main-header #mobile_menu.et_mobile_menu li li {
    padding-left: 0;
}

#main-header #mobile_menu.et_mobile_menu li a,
#main-header #mobile_menu.et_mobile_menu li li a,
#main-header #mobile_menu.et_mobile_menu li li li a {
    padding-left: 20px;
    padding-right: 20px;
}

#main-header #mobile_menu.et_mobile_menu .menu-item-has-children .sub-menu-toggle+a {
    padding-right: 20px;
}

#main-header #mobile_menu.et_mobile_menu .menu-item-has-children>a {
    background-color: transparent;
    font-weight: inherit;
}

#main-header #mobile_menu.et_mobile_menu li.current-menu-item>a {
    font-weight: bolder;
}

/* Social Mobile */

@media only screen and (max-width: 980px) {
    #mobile_menu {
        text-align: center;
    }

    li.social {
        display: inline-block;
        margin-top: 80px;
    }

    li.social:first-of-type {
        padding-left: 5%;
    }

    li.social img {
        height: 20px;
        width: auto;
        filter: invert(98%) sepia(100%) saturate(0%) hue-rotate(324deg) brightness(108%) contrast(101%);
    }
}

/* Pageheader */

#pageheader,
#sub_pageheader {
    height: 506px;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 0;
    margin-bottom: 54px;
}

#sub_pageheader {
    height: 506px;
}

#pageheader:not(.slider)::before,
#pageheader.slider .et_pb_slide::before,
#sub_pageheader::before {
    content: '';
    background: var(--gradient);
    opacity: .7;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#sub_pageheader::before {
    opacity: .4;
}

#pageheader .et_pb_row,
#sub_pageheader .et_pb_row {
    width: 100%;
    height: 100%;
    padding: 0;
    max-width: unset;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#pageheader .et_pb_row .et_pb_column,
#pageheader.slider .et_pb_slider,
#pageheader .et_pb_slides,
#pageheader .et_pb_slide {
    height: 100%;
}

#pageheader.slider .et_pb_slides .et_pb_container {
    max-width: 1380px;
    margin: 0 auto;
}

#pageheader.slider .et_pb_slide_description {
    padding: 0;
}

#pageheader .et_pb_slide_description .et_pb_slide_title,
#pageheader.slider .et_pb_button_wrapper {
    text-align: center;
}

#pageheader .et_pb_text,
#pageheader h1,
#pageheader .et_pb_slide_description .et_pb_slide_title,
#pageheader .et_pb_slide_description h2,
#sub_pageheader .et_pb_text,
#sub_pageheader h1 {
    color: var(--white);
    -moz-hyphens: none;
    hyphens: none;
    margin: 0 auto;
}

#sub_pageheader .et_pb_text,
#sub_pageheader .et_pb_button_module_wrapper {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

#sub_pageheader .et_pb_text.leftaligned {
    margin-left: 0;
    margin-right: unset;
    text-align: left;
}

#sub_pageheader .bildunterschrift {
    position: absolute;
    left: 0;
    bottom: -90px;
    max-width: unset;
    font-size: 14px;
}

@media only screen and (min-width: 768px) and (max-width: 980px) {

    #pageheader,
    #sub_pageheader {
        height: 600px;
    }

    #sub_pageheader {
        height: 460px;
    }
}

@media only screen and (max-width: 767px) {

    #pageheader,
    #sub_pageheader {
        height: 400px;
    }

    #sub_pageheader {
        height: 300px;
    }

    #pageheader.slider .et_pb_slides .et_pb_container {
        width: 85%;
    }
}

/* Slider */

.et-pb-arrow-next,
.et-pb-arrow-prev {
    font-size: 72px;
    margin-top: unset;
    top: 50%;
    transform: translateY(-50%);
}

.et-pb-controllers a {
    width: 14px;
    height: 14px;
    background-color: var(--white);
    opacity: 1;
    margin-right: 7px;
}

.et-pb-controllers .et-pb-active-control {
    background-color: var(--primary);
}



/* Knuspr */

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 1fr;
    align-items: center;
    gap: 32px;
    padding: 36px 32px;
    max-width: 1800px;
    margin: 0 auto;
    background: #f5f0ea;
    box-sizing: border-box;
}

.info-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: 1;
    grid-column: 1;
}

.info-logo img {
    width: 220px;
    max-width: 90vw;
    height: auto;
}

.info-knuspr {
    background: linear-gradient(135deg, #176737 85%, #1c8142 100%);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 1em;
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    transition: font-size 0.2s;
}

.info-knuspr strong {
    font-size: 1.21em;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.info-zeiten,
.info-hofladen {
    color: #333;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    min-width: 160px;
    max-width: 340px;
    transition: font-size 0.2s;
}

.info-zeiten strong,
.info-hofladen strong {
    font-size: 1.21em;
    margin-bottom: 3px;
    font-weight: 700;
    display: block;
    letter-spacing: 0.01em;
}

.info-zeiten {
    grid-row: 1;
    grid-column: 3;
}

.info-hofladen {
    grid-row: 1;
    grid-column: 4;
}


@media (max-width: 980px) {
    .info-grid {
        display: block;
        padding: 1em 1em 4em 1em;
    }

    .info-mobile-row {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 12px;
        align-items: center;
    }

    .info-mobile-column {
        flex: 1 1 60%;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .info-knuspr {
        flex: 1 1 40%;
        min-width: 0;
        max-width: none;
        font-size: .9rem;
        padding: 1em;
        border-radius: 13px;
        margin-bottom: 0;
        margin-top: 0;
        align-items: center;
        justify-content: center;
        text-align: center;
        grid-row: auto;
        grid-column: auto;
    }

    .info-logo {
        width: 100%;
        justify-content: center;
        margin-top: 18px;
        margin-bottom: 0;
        padding: 0;
        grid-row: auto;
        grid-column: auto;
    }

    .info-logo img {
        width: 300px;
    }

    .info-zeiten,
    .info-hofladen {
        width: 100%;
        min-width: 0;
        max-width: none;
        text-align: left;
        margin: 0 0 6px 0;
        font-size: .9rem;
    }

    .info-zeiten strong,
    .info-hofladen strong {
        font-size: 1.06em;
    }
}


@media (max-width: 768px) {
    .info-knuspr {
        font-size: 0.82rem;
        padding: 10px 2px;
    }

    .info-zeiten,
    .info-hofladen {
        font-size: 0.82rem;
    }

    .info-logo img {
        width: 180px;
    }
}