/* Blog-Spezifische Styles */
.blog-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.blog-card {
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blog-card-img {
    height: 180px;
    object-fit: cover;
    border-radius: 0.375rem 0.375rem 0 0;
}

.card-img-container {
    overflow: hidden;
    border-radius: 0.375rem 0.375rem 0 0;
}

.blog-card .card-body {
    padding: 1.25rem;
}

.blog-card .card-title {
    line-height: 1.4;
    min-height: 3em;
}

.blog-card .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dark Mode Anpassungen */
[data-bs-theme="dark"] .blog-card {
    background-color: var(--card-bg);
    border-color: rgba(255,255,255,0.1);
}

[data-bs-theme="dark"] .blog-card:hover {
    box-shadow: 0 4px 12px rgba(255,255,255,0.05);
}

/* Blog Detail-Artikel (Detailansicht) */
article {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Überschriften im Artikel */
article h1,
article h2,
article h3,
article h4 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Fließtext im Artikel */
article p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Bilder im Artikel */
article img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

/* Formatierung für Zitate (optional) */
article blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 1rem 0;
    padding-left: 1rem;
    font-style: italic;
    color: var(--secondary-color);
}

/* Formatierung für Listen im Artikel */
article ul,
article ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

/* Dark Mode Anpassungen für den Artikel */
[data-bs-theme="dark"] article {
    background-color: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

[data-bs-theme="dark"] article p,
[data-bs-theme="dark"] article li,
[data-bs-theme="dark"] article blockquote {
    color: #f3f4f6;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .blog-card-img {
        height: 150px;
    }
    
    .blog-header {
        padding: 1.5rem 0;
    }
    
    .blog-card .card-body {
        padding: 1rem;
    }
}