/* ===========================================
   News Page Styles
   =========================================== */

/* Jahr-Filter Buttons */
.news-year-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.year-filter-btn {
    height: 38px;
    padding: 0 24px;
    border: 2px solid #6E6E6E;
    border-radius: 25px;
    background: white;
    color: #6E6E6E;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.year-filter-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.year-filter-btn.active {
    background: #175350;
    border-color: #175350;
    color: #94CA32;
    font-weight: 700;
}

/* Jahr-Sektion */
.news-year-section {
    margin-bottom: 50px;
}

.news-year-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* News Card */
.news-card {
    background: #F1F1F1;
    border-radius: 6px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.news-card-date {
    font-size: 14px;
    color: #6E6E6E;
    margin-bottom: 20px;
}

.news-card-description {
    font-size: 14px;
    color: #6E6E6E;
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0E7C62;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-top: 20px;
}

.news-card-link:hover {
    text-decoration: underline;
}

.news-card-link i {
    font-size: 12px;
}

/* ===========================================
   News Detail Page
   =========================================== */
.news-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.news-detail-date {
    font-size: 14px;
    color: #6E6E6E;
}

.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.news-detail-content p {
    margin-bottom: 1.5em;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 1.5em;
    padding-left: 25px;
}

.news-detail-content li {
    margin-bottom: 0.5em;
}

.news-detail-content a {
    color: #0E7C62;
    font-weight: 500;
}

.news-detail-content a:hover {
    text-decoration: underline;
}

/* Navigation zwischen News */
.news-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.news-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0E7C62;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.news-nav-link:hover {
    text-decoration: underline;
}

.news-nav-link.prev i {
    order: -1;
}

.news-nav-link.disabled {
    color: #ccc;
    pointer-events: none;
}

/* Zurück zur Übersicht Link */
.news-back-to-overview {
    text-align: center;
    margin-top: 30px;
}

.back-to-overview-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #175350;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.back-to-overview-link:hover {
    background: #0E7C62;
    color: white;
}

.back-to-overview-link i {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 1100px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        min-height: auto;
    }
    
    .news-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .news-back-to-overview {
        margin-top: 20px;
    }
}