/* Kalender Pro */
.mpeca_calender .style_lite_area {
    height: 100%;
    max-height: none;
    overflow: hidden;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    padding-top: 40px;
    position: relative;
    overflow: visible;
}

/* Cal header */
.mpeca_calender_area .mpeca_link_table th {
    position: relative;
}

.mpeca_calender_area .mpeca_link_table th a:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-color: transparent;
}

.row-months a {
    width: 33vw;
    white-space: nowrap;
    padding: 8px 12px !important;

    scroll-snap-align: start;
}

.row-months {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: flex-start;
    margin: 2rem 0 1rem;
    gap: 8px;
    overflow-x: auto;

    scroll-snap-type: x mandatory;
    scroll-snap-points-y: repeat(16vw);
}

.row-months a.btn:hover {
    background-color: #7c1509;
}

.row-months a.btn.button.active {
    background-color: #e7b96e;
    color: #06274b;
}


.mpeca_calender .style_lite_area .textRight {
    background: #7c1509;
    position: absolute;
    top: 4px;
    right: 4px;
    height: auto;
    width: auto;
    z-index: 999;
    border-radius: 8px;
    color: #fff;
    padding: 2px 10px;
    text-align: center;
    display: block;
    font-size: 1rem;
}

.mpeca_calender_area .current_date .textRight {
    background: #72190f !important;
}

table.mpeca_calender td {
    height: 80px !important;
    min-height: 80px;
}
.as_calendar table.mpeca_calender th,
.as_calendar table.mpeca_calender td {
    border: 1px solid #f0dcb9;
    vertical-align: middle;
    text-align: center;
}

.mpeca_calender .mp_date_exit_event a.mp_date_exit_event_title {
    background-color: #000B;
    color: #06274b;
    font-size: 13px;
    border-bottom: 2px solid #FAFAFA;
    height: 25px;
}

.mpeca_calender .mp_date_exit_event.style_lite a.mp_date_exit_event_title {
    background-color: #e7bc68;
    height: auto;
    padding: 5px;
    display: block;
    text-align: left;
    margin: 4px;
}

.mpeca_calender .mp_date_exit_event.style_lite a.mp_date_exit_event_title.no-seats {
    background-color: #df6b6b;
    pointer-events: none;
}

a.mp_date_exit_event_title.no-seats:before {
    content: "Ausverkauft";
    margin-bottom: 8px;
    display: block;
}

a.mp_date_exit_event_title.no-seats span {
    text-decoration: line-through;
}

a.mp_date_exit_event_title.few-seats:after {
    content: "Nur noch wenige Plätze verfügbar!";
    margin-top: 8px;
    display: block;
    background-color: #f5ea51;
    padding: 4px;
    color: black !important;
}


.mpeca_calender .mp_date_exit_event.style_lite a.mp_date_exit_event_title:hover {
    position: relative;
    background-color: #c2340a;
    color: #f2f2f2;
    display: block;
}

.mpeca_calender .mp_date_exit_event.style_lite a.mp_date_exit_event_title:hover span {
    position: relative;
    background-color: inherit !important;
    color: inherit !important;
    box-shadow: none !important;
    display: inline-block;
}

/* Expired */
.mpeca_calender .mp_date_exit_event.style_lite a.mp_date_exit_event_title:has(i) {
    background-color: #c5c5c5;
    color: #4e4e4e;
    display: none;
}

.pRelative.mp_date_exit_event.style_lite i {
    color: #911f1f !important;
}

/* ------  */
.as_calendar.loading {
    position: relative;
}

.as_calendar.loading:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffffb0;
    z-index: 999;
    backdrop-filter: blur(1px);
}

/* Spinner statt "Lädt..." */
.as_calendar.loading:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    background: url("data:image/svg+xml,%3Csvg%20width%3D%2250%22%20height%3D%2250%22%20viewBox%3D%220%200%2050%2050%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Ccircle%20cx%3D%2225%22%20cy%3D%2225%22%20r%3D%2220%22%20fill%3D%22none%22%20stroke%3D%22%237c1509%22%20stroke-width%3D%225%22%20stroke-linecap%3D%22round%22%20stroke-dasharray%3D%2231.415%2C31.415%22%20transform%3D%22rotate(-90%2025%2025)%22/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
    z-index: 9999;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}



@media(max-width: 480px){
    .mpeca_calender_area {
        overflow: auto;
        max-height: 50vh;
    }
    .mpeca_calender .style_lite_area {
        max-height: none !important;
        padding: 0 50px 0 24px !important;
    }
    table.mpeca_calender:not(.mpeca_link_table) {
        border-width: 20px 0 0 0px !important;
        border-color: #f7f7f7 !important;
    }
    table.mpeca_calender:not(.mpeca_link_table) th {
        font-size: 10px;
        display: none;
    }
    .mpeca_calender_area table .mp_date_exit_event {
        min-height: 35px !important;
    }

    table.fullWidth.mpeca_calender:not(.mpeca_link_table) tr,
    table.fullWidth.mpeca_calender:not(.mpeca_link_table) tr td {
        display: block;
        height: auto;
        min-height: 0;
    }

    table.fullWidth.mpeca_calender tr td .style_lite_area:before {
        position: absolute;
        left: 0;
        top: 0;
        background-color: #415d78;
        color: #fff;
        margin: 4px;
        padding: 2px;
        border-radius: 2px;
    }

    table.fullWidth.mpeca_calender tr td:nth-last-of-type(7) .style_lite_area:before {
        content: "MO";
    }
    table.fullWidth.mpeca_calender tr td:nth-last-of-type(6) .style_lite_area:before {
        content: "DI";
    }
    table.fullWidth.mpeca_calender tr td:nth-last-of-type(5) .style_lite_area:before {
        content: "MI";
    }
    table.fullWidth.mpeca_calender tr td:nth-last-of-type(4) .style_lite_area:before {
        content: "DO";
    }
    table.fullWidth.mpeca_calender tr td:nth-last-of-type(3) .style_lite_area:before {
        content: "FR";
    }
    table.fullWidth.mpeca_calender tr td:nth-last-of-type(2) .style_lite_area:before {
        content: "SA";
    }
    table.fullWidth.mpeca_calender tr td:nth-last-of-type(1) .style_lite_area:before {
        content: "SO";
    }
}






















