/* ============================================================
   Xomit — contemporary, minimal. No orange, no eyebrows.
   Palette: ink + paper + electric violet, soft violet→cyan grad.
   ============================================================ */

:root {
  --ink:        #0b0b0f;
  --ink-soft:   #1a1a22;
  --paper:      #ffffff;
  --bg:         #fafafa;
  --bg-2:       #f3f3f5;
  --line:       #e8e8ec;
  --line-2:     #dcdce2;
  --muted:      #6a6a76;
  --muted-2:    #8c8c98;

  --violet:     #6c5cf2;
  --violet-700: #5847d6;
  --violet-50:  #f0eefe;
  --cyan:       #22cfe0;

  --grad: linear-gradient(110deg, #6c5cf2 0%, #8b6cf0 45%, #22cfe0 100%);

  --radius:     16px;
  --radius-sm:  11px;
  --radius-lg:  26px;
  --shadow-sm:  0 1px 2px rgba(15, 15, 25, .04), 0 2px 6px rgba(15, 15, 25, .04);
  --shadow-md:  0 8px 30px rgba(20, 18, 50, .08);
  --shadow-lg:  0 24px 60px rgba(30, 22, 70, .14);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 100%; } /* 1rem = brugerens egen basis-skriftstørrelse */

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--muted-2); font-weight: 500; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--violet); box-shadow: 0 8px 22px rgba(108, 92, 242, .35); }

.btn-outline {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-outline:hover { border-color: var(--violet); color: var(--violet-700); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-2); }

.btn-sm { padding: 9px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ───────── Klikbarhed: alt interaktivt skal vise pointer-cursor ───────── */
a[href],
button,
summary,
select,
[role="button"],
.course[data-id],
.program[data-id] {
  cursor: pointer;
}

/* ───────── Header ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, .8);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-logo-footer { height: 44px; }
/* (gamle brand-mark/brand-name beholdes ikke længere — logoet indeholder ordmærket) */

.nav-desktop { display: flex; gap: 24px; }
.nav-desktop a { font-size: 0.9375rem; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-desktop a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
/* [hidden] skal vinde — vis kun når attributten ikke er sat (mobil + åben) */
.nav-mobile:not([hidden]) { display: flex; }
.nav-mobile a { padding: 12px 8px; font-weight: 500; color: var(--ink); border-radius: 10px; }
.nav-mobile a:hover { background: var(--bg-2); }
.nav-mobile .btn { margin-top: 8px; }

/* ───────── Hero ───────── */
.hero { position: relative; overflow: hidden; padding: 96px 0 84px; }
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(48% 60% at 18% 12%, rgba(108, 92, 242, .20), transparent 60%),
    radial-gradient(40% 55% at 88% 8%, rgba(34, 207, 224, .16), transparent 62%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-title {
  font-size: clamp(2.5rem, 6.4vw, 4.625rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin-top: 24px;
  max-width: 60ch;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--muted);
}
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 880px;
}
.stat { padding-top: 22px; border-top: 1px solid var(--line-2); }
.stat-num { display: block; font-size: 2.375rem; font-weight: 800; letter-spacing: -0.04em; }
.stat-label { display: block; margin-top: 6px; font-size: 0.875rem; color: var(--muted); }

/* ───────── Trust ───────── */
.trust { padding: 26px 0 54px; }
.trust-line {
  max-width: 78ch;
  font-size: 1rem;
  color: var(--muted);
}
.trust-line strong { color: var(--ink); font-weight: 700; }
.trust-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-tags span {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ───────── Section primitives ───────── */
.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 24ch;
}
.section-sub { margin-top: 14px; max-width: 64ch; font-size: 1.0625rem; color: var(--muted); }

/* ───────── Value ───────── */
.value { padding: 64px 0; }
.value-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.value-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.value-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.375rem;
  border-radius: 12px;
  background: var(--violet-50);
  color: var(--violet-700);
  margin-bottom: 16px;
}
.value-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.value-card p { font-size: 0.90625rem; color: var(--muted); }

/* ───────── Catalog ───────── */
.catalog { padding: 60px 0; }
.catalog-head { max-width: 760px; }
.filter { margin: 30px 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: .18s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.course {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.course:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.course.featured { border-color: transparent; box-shadow: 0 0 0 1.5px var(--violet), var(--shadow-md); }
.course-badge {
  position: absolute; top: -11px; left: 22px;
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(108, 92, 242, .4);
}
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.course-len {
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--violet-700);
  background: var(--violet-50);
  padding: 4px 11px;
  border-radius: 999px;
}
.course-tool { font-family: var(--mono); font-size: 0.78125rem; color: var(--muted); text-align: right; }
.course h3 { font-size: 1.25rem; margin-bottom: 10px; }
.course > p { font-size: 0.90625rem; color: var(--muted); }
.course-points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.course-points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.84375rem;
  color: var(--ink-soft);
}
.course-points li::before {
  content: "";
  position: absolute; left: 2px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--grad);
}
.course-foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price { font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.02em; }

/* ───────── Programs ───────── */
.programs { padding: 60px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.program-list { margin-top: 34px; display: grid; gap: 16px; }
.program {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.program:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.program.enterprise { border-color: transparent; box-shadow: 0 0 0 1.5px var(--violet), var(--shadow-md); background: linear-gradient(180deg, #fff, #fbfaff); }
.program-meta { display: flex; flex-direction: column; gap: 8px; }
.program-len { font-weight: 700; font-size: 0.875rem; }
.program-track {
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--violet-700);
  background: var(--violet-50);
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}
.program-body h3 { font-size: 1.375rem; margin-bottom: 8px; }
.program-body > p { font-size: 0.9375rem; color: var(--muted); max-width: 64ch; }
.program-modules { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.program-modules span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
}
.program.enterprise .program-modules span { background: #fff; }
.program-foot { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.program-foot .price { font-size: 1.1875rem; }

/* ───────── Audience ───────── */
.audience { padding: 70px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience-grid { margin-top: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.aud-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.aud-card.highlight {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.aud-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.aud-card > p { font-size: 1rem; color: var(--muted); max-width: 50ch; }
.aud-card.highlight > p { color: #c9c9d4; }
.ticks { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 28px; font-size: 0.9375rem; }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  font-weight: 700;
  color: var(--violet);
}
.aud-card.highlight .ticks li::before { color: var(--cyan); }

/* ───────── Method ───────── */
.method { padding: 70px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.step-n {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--violet-700);
  background: var(--violet-50);
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
}
.steps h4 { font-size: 1.0625rem; margin-bottom: 4px; }
.steps p { font-size: 0.90625rem; color: var(--muted); }

.method-aside { position: sticky; top: 92px; }
.terminal {
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #23232e;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  background: #14141b;
  border-bottom: 1px solid #23232e;
}
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3a46; }
.terminal-bar span:nth-child(1) { background: #4b4b58; }
.terminal-bar em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #6f6f80;
}
.terminal pre { margin: 0; padding: 20px 18px; overflow-x: auto; }
.terminal code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.85;
  color: #d6d6e0;
  white-space: pre;
}
.c-dim { color: #6f6f80; }
.c-ok { color: #5be2c0; }
.aside-note { margin-top: 16px; font-size: 0.84375rem; color: var(--muted); }

/* ───────── Outcomes ───────── */
.outcomes { padding: 70px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.outcome-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.outcome {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.outcome h4 { font-size: 1.0625rem; margin-bottom: 8px; }
.outcome h4::before { content: ""; display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--grad); margin-bottom: 14px; }
.outcome p { font-size: 0.875rem; color: var(--muted); }

/* ───────── FAQ ───────── */
.faq { padding: 70px 0; }
.faq-inner { max-width: 820px; }
.faq-list { margin-top: 30px; display: grid; gap: 12px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 30px 18px 0;
  font-weight: 600;
  font-size: 1.03125rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--violet);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; font-size: 0.9375rem; color: var(--muted); }

/* ───────── Contact ───────── */
.contact { padding: 80px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  box-shadow: var(--shadow-lg);
}
.contact-text .section-title, .contact-text .section-sub { color: #fff; }
.contact-text .section-sub { color: #c9c9d4; }
.contact-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.contact-points li { position: relative; padding-left: 26px; font-size: 0.9375rem; color: #d6d6e0; }
.contact-points li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.84375rem; font-weight: 600; color: var(--ink); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(108, 92, 242, .15);
}
.field textarea { resize: vertical; }
.form-note { margin-top: 12px; font-size: 0.875rem; font-weight: 600; }
.form-note.ok { color: var(--violet-700); }
.form-note.err { color: #c0392b; }

/* ───────── Footer ───────── */
.site-footer { background: var(--ink); color: #c9c9d4; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 40px; }
.footer-brand p { margin-top: 16px; font-size: 0.90625rem; color: #9a9aa8; max-width: 38ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-nav h4 { font-size: 0.8125rem; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.footer-nav a { display: block; font-size: 0.90625rem; color: #9a9aa8; padding: 5px 0; transition: color .15s; }
.footer-nav a:hover { color: #fff; }
/* Tilgængelighedserklæring — diskret, men tydelig */
.footer-a11y {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #23232e;
}
.footer-a11y h4 { font-size: 0.8125rem; color: #fff; margin: 0 0 6px; letter-spacing: 0; }
.footer-a11y p { font-size: 0.84375rem; line-height: 1.6; color: #9a9aa8; max-width: 78ch; margin: 0; }
.footer-a11y a { color: #c9c9d4; text-decoration: underline; text-underline-offset: 2px; }
.footer-a11y a:hover { color: #fff; }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid #23232e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #6f6f80;
}
.footer-a11y + .footer-bottom { margin-top: 26px; }
.footer-tools { font-family: var(--mono); }

/* ───────── Clickable catalog cards ───────── */
.course[data-id], .program[data-id] { cursor: pointer; }
.course[data-id]:focus-visible, .program[data-id]:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}
.hint { color: var(--violet-700); font-weight: 600; }

/* ───────── Undervisere ───────── */
.teachers { padding: 72px 0; }
.teachers-head { max-width: 760px; }
.teachers-head .section-sub strong { color: var(--ink); font-weight: 700; }
.teachers-lead {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 980px;
}
.teachers-lead p { font-size: 1.03125rem; color: var(--muted); }
.teachers-lead strong { color: var(--ink); font-weight: 600; }
.teachers-lead em { font-style: italic; color: var(--violet-700); }

.teachers-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.teacher-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.teacher-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.teacher-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 1.375rem;
  border-radius: 13px;
  background: var(--violet-50);
  color: var(--violet-700);
  margin-bottom: 16px;
}
.teacher-card h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.teacher-card p { font-size: 0.90625rem; color: var(--muted); }
.teachers-foot {
  margin-top: 30px;
  max-width: 70ch;
  font-size: 0.96875rem;
  color: var(--muted);
  padding-left: 18px;
  border-left: 3px solid var(--violet);
}

/* ───────── Detalje-modal ───────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  background: rgba(11, 11, 15, .55);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  cursor: pointer; /* baggrunden lukker ved klik */
}
.modal-overlay:not([hidden]) { display: flex; animation: overlayIn .2s ease; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  cursor: default; /* indhold i modalen er ikke "klik for at lukke" */
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 38px 40px 34px;
  animation: modalIn .25s cubic-bezier(.2, .7, .3, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-size: 1.625rem; line-height: 1;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  transition: .15s;
}
.modal-close:hover { color: var(--ink); border-color: var(--ink); }

.modal-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.modal-len {
  font-weight: 700; font-size: 0.8125rem;
  color: var(--violet-700); background: var(--violet-50);
  padding: 4px 12px; border-radius: 999px;
}
.modal-track {
  font-weight: 600; font-size: 0.8125rem;
  color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 999px;
}
.modal-head h3 { font-size: clamp(1.5rem, 3.4vw, 1.875rem); padding-right: 40px; }
.modal-summary { margin-top: 12px; font-size: 1rem; color: var(--muted); }

.modal-body {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
}
.modal-body h4 { font-size: 0.875rem; margin-bottom: 12px; letter-spacing: 0; }
.modal-list, .modal-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.modal-list li { position: relative; padding-left: 26px; font-size: 0.90625rem; color: var(--ink-soft); }
.modal-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--violet); font-weight: 700;
}
.modal-facts li {
  font-size: 0.875rem; color: var(--muted);
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.modal-facts li strong { color: var(--ink); font-weight: 600; }
.modal-price-row {
  margin-top: 16px;
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 14px; border-top: 2px solid var(--ink);
}
.modal-price-label { font-size: 0.8125rem; color: var(--muted); }
.modal-price { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }

.modal-form-wrap { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.modal-form-wrap h4 { font-size: 1.0625rem; margin-bottom: 16px; letter-spacing: -0.01em; }
.modal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal input, .modal textarea { cursor: text; } /* gendan tekst-cursor (modal sætter default) */

/* ───────── Europe-first ───────── */
.eu { background: var(--ink); color: #fff; padding: 80px 0; }
.eu-head { max-width: 780px; }
.eu .section-title { color: #fff; }
.eu-lead { margin-top: 16px; font-size: 1.0625rem; color: #c9c9d4; }
.eu-lead strong { color: #fff; font-weight: 700; }
.eu-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.eu-provider {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #14141b;
  border: 1px solid #23232e;
  border-radius: var(--radius);
  padding: 22px 18px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease;
}
.eu-provider:hover { transform: translateY(-3px); border-color: var(--cyan); }
.eu-provider:hover .eu-name { color: var(--cyan); }
.eu-name { transition: color .15s ease; }

/* Diskret inline-firmalink i brødtekst */
.ext {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.ext:hover { color: var(--violet-700); text-decoration-color: var(--violet); }
/* På mørk baggrund (Europe-first hosting-tekst) */
.eu-hosting-text .ext:hover { color: #fff; text-decoration-color: var(--cyan); }
.eu-name { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.eu-loc { font-family: var(--mono); font-size: 0.78125rem; color: var(--cyan); }
.eu-role { font-size: 0.8125rem; color: #9a9aa8; }
.eu-hosting {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
  background: #14141b;
  border: 1px solid #23232e;
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.eu-hosting-text h3 { font-size: 1.25rem; color: #fff; margin-bottom: 10px; letter-spacing: -0.01em; }
.eu-hosting-text p { font-size: 0.90625rem; color: #c9c9d4; max-width: 60ch; }
.eu-hosting-text strong { color: #fff; font-weight: 600; }
.eu-hosting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.eu-hosting-grid .eu-provider { background: #0f0f15; }

.eu-foot { margin-top: 24px; max-width: 72ch; font-size: 0.90625rem; color: #c9c9d4; }
.eu-aside { color: #6f6f80; }

/* ───────── Kalender ───────── */
.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;
}
/* Honeypot — skjult for mennesker, synligt for bots (spam-fælde) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Skip-link — skjult indtil den får tastatur-fokus */
.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 11px 18px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; outline: 2px solid var(--cyan); outline-offset: 2px; }
#main:focus { outline: none; }

/* Påkrævet-markering (tegn + farve, ikke farve alene) */
.req { color: var(--violet-700); font-weight: 700; }
.form-req-hint { margin: 0 0 12px; font-size: 0.8125rem; color: var(--muted); }
.calendar { padding: 60px 0; }
.cal-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 22px;
}
.cal-selects { display: flex; flex-wrap: wrap; gap: 10px; }
.cal-selects select {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 16px;
}
.cal-selects select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(108, 92, 242, .15); }

.cal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.cal-table { width: 100%; border-collapse: collapse; font-size: 0.90625rem; min-width: 680px; }
.cal-table thead th {
  text-align: left;
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--muted);
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.cal-table tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-soft); }
.cal-table tbody tr:last-child td { border-bottom: 0; }
.cal-table tbody tr:not(.cal-vacation):hover { background: var(--bg-2); }
.cal-date { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cal-name { font-weight: 600; color: var(--ink); }
.cal-price { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cal-action { text-align: right; white-space: nowrap; }
.cal-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 3px 9px;
  border-radius: 999px;
  vertical-align: middle;
}
.cal-badge-k { background: var(--violet-50); color: var(--violet-700); }
.cal-badge-u { background: #e3f8fb; color: #0c7a88; }
.cal-vacation td {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  background: var(--bg-2);
  padding: 13px;
}
.cal-empty { padding: 28px 18px; text-align: center; color: var(--muted); font-size: 0.9375rem; }

/* ───────── Reveal animation ───────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */
@media (max-width: 980px) {
  .value-grid, .outcome-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .teachers-grid { grid-template-columns: repeat(3, 1fr); }
  .eu-grid { grid-template-columns: repeat(3, 1fr); }
  .eu-hosting { grid-template-columns: 1fr; gap: 22px; }
  .teachers-lead { grid-template-columns: 1fr; gap: 16px; }
  .modal-body { grid-template-columns: 1fr; gap: 22px; }
  .method-inner { grid-template-columns: 1fr; gap: 40px; }
  .method-aside { position: static; }
  .program { grid-template-columns: 1fr; gap: 18px; }
  .program-foot { align-items: flex-start; text-align: left; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; padding: 40px 32px; }
}

/* Mobilmenuen findes kun under 900px (8 menupunkter) — skjul den helt på desktop */
@media (min-width: 901px) {
  .nav-mobile { display: none !important; }
}

/* Hamburger-menu overtager under 900px, så de mange nav-punkter ikke overflyder */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .header-actions .btn-sm { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; }
  .hero-stats { grid-template-columns: 1fr; gap: 0; }
  .stat { padding: 18px 0; border-top: 1px solid var(--line-2); }
  .value-grid, .course-grid, .outcome-grid, .audience-grid, .footer-nav, .teachers-grid { grid-template-columns: 1fr; }
  .eu-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-filters { flex-direction: column; align-items: stretch; }
  .cal-selects { width: 100%; }
  .cal-selects select { flex: 1; }
  .eu-hosting-grid { grid-template-columns: 1fr; }
  .eu-hosting { padding: 24px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .contact { padding: 56px 0; }
  .modal { padding: 30px 22px 26px; }
  .modal-form { grid-template-columns: 1fr; }
  .modal-overlay { padding: 24px 14px; }
}

/* ───────── Reduceret bevægelse (respekterer brugerens systemvalg) ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* Sørg for at scroll-afslørede elementer altid er synlige */
  .reveal { opacity: 1 !important; transform: none !important; }
}
