.aaf-blog-content {
    --navy-950: #07111f;
    --navy-900: #0b1a2d;
    --navy-800: #132945;
    --ink: #162033;
    --muted: #667085;
    --line: #dfe5ee;
    --surface: #ffffff;
    --surface-soft: #f5f7fb;
    --accent: #bed3f9;
    --accent-strong: #8fb2ee;
    --radius: 18px;
    --shadow: 0 16px 40px rgba(17, 31, 54, .10);
    --shell: 1180px;
}

* { box-sizing: border-box; }
.aaf-blog-content { scroll-behavior: smooth; }
.aaf-blog-content {
    margin: 0;
    font-family: Calibri, Arial, sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.65;
}
.aaf-blog-content a { color: inherit; }
.aaf-blog-content img { display: block; width: 100%; }
.aaf-blog-content button, .aaf-blog-content input, .aaf-blog-content textarea { font: inherit; }
.site-shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 72px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; }
.skip-link:focus { left: 8px; background: white; padding: 10px 14px; border-radius: 8px; }

.site-header {
    position: sticky; top: 0; z-index: 20;
    background: #000;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.site-header__inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { width: auto; height: 56px; max-width: min(497px, 70vw); object-fit: contain; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { text-decoration: none; color: rgba(255,255,255,.86); }
.site-nav a:hover { color: white; }

.blog-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        linear-gradient(90deg,
            rgba(3,17,34,.68) 0%,
            rgba(3,17,34,.52) 42%,
            rgba(3,17,34,.30) 74%,
            rgba(3,17,34,.22) 100%),
        #03152b url('/assets/images/Banner_mælkevej.png') center center / cover no-repeat;
}
.blog-hero__inner { padding-block: 92px 96px; }
.blog-hero__content { max-width: 850px; }
.blog-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; margin: 0 0 24px; font-weight: 700; }
.blog-hero p:not(.eyebrow) { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 720px; color: rgba(255,255,255,.86); }
.eyebrow { margin: 0 0 8px; font-size: .82rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: #6f82a0; }
.blog-hero .eyebrow, .article-hero .eyebrow, .blog-cta .eyebrow { color: var(--accent); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading--wrap { flex-wrap: wrap; }
.section-heading h2, .blog-cta h2, .related-section h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }

.featured-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); overflow: hidden; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); background: white; }
.featured-card__media { min-height: 420px; background: var(--navy-900); }
.featured-card__image { height: 100%; object-fit: cover; }
.featured-card__content { padding: clamp(28px, 5vw, 54px); align-self: center; }
.featured-card__content h3 { margin: 14px 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; }
.featured-card__content > p:not(.article-meta) { font-size: 1.1rem; color: var(--muted); }

.category-pill { display: inline-flex; align-items: center; border-radius: 999px; background: var(--accent); color: var(--navy-950); padding: 6px 11px; font-size: .78rem; font-weight: 700; }
.article-meta { color: var(--muted); font-size: .9rem; }
.article-meta--light { color: rgba(255,255,255,.72); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 10px; text-decoration: none; font-weight: 700; cursor: pointer; }
.button--primary { background: var(--accent); color: var(--navy-950); }
.button--primary:hover { background: var(--accent-strong); }
.button--ghost { border: 1px solid rgba(255,255,255,.28); color: white; }
.button:disabled { opacity: .55; cursor: not-allowed; }

.blog-search { display: flex; gap: 8px; }
.blog-search input { width: min(320px, 62vw); min-height: 44px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.blog-search button { min-height: 44px; border: 0; border-radius: 10px; padding: 8px 15px; background: var(--navy-900); color: white; font-weight: 700; }
.category-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.category-nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: white; color: #475467; }
.category-nav a:hover, .category-nav a.is-active { background: var(--navy-900); color: white; border-color: var(--navy-900); }
.category-nav span { opacity: .65; margin-left: 4px; }
.filter-summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 12px 0 24px; color: var(--muted); }
.filter-summary p { margin: 0; }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 24px rgba(17,31,54,.06); }
.article-card__media { display: block; aspect-ratio: 16 / 9; background: var(--navy-900); overflow: hidden; }
.article-card__image { height: 100%; object-fit: cover; transition: transform .25s ease; }
.article-card:hover .article-card__image { transform: scale(1.025); }
.article-card__content { padding: 23px; }
.article-card h3 { margin: 12px 0 10px; font-size: 1.45rem; line-height: 1.2; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-card__content > p:not(.article-meta) { color: var(--muted); }
.blog-image-placeholder { width: 100%; height: 100%; min-height: 220px; background: radial-gradient(circle at 18% 23%, white 0 1px, transparent 2px), radial-gradient(circle at 75% 40%, white 0 1px, transparent 2px), radial-gradient(circle at 60% 80%, white 0 1px, transparent 2px), linear-gradient(145deg, #07111f, #142d4d); background-size: 160px 160px, 220px 220px, 190px 190px, auto; }
.empty-state { padding: 60px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-soft); }

.blog-cta { background: var(--navy-900); color: white; }
.blog-cta__inner { min-height: 300px; padding-block: 60px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.blog-cta p:not(.eyebrow) { color: rgba(255,255,255,.72); max-width: 720px; }

.article-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        linear-gradient(90deg, #001036 0%, #012458 48%, #0a4788 100%);
}

/*
 * Headerillustrationen ligger kun i højre del af heroen.
 * Dermed kommer figurens grundlinje ikke ind under tekstområdet.
 * Den bløde maskering i venstre kant gør overgangen usynlig.
 */
.article-hero--with-image::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0 0 0 43%;
    background-image: var(--article-hero-image);
    background-size: auto 100%;
    background-position: right center;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 9%, #000 24%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 9%, #000 24%);
    pointer-events: none;
}

.article-hero__inner {
    position: relative;
    z-index: 1;
    padding-block: 56px 72px;
}

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 35px; color: rgba(255,255,255,.6); font-size: .9rem; }
.breadcrumbs a { color: inherit; text-decoration: none; }

.article-hero h1 {
    margin: 15px 0 20px;
    max-width: 780px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.02;
}

.article-lead {
    max-width: 760px;
    font-size: 1.2rem;
    color: rgba(255,255,255,.78);
}
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 320px); gap: 70px; align-items: start; padding-block: 56px 84px; }
.article-hero-image { overflow: hidden; border-radius: 22px; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--navy-900); }
.article-hero-image__img { height: 100%; object-fit: cover; }
.article-content { padding-top: 28px; font-size: 1.08rem; }
.article-content h2 { margin-top: 2.4em; margin-bottom: .55em; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.16; }
.article-content h3 { margin-top: 2em; font-size: 1.45rem; }
.article-content p { margin: 0 0 1.15em; }
.article-content blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--accent-strong); background: var(--surface-soft); font-size: 1.2rem; font-weight: 700; }
.article-sidebar { position: sticky; top: 100px; }
.sidebar-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface-soft); }
.sidebar-card > p:not(.eyebrow) { color: var(--muted); }
.sidebar-card dl { margin: 22px 0 0; }
.sidebar-card dl div { border-top: 1px solid var(--line); padding: 11px 0; }
.sidebar-card dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sidebar-card dd { margin: 3px 0 0; font-weight: 400; }

.qa-section { margin-top: 70px; padding-top: 38px; border-top: 1px solid var(--line); }
.qa-section h2 { margin-top: 0; }
.qa-list { display: grid; gap: 18px; margin-block: 28px; }
.qa-item { padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
.qa-item h3 { margin-top: 0; }
.qa-answer { margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--surface-soft); }
.qa-answer p { margin-bottom: 0; }
.qa-empty { color: var(--muted); }
.question-preview { margin-top: 24px; padding: 22px; border-radius: 14px; background: var(--surface-soft); }
.question-preview label { display: grid; gap: 6px; font-weight: 700; }
.question-preview input, .question-preview textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: white; }
.question-preview textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.question-preview .button { margin-top: 14px; }
.question-preview small { display: block; margin-top: 10px; color: var(--muted); }
.related-section { padding-top: 0; }

.site-footer { background: var(--navy-950); color: rgba(255,255,255,.78); }
.site-footer__inner { padding-block: 40px; display: flex; justify-content: space-between; gap: 30px; }
.site-footer p { margin: 0; }

@media (max-width: 1100px) {
    .article-hero--with-image::before {
        left: 55%;
    }
    .article-hero h1,
    .article-lead,
    .article-hero .article-meta {
        max-width: 64%;
    }
    .article-hero h1 {
        font-size: clamp(2.35rem, 6.2vw, 4.25rem);
    }
}

@media (max-width: 900px) {
    .featured-card { grid-template-columns: 1fr; }
    .featured-card__media { min-height: 280px; }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout { grid-template-columns: 1fr; gap: 34px; }
    .article-sidebar { position: static; }
    .blog-cta__inner { align-items: flex-start; flex-direction: column; }

    .article-hero--with-image::before {
        left: 62%;
        opacity: .92;
    }
    .article-hero h1,
    .article-lead,
    .article-hero .article-meta {
        max-width: 61%;
    }
    .article-hero h1 {
        font-size: clamp(2.2rem, 6.5vw, 3.7rem);
    }
}

@media (max-width: 720px) {
    /*
     * På små skærme prioriteres teksten. Figuren skjules, så titel,
     * intro og metadata aldrig overlapper illustrationen.
     */
    .article-hero--with-image::before {
        display: none;
    }
    .article-hero h1,
    .article-lead,
    .article-hero .article-meta {
        max-width: 100%;
    }
    .article-hero h1 {
        font-size: clamp(2.15rem, 10vw, 3.1rem);
    }
    .article-hero__inner {
        padding-block: 44px 54px;
    }
    .breadcrumbs {
        margin-bottom: 26px;
    }
}

@media (max-width: 620px) {
    .site-shell { width: min(var(--shell), calc(100% - 28px)); }
    .site-header__inner { min-height: 68px; }
    .brand__logo { height: 44px; max-width: 68vw; }
    .site-nav { gap: 12px; font-size: .95rem; }
    .blog-hero__inner { padding-block: 68px 72px; }
    .section { padding-block: 52px; }
    .article-grid { grid-template-columns: 1fr; }
    .blog-search { width: 100%; }
    .blog-search input { flex: 1; width: auto; min-width: 0; }
    .filter-summary { align-items: flex-start; flex-direction: column; gap: 6px; }
    .form-row { grid-template-columns: 1fr; }
    .site-footer__inner { flex-direction: column; }
}
