/* findpartner.dk - petrol og okker, to felter der mødes */
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
  --papir: #f5f3ee;
  --hvid: #fdfcf9;
  --blaek: #17262a;
  --daempet: #55666a;
  --petrol: #1f5c60;
  --petrol-dyb: #17393c;
  --mint: #d8e8e3;
  --okker: #c98a2b;
  --okker-dyb: #8f5f16;
  --okker-tone: #f4e5c9;
  --linje: #d5d6cf;
  --display: "Source Serif 4", Georgia, serif;
  --tekst: "Schibsted Grotesk", system-ui, sans-serif;
  --rund: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papir); color: var(--blaek); font-family: var(--tekst); font-size: 1.0625rem; line-height: 1.62; }
::selection { background: var(--okker-tone); }
img, svg { max-width: 100%; }
a { color: var(--petrol); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--petrol-dyb); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--okker); outline-offset: 2px; border-radius: 3px; }
.visuelt-skjult { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ramme { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--okker); color: var(--blaek); padding: 0.5rem 0.9rem; font-weight: 700; z-index: 10; border-radius: 6px; }
.spring:focus { top: 0.75rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; color: var(--petrol-dyb); text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 3.9rem); margin: 0 0 1rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.15rem); margin: 2.2em 0 0.5em; }
h3 { font-size: 1.3rem; margin: 1.5em 0 0.35em; }
p { margin: 0 0 1em; }
.indledning { font-size: clamp(1.1rem, 2.1vw, 1.25rem); line-height: 1.55; max-width: 44ch; }
.kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--okker-dyb); margin: 0 0 0.8rem; }
.lille { font-size: 0.92rem; color: var(--daempet); }

/* Top */
.top { background: var(--hvid); border-bottom: 1px solid var(--linje); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.9rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--petrol-dyb); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1; }
.ordmaerke:hover { color: var(--petrol-dyb); }
.maerke-ikon { width: 2.3rem; height: 1.5rem; flex: none; }
.ikon-a { fill: var(--petrol); }
.ikon-b { fill: var(--okker); mix-blend-mode: multiply; }
.menu { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; }
.menu a { color: var(--blaek); text-decoration: none; font-weight: 500; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--linje); }
.menu a[aria-current="page"] { color: var(--petrol); border-bottom-color: var(--okker); font-weight: 700; }

/* Knapper */
.knapper { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.knap { display: inline-block; background: var(--petrol); color: var(--hvid); text-decoration: none; font-weight: 700; padding: 0.78rem 1.3rem; border-radius: var(--rund); }
.knap:hover { background: var(--petrol-dyb); color: var(--hvid); }
.knap-lys { background: transparent; color: var(--petrol-dyb); box-shadow: inset 0 0 0 2px var(--petrol); }
.knap-lys:hover { background: var(--petrol); color: var(--hvid); }
.pil { font-weight: 700; text-decoration: none; }
.pil::after { content: " \2192"; }

/* Forside */
.helt { padding-block: clamp(2.5rem, 7vw, 5rem); }
.helt-ind { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.helt-figur { width: 100%; height: auto; }
.fig-a { fill: var(--mint); }
.fig-b { fill: var(--okker-tone); }
.fig-faelles { fill: var(--petrol); }
.fig-tekst { font-family: var(--tekst); font-size: 16px; font-weight: 700; fill: var(--petrol-dyb); }
.fig-tekst-lys { fill: var(--hvid); font-size: 15px; }
.sektion { padding-block: clamp(1.2rem, 4vw, 2.5rem); }
.sektion h2:first-child { margin-top: 0.3em; }
.trin-liste { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linje); border-radius: var(--rund); overflow: hidden; }
.trin-liste a { display: grid; gap: 0.35rem; align-content: start; height: 100%; padding: 1.4rem 1.3rem; background: var(--hvid); color: var(--blaek); text-decoration: none; }
.trin-liste a:hover { background: var(--mint); color: var(--blaek); }
.trin-nr { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--okker); }
.trin-titel { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--petrol-dyb); }
.sektion-tone { background: var(--petrol-dyb); color: #d9e6e3; margin-top: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.sektion-tone h2 { color: var(--hvid); }
.sektion-tone a { color: var(--okker-tone); }
.to-spalter { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.citat-kasse { padding: clamp(1.4rem, 4vw, 2.2rem); background: var(--petrol); border-radius: 10px; }
.citat { font-family: var(--display); font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.2; color: var(--hvid); margin-bottom: 0.8rem; }
.citat-kasse .lille { color: #bcd2cd; margin: 0; }

/* Tekstsider */
.tekstside { padding-block: clamp(2rem, 6vw, 4rem) 3rem; }
.side-top { max-width: 48rem; margin-bottom: 1.5rem; }
.artikel { max-width: 44rem; }
.punkter { padding-left: 1.2rem; }
.punkter li { margin-bottom: 0.6rem; }
.punkter li::marker { color: var(--okker); }
.aftale-liste { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.aftale-liste li { display: grid; grid-template-columns: 3rem 1fr; gap: 0.6rem; padding: 1.2rem 1.3rem; background: var(--hvid); border-radius: 10px; box-shadow: 0 0 0 1px var(--linje); }
.aftale-nr { font-family: var(--display); font-size: 1.7rem; line-height: 1.1; color: var(--okker); }
.aftale-liste h2 { font-size: 1.3rem; margin: 0.1rem 0 0.35rem; }
.aftale-liste p { margin: 0; }

/* Tjekliste */
.tjekliste { background: var(--hvid); border-radius: 10px; padding: clamp(1.1rem, 4vw, 1.8rem); box-shadow: 0 0 0 1px var(--linje); margin: 0.8rem 0 1.5rem; }
fieldset { border: 0; margin: 0; padding: 0; }
.tjek { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; padding: 0.6rem 0; border-bottom: 1px solid #ebebe5; cursor: pointer; }
.tjek input { width: 1.15rem; height: 1.15rem; margin-top: 0.22rem; accent-color: var(--petrol); }
.maaler { height: 0.6rem; background: var(--mint); border-radius: 999px; margin-top: 1.1rem; overflow: hidden; }
.maaler span { display: block; height: 100%; width: 0; background: var(--petrol); border-radius: 999px; transition: width 0.25s ease; }
.tjek-status { margin: 0.6rem 0 0; font-weight: 600; }

/* Sammenligning */
.sammenligning { margin: 0.5rem 0 2rem; }
.tabel-wrap { overflow-x: auto; background: var(--hvid); border-radius: 10px; box-shadow: 0 0 0 1px var(--linje); }
.skema { border-collapse: collapse; width: 100%; }
.skub { display: none; margin: 0 0 0.5rem; }
.skema th, .skema td { padding: 0.55rem 0.7rem; border-bottom: 1px solid #ebebe5; text-align: left; white-space: nowrap; }
.skema thead th { background: var(--mint); font-size: 0.9rem; }
.skema tbody th { font-weight: 600; position: sticky; left: 0; background: var(--hvid); }
.skema thead th:first-child { position: sticky; left: 0; background: var(--mint); }
.skema tr:last-child th, .skema tr:last-child td { border-bottom: 0; }
.skema select, .skema input { font: inherit; color: var(--blaek); background: var(--papir); border: 1.5px solid #b9c2c0; border-radius: 6px; padding: 0.35rem 0.45rem; }
.skema input.navn { width: 8.5rem; font-weight: 700; }
.skema select:focus, .skema input:focus { outline: 3px solid var(--okker); border-color: var(--petrol); }
.resultater { display: grid; gap: 0.6rem; margin-top: 1.2rem; }
.res { display: grid; grid-template-columns: minmax(7rem, 10rem) 1fr auto; gap: 0.4rem 1rem; align-items: center; padding: 0.7rem 1rem; background: var(--hvid); border-radius: 8px; box-shadow: 0 0 0 1px var(--linje); }
.res-navn { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-bar { height: 0.7rem; background: var(--mint); border-radius: 999px; overflow: hidden; }
.res-bar span { display: block; height: 100%; background: var(--petrol); border-radius: 999px; }
.res-bedst { background: var(--okker-tone); box-shadow: none; }
.res-bedst .res-bar span { background: var(--okker-dyb); }
.res-tal { font-variant-numeric: tabular-nums; font-size: 0.95rem; color: var(--daempet); }

/* Bund */
.bund { background: var(--petrol-dyb); color: #c9d9d5; margin-top: 2.5rem; }
.sektion-tone + .bund, main:has(.sektion-tone:last-child) + .bund { margin-top: 0; }
.bund-ind { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 2.2rem; border-top: 1px solid #2c5357; }
.bund-navn { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--hvid); margin: 0 0 0.3rem; }
.bund-note { font-size: 0.92rem; margin: 0; max-width: 44ch; }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-content: start; }
.bund a { color: #eef4f2; text-decoration: none; }
.bund a:hover { color: var(--okker-tone); }

@media (max-width: 860px) {
  .helt-ind, .to-spalter { grid-template-columns: 1fr; }
  .trin-liste { grid-template-columns: 1fr 1fr; }
  .aftale-liste { grid-template-columns: 1fr; }
  .helt-figur { max-width: 26rem; }
}
@media (max-width: 640px) {
  .skub { display: block; }
  .skema th, .skema td { padding: 0.5rem 0.4rem; }
  .skema tbody th { white-space: normal; min-width: 7.5rem; max-width: 8rem; line-height: 1.3; font-size: 0.95rem; }
  .skema input.navn { width: 6rem; }
}
@media (max-width: 520px) {
  .trin-liste { grid-template-columns: 1fr; }
  .res { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .maaler span { transition: none; } }
