/* sikkersex.dk - rolig sundhedsoplysning: dyb petrol, varm koral, lys sand. Bricolage Grotesque (overskrifter), Atkinson Hyperlegible Next (tekst). */
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-grotesque-vf.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("/assets/fonts/atkinson-next.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --bg: #fbf7f2;
  --sand: #f3eadf;
  --hvid: #ffffff;
  --blaek: #15302f;
  --daemp: #4f6463;
  --petrol: #0e4a4c;
  --petrol2: #1d6a6a;
  --koral: #ef7b5f;
  --koral-tekst: #a8402a;
  --blush: #f8e2d8;
  --linje: #e1d5c8;
  --display: "Bricolage", "Helvetica Neue", Arial, sans-serif;
  --tekst: "Atkinson Next", "Helvetica Neue", Arial, sans-serif;
  --maal: 70rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--blaek); font-family: var(--tekst); font-size: 1.0625rem; line-height: 1.68; overflow-x: hidden; }
svg { max-width: 100%; }
a { color: var(--petrol2); text-underline-offset: 0.18em; }
a:hover { color: var(--petrol); }
:focus-visible { outline: 3px solid var(--koral); outline-offset: 2px; }
.spring { position: absolute; left: -999px; top: 0; background: var(--petrol); color: var(--hvid); padding: 0.5rem 1rem; z-index: 10; }
.spring:focus { left: 1rem; }
.ramme { width: 100%; max-width: var(--maal); margin: 0 auto; padding: 0 1.25rem; }

.top { background: var(--petrol); color: var(--hvid); }
.top-ind { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; flex-wrap: wrap; }
.ordmaerke { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--hvid); font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1; }
.ordmaerke b { font-weight: 800; color: #ffb59f; }
.ordmaerke:hover { color: var(--hvid); }
.logo { width: 2.3rem; height: auto; }
.logo .l1 { fill: none; stroke: #f5efe7; stroke-width: 2.6; }
.logo .l2 { fill: none; stroke: var(--koral); stroke-width: 2.6; }
.menu { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; }
.menu a { color: #cfe2df; text-decoration: none; font-size: 0.95rem; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--hvid); border-bottom-color: var(--koral); }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.02em; color: var(--petrol); }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); font-weight: 650; margin-top: 1.6em; }
h3 { font-size: 1.3rem; font-weight: 650; }
p { margin: 0 0 1em; }
.overline { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--koral-tekst); margin-bottom: 0.8rem; }
.indledning { font-size: 1.2rem; max-width: 37em; }
.note { background: var(--sand); border-radius: 12px; padding: 1.1rem 1.3rem; font-size: 0.98rem; max-width: 46rem; }
.lille { font-size: 0.92rem; color: var(--daemp); }

.knapper { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.knap { display: inline-block; background: var(--petrol); color: var(--hvid); text-decoration: none; font: 700 1rem var(--tekst); padding: 0.8rem 1.35rem; border-radius: 12px; border: 0; cursor: pointer; }
.knap:hover { background: var(--petrol2); color: var(--hvid); }
.knap-lys { background: var(--hvid); color: var(--petrol); box-shadow: inset 0 0 0 1.5px var(--petrol); }
.knap-lys:hover { background: var(--sand); color: var(--petrol); }
.pil { font-weight: 700; text-decoration: none; }
.pil::after { content: " \2192"; }

/* Forside */
.helt { padding: 4rem 0 3.5rem; background: linear-gradient(180deg, var(--blush) 0%, var(--bg) 100%); }
.helt-ind { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 3rem; align-items: center; }
.figur { display: block; width: min(100%, 22rem); height: auto; margin: 0 auto; }
.f1 { fill: var(--petrol); opacity: 0.92; }
.f2 { fill: var(--koral); opacity: 0.85; mix-blend-mode: multiply; }
.f3 { fill: var(--bg); }
.sektion { padding: 3.25rem 0; }
.sektion h2:first-child { margin-top: 0; }
.sektion-tone { background: var(--sand); }
.tre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.kort { background: var(--hvid); border: 1px solid var(--linje); border-radius: 16px; padding: 1.5rem; }
.kort p:last-child { margin-bottom: 0; }
.to-spalter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.to-spalter h2 { margin-top: 0; }
.punkter { padding-left: 1.2rem; }
.punkter li { margin-bottom: 0.8rem; }
.punkter li::marker, .artikel li::marker { color: var(--koral); }

/* Tekstsider */
.tekstside { padding: 3.25rem 0 4rem; }
.side-top { max-width: 46rem; margin-bottom: 2rem; }
.artikel { max-width: 44rem; }
.artikel ul { padding-left: 1.2rem; }
.artikel li { margin-bottom: 0.55rem; }
.liste dt { font-family: var(--display); font-weight: 650; font-size: 1.15rem; color: var(--petrol); margin-top: 1rem; }
.liste dd { margin: 0.2rem 0 0; }
.tabel-wrap { overflow-x: auto; margin: 0 0 0.75rem; border: 1px solid var(--linje); border-radius: 12px; background: var(--hvid); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--linje); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
th { background: var(--sand); font-weight: 700; color: var(--petrol); }
th:first-child, td:first-child { position: sticky; left: 0; background: var(--hvid); }
th:first-child { background: var(--sand); }
td.ja { color: var(--petrol2); font-weight: 700; }
td.nej { color: var(--koral-tekst); font-weight: 700; }

/* Quiz */
.quiz { max-width: 46rem; }
.stilling { font-family: var(--display); font-weight: 650; font-size: 1.2rem; color: var(--petrol); }
.paastande { list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: p; }
.paastand { counter-increment: p; background: var(--hvid); border: 1px solid var(--linje); border-radius: 16px; padding: 1.2rem 1.3rem; margin-bottom: 0.9rem; }
.p-tekst { font-weight: 700; font-size: 1.08rem; margin-bottom: 0.8rem; }
.p-tekst::before { content: counter(p) ". "; color: var(--koral-tekst); }
.p-knapper { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.p-knapper button { font: 700 1rem var(--tekst); padding: 0.6rem 1.3rem; border-radius: 10px; border: 1.5px solid var(--petrol); background: var(--hvid); color: var(--petrol); cursor: pointer; min-width: 6.5rem; }
.p-knapper button:hover:not(:disabled) { background: var(--sand); }
.p-knapper button:disabled { cursor: default; opacity: 0.55; }
.p-knapper button.valgt { opacity: 1; background: var(--petrol); color: var(--hvid); }
.paastand.forkert .p-knapper button.valgt { background: var(--koral-tekst); border-color: var(--koral-tekst); }
.p-forkl { margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--linje); }
.paastand.rigtigt .p-forkl strong { color: var(--petrol2); }
.paastand.forkert .p-forkl strong { color: var(--koral-tekst); }

.bund { background: var(--petrol); color: #cfe2df; padding: 2rem 0; margin-top: 2rem; }
.bund-ind { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.bund-navn { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--hvid); margin: 0; }
.bund-navn span { display: block; font-family: var(--tekst); font-weight: 400; font-size: 0.88rem; color: #cfe2df; margin-top: 0.2rem; }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.bund nav a { color: #cfe2df; text-decoration: none; font-size: 0.92rem; }
.bund nav a:hover { color: var(--hvid); }

@media (max-width: 860px) {
  .helt-ind, .to-spalter { grid-template-columns: 1fr; gap: 2rem; }
  .helt-figur { order: -1; }
  .figur { width: min(60vw, 13rem); }
  .tre { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .helt { padding-top: 2rem; }
  .top-ind { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .menu { gap: 0.2rem 1rem; }
}
