/* Container für das gesamte Setup */
.cinema-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 2rem auto;
    position: relative;
    background: radial-gradient(circle at center, #9e9e9e 0%, rgba(0, 0, 0, 0.97) 100%);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.97);
    padding: 40px 0 40px 0;
    border-radius: 20px;
    overflow: hidden;
}

/* --- TEXT STYLES IM CONTAINER --- */
.cinema-header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    padding: 0 5px;
}

.cinema-header h3 {
    margin-top: 0;
    color: #000000; 
    /* NEU: Background-Style vom Filter Menü übernommen */
    background-color: rgba(248, 248, 248, 0.9);
    border-radius: 10px;
    padding: 10px 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
}

.cinema-header p {
    color: #ddd; 
    font-size: 0.95rem;
    margin-top: -2px;
}

/* --- FILTER MENU STYLES --- */
.filter-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    background-color: rgba(248, 248, 248, 0.9); 
    border-radius: 10px;
    padding: 5px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #555;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.filter-btn:hover { color: #000; }
.filter-btn.active { color: #000; border-bottom: 2px solid #000; }

/* --- STAGE BEREICH --- */
.cinema-stage {
    display: flex;
    justify-content: center;
    align-items: center; 
    width: 100%;
    position: relative;
    padding: 0 20px 70px 20px; 
}

/* --- VIDEO GROUP --- */
.video-group {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column; 
    z-index: 5;
    position: relative; 
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9; 
    border-radius: 5px;
    overflow: hidden; 
}

.video-screen {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 5px;
}

/* =========================================
   VIDEO OVERLAY & PLAY BUTTON
   ========================================= */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000; 
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    opacity: 0.8; 
    transition: opacity 0.3s ease;
}

.video-overlay:hover img { opacity: 1; }

.play-button {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.video-overlay:hover .play-button {
    background: rgba(204, 0, 0, 0.9);
    transform: scale(1.1);
}

.play-triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px; 
}

/* --- TITEL UPDATE (Entkoppelt) --- */
#video-title {
    text-align: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 1px;
    position: absolute; 
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 15px; 
    margin-bottom: 0;
}

/* --- NAVIGATION PFEILE --- */
.nav-arrow {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 4rem;
    cursor: pointer;
    z-index: 10;
    padding: 0 20px;
    transition: all 0.2s;
    align-self: center; 
}

.nav-arrow:hover {
    transform: scale(1.2);
    color: #fff;
}

/* --- DER LICHTKEGEL --- */
.projector-beam {
    flex: 1; 
    position: relative;
    /* NEU: Strech koppelt die Höhe des Strahls dynamisch 1:1 an die des Videoplayers! */
    align-self: stretch;
    clip-path: polygon(0% 0%, 100% 47%, 100% 53%, 0% 100%);
    background: linear-gradient(to right, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 60%, transparent 100%);
    mix-blend-mode: screen;
    pointer-events: none; 
    animation: flicker 0.15s infinite alternate;
    margin-left: -2px; 
    margin-right: -30px; 
    margin-bottom: 0px; 
}

@keyframes flicker {
    0% { opacity: 0.8; transform: scaleY(1); }
    50% { opacity: 0.6; }
    100% { opacity: 0.9; transform: scaleY(1.02); }
}

/* --- PROJEKTOR BILD --- */
.projector-wrapper {
    flex: 0 0 20%; 
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    z-index: 5;
    margin-bottom: 0px; 
}

.projector-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.2);
}

/* =========================================
   RESPONSIVE DESIGN 
   ========================================= */
@media screen and (max-width: 1024px) {
    .video-group { flex: 0 0 60%; }
    .projector-wrapper { flex: 0 0 15%; }
    
    .projector-beam {
        /* Feinjustierung für die Linse, da sich die Proportionen verschieben */
        clip-path: polygon(0% 0%, 100% 48.5%, 100% 51.5%, 0% 100%);
    }
}

@media screen and (max-width: 768px) {
    .cinema-container {
        padding: 20px 0;
        box-shadow: none;
        background: radial-gradient(circle at center, #666 0%, #111 100%); 
    }
    
    .cinema-stage {
        flex-direction: row; 
        flex-wrap: wrap;     
        justify-content: center; 
        gap: 20px;           
        padding: 0 15px; 
    }

    .projector-beam, 
    .projector-wrapper {
        display: none; 
    }

    .video-group {
        flex: 0 0 100%;
        width: 100%;
        order: 1; 
        margin-bottom: 15px; 
    }

    .video-wrapper {
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
        border-radius: 8px; 
    }

    .play-button {
        width: 60px;
        height: 60px;
    }
    .play-triangle {
        border-width: 12px 0 12px 20px;
    }
    
    #video-title {
        position: static; 
        font-size: 1.2rem;
        padding: 0 10px;
        margin-top: 15px;
    }
    
    .nav-arrow {
        position: static; 
        transform: none;  
        order: 2;         
        color: #fff; 
        font-size: 3rem;
        padding: 5px 35px;
        background: rgba(255,255,255,0.1); 
        border-radius: 8px;
        text-shadow: none;
    }
    
    .nav-arrow:active {
        background: rgba(255,255,255,0.25);
    }
    
    .filter-menu { gap: 10px; width: 95%; }
    .filter-btn { font-size: 0.9rem; padding: 5px 10px; }
}