/* Start custom CSS *//*
 * ScaleMonkey Events – Event-Navigation
 *
 * Standard: Alle Events chronologisch
 * [smc_e_event_navigation mode="all"]
 *
 * Alternative: Nur Events derselben Kategorie
 * [smc_e_event_navigation mode="category"]
 *
 * Umstellung:
 * Im Single-Event-Template das Shortcode-Widget ändern.
 *
 * Aktuell verwendet: mode="all"
 */
 
 /* ==========================================
   01. ELEMENTOR ATOMIC – PADDING RESET
   ========================================== */

.e-atomic-element.e-flexbox-base,
.e-atomic-element.e-grid-base,
.e-atomic-element.e-heading-base,
.e-atomic-element.e-paragraph-base {
    padding: 0;
}


/* ==========================================
   02. SINGLE EVENT – HEADER
   ========================================== */

.smc-e-single-header {
    width: var(--global-content-width);
    max-width: var(--global-max-content-width) !important;
    margin: 45px auto;
}


/* ==========================================
   03. SINGLE EVENT – CONTENT GRID
   ========================================== */

/* Grid-Container */
.smc-e-single-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
    grid-template-rows: max-content max-content !important;
    column-gap: 40px !important;
    row-gap: 24px !important;
    align-content: start !important;

    width: var(--global-content-width);
    max-width: var(--global-max-content-width) !important;
    margin: 0 auto 35px;
}

/* Beitragsbild – Höhe an Event-Details anpassen */
.smc-e-single-content .smc-e-single-image {
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;

    align-self: stretch;
    margin: 0;

    object-fit: cover;
    object-position: center;
    border-radius: var(--global-border-radius-large);
}


/* ==========================================
   04. SINGLE EVENT – METADATEN
   ========================================== */

/* Metadaten – zweite Zeile über volle Breite */
.smc-e-single-content .smc-e-single-meta {
    grid-column: 1 / -1;
    grid-row: 2;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 0;
}

/* Einzelne Metadaten */
.smc-e-single-meta .smc-e-single-category,
.smc-e-single-meta .smc-e-single-date,
.smc-e-single-meta .smc-e-single-location {
    font-size: 0.9rem;
}

/* Kategorie-Link */
.smc-e-single-meta .smc-e-single-category a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.smc-e-single-meta .smc-e-single-category a:hover {
    text-decoration: none;
}


/* ==========================================
   05. SINGLE EVENT – BESCHREIBUNG
   ========================================== */

/* Container unterhalb des Content-Grids */
.smc-e-single-description {
    width: var(--global-content-width);
    max-width: var(--global-max-content-width) !important;
    margin: 0 auto 20px;
}

/* Überschrift */
.smc-e-single-description .smc-e-single-description-title {
    margin: 0 0 16px;
}

/* Beschreibungstext */
.smc-e-single-description .smc-e-single-description-text {
    margin: 0;
}


/* ==========================================
   06. SINGLE EVENT – DETAILS
   ========================================== */

/* Infobox – rechts oben */
.smc-e-single-content .smc-e-single-details {
    grid-column: 2;
    grid-row: 1;
    align-self: start;

    min-width: 0;
    background: var(--global-glass-bg);
    border-radius: var(--global-border-radius-large);
    padding: 24px;
}

/* Hauptüberschrift */
.smc-e-single-content .smc-e-single-details-title {
    margin: 0 0 16px;
}

/* Datum und Uhrzeit */
.smc-e-single-content .smc-e-single-details-date-value,
.smc-e-single-content .smc-e-single-details-time-value {
    margin: 0;
}



/* ==========================================
   SCALEMONKEY EVENTS – WIEDERHOLUNGEN
   Overlay + Forward-Arrow-Icon
========================================== */

/* Grundcontainer */
.smc-e-recurrence {
    position: relative;
    z-index: 10;
    margin-top: 12px;
    font-size: inherit;
}

/* Wiederholungsinformation */
.smc-e-recurrence__summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Wiederholungs-Icon */
.smc-e-recurrence__icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;

    background-color: currentColor;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m17 2 4 4-4 4'/%3E%3Cpath d='M3 11V9a3 3 0 0 1 3-3h15'/%3E%3Cpath d='m7 22-4-4 4-4'/%3E%3Cpath d='M21 13v2a3 3 0 0 1-3 3H3'/%3E%3C/svg%3E") center / contain no-repeat;

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m17 2 4 4-4 4'/%3E%3Cpath d='M3 11V9a3 3 0 0 1 3-3h15'/%3E%3Cpath d='m7 22-4-4 4-4'/%3E%3Cpath d='M21 13v2a3 3 0 0 1-3 3H3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Allgemeine Button-Darstellung */
.smc-e-recurrence button {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Aufklapp-Button */
.smc-e-recurrence__toggle {
    margin-top: 8px;
}

/* ==========================================
   SCHWEBENDES OVERLAY
========================================== */

.smc-e-recurrence__panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;

    width: max-content;
    min-width: 220px;
    max-width: min(320px, 90vw);
    max-height: 280px;
    overflow-y: auto;

    margin-top: 8px;
    padding: 16px;

    background: #fff;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Geschlossenes Overlay */
.smc-e-recurrence__panel[hidden] {
    display: none !important;
}

/* ==========================================
   TERMINLISTE MIT FORWARD-ARROW
========================================== */

.smc-e-recurrence__list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.smc-e-recurrence__list li {
    position: relative;
    list-style: none;
    padding-left: 22px;
    margin-bottom: 5px;
}

/* Eigenes Icon statt Listenpunkt */
.smc-e-recurrence__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.33em;

    width: 12px;
    height: 12px;

    background-color: currentColor;

    -webkit-mask: var(--smc-icon-forward)
        center / contain no-repeat;

    mask: var(--smc-icon-forward)
        center / contain no-repeat;
}

/* ==========================================
   WEITERE TERMINE
========================================== */

.smc-e-recurrence__more {
    margin-right: 14px;
}

/* Versteckte Elemente */
.smc-e-recurrence [hidden] {
    display: none !important;
}





/* ------------------------------------------
   06.1 VERANSTALTUNGSORT
   ------------------------------------------ */

/* Abschnitt mit Separator */
.smc-e-single-content .smc-e-single-details-venue {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--global-glass-bg);
}

/* Überschrift */
.smc-e-single-content .smc-e-single-details-venue-title {
    margin: 0 0 8px;
}

/* Adresse */
.smc-e-single-content .smc-e-single-details-venue-name,
.smc-e-single-content .smc-e-single-details-venue-street,
.smc-e-single-content .smc-e-single-details-venue-postal-city,
.smc-e-single-content .smc-e-single-details-venue-country {
    margin: 0;
}


/* ------------------------------------------
   06.2 GOOGLE MAPS
   ------------------------------------------ */

/* Karten-Container */
.smc-e-single-content .smc-e-single-details-venue-map {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    margin-top: 16px;
    border-radius: var(--global-border-radius-small);
    overflow: hidden;
}

/* Elementor Shortcode + Complianz */
.smc-e-single-content .smc-e-single-details-venue-map .elementor-widget-shortcode,
.smc-e-single-content .smc-e-single-details-venue-map .elementor-shortcode,
.smc-e-single-content .smc-e-single-details-venue-map .cmplz-placeholder-parent {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
}

/* Google Maps iframe */
.smc-e-single-content .smc-e-single-details-venue-map iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}


/* ------------------------------------------
   06.3 VERANSTALTER
   ------------------------------------------ */

/* Abschnitt mit Separator */
.smc-e-single-content .smc-e-single-details-organizer {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--global-glass-bg);
}

/* Überschrift */
.smc-e-single-content .smc-e-single-details-organizer-title {
    margin: 0 0 8px;
}

/* Veranstalterdaten */
.smc-e-single-content .smc-e-single-details-organizer-name,
.smc-e-single-content .smc-e-single-details-organizer-phone,
.smc-e-single-content .smc-e-single-details-organizer-email,
.smc-e-single-content .smc-e-single-details-organizer-website {
    margin: 0;
}


/* =========================================
   ScaleMonkey Events – Event Navigation
   ========================================= */

.smc-e-event-nav-container {
    width: var(--global-content-width);
    max-width: var(--global-max-content-width) !important;
    margin: 0 auto 60px;
}

.smc-e-event-nav-container .elementor-widget-shortcode {
    width: 100%;
    min-width: 0;
}

/* Navigation Grid */

.smc-e-event-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

/* Navigationslinks */

.smc-e-event-nav-link {
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    color: var(--e-global-color-primary);
    text-decoration: none;
}

/* Vorheriges Event – links */

.smc-e-event-nav-prev {
    grid-column: 1;
    justify-self: start;
    align-items: flex-start;
    text-align: left;
}

/* Nächstes Event – rechts */

.smc-e-event-nav-next {
    grid-column: 2;
    justify-self: end;
    align-items: flex-end;
    text-align: right;
}

/* =========================================
   Datum und Pfeil
   ========================================= */

.smc-e-event-nav-top {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.smc-e-event-nav-date {
    flex: 0 0 auto;
    font-size: 0.9rem;
    line-height: 1.2;
    opacity: 0.7;
    white-space: nowrap;
}

/* Eventname */

.smc-e-event-nav-title {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.smc-e-event-nav-prev .smc-e-event-nav-title {
    text-align: left;
}

.smc-e-event-nav-next .smc-e-event-nav-title {
    text-align: right;
}

/* =========================================
   Pfeile – ausschließlich CSS
   ========================================= */

.smc-e-event-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.smc-e-event-nav-arrow::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask-image: var(--smc-icon-forward);
    mask-image: var(--smc-icon-forward);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.smc-e-event-nav-prev .smc-e-event-nav-arrow::before {
    transform: rotate(180deg);
}

/* =========================================
   Bildvorschau
   Bild bleibt gleich groß
   Datum wird beim Hover mitgeschoben
   ========================================= */

.smc-e-event-nav-preview {
    display: inline-flex;
    align-items: center;
    flex: 0 0 56px;
    margin-right: -66px;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transform: translateX(-12px);
    transition:
        margin-right 0.3s ease,
        margin-left 0.3s ease,
        transform 0.3s ease,
        opacity 0.3s ease,
        visibility 0.3s ease;
}

/* Nächstes Event: Vorschau von rechts */

.smc-e-event-nav-next .smc-e-event-nav-preview {
    margin-right: 0;
    margin-left: -66px;
    transform: translateX(12px);
}

/* Bild mit festen Abmessungen */

.smc-e-event-nav-image {
    display: block;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    max-width: none;
    object-fit: cover;
    border-radius: 8px;
}

/* Vorheriges Event: Vorschau aufschieben */

.smc-e-event-nav-prev:hover .smc-e-event-nav-preview,
.smc-e-event-nav-prev:focus-visible .smc-e-event-nav-preview {
    margin-right: 0;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Nächstes Event: Vorschau aufschieben */

.smc-e-event-nav-next:hover .smc-e-event-nav-preview,
.smc-e-event-nav-next:focus-visible .smc-e-event-nav-preview {
    margin-left: 0;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* =========================================
   Hover / Fokus
   ========================================= */

.smc-e-event-nav-link:hover,
.smc-e-event-nav-link:focus-visible {
    color: var(--e-global-color-primary) !important;
}


/* ==========================================
   07. RESPONSIVE – BIS 1200 PX
   ========================================== */

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

    /* Header */
    .smc-e-single-header {
        width: 90vw;
        margin: 45px auto 25px;
    }

    /* Content */
    .smc-e-single-content {
        width: 90vw;
        margin: 0 auto 45px;
    }

    /* Beschreibung */
    .smc-e-single-description {
        width: 90vw;
    }

	.smc-e-event-nav-container {
        width: 90vw;
        margin: 0 auto 45px;
    }
}


/* ==========================================
   08. RESPONSIVE – BIS 1024 PX
   ========================================== */

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

    /* Content-Grid: einspaltig */
    .smc-e-single-content {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: max-content max-content max-content !important;
        column-gap: 0 !important;
        row-gap: 24px !important;
    }

    /* Beitragsbild */
    .smc-e-single-content .smc-e-single-image {
        grid-column: 1;
        grid-row: 1;
    }

    /* Metadaten */
    .smc-e-single-content .smc-e-single-meta {
        grid-column: 1;
        grid-row: 2;
    }

    /* Details */
    .smc-e-single-content .smc-e-single-details {
        grid-column: 1;
        grid-row: 3;
    }
}


/* ==========================================
   09. RESPONSIVE – BIS 767 PX
   ========================================== */

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

    /* Header */
    .smc-e-single-header {
        width: 100%;
        padding: 0 20px !important;
    }

    /* Content */
    .smc-e-single-content {
        width: 100%;
        padding: 0 20px !important;
    }

    /* Beschreibung */
    .smc-e-single-description {
        width: 100%;
        padding: 0 20px !important;
    }

	.smc-e-event-nav-container {
        width: 100%;
        padding: 0 20px !important;
    }

    .smc-e-event-navigation {
        gap: 16px;
    }

    .smc-e-event-nav-top {
        gap: 6px;
        min-height: 40px;
    }

    .smc-e-event-nav-title {
        font-size: 1rem;
    }

    .smc-e-event-nav-preview {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        margin-right: -46px;
    }

    .smc-e-event-nav-next .smc-e-event-nav-preview {
        margin-right: 0;
        margin-left: -46px;
    }

    .smc-e-event-nav-image {
        width: 40px;
        height: 40px;
    }
}/* End custom CSS */