/* studierabatter.dk - "prisskiltet": varmt papir, blæk og en tomatrød skiltefarve */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-vf.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/fonts/work-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --papir: #f5f1e8;
  --papir-2: #ebe4d4;
  --blaek: #1c2230;
  --blaek-2: #4a5263;
  --skilt: #c8432a;
  --skilt-mork: #a3341f;
  --mynte: #cfe3d4;
  --linje: #d8cfbb;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --tekst: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mal: 68ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papir); color: var(--blaek); font-family: var(--tekst); font-size: 1.0625rem; line-height: 1.65; }
img, svg { max-width: 100%; }
a { color: var(--skilt-mork); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--skilt); outline-offset: 3px; }
.ramme { width: min(1120px, 100% - 32px); margin-inline: auto; }
.spring { position: absolute; left: -9999px; }
.spring:focus { left: 16px; top: 12px; background: var(--blaek); color: var(--papir); padding: 8px 12px; z-index: 10; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.4em; }
p, li { max-width: var(--mal); }
.indledning { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--blaek-2); line-height: 1.55; }

/* Sidehoved */
.top { border-bottom: 1px solid var(--linje); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 14px 0; }
.ordmaerke { display: inline-flex; align-items: center; gap: 10px; color: var(--blaek); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.ordmaerke b { color: var(--skilt); font-weight: 700; }
.skilt { color: var(--skilt); }
.skilt .h { fill: var(--papir); }
.skilt .s { stroke: var(--papir); }
.skilt-lille { width: 40px; height: 25px; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.menu a { color: var(--blaek); text-decoration: none; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--skilt); }

/* Forsidens top */
.helt { padding: clamp(40px, 8vw, 96px) 0 clamp(32px, 6vw, 72px); }
.helt-ind { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.helt h1 em { font-style: normal; color: var(--skilt); }
.helt-skilt { justify-self: center; width: min(340px, 100%); }
.helt-skilt svg { display: block; width: 100%; height: auto; }

.knapper { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.knap { display: inline-block; background: var(--blaek); color: var(--papir); text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 999px; }
.knap:hover { background: var(--skilt-mork); }
.knap-lys { background: transparent; color: var(--blaek); box-shadow: inset 0 0 0 1.5px var(--blaek); }
.knap-lys:hover { background: var(--blaek); color: var(--papir); }

/* Sektioner */
.sektion { padding: clamp(36px, 6vw, 72px) 0; border-top: 1px solid var(--linje); }
.sektion h2:first-child { margin-top: 0; }
.tre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: tre; }
.tre > div { counter-increment: tre; }
.tre > div::before { content: counter(tre, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--skilt); line-height: 1; margin-bottom: 10px; }
.tre h3 { margin-top: 0; }
.tre p { margin: 0; }

.genveje { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.genvej { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; background: var(--papir-2); border-radius: 14px; color: var(--blaek); text-decoration: none; }
.genvej:hover { background: var(--mynte); }
.genvej-titel { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.genvej span:last-child { color: var(--blaek-2); font-size: .97rem; }

.citatlinje { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; max-width: 30ch; margin: 0; }

/* Tekstsider */
.tekstside { padding: clamp(32px, 6vw, 64px) 0 72px; }
.side-top { padding-bottom: 24px; border-bottom: 1px solid var(--linje); margin-bottom: 8px; }
.artikel { max-width: 760px; }
.artikel ul, .artikel ol { padding-left: 1.3em; }
.artikel li { margin-bottom: .45em; }
.notat { background: var(--mynte); padding: 18px 22px; border-radius: 12px; margin: 28px 0; }
.notat p { margin: 0; }
.punkter { padding-left: 1.2em; }
.punkter li { margin-bottom: .7em; }

/* Beregner og tjekliste */
.vaerktoej { background: #fffdf8; border: 1px solid var(--linje); border-radius: 18px; padding: clamp(18px, 3vw, 32px); margin: 28px 0; }
.felter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.felter fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.felter legend { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; }
.felt { display: grid; grid-template-columns: minmax(0, 1fr) 128px; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--linje); }
.felt label { font-size: .98rem; }
.felt input { width: 100%; font: inherit; font-variant-numeric: tabular-nums; text-align: right; padding: 7px 10px; border: 1px solid #bfb49c; border-radius: 8px; background: #fff; color: var(--blaek); }
.resultat { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tal { background: var(--papir-2); border-radius: 12px; padding: 14px 16px; }
.tal span { display: block; font-size: .9rem; color: var(--blaek-2); }
.tal strong { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tal.minus strong { color: var(--skilt-mork); }
.lille { font-size: .92rem; color: var(--blaek-2); }

.tjek { list-style: none; padding: 0; margin: 0; }
.tjek li { max-width: none; border-bottom: 1px dashed var(--linje); }
.tjek label { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 12px 0; cursor: pointer; }
.tjek input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--skilt); }
.tjek strong { display: block; }
.tjek span span { color: var(--blaek-2); font-size: .97rem; }
.status { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }

/* Sidefod */
.bund { background: var(--blaek); color: #d9dbe2; padding: 40px 0 48px; margin-top: 40px; }
.bund-ind { display: grid; gap: 10px; }
.bund-navn { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--papir); margin: 0; }
.bund-tekst { margin: 0 0 8px; }
.bund nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.bund a { color: #f3d9cf; }

@media (max-width: 860px) {
  .helt-ind { grid-template-columns: 1fr; gap: 28px; }
  .helt-skilt { width: min(220px, 70%); justify-self: start; }
  .tre { grid-template-columns: 1fr; gap: 28px; }
  .genveje { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .felter { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .genveje { grid-template-columns: 1fr; }
  .resultat { grid-template-columns: 1fr; }
  .felt { grid-template-columns: minmax(0, 1fr) 108px; }
  .top-ind { padding: 12px 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
