/* Genbrugelige komponenter: nav, knapper, kort, proceslinje, tags, paneler, modal */

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-surface) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: var(--fs-300);
  color: var(--text-primary);
  text-decoration: none;
}

.nav__brand svg { width: 28px; height: 28px; color: var(--turkis-600); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  cursor: pointer;
  color: var(--text-primary);
}
.nav__toggle svg { width: 22px; height: 22px; }

.nav__list {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-200);
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}

.nav__list a:hover { background: var(--bg-surface-muted); color: var(--text-primary); }
.nav__list a[aria-current="page"] {
  background: var(--turkis-100);
  color: var(--turkis-600);
}

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__list {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-3) var(--space-5);
    gap: var(--space-1);
    display: none;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-6);
  font-weight: 700;
  font-size: var(--fs-200);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.btn svg { width: 20px; height: 20px; }

.btn--primary {
  background: var(--turkis-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--turkis-600); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn--secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn--secondary:hover { background: var(--bg-surface-muted); transform: translateY(-1px); }

.btn--ghost {
  background: var(--bg-surface-muted);
  color: var(--text-primary);
}
.btn--ghost:hover { background: var(--border-subtle); }

.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--fs-100); }
.btn--full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}

.card--interactive:hover,
.card--interactive:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.card__icon svg { width: 26px; height: 26px; }

.card__icon--turkis { background: var(--turkis-100); color: var(--turkis-600); }
.card__icon--violet { background: var(--violet-100); color: var(--violet-600); }
.card__icon--gul { background: var(--gul-100); color: var(--gul-600); }
.card__icon--koral { background: var(--koral-100); color: var(--koral-600); }

.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }

.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ---------- Tags / chips ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-100);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--bg-surface-muted);
  color: var(--text-secondary);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--fs-200);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  line-height: var(--lh-snug);
  transition: all var(--duration-fast) var(--ease-standard);
}
.filter-chip svg { width: 18px; height: 18px; flex-shrink: 0; }
.filter-chip:hover { border-color: var(--turkis-500); }
.filter-chip[aria-pressed="true"] {
  background: var(--turkis-500);
  border-color: var(--turkis-500);
  color: var(--navy-950);
}

.difficulty {
  font-size: var(--fs-100);
  font-weight: 700;
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
}
.difficulty--let { background: var(--turkis-100); color: var(--turkis-600); }
.difficulty--mellem { background: var(--gul-100); color: var(--gul-600); }
.difficulty--avanceret { background: var(--koral-100); color: var(--koral-600); }

/* ---------- Proceslinje (9 trin) ---------- */
.process-path {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.process-path__step { position: relative; }

.process-path__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text-secondary);
  padding: var(--space-3) var(--space-1);
  border-radius: var(--radius-md);
  text-align: center;
  transition: background var(--duration-fast) var(--ease-standard);
}
.process-path__link:hover { background: var(--bg-surface-muted); }

.process-path__bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-surface-muted);
  border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  flex-shrink: 0;
}
.process-path__bubble svg { width: 20px; height: 20px; }

.process-path__step[data-color="turkis"] .process-path__bubble { border-color: var(--turkis-500); color: var(--turkis-600); }
.process-path__step[data-color="violet"] .process-path__bubble { border-color: var(--violet-500); color: var(--violet-600); }
.process-path__step[data-color="gul"] .process-path__bubble { border-color: var(--gul-500); color: var(--gul-600); }
.process-path__step[data-color="koral"] .process-path__bubble { border-color: var(--koral-500); color: var(--koral-600); }

.process-path__step.is-done .process-path__bubble {
  background: var(--turkis-500);
  border-color: var(--turkis-500);
  color: var(--navy-950);
}
.process-path__step.is-current .process-path__bubble {
  box-shadow: 0 0 0 4px var(--turkis-100);
}

.process-path__label {
  font-size: var(--fs-100);
  font-weight: 700;
  line-height: var(--lh-snug);
}

@media (max-width: 900px) {
  .process-path {
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scroll-snap-type: x proximity;
  }
  .process-path__step { scroll-snap-align: start; }
}

/* ---------- Fold-ud paneler ---------- */
.disclosure {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
}
.disclosure + .disclosure { margin-top: var(--space-3); }

.disclosure > summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-4) var(--space-5);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--duration-base) var(--ease-standard); }
.disclosure[open] > summary svg { transform: rotate(180deg); }

.disclosure__body {
  padding: 0 var(--space-5) var(--space-5);
}

/* ---------- Statuslinje / fremdrift ---------- */
.progress-bar {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-muted);
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--turkis-500), var(--violet-500));
  border-radius: var(--radius-pill);
  transition: width var(--duration-base) var(--ease-standard);
}

/* ---------- Modal (Jeg sidder fast) ---------- */
.stuck-fab {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--navy-900);
  color: var(--paper-50);
  border: none;
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-5);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}
.stuck-fab svg { width: 20px; height: 20px; color: var(--gul-500); }
.stuck-fab:hover { transform: translateY(-2px); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 24, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  z-index: 200;
}
.modal-overlay.is-open { display: flex; }

.modal {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  max-height: 85vh;
  overflow-y: auto;
}
.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.modal__close {
  background: var(--bg-surface-muted);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.modal__close svg { width: 18px; height: 18px; }

.modal ul { padding-left: 1.1em; }
.modal li { color: var(--text-primary); }

/* ---------- Hero-illustration (selvstændig SVG/CSS-grafik) ---------- */
.hero-art {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* ---------- Diverse ---------- */
.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: var(--radius-pill);
  background: var(--koral-500);
  color: var(--navy-950);
  font-size: var(--fs-100);
  font-weight: 800;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.quote {
  border-left: 4px solid var(--turkis-500);
  padding-left: var(--space-4);
  font-style: italic;
  color: var(--text-primary);
}

.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  color: var(--text-muted);
}
