/* ============================================================
   Avtrykk - ny nettside (2026)
   Klassisk "blekk på papir": krem/papir + kullsvart,
   Playfair Display serif + Inter, glass-paneler.
   ============================================================ */

* { box-sizing: border-box; }

:root {
  --papir: #f4f0ea;
  --papir-lys: #fbf9f6;
  --papir-mork: #e8e2d8;
  --blekk: #111111;
  --mellom: #575757;
  --varm: #5f5a53;
  --tekst-lys: #ffffff;
  --tekst-dempet: rgba(255, 255, 255, 0.90);
  --panel-bg: rgba(255, 255, 255, 0.10);
  --panel-border: rgba(255, 255, 255, 0.26);
  --skygge: 0 18px 48px rgba(0, 0, 0, 0.28);
  --maksbredde: 1320px;
  --maksbredde-smal: 1100px;
}

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--papir-lys);
  color: var(--blekk);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: "Playfair Display", "Times New Roman", Georgia, serif;
}

#forside, #tjenester, #om-oss, #kontakt { scroll-margin-top: 110px; }

/* Tilgjengelighet: hopp-lenke */
.hopp-lenke {
  position: absolute;
  left: -9999px;
}

.hopp-lenke:focus {
  left: 16px;
  top: 16px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--blekk);
  color: #ffffff;
  border-radius: 10px;
}

/* ---------- Header ---------- */

.topplinje {
  position: sticky;
  top: 0;
  width: 100%;
  min-height: 92px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 229, 224, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.10);
  z-index: 1000;
}

.header-inner {
  width: min(100%, var(--maksbredde));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.logo-lenke {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.logo-lenke img {
  display: block;
  width: auto;
  max-width: min(44vw, 250px);
  max-height: 62px;
}

.hovedmeny {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.hovedmeny a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: #171717;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hovedmeny a:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.hovedmeny a.meny-telefon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Hamburger-meny (mobil) */
.meny-knapp {
  display: none;
  justify-self: end;
  width: 44px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  padding: 0 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.meny-knapp-linje {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #171717;
  transition: transform 200ms ease, opacity 200ms ease;
}

.meny-knapp[aria-expanded="true"] .meny-knapp-linje:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.meny-knapp[aria-expanded="true"] .meny-knapp-linje:nth-child(2) { opacity: 0; }
.meny-knapp[aria-expanded="true"] .meny-knapp-linje:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Header ---------- */

.topplinje {
  position: sticky;
  top: 0;
  width: 100%;
  min-height: 92px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 229, 224, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.10);
  z-index: 1000;
}

.header-inner {
  width: min(100%, var(--maksbredde));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.logo-lenke {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.logo-lenke img {
  display: block;
  width: auto;
  max-width: min(44vw, 250px);
  max-height: 62px;
}

.hovedmeny {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.hovedmeny a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: #171717;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hovedmeny a:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.hovedmeny a.meny-telefon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Hamburger-meny (mobil) */
.meny-knapp {
  display: none;
  justify-self: end;
  width: 44px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  padding: 0 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.meny-knapp-linje {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #171717;
  transition: transform 200ms ease, opacity 200ms ease;
}

.meny-knapp[aria-expanded="true"] .meny-knapp-linje:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.meny-knapp[aria-expanded="true"] .meny-knapp-linje:nth-child(2) { opacity: 0; }
.meny-knapp[aria-expanded="true"] .meny-knapp-linje:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Knapper ---------- */

.knapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.knapp svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.knapp:hover svg { transform: translateX(3px); }

.knapp--lys {
  background: #ffffff;
  color: var(--blekk);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.knapp--lys:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32); }

.knapp--glas {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.knapp--glas:hover { background: rgba(255, 255, 255, 0.20); transform: translateY(-2px); }

.knapp--blekk {
  background: var(--blekk);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.knapp--blekk:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - 94px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #111111;
}

.hero-bilde {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.34) 42%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.44) 100%);
}

.hero-innhold {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 76px 58px;
}

.hero-panel {
  max-width: 760px;
  padding: 38px 40px;
  border-radius: 28px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--skygge);
}

.hero-merke {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--tekst-lys);
  font-size: clamp(2.4rem, 5.2vw, 4.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
  text-wrap: balance;
}

.hero-ingress {
  margin: 0;
  color: var(--tekst-dempet);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.75;
  max-width: 58ch;
}

.hero-handlinger {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
}

.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-chips svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Tjenester ---------- */

.tjenester-omraade {
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.03), transparent 28%),
    linear-gradient(180deg, #fbf9f6 0%, #f4f0ea 100%);
  padding: 72px 24px 64px;
}

.seksjon-intro {
  max-width: var(--maksbredde-smal);
  margin: 0 auto 34px;
  text-align: center;
}

.seksjon-merke {
  margin: 0 0 12px;
  color: #6d665c;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 700;
}

.seksjon-merke--lys { color: rgba(255, 255, 255, 0.65); }

.seksjon-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.seksjon-ingress {
  margin: 0 auto;
  color: var(--varm);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 60ch;
}

.tjenester-grid {
  max-width: var(--maksbredde);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tjenester-grid + .tjenester-grid { margin-top: 22px; }

.tjeneste-kort {
  position: relative;
  min-height: 332px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.tjeneste-kort:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.30);
}

.tjeneste-kort::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.10));
  pointer-events: none;
}

.kort-bilde {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) brightness(0.82);
  transform: scale(1.05);
  transition: transform 400ms ease, filter 400ms ease;
}

.tjeneste-kort:hover .kort-bilde {
  transform: scale(1.10);
  filter: blur(2.5px) brightness(0.92);
}

.kort-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.24) 34%, rgba(0, 0, 0, 0.68) 100%);
}

.kort-innhold {
  position: relative;
  z-index: 1;
  min-height: 332px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.kort-nummer {
  margin: 0 0 auto;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.tjeneste-kort h3 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 1.8vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.tjeneste-kort p {
  margin: 0;
  color: var(--tekst-dempet);
  font-size: 0.98rem;
  line-height: 1.62;
  max-width: 34ch;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

/* Hover: bytt produktliste mot forklaring */
.tjeneste-kort--bilde { cursor: default; }
.tjeneste-kort--bilde:focus { outline: none; }

.kort-tekst--bytt {
  position: relative;
  min-height: 6.6em;
}

.kort-tekst--bytt .tekst-normal,
.kort-tekst--bytt .tekst-hover {
  display: block;
  transition: opacity 220ms ease, transform 220ms ease;
}

.kort-tekst--bytt .tekst-normal { font-weight: 700; }

.kort-tekst--bytt .tekst-hover {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  transform: translateY(8px);
  font-weight: 400;
}

.tjeneste-kort--bilde:hover .tekst-normal,
.tjeneste-kort--bilde:focus .tekst-normal { opacity: 0; transform: translateY(-8px); }

.tjeneste-kort--bilde:hover .tekst-hover,
.tjeneste-kort--bilde:focus .tekst-hover { opacity: 1; transform: translateY(0); }

/* ---------- Om Avtrykk ---------- */

.om-omraade {
  background:
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.04), transparent 30%),
    linear-gradient(180deg, #f4f0ea 0%, #e8e2d8 100%);
  padding: 72px 24px;
}

.om-grid {
  max-width: var(--maksbredde-smal);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.om-tekst h2 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.om-tekst p {
  margin: 0 0 16px;
  color: #3f3a34;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 55ch;
}

.om-tekst .knapp { margin-top: 10px; }

.om-liste ul {
  list-style: none;
  margin: 0;
  padding: 22px 26px;
  display: grid;
  gap: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.om-liste li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #3f3a34;
}

.om-liste strong { color: var(--blekk); }

.hak {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--blekk);
}

.hak svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Kontakt ---------- */

.kontakt-omraade {
  background:
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.04), transparent 30%),
    linear-gradient(180deg, #e8e2d8 0%, #111111 56%);
  padding: 72px 24px 84px;
}

.kontakt-wrapper { max-width: var(--maksbredde); margin: 0 auto; }

.kontakt-intro {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
  color: var(--blekk);
}

.kontakt-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.kontakt-intro p {
  margin: 0 auto;
  color: #3f3a34;
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 60ch;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 22px;
  align-items: stretch;
}

.kart-kort,
.kontakt-kort {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  background: rgba(255, 255, 255, 0.10);
  /* backdrop-filter er fjernet med vilje: kombinasjonen av blur + scrolling
     ved siden av Google Maps-iframeen trigger en Chrome/Edge-renderbugg der
     kartinnhold bløer ut som en lys highlight over kontaktskjemaet. */
}

.kart-kort { min-height: 560px; }

.kart-kort iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
  filter: saturate(0.9) contrast(1.02);
}

.kontakt-kort { padding: 30px; color: #ffffff; }

.kontaktinfo {
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.kontakt-label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.kontaktinfo h3 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.kontaktinfo a {
  display: block;
  width: fit-content;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.02rem;
  line-height: 1.75;
}

.kontaktinfo a:hover { text-decoration: underline; }

.kontakt-sted {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

/* ---------- Skjema ---------- */

.kontaktskjema { display: grid; gap: 14px; }

.skjema-rad { display: grid; gap: 7px; }

.skjema-rad label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 700;
}

.skjema-rad input,
.skjema-rad textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 13px 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  outline: none;
  font: inherit;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.skjema-rad textarea { resize: vertical; min-height: 130px; }

.skjema-rad input:focus,
.skjema-rad textarea:focus {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.kontaktskjema button {
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  color: var(--blekk);
  background: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.kontaktskjema button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  background: var(--papir);
}

/* Spamfelt + statusbokser */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.skjema-status {
  display: none;
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.skjema-status--sendt {
  color: #103b1d;
  background: rgba(174, 226, 184, 0.72);
  border: 1px solid rgba(16, 59, 29, 0.18);
}

.skjema-status--feil {
  color: #4a1111;
  background: rgba(239, 188, 188, 0.72);
  border: 1px solid rgba(74, 17, 17, 0.18);
}

:target.skjema-status { display: block; }
.synlig.skjema-status,
.skjema-status.synlig { display: block; }

/* ---------- 404 ---------- */
.feil404 {
  padding: clamp(48px, 9vw, 110px) 0;
  text-align: center;
}

.feil404-kode {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: clamp(64px, 14vw, 150px);
  line-height: 1;
  margin: 0 0 10px;
  color: transparent;
  -webkit-text-stroke: 2px rgba(28, 36, 48, 0.25);
}

.feil404 h1 {
  margin: 0 0 14px;
}

.feil404 p {
  max-width: 560px;
  margin: 0 auto 26px;
}

.feil404-knapper {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.bunnlinje {
  background: #0b0b0b;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.cmyk-stripe {
  height: 6px;
  background: linear-gradient(90deg,
    #00aeef 0%, #00aeef 25%,
    #ec008c 25%, #ec008c 50%,
    #fff200 50%, #fff200 75%,
    #000000 75%, #000000 100%);
}

.bunn-inner {
  max-width: var(--maksbredde);
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.bunn-merke img {
  display: block;
  width: auto;
  max-height: 58px;
  margin-bottom: 14px;
}

.bunn-merke p { margin: 0; max-width: 34ch; }

.bunn-tittel {
  margin: 0 0 12px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.bunn-kolonne p { margin: 0 0 6px; }

.bunn-kolonne a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.bunn-kolonne a:hover { color: #ffffff; text-decoration: underline; }

.bunn-bunnen {
  max-width: var(--maksbredde);
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 22px 24px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}

.bunn-bunnen p { margin: 0; }

.bunn-skille { margin: 0 8px; opacity: 0.45; }

.bunn-kreditt a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.bunn-kreditt a:hover { border-bottom-color: #ffffff; }

/* ---------- Scroll-reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.er-synlig {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tjeneste-kort:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .tjeneste-kort,
  .kort-innhold { min-height: 330px; }
}

@media (max-width: 1024px) {
  .topplinje { min-height: 86px; padding: 10px 18px; }
  .header-inner { gap: 18px; }
  .logo-lenke img { max-width: min(38vw, 220px); max-height: 56px; }
  .hovedmeny a { min-height: 36px; padding: 0 13px; font-size: 0.84rem; }
  .hero { min-height: calc(84vh - 86px); }
  .hero-innhold { padding: 54px 30px; }
  .hero-panel { max-width: 680px; padding: 30px 28px; border-radius: 24px; }
  .tjenester-omraade { padding: 58px 18px 52px; }

  .tjenester-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
  }

  .tjenester-grid + .tjenester-grid { margin-top: 16px; }
  .tjeneste-kort, .kort-innhold { min-height: auto; }
  .om-grid { grid-template-columns: 1fr; gap: 26px; }
  .om-omraade { padding: 56px 18px; }
}

@media (max-width: 900px) {
  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 760px;
    margin: 0 auto;
  }

  .kart-kort, .kart-kort iframe { min-height: 420px; }
  .kontakt-kort { padding: 26px; }
}

@media (max-width: 700px) {
  /* Header: hamburger-meny */
  .topplinje { min-height: 84px; padding: 9px 14px; }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .logo-lenke { padding: 5px 10px; border-radius: 14px; }
  .logo-lenke img { max-width: min(52vw, 190px); max-height: 46px; }

  .meny-knapp { display: inline-flex; }

  .hovedmeny {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    justify-self: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(250, 248, 244, 0.97);
    border: 1px solid rgba(17, 17, 17, 0.10);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    display: none;
  }

  .hovedmeny.aapen { display: flex; }

  .hovedmeny a {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .hovedmeny a.meny-telefon { justify-content: center; }

  .hero { min-height: calc(78vh - 84px); }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.68) 100%);
  }

  .hero-innhold { align-items: flex-end; padding: 24px 16px 22px; }
  .hero-panel { width: 100%; padding: 22px 18px; border-radius: 18px; }
  .hero h1 { margin-bottom: 14px; max-width: none; }
  .hero-ingress { font-size: 0.98rem; line-height: 1.6; }
  .hero-chips { gap: 8px; }
  .hero-chips li { padding: 8px 12px; font-size: 0.8rem; }

  .tjenester-omraade { padding: 48px 14px 40px; }
  .tjenester-grid { gap: 14px; }
  .kort-innhold { padding: 20px 16px 18px; }
  .tjeneste-kort p { font-size: 0.98rem; line-height: 1.65; }
  .kort-tekst--bytt { min-height: 7.2em; }

  .om-omraade { padding: 48px 14px; }

  .kontakt-omraade { padding: 46px 14px 54px; }
  .kart-kort, .kart-kort iframe { min-height: 340px; border-radius: 16px; }
  .kontakt-kort { padding: 20px 16px 18px; border-radius: 16px; }
  .kontaktinfo { margin-bottom: 20px; padding-bottom: 18px; }
  .skjema-rad input, .skjema-rad textarea { border-radius: 12px; padding: 12px 13px; }

  .bunn-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 38px 18px 30px;
  }

  .bunn-bunnen {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 18px 24px;
  }

  #forside, #tjenester, #om-oss, #kontakt { scroll-margin-top: 104px; }
}

@media (max-width: 420px) {
  .hero-chips { display: none; }
}

/* ---------- Undersider: side-hero ---------- */

.side-hero {
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.04), transparent 30%),
    linear-gradient(180deg, #fbf9f6 0%, #f4f0ea 100%);
  padding: 64px 24px 56px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.side-hero-inner {
  max-width: var(--maksbredde-smal);
  margin: 0 auto;
}

.brodsmule {
  margin: 0 0 18px;
  font-size: 0.82rem;
  color: #6d665c;
}

.brodsmule a {
  color: #6d665c;
  text-decoration: none;
}

.brodsmule a:hover { text-decoration: underline; }

.brodsmule .skille { margin: 0 7px; opacity: 0.55; }

.side-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 16ch;
  text-wrap: balance;
}

.side-hero .ingress {
  margin: 0;
  color: var(--varm);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.7;
  max-width: 62ch;
}

.side-hero .knapp { margin-top: 24px; }

/* ---------- Undersider: innhold ---------- */

.innhold-seksjon {
  padding: 64px 24px;
  background: var(--papir-lys);
}

.innhold-inner {
  max-width: 840px;
  margin: 0 auto;
}

.prose h2 {
  margin: 40px 0 14px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  margin: 0 0 16px;
  color: #3f3a34;
  font-size: 1.02rem;
  line-height: 1.75;
}

.prose ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.prose ul li {
  position: relative;
  padding-left: 26px;
  color: #3f3a34;
  font-size: 1rem;
  line-height: 1.6;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blekk);
}

/* ---------- CTA-boks ---------- */

.cta-boks {
  max-width: 840px;
  margin: 26px auto 0;
  padding: 34px 36px;
  border-radius: 24px;
  background: var(--blekk);
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-boks h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.cta-boks p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }

.cta-boks .knapp { flex: none; }

/* ---------- Tjeneste-hub: kortrad ---------- */

.hub-omraade {
  background: var(--papir-lys);
  padding: 64px 24px 72px;
}

.hub-grid {
  max-width: var(--maksbredde);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hub-kort {
  display: block;
  padding: 24px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  text-decoration: none;
  color: var(--blekk);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.hub-kort:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.12);
}

.hub-kort h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.hub-kort p {
  margin: 0;
  color: var(--varm);
  font-size: 0.94rem;
  line-height: 1.55;
}

.hub-kort .hub-merke {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blekk);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------- Aktiv menylenke ---------- */

.hovedmeny a[aria-current="page"] {
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

@media (max-width: 1024px) {
  .side-hero { padding: 48px 18px 44px; }
  .innhold-seksjon { padding: 52px 18px; }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .side-hero { padding: 40px 14px 36px; }
  .innhold-seksjon { padding: 44px 14px; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-omraade { padding: 48px 14px 52px; }
  .cta-boks { padding: 26px 22px; }
}

/* Kontakt-omraade som lys seksjon på undersider (form på mørkt kort over lys bunn) */
.kontakt-omraade--side {
  background:
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.04), transparent 30%),
    linear-gradient(180deg, #e8e2d8 0%, #111111 90%);
}

/* Senter-variant av hero-handlinger */
.hero-handlinger--senter {
  justify-content: center;
}

/* Prose-lenker */
.prose a {
  color: var(--blekk);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(17, 17, 17, 0.3);
  text-underline-offset: 3px;
}

.prose a:hover { text-decoration-color: var(--blekk); }

/* ---------- FAQ (artikler) ---------- */

.faq-liste {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--blekk);
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: #6d665c;
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 18px 16px;
  margin: 0;
  color: #3f3a34;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- Relaterte tjenester ---------- */

.relaterte-tittel {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid rgba(17, 17, 17, 0.10);
}

.relaterte-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.relaterte-kort {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 40px 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.relaterte-kort:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
}

.relaterte-navn {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  color: var(--blekk);
  letter-spacing: -0.02em;
}

.relaterte-tekst {
  color: var(--varm);
  font-size: 0.88rem;
  line-height: 1.5;
}

.relaterte-pil {
  position: absolute;
  right: 16px;
  top: 20px;
  color: #6d665c;
  font-size: 1.1rem;
  transition: transform 200ms ease, color 200ms ease;
}

.relaterte-kort:hover .relaterte-pil {
  transform: translateX(4px);
  color: var(--blekk);
}

/* Footer: tjeneste-liste */
.bunn-aktiv {
  color: #ffffff;
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .relaterte-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .relaterte-grid { grid-template-columns: 1fr; }
  .relaterte-tittel { margin-top: 34px; padding-top: 26px; }
}
