/* SECTION: NEWS */
.news-section {
    background-color: #faf8f8;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

#news {
    scroll-margin-top: 260px; /* Höhe von Header + Navbar */
}

.news-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.news-container h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: green;
    text-shadow: 1px 1px black;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    justify-items: center;
}

.news-item {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;

    .achtung{
        color: crimson;
    }
}

.news-item img {
    width: 600px;
    height: auto;
    border-radius: 4px;
}

.news-item figcaption {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: #555;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .news-container h2 {
        font-size: 1.6rem;
    }

    .news-item figcaption {
        font-size: 0.95rem;
    }

    .news-item img {
    width: 400px;
    height: auto;
    border-radius: 4px;
}
}

@media (max-width: 400px) {
    .news-container h2 {
        font-size: 1.4rem;
    }

    .news-item figcaption {
        font-size: 0.85rem;
    }

    .news-item img {
    width: 300px;
    height: auto;
    border-radius: 4px;
}
}
