/* --- NEWS-EINTRAG CONTAINER --- */
.news-entry {
    background: #2a2a2a;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 5px;
    /* Hier ist die 25px-Flucht zur H2 */
    margin-left: 25px;  
    margin-right: 25px;
}

.date { 
    font-size: 0.8rem; 
    color: #888; 
    margin-bottom: 8px; 
}

.news-entry h3 {
    color: #fff;
    margin-bottom: 12px;
    /* Da h3 im HTML ÜBER dem news-content liegt, 
       fluchtet sie automatisch mit dem Text darunter */
}

/* --- DAS FLEX-LAYOUT --- */
.news-content {
    display: flex;
    align-items: flex-start; /* Oben ausrichten */
    gap: 20px;               /* Fester Abstand zwischen Bild und Text */
}

/* Das Vorschaubild UND der Video-Container werden gleich behandelt */
.news-thumb, 
.video-container {
    flex-shrink: 0;          /* Verhindert, dass das Bild gequetscht wird */
    width: 150px;
    margin-top: 4px;         /* DEIN WUNSCH: 4px Schubs nach unten für PC-Ansicht */
    cursor: pointer;
    transition: 0.3s;
}

.news-thumb:hover { 
    opacity: 0.7; 
}

/* Speziell für das Video */
.video-container {
    position: relative;
    margin-top: 4px;         /* Auch hier die 4px */
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(231, 76, 60, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    pointer-events: none;
}

/* --- DER TEXT-BLOCK --- */
.news-text {
    flex-grow: 1;            /* Text nimmt den restlichen Platz ein */
    /* Hier kein Float mehr nötig, daher kein Umfließen! */
}

/* --- MOBILE OPTIMIERUNG --- */
@media screen and (max-width: 600px) {
    .news-entry {
        margin-left: 0;
        margin-right: 0;
        padding: 15px;
    }

    .news-content {
        flex-direction: column; /* Bild ÜBER Text auf dem Handy */
        align-items: center;    /* Bild mittig */
        text-align: center;
    }

    .news-thumb, 
    .video-container {
        margin-top: 0;          /* 4px Schubs auf Handy entfernen */
        margin-bottom: 15px;    /* Dafür Abstand zum Text darunter */
    }
}
/* --- DER GESCHMEIDIGE VIEWER --- */
.viewer {
    display: none !important; /* Standardmäßig komplett weg */
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* Wir animieren nur die Deckkraft */
    transition: opacity 0.4s ease;
}

/* Sobald 'active' dazu kommt, ZWINGEN wir ihn zur Sichtbarkeit */
.viewer.active {
    display: flex !important; 
    opacity: 1 !important;
}

.viewer-content {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid #f39c12;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    /* Ein kleiner Zoom-Effekt beim Erscheinen */
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.viewer.active .viewer-content {
    transform: scale(1);
}

.viewer .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
}