/* Homepage News Headlines Styles */
/* BGV Bergisch Land Website */

/* News Headlines Container */
.news-headline {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
    background-color: transparent;
    color: #212529;
}

.news-headline:last-child {
    border-bottom: none;
}

/* Ensure news content has proper background and text colors */
.news-headline * {
    background-color: transparent;
}

.news-headline .news-title,
.news-headline .news-meta,
.news-headline .news-excerpt {
    background-color: transparent;
    color: #212529;
}

/* News Header */
.news-header {
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: #212529;
    background-color: transparent;
}

.news-title a {
    color: #0056b3;
    background-color: transparent;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: #003d7a;
    text-decoration: none;
    background-color: transparent;
}

/* News Meta Information */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 1rem;
}

.news-date,
.news-author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-date i,
.news-author i {
    color: #0056b3;
    font-size: 0.8rem;
}

/* News Excerpt */
.news-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #212529;
    margin-bottom: 1.5rem;
}

.news-excerpt p {
    margin-bottom: 0.75rem;
}

.news-excerpt p:last-child {
    margin-bottom: 0;
}

/* News Footer */
.news-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.news-footer .btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.news-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.2);
}

/* News Divider */
.news-divider {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #e9ecef;
    opacity: 0.6;
}

/* Main News Section */
.card-title {
    color: #0056b3;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

/* Override any conflicting styles */
.card-body {
    background-color: #fff !important;
}

.news-headline,
.news-header,
.news-meta,
.news-excerpt,
.news-footer {
    background-color: transparent !important;
}

/* Force text colors */
.news-headline,
.news-headline * {
    color: #212529 !important;
}

.news-title a {
    color: #0056b3 !important;
}

.news-title a:hover {
    color: #003d7a !important;
}

/* "Alle News anzeigen" Button */
.btn-outline-primary.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn-outline-primary.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

/* Empty State */
.alert-info {
    background-color: #f8f9fa;
    border-color: #0056b3;
    color: #212529;
    padding: 2rem;
    text-align: center;
}

.alert-info i {
    color: #0056b3;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Sidebar Improvements */
.col-lg-4 .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.col-lg-4 .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.col-lg-4 .card-title {
    color: #0056b3;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.col-lg-4 .card-text {
    color: #212529;
    line-height: 1.6;
}

/* Opening Hours Styling */
.list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.list-unstyled li:last-child {
    border-bottom: none;
}

.list-unstyled li strong {
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 991px) {
    .news-title {
        font-size: 1.3rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-excerpt {
        font-size: 0.95rem;
    }
    
    .btn-outline-primary.btn-lg {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .news-headline {
        padding: 1rem 0;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    .news-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .col-lg-4 .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-meta {
        font-size: 0.8rem;
    }
    
    .news-excerpt {
        font-size: 0.85rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}

/* Accessibility Improvements */
.news-title a:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .news-title a {
        color: #000;
        text-decoration: underline;
    }
    
    .news-title a:hover {
        color: #0056b3;
    }
    
    .news-divider {
        border-top-color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .news-title a,
    .news-footer .btn,
    .btn-outline-primary.btn-lg,
    .col-lg-4 .card {
        transition: none;
    }
    
    .news-footer .btn:hover,
    .btn-outline-primary.btn-lg:hover {
        transform: none;
    }
}
