/* GRUND-GRID SYSTEM */
.news-grid {
    display: grid;
    /* Am PC: Mindestens 320px breit, sonst auffüllen */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    width: 100%;
    /* Verhindert, dass das Grid breiter wird als der Screen */
    max-width: 100%;
}

/* DIE NEWS KARTE */
.news-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 100%; /* Karte nimmt immer verfügbaren Platz */
}

.news-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 15px;
}

.news-card-content h4 {
    margin: 0 0 8px 0;
    color: var(--accent);
    font-size: 17px;
    font-weight: 1000;
    line-height: 1.2;
}

.news-card-content p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

/* ============================================================
   BOMBENSICHERER MOBILE FIX: UNTEREINANDER & KEIN WACKELN
   ============================================================ */
@media (max-width: 768px) {
    .news-grid {
        /* Zwingt alles in EINE Spalte, egal was kommt */
        grid-template-columns: 1fr !important; 
        gap: 15px;
        width: 100% !important;
    }

    .news-container {
        padding: 15px; /* Kleinerer Rand für mehr Platz auf dem Display */
    }

    .news-card {
        margin: 0;
        width: 100%;
    }

    /* Verhindert, dass Text das Fenster aufbläht */
    .news-card-content p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}