/* valutaomregnere.dk - "danske mønter": nikkelgrå grund, flaskegrøn blæk, mønt-guld (aluminiumsbronze) som eneste mættede tone */
@font-face { font-family: "Switzer"; src: url("/fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("/fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #f2f3ef;
  --surface: #e6e9e2;
  --surface-2: #dce0d7;
  --ink: #0d2a1c;
  --muted: #485a50;
  --line: #c6ccc1;
  --gold: #e3bc45;
  --gold-soft: #efd58a;
  --gold-line: #b8952c;
  --bronze: #7a5c10;
  --nikkel: #cfd3cd;
  --nikkel-moerk: #6f7771;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.1875rem, 1.08rem + 0.5vw, 1.4375rem);
  --step-head: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --step-display: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --gutter: clamp(16px, 3vw, 32px);
  --felt-h: 52px;
  --rund: 999px;
  --hjoerne: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Switzer", "Helvetica Neue", Arial, sans-serif; font-size: var(--step-body); line-height: 1.5; letter-spacing: -0.01em; font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased; }
::selection { background: var(--gold); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--gold-line); transition: text-decoration-color .18s, color .18s; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); margin-bottom: 18px; }
h3 { font-size: var(--step-lead); margin-bottom: 12px; }
p { margin: 0 0 1em; max-width: 68ch; }
strong { font-weight: 500; }
small { font-size: var(--step-small); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }

.ramme { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.to { display: grid; gap: 40px; }
@media (min-width: 1000px) { .to { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: start; } }
.kolonne { min-width: 0; }

/* Top */
.top { padding: 20px 0; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.02em; min-height: 44px; }
.logo { width: 34px; height: 34px; flex: none; }
.menu { display: flex; gap: 4px 22px; flex-wrap: wrap; }
.menu a { text-decoration: none; font-size: 1rem; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--ink); }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 8px; }
@media (max-width: 560px) { .menu { gap: 0 16px; width: 100%; } .menu a { font-size: .9375rem; } }
.menu a { white-space: nowrap; }
@media (max-width: 360px) { .menu { gap: 0 10px; flex-wrap: nowrap; } .menu a { font-size: .8125rem; } }

/* Hero */
.hero { padding: clamp(24px, 6vh, 72px) 0 clamp(32px, 4vw, 56px); }
.kort-hero { padding-bottom: clamp(40px, 5vw, 72px); }
.lead { font-size: var(--step-lead); line-height: 1.4; margin: 18px 0 28px; max-width: 34ch; }
.kort-hero .lead { max-width: 46ch; }

/* Omregner */
.omregner { margin: 0; }
.felter { display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); grid-template-areas: "b b b" "f s t"; gap: 14px 10px; align-items: end; }
.felter .beloeb { grid-area: b; }
.felter > .felt:nth-of-type(2) { grid-area: f; }
.felter .byt { grid-area: s; }
.felter > .felt:nth-of-type(3) { grid-area: t; }
.felter.tre { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: none; }
.felter.tre > .felt { grid-area: auto; }
.felter.tre .beloeb input { height: var(--felt-h); font-size: 1.0625rem; }
@media (max-width: 520px) { .felter.tre { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .felter.tre > .felt:first-child { grid-column: 1 / -1; } }
.felt { display: grid; gap: 6px; min-width: 0; }
.felt > span { font-size: var(--step-small); color: var(--muted); }
.felt input, .felt select { width: 100%; height: var(--felt-h); border: 0; border-radius: var(--hjoerne); background: #fff; color: var(--ink); font: inherit; font-size: 1.0625rem; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .14s; font-variant-numeric: tabular-nums; }
.felt input:hover, .felt select:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.felt input:focus-visible, .felt select:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.felt input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #9b2c14; }
.felt.beloeb input { font-size: 1.375rem; height: 60px; }
.felt select { appearance: none; -webkit-appearance: none; padding-right: 34px; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230d2a1c' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.felt input[type="date"] { padding-right: 8px; }

/* Byt-mønten: en hullet mønt, der vender en halv omgang */
.byt { width: 52px; height: var(--felt-h); border: 0; padding: 2px; background: none; cursor: pointer; display: grid; place-items: center; border-radius: var(--rund); }
.byt svg { width: 50px; height: 50px; transition: transform .14s var(--ease); }
.byt .m { fill: var(--nikkel); stroke: var(--nikkel-moerk); stroke-width: 1.4; }
.byt .r { fill: none; stroke: var(--nikkel-moerk); stroke-width: 1; }
.byt .o { fill: none; stroke: var(--nikkel-moerk); stroke-width: 2.2; stroke-dasharray: 3.2 2.2; stroke-linecap: round; }
.byt .p { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.byt .s { fill: var(--ink); }
.byt .h { fill: var(--bg); }
.byt:hover svg { transform: rotate(-20deg); }
.byt:active svg { transform: scale(.92); }
.byt.vendt svg { animation: vend .46s var(--ease); }
@keyframes vend { from { transform: rotateY(0) rotate(0); } to { transform: rotateY(180deg) rotate(180deg); } }

.hurtige { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.hurtig { font: inherit; font-size: .9375rem; min-height: 44px; padding: 0 14px; border-radius: var(--rund); border: 0; background: var(--surface); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; transition: background .14s, transform .14s var(--ease); }
.hurtig:hover { background: var(--surface-2); }
@media (max-width: 400px) { .hurtig { padding: 0 12px; } .hurtige .hurtig:nth-child(4) { display: none; } }
.hurtig:active { transform: scale(.96); }
.fejl { min-height: 1.5em; margin: 8px 0 0; color: #8f2a13; font-size: var(--step-small); }
.fejl:empty { min-height: 0; margin: 0; }

.resultat { background: var(--gold); border-radius: var(--hjoerne); padding: 20px 22px 18px; margin-top: 14px; }
.resultat .tal { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 10px; white-space: nowrap; font-variant-numeric: tabular-nums; overflow: hidden; }
.resultat .tal span { font-size: .55em; letter-spacing: 0; }
.resultat output { font: inherit; }
.kurslinje { font-size: var(--step-small); font-variant-numeric: tabular-nums; margin: 0 0 4px; white-space: pre-wrap; }
.dagslinje { font-size: var(--step-small); margin: 0; }

/* Graf */
.graf { background: var(--surface); border-radius: var(--hjoerne); padding: 20px 20px 16px; }
.graf-hoved { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 10px; }
.graf-hoved h2 { font-size: var(--step-lead); margin: 0; }
.perioder { display: inline-flex; background: var(--surface-2); border-radius: var(--rund); padding: 3px; }
.perioder button { font: inherit; font-size: .9375rem; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--rund); background: none; color: var(--ink); cursor: pointer; transition: background .14s; }
.perioder button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.aflaes { font-variant-numeric: tabular-nums; font-size: .9375rem; min-height: 1.5em; margin: 0 0 6px; }
.graf svg { display: block; width: 100%; height: clamp(200px, 26vw, 300px); touch-action: pan-y; overflow: visible; cursor: crosshair; }
.graf svg .linje { fill: none; stroke: var(--bronze); stroke-width: 2; stroke-linejoin: round; }
.graf svg .flade { fill: var(--gold); opacity: .28; }
.graf svg .akse { stroke: var(--line); stroke-width: 1; }
.graf svg text { font: 13px "Switzer", sans-serif; fill: var(--muted); font-variant-numeric: tabular-nums; }
.graf svg text.mm { fill: var(--ink); }
.graf svg .moent circle { fill: var(--nikkel); stroke: var(--nikkel-moerk); stroke-width: 1.5; }
.graf svg .moent circle.hul { fill: var(--surface); stroke: none; }
.graf-status:empty { display: none; }
.graf-status { font-size: var(--step-small); color: var(--muted); }
.kilde { font-size: var(--step-small); color: var(--muted); margin: 10px 0 0; max-width: none; }

/* Sektioner */
.sektion { padding: clamp(64px, 9vw, 128px) 0; }
.sektion + .sektion:not(.felt-tone) { padding-top: 0; }
.felt-tone { background: var(--surface); }
.felt-tone .kilde, .felt-tone .muted { color: var(--ink); }
.sektion.felt-tone + .sektion { padding-top: clamp(64px, 9vw, 128px); }
.felt-tone a { text-decoration-color: var(--ink); }
.smal-tekst { max-width: 60ch; }
.laese { max-width: 760px; }
.laese h2 { margin-top: 48px; }
.laese h2:first-child { margin-top: 0; }
.pil { font-weight: 500; }
.pil::after { content: ""; display: inline-block; width: .55em; height: .55em; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); margin-left: .45em; vertical-align: .08em; }

/* Rækker med to ender */
.raekker { list-style: none; margin: 8px 0 24px; padding: 0; }
.raekker li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 44px; padding: 7px 0; }
.raekker .navn { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.raekker .kode { font-size: var(--step-small); color: var(--muted); width: 2.6em; flex: none; font-variant-numeric: tabular-nums; }
.raekker .vaerdi { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.raekker .vaerdi small { color: var(--muted); }
.felt-tone .raekker .vaerdi small, .felt-tone .raekker .kode { color: var(--ink); }
@media (max-width: 420px) { .raekker li { min-height: 44px; } .raekker .vaerdi small.op, .raekker .vaerdi small.ned { display: block; } }

/* Billeder */
.foto { margin: 0; }
.foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--hjoerne); background: var(--surface); }
.foto + h3 { margin-top: 1.75rem; }
.billedtekst { font-size: var(--step-small); color: var(--muted); margin-top: 10px; }

/* taste-skill-ignore: kantskyggen i tabelrammen er brugerens faste mønster for tabeller, der kan scrolles sidelæns */
/* Tabeller: én linje pr. celle, sidelæns scroll i rammen, fast første kolonne på mobil */
.tabel-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 12px; border-radius: var(--hjoerne); background-color: #fff;
  background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left center / 24px 100% no-repeat local,
              linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right center / 24px 100% no-repeat local,
              radial-gradient(farthest-side at 0 50%, rgba(13,42,28,.2), transparent) left center / 10px 100% no-repeat scroll,
              radial-gradient(farthest-side at 100% 50%, rgba(13,42,28,.2), transparent) right center / 10px 100% no-repeat scroll, #fff; }
table.data { border-collapse: collapse; width: auto; min-width: 100%; font-size: 1rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 10px 16px; text-align: left; white-space: nowrap; }
table.data tbody tr:nth-child(even) > * { background: #f6f7f3; }
table.data thead th { font-weight: 500; color: var(--muted); font-size: var(--step-small); background: var(--surface); }
table.data tbody th { font-weight: 400; }
table.data .tal { text-align: right; }
/* Sorterbare tabeller: hele overskriften er en knap; pilen viser retningen */
table.sorterbar th[aria-sort] { padding: 0; }
table.sorterbar .sorter { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 10px 16px; cursor: pointer; font: inherit; color: inherit; }
table.sorterbar th.tal .sorter { justify-content: flex-end; }
table.sorterbar .sorter:hover { color: var(--ink); }
table.sorterbar .sorter:focus-visible { outline: 2px solid var(--gold-line); outline-offset: -2px; }
table.sorterbar .sorterpil { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .3; }
table.sorterbar th[aria-sort="ascending"] .sorterpil { border-top: 0; border-bottom: 5px solid var(--ink); opacity: 1; }
table.sorterbar th[aria-sort="descending"] .sorterpil { border-top-color: var(--ink); opacity: 1; }
table.sorterbar th[aria-sort="ascending"], table.sorterbar th[aria-sort="descending"] { color: var(--ink); }
table.data tbody tr:hover > * { background: #f8f6ec; }
@media (max-width: 760px) {
  .tabel-wrap table.data tbody th, .tabel-wrap table.data tbody tr:nth-child(even) > th, .tabel-wrap table.data thead th:first-child { position: sticky; left: 0; z-index: 1; background: #eef0eb; }
  .tabel-wrap table.data thead th:first-child { background: var(--surface); }
  table.data th, table.data td { padding: 9px 12px; font-size: .9375rem; }
}
.tabeller { gap: 24px; }
@media (min-width: 700px) { .tabeller { grid-template-columns: 1fr 1fr; } }
.felt-tone .tabel-wrap { box-shadow: none; }
/* Lange valutanavne i første kolonne må ombryde på smalle skærme (højst ca. 45 % af bredden) */
@media (max-width: 640px) { .lang-foerste table.data tbody th, .lang-foerste table.data thead th:first-child { white-space: normal; min-width: 7.5em; max-width: 42vw; } }

/* Spørgsmål som læsetekst */
.faq { padding-top: clamp(64px, 9vw, 128px) !important; }
.faq-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: 3fr 9fr; gap: 56px; } }
.faq-tekst { columns: 2 34ch; column-gap: 56px; }
.faq-tekst p { break-inside: avoid; margin: 0 0 20px; font-size: 1.0625rem; line-height: 1.55; }

/* Sidefod: én stille linje */
.bund { padding: clamp(56px, 10vh, 112px) 0 28px; }
/* Sidefod: om-tekst + tre linkgrupper, bundlinje under (desktop 4 kolonner, tablet 2, mobil 1) */
.bund-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 3fr); gap: 32px 48px; font-size: .9375rem; color: var(--muted); }
.bund-inner p { margin: 0; }
.bund-om { max-width: 36ch; }
.bund-brand { margin-bottom: 8px; }
.bund-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
.bund-gruppe h2 { font-size: var(--step-small); font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.bund-gruppe ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bund-inner a, .bund-linje a { color: var(--ink); }
.bund-linje { margin-top: 40px; font-size: .9375rem; color: var(--muted); }
.bund-linje p { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); max-width: none; }
@media (max-width: 860px) { .bund-inner { grid-template-columns: 1fr; gap: 28px; } .bund-om { max-width: none; } }
@media (max-width: 560px) { .bund-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bund-gruppe ul { gap: 0; } .bund-gruppe a, .bund-linje a { display: inline-flex; align-items: center; min-height: 44px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Korte fakta (penge og betaling) og lister i læsetekst */
.fakta { margin: 0 0 24px; }
.fakta div { display: grid; grid-template-columns: minmax(7.5em, 34%) 1fr; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.fakta div:last-child { border-bottom: 1px solid var(--line); }
.fakta dt { color: var(--muted); font-size: var(--step-small); padding-top: .15em; }
.fakta dd { margin: 0; font-variant-numeric: tabular-nums; }
.punkter { margin: 0 0 1em; padding-left: 1.2em; max-width: 68ch; }
.punkter li { margin-bottom: .5em; }
.landeliste { list-style: none; margin: 0 0 1em; padding: 0; columns: 3 8.5em; column-gap: 24px; max-width: 68ch; }
.landeliste li { padding: 3px 0; break-inside: avoid; }
kbd { font: inherit; font-size: .875em; padding: 1px 7px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--line); white-space: nowrap; }
.felt-tone kbd { background: var(--bg); }
.kolonne h2:not(:first-child) { margin-top: 40px; }
.genveje { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .genveje { grid-template-columns: 1fr 1fr; } }
.genveje li { display: flex; gap: 16px; align-items: flex-start; background: var(--bg); border-radius: var(--hjoerne); padding: 14px 16px; line-height: 1.9; }
.tegn-stor { font-size: 2rem; line-height: 1; width: 1.2em; flex: none; text-align: center; padding-top: .2em; }
