/* ==========================================================================
   Penger.org - hovedstilark
   Palett: skoggrønn (vekst/penger/tillit) + myntgull + aksenter.
   Uttrykk: rolig, redaksjonelt "fintech" - runde former, myke skygger.
   ========================================================================== */

:root {
  --brand:        #1F8A5B;   /* grønn */
  --brand-d:      #14633F;
  --brand-l:      #2FA873;
  --brand-soft:   #E6F4EC;
  --accent:       #F2B705;   /* myntgull */
  --accent-d:     #C99300;
  --accent-soft:  #FFF4D6;
  --mint:         #1FA97A;   /* positivt / "ja" */
  --mint-soft:    #E4F5EE;
  --coral:        #E5533D;   /* advarsel / "nei" */
  --coral-soft:   #FDEAE6;
  --ink:          #14261D;   /* mørk grønn-tekst */
  --text:         #283328;
  --text-light:   #5E6E63;
  --bg:           #F5F8F5;   /* svakt grønn off-white */
  --bg-2:         #E7EFE9;
  --white:        #FFFFFF;
  --border:       #DDE8E0;

  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow: 0 2px 6px rgba(20,99,63,.05), 0 10px 28px rgba(20,99,63,.07);
  --shadow-lg: 0 16px 50px rgba(20,99,63,.16);
  --maxw: 1160px;

  /* Fargetoner for flate hoder + ikon-kort (tone-1..6) */
  --t1a:#1F8A5B; --t1b:#14633F;   /* grønn */
  --t2a:#F2B705; --t2b:#D99400;   /* gull */
  --t3a:#1FA97A; --t3b:#15795A;   /* mynte */
  --t4a:#E5533D; --t4b:#B23725;   /* korall */
  --t5a:#2C7FB8; --t5b:#1B567E;   /* blå */
  --t6a:#7A5CC0; --t6b:#503793;   /* lilla */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-d); }

h1,h2,h3,h4 { font-weight: 800; line-height: 1.18; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem; }
.narrow { max-width: 740px; }

.section { padding: 3.4rem 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 2.4rem; }
.section-head .eyebrow { color: var(--brand); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { margin: .4rem 0 .6rem; }
.section-head p { color: var(--text-light); font-size: 1.06rem; }

/* ---------- Topp-nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: .6rem 1.2rem; display: flex; align-items: center; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -.03em; }
.nav-logo:hover { color: var(--ink); }
.nav-logo-icon { width: 38px; height: 38px; border-radius: 12px; overflow: hidden; display: block; box-shadow: 0 3px 8px rgba(20,99,63,.28); flex: 0 0 auto; }
.nav-logo-icon svg { width: 100%; height: 100%; display: block; }
.nav-logo-text span { color: var(--brand); }
.nav-menu { display: flex; align-items: center; gap: .05rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav-link { padding: .5rem .55rem; border-radius: var(--r-pill); font-size: .88rem; font-weight: 700; color: var(--text); cursor: pointer; white-space: nowrap; }
.nav-link:hover { background: var(--brand-soft); color: var(--brand-d); }
.nav-cta { background: var(--accent); color: var(--ink) !important; box-shadow: 0 4px 12px rgba(242,183,5,.4); margin-left: .3rem; }
.nav-cta:hover { background: var(--accent-d); color: #fff !important; }

.nav-dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px); background: var(--white); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 1.3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(175px,1fr)); gap: 1.1rem 1.6rem; min-width: 540px; opacity: 0; visibility: hidden; transition: .18s; }
.dropdown-menu.dropdown-mega { min-width: min(840px, 92vw); }
.dropdown-menu.dropdown-simple { min-width: 240px; grid-template-columns: 1fr; padding: .8rem; }
.dropdown-simple .dropdown-col a { font-weight: 600; padding: .5rem .7rem; border-radius: var(--r-sm); }
.dropdown-simple .dropdown-col a:hover { background: var(--brand-soft); }
.dropdown-simple .dropdown-col a.more { margin-top: .25rem; border-top: 1px solid var(--border); border-radius: 0; padding-top: .7rem; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Hold de siste menyene innenfor skjermen */
.nav-dropdown:nth-last-child(-n+3) .dropdown-menu { left: auto; right: 0; transform: translateX(0) translateY(8px); }
.nav-dropdown:nth-last-child(-n+3):hover .dropdown-menu { transform: translateX(0) translateY(0); }
.dropdown-col h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-light); margin-bottom: .55rem; }
.dropdown-col a { display: block; padding: .24rem 0; font-size: .88rem; color: var(--text); font-weight: 500; }
.dropdown-col a:hover { color: var(--brand); }
.dropdown-col a.more { color: var(--brand); font-weight: 800; }

.btn-search-icon { background: none; border: none; padding: .45rem; cursor: pointer; color: var(--text-light); font-size: 1.15rem; border-radius: var(--r-sm); }
.btn-search-icon:hover { background: var(--brand-soft); color: var(--brand); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); padding: .2rem .4rem; }

/* ---------- Knapper ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: var(--r-pill); font-weight: 800; font-size: .98rem; cursor: pointer; border: 2px solid transparent; transition: .15s; }
.btn-primary { background: var(--accent); color: var(--ink) !important; }
.btn-primary:hover { background: var(--accent-d); color:#fff !important; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(242,183,5,.45); }
.btn-brand { background: var(--brand); color: #fff !important; }
.btn-brand:hover { background: var(--brand-d); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(31,138,91,.4); }
.btn-ghost { background: var(--white); color: var(--brand) !important; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Forside-hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 15% -10%, #2FA873 0%, var(--brand-d) 55%, #0C3D26 100%); color: #fff; overflow: hidden; }
.hero::before { content:""; position:absolute; inset:0; background-image: radial-gradient(circle, rgba(255,255,255,.10) 1.5px, transparent 1.6px); background-size: 26px 26px; opacity:.5; }
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 4.4rem 1.2rem 4.6rem; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.18rem; color: rgba(255,255,255,.92); margin-bottom: 1.7rem; max-width: 34rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero .pill { background: rgba(255,255,255,.16); color:#fff; margin-bottom: 1.1rem; }

.quick-card { background: var(--white); color: var(--text); border-radius: var(--r-lg); padding: 1.5rem 1.6rem 1.3rem; box-shadow: var(--shadow-lg); }
.quick-card h3 { font-size: 1.1rem; display:flex; align-items:center; gap:.5rem; margin-bottom: .2rem; }
.quick-card .sub { font-size: .85rem; color: var(--text-light); margin-bottom: 1rem; }
.quick-rows { display: grid; gap: .5rem; }
.quick-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem; padding: .6rem .8rem; background: var(--bg); border-radius: var(--r-sm); }
.quick-row:hover { background: var(--brand-soft); }
.quick-row .age { font-weight: 700; color: var(--ink); font-size: .92rem; }
.quick-row .amt { font-weight: 800; color: var(--brand); font-size: .85rem; }

/* ---------- Sidehode for artikler/hubber ---------- */
.page-hero { position: relative; min-height: 0; display: flex; align-items: flex-end; color: #fff; }
.page-hero .inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 2.6rem 1.2rem; }
.page-hero .kicker { display:inline-block; background: rgba(255,255,255,.2); color:#fff; font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .85rem; border-radius: var(--r-pill); margin-bottom: .85rem; }
.page-hero h1 { color: #fff; margin: 0 0 .5rem; max-width: 26ch; }
.page-hero p { color: rgba(255,255,255,.94); font-size: 1.1rem; max-width: 56ch; margin: 0; }

/* Fargetoner */
.tone-1 { background: linear-gradient(125deg, var(--t1a), var(--t1b)); }
.tone-2 { background: linear-gradient(125deg, var(--t2a), var(--t2b)); }
.tone-3 { background: linear-gradient(125deg, var(--t3a), var(--t3b)); }
.tone-4 { background: linear-gradient(125deg, var(--t4a), var(--t4b)); }
.tone-5 { background: linear-gradient(125deg, var(--t5a), var(--t5b)); }
.tone-6 { background: linear-gradient(125deg, var(--t6a), var(--t6b)); }
.page-hero.tone-2 .kicker { color: var(--ink); background: rgba(0,0,0,.12); }
.page-hero.tone-2 h1, .page-hero.tone-2 p { color: var(--ink); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--border); font-size: .85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 0; align-items: center; }
.breadcrumb li { color: var(--text-light); }
.breadcrumb li a { color: var(--text-light); }
.breadcrumb li a:hover { color: var(--brand); }
.breadcrumb li::after { content: "›"; margin-left: .4rem; color: var(--border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li:last-child { color: var(--ink); font-weight: 700; }

/* ---------- Seksjonskort (forside) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 1.2rem; }
.scard { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 1.6rem; box-shadow: var(--shadow); transition: .18s; display: block; position: relative; overflow: hidden; }
.scard::before { content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background: var(--brand); }
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.scard .ico { font-size: 1.7rem; margin-bottom: .6rem; display:inline-flex; width:54px; height:54px; align-items:center; justify-content:center; border-radius: 14px; background: var(--brand-soft); }
.scard h3 { margin-bottom: .35rem; }
.scard p { font-size: .9rem; color: var(--text-light); margin: 0; }
.scard:nth-child(6n+2)::before { background: var(--accent); } .scard:nth-child(6n+2) .ico { background: var(--accent-soft); }
.scard:nth-child(6n+3)::before { background: var(--mint); } .scard:nth-child(6n+3) .ico { background: var(--mint-soft); }
.scard:nth-child(6n+4)::before { background: var(--coral); } .scard:nth-child(6n+4) .ico { background: var(--coral-soft); }
.scard:nth-child(6n+5)::before { background: var(--t5a); } .scard:nth-child(6n+5) .ico { background: #E4F1F8; }
.scard:nth-child(6n+6)::before { background: var(--t6a); } .scard:nth-child(6n+6) .ico { background: #EFE9FB; }

/* ---------- Kort i grid (hub) ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 1.2rem; margin: .4rem 0 2.4rem; }
.dest-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column; }
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dest-card .ph-ico { display:flex; align-items:center; justify-content:center; aspect-ratio: 16/6; font-size: 2.4rem; background: var(--brand-soft); }
.dest-card .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.dest-card h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.dest-card .desc { font-size: .9rem; color: var(--text-light); flex: 1; margin: 0; }

.section .wrap > h2 { margin: 1.6rem 0 .2rem; }
.section .wrap > h2:first-child { margin-top: 0; }
.section .wrap > h2[id] { scroll-margin-top: 80px; }

/* ---------- Artikkelinnhold ---------- */
.article { max-width: 740px; margin: 0 auto; padding: 2.6rem 1.2rem 3.5rem; }
.article p, .article ul, .article ol { font-size: 1.06rem; color: #333d34; }
.article ul, .article ol { margin: 0 0 1.2rem 1.3rem; }
.article li { margin-bottom: .45rem; }
.article h2 { margin: 2.1rem 0 .8rem; }
.article h3 { margin: 1.6rem 0 .5rem; }
.lead { font-size: 1.18rem; color: #333d34; }

/* Callouts */
.callout { background: var(--accent-soft); border-left: 5px solid var(--accent); border-radius: var(--r-sm); padding: 1.1rem 1.4rem; margin: 1.6rem 0; }
.callout.green, .callout.mint { background: var(--mint-soft); border-color: var(--mint); }
.callout.blue { background: #E7F1F9; border-color: var(--t5a); }
.callout.warn { background: var(--coral-soft); border-color: var(--coral); }
.callout p:last-child { margin: 0; }
.callout strong { color: var(--ink); }

/* ---------- Intern lenking ---------- */
.related { background: var(--bg); border-top: 1px solid var(--border); }
.related h2 { text-align: center; margin-bottom: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.chip { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-pill); padding: .5rem 1.1rem; font-size: .88rem; font-weight: 700; color: var(--brand); }
.chip:hover { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- Cookie-/samtykkebanner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1000;
  max-width: 760px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 1.1rem 1.3rem; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }
.cookie-inner p { margin: 0; flex: 1 1 320px; font-size: .92rem; color: var(--text); }
.cookie-inner a { color: var(--brand); font-weight: 700; text-decoration: underline; }
.cookie-btns { display: flex; gap: .6rem; flex: 0 0 auto; margin-left: auto; }
.cookie-btns .btn { padding: .6rem 1.2rem; font-size: .9rem; }
@media (max-width: 540px) {
  .cookie-btns { width: 100%; }
  .cookie-btns .btn { flex: 1; justify-content: center; }
}

/* ---------- Byline (E-E-A-T) ---------- */
.article .byline {
  font-size: .9rem; color: var(--muted); margin: 0 0 1.4rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.article .byline a { color: var(--brand); font-weight: 700; }
.article .byline a:hover { text-decoration: underline; }

/* ---------- Innholdsfortegnelse ---------- */
.article .toc {
  background: var(--brand-soft); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.1rem 1.3rem 1.1rem 1.4rem;
  margin: 0 0 2rem; }
.article .toc .toc-tittel {
  font-weight: 800; color: var(--brand-dark, var(--brand)); margin: 0 0 .6rem;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.article .toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.article .toc li { margin: .25rem 0; break-inside: avoid; }
.article .toc a { color: var(--text); font-weight: 600; font-size: .94rem; }
.article .toc a:hover { color: var(--brand); text-decoration: underline; }
.article h2 { scroll-margin-top: 1.5rem; }
@media (max-width: 560px) { .article .toc ol { columns: 1; } }

/* ---------- Foto-figurer ---------- */
figure.article-foto, figure.hero-foto, figure.home-foto { margin: 0 0 1.8rem; }
figure.article-foto img, figure.hero-foto img, figure.home-foto img {
  width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--shadow); display: block;
  max-height: 460px; object-fit: cover; }
figure.home-foto img { max-height: 360px; }
figure.article-foto figcaption, figure.hero-foto figcaption, figure.home-foto figcaption {
  font-size: .78rem; color: var(--text-light); margin-top: .45rem; }
figure.article-foto figcaption a, figure.hero-foto figcaption a, figure.home-foto figcaption a { color: var(--text-light); text-decoration: underline; }
.hero-foto { margin-bottom: 2rem; }

/* ---------- Kalkulatorsøk (hub) ---------- */
.kalk-sok { background: var(--brand-soft); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem 1.6rem; margin-bottom: 1.8rem; }
.kalk-sok h2 { margin: 0 0 .3rem; }
.kalk-sok p { color: var(--text-light); font-size: .95rem; margin: 0 0 .9rem; }
.kalk-sok input { width: 100%; padding: .85rem 1.1rem; border: 2px solid var(--border); border-radius: var(--r-pill); font-size: 1.05rem; background: var(--white); color: var(--ink); }
.kalk-sok input:focus { outline: none; border-color: var(--brand); }
.kalk-sok-tom { margin: .9rem 0 0 !important; font-weight: 600; color: var(--coral); }

/* ---------- Kalkulatorer ---------- */
.kalk { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; margin: 1.8rem 0; }
.kalk h3 { font-size: 1rem; margin: 1.2rem 0 .6rem; color: var(--brand-d); }
.kalk h3:first-child { margin-top: 0; }
.kalk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; }
.kalk-felt { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; font-weight: 600; color: var(--text); }
.kalk-felt input, .kalk-felt select { padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 1.05rem; font-weight: 700; color: var(--ink); background: var(--white); font-variant-numeric: tabular-nums; }
.kalk-felt input:focus, .kalk-felt select:focus { outline: 2px solid var(--brand-l); border-color: var(--brand); }
.kalk-res { margin-top: 1.2rem; }
.kalk-res:empty { display: none; }
.kalk-stor { font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 900; color: var(--brand-d); line-height: 1.1; margin-bottom: .8rem; }
.kalk-stor span { display: block; font-size: .9rem; font-weight: 600; color: var(--text-light); }
.kalk-tabell { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.kalk-tabell td { padding: .6rem .9rem; border-bottom: 1px solid var(--border); font-size: .96rem; }
.kalk-tabell tr:last-child td { border-bottom: 0; }
.kalk-tabell td.t { text-align: right; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kalk-tabell .pos { color: var(--mint); } .kalk-tabell .neg { color: var(--coral); }
.kalk-note { font-size: .85rem; color: var(--text-light); margin-top: .8rem; }
.kalk-varsel { background: var(--coral-soft); border-left: 4px solid var(--coral); border-radius: var(--r-sm); padding: .7rem 1rem; margin-top: .9rem; font-size: .92rem; font-weight: 600; }
.kalk-status { color: var(--text-light); font-style: italic; }
.kalk-kilde { font-size: .82rem; color: var(--text-light); margin-top: .6rem; }
.kalk-ansvar { background: var(--bg-2); border: 1px dashed var(--border); border-radius: var(--r); padding: 1.1rem 1.4rem; margin: 1.8rem 0 1rem; }
.kalk-ansvar h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); margin-bottom: .5rem; }
.kalk-ansvar p { font-size: .88rem; color: var(--text-light); margin: 0; }

/* ---------- Ordliste / leksikon ---------- */
.ordliste-az { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 2.2rem; position: sticky; top: 56px; background: var(--white); padding: .7rem 0; z-index: 5; border-bottom: 1px solid var(--border); }
.ordliste-az a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.1rem; height: 2.1rem; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand-d); font-weight: 800; font-size: .9rem; }
.ordliste-az a:hover { background: var(--brand); color: #fff; }
.ordliste-group { margin-bottom: 2.2rem; scroll-margin-top: 110px; }
.ordliste-group h2 { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: linear-gradient(125deg, var(--t6a), var(--t6b)); color: #fff; margin-bottom: 1rem; }
.ordliste-list { margin: 0; }
.ordliste-list dt { font-weight: 800; font-size: 1.1rem; margin-top: 1.1rem; }
.ordliste-list dt a { color: var(--ink); }
.ordliste-list dt a:hover { color: var(--brand); }
.ordliste-list dd { margin: .2rem 0 0; padding: 0 0 1rem; border-bottom: 1px solid var(--border); color: var(--text-light); font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 3.2rem 0 1.6rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 1.6rem; }
.footer-brand { grid-column: span 1; }
.footer-brand .nav-logo { color: #fff; margin-bottom: .9rem; }
.footer-brand .nav-logo-text span { color: var(--accent); }
.footer-brand p { font-size: .86rem; color: rgba(255,255,255,.65); max-width: 23rem; margin-bottom: .7rem; }
.footer-brand .more { color: var(--accent); font-weight: 800; font-size: .86rem; }
.footer-col h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.footer-col a { display: block; color: rgba(255,255,255,.72); font-size: .88rem; padding: .2rem 0; }
.footer-col a:hover { color: var(--accent); }
.footer-col a.more { color: var(--accent); font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.4rem; padding-top: 1.3rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------- Søke-modal ---------- */
.search-modal { position: fixed; inset: 0; background: rgba(20,38,29,.55); backdrop-filter: blur(3px); z-index: 200; display: none; padding: 8vh 1rem 0; }
.search-modal.open { display: block; }
.search-box { max-width: 600px; margin: 0 auto; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box-head { display: flex; align-items: center; padding: .5rem .5rem .5rem 1.3rem; border-bottom: 1px solid var(--border); }
.search-box input { flex: 1; border: none; outline: none; font-size: 1.05rem; padding: .85rem .5rem; background: transparent; color: var(--text); }
.search-box .close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-light); padding: .5rem .8rem; }
.search-res { max-height: 52vh; overflow-y: auto; padding: .6rem; }
.search-res a { display: block; padding: .65rem .9rem; border-radius: var(--r-sm); }
.search-res a:hover, .search-res a.sel { background: var(--brand-soft); }
.search-res .t { font-weight: 700; color: var(--ink); }
.search-res .s { font-size: .8rem; color: var(--text-light); }
.search-res .empty { padding: 1rem; color: var(--text-light); font-size: .9rem; }

/* ---------- Hjelpere ---------- */
.center { text-align: center; }
.muted { color: var(--text-light); }
.pill { display:inline-block; background: var(--brand-soft); color: var(--brand-d); font-weight: 800; font-size: .78rem; padding: .3rem .8rem; border-radius: var(--r-pill); }

/* ---------- Responsivt ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1.4rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  .nav-menu { position: fixed; inset: 60px 0 auto 0; background: var(--white); flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; padding: 1rem; gap: .2rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 60px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .nav-menu.open { display: flex; }
  .nav-dropdown { width: 100%; }
  .nav-link { padding: .8rem; border-radius: var(--r-sm); }
  .nav-cta { text-align:center; margin-top:.3rem; }
  .dropdown-menu, .dropdown-menu.dropdown-mega, .dropdown-menu.dropdown-simple { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: .3rem 0 .6rem 1rem; min-width: 0; width: 100%; display: block; }
  .nav-dropdown:hover .dropdown-menu { transform: none; }
  .dropdown-col { margin-bottom: .6rem; }
  .nav-toggle { display: block; margin-left: auto; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 2.6rem 0; }
  .hero-inner { padding: 3rem 1.2rem; }
}
