/* ═══════ /viden: artikel-layout (bygges af scripts/build_viden.py) ═══════ */

/* Hero: tekst til venstre, "Kort svar" som glas-kort til højre */
.vd-hero { padding: 64px 48px 72px; }
.vd-hero-inner { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.vd-hero-inner--single { grid-template-columns: 1fr; max-width: 860px; }
.vd-hero h1 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -1.4px; }
.vd-hero .ux-lead { font-size: 17px; margin-top: 16px; }
.vd-crumbs { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.vd-crumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.vd-crumbs a:hover { color: #fff; text-decoration: underline; }
.vd-meta { margin-top: 20px; font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: rgba(255,255,255,.5); }

.vd-kort { position: relative; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; padding: 28px 30px; color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.65; box-shadow: var(--ux-shadow); backdrop-filter: blur(8px); }
.vd-kort::before { content: ''; position: absolute; left: 0; top: 28px; bottom: 28px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, #00C9A7, #00907A); }
.vd-kort-lbl { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.vd-kort p { margin: 0 0 12px; }
.vd-kort p:last-child { margin-bottom: 0; }
.vd-kort strong { color: #fff; }
.vd-kort ul { margin: 0; padding-left: 20px; }
.vd-kort a { color: #fff; text-decoration: underline; }

/* Body: artikel + sidespalte */
.vd-body { padding: 72px 0 80px; }
.vd-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 64px; justify-content: center; align-items: start; }
.vd-article { font-size: 17px; line-height: 1.75; color: #1e293b; min-width: 0; }
.vd-article > p:first-child { font-size: 18.5px; color: var(--navy); }
.vd-article p { margin: 0 0 20px; }
.vd-article h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.8px; line-height: 1.15; margin: 52px 0 16px; color: var(--navy); position: relative; padding-top: 18px; }
.vd-article h2::before { content: ''; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #00C9A7, #00907A); }
.vd-article h2:first-child { margin-top: 0; }
.vd-article h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; margin: 32px 0 10px; color: var(--navy); }
.vd-article h4 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; color: var(--navy); }
.vd-article a { color: var(--teal-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.vd-article a:hover { color: var(--navy); }
.vd-article strong { color: var(--navy); }
.vd-article hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }

/* Punktlister som kort-rækker, nummererede lister som trin */
.vd-article ul { list-style: none; margin: 0 0 24px; padding: 0; }
.vd-article ul li { position: relative; padding: 12px 16px 12px 44px; margin-bottom: 8px; background: var(--light); border: 1px solid var(--border); border-radius: 12px; }
.vd-article ul li::before { content: '✓'; position: absolute; left: 16px; top: 11px; color: var(--teal-d); font-weight: 800; }
.vd-article ol { list-style: none; counter-reset: vd; margin: 0 0 24px; padding: 0; }
.vd-article ol li { position: relative; padding: 4px 0 4px 48px; margin-bottom: 12px; counter-increment: vd; }
.vd-article ol li::before { content: counter(vd); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--teal); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.vd-article blockquote { margin: 28px 0; padding: 22px 26px; border-radius: 18px; background: linear-gradient(135deg, #0A2540, #0f3a5f 60%, #00907A 160%); color: #fff; font-size: 18px; line-height: 1.6; }
.vd-article blockquote p { color: #fff; margin: 0 0 8px; }
.vd-article blockquote p:last-child { margin-bottom: 0; }

/* Tabeller som kort */
.vd-table { overflow-x: auto; margin: 0 0 28px; border-radius: 18px; box-shadow: 0 18px 40px -28px rgba(10,37,64,.45); border: 1px solid var(--border); }
.vd-table table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.vd-table th, .vd-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.vd-table th { background: var(--navy); color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; }
.vd-table th:empty { background: var(--navy); }
.vd-table tbody tr:nth-child(even) td { background: #f8fafc; }
.vd-table tr:last-child td { border-bottom: 0; }
.vd-table td:first-child { white-space: nowrap; font-weight: 600; color: var(--navy); }

/* Kilder: sammenfoldet */
.vd-sources { margin-top: 48px; border: 1px solid var(--border); border-radius: 14px; background: var(--light); font-size: 14px; color: var(--muted); }
.vd-sources summary { cursor: pointer; list-style: none; padding: 16px 20px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; color: var(--navy); display: flex; justify-content: space-between; }
.vd-sources summary::-webkit-details-marker { display: none; }
.vd-sources summary::after { content: '+'; color: var(--teal-d); font-size: 20px; line-height: 1; }
.vd-sources[open] summary::after { content: '–'; }
.vd-sources ol { list-style: decimal; padding: 0 20px 16px 40px; margin: 0; counter-reset: none; }
.vd-sources ol li { padding: 0; margin-bottom: 8px; overflow-wrap: anywhere; }
.vd-sources ol li::before { content: none; }
.vd-sources a { color: var(--teal-d); font-weight: 500; }

/* Sidespalte */
.vd-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.vd-toc { background: var(--light); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.vd-toc-lbl { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-d); margin-bottom: 10px; }
.vd-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.vd-toc li { counter-increment: toc; }
.vd-toc a { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; line-height: 1.35; color: var(--navy); text-decoration: none; border-bottom: 1px solid rgba(10,37,64,.06); }
.vd-toc a::before { content: counter(toc, decimal-leading-zero); font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--teal-d); font-size: 12px; margin-top: 1px; }
.vd-toc li:last-child a { border-bottom: 0; }
.vd-toc a:hover { color: var(--teal-d); }
.vd-sidecta { background: var(--navy); border-radius: 16px; padding: 22px 22px 24px; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.55; }
.vd-sidecta .eyebrow { color: var(--teal); margin-bottom: 8px; }
.vd-sidecta b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 18px; color: #fff; line-height: 1.25; margin-bottom: 8px; }
.vd-sidecta p { margin: 0 0 14px; }
.vd-sidecta .ux-btn { display: block; text-align: center; margin-bottom: 8px; padding: 12px 16px; font-size: 14px; }
.vd-sidecta .ux-btn:last-child { margin-bottom: 0; }

/* FAQ, final-kort og relaterede */
.vd-faq { padding: 80px 0; }
.vd-final { padding: 0 48px 90px; }
.vd-final-copy p { max-width: 560px; }
.vd-final-copy p:last-of-type { font-size: 15px; color: rgba(255,255,255,.6); }
.vd-related { padding: 80px 0 100px; }
.vd-index { padding: 56px 0 80px; }
.vd-group { font-size: 22px; letter-spacing: -.6px; margin: 40px 0 18px; color: var(--navy); }
.vd-group:first-child { margin-top: 0; }
.vd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vd-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--ux-r); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.vd-card:hover { transform: translateY(-4px); box-shadow: var(--ux-shadow); }
.vd-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1b2f45; }
.vd-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.vd-card:hover .vd-card-img img { transform: scale(1.04); }
.vd-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.vd-card-k { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--teal-d); }
.vd-card h3 { font-size: 18px; line-height: 1.25; letter-spacing: -.3px; color: var(--navy); margin: 0; }
.vd-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; flex: 1; }
.vd-card .ux-link { font-size: 14px; }

@media (max-width: 1024px) {
  .vd-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .vd-side { position: static; }
  .vd-toc { display: none; }
  .vd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .vd-hero { padding: 44px 20px 48px; }
  .vd-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .vd-kort { padding: 22px 22px; font-size: 15px; }
}
@media (max-width: 700px) {
  .vd-body { padding: 44px 0 52px; }
  .vd-article { font-size: 16px; }
  .vd-article > p:first-child { font-size: 17px; }
  .vd-grid { grid-template-columns: 1fr; }
  .vd-final { padding: 0 16px 60px; }
}

/* ═══════ Kundecase: kompakt layout ═══════ */
.vc-hero { padding: 56px 48px 56px; }
.vc-hero-inner { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.vc-hero h1 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -1.2px; }
.vc-hero .ux-lead { font-size: 17px; margin-top: 16px; }
.vc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.vc-chips span { font-size: 13px; font-weight: 600; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 14px; }
.vc-hero-media { margin: 0; position: relative; }
.vc-hero-media img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 24px; display: block; box-shadow: var(--ux-shadow); border: 1px solid rgba(255,255,255,.12); }

.vc-body { padding: 56px 0 64px; }
.vc-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.vc-text { max-width: none; margin: 0; font-size: 16.5px; }
.vc-text h2 { font-size: 24px; margin: 0 0 12px; }
.vc-text h2 + p { margin-top: 0; }
.vc-text h2:not(:first-child) { margin-top: 30px; }
.vc-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.vc-quote { margin: 0; padding: 24px 26px; border-radius: 18px; background: linear-gradient(135deg, #0A2540, #0f3a5f 60%, #00907A 160%); color: #fff; font-size: 17px; line-height: 1.6; border: 0; }
.vc-quote p { margin: 0 0 12px; color: #fff; font-weight: 500; }
.vc-quote-by { display: block; font-style: normal; font-size: 13px; color: rgba(255,255,255,.75); font-weight: 600; }
.vc-side-img { margin: 0; }
.vc-side-img img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; display: block; }
.vc-take, .vc-links { background: var(--light); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; }
.vc-take h3, .vc-links h3 { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--teal-d); margin: 0 0 10px; }
.vc-take ul, .vc-links ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.55; color: #1e293b; }
.vc-take li, .vc-links li { margin-bottom: 8px; }
.vc-take li:last-child, .vc-links li:last-child { margin-bottom: 0; }
.vc-links a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.vc-cta { padding: 56px 0; }
.vc-cta h2 { font-size: clamp(24px, 2.8vw, 34px); }

@media (max-width: 900px) {
  .vc-hero { padding: 40px 20px 36px; }
  .vc-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .vc-hero-media img { max-height: 300px; }
  .vc-body { padding: 36px 0 44px; }
  .vc-grid { grid-template-columns: 1fr; gap: 28px; }
  .vc-side { position: static; }
}
