/* Kanbai: det som er felles for alle sidene. Fargene, skriften og bildene er de samme som i første utkast (og i appen). */
@font-face { font-family: "Caprasimo"; src: url("../Caprasimo-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../nunito.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }   /* bare latin, 600–800 (OFL, se nunito-ofl.txt) */
:root {
  color-scheme: light;
  --blekk: #3a2418;
  --dempet: #5a3a2c;
  --baer: #b82f52;
  --mork-baer: #a3264a;
  --papir: #fffaf0;
  --sand: #f6e3c4;
  --tre: #c98d52;
  --mork-tre: #8f5a2b;
  --natt: #2b1a33;
  --tittel: "Caprasimo", "Cooper Black", Georgia, serif;
  --tekst: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--blekk); font-family: var(--tekst); font-weight: 600; font-size: 17px; line-height: 1.5;
  background: #f7dcc4 url("../bilder/bakgrunn.jpg") center top / cover fixed;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-width: 0;
}
@supports (-webkit-touch-callout: none) { body { background-attachment: scroll; } }   /* iOS tegner ikke «fixed» pent */
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--tittel); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--mork-baer); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--baer); outline-offset: 3px; border-radius: 8px; }
.skjult { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.merkelapp { font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--mork-baer); }
.ramme { width: min(1120px, 100% - 32px); margin-inline: auto; }
.hopp-til { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blekk); color: var(--papir); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.hopp-til:focus { top: 12px; }

/* Topplinje */
.topp { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 0 6px; }
.merke { display: flex; align-items: center; gap: 10px; font-family: var(--tittel); font-size: 24px; text-decoration: none; color: inherit; min-width: 0; }
.merke img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 3px 8px rgba(90,50,20,.25); flex: none; }
.topp-hoyre { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sprak { display: flex; background: rgba(255,250,240,.7); border-radius: 999px; padding: 3px; border: 1px solid rgba(255,255,255,.8); flex: none; }
.sprak button { border: 0; background: none; padding: 6px 11px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.sprak button[aria-pressed="true"] { background: var(--blekk); color: var(--papir); }
.appknapp { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--blekk); color: var(--papir); font-weight: 800; font-size: 14px; white-space: nowrap; text-decoration: none; }
.appknapp svg { width: 15px; height: 18px; flex: none; }
.appknapp.stor { font-size: 16px; padding: 13px 22px; }

/* Knapper */
.pille { min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1px solid #fff; background: rgba(255,250,240,.9); font-family: var(--tittel); font-size: 18px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--blekk); }
.pille.rod { background: linear-gradient(#c53d62, var(--mork-baer)); color: #fff; border-color: rgba(255,255,255,.45); box-shadow: 0 10px 18px -8px rgba(184,47,82,.6); }
.pille.stor { min-height: 54px; font-size: 21px; padding: 10px 28px; }
.pille svg { width: 20px; height: 20px; flex: none; }
.pille:disabled { opacity: .55; cursor: default; }

/* Bunnen */
.bunn { padding: 40px 0 34px; font-size: 14.5px; color: #cdb5c2; }
.bunn nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 14px; }
.bunn a { color: #ffe9c9; font-weight: 800; text-decoration: none; }
.bunn a:hover { text-decoration: underline; }
.bunn p + p { margin-top: 4px; }
.bunn.lys { color: var(--dempet); }
.bunn.lys a { color: var(--mork-baer); }

/* Undersidene (personvern, support) */
.underside main { padding: 18px 0 30px; }
.ark { background: var(--papir); border-radius: 10px; padding: clamp(24px, 5vw, 48px); max-width: 760px; margin: 10px auto 0; box-shadow: 0 24px 46px -20px rgba(90,50,20,.45); position: relative; }
.ark h1 { font-size: clamp(34px, 6vw, 52px); }
.ark .ingress { font-size: 18.5px; color: var(--dempet); margin: 14px 0 6px; }
.ark h2 { font-size: 25px; margin: 30px 0 8px; }
.ark h3 { font-family: var(--tekst); font-weight: 800; font-size: 17.5px; margin: 22px 0 4px; line-height: 1.3; }
.ark p, .ark li { color: var(--blekk); }
.ark p + p { margin-top: 10px; }
.ark ul { padding-left: 1.2em; margin: 8px 0; }
.ark li + li { margin-top: 4px; }
.ark .dato { font-size: 14px; color: var(--dempet); margin-top: 26px; border-top: 2px dashed #e3d0b2; padding-top: 14px; }
.ark details { border-bottom: 2px dashed #eadbc2; padding: 12px 0; }
.ark summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ark summary::-webkit-details-marker { display: none; }
.ark summary::after { content: "+"; font-family: var(--tittel); color: var(--mork-baer); font-size: 22px; line-height: 1; }
.ark details[open] summary::after { content: "–"; }
.ark details p { margin-top: 8px; color: var(--dempet); }
.kontaktboks { margin-top: 28px; background: var(--sand); border-radius: 18px; padding: 18px 20px; }
.kontaktboks a { font-weight: 800; font-size: 18px; word-break: break-word; }

@media (max-width: 520px) {
  .appknapp.liten { display: none; }
  .merke { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
