/* ==========================================================================
   FJERN STUBBEN – designsystem
   Desktop-først, fullbredde seksjoner, innhold i container (maks 1280 px).
   8-punkts spacing. Lime kun på CTA og små highlights, alltid med mørk tekst.
   ========================================================================== */

/* --- Fonter: selvhostet variabel woff2, latin-subsett ------------------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/archivo-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+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/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+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens ------------------------------------------------------------- */
:root {
  --bg: #F3F2EA;
  --paper: #FBFAF5;
  --ink: #141414;
  --forest: #243024;
  --stone: #6B6B60;
  --lime: #C4E04A;
  --maxw: 1280px;

  /* Avledede linjer og flater */
  --line: rgba(20, 20, 20, .14);
  --line-sterk: rgba(20, 20, 20, .26);
  --line-lys: rgba(251, 250, 245, .22);
  --varsel: #8A3B2E;
  --ok: #2F5E1F;

  /* 8-punkts spacing */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  /* Seksjonspadding: 96–128 px desktop, 48–64 px mobil */
  --seksjon: clamp(48px, 8vw, 128px);
  --gutter: clamp(20px, 4vw, 40px);
  --gap: clamp(24px, 2.5vw, 32px);

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;

  --font-head: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Brødtekst maks ~65 tegn per linje */
  --measure: 65ch;

  --header-h: 76px;
}

/* --- Grunn -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s3)); }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Synlig fokus overalt (WCAG AA) */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.pa-forest :focus-visible { outline-color: var(--lime); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--lime); color: var(--ink);
  padding: var(--s2) var(--s3); font-weight: 700; text-decoration: none;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.visuelt-skjult {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Typografi ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); }
h2 { font-size: clamp(1.95rem, 3.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.5vw, 1.45rem); line-height: 1.2; letter-spacing: -.015em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }

p, li { max-width: var(--measure); }
p + p { margin-top: var(--s2); }

.lead {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink);
}
.dempet { color: var(--stone); }
.liten { font-size: .95rem; line-height: 1.6; }
.mikro { font-size: .85rem; line-height: 1.55; color: var(--stone); }

.merk {
  background: var(--lime);
  color: var(--ink);
  padding: .05em .3em;
  border-radius: 4px;
  box-decoration-break: clone;
}

.seksjonsmerke {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--s2);
}

/* --- Layout ------------------------------------------------------------- */
.container {
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.seksjon { padding-block: var(--seksjon); }
.seksjon + .seksjon { border-top: 1px solid var(--line); }
.seksjon--tett { padding-block: clamp(32px, 5vw, 72px); }

.pa-paper { background: var(--paper); }
.pa-forest { background: var(--forest); color: var(--paper); }
.pa-forest .dempet, .pa-forest .mikro { color: rgba(251, 250, 245, .72); }
.pa-forest .seksjonsmerke { color: rgba(251, 250, 245, .6); }
.seksjon.pa-paper + .seksjon, .seksjon + .seksjon.pa-paper,
.seksjon.pa-forest + .seksjon, .seksjon + .seksjon.pa-forest { border-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.seksjonshode { max-width: 58ch; margin-bottom: clamp(32px, 4vw, 64px); }
.seksjonshode p { margin-top: var(--s2); color: var(--stone); font-size: 1.1rem; }

/* --- Knapper ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #B7D634; }
.btn--dark { background: var(--forest); color: var(--paper); }
.btn--dark:hover { background: #1A241A; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: rgba(20, 20, 20, .06); }
.pa-forest .btn--ghost { border-color: var(--paper); color: var(--paper); }
.pa-forest .btn--ghost:hover { background: rgba(251, 250, 245, .12); }
.btn--stor { padding: 19px 38px; font-size: 1.08rem; }
.btn--blokk { display: flex; width: 100%; }

.knapperad { display: flex; flex-wrap: wrap; gap: var(--s2); }

.lenke {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 2px;
}
.lenke:hover { border-bottom-color: var(--ink); }
.lenke::after { content: ' \2192'; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: var(--header-h);
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.03em;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.hovedmeny ul { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.hovedmeny li { max-width: none; }
.hovedmeny a {
  text-decoration: none;
  font-size: .97rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.hovedmeny a:hover { border-bottom-color: var(--line-sterk); }
.hovedmeny a[aria-current='page'] { font-weight: 700; border-bottom-color: var(--lime); }

.header-cta { display: flex; align-items: center; gap: var(--s2); flex: none; }
.tlf {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1rem;
}
.tlf:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-cta .btn { padding: 12px 24px; font-size: .95rem; }

.meny-knapp {
  display: none;
  background: none;
  border: 1px solid var(--line-sterk);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  cursor: pointer;
}
.meny-knapp span {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
}
.meny-knapp span + span { margin-top: 5px; }

.mobilmeny { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobilmeny[hidden] { display: none; }
.mobilmeny a {
  display: block;
  padding: 16px 0;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobilmeny .btn { margin: var(--s3) 0; }

/* --- Hero --------------------------------------------------------------- */
.hero { padding-block: clamp(32px, 5vw, 96px) clamp(40px, 5vw, 96px); }
.hero .grid { align-items: center; }
.hero__tekst { grid-column: span 6; }
.hero__foto { grid-column: span 6; }
.hero h1 { margin-bottom: var(--s3); }
.hero .lead { margin-bottom: var(--s4); max-width: 46ch; }
.hero .knapperad { margin-bottom: var(--s3); }
.hero__note { color: var(--stone); font-size: .98rem; max-width: 52ch; }

/* --- Fotoplassholder ---------------------------------------------------- */
/* Byttes ut med <picture>-blokk når ekte foto er på plass – se /bilder/LES-MEG.md */
.media {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
    transparent 0 16px, rgba(20, 20, 20, .028) 16px 32px);
}
.media::after {
  content: attr(data-foto);
  position: relative;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--stone);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media--3x2  { aspect-ratio: 3 / 2; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--4x5  { aspect-ratio: 4 / 5; }
.foto { width: 100%; border-radius: var(--r); object-fit: cover; }

/* --- Tillitslinje ------------------------------------------------------- */
.tillit { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tillit ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) clamp(24px, 4vw, 56px);
  padding-block: var(--s3);
}
.tillit li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .98rem;
  max-width: none;
}
.tillit li::before {
  content: '\2713';
  flex: none;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, .12);
}

/* --- Prosess-tidslinje -------------------------------------------------- */
.tidslinje { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tidslinje li { max-width: none; position: relative; padding-top: var(--s4); }
.tidslinje li::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--line-sterk);
}
.tidslinje li:first-child::before { background: var(--lime); }
.tidslinje .nr {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .12em;
  color: var(--stone);
  margin-bottom: var(--s2);
}
.tidslinje h3 { margin-bottom: var(--s1); }
.tidslinje p { color: var(--stone); font-size: .98rem; }

/* --- Tjenestekort ------------------------------------------------------- */
.kortgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.kortgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kort {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.kort .media { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.kort__tekst { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s1); flex: 1; }
.kort h3 { margin-bottom: 2px; }
.kort p { color: var(--stone); font-size: .98rem; flex: 1; }
.kort .lenke { align-self: flex-start; margin-top: var(--s2); }

/* --- Prisliste ---------------------------------------------------------- */
.prisrad {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  padding-block: var(--s4);
  border-top: 1px solid var(--line-sterk);
}
.prisrad:last-of-type { border-bottom: 1px solid var(--line-sterk); }
.prisrad__navn { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.prisrad p { color: var(--stone); font-size: .98rem; margin-top: 6px; }
.prisrad__pris {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 800;
  white-space: nowrap;
}
.prisrad__pris small { font-family: var(--font-body); font-size: .95rem; font-weight: 400; color: var(--stone); margin-right: 8px; }
.merkelapp {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --- Kalkulator --------------------------------------------------------- */
.kalk { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gap); align-items: start; }
.kalk__felt {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 40px);
}
.felt { margin-bottom: var(--s4); }
.felt:last-child { margin-bottom: 0; }
.felt > label, .felt legend {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--s2);
  padding: 0;
}
.felt fieldset { border: 0; padding: 0; margin: 0; }

.meterrad { display: flex; align-items: center; gap: var(--s2); }
.meterrad input[type='number'] { width: 120px; }
.meterrad .enhet { font-weight: 700; color: var(--stone); }

input[type='number'], input[type='text'], input[type='tel'], input[type='email'],
select, textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--line-sterk);
  border-radius: var(--r-sm);
  font-size: 1rem;
}
.kalk__felt input, .kalk__felt select { background: var(--bg); }
textarea { resize: vertical; min-height: 96px; }

input[type='range'] {
  width: 100%;
  height: 34px;
  background: transparent;
  -webkit-appearance: none; appearance: none;
  margin-top: var(--s2);
}
input[type='range']::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px; background: var(--line-sterk);
}
input[type='range']::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line-sterk); }
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -10px;
  border-radius: 50%; background: var(--ink); border: 3px solid var(--bg);
  cursor: pointer;
}
input[type='range']::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--bg); cursor: pointer;
}

.segment { position: relative; display: flex; gap: 0; border: 1.5px solid var(--line-sterk); border-radius: var(--r-sm); overflow: hidden; width: fit-content; max-width: 100%; }
.segment label {
  padding: 12px 22px;
  font-weight: 600;
  font-size: .97rem;
  cursor: pointer;
  background: var(--bg);
  white-space: nowrap;
}
.segment label + label { border-left: 1.5px solid var(--line-sterk); }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment input:checked + label { background: var(--ink); color: var(--paper); }
.segment input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: -3px; }

.bryter { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; max-width: none; }
.bryter:first-of-type { border-top: 0; }
.bryter input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--ink); cursor: pointer; }
.bryter__tekst { font-weight: 600; }
.bryter__tekst span { display: block; font-weight: 400; font-size: .92rem; color: var(--stone); }

.kalk__resultat {
  background: var(--forest);
  color: var(--paper);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 40px);
  position: sticky;
  top: calc(var(--header-h) + var(--s3));
}
.kalk__sum {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.kalk__spec { margin-top: var(--s3); border-top: 1px solid var(--line-lys); }
.kalk__spec li {
  display: flex; justify-content: space-between; gap: var(--s3);
  padding: 10px 0; font-size: .95rem;
  color: rgba(251, 250, 245, .8);
  border-bottom: 1px solid var(--line-lys);
  max-width: none;
}
.kalk__spec li.sum-rad { color: var(--paper); font-weight: 700; }
.kalk__spec li.min-rad { display: block; color: var(--lime); font-weight: 600; }
.kalk__resultat .mikro { margin-top: var(--s3); }
.kalk__resultat .btn { margin-top: var(--s3); }

/* --- FRES 72 ------------------------------------------------------------ */
.fres72 { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--gap); align-items: center; }
.fres72__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: .92;
  letter-spacing: -.045em;
}
.fres72 h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: var(--s2); }

/* --- Postnummersjekk ---------------------------------------------------- */
.postnr-kort {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 40px);
}
.postnr-rad { display: flex; gap: var(--s2); margin-top: var(--s3); max-width: 420px; }
.postnr-rad input { flex: 1; min-width: 0; }
.postnr-svar { margin-top: var(--s2); font-weight: 600; min-height: 1.6em; }
.postnr-svar[data-status='ja'] { color: var(--ok); }
.postnr-svar[data-status='nei'] { color: var(--varsel); }

/* --- Områdeliste -------------------------------------------------------- */
.omradeliste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2) var(--gap); }
.omradeliste li { max-width: none; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; }
.omradeliste a { text-decoration: none; }
.omradeliste a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line-sterk); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-sterk); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding-block: var(--s3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.8rem; font-weight: 400; line-height: 1; flex: none; }
.faq details[open] summary::after { content: '\2212'; }
.faq__svar { padding-bottom: var(--s3); color: var(--stone); }
.faq__svar p { max-width: 70ch; }
.faq__svar a { color: var(--ink); font-weight: 600; }

/* --- Hvem kommer -------------------------------------------------------- */
.person { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 4vw, 72px); align-items: center; }

/* --- Skjema ------------------------------------------------------------- */
.skjema-blokk { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 4vw, 72px); align-items: start; }
.skjema {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 40px);
}
.skjema .felt { margin-bottom: var(--s3); }
.skjema label { display: block; font-weight: 700; font-size: .97rem; margin-bottom: 8px; }
.skjema .felt-par { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.skjema input, .skjema select, .skjema textarea { background: var(--bg); }
.honning { position: absolute; left: -9999px; }
.filfelt { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.filfelt input[type='file'] {
  width: 100%;
  font-size: .85rem;
  padding: 12px;
  background: var(--bg);
  border: 1.5px dashed var(--line-sterk);
  border-radius: var(--r-sm);
}
.skjema__status { margin-top: var(--s2); font-weight: 600; }
.skjema__feil { color: var(--varsel); font-weight: 600; margin-top: var(--s2); }
.skjema__feil a { color: var(--varsel); }
.sms-linje {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  color: var(--stone);
  font-size: .95rem;
}
.sms-linje a { color: var(--ink); font-weight: 700; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--forest); color: var(--paper); padding-block: var(--seksjon) var(--s5); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: var(--gap); }
.site-footer h2 { font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(251, 250, 245, .6); margin-bottom: var(--s3); font-weight: 700; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer li { margin-bottom: 12px; max-width: none; }
.site-footer li a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-merke { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; }
.footer-bunn {
  margin-top: var(--seksjon);
  padding-top: var(--s4);
  border-top: 1px solid var(--line-lys);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
  color: rgba(251, 250, 245, .7);
  font-size: .9rem;
}
.footer-bunn p { max-width: none; }

/* --- Brødsmuler --------------------------------------------------------- */
.brodsmuler { padding-top: var(--s3); font-size: .9rem; color: var(--stone); }
.brodsmuler ol { display: flex; flex-wrap: wrap; gap: 8px; }
.brodsmuler li { max-width: none; }
.brodsmuler li + li::before { content: '/'; margin-right: 8px; color: var(--line-sterk); }
.brodsmuler a { text-decoration: none; }
.brodsmuler a:hover { text-decoration: underline; }

/* --- Sticky mobilbar ---------------------------------------------------- */
.mobilbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  gap: var(--s2);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line-sterk);
}
.mobilbar .btn { flex: 1; padding: 14px 16px; }

/* --- Innholdsblokker på tekstsider -------------------------------------- */
.prosa { max-width: var(--measure); }
.prosa h2 { margin-top: var(--s6); margin-bottom: var(--s3); }
.prosa h2:first-child { margin-top: 0; }
.prosa h3 { margin-top: var(--s4); margin-bottom: var(--s2); }
.prosa p, .prosa li { color: var(--ink); }
.prosa ul { margin: var(--s2) 0; }
.prosa ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.prosa ul li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, .15);
}
.prosa a { color: var(--ink); font-weight: 600; }

.sjekkliste li {
  position: relative;
  padding: var(--s3) 0 var(--s3) 44px;
  border-top: 1px solid var(--line-sterk);
  font-weight: 700;
  max-width: 70ch;
}
.sjekkliste li:last-child { border-bottom: 1px solid var(--line-sterk); }
.sjekkliste li::before {
  content: '\2713';
  position: absolute; left: 0; top: var(--s3);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 800;
}
.sjekkliste li span { display: block; font-weight: 400; color: var(--stone); margin-top: 6px; font-size: .98rem; }

/* ==========================================================================
   Responsivt – desktop er utgangspunktet, her trapper vi ned
   ========================================================================== */

@media (max-width: 1100px) {
  /* Telefonnummeret skal stå i headeren på alle bredder – vi strammer inn
     menyen i stedet for å skjule nummeret. */
  .hovedmeny ul { gap: 12px; }
  .hovedmeny a { font-size: .87rem; }
  .header-inner { gap: var(--s3); }
  .header-cta { gap: 12px; }
  .tlf { font-size: .92rem; }
  .header-cta .btn { padding: 11px 18px; font-size: .9rem; }
}

@media (max-width: 980px) {
  .hovedmeny { display: none; }
  .meny-knapp { display: block; }
  .mobilmeny:not([hidden]) { display: block; }
  .mobilmeny .container { padding-block: var(--s2) var(--s3); }
  .header-cta .btn { display: none; }
  .tlf { display: inline; }

  .hero__tekst, .hero__foto { grid-column: span 12; }
  .hero__foto { order: -1; }
  .kalk { grid-template-columns: 1fr; }
  .kalk__resultat { position: static; }
  .person, .skjema-blokk { grid-template-columns: 1fr; }
  .fres72 { grid-template-columns: 1fr; }
  .kortgrid, .kortgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tidslinje { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .omradeliste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--gap); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  /* Plass til den faste bunnlinja – kun på sider som faktisk har den */
  body:has(.mobilbar) { padding-bottom: 76px; }
  :root { --header-h: 64px; }

  /* CTA skal være synlig uten scrolling på 375 px */
  .hero { padding-block: var(--s4) var(--s5); }
  .hero__foto { order: 0; margin-top: var(--s4); }
  .hero .lead { margin-bottom: var(--s3); }
  .hero .knapperad .btn { flex: 1 1 100%; }

  .mobilbar { display: flex; }
  .kortgrid, .kortgrid--3, .tidslinje { grid-template-columns: 1fr; }
  .tidslinje li { padding-top: var(--s3); }
  .skjema .felt-par { grid-template-columns: 1fr; gap: var(--s3); }
  .filfelt { grid-template-columns: 1fr; }
  .prisrad { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .footer-grid { grid-template-columns: 1fr; }
  .segment { width: 100%; }
  .segment label { flex: 1; text-align: center; padding: 12px 10px; }
}

@media (max-width: 420px) {
  .knapperad { flex-direction: column; }
  .knapperad .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .mobilbar, .site-footer, .skjema, .kalk { display: none !important; }
}

/* ==========================================================================
   Guider – komponenter som bare brukes i artiklene
   ========================================================================== */

/* Kort svar øverst i en guide */
.kortsvar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--lime);
  border-radius: var(--r-sm);
  padding: clamp(20px, 2.5vw, 32px);
  margin-block: var(--s4);
  max-width: 72ch;
}
.kortsvar h2 {
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--s2);
}
.kortsvar p { font-size: 1.12rem; line-height: 1.55; max-width: none; }

/* Metalinje under H1 i guider */
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  color: var(--stone);
  font-size: .92rem;
  margin-top: var(--s3);
}
.guide-meta span { max-width: none; }

/* Innholdsfortegnelse */
.innhold-i-guiden {
  border-top: 1px solid var(--line-sterk);
  border-bottom: 1px solid var(--line-sterk);
  padding-block: var(--s3);
  margin-block: var(--s5);
  max-width: 72ch;
}
.innhold-i-guiden p { font-weight: 700; margin-bottom: var(--s2); }
.innhold-i-guiden ol { display: grid; gap: 8px; counter-reset: punkt; }
.innhold-i-guiden li { counter-increment: punkt; max-width: none; }
.innhold-i-guiden li::before {
  content: counter(punkt) '.';
  color: var(--stone);
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
}
.innhold-i-guiden a { text-decoration: none; font-weight: 600; }
.innhold-i-guiden a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Tabell – ruller vannrett på smale skjermer */
.tabell-ramme { overflow-x: auto; margin-block: var(--s4); border-radius: var(--r-sm); }
table.tabell {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--paper);
  font-size: .98rem;
}
table.tabell caption {
  text-align: left;
  color: var(--stone);
  font-size: .92rem;
  padding-bottom: var(--s2);
}
table.tabell th, table.tabell td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.tabell thead th {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
table.tabell tbody th { font-weight: 700; width: 30%; }
table.tabell tr:last-child td, table.tabell tr:last-child th { border-bottom: 0; }

/* Guidekort */
.guidekort .kort__tekst { gap: var(--s2); }
.guidekort .mikro { margin-top: auto; }

/* ==========================================================================
   Forsiden – strammet inn. Færre seksjoner, mer luft, større bilder.
   ========================================================================== */

/* Roligere hero: mer luft, større foto, ingenting annet */
.hero--stor { padding-block: clamp(40px, 6vw, 112px) clamp(48px, 6vw, 112px); }
.hero--stor .grid { align-items: center; gap: clamp(32px, 4vw, 64px); }
.hero--stor .hero__tekst { grid-column: span 6; }
.hero--stor .hero__foto { grid-column: span 6; }
.hero--stor h1 { font-size: clamp(2.4rem, 5.2vw, 4.75rem); margin-bottom: var(--s4); }
.hero--stor .lead { font-size: clamp(1.15rem, 1.6vw, 1.45rem); max-width: 34ch; margin-bottom: var(--s5); }
.hero--stor .knapperad { gap: var(--s2); margin-bottom: var(--s4); }
.hero--stor .hero__note { font-size: 1rem; max-width: 46ch; }
.hero--stor .media { border-radius: var(--r-lg); }

/* Klikkbare tjenestekort */
.kort--lenke {
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.kort--lenke:hover {
  transform: translateY(-3px);
  border-color: var(--line-sterk);
  box-shadow: 0 10px 28px rgba(20, 20, 20, .08);
}
.kort--lenke:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.kort--lenke .kort__tekst { padding: var(--s4) var(--s3) var(--s4); }
.kort--lenke h3 { margin-bottom: var(--s1); }
.kort--lenke p { color: var(--stone); flex: 1; }
.kort--lenke .pil { font-weight: 800; margin-top: var(--s3); }
.kort--lenke .pil::after { content: ' \2192'; }
.kort--lenke:hover .pil { text-decoration: underline; text-underline-offset: 5px; }

/* Priskort på forsiden – tre kort i full containerbredde */
.priskort-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.priskort {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-sterk);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 44px);
  box-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(20, 20, 20, .05);
}
.priskort--valgt {
  border-color: var(--ink);
  /* Ring i stedet for tykkere ramme: gir samme visuelle vekt uten at
     boksmodellen endres, så prisene flukter på tvers av kortene. */
  box-shadow: 0 0 0 1px var(--ink), 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(20, 20, 20, .05);
}
.priskort__merke {
  position: absolute;
  top: clamp(20px, 2.2vw, 32px);
  right: clamp(20px, 2.2vw, 32px);
}
.priskort h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  font-weight: 700;
  margin-bottom: var(--s2);
  padding-right: 96px;   /* plass til "Mest valgt" */
}
.priskort__hva {
  color: var(--stone);
  font-size: 1rem;
  line-height: 1.5;
  flex: 1;              /* dytter prisen ned til bunnen av kortet */
  margin-bottom: var(--s5);
  max-width: none;
}
.priskort__pris {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin: 0;
  max-width: none;
  font-family: var(--font-head);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.priskort__pris .fra {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  color: var(--stone);
}
.priskort__pris .tall {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
}
.priskort__pris .enhet {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--stone);
}
.priskort__note {
  margin-top: var(--s2);
  /* Tom og utfylt notatlinje må ha nøyaktig samme høyde, ellers
     forskyves prisen i kortet som har undertekst. */
  line-height: 1.45;
  min-height: 1.45em;
  color: var(--stone);
  font-size: .95rem;
  max-width: none;
}

.pris-fotnote {
  margin-top: clamp(32px, 3.5vw, 48px);
  color: var(--stone);
  font-size: 1.05rem;
}
.pris-knapper { margin-top: var(--s4); }
/* Områdechips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s4); }
.chips li { max-width: none; }
.chips a {
  display: inline-block;
  padding: 10px 20px;
  border: 1.5px solid var(--line-sterk);
  border-radius: 999px;
  font-weight: 600;
  font-size: .97rem;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.chips a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Luftigere skjema på forsiden */
.skjema--luftig { padding: clamp(28px, 3.5vw, 52px); }
.skjema--luftig .felt { margin-bottom: var(--s4); }
.skjema--luftig input, .skjema--luftig select, .skjema--luftig textarea { padding: 17px 18px; }
.skjema--luftig .filfelt input[type='file'] { padding: 16px 14px; }

@media (max-width: 980px) {
  .priskort-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero--stor .hero__tekst, .hero--stor .hero__foto { grid-column: span 12; }
}

@media (max-width: 760px) {
  /* Priskortene stables, og merkelappen går inn i normal flyt */
  .priskort-grid { grid-template-columns: 1fr; }
  .priskort h3 { padding-right: 0; }
  .priskort__merke { position: static; align-self: flex-start; margin-bottom: var(--s2); }
  .priskort__hva { margin-bottom: var(--s4); }
  /* H1, undertekst og begge knappene skal være synlige uten scrolling på 375x667 */
  .hero--stor { padding-block: var(--s3) var(--s5); }
  .hero--stor h1 { font-size: clamp(2.15rem, 8.6vw, 2.6rem); margin-bottom: var(--s3); }
  .hero--stor .lead { font-size: 1.05rem; margin-bottom: var(--s3); max-width: none; }
  .hero--stor .knapperad { flex-direction: column; gap: 10px; margin-bottom: var(--s3); }
  .hero--stor .knapperad .btn { width: 100%; padding: 16px 24px; font-size: 1rem; }
  .hero--stor .hero__note { font-size: .92rem; }
  .hero--stor .hero__foto { margin-top: var(--s5); }
}
