/* pisoglort.dk — fælles stylesheet
   Moderne, men bevidst seriøst brancheforenings-design.
   Rene flader, luft, blød dybde — corporate uden at være kedeligt. */

:root {
  /* Palette */
  --navy: #12385c;
  --navy-700: #1c4a75;
  --navy-900: #0c2540;
  --ink: #16202b;
  --slate: #51606f;
  --slate-light: #7c8896;
  --line: #e4e8ee;
  --line-strong: #cdd5df;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-softer: #eef2f6;
  --accent: #1f7a5a;      /* dæmpet grøn */
  --accent-700: #185f46;
  --accent-red: #9a3b3b;

  /* Radius */
  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;

  /* Skygger */
  --shadow-sm: 0 1px 2px rgba(16, 32, 48, 0.06), 0 1px 3px rgba(16, 32, 48, 0.05);
  --shadow-md: 0 4px 12px rgba(16, 32, 48, 0.08), 0 2px 4px rgba(16, 32, 48, 0.04);
  --shadow-lg: 0 18px 40px rgba(12, 37, 64, 0.14);

  /* Typografi */
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (ikke hidden) fjerner utilsigtet vandret scroll uden at
     ødelægge position: sticky på navigationen */
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  margin-top: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.2rem; }

a {
  color: var(--accent-700);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

p {
  margin: 0 0 1.1rem 0;
}

::selection {
  background: var(--navy);
  color: #fff;
}

/* ---------- Layout ---------- */

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

main {
  padding: 56px 0 72px 0;
}

/* ---------- Topbar ---------- */

.topbar {
  background: var(--navy-900);
  color: #a9bccf;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar a {
  color: #b7c8d9;
  text-decoration: none;
  transition: color 0.15s ease;
}

.topbar a:hover {
  color: #fff;
  text-decoration: none;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  color: #fff;
  background-image: linear-gradient(120deg, var(--navy-900), var(--navy) 60%, var(--navy-700));
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #fff;
}

.brand:hover {
  text-decoration: none;
  color: #fff;
}

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

.brand-text .brand-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.brand-text .brand-sub {
  font-size: 0.68rem;
  color: #a9c0d6;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2px;
}

/* ---------- Navigation ---------- */

.main-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.main-nav ul {
  list-style: none;
  /* træk rækken 16px til venstre (svarer til link-paddingen), så første
     menupunkts tekst flugter med logoet i headeren */
  margin: 0 0 0 -16px;
  padding: 6px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.main-nav a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: var(--r-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  color: var(--navy);
  text-decoration: none;
}

.main-nav a.active {
  position: relative;
  color: var(--navy);
  background: transparent;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 3px;
  background: var(--accent);
}

.main-nav a.active:hover {
  color: var(--navy);
}

/* Mobil nav-toggle (ren CSS) */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
}
.nav-backdrop {
  display: none;
}
.nav-drawer-head {
  display: none;
}

/* Hamburger-ikon */
.nav-burger,
.nav-burger::before,
.nav-burger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-burger {
  position: relative;
}
.nav-burger::before,
.nav-burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-burger::before { top: -6px; }
.nav-burger::after  { top: 6px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #fff;
  padding: 88px 0 96px 0;
  overflow: hidden;
  background: var(--navy-900);
  background-image:
    radial-gradient(1200px 500px at 80% -10%, rgba(31, 122, 90, 0.35), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(28, 74, 117, 0.55), transparent 55%),
    linear-gradient(120deg, var(--navy-900), var(--navy));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #9fd8c1;
  font-weight: 600;
  margin-bottom: 18px;
  padding: 5px 12px;
  border: 1px solid rgba(159, 216, 193, 0.4);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  max-width: 860px;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: #d3e0ec;
  max-width: 640px;
  line-height: 1.55;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Knapper ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--accent-700);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Sektioner udenfor hero kan bruge en mørk-på-lys sekundær knap */
main .btn.secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line-strong);
}
main .btn.secondary:hover {
  background: var(--bg-soft);
  color: var(--navy);
}

.arrow-link {
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- Sektioner ---------- */

.section-title {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 28px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--accent);
}

.page-intro {
  color: var(--slate);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 780px;
}

/* ---------- Kort-grid ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 40px 0;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 28px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--slate);
  font-size: 0.98rem;
}

.card a {
  font-weight: 600;
}

/* Kort med lille bureaukratisk overskrift + brødtekst (afdelinger) */
.card h3.dept {
  font-size: 1.02rem;
  line-height: 1.3;
}

/* ---------- Nøgletal-bånd ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 40px 0 12px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  background: var(--bg-soft);
  padding: 28px 22px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--navy);
  line-height: 1;
}

.stat-number sup {
  font-size: 0.9rem;
  color: var(--slate-light);
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footnotes {
  margin: 0 0 8px 0;
  padding: 0;
  list-style: none;
  font-size: 0.76rem;
  color: var(--slate-light);
  line-height: 1.7;
}

.footnotes li sup {
  margin-right: 4px;
}

/* ---------- Medlemsniveauer ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 28px 0;
}

.tier {
  border: 1px solid var(--line);
  border-top: 4px solid var(--slate-light);
  padding: 24px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.tier.gold { border-top-color: #b8912f; }
.tier.silver { border-top-color: #9aa4ae; }
.tier.bronze { border-top-color: #a9754b; }

.tier h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.tier .tier-price {
  font-size: 0.8rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.tier ul {
  margin: 0;
  padding-left: 18px;
  color: var(--slate);
  font-size: 0.92rem;
}

.tier ul li {
  margin-bottom: 6px;
}

/* ---------- Pris/udmærkelse-badge ---------- */

.award {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  font-size: 0.82rem;
  color: var(--slate);
  font-style: italic;
  line-height: 1.5;
}

.award::before {
  content: "★";
  color: #b8912f;
  margin-right: 6px;
  font-style: normal;
}

/* ---------- To-kolonners layout m. sidebar ---------- */

.layout-2col {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 48px;
  align-items: start;
}

.factbox {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 76px;
}

.factbox h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.factbox dl {
  margin: 0;
}

.factbox dt {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--slate-light);
  margin-top: 18px;
}

.factbox dt:first-of-type {
  margin-top: 16px;
}

.factbox dd {
  margin: 3px 0 0 0;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------- Vedtægter / paragraffer ---------- */

.vedtaegter {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 6px 28px;
  box-shadow: var(--shadow-sm);
}

.vedtaegter .para {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  color: var(--slate);
}

.vedtaegter .para:last-child {
  border-bottom: none;
}

.vedtaegter .para strong {
  color: var(--navy);
  font-family: var(--font-serif);
  margin-right: 4px;
}

/* ---------- Citat-boks ---------- */

blockquote.quote {
  position: relative;
  border: none;
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 28px 0;
  padding: 24px 28px 24px 30px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--navy);
  line-height: 1.5;
}

blockquote.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
}

/* ---------- Mission-bokse ---------- */

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 32px 0;
}

.mission-box {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease;
}

.mission-box:hover {
  box-shadow: var(--shadow-md);
}

.mission-box h3 {
  display: inline-block;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--accent);
}

/* ---------- Nyheder ---------- */

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
}

.news-list li:first-child {
  padding-top: 0;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-date {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--slate-light);
  font-weight: 600;
  padding-top: 4px;
}

.news-list h3 {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
}

.news-list p {
  color: var(--slate);
  margin-bottom: 8px;
}

.news-list a {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Presse ---------- */

.press-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 28px;
  margin-bottom: 20px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease;
}

.press-item:hover {
  box-shadow: var(--shadow-md);
}

.press-item h3 {
  margin: 6px 0 8px 0;
}

.press-item p {
  color: var(--slate);
}

.press-item details summary {
  cursor: pointer;
  color: var(--accent-700);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 6px;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.press-item details summary::after {
  content: "▾";
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.press-item details[open] summary::after {
  transform: rotate(180deg);
}

.press-item details[open] summary {
  margin-bottom: 10px;
}

.press-item details p {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* ---------- Tidslinje ---------- */

.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--navy), var(--accent));
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg-soft);
}

.timeline-year {
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.1;
}

.timeline-item .body {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 26px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.timeline-item .body p {
  color: var(--slate);
}

.timeline-item .body p:last-child {
  margin-bottom: 0;
}

.timeline-item .body strong {
  color: var(--navy);
}

.timeline-item blockquote.quote {
  margin-bottom: 0;
}

.inline-note {
  background: var(--bg-softer);
  border-left: 3px solid var(--slate-light);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--slate);
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 48px;
}

.contact-box {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.contact-box h3 {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.contact-box address {
  font-style: normal;
  color: var(--slate);
  line-height: 1.8;
}

form.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
  background: var(--bg-soft);
  max-width: 680px;
  box-shadow: var(--shadow-sm);
}

form.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--slate);
  margin: 18px 0 6px 0;
}

form.contact-form label:first-child {
  margin-top: 0;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 122, 90, 0.15);
}

form.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

form.contact-form .form-actions {
  margin-top: 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: #a9bccf;
  margin-top: 64px;
  padding: 56px 0 28px 0;
  font-size: 0.92rem;
}

.footer-slogan {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 24px;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-cols h4 {
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer-cols a {
  color: #a9bccf;
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-cols a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 0.82rem;
  color: #7e94a8;
}

.footer-bottom p {
  max-width: 780px;
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.footer-bottom strong {
  color: #c8d6e4;
}

/* ---------- Responsivt ---------- */

@media (max-width: 900px) {
  .card-grid,
  .tier-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .layout-2col,
  .mission-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .factbox {
    position: static;
  }

  /* Mobil-menu: sheet der glider ind fra venstre */
  .main-nav {
    position: sticky;
    /* backdrop-filter gør .main-nav til containing block for fixed børn
       — slå den fra, så arket lægger sig i forhold til viewporten */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.96);
  }

  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--navy);
    cursor: pointer;
    letter-spacing: 0.6px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Mørk baggrund bag arket */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(12, 37, 64, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  /* Selve arket */
  .main-nav ul {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86%, 336px);
    padding: 0;
    margin: 0;
    background: var(--navy-900);
    background-image: linear-gradient(165deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-700) 100%);
    z-index: 999;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    transform: translateX(-100%);
    /* Skjul arket helt når det er lukket (ingen skygge-stribe i kanten),
       men vent med at skjule til udglidningen er færdig */
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.32s;
  }

  .main-nav ul li.nav-drawer-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 34px 24px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-drawer-title {
    font-family: var(--font-serif);
    font-weight: bold;
    font-size: 1.25rem;
    letter-spacing: 0.3px;
    color: #fff;
  }
  .nav-drawer-title::after {
    content: "Menu";
    display: block;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #9fd8c1;
    margin-top: 4px;
  }
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: -10px -10px 0 0;
    font-size: 1.9rem;
    line-height: 1;
    color: #a9c0d6;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, transform 0.2s ease;
  }
  .nav-close:hover {
    color: #fff;
    transform: rotate(90deg);
  }

  .main-nav ul li {
    padding: 0;
  }
  .main-nav a {
    display: flex;
    align-items: center;
    padding: 15px 24px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #cdd5df;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }
  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }
  .main-nav a.active,
  .main-nav a.active:hover {
    color: #fff;
    background: rgba(31, 122, 90, 0.18);
    border-left-color: var(--accent);
  }
  .main-nav ul li:last-child a {
    border-bottom: none;
  }

  /* Åben tilstand */
  .nav-toggle:checked ~ .nav-backdrop {
    opacity: 1;
    visibility: visible;
  }
  .nav-toggle:checked ~ ul {
    transform: translateX(0);
    visibility: visible;
    box-shadow: 10px 0 60px rgba(0, 0, 0, 0.45);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;
  }

  /* Hamburger → kryds når åben */
  .nav-toggle:checked ~ .nav-toggle-label .nav-burger {
    background: transparent;
  }
  .nav-toggle:checked ~ .nav-toggle-label .nav-burger::before {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-toggle-label .nav-burger::after {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* Lås baggrundsscroll når arket er åbent */
html:has(.nav-toggle:checked) {
  overflow: hidden;
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
    overflow-wrap: break-word;
  }
  .container {
    padding: 0 18px;
  }
  main {
    padding: 40px 0 56px 0;
  }
  .hero {
    padding: 64px 0 68px 0;
  }
  /* Lange sammensatte ord (fx BRANCHEORGANISATIONER) må ikke
     skubbe siden bredere end skærmen */
  .hero .eyebrow {
    letter-spacing: 1.4px;
    overflow-wrap: anywhere;
    max-width: 100%;
  }
  .topbar .container {
    justify-content: flex-start;
    gap: 6px 18px;
  }
  .card-grid,
  .tier-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .news-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .news-date {
    padding-top: 0;
  }

  /* Roligere luft på de tætpakkede bokse */
  .card,
  .mission-box,
  .contact-box,
  .press-item,
  .factbox {
    padding: 22px;
  }
  form.contact-form {
    padding: 22px;
  }
  blockquote.quote {
    padding: 20px 22px;
  }
  .timeline-item .body {
    padding: 18px 20px;
  }
  .site-footer {
    padding: 44px 0 24px 0;
  }
}

@media (max-width: 420px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 22px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

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