/* ==========================================================================
   investeringsplatform.dk — alle styles i én fil
   (Sammenlagt fra: fonts/minblogfont.css + colors_and_type.css + styles.css)
   ========================================================================== */

/* ---------- Minblog icon font ---------- */
@font-face {
  font-family: minblog;
  src: url('fonts/minblog.woff2') format('woff2'),
       url('fonts/minblog.woff') format('woff'),
       url('fonts/minblog.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
[class*=" icon-"]:before, [class^="icon-"]:before {
  font-family: minblog;
  font-style: normal;
  font-weight: 400;
  speak: none;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  margin-left: .2em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon-right-circled:before { content: '\e800'; }
.icon-bookmark:before      { content: '\e801'; }
.icon-tag:before           { content: '\e802'; }
.icon-clock:before         { content: '\e803'; }
.icon-lamp:before          { content: '\e804'; }
.icon-box:before           { content: '\e805'; }
.icon-search:before        { content: '\e806'; }
.icon-menu:before          { content: '\f0c9'; }
.icon-commen:before        { content: '\f0e5'; }
.icon-doc:before           { content: '\f0f6'; }
.icon-angle-up:before      { content: '\f106'; }
.icon-down:before          { content: '\f107'; }
.icon-user:before          { content: '\f2c0'; }

/* ---------- Open Sans — variable font ---------- */
@font-face {
  font-family: 'Open Sans';
  src: url('./fonts/OpenSans-VariableFont_wdth_wght.ttf') format('truetype-variations'),
       url('./fonts/OpenSans-VariableFont_wdth_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('./fonts/OpenSans-Italic-VariableFont_wdth_wght.ttf') format('truetype-variations'),
       url('./fonts/OpenSans-Italic-VariableFont_wdth_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   Foundations: Colors & Typography
   ========================================================================== */

:root {
  /* ---------- Brand ---------- */
  --brand-color: #EA580C;
  --brand-hover: #C2410C;
  --brand-deep:  #9A3412;

  --orange-50:  #FFF7ED;
  --orange-100: #FFEDD5;
  --orange-200: #FED7AA;

  /* ---------- Semantic state ---------- */
  --success:     #29B340;
  --success-700: #237A32;
  --danger:      #E82513;

  /* ---------- Neutrals ---------- */
  --fg1:    #111827;
  --fg2:    #1F2937;
  --fg3:    #374151;
  --fg4:    #6B7280;
  --fg5:    #9CA3AF;
  --fg-on-brand: #FFFFFF;

  --bg1:    #FFFFFF;
  --bg2:    #F9FAFB;
  --bg3:    #F3F4F6;
  --bg-soft-orange: var(--orange-50);

  --border-1: #E5E7EB;
  --border-2: #D1D5DB;
  --border-zinc: #E4E4E7;

  /* ---------- Type families ---------- */
  --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-icons: 'minblog';

  /* ---------- Type scale ---------- */
  --fs-display: 3rem;
  --fs-h1:      2.25rem;
  --fs-h2:      1.875rem;
  --fs-h3:      1.5rem;
  --fs-h4:      1.25rem;
  --fs-lead:    1.125rem;
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.75rem;

  --lh-tight:   1.1;
  --lh-snug:    1.25;
  --lh-normal:  1.5;
  --lh-relaxed: 1.7;
  --lh-loose:   1.875;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold: 600;
  --fw-bold:    700;
  --fw-black:   800;

  /* ---------- Spacing ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* ---------- Radii ---------- */
  --radius-sm:   3px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-pill: 9999px;

  /* ---------- Shadows ---------- */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-cta: 0 4px 10px rgba(0,0,0,0.20);
  --shadow-cta-hover: 0 6px 14px rgba(0,0,0,0.30);

  /* ---------- Layout ---------- */
  --container-narrow: 768px;
  --container-prose:  960px;
  --container-wide:   1280px;
  --header-h:         64px;
}

/* ---------- Semantic element styles ---------- */

html, body {
  font-family: var(--font-sans);
  color: var(--fg2);
  background: var(--bg1);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, .h1 {
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--fg1);
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--fg1);
}

h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--fg1);
}

h4, .h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--fg1);
}

p, .p {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--fg3);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--fg3);
}

a {
  color: var(--brand-color);
  text-decoration: none;
  transition: color .2s, opacity .2s;
}
a:hover { color: var(--brand-hover); }

.meta {
  font-size: var(--fs-sm);
  color: var(--fg4);
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-color);
}

code, pre, .mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ==========================================================================
   investeringsplatform.dk — tool-feeling overrides
   ========================================================================== */

html, body {
  background: var(--bg2);
  color: var(--fg2);
  line-height: var(--lh-normal);
}

* { box-sizing: border-box; }

button { font-family: inherit; }

/* tabular figures everywhere there are numbers */
.num { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-zinc);
}
.site-header-inner {
  height: 100%;
  display: flex; align-items: center;
  gap: 20px;
}

/* Ung med Penge logo */
.site-logo-link { flex-shrink: 0; line-height: 0; }
.site-logo {
  height: 26px;
  width: auto;
  display: block;
}

/* Nav */
.nav {
  display: none;
  align-items: center;
  gap: 0;
  font-size: 12px; font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  color: var(--fg4);
  flex: 1;
  overflow: hidden;
}
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  color: inherit;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--fg1); background: var(--bg2); }
.nav-divider {
  width: 1px; height: 16px;
  background: var(--border-1);
  flex-shrink: 0;
  margin: 0 6px;
}

/* Frihed med Frederik brand */
.brand-fmf {
  flex-shrink: 0;
  display: inline-flex; align-items: baseline; gap: 0;
  font-size: 14px;
  font-weight: var(--fw-black);
  letter-spacing: -0.01em;
  color: var(--fg2);
  text-decoration: none;
  margin-left: auto;
  white-space: nowrap;
  transition: color 0.15s;
}
.brand-fmf:hover { color: var(--brand-color); }
.brand-fmf .fmf-med { font-weight: var(--fw-regular); color: var(--fg4); margin: 0 3px; }
.brand-fmf .fmf-navn { color: var(--brand-color); }
.brand-fmf .fmf-arrow {
  font-size: 11px;
  color: var(--fg5);
  margin-left: 4px;
  vertical-align: super;
  transition: transform 0.15s;
}
.brand-fmf:hover .fmf-arrow { transform: translate(1px, -1px); }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg1);
  border-bottom: 1px solid var(--border-1);
}
.hero-inner {
  padding: 56px 0 40px;
}
@media (min-width: 900px) {
  .hero-inner {
    padding: 72px 0 48px;
  }
}
.hero-eyebrow {
  font-size: 12px; font-weight: var(--fw-bold);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-color);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.hero-eyebrow .updated {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--bg2);
  border: 1px solid var(--border-1);
  color: var(--fg4);
  font-size: 11px; letter-spacing: 0.04em;
  text-transform: none;
  font-weight: var(--fw-semibold);
}
.hero-eyebrow .updated .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); display: inline-block; flex-shrink: 0;
}
.hero-eyebrow .pill {
  background: var(--orange-50);
  color: var(--brand-deep);
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11px;
  border: 1px solid var(--orange-200);
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: var(--fw-black);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--fg1);
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--brand-color); }
.hero h1 .strike {
  position: relative;
  white-space: nowrap;
}
.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  top: 55%;
  height: 6px;
  background: var(--orange-200);
  z-index: -1;
}
.hero p.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg3);
  max-width: 580px;
  margin: 0;
}


/* ---------- Filter bar ---------- */
.filterbar {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(249,250,251,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-1);
}
.filterbar-inner {
  padding: 16px 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px;
}
.chip,
a.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: var(--fw-semibold);
  color: var(--fg3);
  cursor: default;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
  appearance: none;
}
button.chip {
  cursor: pointer;
}
.chip:hover,
a.chip:hover {
  border-color: var(--fg5);
  color: var(--fg1);
}
.chip.active {
  background: var(--fg1);
  border-color: var(--fg1);
  color: var(--fg-on-brand);
}
.chip.active:hover { background: var(--fg2); }
.chip .count {
  font-size: 11px; font-weight: var(--fw-bold);
  background: rgba(0,0,0,0.08);
  padding: 2px 7px; border-radius: var(--radius-pill);
  color: inherit;
}
.chip.active .count {
  background: rgba(255,255,255,0.2);
}

.filter-divider {
  width: 1px; height: 20px; background: var(--border-1);
  margin: 0 4px;
}
.results-count {
  margin-left: auto;
  font-size: 13px; color: var(--fg4);
  font-weight: var(--fw-semibold);
}
.results-count strong { color: var(--fg1); font-weight: var(--fw-black); }

/* ---------- Table ---------- */
.table-section {
  padding: 32px 0 80px;
}
.table-wrap {
  background: var(--bg1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-scroller {
  overflow-x: auto;
}
table.cmp {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  font-size: 14px;
}
table.cmp thead th {
  background: var(--bg2);
  border-bottom: 1px solid var(--border-1);
  text-align: left;
  font-size: 11px; font-weight: var(--fw-bold);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg4);
  padding: 14px 14px;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}
table.cmp thead th.sortable { cursor: default; }
table.cmp thead th.sortable:hover { color: var(--fg2); }
table.cmp thead th.sorted { color: var(--brand-color); }
table.cmp thead th.col-highlight,
table.cmp tbody td.col-highlight {
  background: color-mix(in srgb, var(--brand-color) 8%, transparent);
}
.empty-table {
  padding: 32px 14px;
  text-align: center;
  color: var(--fg4);
}
table.cmp thead th .arrow {
  display: inline-block;
  margin-left: 4px;
  opacity: 0.5;
  font-size: 9px;
}
table.cmp thead th.sorted .arrow { opacity: 1; }

table.cmp thead th.num-col,
table.cmp tbody td.num-col { text-align: right; }
table.cmp thead th.center,
table.cmp tbody td.center { text-align: center; }

table.cmp tbody tr {
  border-bottom: 1px solid var(--border-1);
  transition: background 0.12s;
}
table.cmp tbody tr:last-child { border-bottom: 0; }
table.cmp tbody tr:hover { background: var(--bg2); }

table.cmp tbody td {
  padding: 18px 14px;
  vertical-align: middle;
  color: var(--fg2);
}
/* density tweak */
.density-compact table.cmp tbody td { padding: 11px 14px; font-size: 13px; }
/* Platform cell — ensartet logo-plads (samme bredde/højde for alle) */
table.cmp thead th:first-child,
table.cmp tbody td:first-child {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
}
.platform-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}
.platform-logo-frame {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 148px;
  width: 148px;
  height: 40px;
}
.platform-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 148px;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
}
.density-compact .platform-logo-frame {
  flex-basis: 128px;
  width: 128px;
  height: 32px;
}
.density-compact .platform-logo {
  max-width: 128px;
  max-height: 32px;
}
.density-compact table.cmp thead th:first-child,
.density-compact table.cmp tbody td:first-child {
  width: 148px;
  min-width: 148px;
  max-width: 148px;
}

/* numeric cell */
.cell-num {
  font-weight: var(--fw-bold);
  color: var(--fg1);
  font-variant-numeric: tabular-nums;
}
.cell-num .unit {
  font-weight: var(--fw-regular);
  color: var(--fg4);
  font-size: 0.9em;
  margin-left: 2px;
}
.cell-sub {
  display: block;
  font-size: 11px;
  color: var(--fg4);
  font-weight: var(--fw-regular);
  margin-top: 2px;
}

/* check/cross pills */
.bool {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: var(--fw-black);
}
.bool.yes {
  background: rgba(41,179,64,0.13);
  color: var(--success-700);
}
.bool.no {
  background: var(--bg3);
  color: var(--fg5);
}
.bool.no::before {
  content: '';
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.45;
}

/* CTA cell */
.cta-cell { white-space: nowrap; text-align: right; padding-right: 18px !important; }
a.btn-cta,
.btn-cta {
  appearance: none; border: 0; cursor: pointer;
  padding: 9px 16px;
  background: var(--brand-color);
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: 13px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  font-family: inherit;
}
a.btn-cta:hover,
.btn-cta:hover { background: var(--brand-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-cta--inactive {
  cursor: default;
  opacity: 0.55;
}
.btn-cta--inactive:hover {
  background: var(--brand-color);
  box-shadow: var(--shadow-sm);
  transform: none;
}
.btn-cta .arr { transition: transform 0.2s; }
.btn-cta:hover .arr { transform: translateX(2px); }

.lnk-cta {
  appearance: none; border: 0; background: transparent; cursor: default;
  color: var(--brand-color);
  font-weight: var(--fw-bold);
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 8px;
}
.lnk-cta:hover { color: var(--brand-hover); }
.lnk-cta .arr { transition: transform 0.2s; }
.lnk-cta:hover .arr { transform: translateX(2px); }

/* expand row */
tr.row-detail {
  background: var(--bg2) !important;
}
tr.row-detail td {
  padding: 0 14px 24px !important;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 32px;
  padding-top: 8px;
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 20px; }
}
.detail-col h4 {
  font-size: 11px; font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg4);
  margin: 0 0 10px;
  display: flex; align-items: center; gap: 6px;
}
.detail-col h4 .marker {
  width: 16px; height: 2px; border-radius: 2px;
}
.detail-col h4.pros .marker { background: var(--success); }
.detail-col h4.cons .marker { background: var(--danger); }
.detail-col h4.crit .marker { background: var(--brand-color); }
.detail-col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px;
  color: var(--fg2);
}
.detail-col li {
  display: flex; align-items: flex-start; gap: 8px;
}
.detail-col li .bullet {
  flex-shrink: 0; margin-top: 7px;
  width: 4px; height: 4px; border-radius: 50%;
}
.detail-col h4.pros + ul .bullet { background: var(--success); }
.detail-col h4.cons + ul .bullet { background: var(--danger); }

/* Selektive kriterier — small definition-list */
.crit-list {
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border-1);
}
.crit-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-1);
  font-size: 13px;
}
.crit-row dt { color: var(--fg3); margin: 0; }
.crit-row dd {
  margin: 0;
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.crit-row dd.crit-yes { color: var(--success-700); }
.crit-row dd.crit-no  { color: var(--fg5); }
.crit-row dd::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}
.crit-row dd.crit-yes::before { background: var(--success); }
.crit-row dd.crit-no::before  { background: var(--border-2); }

.expand-col {
  text-align: center;
  padding-left: 0 !important;
  width: 50px;
}

.table-disclaimer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--fg4);
  font-style: italic;
  max-width: 720px;
}
.table-affiliate-disclaimer {
  margin-top: 10px;
  font-size: 12px;
  color: var(--fg4);
  max-width: 720px;
  line-height: 1.55;
}

.expand-btn {
  appearance: none; background: transparent; border: 1px solid var(--border-1);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; cursor: default;
  color: var(--fg4);
  transition: all 0.15s;
}
.expand-btn:hover { border-color: var(--fg4); color: var(--fg1); }
.expand-btn.open {
  background: var(--fg1); border-color: var(--fg1); color: #fff;
}

/* footer */
.foot {
  border-top: 1px solid var(--border-1);
  background: var(--bg1);
  padding: 40px 0 48px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 700px) {
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}
.foot h4 {
  font-size: 12px; font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg1);
  margin: 0 0 12px;
}
.foot .disclaimer {
  font-size: 13px;
  color: var(--fg4);
  font-style: italic;
  line-height: 1.6;
  max-width: 480px;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot ul a { color: var(--fg3); font-size: 14px; }
.foot ul a:hover { color: var(--brand-color); }
.foot-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-1);
  font-size: 12px;
  color: var(--fg5);
  text-align: center;
}
.foot-bottom a {
  color: var(--fg5);
  text-decoration: none;
}
.foot-bottom a:hover {
  color: var(--brand-color);
}
