/* Blog Post Styles — shared across all /blog/ articles */

.article-page {
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: var(--gray-50);
    min-height: 100vh;
}

.article-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 40px;
    transition: color 0.2s;
}

.article-back:hover {
    color: var(--navy-900);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.article-category {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--brand-green);
}

.article-readtime {
    font-size: 11px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-date {
    font-size: 11px;
    color: var(--gray-400);
}

.article-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 32px;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .article-title {
        font-size: 36px;
    }
}

/* Article image — preserves original image proportions, no cropping */
.article-image {
    background-color: var(--white);
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 32px;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Side-by-side intro: smaller image next to Einleitung */
.article-intro {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.article-intro-image {
    flex: 0 0 420px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background-color: var(--white);
}

.article-intro-image img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.article-intro-text {
    flex: 1 1 auto;
}

.article-intro-text h2 {
    margin-top: 0;
}

/* Lightbox for zooming images */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 24px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
    .article-intro {
        flex-direction: column;
        gap: 20px;
    }

    .article-intro-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}

.article-body {
    background-color: var(--white);
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    padding: 40px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-700);
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-900);
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-body ul li {
    margin-bottom: 8px;
}

.article-body ol {
    list-style: decimal;
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-body ol li {
    margin-bottom: 8px;
}

.article-body strong {
    color: var(--navy-900);
    font-weight: 600;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 16px;
}

.article-body th,
.article-body td {
    border: 1px solid var(--gray-200);
    padding: 8px 12px;
    text-align: left;
}

.article-body th {
    background-color: var(--gray-50);
    font-weight: 600;
    color: var(--navy-900);
}

.article-legal {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    padding: 20px;
}

.article-legal svg {
    color: var(--gray-400);
    flex-shrink: 0;
    margin-top: 2px;
}

.article-legal p {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

.article-legal strong {
    color: var(--gray-700);
    font-weight: 600;
}

.article-cta {
    margin-top: 40px;
    background-color: var(--navy-900);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    color: var(--white);
}

.article-cta h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.article-cta p {
    color: var(--navy-300);
    font-size: 14px;
    margin-bottom: 24px;
}

.article-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-next {
    margin-top: 24px;
}

.article-next-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.article-next-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background-color: var(--white);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    text-decoration: none;
}

.article-next-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

.article-next-card .next-category {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--brand-green);
    margin-bottom: 8px;
    display: inline-block;
}

.article-next-card .next-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.4;
    transition: color 0.2s;
}

.article-next-card:hover .next-title {
    color: var(--brand-green);
}

.article-next-card svg {
    color: var(--gray-400);
    flex-shrink: 0;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 1023px) {
    .article-page {
        padding-top: 120px;
        padding-bottom: 56px;
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .article-page {
        padding-top: 100px;
        padding-bottom: 48px;
    }

    .article-container {
        padding: 0 16px;
    }

    .article-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .article-body {
        padding: 28px;
    }

    .article-cta {
        padding: 28px;
        margin-top: 32px;
    }

    .article-back {
        margin-bottom: 24px;
    }
}
