/* Static Event Highlights - Falls der Slider nicht funktioniert */

.highlights__container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

.highlights__slider-wrapper {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
}

#highlights-slider {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-top: 40px;
    padding: 0 20px;
    width: 100%;
    justify-content: center;
    transform: none !important;
}

/* Bei kleineren Bildschirmen auf 2 Spalten reduzieren */
@media (max-width: 1200px) {
    #highlights-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Highlight Cards - Pr\u00e4zise horizontale Ausrichtung */
.highlight-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    height: 550px;
    display: grid;
    grid-template-rows: auto 80px 60px 1fr;
    gap: 0;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

/* Video-Container - fixe H\u00f6he */
.highlight-card__video-container {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
}

.highlight-card__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.highlight-card__loading-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #DC143C;
    animation: spin 1s ease-in-out infinite;
}

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

/* Fallback für Bilder (legacy) */
.highlight-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Titel-Bereich - fixe H\u00f6he f\u00fcr horizontale Ausrichtung */
.highlight-card__title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

/* Button-Bereich - fixe H\u00f6he f\u00fcr horizontale Ausrichtung */
.highlight-card__category {
    font-family: var(--font-heading);
    background: #DC143C;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    text-align: center;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    max-width: 200px;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
    transition: none;
    cursor: default;
    pointer-events: none;
    border: none;
    outline: none;
}

.highlight-card__category:hover {
    background: #DC143C;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
    transform: none;
}

/* Beschreibungs-Bereich - flexibler Raum */
.highlight-card__description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    text-align: center;
    overflow: visible;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    min-height: 100px;
}


/* Entferne nicht mehr ben\u00f6tigte Klassen */
.highlight-card__header,
.highlight-card__icon,
.highlight-card__subtitle {
    display: none;
}

/* Slider Controls ausblenden wenn nicht funktionsfähig */
.highlights__slider-controls {
    display: none !important;
}

/* Category Overlay - Rotes Popup */
.category-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.category-overlay.active {
    opacity: 1;
    visibility: visible;
}

.category-overlay__content {
    background: linear-gradient(135deg, #DC143C 0%, #B91238 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(220, 20, 60, 0.4),
                0 10px 30px rgba(0, 0, 0, 0.6);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.category-overlay.active .category-overlay__content {
    transform: translateY(0) scale(1);
}

.category-overlay__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.category-overlay__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.category-overlay__icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.category-overlay__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-overlay__description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
}

.category-overlay__badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mobile Anpassungen - FLEXBOX KARUSSELL */
@media (max-width: 768px) {
    #highlights-slider {
        display: flex !important;
        grid-template-columns: none !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 16px !important;
        padding: 20px 16px !important;
        margin: 0 !important;
        width: 100% !important;
        position: relative !important;
        
        /* Touch Scrolling aktivieren */
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        
        /* Scrollbar verstecken */
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        
        /* Transform zurücksetzen */
        transform: none !important;
    }
    
    #highlights-slider::-webkit-scrollbar {
        display: none !important;
    }
    
    .highlight-card {
        /* FLEXBOX CARD DESIGN */
        flex: 0 0 auto !important;
        width: calc(100vw - 80px) !important;
        max-width: 300px !important;
        min-width: 280px !important;
        height: 200px !important;
        margin: 0 !important;
        
        /* Layout */
        display: flex !important;
        flex-direction: column !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        grid-template-rows: none !important;
        
        /* Scroll-Snap */
        scroll-snap-align: center !important;
        
        /* Sichtbarkeit */
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        flex-shrink: 0 !important;
    }
    
    .highlight-card__image {
        height: 150px;
    }
    
    .highlight-card__title {
        color: #DC143C !important;
        font-size: clamp(1rem, 4vw, 1.3rem) !important;
        font-weight: 700 !important;
        margin: 0 0 12px 0 !important;
        text-align: center !important;
        line-height: 1.2 !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    }
    
    .highlight-card__category {
        height: 35px;
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .highlight-card__description {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: clamp(0.8rem, 3vw, 0.95rem) !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        text-align: center !important;
        flex-grow: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
        min-height: auto !important;
    }
    
    /* Category Overlay Mobile */
    .category-overlay__content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .category-overlay__title {
        font-size: 2rem;
    }
    
    .category-overlay__description {
        font-size: 1rem;
    }
}