/* Skirla – utkast til merkevare og forside. Én fil, ingen rammeverk. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --rim: #f4f8fa;
  --is: #dce9f2;
  --blatime: #2446b8;
  --natt: #0b1634;
  --sol: #ff5a36;
  --taake: #55647f;

  --grotesk: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 4.4vw, 64px);
  --maks: 1320px;
  --linje: color-mix(in srgb, var(--natt) 16%, transparent);
  --ut: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 53px;
}

body {
  margin: 0;
  background: var(--rim);
  color: var(--natt);
  font-family: var(--grotesk);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--sol);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maks);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Ordmerket ---------- */
.wm {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.wm .prikk {
  fill: var(--sol);
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes hopp {
  0% { transform: translateY(0); }
  38% { transform: translateY(-34%); }
  66% { transform: translateY(0); }
  82% { transform: translateY(-9%); }
  100% { transform: translateY(0); }
}

/* ---------- Utkastlinja øverst ---------- */
.utkast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--linje);
}
.utkast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}
.utkast-tekst {
  font-size: 14px;
  color: var(--taake);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.utkast-tekst strong {
  color: var(--natt);
  font-weight: 600;
}
.bytt {
  display: flex;
  flex: none;
  padding: 3px;
  border-radius: 999px;
  background: var(--is);
}
.bytt a {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  color: var(--natt);
}
.bytt a[aria-current="page"] {
  background: var(--natt);
  color: #fff;
}

.visning[hidden] {
  display: none;
}

/* ---------- Himmelen (hero og småkort) ---------- */
.himmel {
  --himmel: var(--natt);
  --blekk: #fff;
  --blekk-svak: color-mix(in srgb, var(--blekk) 72%, transparent);
  background: var(--himmel);
  color: var(--blekk);
}
.himmel[data-lys="dag"] {
  --blekk: var(--natt);
}

.solbane {
  position: relative;
}
.solbane-svg {
  display: block;
  width: 100%;
  height: var(--bane-h, 230px);
  overflow: visible;
}
.bane {
  fill: none;
  stroke: var(--blekk);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.bane--under {
  opacity: 0.6;
  stroke-dasharray: 2 6;
}
.horisont {
  stroke: var(--blekk);
  stroke-width: 1;
  opacity: 0.55;
}
.bane-tekst {
  fill: var(--blekk);
  opacity: 0.7;
  font-family: var(--grotesk);
  font-size: 13px;
  font-weight: 500;
}
.bane-hake {
  stroke: var(--blekk);
  opacity: 0.45;
  stroke-width: 1;
}
.sol {
  fill: var(--sol);
}
.sol-ring {
  fill: none;
  stroke: var(--sol);
  stroke-width: 1.5;
  opacity: 0.4;
}

/* ---------- Nettsiden: topp ---------- */
.topp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
}
.topp-logo {
  display: block;
  width: 118px;
  color: var(--blekk);
}
.topp-logo:hover .prikk,
.topp-logo:focus-visible .prikk {
  animation: hopp 480ms var(--ut);
}
.topp-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.topp-nav a {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--blekk);
}
.topp-nav a:not(.knapp):hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.topp-lenker {
  display: flex;
  gap: 34px;
}

/* ---------- Knapper ---------- */
.knapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border: 1.5px solid var(--blekk, var(--natt));
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  color: var(--blekk, var(--natt));
  transition: background-color 160ms ease, color 160ms ease;
}
.knapp--fylt {
  background: var(--blekk, var(--natt));
  color: var(--himmel, var(--rim));
}
.knapp--liten {
  min-height: 42px;
  padding: 8px 20px;
  font-size: 15px;
}
.knapp:hover {
  background: var(--blekk, var(--natt));
  color: var(--himmel, var(--rim));
}
.knapp--fylt:hover {
  background: transparent;
  color: var(--blekk, var(--natt));
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 48px;
  padding-top: clamp(28px, 5vw, 76px);
  padding-bottom: clamp(20px, 3vw, 40px);
}
.hero h1 {
  font-size: clamp(52px, 8.6vw, 132px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.hero h1 span {
  display: block;
  white-space: nowrap;
}
.hero-tekst {
  padding-bottom: 12px;
}
.lede {
  max-width: 36ch;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--blekk-svak);
}
.lede strong {
  color: var(--blekk);
  font-weight: 600;
}
.handlinger {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-bane {
  --bane-h: 230px;
}
.bane-fakta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 32px;
  padding-top: 14px;
  padding-bottom: 26px;
  font-size: 15px;
  color: var(--blekk-svak);
}
.bane-fakta strong {
  color: var(--blekk);
  font-weight: 600;
}

/* ---------- Seksjoner på nettsiden ---------- */
.del {
  padding-block: clamp(72px, 10vw, 148px);
}
.del-tittel {
  max-width: 16ch;
  font-size: clamp(36px, 5.2vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.del-ingress {
  max-width: 52ch;
  margin-top: 22px;
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--taake);
}

/* Tjenester: en prisliste i klartekst */
.tjenester {
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 2px solid var(--natt);
}
.tjeneste {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 20px 48px;
  padding-block: clamp(28px, 3.4vw, 48px);
  border-bottom: 1px solid var(--linje);
}
.tjeneste h3 {
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.tjeneste-hvem {
  margin-top: 10px;
  font-size: 15px;
  color: var(--taake);
}
.tjeneste-tekst {
  max-width: 54ch;
}
.tjeneste-tekst p + p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--taake);
}
.tjeneste-pris b {
  display: block;
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.tjeneste-pris span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--taake);
}

/* Arbeid */
.arbeid {
  background: #fff;
}
.prosjekter {
  display: grid;
  gap: clamp(56px, 8vw, 120px);
  margin-top: clamp(40px, 5vw, 72px);
}
.prosjekt {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 72px);
}
.prosjekt--speilet .prosjekt-bilde {
  order: 2;
}
.prosjekt-bilde {
  padding: clamp(14px, 2.2vw, 32px);
  border-radius: 20px;
  background: var(--is);
}
.prosjekt-bilde img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--natt) 10%, transparent), 0 24px 48px -28px color-mix(in srgb, var(--natt) 55%, transparent);
}
.prosjekt h3 {
  font-size: clamp(34px, 3.8vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.prosjekt-rolle {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blatime);
}
.prosjekt-tekst p {
  max-width: 46ch;
  margin-top: 18px;
}
.prosjekt-tall {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px 36px;
  margin-top: 24px;
}
.prosjekt-tall dt {
  order: 2;
  font-size: 14px;
  color: var(--taake);
}
.prosjekt-tall dd {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.prosjekt-tall div {
  display: flex;
  flex-direction: column;
}
.lenke {
  display: inline-block;
  margin-top: 22px;
  font-weight: 600;
  color: var(--blatime);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.lenke:hover {
  color: var(--natt);
}

/* Om */
.om-rutenett {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
.om-bilde {
  position: relative;
}
.om-bilde img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}
.om-bilde figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--taake);
}
.om-tekst p {
  max-width: 56ch;
  margin-top: 22px;
  font-size: clamp(17px, 1.3vw, 19px);
}
.klartale {
  margin-top: clamp(36px, 4vw, 56px);
  border-top: 2px solid var(--natt);
}
.klartale li {
  padding-block: 20px;
  border-bottom: 1px solid var(--linje);
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

/* Kontakt */
.kontakt {
  background: var(--blatime);
  color: #fff;
  --blekk: #fff;
  --himmel: var(--blatime);
}
.kontakt-inner {
  padding-block: clamp(72px, 9vw, 136px);
}
.kontakt h2 {
  font-size: clamp(40px, 6.4vw, 96px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.kontakt h2 > span {
  display: block;
}
.kontakt-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  margin-top: clamp(32px, 4vw, 56px);
}
.kontakt-side .handlinger {
  margin-top: 0;
}
.punktum {
  display: inline-block;
  width: 0.19em;
  height: 0.19em;
  margin-left: 0.045em;
  border-radius: 50%;
  background: var(--sol);
}
.kontakt-side p {
  max-width: 30ch;
  font-size: 19px;
  line-height: 1.45;
  color: color-mix(in srgb, #fff 82%, transparent);
}
.kontakt-epost {
  font-size: 17px;
  color: color-mix(in srgb, #fff 82%, transparent);
}

/* Bunn */
.bunn {
  background: var(--natt);
  color: #fff;
}
.bunn-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 32px 48px;
  padding-block: 56px 40px;
  font-size: 15px;
  line-height: 1.6;
  color: color-mix(in srgb, #fff 72%, transparent);
}
.bunn-logo {
  width: 132px;
  margin-bottom: 18px;
  color: #fff;
}
.bunn h3 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.bunn a {
  text-decoration: none;
}
.bunn a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Merkevarearket ---------- */
.ark-topp {
  padding-top: clamp(40px, 7vw, 104px);
  padding-bottom: clamp(48px, 7vw, 104px);
}
.ark-merke {
  width: min(100%, 980px);
}
.ark-oppslag {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 28px 64px;
  margin-top: clamp(36px, 5vw, 72px);
}
.oppslagsord {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.oppslagsord i {
  font-style: italic;
}
.oppslagsord b {
  font-weight: 600;
}
.ark-om {
  max-width: 44ch;
  color: var(--taake);
}
.ark-om strong {
  color: var(--natt);
  font-weight: 600;
}

.ark-del {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px 48px;
  padding-block: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--linje);
}
.ark-del h2 {
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.ark-del > header p {
  max-width: 30ch;
  margin-top: 14px;
  font-size: 15px;
  color: var(--taake);
}
.ark-note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--taake);
}
.ark-note strong {
  color: var(--natt);
  font-weight: 600;
}

/* Logo */
.logo-rutenett {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.flis {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: 20px;
  background: #fff;
  color: var(--natt);
}
.flis--natt {
  background: var(--natt);
  color: #fff;
}
.flis--blatime {
  background: var(--blatime);
  color: #fff;
}
.flis--is {
  background: var(--is);
}
.flis--hoved {
  grid-column: span 6;
  min-height: clamp(260px, 30vw, 400px);
}
.flis--hoved .wm {
  width: min(78%, 640px);
}
.flis--halv {
  grid-column: span 3;
}
.flis--halv .wm {
  width: min(70%, 320px);
}
.flis--tredel {
  grid-column: span 2;
}
.figur {
  grid-column: span 2;
}
.figur--halv {
  grid-column: span 3;
}
.figur--full {
  grid-column: span 6;
}
.figur .flis {
  width: 100%;
}
.figur figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--taake);
}
.figur figcaption strong {
  color: var(--natt);
  font-weight: 600;
}
.ikoner {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.frisone {
  width: min(100%, 300px);
  height: auto;
}
.frisone-ytre {
  fill: none;
  stroke: var(--blatime);
  stroke-width: 14;
  stroke-dasharray: 70 60;
}
.frisone-indre {
  fill: none;
  stroke: color-mix(in srgb, var(--blatime) 40%, transparent);
  stroke-width: 10;
}
.frisone-prikk {
  fill: color-mix(in srgb, var(--sol) 28%, transparent);
}
.frisone .prikk {
  fill: var(--sol);
}
.figur--smal .flis {
  padding: 28px;
}

/* Farger */
.farger {
  display: grid;
  grid-template-columns: 5fr 2fr 2fr 2fr 1.2fr;
  gap: 8px;
}
.farge {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}
.farge b {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.farge--rim {
  background: var(--rim);
  box-shadow: inset 0 0 0 1px var(--linje);
}
.farge--is {
  background: var(--is);
}
.farge--blatime {
  background: var(--blatime);
  color: #fff;
}
.farge--natt {
  background: var(--natt);
  color: #fff;
}
.farge--sol {
  align-items: center;
  justify-content: space-between;
  padding-inline: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--linje);
  text-align: center;
}
.farge--sol::before {
  content: "";
  width: min(72%, 64px);
  aspect-ratio: 1;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--sol);
}
.fargeregler {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 40px;
  margin-top: 28px;
}
.fargeregler h3 {
  font-size: 17px;
  font-weight: 700;
}
.fargeregler p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--taake);
}

/* Typografi */
.skrift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.skriftkort {
  padding: clamp(24px, 3vw, 44px);
  border-radius: 20px;
  background: #fff;
}
.skriftkort-navn {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  font-size: 14px;
  color: var(--taake);
}
.skriftkort-navn b {
  color: var(--natt);
  font-weight: 600;
}
.prove-grotesk {
  margin-top: 22px;
  font-size: clamp(64px, 8.4vw, 132px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.prove-serif {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(64px, 8.4vw, 132px);
  font-weight: 400;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.alfabet {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.alfabet--serif {
  font-family: var(--serif);
  font-size: 19px;
}
.skala {
  grid-column: 1 / -1;
  padding: clamp(24px, 3vw, 44px);
  border-radius: 20px;
  background: #fff;
}
.skala li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  padding-block: 16px;
  border-top: 1px solid var(--linje);
}
.skala li:first-child {
  padding-top: 0;
  border-top: 0;
}
.skala li:last-child {
  padding-bottom: 0;
}
.skala small {
  font-size: 14px;
  line-height: 1.4;
  color: var(--taake);
}
.skala .s-1 {
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.skala .s-2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.skala .s-3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.22;
  letter-spacing: -0.012em;
}
.skala .s-4 {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.55;
}
.skala .s-5 {
  font-size: 14px;
  line-height: 1.45;
  color: var(--taake);
}

/* Stemme */
.slagord {
  padding: clamp(28px, 4.4vw, 64px);
  border-radius: 20px;
  background: var(--natt);
  color: #fff;
}
.slagord p {
  font-size: clamp(44px, 7vw, 108px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.slagord small {
  display: block;
  max-width: 54ch;
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.5;
  color: color-mix(in srgb, #fff 74%, transparent);
}
.stemme {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.stemmekort {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 20px;
  background: #fff;
}
.stemmekort h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.stemmekort > p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--taake);
}
.stemmekort blockquote {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
}
.stemmekort del {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  font-size: 15px;
  color: var(--taake);
  text-decoration-color: var(--sol);
  text-decoration-thickness: 1.5px;
}
.andre-slagord {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
}

/* Lyset */
.lys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.lyskort {
  --bane-h: 150px;
  overflow: hidden;
  border-radius: 20px;
}
.lyskort-topp {
  padding: 22px 22px 0;
}
.lyskort-topp b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.lyskort-bunn {
  padding: 12px 22px 20px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--blekk-svak);
}
.lyskort-bunn strong {
  display: block;
  color: var(--blekk);
  font-weight: 600;
}

/* I bruk */
.bruk {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.bruk .figur {
  display: flex;
  flex-direction: column;
  grid-column: span 3;
}
.bruk .figur .flis {
  flex: 1;
}
.kort {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 85 / 55;
  padding: 22px 24px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.kort--for {
  display: flex;
  align-items: flex-end;
  background: var(--natt);
  color: #fff;
}
.kort--for .wm {
  width: 52%;
}
.kort--bak {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--linje);
  color: var(--natt);
}
.kort--bak b {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.kort--bak .kort-prikk {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sol);
}
.kortstabel {
  display: grid;
  gap: 14px;
  justify-items: center;
  width: 100%;
}
.fane {
  width: min(100%, 420px);
  border-radius: 12px;
  background: #e6ebf0;
  overflow: hidden;
  font-size: 13px;
}
.fane-rad {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 12px 0;
}
.fane-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 14px;
  border-radius: 10px 10px 0 0;
  background: #fff;
  font-weight: 500;
  white-space: nowrap;
}
.fane-tab img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}
.fane-tab--svak {
  background: transparent;
  color: var(--taake);
}
.fane-adresse {
  padding: 10px 12px;
  background: #fff;
}
.fane-adresse span {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--rim);
  color: var(--taake);
}
.signatur {
  width: min(100%, 420px);
  padding: 22px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--linje);
  font-size: 15px;
  line-height: 1.5;
}
.signatur p + p {
  margin-top: 12px;
}
.signatur .wm {
  width: 84px;
  margin-top: 16px;
}
.signatur small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--taake);
}
.dotkun {
  width: 96px;
  height: 96px;
}

.ark-slutt {
  padding-block: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--linje);
}
.ark-slutt .del-tittel {
  max-width: 18ch;
  margin-bottom: 28px;
}

/* ---------- Smalere skjermer ---------- */
@media (max-width: 1000px) {
  .topp-lenker {
    display: none;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .tjeneste {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .tjeneste-navn {
    grid-column: 1 / -1;
  }
  .prosjekt,
  .om-rutenett,
  .ark-del,
  .ark-oppslag {
    grid-template-columns: minmax(0, 1fr);
  }
  .prosjekt--speilet .prosjekt-bilde {
    order: 0;
  }
  .om-bilde {
    max-width: 320px;
  }
  .bunn-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .bunn-inner > :first-child {
    grid-column: 1 / -1;
  }
  .stemme,
  .lys {
    grid-template-columns: minmax(0, 1fr);
  }
  .fargeregler {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .utkast-tekst span {
    display: none;
  }
  .bytt a {
    padding: 6px 13px;
  }
  .topp {
    padding-block: 18px;
  }
  .topp-logo {
    width: 104px;
  }
  .hero-bane {
    --bane-h: 150px;
  }
  .bane-tekst {
    font-size: 12px;
  }
  .bane-fakta {
    font-size: 14px;
  }
  .handlinger .knapp {
    flex: 1 1 auto;
  }
  .tjeneste {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .prosjekt-tall {
    gap: 8px 24px;
  }
  .prosjekt-tall dd {
    font-size: 22px;
  }
  .bunn-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .logo-rutenett,
  .bruk {
    grid-template-columns: minmax(0, 1fr);
  }
  .flis--hoved,
  .flis--halv,
  .flis--tredel,
  .figur,
  .figur--halv,
  .figur--full,
  .bruk .figur {
    grid-column: auto;
  }
  .flis {
    min-height: 180px;
  }
  .farger {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .farge {
    min-height: 150px;
    padding: 14px;
  }
  .farge--rim {
    grid-column: 1 / -1;
    min-height: 130px;
  }
  .farge--is,
  .farge--blatime,
  .farge--natt {
    padding: 12px;
  }
  .farge--sol {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 0;
    padding: 14px;
    text-align: left;
    gap: 14px;
    justify-content: flex-start;
  }
  .farge--sol::before {
    width: 44px;
    margin: 0;
  }
  .skrift {
    grid-template-columns: minmax(0, 1fr);
  }
  .skala li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .topp-logo:hover .prikk,
  .topp-logo:focus-visible .prikk {
    animation: none;
  }
  .knapp {
    transition: none;
  }
}
