/* ===== Aktuelles — Dark Card Grid ===== */
.aktuelles-section .container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    margin-top: 2rem; /* ensure separation from hero */
}

.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0;
    align-items: start;
    align-content: start;
    position: relative; /* ensure z-index works */
    z-index: 2; /* bring news above overlays (e.g., box-container) */
    padding-top: 1rem; /* small top spacing so first card is not hidden */
    justify-items: stretch; /* ensure items fill columns */
    justify-content: start; /* prevent centering */
    grid-auto-flow: row; /* explicit row flow */
}

/* Ensure the first card starts in the left column (fixes left gap issue) */
.news-container > .news-box:first-child {
    grid-column-start: 1;
    margin: 0;
}

.news-box {
    background: linear-gradient(180deg, var(--card-bg-dark-start, #343a40) 0%, var(--card-bg-dark-end, #2b2f32) 100%);
    border-radius: 12px;
    color: #f5f6f7;
    overflow: hidden;
    position: relative;
    height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding-bottom: 4rem;
}

.news-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card, 0 12px 30px rgba(0, 0, 0, 0.35));
}

.current-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.headline-news {
    text-align: center;
    padding: 1rem;
    font-size: 1.05rem;
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.6em;
}

.read-more-button {
    position: absolute;
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-red-300, #C23C33);
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-button, 0 4px 12px rgba(0, 0, 0, 0.3));
    transition: background 0.2s ease, transform 0.1s ease;
}

.read-more-button:hover {
    background: #d43d21;
    transform: translateX(-50%) translateY(-2px);
}

.read-more-button:focus {
    outline: 3px solid var(--color-red-100, #ff7c72);
    outline-offset: 2px;
}

.read-more-button:focus:not(:focus-visible) {
    outline: none;
}

.read-more-button:active {
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 1000px) {
    .news-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .current-img {
        height: 260px;
    }

    /* 3. Item nur bei 1-Spalten-Layout zeigen, bei 2-Spalten verstecken */
    .news-box:nth-child(3) {
        display: none;
    }
}

@media (min-width: 1000px) and (max-width: 1400px) {
    .current-img {
        height: 240px;
    }

    .news-box {
        height: 360px;
        padding-bottom: 4rem;
    }
}

@media (min-width: 1401px) and (max-width: 1500px) {
    .current-img {
        height: 240px;
    }

    .news-box {
        height: 360px;
        padding-bottom: 4rem;
    }
}

@media (max-width: 600px) {
    .news-container {
        grid-template-columns: 1fr;
    }

    .current-img {
        height: 190px;
    }

    .news-box {
        height: 300px;
        padding-bottom: 3.5rem;
    }

    .read-more-button {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0.75rem;
        margin: 0;
    }

    .headline-news {
        font-size: 1rem;
    }

    /* 3. Item bei 1-Spalten-Layout wieder zeigen */
    .news-box:nth-child(3) {
        display: block;
    }
}
