/* Blog Archive Styles - ähnlich wie Produkt-Archiv */

.archive-blog-main {
    background: #ffffff;
}

.archive-blog-main .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Header */
.blog-archive-hero {
    background: linear-gradient(135deg, #2c5282 0%, #1a3a5c 100%);
    padding: 60px 0 40px 0;
    position: relative;
    overflow: hidden;
}

.blog-archive-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.blog-archive-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

.blog-archive-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.blog-archive-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.archive-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.archive-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Posts Grid */
.blog-posts-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f0f8f0 100%);
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Blog Post Cards */
.blog-post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #7cb342 0%, #2c5282 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.blog-post-card:hover::before {
    transform: scaleX(1);
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(44, 82, 130, 0.2);
}

.blog-post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-post-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.blog-post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-post-card:hover .blog-post-card-image img {
    transform: scale(1.1);
}

.blog-post-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.placeholder-content {
    color: #bbb;
}

/* Overlay mit "Beitrag lesen" */
.blog-post-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.95) 0%, rgba(26, 58, 92, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-post-card:hover .blog-post-card-overlay {
    opacity: 1;
}

.read-more {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.blog-post-card:hover .read-more {
    transform: translateY(0);
}

/* Card Content */
.blog-post-card-content {
    padding: 24px;
}

.blog-post-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: #7cb342;
    margin-bottom: 16px;
    font-weight: 600;
}

.meta-separator {
    opacity: 0.5;
}

.post-categories a {
    color: #2c5282;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-categories a:hover {
    color: #7cb342;
}

.blog-post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-post-card:hover .blog-post-card-title {
    color: #2c5282;
}

.blog-post-card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.blog-post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #666;
}

.post-author svg {
    color: #7cb342;
}

.read-more-arrow {
    font-weight: 600;
    color: #7cb342;
    transition: all 0.3s ease;
}

.blog-post-card:hover .read-more-arrow {
    color: #2c5282;
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
}

.pagination .nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pagination a,
.pagination .current {
    padding: 14px 24px;
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #2c5282;
    color: #ffffff;
    border-color: #2c5282;
    transform: translateY(-2px);
}

.pagination .current {
    background: #2c5282;
    color: #ffffff;
    border-color: #2c5282;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 100px 20px;
}

.no-posts svg {
    color: #bbb;
    margin-bottom: 30px;
}

.no-posts h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
}

.no-posts p {
    font-size: 1.125rem;
    color: #666;
}

/* Responsive */

@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-archive-hero {
        padding: 50px 0 30px 0;
    }
    
    .blog-posts-section {
        padding: 40px 0;
    }
    
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .archive-title {
        font-size: 1.75rem;
    }
    
    .archive-subtitle {
        font-size: 0.9375rem;
    }
    
    .blog-post-card-image {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .blog-archive-hero {
        padding: 40px 0 25px 0;
    }
    
    .blog-posts-section {
        padding: 35px 0;
    }
    
    .archive-title {
        font-size: 1.5rem;
    }
    
    .archive-subtitle {
        font-size: 0.875rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blog-post-card-content {
        padding: 20px;
    }
    
    .blog-post-card-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 400px) {
    .archive-title {
        font-size: 1.375rem;
    }
    
    .blog-post-card-image {
        height: 180px;
    }
}
