/* mæglersalær.dk – the design of 3mæglertilbud.dk (a calm, blue comparison service) plus an
   article layout for the salary guides.
   Depth comes from a few clear surfaces: light-blue hero with a white form, white content,
   a light-blue benefits panel, a dark ink closing section and a light neutral footer.
   One sans-serif (Inter), 6–8px corners, a clean wordmark. */

/* Inter (SIL OFL 1.1, see ../fonts/LICENSE-Inter.txt), self-hosted: the CSP allows no
   third-party font hosts, and loading from Google would send visitors' IPs there. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --ink: #17243d;
  --cobalt: #2854d8;
  --cobalt-hover: #2043ad;
  --tangerine: #fb8c3c; /* primary buttons only, always with ink text */
  --tangerine-hover: #f47b25;
  --blue-surface: #e8eef9;
  --neutral: #f6f7fa;
  --surface: #ffffff;
  --muted: #536078;
  --line: #d4ddec;
  --field-line: #8591a8; /* >= 3:1 against white for input borders */
  --on-ink: #c9d3e6;
  --ok: #1d7a46;
  --error: #b42318;
  --error-bg: #fef3f2;
  --warn-bg: #fff7db;
  --warn-line: #e3c34f;
  --warn-ink: #6b4e00;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-form: 0 1px 2px rgba(23, 36, 61, .06), 0 14px 32px -18px rgba(23, 36, 61, .28);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* spacing scale: 8 16 24 32 48 64 */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-hover); }
h1, h2, h3 { color: var(--ink); font-weight: 650; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1168px; margin: 0 auto; padding: 0 var(--s2); }
@media (min-width: 640px) { .wrap { padding: 0 var(--s3); } }
.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;
}
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* --- development / missing owner details ---------------------------------------- */
.dev-banner {
  background: var(--warn-bg); border-bottom: 1px solid var(--warn-line);
  padding: var(--s1) var(--s2); font-size: .875rem; text-align: center;
}
.missing {
  background: var(--warn-bg); border: 1px dashed var(--warn-line); color: var(--warn-ink);
  border-radius: 4px; padding: 0 4px; font-size: .9em; font-weight: 600;
}
.dev-note {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: .9375rem;
}

/* --- header and wordmark ----------------------------------------------------------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 60px; }
/* One baseline, one size: "mæglersalær" in bold ink with a blue "salær", ".dk" a step lighter. */
.logo {
  display: inline-flex; align-items: baseline;
  color: var(--ink); text-decoration: none;
  font-size: 1.25rem; font-weight: 700; letter-spacing: -.025em; line-height: 1;
}
.logo:hover { color: var(--ink); }
.logo-accent { color: var(--cobalt); }
.logo-tld { color: var(--muted); font-weight: 500; letter-spacing: -.01em; }
.header-nav { display: none; gap: var(--s3); }
.header-nav a { color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: var(--s1) 0; }
.header-nav a:hover { color: var(--cobalt); text-decoration: underline; }
@media (min-width: 720px) { .header-nav { display: flex; } .header-row { min-height: 68px; } }

/* --- hero ------------------------------------------------------------------------- */
.hero { background: var(--blue-surface); padding: var(--s3) 0 var(--s4); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
/* The article headlines are longer than 3mæglertilbud's, so phones get a smaller size and no
   forced line break: the form's first button must stay above the cookie banner. */
.hero h1 {
  font-size: 1.875rem; /* 30px */
  font-weight: 700; line-height: 1.1; letter-spacing: -.03em;
  margin-bottom: 12px;
}
.h1-line { display: inline; }
@media (min-width: 720px) { .h1-line { display: block; } }
.hero-lead { font-size: 1.0625rem; color: var(--muted); margin-bottom: var(--s3); max-width: 36em; }
.hero-art { display: none; }

.trust-line {
  list-style: none; padding: 0; margin: var(--s2) 0 0;
  display: flex; flex-wrap: wrap; gap: 6px var(--s2);
  font-size: .9375rem; font-weight: 500; color: var(--ink);
}
.trust-line li { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 389px) { .trust-line { font-size: .875rem; gap: 6px 12px; } }
@media (min-width: 720px) { .trust-line { gap: 6px var(--s3); } }
.trust-line .icon { width: 18px; height: 18px; color: var(--cobalt); stroke-width: 2.25; }

@media (min-width: 720px) {
  .hero { padding: var(--s5) 0 var(--s5); }
  .hero h1 { font-size: 3rem; }
  .hero-lead { font-size: 1.1875rem; }
}
@media (min-width: 1024px) {
  .hero { padding: var(--s6) 0; }
  .hero h1 { font-size: 3.375rem; } /* 54px */
  .hero-grid { grid-template-columns: minmax(0, 700px) minmax(260px, 1fr); gap: var(--s6); align-items: center; }
  .hero-art { display: block; justify-self: end; width: 100%; max-width: 400px; }
  .hero-art svg { width: 100%; height: auto; }
}

/* --- lead form -------------------------------------------------------------------- */
.funnel {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-form);
  padding: var(--s2);
  scroll-margin-top: var(--s2);
}
@media (min-width: 720px) { .funnel { padding: var(--s3) 28px; } }
.funnel-progress { font-size: .8125rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; margin: 0 0 var(--s1); }

/* Form header: what the visitor gets, then the three steps ahead. The step bar follows the
   form's data-step (set by funnel.js): the current step in cobalt, finished steps checked. */
.funnel-title { font-size: 1.125rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; color: var(--ink); margin: 0 0 10px; }
@media (min-width: 720px) { .funnel-title { font-size: 1.375rem; margin-bottom: 12px; } }
.funnel-steps {
  list-style: none; padding: 0; margin: 0 0 14px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  counter-reset: funnel-step;
  font-size: .8125rem; font-weight: 600; color: var(--muted);
}
.funnel-steps li {
  counter-increment: funnel-step;
  display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap;
  padding-top: 8px; border-top: 3px solid var(--line);
}
.funnel-steps li::before {
  content: counter(funnel-step);
  display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-surface); color: var(--ink); font-size: .75rem; font-weight: 700;
}
.funnel:has(.lead-form[data-step="address"]) .funnel-steps li:nth-child(1),
.funnel:has(.lead-form[data-step="horizon"]) .funnel-steps li:nth-child(-n+2),
.funnel:has(.lead-form[data-step="contact"]) .funnel-steps li { color: var(--ink); border-top-color: var(--cobalt); }
.funnel:has(.lead-form[data-step="address"]) .funnel-steps li:nth-child(1)::before,
.funnel:has(.lead-form[data-step="horizon"]) .funnel-steps li:nth-child(-n+2)::before,
.funnel:has(.lead-form[data-step="contact"]) .funnel-steps li::before { background: var(--cobalt); color: #fff; }
.funnel:has(.lead-form[data-step="horizon"]) .funnel-steps li:nth-child(1)::before,
.funnel:has(.lead-form[data-step="contact"]) .funnel-steps li:nth-child(-n+2)::before { content: "\2713"; }
.funnel:has(.lead-form[hidden]) .funnel-steps { display: none; }

.step-q {
  display: block; color: var(--ink); font-weight: 650; font-size: 1.125rem;
  line-height: 1.5rem; margin: 0 0 var(--s1); outline: none;
}
.hint { font-size: .9375rem; color: var(--muted); margin: var(--s1) 0 0; }

.input {
  width: 100%;
  font: inherit; font-size: 1rem; /* 16px: no zoom on iOS */
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--field-line); border-radius: var(--radius-sm);
  padding: 13px 14px; min-height: 52px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #6f7a90; }
.input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(40, 84, 216, .22); }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.input:disabled { background: var(--neutral); color: var(--muted); }

.ac { position: relative; }
.ac-icon { position: absolute; left: 14px; top: 18px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.ac-input { min-height: 56px; padding-left: 44px; }
.ac-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  list-style: none; margin: 0; padding: 4px;
  /* tinted so the suggestions stand out from the white form card */
  background: var(--blue-surface); border: 1px solid var(--cobalt); border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px -12px rgba(23, 36, 61, .35);
  max-height: min(320px, 50vh); overflow-y: auto;
}
.ac-list li { padding: 12px; border-radius: 4px; cursor: pointer; font-size: 1rem; color: var(--ink); }
.ac-list li:hover, .ac-list li.active { background: #d3ddf3; }
.ac-list li.active { box-shadow: inset 3px 0 0 var(--cobalt); }
.ac-status { font-size: .875rem; margin-top: var(--s1); color: var(--muted); }
.ac-status:empty { margin: 0; }
.ac-status .linklike { margin-left: 4px; }

.options { display: grid; gap: var(--s1); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.option {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--field-line); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 52px;
  cursor: pointer; font-weight: 500; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.option:hover { border-color: var(--cobalt); }
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--cobalt); flex: none; }
.option:has(input:checked) { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); background: var(--blue-surface); }
.option:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 2px; }

/* Contact step in three groups: fields, consent, actions – spacing instead of rules. */
.contact-fields { display: grid; gap: 0 var(--s2); }
@media (min-width: 880px) { .contact-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 500; font-size: .9375rem; color: var(--ink); margin-bottom: 6px; }
.consent-group { margin-top: var(--s1); max-width: 60ch; }
.consent-check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.consent-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--cobalt); }
.consent-link { font-size: .9375rem; margin: var(--s1) 0 0 34px; }
.consent-group .step-error { margin-left: 34px; }

/* Errors: short text with an icon, right under the field; never colour alone. */
.step-error { display: flex; gap: 6px; align-items: flex-start; color: var(--error); font-size: .9375rem; font-weight: 500; margin: 6px 0 0; }
.step-error:empty { display: none; }
.step-error::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23b42318'/%3E%3Cpath d='M12 7v6M12 16.5v.5' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  width: 100%; margin-top: var(--s2); min-height: 52px; padding: 12px 24px;
  font: inherit; font-size: 1rem; font-weight: 600;
  color: var(--ink); background: var(--tangerine);
  border: 0; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none;
  transition: background .15s;
}
.cta:hover { background: var(--tangerine-hover); color: var(--ink); }
.cta:disabled { opacity: .65; cursor: progress; }
.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px; padding: 10px 18px;
  font: inherit; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius-sm); cursor: pointer;
}
.btn-secondary:hover { background: var(--neutral); }
.btn-secondary:disabled { opacity: .55; cursor: not-allowed; }

.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--cobalt); text-decoration: underline; cursor: pointer; }

.back {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px; background: none; border: 0; padding: 8px 0; min-height: 44px;
  font: inherit; font-size: .9375rem; font-weight: 500; color: var(--muted); cursor: pointer;
}
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }

.funnel-note { margin: var(--s2) 0 0; font-size: .9375rem; line-height: 1.5; color: var(--muted); max-width: 62ch; }

/* Desktop: step 1 is one row – address field and button side by side. */
@media (min-width: 720px) {
  .lead-form[data-step="address"] { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .lead-form[data-step="address"] > * { grid-column: 1 / -1; }
  .lead-form[data-step="address"] > .step[data-step="address"] { grid-column: 1; grid-row: 1; }
  .lead-form[data-step="address"] > #funnel-next {
    grid-column: 2; grid-row: 1; align-self: start;
    margin-top: calc(1.5rem + var(--s1)); min-height: 56px; min-width: 160px;
  }
  .lead-form[data-step="contact"] #funnel-next { margin-top: var(--s3); }
  .cta { width: auto; min-width: 200px; }
  .back { margin-left: var(--s2); }
}

.funnel-status {
  margin-top: var(--s2); padding: 12px 14px;
  background: var(--error-bg); border: 1px solid #f1b8b2; border-left: 4px solid var(--error); border-radius: var(--radius-sm);
  font-size: .9375rem;
}
.funnel-status p { margin: 0 0 var(--s1); font-weight: 500; }
.funnel-status p:last-child { margin: 0; }

.funnel-unavailable { background: var(--neutral); border-radius: var(--radius-sm); padding: var(--s2); }
.funnel-unavailable p { margin: 0 0 4px; }
.funnel-receipt { padding: var(--s1) 0; outline: none; display: flex; gap: var(--s2); align-items: flex-start; }
.funnel-receipt svg { width: 40px; height: 40px; flex: none; color: var(--ok); }
.receipt-title { color: var(--ink); font-weight: 650; font-size: 1.125rem; margin-bottom: 4px; }
.funnel-receipt p:last-child { color: var(--muted); font-size: .9375rem; margin: 0; }

/* Server-side test mode (BM_LEADS_TEST_MODE=true) */
.test-notice {
  margin: 0 0 var(--s2); padding: var(--s1) 12px;
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600; color: var(--warn-ink);
}
.funnel-test-receipt {
  padding: var(--s2); outline: none;
  background: var(--warn-bg); border: 1px dashed var(--warn-line); border-radius: var(--radius-sm);
}
.funnel-test-receipt .receipt-title { color: var(--warn-ink); }
.funnel-test-receipt p:last-child { color: var(--muted); font-size: .9375rem; margin: 0; }

/* --- content sections ------------------------------------------------------------- */
.section { padding: var(--s5) 0; }
@media (min-width: 880px) { .section { padding: 80px 0; } }
.section-title { font-size: 1.625rem; margin-bottom: var(--s3); }
@media (min-width: 880px) { .section-title { font-size: 2rem; } }

/* How it works: tinted number markers; structure from spacing, not lines. */
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.steps-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s2); align-items: start; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius); background: var(--blue-surface); color: var(--ink);
  font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums;
}
.steps-list h3 { font-size: 1.0625rem; margin: 8px 0 2px; letter-spacing: -.01em; }
.steps-list p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (min-width: 760px) {
  .steps-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
  .steps-list li { display: block; }
  .step-num { margin-bottom: var(--s2); }
  .steps-list h3 { font-size: 1.1875rem; margin-top: 0; }
}

/* Why compare: one light-blue panel with icon points. */
.benefits { padding-top: 0; }
.benefits-panel { background: var(--blue-surface); border-radius: var(--radius); padding: var(--s3) var(--s2); display: grid; gap: var(--s3); }
.benefits-intro p { color: var(--muted); max-width: 32em; }
.benefits-intro p:last-child { margin-bottom: 0; }
.benefits-intro .section-title { margin-bottom: 12px; }
.benefit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.benefit-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s2); align-items: start; }
.benefit-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.benefit-icon .icon { width: 22px; height: 22px; }
.benefit-list h3 { font-size: 1.0625rem; margin: 2px 0 4px; }
.benefit-list p { margin: 0; color: var(--muted); font-size: 1rem; }
.benefit-list li > div > p:only-child { color: var(--ink); padding-top: 10px; }
@media (min-width: 880px) {
  .benefits-panel { padding: var(--s5); grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: start; }
  .benefits-intro .section-title { font-size: 2.25rem; line-height: 1.1; }
  .benefit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); }
  .benefit-list-points { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .benefit-list-points h3 { font-size: 1.125rem; }
}

/* FAQ: heading beside quiet rows on desktop, on a light neutral surface. */
.faq { background: var(--neutral); }
.faq-grid { display: grid; gap: var(--s1); }
@media (min-width: 880px) { .faq-grid { grid-template-columns: 4fr 8fr; gap: var(--s5); align-items: start; } }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 44px 18px 0; min-height: 48px;
  font-weight: 600; font-size: 1.0625rem; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt);
  transform: rotate(45deg); transition: transform .15s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list summary:hover { color: var(--cobalt); }
.faq-list .faq-answer { padding: 0 44px 20px 0; color: var(--muted); }
.faq-list .faq-answer p { margin: 0; }

/* Closing call to action: a dark ink section. */
.closing { background: var(--ink); color: var(--on-ink); padding: var(--s5) 0; }
.closing-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.closing h2 { color: #fff; font-size: 1.625rem; margin: 0 0 var(--s1); }
.closing p { margin: 0; }
.closing :focus-visible { outline-color: #fff; }
.btn-closing {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 28px;
  font-weight: 600; color: var(--ink); background: var(--tangerine); text-decoration: none;
  border-radius: var(--radius-sm);
}
.btn-closing:hover { background: var(--tangerine-hover); color: var(--ink); }
@media (min-width: 880px) { .closing { padding: var(--s6) 0; } .closing h2 { font-size: 2rem; } }
@media (max-width: 559px) { .btn-closing { width: 100%; } }

/* City links: a compact service block above the footer. */
.cities { background: var(--neutral); padding: var(--s4) 0 var(--s3); }
.cities-title { font-size: .9375rem; font-weight: 650; letter-spacing: 0; margin-bottom: 12px; }
.city-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 20px; font-size: .9375rem; max-width: 960px; }
.city-links a { color: var(--muted); text-decoration: none; display: inline-block; padding: 8px 0; }
.city-links a:hover { color: var(--cobalt); text-decoration: underline; }

.prose { padding-top: var(--s5); padding-bottom: var(--s6); }
.prose > * { max-width: 760px; }
.prose h1 { font-size: 2.25rem; letter-spacing: -.025em; }
.prose h2 { font-size: 1.3125rem; margin-top: 1.6em; }
.prose-center > * { margin-left: auto; margin-right: auto; text-align: center; }

/* --- article pages ---------------------------------------------------------------- */
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "\203A"; margin-right: 4px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cobalt); }

/* Short answer in numbers: a white card beside the form on desktop, under it on phones. */
.hero-facts {
  margin-top: var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s2) var(--s2) 4px;
}
.facts-title {
  display: flex; align-items: center; gap: var(--s1);
  font-size: .8125rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; margin: 0 0 4px;
}
.facts-title .icon { width: 18px; height: 18px; color: var(--cobalt); }
.facts-list { margin: 0; }
.fact { padding: 12px 0; border-top: 1px solid var(--blue-surface); }
.fact:first-child { border-top: 0; }
.fact dt { font-size: .875rem; color: var(--muted); margin-bottom: 2px; }
.fact dd { margin: 0; display: grid; gap: 2px; }
.fact-value { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.fact-note { font-size: .8125rem; color: var(--muted); }
.facts-bridge { font-size: .875rem; line-height: 1.5; color: var(--muted); margin: 4px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.facts-link { display: inline-block; padding: 4px 0 14px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.facts-link:hover { text-decoration: underline; }
@media (min-width: 640px) and (max-width: 1023px) {
  .facts-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
  .fact { border-top: 0; }
}
@media (min-width: 1024px) {
  .hero-facts { margin-top: 0; align-self: start; padding: var(--s3) var(--s3) var(--s1); box-shadow: var(--shadow-form); }
  .fact { padding: 14px 0; }
  .fact-value { font-size: 1.5rem; }
}

.article-section { padding-bottom: var(--s4); }
.article-grid { display: grid; gap: var(--s4); }
@media (min-width: 1024px) {
  .article-grid { grid-template-columns: 240px minmax(0, 760px); gap: var(--s6); align-items: start; }
}
.toc { background: var(--neutral); border-radius: var(--radius); padding: var(--s2); font-size: .9375rem; }
.toc-title { font-weight: 650; margin: 0 0 var(--s1); }
.toc ol { margin: 0; padding-left: 1.25em; display: grid; gap: 2px; }
.toc a { color: var(--ink); text-decoration: none; display: inline-block; padding: 4px 0; }
.toc a:hover { color: var(--cobalt); text-decoration: underline; }
@media (min-width: 1024px) {
  .toc { position: sticky; top: var(--s3); background: none; padding: 0; }
  .toc ol { list-style: none; padding: 0; border-left: 2px solid var(--line); gap: 0; }
  .toc li a { display: block; padding: 6px 0 6px var(--s2); margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); }
  .toc li a:hover { border-left-color: var(--cobalt); color: var(--ink); text-decoration: none; }
}

.article { min-width: 0; }
.article-meta { font-size: .875rem; color: var(--muted); margin-bottom: var(--s3); }
.article h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; scroll-margin-top: var(--s2); }
.article > h2:first-of-type { margin-top: 0; }
.article h3 { font-size: 1.125rem; margin: 1.4em 0 .4em; letter-spacing: -.01em; }
.article ul, .article ol { padding-left: 1.4em; margin: 0 0 1em; }
.article li { margin-bottom: .45em; }
.article li::marker { color: var(--cobalt); }
@media (min-width: 880px) { .article h2 { font-size: 1.75rem; } }
.tips li { padding-left: 4px; }

.table-wrap { overflow-x: auto; margin: var(--s3) 0; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.data-table caption { caption-side: top; text-align: left; font-weight: 650; padding: 14px var(--s2) 10px; background: var(--neutral); border-bottom: 1px solid var(--line); }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px var(--s2); border-bottom: 1px solid var(--line); }
.data-table thead th { font-size: .8125rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.data-table tbody th { font-weight: 600; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tfoot th, .data-table tfoot td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 559px) { .data-table th, .data-table td { padding: 10px 12px; } }

.note { background: var(--blue-surface); border-left: 4px solid var(--cobalt); border-radius: var(--radius-sm); padding: 12px var(--s2); }

.inline-cta { background: var(--blue-surface); border-radius: var(--radius); padding: var(--s3) var(--s2); margin: var(--s4) 0; }
.inline-cta p { color: var(--muted); }
.inline-cta p.inline-cta-title { color: var(--ink); font-size: 1.1875rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 6px; }
.inline-cta .cta { margin-top: 4px; }
@media (min-width: 720px) { .inline-cta { padding: var(--s3) var(--s4); } }

.article-disclaimer { font-size: .875rem; color: var(--muted); margin-top: var(--s4); }
.sources { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: .9375rem; }
.sources h2 { font-size: 1.0625rem; margin: 0 0 var(--s1); }
.sources ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sources a { color: var(--muted); }
.sources a:hover { color: var(--cobalt); }

.related-list h3 a { color: var(--ink); text-decoration: none; }
.related-list h3 a:hover { color: var(--cobalt); text-decoration: underline; }

/* Percentage calculator on /salaer-procent: converts only what the visitor types. */
.calc {
  margin: var(--s3) 0; padding: var(--s2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-form);
}
@media (min-width: 720px) { .calc { padding: var(--s3); } }
.calc > .field { max-width: 320px; }
.calc .hint { margin-top: 4px; font-size: .875rem; }
.calc-grid { display: grid; gap: var(--s2); margin-top: var(--s2); }
@media (min-width: 720px) { .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc-part { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s2); min-width: 0; }
.calc-part legend { font-weight: 650; padding: 0 6px; margin-left: -6px; }
.calc-vat { margin: 4px 0 var(--s1); }
.calc-result {
  margin: var(--s1) 0 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--blue-surface); font-weight: 650; font-variant-numeric: tabular-nums;
}

/* --- footer ----------------------------------------------------------------------- */
.site-footer { background: var(--neutral); border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; padding: var(--s5) 0 var(--s3); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--cobalt); text-decoration: underline; }
.site-footer h2 { font-size: .875rem; font-weight: 650; letter-spacing: 0; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-block; padding: 4px 0; }
.logo-footer { margin-bottom: 14px; }
.footer-about { max-width: 30em; }
.footer-contact { font-style: normal; line-height: 1.75; margin-bottom: 10px; }
.footer-grid { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1.3fr; gap: var(--s5); } }
.footer-legal { border-top: 1px solid var(--line); margin: var(--s4) 0 0; padding-top: var(--s2); font-size: .8125rem; }
.footer-link { font-size: inherit; color: var(--ink); text-decoration: none; padding: 4px 0; }
.footer-link:hover { color: var(--cobalt); text-decoration: underline; }

/* --- cookie consent --------------------------------------------------------------- */
.consent {
  position: fixed; z-index: 100; left: var(--s1); right: var(--s1); bottom: var(--s1);
  max-width: 1120px; margin: 0 auto;
  /* dark so it stands apart from the light page; the faint border separates it from the dark closing section */
  background: var(--ink); color: var(--on-ink);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius);
  box-shadow: 0 16px 40px -12px rgba(23, 36, 61, .55);
  max-height: calc(100vh - var(--s2)); overflow-y: auto;
}
.consent-inner { padding: 12px var(--s2); display: grid; gap: 12px; }
.consent h2 { color: #fff; font-size: 1rem; margin: 0 0 2px; outline: none; }
.consent p { font-size: .875rem; line-height: 1.5; color: var(--on-ink); margin: 0; }
.consent a, .consent .linklike, .consent a:hover { color: #fff; }
.consent :focus-visible { outline-color: #fff; }
.consent-details { display: grid; gap: var(--s1); margin-top: 12px; }
.consent-option { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; line-height: 1.45; cursor: pointer; }
.consent-option input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--cobalt); }
.consent-option strong { color: #fff; margin-right: 4px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1); align-items: stretch; }
.consent-btn {
  min-height: 46px; padding: 10px 16px;
  font: inherit; font-size: .9375rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--surface); border-radius: var(--radius-sm); cursor: pointer;
}
.consent-btn:hover { background: var(--blue-surface); border-color: var(--blue-surface); }
.consent-customize { grid-column: 1 / -1; justify-self: center; min-height: 44px; padding: 0 var(--s2); font-size: .9375rem; }
.consent-btn[data-consent="save"] { grid-column: 1 / -1; }
@media (max-width: 879px) { .consent-actions { margin-bottom: -6px; } }
/* narrow phones: keep "Kun nødvendige" on one line, the same height as "Accepter alle" */
@media (max-width: 374px) {
  .consent-inner { padding: 12px; }
  .consent-btn { padding-inline: 8px; font-size: .875rem; }
}
@media (min-width: 880px) {
  .consent { left: var(--s3); right: var(--s3); bottom: var(--s3); }
  .consent-inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); padding: var(--s3); align-items: center; }
  .consent-actions { grid-template-columns: auto auto auto; }
  .consent-customize { grid-column: auto; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
