/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SKYGGELANDET — Thomas Nordbo Andersen
   Projekt : Operation Skyggeland
   Forfatter: Thomas Nordbo Andersen
   Dato    : 2026-03-21 · v1.0
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Self-hostet Inter font (GDPR: ingen Google-opslag) ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Inter-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Inter-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Lora-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Lora-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Lora-Italic.ttf') format('truetype');
}

/* ── RESET & BASE ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0f172a;
  --bg-card:    #1e293b;
  --bg-card2:   #263044;
  --border:     #334155;
  --text:       #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim:   #64748b;
  --red:        #ef4444;
  --red-dark:   #b91c1c;
  --blue:       #60a5fa;
  --blue-dark:  #2563eb;
  --green:      #22c55e;
  --yellow:     #f59e0b;
  --font-head:  'Inter', sans-serif;
  --font-body:  'Lora', Georgia, serif;
  --max-w:      760px;
  --radius:     12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── SITE HEADER ──────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,23,42,0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.nav-links li { display: flex; align-items: center; }

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: .45rem 1rem;
  border-radius: 6px;
  font-weight: 600 !important;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--red-dark); }

.nav-login {
  color: var(--blue) !important;
  border: 1px solid rgba(96,165,250,0.35);
  padding: .4rem .85rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: all .2s;
  white-space: nowrap;
}

.nav-login:hover {
  background: rgba(96,165,250,0.12);
  border-color: var(--blue);
}

.nav-wb {
  color: var(--yellow) !important;
  border: 1px solid rgba(245,158,11,0.35);
  padding: .4rem .85rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: all .2s;
  white-space: nowrap;
}

.nav-wb:hover {
  background: rgba(245,158,11,0.12);
  border-color: var(--yellow);
}

/* Breakpoint for mindre desktops — skjul label på knap-elementer så kun emoji vises */
@media (max-width: 1100px) {
  .site-header { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
}

/* ── DROPDOWN-MENU (desktop) ─────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.3rem 0;
}
.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.7em;
  opacity: 0.7;
  transition: transform .2s;
}
.nav-dropdown:hover > a::after,
.nav-dropdown:focus-within > a::after {
  transform: translateY(1px) rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: rgba(15,23,42,0.98);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all .2s ease-out;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  z-index: 120;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

/* Usynlig buffer mellem nav-link og dropdown så musen kan krydse over */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown-menu li {
  list-style: none;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.15rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-radius: 0;
  transition: all .15s;
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding-left: 1.35rem;
  text-decoration: none;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0;
  list-style: none;
}

/* ── HERO ─────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(239,68,68,0.08) 0%, transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 59px,
    rgba(255,255,255,0.02) 59px,
    rgba(255,255,255,0.02) 60px
  );
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}

.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block; width: 40px; height: 1px;
  background: var(--red); opacity: .5;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-title .accent { color: var(--red); }

.hero-sub {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3rem;
  font-weight: 400;
  font-style: italic;
  font-family: var(--font-body);
}

.hero-meta {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}

.btn {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  border: none;
  display: inline-flex; align-items: center; gap: .5rem;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover { border-color: var(--text-muted); transform: translateY(-1px); text-decoration: none; }

.hero-listen-note {
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 1rem;
}

.hero-scroll {
  position: absolute; bottom: 2rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── LÆSERNØGLE ─────────────────────── */
.reader-key {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 2rem 1.5rem;
}
.reader-key-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  text-align: center;
}
.reader-key-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.reader-key-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.reader-key-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reader-key-text {
  font-family: var(--font-head);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ── STATUS BAR ───────────────────────── */
.status-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
}

.status-item {
  text-align: center;
  font-family: var(--font-head);
}

.status-label {
  font-size: 0.7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: .25rem;
}

.status-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.status-value.red { color: var(--red); }
.status-value.yellow { color: var(--yellow); }
.status-value.green { color: var(--green); }
.status-value.blue { color: var(--blue); }

/* ── SECTION WRAPPER ──────────────────── */
.sections-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.sections-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 3rem;
}

/* ── SECTION CARD ─────────────────────── */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color .2s;
}

.section-card:hover { border-color: var(--text-dim); }

.section-card.kommende {
  opacity: .55;
}

.section-card.crisis { border-left: 3px solid var(--red); }
.section-card.active-case { border-left: 3px solid var(--yellow); }
.section-card.kommende { border-left: 3px solid var(--text-dim); }

.section-header {
  padding: 1.25rem 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.section-num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 2rem;
  padding-top: .1rem;
}

.section-info { flex: 1; }

.section-title-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: .25rem;
}

.section-date {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.section-badge {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 4px;
  white-space: nowrap;
  align-self: center;
}

.badge-crisis { background: rgba(239,68,68,.15); color: var(--red); }
.badge-done   { background: rgba(34,197,94,.1); color: var(--green); }
.badge-active { background: rgba(245,158,11,.1); color: var(--yellow); }
.badge-coming { background: rgba(100,116,139,.15); color: var(--text-dim); }

/* ── NYT BADGE (pulserende) ──────────── */
.badge-new {
  background: linear-gradient(135deg, rgba(239,68,68,.2), rgba(245,158,11,.2));
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.5);
  position: relative;
  animation: badge-new-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-new-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.45); }
  50%      { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

/* Lille rød prik på sektion-nummer når der er opdatering */
.section-num { position: relative; }
.section-num-dot {
  position: absolute;
  top: -2px;
  right: -8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(239,68,68,.6);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); }
  50%      { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

.section-card.has-update { border-left-color: var(--red); }

.section-update-tag {
  display: inline-block;
  margin-left: .35rem;
  padding: 1px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fca5a5;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.35);
  border-radius: 3px;
}

/* ── NYT-BANNER (forsiden, over sektionerne) ── */
.nyt-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  padding: 0.95rem 1.15rem;
  background: linear-gradient(135deg, rgba(239,68,68,.08), rgba(245,158,11,.08));
  border: 1px solid rgba(239,68,68,.35);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform .2s, border-color .2s, background .2s;
}
.nyt-banner:hover {
  transform: translateY(-1px);
  border-color: rgba(239,68,68,.6);
  background: linear-gradient(135deg, rgba(239,68,68,.12), rgba(245,158,11,.12));
}
.nyt-banner-pulse {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(239,68,68,.55);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
.nyt-banner-label {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fca5a5;
  white-space: nowrap;
}
.nyt-banner-text {
  flex: 1 1 auto;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #cbd5e1;
}
.nyt-banner-text strong { color: var(--text); }
.nyt-banner-arrow {
  flex: 0 0 auto;
  font-size: 1.2rem;
  color: var(--red);
  transition: transform .2s;
}
.nyt-banner:hover .nyt-banner-arrow { transform: translateX(3px); }

@media (max-width: 640px) {
  .nyt-banner { flex-wrap: wrap; gap: 0.5rem 0.75rem; }
  .nyt-banner-text { flex-basis: 100%; order: 3; }
  .nyt-banner-arrow { order: 2; margin-left: auto; }
}

/* ── UPDATE-MARKER (inde i sektion-bodyen) ── */
.update-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: 4px;
}
.update-marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
.update-marker-text {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fca5a5;
}

/* ── NY-SEKTION DIVIDER (markerer ny indrykning i en eksisterende sektion) ── */
.new-section-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 2.5rem 0 1.25rem;
}
.new-section-divider-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239,68,68,.55), transparent);
}
.new-section-divider-pulse {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(239,68,68,.6);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
.new-section-divider-label {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .15em;
  color: #fca5a5;
  white-space: nowrap;
}

.new-section-block {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background:
    linear-gradient(135deg, rgba(239,68,68,.10), rgba(245,158,11,.06)),
    var(--bg-card);
  border: 1px solid rgba(239,68,68,.45);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
}
.new-section-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  animation: new-shimmer 3.5s ease-in-out infinite;
}
@keyframes new-shimmer {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50%      { opacity: 1;   transform: translateX(0); }
}
.new-section-block-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  background: rgba(239,68,68,.18);
  border: 1px solid rgba(239,68,68,.5);
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #fecaca;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.new-section-block-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(239,68,68,.7);
  animation: dot-pulse 1.8s ease-in-out infinite;
}
.new-section-block-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.45rem;
  line-height: 1.25;
}
.new-section-block-sub {
  font-family: var(--font-head);
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
  margin: 0;
}

@media (max-width: 640px) {
  .new-section-block { padding: 1.15rem 1rem; }
  .new-section-block-title { font-size: 1.15rem; }
  .new-section-divider-label { font-size: 0.65rem; }
}

.section-chevron {
  color: var(--text-dim);
  font-size: 1.2rem;
  transition: transform .3s;
  align-self: center;
}

.section-card.open .section-chevron { transform: rotate(180deg); }

.section-body {
  display: none;
  padding: 0 1.5rem 1.75rem 4rem;
  border-top: 1px solid var(--border);
}

.section-card.open .section-body { display: block; padding-top: 1.5rem; }

.section-body p {
  color: #cbd5e1;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

.section-body p:last-child { margin-bottom: 0; }

.section-body strong { color: var(--text); font-weight: 600; }
.section-body em { color: var(--text-muted); }

.placeholder-block {
  background: rgba(245,158,11,.07);
  border: 1px dashed rgba(245,158,11,.3);
  border-radius: 6px;
  padding: .75rem 1rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--yellow);
  margin: 1rem 0;
}

.placeholder-block::before { content: '✏️  '; }

.blockquote-highlight {
  border-left: 3px solid var(--red);
  padding: .75rem 1.25rem;
  margin: 1.25rem 0;
  background: rgba(239,68,68,.05);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-muted);
}

.blockquote-highlight strong {
  color: var(--text);
  font-style: normal;
}

.coming-soon-body {
  display: block;
  padding: 1.5rem 1.5rem 1.75rem 4rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ── FACTS BOX ────────────────────────── */
.facts-box {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-family: var(--font-head);
  font-size: 0.85rem;
  overflow-x: auto;
}
.facts-box table {
  min-width: 0;
  width: 100%;
  table-layout: auto;
}

/* ── WAIS-IV TABEL ──────────────────── */
.wais-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
}
.wais-table th,
.wais-table td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.wais-table tr:first-child th { border-bottom-width: 2px; }
.wais-table .col-score { text-align: center; white-space: nowrap; }
.wais-alert-light { background: rgba(220,53,69,0.07); }
.wais-alert { background: rgba(220,53,69,0.12); }
.wais-alert-val { font-weight: bold; color: #dc3545; }

@media (max-width: 600px) {
  .wais-table th,
  .wais-table td { padding: 0.35rem 0.3rem; font-size: 0.75rem; }
  .wais-table td:first-child,
  .wais-table th:first-child { word-break: break-word; }
}

.facts-box-title {
  font-size: 0.7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .75rem;
  font-weight: 700;
}

.facts-row {
  display: flex; gap: 1rem;
  justify-content: space-between; flex-wrap: wrap;
}

.fact-item { text-align: center; }
.fact-val { font-size: 1.4rem; font-weight: 800; color: var(--text); display: block; }
.fact-lbl { font-size: 0.7rem; color: var(--text-dim); }
.fact-val.red { color: var(--red); }
.fact-val.yellow { color: var(--yellow); }
.facts-note {
  font-size: .8rem; color: var(--text-dim);
  margin-top: .75rem; margin-bottom: 0;
  font-family: var(--font-head);
}
.btn-full { width: 100%; justify-content: center; }

/* ── MUR-OVERBLIKSTABEL ──────────────── */
.wall-overview {
  max-width: var(--max-w);
  margin: 0 auto 2rem;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.wall-overview-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.4rem;
}

.wall-overview-sub {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.wall-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.wall-table-wrap::-webkit-scrollbar { height: 6px; }
.wall-table-wrap::-webkit-scrollbar-track { background: transparent; }
.wall-table-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.wall-table-wrap::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

.wall-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-head);
  font-size: 0.82rem;
  line-height: 1.5;
}

.wall-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.wall-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(51,65,85,.4);
  color: #cbd5e1;
  vertical-align: top;
}

.wall-table td:first-child { font-weight: 600; white-space: nowrap; }
.wall-table td em { color: var(--text-muted); }

.wall-row-active td { background: rgba(245,158,11,.03); }

.wall-badge {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-right: 0.4em;
  vertical-align: middle;
}

.wall-overview-note {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--red);
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .wall-table { font-size: 0.75rem; }
  .wall-table th, .wall-table td { padding: 0.5rem 0.5rem; }
  .wall-table td:first-child { white-space: normal; }
}

/* ── §20-SPØRGSMÅL CTA ──────────────── */
.cta-questions {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(142, 68, 173, 0.06);
  border: 1px solid rgba(142, 68, 173, 0.2);
  border-radius: var(--radius);
  text-align: center;
}

.cta-questions-text {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cta-questions-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-copy, .btn-cta-link {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}

.btn-cta-copy {
  background: #8e44ad;
  color: #fff;
  border: none;
}

.btn-cta-copy:hover { background: #7d3c98; }
.btn-cta-copy.copied { background: var(--green); }

.btn-cta-link {
  background: transparent;
  color: #8e44ad;
  border: 1.5px solid rgba(142, 68, 173, 0.4);
}

.btn-cta-link:hover { background: rgba(142, 68, 173, 0.08); text-decoration: none; }

/* ── GDPR PRIVACY TEKST ─────────────── */
.form-privacy {
  background: rgba(96,165,250,.05);
  border: 1px solid rgba(96,165,250,.15);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-privacy-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.form-privacy p {
  font-family: var(--font-head);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}

/* ── COLOPHON / OM TILBLIVELSEN ──────── */
.colophon-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
}

.colophon-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── HVEM FØLGER MED ─────────────────── */
.orgs-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.orgs-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.orgs-eyebrow {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.orgs-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.orgs-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.orgs-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: center;
}

/* ── PINNET BÅS — Hovedaktørerne (PFA + ARK) ── */
.orgs-pinned {
  width: 100%;
  max-width: 720px;
  background: linear-gradient(180deg, rgba(239,68,68,0.06), rgba(239,68,68,0.02));
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.75rem;
}
.orgs-pinned-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 1rem;
  text-align: center;
}
.orgs-pinned-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 580px) {
  .orgs-pinned-grid { grid-template-columns: 1fr; }
}
.org-pin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem 0.95rem;
  text-align: center;
  transition: all .2s;
}
.org-pin-card.active {
  border-color: rgba(239,68,68,0.45);
  box-shadow: 0 4px 18px rgba(239,68,68,0.12);
}
.org-pin-role {
  font-family: var(--font-head);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.org-pin-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.55rem;
}
.org-pin-stats {
  font-family: var(--font-head);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.org-pin-count {
  font-weight: 700;
  color: var(--red);
}
.org-pin-likely {
  font-weight: 600;
  color: #f39c12;
  opacity: 0.92;
}
.org-pin-note {
  color: #f39c12;
  opacity: 0.65;
  font-size: 0.72rem;
  margin-left: 0.2rem;
  cursor: help;
}
.org-pin-ago { color: var(--text-dim); }
.org-pin-empty {
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.7rem;
}

/* ── Øvrige organisationer ── */
.orgs-others {
  width: 100%;
}
.orgs-others-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  text-align: center;
}

.org-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
}

.org-name {
  font-weight: 600;
  color: var(--text);
}

.org-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--red);
  background: rgba(239,68,68,0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.org-time {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.orgs-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.orgs-loading, .orgs-empty {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-style: italic;
}

/* ── SÆRLIGT MARKEREDE BESØG — flydende chips (uden boks) ── */
.orgs-highlight {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.25rem 0.5rem;
  margin: 0.5rem 0 0.25rem;
}
.org-chip-special {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  max-width: 100%;
}
.org-chip-special:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}
.org-chip-special .chip-icon {
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}
.org-chip-special .chip-name {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.org-chip-special .chip-count {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.12rem 0.4rem;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  flex-shrink: 0;
}
.org-chip-special .chip-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  padding-left: 0.3rem;
  border-left: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
/* Separator mellem 'særligt markerede' og 'øvrige' */
.orgs-highlight + .orgs-others {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255,255,255,0.10);
  width: 100%;
  max-width: 1100px;
}
/* Mobil: chips wrapper naturligt, lidt mindre padding */
@media (max-width: 640px) {
  .orgs-highlight {
    gap: 0.4rem;
    padding: 0.25rem 0.25rem;
  }
  .org-chip-special {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
    gap: 0.4rem;
  }
  .org-chip-special .chip-time {
    display: none;  /* skjul "X dage siden" på mobil for plads */
  }
}
@media (max-width: 380px) {
  .org-chip-special .chip-count {
    padding: 0.08rem 0.3rem;
    font-size: 0.68rem;
  }
}

.colophon-eyebrow {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.colophon-title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.colophon-inner p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.colophon-punchline {
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  background: rgba(239,68,68,.06);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

/* ── COMMUNITY FORM ───────────────────── */
.community-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 5rem 2rem;
}

.community-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.community-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.community-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.community-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input, .form-textarea, .form-select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .65rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color .2s;
  outline: none;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--blue);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-select option { background: var(--bg-card); }

.form-consent {
  display: flex; align-items: flex-start; gap: .75rem;
  text-align: left; margin-bottom: 1.5rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-consent input[type="checkbox"] {
  margin-top: .2rem;
  accent-color: var(--blue);
  width: 1rem; height: 1rem;
  flex-shrink: 0;
}

.form-success {
  display: none;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 8px;
  padding: 1.5rem;
  color: var(--green);
  font-family: var(--font-head);
  text-align: center;
}

/* ── FOOTER ───────────────────────────── */
.site-footer {
  background: #080d1a;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

.footer-logo span { color: var(--red); }

.footer-text {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

.footer-text a { color: var(--text-dim); }
.footer-text a:hover { color: var(--text-muted); }

.footer-updated {
  margin-top: 1.5rem;
  font-family: var(--font-head);
  font-size: 0.7rem;
  color: var(--text-dim);
  opacity: .6;
}

.footer-credit {
  margin-top: 1rem;
  font-family: var(--font-head);
  font-size: 0.68rem;
  color: var(--text-dim);
  opacity: .5;
  letter-spacing: 0.04em;
}
.footer-credit strong {
  color: var(--text-muted);
  font-weight: 600;
}

/* ── SECTION BODY LISTS & HEADINGS ────── */
.section-body ul, .section-body ol {
  padding-left: 1.4rem;
  margin: .75rem 0 1rem;
  color: #cbd5e1;
}
.section-body li { margin-bottom: .35rem; font-size: 1rem; }
.section-body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.4rem 0 .6rem;
}

/* ── FAQ SECTION ─────────────────────── */
#faq { border-left: 3px solid var(--blue); }
.badge-info { background: rgba(46,109,164,.15); color: var(--blue); }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--blue); }
.faq-item h4 {
  margin: 0 0 0.6rem 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--text);
  font-style: italic;
}
.faq-item p {
  margin: 0;
  line-height: 1.7;
  opacity: 0.9;
}

/* ── GUIDE SECTION ────────────────────── */
.section-card.guide { border-left: 3px solid var(--green); }
.badge-guide { background: rgba(34,197,94,.15); color: var(--green); }

.guide-intro {
  background: rgba(34,197,94,.05);
  border: 1px solid rgba(34,197,94,.15);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: .95rem;
  color: var(--text-muted);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.guide-step {
  display: flex;
  gap: 1.1rem;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  transition: border-color .2s;
}
.guide-step:hover { border-color: rgba(34,197,94,.3); }

.guide-step-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  opacity: .25;
  min-width: 2.2rem;
  line-height: 1;
  padding-top: .1rem;
  text-align: right;
}

.guide-step-content { flex: 1; }

.guide-step-title {
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}

.guide-step-content p {
  margin-bottom: .6rem !important;
  font-size: .92rem !important;
  line-height: 1.65 !important;
}
.guide-step-content p:last-child { margin-bottom: 0 !important; }

.guide-step-content ul {
  padding-left: 1.2rem;
  margin: .4rem 0 .6rem;
  color: #cbd5e1;
  font-size: .9rem;
  list-style: disc;
}
.guide-step-content li { margin-bottom: .25rem; }

.guide-note {
  background: rgba(96,165,250,.06);
  border: 1px solid rgba(96,165,250,.18);
  border-radius: 6px;
  padding: .75rem 1rem;
  font-family: var(--font-head);
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

/* ── DETECTIVE TIMELINE ───────────────── */
.det-timeline {
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.dt-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}

.dt-date {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 6.5rem;
  text-align: right;
  padding-top: .2rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.dt-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--border);
  margin-top: .3rem;
  flex-shrink: 0;
}
.dt-dot.red    { background: var(--red); box-shadow: 0 0 6px rgba(239,68,68,.4); }
.dt-dot.yellow { background: var(--yellow); }
.dt-dot.green  { background: var(--green); box-shadow: 0 0 6px rgba(34,197,94,.4); }
.dt-dot.blue   { background: var(--blue); }

.dt-content-wrap {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  border-left: 2px solid var(--border);
  padding: 0 0 .75rem .75rem;
  flex: 1;
}

.dt-content {
  flex: 1;
  font-family: var(--font-head);
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.dt-content strong { color: var(--text); }

/* inline code */
code {
  font-family: 'Courier New', Courier, monospace;
  font-size: .85em;
  background: rgba(255,255,255,.07);
  padding: .1em .35em;
  border-radius: 4px;
  color: var(--blue);
}

/* ── HAMBURGER MENU ──────────────────── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all .3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15,23,42,0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 99;
  padding: 1.5rem 1.5rem 3rem;
  overflow-y: auto;
}

.mobile-nav.active { display: block; }

/* Gruppe-struktur */
.mobile-nav-group {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}
.mobile-nav-group:last-child { margin-bottom: 0; }

.mobile-nav-label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 0.5rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

.mobile-nav a {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid rgba(51,65,85,0.5);
  transition: all .15s;
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav a:hover,
.mobile-nav a:active {
  color: var(--text);
  background: rgba(255,255,255,0.03);
  padding-left: 0.75rem;
  text-decoration: none;
}

/* Handling-knapper — højere prioritet visuelt */
.mobile-nav .nav-cta-mobile,
.mobile-nav .nav-login-mobile,
.mobile-nav .nav-wb-mobile {
  display: block;
  margin-top: 0;
  padding: 0.75rem 0.25rem;
  font-size: 1rem;
  border-radius: 0;
  border-bottom: 1px solid rgba(51,65,85,0.5);
  background: transparent;
}

.mobile-nav .nav-cta-mobile { color: var(--red); font-weight: 700; }
.mobile-nav .nav-cta-mobile:hover { background: rgba(239,68,68,0.08); color: var(--red); }

.mobile-nav .nav-login-mobile { color: var(--blue); }
.mobile-nav .nav-login-mobile:hover { background: rgba(96,165,250,0.08); color: var(--blue); }

.mobile-nav .nav-wb-mobile { color: var(--yellow); }
.mobile-nav .nav-wb-mobile:hover { background: rgba(245,158,11,0.08); color: var(--yellow); }

/* ── RESPONSIVE ───────────────────────── */
/* Tablet-breakpoint: skjul desktop-nav allerede ved 1024px så den ikke klemmes */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 768px) {
  .site-header { padding: 0 1rem; height: 60px; }
  .mobile-nav { top: 60px; }
  .site-logo { font-size: 1rem; }
  .status-bar { gap: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3.5rem); }
  .hero-sub { font-size: 0.95rem; padding: 0 0.5rem; }
  .hero-listen-note { font-size: 0.7rem !important; }
  .sections-wrapper { padding: 2rem 0.75rem; }

  /* ── SECTION CARDS MOBIL ──────────────── */
  .section-card {
    margin-bottom: 0.4rem !important;
    border-radius: 8px !important;
  }

  .section-header {
    display: flex !important;
    align-items: center !important;
    padding: 0.7rem 0.75rem !important;
    gap: 0 !important;
  }

  /* Skjul nummer og badge når collapsed */
  .section-num { display: none !important; }
  .section-badge { display: none !important; }

  /* Vis badge når åben */
  .section-card.open .section-badge {
    display: inline-block !important;
    font-size: 0.55rem;
    padding: .12rem .4rem;
    margin-left: 0.4rem;
  }

  /* Lyt-knap altid synlig — kompakt ikon til højre */
  .tts-listen-btn {
    display: inline-flex !important;
    position: static !important;
    transform: none !important;
    padding: 6px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    margin-left: auto !important;
    margin-right: 0.3rem !important;
    flex-shrink: 0 !important;
    border: none !important;
    background: rgba(96, 165, 250, 0.1) !important;
    border-radius: 50% !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
  }
  .tts-btn-text { display: none !important; }
  .tts-icon-headphones { width: 18px !important; height: 18px !important; }

  /* Titel fylder bredden */
  .section-info {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .section-title-text {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .section-date {
    font-size: 0.65rem !important;
  }

  /* Chevron */
  .section-chevron {
    font-size: 0.9rem !important;
    flex-shrink: 0 !important;
    padding-left: 0.3rem !important;
  }

  /* ── TTS PLAYER MOBIL ─────────────────── */
  .tts-player {
    padding: 0 0.75rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .tts-player-inner { padding: 10px 0 12px; gap: 8px; }
  .tts-player-label span { display: none; }
  .tts-player-title { font-size: 0.82rem; }
  .tts-ctrl { width: 44px; height: 44px; }
  .tts-ctrl svg { width: 18px; height: 18px; }
  .tts-ctrl-play { width: 52px; height: 52px; }
  .tts-ctrl-play svg { width: 22px; height: 22px; }
  .tts-player-progress { height: 8px; }

  /* ── SECTION BODY MOBIL ───────────────── */
  .section-body {
    padding: 0 1rem 1.25rem 1rem;
  }

  .section-body p,
  .section-body li {
    font-size: 0.92rem;
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .section-body h3 {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .section-body ul {
    padding-left: 1.1rem;
  }

  .section-body .blockquote-highlight {
    padding: 0.75rem 0.85rem;
    margin: 0.75rem 0;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* ── GUIDE STEPS MOBIL ────────────────── */
  .guide-step { gap: .6rem; }
  .guide-step-num { font-size: 1.3rem; min-width: 1.5rem; }
  .guide-step-title { font-size: 0.92rem; }
  .guide-step-content p,
  .guide-step-content li { font-size: 0.88rem; line-height: 1.6; }
  .guide-step-content ul { padding-left: 1rem; }

  /* ── FACTS/TABLES MOBIL ───────────────── */
  .dt-item { grid-template-columns: 5.5rem 1fr; }
  .facts-box { padding: 0.65rem; font-size: 0.78rem; overflow-x: auto; }
  .facts-box table { font-size: 0.72rem; }
  .facts-box table th,
  .facts-box table td { padding: 0.3rem 0.35rem; font-size: 0.72rem; }

  /* ── WALL OVERVIEW MOBIL ──────────────── */
  .wall-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .wall-table { font-size: 0.72rem; min-width: 500px; }

  /* ── COLOPHON MOBIL ───────────────────── */
  .colophon-section { overflow: hidden; }
  .colophon-inner { padding: 2rem 1rem; }
  .colophon-title { font-size: 1.2rem; }

  /* ── COLOPHON + FORENSIK LYT-KNAPPER ── */
  .tts-listen-colophon,
  .tts-listen-forensik {
    display: inline-flex !important;
    position: static !important;
    float: none !important;
    margin: 0.5rem 0 1rem 0 !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    border: 1px solid rgba(96, 165, 250, 0.25) !important;
    background: rgba(96, 165, 250, 0.12) !important;
    padding: 6px 14px !important;
    min-width: unset !important;
    min-height: unset !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  .tts-listen-colophon .tts-btn-text,
  .tts-listen-forensik .tts-btn-text {
    display: inline !important;
  }
  .tts-listen-colophon .tts-icon-headphones,
  .tts-listen-forensik .tts-icon-headphones {
    opacity: 1 !important;
    width: 16px !important;
    height: 16px !important;
  }
}

/* ══════════════════════════════════════════════════════
   MOBIL-FORBEDRINGER — generelle for sager-flow
   Formularer, blokke, luft mellem elementer
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Form inputs — større touch-targets og mere luft */
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important; /* undgår iOS zoom-ved-fokus */
    padding: 0.85rem 1rem;
  }

  /* Knapper — sikre minimum touch-target 44px */
  button,
  .form-submit,
  .form-submit-secondary,
  .sager-cta-btn,
  .login-btn,
  .ms-new-case-btn,
  .wb-ft-btn,
  .wb-submit,
  .fl-submit,
  .pr-kit-card,
  .share-btn {
    min-height: 44px;
  }

  /* Kort (sager, insigter, fællesskaber, tips) — mere padding */
  .sag-card,
  .ms-case,
  .ins-card,
  .fl-card,
  .pr-kit-card,
  .pr-story-card,
  .sag-insider-card,
  .section-card,
  .wb-card {
    padding: 1.25rem 1.1rem !important;
  }

  /* Sektions-overskrifter — mere luft ovenover */
  .form-section-title,
  .why-title,
  .ins-title,
  .pr-section h2,
  .wb-title {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  /* Form-rækker — mere vertikal luft */
  .form-row,
  .wb-row,
  .fl-row {
    margin-bottom: 1.35rem;
  }

  /* Accept-checkboxe — mere luft så de ikke klumper */
  .accept-row,
  .wb-accept-row {
    padding: 0.5rem 0;
    gap: 0.75rem;
  }
  .accept-row label,
  .wb-accept-row label {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* Badge-rækker (filtre) — wrap med pænere spacing */
  .sager-filter,
  .ins-filter,
  .pr-filters {
    gap: 0.5rem !important;
    padding: 0 1rem !important;
    margin-bottom: 1.25rem !important;
  }
  .filter-btn,
  .ins-filter-btn,
  .pr-filter-btn {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.85rem !important;
  }

  /* Hero-sektioner på sager-flow — mindre top-margin */
  .form-hero,
  .sager-hero,
  .ins-hero,
  .pr-hero,
  .wb-hero,
  .fl-hero {
    margin-top: 4rem !important;
    padding: 0 1.25rem !important;
  }

  /* Wrappers der skal have mindre padding */
  .form-wrapper,
  .sager-grid,
  .ins-grid,
  .pr-section,
  .fl-wrap,
  .fl-suggest,
  .ms-cases,
  .ms-account,
  .ms-danger-zone {
    padding: 0 1rem !important;
  }

  /* Buttons der står sammen — stack vertikalt */
  .form-submit-buttons,
  .share-buttons,
  .ms-case-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  .form-submit-buttons > *,
  .share-buttons > * {
    width: 100% !important;
    text-align: center;
  }

  /* Tip-widget — lidt mindre aggressiv på mobil */
  .tip-widget-btn {
    padding: 0.6rem 0.95rem !important;
    font-size: 0.75rem !important;
    bottom: 12px !important;
    right: 12px !important;
  }

  /* Metrics-bokse (press room, indsigter) — 2 kolonner på mobil */
  .pr-stats,
  .ins-metrics {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  /* Form-section 2-kolonne → 1-kolonne */
  .form-row-split,
  .fl-row-2col,
  .dyn-row-fields-2col {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Luftigere linjer i form-help */
  .form-help,
  .wb-help,
  .fl-help {
    line-height: 1.6 !important;
    margin-top: 0.45rem !important;
  }

  /* Tabeller der er for brede — scroll horisontalt */
  .doc-wrapper table,
  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.78rem;
  }

  /* Dok-wrapper (vilkaar, privatliv, sadan-virker-det) */
  .doc-wrapper {
    padding: 1rem 1.25rem !important;
    margin-top: 4rem !important;
  }
}

/* Små mobiltelefoner */
@media (max-width: 480px) {
  .sag-card,
  .ms-case,
  .ins-card,
  .fl-card,
  .pr-kit-card {
    padding: 1.1rem 1rem !important;
  }

  .form-section-title {
    font-size: 1.05rem !important;
  }

  .hero-title,
  .sager-title,
  .wb-title,
  .ins-title,
  .pr-title,
  .fl-title {
    font-size: clamp(1.6rem, 8vw, 2rem) !important;
  }
}


/* ══════════════════════════════════════
   TTS / PODCAST AFSPILLER
   v1.0 · 2026-03-29
══════════════════════════════════════ */

/* ── LYT-KNAP I SEKTION-HEADER ──────── */
.tts-listen-btn {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 20px;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 10px;
  z-index: 2;
}

.tts-listen-btn:hover {
  background: rgba(96, 165, 250, 0.22);
  border-color: rgba(96, 165, 250, 0.5);
  transform: scale(1.04);
}

.tts-listen-btn:active {
  transform: scale(0.97);
}

.tts-listen-btn.tts-active {
  background: rgba(96, 165, 250, 0.3);
  border-color: var(--blue);
  color: #fff;
  animation: tts-pulse 2s ease-in-out infinite;
}

.tts-icon-headphones {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tts-btn-text {
  line-height: 1;
}

@keyframes tts-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(96, 165, 250, 0); }
}

/* ── FLYDENDE AFSPILLER ──────────────── */
.tts-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.99), rgba(30, 41, 59, 0.97));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0 1rem;
}

.tts-player.tts-visible {
  transform: translateY(0);
}

.tts-player-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 14px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── INFO-LINJE ──────────────────────── */
.tts-player-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tts-player-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  flex-shrink: 0;
}

.tts-icon-wave {
  width: 20px;
  height: 16px;
  color: var(--blue);
}

.tts-player-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── KONTROLKNAPPER ──────────────────── */
.tts-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tts-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 38px;
  height: 38px;
  padding: 0;
}

.tts-ctrl svg {
  width: 18px;
  height: 18px;
}

.tts-ctrl:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.08);
}

.tts-ctrl:active {
  transform: scale(0.95);
}

/* Afspil/pause — større */
.tts-ctrl-play {
  width: 50px;
  height: 50px;
  background: var(--blue);
  color: #fff;
  margin: 0 6px;
}

.tts-ctrl-play svg {
  width: 22px;
  height: 22px;
}

.tts-ctrl-play:hover {
  background: #3b82f6;
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.4);
}

/* Stop */
.tts-ctrl-stop {
  color: var(--red);
}

.tts-ctrl-stop:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* ── PROGRESS BAR ────────────────────── */
.tts-player-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tts-player-counter {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 1.5rem;
  text-align: center;
}

.tts-player-progress {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tts-player-progress:hover {
  height: 8px;
}

.tts-player-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #818cf8);
  border-radius: 3px;
  transition: width 0.4s ease;
  position: relative;
}

.tts-player-progress-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(96, 165, 250, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
}

.tts-player-progress:hover .tts-player-progress-fill::after {
  opacity: 1;
}

/* ── FÆRDIG-TILSTAND ─────────────────── */
.tts-player.tts-finished .tts-player-title {
  color: var(--green);
}

.tts-player.tts-finished .tts-player-progress-fill {
  background: linear-gradient(90deg, var(--green), #4ade80);
}

/* ── AKTIV AFSNIT (highlight under oplæsning) ── */
.tts-reading {
  position: relative;
  background: rgba(96, 165, 250, 0.06) !important;
  border-left: 3px solid var(--blue) !important;
  padding-left: 16px !important;
  margin-left: -19px !important;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
  animation: tts-glow 2s ease-in-out infinite;
}

@keyframes tts-glow {
  0%, 100% { border-left-color: var(--blue); }
  50% { border-left-color: #818cf8; }
}

.tts-read {
  opacity: 0.55;
  transition: opacity 0.6s ease;
}

@media (max-width: 768px) {
  .tts-reading {
    margin-left: -1rem !important;
    padding-left: 0.75rem !important;
    border-left-width: 3px !important;
  }
}

/* ── MOBIL TILPASNING ────────────────── */
/* TTS mobil-regler er samlet i hovedmobil-blokken ovenfor */

/* ── KEYBOARD HINT ───────────────────── */
.tts-player::after {
  content: 'Mellemrum: play/pause · ← → 15 sek · Esc: stop';
  display: block;
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.62rem;
  color: var(--text-dim);
  padding-bottom: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tts-player:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .tts-player::after { display: none; }
}

/* ── Nyheder-badge i nav (desktop + mobile) ──────────── */
.nav-news-li { position: relative; }
.nav-news {
  position: relative;
  display: inline-block;
}
.nav-news-badge {
  display: none;
  position: absolute;
  top: -8px;
  right: -14px;
  background: #e67e22;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 10px rgba(230, 126, 34, 0.55);
  animation: pulse-news-badge 1.8s infinite;
  line-height: 1.2;
}
.nav-news-badge.visible { display: inline-block; }

/* Mobile-menu variant */
.nav-news-mobile {
  position: relative;
  color: #e67e22 !important;
  font-weight: 600;
}
.nav-news-badge-mobile {
  display: none;
  margin-left: 8px;
  background: #e67e22;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  animation: pulse-news-badge 1.8s infinite;
  vertical-align: middle;
}
.nav-news-badge-mobile.visible { display: inline-block; }

@keyframes pulse-news-badge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}
