/* ============================================================
   SOMMERHUSTJEK — TWILIGHT DESIGN SYSTEM
   ============================================================ */
:root {
  /* --- Palette (BOG-SPEC §1 · Mortens afgørelse #7) -------------------------
     Sitet er LYST: varm sand som grund, granskov til mørke sektioner.
     #07120b = flader · #0f1d11 = tekst. Aldrig ren hvid eller ren sort.     */
  --bg-0: #efe9dc;
  --bg-1: #e7e0d0;
  --paper: #faf5e9;
  --paper-2: #f2ebdc;
  --ink: #0f1d11;
  --ink-flade: #07120b;
  --ink-dark: #050d08;
  --glass: rgba(250, 245, 233, 0.86);
  --glass-soft: rgba(250, 245, 233, 0.66);
  --line: rgba(15, 29, 17, 0.12);
  --line-strong: rgba(15, 29, 17, 0.22);
  --text: #0f1d11;
  --muted: rgba(15, 29, 17, 0.66);
  --faint: rgba(15, 29, 17, 0.45);
  --warm: #8a6236;
  --brass: #c9a06c;
  --warm-soft: rgba(138, 98, 54, 0.12);
  --warm-line: rgba(138, 98, 54, 0.4);
  --green: #3f7d52;
  --green-bg: rgba(63, 125, 82, 0.12);
  --green-line: rgba(63, 125, 82, 0.35);
  --green-glow: 0 0 26px rgba(63, 125, 82, 0.2);
  --amber: #8a6236;
  --red: #a8503f;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --ease-slow: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 14px;
  --nav-h: 72px;
}

/* Mørke sektioner (hero, footer, fremhævede blokke): vend tokens om. */
.paa-moerk,
.hero,
.page-hero,      /* undersidernes hero — ejer, købstjek, skat, velkomstbog */
.gb-hero,        /* gæstebogens hero (egen CSS i templatet) */
.wizard-summary, /* mørkt opsummeringsfelt i wizarden */
footer {
  --bg-0: #07120b;
  --bg-1: #050d08;
  --paper: #07120b;
  --paper-2: #0f1d11;
  /* Kort over hero-fotoet er UIGENNEMSIGTIGE — ellers bliver de grumsede. */
  --glass: #07120b;
  --glass-soft: #0a1710;
  --line: rgba(239, 233, 220, 0.14);
  --line-strong: rgba(239, 233, 220, 0.26);
  --text: #efe9dc;
  --muted: rgba(239, 233, 220, 0.72);
  --faint: rgba(239, 233, 220, 0.48);
  --warm: #c9a06c;
  --warm-soft: rgba(201, 160, 108, 0.14);
  --warm-line: rgba(201, 160, 108, 0.42);
  color: var(--text);
  background: linear-gradient(180deg, #0a1710 0%, #050d08 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  /* Solid — den gamle gradient mod granskov gjorde nederste halvdel af
     alle LYSE sider grumset og teksten ulæselig. Footeren er selv mørk. */
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient light spill — som lyset fra store glaspartier i klitterne */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(55% 40% at 78% 12%, var(--warm-soft), transparent 70%),
    radial-gradient(40% 32% at 8% 78%, rgba(201, 160, 108, 0.07), transparent 70%);
  animation: ambientBreathe 11s ease-in-out infinite alternate;
}
@keyframes ambientBreathe {
  from { opacity: 0.75; }
  to   { opacity: 1; }
}

::selection { background: rgba(201, 160, 108, 0.32); color: #fff; }

button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.shell { width: min(1200px, calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 1; }

/* ---------- Typographic utilities ---------- */
.eyebrow {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--warm);
}
.field-label, .tiny-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
h2.section-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
}
h2.section-title em, h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--warm);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.section-head { max-width: 640px; margin-bottom: clamp(26px, 4.5vw, 52px); }
.section-head p { color: var(--muted); font-size: 1.02rem; margin: 18px 0 0; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }

/* ---------- Glass primitive ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  border-radius: var(--radius);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  /* Over hero er baggrunden mørk -> lys tekst. Når man scroller ned på den
     lyse sand-grund, skifter .scrolled til mørk tekst på elfenben. */
  --text: #efe9dc;
  --muted: rgba(239, 233, 220, 0.72);
  --warm: #c9a06c;
  color: var(--text);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background 0.6s var(--ease-slow), border-color 0.6s var(--ease-slow), backdrop-filter 0.6s var(--ease-slow);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  --text: #0f1d11;
  --muted: rgba(15, 29, 17, 0.66);
  --warm: #8a6236;
  color: var(--text);
  background: rgba(250, 245, 233, 0.86);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; letter-spacing: 0.02em; font-size: 0.98rem;
  text-decoration: none; white-space: nowrap;
}
/* To-tone ordmærke som i FeriehusKlar-logoet: "Feriehus" i tekstfarve, "Klar" i guld. */
.brand b { color: var(--warm); font-weight: inherit; }
/* Line-art hus-mærke som i FeriehusKlar-logoet (hus-outline + lille skorsten). */
.brand .mark {
  width: 30px; height: 30px; flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23e2a85c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 27V13.5L16 6l9 7.5V27Z'/%3E%3Cpath d='M21 10V6.4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 999px;
  transition: color 0.45s var(--ease-slow), background 0.45s var(--ease-slow);
}
.nav-links a:hover { color: var(--text); background: rgba(239, 233, 220, 0.05); }
.nav-cta {
  text-decoration: none;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  color: #16100a;
  background: linear-gradient(120deg, #f4d9ae, var(--warm));
  padding: 12px 24px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(201, 160, 108, 0.22);
  transition: transform 0.45s var(--ease-slow), box-shadow 0.45s var(--ease-slow);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(201, 160, 108, 0.32); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* 2.5D parallax-lag: baggrund flyttes langsommere end indholdet af GSAP */
.hero-media {
  position: absolute;
  inset: -12% 0 -12% 0;
  z-index: -3;
  will-change: transform;
}
.hero-media picture { position: absolute; inset: 0; display: block; }
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 48%;
  animation: kenburns 38s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.05) translateX(0); }
  to   { transform: scale(1.16) translateX(-1.6%); }
}

.hero-veil {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    /* jævnt lag der toner hele billedet mod husets mørke tone */
    linear-gradient(rgba(5, 13, 8, 0.55), rgba(5, 13, 8, 0.55)),
    radial-gradient(46% 40% at 66% 52%, var(--warm-soft), transparent 72%),
    linear-gradient(180deg, rgba(5, 13, 8, 0.30) 0%, rgba(5, 13, 8, 0.10) 34%, rgba(5, 13, 8, 0.78) 78%, var(--bg-0) 100%),
    linear-gradient(100deg, rgba(5, 13, 8, 0.62) 0%, rgba(5, 13, 8, 0.18) 55%, transparent 100%);
}

/* Havgus der driver langsomt gennem billedet */
.mist {
  position: absolute; inset: -20%; z-index: -2; pointer-events: none;
  filter: blur(46px);
}
.mist.m1 {
  background:
    radial-gradient(34% 22% at 22% 64%, rgba(173, 197, 214, 0.10), transparent 70%),
    radial-gradient(28% 18% at 74% 36%, rgba(173, 197, 214, 0.07), transparent 70%);
  animation: drift1 64s ease-in-out infinite alternate;
}
.mist.m2 {
  background:
    radial-gradient(30% 18% at 60% 72%, rgba(200, 214, 226, 0.07), transparent 70%),
    radial-gradient(24% 16% at 30% 30%, rgba(200, 214, 226, 0.05), transparent 70%);
  animation: drift2 88s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate3d(-3%, 1%, 0); } to { transform: translate3d(4%, -2%, 0); } }
@keyframes drift2 { from { transform: translate3d(3%, -1%, 0); } to { transform: translate3d(-4%, 2%, 0); } }

/* Filmkorn */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grainShift 1.4s steps(6) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -2%); }
  100% { transform: translate(3%, 2%); }
}

.hero-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 56px) 0 110px;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 14px; }
.hero-eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--warm-line); }

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(2.9rem, 7.4vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: 0.002em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero h1 .line { display: block; }

.hero-sub {
  margin: 26px 0 0;
  max-width: 470px;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 300;
}

/* ---------- Søgepanel ---------- */
.search-panel {
  margin-top: 44px;
  max-width: 760px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1.5fr 1.2fr auto;
  gap: 10px;
  box-shadow: 0 34px 90px rgba(5, 13, 8, 0.55);
}
.field {
  position: relative;
  padding: 12px 16px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(239, 233, 220, 0.025);
  transition: border-color 0.7s var(--ease-slow), background 0.7s var(--ease-slow), box-shadow 0.7s var(--ease-slow);
}
.field:focus-within {
  border-color: var(--warm-line);
  background: rgba(201, 160, 108, 0.05);
  box-shadow: 0 0 0 4px rgba(201, 160, 108, 0.08), 0 0 38px rgba(201, 160, 108, 0.10);
}
.field.has-error {
  border-color: rgba(239, 141, 126, 0.62);
  background: rgba(239, 141, 126, 0.07);
  box-shadow: 0 0 0 4px rgba(239, 141, 126, 0.1), 0 0 36px rgba(239, 141, 126, 0.14);
}
.field .field-label { margin-bottom: 5px; }
.field input[type="search"],
.field input[type="text"],
.field select {
  width: 100%;
  border: 0; outline: 0; background: transparent;
  font-size: 0.95rem; font-weight: 400;
  color: var(--text);
  padding: 0;
}
.field select { cursor: pointer; appearance: none; }
.field select option { color: #121820; background: #f6efe4; }
.field input::placeholder { color: var(--faint); font-weight: 300; }
.field-error {
  margin: 8px 0 0;
  color: var(--red);
  font-size: 0.73rem;
  line-height: 1.45;
  font-weight: 500;
}
.field-error[hidden] { display: none; }

/* Autocomplete */
.suggest {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  z-index: 30;
  list-style: none; margin: 0; padding: 6px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  box-shadow: 0 28px 70px rgba(5, 13, 8, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.4s var(--ease-slow), transform 0.4s var(--ease-slow), visibility 0.4s;
}
.suggest.open { opacity: 1; visibility: visible; transform: translateY(0); }
.suggest li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem; font-weight: 400;
  cursor: pointer;
  transition: background 0.3s var(--ease-slow);
}
.suggest li:hover { background: rgba(201, 160, 108, 0.09); }
.suggest li small { color: var(--faint); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* Custom dropdowns */
.select-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 0; background: transparent; padding: 0;
  font-size: 0.95rem; font-weight: 400;
  cursor: pointer; text-align: left;
}
.select-btn svg { flex: 0 0 auto; transition: transform 0.5s var(--ease-slow); opacity: 0.55; }
.select-field.open .select-btn svg { transform: rotate(180deg); }
.select-list {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  z-index: 30;
  list-style: none; margin: 0; padding: 6px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  box-shadow: 0 28px 70px rgba(5, 13, 8, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.45s var(--ease-slow), transform 0.45s var(--ease-slow), visibility 0.45s;
}
.select-field.open .select-list { opacity: 1; visibility: visible; transform: translateY(0); }
.select-list li {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem; font-weight: 400;
  cursor: pointer;
  transition: background 0.3s var(--ease-slow), color 0.3s var(--ease-slow);
}
.select-list li:hover { background: rgba(201, 160, 108, 0.09); }
.select-list li.selected { color: var(--warm); }

.search-btn {
  align-self: stretch;
  border: 0; cursor: pointer;
  padding: 0 30px;
  border-radius: 10px;
  font-weight: 600; font-size: 0.84rem; letter-spacing: 0.08em;
  color: #16100a;
  background: linear-gradient(120deg, #f4d9ae, var(--warm));
  box-shadow: 0 14px 36px rgba(201, 160, 108, 0.22);
  transition: transform 0.45s var(--ease-slow), box-shadow 0.45s var(--ease-slow);
}
.search-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(201, 160, 108, 0.32); }

.trust-row {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  color: var(--faint);
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--warm); opacity: 0.7;
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--faint);
  font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase;
}
.scroll-cue i {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--warm), transparent);
  animation: cueDrop 2.4s var(--ease-slow) infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   SEKTIONER
   ============================================================ */
section.block { padding: clamp(36px, 5vw, 72px) 0; position: relative; }

/* ---------- Udvalgte fristeder ---------- */
.houses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}
.house {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--glass-soft);
  display: flex; flex-direction: column;
  transition: border-color 0.7s var(--ease-slow), transform 0.7s var(--ease-slow);
}
.house:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.house:nth-child(2) { transform: translateY(34px); }
.house:nth-child(2):hover { transform: translateY(30px); }
.house-img {
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  position: relative;
}
.house-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) brightness(0.88);
  will-change: transform;
}
.house-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 13, 8, 0.05) 40%, rgba(5, 13, 8, 0.72) 100%);
}
.house-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: #efe9dc;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(5, 13, 8, 0.55);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.house-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.house-body h3 { font-size: 1.45rem; line-height: 1.2; }
.house-body .loc { color: var(--muted); font-size: 0.82rem; margin-top: 4px; font-weight: 400; }
.house-price-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.house-price-row .tiny-label { margin-bottom: 6px; }
.house-price-row strong { font-weight: 500; font-size: 1.06rem; letter-spacing: 0.01em; }
.drop-badge {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-line);
  box-shadow: var(--green-glow);
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.drop-badge.neutral {
  color: var(--amber);
  background: rgba(226, 192, 116, 0.1);
  border-color: rgba(226, 192, 116, 0.3);
  box-shadow: 0 0 22px rgba(226, 192, 116, 0.15);
}
.house-check {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: color 0.5s var(--ease-slow), border-color 0.5s var(--ease-slow), background 0.5s var(--ease-slow);
}
.house-check:hover { color: var(--warm); border-color: var(--warm-line); background: rgba(201, 160, 108, 0.06); }

/* ---------- Markedet: datakort ---------- */
.data-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
  align-items: stretch;
}
.data-card {
  padding: 28px 26px 26px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 26px 70px rgba(5, 13, 8, 0.4);
}
.data-card .tiny-label { color: var(--warm); }
.data-card h3 { font-size: 1.5rem; line-height: 1.2; }
.data-card .desc { color: var(--muted); font-size: 0.86rem; margin: 0; font-weight: 300; }
.data-card .foot { color: var(--faint); font-size: 0.7rem; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }

.big-figure {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--green);
  text-shadow: 0 0 34px rgba(64, 180, 112, 0.35);
}
.big-figure.warm-fig { color: var(--warm); text-shadow: 0 0 34px rgba(201, 160, 108, 0.3); }
.big-figure small { font-size: 0.34em; font-family: var(--sans); font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-shadow: none; }

/* sparkline */
.spark-toggle { display: flex; gap: 6px; flex-wrap: wrap; }
.spark-toggle button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: all 0.45s var(--ease-slow);
}
.spark-toggle button.active {
  color: var(--warm); border-color: var(--warm-line); background: rgba(201, 160, 108, 0.07);
}
.spark-wrap { position: relative; }
.spark-wrap svg { width: 100%; height: auto; display: block; }
.spark-value {
  position: absolute; right: 0; top: 0;
  text-align: right;
}
.spark-value strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--warm); display: block; line-height: 1; }
.spark-value span { font-size: 0.64rem; color: var(--faint); letter-spacing: 0.18em; text-transform: uppercase; }

/* nedslag-bjælker */
.bars { display: flex; flex-direction: column; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 52px; align-items: center; gap: 12px; font-size: 0.8rem; }
.bar-row .name { color: var(--muted); font-weight: 400; }
.bar-track { height: 5px; border-radius: 99px; background: rgba(239, 233, 220, 0.05); overflow: hidden; }
.bar-fill {
  height: 100%; width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(64, 180, 112, 0.5), var(--green));
  box-shadow: 0 0 14px rgba(64, 180, 112, 0.4);
  transition: width 1.6s var(--ease-slow);
}
.bar-row .val { text-align: right; color: var(--green); font-weight: 600; font-size: 0.78rem; }

/* skjulte omkostninger */
.cost-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cost-list li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 0.86rem; font-weight: 400;
}
.cost-list .dots { flex: 1; border-bottom: 1px dotted rgba(239, 233, 220, 0.14); transform: translateY(-4px); }
.cost-list .amt { color: var(--text); font-weight: 500; white-space: nowrap; }
.cost-list .nm { color: var(--muted); }
.cost-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--muted);
}
.cost-total strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--warm); }

/* ============================================================
   GUIDEN (widget før beregneren)
   ============================================================ */
.wizard {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 480px;
  overflow: hidden;
  box-shadow: 0 40px 110px rgba(5, 13, 8, 0.55);
}
.wizard-side {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  background: rgba(239, 233, 220, 0.015);
  display: flex; flex-direction: column; gap: 28px;
}
.wizard-side h3 { font-size: 1.65rem; line-height: 1.25; }
.wizard-side > p { color: var(--muted); font-size: 0.84rem; margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.steps li {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 0.8rem; color: var(--faint); font-weight: 500;
  cursor: default;
  transition: color 0.45s var(--ease-slow), background 0.45s var(--ease-slow);
}
.steps li .n {
  font-size: 0.62rem; letter-spacing: 0.1em;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: all 0.45s var(--ease-slow);
  flex: 0 0 auto;
}
.steps li.done { color: var(--muted); cursor: pointer; }
.steps li.done .n { border-color: var(--green-line); color: var(--green); }
.steps li.current { color: var(--text); background: rgba(201, 160, 108, 0.06); }
.steps li.current .n { border-color: var(--warm-line); color: var(--warm); box-shadow: 0 0 16px rgba(201, 160, 108, 0.2); }
.steps li.auto .t::after {
  content: "fundet";
  margin-left: 8px;
  color: var(--green);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wizard-summary {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  /* Uigennemsigtig granskov — den halvgennemsigtige udgave blev grumset grå
     oven på den lyse side. */
  background: linear-gradient(170deg, #14251a, #0f1d11);
}
.wizard-summary .tiny-label { margin-bottom: 8px; color: var(--warm); }
.ramme-rows { display: grid; gap: 6px; margin: 4px 0 10px; }
.ramme-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; }
.ramme-rows span { color: var(--faint); }
.ramme-rows b { font-weight: 600; text-align: right; }
.wizard-summary strong { display: block; font-weight: 500; font-size: 0.92rem; line-height: 1.45; }
.wizard-summary p { margin: 8px 0 0; font-size: 0.74rem; color: var(--muted); line-height: 1.5; }
.wizard-summary p.warn { color: var(--amber); }

.wizard-main { padding: 44px clamp(26px, 4vw, 56px); display: flex; flex-direction: column; }
.wstep { display: none; flex-direction: column; gap: 26px; flex: 1; }
.wstep.active { display: flex; animation: stepIn 0.7s var(--ease-slow) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wstep .q-label { color: var(--warm); }
.wstep h4 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2; margin: 0;
}
.wstep .hint { color: var(--muted); font-size: 0.86rem; margin: -12px 0 0; max-width: 52ch; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line);
  background: rgba(239, 233, 220, 0.02);
  color: var(--text);
  font-size: 0.9rem; font-weight: 400;
  padding: 14px 22px;
  border-radius: 12px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  transition: border-color 0.55s var(--ease-slow), background 0.55s var(--ease-slow), box-shadow 0.55s var(--ease-slow), transform 0.4s var(--ease-slow);
}
.chip small { font-size: 0.68rem; color: var(--faint); font-weight: 500; letter-spacing: 0.05em; }
.chip:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.chip.active {
  border-color: var(--warm-line);
  background: rgba(201, 160, 108, 0.09);
  box-shadow: 0 0 0 4px rgba(201, 160, 108, 0.06), 0 0 30px rgba(201, 160, 108, 0.12);
}
.chip.active small { color: var(--warm); }
.chips.compact { gap: 8px; margin-top: 8px; }
.chips.compact .chip {
  padding: 10px 14px;
  min-width: 54px;
  align-items: center;
}
.feature-chips { margin-top: 8px; }
.feature-chips .chip.active {
  border-color: var(--green-line);
  background: rgba(64, 180, 112, 0.08);
  box-shadow: var(--green-glow);
}
.profile-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  max-width: 680px;
}

.price-input-wrap { max-width: 360px; }
.price-input-wrap .field { padding: 14px 18px; }
.price-input-wrap input { font-size: 1.25rem !important; font-weight: 500 !important; font-family: var(--serif); letter-spacing: 0.02em; }
.price-readout { margin-top: 10px; font-size: 0.8rem; color: var(--warm); font-weight: 500; }
.listing-facts {
  max-width: 620px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.listing-facts[hidden] { display: none; }
.listing-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 12px;
}
.listing-facts-grid div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.listing-facts-grid b {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}
.missing-fields {
  max-width: 520px;
  padding: 14px 16px;
  border: 1px solid rgba(226, 192, 116, 0.25);
  border-radius: 10px;
  background: rgba(226, 192, 116, 0.05);
}
.missing-fields[hidden] { display: none; }
.missing-fields .tiny-label { color: var(--amber); }
.missing-fields p {
  margin: 7px 0 0;
  color: #cdb98a;
  font-size: 0.78rem;
  line-height: 1.55;
}

.rule-note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid rgba(226, 192, 116, 0.25);
  border-radius: 10px;
  background: rgba(226, 192, 116, 0.05);
  font-size: 0.78rem; color: #cdb98a; line-height: 1.55;
  max-width: 56ch;
}
.rule-note::before { content: "§"; font-family: var(--serif); font-size: 1.1rem; color: var(--amber); line-height: 1.2; }

/* upload + scan */
.upload-zone {
  display: block;
  border: 1px dashed rgba(239, 233, 220, 0.16);
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  cursor: pointer;
  max-width: 480px;
  background: rgba(239, 233, 220, 0.015);
  transition: border-color 0.55s var(--ease-slow), background 0.55s var(--ease-slow);
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--warm-line); background: rgba(201, 160, 108, 0.05); }
.upload-zone input { display: none; }
.upload-zone .uz-title { font-weight: 500; font-size: 0.92rem; }
.upload-zone .uz-sub { color: var(--faint); font-size: 0.74rem; margin-top: 6px; }
.scan {
  max-width: 480px;
  display: none;
  flex-direction: column; gap: 10px;
}
.scan.on { display: flex; }
.scan-track { height: 4px; border-radius: 99px; background: rgba(239, 233, 220, 0.06); overflow: hidden; }
.scan-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--warm), #f4d9ae);
  box-shadow: 0 0 16px rgba(201, 160, 108, 0.5);
  border-radius: 99px;
  transition: width 0.5s linear;
}
.scan-status { font-size: 0.78rem; color: var(--muted); min-height: 1.4em; }
.scan-status.ok { color: var(--green); }

.wizard-nav { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 30px; }
.btn-back {
  border: 1px solid var(--line); background: transparent;
  color: var(--muted);
  width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center;
  transition: all 0.45s var(--ease-slow);
}
.btn-back:hover { color: var(--text); border-color: var(--line-strong); }
.btn-back[disabled] { opacity: 0.3; pointer-events: none; }
.btn-next, .btn-cta {
  border: 0; cursor: pointer;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.84rem; letter-spacing: 0.07em;
  color: #16100a;
  background: linear-gradient(120deg, #f4d9ae, var(--warm));
  box-shadow: 0 14px 36px rgba(201, 160, 108, 0.22);
  transition: transform 0.45s var(--ease-slow), box-shadow 0.45s var(--ease-slow);
}
.btn-next:hover, .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(201, 160, 108, 0.32); }
.btn-ghost {
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); cursor: pointer;
  padding: 15px 24px; border-radius: 999px;
  font-weight: 500; font-size: 0.8rem; letter-spacing: 0.05em;
  transition: all 0.45s var(--ease-slow);
  text-decoration: none; display: inline-block;
}
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); }

/* ============================================================
   RESULTAT-DASHBOARD
   ============================================================ */
#resultat { display: none; }
#resultat.visible { display: block; }

.verdict {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.verdict .v-label { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; line-height: 1.15; }
.verdict .v-sub { color: var(--muted); font-size: 0.86rem; margin-top: 6px; max-width: 56ch; }
.verdict .v-pill {
  font-size: 1rem; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; white-space: nowrap;
}
.verdict.good { border-color: var(--green-line); box-shadow: inset 0 0 80px rgba(64, 180, 112, 0.05), var(--green-glow); }
.verdict.good .v-label { color: var(--green); }
.verdict.good .v-pill { color: var(--green); background: var(--green-bg); border: 1px solid var(--green-line); }
.verdict.warn { border-color: rgba(226, 192, 116, 0.35); box-shadow: inset 0 0 80px rgba(226, 192, 116, 0.04), 0 0 26px rgba(226, 192, 116, 0.12); }
.verdict.warn .v-label { color: var(--amber); }
.verdict.warn .v-pill { color: var(--amber); background: rgba(226, 192, 116, 0.1); border: 1px solid rgba(226, 192, 116, 0.3); }
.verdict.bad { border-color: rgba(239, 141, 126, 0.35); box-shadow: inset 0 0 80px rgba(239, 141, 126, 0.04), 0 0 26px rgba(239, 141, 126, 0.1); }
.verdict.bad .v-label { color: var(--red); }
.verdict.bad .v-pill { color: var(--red); background: rgba(239, 141, 126, 0.09); border: 1px solid rgba(239, 141, 126, 0.3); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.metric {
  padding: 20px 20px 18px;
}
.metric .tiny-label { margin-bottom: 10px; }
.metric .m-value { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; line-height: 1.1; }
.metric .m-sub { color: var(--faint); font-size: 0.7rem; margin-top: 7px; }
.m-value.pos { color: var(--green); }
.m-value.neg { color: var(--red); }

.result-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  align-items: start;
}
.result-panel { padding: 26px 28px; }
.result-panel h3 { font-size: 1.3rem; margin-bottom: 18px; }

table.scenarios { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.scenarios th {
  text-align: left;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint);
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--line);
}
table.scenarios td { padding: 13px 10px; border-bottom: 1px solid var(--line); font-weight: 400; }
table.scenarios tr:last-child td { border-bottom: 0; }
table.scenarios td.pos { color: var(--green); font-weight: 600; }
table.scenarios td.neg { color: var(--red); font-weight: 600; }
table.scenarios td:last-child, table.scenarios th:last-child { text-align: right; }

.insights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.insights li {
  font-size: 0.85rem; color: var(--muted); line-height: 1.55;
  padding-left: 18px; position: relative; font-weight: 300;
}
.insights li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 1px; background: var(--warm);
}
.insights li strong { color: var(--text); font-weight: 500; }

details.tune { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
details.tune summary {
  cursor: pointer; list-style: none;
  padding: 18px 26px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  transition: color 0.4s var(--ease-slow);
}
details.tune summary::-webkit-details-marker { display: none; }
details.tune summary:hover { color: var(--text); }
details.tune summary::after { content: "+"; font-size: 1.2rem; color: var(--warm); font-weight: 300; }
details.tune[open] summary::after { content: "–"; }
.tune-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 4px 26px 26px;
}
.tune-grid .field input { font-size: 0.92rem; font-weight: 500; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ============================================================
   VELKOMSTBOGEN
   ============================================================ */
.book-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(18px, 2.4vw, 30px);
  align-items: stretch;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}
.book-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  min-height: 500px;
  position: relative;
  box-shadow: 0 40px 110px rgba(5, 13, 8, 0.55);
}
/* bogens ryg */
.book-spread::after {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: rgba(5, 13, 8, 0.35);
  box-shadow: 0 0 26px 7px rgba(5, 13, 8, 0.3);
}
.book-page { position: relative; }
.book-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.82);
}
.book-cover::after {
  content: "";
  position: absolute; inset: 0;
  /* Kraftigere bund-gradient: husnavnet stod på et lyst stuefoto og forsvandt. */
  background: linear-gradient(180deg, rgba(5, 13, 8, 0.12) 30%, rgba(5, 13, 8, 0.62) 62%, rgba(5, 13, 8, 0.9) 100%);
}
.cover-text {
  position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 2;
  display: flex; flex-direction: column; gap: 7px;
}
.cover-kicker { font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: #c9a06c; font-weight: 600; }
.cover-name { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 500; line-height: 1.05;
  /* Eksplicit elfenben — på lyse sider arvede navnet mørkt blæk og forsvandt i fotoet. */
  color: #efe9dc; }
.cover-addr { font-size: 0.74rem; color: rgba(239, 233, 220, 0.78); letter-spacing: 0.08em; }
.book-paper {
  background: #f2ecdf;
  color: #241f17;
  padding: 26px 28px 20px;
  display: flex; flex-direction: column;
}
.paper-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.paper-tabs button {
  border: 1px solid rgba(36, 31, 23, 0.2);
  background: transparent;
  color: #6b6354;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 999px; cursor: pointer;
  transition: all 0.4s var(--ease-slow);
}
.paper-tabs button.active { background: #241f17; color: #f2ecdf; border-color: #241f17; }
.paper-sheet { display: none; flex-direction: column; }
.paper-sheet.active { display: flex; animation: stepIn 0.6s var(--ease-slow) both; }
.paper-sheet h5 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 0 0 10px; color: #1d1812; }
.paper-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dotted rgba(36, 31, 23, 0.24);
  font-size: 0.84rem;
}
.paper-row:last-child { border-bottom: 0; }
.paper-row .k { font-weight: 600; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8a7f68; flex: 0 0 auto; }
.paper-row .v { text-align: right; color: #2c261d; font-weight: 400; line-height: 1.5; }
.paper-foot {
  margin-top: auto; padding-top: 18px;
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a39880;
  display: flex; justify-content: space-between; gap: 12px;
}
.book-side { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 30px); }
.book-builder, .book-cta { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.book-builder .tiny-label, .book-cta .tiny-label { color: var(--warm); }
.book-builder h3 { font-size: 1.5rem; line-height: 1.2; }
.book-builder p, .book-cta p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.bq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bq-list li { font-size: 0.82rem; color: var(--muted); padding-left: 20px; position: relative; font-weight: 300; }
.bq-list li::before {
  content: "?";
  position: absolute; left: 0; top: 0;
  font-family: var(--serif); font-style: italic;
  color: var(--warm);
}
.bq-foot { color: var(--faint); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.book-cta form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.book-cta .btn-cta { align-self: flex-start; }
.book-status { font-size: 0.72rem; color: var(--faint); line-height: 1.55; }
.book-status.ok { color: var(--green); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 50px;
  margin-top: clamp(60px, 9vw, 120px);
  position: relative; z-index: 1;
}
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.foot-grid h4 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin: 0 0 14px; }
.foot-grid p, .foot-grid li { color: var(--faint); font-size: 0.8rem; line-height: 1.65; }
.foot-grid ul { margin: 0; padding-left: 16px; }
.foot-line {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--faint); font-size: 0.72rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 30px;
  transform: translate(-50%, 20px);
  z-index: 80;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--warm-line);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  box-shadow: 0 24px 60px rgba(5, 13, 8, 0.6), 0 0 30px rgba(201, 160, 108, 0.12);
  font-size: 0.85rem; font-weight: 400;
  opacity: 0; visibility: hidden;
  transition: opacity 0.55s var(--ease-slow), transform 0.55s var(--ease-slow), visibility 0.55s;
  max-width: min(92vw, 560px);
  text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============================================================
   RESPONSIVT
   ============================================================ */
@media (max-width: 1020px) {
  .wizard { grid-template-columns: 1fr; }
  .wizard-side { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: column; }
  .steps { flex-direction: row; flex-wrap: wrap; }
  .steps li span.t { display: none; }
  .wizard-summary { margin-top: 4px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: 1fr; }
  .tune-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  /* CTA'en lå oven i logoet. Den bliver kompakt og står mellem brand og
     burger — én række, ingen fuldbredde-bjælke der stjæler heroen. */
  .nav-inner { flex-wrap: nowrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .nav-inner .brand { order: 1; margin-right: auto; }
  .nav-cta { order: 2; padding: 10px 16px; font-size: .84rem; white-space: nowrap; }
  .nav-burger { order: 3; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-panel .field.loc-field { grid-column: 1 / -1; }
  .search-btn { grid-column: 1 / -1; padding: 16px; }
  .houses { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .house:nth-child(2), .house:nth-child(2):hover { transform: none; }
  .data-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .book-layout { grid-template-columns: 1fr; }
  .book-spread { grid-template-columns: 1fr; min-height: 0; }
  .book-spread::after { display: none; }
  .book-cover { min-height: 280px; }
  /* Mobil har sit eget 4:5-foto. Heroen er ~100svh høj, så `cover` ville
     zoome hårdt ind på taget. I stedet ligger fotoet som et bånd i toppen i
     sit eget format, og sløret toner det ned i bundfarven. */
  .hero-media { inset: 0 0 auto 0; height: auto; }
  .hero-media picture { position: relative; }
  .hero-media img {
    position: relative; height: auto; object-fit: cover;
    object-position: 50% 50%; animation: none;
    /* Blødt kant nedad, så båndet ikke ender i en hård linje */
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  }
  /* Under fotobåndet skal bundfarven stå — ellers slår sidens lyse flade igennem */
  .hero { background: var(--bg-0); }
  /* Hero er lavere på mobil, så gradienterne komprimeres: let det jævne lag,
     ellers forsvinder huset helt bag overlayet. */
  .hero-veil { background:
    linear-gradient(rgba(5, 13, 8, 0.38), rgba(5, 13, 8, 0.38)),
    linear-gradient(180deg, rgba(5, 13, 8, 0.42) 0%, rgba(5, 13, 8, 0.10) 40%, rgba(5, 13, 8, 0.82) 82%, var(--bg-0) 100%); }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 32px); }
  .hero-inner { width: calc(100% - 32px); padding-bottom: 90px; }
  .search-panel { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .tune-grid { grid-template-columns: 1fr; }
  .verdict { flex-direction: column; align-items: flex-start; }
  .chips { gap: 8px; }
  .chip { padding: 12px 16px; font-size: 0.85rem; }
  .profile-mini { grid-template-columns: 1fr; }
  .listing-facts-grid { grid-template-columns: 1fr; }
  .guide-reco-list a {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tag"
      "title"
      "reason";
  }
  .guide-reco-list span {
    justify-self: start;
    min-width: 0;
  }
  .price-plan-grid { grid-template-columns: 1fr; }
  .price-plan-actions .btn-cta,
  .price-plan-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   GLOBALT SCROLL-REVEAL (IntersectionObserver i app.js)
   Skjuler kun, når JS kører (html.js), så indhold altid er synligt uden JS.
   ============================================================ */
html.js .reveal,
html.js .reveal-up,
html.js .reveal-scale,
html.js .reveal-stagger > *,
html.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
html.js .reveal-scale {
  transform: translateY(36px) scale(0.98);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .reveal.is-visible,
html.js .reveal-up.is-visible,
html.js .reveal-scale.is-visible,
html.js .reveal-stagger > .is-visible,
html.js [data-stagger] > .is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal-up, html.js .reveal-scale,
  html.js .reveal-stagger > *, html.js [data-stagger] > * {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ============================================================
   FLERSIDET: navigation, undersider, nye komponenter
   (tilføjet ved opdeling i 4 sider)
   ============================================================ */

/* ---------- Mobilmenu ---------- */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(239, 233, 220, 0.03); cursor: pointer;
  position: relative; flex: 0 0 auto;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 12px; width: 20px; height: 1.5px;
  background: var(--text); transition: transform 0.4s var(--ease-slow), opacity 0.3s;
}
.nav-burger span { top: 21px; }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav.open .nav-burger span { background: transparent; }
.nav.open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-links a.current { color: var(--text); }
.nav-links a.current::after {
  content: ""; display: block; height: 1px; margin-top: 4px;
  background: var(--warm-line);
}

@media (max-width: 880px) {
  .nav-burger { display: block; }
  .nav-links {
    display: flex !important; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 12px 24px 20px;
    background: rgba(7,12,17,0.92);
    -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.4s var(--ease-slow), transform 0.4s var(--ease-slow), visibility 0.4s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { padding: 14px 8px; font-size: 0.95rem; }
}

/* ---------- Undersides-hero (mindre end forsidens) ---------- */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
  padding-bottom: clamp(34px, 6vw, 70px);
}
.page-hero .hero-media { position: absolute; inset: -12% 0; z-index: -3; will-change: transform; }
.page-hero .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 50% at 70% 40%, var(--warm-soft), transparent 70%),
    linear-gradient(180deg, rgba(5, 13, 8, 0.55) 0%, rgba(5, 13, 8, 0.30) 40%, rgba(5, 13, 8, 0.78) 80%, var(--bg-0) 100%);
}
.page-hero .hero-inner { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 0; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.05;
  letter-spacing: 0.004em; max-width: 16ch; text-wrap: balance; margin: 22px 0 0;
}
.page-hero h1 em { font-style: italic; color: var(--warm); }
.page-hero .hero-sub { max-width: 56ch; }

/* ---------- To spor på forsiden ---------- */
/* Kasser på mørke flader: blød overgang i stedet for skarp kant.
   Kernen er stadig uigennemsigtig (læsbarhed) — det er KANTEN, der fader:
   svag linje + bred skygge i fladens egen farve. */
.hero .glass, .page-hero .glass, .gb-hero .glass, .paa-moerk .glass {
  border-color: rgba(239, 233, 220, 0.07);
  background: radial-gradient(130% 130% at 50% 30%, #0a1710 0%, #07120b 68%);
  box-shadow:
    0 0 0 1px rgba(5, 13, 8, 0.35),
    0 24px 70px 10px rgba(5, 13, 8, 0.55),
    0 0 110px 42px rgba(5, 13, 8, 0.4);
}
.hero .glass:hover, .page-hero .glass:hover {
  border-color: var(--warm-line);
}

.path-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px);
}
@media (max-width: 1180px) {
  .path-cards { grid-template-columns: 1fr 1fr; }
}
.path-card {
  padding: clamp(26px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 16px;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  transition: border-color 0.6s var(--ease-slow), transform 0.6s var(--ease-slow), box-shadow 0.6s var(--ease-slow);
}
.path-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 80% 0%, var(--warm-soft), transparent 70%);
  opacity: 0; transition: opacity 0.6s var(--ease-slow);
}
.path-card:hover { transform: translateY(-5px); border-color: var(--warm-line); box-shadow: 0 30px 70px rgba(5, 13, 8, 0.5); }
.path-card:hover::after { opacity: 1; }
.path-card .pc-num { font-family: var(--serif); font-size: 0.9rem; color: var(--warm); }
.path-card h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; }
.path-card p { color: var(--muted); font-size: 0.92rem; margin: 0; flex: 1; }
.path-card .pc-go {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--warm); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em;
  margin-top: 6px;
}
.path-card .pc-go svg { transition: transform 0.5s var(--ease-slow); }
.path-card:hover .pc-go svg { transform: translateX(5px); }

/* ---------- Segment-knapper (afdrag / afdragsfrit) ---------- */
.seg {
  display: inline-flex; padding: 4px; gap: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(239, 233, 220, 0.02);
}
.seg button {
  border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 10px 20px; border-radius: 999px;
  transition: color 0.45s var(--ease-slow), background 0.45s var(--ease-slow);
}
.seg button.on { color: #16100a; background: linear-gradient(120deg, #f4d9ae, var(--warm)); }
.fin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 4px; }
.fin-row .fin-label { font-size: 0.8rem; color: var(--muted); }
.fin-note {
  font-size: 0.78rem; color: var(--muted); line-height: 1.6;
  border-left: 1px solid var(--warm-line); padding-left: 14px; max-width: 60ch;
}

.import-preview {
  margin-top: 14px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  max-width: 60ch;
}
.import-preview[hidden] { display: none; }
.import-preview-title {
  margin: 8px 0 12px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}
.import-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}
.import-stats div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}
.import-stats b {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}
.import-preview-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}
.import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.import-actions .btn-cta,
.import-actions .btn-ghost {
  padding: 11px 16px;
  font-size: 0.72rem;
}

/* ---------- Sammenligning: bureau vs. selv (ejer-siden) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .col { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
/* .vinder sættes af JS på det kort, der ender med det største beløb efter
   skat — glorien følger tallene, ikke et fast valg. */
.compare .col { position: relative; transition: border-color .5s var(--ease-slow), box-shadow .5s var(--ease-slow); }
.compare .col.vinder {
  border-color: var(--green-line);
  box-shadow: var(--green-glow), 0 0 60px 8px rgba(63, 125, 82, 0.10),
              inset 0 0 70px rgba(64, 180, 112, 0.04);
  background: linear-gradient(180deg, rgba(63, 125, 82, 0.05), transparent 55%);
}
.compare .col.vinder .big { color: var(--green); }
.vinder-tag {
  position: absolute; top: -11px; right: 16px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); background: var(--bg-0);
  border: 1px solid var(--green-line); border-radius: 999px;
  padding: 4px 12px; display: none;
}
.compare .col.vinder .vinder-tag { display: inline-block; }
.compare .col .tiny-label { margin-bottom: 8px; }
.compare .col h4 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin: 0 0 14px; }
.compare .col .big { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; }
.compare .col.you .big { color: var(--green); text-shadow: var(--green-glow); }
.compare .col .lines { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.compare .col .lines div { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }
.compare .col .lines b { color: var(--text); font-weight: 500; }
.split-stat {
  text-align: center; padding: 22px; margin-top: 18px;
  border-radius: var(--radius); border: 1px solid var(--warm-line);
  background: rgba(201, 160, 108,0.05);
}
.split-stat .num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--warm); }
.split-stat .lbl { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.benchmark-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
}
.benchmark-card[hidden] { display: none; }
.benchmark-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 8px 0 0;
}
.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  margin-top: 16px;
}
.benchmark-grid[hidden] { display: none; }
.benchmark-grid div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}
.benchmark-grid b {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}
.price-plan-card {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--warm-line);
  box-shadow: 0 28px 70px rgba(5, 13, 8, 0.48), inset 0 0 80px rgba(201, 160, 108, 0.035);
}
.price-plan-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 8px 0 10px;
}
.price-plan-body {
  transition: filter 0.35s var(--ease-slow), opacity 0.35s var(--ease-slow);
}
.price-plan-card.is-locked .price-plan-body {
  /* Før køb vises INGEN tabel — indholdet fjernes helt, ikke blot sløres. */
  display: none;
}
.price-plan-lock {
  display: none;
  text-align: center;
  padding: 28px;
}
.price-plan-card.is-locked .price-plan-lock { display: grid; }
.price-plan-lock p {
  margin: 8px auto 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
.price-plan-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--green-line);
  border-radius: 999px;
  color: var(--green);
  background: rgba(64, 180, 112, 0.08);
  font-size: 0.72rem;
  line-height: 1.35;
  margin-bottom: 16px;
}
.price-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.price-plan-grid div {
  padding: 14px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(239, 233, 220, 0.02);
}
.price-plan-grid span {
  display: block;
  color: var(--faint);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.price-plan-grid b {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.1;
}
.price-plan-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}
.price-plan-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.price-plan-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.price-plan-table .pp-rec { color: var(--warm); font-weight: 700; }
.price-plan-table .pp-gap { color: #e8b878; font-weight: 700; white-space: nowrap; }
.price-plan-table .pp-ok { color: #6fae7e; font-size: 0.72rem; white-space: nowrap; }
.price-plan-table .pp-na { color: var(--faint); font-size: 0.72rem; }
.pp-opportunity {
  margin: 16px 0 4px;
  padding: 18px 20px;
  border: 1px solid var(--warm-line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201, 160, 108, 0.10), rgba(201, 160, 108, 0.02));
}
.pp-opportunity.is-pending {
  border-color: var(--line);
  background: rgba(239, 233, 220, 0.02);
}
.pp-opportunity.is-strong {
  border-color: rgba(111, 174, 126, 0.4);
  background: linear-gradient(135deg, rgba(111, 174, 126, 0.10), rgba(111, 174, 126, 0.02));
}
.pp-opportunity h4 { margin: 6px 0 4px; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--text); }
.pp-opportunity p { margin: 6px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.pp-opportunity p strong { color: var(--text); }
.pp-op-figure {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 500;
  color: var(--warm);
  line-height: 1.05;
  margin-top: 4px;
}
.pp-op-figure small {
  display: block;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 3px;
}
.price-plan-table th {
  text-align: left;
  padding: 13px 10px;
  white-space: nowrap;
  color: var(--faint);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.price-plan-table td span {
  display: block;
  margin-top: 2px;
  font-size: 0.66rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.price-plan-table td {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}
.price-plan-table td strong { color: var(--text); font-weight: 600; }
.price-plan-table td:last-child,
.price-plan-table th:last-child { text-align: right; }
/* Mobil: tabellen bliver til kort med labels — alle kolonner bevares (også Weekend/Forslag). */
@media (max-width: 560px) {
  .price-plan-table-wrap { overflow-x: visible; border: 0; }
  .price-plan-table { min-width: 0; }
  .price-plan-table tr:first-child { display: none; }            /* skjul header-rækken */
  .price-plan-table tr { display: block; border: 1px solid var(--line); border-radius: 11px;
    margin-bottom: 10px; padding: 10px 13px; background: rgba(239, 233, 220, .02); }
  .price-plan-table td { display: flex; justify-content: space-between; align-items: baseline;
    gap: 14px; border: 0; padding: 5px 0; text-align: right; }
  .price-plan-table td.pp-md { padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .price-plan-table td[data-label]::before { content: attr(data-label); color: var(--faint);
    font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
    text-align: left; white-space: nowrap; }
}
.price-plan-advice {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.price-plan-advice strong { color: var(--text); font-weight: 500; }
.price-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.price-plan-actions .btn-cta,
.price-plan-actions .btn-ghost {
  padding: 12px 18px;
  font-size: 0.74rem;
}
.price-plan-split {
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}
.price-plan-steps {
  display: grid;
  gap: 14px;
}
.price-plan-steps div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.price-plan-steps div:first-child {
  padding-top: 0;
  border-top: 0;
}
.price-plan-steps b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(201, 160, 108, 0.1);
  border: 1px solid var(--warm-line);
  color: var(--warm);
  font-size: 0.78rem;
}
.price-plan-steps span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.guide-recommendations {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
}
.guide-recommendations[hidden] { display: none; }
.guide-recommendations h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 8px 0 0;
}
.guide-reco-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 18px;
}
.guide-reco-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "tag title"
    "tag reason";
  column-gap: 12px;
  row-gap: 3px;
  align-items: start;
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.guide-reco-list a:hover strong { color: var(--warm); }
.guide-reco-list span {
  grid-area: tag;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 5px 8px;
  border: 1px solid var(--warm-line);
  border-radius: 999px;
  color: var(--warm);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.guide-reco-list strong {
  grid-area: title;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.35s var(--ease-slow);
}
.guide-reco-list em {
  grid-area: reason;
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.55;
}

/* ---------- Cinematisk bog-side ---------- */
.cine {
  position: relative; min-height: 96vh;
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
  padding: clamp(70px, 12vh, 150px) 0;
}
.cine-media { position: absolute; inset: -10% 0; z-index: -3; will-change: transform; }
.cine-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine-veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 60% at 50% 50%, rgba(5, 13, 8, 0.35), transparent 70%),
    linear-gradient(180deg, var(--bg-0) 0%, rgba(5, 13, 8, 0.35) 30%, rgba(5, 13, 8, 0.35) 70%, var(--bg-0) 100%);
}
.cine.right .cine-veil {
  background:
    linear-gradient(90deg, var(--bg-0) 8%, rgba(5, 13, 8, 0.30) 55%, transparent 100%),
    linear-gradient(180deg, rgba(5, 13, 8, 0.5), rgba(5, 13, 8, 0.5));
}
.cine.left .cine-veil {
  background:
    linear-gradient(270deg, var(--bg-0) 8%, rgba(5, 13, 8, 0.30) 55%, transparent 100%),
    linear-gradient(180deg, rgba(5, 13, 8, 0.5), rgba(5, 13, 8, 0.5));
}
.cine-text { max-width: 560px; position: relative; z-index: 1; }
.cine.left .cine-text { margin-left: auto; }
.cine-text .eyebrow { display: block; margin-bottom: 18px; }
.cine-text h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; margin: 0;
}
.cine-text h2 em { font-style: italic; color: var(--warm); }
.cine-text p { color: var(--muted); font-size: 1.02rem; margin: 18px 0 0; }
.cine-text .micro { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.cine-text .micro div { font-size: 0.86rem; color: var(--muted); padding-left: 20px; position: relative; }
.cine-text .micro div::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 1px; background: var(--warm); }
.cine-text .micro b { color: var(--text); font-weight: 500; }

/* Sticky købsbjælke (bund) */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(7,12,17,0.78);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.6s var(--ease-slow);
  box-shadow: 0 -18px 50px -22px rgba(5, 13, 8, 0.8);
}
.buy-bar.show { transform: translateY(0); }
.buy-bar .inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.buy-bar .bb-text { font-size: 0.9rem; color: var(--muted); }
.buy-bar .bb-text strong { color: var(--text); font-weight: 600; }
.buy-bar .bb-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Mobil sticky CTA — kun på små skærme, holder sig væk fra footeren */
@media (min-width: 761px) {
  .buy-bar { display: none; }
}
@media (max-width: 760px) {
  .buy-bar {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .buy-bar .inner {
    flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 0;
    text-align: center;
  }
  .buy-bar .bb-text { font-size: 0.82rem; }
  .buy-bar .bb-actions { justify-content: center; }
  .buy-bar .bb-actions .btn-cta { display: block; text-align: center; }
}

@media (max-width: 880px) {
  .path-cards { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .buy-bar .inner { flex-direction: column; gap: 10px; padding: 12px 0; }
  .buy-bar .bb-text { text-align: center; }
}




/* ---------- Tema-vælger (Bogens udtryk) ---------- */
.tema-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}
@media(max-width:600px){.tema-grid{grid-template-columns:1fr}}
.tema-kort{position:relative;display:grid;gap:8px;padding:14px;border:1px solid var(--line);
  border-radius:12px;cursor:pointer;transition:border-color .3s var(--ease-slow),transform .3s var(--ease-slow)}
.tema-kort:hover{border-color:var(--warm-line);transform:translateY(-2px)}
.tema-kort.on{border-color:var(--warm);box-shadow:0 0 0 1px var(--warm) inset}
.tema-kort.laast{opacity:.5;cursor:not-allowed}
.tema-kort.laast:hover{transform:none;border-color:var(--line)}
.tema-kort input{position:absolute;opacity:0;pointer-events:none}
.tema-mini{display:flex;align-items:center;justify-content:center;gap:8px;height:62px;
  border-radius:8px;border:1px solid rgba(15,29,17,.12)}
.tema-aa{font-family:var(--serif);font-size:1.5rem;line-height:1}
.tema-prik{width:8px;height:8px;border-radius:50%}
.tema-navn{font-weight:600;font-size:.92rem}
.tema-navn em{font-style:normal;font-weight:400;color:var(--faint);font-size:.82rem}
.tema-tekst{color:var(--muted);font-size:.84rem;line-height:1.5}

/* Mobil-regler for grids, der er DEFINERET længere oppe i denne sektion.
   De skal stå EFTER definitionen — media queries giver ingen ekstra
   specificitet, så den sidste regel i filen vinder. */
@media (max-width: 880px) {
  .price-plan-split { grid-template-columns: 1fr; }
  .guide-reco-list { grid-template-columns: 1fr; }
}

/* Prisplan-kortet på /ejer: klasserne pricing-card/pc-tag/price havde ALDRIG
   fået styles — kortet stod som rå tekst. */
.pricing-card { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius); }
.pricing-card.featured { border-color: var(--warm-line); }
.pricing-card .pc-tag {
  align-self: flex-start;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--warm); border: 1px solid var(--warm-line); border-radius: 999px;
  padding: 4px 12px; margin-bottom: 4px;
}
.pricing-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin: 0; }
.pricing-card .price { font-family: var(--serif); font-size: 2.4rem; line-height: 1; margin: 2px 0 6px; }
.pricing-card .price small { font-size: 0.95rem; color: var(--muted); font-family: var(--sans); }
.pricing-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.pricing-card ul { margin: 4px 0 10px; padding-left: 18px; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.pricing-card .btn-cta { margin-top: auto; }
