/* stil.css — rolig, troværdig kundeside. Inspireret af Ageras' opbygning (målt 3. okt. 2026),
   men med egne farver og frie skrifttyper. Se STILGUIDE_AGERAS.md for reglerne.
   Pr. side kan --accent og --accent-ink overskrives i <style> eller via base.html (accent=...). */

:root {
  /* Farver, lyst tema */
  --bg: #ffffff;
  --surface: #f4f6f8;          /* flader: citat, prisboks, FAQ-baggrund (Ageras: #F5F6F9) */
  --ink: #0f2a33;              /* overskrifter og brødtekst (Ageras: #002E33) */
  --muted: #5f6b7a;            /* sekundær tekst (Ageras: #697588) */
  --line: #dfe4ea;             /* tynde rammer og skillelinjer */
  --accent: #ffd257;           /* primærknap og trin-numre; mørk tekst ovenpå */
  --accent-ink: #0f2a33;
  --accent-hover: #f5c53a;
  --dark: #0f2a33;             /* sekundærknap i topmenu og bundlinje */
  --dark-ink: #ffffff;
  --focus: #2563eb;

  /* Skrift */
  --font-head: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);      /* 36 -> 64 px */
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem);    /* 28 -> 46 px */
  --fs-h3: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);     /* 22 -> 32 px */
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);   /* 18 -> 21 px */
  --fs-body: 1.125rem;                                 /* 18 px */
  --fs-small: 0.9375rem;                               /* 15 px */
  --lh-head: 1.2;
  --lh-body: 1.55;
  --fw-head: 500;

  /* Form */
  --r-btn: 12px;
  --r-pill: 999px;
  --r-card: 12px;
  --r-badge: 10px;
  --shadow-soft: 0 20px 30px -20px rgba(15, 42, 51, 0.25);
  --btn-h: 48px;

  /* Afstande */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 80px; --s-10: 96px;
  --section-y: clamp(56px, 4rem + 3vw, 96px);
  --gutter: clamp(16px, 4vw, 80px);
  --max: 1200px;
  --max-text: 760px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1a1f; --surface: #15252c; --ink: #e8eef0; --muted: #a2b0ba; --line: #253840;
    --accent-hover: #ffdf80; --dark: #e8eef0; --dark-ink: #0d1a1f; --focus: #7aa7ff;
    --shadow-soft: 0 20px 30px -20px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --bg: #0d1a1f; --surface: #15252c; --ink: #e8eef0; --muted: #a2b0ba; --line: #253840;
  --accent-hover: #ffdf80; --dark: #e8eef0; --dark-ink: #0d1a1f; --focus: #7aa7ff;
  --shadow-soft: 0 20px 30px -20px rgba(0, 0, 0, 0.6);
}

/* Grundlag */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body);
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--fw-head); line-height: var(--lh-head); margin: 0 0 var(--s-4); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.015em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--s-4); }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
[id] { scroll-margin-top: 88px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: calc(var(--max-text) + 2 * var(--gutter)); }
.section { padding: var(--section-y) 0; }
.section--surface { background: var(--surface); }
.section__head { text-align: center; max-width: var(--max-text); margin: 0 auto var(--s-7); }
.lead { font-size: var(--fs-lead); line-height: 1.5; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--btn-h); padding: 0 var(--s-5); border-radius: var(--r-btn); border: 0;
  font: 500 1.0625rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); transition: background .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn--dark { background: var(--dark); color: var(--dark-ink); border-radius: var(--r-pill); font-size: 0.9375rem; min-height: 44px; }
.btn--dark:hover { background: var(--dark); opacity: .9; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--surface); }

/* Topmenu */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid transparent; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: var(--s-6); min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.375rem/1 var(--font-head); letter-spacing: -0.02em; color: var(--ink); }
.logo__mark { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); flex: none; }
.nav { display: flex; gap: var(--s-6); font-size: 1rem; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top__cta { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
.theme-btn { width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
@media (max-width: 760px) {
  .nav { display: none; }
  .top__in { min-height: 64px; gap: var(--s-4); }
  .top__cta .btn--dark { padding: 0 var(--s-4); }
}

/* Hero */
.hero { padding: clamp(48px, 6vw, 112px) 0 var(--section-y); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-8); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 34rem; margin-bottom: var(--s-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.trust-line { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0 0; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--muted); }
.trust-line li { display: inline-flex; align-items: center; gap: var(--s-2); }
.trust-line li::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.hero__media { background: var(--surface); border-radius: var(--r-card); padding: var(--s-6); min-height: 320px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero__media { min-height: 0; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Sådan virker det: 3 trin */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); counter-reset: step; list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 40px; left: 16.6%; right: 16.6%; border-top: 2px dashed var(--accent); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; }
.step__num { counter-increment: step; width: 80px; height: 80px; margin: 0 auto var(--s-5); border-radius: var(--r-badge); background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: var(--fw-head) 2.5rem/1 var(--font-head); }
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: var(--s-3); }
.step p { color: var(--muted); max-width: 30ch; margin: 0 auto; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: var(--s-6); }
  .steps::before { display: none; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 var(--s-4); text-align: left; }
  .step__num { width: 56px; height: 56px; font-size: 1.75rem; margin: 0; grid-row: span 2; }
  .step p { margin: 0; }
}

/* Pris-boks */
.price { max-width: 520px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-7) var(--s-6); box-shadow: var(--shadow-soft); }
.section--surface .price { border-color: transparent; }
.price__name { font: 500 1rem/1.3 var(--font-body); color: var(--muted); margin: 0 0 var(--s-2); }
.price__amount { font: var(--fw-head) clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--font-head); margin: 0; letter-spacing: -0.02em; }
.price__unit { font-size: var(--fs-small); color: var(--muted); margin: var(--s-2) 0 var(--s-5); }
.price__list { list-style: none; margin: 0 0 var(--s-6); padding: var(--s-5) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-3); }
.price__list li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); }
.price__list li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--accent); }
.price .btn { width: 100%; }
.price__note { font-size: var(--fs-small); color: var(--muted); text-align: center; margin: var(--s-4) 0 0; }

/* Tillidsrække: kun ting, der er sande og kan dokumenteres */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.trust li { padding: var(--s-5) 0; border-top: 2px solid var(--ink); }
.trust strong { display: block; font: var(--fw-head) 1.375rem/1.25 var(--font-head); margin-bottom: var(--s-2); }
.trust span { color: var(--muted); font-size: 1rem; }

/* Citat (kun ægte, med navn og samtykke) */
.quote { background: var(--surface); border-radius: var(--r-card); padding: var(--s-5); margin: 0; }
.quote p { font-size: 1.0625rem; }
.quote footer { font-size: var(--fs-small); color: var(--muted); }

/* FAQ-accordion: <details> uden JavaScript */
.faq { max-width: var(--max-text); margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5) 0; font: 500 1.1875rem/1.35 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details > div { padding: 0 0 var(--s-5); color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Tekstside (artikel med indhold) */
.prose { max-width: var(--max-text); }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--s-7); }
.prose p, .prose li { color: var(--ink); }

/* Afsluttende opfordring */
.cta-end { text-align: center; }
.cta-end p { color: var(--muted); max-width: 40rem; margin: 0 auto var(--s-6); }

/* Bundlinje */
.foot { background: var(--dark); color: var(--dark-ink); padding: var(--s-7) 0 var(--s-6); font-size: var(--fs-small); }
:root[data-theme="dark"] .foot { background: #081215; color: #e8eef0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot { background: #081215; color: #e8eef0; } }
.foot .logo { color: inherit; }
.foot__grid { display: grid; grid-template-columns: 2fr repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-6); }
.foot h4 { font: 600 0.9375rem/1.3 var(--font-body); margin: 0 0 var(--s-3); opacity: .7; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__about { max-width: 32ch; opacity: .85; margin-top: var(--s-4); }
.foot__legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); opacity: .75; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* ---- Hvidvasktjek: tilføjelser oven på Ageras-stilen ---- */
.hero--side h1 { max-width: 24ch; }
.hero--side .lead { max-width: 40rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.facts strong { display: block; font: var(--fw-head) 1.25rem/1.3 var(--font-head); }
.facts span { color: var(--muted); font-size: var(--fs-small); }
.step p { color: var(--muted); }
.rapport { max-width: var(--max-text); margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-soft); overflow: hidden; }
.rapport__top { padding: var(--s-4) var(--s-5); background: var(--dark); color: var(--dark-ink); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-small); }
.rapport table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.rapport th, .rapport td { text-align: left; padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); vertical-align: top; }
.rapport th { font-weight: 500; color: var(--muted); font-size: var(--fs-small); }
.rapport td:last-child { color: var(--muted); }
.rapport__note { margin: 0; padding: var(--s-4) var(--s-5); font-size: var(--fs-small); color: var(--muted); background: var(--surface); }
.kilde { font-size: var(--fs-small); color: var(--muted); }
.prose blockquote { margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); background: var(--surface); border-radius: var(--r-card); }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-5) 0; font-size: 1rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.prose th { width: 28%; font-weight: 500; }
.form { max-width: 520px; margin: 0 auto; display: grid; gap: var(--s-4); }
.form label { font-weight: 500; font-size: var(--fs-small); display: grid; gap: var(--s-2); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-btn);
  min-height: var(--btn-h); padding: 0 var(--s-4); width: 100%; }
.form .samtykke { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); font-weight: 400; color: var(--muted); }
.form .samtykke input { width: 20px; height: 20px; margin-top: 3px; }
.form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.fejl { max-width: 520px; margin: 0 auto var(--s-5); padding: var(--s-4) var(--s-5); border-radius: var(--r-card); background: var(--surface); border-left: 4px solid #b3261e; }
.fejl ul { margin: 0; padding-left: 1.1em; }
.faq details > div { color: var(--ink); }
