/* Lokal Roboto (variabel, latin – dekker æøå) */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/roboto.woff2") format("woff2");
}

:root {
  --ts-marine: #18244D;
  --ts-blaa: #012C6D;
  --ts-ikon: #9DABBA;
  --ts-tekst: #32353A;
}

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

body {
  margin: 0;
  font: 16px/25px Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ts-tekst);
  background: #fff;
}

p { margin: 0 0 14.4px; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

/* Erstatter inline style="text-decoration:none" (CSP uten unsafe-inline) */
.ts-tlf { text-decoration: none; }

/* 1200 px innhold + 10 px luft på hver side */
.ts-innhold {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ---------- Topp ---------- */
.ts-topp {
  height: 160px;
  display: grid;
  grid-template-columns: 1fr repeat(3, 220px);
  column-gap: 20px;
  align-items: center;
  padding-right: 21px;
}
.ts-logo { width: 408px; }

.ts-infoboks {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ts-blaa);
  font-size: 17px;
  font-weight: 600;
  line-height: 20.4px;
}
.ts-infoboks a { text-decoration: none; }
.ts-infoboks svg {
  flex: 0 0 50px;
  height: 50px;
  fill: var(--ts-ikon);
}
.ts-infoboks small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  color: var(--ts-tekst);
}

.ts-stripe {
  height: 51px;
  background: var(--ts-marine);
}

/* ---------- Innhold ---------- */
.ts-seksjon-1 {
  display: grid;
  grid-template-columns: 55fr 45fr;
  align-items: center;
  padding-top: 85px;
  padding-bottom: 110px;
}

/* Overlappende bilder */
.ts-bilder img { border-radius: 5px; }
.ts-bilde-1 { width: 78.8%; margin-left: 19.7%; }
.ts-bilde-2 { width: 71.2%; margin-left: 1.5%; margin-top: -70px; position: relative; }

.ts-intro {
  max-width: 490px;
  margin: 0 auto;
  text-align: center;
}

.ts-skille {
  border: 0;
  border-top: 2px solid var(--ts-marine);
  margin: 0;
}

.ts-seksjon-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  align-items: center;
  padding-top: 110px;
}
.ts-seksjon-2 > div { padding: 0 15px; }
.ts-seksjon-2 > div:last-child { padding-left: 0; }

/* Kartbilde, lenket til Google Maps */
.ts-kart {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* ---------- Bunn ---------- */
.ts-bunn {
  padding-top: 90px;
  padding-bottom: 40px;
  text-align: center;
}

/* ---------- Nettbrett ---------- */
@media (max-width: 1024px) {
  .ts-topp { display: flex; padding-right: 10px; }
  .ts-logo { width: 165px; }
  .ts-infoboks { display: none; }
  .ts-stripe { height: 21px; }
  .ts-bilde-1 { width: 76%; margin-left: 22%; }
  .ts-bilde-2 { width: 67%; margin-left: 0; }
}

/* ---------- Mobil ---------- */
@media (max-width: 767px) {
  .ts-topp { height: 90px; justify-content: center; }
  .ts-logo { width: 298px; }
  .ts-stripe { height: 11px; }

  .ts-seksjon-1 {
    grid-template-columns: 1fr;
    padding-top: 35px;
    padding-bottom: 74px;
  }
  .ts-intro { order: -1; padding: 0 5px; margin-bottom: 35px; }
  .ts-bilde-1 { width: 100%; margin-left: 0; }
  .ts-bilde-2 { display: none; }

  .ts-seksjon-2 { grid-template-columns: 1fr; padding-top: 62px; }
  .ts-seksjon-2 > div { padding: 0 5px; }
  .ts-seksjon-2 > div:last-child { padding: 40px 5px 0; }

  .ts-bunn { padding-top: 75px; padding-bottom: 35px; }
}
