/* ==========================================================================
   STU Hestelinje Gentofte
   Designsystem baseret på Gentofte Rideklubs visuelle identitet
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------ */

:root {
  /* Farver */
  --forest: #173f35;
  --forest-dark: #10362d;
  --forest-deeper: #0c261f;
  --forest-rgb: 23 63 53;

  --accent: #a95632;
  --accent-light: #e5a47e;

  --ink: #18221f;
  --muted: #50665b;

  --sage: #e7eee9;
  --sage-soft: #dbe6df;
  --sage-tint: #edf2ee;
  --cream: #f7f4ee;
  --sand: #f3eee4;
  --white: #fff;

  --border: rgb(var(--forest-rgb) / 12%);
  --border-soft: rgb(var(--forest-rgb) / 9%);
  --border-card: #d3dfd6;
  --border-card-hover: #a5bbae;

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

  --type-h1: 4rem;
  --type-h2: 2.75rem;
  --type-h3: 1.65rem;
  --copy-line: 1.65;

  /* Layout */
  --shell-max: 1290px;
  --shell-gutter: 1.5rem;
  --header-h: 88px;
  --space-section: clamp(3.25rem, 5.2vw, 5.5rem);
  --space-feature: clamp(4rem, 7vw, 6rem);
  --text-max: 680px;

  /* Form */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-xs: 0 4px 14px rgb(var(--forest-rgb) / 3%);
  --shadow-md: 0 12px 40px rgb(var(--forest-rgb) / 5%);
  --shadow-lg: 0 14px 45px rgb(var(--forest-rgb) / 5%);
  --shadow-hover-sm: 0 8px 22px rgb(var(--forest-rgb) / 8%);
  --shadow-hover-lg: 0 20px 55px rgb(var(--forest-rgb) / 10%);

  --ease-image: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 1199px) {
  :root {
    --type-h1: 3rem;
    --type-h2: 2.25rem;
  }
}

@media (max-width: 760px) {
  :root {
    --type-h1: 2.5rem;
    --type-h2: 2rem;
    --header-h: 72px;
  }
}

/* --- Reset ------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--copy-line);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-synthesis: none;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: var(--type-h1);
}
h2 {
  font-size: var(--type-h2);
  color: var(--forest);
}
h3 {
  font-size: var(--type-h3);
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--forest);
}

:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 4px;
  border-radius: 2px;
}

.on-dark :focus-visible {
  outline-color: var(--accent-light);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--forest);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.shell {
  width: 100%;
  min-width: 0;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-gutter);
  padding-left: max(var(--shell-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--shell-gutter), env(safe-area-inset-right, 0px));
  /* Long headings must wrap instead of widening a grid beyond its gutters. */
  overflow-wrap: anywhere;
  hyphens: auto;
}

.shell--narrow {
  max-width: 880px;
}

.section {
  padding-block: var(--space-section);
}

.section--cream {
  background: var(--cream);
}
.section--sage {
  background: var(--sage);
}
.section--forest {
  background: var(--forest);
  color: var(--white);
}
.section--forest h2,
.section--forest h3 {
  color: var(--white);
}

/* --- Eyebrow / kicker -------------------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.kicker::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.kicker--plain::before {
  display: none;
}

.on-dark .kicker,
.section--forest .kicker,
.statement .kicker {
  color: var(--accent-light);
}

/* --- Sektionshoved ----------------------------------------------------- */

.sectionhead {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 0 clamp(2rem, 8vw, 8rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.sectionhead .kicker {
  grid-column: 1;
}
.sectionhead h2 {
  grid-column: 1;
  max-width: 14ch;
  margin: 0;
}

.sectionhead__intro {
  grid-column: 2;
  grid-row: 2;
  border-left: 2px solid rgb(191 91 47 / 65%);
  padding-left: 1.25rem;
  margin: 0.45rem 0 0;
  max-width: 430px;
  color: rgb(var(--forest-rgb) / 66%);
  line-height: 1.6;
}

.section--forest .sectionhead__intro {
  color: rgb(255 255 255 / 74%);
  border-left-color: var(--accent-light);
}

@media (max-width: 900px) {
  .sectionhead {
    grid-template-columns: 1fr;
  }
  .sectionhead h2 {
    max-width: 20ch;
  }
  .sectionhead__intro {
    grid-column: 1;
    grid-row: auto;
    margin-top: 1.35rem;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.45rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--white);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.btn--light {
  background: var(--white);
  border-color: var(--white);
  color: var(--forest);
}
.btn--light:hover {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.btn--ghost {
  background: transparent;
  border-color: rgb(var(--forest-rgb) / 35%);
  color: var(--forest);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.on-dark .btn--ghost,
.btn--ghost.on-dark,
.section--forest .btn--ghost,
.feature .btn--ghost {
  border-color: rgb(255 255 255 / 55%);
  color: var(--white);
}
.on-dark .btn--ghost:hover,
.btn--ghost.on-dark:hover,
.section--forest .btn--ghost:hover,
.feature .btn--ghost:hover {
  background: var(--white);
  color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

/* Separate actions from copy, while retaining the hero's existing lead spacing. */
.hero__content .actions { margin-top: 0; }
.actions.practical__intro { margin-top: clamp(1.5rem, 3vw, 2rem); }
.actions--stacked { flex-direction: column; align-items: flex-start; gap: .5rem; }
.actions .textlink { min-height: 44px; }
.actions .btn { max-width: 100%; text-align: center; }


/* --- Tekstlink --------------------------------------------------------- */

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--forest);
  font-weight: 800;
  font-size: 0.9375rem;
  text-decoration: none;
}

.textlink span {
  color: var(--accent);
  transition: transform 0.25s ease;
}
.textlink:hover span {
  transform: translateX(5px);
}

.section--forest .textlink,
.on-dark .textlink {
  color: var(--white);
}
.section--forest .textlink span,
.on-dark .textlink span {
  color: var(--accent-light);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--forest);
}

.brand__mark {
  width: 84px;
  height: 70px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.brand__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: block;
}

.brand__tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--forest);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav__list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav__list a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--forest);
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem var(--shell-gutter) 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }

  .nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--border);
  }

  .nav__list a:hover,
  .nav__list a[aria-current="page"] {
    border-bottom-color: var(--border);
  }

  .nav .btn {
    margin-top: 1.5rem;
  }
}

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

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(690px, calc(100vh - var(--header-h)));
  background-color: var(--forest-deeper);
  background-image: linear-gradient(
      90deg,
      rgb(12 38 31 / 92%) 0%,
      rgb(12 38 31 / 50%) 53%,
      rgb(12 38 31 / 12%) 100%
    ),
    /* --hero-image sættes inline på siden, men url() opløses relativt til
       DETTE stylesheet — derfor skal stien skrives som ../assets/... */
    var(--hero-image, none);
  background-size: cover;
  background-position: center 58%;
  color: var(--white);
}

.hero__content {
  width: 100%;
  padding-top: 5rem;
  padding-bottom: clamp(4rem, 9vw, 7.5rem);
}

.hero h1 {
  color: var(--white);
  max-width: 20ch;
  margin-bottom: 1.5rem;
}

.hero__lead {
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 52ch;
  color: rgb(255 255 255 / 88%);
  margin-bottom: 2rem;
}

.hero__scroll {
  position: absolute;
  right: var(--shell-gutter);
  bottom: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 45%);
  color: var(--white);
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero__scroll:hover {
  background: var(--white);
  color: var(--forest);
}

/* Kompakt hero til undersider */
.hero--page {
  min-height: auto;
  align-items: center;
  background-position: center 50%;
}

.hero--page .hero__content {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.hero--page h1 {
  max-width: 24ch;
}

@media (max-width: 760px) {
  .hero {
    min-height: 610px;
    background-image: linear-gradient(
        180deg,
        rgb(12 38 31 / 70%) 0%,
        rgb(12 38 31 / 88%) 100%
      ),
      var(--hero-image, none);
  }
  .hero__lead {
    font-size: 1.0625rem;
  }
  .hero__scroll {
    display: none;
  }
}

/* --- Velkomst / to spalter --------------------------------------------- */

.welcome {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  column-gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
}

.welcome h2 {
  max-width: 13ch;
}

.welcome__copy {
  color: rgb(var(--forest-rgb) / 72%);
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 520px;
}

.welcome__copy p {
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
  .welcome {
    grid-template-columns: 1fr;
    row-gap: 1.75rem;
  }
  .welcome h2 {
    max-width: 20ch;
  }
}

/* --- Pillar-stribe ----------------------------------------------------- */

.pillars {
  background: var(--forest);
  color: var(--white);
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.25rem;
  min-height: 145px;
  padding: 2rem clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid rgb(255 255 255 / 16%);
}

.pillar:last-child {
  border-right: 1px solid rgb(255 255 255 / 16%);
}

.pillar__number {
  color: var(--accent-light);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding-top: 0.35rem;
}

.pillar h3 {
  color: var(--white);
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.pillar p {
  color: rgb(255 255 255 / 67%);
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .pillars__grid {
    grid-template-columns: 1fr;
  }
  .pillar {
    min-height: 0;
    border-left: none;
    border-top: 1px solid rgb(255 255 255 / 16%);
  }
  .pillar:last-child {
    border-right: none;
    border-bottom: 1px solid rgb(255 255 255 / 16%);
  }
}

/* --- Vejkort (billede + indhold) --------------------------------------- */

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.path {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--forest);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.path:hover {
  box-shadow: var(--shadow-hover-lg);
  transform: translateY(-4px);
}

.path__media {
  overflow: hidden;
}

.path__media img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease-image);
}

.path:hover .path__media img {
  transform: scale(1.035);
}

.path__content {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.path__content::before {
  content: attr(data-number);
  position: absolute;
  top: clamp(1.65rem, 3vw, 2.45rem);
  right: clamp(1.6rem, 3vw, 2.4rem);
  color: rgb(var(--forest-rgb) / 32%);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.path h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin-bottom: 0.75rem;
}

.path p {
  color: rgb(var(--forest-rgb) / 68%);
  margin-bottom: 1.5rem;
}

.path__linkwrap {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

@media (max-width: 760px) {
  .paths {
    grid-template-columns: 1fr;
  }
  .path__media img {
    aspect-ratio: 4 / 3;
  }
}

/* --- Praktisk-panel + genvejskort -------------------------------------- */

.practical__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.practical__panel h2 {
  max-width: 14ch;
}

.practical__intro {
  color: rgb(var(--forest-rgb) / 66%);
  margin-top: 1rem;
  max-width: 34ch;
}

.shortcuts { background:var(--cream); }
.shortcuts__heading { display:grid; grid-template-columns:1.1fr 1fr; align-items:end; gap:2rem 5rem; margin-bottom:2.75rem; }
.shortcuts__heading h2 { max-width:16ch; font-size:clamp(2.4rem,4vw,3.5rem); }
.shortcuts__heading h2 em { font-weight:400; color:var(--accent); }
.shortcuts__heading > p { max-width:38ch; color:var(--muted); margin:0 0 .25rem; }
.quicklinks { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:clamp(2rem,5vw,4.5rem); align-items:stretch; }
.quicklink-feature { display:flex; flex-direction:column; background:var(--forest); color:var(--white); border-radius:var(--radius); overflow:hidden; text-decoration:none; }
.quicklink-feature__photo { aspect-ratio:16 / 9; flex:none; overflow:hidden; position:relative; }
.quicklink-feature__photo::after { content:''; position:absolute; inset:0; background:linear-gradient(0deg,var(--forest),transparent 35%); }
.quicklink-feature__photo img { width:100%; height:100%; object-fit:cover; object-position:50% 30%; transition:transform .4s ease; }
.quicklink-feature__body { padding:1rem 2rem 1.75rem; display:flex; flex-direction:column; flex:1; }
.quicklink-feature__eyebrow { font-size:.66rem; font-weight:700; text-transform:uppercase; letter-spacing:.12em; color:var(--accent-light); margin-bottom:.8rem; }
.quicklink-feature h3 { font-size:2.1rem; color:var(--white); margin:0 0 .8rem; }
.quicklink-feature p { color:#e0e9e3; max-width:36ch; font-size:.95rem; margin:0 0 1.75rem; }
.quicklink-feature__action { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-top:auto; padding-top:1rem; border-top:1px solid #ffffff30; font-size:.9rem; font-weight:600; }
.quicklink-feature__action > span { display:grid; place-items:center; width:36px; height:36px; border:1px solid #ffffff60; border-radius:50%; font-size:1.1rem; transition:background .2s,color .2s; }
.quicklink-feature:hover img { transform:scale(1.035); }
.quicklink-feature:hover .quicklink-feature__action > span { background:var(--white); color:var(--forest); }
.quicklink-feature:focus-visible { outline:3px solid var(--accent); outline-offset:5px; }
.quicklinks__list { display:flex; flex-direction:column; border-top:1px solid var(--border-card-hover); }
.quicklink { display:grid; grid-template-columns:24px minmax(0,1fr) 40px; gap:1rem; align-items:center; flex:1; padding:1.75rem .5rem; border-bottom:1px solid var(--border-card); color:var(--forest); text-decoration:none; transition:background .2s; }
.quicklink:hover { background:#e7eee980; }
.quicklink__number { align-self:start; padding-top:.5rem; color:var(--accent); font-size:.68rem; letter-spacing:.08em; }
.quicklink__text strong { display:block; font:400 clamp(1.3rem,2vw,1.7rem)/1.25 var(--font-display); letter-spacing:-.015em; margin-bottom:.65rem; }
.quicklink__text > span { display:block; max-width:38ch; color:var(--muted); font-size:.9rem; line-height:1.6; }
.quicklink__arrow { display:grid; place-items:center; width:40px; height:40px; border:1px solid var(--border-card-hover); border-radius:50%; transition:background .2s,color .2s; }
.quicklink:hover .quicklink__arrow { background:var(--forest); color:white; }
.quicklinks__note { color:var(--muted); font-size:.8rem; line-height:1.6; padding:1.25rem .5rem 0; margin:0; }
@media(max-width:760px) {
 .shortcuts__heading { grid-template-columns:1fr; gap:1.25rem; margin-bottom:2rem; }
 .shortcuts__heading h2 { max-width:none; }
 .quicklinks { grid-template-columns:1fr; gap:2rem; }
 .quicklink-feature__body { padding:1rem 1.5rem 1.5rem; }
 .quicklink { padding:1.5rem 0; gap:.75rem; grid-template-columns:20px minmax(0,1fr) 36px; }
 .quicklink__arrow { width:36px; height:36px; }
}
@media(prefers-reduced-motion:reduce) { .quicklink-feature__photo img { transition:none; }.quicklink-feature:hover img { transform:none; } }

@media (max-width: 900px) {
  .practical__panel {
    grid-template-columns: 1fr;
  }
  .practical__panel h2 {
    max-width: 20ch;
  }
}


/* --- Feature-panel (mørk) ---------------------------------------------- */

.feature {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.feature__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.feature__body {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem)
    clamp(2rem, 5vw, 3.5rem) 0;
}

.feature__body h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.feature__body p {
  color: rgb(255 255 255 / 74%);
  margin-bottom: 1.5rem;
}

.feature__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.feature__list li {
  position: relative;
  padding-left: 1.75rem;
  color: rgb(255 255 255 / 84%);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 2px;
  background: var(--accent-light);
}

/* --- Lyskryds-panel ----------------------------------------------------- */

.feature__media--signals {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  min-height: 320px;
  padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(2rem, 4vw, 3.25rem)
    clamp(1.5rem, 4vw, 3rem);
}

.signalrow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.15rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 13%);
}

.signalrow__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow:
    0 0 0 6px rgb(255 255 255 / 7%),
    0 0 20px var(--signal);
}

.signalrow b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--white);
}

.signalrow span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 72%);
}

.signalrow--green {
  --signal: #6fbf73;
}
.signalrow--amber {
  --signal: #e8b14c;
}
.signalrow--red {
  --signal: #d9694f;
}

@media (max-width: 900px) {
  .feature__panel {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .feature__media img {
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }
  .feature__media--signals {
    min-height: 0;
    padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 5vw, 2.5rem) 0;
  }
  .feature__body {
    padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 5vw, 2.5rem);
  }
}

/* --- Nyhedskort -------------------------------------------------------- */

.newsgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.newscard {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.newscard:hover {
  box-shadow: 0 18px 42px rgb(var(--forest-rgb) / 10%);
  transform: translateY(-4px);
}

.newscard__image {
  position: relative;
  overflow: hidden;
}

.newscard__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.65s var(--ease-image);
}

.newscard:hover .newscard__image img {
  transform: scale(1.035);
}

.newscard__image time {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: 58px;
  height: 58px;
  background: var(--white);
  border-radius: 10px;
  color: var(--forest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.newscard__image time b {
  font-size: 1.1rem;
}

.newscard__image time span {
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.newscard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem;
}

.newscard__body h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  margin-bottom: 0.75rem;
  color: var(--forest);
}

.newscard__body p {
  color: rgb(var(--forest-rgb) / 68%);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.newscard__body > a {
  margin-top: auto;
  min-height: 44px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--forest);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
}

.newscard__body > a span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(var(--forest-rgb) / 7%);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.newscard__body > a:hover span {
  background: var(--forest);
  color: var(--white);
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .newsgrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .newsgrid {
    grid-template-columns: 1fr;
  }
  .newscard__image img {
    aspect-ratio: 4 / 3;
  }
}

/* --- Trin 01-04 -------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.step {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-xs);
}

.step__number {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--forest);
}

.step p {
  color: rgb(var(--forest-rgb) / 68%);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* --- Faktakort --------------------------------------------------------- */

.cards {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.cards--2 {
  grid-template-columns: repeat(2, 1fr);
}
.cards--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-xs);
}

.card h3 {
  font-size: 1.35rem;
  color: var(--forest);
  margin-bottom: 0.75rem;
}

.card p,
.card li {
  color: rgb(var(--forest-rgb) / 70%);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.card ul + p {
  margin-top: 1.25rem;
}

.card li {
  margin-bottom: 0.4rem;
}

.card li:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .cards--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .cards--2,
  .cards--3 {
    grid-template-columns: 1fr;
  }
}

/* --- Lyskrydsmodel ----------------------------------------------------- */

.signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.signal {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-top: 4px solid var(--signal-color, var(--forest));
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.signal__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--signal-color, var(--forest));
  margin-bottom: 1rem;
}

.signal--green {
  --signal-color: #2f8f5b;
}
.signal--yellow {
  --signal-color: #d9a227;
}
.signal--red {
  --signal-color: #c0492f;
}

.signal h3 {
  font-size: 1.3rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.signal p {
  color: rgb(var(--forest-rgb) / 70%);
  font-size: 0.9375rem;
}

@media (max-width: 800px) {
  .signals {
    grid-template-columns: 1fr;
  }
}

/* --- Profil ------------------------------------------------------------ */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.profile__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.profile__role {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0.5rem 0 1.25rem;
}

@media (max-width: 860px) {
  .profile {
    grid-template-columns: 1fr;
  }
  .profile__media img {
    max-width: 320px;
  }
}

/* --- Brødtekst --------------------------------------------------------- */

.prose {
  max-width: var(--text-max);
}

.prose h2 {
  margin: 2.5rem 0 1rem;
}
.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  color: var(--forest);
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
  color: rgb(var(--forest-rgb) / 78%);
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid rgb(191 91 47 / 65%);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
  color: rgb(var(--forest-rgb) / 76%);
}

.prose blockquote p {
  color: inherit;
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.contact__list a {
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.contact__list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact__label {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.form {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  background: var(--white);
  border-color: var(--forest);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field--check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.field--check input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--forest);
}

.field--check label {
  margin: 0;
  font-weight: 400;
  font-size: 0.9375rem;
  color: rgb(var(--forest-rgb) / 75%);
}

.form__note {
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

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

.site-footer {
  background: var(--forest-deeper);
  color: var(--white);
  padding-top: var(--space-section);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: var(--space-section);
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand__mark {
  background: var(--white);
  color: var(--forest);
  padding: 4px;
}

@media (max-width: 760px) {
  .brand__mark { width: 72px; height: 60px; }
  .brand__name { font-size: 1.4rem; }
  .site-header__inner { gap: 1rem; }
  .brand { gap: .6rem; }
}

.site-footer__address {
  margin-top: 1.5rem;
  color: rgb(255 255 255 / 74%);
  font-style: normal;
  line-height: 1.7;
}

.site-footer h2 {
  color: var(--accent-light);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.site-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.site-footer__nav a,
.site-footer__address a {
  color: rgb(255 255 255 / 84%);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-footer__nav a:hover,
.site-footer__address a:hover {
  color: var(--accent-light);
}

.site-footer__bar {
  border-top: 1px solid rgb(255 255 255 / 16%);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 60%);
}

.site-footer__bar a {
  color: rgb(255 255 255 / 74%);
  text-decoration: none;
}

.site-footer__bar a:hover {
  color: var(--accent-light);
}

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Forside — udvidet visuelt lag
   ========================================================================== */

/* --- Scroll-afsløring --------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-image), transform 0.9s var(--ease-image);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js [data-reveal="1"] {
  transition-delay: 0.1s;
}
.js [data-reveal="2"] {
  transition-delay: 0.2s;
}
.js [data-reveal="3"] {
  transition-delay: 0.3s;
}
.js [data-reveal="4"] {
  transition-delay: 0.4s;
}

/* Keep the header white on pages with a full-height hero, too. */
body[data-hero="full"] .site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
}

/* --- Forside-hero ------------------------------------------------------- */

.hero--home {
  min-height: 100vh;
  min-height: min(920px, 100svh);
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background-image: none;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  animation: hero-zoom 24s var(--ease-image) both;
}

.hero--home .hero__media img { object-position:var(--hero-focus,center 52%); }
@media(max-width:760px) {
  .hero--home .hero__media img { object-position:var(--hero-focus-mobile,var(--hero-focus,center 52%)); }
}

.hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      98deg,
      rgb(12 38 31 / 93%) 0%,
      rgb(12 38 31 / 74%) 40%,
      rgb(12 38 31 / 20%) 100%
    ),
    linear-gradient(
      180deg,
      rgb(12 38 31 / 60%) 0%,
      rgb(12 38 31 / 0%) 30%,
      rgb(12 38 31 / 0%) 55%,
      rgb(12 38 31 / 72%) 100%
    );
}

.hero--home .hero__content {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(8rem, 13vw, 11rem);
}

.hero--home h1 {
  font-size: clamp(2.65rem, 6vw, 5.1rem);
  line-height: 1.03;
  letter-spacing: -0.032em;
  max-width: 16ch;
  margin-bottom: 1.75rem;
}

.hero--home h1 em {
  font-style: italic;
  color: var(--accent-light);
}

.hero--home .hero__lead {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  max-width: 50ch;
  margin-bottom: 2.25rem;
}

.hero--home .hero__content > * {
  animation: hero-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero--home .hero__content > :nth-child(1) {
  animation-delay: 0.2s;
}
.hero--home .hero__content > :nth-child(2) {
  animation-delay: 0.33s;
}
.hero--home .hero__content > :nth-child(3) {
  animation-delay: 0.46s;
}
.hero--home .hero__content > :nth-child(4) {
  animation-delay: 0.59s;
}

.hero--home .hero__scroll {
  bottom: clamp(7rem, 11vw, 9.5rem);
  animation: hero-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.8s both,
    hero-bob 2.8s ease-in-out 1.9s infinite;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.18);
  }
  to {
    transform: scale(1);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

@media (max-width: 760px) {
  .hero--home {
    min-height: min(760px, 100svh);
  }
  .hero--home::after {
    background: linear-gradient(
      180deg,
      rgb(12 38 31 / 72%) 0%,
      rgb(12 38 31 / 55%) 38%,
      rgb(12 38 31 / 92%) 100%
    );
  }
  .hero--home .hero__content {
    padding-bottom: clamp(4rem, 14vw, 6rem);
  }
}

/* --- Nøgletal-båndet der overlapper heroen ------------------------------ */

.statband {
  position: relative;
  z-index: 3;
  margin-top: clamp(-5.5rem, -6vw, -3.5rem);
}

.statband__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--sage);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 26px 70px rgb(var(--forest-rgb) / 16%);
  overflow: hidden;
}

.stat {
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border-left: 1px solid var(--border-soft);
}

.stat:first-child {
  border-left: none;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--forest);
  margin-bottom: 0.6rem;
}

.stat span {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(var(--forest-rgb) / 66%);
}

@media (max-width: 860px) {
  .statband {
    margin-top: 0;
  }
  .statband__inner {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(odd) {
    border-left: none;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border-soft);
  }
}

/* --- Velkomst med billedstak -------------------------------------------- */

.welcome--media {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.welcome--media h2 {
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

.welcome--media .welcome__copy {
  max-width: 540px;
}

.mediastack {
  position: relative;
  padding: 0 2.75rem 2.75rem 0;
}

.mediastack__main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.mediastack__inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 7px solid var(--white);
  box-shadow: 0 20px 45px rgb(var(--forest-rgb) / 18%);
}

.mediastack__note {
  position: absolute;
  left: -1rem;
  bottom: 4.75rem;
  max-width: 215px;
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgb(var(--forest-rgb) / 26%);
}

.mediastack__note strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.mediastack__note span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(255 255 255 / 72%);
}

@media (max-width: 900px) {
  .welcome--media {
    grid-template-columns: 1fr;
    row-gap: 2.75rem;
  }
  .mediastack {
    padding: 0 2rem 2rem 0;
    max-width: 480px;
  }
  .mediastack__note {
    left: 0;
    bottom: 3.5rem;
  }
}

/* --- Vejkort med billedoverlay ------------------------------------------ */

.paths--rich .path__media {
  position: relative;
}

.paths--rich .path__media img {
  aspect-ratio: 4 / 3;
}

.paths--rich .path__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(12 38 31 / 0%) 30%,
    rgb(12 38 31 / 88%) 100%
  );
}

.paths--rich .path:hover .path__media img {
  transform: scale(1.06);
}

.paths--rich .path__badge {
  position: absolute;
  top: clamp(1.2rem, 2.5vw, 1.8rem);
  left: clamp(1.4rem, 3vw, 2.2rem);
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgb(255 255 255 / 16%);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / 40%);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.paths--rich .path__overlay {
  position: absolute;
  z-index: 1;
  right: clamp(1.4rem, 3vw, 2.2rem);
  bottom: clamp(1.2rem, 2.5vw, 1.8rem);
  left: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--white);
}

.paths--rich .path__overlay .kicker {
  color: var(--accent-light);
  margin-bottom: 0.55rem;
}

.paths--rich .path__overlay h3 {
  color: var(--white);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin: 0;
}

.paths--rich .path__content::before {
  display: none;
}

/* --- Citatbånd med parallakse ------------------------------------------- */

.statement {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(460px, 62vh, 640px);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--forest-deeper);
  color: var(--white);
  text-align: center;
}

.statement__bg {
  position: absolute;
  inset: -12% -3% auto;
  z-index: -2;
  width: 106%;
  height: 124%;
  object-fit: cover;
  filter: saturate(0.6) blur(3px);
  will-change: transform;
}

.statement::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    125% 95% at 50% 50%,
    rgb(12 38 31 / 82%) 0%,
    rgb(12 38 31 / 97%) 100%
  );
}

.statement__inner {
  max-width: 920px;
}

.statement blockquote {
  margin: 0 0 2.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 3.05rem);
  line-height: 1.22;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.statement blockquote p {
  margin: 0;
}

.statement__by {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.9rem;
  margin: 0;
  text-align: left;
}

.statement__by img {
  grid-row: 1 / 3;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 2px solid rgb(255 255 255 / 45%);
}

.statement__by b {
  grid-column: 2;
  align-self: end;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
}

.statement__by span {
  grid-column: 2;
  align-self: start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-top: 0.2rem;
}

/* --- Pillar-hover ------------------------------------------------------- */

.pillar {
  position: relative;
  transition: background 0.3s ease;
}

.pillar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--accent-light);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease-image);
}

.pillar:hover {
  background: rgb(255 255 255 / 5%);
}

.pillar:hover::after {
  transform: scaleY(1);
}

/* --- Nyheder med fremhævet kort ----------------------------------------- */

.newsgrid--feature {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.newsgrid--feature > :first-child {
  grid-row: span 2;
}

.newsgrid--feature > :first-child .newscard__image img {
  aspect-ratio: 3 / 2;
}

.newscard--row {
  flex-direction: row;
}

.newscard--row .newscard__image {
  position: relative;
  flex: 0 0 38%;
  min-height: 190px;
}

.newscard--row .newscard__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.newscard--row .newscard__image time {
  bottom: 0.75rem;
  left: 0.75rem;
  width: 48px;
  height: 48px;
}

@media (max-width: 900px) {
  .newsgrid--feature {
    grid-template-columns: 1fr;
  }
  .newsgrid--feature > :first-child {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .newscard--row {
    flex-direction: column;
  }
  .newscard--row .newscard__image {
    flex: none;
    min-height: 0;
  }
  .newscard--row .newscard__image img {
    position: static;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* --- Afsluttende CTA ---------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--forest);
  color: var(--white);
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      80% 120% at 15% 0%,
      rgb(169 86 50 / 34%) 0%,
      transparent 62%
    ),
    radial-gradient(70% 110% at 92% 100%, rgb(94 156 126 / 26%) 0%, transparent 60%);
}

.cta h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 18ch;
  margin: 0 auto 1.25rem;
}

.cta__lead {
  max-width: 52ch;
  margin: 0 auto 2.25rem;
  color: rgb(255 255 255 / 76%);
  font-size: 1.0625rem;
}

.cta .actions {
  justify-content: center;
}

/* --- Bevægelse fra ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn:hover,
  .path:hover,
  .newscard:hover,
  .quicklink:hover {
    transform: none;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .statement__bg {
    transform: none !important;
  }
}

/* --- Undersider: samme billedsprog og rytme som forsiden ---------------- */

.hero--page {
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background-image: none;
}

.hero--page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(98deg, rgb(12 38 31 / 94%) 0%, rgb(12 38 31 / 77%) 42%, rgb(12 38 31 / 24%) 100%),
    linear-gradient(180deg, rgb(12 38 31 / 45%), transparent 40%, rgb(12 38 31 / 48%));
}

.hero--page .hero__content {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 7.5rem;
}

.hero--page h1 {
  font-size: clamp(2.65rem, 5.25vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.hero--page h1 em {
  color: var(--accent-light);
  font-style: italic;
}

.hero--page .hero__lead {
  max-width: 54ch;
  font-size: clamp(1.0625rem, 1.35vw, 1.2rem);
}

.page--skolevaegring .hero__media img { object-position: center 42%; }
.page--nyheder .hero__media img { object-position: center 40%; }

.page-jump {
  position: relative;
  z-index: 3;
  margin-top: -3rem;
}

.page-jump__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: 0 20px 55px rgb(var(--forest-rgb) / 12%);
  overflow: hidden;
}

.page-jump a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 1rem;
  align-content: center;
  padding: 1.3rem 1.6rem;
  border-left: 1px solid var(--border);
  color: var(--forest);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.page-jump a:first-child { border-left: 0; }
.page-jump a:hover { background: var(--sage-tint); }
.page-jump a:focus-visible { outline-offset: -4px; }
.page-jump__number {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.page-jump a > :last-child { color: var(--accent); }

.page .section { padding-block: clamp(3.5rem, 6.5vw, 6.5rem); }
.page .sectionhead h2 { max-width: 18ch; }
.page .welcome--media { align-items: start; }
.page .welcome--media h2 { max-width: 19ch; }
.page .welcome__copy { font-size: 1rem; }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.page-photo { margin: 0; position: relative; }
.page-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 62%;
  border-radius: var(--radius-lg);
}
.page-photo figcaption {
  position: relative;
  margin: -3rem 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
  box-shadow: var(--shadow-lg);
}

.cards--editorial { counter-reset: info; }
.cards--editorial > .card { position: relative; counter-increment: info; }
.cards--editorial > .card::before {
  content: counter(info, decimal-leading-zero);
  display: block;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 1.6rem;
}
.cards--editorial > .card h3 { font-size: 1.6rem; max-width: 23ch; }
.cards--editorial > .card { border-top: 2px solid var(--border-card); }
.page .step__number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage-tint);
  margin-bottom: 1.5rem;
}
.page .steps + .prose { margin-top: 2rem; }
.page .feature__media { align-self: stretch; }
.page .feature__media img { height: 100%; }
.page .signal { padding-block: 2rem; }
.page .profile { align-items: center; }
.page .profile__media img { max-height: 560px; object-position: center 25%; }
.page .prose a { overflow-wrap: anywhere; }
.page .card a { overflow-wrap: anywhere; }
.page .cta__heading { margin-bottom: 0; }
.page .cta .btn--ghost { color: var(--white); border-color: rgb(255 255 255 / 55%); }
.page .cta .btn--ghost:hover { color: var(--accent); }
.page .site-footer { border-top: 1px solid rgb(255 255 255 / 14%); }

.page--nyheder #ugeplan .cards { align-items: center; }
.page--nyheder #ugeplan .card::before,
.page--kontakt #find-vej .card::before { display: none; }
.page--nyheder #ugeplan .card:first-child { background: var(--sage-tint); }
.page--nyheder #ugeplan .card:last-child { border: 0; box-shadow: none; }

.contact-person {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.contact-person__image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 32%;
}
.contact-person__body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.contact-person .kicker { color: var(--accent-light); font-size: 0.65rem; }
.contact .contact-person h3 { color: var(--white); font-size: 2.25rem; }
.contact-person__role { margin: 0.5rem 0 1.5rem; font-size: 0.85rem; color: var(--accent-light); }
.contact-person__body > p:not([class]) { color: rgb(255 255 255 / 80%); font-size: 1rem; }
.contact-person .actions { align-items: center; margin-top: 1.5rem; }
.contact-person .textlink { color: var(--white); }
.contact-person .textlink span { color: var(--accent-light); }
.contact-person__note { font-size: 0.8rem; color: rgb(255 255 255 / 70%); margin-top: 1rem; }
.contact__list li { padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.contact__list a { overflow-wrap: anywhere; }

/* Keep the complete menu comfortable before switching to its mobile layout. */
@media (min-width: 1121px) and (max-width: 1199px) {
  .nav, .nav__list { gap: 1rem; }
  .nav__list a { font-size: 0.85rem; }
  .site-header__inner { gap: 1rem; }
  .brand__name { font-size: 1.45rem; }
}

@media (max-width: 1120px) {
  .nav__list a[aria-current="page"] { color: var(--accent); }
}

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .page-photo { max-width: 600px; width: 100%; }
  .page-photo img { aspect-ratio: 5 / 4; }
  .page-jump a { padding: 1.2rem; }
}

@media (max-width: 760px) {
  .hero--page { min-height: auto; }
  .hero--page .hero__content {
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 5rem;
  }
  .hero--page::after {
    background: linear-gradient(180deg, rgb(12 38 31 / 76%), rgb(12 38 31 / 86%));
  }
  .hero--page h1 { font-size: clamp(2.4rem, 8.5vw, 3.7rem); }
  .page-jump { margin-top: -1.5rem; }
  .page-jump__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-jump a:nth-child(3) { border-left: 0; }
  .page-jump a:nth-child(n+3) { border-top: 1px solid var(--border); }
  .page-jump a { font-size: 0.85rem; gap: 0.5rem; padding: 1rem; }
  .page .sectionhead h2 { max-width: 22ch; }
  .page .sectionhead__intro { max-width: none; }
  .page .feature__media img { height: auto; }
  .contact-person__image { height: 280px; }
}

.method-note {
  max-width: var(--text-max);
  margin: 0 0 2rem;
  color: var(--muted);
}

@media (max-width: 380px) {
  .hero--page h1 { font-size: clamp(1.875rem, 9.5vw, 2.4rem); }
}

/* Indhold fra redaktionen */
.week-summary { padding:2rem; background:var(--sage-tint); border:1px solid var(--border); border-radius:var(--radius); }
.week-summary h3 { color:var(--forest); font-size:2rem; margin-bottom:1rem; }
.week-summary .actions { margin-top:1.5rem; }
.news-date { font-size:.75rem; color:var(--accent); margin-bottom:.8rem; }
.news-detail { margin-top:auto; }
.news-detail summary { padding-block:.65rem; min-height:44px; font-weight:700; font-size:.9rem; color:var(--forest); cursor:pointer; }
.news-detail .prose { margin-top:1.2rem; }
.news-detail[open] { grid-column:1/-1; }
.news-more { margin-top:2rem; }
.content-error { color:var(--muted); }
@media print { .news-detail { display:block; } }

.news-preview { max-width:800px; margin-inline:auto; background:white; padding:clamp(1.5rem,4vw,3rem); border-radius:var(--radius); }
.news-preview h1 { font-size:clamp(2rem,4vw,3.2rem); margin-bottom:1.5rem; }
.news-preview__intro { font-size:1.15rem; color:var(--muted); }
.news-preview img { width:100%; height:auto; border-radius:var(--radius-sm); margin-block:2rem; }
/* Clearer visitor routes and compact, keyboard-accessible questions. */
.faq-layout { display:grid; grid-template-columns:1fr 1.3fr; gap:clamp(32px,6vw,90px); }
.faq-layout h2 { margin-bottom:20px; }
.faq-list details { border-bottom:1px solid #ccd6cc; padding:20px 0; }
.faq-list details:first-child { border-top:1px solid #ccd6cc; }
.faq-list summary { cursor:pointer; font-weight:600; font-size:18px; padding:4px 28px 4px 0; line-height:1.5; }
.faq-list p { margin:16px 0 4px; max-width:60ch; }
.faq-list summary:focus-visible { outline:2px solid #173f35; outline-offset:6px; }
@media(max-width:760px) { .faq-layout { grid-template-columns:1fr; gap:24px; } }

/* Tablet: give content room without stretching the desktop composition. */
@media (min-width: 761px) and (max-width: 1120px) {
  :root { --shell-gutter: 2rem; --header-h: 80px; }
  .hero--home { min-height: min(780px, 100svh); }
  .hero--home .hero__content {
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 7rem;
  }
  .hero--page { min-height: 580px; }
  .hero--page .hero__content {
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 5.5rem;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .hero--home .hero__media img { object-position: 90% 75%; }
  .welcome--media h2 { max-width: 22ch; }
  .welcome--media .welcome__copy { max-width: 65ch; }
  .mediastack { max-width: 560px; }
  .mediastack__main { aspect-ratio: 4 / 3; }
  .page-photo img { aspect-ratio: 4 / 3; }
  .shortcuts__heading { grid-template-columns: 1fr; gap: 1.25rem; }
  .shortcuts__heading > p { max-width: 60ch; }
  .faq-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .page .feature__media img { height: auto; }
}

@media (max-width: 900px) {
  .page-jump__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-jump a:nth-child(odd) { border-left: 0; }
  .page-jump a:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

@media (max-width: 1120px) {
  .nav-toggle { min-height: 44px; flex-shrink: 0; }
}

/* Cookieinformation åbnes fra linket i sidefoden. */
.cookie-page { max-width: 760px; }
.cookie-page h1 { color: var(--forest); font-size: clamp(2.2rem, 6vw, 3.5rem); margin-bottom: 1.5rem; }
