/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #6356e6, #8c82ec);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    /* Extra padding for pinned logo */
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6356e6, #8c82ec);
    opacity: 0.9;
    z-index: 1;
}

.blog-header .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-header .logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.blog-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-header .subline {
    font-size: 1.1rem;
    opacity: 0.9;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Pinned Logo */
.pinned-logo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, rgba(99, 86, 230, 0.9), rgba(140, 130, 236, 0.9));
    padding: 0.5rem 2rem;
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center left;
}

.pinned-logo img {
    height: 30px;
    width: auto;
    margin-top: 1rem;
}

.pinned-logo:hover {
    transform: none;
}

/* Back Link */
.back-link {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 86, 230, 0.9), rgba(140, 130, 236, 0.9));
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Article Meta */
.article-meta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta .category {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(99, 86, 230, 0.15);
    border-color: rgba(99, 86, 230, 0.3);
}

.blog-card.featured {
    grid-column: 1 / -1;
    /* Featured card behaves like a normal card in text-only mode, just wider */
}





.blog-content {
    padding: 2rem;
    color: #4a5568;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    background: rgba(99, 86, 230, 0.1);
    color: #6356e6;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.blog-card h2,
.blog-card h3 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #1a202c;
    text-shadow: none;
}

.blog-card.featured h2 {
    font-size: 1.8rem;
}

.blog-card h3 {
    font-size: 1.4rem;
}

.blog-excerpt {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
}

.blog-content .btn.small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background: white;
    border: 1px solid #6356e6;
    color: #6356e6 !important;
    /* Force purple text */
    align-self: flex-start;
    border-radius: 6px;
    font-weight: 600;
}

.blog-content .btn.small:hover {
    background: #6356e6;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(99, 86, 230, 0.2);
}

/* Stretched Link Pattern */
.blog-content .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* Blog Article */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.blog-article .article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.blog-article h2 {
    font-size: 2rem;
    color: #333;
    margin: 2rem 0 1rem;
}

.blog-article h3 {
    font-size: 1.5rem;
    color: #444;
    margin: 1.5rem 0 1rem;
}

.blog-article p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-article ul,
.blog-article ol {
    color: #666;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-article li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #6356e6, #8c82ec);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    text-align: center;
}

.cta-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn.primary {
    background: white;
    color: #6356e6;
    border: none;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn.small:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #6356e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-card.featured {
        grid-template-columns: 1fr;
    }

    .blog-card.featured .blog-image {
        padding-top: 60%;
    }

    .blog-card.featured .blog-image img {
        position: absolute;
    }

    .blog-header {
        padding: 3rem 0;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-article .article-image {
        height: 300px;
    }

    .blog-article h2 {
        font-size: 1.8rem;
    }

    .blog-article h3 {
        font-size: 1.3rem;
    }

    .footer-links {
        gap: 1rem;
    }
}

/* Animation */
.blog-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-card:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Verwandte Artikel */
.related-articles {
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.related-articles h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-article-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

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

.related-article-content h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.related-article-content p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.related-article-content .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6356e6, #8c82ec);
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.related-article-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}