/* ───────── Farver og grundværdier ───────── */
:root {
  --ink: #16233f;          /* dyb blå – tekst */
  --ink-soft: #4a5672;
  --muted: #6b7590;
  --bg: #fbfaf7;           /* lys, varm hvid */
  --surface: #ffffff;
  --tint: #f2f5fb;         /* lys blå sektionsbaggrund */
  --line: #e3e7ef;
  --accent: #d2492b;       /* koral – kontrastfarve */
  --accent-hover: #b83b20;
  --accent-soft: #ffece6;
  --mint: #2f8f7a;
  --mint-soft: #e3f4ef;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 35, 63, .05), 0 8px 24px rgba(22, 35, 63, .07);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 750; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75em;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* ───────── Knapper ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.3em; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font: inherit; font-weight: 650; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.btn-block, .card .btn, .hero-actions .btn { white-space: normal; text-align: center; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-small { padding: .45em 1em; font-size: .95rem; }
.btn-large { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 750; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo-cv { color: var(--accent); }
.logo-light, .logo-light:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--accent); }
.menu-toggle { display: none; }

/* ───────── Topbanner ───────── */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.highlight {
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
  padding: 0 .08em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-soft); }
.hero-points li { padding-left: 30px; position: relative; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.5 2.5L14 7.5' fill='none' stroke='%232f8f7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* CV-illustration */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -6% -4% 10%; border-radius: 40px;
  background: linear-gradient(135deg, var(--tint), var(--accent-soft)); transform: rotate(4deg);
}
.paper {
  position: relative; width: min(360px, 100%); aspect-ratio: 1 / 1.3; padding: 32px 30px;
  background: var(--surface); border-radius: 14px; box-shadow: 0 24px 60px rgba(22, 35, 63, .14);
  transform: rotate(-2.5deg);
}
.paper-head { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); flex: none; }
.paper-head > div:last-child { flex: 1; }
.line { height: 9px; border-radius: 6px; background: #e9ecf3; margin-bottom: 12px; }
.line.dark { background: var(--ink); height: 12px; }
.line.mark { background: linear-gradient(90deg, #e9ecf3 0 30%, #ffd8cc 30% 100%); }
.w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; } .w75 { width: 75%; }
.w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }
.paper-section { height: 2px; background: var(--line); margin: 24px 0; }
.note {
  position: absolute; font-size: .82rem; font-weight: 650; padding: 7px 12px; border-radius: 10px;
  box-shadow: var(--shadow); white-space: nowrap;
}
.note-1 { right: -34px; top: 30%; background: var(--mint-soft); color: var(--mint); transform: rotate(3deg); }
.note-2 { left: -40px; bottom: 26%; background: var(--accent-soft); color: var(--accent-hover); transform: rotate(-3deg); }
.stamp {
  position: absolute; right: 22px; bottom: 22px; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; line-height: 1;
  border: 3px solid var(--accent); color: var(--accent); font-family: var(--font-display);
  font-weight: 800; font-size: 1.35rem; transform: rotate(-14deg);
}
.stamp span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; margin-top: 3px; }

/* ───────── Sektioner ───────── */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); }

/* Ydelser */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
}
.card p { color: var(--ink-soft); }
.card-featured { border: 2px solid var(--accent); }
.badge {
  position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff;
  font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; font-size: .97rem; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--mint); border-bottom: 2.5px solid var(--mint); transform: rotate(-45deg);
}
.price { font-size: 1.3rem; font-weight: 700; color: var(--ink) !important; margin-top: auto; }
.card .btn { align-self: flex-start; }

/* Trin */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 32px 28px; position: relative; }
.steps p { color: var(--ink-soft); margin: 0; }
.step-no {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 750; font-size: 1.15rem; margin-bottom: 18px;
}

/* Om mig */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about-photo { position: relative; }
.about-photo::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: 28px;
  border: 3px solid var(--accent); opacity: .5;
}
.about-photo img, .photo-placeholder { position: relative; border-radius: 28px; aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.photo-placeholder {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--tint), #dfe6f4);
}
.photo-placeholder span { font-family: var(--font-display); font-size: 7rem; font-weight: 800; color: rgba(22, 35, 63, .15); }
.about-text p { color: var(--ink-soft); }
.about-text .lead { color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts li { border-top: 3px solid var(--accent); padding-top: 12px; }
.facts strong { display: block; font-size: 1.5rem; font-family: var(--font-display); }
.facts span { font-size: .92rem; color: var(--muted); }

/* ───────── Formularer ───────── */
.forms { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.form-card { background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.form-card > p { color: var(--ink-soft); margin-bottom: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
label, legend { font-weight: 600; font-size: .95rem; }
legend { margin-bottom: 6px; padding: 0; }
.req { color: var(--accent); }
.optional { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7em .9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(22, 35, 63, .08); }
input::placeholder, textarea::placeholder { color: #9aa2b6; }
.invalid { border-color: var(--accent) !important; background: #fff8f6 !important; }

input[type="file"] {
  font: inherit; font-size: .9rem; width: 100%; padding: 14px; border: 1.5px dashed #c5ccdb; border-radius: var(--radius-sm);
  background: var(--bg); cursor: pointer; color: var(--ink-soft);
}
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: 12px; padding: .45em 1em; border-radius: 999px;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer;
}
.file-field[hidden] { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; font-weight: 550; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: inline-block; padding: .5em 1.1em; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--bg); cursor: pointer; transition: all .15s;
}
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .93rem; color: var(--ink-soft); margin: 6px 0 22px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.error { color: var(--accent-hover); }
.form-status.success { color: var(--mint); }
.form-success {
  text-align: center; padding: 24px 0;
}
.form-success .success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--mint-soft); color: var(--mint);
  display: grid; place-items: center; margin: 0 auto 16px;
}
.form-success .success-icon svg { width: 32px; height: 32px; }
.form-success p { color: var(--ink-soft); }

/* ───────── FAQ ───────── */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 24px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 8px; }

/* ───────── Footer ───────── */
.site-footer { background: var(--ink); color: #c9d0e0; padding: 56px 0 40px; font-size: .95rem; }
.site-footer a:not(.logo) { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .small { font-size: .85rem; color: #8e98b3; }

/* ───────── Persondatapolitik ───────── */
.policy { padding: 56px 0 96px; }
.policy h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.policy h2 { font-size: 1.4rem; margin-top: 2.2em; }
.policy p, .policy li { color: var(--ink-soft); }
.policy li { margin-bottom: .4em; }
.policy .meta { color: var(--muted); font-size: .95rem; }
.policy .info-box { background: var(--tint); border-radius: var(--radius-sm); padding: 20px 24px; margin: 24px 0; }
.policy .info-box p { margin: 0; color: var(--ink); }
.policy table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .97rem; }
.policy th, .policy td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy th { color: var(--ink); background: var(--tint); }
.policy td { color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }

/* ───────── Mobil og tablet ───────── */
@media (max-width: 960px) {
  .hero-inner, .about { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; max-width: 300px; margin: 0 auto; }
  .note-1 { right: -16px; } .note-2 { left: -16px; }
  .cards, .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .forms { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .about-photo { max-width: 340px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  }
  .menu-bar, .menu-bar::before, .menu-bar::after {
    display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s;
  }
  .menu-bar { position: relative; }
  .menu-bar::before, .menu-bar::after { content: ""; position: absolute; left: 0; }
  .menu-bar::before { top: -7px; } .menu-bar::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-bar { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-bar::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(22, 35, 63, .08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 10px 4px; }
  .nav .btn { margin-top: 6px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .field-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .note { font-size: .74rem; }
  .note-2 { display: none; }
}

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