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

/* Grid Settings */

@media only screen and ( min-width: 981px ) {
    article.col-6 {
        float: left;
        width: calc(50% - 30px);
        margin-right: 60px;
        margin-bottom: 100px;
    }

    article.col-6:nth-child(2n + 2) {
        margin-right: 0;
    }

    article.col-6 img {
        height: 400px;
        object-fit: cover;
    }

    article.col-4 {
        float: left;
        width: calc(33.333333333333% - 53.3333px);
        margin-right: 80px;
        margin-bottom: 100px;
    }

    article.col-4:nth-child(3n + 3) {
        margin-right: 0;
    }

    article.col-4 img {
        height: 400px;
        object-fit: cover;
    }

    .flex_wrapper {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        position: relative;
    }

    div.flex_wrapper.col-3 article {
        width: calc((100% / 3) - var(--gap));
        margin-right: var(--gap);
        margin-bottom: calc(3 * var(--gap));
    }

    div.flex_wrapper.col-2.wide {
        max-width: var(--wide);
        margin: 0 auto;
    }

    div.flex_wrapper.col-2.wide article {
        width: calc((100% / 2) - 50px);
        margin-right: 100px;
    }

    div.flex_wrapper.col-2 article:last-of-type {
        margin-right: 0;
    }
}

div.flex_wrapper article.rectangle {
    position: relative;
    padding: 28px;
    height: 320px;
    background-size: cover;
    background-repeat: no-repeat;
    transition: 500ms;
}

div.flex_wrapper article.rectangle:hover {
    transition: 500ms;
    transform: translateY(-10px);
}

div.flex_wrapper article.rectangle:last-of-type {
    margin-right: 0;
    margin-bottom: 0;
}

div.flex_wrapper article.rectangle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    z-index: -1;
}

div.flex_wrapper article.rectangle .article_link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

div.flex_wrapper article.rectangle .content {
    position: absolute;
    bottom: 28px;
    left: 28px;
    color: var(--white);
    font-family: var(--secondary_font);
}

article.rectangle.col-4 img {
    box-shadow: var(--box-shadow);
}

article.rectangle.col-4 .content_wrapper {
    margin-top: 60px;
    text-align: center;
    padding: 0 10px;
}

article.rectangle.col-4 h3.entry-title {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0;
    line-height: 24px;
}

article.rectangle.col-4 .teaser {
    font-size: 16px;
    letter-spacing: 0;
    line-height: 24px;
    margin-bottom: 20px;
}

.et_pb_code.shortcode {
    margin-top: 100px;
}

/*================================================
    Allgemeine Snippets
================================================*/

.two_buttons a {
    display: inline-block;
}

.two_buttons a:last-of-type {
    margin-left: 12px;
}

span.primary {
    color: var(--primary);
    font-weight: 500;
}

/*================================================
    content
================================================*/

.post_meta {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 22px;
    padding-bottom: 8px;
}

div.excerpt {
    font-weight: bold;
}

/*================================================
    #home
================================================*/

/* Leistungen */

#leistungen .infoboxes {
    display: flex;
    flex-wrap: wrap;
}

#leistungen .infoboxes .et_pb_column {
    width: calc(100% / 4 - (4 * var(--gap) / 3));
    margin-right: var(--gap);
    height: 0;
    padding-bottom: 20%;
}

#leistungen .infoboxes .et_pb_column .et_pb_module .et_pb_text_inner p {

}

#leistungen .infoboxes .et_pb_column:last-of-type {
    margin-right: 0;
}

#news {
    background-color: var(--lightgrey);
}

/*================================================
    #kontakt
================================================*/

/*================================================
    #instagram Social MEdia
================================================*/

#instagram {
    background-color: transparent;
}

#instagram::before {
    content: '';
    background-image: url(/wp-content/themes/benzdigital/img/shape.svg);
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: cover;
    width: 70%;
    height: 100%;
    position: absolute;
    top: -10%;
    left: -30%;
    z-index: -1;
}

/*================================================
    #aktuelles / articles
================================================*/

@media only screen and ( max-width: 980px ) {
    #aktuelles article:not(:last-of-type) {
        margin-bottom: 40px;
    }
}

article > img {
    margin-bottom: 24px;
}

article .post_meta {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 22px;
    color: var(--primary);
}

article h2 {
    font-size: 21px;
    letter-spacing: 0;
    line-height: 24px;
    color: var(--body);
    text-transform: unset;
    padding: 7px 0 16px 0;
}

article a.more {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 24px;
}

/*================================================
    Team: Über uns – employe
================================================*/

article.employe h3 {
    font-size: 21px;
    letter-spacing: 0;
    line-height: 24px;
    padding-bottom: 0;
}

article.employe .title {
    margin-bottom: 20px;
}

article.employe .languages {
    margin-top: 20px;
}

/*================================================
    CPT Filialen
================================================*/

@media only screen and ( min-width: 981px ) {
    div.filiale_helper_wrapper {
        padding: 160px 0;
    }
}

/* Kontakt */

.filiale_helper_wrapper .et_pb_module.et_pb_text {
    margin-bottom: 0;
}

.flex_wrapper.col-2.wide iframe {
    height: 260px;
    margin-bottom: 40px;
}

.flex_wrapper.col-2.wide iframe .et_pb_button {
    margin-top: 28px;
}

.opening_hours {
    margin: 28px 0;
}

.opening_hours, .opening_hours strong {
    display: block;
}

.opening_hours .like_h3 {
    font-family: var(--tertiary_font);
    font-size: 21px;
    letter-spacing: 0;
    line-height: 24px;
    font-weight: normal;
    padding-bottom: 16px;
}

.opening_hours div span {
    display: inline-block;
}

.et_pb_button.appointment {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/*================================================
    Kontakt
================================================*/

#kontakt .et_pb_blurb_position_left .et_pb_main_blurb_image,
#kontakt .et_pb_blurb_position_right .et_pb_main_blurb_image {
    width: 48px;
}

#kontakt .et_pb_blurb_position_left .et_pb_blurb_container {
    padding-left: 20px;
}

#kontakt span.sub_headline {
    display: block;
    font-size: 21px;
    letter-spacing: 0;
    line-height: 24px;
    font-family: var(--tertiary_font);
    padding-bottom: 4px;
}

#kontakt .et_pb_blurb_description br {
    display: none;
}

/*================================================
    WooCommerce
================================================*/



/*================================================
    Accordion
================================================*/

.et_pb_module.et_pb_accordion .et_pb_toggle:not(:last-of-type) {
    margin-bottom: 12px;
}

.et_pb_module.et_pb_accordion .et_pb_toggle:last-of-type {
    margin-bottom: 0;
}

.et_pb_toggle, .et_pb_toggle_close {
    background-color: unset;
    padding: 0;
    border: unset;
}

.et_pb_toggle_close .et_pb_toggle_title,
.et_pb_toggle_close h2.et_pb_toggle_title,
.et_pb_toggle_close h3.et_pb_toggle_title,
.et_pb_toggle_close h4.et_pb_toggle_title,
.et_pb_toggle_close h5.et_pb_toggle_title,
.et_pb_toggle_close strong.et_pb_toggle_title,
.et_pb_toggle_open .et_pb_toggle_title,
.et_pb_toggle_open h2.et_pb_toggle_title,
.et_pb_toggle_open h3.et_pb_toggle_title,
.et_pb_toggle_open h4.et_pb_toggle_title,
.et_pb_toggle_open h5.et_pb_toggle_title,
.et_pb_toggle_open strong.et_pb_toggle_title {
    font-weight: 400;
    font-size: 21px;
    letter-spacing: 0;
    line-height: 24px;
    color: var(--body);
    display: block;
    font-family: var(--tertiary_font);
    background-color: var(--lightgrey);
    padding: 12px 24px;
}

.et_pb_toggle_content {
    font-size: 14px;
    letter-spacing: 0.4px;
    line-height: 22px;
    font-weight: 400;
    padding: 28px 24px;
}

.et_pb_toggle .et_pb_toggle_title:before {
    right: 24px;
}

.et_pb_toggle_title::before {
    content: '\33';
    font-size: 21px;
    color: var(--body);
}

.et_pb_toggle_open .et_pb_toggle_title::before {
    content: '\32';
    font-family: etmodules;
    display: block !important;
}

.et_pb_toggle ul {
    margin-top: 12px;
    margin-bottom: 0;
}

.et_pb_toggle ul li:not(:last-of-type) {
    margin-bottom: 4px;
}

.et_pb_toggle .et_pb_button {
    display: block;
    margin-top: 28px;
    width: fit-content;
}

/*================================================
    .wp-pagenavi
================================================*/

.wp-pagenavi {
    text-align: center;
    border-top: 0;
    padding: 8px 0;
    margin: 0 auto;
    margin-top: 40px;
    overflow: hidden;
}

.wp-pagenavi a, .wp-pagenavi span {
    font-family: var(--primary_font);
    color: var(--primary);
    font-size: 18px !important;
    letter-spacing: 0.4px;
    line-height: 22px;
    text-align: center;
    padding: 8px 5px 0 5px;
}

span.pages {
    padding-left: 0;
}

.wp-pagenavi span.current {
    background-color: unset;
    border-top: 3px solid var(--body) !important;
}

.wp-pagenavi a:hover, .wp-pagenavi span.current {
    color: var(--primary) !important;
}

.wp-pagenavi span.current {
    font-weight: bold !important;
}

@media only screen and ( max-width: 767px ) {
    .wp-pagenavi span.pages {
        display: block;
        margin-bottom: 20px;
    }

    .wp-pagenavi a, .wp-pagenavi span {
        padding: 10px 14px;
    }

    .wp-pagenavi a.first, .wp-pagenavi a.last {
        display: none;
    }
}

/*================================================
    Slick Slider
================================================*/

/*================================================
    animation keyframes
================================================*/

@-webkit-keyframes bounce {
    0% {
        -webkit-transform: translateY(-2000px);
        transform: translateY(-2000px);
    }
    70% {
        -webkit-transform: translateY(30px);
        transform: translateY(30px);
    }
    90% {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes bounce {
    0% {
        -webkit-transform: translateY(-2000px);
        transform: translateY(-2000px);
    }
    70% {
        -webkit-transform: translateY(30px);
        transform: translateY(30px);
    }
    90% {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}