/* ==========================================================================
   Egne tillegg til klonen: cookie-samtykke, samtykke-gated innhold, 404, footer.
   Stil matcher merkevaren (kobolt-blå #0047ab, Open Sans).
   ========================================================================== */

:root {
  --nkp-blue: #0047ab;
  --nkp-blue-dark: #003a8c;
  --nkp-ink: #2b2b2b;
  --nkp-grey: #5d6c7b;
  --nkp-line: #e2e6ea;
}

/* -------- Cookie-samtykke-bar -------- */
.cookiebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 3px solid var(--nkp-blue);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--nkp-ink);
  padding: 20px 24px;
}
.cookiebar[hidden] { display: none; }
.cookiebar__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  justify-content: space-between;
}
.cookiebar__text { flex: 1 1 340px; font-size: 14px; line-height: 1.6; margin: 0; }
.cookiebar__text strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--nkp-blue); }
.cookiebar__text a { color: var(--nkp-blue); text-decoration: underline; }
.cookiebar__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ckbtn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  padding: 11px 20px;
  cursor: pointer;
  border: 2px solid var(--nkp-blue);
  transition: background .15s ease, color .15s ease;
  line-height: 1;
}
.ckbtn--primary { background: var(--nkp-blue); color: #fff; }
.ckbtn--primary:hover { background: var(--nkp-blue-dark); border-color: var(--nkp-blue-dark); }
.ckbtn--ghost { background: #fff; color: var(--nkp-blue); }
.ckbtn--ghost:hover { background: #eef3fb; }

/* Detaljvalg-panel */
.cookiebar__details { flex-basis: 100%; margin-top: 6px; }
.cookiebar__details[hidden] { display: none; }
.ckopt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 0; border-top: 1px solid var(--nkp-line); font-size: 14px;
}
.ckopt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--nkp-blue); }
.ckopt label { font-weight: 700; }
.ckopt p { margin: 2px 0 0; color: var(--nkp-grey); font-size: 13px; line-height: 1.5; }
.ckopt input:disabled { opacity: .6; }

/* -------- Samtykke-gated innhold (kart, video) -------- */
.consent-embed { position: relative; overflow: hidden; }
/* Video: fyll Webflows aspekt-boks (.w-video har padding-top for 16:9). */
.w-video .consent-embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.consent-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center;
  background: #eef1f4 url("/assets/img/59c1026a1fc3950001f3abbf_bg-scampi.jpg") center/cover;
  min-height: 100%;
  padding: 40px 24px;
  font-family: 'Open Sans', Arial, sans-serif;
}
.consent-placeholder::before {
  content: ""; position: absolute; inset: 0; background: rgba(0, 32, 74, .72);
}
.consent-placeholder > * { position: relative; z-index: 1; color: #fff; }
.consent-placeholder p { margin: 0; max-width: 440px; font-size: 15px; line-height: 1.6; }
.consent-placeholder .ckbtn--primary { border-color: #fff; }

/* -------- Videoer på forside: merkelapp + lik størrelse -------- */
/* Liten merkelapp som skiller de to videoene fra hverandre. */
.nkp-video-label {
  color: var(--nkp-blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.nkp-video-block { margin: 0 0 60px; }
/* Native <video> fyller SAMME aspekt-boks (.w-video, padding-top 56.17%) som
   YouTube-embedden → begge videoene får nøyaktig lik størrelse. */
.w-video video.nkp-video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; background: #000;
}

/* -------- Footer: lovpålagte lenker -------- */
.legalfooter {
  background: #001d3d; color: #cfd8e3;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 13px; text-align: center; padding: 22px 16px; line-height: 1.9;
}
.legalfooter a { color: #fff; text-decoration: none; margin: 0 10px; }
.legalfooter a:hover { text-decoration: underline; }
.legalfooter .legalfooter__meta { display: block; margin-top: 6px; color: #7f93aa; }

/* -------- Enkle, lesbare lovsider -------- */
.legalpage {
  max-width: 820px; margin: 0 auto; padding: 60px 24px 80px;
  font-family: 'Open Sans', Arial, sans-serif; color: var(--nkp-ink); line-height: 1.7;
}
.legalpage h1 { color: var(--nkp-blue); font-size: 34px; margin: 0 0 8px; }
.legalpage h2 { color: var(--nkp-blue); font-size: 22px; margin: 34px 0 10px; }
.legalpage h3 { font-size: 17px; margin: 22px 0 6px; }
.legalpage p, .legalpage li { font-size: 15px; }
.legalpage a { color: var(--nkp-blue); }
.legalpage table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14px; }
.legalpage th, .legalpage td { border: 1px solid var(--nkp-line); padding: 9px 12px; text-align: left; vertical-align: top; }
.legalpage th { background: #eef3fb; }
.legalpage .updated { color: var(--nkp-grey); font-size: 13px; }

/* -------- Tilpasset 404-side -------- */
.errorpage {
  min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px; font-family: 'Open Sans', Arial, sans-serif; color: var(--nkp-ink);
}
.errorpage h1 { color: var(--nkp-blue); font-size: 96px; margin: 0; line-height: 1; }
.errorpage h2 { font-size: 24px; margin: 8px 0 14px; }
.errorpage p { color: var(--nkp-grey); max-width: 460px; margin: 0 0 26px; }

@media (max-width: 600px) {
  .cookiebar__actions { width: 100%; }
  .ckbtn { flex: 1 1 auto; text-align: center; }
  .errorpage h1 { font-size: 72px; }
}
