/* ==========================================================================
   LearnHub ApS – designsystem
   Farver afledt af bogomslaget (mørkeblå/orange) + LearnHub-logoets grønne ikon.
   Alle tekstfarver er kontrastkontrolleret mod WCAG 2.2 AA.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --navy-950: #0a1430;
  --navy-900: #0e1a3a;   /* mørkeste flade (footer, bogsektion) */
  --navy-800: #16285a;   /* primær mørk blå */
  --blue-700: #21377a;
  --blue-600: #2a4085;   /* bogomslagets blå */
  --blue-500: #4a61a8;   /* dæmpet blå */
  --blue-100: #e3e9f7;
  --blue-50:  #eef2fb;
  --orange-500: #e5532d; /* bogomslagets orange – kun grafik/accenter */
  --orange-600: #c9441e; /* knapper med hvid tekst (4,85:1) */
  --orange-700: #b23a17; /* små orange tekster på hvid (5,98:1) */
  --orange-300: #f28a63; /* orange tekst på mørk baggrund (7:1) */
  --orange-50:  #fdf0eb;
  --green-700: #0a7f45;  /* logo-grøn – succesbeskeder */

  /* Neutrale */
  --ink: #16203a;
  --text: #283350;
  --muted: #4a5572;
  --line: #e2e7f1;
  --line-strong: #cfd7e6;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --on-dark: #ffffff;
  --on-dark-muted: #c9d3ea;

  /* Typografi */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lead: clamp(1.125rem, .4vw + 1.03rem, 1.3125rem);
  --fs-h3: clamp(1.1875rem, .35vw + 1.1rem, 1.375rem);
  --fs-h2: clamp(1.75rem, 1.6vw + 1.3rem, 2.625rem);
  --fs-h1: clamp(2.125rem, 3.2vw + 1.35rem, 3.75rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 120px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 58, .06), 0 1px 1px rgba(14, 26, 58, .04);
  --shadow: 0 1px 2px rgba(14, 26, 58, .05), 0 10px 30px -12px rgba(14, 26, 58, .16);
  --shadow-lg: 0 2px 4px rgba(14, 26, 58, .05), 0 28px 60px -24px rgba(14, 26, 58, .32);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; color: var(--ink); line-height: 1.15; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 750; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.015em; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1.0625rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .35em; }
a { color: var(--blue-600); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-800); text-decoration-thickness: 2px; }
strong { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-100); color: var(--ink); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(780px + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-900); color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }
.section-dark a:not(.btn) { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p:not(.eyebrow) { font-size: var(--fs-lead); color: var(--muted); margin: 0; }
.section-dark .section-head p:not(.eyebrow) { color: var(--on-dark-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-700); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange-500); border-radius: 2px; }
.section-dark .eyebrow { color: var(--orange-300); }
.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.6; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; grid-template-columns: minmax(0, 1fr); }
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-wide-left { grid-template-columns: 1.15fr .85fr; }
  .split-wide-right { grid-template-columns: .85fr 1.15fr; }
  .split.top { align-items: start; }
}
.stack > * + * { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--orange-600); --btn-fg: #fff; --btn-bd: var(--orange-600);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 12px;
  font: 650 1rem/1.2 var(--font); letter-spacing: -.005em; text-decoration: none; text-align: center;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { --btn-bg: var(--orange-700); --btn-bd: var(--orange-700); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(178, 58, 23, .6); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-secondary { --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--line-strong); }
.btn-secondary:hover { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-bd: var(--navy-800); color: var(--navy-800); box-shadow: var(--shadow-sm); }
.btn-navy { --btn-bg: var(--navy-800); --btn-bd: var(--navy-800); }
.btn-navy:hover { --btn-bg: var(--navy-900); --btn-bd: var(--navy-900); box-shadow: 0 8px 20px -10px rgba(14, 26, 58, .6); }
.btn-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .4); }
.btn-light:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-bd: #fff; color: #fff; box-shadow: none; }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; color: var(--blue-600); text-decoration: none; max-width: 100%;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--navy-800); text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(14, 26, 58, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
@media (min-width: 1100px) { .brand img { height: 44px; } }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--navy-800);
  font: 650 .9375rem var(--font); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-open .nav-toggle .icon-menu { display: none; }
.primary-nav { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }
.nav-link, .nav-sub-toggle {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 12px 4px; border: 0; background: none; cursor: pointer;
  font: 600 1.0625rem var(--font); color: var(--ink); text-decoration: none; text-align: left;
}
.nav-link[aria-current="page"], .nav-item.is-active > .nav-sub-toggle { color: var(--blue-600); }
.nav-sub-toggle svg { width: 18px; height: 18px; transition: transform .2s var(--ease); margin-left: auto; }
.nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.subnav { list-style: none; margin: 0; padding: 0 0 8px 12px; display: none; }
.subnav.is-open { display: block; }
.subnav a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--blue-50); color: var(--navy-800); }
.subnav .subnav-all { font-weight: 650; color: var(--blue-600); }
.header-cta { display: none; }

/* Mobil-menu som panel */
@media (max-width: 1023px) {
  .nav-open .primary-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: #fff; overflow-y: auto; padding: 8px var(--gutter) 32px;
    border-top: 1px solid var(--line);
  }
  .nav-open { overflow: hidden; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .mobile-cta { margin-top: 24px; }
  .mobile-cta .btn { width: 100%; }
}
@media (min-width: 1024px) {
  .nav-toggle, .mobile-cta { display: none; }
  .primary-nav { display: block; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-item { position: relative; }
  .nav-link, .nav-sub-toggle { padding: 10px 12px; font-size: .96875rem; border-radius: 10px; width: auto; }
  .nav-link:hover, .nav-sub-toggle:hover { background: var(--bg-alt); color: var(--navy-800); }
  .nav-sub-toggle svg { width: 16px; height: 16px; margin-left: 0; }
  .subnav {
    position: absolute; top: calc(100% + 8px); left: -8px; min-width: 300px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  }
  .subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .nav-item:hover > .subnav, .subnav.is-open { display: block; }
  .header-cta { display: inline-flex; }
}

/* ---------- Staging-banner og review-noter ---------- */
.staging-bar {
  background: #fff7d6; color: #5c4400; border-bottom: 1px solid #f0d97a;
  font-size: var(--fs-xs); text-align: center; padding: 6px var(--gutter);
}
.review-note {
  border: 1.5px dashed #d9a400; background: #fffbea; color: #5c4400; border-radius: 12px;
  padding: 12px 16px; font-size: var(--fs-sm); margin: 1rem 0;
}
.review-note strong { color: #5c4400; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 20px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy-800); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 550; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(42, 64, 133, .10), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(229, 83, 45, .07), transparent 60%),
    var(--bg-alt);
  padding-block: clamp(40px, 6vw, 96px) clamp(56px, 7vw, 112px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(22, 40, 90, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 75%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 75%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { margin-bottom: .45em; }
.hero h1 .hl { color: var(--blue-600); }
.hero .lead { max-width: 620px; margin-bottom: 1.75rem; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: var(--fs-sm); color: var(--muted); font-weight: 550; }
.hero-note svg { width: 18px; height: 18px; color: var(--orange-600); flex: none; }
.hero-media { position: relative; max-width: 480px; justify-self: center; width: 100%; }
@media (min-width: 900px) { .hero-media { justify-self: end; } }
.hero-media::before {
  content: ""; position: absolute; inset: 7% -5% -5% 9%; border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--blue-600), var(--navy-900)); z-index: 0;
}
.hero-media::after { display: none; }
@media (min-width: 600px) { .hero-media::after { display: block; } }
.hero-media::after {
  content: ""; position: absolute; width: 72px; height: 72px; left: -20px; top: -20px;
  background: var(--orange-500); border-radius: 16px; z-index: 0;
}
.hero-media picture, .hero-media img { position: relative; z-index: 1; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; z-index: 2; left: -8px; bottom: 7%;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; max-width: 290px;
}
@media (min-width: 900px) { .hero-badge { left: -40px; } }
.hero-badge .badge-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--orange-50); color: var(--orange-600); display: grid; place-items: center; flex: none; }
.hero-badge .badge-icon svg { width: 22px; height: 22px; }
.hero-badge p { margin: 0; font-size: var(--fs-sm); line-height: 1.35; color: var(--muted); }
.hero-badge strong { display: block; color: var(--ink); font-size: .9375rem; }

/* Sub-hero for undersider */
.page-hero {
  background:
    radial-gradient(900px 380px at 100% -20%, rgba(42, 64, 133, .10), transparent 60%),
    var(--bg-alt);
  padding-block: clamp(32px, 5vw, 64px) clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero .lead { max-width: 720px; }
.page-hero-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.35fr .65fr; gap: 56px; } }
.facts-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.facts-card h2 { font-size: 1rem; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.facts-card dl { margin: 0; display: grid; gap: 12px; }
.facts-card dt { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts-card dd { margin: 2px 0 0; color: var(--ink); font-weight: 550; line-height: 1.45; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 32px); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card .card-foot { margin-top: auto; padding-top: 8px; }
.card-hover:hover, .card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; text-decoration: none; }
.card-link:hover h3 { color: var(--blue-600); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--blue-50); color: var(--blue-600);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.orange { background: var(--orange-50); color: var(--orange-600); }
.card-stretch-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 650; background: var(--blue-50); color: var(--blue-700); line-height: 1.4;
}
.tag.orange { background: var(--orange-50); color: var(--orange-700); }
.tag.neutral { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 550; color: var(--ink); }
.section-alt .chips li { background: #fff; }

/* Credential-kort (faglig troværdighed) */
.cred-band { margin-top: clamp(-56px, -5vw, -40px); position: relative; z-index: 2; }
.cred-card { flex-direction: row; gap: 16px; align-items: flex-start; padding: 22px; box-shadow: var(--shadow); }
.cred-card .card-icon { margin: 0; flex: none; width: 48px; height: 48px; }
.cred-card .cred-role { font-size: var(--fs-xs); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-700); margin: 0 0 4px; }
.cred-card .cred-name { font-size: 1.0625rem; font-weight: 700; color: var(--ink); line-height: 1.35; letter-spacing: -.01em; margin: 0 0 6px; }
.cred-card a { font-size: var(--fs-sm); font-weight: 600; }
.cred-note { font-size: var(--fs-xs); color: var(--muted); margin: 14px 0 0; text-align: center; }

/* Check-liste */
.checklist { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.checklist li { position: relative; padding-left: 34px; margin: 0 0 .7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a4085' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section-dark .checklist li::before { background-color: rgba(255, 255, 255, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f28a63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4L19 7'/%3E%3C/svg%3E"); }

/* ---------- Proces / tidslinje ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.step { position: relative; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy-800); color: #fff; font-weight: 750; font-size: 1.0625rem; margin-bottom: 16px;
}
.step:nth-child(4) .step-num { background: var(--orange-600); }
.step h3 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5em; }
.step p { color: var(--muted); margin: 0; font-size: var(--fs-sm); }
@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; right: -21px; width: 22px; height: 2px; background: var(--line-strong);
  }
}

.steps.timeline .step::after { display: none; }

/* ---------- Profil (Mød personen) ---------- */
.profile-media { position: relative; max-width: 440px; }
.profile-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; width: 100%; }
.profile-media .profile-tag {
  position: absolute; right: 16px; bottom: 16px; background: rgba(14, 26, 58, .9); color: #fff;
  border-radius: 12px; padding: 10px 14px; font-size: var(--fs-sm); line-height: 1.3;
}
.profile-media .profile-tag strong { color: #fff; display: block; }
.role-line { font-weight: 650; color: var(--blue-600); margin: -.25rem 0 1.25rem; font-size: 1.0625rem; }

/* ---------- Bogsektion ---------- */
.book-section { position: relative; overflow: hidden; }
.book-section::before {
  content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 83, 45, .22), transparent 65%); pointer-events: none;
}
.book-media { position: relative; max-width: 380px; margin-inline: auto; }
.book-media img { border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); aspect-ratio: 1356 / 1968; object-fit: cover; width: 100%; }
.book-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 1.5rem 0 2rem; padding: 20px 0; border-block: 1px solid rgba(255, 255, 255, .14); }
.book-facts div { min-width: 0; }
.book-facts dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--orange-300); font-weight: 700; }
.book-facts dd { margin: 2px 0 0; color: #fff; font-weight: 550; overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 479px) { .book-facts { grid-template-columns: 1fr; } }
.book-facts.light { border-color: var(--line); }
.book-facts.light dt { color: var(--orange-700); }
.book-facts.light dd { color: var(--ink); }

/* ---------- Artikelkort ---------- */
.article-card .meta { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.article-card h3 { font-size: 1.25rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 650; color: var(--ink); font-size: 1.0625rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a4085' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA-band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--on-dark-muted); padding: clamp(32px, 5vw, 64px);
  display: grid; gap: 24px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 40px;
  background: var(--orange-500); opacity: .16; transform: rotate(18deg);
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin: 0; font-size: var(--fs-lead); }
.cta-band > * { position: relative; z-index: 1; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 14px; }
.contact-list li { margin: 0; display: flex; gap: 14px; align-items: center; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); flex: none; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list a { font-weight: 650; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--blue-600); text-decoration: underline; }
.contact-list small { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid .half { grid-column: span 1; } .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-weight: 650; color: var(--ink); margin-bottom: 6px; font-size: .96875rem; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink);
  font: 400 1rem/1.5 var(--font); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5572' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(42, 64, 133, .15); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field-error { color: #b42318; font-size: var(--fs-sm); margin: 6px 0 0; font-weight: 550; }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.form-status { border-radius: 12px; padding: 14px 16px; font-weight: 550; margin: 0; }
.form-status:empty { display: none; }
.form-status.is-success { background: #e8f5ee; color: #075c33; border: 1px solid #a6d8bb; }
.form-status.is-error { background: #fdecea; color: #8a1c12; border: 1px solid #f3b8b1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }

/* ---------- Artikel / prosa ---------- */
.prose { font-size: 1.09375rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 1vw + 1.2rem, 1.875rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.75em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--orange-500); color: var(--ink); font-size: 1.125rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: 1.5em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-alt); color: var(--ink); font-weight: 650; }
.callout { background: var(--blue-50); border-radius: var(--radius); padding: 20px 24px; margin: 1.75em 0; }
.callout p:last-child { margin: 0; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--muted); font-size: var(--fs-sm); }
.author-chip { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.author-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.toc h2 { font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: var(--fs-sm); }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--blue-600); text-decoration: underline; }
.article-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.article-layout > * { min-width: 0; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; } .article-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }

/* ---------- Case-kort ---------- */
.case-card dl { display: grid; gap: 14px; margin: 0; }
.case-card dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; font-weight: 750; color: var(--orange-700); }
.case-card dd { margin: 3px 0 0; color: var(--text); }
.case-card .status { display: inline-flex; align-items: center; gap: 6px; }
.case-card .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); padding-top: clamp(56px, 7vw, 88px); font-size: var(--fs-sm); }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; }
.footer-title { color: #fff; font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links li { margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.footer-bottom p { margin: 0; }
.footer-motto { color: #fff; font-weight: 600; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- Chat-widget (eksisterende ChatKit-integration) ---------- */
.chat-launcher {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px;
  border-radius: 999px; border: 0; cursor: pointer; background: var(--navy-800); color: #fff;
  font: 650 .9375rem var(--font); box-shadow: 0 10px 30px -8px rgba(14, 26, 58, .55);
  transition: transform .2s var(--ease), background-color .2s;
}
.chat-launcher:hover { background: var(--navy-900); transform: translateY(-2px); }
.chat-launcher svg { width: 22px; height: 22px; }
@media (max-width: 479px) { .chat-launcher { padding: 0; width: 52px; justify-content: center; } .chat-launcher .chat-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.chat-panel {
  position: fixed; z-index: 200; right: 16px; bottom: 16px; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 32px));
  background: #fff; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(14, 26, 58, .45); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; background: var(--navy-800); color: #fff; }
.chat-head p { margin: 0; font-weight: 650; font-size: .9375rem; line-height: 1.3; }
.chat-head small { display: block; font-weight: 450; color: var(--on-dark-muted); font-size: .75rem; }
.chat-close { width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-close:hover { background: rgba(255, 255, 255, .22); }
.chat-close svg { width: 20px; height: 20px; }
.chat-actions { display: flex; gap: 6px; }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg-alt); }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .9375rem; line-height: 1.5; overflow-wrap: break-word; }
.chat-msg p { margin: 0 0 .5em; }
.chat-msg p:last-child { margin-bottom: 0; }
.chat-msg ul, .chat-msg ol { margin: .25em 0 .5em; padding-left: 1.2em; }
.chat-msg li + li { margin-top: .2em; }
.chat-msg a { color: inherit; text-decoration: underline; word-break: break-word; }
.chat-msg-assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 6px; }
.chat-msg-user { align-self: flex-end; background: var(--navy-800); color: #fff; border-bottom-right-radius: 6px; }
.chat-msg-user a { color: #fff; }
.chat-msg-error { border-color: #f3b8b1; background: #fdf3f2; color: #8a1c12; }
.chat-typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.chat-typing .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); opacity: .4; animation: chat-dot 1.2s infinite ease-in-out; }
.chat-typing .dot:nth-child(2) { animation-delay: .15s; } .chat-typing .dot:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 14px 12px; }
.chat-starters[hidden] { display: none; }
.chat-starter { border: 1px solid var(--line-strong); background: #fff; color: var(--navy-800); border-radius: 999px; padding: 7px 12px; font: 550 .8125rem/1.3 var(--font); cursor: pointer; text-align: left; }
.chat-starter:hover { border-color: var(--navy-800); background: var(--blue-50); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { flex: 1; resize: none; overflow-y: hidden; min-height: 44px; max-height: 140px; padding: 11px 12px; border: 1.5px solid var(--line-strong); border-radius: 12px; font: 400 .9375rem/1.4 var(--font); color: var(--ink); }
.chat-form textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(42, 64, 133, .15); }
.chat-send { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--orange-600); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-send:hover { background: var(--orange-700); }
.chat-send:disabled { opacity: .5; cursor: progress; }
.chat-send svg { width: 20px; height: 20px; }
.chat-foot { padding: 8px 14px; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--line); }
.chat-foot a { color: var(--muted); }
@media (max-width: 479px) { .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; } }

/* Plads til chat-knappen under footerens bund */
.site-footer .footer-bottom { padding-bottom: 88px; }
@media (min-width: 720px) { .site-footer .footer-bottom { padding-bottom: 22px; padding-right: 160px; } }

/* ---------- Animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Diverse ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.ext-icon { display: inline-block; width: .85em; height: .85em; vertical-align: -.05em; margin-left: .2em; }
.divider-title { display: flex; align-items: center; gap: 16px; }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media print {
  .site-header, .chat-launcher, .chat-panel, .site-footer, .cta-band, .staging-bar { display: none !important; }
  body { color: #000; }
  a { color: #000; }
}
