/* ============================================
   de Hondengids — stijl
   ============================================ */

:root {
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  --container: 1140px;
}

/* LIGHT (default) — tech thema, slate basis */
[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-elev-1: #FFFFFF;
  --bg-elev-2: #F8FAFC;
  --bg-overlay: rgba(15,23,42,0.45);

  --text: #0F172A;
  --text-mute: #64748B;
  --text-faint: #94A3B8;

  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --accent: #0F172A;
  --accent-text: #FFFFFF;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;

  --success-bg: #DCFCE7; --success-text: #16A34A;
  --warning-bg: #FED7AA; --warning-text: #C2410C;
  --danger-bg:  #FECACA; --danger-text:  #B91C1C;
  --info-bg:    #DBEAFE; --info-text:    #1D4ED8;
}

/* DARK */
[data-theme="dark"] {
  --bg: #15161A;
  --bg-elev-1: #1E1F25;
  --bg-elev-2: #25262D;
  --bg-overlay: rgba(0,0,0,0.6);

  --text: #E8E6DF;
  --text-mute: #9A988F;
  --text-faint: #6E6C66;

  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.18);

  --accent: #E8E6DF;
  --accent-text: #15161A;

  --success-bg: #173404; --success-text: #C0DD97;
  --warning-bg: #412402; --warning-text: #FAC775;
  --danger-bg:  #4B1528; --danger-text:  #F4C0D1;
  --info-bg:    #1F3550; --info-text:    #85B7EB;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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

button, input, select { font: inherit; color: inherit; }

button {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 6px 12px;
  font-size: 13px;
  transition: background 0.15s;
}
button:hover { background: var(--bg-elev-2); }
button.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
button.btn-primary:hover { opacity: 0.9; background: var(--accent); }

input[type="text"], input[type="search"], select {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev-1);
  color: var(--text);
  outline: none;
  font-size: 14px;
}
input:focus, select:focus { border-color: var(--text-mute); }

.muted { color: var(--text-mute); }
.faint { color: var(--text-faint); }
.mono  { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); font-weight: 400; }

/* ============ HEADER (tech-thema) ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 28px;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand:hover { text-decoration: none; }

/* Logo: SVG container — wordt door JS gevuld */
.dg-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
}
.dg-logo svg { width: 100%; height: 100%; display: block; }
.dg-logo-small { width: 32px; height: 32px; }
.dg-logo-tiny  { width: 26px; height: 26px; }

.brand-title { font-family: var(--font-sans); font-size: 17px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.brand-sub { font-size: 10px; color: var(--text-faint); margin-top: 4px; line-height: 1; }

.site-nav {
  display: flex;
  gap: 4px;
  font-size: 13px;
  margin-left: 12px;
  align-items: center;
}
.site-nav > a,
.site-nav .nav-with-submenu > a {
  color: var(--text-mute);
  text-decoration: none;
  padding: 0 12px;
  height: 32px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  box-sizing: border-box;
}
.site-nav > a:hover,
.site-nav .nav-with-submenu > a:hover { background: var(--bg-elev-2); color: var(--text); }
.site-nav > a.active { color: var(--text); background: #F1F5F9; font-weight: 500; }

/* Submenu wrapper moet zelf ook uitgelijnd zijn met de andere items */
.site-nav .nav-with-submenu {
  display: inline-flex;
  align-items: center;
  height: 32px;
}

/* Wizard link met ster-icoon */
.nav-wizard {
  color: var(--text) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.nav-wizard svg { display: block; }

/* Submenu (Professionals dropdown) */
.nav-with-submenu { position: relative; }
.nav-with-submenu .caret { font-size: 9px; color: var(--text-faint); }
.nav-submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  padding: 4px;
  display: none;
  z-index: 60;
}
.nav-submenu a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
}
.nav-submenu a:hover { background: var(--bg-elev-2); }
.nav-with-submenu:hover .nav-submenu,
.nav-with-submenu:focus-within .nav-submenu { display: block; }

.header-right { display: flex; gap: 8px; align-items: center; margin-left: auto; }

/* Auth-area (login knop OF account-pil) */
.auth-login-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.auth-login-btn:hover { opacity: 0.9; }
.auth-login-btn svg { display: block; }

.auth-account-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  position: relative;
}
.auth-account-btn:hover { border-color: var(--border-strong); }
.auth-account-btn.is-open { border-color: var(--accent-blue); }
.auth-account-btn .dg-logo { width: 28px; height: 28px; }
.auth-account-btn .badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #F59E0B;
  color: white;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 999px;
  font-weight: 600;
  border: 1.5px solid var(--bg);
}
.caret-tiny { font-size: 9px; color: var(--text-faint); margin-left: -2px; }

/* Mobiele auth sectie — verborgen op desktop, getoond in slide-in nav */
.mobile-auth-section { display: none; }

/* Account dropdown menu */
.account-pill-wrap { position: relative; }
.account-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 220px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.12);
  padding: 6px;
  z-index: 70;
}
.account-menu-head {
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.account-menu-naam { font-size: 13px; font-weight: 600; color: var(--text); }
.account-menu-rol {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}
.account-menu-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.account-menu-item:hover { background: var(--bg-elev-2); }
.account-menu-item svg { color: var(--text-mute); flex-shrink: 0; }
.account-menu-item-danger { color: var(--text-mute); }
.account-menu-item-danger:hover { color: #B91C1C; background: #FEE2E2; }
.account-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 4px;
}

/* ============ MAIN / CONTAINER ============ */
main { min-height: calc(100vh - 200px); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HOMEPAGE / HERO ============ */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint); margin: 0 0 14px;
}
.hero-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.hero-title em { font-style: italic; }
.hero-lead {
  max-width: 540px; margin: 0 auto 1.75rem;
  font-size: 15px; color: var(--text-mute); line-height: 1.6;
}
.hero-search {
  max-width: 520px; margin: 0 auto;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  text-align: left;
}
.hero-search-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-faint); text-align: center; margin: 0 0 10px; }
.hero-search-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }

.hero-stats { display: flex; justify-content: center; gap: 36px; margin-top: 2rem; flex-wrap: wrap; }
.hero-stat-num { font-family: var(--font-mono); font-size: 22px; font-weight: 500; }
.hero-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); }

/* Section heading */
.section { padding: 2.25rem 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: none; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 18px; flex-wrap: wrap; gap: 8px; }
.section-h h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 24px; letter-spacing: -0.01em; }
.section-h .meta { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }

/* ============ STAMGROEPEN GRID ============ */
.stam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.stam-card {
  padding: 14px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.1s, border-color 0.15s;
}
.stam-card:hover { transform: translateY(-1px); border-color: var(--border-strong); text-decoration: none; }
.stam-dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 8px; }
.stam-naam { font-size: 13px; font-weight: 500; }
.stam-aantal { font-size: 11px; color: var(--text-faint); margin-top: 2px; }

/* ============ RAS GRID ============ */
.ras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.ras-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.15s;
}
.ras-card:hover { transform: translateY(-2px); border-color: var(--border-strong); text-decoration: none; }
.ras-card-img-wrap {
  aspect-ratio: 4/3;
  background: var(--bg-elev-2);
  position: relative;
}
.ras-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ras-card-img-wrap .placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: var(--text-faint); font-size: 32px;
}
.ras-card-body { padding: 12px 14px; }
.ras-card-naam { font-size: 14px; font-weight: 500; }
.ras-card-meta { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.ras-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }

/* Badges per stamgroep */
.stam-badge {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  display: inline-block;
}

/* Pills generic */
.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  background: var(--bg-elev-2);
  color: var(--text);
}
.pill-success { background: var(--success-bg); color: var(--success-text); }
.pill-warning { background: var(--warning-bg); color: var(--warning-text); }
.pill-danger  { background: var(--danger-bg);  color: var(--danger-text); }
.pill-info    { background: var(--info-bg);    color: var(--info-text); }

/* ============ FILTERBAR ============ */
.filterbar {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap;
  padding: 12px 0;
  font-size: 13px;
}
.filterbar select {
  width: auto;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: var(--r-pill);
}
.filterbar .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); }
.filter-result { margin-left: auto; font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }

/* ============ RAS DETAIL PAGE ============ */
.detail-breadcrumb {
  font-size: 12px;
  padding: 10px 0;
  color: var(--text-faint);
}
.detail-breadcrumb .stam-badge { vertical-align: middle; }

.detail-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--border);
}
.detail-hero-img {
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elev-2);
  position: relative;
}
.detail-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-img .credit {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(0,0,0,0.55); color: white;
  padding: 3px 8px; border-radius: var(--r-md);
  font-size: 10px; font-family: var(--font-mono);
}
.detail-title { font-family: var(--font-serif); font-weight: 400; font-size: 36px; letter-spacing: -0.025em; line-height: 1; margin: 6px 0 4px; }
.detail-tagline { font-family: var(--font-serif); font-style: italic; color: var(--text-mute); font-size: 14px; margin: 0; }
.detail-summary { margin: 14px 0 0; line-height: 1.65; }
.detail-actions { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }

/* Section nav (sticky table of contents) */
.section-nav {
  position: sticky; top: 64px; z-index: 30;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  margin: 0 -24px;
  padding-left: 24px; padding-right: 24px;
  display: flex; gap: 6px; overflow-x: auto;
  font-size: 11px;
  white-space: nowrap;
}
.section-nav a {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  color: var(--text-mute);
}
.section-nav a:hover { background: var(--bg-elev-2); text-decoration: none; }
.section-nav a.active { background: var(--accent); color: var(--accent-text); }

/* Detail subsection */
.subsection {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}
.subsection:first-of-type { border-top: none; }
.subsection-h {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px;
  flex-wrap: wrap;
}
.subsection-h h2 {
  margin: 0; font-family: var(--font-serif); font-weight: 400;
  font-size: 22px; letter-spacing: -0.01em;
}
.subsection-h .num {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
}
.subsection-h .sub {
  margin-left: auto; font-size: 12px; color: var(--text-mute);
}

/* Quick stats grid */
.quick-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.quick-stat {
  background: var(--bg-elev-2);
  border-radius: var(--r-md);
  padding: 10px 12px;
}
.quick-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }
.quick-stat-value { font-size: 13px; font-weight: 500; margin-top: 2px; }

/* Karakter meters */
.meters { display: grid; gap: 10px; font-size: 13px; }
.meter-row .meter-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
.meter-track { height: 4px; background: var(--bg-elev-2); border-radius: 2px; overflow: hidden; }
.meter-fill { height: 100%; background: var(--text); }

/* Pros / Cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.proscons h4 { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; margin: 0 0 6px; }
.proscons .pros h4 { color: var(--success-text); }
.proscons .cons h4 { color: var(--warning-text); }
.proscons ul { margin: 0; padding-left: 18px; line-height: 1.75; }

/* Ziektes lijst */
.ziekte-list { display: grid; gap: 8px; }
.ziekte-row {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: start;
}
.ziekte-naam { font-weight: 500; font-size: 14px; }
.ziekte-info { font-size: 12px; color: var(--text-mute); margin-top: 4px; line-height: 1.5; }

.checklist {
  background: var(--bg-elev-2);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-top: 1rem;
}
.checklist-h { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; margin: 0 0 8px; }
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 12px; line-height: 1.7; }

/* Compatibility */
.compat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
.compat-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.compat-row:last-child { border-bottom: none; }
.compat-name { font-size: 13px; font-weight: 500; }
.compat-note { font-size: 11px; color: var(--text-faint); }
.compat-dots { display: inline-flex; gap: 3px; }
.compat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-elev-2); }
.compat-dot.on { background: var(--text); }

/* Training fasering */
.training-fasen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 1rem; }
.training-fase {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
}
.training-fase-leeftijd { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }
.training-fase-titel { font-weight: 500; font-size: 13px; margin: 4px 0 6px; }
.training-fase-text { font-size: 11px; color: var(--text-mute); line-height: 1.5; }

/* Fokcombinaties */
.fok-list { display: grid; gap: 8px; }
.fok-row {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 14px;
  align-items: start;
}
.fok-code { font-family: var(--font-mono); font-size: 18px; font-weight: 500; }
.fok-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }
.fok-titel { font-size: 13px; font-weight: 500; }
.fok-uitleg { font-size: 12px; color: var(--text-mute); line-height: 1.5; margin-top: 4px; }

/* Openbaar */
.openbaar-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.openbaar-banner-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.openbaar-banner-icon.ok { background: var(--success-bg); color: var(--success-text); }
.openbaar-banner-icon.alert { background: var(--warning-bg); color: var(--warning-text); }
.openbaar-banner-icon.warn { background: var(--danger-bg); color: var(--danger-text); }
.openbaar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.openbaar-cell {
  background: var(--bg-elev-2);
  padding: 12px 14px;
  border-radius: var(--r-md);
}
.openbaar-cell-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }
.openbaar-cell-value { font-size: 13px; font-weight: 500; margin-top: 2px; }
.openbaar-cell-note { font-size: 11px; color: var(--text-mute); margin-top: 4px; }

/* Pro lijst (fokkers, trimmers, etc.) */
.pro-tabs {
  display: flex; gap: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  overflow-x: auto;
}
.pro-tab {
  padding: 10px 0; font-size: 13px; cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  background: transparent; border-radius: 0;
  color: var(--text-mute);
  border-top: none; border-left: none; border-right: none;
  border-bottom: 2px solid transparent;
  padding: 10px 4px;
}
.pro-tab:hover { background: transparent; color: var(--text); }
.pro-tab.active { color: var(--text); font-weight: 500; border-bottom-color: var(--text); }
.pro-tab .count { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }

.pro-list { display: grid; gap: 6px; }
.pro-row {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 38px 1fr auto auto auto;
  gap: 14px;
  align-items: center;
}
.pro-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-elev-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
}
.pro-naam { font-weight: 500; font-size: 14px; }
.pro-meta { font-size: 12px; color: var(--text-mute); }
.pro-distance {
  font-family: var(--font-mono); font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--info-bg); color: var(--info-text);
  white-space: nowrap;
}

.pro-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-mute);
  background: var(--bg-elev-1);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
}

/* ============ MODAL ============ */
.modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-overlay);
  z-index: 100; padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--bg-elev-1);
  border-radius: var(--r-lg);
  padding: 24px;
  max-width: 460px; width: 100%;
  border: 1px solid var(--border);
}
.modal-card h3 { margin: 0 0 4px; font-family: var(--font-serif); font-weight: 400; font-size: 22px; }
.modal-card p { margin: 0 0 16px; font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ============ FOOTER (tech-thema) ============ */
.site-footer {
  background: var(--bg-elev-2);
  border-top: 1px solid var(--border);
  padding: 36px 28px 24px;
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-mute);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: flex-start;
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand-col { display: flex; flex-direction: column; gap: 8px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-brand-row strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.footer-tag {
  font-size: 13px;
  color: var(--text-mute);
  margin: 0;
  line-height: 1.5;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  margin: 0 0 12px;
}
.footer-col a {
  display: block;
  padding: 3px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}
.footer-col a:hover { color: var(--accent-blue); }
.footer-bar {
  max-width: 1080px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-faint);
}
.footer-ver { font-family: var(--font-mono); font-size: 11px; }
.footer-links { display: flex; gap: 18px; }

/* ============ FILTER LAYOUT (rassen, kruisingen) ============ */
.filter-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  padding-top: 1.5rem;
}
.filter-toggle { display: none; }
.filter-sidebar { display: block; }

@media (max-width: 880px) {
  .filter-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    width: fit-content;
    margin-bottom: 0.5rem;
  }
  .filter-toggle:hover { border-color: var(--border-strong); }
  .filter-toggle svg { color: var(--text-mute); }
  .filter-toggle[aria-expanded="true"] {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
  }
  .filter-toggle[aria-expanded="true"] svg { color: var(--accent-text); }

  /* Sidebar default verborgen op mobiel */
  .filter-sidebar {
    display: none;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
  }
  .filter-sidebar.is-open { display: block; }
}

/* ============ COMPARE BAR ============ */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--accent); color: var(--accent-text);
  padding: 12px 24px;
  display: flex; align-items: center; gap: 14px;
  z-index: 60;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.compare-bar[hidden] { display: none; }
.compare-bar button { background: var(--accent-text); color: var(--accent); border: none; }
.compare-bar button:hover { opacity: 0.9; }

/* ============ MOBILE MENU ============ */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle .bar { transition: transform 0.2s, opacity 0.2s; transform-origin: center; }
.nav-toggle.is-open .bar1 { transform: translate(0, 6px) rotate(45deg); }
.nav-toggle.is-open .bar2 { opacity: 0; }
.nav-toggle.is-open .bar3 { transform: translate(0, -6px) rotate(-45deg); }
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  z-index: 150;
}
.nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }
body.nav-locked { overflow: hidden; }

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .site-header { gap: 8px; padding: 12px 14px; }
  .brand-text .brand-sub { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Op mobiel verbergen we de auth-area in de header — komt in mobile menu */
  .site-header #authArea { display: none; }

  /* Header heeft stacking context — moet HOGER dan backdrop zodat het site-nav kind
     correct gestapeld kan worden bovenop de backdrop. */
  .site-header { z-index: 200; isolation: isolate; }

  /* Site-nav wordt slide-in panel */
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    background: #FFFFFF;
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 70px 0 24px;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease-out;
    z-index: 10;
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0,0,0,0.25);
    pointer-events: none;
    opacity: 1;
  }
  .site-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .site-nav > a,
  .site-nav .nav-with-submenu > a {
    display: block;
    padding: 14px 20px;
    height: auto;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    line-height: 1.4;
  }
  .site-nav > a:hover,
  .site-nav > a.active,
  .site-nav .nav-with-submenu > a:hover {
    background: var(--bg-elev-2);
  }
  .site-nav > a.active {
    color: var(--accent);
    font-weight: 500;
    border-left: 3px solid var(--accent-blue);
    padding-left: 17px;
  }

  /* Submenu altijd uitgevouwen op mobiel */
  .site-nav .nav-with-submenu {
    display: block;
    height: auto;
  }
  .site-nav .nav-with-submenu .caret { display: none; }
  .site-nav .nav-submenu {
    position: static;
    display: block !important;
    background: var(--bg-elev-2);
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }
  .site-nav .nav-submenu a {
    padding: 10px 20px 10px 36px;
    font-size: 13px;
    color: var(--text-mute);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .site-nav .nav-submenu a:last-child { border-bottom: 0; }
  .site-nav .nav-submenu a:hover { background: var(--bg); color: var(--text); }

  /* Mobiele auth & acties sectie */
  .mobile-auth-section {
    display: block !important;
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-elev-2);
  }
  .mobile-auth-login {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
  }
  .mobile-auth-user {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    margin-bottom: 12px;
  }
  .mobile-auth-user .dg-logo { width: 32px; height: 32px; flex-shrink: 0; }
  .mobile-auth-user .naam { font-size: 13px; font-weight: 600; }
  .mobile-auth-user .rol {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-faint);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
  }
  .mobile-actions-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 8px 4px 6px;
    font-weight: 500;
  }
  .mobile-action {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    border-radius: 6px;
    background: transparent;
    border: 0;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
  }
  .mobile-action:hover { background: var(--bg); }
  .mobile-action svg { color: var(--text-mute); flex-shrink: 0; }
  .mobile-action .badge {
    margin-left: auto;
    background: var(--accent-blue);
    color: white;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
  }
  .mobile-action .badge-green { background: #16A34A; }
  .mobile-action.is-logout { color: var(--text-mute); }
  .mobile-action.is-logout:hover { color: #B91C1C; background: #FEE2E2; }

  /* Hamburger boven het slide-in panel (binnen header context) */
  .nav-toggle { position: relative; z-index: 20; }

  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero-img { aspect-ratio: 4/3; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .proscons, .compat-grid, .openbaar-grid, .checklist-grid { grid-template-columns: 1fr; }
  .pro-row { grid-template-columns: 38px 1fr; }
  .pro-row > *:nth-child(n+3) { grid-column: 1 / -1; justify-self: end; }
  .fok-row { grid-template-columns: 1fr; }
  .hero-search-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand-title { font-size: 16px; }
  .site-header { padding: 10px 14px; }
}

/* ============ UTIL ============ */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.spacer-1 { height: 1rem; }
.spacer-2 { height: 1.5rem; }
.tip {
  background: var(--bg-elev-2);
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 1rem;
}

/* ============================================================
   HOME — zoek-eerst layout
   ============================================================ */
.home { padding: 0; }

.home-search-block {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  margin: -1px -16px 0;
  padding: 56px 16px 40px;
  border-bottom: 1px solid var(--border);
}
.home-search-inner { max-width: 720px; margin: 0 auto; text-align: center; }

.home-stat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px; color: var(--text-mute);
  margin-bottom: 22px;
}
.home-stat-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
}

.home-h1 {
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  line-height: 1.05;
  color: var(--text);
}
.home-h1-grad {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-sub {
  font-size: 16px;
  color: var(--text-mute);
  margin: 0 auto 28px;
  max-width: 460px;
  line-height: 1.55;
}

.home-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  padding: 5px 5px 5px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(15,23,42,0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.home-search-bar:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.home-search-icon {
  font-size: 16px;
  color: var(--text-faint);
  line-height: 1;
}
.home-search-bar input[type="search"] {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 4px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  min-width: 0;
}
.home-search-btn {
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}
.home-search-btn:hover { opacity: 0.9; }

.home-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  max-height: 360px;
  overflow-y: auto;
  z-index: 50;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.home-search-row {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.home-search-row:last-child { border-bottom: 0; }
.home-search-row:hover { background: var(--bg-elev-2); }
.home-search-row-naam { font-size: 14px; font-weight: 500; }
.home-search-row-meta { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.home-search-empty { padding: 14px; font-size: 13px; color: var(--text-mute); text-align: center; }

.home-chips {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.home-chip {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text-mute);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.home-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-elev-2);
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 0 16px;
}
.home-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.home-action:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.home-action-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  font-weight: 500;
}
.icon-blue { background: #E6F1FB; color: #185FA5; }
.icon-pink { background: #FBEAF0; color: #993556; }
.icon-teal { background: #E1F5EE; color: #0F6E56; }
.icon-amber { background: #FAEEDA; color: #854F0B; }
.home-action-titel { font-size: 14px; font-weight: 500; line-height: 1.2; }
.home-action-sub { font-size: 11px; color: var(--text-faint); margin-top: 2px; }

.home-section {
  max-width: 1080px;
  margin: 32px auto 0;
  padding: 0 16px;
}
.home-sec-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.home-sec-h h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
.home-sec-h .meta {
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: none;
}
.home-sec-h .meta:hover { color: var(--text); }

.home-stam-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.home-stam-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-elev-2);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.home-stam-chip:hover { background: var(--bg-elev-1); border: 1px solid var(--border-strong); padding: 11px 13px; }
.home-stam-naam { font-size: 13px; font-weight: 500; }
.home-stam-aantal { font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); }

.home-recent-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.home-recent-card {
  text-decoration: none;
  color: var(--text);
  display: block;
}
.home-recent-img {
  aspect-ratio: 1;
  background: var(--bg-elev-2);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.home-recent-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-recent-img .placeholder { font-size: 24px; color: var(--text-faint); }
.home-recent-naam {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

.home-foot {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin: 48px auto 24px;
  padding: 0 16px;
}

@media (max-width: 880px) {
  .home-actions { grid-template-columns: repeat(2, 1fr); }
  .home-stam-grid { grid-template-columns: repeat(2, 1fr); }
  .home-recent-grid { grid-template-columns: repeat(3, 1fr); }
  .home-h1 { font-size: 28px; }
  .home-search-block { padding: 32px 16px 24px; }
  .home-search-bar { flex-wrap: wrap; }
  .home-search-bar input { width: 100%; }
}

@media (max-width: 540px) {
  .home-recent-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   TIPS & INFO — kennisbank
   ========================================================= */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 2rem;
}
.tip-card {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.tip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  border-color: var(--accent-blue, #3B82F6);
}
.tip-card-icon {
  font-size: 36px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EBF4FE, #F3EAFE);
  flex-shrink: 0;
}
.tip-card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tip-card-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue, #3B82F6);
  font-weight: 600;
  margin-bottom: 4px;
}
.tip-card-titel {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.tip-card-desc {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.5;
  margin: 0 0 12px;
  flex: 1;
}
.tip-card-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--text-faint);
  flex-wrap: wrap;
}

/* Artikel-pagina */
.tip-artikel {
  max-width: 760px;
  margin: 0 auto;
}
.tip-header {
  text-align: center;
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.tip-header-icon {
  font-size: 56px;
  margin-bottom: 12px;
}
.tip-header-titel {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 38px;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  line-height: 1.15;
}
.tip-header-desc {
  font-size: 16px;
  color: var(--text-mute);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.tip-header-meta {
  display: flex;
  gap: 16px;
  justify-content: center;
  font-size: 12px;
  color: var(--text-faint);
  flex-wrap: wrap;
}

/* Fase */
.tip-fase {
  margin: 0 0 3.5rem;
}
.tip-fase-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}
.tip-fase-num {
  display: inline-block;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tip-fase-titel {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.tip-fase-doel {
  color: var(--text-mute);
  font-size: 14px;
  margin: 0;
}
.tip-stappen {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Stap */
.tip-stap {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.tip-stap-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent-blue, #3B82F6);
  font-size: 14px;
}
.tip-stap-body {
  flex: 1;
  min-width: 0;
}
.tip-stap-titel {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.tip-stap-desc {
  color: var(--text-mute);
  font-size: 14px;
  margin: 0 0 14px;
  line-height: 1.55;
}

/* Checklist */
.tip-checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.tip-checklist li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
}
.tip-checklist li:before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 8px;
  color: var(--accent-blue, #3B82F6);
  font-weight: 600;
}
.tip-checklist li:last-child { border-bottom: 0; }

/* Kosten tabel */
.tip-kosten-tabel {
  background: var(--bg-elev-1);
  border-radius: var(--r-md);
  padding: 6px 16px;
  margin: 12px 0;
}
.tip-kosten-rij {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.tip-kosten-rij:last-child { border-bottom: 0; }
.tip-kosten-label { color: var(--text-mute); }
.tip-kosten-bedrag { font-weight: 500; font-variant-numeric: tabular-nums; }
.tip-kosten-totaal {
  margin-top: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #EBF4FE, #F3EAFE);
  border-radius: var(--r-md);
  font-size: 14px;
}
.tip-kosten-totaal div + div { margin-top: 4px; }

/* Opties (rashond/asielhond) */
.tip-opties {
  display: grid;
  gap: 14px;
  margin: 14px 0;
}
.tip-optie {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  background: var(--bg);
}
.tip-optie-titel {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--text);
}
.tip-optie-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tip-optie-h {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.tip-optie-pros .tip-optie-h { color: #16A34A; }
.tip-optie-cons .tip-optie-h { color: #DC2626; }
.tip-optie-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tip-optie-cols li {
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-mute);
}
.tip-optie-extra {
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--bg-elev-1);
  border-radius: var(--r-sm);
  font-size: 13px;
}
.tip-optie-warn {
  margin-top: 10px;
  padding: 10px 12px;
  background: #FEF3C7;
  border-left: 3px solid #F59E0B;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: #92400E;
}

/* Vlaggen (groen/rood) */
.tip-vlaggen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}
.tip-vlag-groen, .tip-vlag-rood {
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.tip-vlag-groen {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
}
.tip-vlag-rood {
  background: #FEF2F2;
  border: 1px solid #FECACA;
}
.tip-vlag-groen h4, .tip-vlag-rood h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tip-vlag-groen h4 { color: #166534; }
.tip-vlag-rood h4 { color: #991B1B; }
.tip-vlag-groen ul, .tip-vlag-rood ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tip-vlag-groen li, .tip-vlag-rood li {
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.5;
}
.tip-vlag-groen li { color: #166534; }
.tip-vlag-rood li { color: #991B1B; }

/* Tip blok */
.tip-tip {
  margin: 14px 0;
  padding: 12px 14px;
  background: linear-gradient(135deg, #EBF4FE, #F3EAFE);
  border-left: 3px solid var(--accent-blue, #3B82F6);
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 1.6;
}
.tip-tip a { color: var(--accent-blue, #3B82F6); font-weight: 500; }

/* Noodgevallen sectie */
.tip-nood {
  margin: 3rem 0;
  padding: 1.75rem 2rem;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--r-lg);
}
.tip-nood .tip-section-titel {
  color: #991B1B;
  margin-top: 0;
}
.tip-nood-list {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
.tip-nood-list li {
  padding: 4px 0;
  color: #7F1D1D;
}
.tip-nood-nummers {
  background: white;
  border-radius: var(--r-md);
  padding: 4px 16px;
  margin-top: 0.75rem;
}
.tip-nood-nummer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.tip-nood-nummer-row:last-child { border-bottom: 0; }
.tip-nood-label { color: var(--text-mute); }
.tip-nood-value { font-weight: 600; color: var(--text); }

/* Kerntips */
.tip-kerntips {
  margin: 3rem 0;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, #EBF4FE, #F3EAFE);
  border-radius: var(--r-lg);
}
.tip-kerntips .tip-section-titel {
  color: var(--text);
  margin-top: 0;
}
.tip-kerntips-list {
  margin: 0;
  padding-left: 1.5rem;
}
.tip-kerntips-list li {
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.55;
}

.tip-section-titel {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

/* Mobile */
@media (max-width: 700px) {
  .tip-header-titel { font-size: 28px; }
  .tip-fase-titel { font-size: 22px; }
  .tip-stap-titel { font-size: 18px; }
  .tip-stap { gap: 12px; }
  .tip-optie-cols, .tip-vlaggen { grid-template-columns: 1fr; }
  .tip-card { flex-direction: column; }
  .tip-card-icon { padding: 14px; }
  .tip-nood, .tip-kerntips { padding: 1.25rem 1.25rem; }
}

/* Tips: categorie-groepen op overzicht */
.tips-categorie {
  margin-top: 2.5rem;
}
.tips-categorie:first-of-type { margin-top: 1.5rem; }
.tips-cat-titel {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Voorstel-formulier */
.tip-voorstel {
  margin: 3rem 0 1.5rem;
}
.tip-voorstel-card {
  background: linear-gradient(135deg, #FAFBFD, #F4F6FB);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
}
.tip-voorstel-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tip-voorstel-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tip-voorstel-row label > span {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.tip-voorstel-row label .muted { color: var(--text-faint); font-weight: 400; }
.tip-voorstel-row label .rood { color: #DC2626; }
.tip-voorstel-row input,
.tip-voorstel-row textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s;
}
.tip-voorstel-row input:focus,
.tip-voorstel-row textarea:focus {
  outline: none;
  border-color: var(--accent-blue, #3B82F6);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.tip-voorstel-row textarea { resize: vertical; min-height: 100px; }
.tip-voorstel-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tip-voorstel-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.tip-voorstel-status {
  font-size: 13px;
}
.tip-voorstel-success { color: #166534; }
.tip-voorstel-error { color: #991B1B; }

@media (max-width: 700px) {
  .tip-voorstel-grid2 { grid-template-columns: 1fr; }
  .tip-voorstel-card { padding: 1.25rem; }
}

/* ============================================
   MARKDOWN ARTIKEL — frontend rendering
   ============================================ */
.tip-markdown-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.tip-markdown-body h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 2rem 0 1rem;
  line-height: 1.2;
}
.tip-markdown-body h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 1.75rem 0 0.75rem;
  line-height: 1.25;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.tip-markdown-body h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 21px;
  margin: 1.5rem 0 0.5rem;
}
.tip-markdown-body h4 {
  font-weight: 600;
  font-size: 17px;
  margin: 1.25rem 0 0.5rem;
}
.tip-markdown-body p {
  margin: 0 0 1rem;
}
.tip-markdown-body strong { font-weight: 600; }
.tip-markdown-body em { font-style: italic; }
.tip-markdown-body a {
  color: var(--accent-blue, #3B82F6);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tip-markdown-body a:hover { color: var(--accent-purple, #8B5CF6); }
.tip-markdown-body ul, .tip-markdown-body ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
.tip-markdown-body li {
  margin: 4px 0;
}
.tip-markdown-body blockquote {
  border-left: 3px solid var(--accent-blue, #3B82F6);
  padding: 8px 16px;
  margin: 1rem 0;
  background: var(--bg-elev-1);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text-mute);
  font-style: italic;
}
.tip-markdown-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.tip-markdown-body code {
  background: var(--bg-elev-2);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}
.tip-markdown-body pre {
  background: var(--bg-elev-2);
  padding: 12px 16px;
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: 1rem 0;
}
.tip-markdown-body pre code {
  background: none;
  padding: 0;
  font-size: 13px;
}
.tip-markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: 1rem 0;
}

/* Speciale blokken — visuals */
.md-block {
  margin: 1rem 0;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 15px;
  line-height: 1.6;
}
.md-tip {
  background: linear-gradient(135deg, #EBF4FE, #F3EAFE);
  border-left: 3px solid #3B82F6;
}
.md-info {
  background: #F0F9FF;
  border-left: 3px solid #0EA5E9;
}
.md-warning {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
}
.md-nood {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  padding: 1.5rem 1.75rem;
}
.md-nood h3 {
  margin: 0 0 0.75rem;
  color: #991B1B;
  font-family: var(--font-serif);
  font-weight: 400;
}

/* Checklist (special) */
.md-checklist {
  list-style: none !important;
  padding: 0 !important;
  margin: 1rem 0;
}
.md-checklist li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--border);
}
.md-checklist li:before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: #3B82F6;
  font-weight: 600;
}
.md-checklist li:last-child { border-bottom: 0; }

/* Kosten-tabel */
.md-kosten {
  background: var(--bg-elev-1);
  border-radius: var(--r-md);
  padding: 6px 16px;
  margin: 1rem 0;
}
.md-kosten-rij {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.md-kosten-rij:last-child { border-bottom: 0; }
.md-kosten-rij span:first-child { color: var(--text-mute); }
.md-kosten-rij span:last-child {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Vlaggen (groen/rood) */
.md-vlaggen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 1rem 0;
}
.md-vlag-groen, .md-vlag-rood, .md-vlag-neutraal {
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.md-vlag-groen { background: #F0FDF4; border: 1px solid #BBF7D0; }
.md-vlag-rood { background: #FEF2F2; border: 1px solid #FECACA; }
.md-vlag-neutraal { background: var(--bg-elev-1); border: 1px solid var(--border); }
.md-vlag-groen h4, .md-vlag-rood h4, .md-vlag-neutraal h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.md-vlag-groen h4 { color: #166534; }
.md-vlag-rood h4 { color: #991B1B; }
.md-vlag-groen ul, .md-vlag-rood ul, .md-vlag-neutraal ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
}
.md-vlag-groen li, .md-vlag-rood li, .md-vlag-neutraal li {
  padding: 4px 0;
  font-size: 14px;
}

/* Opties (voor/nadelen) */
.md-opties { margin: 1rem 0; display: flex; flex-direction: column; gap: 14px; }
.md-optie {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  background: var(--bg);
}
.md-optie h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 12px;
}
.md-optie-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.md-optie .md-h {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.md-optie-pros .md-h { color: #16A34A; }
.md-optie-cons .md-h { color: #DC2626; }
.md-optie-cols ul { list-style: none !important; padding: 0 !important; margin: 0; }
.md-optie-cols li { padding: 4px 0; font-size: 13px; }

@media (max-width: 700px) {
  .md-vlaggen { grid-template-columns: 1fr; }
  .md-optie-cols { grid-template-columns: 1fr; }
  .tip-markdown-body h1 { font-size: 26px; }
  .tip-markdown-body h2 { font-size: 22px; }
}
