/* findkøreskole.dk - asfalt, vejstriber og skilteblå */
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --asfalt: #2a2c2e;
  --asfalt-2: #36393c;
  --asfalt-3: #4a4e52;
  --stribe: #f4f3ee;
  --beton: #ecebe5;
  --beton-2: #e0dfd7;
  --blaa: #0b5aa6;
  --blaa-dyb: #08467f;
  --gul: #f2c230;
  --tekstfarve: #1c1e20;
  --graa: #5b5f63;
  --linje: #cfcdc4;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --tekst: "Barlow", system-ui, sans-serif;
  --maal: 66ch;
  --rund: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--beton); color: var(--tekstfarve); font-family: var(--tekst); font-size: 1.09rem; line-height: 1.6; }
::selection { background: var(--gul); color: var(--asfalt); }
svg { max-width: 100%; }
a { color: var(--blaa); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blaa-dyb); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gul); outline-offset: 2px; box-shadow: 0 0 0 5px var(--asfalt); }

.ramme { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.spring { position: absolute; left: 1rem; top: -4rem; background: var(--gul); color: var(--asfalt); padding: .5rem .9rem; font-weight: 600; z-index: 10; }
.spring:focus { top: .75rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; color: var(--asfalt); }
h1 { font-size: clamp(2.6rem, 7.5vw, 4.8rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.4rem); margin: 2.2em 0 .5em; }
h3 { font-size: 1.4rem; margin: 1.4em 0 .3em; }
p { margin: 0 0 1em; }
.indledning { font-size: clamp(1.12rem, 2.1vw, 1.27rem); line-height: 1.5; max-width: 46ch; }
.overtekst { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blaa); margin: 0 0 .7rem; }

/* Top */
.top { background: var(--asfalt); color: var(--stribe); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding-block: .85rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: .6rem; color: var(--stribe); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.ordmaerke b { font-weight: 600; color: var(--gul); }
.ordmaerke:hover { color: #fff; }
.skilt { display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--blaa); color: #fff; border-radius: 4px; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--blaa); font-size: 1.35rem; }
.menu { display: flex; flex-wrap: wrap; gap: .1rem 1.15rem; }
.menu a { color: #cfd1d3; text-decoration: none; font-weight: 600; font-size: .98rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.menu a:hover { color: #fff; border-bottom-color: var(--asfalt-3); }
.menu a[aria-current="page"] { color: #fff; border-bottom-color: var(--gul); }

/* Knapper */
.knapper { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.knap { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.4rem; background: var(--blaa); color: #fff; border: 2px solid var(--blaa); border-radius: var(--rund); font: 600 1.05rem/1 var(--tekst); text-decoration: none; cursor: pointer; transition: background-color .15s ease-out; }
.knap:hover { background: var(--blaa-dyb); border-color: var(--blaa-dyb); color: #fff; text-decoration: none; }
.knap-lys { background: transparent; color: inherit; border-color: currentColor; }
.knap-lys:hover { background: rgba(255,255,255,.08); color: inherit; border-color: currentColor; }
.tekstside .knap-lys { color: var(--asfalt); }
.tekstside .knap-lys:hover { background: var(--beton-2); color: var(--asfalt); }

/* Forside: vej */
.helt { position: relative; background: var(--asfalt-2); color: var(--stribe); overflow: hidden; }
.vej { position: absolute; top: 0; bottom: 0; right: 12%; width: 9rem; background: var(--asfalt); }
.vej::before, .vej::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; background: var(--stribe); opacity: .75; }
.vej::before { left: .6rem; }
.vej::after { right: .6rem; }
.vej span { position: absolute; top: 0; bottom: 0; left: 50%; width: 6px; margin-left: -3px; background: repeating-linear-gradient(to bottom, var(--stribe) 0 2.6rem, transparent 2.6rem 4.4rem); }
@media (max-width: 899px) { .vej { display: none; } }
.helt-ind { position: relative; padding-block: clamp(3rem, 9vw, 6.5rem); }
.helt h1 { color: #fff; max-width: 13ch; }
.helt .indledning { color: #dadcdc; }
.helt .overtekst { color: var(--gul); }
.helt .knap-lys { color: var(--stribe); }

.sektion { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.sektion > .ramme > h2:first-child, .to-spalter h2:first-child { margin-top: 0; }
.rute { list-style: none; margin: 1.6rem 0 1.4rem; padding: 0; display: grid; gap: 0; position: relative; }
.rute::before { content: ""; position: absolute; left: 1.25rem; top: .5rem; bottom: .5rem; width: 4px; margin-left: -2px; background: repeating-linear-gradient(to bottom, var(--asfalt) 0 14px, transparent 14px 24px); }
.rute li { position: relative; display: grid; align-content: start; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding-bottom: 1.1rem; }
.rute h3 { margin: .25rem 0 .15rem; }
.rute p { margin: 0; color: var(--graa); }
.stop { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--blaa); color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.35rem; box-shadow: 0 0 0 4px var(--beton); z-index: 1; }
@media (min-width: 900px) {
  .rute { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
  .rute::before { left: 0; right: 0; top: 1.25rem; bottom: auto; width: auto; height: 4px; margin: -2px 0 0; background: repeating-linear-gradient(to right, var(--asfalt) 0 14px, transparent 14px 24px); }
  .rute li { grid-template-columns: 1fr; gap: .6rem; }
}
.pil { font-weight: 600; text-decoration: none; }
.pil::after { content: " \2192"; }
.pil:hover { text-decoration: underline; }
.pil-lys { color: var(--gul); }
.pil-lys:hover { color: #ffe08a; }

.sektion-asfalt { background: var(--asfalt); color: #dadcdc; }
.sektion-asfalt h2 { color: #fff; }
.to-spalter { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 880px) { .to-spalter { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.spoerg { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1.2rem; }
.spoerg li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; padding: .7rem 0; border-top: 1px dashed var(--asfalt-3); }
.spoerg li::before { content: counter(s); font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.1; color: var(--gul); }
.infoskilt { background: var(--blaa); color: #eaf2fb; padding: 1.5rem 1.5rem .6rem; border-radius: 8px; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--blaa); }
.infoskilt-titel { font-family: var(--display); font-weight: 600; font-size: 1.6rem; text-transform: uppercase; color: #fff; line-height: 1.05; margin-bottom: .6rem; }

.genveje { display: grid; gap: 1rem; }
@media (min-width: 820px) { .genveje { grid-template-columns: repeat(3, 1fr); } }
.genvej { display: flex; flex-direction: column; gap: .4rem; padding: 1.4rem 1.4rem 1.5rem; background: #fbfaf6; border: 1px solid var(--linje); border-radius: var(--rund); color: var(--graa); text-decoration: none; transition: transform .15s ease-out, border-color .15s ease-out; }
.genvej:hover { transform: translateY(-2px); border-color: var(--asfalt-3); color: var(--graa); text-decoration: none; }
.genvej-titel { font-family: var(--display); font-weight: 600; font-size: 1.55rem; text-transform: uppercase; color: var(--asfalt); line-height: 1.05; }
.genvej-blaa { background: var(--blaa); border-color: var(--blaa); color: #dce8f6; }
.genvej-blaa .genvej-titel { color: #fff; }
.genvej-blaa:hover { border-color: var(--blaa-dyb); color: #fff; }

/* Tekstsider */
.tekstside { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.side-top { max-width: 48rem; padding-bottom: 1.6rem; margin-bottom: 1.8rem; border-bottom: 4px dashed var(--linje); }
.artikel { max-width: var(--maal); }
.artikel > h2:first-child { margin-top: 0; }
.artikel ul, .artikel ol { padding-left: 1.3rem; }
.artikel li { margin-bottom: .5rem; }
.tjekpunkter { list-style: none; padding: 0 !important; }
.tjekpunkter li { position: relative; padding-left: 2rem; }
.tjekpunkter li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.2rem; height: 1.2rem; border-radius: 3px; background: var(--blaa); box-shadow: inset 0 0 0 2px #fff; }
.note { font-size: .96rem; color: var(--graa); background: var(--beton-2); padding: .9rem 1.1rem; border-radius: var(--rund); }

/* Tjekliste */
.tjek-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .tjek-layout { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.liste h2 { margin-top: 0; }
.fremdrift { height: .9rem; background: var(--asfalt); border-radius: 999px; overflow: hidden; position: relative; }
.fremdrift span { display: block; height: 100%; width: 0; background: var(--gul); transition: width .25s ease-out; }
.fremdrift-tekst { font-weight: 600; color: var(--graa); margin: .5rem 0 1rem; }
.flueben { list-style: none; padding: 0; margin: 0; }
.flueben li { margin-bottom: .45rem; }
.flueben label { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .9rem; background: #fbfaf6; border: 1px solid var(--linje); border-radius: var(--rund); cursor: pointer; transition: background-color .12s ease-out; }
.flueben input { width: 1.3rem; height: 1.3rem; margin: .1rem 0 0; flex: none; accent-color: var(--blaa); }
.flueben label:has(input:checked) { background: #e3edf8; border-color: #9dbbe0; }
.flueben label:has(input:checked) span { color: var(--graa); text-decoration: line-through; text-decoration-color: rgba(11,90,166,.5); }
.liste-spoerg .flueben label:has(input:checked) span { text-decoration: none; }

/* Bund */
.bund { background: var(--asfalt); color: #bfc2c4; padding: 0 0 2.2rem; }
.vejstriber { height: 6px; background: repeating-linear-gradient(to right, var(--stribe) 0 3rem, transparent 3rem 5rem); opacity: .7; margin-bottom: 2.4rem; }
.bund-ind { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .bund-ind { grid-template-columns: 1fr auto; } }
.bund-navn { font-family: var(--display); font-weight: 600; font-size: 1.45rem; text-transform: uppercase; color: #fff; margin: 0 0 .3rem; }
.bund-tekst { max-width: 50ch; font-size: .96rem; margin: 0; }
.bund nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-content: start; }
.bund nav a { color: #e3e4e5; text-decoration: none; font-size: .96rem; }
.bund nav a:hover { color: #fff; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
