body {
    font-size: 16px;
}

/* Karte mit mehr Shadow */
.shadow-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Stärkerer Schatten */
    transition: box-shadow 0.3s ease-in-out;
}

.shadow-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Mehr Schatten beim Hover */
}

/* Article card improvements */
.article-card {
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    max-width: 100%;
    width: 100%;
}

.article-card:hover {
    transform: translateY(-2px);
}

.article-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.article-title-link:hover {
    color: #007bff;
    text-decoration: none;
}

/* Clickable card styling */
.clickable-card {
    cursor: pointer;
    user-select: none;
}

.clickable-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.clickable-card .category-badge {
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.clickable-card .category-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Bild mit Hover-Effekt */
.elevated-image {
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); /* Leichter Shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover: Bild hebt sich leicht an */
.elevated-image:hover {
    transform: translateY(-5px); /* Leicht nach oben verschoben */
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.25); /* Verstärkter Shadow */
}

/* Extra Padding um das Bild */
.p-2 {
    padding: 0.5rem !important;
}

/* Titel & Text */
.card-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.card-text {
    font-size: 1rem;
    color: #666;
}

/* Article meta styling */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-badge:hover {
    transform: translateY(-1px);
    text-decoration: none;
    opacity: 0.8;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tag-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.7rem;
    color: #6c757d;
    transition: all 0.2s ease;
}

.tag-badge:hover {
    background-color: #e9ecef;
    color: #495057;
}

.tag-badge.tag-more {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.tag-badge.tag-more:hover {
    background-color: #5a6268;
    color: white;
}

.article-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

/* Button */
.btn-primary {
    background-color: #007bff;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* Blog Sidebar Styling */
.blog-sidebar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: static;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

/* Recent Posts Styling - Simplified without images */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-post-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.recent-post-item:hover {
    transform: translateY(-1px);
}

.recent-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0.75rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.recent-post-link:hover {
    background-color: #f8f9fa;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.recent-post-content {
    width: 100%;
}

.recent-post-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #2c3e50;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category List Styling - Vertical Stack */
.category-list {
    display: block;
    width: 100%;
}

.category-list .category-item {
    display: block;
    width: 100%;
    margin-bottom: 0.25rem;
}

.category-list .category-item:last-child {
    margin-bottom: 0;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    background: #ffffff;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.category-item:hover {
    background: #e3f2fd;
    color: #007bff;
    text-decoration: none;
    transform: translateX(4px);
    border-color: #007bff;
}

.category-item.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.category-item.active:hover {
    background: #0056b3;
    transform: translateX(2px);
}

.category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-name {
    flex: 1;
    font-size: 0.9rem;
}

/* Blog Header Styling */
.blog-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.blog-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.blog-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Category description */
.blog-category-description {
    background: #f8f9fa;
    border-left: 4px solid #2aa532;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* Empty state styling */
.empty-state {
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.empty-state i {
    opacity: 0.5;
}

.empty-state h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* SEO Tags versteckt für Crawler */
.seo-tags {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.seo-tags .hidden-tag {
    font-size: 0;
    line-height: 0;
    color: transparent;
    position: absolute;
}

/* Pagination Styling */
.pagination {
    margin: 2rem 0;
}

.pagination .page-link {
    color: #007bff;
    border-color: #dee2e6;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #007bff;
    transform: translateY(-1px);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* Card improvements for better responsive behavior */
.article-card .row {
    min-height: 200px;
}

.article-card .image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
}

.article-card .card-body {
    padding: 1.5rem;
}

/* Responsive Anpassungen */
@media (max-width: 991px) {
    .blog-sidebar {
        margin-bottom: 2rem;
        position: static;
    }
    
    .sidebar-title {
        font-size: 1rem;
    }
    
    .recent-post-link {
        padding: 0.5rem;
    }
    
    .recent-post-title {
        font-size: 0.85rem;
    }
    
    .pagination {
        margin: 1.5rem 0;
    }
    
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .article-card .row {
        flex-direction: column;
        min-height: auto;
    }
    
    .article-card .col-md-4,
    .article-card .col-md-8 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .p-2 {
        padding: 1rem !important;
    }

    .elevated-image {
        border-radius: 10px;
        height: auto;
        min-height: 180px;
    }

    .article-card .card-body {
        padding: 1rem;
    }
    
    .blog-sidebar {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .recent-post-link {
        padding: 0.5rem;
    }
    
    .recent-post-title {
        font-size: 0.8rem;
    }
    
    .category-item {
        padding: 0.5rem 0.75rem;
    }
}
