/* Priskart */
:root {
  --ink: #16212b;
  --muted: #5d6b77;
  --line: #e3e8ec;
  --bg: #f5f7f8;
  --card: #fff;
  --acc: #2c5f5d;
  --acc2: #e8f0ef;
  --warm: #c7663a;
  --warn: #8a5a00;
  --warn-bg: #fff8f3;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.55 Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Inter Tight", Inter, sans-serif; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.note {
  margin: 0;
  padding: 8px 16px;
  background: #3b2a14;
  color: #f8efe4;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}
nav.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}
nav.top .tilbake { font-size: 14px; color: var(--muted); text-decoration: none; }
nav.top .tilbake:hover { color: var(--acc); }
.hero { padding: 12px 0 8px; }
.hero h1 { font-size: 36px; font-weight: 700; margin: 0 0 10px; }
.hero p { color: var(--muted); max-width: 42em; margin: 0 0 8px; font-size: 17px; }
.oppdatert { font-size: 13px; color: #8a96a0; margin: 0; }
.feltgruppe { margin: 22px 0 0; }
.feltgruppe h2, .feltgruppe .lab, .info-geo > .lab {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.valg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.valg button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 14px/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
  min-height: 40px;
}
.valg button.on {
  border-color: var(--acc);
  background: var(--acc2);
  color: var(--acc);
}
.valg button:disabled, .valg button.kommer {
  opacity: .55;
  cursor: not-allowed;
}
.valg button .hint {
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
  font-size: 12px;
}
.brett {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 24px;
  align-items: start;
  margin: 28px 0 40px;
}
.kartkort, .resultat, .blokk {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.kartkort h2, .resultat h2, .blokk h2 {
  font-size: 20px;
  margin: 0 0 6px;
}
.kartkort .hjelp, .resultat .hjelp, .blokk .hjelp {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 16px;
}

.ekte-kart {
  width: 100%;
  height: 440px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #d5dde1;
  position: relative;
  z-index: 0;
  touch-action: manipulation;
}
.ekte-kart .kart-plassholder {
  margin: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}
.ekte-kart:not(.laster) .kart-plassholder { display: none; }
.ekte-kart .leaflet-div-icon {
  background: transparent;
  border: none;
}
.ekte-kart .leaflet-container {
  width: 100%;
  height: 100%;
  background: #d5dde1;
  font: 12px/1.4 Inter, system-ui, sans-serif;
}
.ekte-kart .leaflet-control-zoom a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-size: 18px;
}
.ekte-kart .leaflet-control-attribution {
  font-size: 11px;
  background: rgba(255,255,255,.88);
  max-width: 100%;
}
.ekte-kart .leaflet-popup-content {
  margin: 12px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}
.ekte-kart .leaflet-popup-content strong { display: inline; }
.kart-etikett {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,.94);
  border: 1px solid #2c5f5d;
  border-radius: 999px;
  padding: 4px 9px;
  font: 650 12px/1.2 Inter, system-ui, sans-serif;
  color: #16212b;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
  white-space: nowrap;
  pointer-events: none;
}
.kart-etikett.fa-data { border-color: #9aa4ab; color: #5d6b77; }
.kart-etikett.valgt { background: #2c5f5d; color: #fff; border-color: #2c5f5d; }
.kart-etikett.stor { font-size: 11px; }

.test-banner {
  margin: 0;
  padding: 10px 16px;
  background: #7a1f1f;
  color: #fff8f3;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .01em;
}
body.testmodus { outline: 4px solid #7a1f1f; outline-offset: -4px; }
.kart-ramme { position: relative; }
.tilbake-nivaa {
  position: absolute;
  top: 10px;
  left: 50px;
  z-index: 500;
  appearance: none;
  border: 1px solid #2c5f5d;
  background: rgba(255,255,255,.95);
  color: #16212b;
  border-radius: 8px;
  padding: 8px 12px;
  font: 650 13px/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
  min-height: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.tilbake-nivaa:hover, .tilbake-nivaa:focus { background: #e8f0ef; outline: 2px solid #2c5f5d; }
.kart-etikett {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 4.5em;
  text-align: center;
}
.kart-etikett .et-navn { display: block; }
.kart-etikett .et-tall {
  display: block;
  font-weight: 700;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.kart-fargeforklaring { margin: 10px 0 8px; }
.kart-skala-rad {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.kart-skala {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  border: 1px solid #c5ccd1;
  background: #c5ccd1;
  min-width: 80px;
}
.kart-skala.gradient {
  background: linear-gradient(90deg, #2e7d4f 0%, #e8b339 50%, #c44536 100%);
  border-color: #8a9298;
}
.kart-skala.noytral { background: #6a7a82; border-color: #5d6b77; }
.kart-skala.like { background: #5d8a6e; border-color: #4a6e58; }
.kart-skala.tom { background: #c5ccd1; }
.kart-skala-tekst {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 4px;
  line-height: 1.4;
}
.kart-skala-nok {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.kart-skala-nok .prikk {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -1px;
  background: #c5ccd1;
  border: 1px solid #8a9298;
}
.liste-navn { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.liste-prikk {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  flex: 0 0 11px;
  border: 1px solid rgba(0,0,0,.15);
}



.kart-tegnforklaring {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  list-style: none;
  margin: 10px 0 8px;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}
.kart-tegnforklaring .prikk {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -1px;
  border: 1px solid #2c5f5d;
}
.kart-tegnforklaring .prikk.har { background: #2c5f5d; }
.kart-tegnforklaring .prikk.fa { background: #c5ccd1; border-color: #8a9298; }
.kart-kilde {
  font-size: 12px;
  color: #8a96a0;
  margin: 0 0 12px;
  line-height: 1.45;
}

.regioner { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.regioner button {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: 600 14px/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
}
.regioner button small { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }
.regioner button.on { border-color: var(--acc); background: var(--acc2); color: var(--acc); }
.snitt {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 8px 0 6px;
  font-variant-numeric: tabular-nums;
}
.snitt small { font-size: 18px; font-weight: 650; color: var(--muted); margin-left: 4px; }
.grunnlag { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.tom {
  background: var(--warn-bg);
  border: 1px solid #f1dccd;
  color: #8a4a2a;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 8px 0 0;
}
.tom strong { display: block; font-size: 18px; margin: 0 0 4px; color: var(--ink); }
.liste-omrader { margin: 12px 0 0; padding: 0; list-style: none; }
.liste-omrader li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  cursor: pointer;
  border-radius: 8px;
  min-height: 44px;
  align-items: center;
}
.liste-omrader li:first-child { border-top: 0; }
.liste-omrader li:hover, .liste-omrader li:focus { background: var(--acc2); outline: none; }
.liste-omrader li.valgt { font-weight: 700; }
.liste-omrader .belop { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.liste-omrader .fa { color: var(--muted); font-weight: 500; }

.info-geo { margin: 0 0 28px; }
.info-geo h2 { font-size: 22px; margin: 22px 0 8px; }
.info-geo > h2:first-of-type { margin-top: 4px; }
.info-geo p { color: var(--ink); margin: 0 0 12px; max-width: 46em; }
.info-geo a { color: var(--acc); }
.sitat {
  margin: 8px 0 20px;
  padding: 0;
  border: 0;
}
.sitat blockquote { margin: 0; }
.sitat p {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  max-width: 22em;
}
.sitat .uthev { background: #e8f0ef; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sitat figcaption, .sitat cite { font-style: normal; font-size: 14px; color: var(--muted); }
.ap-tall { margin: 0 0 20px; padding: 0; border: 0; max-width: 36em; }
.ap-tall-h { font-size: 13px; font-weight: 650; color: var(--muted); margin: 0 0 10px; }
.ap-rad { margin: 0 0 12px; }
.ap-lab {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 14.5px;
  margin: 0 0 4px;
}
.ap-lab strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-lab em { font-style: normal; font-weight: 650; color: var(--muted); margin-right: 4px; }
.ap-spor { height: 10px; background: #e8ecef; border-radius: 999px; overflow: hidden; }
.ap-fyll { height: 100%; background: var(--acc); border-radius: 999px; }
.info-geo .kilde { font-size: 13px; color: var(--muted); margin: 8px 0 16px; max-width: 50em; }
.faq { margin: 20px 0 0; }
.faq h2 { margin-bottom: 10px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 16px;
  padding: 6px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq details p { margin: 0 0 8px; color: var(--muted); }

.optinn { margin: 0 0 48px; }
.optinn form { display: grid; gap: 12px; max-width: 520px; }
.optinn label { font-size: 13px; font-weight: 650; }
.optinn input, .optinn select, .optinn textarea {
  width: 100%;
  border: 1px solid #c9c3b8;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.optinn input:focus, .optinn select:focus, .optinn textarea:focus {
  outline: 2px solid var(--acc);
  outline-offset: 1px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font: 700 15px/1.2 inherit;
  cursor: pointer;
  background: var(--acc);
  color: #fff;
  width: fit-content;
  min-height: 44px;
}
.kvittering {
  display: none;
  background: var(--acc2);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--acc);
  font-size: 14.5px;
}
.kvittering.vis { display: block; }
.hp-felt { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.optinn label.samtykke { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; }
.optinn label.samtykke input { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.optinn-feil { color: #a3261e; font-size: 14.5px; margin: 0; }
.vilkar { font-size: 14px; color: var(--muted); margin: 16px 0 0; max-width: 46em; }
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--muted);
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; }
@media (max-width: 800px) {
  .brett { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .snitt { font-size: 34px; }
  .wrap { padding: 0 16px; }
  .ekte-kart { height: 360px; }
  .sitat p { font-size: 19px; }
}
