/* ===================== CSS VARIABLEN ===================== */
:root {
    --pad: 70px;
}

/* ===================== LAYOUT & SEITENRÄNDER ===================== */
.news-page-wrap {
    padding: 2rem var(--pad);
    box-sizing: border-box;
}

/* ===================== ÜBERSCHRIFT ===================== */
.news-page-wrap .section-head {
    margin-bottom: 1.5rem;
}

.news-page-wrap .section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #128c46;
    margin-bottom: 0.4rem;
}

.news-page-wrap .section-title {
    font-family: 'Frutiger', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #1a1a1a;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem 0;
}

/* ===================== SUCHE ===================== */
.news-filter-bar {
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.news-search-input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Frutiger', sans-serif;
    background: #fff;
    color: #1a1a1a;
    outline: none;
}
.news-search-input:focus { border-color: #128c46; }

.news-result-count {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 1.25rem;
}

/* ===================== CARDS GRID ===================== */
.cards-news {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 2.5rem 0 4rem;
}

.news {
    position: relative;
    width: 100%;
    height: 380px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    color: #1a1a1a;
    background-color: #cfd1d2;
    cursor: pointer;
}

.news:hover { border-color: rgba(18,140,70,0.25); transform: translateY(-3px); }

.news-card-image { position: absolute; inset: 0; z-index: 0; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.55; }

.news-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 25%, rgba(0,0,0,0.1) 80%);
    z-index: 1;
}

.news-content { position: absolute; bottom: 18px; right: 16px; left: 16px; top: auto; z-index: 2; text-align: left; }
.news-content h3 { font-family: 'Frutiger', sans-serif; font-size: 0.9rem; font-weight: 700; line-height: 1.4; margin-bottom: 5px; color: #ffffff; }
.news-content p,
.news-content .news-date { font-size: 0.75rem; margin: 0; color: #e6e7e8; line-height: 1.5; }

/* ===================== PAGINATION ===================== */
.news-pagination {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 2rem;
}

.news-page-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: 'Frutiger', sans-serif;
    color: #1a1a1a;
}
.news-page-btn.active { background: #128c46; color: #fff; border-color: #128c46; font-weight: 700; }
.news-page-btn:hover:not(.active) { border-color: #128c46; color: #128c46; }

/* ===================== TABLET 1400px ===================== */
@media (max-width: 1400px) {
    :root { --pad: 40px; }
}

/* ===================== MOBILE 900px ===================== */
@media (max-width: 900px) {
    :root { --pad: 24px; }
    .cards-news { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .news { height: 380px; }
    .news-pagination { justify-content: center; }
}

/* ===================== MOBILE 620px ===================== */
@media (max-width: 620px) {
    :root { --pad: 16px; }
    .cards-news { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .news { height: 340px; }
}