/* ==========================================================================
   Ulteh.dk – Global stylesheet (single file)
   Design system: midnight-navy foundation, gold CTA accent, mint success accent,
   light editorial content surfaces. System fonts only.
   ========================================================================== */

:root {
  --bg:        #0f1826;
  --bg-2:      #16233a;
  --bg-3:      #1e3050;
  --line-dark: rgba(255,255,255,.10);

  --surface:   #ffffff;
  --surface-2: #f4f6fb;
  --surface-3: #eef1f8;

  --ink:       #14203a;
  --ink-soft:  #46536f;
  --ink-mute:  #6b7690;
  --line:      #e2e7f1;

  --gold:      #f4b942;
  --gold-deep: #d99a1e;
  --mint:      #2fbd8b;
  --mint-soft: #d6f4e8;
  --danger:    #c8503b;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,24,38,.06), 0 2px 8px rgba(15,24,38,.05);
  --shadow-md: 0 8px 24px rgba(15,24,38,.10);
  --shadow-lg: 0 18px 48px rgba(15,24,38,.16);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface-2);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--bg-3); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

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

::selection { background: var(--gold); color: var(--bg); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--bg); padding: 12px 18px; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 800; font-size: .95rem; letter-spacing: .04em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn-primary { background: var(--gold); color: #3a2a04; box-shadow: 0 6px 18px rgba(244,185,66,.35); }
.btn-primary:hover { background: var(--gold-deep); color: #2a1f04; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,24,38,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: #fff; font-weight: 800; letter-spacing: .02em; flex-shrink: 0;
}
.brand .brand-mark {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  object-fit: contain; display: block;
}
.foot-mark { display: inline-block; vertical-align: -6px; margin-right: 8px; }
.brand b { color: var(--gold); }
.brand small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .18em; color: rgba(255,255,255,.6); text-transform: uppercase; }
.brand .brand-txt { line-height: 1.05; font-size: 1.02rem; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255,255,255,.82); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 10px 14px; border-radius: 8px; transition: color .15s ease, background-color .15s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-links a.cta { color: #3a2a04; background: var(--gold); }
.nav-links a.cta:hover { background: var(--gold-deep); }

.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(255,255,255,.25);
  color: #fff; width: 46px; height: 42px; border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line-dark);
    padding: 12px 16px 18px; box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .25s ease, opacity .2s ease, visibility .2s ease;
  }
  .nav-links.open { max-height: 480px; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 12px; font-size: 1rem; }
  .nav-links a.cta { text-align: center; margin-top: 6px; }
}

/* ---------- Front page hero (uses .page-hero.split.hero-home) ---------- */
.page-hero.hero-home h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.page-hero h1 .u { color: var(--gold); }
.ph-media { margin: 0; }
.ph-cap { margin: 12px 2px 0; font-size: .82rem; color: rgba(255,255,255,.55); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }

h1 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0 0 18px; letter-spacing: -.01em; }
/* front hero h1 sizing handled by .page-hero.hero-home */

.lead { font-size: 1.08rem; color: rgba(255,255,255,.86); max-width: 60ch; margin: 0 0 22px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.trust-row li {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: #fff;
}
.trust-row li svg { width: 15px; height: 15px; color: var(--mint); flex-shrink: 0; }
.trust-row li.age { color: var(--gold); border-color: rgba(244,185,66,.4); }

/* (front page hero image uses .page-hero-img within .page-hero.split) */

/* trust / hub / answer page hero (split = text left, image right) */
.page-hero { background: var(--bg); color: #fff; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 320px at 82% -20%, rgba(244,185,66,.14), transparent 60%),
    radial-gradient(520px 300px at 4% 120%, rgba(47,189,139,.12), transparent 60%);
}
.page-hero .wrap { position: relative; padding: 44px 20px 48px; }
.page-hero.split .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.page-hero .lead { color: rgba(255,255,255,.85); }
.page-hero-img {
  margin: 0; border-radius: var(--radius); overflow: hidden; max-height: 440px;
  border: 1px solid var(--line-dark); box-shadow: var(--shadow-lg);
}
.page-hero-img img { width: 100%; height: auto; max-height: 440px; object-fit: cover; object-position: center 35%; }
.page-hero .direct-answer { background: rgba(255,255,255,.97); color: var(--ink); border: none; box-shadow: var(--shadow-md); margin: 18px 0 0; }
.page-hero .ph-text .btn { margin-top: 18px; }
@media (max-width: 860px) {
  .page-hero.split .wrap { grid-template-columns: 1fr; gap: 26px; }
  .page-hero-img, .page-hero-img img { max-height: 300px; }
}

/* ---------- Sections on light ---------- */
.section { padding: 56px 0; }
.section.tight { padding: 40px 0; }
.section-head { margin-bottom: 28px; }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.2; margin: 0 0 12px; color: var(--ink); }
h3 { font-family: var(--serif); font-weight: 700; font-size: 1.28rem; margin: 28px 0 10px; color: var(--ink); }
.muted { color: var(--ink-mute); }

/* ---------- Offers ---------- */
.offers { background: var(--surface-2); }
.offers .wrap { padding: 52px 20px 60px; }
.verify-line {
  display: inline-flex; align-items: center; gap: 9px; margin: 14px 0 0;
  background: var(--mint-soft); color: #146b4d; font-weight: 700; font-size: .9rem;
  padding: 8px 15px; border-radius: 999px;
}
.verify-line svg { width: 16px; height: 16px; }

.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
@media (max-width: 900px) { .offer-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

.offer-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; position: relative;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d5deed; }
.offer-card.top { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow-md); }

.offer-top { display: flex; align-items: center; gap: 14px; padding: 18px 18px 12px; }
.rank {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center;
  font-weight: 900; font-size: 1.15rem; background: var(--bg-2); color: #fff;
}
.offer-card.top .rank { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #2a1f04; }
.offer-logo {
  flex: 1; height: 52px; display: flex; align-items: center; justify-content: flex-end;
}
.offer-logo img { max-height: 52px; width: auto; object-fit: contain; }

.ribbon {
  position: absolute; top: 0; right: 0; background: var(--gold); color: #3a2a04;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-bottom-left-radius: 10px;
}
.offer-card.top { padding-top: 4px; }

.offer-name { padding: 4px 18px 0; font-weight: 800; font-size: 1.12rem; color: var(--ink); }
.offer-headline { padding: 6px 18px 4px; font-size: 1rem; color: var(--ink-soft); }
.licence {
  display: inline-flex; align-items: center; gap: 6px; margin: 8px 18px 0;
  background: var(--mint-soft); color: #146b4d; font-weight: 700; font-size: .8rem;
  padding: 4px 11px; border-radius: 999px;
}
.licence svg { width: 14px; height: 14px; }

.offer-specs { list-style: none; margin: 16px 0 0; padding: 0 18px; }
.offer-specs li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 9px 0; border-top: 1px dashed var(--line); font-size: .92rem;
}
.offer-specs li:first-child { border-top: none; }
.offer-specs .k { color: var(--ink-mute); }
.offer-specs .v { font-weight: 700; color: var(--ink); text-align: right; }
.offer-specs .v.no { color: var(--ink-soft); }
.offer-specs .v.yes { color: var(--gold-deep); }

.offer-foot { margin-top: auto; padding: 16px 18px 20px; }
.offer-note { font-size: .78rem; color: var(--ink-mute); margin: 12px 0 0; line-height: 1.5; }

/* ---------- Article / editorial ---------- */
.article { background: var(--surface); }
.prose { max-width: 760px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 1.3em; }
.prose li { margin: 0 0 8px; }
.prose h2 { margin-top: 42px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose a {
  color: var(--bg-3); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(30,48,80,.28); text-underline-offset: 3px;
  padding: 0 2px; margin: 0 -2px; border-radius: 3px;
  transition: color .15s ease, text-decoration-color .15s ease, background-color .15s ease;
}
.prose a:hover, .prose a:focus-visible,
.callout a:hover, .callout a:focus-visible,
.direct-answer a:hover, .direct-answer a:focus-visible {
  color: var(--gold-deep); text-decoration-color: var(--gold); background-color: rgba(244,185,66,.14);
}
.prose strong { color: var(--ink); }

.callout {
  border-left: 4px solid var(--gold); background: var(--surface-3);
  padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 24px 0; font-size: .95rem;
}
.callout.mint { border-left-color: var(--mint); background: var(--mint-soft); color: #124d38; }

.note-legal { font-size: .85rem; color: var(--ink-mute); background: var(--surface-3); border-radius: 10px; padding: 14px 18px; margin: 24px 0; }

/* direct answer + read more cta */
.direct-answer {
  background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; font-size: 1.08rem; color: var(--ink); margin-bottom: 22px;
}
.direct-answer p { margin: 0; }
#hele-svaret { scroll-margin-top: 88px; }
.answer-section { scroll-margin-top: 88px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { background: var(--bg-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; margin: 0; padding: 12px 0; font-size: .84rem; }
.crumbs a { color: rgba(255,255,255,.7); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs li[aria-current] { color: #fff; font-weight: 600; }
.crumbs .sep { color: rgba(255,255,255,.35); }

/* ---------- Author box ---------- */
.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 40px 0; max-width: 760px;
}
.author-box img {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.author-role { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 3px; }
.author-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; }
.author-box p { margin: 0 0 10px; font-size: .93rem; color: var(--ink-soft); }
.author-box a { font-weight: 600; }

/* ---------- Guide hub question rows ---------- */
.q-cat { margin-top: 40px; }
.q-cat > h2 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; }
.q-cat .cat-num {
  display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0;
  background: var(--bg-2); color: var(--gold); border-radius: 9px; font-family: var(--sans); font-weight: 800; font-size: .9rem;
}
.q-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.q-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; min-height: 56px; text-decoration: none; color: var(--ink); font-weight: 600;
  border-top: 1px solid var(--line); transition: background-color .15s ease, padding-left .15s ease, color .15s ease;
}
.q-row:first-child { border-top: none; }
.q-row:hover { background: var(--surface-3); padding-left: 26px; color: var(--gold-deep); }
.q-row .chev { flex-shrink: 0; color: var(--ink-mute); transition: transform .15s ease, color .15s ease; }
.q-row:hover .chev { transform: translateX(4px); color: var(--gold-deep); }

/* related questions */
.related { margin: 40px 0 0; max-width: 760px; }
.related h2 { font-size: 1.3rem; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px;
  text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .15s ease, transform .15s ease;
}
.related-list a:hover { border-color: var(--gold); transform: translateX(3px); color: var(--gold-deep); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); color: #fff; border-radius: var(--radius); padding: 30px 28px; margin: 36px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta-band h2 { color: #fff; margin: 0; font-size: 1.4rem; }
.cta-band p { margin: 6px 0 0; color: rgba(255,255,255,.8); font-size: .95rem; }

/* ---------- Contact form ---------- */
.form-grid { max-width: 640px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(244,185,66,.25); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: rgba(255,255,255,.72); margin-top: 60px; }
.site-footer .wrap { padding: 48px 20px 28px; }
.foot-cols { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 36px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr; gap: 28px; } }
.foot-col h3 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 9px; }
.foot-col a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .93rem; }
.foot-col a:hover { color: var(--gold); }
.foot-brand p { font-size: .9rem; line-height: 1.6; margin: 12px 0 0; max-width: 34ch; }
.foot-legal {
  border-top: 1px solid var(--line-dark); margin-top: 34px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.55);
}
.foot-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-badges span, .foot-badges a { background: rgba(255,255,255,.07); border: 1px solid var(--line-dark); padding: 5px 12px; border-radius: 999px; font-weight: 700; color: #fff; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.foot-badges a:hover, .foot-badges a:focus-visible { background: rgba(244,185,66,.15); border-color: var(--gold); color: var(--gold); }
.foot-badges .age { color: var(--gold); border-color: rgba(244,185,66,.4); }

/* ---------- 404 ---------- */
.err-page { background: var(--bg); color: #fff; min-height: 70vh; display: grid; place-items: center; text-align: center; }
.err-page .code { font-family: var(--serif); font-size: clamp(4rem, 16vw, 9rem); color: var(--gold); line-height: 1; margin: 0; }
.err-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.card-lite { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
