/* News Styling für K-Konzept */

/* News Cards */
.news-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.news-image-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f9fa;
}

.news-image {
    max-height: 100%; /* Maximale Höhe ist 100% des Wrappers */
    max-width: 100%; /* Maximale Breite ist 100% des Wrappers */
    height: auto; /* Automatische Höhe basierend auf Originalbild */
    width: auto; /* Automatische Breite */
    object-fit: contain; /* Originalseitenverhältnis beibehalten */
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: auto;
}

/* News Detail Page */
.news-detail h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.news-detail .news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 2rem;
}

.news-image-container {
    margin-bottom: 2rem;
}

.news-image-container img {
    width: 100%;
    height: auto;
    max-height: 800px; /* Erhöhte Höhe für bessere Lesbarkeit */
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 0 auto; /* Zentriert das Bild */
    display: block; /* Hilft bei der Zentrierung */
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

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

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 6px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Buttons */
.news-filter-btn {
    padding: 0.5rem 1.25rem;
    text-decoration: none !important;
}

/* News Grid Layout */
.news-container {
    margin-bottom: 3rem;
}

/* Social Sharing */
.sharing-buttons {
    padding-top: 1rem;
    margin-top: 2rem;
    border-top: 1px solid #eee;
}

.sharing-buttons .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 0.75rem 0;
    margin-bottom: 2rem;
    background-color: transparent;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #343a40;
    text-decoration: underline;
}

/* Empty State */
.news-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.news-empty-state h4 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .news-image-wrapper {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .news-detail h1 {
        font-size: 2rem;
    }
    
    .news-image-container img {
        max-height: 300px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .news-image-wrapper {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .news-image-wrapper {
        height: 140px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .news-detail h1 {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .news-card {
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .sharing-buttons, 
    .news-filter-btn {
        display: none !important;
    }
}

/* Spezielle Größe für News, die nur aus einem Bild bestehen */
.news-image-container.image-only img {
    max-height: 90vh; /* Höher für Bild-only News */
    margin: 0 auto;
}
