/* ============================================
   CheckjeGebrek — Stylesheet
   Juridisch Loket stijl: Lora + Source Sans 3,
   drielaags kleurstructuur
   ============================================ */

:root {
  --primary: #1A5C35;
  --primary-dark: #134228;
  --primary-light: #E8F5EE;
  --primary-100: #D4F0DE;
  --accent: #4EC96B;
  --success: #2E9E4F;
  --success-light: #E8F5EE;
  --warning: #D97706;
  --warning-light: #FFFBEB;
  --danger: #DC2626;
  --danger-light: #FEF2F2;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --white: #FFFFFF;

  /* Laagstructuur */
  --layer-dark: #1A3A2A;
  --layer-muted: #F7F9F7;
  --text-dark: #1C2B20;
  --text-body: #3D4E43;
  --card-border: #D8E5DC;

  /* Typografie */
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font: var(--font-body);

  /* Radii — minder rond, zakelijker */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(26,58,42,0.08), 0 1px 2px rgba(26,58,42,0.05);
  --shadow-md: 0 4px 12px rgba(26,58,42,0.10), 0 2px 4px rgba(26,58,42,0.06);
  --shadow-lg: 0 8px 24px rgba(26,58,42,0.12), 0 4px 8px rgba(26,58,42,0.06);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.8;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text-dark);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem; font-weight: 600; color: var(--text-dark); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; background: var(--white); }
.section-alt { background: var(--layer-muted); }

/* ============================================
   Navigatie — donker, Juridisch Loket stijl
   ============================================ */
.navbar {
  background: var(--layer-dark);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
}
.navbar-brand:hover { text-decoration: none; color: var(--white); }
.navbar-nav {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  align-items: center;
}
.navbar-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
}
.navbar-nav .btn { padding: 0.45rem 1rem; font-size: 0.9rem; }
.navbar-nav .btn-primary {
  background: var(--accent);
  color: #0F2318;
  border-color: transparent;
}
.navbar-nav .btn-primary:hover {
  background: #3db85a;
  color: #0F2318;
}
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: rgba(255,255,255,0.85);
  font-size: 1.5rem;
  line-height: 1;
}
@media (max-width: 768px) {
  .navbar-toggle { display: block; }
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--layer-dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { display: block; width: 100%; }
}

/* ============================================
   Knoppen — 6px radius, zakelijk
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  font-family: var(--font-body);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,0.16); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-light); color: var(--primary); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #1A7A3C; color: var(--white); }
.btn-ghost { background: transparent; color: var(--gray-600); box-shadow: none; }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); box-shadow: none; }
.btn-white { background: var(--white); color: var(--primary); font-weight: 700; }
.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  box-shadow: none;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1.05rem; border-radius: 8px; }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ============================================
   Kaarten — 8px, groene rand
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 1.5rem; }
.card-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--layer-muted);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
}
.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.alert-info { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.alert-success { background: var(--success-light); border-color: var(--success); color: #065F46; }
.alert-warning { background: var(--warning-light); border-color: var(--warning); color: #92400E; }
.alert-danger { background: var(--danger-light); border-color: var(--danger); color: #991B1B; }

/* ============================================
   Formulieren
   ============================================ */
.form-group { margin-bottom: 1.15rem; }
.form-group:last-child { margin-bottom: 0; }
label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}
.label-hint { font-weight: 400; color: var(--gray-500); }
input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.5;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 92, 53, 0.15);
}
textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; gap: 1rem; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 580px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 1.5rem 0;
}
.form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-primary { background: var(--primary-100); color: var(--primary-dark); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-success { background: var(--success-light); color: var(--success); }

/* ============================================
   Hero — donkere achtergrond, eleganter
   ============================================ */
.hero {
  background: var(--layer-dark);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 60%, rgba(78,201,107,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(255,255,255,0.04) 0%, transparent 45%);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(78,201,107,0.15);
  border: 1px solid rgba(78,201,107,0.35);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #A8E6BC;
}
.hero h1 {
  margin-bottom: 1rem;
  color: var(--white);
  font-family: var(--font-heading);
}
.hero-sub {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  color: rgba(255,255,255,0.88);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================
   Feature kaarten (homepage)
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  border-color: var(--primary);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.feature-icon.blue { background: var(--primary-light); }
.feature-icon.green { background: var(--success-light); }
.feature-icon.orange { background: var(--warning-light); }
.feature-card h3 { margin-bottom: 0.4rem; color: var(--text-dark); }
.feature-card p { color: var(--gray-500); font-size: 0.92rem; margin-bottom: 1.25rem; }
.link-arrow { color: var(--primary); font-weight: 600; font-size: 0.88rem; display: flex; align-items: center; gap: 0.3rem; }


/* ============================================
   Paginaheader (subpagina's)
   ============================================ */
.page-header {
  background: var(--layer-dark);
  color: var(--white);
  padding: 2.5rem 0;
}
.page-header h1 {
  color: var(--white);
  margin-bottom: 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-family: var(--font-heading);
}
.page-header p { opacity: 0.82; margin: 0; font-size: 1rem; }
.breadcrumb { font-size: 0.82rem; opacity: 0.58; margin-bottom: 0.6rem; }
.breadcrumb a { color: inherit; }
.breadcrumb span { margin: 0 0.35rem; }

/* ============================================
   Sectietitel
   ============================================ */
.section-title { margin-bottom: 2.5rem; }
.section-title.centered { text-align: center; }
.section-title.centered p { max-width: 580px; margin: 0.5rem auto 0; color: var(--gray-500); }
.section-eyebrow {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0;
}
.section-title h2 { margin-bottom: 0.4rem; }
.section-title p { color: var(--gray-500); margin: 0; }

/* ============================================
   Stappenplan
   ============================================ */
.steps-list { list-style: none; }
.step-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--card-border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.step-num.warn { background: var(--warning); }
.step-num.danger { background: var(--danger); }
.step-content h4 { margin-bottom: 0.2rem; font-size: 1rem; }
.step-content p { color: var(--gray-600); font-size: 0.92rem; margin: 0; }
.step-tip {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list { border-top: 1px solid var(--card-border); }
.faq-item { border-bottom: 1px solid var(--card-border); }
.faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 0;
  font-size: 0.97rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
}
.faq-btn:hover { color: var(--primary); }
.faq-chevron { font-size: 1.1rem; transition: transform 0.28s ease; flex-shrink: 0; color: var(--gray-400); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  display: none;
  padding: 0 0 1.1rem;
  color: var(--text-body);
  font-size: 0.93rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ============================================
   Gebreken grid
   ============================================ */
.gebreken-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1rem;
}
.gebrek-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gebrek-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gebrek-icon { font-size: 2.25rem; margin-bottom: 0.6rem; }
.gebrek-card h4 { font-size: 0.88rem; margin-bottom: 0.35rem; color: var(--text-dark); }

/* Wetsartikelen */
.wet-list { display: flex; flex-direction: column; gap: 1rem; }
.wet-article {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  border-left: 5px solid var(--primary);
}
.wet-num {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.wet-article h4 { margin-bottom: 0.4rem; color: var(--text-dark); }
.wet-article p { color: var(--gray-600); font-size: 0.92rem; margin: 0; }

/* Instanties */
.instanties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}
.instantie-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.instantie-card h4 { margin-bottom: 0.4rem; color: var(--text-dark); font-size: 1rem; }
.instantie-card p { color: var(--gray-600); font-size: 0.88rem; margin-bottom: 1rem; }
.instantie-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  background: var(--gray-100);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 500;
}
.tag.gratis { background: var(--success-light); color: var(--success); }

/* ============================================
   Beslisboom — formulier-stijl
   ============================================ */
.beslisboom-wrap { max-width: 680px; margin: 0 auto; }
.progress-wrap { margin-bottom: 2rem; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.progress-bar {
  height: 6px;
  background: var(--card-border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.question-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
  padding: 2rem 2.25rem;
  animation: fadeUp 0.3s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.q-tag {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.q-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.q-sub { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 1.75rem; }
.options-list { display: flex; flex-direction: column; gap: 0.55rem; }
.opt-btn {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition);
}
.opt-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}
@media (hover: hover) {
  .opt-btn:hover { transform: translateX(3px); }
}
.opt-icon { font-size: 1.25rem; flex-shrink: 0; }
.opt-text { flex: 1; }
.opt-arrow { color: var(--card-border); font-size: 1rem; transition: color var(--transition); }
.opt-btn:hover .opt-arrow { color: var(--primary); }
.tree-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

/* Uitkomst kaart */
.outcome-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: fadeUp 0.3s ease;
}
.outcome-card.lv-urgent { border-color: var(--danger); }
.outcome-card.lv-action { border-color: var(--primary); }
.outcome-card.lv-wait   { border-color: var(--warning); }
.outcome-card.lv-good   { border-color: var(--success); }
.outcome-head {
  padding: 1.75rem 2.25rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
}
.outcome-head.lv-urgent { background: var(--danger-light); }
.outcome-head.lv-action { background: var(--primary-light); }
.outcome-head.lv-wait   { background: var(--warning-light); }
.outcome-head.lv-good   { background: var(--success-light); }
.outcome-big-icon { font-size: 2.75rem; margin-bottom: 0.75rem; }
.outcome-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.outcome-title.lv-urgent { color: var(--danger); }
.outcome-title.lv-action { color: var(--primary-dark); }
.outcome-title.lv-wait   { color: var(--warning); }
.outcome-title.lv-good   { color: var(--success); }
.outcome-subtitle { color: var(--gray-600); font-size: 0.95rem; }
.outcome-body { padding: 1.75rem 2.25rem; }
.outcome-steps { list-style: none; }
.out-step {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.out-step:last-child { margin-bottom: 0; }
.out-step-n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.out-step p { color: var(--text-body); font-size: 0.93rem; margin: 0; }
.outcome-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ============================================
   Generator / Brief
   ============================================ */
.generator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) { .generator-layout { grid-template-columns: 1fr; } }

.letter-preview {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 2.5rem;
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 0.93rem;
  line-height: 1.9;
  color: var(--text-dark);
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.letter-placeholder { color: #bbb; font-style: italic; }
.letter-section { margin-bottom: 1.25rem; }
.letter-subject-line { font-weight: bold; }
.letter-preview p { margin-bottom: 0.75rem; }
.preview-actions {
  background: var(--layer-muted);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.aangetekend-info {
  background: var(--warning-light);
  border: 1px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #92400E;
}
.aangetekend-info strong { display: block; margin-bottom: 0.25rem; }

/* ============================================
   Footer — donkergroen
   ============================================ */
footer {
  background: #1A2E1F;
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-desc { font-size: 0.87rem; line-height: 1.7; }
.footer-col h5 {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.87rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  margin-top: 0.4rem;
}

/* ============================================
   Huursoort tweedeling (informatiepagina)
   ============================================ */
.huursoort-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 680px) { .huursoort-grid { grid-template-columns: 1fr; } }

.huursoort-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid;
  padding: 1.75rem;
}
.huursoort-card.sociaal { border-color: var(--success); background: var(--success-light); box-shadow: var(--shadow-md); }
.huursoort-card.vrij    { border-color: var(--warning); background: var(--warning-light); box-shadow: var(--shadow-md); }
.huursoort-card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.huursoort-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.huursoort-card .huursoort-sub {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  font-weight: 500;
}
.huursoort-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.huursoort-card ul li { font-size: 0.9rem; color: var(--gray-700); }

/* Sector-badge in de beslisboom */
.sector-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.sector-badge.sociaal { background: var(--success-light); color: var(--success); }
.sector-badge.vrij    { background: var(--warning-light); color: var(--warning); }

/* Utilities */
.divider { border: none; border-top: 1px solid var(--card-border); margin: 2rem 0; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); font-size: 0.9rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 1rem; }

/* ============================================
   Navbar logo
   ============================================ */
.navbar-logo {
  height: 34px;
  width: 34px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.footer-logo {
  height: 28px;
  width: 28px;
  object-fit: contain;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
}

/* ============================================
   Bottom Navigation — donkergroen, passend bij navbar
   ============================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--layer-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.22);
  height: 64px;
  padding: 0;
}
.bottom-nav-inner {
  display: flex;
  height: 100%;
  width: 100%;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255,255,255,0.55);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  border-radius: 0;
  padding: 0.4rem 0.2rem;
  position: relative;
}
.bottom-nav-item:hover, .bottom-nav-item.active {
  color: #A8E6BC;
  text-decoration: none;
}
.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: #A8E6BC;
  border-radius: 0 0 3px 3px;
}
.bottom-nav-item.bottom-nav-primary { color: rgba(255,255,255,0.75); }
.bottom-nav-item.bottom-nav-primary span:first-child {
  background: rgba(78,201,107,0.18);
  border-radius: 8px;
  padding: 4px 12px;
}
.bottom-nav-icon { font-size: 1.3rem; line-height: 1; }
.bottom-nav-item span:not(.bottom-nav-icon) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.bottom-nav-logo {
  height: 24px;
  width: 24px;
  object-fit: contain;
  border-radius: 50%;
}
@media (max-width: 768px) {
  .bottom-nav { display: flex; align-items: stretch; }
  body { padding-bottom: 64px; }
}

/* ============================================
   Mobile UX verbeteringen
   ============================================ */
@media (max-width: 480px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 56px; }

  .section { padding: 2.5rem 0; }
  .section-title { margin-bottom: 1.75rem; }
}

@media (max-width: 768px) {
  .opt-btn {
    min-height: 64px;
    padding: 1rem 1.1rem;
  }
  .opt-btn:active {
    transform: scale(0.98);
    background: var(--primary-light);
    border-color: var(--primary);
  }

  .preview-actions {
    position: sticky;
    bottom: 72px;
    z-index: 10;
    background: var(--white);
    border: 1px solid var(--card-border);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    margin: 0 -1.25rem;
    border-radius: 0;
    padding: 0.9rem 1.25rem;
  }
  .preview-actions .btn { flex: 1; justify-content: center; }

  .generator-layout { gap: 1.25rem; }
  .letter-preview { position: static; max-height: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================
   Print stijlen
   ============================================ */
@media print {
  .navbar, .page-header, .preview-actions, .aangetekend-info,
  .generator-form-panel, .bottom-nav, footer, .breadcrumb, h2.section-title { display: none !important; }
  body { padding-bottom: 0; }
  .generator-layout { grid-template-columns: 1fr; }
  .letter-preview {
    border: none;
    box-shadow: none;
    padding: 0;
    position: static;
    max-height: none;
    font-size: 11pt;
    line-height: 1.8;
  }
  body { background: white; }
  @page { margin: 2cm; }
}

/* ============================================
   Versie B — Persona verbeteringen
   ============================================ */

/* Tooltip (jargon uitleg bij hover/tap) */
.tip {
  border-bottom: 1px dashed var(--primary);
  color: var(--primary);
  cursor: help;
  position: relative;
  display: inline-block;
  font-style: normal;
}
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 5px;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: normal;
  width: 220px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  z-index: 50;
  font-family: var(--font-body);
  font-style: normal;
}
@media (hover: hover) {
  .tip:hover::after { opacity: 1; }
}
.tip:focus::after {
  opacity: 1;
}

/* Kostenbalk — gratis overzicht */
.cost-strip {
  background: var(--primary-light);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 0.85rem 0;
}
.cost-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.cost-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--primary-dark);
  font-weight: 600;
}
.cost-item-free {
  background: var(--primary);
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}
.cost-item-paid {
  background: var(--warning);
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Liever bellen CTA */
.phone-cta {
  background: var(--layer-dark);
  color: rgba(255,255,255,0.9);
  padding: 1.5rem 0;
  text-align: center;
}
.phone-cta h3 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.phone-cta p {
  font-size: 0.92rem;
  opacity: 0.78;
  margin-bottom: 0.9rem;
}
.phone-number {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0F2318;
  font-size: 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--transition);
}
.phone-number:hover { background: #3db85a; text-decoration: none; color: #0F2318; }

/* Scope-melding beslisboom */
.scope-note {
  background: var(--warning-light);
  border: 1px solid #F59E0B;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #78350F;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

/* Voorbereiding checklist generator */
.prep-checklist {
  background: var(--layer-muted);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.prep-checklist h4 {
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-size: 1rem;
}
.prep-checklist ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.prep-checklist li {
  font-size: 0.9rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.prep-checklist li::before {
  content: '☐';
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* Snel aan de slag kaarten */
.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.quickstart-card {
  background: var(--white);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: block;
}
.quickstart-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}
.quickstart-card-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.quickstart-card h4 { font-size: 0.97rem; margin-bottom: 0.25rem; color: var(--text-dark); }
.quickstart-card p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }
.quickstart-card .link-arrow { margin-top: 0.6rem; font-size: 0.82rem; }

@media (max-width: 480px) {
  .cost-strip-inner { gap: 1rem; }
  .phone-number { font-size: 1.2rem; }
}

/* Drie-koloms huursoort grid (sociaal/midden/vrij) */
.huursoort-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 900px) {
  .huursoort-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .huursoort-grid-3 { grid-template-columns: 1fr; }
}

/* Middenhuur kaart (nieuw) */
.huursoort-card.midden {
  border-color: #2563EB;
  background: #EFF6FF;
  box-shadow: var(--shadow-md);
}

/* Inclusie banner — niet-studenten */
.inclusie-banner {
  background: var(--primary-light);
  border-bottom: 1px solid var(--card-border);
  padding: 0.55rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--primary-dark);
}
.inclusie-banner strong { color: var(--primary); }

/* Mobiele zoom fix — voorkom horizontale overflow */
html { overflow-x: hidden; }
body { overflow-x: hidden; }

/* ============================================
   Contact / Over ons pagina
   ============================================ */

/* Verhaal banner */
.over-ons-banner {
  background: var(--layer-muted);
  border: 1px solid var(--card-border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-bottom: 2.5rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.over-ons-banner p { color: var(--text-body); font-size: 1rem; }
.over-ons-citaat {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

/* Team kaarten */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--white);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.team-naam { font-size: 1.15rem; margin-bottom: 0.2rem; }
.team-rol {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.team-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.55;
}

/* Vergelijking CheckjeGebrek vs ChatGPT */
.vergelijk-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 2rem;
}
@media (max-width: 720px) {
  .vergelijk-wrap {
    grid-template-columns: 1fr;
  }
  .vergelijk-vs-badge { margin: 0.5rem auto; }
}

.vergelijk-col {
  border-radius: var(--radius);
  border: 2px solid;
  overflow: hidden;
}
.vergelijk-pro { border-color: var(--success); }
.vergelijk-con { border-color: var(--gray-300); }

.vergelijk-header {
  padding: 1rem 1.25rem;
  background: var(--layer-muted);
  border-bottom: 1px solid var(--card-border);
}
.vergelijk-pro .vergelijk-header { background: var(--success-light); border-color: var(--success); }
.vergelijk-con .vergelijk-header { background: var(--gray-100); border-color: var(--gray-200); }

.vergelijk-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}
.vergelijk-badge-pro { color: var(--success); }
.vergelijk-badge-con { color: var(--gray-600); }

.vergelijk-lijst {
  list-style: none;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.vergelijk-lijst li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
}
.vergelijk-lijst strong { display: block; color: var(--text-dark); margin-bottom: 0.15rem; }
.vergelijk-lijst span { color: var(--gray-600); }

.vergelijk-item-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
  width: 24px;
  text-align: center;
}
.vergelijk-item-icon-con { opacity: 0.65; }

.vergelijk-vs-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--layer-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  margin-top: 3rem;
  flex-shrink: 0;
}

/* Contact kaarten */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.contact-kaart {
  background: var(--white);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.contact-kaart-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.contact-kaart h4 { margin-bottom: 0.35rem; color: var(--text-dark); }
.contact-kaart p { color: var(--gray-500); font-size: 0.88rem; margin: 0; }
