/* nummer1.dk - avispapir, sort tryk og ét rødt tal */
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-vf.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-vf.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --papir: #f6f3ec;
  --papir-2: #ece7dc;
  --hvid: #fffdf8;
  --sort: #141414;
  --sort-2: #2e2d2a;
  --daempet: #5e5b55;
  --linje: #d6d0c3;
  --roed: #d92b1c;
  --roed-dyb: #a81d11;
  --display: "Newsreader", Georgia, serif;
  --tekst: "Public Sans", system-ui, sans-serif;
  --maal: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papir); color: var(--sort); font-family: var(--tekst); font-size: 1.05rem; line-height: 1.62; }
img, svg { max-width: 100%; }
a { color: var(--roed-dyb); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--roed); outline-offset: 2px; }
.ramme { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.skjult { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--sort); color: #fff; padding: 0.5rem 0.9rem; z-index: 10; }
.spring:focus { top: 0.75rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.5vw, 5.2rem); margin: 0 0 1rem; font-weight: 500; }
h1 em, h2 em { font-style: italic; color: var(--roed); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 2em 0 0.45em; }
h3 { font-size: 1.35rem; margin: 1.4em 0 0.3em; }
p { margin: 0 0 1em; }
.indledning { font-size: clamp(1.1rem, 2vw, 1.28rem); line-height: 1.5; max-width: 48ch; color: var(--sort-2); }
.rubrik { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem; }

/* Top */
.top { border-bottom: 2px solid var(--sort); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1.5rem; padding-block: 0.85rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--sort); text-decoration: none; font-family: var(--display); font-size: 1.55rem; font-weight: 600; letter-spacing: -0.02em; }
.maerke-tal { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--roed); color: #fff; font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.menu { display: flex; flex-wrap: wrap; gap: 0.1rem 1.2rem; }
.menu a { color: var(--sort-2); text-decoration: none; font-weight: 600; font-size: 0.96rem; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--sort); border-bottom-color: var(--linje); }
.menu a[aria-current="page"] { color: var(--sort); border-bottom-color: var(--roed); }

/* Forside og værktøj */
.helt { padding: clamp(2.5rem, 7vw, 4.5rem) 0 1.5rem; }
.helt-ind { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 900px) { .helt-ind { grid-template-columns: 1fr auto; } }
.stort-tal { font-family: var(--display); font-weight: 700; font-size: clamp(8rem, 24vw, 16rem); line-height: 0.8; color: var(--roed); margin: 0; letter-spacing: -0.04em; }

.vaerktoej { display: grid; gap: 1.5rem; padding-bottom: 3rem; }
@media (min-width: 900px) { .vaerktoej { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.panel { background: var(--hvid); border: 1px solid var(--linje); padding: clamp(1rem, 3vw, 1.5rem); }
.panel h2 { margin-top: 0; font-size: 1.5rem; }
.felt { display: grid; gap: 0.35rem; font-weight: 650; font-size: 0.95rem; }
.felt small { font-weight: 400; color: var(--daempet); }
textarea { font: inherit; width: 100%; min-height: 11rem; padding: 0.6rem 0.75rem; border: 1px solid #b7af9f; background: #fff; color: var(--sort); line-height: 1.5; resize: vertical; }
.knapper { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.knap { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: 0.5rem 1.15rem; border: 2px solid var(--sort); background: var(--sort); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.knap:hover { background: var(--sort-2); color: #fff; }
.knap-lys { background: transparent; color: var(--sort); }
.knap-lys:hover { background: var(--papir-2); color: var(--sort); }

.duel-tael { font-size: 0.9rem; color: var(--daempet); margin-bottom: 0.4rem; }
.bar { height: 6px; background: var(--papir-2); margin-bottom: 1.2rem; }
.bar span { display: block; height: 100%; background: var(--roed); width: 0; transition: width 0.2s ease; }
.duel { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .duel { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.duel button.valg { font-family: var(--display); font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 500; line-height: 1.2; text-align: left; padding: 1.1rem 1.15rem; min-height: 6rem; background: var(--papir); border: 2px solid var(--sort); color: var(--sort); cursor: pointer; overflow-wrap: anywhere; }
.duel button.valg:hover { background: var(--sort); color: #fff; }
.duel .eller { align-self: center; justify-self: center; font-family: var(--display); font-style: italic; color: var(--daempet); }
.resultat-liste { list-style: none; margin: 0; padding: 0; counter-reset: plads; }
.resultat-liste li { counter-increment: plads; display: grid; grid-template-columns: 2.6rem 1fr auto; gap: 0.75rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--linje); }
.resultat-liste li::before { content: counter(plads); font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--daempet); text-align: right; }
.resultat-liste li:first-child::before { color: var(--roed); font-size: 2.3rem; }
.resultat-liste li:first-child .navn { font-family: var(--display); font-size: 1.45rem; font-weight: 600; }
.resultat-liste .point { font-size: 0.88rem; color: var(--daempet); white-space: nowrap; }
.besked { background: var(--papir-2); padding: 0.75rem 1rem; }

/* Indhold */
.sektion { padding: 0.5rem 0 3rem; }
.tre-spalter { display: grid; gap: 0 2.5rem; border-top: 2px solid var(--sort); }
@media (min-width: 860px) { .tre-spalter { grid-template-columns: repeat(3, 1fr); } }
.tre-spalter h2 { font-size: 1.45rem; margin-top: 1.2em; }
.pil { font-weight: 700; text-decoration: none; }
.pil::after { content: " \2192"; }
.pil:hover { text-decoration: underline; }
.tekstside { padding: clamp(2.5rem, 6vw, 4rem) 0 4rem; }
.side-top { max-width: 52rem; margin-bottom: 1.5rem; }
.artikel { max-width: var(--maal); }
.artikel ul, .artikel ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.artikel li { margin-bottom: 0.45em; }
.artikel li::marker { color: var(--roed); }
.boks { background: var(--hvid); border: 1px solid var(--linje); padding: 1.15rem 1.3rem; margin: 1.5rem 0; }
.boks h3 { margin-top: 0; }
.boks > :last-child { margin-bottom: 0; }
figure { margin: 1.6rem 0; }
figcaption { font-size: 0.9rem; color: var(--daempet); margin-top: 0.5rem; }
.matrix { display: block; width: 100%; max-width: 34rem; height: auto; font-family: var(--tekst); }
.tabel-ramme { overflow-x: auto; margin: 1rem 0 1.5rem; }
table.enkel { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
table.enkel th, table.enkel td { text-align: left; padding: 0.55rem 0.9rem 0.55rem 0; border-bottom: 1px solid var(--linje); white-space: nowrap; }
table.enkel thead th { border-bottom: 2px solid var(--sort); }
table.enkel tr.vinder td { font-weight: 700; }

/* Bund */
.bund { border-top: 2px solid var(--sort); padding: 2rem 0 2.5rem; margin-top: 2rem; }
.bund-ind { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: baseline; }
.bund-navn { font-family: var(--display); font-size: 1.25rem; font-weight: 600; margin: 0; }
.bund-navn span { display: block; font-family: var(--tekst); font-weight: 400; font-size: 0.92rem; color: var(--daempet); }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }
.bund nav a { color: var(--sort); text-decoration: none; font-size: 0.95rem; padding-block: 0.25rem; }
.bund nav a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .bar span { transition: none; } }
@media (max-width: 899px) { .stort-tal { display: none; } }
