/* ==========================================================================
   Køreskolen Grøn Bølge – retning "Signal"
   Dansk skilte- og signalsprog: signalgrøn, vejnavy, skiltehvid, et strejf
   af signalgul. Barlow Condensed (skiltetype) + Atkinson Hyperlegible Next
   (bygget til læsbarhed – samme opgave som et vejskilt).
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Farver */
  --c-navy: #0E1C30;
  --c-navy-2: #16294A;
  --c-navy-3: #22395E;
  --c-ink: #0E1C30;
  --c-ink-2: #3B4A5E;
  --c-ink-3: #5A6679;
  --c-paper: #FFFFFF;
  --c-mist: #F0F3EC;
  --c-mist-2: #E4EADF;
  --c-line: #D4DBCE;

  --c-green: #61A610;      /* = formularens knapgrøn */
  --c-green-hi: #72BD18;
  --c-green-ink: #2F6B0A;  /* grøn til tekst og små flader på hvid (AA) */
  --c-green-wash: #E6F2D6;
  --c-yellow: #FFC21A;
  --c-yellow-wash: #FFF4D3;
  --c-red: #D9281E;
  --c-blue: #1B5AA6;       /* informationstavle-blå */

  --c-on-dark: #FFFFFF;
  --c-on-dark-2: rgba(255, 255, 255, .8);
  --c-on-dark-3: rgba(255, 255, 255, .62);

  /* Lygter */
  --lamp-r: #FF4A3D; --lamp-r-edge: #C4190F; --lamp-r-off: #4A1C1A; --lamp-r-off-hi: #62302C; --lamp-r-glow: rgba(255, 74, 61, .55);
  --lamp-y: #FFC933; --lamp-y-edge: #D99A00; --lamp-y-off: #463911; --lamp-y-off-hi: #5E4D1C; --lamp-y-glow: rgba(255, 201, 51, .5);
  --lamp-g: #86DD35; --lamp-g-edge: #3F8C0E; --lamp-g-off: #1D3517; --lamp-g-off-hi: #2B4B22; --lamp-g-glow: rgba(134, 221, 53, .55);

  /* Typografi */
  --ff-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  /* "Figtree" er kun cifrene 0–9 (Google Fonts text=-subset med unicode-range):
     Atkinsons nul har skråstreg og læses som Ø på dansk (70 70 12 34, 8000 Aarhus C). */
  --ff-body: "Figtree", "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  --fs-lg: clamp(1.3125rem, 1.2rem + .45vw, 1.5625rem);
  --fs-xl: clamp(1.625rem, 1.4rem + .9vw, 2.125rem);
  --fs-2xl: clamp(2.375rem, 1.55rem + 3.3vw, 4.25rem);
  --fs-3xl: clamp(3.5rem, 1.25rem + 6.6vw, 6.5rem);

  /* Rum */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;
  --section-y: clamp(4rem, 2.5rem + 5vw, 7rem);
  --gutter: clamp(1rem, .4rem + 2.6vw, 2.5rem);
  --maxw: 77.5rem;
  --header-h: 72px;

  /* Radier */
  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;

  /* Skygger (navy-tonede) */
  --shadow-1: 0 1px 2px rgba(14, 28, 48, .06), 0 4px 12px -4px rgba(14, 28, 48, .1);
  --shadow-2: 0 2px 4px rgba(14, 28, 48, .05), 0 20px 44px -20px rgba(14, 28, 48, .38);
  --shadow-3: 0 3px 8px rgba(14, 28, 48, .1), 0 44px 90px -34px rgba(14, 28, 48, .6);

  /* Bevægelse */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --focus: var(--c-blue);
}

@media (max-width: 30rem) {
  :root {
    --fs-sm: 1rem;      /* brødtekst på mobil: mindst 16 px */
    --fs-xs: .875rem;   /* meta/jura: mindst 14 px */
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}

p, ul, ol, dl, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--c-green); }

button { font: inherit; color: inherit; }

strong { font-weight: 700; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

main:focus { outline: none; }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

::selection { background: var(--c-green); color: var(--c-navy); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.muted { color: var(--c-ink-3); }
.small { font-size: var(--fs-sm); color: var(--c-ink-2); }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--c-navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  --focus: var(--c-yellow);
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Typografiske byggeklodser ---------- */
.h2 {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1; /* ikke lavere: g/j/p må ikke ramme å/Æ/Ø på linjen under */
  letter-spacing: -.012em;
}

.h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.005em;
}

.lead {
  max-width: 58ch;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--c-ink-2);
}

/* ---------- 4. Signal-komponenter ---------- */

/* Rutenummer-plade: sektionens vejvisning (matcher punkterne i menuen) */
.plate {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: .45em .8em .42em;
  border-radius: 7px;
  background: var(--c-green-ink);
  color: #fff;
  font-family: var(--ff-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px var(--c-green-ink), inset 0 0 0 3.5px rgba(255, 255, 255, .95);
}
.plate--on-dark {
  background: var(--c-green);
  color: var(--c-navy);
  box-shadow: inset 0 0 0 2px var(--c-green), inset 0 0 0 3.5px var(--c-navy);
}
.plate--on-go {
  background: var(--c-navy);
  color: #fff;
  box-shadow: inset 0 0 0 2px var(--c-navy), inset 0 0 0 3.5px #fff;
}

/* Blå informationstavle */
.info-sq {
  --s: 56px;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: calc(var(--s) * .22);
  background: var(--c-blue);
  color: #fff;
  box-shadow:
    inset 0 0 0 calc(var(--s) * .06) var(--c-blue),
    inset 0 0 0 calc(var(--s) * .06 + 1.5px) #fff;
}
.info-sq .icon { width: 48%; height: 48%; }
.info-sq--sm { --s: 44px; }
.info-sq--xs { --s: 28px; }
.info-sq--xs .icon { width: 58%; height: 58%; }

/* Rundt skilt til kategorier og koder. Grøn kant = "grønt lys" – ikke en rød
   forbudsring, som på dansk ville læses som forbud/hastighedsgrænse. */
.disc {
  --d: 84px;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: #fff;
  border: calc(var(--d) * .1) solid var(--c-green);
  color: var(--c-navy);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px rgba(14, 28, 48, .12),
    0 10px 20px -10px rgba(14, 28, 48, .45);
  transition: transform .6s var(--ease-spring);
}
.disc__txt {
  font-family: var(--ff-display);
  font-size: calc(var(--d) * .42);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
}
.disc__txt--3 { font-size: calc(var(--d) * .29); }
.disc__txt--stack {
  display: grid;
  justify-items: center;
  font-size: calc(var(--d) * .4);
}
.disc__txt--stack small {
  margin-top: .06em;
  font-size: .36em;
  font-weight: 700;
  letter-spacing: .03em;
}
.disc--blue {
  border: 0;
  background: var(--c-blue);
  color: #fff;
  box-shadow:
    inset 0 0 0 calc(var(--d) * .05) var(--c-blue),
    inset 0 0 0 calc(var(--d) * .05 + 2px) #fff,
    0 0 0 2px #fff,
    0 0 0 3px rgba(14, 28, 48, .12),
    0 10px 20px -10px rgba(14, 28, 48, .45);
}
.disc--sm { --d: 58px; }

/* Signallygte */
.lamp {
  --on: var(--lamp-g); --edge: var(--lamp-g-edge); --off: var(--lamp-g-off); --off-hi: var(--lamp-g-off-hi); --glow: var(--lamp-g-glow);
  position: relative;
  display: block;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, var(--off-hi), var(--off) 72%);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, .5);
}
.lamp::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 34%, #fff 0 7%, var(--on) 38%, var(--edge) 100%);
  box-shadow: 0 0 12px 2px var(--glow), 0 0 34px 8px var(--glow);
  opacity: 0;
  transition: opacity .3s ease;
}
.lamp.is-on::after { opacity: 1; }
.lamp--red { --on: var(--lamp-r); --edge: var(--lamp-r-edge); --off: var(--lamp-r-off); --off-hi: var(--lamp-r-off-hi); --glow: var(--lamp-r-glow); }
.lamp--yellow { --on: var(--lamp-y); --edge: var(--lamp-y-edge); --off: var(--lamp-y-off); --off-hi: var(--lamp-y-off-hi); --glow: var(--lamp-y-glow); }

/* Tjekliste med grønne lygte-punkter */
.checks {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 27px;
  line-height: 1.5;
}
.checks li::before {
  content: "";
  position: absolute;
  top: calc(.75em - 5.5px);
  left: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 3.5px var(--c-green-wash);
}

/* Hajtænder – dansk vigepligtsmarkering som overgang til mørke flader */
.has-teeth { position: relative; }
.has-teeth::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='14'%3E%3Cpath d='M1 0h20L11 14z' fill='white'/%3E%3C/svg%3E") left top / 34px 14px;
  background-repeat: space no-repeat; /* kun hele trekanter – ingen halve i kanterne */
  opacity: .9;
  pointer-events: none;
}

/* ---------- 5. Knapper ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-navy);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .7em 1.35em;
  border: 2px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--ff-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .015em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease-out), background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .3s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn--go { --btn-bg: var(--c-green); --btn-bd: var(--c-green); --btn-fg: var(--c-navy); }
.btn--go:hover { --btn-bg: var(--c-green-hi); --btn-bd: var(--c-green-hi); box-shadow: 0 14px 26px -14px rgba(63, 120, 8, .95); }

.btn--line { --btn-bd: var(--c-navy); }
.btn--line:hover { --btn-bg: var(--c-navy); --btn-fg: #fff; }

.btn--dark { --btn-bg: var(--c-navy); --btn-bd: var(--c-navy); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: var(--c-navy-3); --btn-bd: var(--c-navy-3); box-shadow: 0 14px 26px -14px rgba(14, 28, 48, .9); }

.btn--lg { min-height: 58px; padding: .75em 1.6em; font-size: 1.3125rem; }
.btn--sm { min-height: 44px; padding: .55em 1.1em; font-size: 1.0625rem; }
.btn .icon { width: 1.05em; height: 1.05em; }

/* Den lille "grønne lygte" i hovedknappen */
.btn__lamp {
  flex: none;
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .32), 0 0 10px 1px rgba(255, 255, 255, .9);
}

/* ---------- 6. Demo-topbar ---------- */
.demo-bar {
  --focus: var(--c-yellow);
  background: var(--c-navy);
  color: #fff;
  font-size: var(--fs-xs);
}
/* To rækker på mobil. Rækkeafstanden på 12 px giver plads til, at hver række
   har sin egen 44 px trykflade (0–44 og 44–88) uden at de dækker hinanden. */
.demo-bar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "text btn close"
    "switch switch switch";
  align-items: center;
  gap: 12px 10px;
  padding-block: 7px;
}
.demo-bar__text {
  grid-area: text;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .86);
}
.demo-bar__desc { display: none; }
.demo-bar__tag {
  flex: none;
  padding: 4px 8px 3px;
  border-radius: 4px;
  background: var(--c-yellow);
  color: var(--c-navy);
  font-family: var(--ff-display);
  font-size: .875rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
}

/* Designskifter: små segmenterede piller */
.design-switch {
  grid-area: switch;
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: start;
  padding: 2px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  white-space: nowrap;
}
.design-switch__label {
  padding: 0 6px 0 9px;
  color: rgba(255, 255, 255, .7);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.design-switch a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  color: rgba(255, 255, 255, .9);
  font-family: var(--ff-display);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
/* 44 px trykflade uden at gøre baren højere */
.design-switch a::after { content: ""; position: absolute; inset: -9px -1px; }
.design-switch a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.design-switch a[aria-current="page"] { background: var(--c-green); color: var(--c-navy); }

.demo-bar__btn {
  grid-area: btn;
  justify-self: end;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: var(--r-pill);
  background: transparent;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.demo-bar__btn::after { content: ""; position: absolute; inset: -8px -4px; }
.demo-bar__btn .icon { width: 1.1em; height: 1.1em; color: var(--c-green-hi); }
.demo-bar__btn:hover { background: #fff; color: var(--c-navy); border-color: #fff; }
.demo-bar__btn:hover .icon { color: var(--c-green-ink); }
.demo-bar__btn-long { display: none; }
.demo-bar__close {
  grid-area: close;
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: -4px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .8);
  cursor: pointer;
}
.demo-bar__close::after { content: ""; position: absolute; inset: -6px; }
.demo-bar__close:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* "Tilpas" (indsættes af ../demo-tilpas.js med knappens klasse og lagt i en
   .dlc-group sammen med embed-knappen i dens grid-felt): en stille sekundær
   knap uden kant, så "Se hvordan formularen er sat ind" forbliver demo-barens
   hovedhandling. Aktiv tilstand = en tændt grøn lygte. */
.demo-bar .dlc-trigger {
  gap: 6px;
  padding: 0 8px;
  border-color: transparent;
  color: rgba(255, 255, 255, .86);
}
.demo-bar .dlc-trigger:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }
.demo-bar .dlc-trigger--compact { min-width: 40px; } /* kun ikon: stadig 44+ px trykflade */
/* Gruppen må ikke krympe under indholdet: så løber en for bred knap ud til højre,
   scriptet opdager det og skifter til kun-ikon i stedet for at lægge sig over "Demo". */
.demo-bar .dlc-group { min-width: auto; }
.demo-bar .dlc-trigger .dlc-ico { width: 1.1em; height: 1.1em; margin: 0; color: rgba(255, 255, 255, .72); }
.demo-bar .dlc-trigger:hover .dlc-ico { color: #fff; }
.demo-bar .dlc-dot {
  width: 7px;
  height: 7px;
  margin: 0;
  background: var(--lamp-g);
  box-shadow: 0 0 0 2px rgba(134, 221, 53, .22), 0 0 8px 1px var(--lamp-g-glow);
}

/* Mobil: rækkernes trykflader mødes ved 44 px i stedet for at overlappe */
@media (max-width: 49.99rem) {
  .demo-bar__btn::after { inset: -9px -4px -7px; } /* målt fra padding-boksen (inden for 1 px kant) */
  .demo-bar__close::after { inset: -7px -6px -5px; }
}
@media (min-width: 32rem) {
  .demo-bar__btn-long { display: inline; }
  .demo-bar__btn-short { display: none; }
}
@media (min-width: 50rem) {
  .demo-bar__inner {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "text switch btn close";
    column-gap: 14px;
  }
  .design-switch { justify-self: start; }
}
@media (min-width: 80rem) {
  .demo-bar__text { min-width: 0; }
  .demo-bar__desc { display: inline; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .demo-bar__inner { grid-template-columns: minmax(0, 1fr) auto auto auto; }
}

/* ---------- 7. Header og navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 10px 24px -20px rgba(14, 28, 48, .55);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex: none;
  border-radius: 12px;
  color: var(--c-navy);
  text-decoration: none;
}
.logo { width: 176px; height: 44px; overflow: visible; }
.logo__plate { fill: var(--c-navy); }
.logo__kicker {
  fill: var(--c-ink-2);
  font-family: var(--ff-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
}
.logo__name {
  fill: currentColor;
  font-family: var(--ff-display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.005em;
}
.brand--light { color: #fff; }
.brand--light .logo__plate { fill: var(--c-navy-2); }
.brand--light .logo__kicker { fill: rgba(255, 255, 255, .7); }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 14px;
  border: 2px solid var(--c-navy);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--c-navy);
  font-family: var(--ff-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.nav__toggle-icon {
  position: relative;
  width: 18px;
  height: 14px;
}
.nav__toggle-icon::before,
.nav__toggle-icon::after,
.nav__toggle-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease-out), opacity .2s ease;
}
.nav__toggle-icon::before { top: 0; }
.nav__toggle-icon span { top: 5.75px; }
.nav__toggle-icon::after { bottom: 0; }
.nav[data-open="true"] .nav__toggle-icon::before { transform: translateY(5.75px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle-icon::after { transform: translateY(-5.75px) rotate(-45deg); }
.nav[data-open="true"] .nav__toggle-icon span { opacity: 0; }

.nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 8px var(--gutter) 28px;
  background: #fff;
  border-top: 1px solid var(--c-line);
  box-shadow: 0 30px 40px -30px rgba(14, 28, 48, .5);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .3s var(--ease-out), visibility 0s linear .3s;
}
.nav[data-open="true"] .nav__menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .2s ease, transform .3s var(--ease-out), visibility 0s;
}
.nav__list { list-style: none; padding: 0; }
.nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--ff-display);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}
.nav__cta { margin-top: 20px; width: 100%; }

@media (min-width: 67.5rem) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 28px;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav__list { display: flex; gap: 22px; }
  .nav__list a {
    position: relative;
    padding: 8px 0;
    border: 0;
    font-size: 1.125rem;
  }
  .nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 3px;
    border-radius: 2px;
    background: var(--c-green);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s var(--ease-out);
  }
  .nav__list a:hover::after,
  .nav__list a.is-current::after { transform: scaleX(1); }
  .nav__cta { margin-top: 0; width: auto; }
}

@media (min-width: 67.5rem) and (max-width: 74rem) {
  .nav__list { gap: 16px; }
  .nav__menu { gap: 20px; }
}

/* ---------- 8. Hero ---------- */
.hero {
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 4.75rem) clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
}
.hero__grid {
  display: grid;
  gap: clamp(2.75rem, 2rem + 3vw, 4rem);
  align-items: center;
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
}
.hero__title {
  max-width: 11ch;
  margin-bottom: 26px;
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.015em;
}
.hero__lead {
  max-width: 34em;
  margin-bottom: 32px;
  color: var(--c-ink-2);
  font-size: var(--fs-md);
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
@media (max-width: 29.99rem) {
  .hero { padding-top: 24px; }
  .hero__kicker { margin-bottom: 16px; }
  .hero__title { margin-bottom: 18px; }
  .hero__lead { margin-bottom: 24px; }
  .hero__actions { flex-wrap: nowrap; gap: 10px; margin-bottom: 14px; }
  .hero__actions .btn { flex: 1 1 0; min-width: 0; padding: .75em .9em; font-size: 1.1875rem; }
}
.hero__call {
  color: var(--c-ink-3);
  font-size: var(--fs-sm);
}
.hero__call a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--c-green);
  white-space: nowrap;
}
.hero__call { margin-top: -10px; }

.hero__media { position: relative; }
.hero__photo {
  overflow: hidden;
  aspect-ratio: 4 / 3.3;
  border-radius: var(--r-xl);
  background: var(--c-mist);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% 50%;
}

/* Signalhovedet: rød → rød+gul → grøn (dansk rækkefølge) ved sideindlæsning */
.signal {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  gap: 8px;
  padding: 10px 9px;
  border-radius: var(--r-pill);
  background: var(--c-navy);
  box-shadow: 0 0 0 3px #fff, 0 18px 30px -12px rgba(14, 28, 48, .6);
}
.signal__lamp { width: 32px; height: 32px; }
.signal__lamp--green::after { opacity: 1; }

.sticker {
  position: absolute;
  right: 10px;
  bottom: -26px;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 132px;
  height: 132px;
  padding: 16px;
  border-radius: 50%;
  background: var(--c-yellow);
  color: var(--c-navy);
  font-family: var(--ff-display);
  line-height: 1;
  text-align: center;
  transform: rotate(-9deg);
  box-shadow:
    inset 0 0 0 5px var(--c-yellow),
    inset 0 0 0 7px var(--c-navy),
    0 14px 26px -12px rgba(14, 28, 48, .55);
  transition: transform .6s var(--ease-spring);
}
.sticker:hover { transform: rotate(0deg) scale(1.05); }
.sticker__top { max-width: 7.5em; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.sticker__big { margin: 5px 0 4px; font-size: 1.625rem; font-weight: 800; line-height: .9; letter-spacing: -.01em; white-space: nowrap; }
.sticker__small { max-width: 7.5em; font-size: .8125rem; font-weight: 600; letter-spacing: .01em; }

@media (prefers-reduced-motion: no-preference) {
  .signal__lamp--red::after { animation: sig-red 1.9s .35s both; }
  .signal__lamp--yellow::after { animation: sig-yellow 1.9s .35s both; }
  .signal__lamp--green::after { animation: sig-green 1.9s .35s both; }
  .hero .btn--go .btn__lamp { animation: cta-lamp 1.9s .35s both; }
}
@keyframes sig-red { 0%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sig-yellow { 0%, 45% { opacity: 0; } 50%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sig-green { 0%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cta-lamp {
  0%, 94% { background: rgba(14, 28, 48, .3); box-shadow: 0 0 0 3px rgba(14, 28, 48, .08); }
  100% { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .32), 0 0 10px 1px rgba(255, 255, 255, .9); }
}

@media (min-width: 40rem) {
  .signal { top: 24px; left: 24px; padding: 12px 10px; gap: 10px; }
  .signal__lamp { width: 40px; height: 40px; }
  .sticker { right: 18px; width: 156px; height: 156px; padding: 16px; }
  .sticker__top, .sticker__small { font-size: .875rem; }
  .sticker__big { font-size: 1.8125rem; }
}

@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .hero__photo { aspect-ratio: 1 / 1.06; }
  .signal { top: 56px; left: -30px; padding: 14px 12px; gap: 12px; }
  .signal__lamp { width: 46px; height: 46px; }
  .sticker { right: -22px; bottom: 44px; }
}

/* ---------- 9. Tal-bånd (asfalt) ---------- */
.stats {
  padding-block: 64px 48px;
  background: var(--c-navy);
  color: #fff;
}
.stats__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
  padding: 0;
  list-style: none;
}
.stat__num {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 2rem + 2.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
}
.stat__unit { font-size: .6em; font-weight: 700; }
.stat__pre { font-size: .5em; font-weight: 700; letter-spacing: .01em; }
.stat__label {
  margin-top: 8px;
  max-width: 22ch;
  color: var(--c-on-dark-2);
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.stat__label .stars { display: inline-flex; vertical-align: -2px; margin-right: 4px; }

@media (min-width: 56rem) {
  .stats__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .stat { padding-inline: 28px; }
  .stat:first-child { padding-left: 0; }
  /* vognbanestriber som skillelinjer */
  .stat + .stat {
    background: linear-gradient(to bottom, rgba(255, 255, 255, .34) 55%, transparent 0) left top / 2px 22px repeat-y;
  }
}

/* Stjerner */
.stars { display: flex; gap: 2px; color: var(--c-yellow); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.stars--sm svg { width: 14px; height: 14px; }
.stars--lg svg { width: 28px; height: 28px; }
.stars .star-off { fill: transparent; stroke: currentColor; stroke-width: 1.6; }

/* ---------- 10. Sektioner – fælles ---------- */
.section { padding-block: var(--section-y); }
.section--mist { background: var(--c-mist); }
.section--navy {
  --focus: var(--c-yellow);
  background: var(--c-navy);
  color: #fff;
}
.section--navy .lead { color: var(--c-on-dark-2); }
.section--go {
  --focus: var(--c-navy);
  background: var(--c-green);
  color: var(--c-navy);
}
.section--go .lead { color: var(--c-navy); }

.section-head {
  display: grid;
  gap: 18px;
  justify-items: start;
  max-width: 52rem;
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4rem);
}
.section-head--split > div { display: grid; gap: 18px; justify-items: start; }

@media (min-width: 60rem) {
  .section-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 64px;
    max-width: none;
  }
}

/* ---------- 11. Hvorfor ---------- */
.why__head .h2 { max-width: 16ch; }
.why__body { display: grid; gap: 48px; }
.usps {
  display: grid;
  gap: 36px 40px;
  padding: 0;
  list-style: none;
}
.usp {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 26px;
  border-top: 2px solid var(--c-navy);
}
.usp__head { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 14px; }
.usp__head .info-sq { --s: 44px; }
.usp__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.1;
}
.usp p { color: var(--c-ink-2); }
.why__photo {
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--c-mist);
}
.why__photo img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

@media (min-width: 40rem) {
  .usps { grid-template-columns: 1fr 1fr; }
  .usp__head { grid-template-columns: 1fr; justify-items: start; }
  .usp__head .info-sq { --s: 56px; }
}
@media (min-width: 60rem) {
  .why__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: stretch;
  }
  .why__photo img { aspect-ratio: auto; min-height: 100%; object-position: 42% 50%; }
}

/* ---------- 12. Kørekort ---------- */
.products {
  display: grid;
  gap: 20px;
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 1.2rem + 1.5vw, 40px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s ease;
}
.product:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-2);
}
.product:hover .disc { transform: rotate(-14deg); }
.product__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.product__meta {
  padding: 6px 10px;
  border-radius: var(--r-xs);
  background: var(--c-mist);
  color: var(--c-ink-2);
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.product__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1;
}
.product > p { color: var(--c-ink-2); }
.product .checks { margin-top: 4px; }
.product__note {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--c-mist);
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.product__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--c-line);
}
.product .checks + .product__foot,
.product__note + .product__foot { margin-top: auto; }
.product > .checks { margin-bottom: 8px; }
.product__price { display: grid; gap: 4px; color: var(--c-navy); line-height: 1; }
.product__price-label {
  color: var(--c-ink-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.product__price-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.product__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--c-green-ink);
  font-family: var(--ff-display);
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
}
.product__link .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease-out); }
.product__link:hover { text-decoration: underline; text-decoration-color: var(--c-green); }
.product__link:hover .icon,
.product:hover .product__link .icon { transform: translateX(4px); }

.lost-license {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas:
    "icon q"
    "text text"
    "btn btn";
  align-items: center;
  gap: 10px 14px;
  margin-top: 28px;
  padding: 22px clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--c-line);
}
.lost-license__icon { grid-area: icon; --s: 36px; }
.lost-license__q { grid-area: q; color: var(--c-navy); font-family: var(--ff-display); font-size: 1.3125rem; line-height: 1.1; }
.lost-license__q strong { font-weight: 700; }
.lost-license__text { grid-area: text; max-width: 68ch; color: var(--c-ink-2); }
.lost-license__btn { grid-area: btn; justify-self: start; margin-top: 6px; }

@media (min-width: 48rem) {
  .products { grid-template-columns: 1fr 1fr; gap: 24px; }
  .lost-license {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-areas:
      "icon q btn"
      "icon text btn";
    align-items: center;
    gap: 4px 24px;
  }
  .lost-license__icon { --s: 56px; }
  .lost-license__q { align-self: end; }
  .lost-license__text { align-self: start; }
  .lost-license__btn { margin-top: 0; }
}

/* ---------- 13. Priser ---------- */
.prices {
  display: grid;
  gap: 48px;
  padding-top: 20px;
}
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 1.4rem + 1.2vw, 38px);
  border: 2px solid var(--c-navy);
  border-radius: var(--r-lg);
  background: #fff;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.price__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.1;
}
.price--featured .price__title { padding-right: 88px; }
.price__amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  color: var(--c-navy);
  line-height: 1;
}
.price__num {
  font-family: var(--ff-display);
  font-size: clamp(3.25rem, 2.5rem + 2.4vw, 4.75rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums;
}
.price__cur {
  font-family: var(--ff-display);
  font-size: 1.625rem;
  font-weight: 700;
}
.price__sub {
  padding-bottom: 20px;
  color: var(--c-ink-3);
  font-size: var(--fs-sm);
  background: linear-gradient(90deg, var(--c-line) 55%, transparent 0) left bottom / 18px 2px repeat-x;
}
.price .checks { flex: 1; align-content: start; padding-top: 6px; font-size: var(--fs-sm); }
.price__cta { margin-top: 12px; width: 100%; }

.price--featured {
  --focus: var(--c-navy);
  border-color: var(--c-green);
  background: var(--c-green);
  color: var(--c-navy);
  box-shadow: inset 0 0 0 6px var(--c-green), inset 0 0 0 8px #fff, var(--shadow-2);
}
.price--featured:hover { box-shadow: inset 0 0 0 6px var(--c-green), inset 0 0 0 8px #fff, var(--shadow-3); }
.price--featured .price__sub {
  color: var(--c-navy);
  background-image: linear-gradient(90deg, rgba(14, 28, 48, .35) 55%, transparent 0);
}
.price--featured .checks li::before {
  background: var(--c-navy);
  box-shadow: 0 0 0 3.5px rgba(255, 255, 255, .4);
}
.price--featured .btn--dark:hover { --btn-bg: #fff; --btn-bd: #fff; --btn-fg: var(--c-navy); }

/* Hovedvejstavle: "Mest populære" */
.priority {
  position: absolute;
  top: -34px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  transform: rotate(0deg);
  transition: transform .6s var(--ease-spring);
}
.priority::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 8px;
  background: var(--c-yellow);
  transform: rotate(45deg);
  box-shadow:
    inset 0 0 0 5px #fff,
    0 0 0 1.5px var(--c-navy),
    0 12px 22px -10px rgba(14, 28, 48, .5);
}
.priority span {
  position: relative;
  max-width: 4.6em;
  color: var(--c-navy);
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: .95;
  text-align: center;
}
.price--featured:hover .priority { transform: rotate(-8deg) scale(1.04); }

.fees {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "text text";
  gap: 10px 14px;
  align-items: center;
  margin-top: 36px;
  padding: 20px clamp(18px, 3vw, 28px);
  border-radius: var(--r-md);
  background: var(--c-mist);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.fees__icon { grid-area: icon; }
.fees__title { grid-area: title; color: var(--c-navy); font-family: var(--ff-display); font-size: 1.25rem; line-height: 1.1; }
.fees__title strong { font-weight: 700; }
.fees__text { grid-area: text; max-width: 72ch; }
.warn { width: 34px; height: auto; }
@media (min-width: 48rem) {
  .fees {
    grid-template-columns: 44px minmax(0, 4fr) minmax(0, 8fr);
    grid-template-areas: "icon title text";
    gap: 24px;
    padding: 24px 32px;
  }
  .warn { width: 44px; }
  .fees__title { font-size: 1.375rem; max-width: 13em; }
}

.prices__more {
  display: grid;
  gap: 48px;
  margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem);
}
.lovpakke {
  padding: clamp(24px, 1.2rem + 1.8vw, 44px);
  border-radius: var(--r-lg);
  background: var(--c-mist);
}
.lovpakke__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.lovpakke > p { color: var(--c-ink-2); }
.lov {
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}
.lov__row {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  column-gap: 16px;
  row-gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--c-line);
}
.lov__row:last-child { border-bottom: 1px solid var(--c-line); }
.lov__num {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--c-navy);
  font-family: var(--ff-display);
  font-size: 2.625rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
}
.lov__label { font-weight: 700; line-height: 1.35; }
.pips { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 36rem) {
  /* faste 10 pr. række: 30 = 3 hele rækker, 17 = 10 + 7 */
  .pips { display: grid; grid-template-columns: repeat(10, 11px); }
}
.pip { display: block; width: 11px; height: 11px; border-radius: 3px; }
.pip--t { box-shadow: inset 0 0 0 2px var(--c-navy); }
.pip--m { background: var(--c-yellow); box-shadow: inset 0 0 0 1px rgba(14, 28, 48, .25); }
.pip--v { background: var(--c-green); }
.pip--dark { background: var(--c-navy); }
.pip--g { background: var(--c-blue); }

.extras .h3 { margin-bottom: 4px; }
.leaders {
  display: grid;
  gap: 14px;
  margin: 18px 0 40px;
}
.leaders__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.leaders dt {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  color: var(--c-ink-2);
}
.leaders dt::after {
  content: "";
  flex: 1;
  min-width: 18px;
  border-bottom: 2px dotted var(--c-line);
  transform: translateY(-.28em);
}
.leaders dd {
  margin: 0;
  color: var(--c-navy);
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.extras__pay { margin-top: 0; }
.extras > p { margin-top: 12px; color: var(--c-ink-2); }
.extras__cta { margin-top: 28px; }

@media (min-width: 48rem) and (max-width: 61.99rem) {
  /* tablet: Lynkursus i fuld bredde øverst, Standard og Trailer side om side */
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 24px; }
  .price--featured {
    order: -1;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto auto 1fr auto;
    column-gap: 36px;
  }
  .price--featured > :not(.priority):not(.checks):not(.price__cta) { grid-column: 1; }
  .price--featured .price__sub { align-self: start; }
  .price--featured .checks { grid-column: 2; grid-row: 1 / 4; padding-top: 44px; }
  .price--featured .price__cta { grid-column: 2; grid-row: 4; }
}
@media (min-width: 62rem) {
  .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .prices__more { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .extras { padding-top: 24px; }
}

/* ---------- 14. Forløbet: den grønne bølge ---------- */
.forlob { display: grid; gap: 56px; }
.forlob__intro { display: grid; gap: 18px; justify-items: start; }
.forlob__photo {
  width: 100%;
  margin-top: 18px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-navy-2);
}
.forlob__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.steps { padding: 0; list-style: none; }
.step {
  --wave-delay: 0ms;
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  column-gap: 22px;
  padding-bottom: 38px;
}
.step:last-child { padding-bottom: 0; }
/* vognbanestribe mellem lygterne */
.step:not(:last-child)::before,
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 68px;
  bottom: 8px;
  left: 29px;
  width: 2px;
}
.step:not(:last-child)::before {
  background: linear-gradient(to bottom, rgba(255, 255, 255, .28) 55%, transparent 0) left top / 2px 14px repeat-y;
}
.step:not(:last-child)::after {
  background: var(--c-green);
  box-shadow: 0 0 10px rgba(134, 221, 53, .5);
  transform-origin: top;
  transition: transform .7s var(--ease-out) calc(var(--wave-delay) + .2s);
}
.step__lamp {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 34%, #BDF184 0 6%, var(--c-green-hi) 42%, var(--c-green) 100%);
  color: var(--c-navy);
  font-family: var(--ff-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 5px rgba(97, 166, 16, .22), 0 0 30px 6px rgba(134, 221, 53, .42);
  transition: background .5s ease var(--wave-delay), color .5s ease var(--wave-delay), box-shadow .5s ease var(--wave-delay);
}
.step__title {
  margin-top: 14px;
  color: #fff;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.05;
}
.step__body p {
  max-width: 54ch;
  margin-top: 8px;
  color: var(--c-on-dark-2);
}

/* Med JS: lygterne er slukkede, indtil man når dem */
.js .step:not(.is-lit) .step__lamp {
  background: var(--c-navy-2);
  color: var(--c-on-dark-3);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .16), inset 0 4px 8px rgba(0, 0, 0, .35);
}
.js .step:not(.is-lit)::after { transform: scaleY(0); }

@media (min-width: 64rem) {
  .forlob {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 88px;
    align-items: start;
  }
  .steps { padding-top: 8px; }
  .step { grid-template-columns: 68px 1fr; column-gap: 28px; padding-bottom: 44px; }
  .step:not(:last-child)::before,
  .step:not(:last-child)::after { top: 76px; left: 33px; }
  .step__lamp { width: 68px; height: 68px; font-size: 2rem; }
  .step__title { margin-top: 16px; }
}

@media (min-width: 64rem) and (min-height: 50rem) {
  .forlob__intro {
    position: sticky;
    top: calc(var(--header-h) + 36px);
  }
}

/* ---------- 15. Tilmelding (showcase) ---------- */
/* Al tekst på den grønne flade er navy: 5,7:1 mod #61A610 (hvid ville kun give 3:1). */
.signup__head .h2 { max-width: 19ch; }

.signup {
  display: grid;
  gap: 20px;
}
.signup__aside { display: contents; }
.signup__steps { order: 1; }
.signup__card { order: 2; }
.signup__notes { order: 3; }

.signup__steps-title { margin-bottom: 22px; font-size: var(--fs-lg); }

/* Trafiklyset: rød → rød+gul → grøn. Uden JS/ved reduceret bevægelse står det på grønt. */
.lightsteps {
  position: relative;
  display: grid;
  padding: 0;
  list-style: none;
}
.lightsteps::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 70px;
  border-radius: 35px;
  background: var(--c-navy);
  box-shadow: 0 0 0 3px #fff, 0 20px 36px -18px rgba(14, 28, 48, .7);
}
.lightstep {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  column-gap: 20px;
  align-items: center;
  min-height: 82px;
  padding-block: 10px;
}
.lightstep:first-child { padding-top: 16px; }
.lightstep:last-child { padding-bottom: 16px; }
.lightstep__lamp { justify-self: center; width: 46px; height: 46px; }
.lightstep p { font-size: var(--fs-sm); line-height: 1.45; }
.lightstep strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--ff-display);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.1;
}
.lightstep__lamp--green::after { opacity: 1; }
.js .lightsteps:not(.is-go):not(.is-static) .lightstep__lamp--green::after { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .lightsteps.is-go .lightstep__lamp--red::after { animation: sig-red 3.2s .2s both; }
  .lightsteps.is-go .lightstep__lamp--yellow::after { animation: sig-yellow 3.2s .2s both; }
  .lightsteps.is-go .lightstep__lamp--green::after { animation: sig-green 3.2s .2s both; }
}

.signup__notes {
  display: grid;
  gap: 16px;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.howto {
  display: grid;
  gap: 10px;
  margin: 4px 0 6px;
  padding: 0 0 18px;
  border-bottom: 2px solid rgba(14, 28, 48, .18);
  list-style: none;
  counter-reset: howto;
}
.howto li {
  position: relative;
  padding-left: 34px;
  counter-increment: howto;
}
.howto li::before {
  content: counter(howto);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-navy);
  color: #fff;
  font-family: var(--ff-display);
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1;
}
.ask {
  --focus: var(--c-yellow);
  margin-top: 6px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--c-navy);
  color: #fff;
}
.ask__q {
  margin-bottom: 6px;
  font-family: var(--ff-display);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.1;
}
.ask__links { display: grid; margin-bottom: 4px; }
.ask__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  justify-self: start;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ask__links a:hover { text-decoration: underline; text-decoration-color: var(--c-green-hi); }
.ask__links .icon { color: var(--c-green-hi); }
.ask__note { color: var(--c-on-dark-2); font-size: var(--fs-xs); }
.privacy {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: var(--fs-xs);
  line-height: 1.5;
}
.privacy .icon { width: 18px; height: 18px; margin-top: 1px; }

/* Det hvide kort med formularen */
.signup__card {
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  color: var(--c-ink);
  box-shadow: 0 0 0 1px rgba(14, 28, 48, .06), 0 2px 6px rgba(14, 28, 48, .12), 0 40px 80px -36px rgba(14, 28, 48, .6);
  --focus: var(--c-blue);
}
.signup__cardhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #E8ECE4;
  background: linear-gradient(#fff, #FAFBF8);
}
.signup__live {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
}
.live-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 4px rgba(97, 166, 16, .2);
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: live 2.4s ease-in-out infinite; }
}
@keyframes live { 0%, 100% { box-shadow: 0 0 0 4px rgba(97, 166, 16, .2); } 50% { box-shadow: 0 0 0 7px rgba(97, 166, 16, .08); } }
.signup__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--c-mist);
  color: var(--c-ink-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.2;
}
.codebtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--c-blue);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.codebtn::after { content: ""; position: absolute; inset: -7px -3px; }
.codebtn .icon { width: 1.05em; height: 1.05em; }
.codebtn:hover { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.dl-embed { background: #fff; }
.dl-embed iframe { display: block; width: 100%; }

/* Mobil: hoved, en kompakt vandret signalstribe og så formularen */
@media (max-width: 47.99rem) {
  .section--go { padding-top: 48px; }
  .signup__head { gap: 14px; margin-bottom: 26px; }
  .signup__head .lead { font-size: 1.0625rem; }
  .signup__steps-title,
  .lightstep__more {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .lightsteps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 6px;
    padding: 0 6px;
  }
  .lightsteps::before {
    top: 0;
    bottom: auto;
    right: 0;
    width: auto;
    height: 46px;
    border-radius: 23px;
  }
  .lightstep {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 10px;
    min-height: 0;
    padding: 8px 0 0;
    text-align: center;
  }
  .lightstep:first-child,
  .lightstep:last-child { padding-block: 8px 0; }
  .lightstep__lamp { width: 30px; height: 30px; }
  .lightstep p { line-height: 1.1; }
  .lightstep strong { margin: 0; font-size: 1.0625rem; }
  .signup__card { margin-inline: calc(8px - var(--gutter)); }
  .signup__live { font-size: .875rem; }
  .signup__live-more { display: none; }
  .signup__notes { margin-top: 12px; }
  .privacy { font-size: .9375rem; }
}
@media (min-width: 48rem) {
  .howto { display: none; }
  /* Kortet slutter i bunden af den grønne flade og løber over i den hvide Om os-sektion,
     så hvid plads under formularens indhold ser tilsigtet ud i stedet for tomt. */
  .section--go { padding-bottom: 0; overflow: clip; }
  .section--go + .section { padding-top: clamp(3rem, 1.5rem + 3vw, 5rem); }
  .signup__card { border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .signup__cardhead { padding: 16px 24px; }
  .signup__card .dl-embed { padding: 10px 20px 0; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .signup {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 40px;
    row-gap: 48px;
    align-items: start;
  }
  .signup__steps { grid-column: 1; grid-row: 1; }
  .signup__notes { grid-column: 2; grid-row: 1; padding-top: 50px; }
  .signup__card { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 64rem) {
  .signup {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 56px;
    align-items: start;
  }
  .signup__aside {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 72px;
  }
}
@media (min-width: 64rem) and (min-height: 54rem) {
  .signup__aside {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
}

/* ---------- 16. Om os ---------- */
.team {
  display: grid;
  gap: 56px;
  padding: 0;
  list-style: none;
}
.teacher { display: grid; align-content: start; gap: 10px; }
.teacher__photo { position: relative; margin-bottom: 26px; }
.teacher__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--r-lg);
  background: var(--c-mist);
}
/* fælles behandling, så de tre portrætter læses som ét hold */
.teacher__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(to top, rgba(14, 28, 48, .22), rgba(14, 28, 48, 0) 32%);
  box-shadow: inset 0 0 0 1px rgba(14, 28, 48, .08);
  pointer-events: none;
}
.teacher__signs { z-index: 1; }
@media (max-width: 39.99rem) {
  .teacher__photo img { aspect-ratio: 1 / 1; }
}
/* Store telefoner og iPad mini (40–48rem): foto til venstre, tekst til højre,
   så tre portrætter i fuld bredde ikke fylder hver sin skærm */
@media (min-width: 40rem) and (max-width: 47.99rem) {
  .team { gap: 48px; }
  .teacher {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    grid-template-rows: repeat(4, auto) 1fr;
    column-gap: 28px;
  }
  .teacher__photo { grid-column: 1; grid-row: 1 / 6; align-self: start; margin-bottom: 24px; }
  .teacher > :not(.teacher__photo) { grid-column: 2; }
}
.teacher__signs {
  position: absolute;
  left: 18px;
  bottom: -24px;
  display: flex;
  gap: 8px;
}
.teacher__signs .info-sq { --s: 58px; box-shadow: inset 0 0 0 3.5px var(--c-blue), inset 0 0 0 5px #fff, 0 0 0 2px #fff, 0 10px 20px -10px rgba(14, 28, 48, .45); }
.teacher:hover .disc { transform: rotate(-14deg); }
.teacher__name {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1;
}
.teacher__role {
  color: var(--c-green-ink);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.teacher > p:not([class]) { color: var(--c-ink-2); }
.teacher__fun {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--c-yellow-wash);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.teacher__fun .icon { width: 18px; height: 18px; margin-top: 2px; fill: var(--c-yellow); stroke: var(--c-navy); stroke-width: 1.2; }
.nowrap { white-space: nowrap; }

@media (min-width: 48rem) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}
@media (min-width: 72rem) {
  .team { gap: 40px; }
}

/* ---------- 17. Anmeldelser ---------- */
.reviews { display: grid; gap: 44px; }
.reviews__summary { display: grid; gap: 14px; justify-items: start; }
.reviews__summary .h2 { max-width: 10ch; margin-bottom: 8px; }
.reviews__summary .plate { margin-bottom: 4px; }
.score { display: flex; align-items: baseline; gap: 8px; color: var(--c-navy); }
.score__num {
  font-family: var(--ff-display);
  font-size: clamp(5.5rem, 4rem + 6vw, 9.5rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.03em;
}
.score__of {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-ink-3);
}
.reviews__basis { color: var(--c-ink-2); font-size: var(--fs-sm); }

.reviews__list {
  padding: 0;
  list-style: none;
  columns: 1;
  column-gap: 20px;
  margin-bottom: -20px; /* sidste korts margin i hver kolonne skal ikke forlænge sektionen */
}
.review {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  padding: clamp(22px, 1.2rem + 1vw, 30px);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--c-line);
  break-inside: avoid;
}
.review__quote p {
  font-size: 1.125rem;
  line-height: 1.5;
}
.review__by { color: var(--c-ink-3); font-size: var(--fs-sm); }
.review__by strong { color: var(--c-navy); font-family: var(--ff-display); font-size: 1.1875rem; }

.review--dark { background: var(--c-navy); color: #fff; box-shadow: none; }
.review--dark .review__quote p { font-size: 1.3125rem; }
.review--dark .review__by { color: var(--c-on-dark-3); }
.review--dark .review__by strong { color: #fff; }

.review--go { --focus: var(--c-navy); background: var(--c-green); color: var(--c-navy); box-shadow: none; }
.review--go .stars { color: var(--c-navy); }
.review--go .review__by { color: var(--c-navy); }

/* Mobil: vandret karrusel, hvor næste kort titter frem */
@media (max-width: 43.99rem) {
  .reviews__list {
    display: flex;
    gap: 12px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 28, 48, .3) transparent;
  }
  .reviews__list:focus-visible { outline-offset: -3px; }
  .review {
    flex: 0 0 84%;
    align-content: start;
    margin-bottom: 0;
    scroll-snap-align: start;
  }
  .review--dark .review__quote p { font-size: 1.125rem; }
}
@media (min-width: 44rem) {
  .reviews__list { columns: 2; }
}
@media (min-width: 64rem) {
  .reviews {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
    align-items: start;
  }
  .reviews__summary { position: sticky; top: calc(var(--header-h) + 36px); }
}

/* ---------- 18. FAQ ---------- */
.faq { display: grid; gap: 40px; }
.faq__intro { display: grid; gap: 18px; justify-items: start; align-content: start; }
.faq__help {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 12px;
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
}
.faq__help a { color: var(--c-navy); font-weight: 700; white-space: nowrap; }
/* En lang demo-mailadresse (andet skolenavn) må bryde i stedet for at skubbe siden ud */
.faq__help a[href^="mailto:"] { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 47.99rem) {
  .faq__help { grid-template-columns: 32px 1fr; gap: 12px; }
  .faq__help .info-sq { --s: 32px; }
  .faq__help a { display: inline-block; padding-block: 10px; margin-block: -10px; }
}

.qa { border-top: 1px solid var(--c-line); }
.qa:last-child { border-bottom: 1px solid var(--c-line); }
.qa summary {
  display: grid;
  grid-template-columns: 1fr 36px;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.15;
  border-radius: 4px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::marker { content: ""; }
.qa summary:hover { color: var(--c-green-ink); }
.qa__icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-navy);
  transition: background-color .25s ease, transform .5s var(--ease-spring);
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2.5px;
  margin: -1.25px 0 0 -7px;
  border-radius: 2px;
  background: #fff;
  transition: transform .35s var(--ease-out), background-color .25s;
}
.qa__icon::after { transform: rotate(90deg); }
.qa:not([open]) summary:hover .qa__icon { transform: rotate(90deg); }
.qa[open] .qa__icon { background: var(--c-green); transform: rotate(180deg); }
.qa[open] .qa__icon::before,
.qa[open] .qa__icon::after { background: var(--c-navy); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__a {
  max-width: 66ch;
  padding: 0 56px 26px 0;
  color: var(--c-ink-2);
}
@media (prefers-reduced-motion: no-preference) {
  .qa[open] .qa__a { animation: qa-in .4s var(--ease-out); }
}
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (min-width: 64rem) {
  .faq {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
    align-items: start;
  }
  .faq__intro { position: sticky; top: calc(var(--header-h) + 36px); }
}

/* ---------- 19. Kontakt ---------- */
.contact { display: grid; gap: 48px; }
.contact__info { display: grid; gap: 18px; justify-items: start; }
.contact__list {
  display: grid;
  gap: 16px;
  width: 100%;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.contact__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
}
.contact__item--top { align-items: start; }
.contact__item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-navy);
  text-decoration: underline;
  text-decoration-color: var(--c-green);
  overflow-wrap: anywhere;
}
.contact__label { font-weight: 700; margin-bottom: 6px; }
.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  color: var(--c-ink-2);
}
.hours dd { margin: 0; color: var(--c-navy); font-weight: 700; }
.contact__theory { margin-top: 10px; color: var(--c-ink-2); font-size: var(--fs-sm); }

.contact__map {
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #E4EADF;
  box-shadow: var(--shadow-2);
}
.contact__map svg { width: 100%; height: auto; }
.map__water { fill: #4F6F8F; font-family: var(--ff-display); font-size: 17px; font-weight: 600; font-style: italic; letter-spacing: .06em; }
.map__label { fill: #fff; font-family: var(--ff-display); font-size: 19px; font-weight: 800; }
.map__sub { fill: rgba(255, 255, 255, .78); font-family: var(--ff-body); font-size: 12.5px; font-weight: 700; }
.map__street { fill: #5E6D5A; font-family: var(--ff-display); font-size: 22px; font-weight: 700; letter-spacing: .02em; }

.map__sign { transform-box: fill-box; transform-origin: 50% 100%; }
@media (max-width: 39.99rem), (min-width: 48rem) and (max-width: 63.99rem) {
  /* smalt kort (ca. 56 % af tegningen) – gør navneskilt og etiketter læsbare */
  .map__sign { transform: scale(1.45); }
  .map__water { font-size: 26px; }
  .map__street { font-size: 30px; }
}
@media (min-width: 48rem) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
  }
}
@media (min-width: 64rem) {
  .contact {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
  }
}

/* ---------- 20. Footer ---------- */
.site-footer {
  --focus: var(--c-yellow);
  padding-block: 88px 32px;
  background: var(--c-navy);
  color: var(--c-on-dark-2);
  font-size: var(--fs-sm);
}
.footer__grid { display: grid; gap: 40px; }
.footer__brand { display: grid; gap: 18px; justify-items: start; align-content: start; }
.footer__tagline { max-width: 26ch; color: #fff; font-family: var(--ff-display); font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0 36px;
  padding: 0;
  list-style: none;
}
.footer__links { display: grid; padding: 0; list-style: none; }
.footer__nav a,
.footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.footer__nav { margin-top: -10px; }
.footer__nav a:hover,
.footer__contact a:hover { text-decoration: underline; text-decoration-color: var(--c-green-hi); }
.footer__contact { display: grid; gap: 4px; align-content: start; }
.footer__bottom {
  display: grid;
  gap: 8px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: var(--c-on-dark-3);
  font-size: var(--fs-xs);
}
.footer__demo { color: var(--c-on-dark-2); }
.footer__demo a,
.footer__designs a { color: #fff; font-weight: 700; text-decoration-color: var(--c-green-hi); }
.footer__designs { color: var(--c-on-dark-2); }
.footer__demo a,
.footer__designs a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.footer__designs a[aria-current="page"] { color: var(--c-green-hi); text-decoration: none; }
/* "Tilpas demoen" (knap fra ../demo-tilpas.js) ligner linkene på samme linje, med samme 44 px trykflade */
.footer__designs .dlc-linkbtn {
  position: relative; /* over linjen nedenunder, så hele trykfladen virker */
  z-index: 1;
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
  text-decoration-color: var(--c-green-hi);
}
.footer__designs .dlc-linkbtn:hover { text-decoration-color: var(--c-green); }

@media (min-width: 44rem) and (max-width: 55.99rem) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "brand nav" "brand contact";
    gap: 32px 40px;
  }
  .footer__brand { grid-area: brand; }
  .footer__nav { grid-area: nav; }
  .footer__contact { grid-area: contact; }
}
@media (min-width: 56rem) {
  .footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 48px; }
}

/* ---------- 21. Dialog med embed-koden ---------- */
.embed-dialog {
  width: min(46rem, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--c-ink);
  box-shadow: var(--shadow-3);
  overflow: auto;
}
.embed-dialog::backdrop {
  background: rgba(14, 28, 48, .64);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.embed-dialog__inner {
  position: relative;
  padding: clamp(24px, 1rem + 2.5vw, 40px);
}
.embed-dialog__x {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--c-mist);
  color: var(--c-navy);
  cursor: pointer;
  transition: background-color .2s;
}
.embed-dialog__x:hover { background: var(--c-mist-2); }
.embed-dialog__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-right: 44px;
}
.embed-dialog p { color: var(--c-ink-2); }
.code {
  margin: 22px 0;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--c-navy);
  color: #E6EDF6;
  font-family: var(--ff-mono);
  font-size: .8125rem;
  line-height: 1.7;
  white-space: pre-wrap;
  tab-size: 2;
}
/* URL'en brydes ved kanten – ikke ved dens egne bindestreger, som ellers ligner rigtige linjeskift */
.code .c-url { word-break: break-all; }
.code code { font: inherit; }
.c-t { color: #8FD0FF; }
.c-a { color: #FFD466; }
.c-v { color: #A6E36A; }
.embed-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}
.embed-dialog__goto {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  color: var(--c-blue);
  font-size: var(--fs-sm);
  font-weight: 700;
}
html.is-locked { overflow: hidden; }
.embed-dialog__status { min-height: 1.4em; margin-top: 12px; font-size: var(--fs-sm); }
.copybtn__check { display: none; }
.copybtn.is-done .copybtn__copy { display: none; }
.copybtn.is-done .copybtn__check { display: block; }
.copybtn.is-done { --btn-bg: var(--c-navy); --btn-bd: var(--c-navy); --btn-fg: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .embed-dialog[open] { animation: dialog-in .35s var(--ease-out); }
  .embed-dialog[open]::backdrop { animation: backdrop-in .3s ease; }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 22. Scroll-reveal (kun med JS, kun uden reduced motion) ---------- */
.js .reveal:not(.is-visible) {
  opacity: 0;
  translate: 0 18px;
}
.js .reveal {
  transition: opacity .8s var(--ease-out) var(--d, 0ms), translate .8s var(--ease-out) var(--d, 0ms);
}

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal:not(.is-visible) { opacity: 1; translate: none; }
  .signal__lamp--red::after,
  .signal__lamp--yellow::after { opacity: 0; }
}
