:root {
  --paper: #f6f3ec;
  --card: #fffdf8;
  --ink: #15161a;
  --muted: #5a5b61;
  --yellow: #ffd60a;
  --line: rgba(21, 22, 26, 0.14);
  --radius: 14px;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
}
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 300; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 300; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
h1 b, h2 b { font-weight: 650; }
p { margin: 0 0 1em; }
mark {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
  padding: 0 0.08em;
}

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--yellow); padding: 0.5rem 1rem; z-index: 20; }

/* Top */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-size: 1.5rem; font-weight: 300; letter-spacing: 0.02em; }
.mark { height: 1.5em; width: auto; fill: currentColor; }
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { text-decoration: none; font-size: 0.98rem; }
nav a:not(.btn):hover, nav a[aria-current="page"] { box-shadow: 0 3px 0 var(--yellow); }
.menu-btn { display: none; font: inherit; background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.35rem 1rem; cursor: pointer; color: var(--ink); }

/* Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 1.5px solid var(--ink);
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: 0 4px 0 var(--yellow); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Sektioner */
section { padding: clamp(3rem, 8vw, 6rem) 0; }
.eyebrow { font-size: 0.82rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.6rem; }
.eyebrow::before { content: ""; width: 0.8rem; height: 0.8rem; background: var(--yellow); border: 1.5px solid var(--ink); }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 38em; }
.head { max-width: 46rem; margin-bottom: 2.5rem; }
.dark { background: var(--ink); color: var(--paper); }
.dark .lede, .dark p { color: #c9c8c2; }
.dark .eyebrow { color: var(--paper); }
.yellow { background: var(--yellow); }
.yellow .lede { color: var(--ink); }

/* Forside-top */
.hero { padding-top: clamp(2.5rem, 7vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.page-hero { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 18em; }

/* Kontaktkort */
.contact-card { background: var(--card); border: 1.5px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--yellow), 8px 8px 0 1.5px var(--ink); overflow: hidden; }
.cc-head { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.4rem 1.2rem; border-bottom: 1px solid var(--line); }
.cc-avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--yellow); border: 1.5px solid var(--ink); display: grid; place-items: center; }
.cc-avatar .mark { height: 30px; }
.cc-head strong { display: block; font-size: 1.3rem; font-weight: 650; line-height: 1.2; }
.cc-head span { color: var(--muted); font-size: 0.95rem; }
.cc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 1.4rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.cc-row:last-child { border-bottom: 0; }
a.cc-row:hover { background: var(--yellow); }
.cc-row small { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; flex: none; }
a.cc-row:hover small { color: var(--ink); }
.cc-row b { font-weight: 600; text-align: right; }

/* Nøgletal */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1.5px solid var(--ink); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.facts div { padding: 1.3rem 1.2rem; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.15; }
.facts span { color: var(--muted); font-size: 0.92rem; }

/* Kort */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card > :last-child { margin-bottom: 0; }
a.card { text-decoration: none; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
a.card:hover { transform: translate(-3px, -3px); border-color: var(--ink); box-shadow: 6px 6px 0 var(--yellow), 6px 6px 0 1.5px var(--ink); }
.card .more { margin-top: auto; padding-top: 0.8rem; font-weight: 600; color: var(--ink); }
.tab { display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; padding: 0 0.5rem; margin-bottom: 1.1rem; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 6px; font-weight: 700; align-self: flex-start; color: var(--ink); }
.dark .card { background: #1f2026; border-color: #34353c; }
.dark .card p { color: #c9c8c2; }

/* Telefonbogs-register */
.index { columns: 3 220px; column-gap: 2.5rem; }
.index dl { break-inside: avoid; margin: 0 0 1.1rem; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 0.6rem; align-items: start; }
.index dt { grid-row: span 9; font-weight: 700; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 6px; height: 1.9rem; display: grid; place-items: center; }
.index dd { margin: 0; grid-column: 2; padding: 0.12rem 0; border-bottom: 1px dotted var(--line); }

/* Priser */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.price { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 1.7rem; }
.price.hl { background: var(--yellow); }
.price h3 { margin-bottom: 1rem; }
.price .amount { font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.price .amount small { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.price .unit { font-size: 0.9rem; margin: 0.4rem 0 1rem; color: var(--muted); }
.price.hl .unit { color: var(--ink); }
.price ul { margin: 0; padding-left: 1.1rem; font-size: 0.97rem; }
.price li { margin-bottom: 0.3rem; }
.note { font-size: 0.92rem; color: var(--muted); margin-top: 1.2rem; }

/* To kolonner, lister, trin */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 0.7rem 0 0.7rem 2rem; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: 0.9rem; height: 0.9rem; background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 3px; }
.dark .ticks li { border-color: #34353c; }
.dark .ticks li::before { border-color: var(--yellow); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; border-top: 1.5px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 2rem; font-weight: 300; line-height: 1; margin-bottom: 0.6rem; }
.steps p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 1.2rem 0 0; list-style: none; }
.chips li { border: 1px solid var(--ink); border-radius: 999px; padding: 0.25rem 0.85rem; font-size: 0.92rem; background: var(--card); }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.75rem; font-size: 1.5rem; font-weight: 300; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); max-width: 44em; }

.cta { text-align: center; }
.cta .lede { margin-inline: auto; }
.cta .actions { justify-content: center; }

/* Formular */
form { display: grid; gap: 1rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
input, textarea { font: inherit; padding: 0.8rem 0.9rem; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink); width: 100%; }
textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 600; min-height: 1.6em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.prose { max-width: 44rem; }
.prose h2 { font-size: 1.5rem; font-weight: 650; margin-top: 2.2rem; }

/* Bund */
.foot { background: var(--ink); color: var(--paper); padding: 3.5rem 0 1.5rem; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.foot h2 { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: #a3a29c; margin-bottom: 0.9rem; }
.foot p { color: #c9c8c2; max-width: 26em; margin-top: 1rem; font-size: 0.97rem; }
.foot-in > div > a:not(.brand) { display: block; text-decoration: none; padding: 0.22rem 0; }
.foot-in > div > a:not(.brand):hover { color: var(--yellow); }
.foot small { color: #a3a29c; }
.brand-light .mark rect { fill: var(--ink); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid #34353c; font-size: 0.88rem; color: #a3a29c; }

@media (max-width: 860px) {
  .hero-grid, .split, .foot-in { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts div:nth-child(-n+2) { border-top: 0; }
  .menu-btn { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1.5px solid var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 1.25rem; }
  nav.open { display: flex; }
  nav a:not(.btn) { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  nav .btn { margin-top: 1rem; }
  .contact-card { margin-right: 8px; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .cc-row { flex-direction: column; gap: 0.1rem; }
  .cc-row b { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, a.card { transition: none; }
}

/* Fire kort: 4 → 2 → 1 kolonner, så der aldrig står ét kort alene */
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards.four { grid-template-columns: 1fr; } }

/* Registeret står på mørk baggrund */
.index dt { color: var(--ink); }
.dark .index dd { border-bottom-color: #3d3e46; }

/* Forside: rolig top med kun overskrift, én sætning og én knap */
.hero-solo { padding-top: clamp(3.5rem, 11vw, 8rem); padding-bottom: clamp(2.5rem, 7vw, 5rem); }
.hero-solo h1 { font-size: clamp(2.6rem, 7.5vw, 5.4rem); max-width: 12em; margin-bottom: 0.45em; }
.hero-solo .lede { font-size: clamp(1.2rem, 2.3vw, 1.5rem); color: var(--ink); max-width: 32em; }
.quiet { align-self: center; font-size: 0.98rem; color: var(--muted); }
.quiet:hover { color: var(--ink); }
.facts-band { padding: 0 0 clamp(2rem, 5vw, 3.5rem); }
.facts-band .facts { margin-top: 0; }
.contact-card { color: var(--ink); }
.dark .contact-card small, .dark .contact-card .cc-head span { color: var(--muted); }

/* No cure, no pay */
.promise { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin-top: 1.6rem; padding: 0.6rem 1.1rem 0.6rem 0.6rem; background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 12px; }
.promise b { background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 7px; padding: 0.2rem 0.65rem; white-space: nowrap; }
.yellow .promise b { background: var(--ink); color: var(--yellow); }

/* 60+-siden: større tekst */
.senior { font-size: 1.2rem; }
.senior .lede { font-size: clamp(1.25rem, 2.4vw, 1.5rem); color: var(--ink); }
.senior .dark .lede { color: #e4e3dd; }
.senior .btn { font-size: 1.15rem; padding: 1rem 1.7rem; }
.senior .steps p, .senior .card p { font-size: 1.1rem; color: var(--ink); }
nav { gap: 1.25rem; }

/* "Passer ikke"-liste: tom firkant i stedet for gul */
.ticks.no li::before { background: transparent; border-color: currentColor; }
.dark .ticks.no li::before { border-color: #8d8c86; }
.dark h3 { color: var(--paper); }

/* Priser: år 1 mod følgende år */
.prices-years { grid-template-columns: 2fr 1fr; }
.price.site .unit { margin: 0 0 1.4rem; max-width: 34em; }
.years { display: flex; align-items: flex-end; gap: clamp(0.5rem, 2vw, 1.25rem); }
.year { display: grid; justify-items: start; gap: 0.35rem; flex: 1; min-width: 0; }
.year.first { flex: 1.6; }
.year .bar { width: 100%; height: 52px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); }
.year.first .bar { height: 122px; background: var(--yellow); }
.y-price { font-size: clamp(1.05rem, 2.2vw, 1.5rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.year.first .y-price { font-size: clamp(1.7rem, 4vw, 2.8rem); }
.y-price small { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }
.y-label { font-weight: 650; font-size: 0.95rem; }
.y-what { font-size: 0.85rem; color: var(--muted); min-height: 2.6em; }
.years .arrow { align-self: flex-end; font-size: 1.5rem; padding-bottom: 5.1rem; }
.years-note { margin: 1.2rem 0 0; font-size: 0.97rem; }
@media (max-width: 860px) { .prices-years { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .years .arrow { display: none; } .year.first { flex: 1.4; } }
.y-what { height: 3.1em; min-height: 0; overflow: hidden; }
@media (max-width: 520px) { .year:not(.first) .y-price { font-size: 0.92rem; } }
