/* ============================================================
   EventBoard — Frontend Styles
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --eb-primary: #2563eb;
    --eb-primary-hover: #1d4ed8;
    --eb-text: #1e293b;
    --eb-text-hover: #0f172a;
    --eb-muted: #64748b;
    --eb-border: #e2e8f0;
    --eb-bg: #ffffff;
    --eb-bg-alt: #f8fafc;
    --eb-card-bg: #ffffff;
    --eb-sidebar-bg: #ffffff;
    --eb-success: #16a34a;
    --eb-warning: #ea580c;
    --eb-danger: #dc2626;
    --eb-badge-bg: #f1f5f9;
    --eb-badge-text: #1e293b;

    /* Typografie — Defaults erben von Theme */
    --eb-font-family: inherit;
    --eb-font-family-heading: inherit;
    --eb-font-size-base: 1rem;
    --eb-font-size-h1: 2rem;
    --eb-font-size-h2: 1.5rem;
    --eb-font-size-h3: 1.25rem;
    --eb-font-weight-heading: 700;
    --eb-line-height: 1.6;

    --eb-gap: 24px;
    --eb-radius: 12px;
    --eb-radius-sm: 8px;
    --eb-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --eb-shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --eb-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
    --eb-transition: .25s cubic-bezier(.4,0,.2,1);
    --eb-columns: 3;
    --eb-image-ratio: 56.25%;
    --eb-container-bg: transparent;
    --eb-title-font: inherit;
    --eb-title-size: 1.125rem;
    --eb-title-weight: 600;
    --eb-date-size: .85rem;
    --eb-desc-size: .9rem;
    --eb-badge-bg: var(--eb-primary);
    --eb-badge-color: #fff;
    --eb-ticket-bg: var(--eb-primary);
    --eb-ticket-color: #fff;
    --eb-ticket-hover-bg: var(--eb-primary-hover);
    --eb-ticket-radius: 8px;
    --eb-cal-cell-bg: #fff;
    --eb-cal-today: var(--eb-primary);
    --eb-cal-dot: var(--eb-primary);
}

/* ---------- Global Reset ---------- */
.eb-events,
.eb-countdown,
.eb-single-event {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--eb-text);
    background: var(--eb-container-bg);
}

.eb-events *,
.eb-countdown *,
.eb-single-event * {
    box-sizing: border-box;
}

/* ---------- Loading State ---------- */
.eb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--eb-muted);
    font-size: .95rem;
}

.eb-loading::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid var(--eb-border);
    border-top-color: var(--eb-primary);
    border-radius: 50%;
    animation: eb-spin .7s linear infinite;
    margin-right: 10px;
}

@keyframes eb-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Empty State ---------- */
.eb-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--eb-muted);
    font-size: 1rem;
}

.eb-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: .4;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.eb-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: var(--eb-gap);
    align-items: center;
}

.eb-filter-bar select,
.eb-filter-bar input[type="text"],
.eb-filter-bar input[type="date"] {
    padding: 8px 14px;
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-sm);
    font-size: .9rem;
    color: var(--eb-text);
    background: var(--eb-bg);
    transition: border-color var(--eb-transition);
    outline: none;
    min-width: 140px;
}

.eb-filter-bar select:focus,
.eb-filter-bar input:focus {
    border-color: var(--eb-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.eb-filter-bar .eb-filter-search {
    flex: 1;
    min-width: 200px;
}

/* ============================================================
   BADGES
   ============================================================ */
.eb-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 6px;
    line-height: 1.3;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.eb-badge--primary { background: var(--eb-badge-bg); color: var(--eb-badge-color); }
.eb-badge--free { background: #dcfce7; color: #166534; }
.eb-badge--sold-out { background: #fee2e2; color: #991b1b; }
.eb-badge--past { background: #f1f5f9; color: #64748b; }
.eb-badge--cancelled { background: #fee2e2; color: #991b1b; }
.eb-badge--postponed { background: #fef3c7; color: #92400e; }
.eb-badge--online { background: #ede9fe; color: #5b21b6; }
.eb-badge--category { background: #f0f9ff; color: #0369a1; }

.eb-card-image-wrap {
    position: relative;
    overflow: hidden;
}

.eb-card-image-wrap .eb-badge {
    position: absolute;
    z-index: 2;
}

.eb-card-image-wrap .eb-badge[data-pos="top-left"] { top: 12px; left: 12px; }
.eb-card-image-wrap .eb-badge[data-pos="top-right"] { top: 12px; right: 12px; }
.eb-card-image-wrap .eb-badge[data-pos="bottom-left"] { bottom: 12px; left: 12px; }
.eb-card-image-wrap .eb-badge[data-pos="bottom-right"] { bottom: 12px; right: 12px; }

/* ============================================================
   CARDS LAYOUT
   ============================================================ */
.eb-grid {
    display: grid;
    grid-template-columns: repeat(var(--eb-columns), 1fr);
    gap: var(--eb-gap);
}

.eb-card {
    background: var(--eb-bg);
    border-radius: var(--eb-radius);
    overflow: hidden;
    box-shadow: var(--eb-shadow);
    transition: transform var(--eb-transition), box-shadow var(--eb-transition);
    display: flex;
    flex-direction: column;
}

.eb-card a {
    text-decoration: none;
    color: inherit;
}

/* Hover effects */
.eb-card[data-hover="lift"]:hover {
    transform: translateY(-6px);
    box-shadow: var(--eb-shadow-lg);
}

.eb-card[data-hover="glow"]:hover {
    box-shadow: 0 0 0 3px rgba(37,99,235,.15), var(--eb-shadow-md);
}

.eb-card[data-hover="scale"]:hover {
    transform: scale(1.03);
    box-shadow: var(--eb-shadow-lg);
}

.eb-card-image {
    width: 100%;
    padding-top: var(--eb-image-ratio);
    background-color: var(--eb-bg-alt);
    position: relative;
    overflow: hidden;
}
.eb-card-image img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: var(--eb-img-fit, cover);
    object-position: var(--eb-img-pos, center center);
    display: block;
    border-radius: inherit;
    /* überschreibt aggressive Theme-Defaults wie height: auto !important */
    max-width: 100%;
}

.eb-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--eb-image-ratio);
    background: linear-gradient(135deg, var(--eb-bg-alt) 0%, var(--eb-border) 100%);
}

.eb-card-image--placeholder svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    opacity: .25;
}

.eb-card-body {
    padding: 16px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eb-card-date {
    font-size: var(--eb-date-size);
    color: var(--eb-primary);
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.eb-card-date svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.eb-card-title {
    font-family: var(--eb-title-font);
    font-size: var(--eb-title-size);
    font-weight: var(--eb-title-weight);
    margin: 0 0 8px;
    line-height: 1.35;
    color: var(--eb-text);
}

.eb-card-title a:hover {
    color: var(--eb-primary);
}

.eb-card-excerpt {
    font-size: var(--eb-desc-size);
    color: var(--eb-muted);
    line-height: 1.55;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eb-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .8rem;
    color: var(--eb-muted);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--eb-border);
}

.eb-card-meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Tags-Chips ── */
.eb-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.eb-card-tag {
    display: inline-block;
    font-size: .72rem;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--eb-bg-alt);
    color: var(--eb-muted);
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

/* ── Preis-Highlight ──
   inline-block + line-height, damit padding/background/border-radius/border
   aus dem Elementor-Style-Tab sauber greifen (Badge-Look ist optional) */
.eb-card-meta-price {
    display: inline-flex;
    align-items: center;
    color: var(--eb-primary);
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

/* ── Card-Actions (Ticket-Button im Card-Body) ── */
.eb-card-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.eb-card-actions .eb-ticket-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--eb-ticket-bg, var(--eb-primary));
    color: var(--eb-ticket-color, #fff);
    border-radius: var(--eb-ticket-radius, 6px);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--eb-transition);
}
.eb-card-actions .eb-ticket-btn:hover {
    background: var(--eb-ticket-hover-bg, var(--eb-primary-hover, var(--eb-primary)));
}
.eb-card-actions .eb-ticket-btn svg {
    width: 14px;
    height: 14px;
}

.eb-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.eb-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--eb-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================================
   TICKET BUTTON
   ============================================================ */
.eb-ticket-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--eb-ticket-bg);
    color: var(--eb-ticket-color);
    border: none;
    border-radius: var(--eb-ticket-radius);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--eb-transition), transform var(--eb-transition);
}

.eb-ticket-btn:hover {
    background: var(--eb-ticket-hover-bg);
    transform: translateY(-1px);
}

.eb-ticket-btn--sold-out {
    background: var(--eb-muted);
    cursor: not-allowed;
    opacity: .7;
}

.eb-ticket-btn--sold-out:hover {
    background: var(--eb-muted);
    transform: none;
}

/* ============================================================
   LIST LAYOUT
   ============================================================ */
.eb-list {
    display: flex;
    flex-direction: column;
    gap: var(--eb-gap);
}

.eb-list-item {
    display: flex;
    gap: 20px;
    background: var(--eb-bg);
    border-radius: var(--eb-radius);
    box-shadow: var(--eb-shadow);
    overflow: hidden;
    transition: box-shadow var(--eb-transition);
}

.eb-list-item:hover {
    box-shadow: var(--eb-shadow-md);
}

.eb-list-item a {
    text-decoration: none;
    color: inherit;
}

.eb-list-date-col {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--eb-primary);
    color: #fff;
    text-align: center;
}

.eb-list-date-day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.eb-list-date-month {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 4px;
}

.eb-list-date-year {
    font-size: .7rem;
    opacity: .8;
}

.eb-list-image {
    width: 160px;
    flex-shrink: 0;
    background-color: var(--eb-bg-alt);
    overflow: hidden;
    position: relative;
}
.eb-list-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: var(--eb-img-fit, cover);
    object-position: var(--eb-img-pos, center center);
    display: block;
    max-width: 100%;
}

.eb-list-content {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eb-list-title {
    font-family: var(--eb-title-font);
    font-size: var(--eb-title-size);
    font-weight: var(--eb-title-weight);
    margin: 0 0 6px;
    line-height: 1.35;
}

.eb-list-title a:hover {
    color: var(--eb-primary);
}

.eb-list-time {
    font-size: var(--eb-date-size);
    color: var(--eb-primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.eb-list-excerpt {
    font-size: var(--eb-desc-size);
    color: var(--eb-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eb-list-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 16px 20px;
    gap: 8px;
}

/* ============================================================
   CALENDAR LAYOUT
   ============================================================ */
.eb-calendar {
    background: var(--eb-bg);
    border-radius: var(--eb-radius);
    box-shadow: var(--eb-shadow);
    overflow: hidden;
}

.eb-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--eb-primary);
    color: #fff;
}

.eb-calendar-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.eb-calendar-nav {
    display: flex;
    gap: 8px;
}

.eb-calendar-nav button {
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--eb-transition);
}

.eb-calendar-nav button:hover {
    background: rgba(255,255,255,.35);
}

.eb-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--eb-bg-alt);
    border-bottom: 1px solid var(--eb-border);
}

.eb-calendar-weekday {
    text-align: center;
    padding: 10px 4px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--eb-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.eb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.eb-calendar-cell {
    min-height: 80px;
    padding: 6px 8px;
    border-right: 1px solid var(--eb-border);
    border-bottom: 1px solid var(--eb-border);
    background: var(--eb-cal-cell-bg);
    cursor: pointer;
    transition: background var(--eb-transition);
    position: relative;
}

.eb-calendar-cell:nth-child(7n) {
    border-right: none;
}

.eb-calendar-cell:hover {
    background: var(--eb-bg-alt);
}

.eb-calendar-cell--other {
    background: var(--eb-bg-alt);
    opacity: .5;
}

.eb-calendar-cell--today {
    background: rgba(37,99,235,.04);
}

.eb-calendar-cell--today .eb-calendar-day {
    background: var(--eb-cal-today);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eb-calendar-day {
    font-size: .85rem;
    font-weight: 600;
    color: var(--eb-text);
    margin-bottom: 4px;
}

.eb-calendar-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.eb-calendar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--eb-cal-dot);
}

.eb-calendar-event-title {
    font-size: .7rem;
    line-height: 1.2;
    padding: 2px 4px;
    background: rgba(37,99,235,.08);
    color: var(--eb-primary);
    border-radius: 3px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.eb-calendar-day-popup {
    position: fixed;
    z-index: 10000;
    background: var(--eb-bg);
    border-radius: var(--eb-radius);
    box-shadow: var(--eb-shadow-lg);
    padding: 16px;
    min-width: 280px;
    max-width: 360px;
    border: 1px solid var(--eb-border);
}

.eb-calendar-day-popup h4 {
    margin: 0 0 10px;
    font-size: .95rem;
    color: var(--eb-text);
}

.eb-calendar-day-popup .eb-popup-event {
    padding: 8px 0;
    border-bottom: 1px solid var(--eb-border);
}

.eb-calendar-day-popup .eb-popup-event:last-child {
    border-bottom: none;
}

.eb-calendar-day-popup .eb-popup-event a {
    color: var(--eb-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
}

.eb-calendar-day-popup .eb-popup-event-time {
    font-size: .8rem;
    color: var(--eb-muted);
    margin-top: 2px;
}

/* ============================================================
   TIMELINE LAYOUT (v2.2)
   - Achsen-Position: links (Standard) | mittig
   - Bild-Position: top | left | right | alt (Zickzack) | none
   ============================================================ */
.eb-timeline {
    position: relative;
    /* KEINE Default-Variablen hier — sonst überschreiben sie die
       Elementor-Werte, die auf .eb-events (Parent) gesetzt werden.
       Defaults stattdessen direkt im var()-Fallback unten. */
}

/* ── Achse links (Default) ── */
.eb-tl-axis-left {
    padding-left: 40px;
}
.eb-tl-axis-left::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: var(--eb-tl-axis-w, 2px);
    background: var(--eb-tl-axis, var(--eb-border));
}
.eb-tl-axis-left .eb-timeline-item {
    position: relative;
    margin-bottom: var(--eb-gap);
    padding-left: 30px;
}
.eb-tl-axis-left .eb-timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * (var(--eb-tl-dot-size, 12px) + var(--eb-tl-axis-w, 2px) + 14px));
    top: 20px;
    width: var(--eb-tl-dot-size, 12px);
    height: var(--eb-tl-dot-size, 12px);
    border-radius: 50%;
    background: var(--eb-tl-dot, var(--eb-primary));
    border: 3px solid var(--eb-bg);
    box-shadow: 0 0 0 2px var(--eb-tl-dot, var(--eb-primary));
    z-index: 1;
}

/* ── Achse mittig ── */
.eb-tl-axis-center {
    padding: 0;
}
.eb-tl-axis-center::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: var(--eb-tl-axis-w, 2px);
    background: var(--eb-tl-axis, var(--eb-border));
}
.eb-tl-axis-center .eb-timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: var(--eb-gap);
    box-sizing: border-box;
}
.eb-tl-axis-center .eb-timeline-item::before {
    content: '';
    position: absolute;
    top: 24px;
    width: var(--eb-tl-dot-size, 12px);
    height: var(--eb-tl-dot-size, 12px);
    border-radius: 50%;
    background: var(--eb-tl-dot, var(--eb-primary));
    border: 3px solid var(--eb-bg);
    box-shadow: 0 0 0 2px var(--eb-tl-dot, var(--eb-primary));
    z-index: 1;
}
.eb-tl-axis-center .eb-tl-side-left {
    margin-right: auto;
    padding-right: 32px;
}
.eb-tl-axis-center .eb-tl-side-left::before {
    right: calc(-1 * (var(--eb-tl-dot-size, 12px) / 2));
}
.eb-tl-axis-center .eb-tl-side-right {
    margin-left: 50%;
    padding-left: 32px;
}
.eb-tl-axis-center .eb-tl-side-right::before {
    left: calc(-1 * (var(--eb-tl-dot-size, 12px) / 2));
}
/* alternierend bei Achse mittig automatisch über nth-child */
.eb-tl-axis-center .eb-tl-img-alt:nth-child(odd) {
    /* CSS-Hook für Sicherheit, JS markiert eh per .eb-tl-side-* */
}

/* ── Monats-Marker auf der Achse ── */
.eb-timeline-month-marker {
    position: relative;
    margin: calc(var(--eb-gap) * 1.2) 0 calc(var(--eb-gap) * 0.8);
    z-index: 2;
}
.eb-timeline-month-marker span {
    display: inline-block;
    background: var(--eb-bg, #fff);
    color: var(--eb-tl-dot, var(--eb-primary));
    border: 2px solid var(--eb-tl-axis, var(--eb-border));
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 700;
    font-size: var(--eb-month-marker-size, 13px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 0 0 4px var(--eb-bg, #fff);
}

/* Achse links: Marker auf der Linie ausrichten */
.eb-tl-axis-left .eb-timeline-month-marker {
    margin-left: -10px;
}
.eb-tl-axis-left .eb-timeline-month-marker span {
    margin-left: 0;
}

/* Achse mittig: Marker zentrieren */
.eb-tl-axis-center .eb-timeline-month-marker {
    text-align: center;
    width: 100%;
}

@media (max-width: 720px) {
    .eb-tl-axis-center .eb-timeline-month-marker {
        text-align: left;
        margin-left: -10px;
    }
}

.eb-timeline-card {
    background: var(--eb-bg);
    border-radius: var(--eb-radius);
    box-shadow: var(--eb-shadow-md);
    overflow: hidden;
    transition: transform var(--eb-transition), box-shadow var(--eb-transition);
}

/* Hover-Effekte konsistent zu .eb-card */
.eb-timeline-card[data-hover="lift"]:hover {
    transform: translateY(-4px);
    box-shadow: var(--eb-shadow-lg);
}
.eb-timeline-card[data-hover="glow"]:hover {
    box-shadow: 0 0 0 3px rgba(37,99,235,.15), var(--eb-shadow-lg);
}
.eb-timeline-card[data-hover="scale"]:hover {
    transform: scale(1.02);
    box-shadow: var(--eb-shadow-lg);
}
.eb-timeline-card[data-hover="none"]:hover {
    box-shadow: var(--eb-shadow-md);
}

.eb-timeline-date {
    font-size: var(--eb-date-size);
    color: var(--eb-primary);
    font-weight: 700;
    margin-bottom: 8px;
}
.eb-timeline-card .eb-card-body {
    padding: 16px 20px;
}

/* ── Bild-Container ── */
.eb-timeline-image {
    width: 100%;
    height: var(--eb-img-h, 180px);
    overflow: hidden;
    flex-shrink: 0;
}
.eb-timeline-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: var(--eb-img-fit, cover);
    object-position: var(--eb-img-pos, center center);
    display: block;
    /* Border-Radius vom Container erben damit auch innere img-Tag clipping bekommt */
    border-radius: inherit;
    max-width: 100%;
}

/* ── Side-by-side Layouts (left / right / alt) ── */
.eb-tl-img-left .eb-timeline-card,
.eb-tl-img-right .eb-timeline-card,
.eb-tl-img-alt .eb-timeline-card {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.eb-tl-img-left .eb-timeline-image,
.eb-tl-img-right .eb-timeline-image,
.eb-tl-img-alt .eb-timeline-image {
    width: var(--eb-img-w, 40%);
    height: auto;
    min-height: var(--eb-img-h, 180px);
    align-self: stretch;
}
.eb-tl-img-left .eb-timeline-image img,
.eb-tl-img-right .eb-timeline-image img,
.eb-tl-img-alt .eb-timeline-image img {
    /* in side-by-side füllt das img den verfügbaren Container */
    position: absolute;
    inset: 0;
}
.eb-tl-img-left .eb-timeline-image,
.eb-tl-img-right .eb-timeline-image,
.eb-tl-img-alt .eb-timeline-image {
    position: relative;
}
.eb-tl-img-left .eb-card-body,
.eb-tl-img-right .eb-card-body,
.eb-tl-img-alt .eb-card-body {
    flex: 1;
    padding: var(--eb-img-text-gap, 24px);
    align-self: center;
}
/* alternierend: gerade Items haben Bild links, ungerade rechts */
.eb-tl-img-alt .eb-tl-side-right .eb-timeline-card {
    flex-direction: row-reverse;
}

/* Mobile: alle Side-by-side wieder vertikal */
@media (max-width: 720px) {
    .eb-tl-img-left .eb-timeline-card,
    .eb-tl-img-right .eb-timeline-card,
    .eb-tl-img-alt .eb-timeline-card {
        flex-direction: column;
    }
    .eb-tl-img-left .eb-timeline-image,
    .eb-tl-img-right .eb-timeline-image,
    .eb-tl-img-alt .eb-timeline-image {
        width: 100%;
        height: 220px;
    }
    .eb-tl-axis-center .eb-timeline-item {
        width: 100%;
        margin-left: 0 !important;
        padding-left: 40px !important;
        padding-right: 0 !important;
    }
    .eb-tl-axis-center::before {
        left: 15px;
        transform: none;
    }
    .eb-tl-axis-center .eb-timeline-item::before {
        left: -25px;
        right: auto;
    }
}

/* Auch Cards/Masonry-Bilder respektieren object-fit/position */
.eb-card-image img {
    object-fit: var(--eb-img-fit, cover);
    object-position: var(--eb-img-pos, center);
}

/* ============================================================
   MASONRY LAYOUT
   ============================================================ */
.eb-masonry {
    column-count: var(--eb-columns);
    column-gap: var(--eb-gap);
}

.eb-masonry .eb-card {
    break-inside: avoid;
    margin-bottom: var(--eb-gap);
}

/* ============================================================
   SLIDER LAYOUT
   ============================================================ */
.eb-slider-wrap {
    position: relative;
    overflow: hidden;
}

.eb-slider {
    display: flex;
    gap: var(--eb-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.eb-slider::-webkit-scrollbar {
    display: none;
}

.eb-slider .eb-card {
    flex: 0 0 calc((100% - var(--eb-gap) * (var(--eb-columns) - 1)) / var(--eb-columns));
    scroll-snap-align: start;
    min-width: 280px;
}

.eb-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.eb-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--eb-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--eb-transition), transform var(--eb-transition);
}

.eb-slider-dot--active {
    background: var(--eb-primary);
    transform: scale(1.2);
}

.eb-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--eb-bg);
    box-shadow: var(--eb-shadow-md);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 1.2rem;
    color: var(--eb-text);
    transition: background var(--eb-transition), box-shadow var(--eb-transition);
}

.eb-slider-arrow:hover {
    background: var(--eb-bg-alt);
    box-shadow: var(--eb-shadow-lg);
}

.eb-slider-arrow--prev { left: 8px; }
.eb-slider-arrow--next { right: 8px; }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.eb-countdown {
    --eb-cd-number-size: 3rem;
    --eb-cd-number-weight: 700;
    --eb-cd-number-color: var(--eb-text);
    --eb-cd-label-size: .85rem;
    --eb-cd-label-color: var(--eb-muted);
    --eb-cd-sep-color: var(--eb-muted);
    --eb-cd-bg: transparent;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--eb-cd-bg);
}

.eb-countdown-title {
    text-align: center;
    font-family: var(--eb-title-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--eb-text);
    margin-bottom: 16px;
}

.eb-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.eb-countdown-number {
    font-size: var(--eb-cd-number-size);
    font-weight: var(--eb-cd-number-weight);
    color: var(--eb-cd-number-color);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    text-align: center;
}

.eb-countdown-label {
    font-size: var(--eb-cd-label-size);
    color: var(--eb-cd-label-color);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.eb-countdown-separator {
    font-size: calc(var(--eb-cd-number-size) * .7);
    color: var(--eb-cd-sep-color);
    font-weight: 700;
    align-self: flex-start;
    margin-top: calc(var(--eb-cd-number-size) * .15);
}

.eb-countdown-expired {
    text-align: center;
    font-size: 1rem;
    color: var(--eb-muted);
    padding: 20px;
}

/* ============================================================
   RSVP FORM
   ============================================================ */
.eb-rsvp-form {
    background: var(--eb-bg);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    padding: 24px;
    max-width: 480px;
}

.eb-rsvp-form h3 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--eb-text);
}

.eb-rsvp-field {
    margin-bottom: 14px;
}

.eb-rsvp-field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--eb-text);
    margin-bottom: 4px;
}

.eb-rsvp-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-sm);
    font-size: .95rem;
    transition: border-color var(--eb-transition);
    outline: none;
}

.eb-rsvp-field input:focus {
    border-color: var(--eb-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.eb-rsvp-submit {
    width: 100%;
    padding: 12px;
    background: var(--eb-primary);
    color: #fff;
    border: none;
    border-radius: var(--eb-radius-sm);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--eb-transition);
}

.eb-rsvp-submit:hover {
    background: var(--eb-primary-hover);
}

.eb-rsvp-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.eb-rsvp-success {
    background: #dcfce7;
    color: #166534;
    padding: 14px 18px;
    border-radius: var(--eb-radius-sm);
    font-weight: 600;
    text-align: center;
}

.eb-rsvp-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: var(--eb-radius-sm);
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
}

/* ============================================================
   iCAL / SHARE BUTTONS
   ============================================================ */
.eb-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.eb-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--eb-radius-sm);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--eb-transition);
    border: 1px solid var(--eb-border);
    color: var(--eb-text);
    background: var(--eb-bg);
    cursor: pointer;
}

.eb-share-btn:hover {
    opacity: .8;
    border-color: var(--eb-primary);
    color: var(--eb-primary);
}

.eb-share-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.eb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: var(--eb-gap);
    flex-wrap: wrap;
}

.eb-pagination button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    min-height: 38px;
    min-width: 38px;
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-sm);
    background: var(--eb-bg);
    color: var(--eb-text);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--eb-transition);
    line-height: 1;
}

.eb-pagination button:hover:not(:disabled) {
    border-color: var(--eb-primary);
    color: var(--eb-primary);
}

.eb-pagination button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.eb-pagination button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

.eb-pagination-info {
    font-size: .85rem;
    color: var(--eb-muted);
    padding: 0 8px;
    line-height: 38px;
}

/* ── Numbered Pages ── */
.eb-pagination .eb-page-num {
    padding: 8px 14px;
    min-width: 38px;
}
.eb-pagination .eb-page-num--active {
    background: var(--eb-primary);
    color: #fff;
    border-color: var(--eb-primary);
    cursor: default;
}
.eb-pagination .eb-page-num--active:hover {
    background: var(--eb-primary);
    color: #fff;
}
.eb-pagination .eb-page-ellipsis {
    color: var(--eb-muted);
    padding: 0 4px;
    line-height: 38px;
    user-select: none;
}

/* ── Load more Button ── */
.eb-pagination--loadmore {
    justify-content: center;
}
.eb-pagination .eb-page-loadmore {
    padding: 12px 28px;
    border: 1.5px solid var(--eb-primary);
    background: var(--eb-bg);
    color: var(--eb-primary);
    border-radius: var(--eb-radius-sm);
    gap: 8px;
}
.eb-pagination .eb-page-loadmore:hover {
    background: var(--eb-primary);
    color: #fff;
}
.eb-pagination .eb-page-loadmore svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   SINGLE EVENT TEMPLATE
   ============================================================ */
.eb-single-event {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.eb-single-hero {
    position: relative;
    border-radius: var(--eb-radius);
    overflow: hidden;
    margin-bottom: 32px;
}

.eb-single-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.eb-single-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff;
}

.eb-single-hero-title {
    font-family: var(--eb-title-font);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.eb-single-hero .eb-badge {
    margin-bottom: 8px;
}

.eb-single-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.eb-single-detail {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: var(--eb-bg-alt);
    border-radius: var(--eb-radius-sm);
}

.eb-single-detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--eb-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eb-single-detail-icon svg {
    width: 20px;
    height: 20px;
}

.eb-single-detail-label {
    font-size: .75rem;
    color: var(--eb-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 2px;
}

.eb-single-detail-value {
    font-size: .95rem;
    font-weight: 600;
    color: var(--eb-text);
}

.eb-single-content {
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 32px;
}

.eb-single-content h2,
.eb-single-content h3 {
    margin-top: 2rem;
    margin-bottom: .75rem;
}

/* Schedule / Ablaufplan */
.eb-single-schedule {
    margin-bottom: 32px;
}

.eb-single-schedule h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.eb-schedule-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--eb-border);
}

.eb-schedule-item:last-child {
    border-bottom: none;
}

.eb-schedule-time {
    flex-shrink: 0;
    width: 70px;
    font-weight: 700;
    color: var(--eb-primary);
    font-size: .9rem;
}

.eb-schedule-info h4 {
    margin: 0 0 4px;
    font-size: .95rem;
    font-weight: 600;
}

.eb-schedule-info p {
    margin: 0;
    font-size: .85rem;
    color: var(--eb-muted);
}

/* Gallery */
.eb-single-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.eb-single-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--eb-radius-sm);
    transition: transform var(--eb-transition);
    cursor: pointer;
}

.eb-single-gallery img:hover {
    transform: scale(1.03);
}

/* Related Events */
.eb-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--eb-border);
}

.eb-related h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 20px;
}

/* ============================================================
   NEXT EVENT WIDGET
   ============================================================ */
.eb-next-event-card {
    background: var(--eb-bg);
    border-radius: var(--eb-radius);
    box-shadow: var(--eb-shadow);
    overflow: hidden;
    display: flex;
    max-width: 600px;
}

.eb-next-event-card .eb-next-image {
    width: 200px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.eb-next-event-card .eb-next-content {
    padding: 20px;
    flex: 1;
}

.eb-next-event-card .eb-next-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--eb-muted);
    margin-bottom: 4px;
}

.eb-next-event-card .eb-next-title {
    font-family: var(--eb-title-font);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.eb-next-event-card .eb-next-title a {
    color: var(--eb-text);
    text-decoration: none;
}

.eb-next-event-card .eb-next-title a:hover {
    color: var(--eb-primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --eb-columns: 2;
    }

    .eb-filter-bar {
        flex-direction: column;
    }

    .eb-filter-bar select,
    .eb-filter-bar input {
        width: 100%;
    }

    .eb-list-item {
        flex-direction: column;
    }

    .eb-list-date-col {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        padding: 10px 16px;
    }

    .eb-list-date-day {
        font-size: 1.2rem;
    }

    .eb-list-image {
        width: 100%;
        height: 180px;
    }

    .eb-list-actions {
        flex-direction: row;
        padding: 12px 20px;
        border-top: 1px solid var(--eb-border);
    }

    .eb-calendar-cell {
        min-height: 50px;
        padding: 4px;
    }

    .eb-calendar-event-title {
        display: none;
    }

    .eb-tl-axis-left {
        padding-left: 30px;
    }
    .eb-tl-axis-left::before {
        left: 10px;
    }
    .eb-tl-axis-left .eb-timeline-item {
        padding-left: 20px;
    }
    .eb-tl-axis-left .eb-timeline-item::before {
        left: -25px;
    }

    .eb-countdown {
        gap: 12px;
    }

    .eb-countdown-number {
        font-size: calc(var(--eb-cd-number-size) * .7);
    }

    .eb-single-hero-image {
        height: 250px;
    }

    .eb-single-hero-title {
        font-size: 1.4rem;
    }

    .eb-single-details {
        grid-template-columns: 1fr;
    }

    .eb-slider .eb-card {
        min-width: 260px;
    }

    .eb-masonry {
        column-count: 2;
    }

    .eb-next-event-card {
        flex-direction: column;
    }

    .eb-next-event-card .eb-next-image {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 480px) {
    :root {
        --eb-columns: 1;
        --eb-gap: 16px;
    }

    .eb-card-body {
        padding: 14px 16px 16px;
    }

    .eb-masonry {
        column-count: 1;
    }

    .eb-slider .eb-card {
        min-width: 240px;
        flex: 0 0 85%;
    }

    .eb-slider-arrow {
        width: 32px;
        height: 32px;
    }

    .eb-countdown {
        gap: 8px;
        flex-wrap: wrap;
    }

    .eb-countdown-number {
        font-size: calc(var(--eb-cd-number-size) * .55);
    }

    .eb-rsvp-form {
        padding: 18px;
    }

    .eb-calendar-header {
        padding: 12px 14px;
    }

    .eb-calendar-title {
        font-size: .95rem;
    }

    .eb-single-hero-title {
        font-size: 1.15rem;
    }

    .eb-single-hero-overlay {
        padding: 30px 16px 16px;
    }

    .eb-share-buttons {
        flex-direction: column;
    }

    .eb-share-btn {
        justify-content: center;
    }
}

/* Map-Provider hint im Single-Event */
.eb-map-provider {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-left: 4px;
}

/* Share-Button als <button> – gleiches Aussehen wie <a class="eb-share-btn"> */
button.eb-share-btn {
    background: none;
    border: 1px solid var(--eb-border, #e2e8f0);
    cursor: pointer;
    font: inherit;
    color: inherit;
}

/* ============================================================
   Single-Event v2: 2-Spalten-Layout (Hero full + Grid darunter)
   ============================================================ */

/* v2-Wrapper erlaubt volle Elementor-Sektion-Breite (überschreibt Legacy max-width: 900px) */
.eb-single-event.eb-single-event--v2 {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}
.eb-single-event--v2.eb-single-event--boxed {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.eb-single-event--v2.eb-single-event--stacked .eb-single-sidebar {
    position: static;
    margin-top: 32px;
}
.eb-single-event--v2.eb-single-event--sidebar-left .eb-single-grid {
    direction: rtl;
}
.eb-single-event--v2.eb-single-event--sidebar-left .eb-single-grid > * {
    direction: ltr;
}

.eb-single-event--v2 .eb-single-hero {
    margin-bottom: 32px;
    border-radius: var(--eb-radius);
    overflow: hidden;
    position: relative;
}
.eb-single-event--v2 .eb-single-hero-image {
    width: 100%;
    height: auto;
    display: block;
}
.eb-single-event--v2 .eb-single-hero-image--placeholder {
    height: 280px;
    background: linear-gradient(135deg, var(--eb-primary), color-mix(in srgb, var(--eb-primary) 60%, #7c3aed));
}
.eb-single-event--v2 .eb-single-hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px 28px;
    /* Overlay-Vars werden vom Widget-Control gesetzt; hier nur Defaults */
    background: linear-gradient(
        var(--eb-hero-overlay-direction, to top),
        var(--eb-hero-overlay-color, rgba(0,0,0,.7)),
        transparent
    );
    color: #fff;
}
.eb-single-event--v2 .eb-single-hero-title {
    font-size: var(--eb-font-size-h1);
    line-height: 1.15;
    margin: 8px 0 0;
    color: #fff;
    font-weight: var(--eb-font-weight-heading);
    font-family: var(--eb-font-family-heading);
}

/* ============================================================
   2.8.0 — Hero Modifier-Classes (set via prefix_class im Widget)
   ============================================================ */

/* Bild-Filter-Default (wird via CSS-Vars vom Widget überschrieben) */
.eb-single-event--v2 .eb-single-hero-image {
    transition: transform 0.4s ease;
}

/* Hover-Zoom: Toggle .eb-hero-zoom--yes am Wrapper */
.eb-hero-zoom--yes .eb-single-hero { overflow: hidden; }
.eb-hero-zoom--yes .eb-single-hero:hover .eb-single-hero-image {
    transform: scale(1.05);
}

/* Overlay-Type "solid" — wenn der Widget hero_overlay_type=solid setzt,
   wird die direction-Var nicht gesetzt → wir nutzen die Color als
   solid background. Achtung: das wird via Widget-Render zusätzlich als
   modifier-class gerendert (siehe render_hero). */
.eb-single-event--v2 .eb-single-hero--overlay-solid .eb-single-hero-overlay {
    background: var(--eb-hero-overlay-color, rgba(0,0,0,.7));
}
.eb-single-event--v2 .eb-single-hero--overlay-off .eb-single-hero-overlay {
    background: transparent;
}

/* Title-Position Modifier (gesetzt via prefix_class eb-hero-title-pos--*) */
.eb-hero-title-pos--top-left .eb-single-event--v2 .eb-single-hero-overlay,
.eb-single-event--v2.eb-hero-title-pos--top-left .eb-single-hero-overlay {
    bottom: auto;
    top: 0;
    background: linear-gradient(
        to bottom,
        var(--eb-hero-overlay-color, rgba(0,0,0,.7)),
        transparent
    );
}
.eb-hero-title-pos--center .eb-single-event--v2 .eb-single-hero-overlay,
.eb-single-event--v2.eb-hero-title-pos--center .eb-single-hero-overlay {
    top: 0; bottom: 0; left: 0; right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--eb-hero-overlay-color, rgba(0,0,0,.4));
}
.eb-hero-title-pos--bottom-center .eb-single-event--v2 .eb-single-hero-overlay,
.eb-single-event--v2.eb-hero-title-pos--bottom-center .eb-single-hero-overlay {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.eb-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 32px;
    align-items: start;
}

.eb-single-main {
    min-width: 0;
}

.eb-single-main .eb-single-content {
    font-family: var(--eb-font-family);
    font-size: var(--eb-font-size-base);
    line-height: var(--eb-line-height);
    color: var(--eb-text);
    margin-bottom: 32px;
}
.eb-single-main h2,
.eb-single-main .eb-single-schedule h2 {
    font-size: var(--eb-font-size-h2);
    font-weight: var(--eb-font-weight-heading);
    font-family: var(--eb-font-family-heading);
    margin: 0 0 16px;
    color: var(--eb-text);
}

.eb-single-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eb-side-card {
    background: var(--eb-sidebar-bg);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    padding: 20px;
    box-shadow: var(--eb-shadow);
}

.eb-side-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--eb-text);
    margin-bottom: 12px;
}

.eb-side-card--facts {
    padding: 8px 16px;
}

.eb-fact {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 4px;
    border-bottom: 1px solid var(--eb-border);
}
.eb-fact:last-child {
    border-bottom: 0;
}
.eb-fact-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: var(--eb-primary);
    margin-top: 2px;
}
.eb-fact-icon svg {
    width: 100%;
    height: 100%;
}
.eb-fact-body {
    flex: 1;
    min-width: 0;
}
.eb-fact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--eb-muted);
    font-weight: 600;
    margin-bottom: 2px;
}
.eb-fact-value {
    font-size: 0.95rem;
    color: var(--eb-text);
    font-weight: 500;
    line-height: 1.4;
}
.eb-fact-sub {
    font-size: 0.8rem;
    color: var(--eb-muted);
    margin-top: 2px;
}
.eb-fact-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--eb-primary);
    text-decoration: none;
    margin-top: 4px;
}
.eb-fact-link:hover {
    text-decoration: underline;
}
.eb-fact-slots {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: var(--eb-text);
}
.eb-fact-slots li {
    padding: 4px 0;
    border-bottom: 1px dashed var(--eb-border);
}
.eb-fact-slots li:last-child { border-bottom: 0; }

.eb-ticket-btn--block {
    width: 100%;
    justify-content: center;
}

.eb-side-card--share .eb-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.eb-side-card--share .eb-share-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
    justify-content: center;
}
.eb-side-card--share .eb-share-btn svg {
    width: 14px;
    height: 14px;
}

/* RSVP-Card im Sidebar */
.eb-side-card--rsvp .eb-rsvp-form {
    margin: 0;
}
.eb-side-card--rsvp h3 {
    margin-top: 0;
    font-size: 1rem;
}

/* Mobile: stack vertikal, Sidebar VOR Content (Anmelden zuerst sichtbar) */
@media (max-width: 900px) {
    .eb-single-grid {
        grid-template-columns: 1fr;
    }
    .eb-single-sidebar {
        position: static;
        order: -1;
    }
    .eb-side-card--share .eb-share-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Toast-Notification (Share-Feedback) */
.eb-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.25s ease;
    z-index: 9999;
    max-width: 90vw;
}
.eb-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =====================================================================
   Megamenu-Widget (.eb-mm) — gedacht für Container in Megamenüs
   Server-rendered HTML, voll stylebar via Elementor.
   ===================================================================== */

.eb-mm {
    --eb-mm-img-w: 240px;
    --eb-mm-gap: 24px;
    display: flex;
    align-items: stretch;
    gap: var(--eb-mm-gap);
    box-sizing: border-box;
    width: 100%;
}

.eb-mm.eb-mm-none { display: block; }

.eb-mm-col-image {
    flex: 0 0 var(--eb-mm-img-w);
    max-width: var(--eb-mm-img-w);
    /* Flex-Column → ermöglicht vertikale Bild-Ausrichtung via justify-content */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eb-mm-col-list {
    flex: 1 1 auto;
    min-width: 0;
}

.eb-mm-image {
    display: block;
    overflow: hidden;
    line-height: 0;
    width: 100%;
    /* Default-Ausrichtung „center"; wird per selectors_dictionary überschrieben */
    margin-left: auto;
    margin-right: auto;
}

.eb-mm-image img {
    display: block;
    width: 100%;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.eb-mm-img-hover-zoom .eb-mm-image:hover img { transform: scale(1.05); }
.eb-mm-img-hover-lift .eb-mm-image:hover img {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.eb-mm-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.eb-mm-item {
    list-style: none;
    margin: 0;
    transition: background-color 0.15s ease;
}

/* Trennlinie als Pseudo-Element → Länge & Ausrichtung unabhängig vom Item steuerbar */
.eb-mm-item + .eb-mm-item::before {
    content: "";
    display: block;
    width: 100%;
    border-top: 1px solid #e0e0e0;
    margin-right: auto;
    margin-left: 0;
    margin-bottom: 0;
}

.eb-mm-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.eb-mm-title {
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.eb-mm-subtitle {
    font-size: 0.875em;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.eb-mm-viewall {
    display: block;
    width: max-content;
    max-width: 100%;
    /* Default-Ausrichtung: links – via Choose-Control überschreibbar */
    margin-left: 0;
    margin-right: auto;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease, transform 0.2s ease;
}

.eb-mm-viewall:hover {
    transform: translateX(2px);
}

.eb-mm-empty {
    padding: 24px;
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Mobile: Spalten umbrechen */
@media (max-width: 640px) {
    .eb-mm {
        flex-direction: column;
    }
    .eb-mm-col-image,
    .eb-mm.eb-mm-right .eb-mm-col-image {
        flex: 0 0 auto;
        max-width: 100%;
        order: -1;
    }
}

/* ---------------------------------------------------------------------- */
/* 2.9.5 — Mobile Refinements für Single-Event-Widget v2                  */
/* Hero-Title, Overlay-Padding, Facts und Sidecards auf engen Viewports   */
/* lesbar machen. Greift unterhalb 640px (Phone-Range).                   */
/* ---------------------------------------------------------------------- */
@media (max-width: 640px) {
    .eb-single-event--v2 {
        --eb-font-size-h1: 1.5rem;
    }
    .eb-single-event--v2 .eb-single-hero {
        margin-bottom: 20px;
    }
    .eb-single-event--v2 .eb-single-hero-overlay {
        padding: 18px 16px;
    }
    .eb-single-event--v2 .eb-single-hero-title {
        font-size: clamp(1.25rem, 5.5vw, 1.6rem);
        line-height: 1.2;
    }
    .eb-single-event--v2 .eb-single-grid {
        gap: 16px;
    }
    .eb-single-event--v2 .eb-single-content {
        padding: 0;
    }
    .eb-single-event--v2 .eb-side-card {
        padding: 14px;
    }
    .eb-single-event--v2 .eb-fact {
        gap: 10px;
        align-items: flex-start;
    }
    .eb-single-event--v2 .eb-fact-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    .eb-single-event--v2 .eb-fact-icon svg {
        width: 18px;
        height: 18px;
    }
    .eb-single-event--v2 .eb-fact-label {
        font-size: 0.78rem;
    }
    .eb-single-event--v2 .eb-fact-value {
        font-size: 0.95rem;
        word-break: break-word;
    }
    .eb-single-event--v2 .eb-fact-sub {
        font-size: 0.85rem;
        word-break: break-word;
    }
    .eb-single-event--v2 .eb-share-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .eb-single-event--v2 .eb-share-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    .eb-single-event--v2 .eb-related .eb-grid {
        --eb-columns: 1;
        gap: 16px;
    }
    .eb-single-event--v2 .eb-related h2 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
}

/* ---------------------------------------------------------------------- */
/* 2.9.6 — Mobile-Grid Hard Override                                     */
/* Sicherstellt, dass Sidebar UNTERHALB des Contents kommt (statt schmal */
/* daneben) auf allen Tablets + Phones. Höhere Specificity + !important  */
/* damit Theme-/Elementor-Resets nichts überschreiben können.            */
/* ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .eb-single-event .eb-single-grid,
    .eb-single-event--v2 .eb-single-grid,
    .elementor-widget-eb_single_event .eb-single-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .eb-single-event .eb-single-sidebar,
    .eb-single-event--v2 .eb-single-sidebar,
    .elementor-widget-eb_single_event .eb-single-sidebar {
        position: static !important;
        order: -1 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .eb-single-event .eb-single-main,
    .eb-single-event--v2 .eb-single-main,
    .elementor-widget-eb_single_event .eb-single-main {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* ====================================================================== */
/* 2.10.0 — Modulare Single-Event-Widgets                                  */
/* Breadcrumbs, Event-Content, plus Mobile-Polish für die neuen Widgets    */
/* ====================================================================== */

/* ─── Breadcrumbs ───────────────────────────────────────────────────── */
.eb-breadcrumb {
    font-size: 0.875rem;
    line-height: 1.5;
}
.eb-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.eb-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.eb-breadcrumb-link {
    color: var(--eb-primary, #1a1a2e);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}
.eb-breadcrumb-link:hover {
    color: color-mix(in srgb, var(--eb-primary, #1a1a2e) 70%, #6366f1);
    text-decoration: underline;
}
.eb-breadcrumb-current {
    color: #64748b;
    font-weight: 500;
}
.eb-breadcrumb-separator {
    color: #cbd5e1;
    font-size: 1em;
    line-height: 1;
}
.eb-breadcrumb-home-icon {
    display: inline-flex;
    align-items: center;
}
.eb-breadcrumb-home-icon svg {
    width: 16px;
    height: 16px;
}

/* ─── Event-Content (Beschreibung) ──────────────────────────────────── */
.eb-event-content {
    color: #334155;
    line-height: 1.7;
    --eb-list-marker: #6366f1;
}
.eb-event-content > :first-child {
    margin-top: 0;
}
.eb-event-content > :last-child {
    margin-bottom: 0;
}
.eb-event-content :is(h1, h2, h3, h4, h5, h6) {
    color: #0f172a;
    margin: 1.5em 0 0.6em;
    line-height: 1.25;
    font-weight: 700;
}
.eb-event-content h1 { font-size: 2rem; }
.eb-event-content h2 { font-size: 1.6rem; }
.eb-event-content h3 { font-size: 1.3rem; }
.eb-event-content h4 { font-size: 1.1rem; }
.eb-event-content p {
    margin: 0 0 1em;
}
.eb-event-content :is(ul, ol) {
    margin: 0 0 1em 1.5em;
    padding-left: 0;
}
.eb-event-content :is(ul, ol) li::marker {
    color: var(--eb-list-marker);
}
.eb-event-content blockquote {
    margin: 1.5em 0;
    padding: 0.5em 1.2em;
    border-left: 4px solid var(--eb-primary, #6366f1);
    background: #f8fafc;
    color: #475569;
    font-style: italic;
}
.eb-event-content a {
    color: var(--eb-primary, #6366f1);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.eb-event-content a:hover {
    color: color-mix(in srgb, var(--eb-primary, #6366f1) 70%, #000);
}
.eb-event-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--eb-radius, 8px);
    margin: 1em 0;
}
.eb-event-content code {
    background: #f1f5f9;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}
.eb-event-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
}
.eb-event-content-empty {
    color: #94a3b8;
    font-style: italic;
}

/* ─── Schedule (modulares Widget) ───────────────────────────────────── */
.eb-single-schedule .eb-schedule-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}
.eb-single-schedule .eb-schedule-item:last-child {
    border-bottom: none;
}
.eb-single-schedule .eb-schedule-time {
    font-weight: 600;
    color: var(--eb-primary, #6366f1);
}
.eb-single-schedule .eb-schedule-info h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}
.eb-single-schedule .eb-schedule-info p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* ─── Gallery (modulares Widget) ────────────────────────────────────── */
.eb-single-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.eb-single-gallery a {
    display: block;
    overflow: hidden;
    border-radius: var(--eb-radius, 8px);
}
.eb-single-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.eb-gallery-zoom--yes .eb-single-gallery a:hover img {
    transform: scale(1.05);
}

/* ─── Share-Buttons (per-network färbbar) ───────────────────────────── */
.eb-share-btn {
    border-style: solid;
    border-width: 0;
    border-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.eb-share-btn:hover {
    transform: translateY(-1px);
}
.eb-share-btn--ical    {}
.eb-share-btn--google  {}
.eb-share-btn--facebook{}
.eb-share-btn--x       {}
.eb-share-btn--email   {}

/* ─── Mobile-Polish (max-width 640px) ───────────────────────────────── */
@media (max-width: 640px) {
    .eb-breadcrumb-list {
        gap: 6px;
        font-size: 0.8rem;
    }
    .eb-event-content h1 { font-size: 1.6rem; }
    .eb-event-content h2 { font-size: 1.35rem; }
    .eb-event-content h3 { font-size: 1.15rem; }
    .eb-single-schedule .eb-schedule-item {
        grid-template-columns: 70px 1fr;
        gap: 10px;
        padding: 12px 0;
    }
    .eb-single-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .eb-single-gallery {
        grid-template-columns: 1fr;
    }
}

/* ─── Hero-Modi (2.10.1) ─────────────────────────────────────────── */
/* Fill = Box mit fixer Höhe, Bild füllt sie via object-fit */
.eb-single-hero.eb-single-hero--mode-fill .eb-single-hero-image {
    width: 100%;
    height: 400px;
    object-fit: var(--eb-hero-fit, cover);
    display: block;
}
/* Natural = Bild behält sein Verhältnis, Höhe ergibt sich aus Breite */
.eb-single-hero.eb-single-hero--mode-natural .eb-single-hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Related-Card-Image: object-fit für background-size durchsetzen */
.eb-related .eb-card-image-wrap {
    overflow: hidden;
}
.eb-related .eb-card-image {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ─── RSVP-Form Erweiterungen 2.10.3 ──────────────────────────────── */
/* Pflichtfeld-Stern, neue Feldtypen (select/textarea/tel/date/time) */
.eb-rsvp .eb-required {
    color: #ef4444;
    margin-left: 2px;
}
.eb-rsvp-field select,
.eb-rsvp-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--eb-border, #e2e8f0);
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--eb-text, #0f172a);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.eb-rsvp-field select:focus,
.eb-rsvp-field textarea:focus {
    outline: none;
    border-color: var(--eb-primary, #6366f1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--eb-primary, #6366f1) 25%, transparent);
}
.eb-rsvp-field textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}
.eb-rsvp-field--notes textarea {
    min-height: 100px;
}
.eb-rsvp-form .eb-rsvp-title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--eb-text, #0f172a);
}
/* Editor-Preview: Form sollte nie unsichtbar sein */
.elementor-editor-active .eb-rsvp,
.elementor-editor-preview .eb-rsvp {
    min-height: 50px;
}
@media (max-width: 480px) {
    .eb-rsvp-field input,
    .eb-rsvp-field select,
    .eb-rsvp-field textarea {
        padding: 9px 12px;
        font-size: 0.95rem;
    }
}

/* ─── 2.11.0: Status-Banner ──────────────────────────────────────── */
.eb-status-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    padding: 12px 16px;
    margin: 0 0 16px;
    border-radius: 8px;
    font-size: 0.95rem;
}
.eb-status-banner--cancelled {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.eb-status-banner--postponed {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.eb-status-banner-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85em;
}

/* ─── 2.11.0: Search-Bar ─────────────────────────────────────────── */
.eb-search-bar { width: 100%; }
.eb-search-bar form {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex-wrap: wrap;
}
.eb-search-bar--stack form { flex-direction: column; align-items: stretch; }
.eb-search-bar .eb-search-field { flex: 1 1 140px; min-width: 0; }
.eb-search-bar input,
.eb-search-bar select,
.eb-search-bar button {
    width: 100%;
    padding: 10px 14px;
    font: inherit;
    border: 1px solid var(--eb-border, #e2e8f0);
    border-radius: 8px;
    background: #fff;
    color: var(--eb-text, #0f172a);
    box-sizing: border-box;
}
.eb-search-bar button[type=submit] {
    background: var(--eb-primary, #6366f1);
    color: #fff;
    border-color: var(--eb-primary, #6366f1);
    cursor: pointer;
    flex: 0 0 auto;
    min-width: 110px;
}
.eb-search-bar button[type=submit]:hover {
    background: var(--eb-primary-hover, #4f46e5);
}
.eb-search-bar .eb-search-reset {
    background: transparent;
    color: var(--eb-muted, #64748b);
    cursor: pointer;
    flex: 0 0 auto;
}
@media (max-width: 640px) {
    .eb-search-bar form { flex-direction: column; }
}

/* ─── 2.11.0: Event-Karte (Leaflet) ─────────────────────────────── */
.eb-events-map {
    width: 100%;
    height: 480px;
    background: #f1f5f9;
}
.eb-map-popup { display: flex; gap: 10px; max-width: 240px; }
.eb-map-popup img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 auto;
}
.eb-map-popup-title {
    display: block;
    font-weight: 700;
    color: var(--eb-text, #0f172a);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 4px;
}
.eb-map-popup-title:hover { color: var(--eb-primary, #6366f1); }
.eb-map-popup-date,
.eb-map-popup-venue {
    font-size: 0.85em;
    color: var(--eb-muted, #64748b);
    line-height: 1.4;
}

/* ─── 2.11.0: Kategorie-Farbcodierung ───────────────────────────── */
.eb-card[data-eb-cat-color] {
    border-top: 3px solid var(--eb-cat-color);
}
.eb-card[data-eb-cat-color] .eb-card-date {
    color: var(--eb-cat-color);
}
