/* onlinebehandling.dk - venteværelsets ro: varm hvid, dyb blågrøn, salvie og en enkelt teglrød tone */
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/atkinson-next.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --bund: #f6f5f0;
  --hvid: #fffefb;
  --salvie: #dfe8e1;
  --salvie-2: #c7d6cb;
  --teal: #1d4e57;
  --teal-dyb: #12353c;
  --tekst-farve: #1f2a2c;
  --daempet: #55625f;
  --tegl: #a8502c;
  --linje: #d5d8cf;
  --serif: "Literata", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --rund: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bund); color: var(--tekst-farve); font-family: var(--sans); font-size: 1.09rem; line-height: 1.65; }
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-dyb); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tegl); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--salvie-2); }
.ramme { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--teal); color: var(--hvid); padding: 0.5rem 0.9rem; z-index: 10; border-radius: 8px; }
.spring:focus { top: 0.75rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; color: var(--teal-dyb); }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); margin: 0 0 1.1rem; font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); margin: 2.3em 0 0.6em; font-weight: 500; }
h3 { font-size: 1.22rem; margin: 1.5em 0 0.4em; }
p { margin: 0 0 1em; }
.indledning { font-size: clamp(1.12rem, 2vw, 1.27rem); line-height: 1.6; max-width: 46ch; color: #34413f; }
.etiket { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tegl); margin: 0 0 1rem; }

.top { background: var(--bund); border-bottom: 1px solid var(--linje); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.6rem; padding-block: 1rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--teal-dyb); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.ordmaerke:hover { color: var(--teal-dyb); }
.maerke { width: 2rem; height: 2rem; color: var(--teal); flex: none; }
.menu { display: flex; flex-wrap: wrap; gap: 0.2rem 0.4rem; }
.menu a { color: #34413f; text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 0.35rem 0.75rem; border-radius: 999px; }
.menu a:hover { background: var(--salvie); color: var(--teal-dyb); }
.menu a[aria-current="page"] { background: var(--teal); color: var(--hvid); }

.knapper { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.knap { display: inline-block; background: var(--teal); color: var(--hvid); text-decoration: none; font-weight: 700; padding: 0.8rem 1.35rem; border-radius: 999px; border: 2px solid var(--teal); line-height: 1.2; }
.knap:hover { background: var(--teal-dyb); border-color: var(--teal-dyb); color: var(--hvid); }
.knap-lys { background: transparent; color: var(--teal); }
.knap-lys:hover { background: var(--salvie); color: var(--teal-dyb); border-color: var(--teal); }
.pil { font-weight: 700; text-decoration: none; }
.pil::after { content: " \2192"; }
.pil:hover { text-decoration: underline; }

.helt { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.helt-ind { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .helt-ind { grid-template-columns: 1.35fr 1fr; gap: 3rem; } }
.helt-fig { display: flex; justify-content: center; }
.telefon-fig { width: min(100%, 22rem); height: auto; }
.telefon-fig .glorie { fill: var(--salvie); }
.telefon-fig .krop { fill: var(--teal-dyb); }
.telefon-fig .skaerm { fill: var(--hvid); }
.telefon-fig .hoejttaler { fill: #3c6a72; }
.telefon-fig .puls { fill: none; stroke: var(--teal); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.telefon-fig .streg { fill: var(--salvie-2); }
.telefon-fig .laas-bg { fill: var(--tegl); }
.telefon-fig .laas-boejle { fill: none; stroke: var(--hvid); stroke-width: 5; }
.telefon-fig .laas-krop { fill: var(--hvid); }
.telefon-fig .laas-hul { fill: var(--tegl); }

.sektion { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.sektion > .ramme > h2:first-child, .to-spalter h2:first-child { margin-top: 0; }
.sektion-intro { max-width: 60ch; color: #34413f; }
.typer { display: grid; gap: 1rem; margin-top: 1.8rem; }
@media (min-width: 720px) { .typer { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; } }
.type { background: var(--hvid); border-radius: var(--rund); padding: 1.4rem 1.5rem 0.6rem; box-shadow: 0 1px 2px rgba(18,53,60,0.06), 0 0 0 1px var(--linje); }
.type h3 { margin-top: 0; }
.sektion-tone { background: var(--salvie); }
.to-spalter { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .to-spalter { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.akut { background: var(--hvid); border-radius: var(--rund); padding: 1.5rem; }
.akut-titel { font-family: var(--serif); font-size: 1.3rem; color: var(--teal-dyb); margin-bottom: 0.8rem; }
.akut dl { margin: 0; display: grid; gap: 0.8rem; }
.akut dl > div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--linje); }
.akut dt { font-weight: 800; color: var(--tegl); font-size: 1.05rem; }
.akut dd { margin: 0; }
@media (max-width: 420px) { .akut dl > div { grid-template-columns: 1fr; gap: 0.1rem; } }

.genveje { display: grid; gap: 1rem; }
@media (min-width: 640px) { .genveje { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .genveje { grid-template-columns: repeat(4, 1fr); } }
.genvej { display: flex; flex-direction: column; gap: 0.45rem; text-decoration: none; color: #34413f; background: var(--hvid); border-radius: var(--rund); padding: 1.3rem 1.3rem 1.4rem; box-shadow: 0 0 0 1px var(--linje); transition: box-shadow 0.15s; }
.genvej:hover { color: #34413f; box-shadow: 0 0 0 2px var(--teal); }
.genvej-titel { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--teal-dyb); }
.genvej-accent { background: var(--teal); color: #d8e6e3; box-shadow: none; }
.genvej-accent .genvej-titel { color: var(--hvid); }
.genvej-accent:hover { color: #d8e6e3; box-shadow: 0 0 0 2px var(--teal-dyb); }

.tekstside { padding: clamp(2rem, 6vw, 4rem) 0 4rem; }
.side-top { max-width: 48rem; margin-bottom: 1.5rem; }
.artikel { max-width: 43rem; }
.artikel > h2:first-child { margin-top: 0.8em; }
.tjek { list-style: none; padding: 0; margin: 0 0 1.2em; }
.tjek li { position: relative; padding: 0 0 0.6rem 1.9rem; }
.tjek li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--salvie-2); }
.tjek li::after { content: ""; position: absolute; left: 0.33rem; top: 0.62em; width: 0.42rem; height: 0.24rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.kasse { background: var(--hvid); border-radius: var(--rund); padding: 1.3rem 1.5rem 0.5rem; margin: 1.6rem 0; box-shadow: 0 0 0 1px var(--linje); }
.kasse-titel { font-weight: 800; color: var(--tegl); margin-bottom: 0.5rem; }
.kasse ul { padding-left: 1.2rem; margin: 0 0 1em; }
.rettigheder { margin: 1.2rem 0; display: grid; gap: 0; }
.rettigheder > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--linje); }
.rettigheder dt { font-family: var(--serif); font-weight: 600; color: var(--teal-dyb); }
.rettigheder dd { margin: 0; }
@media (max-width: 560px) { .rettigheder > div { grid-template-columns: 1fr; gap: 0.2rem; } }
.skridt { padding-left: 1.4rem; }
.skridt li { margin-bottom: 0.6rem; padding-left: 0.3rem; }
.skridt li::marker { color: var(--tegl); font-weight: 800; }
.eksempel { background: var(--salvie); border-radius: var(--rund); padding: 1.2rem 1.4rem 0.4rem; margin: 1.4rem 0; }
.eksempel-titel { font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.4rem; }
.eksempel p:not(.eksempel-titel) { font-family: var(--serif); font-style: normal; }
.videre { margin-top: 2.2rem; }
.note { font-size: 0.98rem; color: var(--daempet); }

/* Tjekliste */
.tjekliste { display: grid; gap: 2rem; margin: 1rem 0 2rem; align-items: start; }
@media (min-width: 960px) { .tjekliste { grid-template-columns: 1.6fr 1fr; } .resultat { position: sticky; top: 1rem; } }
.punkter { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.punkt { background: var(--hvid); border-radius: var(--rund); padding: 1.1rem 1.2rem; box-shadow: 0 0 0 1px var(--linje); }
.punkt.er-ja { box-shadow: 0 0 0 2px var(--teal); }
.punkt.er-nej { box-shadow: 0 0 0 2px var(--tegl); }
.punkt fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.punkt legend { padding: 0; font-weight: 700; display: grid; grid-template-columns: 2rem 1fr; gap: 0.3rem; line-height: 1.45; }
.punkt-nr { font-family: var(--serif); color: var(--tegl); font-weight: 600; }
.svar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 0 2.3rem; }
.svar label { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--bund); cursor: pointer; font-weight: 600; box-shadow: 0 0 0 1px var(--linje); }
.svar label:has(input:checked) { background: var(--teal); color: var(--hvid); box-shadow: none; }
.svar input { accent-color: var(--teal); margin: 0; }
.raad { margin: 0.8rem 0 0 2.3rem; font-size: 0.98rem; color: #6a3a24; }
@media (max-width: 480px) { .svar, .raad { margin-left: 0; } }
.resultat { background: var(--teal); color: #dbe8e5; border-radius: var(--rund); padding: 1.5rem; }
.resultat-titel { color: var(--hvid); margin: 0 0 0.8rem; font-size: 1.7rem; }
.maaler { height: 10px; background: rgba(255,255,255,0.18); border-radius: 999px; overflow: hidden; margin-bottom: 1rem; }
.maaler span { display: block; height: 100%; width: 0; background: var(--salvie); border-radius: 999px; transition: width 0.25s ease-out; }
.resultat-liste { margin: 0; padding-left: 1.1rem; font-size: 0.97rem; }
.resultat-liste li { margin-bottom: 0.5rem; }

.bund { background: var(--teal-dyb); color: #c8d8d4; padding: 2.6rem 0 3rem; font-size: 0.96rem; }
.bund-ind { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .bund-ind { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }
.bund-navn { font-family: var(--serif); color: var(--hvid); font-size: 1.2rem; margin-bottom: 0.4rem; }
.bund-tekst { max-width: 50ch; }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-content: start; }
.bund a { color: var(--hvid); }

@media (prefers-reduced-motion: reduce) { .maaler span, .genvej { transition: none; } }
