/* ==========================================================================
   Rungsted Vidensakademi — landing page
   Almindelig CSS. Ingen frameworks, ingen build-proces.
   Farver, afstande og typografi styres af custom properties nedenfor.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Designvariabler
   -------------------------------------------------------------------------- */
:root {
  /* Farver — alle kombinationer er kontrolleret mod WCAG 2.2 AA */
  --bg:            #FAF7F2;   /* knækket hvid */
  --bg-alt:        #F2EDE4;   /* lidt varmere sektionsbaggrund */
  --surface:       #FFFFFF;
  --ink:           #1C2B2A;   /* brødtekst */
  --ink-muted:     #4A5A58;   /* dæmpet tekst, 6.8:1 mod --bg */
  --brand:         #14453F;   /* dyb grøn-blå, 10.8:1 mod hvid */
  --brand-dark:    #0D302B;
  --brand-tint:    #E4EDEA;
  --accent:        #B4552B;   /* varm terracotta, 4.9:1 mod hvid */
  --accent-dark:   #8E4220;
  --accent-tint:   #FBEFE7;
  --line:          #DCD5C9;
  --line-strong:   #B9AF9E;
  --error:         #97231C;   /* 6.3:1 mod hvid */
  --error-tint:    #FCEDEB;
  --success:       #1B5E43;
  --success-tint:  #E6F2EC;

  /* Typografi */
  --font-head: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --fs-body:   1.0625rem;               /* 17px på mobil, aldrig under 16px */
  --fs-lead:   1.1875rem;
  --lh-body:   1.65;

  /* Afstande */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;

  /* Bredder */
  --w-page:   80rem;
  --w-narrow: 46rem;
  --w-text:   38rem;

  /* Øvrigt */
  --radius:   10px;
  --radius-lg: 14px;
  --shadow:   0 1px 2px rgba(28, 43, 42, 0.05), 0 6px 18px rgba(28, 43, 42, 0.06);
  --focus:    3px solid var(--accent);
  --focus-offset: 3px;
  --tap:      44px;              /* mindste klikflade */
}

@media (min-width: 48rem) {
  :root {
    --fs-body: 1.125rem;         /* 18px på større skærme */
    --fs-lead: 1.3125rem;
  }
}

/* --------------------------------------------------------------------------
   2. Reset og basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* [hidden] skal altid vinde over display-regler som .form { display: grid } */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;      /* så ankre ikke gemmer sig bag headeren */
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: hidden;            /* sikrer mod vandret scroll ved 320px */
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--brand);
  line-height: 1.22;
  margin: 0 0 var(--sp-4);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); }

p { margin: 0 0 var(--sp-4); max-width: var(--w-text); }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }

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

strong { font-weight: 700; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Synlig fokusmarkering overalt */
:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Hjælpeklasser
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 48rem) { .wrap { padding-inline: var(--sp-6); } }

.wrap-narrow { max-width: var(--w-narrow); }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 999;
  background: var(--brand);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.section { padding-block: var(--sp-7); }
@media (min-width: 48rem) { .section { padding-block: var(--sp-9); } }

.section-alt { background: var(--bg-alt); }

.section-intro {
  font-size: var(--fs-lead);
  color: var(--ink-muted);
  max-width: 44rem;
  margin-bottom: var(--sp-6);
}

.eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--sp-3);
}

/* --------------------------------------------------------------------------
   4. Knapper
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  padding: var(--sp-3) var(--sp-5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-lg {
  min-height: 3.25rem;
  padding: var(--sp-4) var(--sp-6);
  font-size: 1.0625rem;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-accent:active { background: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}
.btn-ghost:hover { background: var(--brand); color: #fff; }

.btn-outline {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--brand);
  width: 100%;
}
.btn-outline:hover { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark); }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   5. Header og navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  padding-block: var(--sp-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--brand);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--brand); }

.brand-mark { display: flex; color: var(--accent); flex: none; }

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.15;
}
@media (min-width: 30rem) { .brand-name { font-size: 1.2rem; } }

.brand-sub {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Menuknap vises kun når JavaScript er aktivt */
.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--brand);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--brand); background: var(--brand-tint); }

.nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  width: 100%;
}
@media (min-width: 62rem) { .site-nav { width: auto; } }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }

.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover {
  color: var(--brand);
  border-bottom-color: var(--accent);
}

.btn-nav { padding: var(--sp-2) var(--sp-4); min-height: 2.75rem; font-size: 1rem; }

/* Sammenklappelig mobilmenu — kun når JS er aktivt (.js på <html>) */
.js .nav-toggle { display: inline-flex; }
@media (max-width: 61.99rem) {
  .js .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
    padding-block: var(--sp-3) var(--sp-4);
    border-top: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a:not(.btn) {
    padding-block: var(--sp-2);
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .js .btn-nav { margin-top: var(--sp-2); }
}
@media (min-width: 62rem) {
  .js .nav-toggle { display: none; }
  .js .site-nav { display: flex; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(90rem 40rem at 78% -18%, var(--brand-tint) 0%, transparent 62%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-inner { padding-block: var(--sp-7) var(--sp-8); }
@media (min-width: 48rem) { .hero-inner { padding-block: var(--sp-8) var(--sp-9); } }

.hero h1 { max-width: 20ch; }

.hero .lead {
  font-size: var(--fs-lead);
  color: var(--ink-muted);
  max-width: 40rem;
  margin-bottom: var(--sp-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  max-width: none;
  margin-bottom: var(--sp-7);
}
.hero-actions .btn { flex: 1 1 min(100%, 20rem); }
@media (min-width: 40rem) { .hero-actions .btn { flex: 0 0 auto; } }

.trust-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 52rem) {
  .trust-list { flex-direction: row; gap: var(--sp-6); flex-wrap: wrap; }
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0;
  font-weight: 600;
  color: var(--brand);
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   7. Sådan foregår det
   -------------------------------------------------------------------------- */
.how-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 40rem) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .how-grid { grid-template-columns: repeat(4, 1fr); } }

.how-item {
  margin: 0;
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}
.how-item h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.how-item p { margin: 0; color: var(--ink-muted); font-size: 1rem; }

/* --------------------------------------------------------------------------
   8. Kort (forløb og medlemskaber)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 52rem) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 52rem) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (min-width: 48rem) { .card { padding: var(--sp-6); } }

.card-member { border-style: dashed; border-color: var(--line-strong); }

.card-tag {
  display: inline-block;
  align-self: flex-start;
  justify-self: start;
  margin-bottom: var(--sp-3);
  padding: 0.2rem 0.6rem;
  background: var(--brand-tint);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card h3 { margin-bottom: var(--sp-3); }

.card-desc { color: var(--ink-muted); }

/* "Bygger videre på forløbet ..." på medlemskabskortene */
.card-follows {
  margin: calc(-1 * var(--sp-2)) 0 var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--brand-tint);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--brand);
  max-width: none;
}
.card-follows strong { color: var(--brand-dark); }

.card-label {
  margin: var(--sp-4) 0 var(--sp-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand);
}

.card-outcome { margin-bottom: 0; font-weight: 600; }

.card-list { margin-bottom: var(--sp-4); padding-left: 1.15rem; }
.card-list li { font-size: 1rem; color: var(--ink-muted); }

.price {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  margin-bottom: var(--sp-4);
  max-width: none;
}

.price-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.price-value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  margin-block: var(--sp-1);
}

.price-value-tbd { font-size: 1.1rem; line-height: 1.35; }

.price-note {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Omfang (fx "6-8 undervisningsgange") over prisen */
.price-scope {
  display: block;
  margin-top: var(--sp-1);
  font-weight: 600;
  color: var(--ink);
}

/* Kursuskortene får lidt mere plads end øvrige kortgitre */
@media (min-width: 72rem) {
  .card-grid-courses { gap: var(--sp-6); }
}

/* "Alt fra medlemskab 1"-punktet skal skille sig ud */
.card-list-carry {
  padding: var(--sp-2) var(--sp-3);
  margin-left: -1.15rem;
  list-style: none;
  background: var(--brand-tint);
  border-radius: var(--radius);
  color: var(--ink);
}

.card-btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   9. Notitser og disclaimere
   -------------------------------------------------------------------------- */
/* To toner:
   .notice (uden modifier)   — til info: lys terracotta, brug til rolige oplysninger/forbehold
   .notice.notice-important  — rødlig: brug til disclaimers og nødvendige/kritiske punkter */
.notice {
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  background: var(--accent-tint);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
  color: var(--ink);
  max-width: none;
}

.notice-inline { margin-bottom: var(--sp-4); font-size: 0.9375rem; }

.notice-important {
  background: var(--error-tint);
  border-left-color: var(--error);
}
.notice-important strong { color: var(--error); }

/* Flere notitser i samme kort samles i én wrapper, så de tæller som ÉN række i
   kortenes vandrette subgrid-justering (se afsnit 16) — ellers rykker prisen
   sig lodret afhængigt af, hvor mange notitser hvert kort har. */
.card-notices {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.card-notices .notice { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   10. Underviserprofil
   -------------------------------------------------------------------------- */
.profile {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 52rem) { .profile { grid-template-columns: 15rem 1fr; gap: var(--sp-7); } }

.profile-photo img {
  width: 100%;
  max-width: 15rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  aspect-ratio: 1 / 1;
  max-width: 15rem;
  background: var(--surface);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--line-strong);
}

.photo-placeholder-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.profile-name { margin-bottom: var(--sp-1); }

.profile-role {
  margin-bottom: var(--sp-5);
  color: var(--accent-dark);
  font-weight: 600;
}

.credentials {
  list-style: none;
  margin: var(--sp-5) 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
@media (min-width: 46rem) { .credentials { grid-template-columns: repeat(2, 1fr); } }

.credentials li {
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cred-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.cred-value { display: block; font-weight: 600; color: var(--brand); }

.cred-detail {
  display: block;
  margin-top: 2px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.profile-links { color: var(--ink-muted); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-3); }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--tap);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand);
  list-style: none;
}
@media (min-width: 48rem) { .faq-item summary { font-size: 1.15rem; } }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg) translateY(-25%);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-25%); }

.faq-item summary:hover { background: var(--brand-tint); }

.faq-body {
  padding: 0 var(--sp-5) var(--sp-5);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
}
.faq-body p { margin: 0; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   12. Formular
   -------------------------------------------------------------------------- */
.section-form { background: var(--bg-alt); }

.form {
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (min-width: 48rem) { .form { padding: var(--sp-7); gap: var(--sp-6); } }

.fs {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  padding-top: var(--sp-5);
}
.fs:first-of-type { border-top: 0; padding-top: 0; }

.fs legend {
  padding: 0;
  margin-bottom: var(--sp-2);
  font-family: var(--font-head);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.3;
}

.fs-hint {
  margin: 0 0 var(--sp-3);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.choices { display: grid; gap: var(--sp-2); }

.choices-inline { grid-template-columns: 1fr; }
@media (min-width: 34rem) { .choices-inline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 48rem) { .choices-inline { grid-template-columns: repeat(3, 1fr); } }

.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  min-height: var(--tap);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.45;
}
.choice:hover { border-color: var(--line-strong); background: var(--brand-tint); }

.choice input {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.choice span { padding-top: 0.05rem; }

.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
  font-weight: 600;
}

.choice:focus-within {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}

/* Fremhævning når et kort har valgt et felt */
.choice.is-flashed {
  animation: flash 1.4s ease;
}
@keyframes flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180, 85, 43, 0); }
  25%      { box-shadow: 0 0 0 5px rgba(180, 85, 43, 0.35); }
}

.field { display: grid; gap: var(--sp-2); }

.field > label {
  font-weight: 700;
  color: var(--brand);
  font-size: 1.0625rem;
}

.req { font-weight: 600; color: var(--accent-dark); font-size: 0.9rem; }
.opt { font-weight: 400; color: var(--ink-muted); font-size: 0.9rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  min-height: var(--tap);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink);
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }

input:hover, textarea:hover { border-color: var(--brand); }

/* Dropdown ("Hvordan hørte du om RN Akademi?") — matcher de øvrige felter i
   stedet for browserens rå standardudseende, med en tegnet pil i stedet for
   den indbyggede. */
select {
  width: 100%;
  min-height: var(--tap);
  padding: var(--sp-3) 2.75rem var(--sp-3) var(--sp-4);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='%234A5A58' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 1rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
select:hover { border-color: var(--brand); }

input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--error);
  background: var(--error-tint);
}

.field-error {
  margin: 0;
  padding: var(--sp-2) var(--sp-3);
  background: var(--error-tint);
  border-left: 4px solid var(--error);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 600;
}

.field-consent { border-top: 1px solid var(--line); padding-top: var(--sp-5); }

.choice-consent { align-items: flex-start; font-size: 1rem; }
.choice-consent span { font-weight: 400; }
.choice-consent a { color: var(--brand); font-weight: 600; }

.submit-row {
  display: grid;
  gap: var(--sp-3);
  justify-items: start;
  border-top: 1px solid var(--line);
  padding-top: var(--sp-5);
}
.submit-row .btn { width: 100%; }
@media (min-width: 40rem) { .submit-row .btn { width: auto; } }

.submit-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* Honeypot — skjult for både mennesker og skærmlæsere */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Status, fejloversigt og demo-note */
.form-status:not(:empty) {
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
  background: var(--success-tint);
  border: 2px solid var(--success);
  border-radius: var(--radius);
  color: var(--ink);
}
.form-status h3 { color: var(--success); margin-bottom: var(--sp-2); }
.form-status p:last-child { margin-bottom: 0; }

.error-summary {
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
  background: var(--error-tint);
  border: 2px solid var(--error);
  border-radius: var(--radius);
}
.error-summary h3 { color: var(--error); margin-bottom: var(--sp-3); font-size: 1.15rem; }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { color: var(--error); font-weight: 700; }

.demo-note {
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  background: #FFF8E1;
  border: 2px dashed #8A6D1F;
  border-radius: var(--radius);
  font-size: 0.9375rem;
}
.demo-note p { margin: 0; max-width: none; }

/* --------------------------------------------------------------------------
   13. Afsluttende CTA
   -------------------------------------------------------------------------- */
.closing { background: var(--brand); color: #fff; }
.closing h2 { color: #fff; }
.closing-text { font-size: var(--fs-lead); color: #E3EDEA; margin-bottom: var(--sp-6); }
.closing-note { margin-top: var(--sp-4); margin-bottom: 0; color: #C6D8D3; font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: var(--sp-7) var(--sp-5);
  font-size: 1rem;
}

.footer-top {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 48rem) { .footer-top { grid-template-columns: 1fr 1fr; } }

.footer-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: var(--sp-1);
}
.footer-place { color: var(--ink-muted); margin-bottom: var(--sp-2); }
.footer-contact { margin: 0; }

.footer-nav ul {
  display: grid;
  gap: var(--sp-1);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 34rem) { .footer-nav ul { grid-template-columns: repeat(2, 1fr); } }

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--ink);
  font-weight: 600;
}

.legal {
  padding-top: var(--sp-6);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--sp-6);
}
.legal h2 { font-size: 1.25rem; margin-bottom: var(--sp-3); }
.legal ul { max-width: var(--w-narrow); padding-left: 1.25rem; }
.legal li { color: var(--ink-muted); font-size: 1rem; }

.legal-flag {
  padding: var(--sp-3) var(--sp-4);
  background: #FFF8E1;
  border-left: 4px solid #8A6D1F;
  font-size: 0.9375rem;
  font-weight: 600;
  max-width: none;
}

.legal-dl { max-width: var(--w-narrow); margin: 0; }
.legal-dl dt {
  font-weight: 700;
  color: var(--brand);
  margin-top: var(--sp-4);
}
.legal-dl dd {
  margin: var(--sp-1) 0 0;
  color: var(--ink-muted);
  font-size: 1rem;
}

.copyright {
  margin: var(--sp-5) 0 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   15. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .hero-actions, .card-btn, .form, .closing { display: none; }
  body { background: #fff; font-size: 11pt; }
}

/* ==========================================================================
   16. Vandret justering på tværs af kort (CSS subgrid)
   Kort af samme type deler rækkehøjder, så overskrifter, lister, forbehold,
   priser og knapper flugter vandret. Kort med mindre indhold får luft ovenfor
   i stedet for at rykke resten op.
   ========================================================================== */
@supports (grid-template-rows: subgrid) {
  .how-item,
  .card-grid-courses > .card,
  .card-grid-2 > .card,
  .credentials > li {
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
  }

  .how-item              { grid-row: span 2; }
  .credentials > li      { grid-row: span 3; }

  /* Prisblokken er selv et subgrid, så etiket, omfang, beløb og note hver
     får deres egen delte række. Uden det flytter hele blokken sig, så snart
     ét kort har en linje mere end de andre — fx et længere omfang. */
  .card > .price {
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
    margin-top: 0;
  }

  /* 10 direkte børn, hvor prisblokken fylder 4 rækker: 9 + 4 = 13 */
  .card-grid-courses > .card         { grid-row: span 13; }
  .card-grid-courses > .card > .price { grid-row: span 4; }

  /* 9 direkte børn, hvor prisblokken fylder 3 rækker: 8 + 3 = 11 */
  .card-grid-2 > .card         { grid-row: span 11; }
  .card-grid-2 > .card > .price { grid-row: span 3; }
}

/* Tom række, der holder pladsen hvor et kort ikke har et forbehold */
.row-spacer { margin: 0; min-height: 0; max-width: none; }

/* ==========================================================================
   17. Markér-knapper på kortene
   ========================================================================== */

/* Uden JavaScript vises et almindeligt link til formularen i stedet */
.js-only  { display: none; }
.js .js-only  { display: inline-flex; }
.js .nojs-only { display: none; }

.card-cta { margin-top: auto; display: grid; }

.card-toggle {
  width: 100%;
  justify-content: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--brand);
  text-align: left;
}
.card-toggle:hover { border-color: var(--brand); background: var(--brand-tint); }

.toggle-mark { display: flex; flex: none; color: var(--line-strong); }
.toggle-check { opacity: 0; transition: opacity 0.15s ease; }
.toggle-label { line-height: 1.35; }

.card-toggle[aria-pressed="true"] {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.card-toggle[aria-pressed="true"] .toggle-mark  { color: var(--accent); }
.card-toggle[aria-pressed="true"] .toggle-ring  { opacity: 0.35; }
.card-toggle[aria-pressed="true"] .toggle-check { opacity: 1; }

/* ==========================================================================
   18. Opsamlingsbjælke nederst
   ========================================================================== */
.pick-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--brand);
  color: #fff;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -6px 24px rgba(28, 43, 42, 0.18);
}

.pick-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  max-width: var(--w-page);
  margin-inline: auto;
  padding: var(--sp-3) var(--sp-4);
}
@media (min-width: 48rem) { .pick-bar-inner { padding-inline: var(--sp-6); } }

.pick-bar-text {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0;
  max-width: none;
  font-weight: 600;
}

.pick-bar-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.pick-bar .btn { flex: none; }

@media (max-width: 30rem) {
  .pick-bar-inner { flex-direction: column; align-items: stretch; }
  .pick-bar .btn { width: 100%; }
}

/* Plads i bunden, så bjælken ikke dækker indhold */
body.har-markeringer { padding-bottom: 6rem; }
@media (max-width: 30rem) { body.har-markeringer { padding-bottom: 9rem; } }

/* ==========================================================================
   19. Småting
   ========================================================================== */

/* Kun for skærmlæsere */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Link med logo, fx LinkedIn */
.link-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  font-weight: 600;
}
.link-icon-mark { display: flex; flex: none; color: #0A66C2; }
.link-icon-mark-etoro { height: 1.375rem; }
.link-icon-mark-etoro img { height: 100%; width: auto; display: block; }

.profile-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }

/* Om mig: bredere tekstkolonne med fælles højrekant */
.profile-text > *,
.profile-text p { max-width: 46rem; }
.profile-text .credentials { max-width: 46rem; }

.section-intro { max-width: 46rem; }
