/* ============================================================
   Blog Styles · Clementine Media
   Self-contained — works without the React-snapshot CSS.
   Inherits brand palette + Red Hat fonts via Google Fonts.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700;800;900&family=Red+Hat+Text:wght@400;500;600;700&display=swap');

:root {
    --c-navy: #002a3c;
    --c-navy-2: #003a52;
    --c-navy-3: #051116;
    --c-orange: #f79520;
    --c-orange-dark: #e07d0a;
    --c-cream: #F1EEEE;
    --c-paper: #fafafa;
    --c-text: #1f2a30;
    --c-text-2: #475569;
    --c-muted: #94a3b8;
    --c-border: rgba(0, 42, 60, 0.08);
    --c-border-2: rgba(0, 42, 60, 0.14);

    --font-display: 'Red Hat Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-text: 'Red Hat Text', -apple-system, BlinkMacSystemFont, sans-serif;

    --container: 1200px;
    --container-narrow: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.6;
    color: var(--c-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--c-navy); letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 26px; font-size: 15px; font-weight: 700;
    font-family: var(--font-display); border-radius: 100px;
    transition: all 0.2s ease; white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--c-orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(247,149,32,0.5); }
.btn-primary:hover { background: var(--c-orange-dark); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--c-navy); border: 2px solid var(--c-border-2); }
.btn-secondary:hover { border-color: var(--c-navy); }

/* ============================================================
   HEADER (matches landing-page visual style)
   ============================================================ */
.site-header {
    background: var(--c-navy);
    color: #fff;
    padding: 26px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.site-header__inner {
    display: flex; align-items: center; gap: 32px;
    max-width: var(--container);
    margin: 0 auto; padding: 0 24px;
}
.site-header__logo {
    display: inline-flex; align-items: center; line-height: 1;
    flex-shrink: 0;
}
.site-header__logo img {
    height: 54px; width: auto; display: block;
}
.site-header__nav {
    flex: 1;
    display: flex; gap: 4px; justify-content: center; align-items: center;
}
.site-header__nav a {
    padding: 12px 18px;
    font-family: var(--font-display);
    font-size: 15px; font-weight: 700;
    color: #fff;
    border-radius: 4px;
    transition: background 0.18s ease;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.site-header__nav a:hover { background: rgba(255,255,255,0.08); }
.site-header__nav a.is-active { background: rgba(255,255,255,0.10); }
.site-header__cta {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; min-height: 56px;
    background: #fff; color: var(--c-navy);
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    border-radius: 4px; text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 14px -6px rgba(0,0,0,0.35);
    flex-shrink: 0;
    letter-spacing: -0.01em;
}
.site-header__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.45);
}

/* Legacy class shims (kept so older markup keeps working) */
.blog-header { display: none; }
.blog-logo { display: inline-flex; align-items: center; line-height: 1; }
.blog-logo__img { height: 54px; width: auto; display: block; }
.blog-logo__name { font-family: var(--font-display); font-size: 21px; font-weight: 900; letter-spacing: -0.02em; }
.blog-logo__name .o { color: var(--c-orange); }
.blog-logo__sub { font-size: 9.5px; font-weight: 800; letter-spacing: 0.45em; color: var(--c-orange); margin-top: 4px; }

/* ============================================================
   BLOG LISTING (overview)
   ============================================================ */
.list-hero {
    padding: 80px 0 56px;
    background: linear-gradient(180deg, var(--c-paper) 0%, #fff 100%);
    text-align: center;
}
.list-hero__eyebrow {
    display: inline-block; padding: 5px 14px; border-radius: 100px;
    background: rgba(247,149,32,0.12); color: var(--c-orange-dark);
    font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; margin-bottom: 22px;
}
.list-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800; line-height: 1.05; margin-bottom: 18px;
}
.list-hero__lead {
    color: var(--c-text-2); font-size: 18px; max-width: 620px; margin: 0 auto;
}

.filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin: 36px auto 0; max-width: 800px;
}
.filter-pill {
    padding: 9px 16px; font-size: 14px; font-weight: 600;
    font-family: var(--font-display); color: var(--c-text-2);
    background: #fff; border: 1px solid var(--c-border-2);
    border-radius: 100px; cursor: pointer;
    transition: all 0.2s ease;
}
.filter-pill:hover { border-color: var(--c-navy); color: var(--c-navy); }
.filter-pill.is-active { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

.post-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px; padding: 56px 0 96px;
}
.post-card {
    display: flex; flex-direction: column; background: #fff;
    border-radius: 18px; overflow: hidden; cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
    border: 1px solid var(--c-border);
    text-decoration: none;
}
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -20px rgba(0,42,60,0.25);
    border-color: var(--c-border-2);
}
.post-card__cover {
    position: relative; aspect-ratio: 16/10; overflow: hidden;
    background: linear-gradient(135deg, #002a3c 0%, #003a52 100%);
}
.post-card__cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.post-card:hover .post-card__cover img { transform: scale(1.04); }
.post-card__category {
    position: absolute; top: 16px; left: 16px;
    padding: 5px 12px; background: rgba(255,255,255,0.95);
    border-radius: 100px; font-size: 11px; font-weight: 700;
    font-family: var(--font-display); letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--c-navy);
}
.post-card__body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.post-card__title {
    font-size: 22px; font-weight: 700; line-height: 1.25;
    margin-bottom: 12px;
}
.post-card__excerpt {
    color: var(--c-text-2); font-size: 15px; line-height: 1.55;
    flex: 1; margin-bottom: 18px;
}
.post-card__meta {
    display: flex; align-items: center; gap: 14px;
    font-size: 13px; color: var(--c-muted);
    font-weight: 500;
}
.post-card__meta time { color: var(--c-muted); }

/* Featured post */
.post-card--featured {
    grid-column: span 2;
    flex-direction: row;
}
.post-card--featured .post-card__cover {
    flex: 0 0 55%; aspect-ratio: auto;
}
.post-card--featured .post-card__body { padding: 40px 44px; }
.post-card--featured .post-card__title { font-size: 30px; }
.post-card--featured .post-card__excerpt { font-size: 16px; }

/* ============================================================
   ARTICLE (single post)
   ============================================================ */
.article-hero {
    padding: 56px 0 32px;
    background: linear-gradient(180deg, var(--c-paper) 0%, #fff 100%);
}
.breadcrumbs {
    display: flex; gap: 8px; font-size: 13px; color: var(--c-muted);
    margin-bottom: 28px;
}
.breadcrumbs a { color: var(--c-text-2); transition: color 0.18s ease; }
.breadcrumbs a:hover { color: var(--c-orange); }
.breadcrumbs span { color: var(--c-muted); }

.article-hero__category {
    display: inline-block; padding: 5px 14px; border-radius: 100px;
    background: rgba(247,149,32,0.12); color: var(--c-orange-dark);
    font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; margin-bottom: 22px;
}
.article-hero__title {
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    font-weight: 800; line-height: 1.1; margin-bottom: 22px;
    max-width: 920px;
}
.article-hero__lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--c-text-2); line-height: 1.6;
    max-width: 720px; margin-bottom: 32px;
}
.article-meta {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    padding: 18px 0; border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    font-size: 14px; color: var(--c-text-2);
}
.article-meta__author { display: flex; align-items: center; gap: 12px; }
.article-meta__avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #f79520, #fbb554);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 14px;
}
.article-meta__author strong { color: var(--c-navy); font-weight: 700; font-size: 15px; display: block; }
.article-meta__author small { color: var(--c-muted); font-size: 12px; }
.article-meta__dot { color: var(--c-muted); }
.article-meta__readtime {
    display: inline-flex; align-items: center; gap: 6px;
}

.article-cover {
    padding: 24px 0 40px;
}
.article-cover__img {
    width: 100%; aspect-ratio: 16/9;
    border-radius: 22px; object-fit: cover;
    box-shadow: 0 30px 80px -30px rgba(0,42,60,0.4);
}

/* ===== Body grid ===== */
.article-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 64px;
    padding-bottom: 80px;
    align-items: start;
}

/* Sidebar / ToC */
.toc {
    position: sticky; top: 100px;
    padding-right: 8px;
}
.toc__title {
    font-family: var(--font-display); font-size: 11px; font-weight: 800;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--c-muted); margin-bottom: 14px;
}
.toc__list { display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--c-border); padding-left: 16px; }
.toc__list a {
    display: block; padding: 6px 0; font-size: 13.5px; line-height: 1.4;
    color: var(--c-text-2); transition: color 0.18s ease;
    position: relative;
}
.toc__list a::before {
    content: ''; position: absolute; left: -18px; top: 50%;
    width: 2px; height: 60%; transform: translateY(-50%);
    background: var(--c-orange); opacity: 0;
    transition: opacity 0.2s ease;
}
.toc__list a:hover { color: var(--c-navy); }
.toc__list a.is-active { color: var(--c-orange-dark); font-weight: 600; }
.toc__list a.is-active::before { opacity: 1; }

.share-bar {
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid var(--c-border);
}
.share-bar__title {
    font-family: var(--font-display); font-size: 11px; font-weight: 800;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--c-muted); margin-bottom: 14px;
}
.share-bar__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--c-paper);
    color: var(--c-text-2); border: 1px solid var(--c-border);
    transition: all 0.18s ease; cursor: pointer;
}
.share-btn:hover { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.share-btn svg { width: 16px; height: 16px; }
.share-btn[data-copied="1"]::after {
    content: 'Kopiert!'; position: absolute;
    background: var(--c-navy); color: #fff;
    padding: 4px 10px; border-radius: 6px;
    font-size: 12px; font-weight: 600;
    transform: translateY(-44px);
    animation: fadeOut 1.6s forwards;
}
@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

/* ===== Article body ===== */
.article-body { max-width: 720px; }
.article-body h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800; line-height: 1.2; letter-spacing: -0.02em;
    margin: 56px 0 18px;
    scroll-margin-top: 100px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
    font-size: clamp(1.2rem, 1.9vw, 1.45rem);
    font-weight: 700; line-height: 1.3; letter-spacing: -0.015em;
    margin: 36px 0 14px;
    scroll-margin-top: 100px;
}
.article-body p {
    font-size: 17px; line-height: 1.72;
    margin-bottom: 20px; color: var(--c-text);
}
.article-body p:first-of-type::first-letter {
    /* subtle drop cap on the lead paragraph (optional - applies only when class set) */
}
.article-body .lead-paragraph {
    font-size: 19px; line-height: 1.65;
    color: var(--c-navy); font-weight: 500;
    margin-bottom: 28px;
}
.article-body strong { color: var(--c-navy); font-weight: 700; }
.article-body a {
    color: var(--c-orange-dark); text-decoration: underline;
    text-underline-offset: 3px; text-decoration-thickness: 1.5px;
    transition: color 0.18s ease;
}
.article-body a:hover { color: var(--c-navy); }
.article-body ul, .article-body ol {
    margin: 0 0 24px 8px; padding-left: 18px;
}
.article-body ul li {
    position: relative; padding-left: 6px;
    margin-bottom: 10px;
    list-style: disc; color: var(--c-text);
    line-height: 1.65;
}
.article-body ul li::marker { color: var(--c-orange); font-size: 0.9em; }
.article-body ol li {
    margin-bottom: 10px; line-height: 1.65; list-style: decimal;
}
.article-body ol li::marker { color: var(--c-orange-dark); font-weight: 700; }

.article-body figure { margin: 36px 0; }
.article-body figure img {
    border-radius: 16px; box-shadow: 0 20px 50px -25px rgba(0,42,60,0.3);
}
.article-body figcaption {
    font-size: 13px; color: var(--c-muted);
    text-align: center; margin-top: 12px;
}

.callout {
    background: linear-gradient(135deg, rgba(247,149,32,0.06), rgba(247,149,32,0.02));
    border-left: 4px solid var(--c-orange);
    padding: 22px 26px 22px 24px;
    border-radius: 0 12px 12px 0;
    margin: 32px 0;
}
.callout__label {
    font-family: var(--font-display); font-size: 11px; font-weight: 800;
    color: var(--c-orange-dark); letter-spacing: 0.18em;
    text-transform: uppercase; margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.callout p { margin: 0; font-size: 16px; line-height: 1.6; }
.callout p + p { margin-top: 10px; }

.pullquote {
    margin: 48px -20px;
    padding: 8px 26px;
    border-left: 4px solid var(--c-navy);
    font-family: var(--font-display);
    font-size: 22px; font-style: italic;
    line-height: 1.4; color: var(--c-navy);
    font-weight: 600;
}
.pullquote footer {
    font-style: normal; font-size: 14px; font-weight: 500;
    color: var(--c-text-2); margin-top: 12px;
}

.stat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px; margin: 32px 0;
}
.stat-card {
    background: var(--c-paper); padding: 22px 20px;
    border-radius: 14px; border: 1px solid var(--c-border);
    text-align: center;
}
.stat-card strong {
    display: block;
    font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 800; line-height: 1; letter-spacing: -0.03em;
    color: var(--c-orange-dark); margin-bottom: 6px;
}
.stat-card span {
    font-size: 13px; color: var(--c-text-2); line-height: 1.4;
}

/* ===== Author box ===== */
.author-box {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 28px; background: var(--c-paper);
    border-radius: 16px; margin: 56px 0 24px;
}
.author-box__avatar {
    width: 72px; height: 72px; flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #f79520, #fbb554);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-family: var(--font-display);
    font-weight: 800; font-size: 24px;
}
.author-box__body strong {
    display: block; color: var(--c-navy); font-family: var(--font-display);
    font-size: 17px; font-weight: 700; margin-bottom: 4px;
}
.author-box__body p {
    font-size: 14.5px; color: var(--c-text-2); margin: 0; line-height: 1.55;
}

/* ===== CTA card inside article ===== */
.article-cta {
    margin: 56px 0 0;
    padding: 36px 32px;
    background: var(--c-navy);
    color: #fff;
    border-radius: 22px;
    background-image:
        radial-gradient(circle at 80% 30%, rgba(247,149,32,0.2) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(247,149,32,0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}
.article-cta h3 {
    color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    font-weight: 800; margin-bottom: 10px;
}
.article-cta p {
    color: rgba(255,255,255,0.78); font-size: 16px;
    line-height: 1.55; margin-bottom: 22px;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related {
    padding: 80px 0;
    background: var(--c-paper);
    border-top: 1px solid var(--c-border);
}
.related__title {
    text-align: center; margin-bottom: 40px;
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 800;
}
.related__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ============================================================
   FOOTER (shared with landing page)
   ============================================================ */
.site-footer {
    background: var(--c-navy);
    color: rgba(255,255,255,0.7);
    padding: 72px 0 28px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto; padding: 0 24px;
}
.site-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer__brand img {
    height: 56px; width: auto; display: block; margin-bottom: 18px;
}
.site-footer__tagline {
    font-size: 15px; line-height: 1.6;
    color: rgba(255,255,255,0.75); max-width: 320px;
}
.site-footer__col h4 {
    font-family: var(--font-display);
    font-size: 13px; font-weight: 700;
    color: #fff;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.site-footer__col ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.site-footer__col a {
    color: rgba(255,255,255,0.72);
    font-size: 14.5px;
    text-decoration: none;
    transition: color 0.18s ease;
}
.site-footer__col a:hover { color: var(--c-orange); }
.site-footer__bottom {
    margin-top: 28px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    font-size: 13px; color: rgba(255,255,255,0.45);
}
.site-footer__bottom a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
.site-footer__bottom a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 880px) {
    .site-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}
@media (max-width: 540px) {
    .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
    .site-footer { padding: 48px 0 24px; }
}

/* Legacy class shims */
.blog-footer { display: none; }
.blog-footer__inner, .blog-footer__brand, .blog-footer__links, .blog-footer__copy { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .article-grid { grid-template-columns: 1fr; gap: 32px; }
    .toc { position: relative; top: 0; padding-right: 0; }
    .toc__list { flex-direction: row; flex-wrap: wrap; gap: 8px; border-left: none; padding-left: 0; }
    .toc__list a { padding: 8px 14px; background: var(--c-paper); border-radius: 100px; font-size: 13px; }
    .toc__list a::before { display: none; }
    .toc__list a.is-active { background: var(--c-navy); color: #fff; }
    .share-bar { margin-top: 24px; }
    .share-bar__buttons { gap: 10px; }
    .post-card--featured { grid-column: span 1; flex-direction: column; }
    .post-card--featured .post-card__cover { flex: 0; aspect-ratio: 16/10; }
    .post-card--featured .post-card__body { padding: 24px 26px 28px; }
    .post-card--featured .post-card__title { font-size: 22px; }
}

@media (max-width: 880px) {
    .site-header__inner { gap: 16px; }
    .site-header__nav { display: none; }
    .site-header__cta { padding: 12px 20px; font-size: 14px; min-height: 48px; }
    .site-header__logo img { height: 44px; }
}

@media (max-width: 720px) {
    .blog-nav { display: none; }
    .article-hero { padding: 32px 0 24px; }
    .article-grid { padding-bottom: 60px; }
    .pullquote { margin: 36px 0; }
    .article-body p { font-size: 16.5px; }
    .filters { gap: 6px; }
    .filter-pill { padding: 8px 14px; font-size: 13px; }
    .post-grid { padding: 32px 0 64px; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
