/* Fordelene i Inner Circle: felles utseende for sidene under /fordeler og
   VIP-rommet. LMEs egne fonter og farger, ingen nye (CLAUDE.md: fonter og
   farger er låst, og ingen overgang blander rosa og gult). */
@font-face { font-family: 'Playpen Sans'; src: url('/fonts/PlaypenSans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playpen Sans'; src: url('/fonts/PlaypenSans-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playpen Sans'; src: url('/fonts/PlaypenSans-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sasson Montessori'; src: url('/fonts/SassoonMontessori.woff2') format('woff2'), url('/fonts/SassoonMontessori.ttf') format('truetype'); font-weight: normal; font-style: normal; font-display: swap; }

:root {
  --cream: #FBF6F0; --cream-dyp: #F6EFE6; --pink-myk: #FDEEF0; --pink: #F5A8B8;
  --cerise: #E91E89; --cerise-myk: #FFF2F8; --lime: #7AAE1F; --lime-lys: #A4D233; --lime-myk: #F1F7E4;
  --sky: #3FA9F5; --sky-myk: #EDF6FA; --sol: #F7C72E; --sol-myk: #FFF8E4;
  --ink: #2A1E1B; --ink-myk: #6B5A54; --line: rgba(42,30,27,0.10);
  --r-m: 20px; --r-pill: 999px;
  --font-head: 'Playpen Sans', system-ui, sans-serif;
  --font-body: 'Sasson Montessori', 'Playpen Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--cream); color: var(--ink); line-height: 1.6; padding-bottom: 60px; overflow-x: hidden; }
h1, h2, h3, h4, h6 { font-family: var(--font-head); line-height: 1.3; }
button, select, input, textarea { font-family: var(--font-body); font-size: 16px; color: var(--ink); }
a { color: var(--cerise); }

.topp { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(251,246,240,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 10px 16px; }
.topp .merke { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; flex: 1; min-width: 150px; }
.topp .merke img { height: 34px; width: 34px; object-fit: contain; }
.topp a.knapp-lite, .topp button { background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 14px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; }

.ramme { max-width: 980px; margin: 0 auto; padding: 22px 16px; }
.hode { margin: 6px 0 20px; }
.hode .kick { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cerise); }
.hode h1 { font-size: clamp(26px, 5vw, 36px); margin: 4px 0 8px; }
.hode p { color: var(--ink-myk); font-size: 16.5px; max-width: 680px; }

.kort { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 20px; margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(42,30,27,0.05); overflow-wrap: anywhere; }
.kort h2 { font-size: 20px; margin-bottom: 6px; }
.kort h3 { font-size: 17px; margin-bottom: 4px; }
.kort .ingress { color: var(--ink-myk); font-size: 15px; margin-bottom: 12px; }
.kort.rosa { background: linear-gradient(135deg, #FFF2F8 0%, #FDEEF0 100%); }
.kort.lime { background: linear-gradient(135deg, #F7FBEF 0%, #F1F7E4 100%); }
.kort.sky { background: linear-gradient(135deg, #F5FAFD 0%, #EDF6FA 100%); }
.kort.sol { background: linear-gradient(135deg, #FFFCF2 0%, #FFF8E4 100%); }

.rutenett { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.flis { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 18px; text-decoration: none; color: var(--ink); box-shadow: 0 3px 12px rgba(42,30,27,0.05); transition: transform .2s ease; }
a.flis:hover { transform: translateY(-3px); }
.flis .ikon { font-size: 28px; }
.flis h3 { font-size: 17px; }
.flis p { font-size: 14.5px; color: var(--ink-myk); flex: 1; }
.flis .gaa { font-weight: 700; color: var(--cerise); font-size: 14.5px; }
.flis.last { opacity: .8; }

.merkelapp { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; border-radius: var(--r-pill); padding: 3px 10px; }
.merkelapp.medlem { background: var(--sky-myk); color: #1f6fa8; }
.merkelapp.pro { background: var(--lime-myk); color: #4d7412; }
.merkelapp.vip { background: var(--cerise-myk); color: #a8125f; }
.merkelapp.prio { background: var(--cerise); color: #fff; }
.merkelapp.gra { background: var(--cream-dyp); color: var(--ink-myk); }

.knapp { display: inline-block; border: 0; border-radius: var(--r-pill); padding: 12px 22px; font-weight: 800; font-size: 15.5px;
  cursor: pointer; text-decoration: none; background: var(--cerise); color: #fff; box-shadow: 0 8px 20px rgba(233,30,137,.22); }
.knapp.hvit { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.knapp.liten { padding: 7px 14px; font-size: 13.5px; box-shadow: none; }
.knapp:disabled { opacity: .55; cursor: default; }

label { display: block; font-weight: 700; font-size: 14.5px; margin: 12px 0 5px; }
input[type=text], input[type=url], input[type=date], input[type=month], textarea, select {
  width: 100%; border: 1px solid rgba(42,30,27,0.18); border-radius: 14px; padding: 11px 14px; background: #fff; }
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.to-kol { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .to-kol { grid-template-columns: 1fr; } }
.rad { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }

.melding { margin-top: 12px; font-size: 15px; min-height: 1em; }
.melding.ok { color: #4d7412; }
.melding.feil { color: #b0124f; }

.liste-el { border-top: 1px solid var(--line); padding: 14px 0; }
.liste-el:first-child { border-top: 0; padding-top: 4px; }
.liste-el .meta { font-size: 13px; color: var(--ink-myk); }
.brodtekst p { margin: 0 0 12px; }
.tom { color: var(--ink-myk); font-size: 15px; }

.las { text-align: center; padding: 34px 22px; }
.las .ikon { font-size: 40px; margin-bottom: 8px; }
.las h2 { color: var(--cerise); font-size: 22px; margin-bottom: 8px; }
.las p { color: var(--ink-myk); max-width: 520px; margin: 0 auto 18px; }

.faner { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.faner button { background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 15px; font-weight: 700; cursor: pointer; font-size: 14.5px; }
.faner button.aktiv { background: var(--cerise); color: #fff; border-color: var(--cerise); }

.dialog-bak { position: fixed; inset: 0; background: rgba(42,30,27,.45); display: grid; place-items: center; padding: 16px; z-index: 100; }
.dialog { background: #fff; border-radius: var(--r-m); padding: 24px 20px; max-width: 460px; width: 100%; }
.dialog h3 { margin-bottom: 8px; }

@media print {
  .topp, .ikke-print, .rad { display: none !important; }
  body { background: #fff; }
  .kort { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
