*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f3; color: #1a1a1a; font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }

/* HEADER + DROPDOWN-MENU */
header { background: #fff; border-bottom: 1px solid #e5e5e5; position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; height: 64px; display: flex; align-items: center; gap: 2.5rem; }
.logo { font-size: 18px; font-weight: 800; color: #14181f; flex-shrink: 0; }
nav { display: flex; gap: 0.5rem; flex: 1; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 500; color: #2c3340; padding: 20px 14px; transition: color 0.15s; }
.nav-link:hover { color: #2e9d5b; }
.nav-link .caret { color: #14181f; transition: transform 0.18s; display: inline-block; }
.nav-item:hover .nav-link .caret { transform: rotate(180deg); color: #2e9d5b; }

/* Dropdown-panel */
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  padding: 1.75rem 2rem; display: flex; gap: 3rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200; white-space: nowrap;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-col { display: flex; flex-direction: column; gap: 2px; }
.dropdown-head { font-size: 13px; font-weight: 700; color: #14181f; margin-bottom: 0.75rem; }
.dropdown-col a { font-size: 15px; color: #5a6472; padding: 7px 0; transition: color 0.12s; }
.dropdown-col a:hover { color: #2e9d5b; }

.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; margin-left: auto; color: #14181f; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem 1.5rem; border-bottom: 1px solid #e5e5e5; gap: 0; max-height: 80vh; overflow-y: auto; }
  nav.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
  .nav-link .caret { margin-left: auto; }
  /* På mobil vises dropdowns altid udfoldet, indrykket */
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-radius: 0; padding: 0.5rem 0 0.5rem 1rem; flex-direction: column; gap: 1.25rem; white-space: normal; }
  .dropdown-head { margin-bottom: 0.4rem; }
  .dropdown-col a { padding: 6px 0; }
}

/* LAYOUT */
main { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }
.card { background: #fff; border-radius: 12px; border: 1px solid #e5e5e5; padding: 1.5rem; margin-bottom: 1.5rem; }
.card h2 { font-size: 16px; font-weight: 600; margin-bottom: 1.25rem; }
.page-hero { margin-bottom: 2rem; }
.page-hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 0.5rem; }
.page-hero p { font-size: 16px; color: #555; }

/* SLIDERS */
.field-row { margin-bottom: 1.25rem; }
.field-row label { display: flex; justify-content: space-between; font-size: 14px; color: #555; margin-bottom: 6px; }
.field-row label span { font-weight: 600; color: #1a1a1a; }
input[type=range] { width: 100%; height: 4px; appearance: none; background: #e0e0e0; border-radius: 2px; outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #1a56db; cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #1a56db; border: none; cursor: pointer; }

/* RESULTS */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 1.25rem; }
@media (max-width: 480px) { .results-grid { grid-template-columns: 1fr; } }
.result-card { background: #f5f5f3; border-radius: 8px; padding: 1rem; }
.result-card.highlight { background: #ebf2ff; }
.rc-label { font-size: 12px; color: #777; margin-bottom: 4px; }
.rc-value { font-size: 20px; font-weight: 700; color: #1a1a1a; }
.result-card.highlight .rc-value { color: #1a56db; }
.rc-sub { font-size: 12px; color: #999; margin-top: 2px; }

/* BAR */
.breakdown-bar { height: 10px; display: flex; border-radius: 5px; overflow: hidden; margin-bottom: 8px; }
.bar-principal { background: #1a56db; }
.bar-renter { background: #e05c2a; }
.bar-legend { display: flex; gap: 1.5rem; font-size: 13px; color: #555; }
.bar-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }

/* UDBYDERE */
.udbydere { border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; }
.udbyder-row { display: flex; align-items: center; padding: 13px 16px; border-bottom: 1px solid #f0f0f0; gap: 12px; }
.udbyder-row:last-child { border-bottom: none; }
.udbyder-info { flex: 1; }
.udbyder-name { font-size: 14px; font-weight: 600; }
.udbyder-aop { font-size: 13px; color: #777; margin-top: 1px; }
.udbyder-stars { color: #f5a623; font-size: 13px; margin-top: 2px; }
.udbyder-btn { font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 8px; background: #16a34a; color: #fff; border: none; cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-block; transition: background 0.15s, transform 0.1s; }
.udbyder-btn:hover { background: #15803d; transform: translateY(-1px); }
.udbyder-btn:active { transform: translateY(0); }
.udbyder-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #e6f4ea; color: #2d7a3a; font-weight: 600; margin-left: 8px; }

/* GUIDES */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.guide-card { display: block; background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 1.25rem; transition: border-color 0.15s; }
.guide-card:hover { border-color: #1a56db; }
.guide-cat { font-size: 11px; font-weight: 600; color: #1a56db; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.guide-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.guide-card p { font-size: 13px; color: #666; line-height: 1.5; }

/* PROSE */
.prose h2 { font-size: 20px; font-weight: 700; margin: 1.75rem 0 0.75rem; }
.prose h3 { font-size: 16px; font-weight: 600; margin: 1.25rem 0 0.5rem; }
.prose p { font-size: 15px; color: #444; line-height: 1.75; margin-bottom: 0.85rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 0.85rem; }
.prose ul li { font-size: 15px; color: #444; line-height: 1.75; margin-bottom: 0.25rem; }

/* Større, luftigere prose på artikelsider */
.article-page .prose p { font-size: 18px; color: #3a4150; line-height: 1.75; margin-bottom: 1.25rem; }
.article-page .prose h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: #14181f; margin: 2.5rem 0 1rem; }
.article-page .prose h3 { font-size: 20px; font-weight: 700; color: #14181f; margin: 1.75rem 0 0.75rem; }
.article-page .prose ul li { font-size: 18px; color: #3a4150; line-height: 1.75; margin-bottom: 0.5rem; }
.article-page .article-meta { font-size: 14px; }
.article-page .back-link { font-size: 15px; }

/* KONTAKT */
.kontakt-form { display: flex; flex-direction: column; gap: 1rem; }
.kontakt-form input, .kontakt-form textarea { width: 100%; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 15px; font-family: inherit; background: #fafafa; }
.kontakt-form textarea { min-height: 130px; resize: vertical; }
.kontakt-form button { align-self: flex-start; padding: 10px 24px; background: #1a56db; color: #fff; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; }
.kontakt-form button:hover { background: #1446b8; }

/* DISCLAIMER */
.disclaimer { font-size: 12px; color: #aaa; margin-top: 1rem; line-height: 1.5; }

/* FOOTER */
footer { text-align: center; font-size: 13px; color: #aaa; padding: 2rem 1rem; border-top: 1px solid #e5e5e5; margin-top: 2rem; }

/* GUIDE CARDS MED LINKS */
a.guide-card { display: block; text-decoration: none; color: inherit; }
.guide-img { font-size: 36px; margin-bottom: 12px; }
.guide-link { display: inline-block; margin-top: 10px; font-size: 13px; color: #1a56db; font-weight: 500; }

/* ARTIKEL LAYOUT */
.artikel-hero { background: #fff; border-bottom: 1px solid #e5e5e5; padding: 2.5rem 1rem; margin-bottom: 2rem; }
.artikel-hero-inner { max-width: 720px; margin: 0 auto; }
.artikel-hero .kategori { font-size: 12px; font-weight: 600; color: #1a56db; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.artikel-hero h1 { font-size: 32px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.artikel-hero .ingress { font-size: 18px; color: #555; line-height: 1.6; }
.artikel-body { max-width: 720px; margin: 0 auto; padding: 0 1rem 3rem; }
.artikel-body h2 { font-size: 22px; font-weight: 700; margin: 2rem 0 0.75rem; }
.artikel-body h3 { font-size: 17px; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.artikel-body p { font-size: 16px; color: #333; line-height: 1.8; margin-bottom: 1rem; }
.artikel-body ul, .artikel-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.artikel-body li { font-size: 16px; color: #333; line-height: 1.8; margin-bottom: 0.35rem; }
.info-box { background: #ebf2ff; border-left: 3px solid #1a56db; border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.info-box p { margin: 0; color: #1a3a6b; font-size: 15px; }
.advarsel-box { background: #fff8eb; border-left: 3px solid #f5a623; border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.advarsel-box p { margin: 0; color: #7a4f00; font-size: 15px; }
.illustration { background: #f5f5f3; border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0; font-size: 14px; color: #555; }
.illustration table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; }
.illustration th { font-size: 13px; font-weight: 600; color: #1a1a1a; padding: 8px 12px; background: #e8e8e5; text-align: left; }
.illustration td { font-size: 14px; padding: 8px 12px; border-bottom: 1px solid #e5e5e5; }
.illustration tr:last-child td { border-bottom: none; }
.cta-box { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 1.5rem; margin: 2rem 0; text-align: center; }
.cta-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.cta-box p { color: #555; margin-bottom: 1rem; }
.cta-btn { display: inline-block; padding: 12px 28px; background: #1a56db; color: #fff; border-radius: 8px; font-size: 15px; font-weight: 500; text-decoration: none; }
.cta-btn:hover { background: #1446b8; }
.tilbage-link { display: inline-block; font-size: 14px; color: #1a56db; margin-bottom: 1.5rem; }

/* ARTIKEL — ren, stor overskrift (Nykredit-stil, ingen boks) */
.article-hero { margin: 1rem 0 2.5rem; }
.article-cat { font-size: 12px; font-weight: 700; color: #2e7d4f; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.article-hero h1 { font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: #14181f; margin-bottom: 1rem; }
.article-meta { font-size: 14px; color: #8a929e; }
@media (max-width: 600px) { .article-hero h1 { font-size: 32px; } }
.article-fig { width: 100%; background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0; }
.article-fig svg { width: 100%; height: auto; display: block; }
.article-fig figcaption { font-size: 13px; color: #888; text-align: center; margin-top: 0.75rem; }
.callout { background: #ebf2ff; border-left: 4px solid #1a56db; border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 1.25rem 0; }
.callout strong { color: #1a3a8f; }
.callout p { margin: 0; font-size: 14px; color: #333; }
.article-cta { background: #1a56db; border-radius: 12px; padding: 1.5rem; margin: 2rem 0; text-align: center; }
.article-cta h3 { color: #fff; font-size: 18px; margin-bottom: 0.5rem; }
.article-cta p { color: #cdd9f5; font-size: 14px; margin-bottom: 1rem; }
.article-cta a { display: inline-block; background: #fff; color: #1a56db; padding: 10px 24px; border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; }
.back-link { display: inline-block; font-size: 14px; color: #1a56db; margin-bottom: 1rem; }
table.cmp { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 14px; }
table.cmp th, table.cmp td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; }
table.cmp th { background: #f5f5f3; font-weight: 600; }

/* ===== STOR HERO (Realkredit-stil) ===== */
.hero-big { text-align: center; padding: 3rem 1rem 2rem; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: #777; background: #efeee9; display: inline-block; padding: 6px 16px; border-radius: 6px; margin-bottom: 1.5rem; text-transform: uppercase; }
.hero-big h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 54px; font-weight: 700; line-height: 1.05; color: #1a1a1a; margin-bottom: 1.1rem; letter-spacing: -0.02em; }
.hero-big p { font-size: 18px; color: #666; max-width: 500px; margin: 0 auto; line-height: 1.5; }
@media (max-width: 600px) { .hero-big { padding: 2rem 1rem 1.5rem; } .hero-big h1 { font-size: 36px; } .hero-big p { font-size: 16px; } }

/* ===== BEREGNER TO-KOLONNE ===== */
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 1.5rem; }
@media (max-width: 720px) { .calc-layout { grid-template-columns: 1fr; gap: 2rem; } }

/* ===== CIRKEL-GRAF (donut) ===== */
.donut-wrap { display: flex; flex-direction: column; align-items: center; }
.donut { position: relative; width: 230px; height: 230px; }
.donut svg { transform: rotate(-90deg); display: block; }
.donut-arc { transition: stroke-dasharray 0.4s ease; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.donut-center .dc-label { font-size: 13px; color: #888; margin-bottom: 2px; }
.donut-center .dc-value { font-size: 36px; font-weight: 700; color: #1a1a1a; line-height: 1.05; letter-spacing: -0.02em; }
.donut-center .dc-sub { font-size: 12px; color: #aaa; margin-top: 2px; }
.donut-legend { display: flex; gap: 1.5rem; margin-top: 1.5rem; font-size: 13px; color: #555; }

/* ===== GRØN HANDLINGSKNAP ===== */
.cta-green { display: flex; align-items: center; justify-content: center; gap: 8px; background: #16a34a; color: #fff; text-align: center; padding: 16px 24px; border-radius: 10px; font-size: 17px; font-weight: 600; text-decoration: none; margin-top: 0.5rem; transition: background 0.15s, transform 0.1s; box-shadow: 0 2px 8px rgba(22,163,74,0.25); }
.cta-green:hover { background: #15803d; transform: translateY(-1px); }
.cta-green:active { transform: translateY(0); }
.cta-sub { text-align: center; font-size: 13px; color: #999; margin-top: 0.6rem; }

/* ===== TO NØGLETAL UNDER DONUT ===== */
.results-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.25rem; }
@media (max-width: 480px) { .results-pair { grid-template-columns: 1fr; } }

/* ============================================
   FORSIDE — NY INDBYDENDE STIL
   ============================================ */

/* HERO */
.hero { text-align: center; max-width: 720px; margin: 3.5rem auto 2.5rem; padding: 0 1.5rem; }
.hero-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: #2e7d4f; background: #e6f4ea; padding: 6px 14px; border-radius: 20px; margin-bottom: 1.25rem; }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1rem; color: #14181f; }
.hero p { font-size: 18px; color: #5a6472; line-height: 1.6; max-width: 540px; margin: 0 auto; }
@media (max-width: 600px) { .hero h1 { font-size: 36px; } .hero p { font-size: 16px; } }

/* CALC CARD — to kolonner */
.calc-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: 20px; border: 1px solid #e8e8e8; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.04); margin-bottom: 1rem; }
.calc-inputs { padding: 2rem; }
.calc-result { padding: 2rem; background: #14181f; color: #fff; display: flex; flex-direction: column; }
@media (max-width: 700px) { .calc-card { grid-template-columns: 1fr; } }

/* Inputs i kortet */
.calc-inputs .field-row { margin-bottom: 1.5rem; }
.calc-inputs .field-row:last-child { margin-bottom: 0; }
.calc-inputs label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #5a6472; margin-bottom: 10px; }
.calc-inputs label span { font-weight: 700; color: #14181f; font-size: 16px; }
.calc-inputs input[type=range] { height: 6px; background: #e8eaed; }
.calc-inputs input[type=range]::-webkit-slider-thumb { width: 22px; height: 22px; background: #2e9d5b; box-shadow: 0 2px 6px rgba(46,157,91,0.4); }
.calc-inputs input[type=range]::-moz-range-thumb { width: 22px; height: 22px; background: #2e9d5b; box-shadow: 0 2px 6px rgba(46,157,91,0.4); }

/* RESULTAT — stort blikfang */
.result-headline { text-align: center; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 1.25rem; }
.rh-label { font-size: 14px; color: #9aa5b5; margin-bottom: 8px; }
.rh-value { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: #fff; }
.rh-sub { font-size: 13px; color: #9aa5b5; margin-top: 8px; }

.result-mini { display: flex; flex-direction: column; gap: 12px; margin-bottom: 1.5rem; }
.mini-item { display: flex; justify-content: space-between; align-items: center; }
.mini-label { font-size: 14px; color: #9aa5b5; }
.mini-value { font-size: 16px; font-weight: 700; color: #fff; }

/* GRØN CTA-KNAP — det indbydende element */
.btn-cta { display: block; text-align: center; background: #2e9d5b; color: #fff; font-size: 17px; font-weight: 700; padding: 16px 24px; border-radius: 12px; text-decoration: none; transition: all 0.18s ease; box-shadow: 0 4px 14px rgba(46,157,91,0.35); margin-top: auto; }
.btn-cta:hover { background: #259150; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,157,91,0.45); }
.result-disclaimer { font-size: 11px; color: #6b7585; text-align: center; margin-top: 12px; line-height: 1.4; }

/* BREAKDOWN */
.breakdown-wrap { background: #fff; border-radius: 16px; border: 1px solid #e8e8e8; padding: 1.5rem; margin-bottom: 1.5rem; }
.breakdown-wrap .breakdown-bar { height: 14px; border-radius: 7px; margin-bottom: 12px; }

/* Grønne "Se tilbud"-knapper på forsiden */
.udbyder-btn { background: #2e9d5b; transition: all 0.15s ease; }
.udbyder-btn:hover { background: #259150; transform: translateY(-1px); }

/* ============================================
   ARTIKLER — REN STIL (Nykredit-inspireret)
   ============================================ */
main.article { max-width: 720px; margin: 2.5rem auto 2rem; padding: 0 1.5rem; }
main.article .back-link { display: inline-block; font-size: 15px; color: #2e9d5b; font-weight: 600; margin-bottom: 2rem; }
main.article .article-cat { font-size: 13px; font-weight: 700; color: #2e7d4f; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
main.article .article-title { font-size: 48px; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: #14181f; margin-bottom: 1.25rem; background: none; padding: 0; border: none; }
main.article .article-meta { font-size: 14px; color: #8a929e; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid #e5e5e5; }
main.article .article-lead { font-size: 21px; line-height: 1.55; color: #2c3340; font-weight: 400; margin-bottom: 2rem; }
@media (max-width: 600px) {
  main.article .article-title { font-size: 34px; }
  main.article .article-lead { font-size: 18px; }
}

/* ============================================
   BEREGNER-FANER (viser hvilken type man regner på)
   ============================================ */
.calc-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 1080px; margin: 0 auto 1.25rem; justify-content: center;
}
.calc-tab {
  font-size: 15px; font-weight: 500; color: #5a6472;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid #e2e4e8; background: #fff;
  transition: all 0.15s ease; white-space: nowrap;
}
.calc-tab:hover { border-color: #2e9d5b; color: #2e9d5b; }
.calc-tab.active {
  background: #2e9d5b; color: #fff; border-color: #2e9d5b;
  box-shadow: 0 2px 10px rgba(46,157,91,0.3);
}
@media (max-width: 600px) {
  .calc-tabs { gap: 6px; }
  .calc-tab { font-size: 14px; padding: 8px 14px; }
}
