/* ============================================================
   Toms Arena — bedriftssiden (bedrift.html), gigarunden 2026-10, strøm I
   ------------------------------------------------------------
   Lastes etter v2.css og v2-sider.css. Bruker de samme fargene og
   skriftene (TA Serif og Poppins). Rekkefølgen (runde 3): hero, så
   skjemaet med avtalevalgene som første steg og avtaleutkastet ved
   siden av, deretter stegene, hvorfor, spørsmål og kontakt.
   Ingen tynne skillelinjer: flater skilles med en tone.
   ============================================================ */

.bf-side {
  --bf-skog: #2A4A31;
  --bf-skog-2: #3B5541;
  /* Runde 4: flaten i hero og skjema er samme grønne som «Jobb hos oss»
     (akademi.html, .ak-hero = --forest-950 i v2.css). */
  --bf-flate: var(--forest-950, #2A4A31);
  --bf-salvie: #B7D3AE;
  --bf-salvie-2: #DCEBD6;
  --bf-tone: #F3F5F2;
  --bf-tone-2: #E8EFE8;
  --bf-blekk: #15191A;
  --bf-blekk-2: #2D3330;
  --bf-dempet: #4F564F;
  --bf-feil: #A3372B;
  --bf-serif: 'TA Serif', 'Fraunces', Georgia, serif;
  --bf-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bf-ease: cubic-bezier(.16, 1, .3, 1);
  --bf-rad-stor: 32px;
  --bf-rad: 22px;
  --bf-marg: clamp(16px, 4vw, 48px);
  background: #fff;
  color: var(--bf-blekk);
}
.bf-side ::selection { background: var(--bf-salvie-2); color: var(--bf-blekk); }

.bf-wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--bf-marg); }
.bf-wrap > * { min-width: 0; }
.bf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.bf-seksjon { padding: clamp(80px, 11vw, 168px) 0; }
.bf-h2 {
  font-family: var(--bf-serif); font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 20px; color: inherit; text-wrap: balance;
}
.bf-tekst { font-size: 17px; line-height: 1.6; margin: 0; max-width: 56ch; color: inherit; }
.bf-tekst--stor { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; }

/* ---------- Knapper ---------- */
.bf-knapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 15.5px/1.2 var(--bf-sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .25s var(--bf-ease), color .25s var(--bf-ease), border-color .25s var(--bf-ease), transform .25s var(--bf-ease);
}
.bf-knapp svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--bf-ease); }
.bf-knapp:hover svg:last-child { transform: translateX(3px); }
.bf-knapp:active { transform: translateY(1px) scale(.99); }
.bf-knapp--lys { background: #fff; color: var(--bf-skog); }
.bf-knapp--lys:hover { background: var(--bf-salvie-2); }
.bf-knapp--strek { color: #fff; border-color: rgba(255, 255, 255, .55); }
.bf-knapp--strek:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.bf-knapp--pri { background: var(--bf-skog); color: #fff; }
.bf-knapp--pri:hover { background: var(--bf-skog-2); }
.bf-knapp--sek { background: var(--bf-tone); color: var(--bf-blekk); }
.bf-knapp--sek:hover { background: var(--bf-tone-2); }
.bf-knapp[disabled] { cursor: progress; opacity: .8; }
.bf-knapp:focus-visible, .bf-chip:focus-visible, .bf-fremdrift-spor button:focus-visible,
.bf-faq summary:focus-visible, .bf-kontaktliste a:focus-visible, .bf-lenkeknapp:focus-visible,
.bf-utkast summary:focus-visible, .bf-endre:focus-visible {
  outline: 3px solid var(--bf-skog-2); outline-offset: 3px;
}
.bf-hero .bf-knapp:focus-visible, .bf-skjema-hode a:focus-visible { outline-color: var(--bf-salvie); }

/* ---------- Hero ----------
   Bare tekst og knapper på skogsgrønt (runde 2, 26.10: portrettrekka er
   fjernet etter ønske fra klinikken). */
.bf-hero {
  background: var(--bf-flate); color: #fff;
  /* Headeren er sticky og gjennomsiktig: heroen legges inn under den. */
  margin-top: calc(-1 * var(--bf-hode, 90px));
  padding: calc(var(--bf-hode, 90px) + clamp(36px, 5vw, 80px)) 0 clamp(56px, 7vw, 112px);
  overflow: hidden;
}
.bf-hero-grid { display: grid; gap: 24px; }
.bf-hero h1 {
  font-family: var(--bf-serif); font-weight: 400;
  font-size: clamp(46px, 7.4vw, 96px); line-height: .95; letter-spacing: -.025em;
  margin: 0; max-width: 11ch; text-wrap: balance;
}
.bf-hero-venstre { display: flex; flex-direction: column; }
.bf-lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; margin: 0 0 26px; max-width: 44ch; color: #fff; }
.bf-handlinger { display: flex; flex-wrap: wrap; gap: 12px; }
.bf-hero-pris { margin: 18px 0 0; font-size: 15px; color: var(--bf-salvie-2); }
@media (min-width: 900px) {
  .bf-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
  .bf-hero-venstre { padding-bottom: 8px; }
}

/* ---------- Stegene: en ekte rekkefølge, derfor tall ---------- */
.bf-steg { background: var(--bf-tone-2); }
.bf-steg .bf-h2 { max-width: 18ch; margin-bottom: clamp(36px, 5vw, 60px); }
.bf-bane { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.bf-bane li { position: relative; padding: 0 0 34px 64px; }
.bf-bane li::before { /* sporet mellom tallene */
  content: ""; position: absolute; left: 20px; top: 40px; bottom: 0; width: 3px; border-radius: 3px; background: var(--bf-salvie);
}
.bf-bane li:last-child { padding-bottom: 0; }
.bf-bane li:last-child::before { display: none; }
.bf-bane-nr {
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bf-skog); color: #fff;
  font: 400 21px/1 var(--bf-serif); font-variant-numeric: lining-nums;
}
.bf-bane h3 { font-family: var(--bf-serif); font-weight: 400; font-size: clamp(24px, 2.1vw, 29px); line-height: 1.12; margin: 6px 0 8px; }
.bf-bane p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--bf-blekk-2); max-width: 34ch; }
@media (min-width: 900px) {
  .bf-bane { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .bf-bane li { padding: 66px 0 0 0; }
  .bf-bane li::before { left: 54px; right: -22px; top: 20px; bottom: auto; width: auto; height: 3px; }
  .bf-bane h3 { margin-top: 0; }
}

/* ---------- Hvorfor: sitatet bærer seksjonen ---------- */
.bf-hvorfor { background: #fff; }
.bf-sitat { margin: 0 0 clamp(48px, 6vw, 88px); padding: 0; }
.bf-sitat p {
  font-family: var(--bf-serif); font-weight: 400; color: var(--bf-skog);
  font-size: clamp(34px, 5.2vw, 76px); line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 18px; max-width: 20ch; text-wrap: balance;
}
.bf-sitat cite { font-style: normal; font-size: 15px; color: var(--bf-dempet); }
.bf-hvorfor-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 960px) { .bf-hvorfor-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.bf-hvorfor-tekst .bf-h2 { font-size: clamp(30px, 3.4vw, 46px); }
.bf-hvorfor-tekst .bf-tekst { color: var(--bf-blekk-2); }
.bf-grunner { display: grid; gap: 26px 32px; margin: 0; }
@media (min-width: 640px) { .bf-grunner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bf-grunner > div { padding-top: 16px; border-top: 3px solid var(--bf-salvie-2); }
.bf-grunner dt { font-family: var(--bf-serif); font-size: 23px; line-height: 1.15; margin: 0 0 6px; }
.bf-grunner dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--bf-blekk-2); }

/* ---------- Skjemaet ----------
   Runde 3: står rett under heroen på samme skogsgrønne flate, så
   forespørselen er det første man kommer til. */
.bf-skjema-seksjon { background: var(--bf-flate); color: #fff; scroll-margin-top: 80px; }
.bf-hero + .bf-skjema-seksjon { padding-top: 0; }
.bf-skjema-seksjon:focus { outline: none; }
.bf-skjema-hode { margin-bottom: clamp(24px, 3vw, 40px); display: grid; gap: 4px; }
.bf-skjema-hode .bf-h2 { font-size: clamp(32px, 3.6vw, 50px); margin: 0; }
.bf-skjema-hode .bf-tekst { color: var(--bf-salvie-2); }
@media (min-width: 900px) {
  .bf-skjema-hode { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
}
.bf-skjema-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) {
  .bf-skjema-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 28px; }
  .bf-utkast { position: sticky; top: 110px; grid-column: 2; grid-row: 1; }
  .bf-kort { grid-column: 1; grid-row: 1; }
}
.bf-kort { scroll-margin-top: calc(var(--bf-hode, 90px) + 16px); background: #fff; color: var(--bf-blekk); border-radius: 28px; padding: clamp(22px, 3.4vw, 44px); }
.bf-noscript { font-size: 16px; margin: 0 0 20px; }

.bf-fremdrift { margin-bottom: 28px; }
.bf-fremdrift-tekst { margin: 0 0 12px; font-size: 15px; color: var(--bf-dempet); }
.bf-fremdrift-tekst b { color: var(--bf-blekk); }
.bf-fremdrift-spor { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bf-fremdrift-spor button {
  width: 100%; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--bf-blekk);
  font: 600 13.5px/1.2 var(--bf-sans); text-align: left; border-radius: 6px;
}
.bf-fremdrift-spor button[disabled] { cursor: default; color: var(--bf-dempet); font-weight: 500; }
.bf-spor-fyll { display: block; width: 100%; height: 8px; border-radius: 8px; background: var(--bf-tone-2); position: relative; overflow: hidden; }
.bf-spor-fyll::after { content: ""; position: absolute; inset: 0; background: var(--bf-skog-2); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--bf-ease); }
.bf-fremdrift-spor .er-ferdig .bf-spor-fyll::after, .bf-fremdrift-spor [aria-current="step"] .bf-spor-fyll::after { transform: scaleX(1); }
.bf-fremdrift-spor [aria-current="step"] .bf-spor-fyll::after { background: var(--bf-skog); }

.bf-skjema { max-width: none; }
.bf-steg-panel { border: 0; margin: 0; padding: 0; min-width: 0; }
.bf-steg-panel[hidden] { display: none; }
.bf-steg-panel.bf-steg-inn { animation: bf-steg-inn .45s var(--bf-ease) both; }
@keyframes bf-steg-inn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bf-legend { font-family: var(--bf-serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; margin: 0 0 24px; padding: 0; outline: none; }
.bf-skjema .tf-label { color: var(--bf-blekk); }
.bf-skjema .tf-row-2 { gap: 18px 22px; }
.bf-gruppe { margin: 0 0 26px; }
.bf-gruppe .tf-label { margin-bottom: 10px; }
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-chips + .bf-chips { margin-top: 10px; }
.bf-chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--bf-tone); color: var(--bf-blekk); border: 0;
  font: 500 15px/1.2 var(--bf-sans); display: inline-flex; align-items: center; gap: 8px;
  transition: background-color .2s var(--bf-ease), color .2s var(--bf-ease);
}
.bf-chip:hover { background: var(--bf-tone-2); }
.bf-chip[aria-pressed="true"], .bf-chip[aria-checked="true"] { background: var(--bf-skog); color: #fff; }
.bf-chip[aria-pressed="true"]::before, .bf-chip[aria-checked="true"]::before {
  content: ""; width: 10px; height: 6px; border: solid currentColor; border-width: 0 0 2.4px 2.4px; transform: translateY(-2px) rotate(-45deg);
}
.bf-gruppe.har-feil .bf-chip { box-shadow: inset 0 0 0 2px var(--bf-feil); }
.bf-steg-knapper { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 30px; }
.bf-steg-knapper .bf-knapp--pri { margin-left: auto; }

/* ---------- Avtalekortene: første spørsmål i skjemaet (runde 3) ----------
   De to avtaleformene og «Vet ikke ennå» er selve valget i steg 1, ikke
   en egen seksjon over skjemaet. Hvert kort er en knapp med aria-pressed. */
.bf-gruppe--avtaler { margin-bottom: 0; }
.bf-avtaler-hint { margin: -12px 0 16px; }
.bf-avtaler { display: grid; gap: 10px; }
.bf-avtale {
  position: relative; display: grid; align-content: start; text-align: left;
  grid-template-columns: 40px minmax(0, 1fr) 24px; grid-template-areas: "ikon t boks" "ikon p p";
  gap: 4px 14px; min-height: 44px; padding: 18px 18px 18px 16px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--bf-tone); color: var(--bf-blekk); font: inherit;
  transition: background-color .25s var(--bf-ease), box-shadow .25s var(--bf-ease);
}
.bf-avtale:hover { background: var(--bf-tone-2); }
.bf-avtale[aria-pressed="true"] { background: var(--bf-salvie-2); box-shadow: inset 0 0 0 2px var(--bf-skog); }
.bf-avtale:focus-visible { outline: 3px solid var(--bf-skog-2); outline-offset: 3px; }
.bf-avtale-ikon { grid-area: ikon; color: var(--bf-skog); line-height: 0; padding-top: 2px; }
.bf-avtale-ikon svg { width: 36px; height: 36px; }
.bf-avtale-t { grid-area: t; font: 400 clamp(22px, 2vw, 25px)/1.12 var(--bf-serif); letter-spacing: -.01em; padding-top: 4px; }
.bf-avtale-p { grid-area: p; font-size: 15px; line-height: 1.55; color: var(--bf-blekk-2); }
.bf-avtale-boks { grid-area: boks; justify-self: end; width: 24px; height: 24px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 2px #6B8F73; position: relative; transition: background-color .25s var(--bf-ease); }
.bf-avtale-boks::after {
  content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px;
  border: solid var(--bf-skog); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--bf-ease);
}
.bf-avtale[aria-pressed="true"] .bf-avtale-boks { background: var(--bf-salvie); box-shadow: none; }
.bf-avtale[aria-pressed="true"] .bf-avtale-boks::after { transform: rotate(45deg) scale(1); }
.bf-avtale--usikker { grid-template-columns: minmax(0, 1fr) 24px; grid-template-areas: "t boks" "p p"; padding: 14px 18px; }
.bf-avtale--usikker .bf-avtale-t { font: 600 16px/1.3 var(--bf-sans); letter-spacing: 0; padding-top: 2px; }
.bf-gruppe.har-feil .bf-avtale { box-shadow: inset 0 0 0 2px var(--bf-feil); }
@media (min-width: 640px) {
  .bf-avtaler { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-avtale:not(.bf-avtale--usikker) { grid-template-columns: minmax(0, 1fr) 24px; grid-template-areas: "ikon boks" "t t" "p p"; gap: 8px; padding: 20px; }
  .bf-avtale:not(.bf-avtale--usikker) .bf-avtale-t { padding-top: 10px; }
  .bf-avtale--usikker { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) 24px; grid-template-areas: "t p boks"; align-items: center; gap: 14px; }
}
.bf-detaljer { margin-top: 30px; padding-top: 26px; border-top: 3px solid var(--bf-tone); }
.bf-detaljer-h { font: 600 17px/1.3 var(--bf-sans); margin: 0 0 18px; color: var(--bf-blekk); }

/* Oppslag i Enhetsregisteret */
.bf-combo { position: relative; }
.bf-forslag {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  list-style: none; margin: 0; padding: 6px; border-radius: 16px; background: #fff;
  box-shadow: 0 2px 6px rgba(15, 36, 24, .08), 0 18px 40px -16px rgba(15, 36, 24, .35);
  max-height: 320px; overflow: auto;
}
.bf-forslag[hidden] { display: none; }
.bf-forslag li { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 44px; justify-content: center; }
.bf-forslag li b { font-weight: 600; font-size: 15px; }
.bf-forslag li span { font-size: 13.5px; color: var(--bf-dempet); }
.bf-forslag li[aria-selected="true"], .bf-forslag li:hover { background: var(--bf-tone-2); }
.bf-funnet {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  margin: -6px 0 22px; padding: 14px 16px; border-radius: 16px; background: var(--bf-salvie-2);
}
.bf-funnet[hidden] { display: none; }
.bf-funnet svg { width: 28px; height: 28px; color: var(--bf-skog); background: #fff; border-radius: 50%; padding: 4px; }
.bf-funnet div { display: flex; flex-direction: column; gap: 2px; }
.bf-funnet b { font-size: 15.5px; }
.bf-funnet span { font-size: 14px; color: var(--bf-blekk-2); }
.bf-funnet .bf-funnet-kilde { font-size: 13px; color: var(--bf-skog-2); }
.bf-lenkeknapp { background: none; border: 0; padding: 0 8px; min-height: 44px; font: 600 14px var(--bf-sans); color: var(--bf-skog); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Oppsummering */
.bf-oppsummering { display: grid; gap: 12px; margin-bottom: 24px; }
.bf-oppsummering section { background: var(--bf-tone); border-radius: 18px; padding: 18px 20px; }
.bf-oppsummering header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.bf-oppsummering h3 { font: 600 16px/1.3 var(--bf-sans); margin: 0; }
.bf-oppsummering dl { margin: 0; display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 6px 16px; font-size: 15px; line-height: 1.5; }
.bf-oppsummering dt { color: var(--bf-dempet); }
.bf-oppsummering dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .bf-oppsummering dl { grid-template-columns: 1fr; gap: 0; } .bf-oppsummering dd { margin-bottom: 8px; } }
.bf-endre { background: #fff; border: 0; border-radius: 999px; min-height: 40px; min-width: 44px; padding: 0 16px; font: 600 14px var(--bf-sans); color: var(--bf-skog); cursor: pointer; }
.bf-endre:hover { background: var(--bf-tone-2); }
.bf-samtykke { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px 18px; border-radius: 16px; background: var(--bf-salvie-2); }
.bf-samtykke input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--bf-skog); cursor: pointer; }
.bf-samtykke label { font-size: 15px; line-height: 1.55; cursor: pointer; }
.bf-samtykke a { color: var(--bf-skog); text-underline-offset: 3px; }
.bf-samtykke.har-feil { box-shadow: inset 0 0 0 2px var(--bf-feil); }
.bf-steg-panel .tf-err { margin-top: 8px; }
.bf-feil { margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: #FBEDEA; color: #5E1D15; }
.bf-feil[hidden] { display: none; }
.bf-feil p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.55; }
.bf-feil-handlinger { display: flex; flex-wrap: wrap; gap: 10px; }
.bf-feil .bf-knapp--sek { background: #fff; }

/* Kvittering. Får fokus fra skriptet (tabindex="-1") så skjermlesere leser
   den opp, men er ikke noe man trykker på: ingen ring. Runde 12 (C2): må
   slå den felles regelen [tabindex]:focus-visible i header.css, derfor
   høyere spesifisitet. */
.bf-takk { outline: none; }
.bf-takk[tabindex]:focus,
.bf-takk[tabindex]:focus-visible { outline: none; box-shadow: none; }
.bf-takk[hidden] { display: none; }
.bf-takk-ikon { width: 56px; height: 56px; color: var(--bf-skog); margin-bottom: 14px; }
.bf-takk h3 { font-family: var(--bf-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; margin: 0 0 14px; }
.bf-ref { font-size: 17px; margin: 0 0 26px; }
.bf-ref b { display: inline-block; margin-left: 6px; padding: 6px 14px; border-radius: 999px; background: var(--bf-salvie-2); font-size: 18px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.bf-takk h4 { font: 600 17px/1.3 var(--bf-sans); margin: 0 0 12px; }
.bf-neste { margin: 0 0 22px; padding-left: 1.3em; display: grid; gap: 8px; font-size: 16.5px; line-height: 1.55; }
.bf-takk .bf-tekst { margin-bottom: 24px; color: var(--bf-blekk-2); }
.bf-takk.bf-takk-inn .bf-takk-ikon { animation: bf-pop .6s var(--bf-ease) both; }
@keyframes bf-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* Avtaleutkastet */
.bf-utkast { background: var(--bf-salvie-2); color: var(--bf-blekk); border-radius: 28px; }
.bf-utkast-detaljer > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 22px 24px; min-height: 44px; font-family: var(--bf-serif); font-size: 26px; line-height: 1.1; border-radius: 28px;
}
.bf-utkast-detaljer > summary::-webkit-details-marker { display: none; }
.bf-utkast-teller { font: 600 13.5px/1 var(--bf-sans); background: #fff; color: var(--bf-skog); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.bf-utkast-innhold { padding: 0 24px 24px; }
.bf-utkast-bedrift { font: 600 19px/1.3 var(--bf-sans); margin: 0 0 14px; overflow-wrap: anywhere; }
.bf-utkast-bedrift.er-tom { color: var(--bf-dempet); font-weight: 500; }
.bf-utkast-liste { margin: 0; display: grid; gap: 6px; }
.bf-utkast-liste > div { background: rgba(255, 255, 255, .62); border-radius: 12px; padding: 9px 14px; display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr); gap: 10px; align-items: baseline; }
.bf-utkast-liste dt { font-size: 13.5px; color: var(--bf-dempet); }
.bf-utkast-liste dd { margin: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; font-weight: 500; }
.bf-utkast-liste dd.er-tom { color: #6A716A; font-weight: 400; }
.bf-utkast-liste dd.bf-ny { animation: bf-blink .9s var(--bf-ease); }
@keyframes bf-blink { from { background: var(--bf-salvie); } to { background: transparent; } }
.bf-utkast-fot { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--bf-blekk-2); }
@media (min-width: 1000px) { .bf-utkast-detaljer > summary { cursor: default; pointer-events: none; } }
@media (max-width: 999px) {
  .bf-utkast-detaljer > summary { font-size: 22px; padding: 16px 20px; }
  .bf-utkast-detaljer > summary::after {
    content: ""; width: 10px; height: 10px; flex: none; margin-left: 4px;
    border: solid var(--bf-skog); border-width: 0 2.4px 2.4px 0; transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--bf-ease);
  }
  .bf-utkast-detaljer[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
  .bf-utkast-teller { margin-left: auto; }
  .bf-utkast-innhold { padding: 0 20px 20px; }
}

/* ---------- Spørsmål ---------- */
.bf-faq { background: var(--bf-tone); }
.bf-faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .bf-faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; } }
.bf-faq-liste { display: grid; gap: 10px; }
.bf-faq details { background: #fff; border-radius: 18px; }
.bf-faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; min-height: 44px; position: relative;
  font: 600 17.5px/1.4 var(--bf-sans); border-radius: 18px;
}
.bf-faq summary::-webkit-details-marker { display: none; }
.bf-faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border: solid var(--bf-skog); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); transition: transform .3s var(--bf-ease);
}
.bf-faq details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.bf-faq details p { margin: 0; padding: 0 24px 22px; font-size: 16.5px; line-height: 1.6; color: var(--bf-blekk-2); max-width: 62ch; }

/* ---------- Avslutning ---------- */
.bf-slutt { background: #fff; }
/* Tekst til venstre, kontaktlista til høyre. Kartet står i footeren som på de
   andre sidene (runde 5: et eget kart her ga to kart på siden). */
.bf-slutt-grid { display: grid; gap: 26px; align-items: center; }
@media (min-width: 960px) { .bf-slutt-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }
.bf-slutt .bf-tekst { color: var(--bf-blekk-2); margin-bottom: 0; }
.bf-kontaktliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bf-kontaktliste a {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 18px; background: var(--bf-tone);
  color: var(--bf-blekk); text-decoration: none; transition: background-color .25s var(--bf-ease);
}
.bf-kontaktliste a:hover { background: var(--bf-tone-2); }
.bf-kontaktliste span { font-size: 14px; color: var(--bf-dempet); }
.bf-kontaktliste b { font-family: var(--bf-serif); font-weight: 400; font-size: clamp(22px, 2vw, 28px); overflow-wrap: anywhere; }

/* ---------- Redusert bevegelse ---------- */
@media (prefers-reduced-motion: reduce) {
  .bf-steg-panel.bf-steg-inn, .bf-takk.bf-takk-inn .bf-takk-ikon, .bf-utkast-liste dd.bf-ny { animation: none; }
  .bf-knapp, .bf-chip, .bf-avtale, .bf-spor-fyll::after, .bf-avtale-boks::after { transition: none; }
}

@media (max-width: 519px) {
  .bf-steg-knapper { flex-direction: column-reverse; }
  .bf-steg-knapper .bf-knapp { width: 100%; margin-left: 0; }
  .bf-feil-handlinger .bf-knapp { width: 100%; }
}
