/* Blog Styles */

/* Keyframe Animationen */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    animation: slideInFromTop 0.8s ease-out;
}

.blog-header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.blog-header-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Blog Articles Section */
.blog-articles {
    padding: 80px 0;
    background: var(--section-background);
    transition: background-color 0.3s ease;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Staggered Animation für Artikel */
.article-card:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.article-card:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.article-card:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* Blog Card */
.blog-card {
    background: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border-color);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-placeholder {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.blog-date {
    color: var(--text-muted);
    font-weight: 500;
}

.blog-card h2 {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.blog-card h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: var(--primary-color);
}

.blog-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Footer-Bereich innerhalb der Karte: unten links halten */
.blog-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.blog-card-footer .blog-tags {
    margin-bottom: 0;
}

.tag {
    background: var(--hover-background);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.read-more:hover {
    color: var(--secondary-color);
    gap: 0.75rem;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Blog CTA Section */
.blog-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.cta-button {
    display: inline-block;
    background: var(--card-background);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--shadow-light);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-medium);
    background: var(--hover-background);
    animation: pulse 2s infinite;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Blog Article Page Styles */
.blog-article {
    padding: 120px 0 80px;
    background: var(--background-color);
    transition: background-color 0.3s ease;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text-color);
    position: relative;
    animation: fadeInLeft 0.6s ease-out both;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: fadeInLeft 0.6s ease-out 0.2s both;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-color);
    animation: fadeInRight 0.6s ease-out both;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    animation: fadeInUp 0.6s ease-out both;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    animation: fadeInUp 0.6s ease-out both;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.article-content li:hover {
    transform: translateX(5px);
}

.article-content strong {
    color: var(--text-color);
    font-weight: 600;
}

.highlight-box {
    background: var(--card-background);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-light);
    animation: fadeInUp 0.8s ease-out both;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.highlight-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    animation: fadeInLeft 0.6s ease-out 0.2s both;
}

.highlight-box p {
    margin-bottom: 0;
    color: var(--text-color);
    animation: fadeInRight 0.6s ease-out 0.4s both;
}

/* Back to Blog */
.back-to-blog {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out both;
    transition: border-color 0.3s ease;
}

.back-to-blog a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    border: 2px solid var(--primary-color);
}

.back-to-blog a:hover {
    color: var(--card-background);
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header {
        padding: 100px 0 60px;
    }
    
    .blog-header-content h1 {
        font-size: 2.2rem;
    }
    
    .blog-header-content p {
        font-size: 1.1rem;
    }
    
    .blog-articles {
        padding: 60px 0;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card-content {
        padding: 1.25rem;
    }
    
    .blog-card h2 {
        font-size: 1.2rem;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .blog-header-content h1 {
        font-size: 1.8rem;
    }
    
    .blog-card-image {
        height: 150px;
    }
    
    .blog-placeholder {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .article-header h1 {
        font-size: 1.7rem;
    }
}