/* ==========================================================================
   Køreskolen Grøn Bølge – "Nordisk lys"
   Birkelyst papir, granskovsblæk og signalgrøn (#61A610, samme grøn som
   Drivelogger-formularens knapper). Fraunces (blød) + Albert Sans.
   ========================================================================== */

/* ---------- 1. Designsystem ---------- */
:root {
  /* Farver */
  --paper: #F6F5EE;          /* birkepapir – sidens grund */
  --white: #FFFFFF;
  --sand: #EDE6D7;           /* varm sand – sekundære flader */
  --sand-deep: #D8CBB0;
  --sage: #E3EADB;           /* blød salvie – "skrivebordet" */
  --sage-mid: #C7D5BA;
  --sage-deep: #8DA784;
  --ink: #0F2A1C;            /* granskov – al tekst */
  --ink-raised: #1B3D2B;
  --ink-soft: #3E5347;
  --ink-muted: #53665A;
  --signal: #61A610;         /* signalgrøn – = formularens knapper */
  --signal-bright: #70B51F;
  --signal-ink: #3D7309;     /* grøn tekst på lys baggrund (AA) */
  --signal-pale: #DCEDC5;
  --signal-glow: rgba(97, 166, 16, 0.2);
  --on-ink: #F1F2E8;
  --on-ink-muted: #B9C6B6;
  --line: rgba(15, 42, 28, 0.12);
  --line-strong: rgba(15, 42, 28, 0.22);
  --focus: #3D7309;

  /* Typografi */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Albert Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --fs-lead: clamp(1.1563rem, 1.08rem + 0.38vw, 1.375rem);
  --fs-h3: clamp(1.3125rem, 1.2rem + 0.5vw, 1.5625rem);
  --fs-h2: clamp(2.125rem, 1.5rem + 2.7vw, 3.625rem);
  --fs-h1: clamp(2.75rem, 1.6rem + 4.6vw, 5.1rem);
  --fs-figure: clamp(3.5rem, 2.4rem + 5vw, 6.5rem);
  --soft: "SOFT" 100, "WONK" 0;

  /* Rum */
  --gutter: clamp(1rem, 0.5rem + 2.6vw, 2.5rem);
  --container: 77.5rem;
  --section-y: clamp(4rem, 2.6rem + 5vw, 7.25rem);
  --sheet-inset: clamp(0.5rem, 0.2rem + 1.2vw, 1.5rem);
  --bento-gap: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem);
  --header-h: 4.5rem;

  /* Former – radius følger hierarkiet: flade > foto/kort > detalje > pille */
  --r-xs: 8px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: clamp(28px, 1.4rem + 1.6vw, 48px);
  --r-pill: 999px;

  /* Dybde – grøntonede skygger, aldrig grå */
  --shadow-1: 0 1px 2px rgba(15, 42, 28, 0.05), 0 4px 14px -6px rgba(15, 42, 28, 0.12);
  --shadow-2: 0 2px 4px rgba(15, 42, 28, 0.05), 0 22px 44px -20px rgba(15, 42, 28, 0.34);
  --shadow-desk: 0 1px 2px rgba(15, 42, 28, 0.05), 0 12px 24px -12px rgba(15, 42, 28, 0.12), 0 48px 96px -48px rgba(15, 42, 28, 0.42);

  --ease-out: cubic-bezier(0.22, 0.8, 0.26, 1);
}

/* Små skærme: løbende tekst må ikke under 16 px, og headeren fylder mindre */
@media (max-width: 30em) {
  :root {
    --fs-sm: 1rem;
    --fs-xs: 0.875rem;
    --header-h: 4rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 420;
  font-variation-settings: var(--soft);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: inherit;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
figure { margin: 0; }
a { color: inherit; }
strong { font-weight: 650; }
button { font: inherit; color: inherit; }

::selection { background: var(--signal-pale); color: var(--ink); }

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

main:focus { outline: none; }

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

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 650;
  text-decoration: none;
  --focus: #A9D873;
}
.skip-link:focus { top: 0.75rem; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Et lille "signal" – sidens tilbagevendende detalje */
.light {
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-glow);
}

/* ---------- 3. Knapper og links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}

.btn--primary {
  background: var(--signal);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 18px -10px rgba(61, 115, 9, 0.7);
}
.btn--primary:hover {
  background: var(--signal-bright);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 22px -10px rgba(61, 115, 9, 0.75);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(15, 42, 28, 0.04);
}

.btn--lg {
  min-height: 3.5rem;
  padding: 1rem 1.75rem;
  font-size: 1.0625rem;
}

.btn--block { width: 100%; }

.text-link {
  font-weight: 650;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.text-link:hover {
  color: var(--signal-ink);
  text-decoration-color: currentColor;
}

/* ---------- 4. Demo-bar ---------- */
.demo-bar {
  --focus: #A9D873;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 0.875rem;
}
.demo-bar[hidden] { display: none; }

.demo-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  min-height: 2.75rem;
  padding-block: 0.3rem;
}

.demo-bar__text {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--on-ink-muted);
}

.demo-bar__tag {
  flex: none;
  padding: 0.15rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--signal);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.demo-bar__desc {
  display: none;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Designskifter: små piller på den mørke bar */
.design-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.design-switch__label {
  margin-right: 0.3rem;
  font-size: 0.8125rem;
  color: var(--on-ink-muted);
}
.design-switch a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-pill);
  color: var(--on-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
/* Større trykflade end det synlige – baren skal forblive slank.
   28 px pille + 2 × 8 px = 44 px; vandret præcis halvdelen af mellemrummet,
   så nabopillernes flader mødes uden at overlappe. (+1px: ::after måles fra
   indersiden af pillens kant.) */
.design-switch a::after {
  content: "";
  position: absolute;
  inset: calc(-0.5rem - 1px) calc(-0.125rem - 1px);
}
.design-switch a:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); }
.design-switch a[aria-current="page"] {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
  font-weight: 750;
}

.demo-bar__open {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-block: -0.3rem;
  padding: 0 0.1rem;
  border: 0;
  background: none;
  color: var(--on-ink);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.demo-bar__open:hover { color: #FFFFFF; text-decoration-color: #A9D873; }
.demo-bar__open-long { display: none; }

.demo-bar__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: -0.3rem -0.6rem -0.3rem -0.3rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--on-ink-muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.demo-bar__close:hover { background: rgba(255, 255, 255, 0.08); color: var(--on-ink); }

/* "Tilpas" (sættes ind af demo-tilpas.js med samme klasse som "Se koden"):
   en stille sekundær handling – dæmpet tekst og tynd understregning, mens
   "Se hvordan formularen er sat ind" beholder den grønne. Er demoen tilpasset,
   viser et lille signallys det, som sidens øvrige "lys". */
.demo-bar .dlc-trigger {
  justify-content: center;
  min-width: 2.75rem;
  padding-inline: 0.35rem;
  color: var(--on-ink-muted);
  font-weight: 600;
  text-decoration-color: rgba(185, 198, 182, 0.45);
  text-decoration-thickness: 1px;
}
.demo-bar .dlc-trigger:hover { color: var(--on-ink); text-decoration-color: currentColor; }
.demo-bar .dlc-dot {
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.45rem;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(97, 166, 16, 0.3);
}
/* Panelets overskrift (Fraunces) i samme vægt som sidens mellemoverskrifter */
.dlc { --dlc-title-weight: 560; }

/* Mobil: række 1 = Demo · Tilpas · Se koden · luk, række 2 = designskifteren.
   Hver række er præcis 44 px, så knappernes og pillernes trykflader ligger
   side om side i stedet for oven i hinanden (op til 37.5em – derunder kan
   én række med "Tilpasset" ikke rummes). */
@media (max-width: 37.49em) {
  .demo-bar__inner { padding-block: 0; row-gap: 0; }
  .demo-bar__text { order: 0; }
  .demo-bar__open { order: 1; margin-block: 0; }
  .demo-bar__open:not(.dlc-trigger) { margin-right: auto; }
  .demo-bar__close { order: 2; margin-block: 0; }
  .design-switch {
    order: 3;
    flex: 1 0 100%;
    height: 2.75rem;
    margin: 0;
    padding-bottom: 0.75rem;
  }
  /* Pillen står 2 px under rækkens top; fladen fylder rækken ud (2 + 28 + 14) */
  .design-switch a::after { inset: calc(-0.125rem - 1px) calc(-0.125rem - 1px) calc(-0.875rem - 1px); }
}

@media (min-width: 37.5em) {
  /* Én række: hellere en afkortet beskrivelse end en ekstra linje */
  .demo-bar__inner { flex-wrap: nowrap; }
}

@media (min-width: 48em) {
  .demo-bar__open-long { display: inline; }
  .demo-bar__open-short { display: none; }
}

@media (min-width: 75em) {
  .demo-bar__desc { display: inline; }
}

/* ---------- 5. Header og navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 245, 238, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--paper); }
}
.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--line);
  box-shadow: 0 14px 30px -26px rgba(15, 42, 28, 0.45);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding-block: 0.4rem; /* luft, hvis et langt navn fylder logoet ud til to linjer */
}

.brand {
  --mark-bg: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.brand__mark {
  width: 2.625rem;
  height: 2.625rem;
  flex: none;
  transition: transform 0.4s var(--ease-out);
}
.brand__mark-bg { fill: var(--mark-bg); }
.brand:hover .brand__mark { transform: rotate(-6deg); }

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
}
.brand__kicker {
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
/* Navnet kan skiftes i "Tilpas demoen": et langt navn bryder over højst to
   balancerede linjer som et ordmærke og afkortes derefter med "…". Den lille
   polstring i bunden giver plads til g/j/p, som overflow ellers ville klippe
   (med line-height 1.15 rækker Fraunces' underlænger 0,03em under linjen –
   og polstringen er for lille til, at en afkortet tredje linje titter frem). */
.brand__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-width: 14em;
  padding-bottom: 0.05em;
  margin-bottom: -0.05em;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 540;
  font-variation-settings: var(--soft);
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.brand--light {
  --mark-bg: #1F4632;
  color: var(--on-ink);
}
.brand--light .brand__kicker { color: var(--on-ink-muted); }

/* Menu, knapper og topmenu giver aldrig plads – det er logoet, der bryder */
.site-header__cta,
.nav-toggle,
.site-nav { flex-shrink: 0; }

.site-header__cta {
  display: none;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.95rem;
}

.nav-toggle {
  order: 1; /* står før menuen i DOM (fokusrækkefølge), men vises efter CTA */
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem 0.5rem 0.85rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.nav-toggle:hover { border-color: var(--ink); }

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle__icon {
  position: relative;
  transition: background-color 0.2s;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle__icon::before { top: -5px; }
.nav-toggle__icon::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav__list { list-style: none; }
.site-nav__list a { text-decoration: none; }

@media (max-width: 67.99em) {
  .site-header.is-open .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: var(--menu-max, calc(100dvh - var(--header-h)));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem var(--gutter) 1.75rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(15, 42, 28, 0.4);
  }
  .site-nav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-variation-settings: var(--soft);
    font-weight: 420;
  }
  .site-nav__list a:hover { color: var(--signal-ink); }
  .site-nav__extra {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  .site-nav__extra .btn { flex: 1 1 12rem; }

  @media (prefers-reduced-motion: no-preference) {
    .site-header.is-open .site-nav { animation: menu-in 0.35s var(--ease-out); }
  }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 30em) {
  .site-header__cta { display: inline-flex; }
}

@media (max-width: 30em) {
  .site-header { background: rgba(246, 245, 238, 0.95); }
  .brand { gap: 0.6rem; }
  .brand__mark { width: 2.25rem; height: 2.25rem; }
  .brand__kicker { font-size: 0.72rem; margin-bottom: 0.15rem; }
  .brand__name { font-size: 1.2rem; }
}

/* Åben mobilmenu: siden bag menuen ruller ikke med */
@media (max-width: 67.99em) {
  html.menu-open { overflow: hidden; }
}

@media (min-width: 68em) {
  .site-nav { display: block; }
  .site-nav__list { display: flex; gap: 0.15rem; }
  .site-nav__list a {
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: var(--r-pill);
    font-size: 0.96rem;
    font-weight: 550;
    color: var(--ink-soft);
    transition: color 0.2s, background-color 0.2s;
  }
  .site-nav__list a:hover { color: var(--ink); background: rgba(15, 42, 28, 0.05); }
  .site-nav__list a.is-current { color: var(--ink); background: var(--sage); }
  .site-nav__extra { display: none; }
  .nav-toggle { display: none; }
  .site-header__cta { margin-left: 0.5rem; }
}

/* ---------- 6. Sektioner, flader og overskrifter ---------- */
.section {
  position: relative;
  padding-block: var(--section-y);
}

.sheet {
  margin-inline: var(--sheet-inset);
  border-radius: var(--r-xl);
}
.sheet--sand { background: var(--sand); }
.sheet--sage { background: var(--sage); }

/* Prikken følger første linje, hvis etiketten brydes (fx "Hvorfor" + et langt skolenavn) */
.section-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.6;
  color: var(--signal-ink);
}
.section-label::before {
  content: "";
  flex: none;
  margin-top: calc((1.6em - 0.55rem) / 2);
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-glow);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem);
}
.section-head h2 { font-size: var(--fs-h2); }
.section-head__intro {
  max-width: 34rem;
  font-size: var(--fs-md);
  color: var(--ink-soft);
}

.section-head--split {
  display: grid;
  gap: 1.25rem 4rem;
  max-width: none;
  align-items: end;
}
@media (min-width: 56em) {
  .section-head--split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .section-head--split .section-head__intro { padding-bottom: 0.4rem; }
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- 7. Hero ---------- */
.hero {
  padding-top: clamp(2rem, 1rem + 3vw, 2.75rem);
  padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  align-items: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
}

.hero__title {
  max-width: 12.5ch;
  font-size: var(--fs-h1);
  font-weight: 390;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero__lead {
  max-width: 34rem;
  margin-top: 1.4rem;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__call {
  margin-top: 1.1rem;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}
/* Større trykflade på telefonlinket uden at flytte layoutet */
.hero__call .text-link {
  display: inline-block;
  padding-block: 0.7rem;
  margin-block: -0.7rem;
}

.hero__media { position: relative; }

.hero__photo {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sage);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__photo--main {
  aspect-ratio: 4 / 3;
  border-radius: clamp(24px, 1rem + 1.6vw, 40px);
}
.hero__photo--main img { object-position: 50% 40%; }
.hero__photo--city { display: none; }
/* Beskær de slørede blomster i forgrunden væk */
.hero__photo--city img {
  object-position: 60% 20%;
  transform: scale(1.42);
  transform-origin: 58% 12%;
}

.hero__next {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.15rem 0.8rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-2);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.hero__next:hover { transform: translateY(-2px); }
.hero__next-text { display: flex; flex-direction: column; line-height: 1.25; }
.hero__next-text strong { font-size: 0.95rem; }
.hero__next-text span {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--signal-ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

@media (min-width: 40em) {
  .hero__media { padding-bottom: 11%; }
  .hero__photo--main { aspect-ratio: 16 / 10; }
  .hero__photo--city {
    display: block;
    position: absolute;
    left: -0.5rem;
    bottom: 0;
    width: 40%;
    aspect-ratio: 4 / 3;
    border: 6px solid var(--paper);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2);
  }
  .hero__next {
    left: auto;
    right: 1rem;
    bottom: calc(11% + 1rem);
  }
}

@media (min-width: 60em) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .hero__media { padding: 0 0 12% 9%; }
  .hero__photo--main { aspect-ratio: 20 / 17.5; }
  .hero__photo--city { left: -3%; width: 47%; border-width: 8px; }
  .hero__next { bottom: calc(12% + 1.25rem); right: 1.25rem; }
}

/* Signalrækken: fire tal, der får grønt lys ét for ét (den grønne bølge) */
.signal-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.25rem;
  margin-top: clamp(2.5rem, 1.75rem + 2vw, 3.25rem);
}
@media (min-width: 56em) {
  .signal-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}

.signal {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 1.75rem;
}
.signal::before,
.signal::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
}
.signal::before { background: var(--sage-mid); }
.signal::after {
  background: var(--signal);
  transform-origin: left center;
}

.signal__dot {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-glow);
}

.signal__value {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.625rem);
  font-weight: 420;
  font-variation-settings: var(--soft);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variant-numeric: lining-nums;
}
.icon--star {
  width: 0.72em;
  height: 0.72em;
  color: var(--signal);
}

.signal__label {
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--ink-muted);
}

/* Bølgen spilles én gang, når rækken kommer til syne (klassen sættes af main.js) */
@media (prefers-reduced-motion: no-preference) {
  .js .signal-strip:not(.is-live) .signal::after { transform: scaleX(0); }
  .js .signal-strip:not(.is-live) .signal__dot { background: var(--sage-mid); box-shadow: none; }
  .signal-strip.is-live .signal::after {
    animation: wave-fill 0.9s var(--ease-out) both;
    animation-delay: calc(0.25s + var(--i, 0) * 0.3s);
  }
  .signal-strip.is-live .signal__dot {
    animation: wave-light 0.7s ease-out both;
    animation-delay: calc(0.25s + var(--i, 0) * 0.3s);
  }
}

@keyframes wave-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes wave-light {
  0% { background: var(--sage-mid); box-shadow: 0 0 0 0 rgba(97, 166, 16, 0); }
  55% { background: var(--signal); box-shadow: 0 0 0 9px rgba(97, 166, 16, 0.24); }
  100% { background: var(--signal); box-shadow: 0 0 0 4px var(--signal-glow); }
}

/* ---------- 8. Hvorfor (bento) ---------- */
.why {
  padding-top: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: calc(var(--section-y) * 0.5);
}

.why__grid {
  display: grid;
  gap: var(--bento-gap);
  grid-template-columns: minmax(0, 1fr);
}

.why__intro { padding: 0 0 1.5rem; }
.why__intro h2 { font-size: var(--fs-h2); max-width: 14ch; }
.why__intro .lead { margin-top: 1.25rem; max-width: 30rem; }

.why__photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sage);
  aspect-ratio: 4 / 3;
}
.why__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.why__photo--app { aspect-ratio: 16 / 9; }
.why__photo--lesson img { object-position: 56% 45%; }
.why__photo--app img { object-position: 34% 62%; }

.usp {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 1.1rem + 1vw, 2.1rem);
  border-radius: var(--r-md);
  background: var(--white);
}
.usp--sage { background: var(--sage); }
.usp--sand { background: var(--sand); }
.usp h3 { font-size: var(--fs-h3); line-height: 1.15; }
.usp p { color: var(--ink-soft); font-size: 1rem; }

.usp__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: var(--signal-pale);
  color: var(--signal-ink);
}
.usp--sage .usp__icon,
.usp--sand .usp__icon { background: var(--white); }
.usp__icon .icon { width: 1.4rem; height: 1.4rem; }

@media (min-width: 40em) {
  .why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "intro  intro"
      "lesson lesson"
      "u1     u2"
      "app    app"
      "u3     u4";
  }
  .why__intro { grid-area: intro; }
  .why__photo--lesson { grid-area: lesson; aspect-ratio: 16 / 9; }
  .why__photo--app { grid-area: app; }
  .usp:nth-of-type(1) { grid-area: u1; }
  .usp:nth-of-type(2) { grid-area: u2; }
  .usp:nth-of-type(3) { grid-area: u3; }
  .usp:nth-of-type(4) { grid-area: u4; }
}

@media (min-width: 64em) {
  .why__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "intro  intro  lesson"
      "u1     u2     lesson"
      "app    u3     u4";
  }
  .why__intro { padding: 1rem 2rem 2.25rem 0; align-self: end; }
  .why__intro .lead { max-width: 34rem; }
  .why__photo--lesson { aspect-ratio: auto; min-height: 26rem; }
  .why__photo--lesson img { object-position: 58% 50%; }
  .why__photo--app { aspect-ratio: auto; min-height: 16rem; }
}

/* ---------- 9. Kørekort ---------- */
.licences { padding-top: calc(var(--section-y) * 0.6); }

.licences__grid {
  display: grid;
  gap: var(--bento-gap);
  grid-template-columns: minmax(0, 1fr);
}

.licence {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--white);
}
.licence--lyn { background: var(--sage); }
.licence--trailer { background: var(--sand); }

.licence__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sage);
}
.licence__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
/* Undervisningsbilledet: hænderne ved rat og gearstang er motivet */
.licence--b .licence__media img { object-position: 55% 78%; }
.licence:hover .licence__media img { transform: scale(1.035); }

.licence__body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
  padding: clamp(1.5rem, 1.1rem + 1.3vw, 2.4rem);
}
.licence__body > p:not([class]) { color: var(--ink-soft); }

.licence__tag {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--sage);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 650;
}
.licence--lyn .licence__tag,
.licence--trailer .licence__tag { background: rgba(255, 255, 255, 0.7); }

.licence h3 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.95rem); line-height: 1.1; }

.licence__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.licence .checklist { margin-bottom: 0.75rem; }
.licence__foot .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-block: -0.5rem;
}

.licence__price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 460;
  font-variation-settings: var(--soft);
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
}
.licence__price span {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 550;
  letter-spacing: 0;
  color: var(--ink-muted);
}

.licence__figure {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  color: var(--ink);
}
.licence__figure-num {
  font-size: var(--fs-figure);
  font-weight: 360;
  line-height: 0.85;
  letter-spacing: -0.045em;
  font-variant-numeric: lining-nums;
}
.licence__figure-unit {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  font-weight: 420;
}
.licence__figure-pre {
  margin-right: -0.2rem;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.4rem);
  font-weight: 420;
  color: var(--ink-muted);
}
.licence__figure-caption {
  margin-top: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

/* Bil + trailer: en lille stregtegning, der fylder trailerkortets sidefelt */
.licence__rig {
  display: block;
  width: 100%;
  max-width: 15rem;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--signal-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.licence__rig-ground { stroke: var(--sand-deep); stroke-dasharray: 1 7; stroke-width: 2.5; }
.licence__rig-wheel { fill: var(--sand); }

.licence__equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--ink-soft);
}
.licence__equation .licence__chip {
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
}
.licence__plus { color: var(--ink-muted); }
/* "+" følger trailer-chippen, så ombrydningen læses som et regnestykke */
.licence__plus-group { display: inline-flex; align-items: center; gap: 0.4rem; }

.licence__body--split { gap: 1.75rem; }
.licence__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
}
.licence--lyn .licence__aside { justify-content: flex-start; gap: 0; }
.licence__main {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}
.licence__main > p:not([class]) { color: var(--ink-soft); }

.note {
  display: flex;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-soft);
}
.note .icon { margin-top: 0.1em; color: var(--signal-ink); }

.licence--trailer .licence__figure-num { font-size: clamp(3rem, 1.5rem + 3vw, 4.5rem); }

/* Tablet: fire vandrette kort i fuld bredde – foto/tal til venstre, tekst til højre.
   Så bestemmer teksten højden, og der opstår ingen tomme felter */
@media (min-width: 48em) and (max-width: 63.99em) {
  .licence--b,
  .licence--148 { flex-direction: row; }
  .licence--b .licence__media,
  .licence--148 .licence__media { flex: 0 0 38%; aspect-ratio: auto; }
  .licence__body--split { flex-direction: row; gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
  .licence--trailer .licence__aside { flex: 0 0 34%; }
  .licence--lyn .licence__body--split { flex-direction: column; gap: 0.9rem; }
  .licence--lyn .licence__aside { flex-direction: row; align-items: flex-end; gap: 1.25rem; margin-bottom: 0.5rem; }
  .licence--lyn .licence__figure-caption { max-width: 15rem; margin-bottom: 0.35rem; }
  .licence--148 .licence__media img { object-position: 36% 50%; }
}

@media (min-width: 64em) {
  .licences__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .licence--b { grid-column: span 5; }
  .licence--148 { grid-column: span 7; }
  .licence--lyn { grid-column: span 5; }
  .licence--trailer { grid-column: span 7; }
  /* Billedet i B-kortet tager den ekstra højde, så de to kort ender lige */
  .licence--b .licence__media { aspect-ratio: auto; flex: 1 1 auto; min-height: clamp(18rem, 26vw, 23.75rem); }
  .licence--b .licence__body { flex: 0 0 auto; }
  .licence--148 .licence__media { aspect-ratio: auto; height: clamp(18rem, 26vw, 23.75rem); }
  .licence--trailer .licence__body--split { flex-direction: row; gap: 2rem; }
  .licence--trailer .licence__aside { flex: 0 0 36%; }
  .licence--lyn .licence__aside { margin-bottom: 0.75rem; }
}

@media (max-width: 30em) {
  .licence__foot { flex-direction: column; align-items: flex-start; }
}

.licences__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: var(--bento-gap);
  padding: 1.35rem clamp(1.25rem, 1rem + 1vw, 2rem);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.licences__more p { flex: 1 1 28rem; max-width: 52rem; color: var(--ink-soft); }
.licences__more strong { color: var(--ink); }

/* Tjekliste (bruges i kort og priser) */
.checklist {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.checklist li {
  position: relative;
  padding-left: 1.85rem;
  line-height: 1.5;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--signal-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D7309' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- 10. Priser ---------- */
.prices__grid {
  display: grid;
  gap: var(--bento-gap);
  grid-template-columns: minmax(0, 1fr);
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.price-card .checklist { flex: 1; align-content: start; margin-bottom: 1rem; }

.price-card__name { font-size: var(--fs-h3); }
.price-card__note { font-size: var(--fs-sm); color: var(--ink-muted); margin-top: -0.35rem; }

.price-card__price {
  display: flex;
  align-items: baseline;
  padding: 0.35rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-variant-numeric: lining-nums;
}
.price-card__amount {
  font-size: clamp(2.75rem, 2.1rem + 2.2vw, 3.625rem);
  font-weight: 380;
  line-height: 1;
  letter-spacing: -0.035em;
}
.price-card__unit {
  font-size: 1.35rem;
  font-weight: 420;
  color: var(--ink-muted);
}

.price-card__badge {
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--signal);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 750;
}

.price-card--featured {
  --focus: #A9D873;
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: var(--shadow-2);
}
.price-card--featured .price-card__note,
.price-card--featured .price-card__unit { color: var(--on-ink-muted); }
.price-card--featured .price-card__price { border-bottom-color: rgba(255, 255, 255, 0.14); }
.price-card--featured .checklist li::before {
  background-color: rgba(169, 216, 115, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9D873' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E");
}

/* Tablet: det fremhævede kort øverst i fuld bredde, de to andre side om side */
@media (min-width: 48em) and (max-width: 59.99em) {
  .prices__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card--featured { grid-column: 1 / -1; order: -1; }
  .price-card--featured .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.75rem; }
}

@media (min-width: 60em) {
  .prices__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    padding-block: 1.25rem;
  }
  .price-card--featured { margin-block: -1.25rem; padding-block: 3rem; }
}

.prices__details {
  display: grid;
  gap: var(--bento-gap);
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}
@media (min-width: 60em) {
  .prices__details { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; }
  /* højre kolonne slutter i flugt med lovpakke-kortet */
  .prices__side { grid-template-rows: auto 1fr; }
  .prices__details .fees-note { grid-column: 1 / -1; max-width: none; }
}

.lovpakke {
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--white);
}
.lovpakke h3 { font-size: var(--fs-h3); margin-bottom: 0.75rem; }
.lovpakke > p { color: var(--ink-soft); max-width: 40rem; }
.lovpakke__foot { margin-top: 1.5rem; font-size: var(--fs-sm); }

.lesson-bar {
  display: flex;
  gap: 3px;
  height: 2.75rem;
  margin: 1.75rem 0 1.5rem;
  overflow: hidden;
  border-radius: var(--r-sm);
}
.lesson-bar__seg { flex: var(--n) 1 0; min-width: 6px; }
.lesson-bar__seg--teori { background: var(--sage-deep); }
.lesson-bar__seg--bane { background: var(--sand-deep); }
.lesson-bar__seg--vej { background: var(--signal); }
.lesson-bar__seg--glat { background: var(--ink); }

.lesson-legend {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}
@media (min-width: 40em) {
  .lesson-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.lesson-legend__item {
  position: relative;
  padding-top: 0.9rem;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--ink-soft);
}
.lesson-legend__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.5rem;
  height: 4px;
  border-radius: 2px;
  background: var(--swatch);
}
.lesson-legend__item--teori { --swatch: var(--sage-deep); }
.lesson-legend__item--bane { --swatch: var(--sand-deep); }
.lesson-legend__item--vej { --swatch: var(--signal); }
.lesson-legend__item--glat { --swatch: var(--ink); }
.lesson-legend__num {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 400;
  font-variation-settings: var(--soft);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}

.prices__side {
  display: grid;
  gap: var(--bento-gap);
  align-content: start;
}

.panel {
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.6);
}
.panel h3 { font-size: 1.3rem; margin-bottom: 0.85rem; }
.panel > p { color: var(--ink-soft); }

.leaders { display: grid; gap: 0.65rem; }
.leader {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.leader dt { flex: 0 1 auto; color: var(--ink-soft); }
.leader::after {
  content: "";
  order: 1;
  flex: 1 1 1.5rem;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--line-strong);
  transform: translateY(-0.3em);
}
.leader dd {
  order: 2;
  flex: none;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Smalle skærme: kortere prikker, så „(45 min.)“ og „med vogntog“ bliver på linjen */
@media (max-width: 30em) {
  .leader { gap: 0.4rem; }
  .leader::after { flex-basis: 0.75rem; min-width: 0.75rem; }
}

.fees-note {
  max-width: 60rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--signal);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(255, 255, 255, 0.45);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.fees-note strong { color: var(--ink); }

/* ---------- 11. Forløbet (ruten) ---------- */
.route__grid {
  display: grid;
  gap: clamp(3rem, 2rem + 3vw, 5rem);
}
.route__sticky h2 { font-size: var(--fs-h2); }
.route__sticky .lead { margin-top: 1.25rem; max-width: 30rem; }

.route__photo { margin-top: 2.25rem; }
.route__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--sage);
}
.route__photo figcaption {
  margin-top: 0.8rem;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

@media (min-width: 60em) {
  .route__grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .route__sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
  .route__steps { padding-top: 0.5rem; }
}

.route__steps { list-style: none; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-bottom: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
}
.step:last-child { padding-bottom: 0; }

/* Vejstriben mellem trinene: stiplet, og grøn når du er kommet forbi */
.step::before,
.step::after {
  content: "";
  position: absolute;
  left: calc(1.375rem - 1px);
  top: 3.25rem;
  bottom: 0.5rem;
  width: 2px;
  border-radius: 2px;
}
.step::before {
  background: repeating-linear-gradient(to bottom, var(--sage-mid) 0 8px, transparent 8px 15px);
}
.step::after {
  background: var(--signal);
  transform-origin: top center;
  transition: transform 0.9s var(--ease-out) 0.2s;
}
.step:last-child::before,
.step:last-child::after { display: none; }

.step__light {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 560;
  font-variation-settings: var(--soft);
  font-variant-numeric: lining-nums;
  box-shadow: 0 0 0 5px var(--signal-glow);
  transition: background-color 0.5s, color 0.5s, box-shadow 0.5s;
}

.js .step:not(.is-lit) .step__light {
  background: var(--white);
  color: var(--ink-muted);
  box-shadow: inset 0 0 0 1.5px var(--sage-mid);
}
.js .step:not(.is-lit)::after { transform: scaleY(0); }

.step__body h3 {
  margin-top: 0.4rem;
  font-size: var(--fs-h3);
  line-height: 1.2;
}
.step__body p {
  max-width: 34rem;
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

/* ---------- 12. Tilmelding – "skrivebordet" ---------- */
.desk { overflow: clip; }

.desk__waves {
  position: absolute;
  top: 0.75rem;
  left: 0;
  width: 100%;
  height: clamp(48px, 7vw, 104px);
  pointer-events: none;
}
.desk__waves path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.desk__waves .desk__wave-green { stroke: rgba(97, 166, 16, 0.55); stroke-width: 2; }

.desk .container { position: relative; }

.desk__grid {
  display: grid;
  gap: var(--bento-gap);
  grid-template-columns: minmax(0, 1fr);
}

/* Mobil: trin → formular → noter → kontakt */
@media (max-width: 63.99em) {
  .desk__col { display: contents; }
  .desk-steps { order: 1; }
  .desk__form { order: 2; margin-block: 0.75rem; }
  .desk-notes { order: 3; }
  .desk-contact { order: 4; }
}

/* Tablet: trinene som en vandret 1-2-3, noterne i to kolonner */
@media (min-width: 48em) and (max-width: 63.99em) {
  .desk-steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .desk-steps li { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .desk-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk__form { margin-block: 1.25rem 0.5rem; }
}

@media (min-width: 64em) {
  .desk__grid {
    grid-template-columns: minmax(0, 21.5rem) minmax(0, 1fr);
    gap: 2rem clamp(2rem, 1rem + 2vw, 3.5rem);
    align-items: start;
  }
  .desk__col {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    display: grid;
    gap: 1rem;
  }
}

.desk-steps {
  padding: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.desk-steps h3 { font-size: 1.35rem; }
.desk-steps ol {
  list-style: none;
  counter-reset: desk;
  display: grid;
  gap: 1.1rem;
  margin-top: 1.35rem;
}
.desk-steps li {
  counter-increment: desk;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.9rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-soft);
}
.desk-steps li::before {
  content: counter(desk);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: var(--soft);
}
.desk-steps strong { display: block; color: var(--ink); font-size: 1rem; }

.desk-notes {
  display: grid;
  gap: 0.75rem;
}
.desk-note {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.55);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-soft);
}
.desk-note .icon { margin-top: 0.1em; color: var(--signal-ink); }
.desk-note strong { color: var(--ink); }

.desk-contact {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(15, 42, 28, 0.14);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-soft);
}
.desk-contact__avatar {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 25%;
  background: var(--sand);
  box-shadow: 0 0 0 3px var(--paper);
}
.desk-contact__title {
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.desk-contact a { overflow-wrap: anywhere; }

/* Formularkortet: det hvide ark på skrivebordet */
.form-card {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-desk);
}

.form-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1.1rem clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  border-bottom: 1px solid var(--line);
}
.form-card__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 480;
  font-variation-settings: var(--soft);
}
.form-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem 0.3rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--ink-soft);
}
.dl-badge .icon { width: 1rem; height: 1rem; color: var(--signal-ink); }

.code-peek {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  margin-block: -0.5rem;
  padding: 0.3rem 0.65rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.code-peek .icon { width: 1rem; height: 1rem; }
.code-peek:hover { background: var(--sage); color: var(--ink); }

.dl-embed {
  padding: clamp(0.25rem, 0.8vw, 0.75rem) clamp(0rem, 0.8vw, 0.75rem) 0;
}
.dl-embed iframe { width: 100%; }

/* Mobil: formularen får næsten hele skærmbredden – skrivebordet går kant til kant,
   og det hvide kort rækker ud over containerens margen */
@media (max-width: 30em) {
  .desk.sheet { margin-inline: 0; }
  .desk .form-card {
    margin-inline: calc(-1 * var(--gutter) + 0.375rem);
    border-radius: var(--r-md);
  }
  .dl-embed { padding: 0; }
  .form-card__head { gap: 0.4rem 0.75rem; padding: 0.85rem 1rem 0.8rem; }
  .form-card__meta { flex-wrap: nowrap; gap: 0.25rem; }
  .form-card__foot { padding-inline: 1rem; }

  /* Hopper man til #tilmelding, skal formularen kunne ses med det samme:
     introen gentager de tre trin lige nedenunder, så den udelades her */
  .desk { padding-top: 3.5rem; }
  .desk__waves { top: 0.5rem; height: 40px; }
  .desk .section-head { margin-bottom: 1.5rem; }
  .desk .section-head__intro { display: none; }

  .desk-steps { padding: 1.1rem 1.1rem 1.2rem; }
  .desk-steps h3 { font-size: 1.2rem; }
  .desk-steps ol { gap: 0.7rem; margin-top: 0.85rem; }
  .desk-steps li { grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.75rem; line-height: 1.45; }
  .desk-steps li::before { width: 1.75rem; height: 1.75rem; font-size: 0.95rem; }
  .desk-steps strong { display: inline; font-size: inherit; }
}

.form-card__foot {
  display: flex;
  gap: 0.65rem;
  padding: 1.1rem clamp(1rem, 0.6rem + 1.5vw, 1.75rem) 1.3rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-muted);
}
.form-card__foot .icon { width: 1rem; height: 1rem; margin-top: 0.1em; color: var(--signal-ink); }

/* Lave skærme: sticky-kolonner må ikke blive klippet af – så ruller de bare med */
@media (min-width: 60em) and (max-height: 46em) {
  .route__sticky,
  .desk__col { position: static; }
}

/* ---------- 13. Kørelærerne ---------- */
.team__grid {
  display: grid;
  gap: 2.5rem var(--bento-gap);
  align-items: start;
}

.person {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  align-content: start;
}
.person__photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% var(--r-md) var(--r-md) / 40% 40% var(--r-md) var(--r-md);
  background: var(--sage);
}
.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.person:hover .person__photo img { transform: scale(1.03); }

.person h3 { font-size: var(--fs-h3); }
.person__role {
  margin-top: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--signal-ink);
}
.person__bio { margin-top: 0.85rem; color: var(--ink-soft); }
.person__fun {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--sand);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-soft);
}
.person__fun strong { color: var(--ink); }

/* Mobil: foto ved siden af navn og rolle, bio og sjov detalje i fuld bredde */
@media (max-width: 47.99em) {
  .person {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    grid-template-areas:
      "photo name"
      "photo role"
      "bio   bio"
      "fun   fun";
    gap: 0 1.1rem;
  }
  .person__photo { grid-area: photo; }
  .person__body { display: contents; }
  .person h3 { grid-area: name; align-self: end; }
  .person__role { grid-area: role; align-self: start; }
  .person__bio { grid-area: bio; margin-top: 1rem; }
  .person__fun { grid-area: fun; }
}

@media (min-width: 48em) {
  .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .person { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .person__photo { border-radius: 50% 50% var(--r-lg) var(--r-lg) / 40% 40% var(--r-lg) var(--r-lg); }
}
@media (min-width: 64em) {
  .person:nth-child(2) { margin-top: 4rem; }
}

/* ---------- 14. Anmeldelser ---------- */
.reviews { padding-top: calc(var(--section-y) * 0.6); }

.reviews__grid {
  display: grid;
  gap: 2.5rem clamp(2rem, 1rem + 4vw, 5rem);
}
@media (min-width: 60em) {
  .reviews__grid { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); align-items: start; }
  .reviews__summary { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.reviews__summary h2 { font-size: var(--fs-h2); max-width: 10ch; }

.score {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-variation-settings: var(--soft);
  font-variant-numeric: lining-nums;
}
.score__value {
  font-size: var(--fs-figure);
  font-weight: 360;
  line-height: 0.85;
  letter-spacing: -0.045em;
}
.score__of { font-size: 1.75rem; color: var(--ink-muted); }

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--signal-ink);
}
.stars svg { width: 1.05rem; height: 1.05rem; }
.stars .is-empty { color: var(--ink-muted); }
.stars--lg { margin-top: 1rem; }
.stars--lg svg { width: 1.35rem; height: 1.35rem; }

.reviews__meta {
  margin-top: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.reviews__meta span { display: block; color: var(--ink-muted); }

.reviews__list { column-gap: var(--bento-gap); }
@media (min-width: 40em) {
  .reviews__list { columns: 2; }
}

.review {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: var(--bento-gap);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--white);
  break-inside: avoid;
}
.review blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 380;
  font-variation-settings: var(--soft);
  line-height: 1.45;
  letter-spacing: -0.005em;
  hanging-punctuation: first;
}
.review figcaption { font-size: var(--fs-sm); color: var(--ink-muted); }
.review figcaption strong { color: var(--ink); }

.review--feature { background: var(--sage); }
.review--feature blockquote { font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.5rem); line-height: 1.38; }

/* ---------- 15. FAQ ---------- */
.faq { padding-top: calc(var(--section-y) * 0.6); }

.faq__grid {
  display: grid;
  gap: 2rem clamp(2rem, 1rem + 5vw, 6rem);
}
@media (min-width: 60em) {
  .faq__grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.4fr); align-items: start; }
  .faq__sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.faq__intro h2 { font-size: var(--fs-h2); }
.faq__help { margin-top: 1.25rem; max-width: 22rem; color: var(--ink-soft); }
.faq__help a { overflow-wrap: anywhere; }

.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item:first-child { border-top: 1px solid var(--line-strong); }

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.375rem);
  font-weight: 460;
  font-variation-settings: var(--soft);
  line-height: 1.3;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:hover { color: var(--signal-ink); }

.faq-item__icon {
  position: relative;
  flex: none;
  width: 2rem;
  height: 2rem;
  margin-top: -0.1rem;
  border-radius: 50%;
  background: var(--sage);
  transition: background-color 0.25s, transform 0.35s var(--ease-out);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.8rem;
  height: 2px;
  margin: -1px 0 0 -0.4rem;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out);
}
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__icon { background: var(--signal); transform: rotate(180deg); }
.faq-item[open] .faq-item__icon::after { transform: rotate(0deg); }

.faq-item__body {
  max-width: 44rem;
  padding: 0 3.25rem 1.6rem 0;
  color: var(--ink-soft);
}

@media (max-width: 40em) {
  .faq-item__body { padding-right: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-item__body { animation: faq-in 0.4s var(--ease-out); }
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 16. Kontakt ---------- */
.contact__grid {
  display: grid;
  gap: 3rem clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
@media (min-width: 60em) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
/* Tablet: kontaktlisten og åbningstiderne side om side, kortet bredt nedenunder */
@media (min-width: 48em) and (max-width: 59.99em) {
  .contact__details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    margin-top: 2.25rem;
  }
  .contact__details .contact-list,
  .contact__details .hours { margin-top: 0; }
  .contact__map svg { aspect-ratio: 16 / 10; }
}
.contact__info h2 { font-size: var(--fs-h2); }
.contact__info .lead { margin-top: 1.1rem; max-width: 30rem; }

.contact-list {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  margin-top: 2.25rem;
}
.contact-list__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
  color: inherit;
  text-decoration: none;
}
.contact-list__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--signal-ink);
}
.contact-list__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-muted);
}
.contact-list__value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 460;
  font-variation-settings: var(--soft);
  overflow-wrap: anywhere;
}
a.contact-list__row .contact-list__value {
  background-image: linear-gradient(var(--signal), var(--signal));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease-out);
}
a.contact-list__row:hover .contact-list__value { background-size: 100% 2px; }
a.contact-list__row:hover .contact-list__icon { background: var(--signal-pale); }
.contact-list__icon { transition: background-color 0.2s; }
@media (max-width: 25em) {
  .contact-list__value { font-size: 1.15rem; }
}
.contact-list__aside { font-size: var(--fs-xs); color: var(--ink-muted); }

.hours {
  margin-top: 2.25rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.55);
  max-width: 30rem;
}
.hours h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.hours h3 .icon { color: var(--signal-ink); }
.hours__theory {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.hours__theory strong { color: var(--ink); }

.contact__map svg {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.contact__map figcaption {
  margin-top: 0.8rem;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}
.map-label text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink-muted);
  paint-order: stroke;
  stroke: #E9EEE1;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.map-label .map-label--water { text-anchor: middle; stroke: #CBDABD; fill: var(--ink-soft); }
.map-label .map-label--strong { font-size: 15px; font-weight: 700; fill: var(--ink); }
/* Skiltet ved markøren: HTML oven på SVG'en, så et langt skolenavn kan bryde
   over op til tre linjer (og afkortes derefter). Alle mål er i kortets viewBox-enheder
   (--u = 1/520 af bredden), så skiltet skalerer præcis som kortet. Underkanten
   står fast lige over markøren, og skiltet vokser opad. */
.contact__map-canvas {
  position: relative;
  container-type: inline-size;
}
.map-pin {
  --u: calc(100cqw / 520);
  position: absolute;
  left: calc(258 * var(--u));
  bottom: calc((234 - var(--map-crop, 0)) * var(--u));
  display: grid;
  gap: calc(4 * var(--u));
  box-sizing: border-box;
  width: max-content;
  min-width: calc(176 * var(--u));
  max-width: calc(252 * var(--u));
  margin: 0;
  padding: calc(9 * var(--u)) calc(16 * var(--u)) calc(8 * var(--u));
  border-radius: calc(14 * var(--u));
  background: var(--white);
  box-shadow: 0 calc(8 * var(--u)) calc(20 * var(--u)) rgba(15, 42, 28, 0.16);
  pointer-events: none;
}
.map-pin__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  padding-bottom: 0.05em; /* plads til underlængerne, se .brand__name */
  margin-bottom: -0.05em;
  font-family: var(--font-display);
  font-size: calc(16 * var(--u));
  font-weight: 560;
  font-variation-settings: var(--soft);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.map-pin__sub {
  font-family: var(--font-body);
  font-size: calc(12.5 * var(--u));
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--ink-muted);
}
/* Tablet: kortet beskæres til 16:10 (slice) – 77,5 enheder skæres væk i toppen og bunden */
@media (min-width: 48em) and (max-width: 59.99em) {
  .contact__map { --map-crop: 77.5; }
}

/* Mobil: kortet skaleres ned til ca. 65 % – teksten på kortet vokser tilsvarende */
@media (max-width: 30em) {
  .map-label text { font-size: 19px; stroke-width: 5px; }
  .map-label .map-label--strong { font-size: 21px; }
  .map-pin {
    left: calc(256 * var(--u));
    gap: calc(5 * var(--u));
    min-width: calc(232 * var(--u));
    max-width: calc(256 * var(--u));
    padding: calc(12 * var(--u)) calc(18 * var(--u)) calc(13 * var(--u));
    border-radius: calc(16 * var(--u));
  }
  .map-pin__title { font-size: calc(22 * var(--u)); }
  .map-pin__sub { font-size: calc(17 * var(--u)); }
}

/* ---------- 17. Footer ---------- */
.site-footer {
  --focus: #A9D873;
  position: relative;
  /* Bølgen rejser sig tæt under kontaktarket – kun en smal stribe papir imellem */
  margin-top: calc(clamp(22px, 3.5vw, 56px) + clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem));
  padding: clamp(3.5rem, 2.5rem + 4vw, 5.5rem) 0 2rem;
  background: var(--ink);
  color: var(--on-ink);
}
.site-footer__wave {
  position: absolute;
  bottom: calc(100% - 1px);
  left: 0;
  width: 100%;
  height: clamp(22px, 3.5vw, 56px);
  fill: var(--ink);
  pointer-events: none;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 48em) {
  .site-footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr); }
}

.site-footer__tagline {
  max-width: 22rem;
  margin: 1.25rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 380;
  font-variation-settings: var(--soft);
  line-height: 1.35;
  color: var(--on-ink);
}

.site-footer__heading {
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 650;
  font-variation-settings: normal;
  line-height: 1.4;
  letter-spacing: 0;
  color: #A9D873;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--on-ink-muted);
}
.site-footer ul a {
  color: var(--on-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer ul a:hover {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
/* Touch: links i footeren får 44 px høje trykflader */
@media (max-width: 47.99em) {
  .site-footer ul { gap: 0; }
  .site-footer ul li { padding-block: 0.3rem; }
  .site-footer ul a { display: inline-block; padding-block: 0.6rem; margin-block: -0.3rem; }
}

.site-footer__bottom {
  display: grid;
  gap: 0.6rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-xs);
  color: var(--on-ink-muted);
}
.site-footer__demo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0 0.85rem;
  color: var(--on-ink);
}
.site-footer__demo .light {
  margin-top: 0.4em;
  margin-left: 4px;
}
.site-footer__demo-text { display: grid; gap: 0.35rem; }
.site-footer__demo a {
  color: #A9D873;
  font-weight: 650;
  text-underline-offset: 0.2em;
}
.site-footer__designs { color: var(--on-ink-muted); }
.site-footer__design-links { white-space: nowrap; }
.site-footer__designs a {
  display: inline-block;
  padding-block: 0.35rem;
  margin-block: -0.35rem;
}
.site-footer__designs a[aria-current="page"] {
  color: var(--on-ink);
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
}
/* "Tilpas demoen" (knap fra demo-tilpas.js) ligner linkene ved siden af */
.site-footer__designs .dlc-linkbtn {
  display: inline-block;
  padding-block: 0.35rem;
  margin-block: -0.35rem;
  color: #A9D873;
  font-weight: 650;
  line-height: inherit;
  white-space: nowrap;
  text-underline-offset: 0.2em;
}
.site-footer__designs .dlc-linkbtn:hover { color: var(--on-ink); }
/* Touch: 44 px høje trykflader på design-linkene og "Tilpas demoen". Afstanden
   til linjen ovenover vokser, så fladerne ikke rækker ind over Drivelogger-linket. */
@media (max-width: 47.99em) {
  .site-footer__bottom,
  .site-footer__demo-text { gap: 0.75rem; }
  .site-footer__designs a,
  .site-footer__designs .dlc-linkbtn {
    display: inline-block;
    padding-block: calc((2.75rem - 1.6em) / 2); /* linjehøjde 1.6 → 44 px i alt */
    margin-block: calc((1.6em - 2.75rem) / 2);
  }
}
.site-footer__credits { max-width: 60rem; text-wrap: balance; }

/* ---------- 18. Dialog med embed-kode ---------- */
.embed-dialog {
  width: min(40rem, 100% - 2rem);
  max-width: none;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 50px 120px -40px rgba(15, 42, 28, 0.6);
  overflow: auto;
  overscroll-behavior: contain;
}
.embed-dialog::backdrop {
  background: rgba(15, 42, 28, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
@media (prefers-reduced-motion: no-preference) {
  .embed-dialog[open] { animation: dialog-in 0.35s var(--ease-out); }
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.embed-dialog__inner {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.embed-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.embed-dialog__kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--signal-ink);
}
.embed-dialog h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.embed-dialog__text { color: var(--ink-soft); }

.embed-dialog__x {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--sand);
  cursor: pointer;
  transition: background-color 0.2s;
}
.embed-dialog__x:hover { background: var(--sand-deep); }

.code {
  --focus: #A9D873;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #E6EDE0;
}
.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.55rem 0.55rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--on-ink-muted);
}
/* Koden beholder sin form og ruller vandret; kanten toner ud, så længe der er mere */
.code pre {
  margin: 0;
  padding: 1rem 1.1rem 1.25rem;
  font-family: var(--font-code);
  font-size: 0.8125rem;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 3rem);
  mask-image: linear-gradient(to left, transparent, #000 3rem);
}
.code pre:focus-visible { outline-offset: -3px; }
.code.is-scrolled-end pre {
  -webkit-mask-image: none;
  mask-image: none;
}
.code code { font-family: inherit; }
.tok-tag { color: #A9D873; }
.tok-attr { color: #D8CBB0; }
.tok-str { color: #F1F2E8; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--signal);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 750;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}
.copy-btn .icon { width: 1rem; height: 1rem; }
.copy-btn:hover { background: var(--signal-bright); }
.copy-btn:active { transform: scale(0.97); }
.copy-btn.is-copied { background: #A9D873; }

.copy-status {
  min-height: 1.4em;
  margin-top: -0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--signal-ink);
}
.copy-status:empty { display: none; }

.embed-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- 19. Rolig scroll-reveal (kun med JS, og kun uden reduceret bevægelse) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
  .team__grid [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
  .team__grid [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
}

/* Smalle tekstspalter på mobil: orddeling, så lange danske sammensætninger ikke laver huller */
@media (max-width: 30em) {
  .usp p,
  .person__bio,
  .person__fun,
  .desk-steps li,
  .desk-note,
  .licence__body p:not([class]),
  .licence__main p:not([class]),
  .checklist li {
    -webkit-hyphens: auto;
    hyphens: auto;
    /* kun lange sammensatte ord (fx "kørekortansøgningen") deles */
    hyphenate-limit-chars: 12 5 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 20. Print ---------- */
@media print {
  .demo-bar,
  .site-header,
  .desk__waves,
  .site-footer__wave,
  .embed-dialog { display: none !important; }
  .sheet { margin-inline: 0; }
  body { background: #FFFFFF; }
}
