/*
 Theme Name:   Proust Child Theme
 Theme URI:    https://mokapi.design
 Description:  Child Theme für Divi
 Author:       Mokapi Design
 Author URI:   https://mokapi.design
 Template:     Divi
 Version:      1.0.0
*/

/*TYPO*/
h1 {
    font-size: clamp(18px, 10vw, 50px) !important;
    line-height: 1.0 !important;
}

.et_pb_heading.big h1 {
    font-size: clamp(20px, 4vw, 70px) !important;
    line-height: 1.0 !important;
}

h2:not(.wp-block-heading) {
    font-size: clamp(18px, 9vw, 40px) !important;
    line-height: 1.0 !important;
}

@media (max-width: 980px) {
    .et_pb_heading.big h1 {
        font-size: clamp(30px, 10vw, 70px) !important;
    }
}

/*MENU*/
.et_pb_menu {
   padding: 0 !important;
}
.et_pb_menu .menu-item {
    margin-top: 0 !important;
    padding: 5px 10px;
}

.et_pb_menu .menu-item.active:not(.shop) {
    background-color: var(--gcid-link-color);
}

.et_pb_menu .menu-item.active:not(.shop) a {
    color: var(--gcid-primary-color);
}

.et_pb_menu .menu-item a {
    padding: 10px 20px;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.et_pb_menu .menu-item.shop {
    padding-bottom: 10px !important;
    padding-top: 10px !important;
    margin-right: 10px !important;
}

.et_pb_menu .menu-item.shop a {
    border: 1px solid;
    border-bottom: 1px solid !important;
}

@media (max-width: 980px) {
    .et-db #et-boc .et-l .et_pb_menu .et_mobile_nav_menu {
        margin: 10px 10px;
    }
    .et_mobile_menu {
        margin-top: 0;
    }
}

/*Bücher*/
.book-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 30px;
}

@media (max-width: 980px) {
    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .book-grid {
        grid-template-columns: 1fr;
    }
}

.book-card-01 {
    border: 1px solid #8c3e37;
    background-color: var(--gcid-yb3ajw2dn0);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-bottom: 20px;
        display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-bottom: 20px;
}
.book-card-content {
    position: relative;
    padding: 20px 15px;
}

.book-card-label{
    color: #BE9A57;
    font-weight: bold;
    text-transform: uppercase;
}

.book-card-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.book-card-title {
    margin-top: 10px;
    font-family: 'Proust_Fraunces', Helvetica, Arial, Lucida, sans-serif;
    line-height: 1.3;
}

.book-card-info,
.event-card-meta {
        display: inline-block;
}

.book-card-info:before,
.event-card-meta:before,
.event-card-location-wrapper:before {
    color: var(--gcid-primary-color);
    font-family: "ETmodules" !important;
    font-weight: normal;
    font-size: 14px;
    margin-right: 5px;
    content: "\e086";
}
.event-card-meta:before {
    content: "\e023";
    color:white;
}
.event-card-location-wrapper:before {
    content: "\e081";
    color:white;
    margin-left: 10px;
}
.event-location-shortcode {
    display: inline-flex;
    font-size: 16px;
}
.event-location-shortcode:before {
    content: "\e081";
    color: white;
    font-family: "ETmodules" !important;
    font-weight: normal;
    font-size: 20px;
    margin-right: 25px;
}
.event-location-shortcode p {
    padding-bottom: 0;
    color: #fff;
}
.event-location-shortcode a {
    font-weight: bold;
    color: white;
    text-decoration: underline;
}

.event-ticket-info {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 30px;
}

.book-card .link {
    text-align: end;
    margin-right: 15px;
}
.book-card .link .book-card-button {
    color: #8c3e37;
    font-weight: bold;
    text-decoration: underline;
    font-size: 16px;
}

.empfohlen-von {
    position: absolute;
    display: flex;
    align-items: center;
    background: var(--gcid-link-color);
    padding: 5px 15px;
    text-decoration: none;
    top: -30px;
    right: 0;
}

.empfohlen-von img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    left: -50px;
    border: 2px solid var(--gcid-link-color);
}

.empfohlen-von .text {
    display: grid;
    font-size: 14px;
    color: var(--gcid-primary-color);
}

.empfohlen-von .text strong {
    text-decoration: underline;
}

.empfohlen-von span {
    line-height: 1.2;
}

.book-carousel-wrapper {
    position: relative;
    overflow: visible;
}

/*CAROUSEL*/
.book-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
}

.book-carousel::-webkit-scrollbar {
    display: none;
}

.book-carousel .book-card {
    flex: 0 0 calc((100% - 60px) / 3);
    scroll-snap-align: start;
}

.book-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 40px;
    height: 40px;

    border: none;
    background: transparent;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    color: var(--gcid-link-color);
}

.book-carousel-arrow::before {
    content: "";
    width: 12px;
    height: 12px;

    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.book-carousel-prev {
    left: -45px;
}

.book-carousel-next {
    right: -45px;
}

.book-carousel-prev::before {
    transform: rotate(-135deg);
}

.book-carousel-next::before {
    transform: rotate(45deg);
}

.book-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.book-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--gcid-link-color);
    opacity: 0.35;
    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.book-carousel-dot:hover {
    opacity: 0.6;
}

.book-carousel-dot.is-active {
    opacity: 1;
    transform: scale(1.25);
}

.book-carousel-single .book-card {
    flex: 0 0 100%;
    width: 100%;
}

/* Tablet */

@media (max-width: 980px) {

    .book-carousel .book-card {
        flex: 0 0 calc((100% - 30px) / 2);
    }
}


/* Smartphone */

@media (max-width: 767px) {

    .book-carousel .book-card {
        flex: 0 0 85%;
    }

    .book-carousel-prev {
        left: 5px;
    }

    .book-carousel-next {
        right: 5px;
    }
}

.author-title-blurb .et_pb_blurb_container {
    display: flex !important;
    flex-direction: row;
}
.et_pb_blurb_content {
    max-width: 100%;
    display: flex;
    column-gap: 0 !important;
}
.author-title-blurb .et_pb_module_header {
    padding-bottom: 0;
}
.author-title-blurb .et_pb_blurb_description {
        display: flex;
}
.author-title-blurb .et_pb_blurb_description:before {
    content: '–';
    margin: 0 5px;
}

/*SIDEBAR*/
.et_pb_widget_area {
    column-gap: 0 !important;
    row-gap: 0 !important;
    --horizontal-gap: 0 !important;
    --vertical-gap: 0 !important;
    font-size: 16px;
}
.et_pb_widget_area  .widget_block:not(:first-of-type) {
    margin-top: 20px;
}
.wp-block-group > p:empty {
    display: none;
}
.et_pb_widget_area .wp-block-heading {
    border-bottom: 1px solid;
    padding-bottom: 0;
    margin-bottom: 10px;
}
.et_pb_widget_area .buecher-sidebar-users {
    margin-top: 5px;
}
.et_pb_widget_area .current-cat a,
.et_pb_widget_area li.active > a {
    font-weight: bold;
    text-decoration: underline !important;
}
@media (max-width: 980px) {
    .et_pb_column .et_pb_widget {
        width: 100% !important;
    }
}

/* =====================================================
   VERANSTALTUNGEN – LISTE
   ===================================================== */

.event-list {
    display: grid;
    gap: 28px;
}

.event-card-list {
    display: grid;
    grid-template-columns: 270px 1fr;
    background: #9b443c;
    color: #fff;
    min-height: 220px;
}

.event-card-list .event-card-image {
    height: 100%;
    max-height: 240px;
}

.event-card-list .event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-card-content {
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
}

.event-card-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #BE9A57;
    font-weight: bold;
}

.event-card-title {
    margin: 0;
    padding-bottom: 5px;
    color: #EFE8DE;
    font-size: clamp(20px, 4vw, 32px);
}

.event-card-button,
.event-card-button:hover {
    margin-top: auto !important;
    align-self: flex-end;
    color: #fff !important;
    border: 1px solid #fff !important;
}

.event-card-button:hover:after {
    right: 0;
}

.event-carousel .event-card-button {
    margin-top: 30px;
}

/* =====================================================
   VERANSTALTUNGEN – CAROUSEL
   ===================================================== */

.event-carousel-wrapper {
    position: relative;
    overflow: visible;
}

.event-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.event-carousel::-webkit-scrollbar {
    display: none;
}

.event-carousel .event-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.event-card-carousel {
    display: grid;
    grid-template-columns: 44% 56%;
    background: #9b443c;
    color: #fff;
    min-height: 520px;
}

.event-card-carousel .event-card-content {
    padding: 70px 65px;
}

.event-card-carousel .event-card-image {
    height: 100%;
    max-height: 550px;
}

.event-card-carousel .event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Pfeile */

.event-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    color: #fff;
    width: 40px;
    height: 40px;

    border: 0;
    background: transparent;
    cursor: pointer;
}

.event-carousel-arrow::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;

    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.event-carousel-prev {
    left: 20px;
}

.event-carousel-next {
    right: 20px;
}

.event-carousel-prev::before {
    transform: rotate(-135deg);
}

.event-carousel-next::before {
    transform: rotate(45deg);
}

.event-carousel-dots {
    display: none;
}
/* Punkte 

.event-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.event-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    opacity: .25;
    cursor: pointer;
}

.event-carousel-dot.is-active {
    opacity: 1;
}
*/

@media (max-width: 980px) {

    .event-card-list,
    .event-card-carousel {
        grid-template-columns: 1fr;
    }

    .event-card-list .event-card-image,
    .event-card-carousel .event-card-image {
        order: 1;
        width: 100%;
        height: 320px;
    }

    .event-card-list .event-card-content,
    .event-card-carousel .event-card-content {
        order: 2;
    }

    .event-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 980px) {

    .event-carousel .event-card-carousel {
        display: grid;
        grid-template-columns: 1fr !important;
    }

    .event-carousel .event-card-carousel .event-card-image {
        order: 1;
        width: 100%;
        height: 320px;
    }

    .event-carousel .event-card-carousel .event-card-content {
        order: 2;
    }

    .event-carousel .event-card-carousel .event-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

/*HELPER*/
.round-img {
    width: 100%;
    max-width: 380px; /* optional */
    aspect-ratio: 1 / 1;
}

.round-img .et_pb_image_wrap {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.round-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.round-blurb-img .et_pb_main_blurb_image {
    width: 100%;
    max-width: 250px; /* optional */
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.round-blurb-img .et_pb_image_wrap {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.round-blurb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/*AKKORDEON*/
.et_pb_toggle_close,
.et_pb_toggle_open {
    padding: 0px;
    padding-top: 10px;
    padding-bottom: 20px;
}