/*----------------------------
    News-Slider
----------------------------*/
/* Die Schiene, auf der alle Artikel nebeneinander liegen */
.news-js-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

/* Mobile First: Standardmäßig 1 Element voll sichtbar (Smartphone) */
.news-js-card {
    flex: 0 0 100%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px;
    /*background-color: #f8f9fa;
    border: 1px solid var(--blue);
    border-radius: 8px;*/
    background-color: var(--white);
    border-right: 1px solid var(--orange);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-js-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
}

/* KATEGORIEN: Einheitlich Rot mit weißer Schrift */
.news-js-card .badge {
    background-color: var(--orange) !important;
    color: #ffffff !important;
}

/* 1. ANPASSUNG: Kleinere PC-Monitore & Laptops (ab 768px bis 1199px) -> 3 Artikel */
@media (min-width: 768px) {
    .news-js-card {
        /* Teilt den Platz durch 3 und zieht den anteiligen Abstand (gap) ab */
        flex: 0 0 calc((100% / 3) - 11px);
    }
}

/* 2. ANPASSUNG: Große PC-Monitore (ab 1200px) -> 4 Artikel */
@media (min-width: 1200px) {
    .news-js-card {
        /* Teilt den Platz durch 4 und zieht den anteiligen Abstand (gap) ab */
        flex: 0 0 calc((100% / 4) - 12px);
    }
}

/* Styling für die Control-Buttons */
.btn-link {
    text-decoration: none;
    transition: color 0.2s ease;
    color: var(--orange);
}
.btn-link:hover {
    color: var(--blue); /* Pfeile färben sich beim Hovern ebenfalls rot */
}