/* --- Globale Styles & Hintergrund --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #1a0b1f; 
    position: relative; 
}

body::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-image: url('assets/img/enooo.png');
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(0.6);
}

/* --- ENOFLIX Header-Styles --- */
.enoflix-title h1 {
    font-family: 'Anton', sans-serif;
    font-size: 6rem;
    color: #E50914;
    text-shadow: -4px 4px 0px #1a1a1a;
    transform: skewX(-8deg);
    letter-spacing: -2px;
    margin-bottom: -1rem;
}
.enoflix-title h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    transform: skewX(-8deg);
}

@media (max-width:500px){
      footer .container.mx-auto.flex { 
        flex-direction: column;
        gap: 8px; 
      }
    }

/* --- Stream & Chat Layout --- */
.stream-wrapper {
    max-width: 1320px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    display: flex;
    gap: 20px;
}

.stream-video {
    flex: 2 1 60%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid transparent;
    background: linear-gradient(#0e0e10, #0e0e10) padding-box, linear-gradient(to right, #9147ff, #772ce8) border-box;
    box-shadow: 0 0 20px rgba(145, 71, 255, 0.4);
}

.stream-chat {
    flex: 1 1 30%;
    overflow-y: scroll;
    transition: height 0.5s ease-in-out;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-radius: 10px;
    border: 3px solid transparent;
    background: linear-gradient(#0e0e10, #0e0e10) padding-box, linear-gradient(to right, #9147ff, #772ce8) border-box;
    box-shadow: 0 0 20px rgba(145, 71, 255, 0.4);
}

.stream-chat::-webkit-scrollbar {
    display: none;
}
.stream-chat iframe {
    width: 100%;
    height: 750px;
    border: none;
}

.stream-video > iframe:first-of-type {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .stream-wrapper {
        display: none;
    }
}

/* --- Social Media Links --- */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}
.social-links a i {
    font-size: 36px;
    opacity: 0.8;
    transition: all 0.3s ease;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}
.social-links .fa-twitch { color: #9146FF; }
.social-links .fa-instagram { color: #E4405F; }
.social-links .fa-tiktok { color: #fff; }
.social-links .fa-youtube { color: #FF0000; }
.social-links .fa-discord { color: #5865F2; }
.social-links a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Highlight Section Rahmen --- */
.rainbow-border {
    padding: 4px;
    background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6);
    border-radius: 0.75rem;
    animation: rainbow-glow 2s linear infinite;
    background-size: 200% 200%;
}
@keyframes rainbow-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Styles für die interaktiven Karten --- */

/* Layout-Container für die normalen Tage */
.event-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* NEUER, SAUBERER CONTAINER FÜR HIGHLIGHTS */
.highlight-cards-container {
    display: flex;
    justify-content: center; /* Zentriert die Karten */
    flex-wrap: wrap;
    gap: 16px; /* Abstand zwischen den Karten */
}

/* Größe der Highlight-Karten */
.highlight-cards-container .event-item {
    flex-basis: 200px; /* Gibt den Karten eine feste Basisbreite */
    flex-shrink: 0;
}

.event-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Die Karte selbst */
.event-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin: 0 auto;
    width: 100%;
    aspect-ratio: 3 / 4;
}

.event-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #9400d3;
}

.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Der Tooltip */
.event-tooltip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #fff;
    padding: 12px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
}

.event-card:hover .event-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.event-tooltip h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: #c77dff;
    font-weight: bold;
}

.event-tooltip p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.3;
}
/*
--- FIX FÜR HIGHLIGHT-ZENTRIERUNG (Versuch 2) ---
*/
.highlight-cards-container .event-grid-container {
  display: flex !important;
  justify-content: center !important;
  /* Reset der Grid-Eigenschaften für den Notfall */
  grid-template-columns: none !important;
}

/*
--- FINALE LÖSUNG: HIGHLIGHT-ZENTRIERUNG ---
*/
#highlight-day .highlight-cards {
  display: flex;
  justify-content: center;
}