/* ══════════════════════════════════════════════════════
   Lovbasen.dk — Fælles stylesheet
   Centraliseret CSS for header, footer, base, knapper
   ══════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --text: #0f0f0f;
  --bg: #F7F6F4;
  --card-bg: #FFFFFF;
  --secondary: #5A5854; /* Opgraderet fra #64625D for bedre kontrast (WCAG AA) */
  --border: #E5E3DE;
  --accent: #1E3A5F;
  --accent-light: #3A5D8F;  /* navy-tint i stedet for bright-blå (Kate-fund 20/4) */
  --accent-bg: #EBF0F7;
  /* Vertikal rytme — spacing-tokens */
  --space-section-sm: 56px;   /* Stats, timeline */
  --space-section-md: 80px;   /* Standard sektion */
  --space-section-lg: 96px;   /* Hero, CTA */
  --space-inner: 48px;        /* Header til indhold */
  --bg-warm: #F3F0EB;         /* Dybere cream — social proof / fremhævede sektioner */
  --accent-wash: #F0F3F8;     /* Ultralys navy-wash — metode/data-sektioner */
}

/* ── Fælles tabel-styling ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--accent-bg); color: var(--accent); font-size: 12px;
  font-weight: 600; text-align: left; padding: 8px 12px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.data-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.data-table tr:last-child td { border-bottom: none; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ── Typografi ── */
h1 { font-size: 36px; font-weight: 600; line-height: 1.2; letter-spacing: -0.018em; }
h2 { font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.section-subtitle { font-size: 14px; color: var(--secondary); line-height: 1.65; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }

/* ── Accessibility: focus-visible ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,246,244,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-box { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; }
.logo-mark {
  width: 32px; height: 32px; background: var(--accent); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 22px;
  line-height: 1; flex-shrink: 0;
}
.logo-word { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 18px; color: var(--accent); letter-spacing: -0.005em; }
.logo-word-dk { font-weight: 300; font-size: 15px; color: var(--accent); opacity: 0.7; margin-left: 2px; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a {
  font-size: 13px; font-weight: 500; color: var(--secondary); text-decoration: none;
  padding: 12px 4px; min-height: 44px; display: inline-flex; align-items: center;
  transition: color 0.15s; white-space: nowrap;
}
.header-nav a:hover { color: var(--text); }
.header-login {
  font-size: 12px; color: var(--secondary); text-decoration: none;
  padding: 12px 8px; min-height: 44px; display: inline-flex; align-items: center;
}
.header-login:hover { color: var(--accent); }
.header-cta {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--accent); background: transparent; border: 1px solid var(--border);
  padding: 10px 20px; min-height: 44px; display: inline-flex; align-items: center;
  cursor: pointer; text-decoration: none; transition: all 0.15s; white-space: nowrap;
}
.header-cta:hover { border-color: var(--accent); background: var(--accent-bg); }

/* ── Hamburger-menu ── */
.hamburger {
  display: none; background: none; border: 1px solid var(--border);
  cursor: pointer; padding: 8px 10px; align-items: center; justify-content: center;
  width: 44px; height: 44px; /* Min touch-target */
}
.hamburger-bar { width: 18px; height: 2px; background: var(--accent); position: relative; display: block; }
.hamburger-bar::before, .hamburger-bar::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--accent);
}
.hamburger-bar::before { top: -6px; }
.hamburger-bar::after { top: 6px; }
.mobile-menu {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: rgba(247,246,244,0.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  flex-direction: column; padding: 8px 16px 16px; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none;
  padding: 12px 0; min-height: 44px; display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── Generiske knapper (3 + 1 inverteret) ── */
.btn-primary {
  font-family: 'Inter', sans-serif; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; color: #fff; background: var(--accent);
  border: none; padding: 13px 28px; min-height: 44px; cursor: pointer; text-decoration: none;
  text-align: center; transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  font-family: 'Inter', sans-serif; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; color: var(--accent); background: transparent;
  border: 1px solid var(--border); padding: 12px 24px; min-height: 44px;
  cursor: pointer; text-decoration: none; text-align: center; transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-bg); }
.btn-primary-inverse {
  font-family: 'Inter', sans-serif; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; color: var(--accent); background: #fff;
  border: none; padding: 13px 28px; min-height: 44px; cursor: pointer; text-decoration: none;
  transition: opacity 0.15s;
}
.btn-primary-inverse:hover { opacity: 0.9; }
.btn-secondary-inverse {
  font-family: 'Inter', sans-serif; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; color: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,0.4); padding: 13px 28px; min-height: 44px;
  cursor: pointer; text-decoration: none; transition: all 0.15s;
}
.btn-secondary-inverse:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
/* Backwards compat aliases (deprecated) */
.btn-white { font-family: 'Inter', sans-serif; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: var(--accent); background: #fff; border: none; padding: 13px 28px; min-height: 44px; cursor: pointer; text-decoration: none; transition: opacity 0.15s; }
.btn-white:hover { opacity: 0.9; }
.btn-ghost-light { font-family: 'Inter', sans-serif; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,0.4); padding: 13px 28px; min-height: 44px; cursor: pointer; text-decoration: none; transition: all 0.15s; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline { font-family: 'Inter', sans-serif; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: var(--accent); background: transparent; border: 1px solid var(--border); padding: 12px 24px; min-height: 44px; cursor: pointer; text-decoration: none; text-align: center; transition: all 0.15s; }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-bg); }
.btn-accent { font-family: 'Inter', sans-serif; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: #fff; background: var(--accent); border: none; padding: 13px 28px; min-height: 44px; cursor: pointer; text-decoration: none; text-align: center; transition: opacity 0.15s; }
.btn-accent:hover { opacity: 0.9; }
.cta-btn { font-family: 'Inter', sans-serif; display: inline-block; font-size: 14px; font-weight: 500; color: #fff; background: var(--accent); border: none; padding: 12px 28px; min-height: 44px; cursor: pointer; text-decoration: none; transition: opacity 0.15s; }
.cta-btn:hover { opacity: 0.9; }
.cta-box {
  background: var(--accent-bg); border: 1px solid var(--border);
  padding: 32px; text-align: center; margin-top: 48px;
}
.cta-box h3 { font-size: 18px; font-weight: 600; color: var(--accent); margin-bottom: 8px; margin-top: 0; }
.cta-box p { font-size: 14px; color: var(--secondary); margin-bottom: 20px; }

/* ── Page-hero (indre sider) ── */
.page-hero { background: var(--accent); color: #fff; padding: var(--space-section-lg) 24px; text-align: center; }
.page-hero h1 { font-size: 36px; margin-bottom: 12px; }
.page-hero p { font-size: 16px; opacity: 0.85; max-width: 620px; margin: 0 auto; }

/* ── Content-wrapper (om, vilkaar, sammenligning) ── */
.content { max-width: 740px; margin: 0 auto; padding: var(--space-section-md) 24px var(--space-section-lg); }
.content h2 { font-size: 26px; font-weight: 600; color: var(--accent); margin-top: 48px; margin-bottom: 12px; letter-spacing: -0.02em; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 18px; font-weight: 600; color: var(--text); margin-top: 28px; margin-bottom: 8px; letter-spacing: -0.005em; }
.content p { margin-bottom: 16px; color: var(--text); }
.content p.secondary { color: var(--secondary); font-size: 14px; }

/* ── Content-section dividers ── */
.content-section { padding: var(--space-section-md) 0; border-top: 1px solid var(--border); }
.content-section:first-child { border-top: none; padding-top: 0; }
.content-section h2:first-child { margin-top: 0; }

/* ── Full-bleed coloured section within content pages ── */
.section-wash { margin-left: -24px; margin-right: -24px; padding: var(--space-section-md) 24px; }
.section-wash--warm { background: var(--bg-warm); }
.section-wash--accent { background: var(--accent-wash); }

/* ── Footer (3-kolonne) ── */
.footer { border-top: 1px solid var(--border); padding: 48px 24px 24px; background: var(--card-bg); }
.footer-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.footer-brand { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a, .footer-col p { font-size: 13px; color: var(--secondary); text-decoration: none; display: block; line-height: 2; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 960px; margin: 24px auto 0; padding-top: 16px;
  border-top: 1px solid var(--border); font-size: 12px; color: var(--secondary);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: var(--secondary); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

/* ── Form inputs (fælles) ── */
form input, form select, form textarea {
  width: 100%; padding: 10px 12px; font-family: inherit; font-size: 14px;
  border: 1px solid var(--border); background: var(--card-bg); color: var(--text);
  margin-top: 4px; outline: none; transition: border-color 0.15s;
}
form input:focus, form select:focus, form textarea:focus { border-color: var(--accent); }

/* ── Responsive: Tablet (768px) ── */
@media (max-width: 768px) {
  .header { padding: 0 16px; }
  .header-nav { gap: 10px; }
  .header-nav a:not(.header-cta) { display: none; }
  .header-cta { padding: 7px 14px; font-size: 12px; }
  .hamburger { display: inline-flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Responsive: Mobil (640px) ── */
@media (max-width: 640px) {
  .header { padding: 0 16px; gap: 8px; }
  .header-nav { gap: 8px; }
  .header-cta { padding: 7px 12px; font-size: 12px; }
  .page-hero { padding: 64px 20px; }
  .page-hero h1 { font-size: 24px; }
  .content { padding: 40px 16px 60px; }
  .section-wash { margin-left: -16px; margin-right: -16px; padding: var(--space-section-sm) 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ── FOTO ROLLBACK — Uncomment for at fjerne alle fotos ──
.hero-photo { background-image: none !important; }
.section-photo { background-image: none !important; }
.founder-photo { display: none !important; }
── */
