/* EventHub Highlight Slider (Hero) – Minimal CSS */

.eventhub-slider-container {
    position: relative;
    margin-bottom: var(--eventhub-spacing-xl);
    border-radius: var(--eventhub-border-radius-lg);
    overflow: hidden;
}

.eventhub-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: var(--eventhub-slider-height);
}

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

.eventhub-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center 25%; /* Bilder etwas höher beschneiden (Gesichter besser sichtbar) */
    text-decoration: none;
    color: var(--eventhub-color-text-light);
}

.eventhub-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    pointer-events: none;
}

.eventhub-slide__content {
    position: relative;
    z-index: 2;
    padding: var(--eventhub-spacing-lg) var(--eventhub-spacing-lg)
        calc(var(--eventhub-spacing-xl) + var(--eventhub-spacing-md)); /* Mehr Platz unten für Dots */
}

.eventhub-slide__meta {
    font-size: var(--eventhub-font-size-sm);
    margin-bottom: var(--eventhub-spacing-xs);
    color: rgba(255, 255, 255, 0.9);
}

.eventhub-slide__title {
    font-size: var(--eventhub-font-size-2xl);
    line-height: 1.2;
    margin: 0;
    color: var(--eventhub-color-text-light);
    font-weight: var(--eventhub-font-weight-bold);
}

@media (max-width: 768px) {
    .eventhub-slider {
        height: var(--eventhub-slider-height-mobile);
    }

    .eventhub-slide__content {
        padding: var(--eventhub-spacing-md) var(--eventhub-spacing-md)
            calc(var(--eventhub-spacing-xl) + var(--eventhub-spacing-xs)); /* Mehr Platz unten für Dots */
    }

    .eventhub-slide__title {
        font-size: var(--eventhub-font-size-xl);
    }
}

/* Dots Navigation */
.eventhub-slider__dots {
    position: absolute;
    bottom: var(--eventhub-spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--eventhub-spacing-sm);
    z-index: 10;
}

.eventhub-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--eventhub-border-radius-pill);
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background-color var(--eventhub-transition),
        transform var(--eventhub-transition);
}

.eventhub-slider__dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.eventhub-slider__dot.is-active {
    background: #fff;
    border-color: #fff;
}

.eventhub-slider__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .eventhub-slider__dots {
        bottom: 12px;
        gap: 6px;
    }

    .eventhub-slider__dot {
        width: 8px;
        height: 8px;
    }
}
