/* =========================================================
   Sommerhusejer.dk - nyt design (2026)
   Alle klasser starter med "nd-", så de ikke kolliderer med
   Bootstrap eller den eksisterende CSS.
   Selve formularen (<signupform>) styles IKKE her - kun boksen
   omkring den.
   ========================================================= */

:root {
  --nd-green: #4b876e;
  --nd-green-dark: #234c3d;
  --nd-green-deep: #17362c;
  --nd-green-pale: #edf6f1;
  --nd-cream: #f7f5ef;
  --nd-ink: #17241f;
  --nd-muted: #617069;
  --nd-line: #dce5e0;
  --nd-shadow: 0 24px 70px rgba(22, 54, 43, .14);
  --nd-radius: 18px;
  --nd-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  color: var(--nd-ink);
  font-family: var(--nd-font);
  -webkit-font-smoothing: antialiased;
}

.nd-container {
  width: min(1160px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.nd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--nd-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nd-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.nd-section {
  padding: 94px 0;
  scroll-margin-top: 100px;
}

.nd-section-title {
  max-width: 760px;
  margin: 12px auto 16px;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--nd-ink);
}

.nd-section-lead {
  max-width: 720px;
  margin: 0 auto;
  color: var(--nd-muted);
  font-size: 18px;
}

.nd-center {
  text-align: center;
}

.nd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  padding: 12px 20px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

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

.nd-btn-primary {
  color: #fff !important;
  background: var(--nd-green);
  box-shadow: 0 10px 25px rgba(75, 135, 110, .25);
}

.nd-btn-primary:hover {
  background: var(--nd-green-dark);
}

.nd-btn-outline {
  color: var(--nd-green-dark) !important;
  background: #fff;
  border: 1px solid var(--nd-line);
}

.nd-btn-danger {
  color: #fff !important;
  background: #a86860;
}

/* ---------- Top: grøn linje + menu ---------- */

.nd-site-header {
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--nd-line);
}

.nd-topline {
  height: 31px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: var(--nd-green-deep);
  color: #dfece7;
  font-size: 12px;
}

.nd-topline strong {
  color: #fff;
  margin-right: 5px;
}

.nd-nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
}

.nd-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--nd-ink) !important;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -.035em;
  text-decoration: none;
}

.nd-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nd-navlinks {
  gap: 28px !important;
  font-size: 14px;
  font-weight: 700;
}

.nd-navlinks > a:not(.nd-btn),
.nd-navlinks > span {
  color: var(--nd-ink);
  text-decoration: none;
}

.nd-navlinks > a:not(.nd-btn):hover {
  color: var(--nd-green);
}

/* ---------- Hero (toppen med formularen) ---------- */

.nd-hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  padding: 60px 0 70px;
  display: flex;
  align-items: center;
  background: url("/images/baggrund.png") center / cover no-repeat;
}

.nd-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 49, 39, .91) 0%, rgba(28, 63, 50, .78) 38%, rgba(30, 61, 49, .37) 66%, rgba(21, 48, 39, .18) 100%);
}

.nd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 72px;
  align-items: center;
}

.nd-hero-copy {
  color: #fff;
  max-width: 640px;
}

.nd-hero-copy .nd-eyebrow {
  color: #b8ddcc;
}

.nd-hero h1 {
  margin: 18px 0 21px;
  color: #fff;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.nd-hero-intro {
  margin: 0;
  max-width: 620px;
  color: #e9f2ee;
  font-size: 19px;
  line-height: 1.6;
}

.nd-trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 30px;
}

.nd-trust-point {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 750;
  color: #fff;
}

.nd-trust-point i {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: var(--nd-green-dark);
  background: #fff;
  font-style: normal;
  font-size: 12px;
}

/* Kun boksen OMKRING formularen - selve formularen er uændret */
.nd-form-wrap {
  width: 100%;
  scroll-margin-top: 120px;
}

.nd-form-wrap > signupform {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  /* Samme højde på alle trin, så boksen ikke hopper (højeste trin er ca. 710px) */
  min-height: 710px;
}

/* ---------- Bjælken under toppen ---------- */

.nd-confidence {
  background: #fff;
  border-bottom: 1px solid var(--nd-line);
}

.nd-confidence-grid {
  min-height: 106px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  align-items: center;
}

.nd-confidence-item {
  padding: 20px 25px;
  border-left: 1px solid var(--nd-line);
}

.nd-confidence-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.nd-confidence-item h3 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800;
  color: var(--nd-ink);
}

.nd-confidence-item p {
  margin: 0;
  color: var(--nd-muted);
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Trin 1-2-3 ---------- */

.nd-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 47px;
}

.nd-step-card {
  position: relative;
  padding: 31px 30px 30px;
  border: 1px solid var(--nd-line);
  border-radius: var(--nd-radius);
  background: #fff;
  text-align: center;
  box-shadow: 0 13px 35px rgba(22, 54, 43, .055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.nd-step-card:hover {
  transform: translateY(-5px);
  border-color: #bed5cb;
  box-shadow: 0 22px 45px rgba(22, 54, 43, .1);
}

.nd-step-marker {
  position: relative;
  width: 78px;
  height: 86px;
  margin: 0 auto 10px;
}

.nd-step-visual {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: auto;
  border-radius: 50%;
  background: var(--nd-green-pale);
}

.nd-step-visual img {
  max-width: 40px;
  max-height: 40px;
}

.nd-step-number {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  transform: translateX(-50%);
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--nd-green);
  font-size: 12px;
  font-weight: 850;
}

.nd-step-card h3 {
  margin: 19px 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--nd-ink);
}

.nd-step-card p {
  margin: 0;
  color: var(--nd-muted);
  font-size: 14px;
}

/* ---------- Bund ---------- */

.nd-footer {
  padding: 56px 0 25px;
  color: #c6d6cf;
  background: #112a21;
}

.nd-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 45px;
}

.nd-footer-about {
  max-width: 310px;
  margin: 16px 0 0;
  color: #a9beb5;
  font-size: 13px;
  line-height: 1.7;
}

.nd-footer-mail {
  margin-top: 14px;
  font-size: 13px;
}

.nd-footer-col h3 {
  margin: 3px 0 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.nd-footer-col a {
  display: block;
  margin: 9px 0;
  font-size: 13px;
}

.nd-footer .nd-brand {
  color: #fff !important;
  margin-bottom: 16px;
}

.nd-footer-info {
  font-size: 13px;
  line-height: 1.8;
  color: #a9beb5;
}

.nd-footer-info strong {
  display: block;
  margin-top: 14px;
  color: #fff;
}

.nd-footer a {
  color: #b6c9c0 !important;
  text-decoration: none;
}

.nd-footer a:hover {
  color: #fff !important;
}

.nd-footer .nd-footer-links * {
  color: #b6c9c0;
}

.nd-footer .nd-footer-links h1,
.nd-footer .nd-footer-links h2,
.nd-footer .nd-footer-links h3,
.nd-footer .nd-footer-links h4,
.nd-footer .nd-footer-links strong,
.nd-footer .nd-footer-links .fw-bold {
  color: #fff !important;
  font-size: 13px;
}

.nd-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px;
  color: #849d93;
}

.nd-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ---------- Tekstblokke fra Umbraco (generel typografi) ---------- */

.text-block h2 {
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--nd-ink);
}

/* ---------- Tablet ---------- */

@media (max-width: 991.98px) {
  .nd-navlinks {
    gap: .75rem !important;
  }

  .nd-hero {
    min-height: auto;
    padding-top: 45px;
  }

  .nd-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .nd-form-wrap {
    max-width: 570px;
  }

  .nd-form-wrap > signupform {
    min-height: 0;
  }

  .nd-confidence-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nd-confidence-item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .nd-steps {
    grid-template-columns: 1fr;
  }

  .nd-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Topbjælken må gå over to linjer, så hele teksten kan ses */
  .nd-topline {
    height: auto;
    min-height: 31px;
    padding: 6px 14px;
    flex-wrap: wrap;
    white-space: normal;
    text-overflow: clip;
    line-height: 1.4;
    text-align: center;
  }

  .nd-topline strong {
    flex-basis: 100%;
    margin-right: 0;
  }

  .nd-topline-sep {
    display: none;
  }

  /* Toppen skubber selv indholdet ned, så en højere topbjælke ikke dækker noget */
  .site-header.nd-site-header {
    position: sticky !important;
    top: 0;
  }

  body {
    margin-top: 0 !important;
  }
}

/* ---------- Mobil ---------- */

@media (max-width: 600px) {
  .nd-container {
    width: calc(100% - 28px);
  }

  .nd-topline {
    font-size: 10px;
  }

  .nd-brand {
    font-size: 19px;
  }

  .nd-brand img {
    width: 30px;
    height: 30px;
  }

  .nd-hero {
    padding: 36px 0 50px;
    background-position: 60% center;
  }

  .nd-hero h1 {
    font-size: 32px;
    overflow-wrap: break-word;
  }

  .nd-hero-intro {
    font-size: 16px;
  }

  .nd-confidence-grid {
    grid-template-columns: 1fr;
  }

  .nd-confidence-item,
  .nd-confidence-item:first-child,
  .nd-confidence-item:nth-child(3) {
    padding: 16px 0;
    border-left: 0;
    border-bottom: 1px solid var(--nd-line);
  }

  .nd-section {
    padding: 64px 0;
  }

  .nd-section-lead {
    font-size: 16px;
  }

  .nd-footer-grid {
    grid-template-columns: 1fr;
  }

  .nd-legal {
    display: block;
  }

  .nd-legal > * + * {
    margin-top: 10px;
  }
}

/* ---------- Forsiden: nye sektioner (Views/Partials/Forside/NytIndhold.cshtml) ---------- */

/* De gamle tekstblokke og videoen fra Umbraco skjules på forsiden,
   fordi de er erstattet af de nye sektioner. Når de er slettet i
   Umbraco, kan disse to regler fjernes. */
.nd-home-grid .umb-block-grid__layout-item:has(.text-block),
.nd-home-grid .umb-block-grid__layout-item:has(iframe) {
  display: none;
}

.nd-left {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.nd-btn-light {
  color: var(--nd-green-dark) !important;
  background: #fff;
}

.nd-audience {
  background: var(--nd-green-pale);
}

.nd-audience-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.nd-audience-list {
  display: grid;
  gap: 12px;
}

.nd-audience-row {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 15px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(75, 135, 110, .15);
  border-radius: 13px;
}

.nd-audience-row i {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 11px;
  color: var(--nd-green);
  background: var(--nd-green-pale);
  font-style: normal;
  font-size: 18px;
}

.nd-audience-row h3 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 800;
  color: var(--nd-ink);
}

.nd-audience-row p {
  margin: 0;
  color: var(--nd-muted);
  font-size: 13px;
}

.nd-compare {
  color: #fff;
  background: var(--nd-green-deep);
}

.nd-compare .nd-eyebrow {
  color: #9fd0ba;
}

.nd-compare .nd-section-title {
  color: #fff;
}

.nd-compare .nd-section-lead {
  color: #c9d9d2;
}

.nd-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 43px;
}

.nd-compare-card {
  min-height: 175px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
}

.nd-compare-icon {
  font-size: 23px;
}

.nd-compare-card h3 {
  margin: 14px 0 7px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.nd-compare-card p {
  margin: 0;
  color: #bfd0c8;
  font-size: 13px;
}

.nd-offer-example {
  margin-top: 50px;
}

.nd-offer-example-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 17px;
}

.nd-offer-example h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
}

.nd-offer-example-head p {
  max-width: 500px;
  margin: 0;
  color: #aec2b9;
  font-size: 12px;
  text-align: right;
}

.nd-offer-table-scroll {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 24px 55px rgba(4, 20, 15, .2);
}

.nd-offer-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  color: var(--nd-ink);
  background: #fff;
}

.nd-offer-table th,
.nd-offer-table td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--nd-line);
  text-align: left;
  font-size: 14px;
}

.nd-offer-table th {
  color: var(--nd-green-deep);
  background: #e7f2ed;
  font-size: 13px;
}

.nd-offer-table th:first-child,
.nd-offer-table td:first-child {
  width: 34%;
  font-weight: 750;
}

.nd-offer-table tr:last-child td {
  border-bottom: 0;
}

.nd-offer-table .nd-best {
  color: #247050;
  font-weight: 850;
}

.nd-yes,
.nd-no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}

.nd-yes::before,
.nd-no::before {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  font-size: 10px;
  color: #fff;
}

.nd-yes {
  color: #247050;
}

.nd-yes::before {
  content: "✓";
  background: #3e8b69;
}

.nd-no {
  color: #8a5750;
}

.nd-no::before {
  content: "×";
  background: #a86860;
}

.nd-transparent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.nd-quote-panel {
  padding: 34px;
  border-radius: var(--nd-radius);
  background: var(--nd-cream);
}

.nd-quote-panel h3 {
  margin: 0 0 17px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--nd-ink);
}

.nd-quote-panel p {
  color: var(--nd-muted);
}

.nd-disclosure {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #dedbd1;
  font-size: 12px;
  color: #717870;
}

.nd-check-list {
  padding: 0;
  margin: 27px 0 0;
  list-style: none;
}

.nd-check-list li {
  display: flex;
  gap: 12px;
  margin: 13px 0;
}

.nd-check-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 23px;
  height: 23px;
  border-radius: 50%;
  color: #fff;
  background: var(--nd-green);
  font-size: 11px;
  font-weight: 900;
}

.nd-faq {
  background: #fafcfb;
}

.nd-faq-list {
  max-width: 820px;
  margin: 39px auto 0;
  text-align: left;
}

.nd-faq details {
  padding: 21px 2px;
  border-top: 1px solid var(--nd-line);
}

.nd-faq details:last-child {
  border-bottom: 1px solid var(--nd-line);
}

.nd-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 800;
}

.nd-faq summary::-webkit-details-marker {
  display: none;
}

.nd-faq summary::after {
  content: "+";
  color: var(--nd-green);
  font-size: 23px;
  line-height: 1;
}

.nd-faq details[open] summary::after {
  content: "–";
}

.nd-faq details p {
  max-width: 720px;
  margin: 13px 0 1px;
  color: var(--nd-muted);
  font-size: 14px;
}

.nd-final-cta {
  padding: 0 0 90px;
  background: #fafcfb;
}

.nd-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 49px;
  border-radius: 20px;
  color: #fff;
  background: var(--nd-green);
}

.nd-cta-box h2 {
  margin: 0 0 7px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.04em;
  color: #fff;
}

.nd-cta-box p {
  margin: 0;
  color: #e4f0eb;
}

@media (max-width: 991.98px) {
  .nd-audience-grid,
  .nd-transparent-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .nd-compare-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nd-cta-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .nd-compare-grid {
    grid-template-columns: 1fr;
  }

  .nd-offer-example-head {
    display: block;
  }

  .nd-offer-example-head p {
    margin-top: 8px;
    text-align: left;
  }

  .nd-cta-box {
    padding: 31px;
  }

  .nd-cta-box h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nd-step-card,
  .nd-btn {
    transition: none;
  }
}

/* =========================================================
   Artikler (Views/article.cshtml + wwwroot/scripts/artikel.js)
   Teksten kommer fra tekstblokken i Umbraco. Bokse, FAQ og
   indholdsfortegnelse laves af artikel.js ud fra teksten.
   ========================================================= */

.nd-article-head {
  padding: 54px 0 34px;
  background: var(--nd-cream);
}

.nd-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: var(--nd-muted);
  font-size: 13px;
}

.nd-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #a9b5af;
}

.nd-crumbs a {
  color: inherit;
  text-decoration: none;
}

.nd-crumbs a:hover {
  color: var(--nd-green);
}

.nd-article-head h1 {
  max-width: 820px;
  margin: 14px 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.05em;
  color: var(--nd-ink);
}

.nd-article-lead {
  max-width: 720px;
  margin: 0;
  color: var(--nd-muted);
  font-size: 20px;
  line-height: 1.55;
}

.nd-article-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--nd-muted);
  font-size: 13px;
  font-weight: 650;
}

.nd-article-hero {
  margin: 0;
  background: linear-gradient(var(--nd-cream) 55%, #fff 55%);
}

.nd-article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  border-radius: var(--nd-radius);
}

.nd-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 300px;
  justify-content: space-between;
  gap: 56px;
  padding: 56px 0 80px;
}

/* ---------- Selve teksten ---------- */

.nd-prose {
  color: var(--nd-ink);
  font-size: 18px;
  line-height: 1.65;
}

.nd-prose p {
  margin: 0 0 20px;
}

.nd-prose h2 {
  margin: 52px 0 14px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
  color: var(--nd-ink);
  scroll-margin-top: 120px;
}

.nd-prose h2.nd-has-ico {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nd-h-ico {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--nd-green);
  background: var(--nd-green-pale);
}

.nd-h-ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nd-prose h3 {
  margin: 32px 0 10px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--nd-ink);
}

.nd-prose ul,
.nd-prose ol {
  margin: 0 0 20px;
  padding-left: 1.3em;
}

.nd-prose li {
  margin: 8px 0;
}

.nd-prose li p {
  margin: 0;
}

.nd-prose a {
  color: var(--nd-green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nd-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.nd-prose p:has(> img) {
  margin: 36px 0 10px;
}

.nd-prose p:has(> img) + p:has(> em:only-child) {
  color: var(--nd-muted);
  font-size: 14px;
}

/* Kort fortalt */
.nd-summary {
  margin: 0 0 34px;
  padding: 26px 28px;
  border: 1px solid var(--nd-line);
  border-radius: var(--nd-radius);
  background: #fafcfb;
}

.nd-prose .nd-summary h2 {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nd-green);
}

.nd-summary ul,
.nd-summary ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nd-summary li {
  display: flex;
  gap: 12px;
  margin: 10px 0;
  font-size: 17px;
}

.nd-summary li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 23px;
  height: 23px;
  margin-top: 2px;
  border-radius: 50%;
  color: #fff;
  background: var(--nd-green);
  font-size: 11px;
  font-weight: 900;
}

/* "Det kan du gøre: ..." */
.nd-prose .nd-tip {
  margin: 18px 0 8px;
  padding: 16px 20px;
  border-left: 4px solid var(--nd-green);
  border-radius: 0 12px 12px 0;
  background: var(--nd-green-pale);
  font-size: 16px;
}

.nd-prose .nd-tip strong {
  color: var(--nd-green-dark);
}

/* Regneeksempel */
.nd-example {
  margin: 26px 0 20px;
  padding: 26px 28px;
  border-radius: var(--nd-radius);
  background: var(--nd-cream);
}

.nd-prose .nd-example h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.nd-prose .nd-example-note {
  margin: 0 0 16px;
  color: var(--nd-muted);
  font-size: 13px;
}

.nd-example-table {
  margin: 0 0 16px;
  overflow-x: auto;
}

.nd-example-table table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
}

.nd-example-table th,
.nd-example-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--nd-line);
  text-align: left;
}

.nd-example-table th {
  background: #e7f2ed;
  font-size: 14px;
}

.nd-example-table th:not(:first-child),
.nd-example-table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.nd-example-table tr:last-child td {
  border-bottom: 0;
  font-weight: 850;
}

.nd-example-table .nd-best {
  color: var(--nd-green);
}

.nd-prose .nd-example ul {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.nd-prose .nd-example li {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
}

.nd-prose .nd-example p:last-child {
  margin: 0;
  font-size: 16px;
}

/* Knap til formularen inde i teksten */
.nd-prose .nd-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 26px 0;
  padding: 22px 24px;
  border-radius: var(--nd-radius);
  color: #dfece7;
  background: var(--nd-green-deep);
  font-size: 16px;
}

.nd-prose .nd-inline-cta a.nd-btn {
  flex-shrink: 0;
  color: var(--nd-green-dark) !important;
  text-decoration: none;
}

.nd-inline-cta-text strong {
  display: block;
  color: #fff;
  font-size: 20px;
  letter-spacing: -.02em;
}

/* Ofte stillede spørgsmål */
.nd-article-faq details {
  padding: 18px 2px;
  border-top: 1px solid var(--nd-line);
}

.nd-article-faq details:last-child {
  border-bottom: 1px solid var(--nd-line);
}

.nd-article-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 800;
}

.nd-article-faq summary::-webkit-details-marker {
  display: none;
}

.nd-article-faq summary::after {
  content: "+";
  color: var(--nd-green);
  font-size: 23px;
  line-height: 1;
}

.nd-article-faq details[open] summary::after {
  content: "–";
}

.nd-article-faq details p {
  margin: 12px 0 2px;
  color: var(--nd-muted);
  font-size: 16px;
}

/* Læs også */
.nd-article-related h2 {
  margin-bottom: 18px;
}

.nd-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.nd-prose .nd-related a {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--nd-line);
  border-radius: 14px;
  color: var(--nd-ink);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}

.nd-prose .nd-related a:hover {
  border-color: #bed5cb;
  transform: translateY(-2px);
}

.nd-related small {
  display: block;
  margin-bottom: 4px;
  color: var(--nd-green);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- Kolonnen ved siden af teksten ---------- */

.nd-article-aside-inner {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 18px;
}

.nd-toc {
  padding: 22px 24px;
  border: 1px solid var(--nd-line);
  border-radius: var(--nd-radius);
}

.nd-toc h2 {
  margin: 0 0 10px;
  color: var(--nd-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nd-toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  font-weight: 700;
}

.nd-toc li {
  margin: 7px 0;
}

.nd-toc a {
  color: var(--nd-ink);
  text-decoration: none;
}

.nd-toc a:hover {
  color: var(--nd-green);
}

.nd-side-cta {
  padding: 24px;
  border-radius: var(--nd-radius);
  color: #fff;
  background: var(--nd-green);
}

.nd-side-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.nd-side-cta p {
  margin: 0 0 16px;
  color: #e4f0eb;
  font-size: 14px;
}

.nd-side-cta .nd-btn {
  width: 100%;
}

.nd-article-final {
  background: #fff;
}

.nd-mobile-cta {
  display: none;
}

@media (max-width: 991.98px) {
  .nd-article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nd-article-aside {
    display: none;
  }
}

@media (max-width: 600px) {
  .nd-article-head {
    padding: 36px 0 26px;
  }

  .nd-article-hero img {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .nd-article-layout {
    padding: 36px 0 60px;
  }

  .nd-prose {
    font-size: 17px;
  }

  .nd-article-lead {
    font-size: 17px;
  }

  .nd-prose h2.nd-has-ico .nd-h-ico {
    flex-basis: 40px;
    height: 40px;
  }

  .nd-example-table table {
    font-size: 14px;
  }

  .nd-example-table th,
  .nd-example-table td {
    padding: 11px 10px;
  }

  .nd-prose h2 {
    margin-top: 42px;
    font-size: 24px;
  }

  .nd-summary,
  .nd-example {
    padding: 20px;
  }

  .nd-prose .nd-inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .nd-mobile-cta {
    display: block;
    position: fixed;
    z-index: 20;
    left: 14px;
    right: 14px;
    bottom: 12px;
  }

  .nd-mobile-cta .nd-btn {
    width: 100%;
    box-shadow: 0 12px 32px rgba(15, 48, 36, .3);
  }

  body:has(.nd-mobile-cta) .nd-footer {
    padding-bottom: 90px;
  }
}
