/* =========================================================
   Optaget.dk — stylesheet
   Redaktionelt, roligt skandinavisk udtryk.
   ========================================================= */

/* Self-hostede fonts (variable, latin-subset — dækker æøå).
   Ingen kald til Google = hurtigere og GDPR-sikkert. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  /* Lyst tema (standard) */
  --paper:      #faf6ef;
  --paper-2:    #f3ecdf;
  --surface:    #fffdf9;
  --ink:        #211d17;
  --ink-soft:   #4a4339;
  --muted:      #6c6253;
  --line:       #e7ddcd;

  --green:      #14563f;
  --green-deep: #0f4332;
  --green-tint: #e4efe8;
  --accent:     #d9603a;
  --accent-soft:#f6e3da;
  --accent-text:#b8501f; /* mørkere coral til lille tekst (WCAG AA på lys baggrund) */

  --header-bg:  rgba(250, 246, 239, .82);
  --shadow: 0 1px 2px rgba(33,29,23,.04), 0 12px 32px -16px rgba(33,29,23,.18);

  /* Typografi */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Mål */
  --container: 1120px;
  --radius: 16px;
  --radius-sm: 10px;

  color-scheme: light;
}

/* Mørkt tema. Fallback uden JS: følg systemet når data-theme ikke er sat. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --paper:      #16140e;
    --paper-2:    #1c1a12;
    --surface:    #211e16;
    --ink:        #ece4d6;
    --ink-soft:   #c8bfac;
    --muted:      #968d7c;
    --line:       #322e23;
    --green:      #6fc09a;
    --green-deep: #8ad0af;
    --green-tint: #1e2c23;
    --accent:     #ed7e54;
    --accent-soft:#3a251b;
    --accent-text:#ed7e54; /* coral består allerede AA på mørk baggrund */
    --header-bg:  rgba(22, 20, 14, .82);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -18px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

[data-theme="dark"] {
  --paper:      #16140e;
  --paper-2:    #1c1a12;
  --surface:    #211e16;
  --ink:        #ece4d6;
  --ink-soft:   #c8bfac;
  --muted:      #968d7c;
  --line:       #322e23;

  --green:      #6fc09a;
  --green-deep: #8ad0af;
  --green-tint: #1e2c23;
  --accent:     #ed7e54;
  --accent-soft:#3a251b;
  --accent-text:#ed7e54;

  --header-bg:  rgba(22, 20, 14, .82);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -18px rgba(0,0,0,.6);

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { transition: background-color .25s ease; }
body, .site-header, .feature, .kvote-card, .step, .faq details,
.hero-card, .btn, .nav-list a, .icon-btn, .lang-btn {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .4em;
}

p { margin: 0 0 1rem; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-deep); }

em { font-style: italic; color: var(--ink-soft); }
strong { font-weight: 600; }
.nowrap { white-space: nowrap; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.container-narrow { max-width: 760px; }

/* Tilgængelighed */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--green); color: var(--paper); padding: 10px 16px;
  border-radius: var(--radius-sm); z-index: 1000;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: var(--paper); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.header-right {
  display: flex; align-items: center; gap: clamp(8px, 2vw, 22px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 28px; height: 28px; flex: none; display: inline-block;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand-dot { color: var(--accent); }

.site-nav { display: flex; align-items: center; }
.nav-list {
  display: flex; gap: 4px; list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink-soft); text-decoration: none; font-size: .95rem;
  font-weight: 500; transition: background .15s ease, color .15s ease;
}
.nav-list a:hover { background: var(--paper-2); color: var(--ink); }
.nav-list a.is-active { color: var(--green); background: var(--green-tint); }

/* Værktøjer: sprog- og temaskifter */
.tools { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .8rem;
  letter-spacing: .02em; color: var(--muted);
  padding: 6px 11px; border-radius: 999px; background: transparent;
  transition: background .15s ease, color .15s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active {
  background: var(--surface); color: var(--green);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 11px; color: var(--ink); position: relative;
}
.icon-btn:hover { border-color: var(--muted); }
.icon-btn .ic { width: 20px; height: 20px; }

/* Vis solen i mørkt tema, månen i lyst tema */
.ic-sun { display: none; }
[data-theme="dark"] .ic-sun  { display: block; }
[data-theme="dark"] .ic-moon { display: none; }

.nav-toggle {
  display: none;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px;
  background: var(--ink); transform: translateX(-50%); transition: .2s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green); color: var(--paper);
  box-shadow: 0 10px 24px -12px rgba(20,86,63,.7);
}
.btn-primary:hover { background: var(--green-deep); color: var(--paper); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); color: var(--ink); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(1200px 500px at 78% -8%, var(--green-tint) 0%, transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--green);
  margin: 0 0 .9rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: .5em;
}
.hero h1 .hl {
  color: var(--green);
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
  padding: 0 .06em;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft); max-width: 36ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1rem; }
.hero-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* Nedtælling til næste frist */
.next-deadline {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 18px; padding: 7px 15px 7px 12px;
  background: var(--accent-soft); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 999px; font-size: .9rem; font-weight: 600;
  text-decoration: none;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.next-deadline:hover { transform: translateY(-1px); color: var(--ink); }
.next-deadline[hidden] { display: none; }
.nd-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  position: relative; flex: none;
}
.nd-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); animation: nd-pulse 2.2s ease-out infinite;
}
@keyframes nd-pulse {
  0%   { transform: scale(1); opacity: .55; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { opacity: 0; }
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow);
}
.card-title {
  font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-text);
  font-family: var(--sans); margin-bottom: 1rem;
}
.quick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.quick-list li {
  padding-left: 26px; position: relative; font-size: 1rem; color: var(--ink-soft);
}
.quick-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 3px; background: var(--green);
}
.quick-list strong { color: var(--ink); display: inline; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 60ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-intro { font-size: 1.12rem; color: var(--ink-soft); margin: 0; }

/* Feature grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-num {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  color: var(--accent-text); display: inline-block; margin-bottom: 14px;
  letter-spacing: .02em;
}
.feature h3 { font-size: 1.18rem; margin-bottom: .35em; }
.feature p { margin: 0; font-size: .98rem; color: var(--ink-soft); }

/* Kvote cards */
.kvote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.kvote-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(26px, 3.5vw, 40px);
  position: relative;
}
.kvote-card--accent {
  background: linear-gradient(180deg, var(--green-tint), var(--surface) 55%);
  border-color: color-mix(in srgb, var(--green) 25%, var(--line));
}
.kvote-tag {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--green); background: var(--green-tint);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.kvote-card--accent .kvote-tag { color: var(--paper); background: var(--green); }
.kvote-card h3 { font-size: 1.5rem; margin-bottom: .5em; }
.check-list { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .15em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-tint);
}
.check-list li::after {
  content: ""; position: absolute; left: 0; top: .15em;
  width: 20px; height: 20px; background-color: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.kvote-foot {
  margin: 1.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--muted);
}

/* Timeline */
.timeline {
  list-style: none; margin: 0; padding: 0; position: relative;
  max-width: 760px;
}
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.timeline-item {
  position: relative; display: grid; grid-template-columns: 150px 1fr;
  gap: 22px; padding: 0 0 32px 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 2px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--muted);
}
.timeline-item.is-highlight::before { border-color: var(--accent); background: var(--accent); }
.timeline-date {
  font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
  color: var(--ink); padding-top: 1px;
}
.timeline-date .time {
  display: block; font-family: var(--sans); font-weight: 500;
  font-size: .85rem; color: var(--accent-text);
}
.timeline-body h3 { font-size: 1.2rem; margin-bottom: .2em; }
.timeline-item.is-next::before { box-shadow: 0 0 0 4px var(--accent-soft); }
.nd-badge {
  display: inline-block; margin-left: 10px; vertical-align: middle;
  font-family: var(--sans); font-size: .66rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--paper); background: var(--accent-text);
  padding: 3px 9px; border-radius: 999px;
}
.timeline-body p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 26px 72px;
  position: relative; counter-increment: step;
}
.step::before {
  content: counter(step); position: absolute; left: 22px; top: 24px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: var(--paper);
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
  display: grid; place-items: center;
}
.step h3 { font-size: 1.18rem; margin-bottom: .3em; }
.step p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 4px 20px;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--green) 30%, var(--line)); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0;
  font-weight: 600; font-size: 1.08rem; position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; font-weight: 400;
  color: var(--green); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* Uddannelsestyper */
.types-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.type-dur {
  display: inline-block; margin-bottom: 10px;
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text);
}
.type-card .type-ex {
  margin-top: .7rem; color: var(--muted); font-style: italic; font-size: .92rem;
}

/* Adgangskrav: fagniveauer */
.levels {
  margin-top: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
}
.levels-title { font-size: 1.15rem; margin-bottom: 1rem; }
.level-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 12px; }
.level-list li { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); }
.level-badge {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600;
  background: var(--green-tint); color: var(--green);
}
.levels-note { margin: 0; font-size: .95rem; color: var(--muted); }

/* Ordliste */
.glossary { margin: 0; }
.gl-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.gl-item:first-child { padding-top: 0; }
.gl-item:last-child { border-bottom: 0; padding-bottom: 0; }
.glossary dt {
  font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
  color: var(--ink); margin-bottom: .25em;
}
.glossary dd { margin: 0; color: var(--ink-soft); }

/* Closing */
.closing { text-align: center; }
.closing-inner h2 { font-size: clamp(2rem, 4vw, 3rem); }
.closing-inner p { color: var(--ink-soft); font-size: 1.12rem; margin-bottom: 1.8rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #1b1810; color: #d9d1c4;
  padding: clamp(48px, 6vw, 72px) 0 28px;
}
[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
.site-footer a { color: #e9e1d4; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .brand-name { color: #fff; font-size: 1.4rem; }
.footer-brand p { margin: .6rem 0 0; color: #b6ad9f; max-width: 28ch; }
.footer-links h3, .footer-note strong { color: #fff; }
.footer-links h3 {
  font-family: var(--sans); font-size: .82rem; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 14px; color: #b6ad9f;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links li { color: #b6ad9f; font-size: .96rem; }
.footer-note p { margin: 0; color: #b6ad9f; font-size: .92rem; line-height: 1.6; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: .9rem; color: #97907f;
}
.footer-bottom a { color: #b6ad9f; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Kildelinje under tidslinjen */
.section-source {
  margin: 28px 0 0; font-size: .9rem; color: var(--muted); max-width: 64ch;
}

/* Læse-progressbar */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 200; pointer-events: none; background: transparent;
}
.reading-progress > span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--green), var(--accent));
}

/* =========================================================
   Responsive
   ========================================================= */
/* Saml navigationen i en menu, før de mange punkter overfylder linjen */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-grid; }
  .nav-list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px;
    background: var(--surface); border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 10px clamp(20px, 5vw, 40px); box-shadow: var(--shadow);
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { padding: 12px 14px; }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: 2; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .types-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .feature-grid { grid-template-columns: 1fr; }
  .kvote-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 420px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* =========================================================
   Print / PDF — ren, læsbar udgave (tvinger lyst tema)
   ========================================================= */
@media print {
  :root, [data-theme="dark"], :root:not([data-theme]) {
    --paper: #fff; --paper-2: #fff; --surface: #fff;
    --ink: #000; --ink-soft: #1a1a1a; --muted: #444; --line: #bbb;
    --green: #14563f; --green-deep: #0f4332; --green-tint: #eef4f0;
    --accent: #a8431f; --accent-text: #a8431f; --accent-soft: #f3e3da;
    --header-bg: #fff; --shadow: none;
  }
  /* Skjul interaktiv "chrome", der ikke giver mening på papir */
  .site-header, .reading-progress, .next-deadline, .hero-cta, .hero-note,
  .to-top, .closing { display: none !important; }

  html, body { background: #fff !important; color: #000 !important; }
  .section { padding: 18px 0 !important; }
  .hero { padding: 8px 0 16px !important; background: #fff !important; }

  .feature, .kvote-card, .step, .faq details, .hero-card, .levels {
    border: 1px solid #ccc !important; background: #fff !important;
    box-shadow: none !important; break-inside: avoid;
  }
  .gl-item { break-inside: avoid; }
  .kvote-card--accent { background: #fff !important; }
  /* Fald-tilbage: vis FAQ-svar selv hvis JS ikke nåede at folde dem ud */
  .faq details > *:not(summary) { display: block !important; }
  h1, h2, h3 { break-after: avoid; }
  .timeline, .steps, .feature-grid, .kvote-grid { break-inside: auto; }

  .site-footer {
    background: #fff !important; color: #000 !important;
    border-top: 1px solid #bbb; padding-top: 18px !important;
  }
  .site-footer a, .footer-brand .brand-name, .footer-links h3,
  .footer-links li, .footer-note p, .footer-bottom { color: #000 !important; }

  a { color: #000 !important; text-decoration: underline; }
  /* Vis fulde URL'er for eksterne links i brødteksten */
  main a[href^="http"]::after {
    content: " (" attr(href) ")"; font-size: .82em; color: #555;
    word-break: break-all;
  }
  @page { margin: 16mm; }
}
