/* ============================================================
   PENSIA DESIGNSYSTEM v2 — "Editorial Private Banking"
   Delt stylesheet for redesign-prototyperne.
   Identitet: papir-cream + dyb grøn (uændret DNA), løftet med
   mørke premium-sektioner, guld-accent, tabulære tal.
   ============================================================ */
/* Selvhostede skrifttyper (Fraunces + Inter) — ingen tredjeparts-kald. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxCFTeO-U.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxCFTeO-U.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxCFTeO-U.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Farver */
  --papir: #faf8f3;
  --papir-2: #f3efe4;
  --hvid: #ffffff;
  --blaek: #1c2622;        /* brødtekst på lys */
  --moerk: #122019;        /* premium mørk flade */
  --moerk-2: #1a2c23;
  --groen: #2d5f4a;
  --groen-dyb: #234d3b;
  --groen-lys: #eaf1ec;
  --guld: #b08d4a;
  --guld-lys: #f4ecdd;
  --linje: #e6e0d1;
  --linje-moerk: rgba(250,248,243,.14);
  --dim: #5d6660;          /* AA på papir */
  --dim-moerk: #aab8ad;    /* AA på mørk */
  --roed: #a8442f;
  --advarsel: #8a6d2f;

  /* Typografi */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;

  /* Geometri */
  --radius: 14px;
  --radius-s: 9px;
  --maxw: 1140px;
  --skygge: 0 1px 2px rgba(28,38,34,.05), 0 12px 32px -12px rgba(28,38,34,.12);
  --skygge-stor: 0 2px 4px rgba(28,38,34,.06), 0 28px 60px -20px rgba(28,38,34,.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--blaek);
  background: var(--papir);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.tal { font-feature-settings: 'tnum' 1, 'lnum' 1; font-variant-numeric: tabular-nums lining-nums; }

a { color: var(--groen); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--groen); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,243,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linje);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px; height: 66px;
}
.logo {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600;
  color: var(--moerk); letter-spacing: -.02em;
}
.logo .prik { color: var(--guld); }
.topnav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.topnav a { color: var(--blaek); font-size: .92rem; font-weight: 500; }
.topnav a:hover { color: var(--groen); text-decoration: none; }
.topnav a.aktiv { color: var(--groen); }

/* ---------- Knapper ---------- */
.knap {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  padding: 12px 22px; min-height: 44px;
  border-radius: 99px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.knap-primaer { background: var(--groen); color: var(--papir); }
.knap-primaer:hover { background: var(--groen-dyb); box-shadow: 0 8px 20px -8px rgba(45,95,74,.5); }
.knap-moerk { background: var(--moerk); color: var(--papir); }
.knap-moerk:hover { background: #0c1812; }
.knap-ghost { background: transparent; color: var(--blaek); border-color: #cfc8b6; }
.knap-ghost:hover { border-color: var(--groen); color: var(--groen); }
.knap-lys { background: var(--papir); color: var(--moerk); }
.knap-lys:hover { background: var(--hvid); }
.knap-lille { padding: 8px 16px; min-height: 38px; font-size: .87rem; }

/* ---------- Kort & flader ---------- */
.kort {
  background: var(--hvid); border: 1px solid var(--linje);
  border-radius: var(--radius); box-shadow: var(--skygge);
}
.kort-pad { padding: 26px 28px; }
.flade-moerk { background: var(--moerk); color: var(--papir); }
.flade-moerk .dim { color: var(--dim-moerk); }
.dim { color: var(--dim); }

/* ---------- Mærker / badges ---------- */
.maerke {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 99px;
}
.maerke-groen { background: var(--groen-lys); color: var(--groen-dyb); }
.maerke-guld { background: var(--guld-lys); color: #7d6230; }
.maerke-moerk { background: rgba(250,248,243,.1); color: var(--dim-moerk); }

/* ---------- Sektionslabel (editorial eyebrow) ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--guld); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--guld); }

/* ---------- Store tal (editorial display) ---------- */
.tal-stor {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.02em;
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.05;
  font-feature-settings: 'tnum' 1;
}
.tal-enhed { font-size: .45em; color: var(--dim); font-family: var(--sans); font-weight: 500; }

/* ---------- Tabeller ---------- */
table.pensia-tabel { width: 100%; border-collapse: collapse; font-size: .93rem; }
.pensia-tabel th, .pensia-tabel td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--linje); }
.pensia-tabel th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.pensia-tabel td.tal, .pensia-tabel th.tal { text-align: right; }

/* ---------- Toggle (flueben/switch til admin) ---------- */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .bane {
  position: absolute; inset: 0; border-radius: 99px; cursor: pointer;
  background: #cfc8b6; transition: background .2s ease;
}
.switch .bane::before {
  content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  border-radius: 50%; background: var(--hvid); transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.switch input:checked + .bane { background: var(--groen); }
.switch input:checked + .bane::before { transform: translateX(18px); }
.switch input:focus-visible + .bane { outline: 2px solid var(--groen); outline-offset: 2px; }
.switch input:disabled + .bane { opacity: .45; cursor: not-allowed; }

/* ---------- Footer ---------- */
.bund {
  background: var(--moerk); color: var(--dim-moerk);
  padding: 56px 0 40px; margin-top: 0; font-size: .9rem;
}
.bund a { color: var(--papir); }
.bund .logo { color: var(--papir); }

/* ---------- Util ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .topnav { display: none; } }
.sektion { padding: 84px 0; }
.center { text-align: center; }
.ikon { width: 22px; height: 22px; flex-shrink: 0; }
