/*================================================
    Allgemeines Layout
================================================*/

/* Basics */

#main-content,
.page.et_pb_pagebuilder_layout #main-content {
    background-color: var(--secondary);
}

.et_pb_section.boxed,
.et_pb_section.transparent {
    background-color: unset;
}

.et_pb_section.boxed {
    padding: 13px 0;
}

.et_pb_section.boxed.lot {
    padding-bottom: 54px;
}

.et_pb_section.boxed .et_pb_row {
    box-shadow: var(--box-shadow);
    padding: 0;
}

a.et_pb_button.print::before,
a.et_pb_button.envelope::before,
a.et_pb_button.phone::before {
    content: "";
    height: 18px;
    width: 20px;
    background-size: 20px 18px;
    background-image: url(../img/printer.svg);
    background-repeat: no-repeat;
    opacity: initial;
    display: inline-block;
    transform: translateY(5px);
}

a.et_pb_button.envelope::before {
    background-image: url(../img/envelope.svg);
}

a.et_pb_button.phone::before {
    background-image: url(../img/phone.svg);
}

a.et_pb_button.print,
a.et_pb_button.print:hover,
a.et_pb_button.envelope,
a.et_pb_button.envelope:hover,
a.et_pb_button.phone,
a.et_pb_button.phone:hover {
    padding-left: 70px;
}

@media only screen and (min-width: 981px) {
    .et_pb_section.boxed .et_pb_column_3_5 {
        margin-right: 0;
        width: calc(100% * 3 / 5);
    }

    .et_pb_section.boxed .et_pb_column_2_5 {
        margin-right: 0;
        width: calc(100% * 2 / 5);
        background-color: var(--white);
        padding: 40px;
    }
}

@media only screen and (max-width: 980px) {
    .et_pb_section.boxed .et_pb_row {
        max-width: unset;
        width: 100%;
        background-color: var(--white);
    }

    .et_pb_section.boxed .et_pb_row .et_pb_text {
        max-width: 80%;
        width: 80%;
        margin: 0 auto;
    }

    .et_pb_section.boxed .et_pb_row .et_pb_column_3_5 {
        height: 35vh;
    }

    .et_pb_section.boxed .et_pb_column_2_5 {
        padding: 30px 0;
    }

    .et_pb_section.boxed .et_pb_column_2_5.et-last-child {
        padding-top: 0;
    }

    .et_pb_section.boxed .et_pb_column_2_5 .et_pb_button_module_wrapper {
        margin-top: 20px;
    }
}

/* different background */

.boxed.whitebg .et_pb_row {
    background-color: var(--white);
}

/* Centered Text */

.et_pb_section.text_centered .et_pb_text,
.et_pb_section.text_centered .et_pb_button_module_wrapper {
    text-align: center;
}

/* Grid Settings */

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

    #sortiment .et_pb_row:last-of-type .et_pb_column,
    #leckereien .et_pb_row:nth-child(2) .et_pb_column,
    #ueber_uns .et_pb_column,
    .et_pb_row.flexwrap .et_pb_column {
        display: flex;
        flex-wrap: wrap;
    }

    #sortiment .et_pb_row:last-of-type .et_pb_column {
        justify-content: center;
    }

    #sortiment .et_pb_module.et_pb_blurb,
    #leckereien .et_pb_module.et_pb_blurb,
    #ueber_uns .et_pb_module.et_pb_blurb {
        width: calc(100% / 3 - (40px / 3));
        margin-right: var(--gutter);
    }

    #sortiment .et_pb_module.et_pb_blurb:nth-child(3n+3),
    #sortiment .et_pb_row:last-of-type .et_pb_column .et_pb_module.et_pb_blurb:last-of-type,
    #leckereien .et_pb_module.et_pb_blurb:nth-child(3n+3),
    #leckereien .et_pb_row:last-of-type .et_pb_column .et_pb_module.et_pb_blurb:last-of-type,
    #ueber_uns .et_pb_module.et_pb_blurb:nth-child(3n+3),
    #ueber_uns .et_pb_row:last-of-type .et_pb_column .et_pb_module.et_pb_blurb:last-of-type {
        margin-right: 0;
    }
}

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

    #sortiment .et_pb_row:last-of-type .et_pb_column,
    #leckereien .et_pb_row:nth-child(2) .et_pb_column,
    #ueber_uns .et_pb_column,
    .et_pb_row.flexwrap .et_pb_column {
        display: flex;
        flex-wrap: wrap;
    }

    #sortiment .et_pb_module.et_pb_blurb,
    #leckereien .et_pb_module.et_pb_blurb,
    #ueber_uns .et_pb_module.et_pb_blurb {
        width: calc(100% / 2 - (40px / 2));
        margin-right: var(--gutter);
    }

    #sortiment .et_pb_module.et_pb_blurb:nth-child(2n+2),
    #sortiment .et_pb_row:last-of-type .et_pb_column .et_pb_module.et_pb_blurb:last-of-type,
    #leckereien .et_pb_module.et_pb_blurb:nth-child(2n+2),
    #leckereien .et_pb_row:last-of-type .et_pb_column .et_pb_module.et_pb_blurb:last-of-type,
    #ueber_uns .et_pb_module.et_pb_blurb:nth-child(2n+2),
    #ueber_uns .et_pb_row:last-of-type .et_pb_column .et_pb_module.et_pb_blurb:last-of-type {
        margin-right: 0;
    }
}

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

    #sortiment .et_pb_module.et_pb_blurb .et_pb_blurb_content,
    #leckereien .et_pb_module.et_pb_blurb .et_pb_blurb_content,
    #ueber_uns .et_pb_module.et_pb_blurb .et_pb_blurb_content,
    #sortiment .et_pb_module.et_pb_blurb .et_pb_main_blurb_image,
    #leckereien .et_pb_module.et_pb_blurb .et_pb_main_blurb_image,
    #ueber_uns .et_pb_module.et_pb_blurb .et_pb_main_blurb_image,
    #sortiment .et_pb_module.et_pb_blurb img,
    #leckereien .et_pb_module.et_pb_blurb img,
    #ueber_uns .et_pb_module.et_pb_blurb img {
        max-width: unset;
        width: 100%;
    }
}


/* Buttons alignment */
.et_pb_row.flexwrap.buttons .et_pb_column {
    justify-content: center;
    grid-gap: var(--gutter);
}

/*================================================
    hofladen
================================================*/

#sortiment .et_pb_module.et_pb_blurb {
    margin-bottom: var(--gutter);
}

#sortiment .et_pb_main_blurb_image {
    margin-bottom: 0;
}

#sortiment .et_pb_module.et_pb_blurb {
    box-shadow: var(--box-shadow);
    background-color: var(--white);

}

#sortiment .et_pb_blurb_content {
    position: relative;
    display: block;
    height: 100%;
}

#sortiment .et_pb_blurb_container {
    padding: 23px 16px;
    text-align: center;
    width: 100%;
}

#sortiment .et_pb_module_header {
    padding-bottom: 70px;
    font-size: 22px;
    line-height: 25px;
}

#sortiment .et_pb_blurb_description {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

#sortiment .et_pb_blurb_description p {
    padding: 8px 26px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    line-height: 24px;
    box-shadow: unset;
    -webkit-transition: all .2s;
    transition: all .2s;
    color: var(--white);
    background-color: var(--primary);
    border: 2px solid var(--primary);
    width: fit-content;
    margin: 0 auto;
}

/* Leckereien */

#leckereien .et_pb_row:nth-child(2) {
    margin-top: 60px;
    margin-bottom: 60px;
    box-shadow: unset;
}

#leckereien .et_pb_module.et_pb_blurb {
    margin-bottom: 60px;
}

#leckereien .et_pb_main_blurb_image {
    max-width: 216px;
}

#leckereien .et_pb_blurb_container {
    max-width: 80%;
    margin: 0 auto;
}

#leckereien .et_pb_blurb_description p {
    text-align: center;
    font-size: 22px;
    line-height: 25px;
    letter-spacing: 0;
    font-family: var(--secondary_font);
}

/*================================================
    Wochenmarkt, Karte
================================================*/

#wochenmarkt .et_pb_image_wrap {
    padding: 40px;
}

@media only screen and (max-width: 980px) {
    #wochenmarkt.et_pb_section.boxed .et_pb_row .et_pb_column_3_5 {
        height: auto;
    }
}

/*================================================
    Über uns
================================================*/

#ueber_uns .et_pb_module.et_pb_blurb {
    box-shadow: var(--box-shadow);
    background-color: var(--white);
    height: 100%;
}

#ueber_uns .et_pb_main_blurb_image {
    margin-bottom: 0;
}

#ueber_uns .et_pb_blurb_content {
    background: var(--white);
}

#ueber_uns .et_pb_blurb.et_pb_text_align_left .et_pb_blurb_content .et_pb_blurb_container {
    padding: 19px 20px 16px 20px;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#ueber_uns .et_pb_module_header {
    font-size: 28px;
    line-height: 25px;
}

/*================================================
    smashballoon instagram
================================================*/

.sbi_item {
    box-shadow: var(--box-shadow);
}

#sb_instagram .sbi_info {
    text-align: left;
}

@media only screen and (min-width: 981px) {
    #aktuelles .et_pb_button_module_wrapper {
        position: absolute;
        right: 0;
        top: -20px;
    }
}

/*================================================
    template rechtliches
================================================*/

.rechtliches .et_pb_section {
    background-color: var(--secondary);
}

#main-content .rechtliches .et_pb_row {
    max-width: var(--semiwide);
    margin: 0 auto;
}

.rechtliches .et_pb_text h1,
.rechtliches .et_pb_text h2,
.rechtliches .et_pb_text h3,
.rechtliches .et_pb_text h4 {
    text-align: left;
    color: var(--body);
}

.rechtliches .et_pb_text h1 {
    margin-bottom: 60px;
}

.rechtliches .et_pb_text h2 {
    margin-top: 40px;
}

.rechtliches h2:not(.et_pb_slide_title)::after,
.rechtliches .et_pb_text.likeh2 p::after {
    margin-left: 0;
}

.rechtliches .et_pb_text h3 {
    margin-top: 20px;
}

.rechtliches .et_pb_text h4 {
    margin-top: 15px;
}


/* Cafe */

.cafe_gallery .et_pb_column {
    background: var(--white, #fff);
    box-shadow: var(--box-shadow);
    margin-bottom: 0;
}

.cafe_gallery .et_pb_column .et_pb_module,
.cafe_gallery .et_pb_column .et_pb_module * {
    margin: unset;
}

.cafe_gallery .et_pb_column .et_pb_module h3 {
    padding: 1em;
}

/* Knuspr Button */

:root {
    --btn-bg: #16603b;
    --btn-text: #fff;
    --btn-radius: 14px;
    --btn-padding: 1.1em 1.4em;
    --btn-shadow: 0 4px 16px rgba(0, 0, 0, 0.11);
    --pulse-color: rgba(22, 96, 59, 0.14);
    --btn-width: 285px;
    --btn-min-width: 220px;
    --btn-max-width: 92vw;
}

.knuspr-popup {
    position: fixed;
    z-index: 1200;
    left: 1.2rem;
    bottom: 1.2rem;
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    box-shadow: var(--btn-shadow);
    font-size: 1.08rem;
    font-family: var(--btn-font);
    line-height: 1.4;
    font-weight: 400;
    min-width: var(--btn-min-width);
    max-width: var(--btn-max-width);
    width: var(--btn-width);
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(.62, -0.17, .4, 1.17), box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.knuspr-popup.visible {
    opacity: 1;
    pointer-events: auto;
    animation: popup 0.7s cubic-bezier(.34, 1.56, .64, 1) 1, gentle-pulse 1.1s 0.8s 1 cubic-bezier(.62, -0.17, .4, 1.17);
}

.knuspr-popup:focus-visible {
    box-shadow: 0 0 0 4px #fff, 0 4px 16px rgba(0, 0, 0, 0.13);
    outline: 2px solid #0f4227;
}

.knuspr-popup strong {
    font-weight: 700;
    font-size: 1.13em;
    display: block;
    margin-bottom: 0.13em;
}

/* Schließen-X */
.knuspr-close-btn,
.knuspr-close-btn:hover {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.70;
    transition: opacity 0.2s, color 0.2s;
    z-index: 2;
}

.knuspr-close-btn:focus-visible {
    outline: 2px solid #fff;
    opacity: 1;
}

.knuspr-close-btn:hover {
    opacity: 1;
    color: #ffd6c7;
}

/* Animationen */
@keyframes popup {
    0% {
        transform: translateY(60px) scale(0.94);
        opacity: 0;
    }

    80% {
        transform: translateY(-5px) scale(1.03);
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes gentle-pulse {

    0%,
    100% {
        box-shadow: var(--btn-shadow);
    }

    50% {
        box-shadow: 0 0 0 18px var(--pulse-color);
    }
}

/* Responsiveness */
@media (max-width: 600px) {
    .knuspr-popup {
        min-width: 60vw;
        width: auto;
        font-size: 1rem;
        left: 0.7rem;
        bottom: 0.7rem;
        right: auto;
        max-width: 94vw;
    }
}