/* ============================================================
   Sands Køreskole — designsystem
   Koncept: "Grønt lys" — trafiklys-farver, asfalt & creme,
   venlig afrundet typografi (Fredoka + Figtree)
   ============================================================ */

/* ---------- Fonte (selv-hostet, GDPR-venligt) ---------- */
@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/fredoka-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../assets/fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --asfalt: #201d1a;
  --asfalt-2: #2b2723;
  --asfalt-3: #3a352f;
  --creme: #faf3e7;
  --creme-2: #f3e8d4;
  --creme-3: #e7d8bd;
  --hvid-varm: #fffaf1;
  --ink: #2b2620;
  --ink-soft: #5f5648;
  --roed: #d43a27;
  --roed-dyb: #a92c1c;
  --groen: #157a3e;
  --groen-dyb: #0f5e2f;
  --groen-lys: #2fae63;
  --gul: #f4b400;
  --skygge: 0 10px 30px -12px rgba(60, 42, 20, .25);
  --skygge-lille: 0 4px 14px -6px rgba(60, 42, 20, .22);
  --radius: 20px;
  --radius-lille: 12px;
  --font-display: "Fredoka", "Avenir Next", sans-serif;
  --font-body: "Figtree", "Avenir Next", sans-serif;
  --bund-menu-h: 68px;
}

/* ---------- Reset / basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--roed-dyb); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--roed); }
:focus-visible { outline: 3px solid var(--roed); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }

.skjul-visuelt {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--asfalt); color: var(--creme);
  padding: 12px 20px; border-radius: 999px; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: var(--creme); }

.container { width: min(1380px, 100% - 3rem); margin-inline: auto; }
.container--smal { width: min(780px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Genbrugelige motiver ---------- */

/* Vejstribe: stiplet midterlinje */
.vejstribe {
  height: 6px; border: 0; margin: 0;
  background: repeating-linear-gradient(90deg,
    var(--gul) 0 34px, transparent 34px 58px);
  border-radius: 3px; opacity: .85;
}

/* Trafiklys-prikker (sektionsskille) */
.trafik-dots {
  display: flex; gap: 10px; justify-content: center; align-items: center;
  padding: 0; margin: 0;
}
.trafik-dots span {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block;
}
.trafik-dots span:nth-child(1) { background: var(--roed); }
.trafik-dots span:nth-child(2) { background: var(--gul); }
.trafik-dots span:nth-child(3) { background: var(--groen-lys); }

.kicker {
  font-family: var(--font-display); font-weight: 500;
  font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--roed); display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: .8rem;
}
/* Lyskryds-prikker (rød/gul/grøn) foran kicker-tekst */
.kicker::before {
  content: ""; flex: none; width: 46px; height: 14px;
  background:
    radial-gradient(circle at 7px 7px, var(--roed) 5.5px, transparent 6px),
    radial-gradient(circle at 23px 7px, var(--gul) 5.5px, transparent 6px),
    radial-gradient(circle at 39px 7px, var(--groen-lys) 5.5px, transparent 6px);
  background-repeat: no-repeat;
}

/* ---------- Knapper ---------- */
.knap {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.knap svg { width: 19px; height: 19px; flex: none; }
.knap:active { transform: translateY(2px); }

.knap--groen {
  background: linear-gradient(180deg, #35bb6b 0%, #1fa055 52%, #178a47 100%);
  color: #fff;
  box-shadow: 0 4px 0 #12703a, 0 8px 18px -6px rgba(21, 122, 62, .55);
}
.knap--groen:hover {
  background: linear-gradient(180deg, #41cc78 0%, #26aa5d 52%, #1a944e 100%);
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 6px 0 #12703a, 0 12px 24px -6px rgba(21, 122, 62, .6);
}
.knap--groen:active { box-shadow: 0 1px 0 #12703a; }

.knap--creme {
  background: var(--hvid-varm); color: var(--ink);
  box-shadow: 0 4px 0 var(--creme-3), var(--skygge-lille);
}
.knap--creme:hover { background: #fff; color: var(--roed); transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--creme-3), var(--skygge); }
.knap--creme:active { box-shadow: 0 1px 0 var(--creme-3); }

.knap--kontur {
  background: transparent; color: var(--creme);
  box-shadow: inset 0 0 0 2px rgba(250, 243, 231, .8);
}
.knap--kontur:hover { background: rgba(250, 243, 231, .12); color: #fff; transform: translateY(-2px); }

.knap--roed {
  background: var(--roed); color: #fff;
  box-shadow: 0 4px 0 var(--roed-dyb), var(--skygge-lille);
}
.knap--roed:hover { background: var(--roed-dyb); color: #fff; transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--roed-dyb), var(--skygge); }

/* ---------- Topbar + header ---------- */
.topbar {
  background: var(--asfalt); color: var(--creme);
  font-size: .875rem; padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar__gruppe { display: flex; gap: 22px; align-items: center; }
.topbar a { color: var(--creme); text-decoration: none; display: inline-flex; gap: 7px; align-items: center; }
.topbar a:hover { color: var(--gul); }
.topbar svg { width: 14px; height: 14px; opacity: .8; }
@media (max-width: 899px) {
  .topbar { font-size: .76rem; padding: 6px 0; }
  .topbar .container { flex-wrap: wrap; row-gap: 3px; column-gap: 16px; justify-content: center; }
  .topbar__gruppe { gap: 18px; flex-wrap: wrap; justify-content: center; }
  /* Kun tlf + mail i toppen på mobil — skjul adressen */
  .topbar__gruppe:last-child { display: none; }
}
@media (max-width: 420px) {
  .topbar { font-size: .72rem; }
  .topbar__gruppe { gap: 10px; }
}

.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--hvid-varm) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: var(--skygge-lille); }
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 12px;
}
.header__logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-left: 0; }
.header__logo-figur { height: 58px; width: auto; transform-origin: bottom center; will-change: transform; }
.header__logo-tekst { height: 50px; width: auto; }
.header__logo:hover .header__logo-figur { animation: maskot-hop .5s ease; }
@keyframes maskot-hop {
  0% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-2px) rotate(-3deg); }
  65% { transform: translateY(0) rotate(2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
.header__nav { display: flex; align-items: center; gap: 6px; }
.header__nav a {
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink);
  padding: 9px 13px; border-radius: 999px; position: relative;
}
.header__nav a:hover { background: var(--creme-2); color: var(--roed-dyb); }
.header__nav a[aria-current="page"] { color: var(--roed-dyb); }
.header__nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px;
  border-radius: 2px; background: var(--roed);
}
.header__cta { margin-left: 6px; padding: 11px 22px; font-size: .98rem; }
/* CTA-knappen skal beholde hvid tekst i nav'en (specificitet) */
.header__nav a.knap--groen,
.header__nav a.knap--groen:hover,
.header__nav a.knap--groen:focus { color: #fff; }
@media (max-width: 1099px) {
  .header__nav, .header__cta { display: none; }
  .header__logo-figur { height: 50px; }
  .header__logo-tekst { height: 42px; }
  .header .container { justify-content: flex-start; }
}

/* ---------- Mobil bundmenu ---------- */
.bundmenu {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  display: none;
  background: var(--hvid-varm);
  border-top: 1px solid var(--creme-3);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -6px 24px -12px rgba(60, 42, 20, .35);
}
.bundmenu__liste {
  display: grid; grid-template-columns: 1fr 1fr 1.35fr 1fr;
  list-style: none; margin: 0; padding: 0;
}
.bundmenu__liste > li { display: flex; margin: 0; }
.bundmenu__liste a,
.bundmenu__burger {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: var(--bund-menu-h); padding: 8px 4px;
  font-family: var(--font-body); font-size: .74rem; font-weight: 600; line-height: 1.15;
  text-align: center; text-decoration: none; border: 0; cursor: pointer;
  background: transparent; color: var(--ink);
}
.bundmenu__liste a svg { width: 23px; height: 23px; color: var(--groen); }
.bundmenu__liste a[aria-current="page"],
.bundmenu__liste a[aria-current="page"] svg { color: var(--groen-dyb); }
.bundmenu__burger { background: var(--groen); color: #fff; }
.bundmenu__burger svg { width: 24px; height: 24px; color: #fff; }
.bundmenu__burger::after { content: "Menu"; }
.bundmenu__burger:hover, .bundmenu__burger:focus-visible { background: var(--groen-dyb); color: #fff; }
@media (max-width: 1099px) {
  .bundmenu { display: block; }
  body { padding-bottom: calc(var(--bund-menu-h) + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Overlay-menu ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 150;
  background: var(--asfalt); color: var(--creme);
  display: flex; flex-direction: column;
  padding: 16px 22px calc(14px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.overlay.aaben { opacity: 1; visibility: visible; transform: none; }
.overlay__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.overlay__top img { height: 34px; width: auto; }
.overlay__luk {
  background: var(--asfalt-3); border: 0; color: var(--creme); cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.overlay__luk svg { width: 22px; height: 22px; }
.overlay__luk:hover { background: var(--roed); }
.overlay nav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.overlay nav li { margin-bottom: 0; }
.overlay nav a {
  display: block; text-decoration: none; color: var(--creme);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.05rem, 4.3vw, 1.42rem); padding: 7px 4px;
  border-bottom: 1px dashed var(--asfalt-3);
}
.overlay nav a:hover { color: var(--gul); padding-left: 12px; transition: all .2s; }
.overlay nav a[aria-current="page"] { color: var(--groen-lys); }
.overlay__kontakt { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.overlay__kontakt .knap { flex: 1 1 auto; }
.overlay__bund { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.overlay__bund img { width: 66px; height: auto; }
/* Ekstra kompakt på lave skærme, så menuen altid er der uden scroll */
@media (max-height: 720px) {
  .overlay__top { margin-bottom: 8px; }
  .overlay__top img { height: 30px; }
  .overlay nav ul { margin-bottom: 10px; }
  .overlay nav a { font-size: 1.12rem; padding: 5px 4px; }
  .overlay__kontakt { margin-bottom: 10px; }
  .overlay__bund img { width: 54px; }
}

/* ---------- Hero (forside) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--asfalt); color: var(--creme);
  min-height: min(88vh, 720px);
  display: flex; align-items: center;
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
  filter: brightness(1.12);
}
.hero__slör {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(24, 20, 16, .86) 0%, rgba(24, 20, 16, .5) 45%, rgba(24, 20, 16, .12) 100%);
}
.hero .container { position: relative; z-index: 2; padding-block: 90px 96px; }
.hero__indhold { max-width: 620px; }
.hero h1 { color: var(--hvid-varm); font-size: clamp(2.8rem, 7vw, 4.6rem); margin-bottom: .3em; }
.hero__tekst { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(250, 243, 231, .92); max-width: 52ch; }
.hero__knapper { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__maskot {
  display: none; /* maskotten er fjernet fra heroen (findes stadig i logoet) */
  position: absolute; z-index: 4; right: clamp(12px, 4vw, 60px); bottom: 22px;
  width: clamp(146px, 16vw, 214px);
  background: radial-gradient(ellipse 58% 54% at 50% 45%, rgba(255, 250, 241, 0.34), rgba(255, 250, 241, .12) 46%, transparent 82%);
  filter: drop-shadow(0 20px 1px rgba(0, 0, 0, .45));
  animation: svaev 3.5s ease-in-out infinite;
}
@keyframes svaev {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}
.hero__stribe { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
@media (max-width: 767px) {
  .hero { min-height: 0; }
  .hero .container { padding-block: 60px 128px; }
  .hero__maskot { right: 12px; bottom: 104px; width: 116px; }
}
/* Hero-billedet forankres til venstre på desktop */
@media (min-width: 768px) { .hero__bg { object-position: left 38%; } }

/* ---------- Kompakt side-hero (undersider) ---------- */
.sidehero {
  background:
    radial-gradient(1100px 320px at 85% -80px, rgba(212, 58, 39, .28), transparent 60%),
    radial-gradient(700px 260px at 8% 110%, rgba(21, 122, 62, .25), transparent 60%),
    var(--asfalt);
  color: var(--creme); position: relative;
}
.sidehero .container { padding-block: 64px 56px; position: relative; }
.sidehero h1 { color: var(--hvid-varm); margin-bottom: .2em; }
.sidehero__tekst { color: rgba(250, 243, 231, .85); max-width: 62ch; font-size: 1.1rem; margin: 0; }
.sidehero .vejstribe { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0; }

/* ---------- Sektioner ---------- */
.sektion { padding-block: clamp(56px, 9vw, 100px); }
.sektion--creme2 { background: var(--creme-2); }
.sektion--moerk { background: var(--asfalt); color: var(--creme); }
.sektion--moerk h2, .sektion--moerk h3 { color: var(--hvid-varm); }
.sektion--moerk a { color: var(--gul); }

.sektions-hoved { max-width: 640px; margin-bottom: 2.2rem; }

/* ---------- Kort ---------- */
.kort {
  background: var(--hvid-varm); border: 1px solid var(--creme-3);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--skygge);
}
.kort--creme { background: var(--creme); }
.kort--moerk { background: var(--asfalt-2); border-color: var(--asfalt-3); color: var(--creme); }

/* Holdstart-kort der overlapper hero */
.holdstart { margin-top: -84px; position: relative; z-index: 5; }
.holdstart .kort { padding: clamp(20px, 3.2vw, 38px); }
.holdstart__iframe {
  display: block; width: 100%; border: 0; margin-top: 18px;
  border-radius: var(--radius-lille); background: var(--creme);
}
.holdstart h2 { color: var(--roed); font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .2em; }
.holdstart__tid { font-weight: 600; color: var(--ink-soft); margin-bottom: 1.2em; }
.holdstart__datoer { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 10px; }
.holdstart__datoer li {
  display: flex; align-items: center; gap: 12px;
  background: var(--creme); border: 1px solid var(--creme-3);
  padding: 12px 18px; border-radius: var(--radius-lille);
  font-weight: 600; font-size: 1.05rem;
}
.holdstart__datoer li::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  background: var(--groen-lys); flex: none;
  box-shadow: 0 0 0 4px rgba(47, 174, 99, .18);
}
.holdstart__knapper { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (max-width: 767px) {
  .holdstart { margin-top: -110px; }
  .holdstart .kort { grid-template-columns: 1fr; }
}

/* ---------- Prisliste ---------- */
.prisgrid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 3.5vw, 36px); align-items: start; }
@media (max-width: 899px) { .prisgrid { grid-template-columns: 1fr; } }

.pakkeliste { list-style: none; padding: 0; margin: 0; }
.pakkeliste li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px dashed var(--creme-3);
  font-weight: 500;
}
.pakkeliste li:last-child { border-bottom: 0; }
.pakkeliste svg { width: 21px; height: 21px; flex: none; color: var(--groen); margin-top: 3px; }

.prisliste { list-style: none; padding: 0; margin: 0; }
.prisliste li {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px dashed var(--creme-3);
}
.prisliste li:last-child { border-bottom: 0; }
.prisliste .pris { font-family: var(--font-display); font-weight: 500; white-space: nowrap; color: var(--roed-dyb); }

.prisbadge {
  display: inline-block; background: var(--groen); color: #fff;
  font-family: var(--font-display); font-weight: 500;
  padding: 6px 16px; border-radius: 999px; font-size: 1rem; margin-bottom: 14px;
}

.callout {
  border-left: 6px solid var(--gul); background: var(--creme-2);
  border-radius: 0 var(--radius-lille) var(--radius-lille) 0;
  padding: 20px 24px; margin-top: 24px;
}
.callout h3 { margin-bottom: .4em; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Tjekliste (grønne flueben) ---------- */
.tjekliste { list-style: none; padding: 0; margin: 0 0 1.2em; }
.tjekliste li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; }
.tjekliste svg { width: 21px; height: 21px; flex: none; color: var(--groen); margin-top: 4px; }

/* ---------- Artikel (lange tekstsider) ---------- */
.artikel h2 { margin-top: 2em; scroll-margin-top: 110px; }
.artikel h2:first-child { margin-top: 0; }
.artikel h3 { margin-top: 1.6em; }

.indholdsliste { position: sticky; top: 96px; }
.indholdsliste ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.indholdsliste a {
  display: block; text-decoration: none; color: var(--ink-soft);
  font-size: .92rem; font-weight: 500; padding: 6px 12px; border-left: 3px solid var(--creme-3);
}
.indholdsliste a:hover { color: var(--roed-dyb); border-left-color: var(--roed); background: var(--creme-2); }
.artikelgrid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 899px) { .artikelgrid { grid-template-columns: 1fr; } .indholdsliste { position: static; } }

/* ---------- Personkort (Om mig) ---------- */
.personkort { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.personkort__foto { position: sticky; top: 110px; }
.personkort__foto img { border-radius: var(--radius); box-shadow: var(--skygge); }
.personkort__navn {
  background: var(--hvid-varm); border: 1px solid var(--creme-3); border-radius: var(--radius-lille);
  padding: 14px 18px; margin-top: -34px; position: relative; width: calc(100% - 28px); margin-inline: auto;
  box-shadow: var(--skygge-lille); text-align: center;
}
.personkort__navn strong { font-family: var(--font-display); font-weight: 600; display: block; }
.personkort__navn span { color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 899px) { .personkort { grid-template-columns: 1fr; } .personkort__foto { position: static; max-width: 360px; } }

/* ---------- Linkgrid (Links og downloads) ---------- */
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.linkgrid a {
  display: flex; align-items: center; gap: 12px;
  background: var(--hvid-varm); border: 1px solid var(--creme-3);
  border-radius: var(--radius-lille); padding: 16px 18px;
  text-decoration: none; color: var(--ink); font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.linkgrid a:hover { transform: translateY(-3px); box-shadow: var(--skygge-lille); color: var(--roed-dyb); }
.linkgrid svg { width: 20px; height: 20px; flex: none; color: var(--groen); }

.downloadliste { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.downloadliste a {
  display: flex; align-items: center; gap: 16px;
  background: var(--hvid-varm); border: 1px solid var(--creme-3);
  border-radius: var(--radius-lille); padding: 18px 22px;
  text-decoration: none; color: var(--ink); font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.downloadliste a:hover { transform: translateY(-3px); box-shadow: var(--skygge-lille); color: var(--roed-dyb); }
.downloadliste svg { width: 24px; height: 24px; flex: none; color: var(--roed); }
.downloadliste .fil-note { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }

/* ---------- Tryghed (mørk band m. maskot) ---------- */
.tryghed { position: relative; overflow: hidden; }
.tryghed .container { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(28px, 5vw, 70px); align-items: center; }
.tryghed__maskot img { width: 100%; max-width: 260px; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .5)); }
@media (max-width: 767px) {
  .tryghed .container { grid-template-columns: 1fr; }
  .tryghed__maskot { display: flex; justify-content: center; }
  .tryghed__maskot img { max-width: 170px; }
}

/* ---------- 17-års regler: 3 kolonner ---------- */
.reglergrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
@media (max-width: 899px) { .reglergrid { grid-template-columns: 1fr; } }
.reglergrid .kort { padding: 26px 26px 18px; }
.reglergrid h3 { display: flex; align-items: center; gap: 10px; }
.reglergrid h3 svg { width: 22px; height: 22px; color: var(--roed); flex: none; }

/* ---------- Facebook-band ---------- */
.fb-band { text-align: center; }
.fb-band .knap { margin-top: 6px; }

/* ---------- Iframe (tilmelding) ---------- */
.tilmeld-ramme {
  background: transparent; border: 0; padding: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--skygge);
}
.tilmeld-ramme iframe { display: block; width: 100%; border: none; }

/* To-kolonne tilmelding: info venstre, widget højre */
.tilmeld-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: clamp(28px, 4vw, 60px); align-items: start;
}
.tilmeld-info h2 { margin-bottom: .35em; }
.tilmeld-info > p { max-width: 58ch; }
.tilmeld-info h3 { margin-top: 1.7em; }
.tilmeld-knapper { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 4px; }
.pris-fremhaev {
  display: block; margin-top: 24px;
  background: var(--groen); color: #fff;
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem;
  padding: 16px 24px; border-radius: var(--radius-lille);
  box-shadow: var(--skygge-lille);
}
/* Pris-boks (forside + tilmelding) */
.prisboks {
  margin-top: 26px; background: var(--hvid-varm);
  border: 1px solid var(--creme-3); border-left: 6px solid var(--groen);
  border-radius: var(--radius); box-shadow: var(--skygge); padding: 22px 24px;
}
.prisboks__top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.prisboks__label { font-family: var(--font-display); font-weight: 500; color: var(--ink-soft); font-size: 1.05rem; }
.prisboks__belob { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--groen-dyb); }
.prisboks__note { color: var(--ink-soft); margin: 10px 0 16px; max-width: none; }
.prisboks .knap { width: 100%; }
.tilmeld-widget { position: sticky; top: 96px; }
@media (max-width: 899px) {
  .tilmeld-grid { grid-template-columns: 1fr; }
  .tilmeld-widget { position: static; }
}
/* Formularen vokser op og rykker op i hero-billedet (over striberne) på desktop */
@media (min-width: 900px) {
  .tilmeld-widget {
    position: relative; z-index: 6; margin-top: -280px;
    animation: voks-op .95s cubic-bezier(.2, .7, .3, 1) .5s both;
  }
}
@keyframes voks-op {
  from { opacity: 0; transform: translateY(80px) scale(.94); }
  to   { opacity: 1; transform: none; }
}


/* Lokation + kort */
.tilmeld-lokation { margin-top: clamp(44px, 7vw, 80px); }
.lokation-titel { color: var(--roed); margin-bottom: .3em; }
.lokation-adresse { font-size: 1.15rem; font-weight: 600; margin-bottom: 0; }
.kort-embed {
  margin-top: 20px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--creme-3); box-shadow: var(--skygge);
  aspect-ratio: 16 / 8;
}
.kort-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9); }
@media (max-width: 599px) { .kort-embed { aspect-ratio: 4 / 3; } }

/* ---------- Billede + tekst (fx teorilokale) ---------- */
.billedgrid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 899px) { .billedgrid { grid-template-columns: 1fr; } }
.billedkort { margin: 0; }
.billedkort img {
  width: 100%; display: block; border-radius: var(--radius);
  box-shadow: var(--skygge); aspect-ratio: 4 / 3; object-fit: cover;
}
.billedkort figcaption { margin-top: 10px; color: var(--ink-soft); font-size: .92rem; text-align: center; }

/* ---------- CTA-band ---------- */
.cta-band { text-align: center; }
.cta-band p { max-width: 54ch; margin-inline: auto; }
.cta-band .knapper { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 22px; }
.cta-band--moerk {
  background:
    radial-gradient(900px 300px at 82% -60px, rgba(212, 58, 39, .22), transparent 60%),
    radial-gradient(760px 260px at 8% 130%, rgba(21, 122, 62, .26), transparent 60%),
    var(--asfalt);
  color: var(--creme);
}
.cta-band--moerk h2 { color: var(--hvid-varm); }
.cta-band--moerk p { color: rgba(250, 243, 231, .86); }

/* ---------- Footer ---------- */
.footer { background: var(--asfalt); color: var(--creme); margin-top: 0; }
.footer a { color: var(--creme); }
.footer a:hover { color: var(--gul); }
.footer__grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(48px, 7vw, 72px) 36px;
}
@media (max-width: 899px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo { height: 48px; width: auto; margin-bottom: 18px; }
.footer h2 {
  color: var(--gul); font-size: 1.05rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1em;
}
.footer address { font-style: normal; line-height: 1.9; }
.footer__kontakt { line-height: 1.9; margin-bottom: 14px; }
.footer__kontakt a { text-decoration: none; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5em; }
.footer__fb { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; margin-top: 4px; }
.footer__fb svg { width: 20px; height: 20px; color: var(--gul); }
.footer__bund {
  border-top: 1px solid var(--asfalt-3);
  padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .9rem; color: rgba(250, 243, 231, .7);
}

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.vist { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Hero-indhold: trinvis indflyvning ved load */
.anim { animation: flyv-ind .7s cubic-bezier(.2, .7, .3, 1) both; }
.anim--2 { animation-delay: .12s; }
.anim--3 { animation-delay: .24s; }
.anim--4 { animation-delay: .36s; }
@keyframes flyv-ind {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.fejlside { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.fejlside img { width: 200px; margin-inline: auto; margin-bottom: 24px; animation: svaev 6s ease-in-out infinite; }
.fejlside h1 { font-size: clamp(2.4rem, 6vw, 4rem); }

/* ---------- Print ---------- */
@media print {
  .topbar, .header, .bundmenu, .overlay, .footer__bund, .hero__maskot { display: none !important; }
  body { background: #fff; color: #000; }
}
