/* css/funktioner.css — BOKS 158a: funktionssidernes stil ET sted (mockup 1.5 + 1.6 rev. 3).
   bs-* er branchesidernes komponenter (kopi af docs/skabeloner/branche.html, mockup 84.1);
   fx-* er funktionssidernes egne (hub og underside). Linkes af docs/skabeloner/funktioner-hub.html
   og docs/skabeloner/funktion.html — aldrig inline paa de enkelte sider. */

/* ── bs-*: branchesidernes komponenter ── */
.bs-crumbs { font-size: var(--text-sm); color: var(--text-tertiary); padding: calc(var(--header-height) + 1rem) 0 0; }
.bs-crumbs a { color: var(--text-secondary); text-decoration: none; }
.bs-crumbs a:hover { color: var(--teal-primary); }
.bs-crumbs span { margin: 0 6px; }
.bs-hero { padding: 28px 0 clamp(3rem, 6vw, 4rem); background: linear-gradient(180deg, #fff, var(--bg-mint)); }
.bs-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .bs-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; } }
/* BOKS 204: .bs-eyebrow er overskrifts-pillen fra css/base.css (prik + versaler) — ingen egen variant her */
.bs-h1 { font-family: var(--font-heading); font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; margin-top: 14px; color: var(--text-primary); }
.bs-h1 em { font-style: normal; color: var(--teal-primary); }
.bs-lead { font-size: 1.125rem; color: var(--text-secondary); margin-top: 16px; max-width: 560px; line-height: 1.6; }
.bs-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.bs-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 13px 22px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.bs-btn--p { background: var(--teal-primary); color: #fff; }
.bs-btn--p:hover { background: var(--teal-dark); }
.bs-btn--s { background: #fff; color: var(--teal-primary); border-color: var(--teal-primary); }
.bs-btn--s:hover { background: var(--teal-50); }
.bs-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13.5px; color: var(--text-secondary); list-style: none; padding: 0; }
.bs-trust li::before { content: "✓"; color: var(--teal-primary); font-weight: 800; margin-right: 6px; }
.bs-call { background: #fff; border: 1px solid var(--border-light); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 20px; position: relative; }
.bs-call__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.bs-call__head b { font-family: var(--font-heading); font-size: 14px; }
.bs-call__head small { font-size: 12px; color: var(--text-tertiary); background: #F1F5F9; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.bs-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.bs-msg--k { background: #F1F5F9; color: var(--text-primary); border-bottom-left-radius: 4px; }
.bs-msg--n { background: var(--teal-primary); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bs-msg-l { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-tertiary); margin: 6px 0 4px; }
.bs-msg-l--n { text-align: right; }
.bs-call__foot { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--text-secondary); border-top: 1px solid var(--border-light); padding-top: 12px; }
.bs-call__sms { background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; color: var(--teal-dark); flex: 1; }
.bs-s { padding: clamp(3rem, 7vw, 5rem) 0; }
.bs-s--mint { background: var(--bg-mint); }
.bs-h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--text-primary); }
.bs-eyebrow--s { margin-bottom: 12px; }
.bs-sub { color: var(--text-secondary); font-size: 1.0625rem; max-width: 680px; margin-top: 10px; line-height: 1.6; }
.bs-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; }
.bs-step { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 22px; }
.bs-step__num { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); margin-bottom: 12px; }
.bs-step h3 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.bs-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.bs-feats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }
.bs-feat { display: flex; gap: 12px; background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 16px; }
.bs-feat__ic { width: 38px; height: 38px; border-radius: 10px; background: var(--teal-50); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.bs-feat h3 { font-size: 0.98rem; font-weight: 700; font-family: var(--font-heading); margin-bottom: 3px; }
.bs-feat p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.bs-faq { max-width: 820px; margin: 28px auto 0; }
.bs-faq details { border: 1px solid var(--border-light); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; background: #fff; }
.bs-faq summary { font-weight: 700; font-family: var(--font-heading); cursor: pointer; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bs-faq summary::after { content: "+"; color: var(--teal-primary); font-size: 20px; }
.bs-faq details[open] summary::after { content: "−"; }
.bs-faq details p { margin-top: 10px; font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; }
.bs-rel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px; }
.bs-rel a, .bs-rel > div { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--text-primary); font-weight: 600; }
.bs-rel a:hover { border-color: var(--teal-light); box-shadow: var(--shadow-md); }
.bs-rel__ic { font-size: 22px; }
.bs-rel small { display: block; font-weight: 500; color: var(--text-secondary); font-size: 13px; }
.bs-cta { background: var(--teal-darker); color: #fff; border-radius: 24px; padding: clamp(2rem, 5vw, 3rem); text-align: center; margin-top: 40px; }
.bs-cta h2 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.bs-cta p { color: var(--teal-200); margin-top: 10px; font-size: 1.05rem; }
.bs-cta .bs-ctas { justify-content: center; }
.bs-cta .bs-btn--s { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.bs-cta__note { font-size: var(--text-sm); color: var(--teal-200); margin-top: 1rem; }
/* BOKS 186: Om-sidens kontaktlinje (mail, telefon) i CTA-kortet */
.bs-cta__note a { color: #fff; }
@media (min-width: 640px) { .bs-steps, .bs-feats, .bs-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .bs-steps, .bs-feats, .bs-rel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── fx-*: funktionssidernes egne (mockup 1.5 + 1.6) ── */
.nav-link[aria-current="page"] { color: var(--teal-primary); }
.fx-rejse .bs-step { position: relative; }
.fx-rejse .bs-step a { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--teal-primary); text-decoration: none; }
.fx-rejse .bs-step a:hover { text-decoration: underline; text-underline-offset: 2px; }
.fx-feat { flex-direction: column; gap: 10px; text-decoration: none; color: var(--text-primary); transition: border-color .15s, box-shadow .15s; }
a.fx-feat:hover { border-color: var(--teal-light); box-shadow: var(--shadow-md); }
.fx-feat__more { font-size: 13.5px; font-weight: 700; color: var(--teal-primary); margin-top: auto; padding-top: 6px; }
div.fx-feat .fx-feat__more { color: var(--text-secondary); }
.fx-aldrig { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 28px; }
.fx-aldrig > div { background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 16px 18px; display: flex; gap: 12px; }
.fx-aldrig__x { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-50); color: var(--teal-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.fx-aldrig__t { display: block; }
.fx-aldrig b { display: block; font-family: var(--font-heading); font-size: 0.98rem; margin-bottom: 3px; }
.fx-aldrig p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.fx-matrix { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 28px; background: #fff; border: 1px solid var(--border-light); border-radius: 16px; overflow: hidden; font-size: 14px; }
.fx-matrix th, .fx-matrix td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--border-light); }
.fx-matrix th { font-family: var(--font-heading); font-size: 13px; font-weight: 700; background: var(--bg-mint); color: var(--text-primary); }
.fx-matrix th:first-child, .fx-matrix td:first-child { text-align: left; }
.fx-matrix tr:last-child td { border-bottom: 0; }
.fx-matrix td { color: var(--text-secondary); }
.fx-matrix td.ja { color: var(--teal-primary); font-weight: 800; }
.fx-matrix td.nej { color: var(--text-tertiary); }
.fx-matrix th.pop { color: var(--teal-primary); }
.fx-matrix__note { font-size: 13.5px; color: var(--text-secondary); margin-top: 12px; }
.fx-matrix__note a { color: var(--teal-primary); font-weight: 600; }
.fx-wrap { overflow-x: auto; }
.fx-nyt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; }
.fx-nyt div { background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 14px 16px; }
.fx-nyt small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-primary); margin-bottom: 4px; }
.fx-nyt b { font-family: var(--font-heading); font-size: 0.98rem; display: block; margin-bottom: 3px; }
.fx-nyt p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
/* BOKS 160: nyhedssidens kort linker til den funktion, nyheden handler om */
.fx-nyt a { display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--teal-primary); text-decoration: none; }
.fx-nyt a:hover { text-decoration: underline; }
.fx-alle { font-size: 14.5px; margin-top: 16px; }
.fx-alle a { color: var(--teal-primary); font-weight: 600; }
.fx-bevis { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; background: #fff; border: 1px solid var(--border-light); border-radius: 20px; padding: 28px; margin-top: 28px; }
.fx-bevis h3 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; }
.fx-bevis p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; margin-top: 8px; }
.fx-bevis__stempel { text-align: left; }
.fx-bevis__big { display: inline-block; background: var(--teal-50); color: var(--teal-dark); border: 1px solid var(--teal-100); border-radius: 999px; padding: 10px 18px; font-family: var(--font-heading); font-weight: 800; font-size: 1rem; }
.fx-bevis__note { font-size: 13px; color: var(--text-tertiary); margin-top: 8px; }
@media (min-width: 640px) { .fx-aldrig, .fx-nyt { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .fx-nyt, .fx-aldrig { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fx-bevis { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); } .fx-bevis__stempel { text-align: right; } }

/* ── BOKS 204: siden om Mit Svarflow (mockup 11 er facit) ─────────────────────────────────────────────────────
   H1'ens anden linje (teal) staar paa sin egen linje som i facit. */
[data-funktion-side="mit-svarflow"] .bs-h1 em { display: block; }
/* De seks felter: ikonet i en hvid flise med bloed skygge (samme stil som forsidens Processen); titlerne flugter */
.fx-felter .fx-felt { align-items: flex-start; padding: 18px; border-radius: 16px; }
.fx-felt__ic { width: 48px; height: 48px; border-radius: 13px; background: #fff; border: 1px solid #E3EFEC; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07); color: var(--teal-primary); }
.fx-felt__ic svg { width: 22px; height: 22px; display: block; }
.fx-felt__hoved { width: 30px; height: 30px; display: block; }
.fx-felter h3 { margin-top: 1px; }
/* «I bestemmer selv»: de tre nummererede kort */
.fx-selv .bs-step { border-radius: 16px; }

/* Det forenklede vindue af I dag-siden — HTML/CSS (ikke et skaermbillede). Hele Nora staar i det teal kort og roerer
   aldrig tal-fliserne (luft som facit). */
.msv { background: #fff; border: 1px solid #E2E8F0; border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.05); overflow: hidden; font-size: 12px; color: var(--text-primary); max-width: 540px; margin-inline: auto; width: 100%; }
/* BOKS 204b: INGEN tekst i vinduet knaekker over flere linjer (og intet kappes med «…») — hver linje staar paa een linje;
   passer et af dashboardets ord ikke, bruger siden mockuppens korte ord (data/funktioner/mit-svarflow*.json vindue.kort). */
.msv * { white-space: nowrap; }
.msv__bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #F8FAFC; border-bottom: 1px solid #EEF2F6; }
.msv__prikker { display: inline-flex; gap: 5px; }
.msv__prikker i { width: 8px; height: 8px; border-radius: 50%; background: #E2E8F0; display: block; }
.msv__titel { font-size: 10.5px; font-weight: 600; color: #94A3B8; }
.msv__krop { display: grid; grid-template-columns: 30% minmax(0, 1fr); }
.msv__side { padding: 12px 8px; border-right: 1px solid #EEF2F6; min-width: 0; }
.msv__logo { width: 92%; height: auto; display: block; margin: 0 auto 12px; }
.msv__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.msv__nav li { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 8px; font-size: 10.5px; font-weight: 500; color: #334155; }
.msv__nav li.on { background: linear-gradient(135deg, #0F766E, #14B8A6); color: #fff; font-weight: 700; }
.msv__ic { width: 13px; height: 13px; display: inline-flex; flex-shrink: 0; color: var(--teal-primary); }
.msv__nav li.on .msv__ic { color: #fff; }
.msv__ic svg { width: 13px; height: 13px; }
.msv__hoved { width: 14px; height: 14px; display: block; }
.msv__badge { margin-left: 2px; min-width: 16px; height: 16px; border-radius: 999px; background: #F59E0B; color: #fff; font-size: 9.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.msv__grp { margin: 12px 8px 4px; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #94A3B8; }
.msv__main { background: #F6F8FA; padding: 10px; display: grid; gap: 8px; min-width: 0; }
.msv__hero { position: relative; background: linear-gradient(135deg, #0F766E 0%, #138A7E 60%, #17A091 100%); border-radius: 14px; padding: 12px 12px 12px; color: #fff; overflow: hidden; }
.msv__hero-tekst { position: relative; z-index: 1; }
.msv__pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 3px 9px; font-size: 9.5px; font-weight: 600; }
.msv__pill i { width: 6px; height: 6px; border-radius: 50%; background: #5EEAD4; display: block; }
.msv__hej { display: block; font-family: var(--font-heading); font-size: 19px; font-weight: 800; margin-top: 7px; letter-spacing: -0.01em; }
.msv__linje { display: block; font-size: 9.5px; color: rgba(255, 255, 255, 0.82); margin-top: 2px; }
.msv__tal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 9px; max-width: 74%; }
.msv__tal > div { border: 1px solid rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.08); border-radius: 9px; padding: 6px 7px; min-width: 0; }
.msv__tal small { display: block; font-size: 8.5px; line-height: 1.3; color: rgba(255, 255, 255, 0.82); }
.msv__tal b { display: block; font-family: var(--font-heading); font-size: 17px; font-weight: 800; line-height: 1.15; }
.msv__nora { position: absolute; right: 4px; bottom: 0; height: 62%; width: auto; pointer-events: none; user-select: none; }
.msv__kort { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.msv__k { background: #fff; border: 1px solid #EEF2F6; border-radius: 12px; padding: 9px 9px; min-width: 0; }
.msv__kh { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-family: var(--font-heading); font-size: 10.5px; font-weight: 700; margin-bottom: 7px; }
.msv__antal { min-width: 17px; height: 17px; border-radius: 999px; background: #FEF3C7; color: #B45309; font-size: 9.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.msv__r, .msv__t { display: flex; gap: 6px; align-items: flex-start; min-width: 0; }
.msv__t + .msv__t { margin-top: 7px; }
.msv__r b, .msv__t b { display: block; font-size: 10px; font-weight: 700; }
.msv__r small, .msv__t small { display: block; font-size: 9px; color: #64748B; }
.msv__rik { width: 20px; height: 20px; border-radius: 6px; background: #FEF3C7; color: #B45309; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msv__rik svg { width: 11px; height: 11px; }
.msv__tid { font-size: 10px; font-weight: 700; color: var(--teal-primary); min-width: 28px; padding-top: 1px; }
@media (max-width: 480px) {
  .msv__krop { grid-template-columns: minmax(0, 1fr); }
  .msv__side { display: none; }
}
