/* ==========================================================================
   Schietboekje — gedeelde stijlen
   Opbouw: 1. tokens  2. basis  3. typografie  4. componenten
           5. publieke site  6. auth  7. dashboard  8. hulpklassen
   Kleuren lopen via CSS-variabelen; licht/donker wisselt via data-bs-theme
   (gezet door js/theme.js op basis van prefers-color-scheme).
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root,
[data-bs-theme="light"] {
  --sl-bg: #f5f7f5;
  --sl-surface: #ffffff;
  --sl-surface-2: #edf1ee;
  --sl-border: #dbe2dd;
  --sl-text: #14201a;
  --sl-muted: #52615a;
  --sl-primary: #1e4d3a;          /* donkergroen */
  --sl-primary-hover: #163b2c;
  --sl-primary-contrast: #ffffff;
  --sl-primary-text: #1e4d3a;     /* groen als tekstkleur */
  --sl-primary-soft: #e2ede7;
  --sl-accent: #f0b23e;           /* amber accent */
  --sl-accent-hover: #e1a12a;
  --sl-accent-contrast: #1c1405;
  --sl-danger: #b42318;
  --sl-success: #1f7a4d;
  --sl-shadow: 0 1px 2px rgba(20, 32, 26, .06), 0 4px 16px rgba(20, 32, 26, .05);
  --sl-heading-grad: linear-gradient(90deg, #000000, #3c4a43);

  --sl-radius-sm: 8px;
  --sl-radius: 12px;
  --sl-radius-lg: 16px;
  --sl-radius-xl: 24px;
  --sl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sl-tap: 48px;                 /* minimale aanraakhoogte (één hand) */

  /* Bootstrap koppelen aan onze tokens */
  --bs-font-sans-serif: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-bg: var(--sl-bg);
  --bs-body-color: var(--sl-text);
  --bs-emphasis-color: var(--sl-text);
  --bs-secondary-color: var(--sl-muted);
  --bs-border-color: var(--sl-border);
  --bs-tertiary-bg: var(--sl-surface-2);
  --bs-secondary-bg: var(--sl-surface-2);
  --bs-primary: var(--sl-primary);
  --bs-primary-rgb: 30, 77, 58;
  --bs-link-color: var(--sl-primary-text);
  --bs-link-color-rgb: 30, 77, 58;
  --bs-link-hover-color: var(--sl-primary-hover);
  --bs-link-hover-color-rgb: 22, 59, 44;
  --bs-border-radius: var(--sl-radius);
  --bs-border-radius-lg: var(--sl-radius-lg);
  --bs-border-radius-sm: var(--sl-radius-sm);
  --bs-focus-ring-color: rgba(30, 77, 58, .35);
  --bs-form-invalid-color: var(--sl-danger);
  --bs-form-invalid-border-color: var(--sl-danger);
}

[data-bs-theme="dark"] {
  --sl-bg: #181818;
  --sl-surface: #1f1f1f;
  --sl-surface-2: #272727;
  --sl-border: #313131;
  --sl-text: #eceeec;
  --sl-muted: #a7b0aa;
  --sl-primary: #2f7556;
  --sl-primary-hover: #38845f;
  --sl-primary-contrast: #ffffff;
  --sl-primary-text: #7fcca2;
  --sl-primary-soft: rgba(127, 204, 162, .12);
  --sl-accent: #f2b851;
  --sl-accent-hover: #f6c66e;
  --sl-accent-contrast: #1c1405;
  --sl-danger: #f2877d;
  --sl-success: #7fcca2;
  --sl-shadow: none;
  --sl-heading-grad: linear-gradient(90deg, #ffffff, #b4bbb6);

  --bs-body-bg: var(--sl-bg);
  --bs-body-color: var(--sl-text);
  --bs-emphasis-color: var(--sl-text);
  --bs-secondary-color: var(--sl-muted);
  --bs-border-color: var(--sl-border);
  --bs-tertiary-bg: var(--sl-surface-2);
  --bs-secondary-bg: var(--sl-surface-2);
  --bs-primary-rgb: 127, 204, 162;
  --bs-link-color: var(--sl-primary-text);
  --bs-link-color-rgb: 127, 204, 162;
  --bs-link-hover-color: #a3dcbd;
  --bs-link-hover-color-rgb: 163, 220, 189;
  --bs-focus-ring-color: rgba(127, 204, 162, .4);
  --bs-form-invalid-color: var(--sl-danger);
  --bs-form-invalid-border-color: var(--sl-danger);
}

/* 2. Basis ----------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--bs-font-sans-serif);
  background: var(--sl-bg);
  color: var(--sl-text);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { text-wrap: balance; color: var(--sl-text); }
p, li, dd { text-wrap: pretty; }
a { text-underline-offset: 3px; }
img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--bs-focus-ring-color);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 2000;
  background: var(--sl-primary); color: var(--sl-primary-contrast);
  padding: 12px 16px; border-radius: var(--sl-radius-sm); font-weight: 600;
  transition: transform .3s var(--sl-ease);
}
.skip-link:focus { transform: translateY(80px); color: var(--sl-primary-contrast); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 3. Typografie (benoemde tekststijlen) ------------------------------------ */
.heading-1 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -.02em; }
.heading-2 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.015em; }
.heading-3 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-4 { font-size: 20px; line-height: 28px; font-weight: 600; }
@media (min-width: 768px) {
  .heading-1 { font-size: 48px; line-height: 48px; }
  .heading-2 { font-size: 36px; line-height: 40px; }
}
@media (min-width: 1200px) {
  .heading-1 { font-size: 60px; line-height: 60px; }
}
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 600; }
.body-lg { font-size: 18px; line-height: 28px; }
.body-6 { font-size: 14px; line-height: 20px; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.text-muted, .text-body-secondary { color: var(--sl-muted) !important; }
.text-brand { color: var(--sl-primary-text) !important; }
.num { font-variant-numeric: tabular-nums; }

/* 4. Componenten ----------------------------------------------------------- */
/* Knoppen: groot genoeg voor gebruik met één hand */
.btn {
  --bs-btn-padding-y: 12px;
  --bs-btn-padding-x: 16px;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: var(--sl-radius);
  min-height: var(--sl-tap);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: background-color .3s var(--sl-ease), border-color .3s var(--sl-ease), color .3s var(--sl-ease), transform .3s var(--sl-ease);
}
.btn:active { transform: scale(.98); }
.btn-sm { --bs-btn-padding-y: 8px; --bs-btn-padding-x: 12px; min-height: 40px; font-size: 14px; }
.btn-lg { --bs-btn-padding-y: 12px; --bs-btn-padding-x: 24px; min-height: 56px; font-size: 18px; }
.btn i { font-size: 20px; }

.btn-primary {
  --bs-btn-bg: var(--sl-primary); --bs-btn-border-color: var(--sl-primary); --bs-btn-color: var(--sl-primary-contrast);
  --bs-btn-hover-bg: var(--sl-primary-hover); --bs-btn-hover-border-color: var(--sl-primary-hover); --bs-btn-hover-color: var(--sl-primary-contrast);
  --bs-btn-active-bg: var(--sl-primary-hover); --bs-btn-active-border-color: var(--sl-primary-hover); --bs-btn-active-color: var(--sl-primary-contrast);
  --bs-btn-disabled-bg: var(--sl-primary); --bs-btn-disabled-border-color: var(--sl-primary); --bs-btn-disabled-color: var(--sl-primary-contrast);
  --bs-btn-focus-shadow-rgb: 30, 77, 58;
}
.btn-accent {
  --bs-btn-bg: var(--sl-accent); --bs-btn-border-color: var(--sl-accent); --bs-btn-color: var(--sl-accent-contrast);
  --bs-btn-hover-bg: var(--sl-accent-hover); --bs-btn-hover-border-color: var(--sl-accent-hover); --bs-btn-hover-color: var(--sl-accent-contrast);
  --bs-btn-active-bg: var(--sl-accent-hover); --bs-btn-active-border-color: var(--sl-accent-hover); --bs-btn-active-color: var(--sl-accent-contrast);
  --bs-btn-focus-shadow-rgb: 240, 178, 62;
}
.btn-outline-primary {
  --bs-btn-color: var(--sl-primary-text); --bs-btn-border-color: var(--sl-border); --bs-btn-bg: transparent;
  --bs-btn-hover-bg: var(--sl-primary-soft); --bs-btn-hover-border-color: var(--sl-primary-text); --bs-btn-hover-color: var(--sl-primary-text);
  --bs-btn-active-bg: var(--sl-primary-soft); --bs-btn-active-border-color: var(--sl-primary-text); --bs-btn-active-color: var(--sl-primary-text);
}
.btn-ghost {
  --bs-btn-color: var(--sl-text); --bs-btn-bg: transparent; --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--sl-surface-2); --bs-btn-hover-color: var(--sl-text);
  --bs-btn-active-bg: var(--sl-surface-2); --bs-btn-active-color: var(--sl-text); --bs-btn-active-border-color: transparent;
}
.btn-outline-danger { --bs-btn-color: var(--sl-danger); --bs-btn-border-color: var(--sl-border); --bs-btn-hover-bg: var(--sl-danger); --bs-btn-hover-border-color: var(--sl-danger); }
.btn-icon { width: var(--sl-tap); padding: 0; }

/* Kaarten */
.card, .sl-card {
  --bs-card-bg: var(--sl-surface);
  --bs-card-border-color: var(--sl-border);
  --bs-card-border-radius: var(--sl-radius-lg);
  --bs-card-inner-border-radius: calc(var(--sl-radius-lg) - 1px);
  background: var(--sl-surface);
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-lg);
  box-shadow: var(--sl-shadow);
}
.sl-card { padding: 24px; }
.sl-card-sm { padding: 16px; }

/* Formulieren */
.form-control, .form-select {
  min-height: var(--sl-tap);
  border-radius: var(--sl-radius);
  border-color: var(--sl-border);
  background-color: var(--sl-surface);
  color: var(--sl-text);
  font-size: 16px; /* voorkomt inzoomen op iOS */
}
.form-control:focus, .form-select:focus { border-color: var(--sl-primary-text); box-shadow: 0 0 0 4px var(--bs-focus-ring-color); }
.form-label { font-weight: 600; font-size: 14px; line-height: 20px; margin-bottom: 8px; }
.form-text { color: var(--sl-muted); }
.form-check-input { width: 22px; height: 22px; margin-top: 1px; border-color: var(--sl-muted); }
.form-check-input:checked { background-color: var(--sl-primary); border-color: var(--sl-primary); }
.form-check { min-height: 28px; padding-left: 32px; }
.form-check .form-check-input { margin-left: -32px; }
.form-check-label { padding-top: 1px; }
.invalid-feedback { font-weight: 500; }
.form-error-summary { border-radius: var(--sl-radius); }

/* Keuzetegels (sporten, disciplines) */
.choice-tile { position: relative; display: block; height: 100%; }
.choice-tile input { position: absolute; opacity: 0; pointer-events: none; }
.choice-tile .choice-body {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 16px; min-height: 64px;
  border: 1px solid var(--sl-border); border-radius: var(--sl-radius);
  background: var(--sl-surface); cursor: pointer;
  transition: border-color .3s var(--sl-ease), background-color .3s var(--sl-ease);
}
.choice-tile .choice-body:hover { border-color: var(--sl-primary-text); }
.choice-tile input:checked + .choice-body { border-color: var(--sl-primary-text); background: var(--sl-primary-soft); box-shadow: inset 0 0 0 1px var(--sl-primary-text); }
.choice-tile input:focus-visible + .choice-body { outline: 3px solid var(--bs-focus-ring-color); outline-offset: 2px; }
.choice-tile .choice-check { margin-left: auto; opacity: 0; color: var(--sl-primary-text); font-size: 22px; transition: opacity .3s var(--sl-ease); }
.choice-tile input:checked + .choice-body .choice-check { opacity: 1; }

.icon-badge {
  width: 48px; height: 48px; flex: 0 0 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--sl-radius); background: var(--sl-primary-soft); color: var(--sl-primary-text);
  font-size: 24px;
}
.icon-badge-sm { width: 40px; height: 40px; flex-basis: 40px; font-size: 20px; border-radius: var(--sl-radius-sm); }

.badge-soft { background: var(--sl-primary-soft); color: var(--sl-primary-text); font-weight: 600; border-radius: 999px; padding: 4px 12px; font-size: 12px; line-height: 16px; }
.badge-neutral { background: var(--sl-surface-2); color: var(--sl-muted); font-weight: 600; border-radius: 999px; padding: 4px 12px; font-size: 12px; line-height: 16px; }

.modal-content { background: var(--sl-surface); border: 1px solid var(--sl-border); border-radius: var(--sl-radius-xl); }
.modal-header, .modal-footer { border-color: var(--sl-border); padding: 16px 24px; }
.modal-body { padding: 24px; }
.dropdown-menu { --bs-dropdown-bg: var(--sl-surface); --bs-dropdown-border-color: var(--sl-border); --bs-dropdown-link-active-bg: var(--sl-primary); border-radius: var(--sl-radius); padding: 8px; }
.dropdown-item { border-radius: var(--sl-radius-sm); padding: 12px; display: flex; gap: 12px; align-items: center; }

.accordion {
  --bs-accordion-bg: var(--sl-surface);
  --bs-accordion-border-color: var(--sl-border);
  --bs-accordion-border-radius: var(--sl-radius-lg);
  --bs-accordion-inner-border-radius: calc(var(--sl-radius-lg) - 1px);
  --bs-accordion-btn-padding-y: 20px;
  --bs-accordion-btn-padding-x: 24px;
  --bs-accordion-body-padding-x: 24px;
  --bs-accordion-active-bg: var(--sl-surface);
  --bs-accordion-active-color: var(--sl-text);
  --bs-accordion-btn-focus-box-shadow: inset 0 0 0 3px var(--bs-focus-ring-color);
}
.accordion-button { font-weight: 600; }

.toast-container { z-index: 1100; }
.toast { border-radius: var(--sl-radius); border: 1px solid var(--sl-border); background: var(--sl-surface); }

/* Lege staat */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state .icon-badge { width: 64px; height: 64px; font-size: 32px; margin-bottom: 16px; border-radius: var(--sl-radius-lg); }

/* Skeleton tijdens laden */
.skeleton { background: var(--sl-surface-2); border-radius: var(--sl-radius); min-height: 24px; animation: sl-pulse 1.4s var(--sl-ease) infinite; }
@keyframes sl-pulse { 50% { opacity: .55; } }

/* Merk */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; line-height: 28px; color: var(--sl-text); text-decoration: none; }
.brand:hover { color: var(--sl-text); }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--sl-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }

/* 5. Publieke site --------------------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 1030;
  background: color-mix(in srgb, var(--sl-bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--sl-border);
}
.site-nav .navbar { padding: 12px 0; }
.site-nav .nav-link { font-weight: 500; color: var(--sl-muted); padding: 12px !important; border-radius: var(--sl-radius-sm); }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--sl-text); }
.site-nav .navbar-toggler { border: 0; width: var(--sl-tap); height: var(--sl-tap); padding: 0; color: var(--sl-text); }
.site-nav .navbar-toggler:focus { box-shadow: none; }
.site-nav .navbar-toggler:focus-visible { box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }
/* Hamburger dat animeert naar een kruis */
.burger { position: relative; display: inline-block; width: 22px; height: 14px; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .5s var(--sl-ease), opacity .3s var(--sl-ease); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1199.98px) {
  .site-nav .navbar-collapse { padding: 16px 0 24px; }
  .site-nav .navbar-nav .nav-link { font-size: 18px; padding: 12px 0 !important; }
  .site-nav .nav-actions { flex-direction: column; align-items: stretch !important; margin-top: 16px; }
  .site-nav .nav-actions .btn { width: 100%; }
}

.section { padding: 64px 0; }
@media (min-width: 992px) { .section { padding: 96px 0; } }
.section-alt { background: var(--sl-surface); border-top: 1px solid var(--sl-border); border-bottom: 1px solid var(--sl-border); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--sl-muted); font-size: 18px; line-height: 28px; margin: 0; }
.eyebrow { display: inline-block; color: var(--sl-primary-text); margin-bottom: 12px; }

/* Hero */
.hero { padding: 48px 0 64px; }
@media (min-width: 992px) { .hero { padding: 96px 0; } }
.hero h1 { max-width: 680px; background: var(--sl-heading-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 8px; margin-bottom: 16px; }
.hero .lead { max-width: 560px; color: var(--sl-muted); font-size: 18px; line-height: 28px; margin-bottom: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--sl-muted); font-size: 14px; line-height: 20px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { color: var(--sl-primary-text); font-size: 18px; }

/* Productvoorbeeld in de hero (pure HTML, geen afbeelding) */
.preview { background: var(--sl-surface); border: 1px solid var(--sl-border); border-radius: var(--sl-radius-xl); padding: 16px; box-shadow: var(--sl-shadow); max-width: 440px; margin-inline: auto; }
.preview-inner { background: var(--sl-bg); border-radius: var(--sl-radius); padding: 16px; }
.preview-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.preview-series { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.preview-series div { background: var(--sl-surface); border: 1px solid var(--sl-border); border-radius: var(--sl-radius-sm); padding: 8px 12px; }
.preview-series small { display: block; color: var(--sl-muted); font-size: 12px; line-height: 16px; }
.preview-series strong { font-size: 18px; line-height: 28px; font-variant-numeric: tabular-nums; }
.preview-total { font-size: 36px; line-height: 40px; font-weight: 600; font-variant-numeric: tabular-nums; }
.preview-bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: 16px; }
.preview-bars span { flex: 1; background: var(--sl-primary-soft); border-radius: 4px 4px 0 0; }
.preview-bars span.is-best { background: var(--sl-accent); }

/* Probleem / oplossing */
.compare-card h3 { display: flex; align-items: center; gap: 12px; }
.compare-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.compare-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--sl-muted); }
.compare-list i { font-size: 20px; line-height: 24px; flex: 0 0 auto; }
.compare-card.is-old i { color: var(--sl-muted); }
.compare-card.is-new { border-color: var(--sl-primary-text); }
.compare-card.is-new i { color: var(--sl-primary-text); }

.feature-card h3 { font-size: 18px; line-height: 28px; font-weight: 600; margin: 16px 0 8px; }
.feature-card p { color: var(--sl-muted); margin: 0; }

/* Stappen */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; }
.step-num { width: 40px; height: 40px; border-radius: 999px; background: var(--sl-primary); color: var(--sl-primary-contrast); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; margin-bottom: 16px; }
.step h3 { font-size: 18px; line-height: 28px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--sl-muted); margin: 0; }
.template-example { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .template-example { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.template-example dt { font-size: 12px; line-height: 16px; color: var(--sl-muted); font-weight: 500; }
.template-example dd { margin: 0; font-weight: 600; font-size: 18px; line-height: 28px; }

.sport-card ul { padding-left: 0; list-style: none; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sport-card.is-later { background: transparent; border-style: dashed; box-shadow: none; }

.privacy-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.privacy-points li { display: flex; gap: 16px; }
.privacy-points i { color: var(--sl-primary-text); font-size: 24px; flex: 0 0 auto; }
.privacy-points strong { display: block; }
.privacy-points span { color: var(--sl-muted); }
.legal-note { font-size: 14px; line-height: 20px; color: var(--sl-muted); border: 1px dashed var(--sl-border); border-radius: var(--sl-radius); padding: 12px 16px; }

.site-footer { border-top: 1px solid var(--sl-border); padding: 48px 0 32px; color: var(--sl-muted); font-size: 14px; line-height: 20px; }
.site-footer a { color: var(--sl-muted); text-decoration: none; display: inline-block; padding: 8px 0; }
.site-footer a:hover { color: var(--sl-text); text-decoration: underline; }

/* 6. Auth (login / registreren) ------------------------------------------- */
.auth-wrap { min-height: calc(100vh - 73px); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px 64px; }
@media (min-width: 768px) { .auth-wrap { align-items: center; } }
.auth-card { width: 100%; max-width: 480px; }
.auth-card.is-wide { max-width: 720px; }
.demo-hint { background: var(--sl-primary-soft); border-radius: var(--sl-radius); padding: 12px 16px; font-size: 14px; line-height: 20px; }
.onboard-progress { display: flex; gap: 8px; margin-bottom: 24px; }
.onboard-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--sl-surface-2); }
.onboard-progress span.is-done { background: var(--sl-primary-text); }

/* 7. Dashboard ------------------------------------------------------------- */
.app-body { min-height: 100vh; }
.app-sidebar {
  --bs-offcanvas-width: 280px;
  --bs-offcanvas-bg: var(--sl-surface);
  background: var(--sl-surface);
  border-right: 1px solid var(--sl-border);
}
@media (min-width: 992px) {
  .app-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 264px; overflow-y: auto; }
  .app-content { margin-left: 264px; }
}
.app-sidebar.offcanvas-lg { background-color: var(--sl-surface) !important; }
.app-sidebar .offcanvas-header { padding: 16px; border-bottom: 1px solid var(--sl-border); }
.app-sidebar .offcanvas-body { padding: 0; }
.min-w-0 { min-width: 0; }
.app-sidebar .sidebar-inner { display: flex; flex-direction: column; height: 100%; padding: 24px 16px; }
.side-nav { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; min-height: var(--sl-tap);
  border-radius: var(--sl-radius); color: var(--sl-muted); text-decoration: none; font-weight: 500;
  transition: background-color .3s var(--sl-ease), color .3s var(--sl-ease);
}
.side-nav a i { font-size: 22px; }
.side-nav a:hover { background: var(--sl-surface-2); color: var(--sl-text); }
.side-nav a[aria-current="page"] { background: var(--sl-primary-soft); color: var(--sl-primary-text); font-weight: 600; }
.sidebar-foot { margin-top: auto; padding-top: 24px; }

.app-topbar {
  position: sticky; top: 0; z-index: 1020;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--sl-bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sl-border);
}
@media (min-width: 768px) { .app-topbar { padding: 16px 32px; } }
.app-topbar h1 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; background: var(--sl-primary-soft); color: var(--sl-primary-text); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: 0 0 auto; overflow: hidden; }
.avatar-lg { width: 96px; height: 96px; font-size: 32px; }
.avatar-btn { border: 0; background: none; padding: 4px; border-radius: 999px; min-height: var(--sl-tap); display: inline-flex; align-items: center; }

.app-main { padding: 24px 16px 112px; max-width: 1200px; }
@media (min-width: 768px) { .app-main { padding: 32px 32px 112px; } }
@media (min-width: 992px) { .app-main { padding-bottom: 48px; } }

/* Onderbalk op mobiel */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--sl-surface); border-top: 1px solid var(--sl-border);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}
.bottom-nav a, .bottom-nav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; border: 0; background: none; border-radius: var(--sl-radius);
  color: var(--sl-muted); text-decoration: none; font-size: 12px; line-height: 16px; font-weight: 500;
}
.bottom-nav i { font-size: 24px; }
.bottom-nav [aria-current="page"] { color: var(--sl-primary-text); font-weight: 600; }
.bottom-nav .is-primary i { width: 44px; height: 44px; border-radius: 999px; background: var(--sl-accent); color: var(--sl-accent-contrast); display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 992px) { .bottom-nav { display: none; } }

/* Statistiekkaarten */
.stat-card { padding: 20px; height: 100%; }
.stat-card .stat-label { color: var(--sl-muted); font-size: 14px; line-height: 20px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stat-card .stat-value { font-size: 30px; line-height: 36px; font-weight: 600; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat-card .stat-sub { color: var(--sl-muted); font-size: 12px; line-height: 16px; margin-top: 4px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-title-row h2 { font-size: 18px; line-height: 28px; font-weight: 600; margin: 0; }
.chart-box { position: relative; height: 260px; }
@media (min-width: 768px) { .chart-box { height: 300px; } }

/* Sessielijst */
.session-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.session-item {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; min-height: 72px;
  border: 1px solid var(--sl-border); border-radius: var(--sl-radius);
  background: var(--sl-surface); color: var(--sl-text); text-decoration: none;
  transition: border-color .3s var(--sl-ease), background-color .3s var(--sl-ease);
}
.session-item:hover { border-color: var(--sl-primary-text); color: var(--sl-text); }
.session-date { width: 48px; flex: 0 0 48px; text-align: center; line-height: 1.1; }
.session-date .d { display: block; font-size: 20px; line-height: 28px; font-weight: 600; }
.session-date .m { display: block; font-size: 12px; line-height: 16px; color: var(--sl-muted); text-transform: uppercase; font-weight: 600; }
.session-info { flex: 1; min-width: 0; }
.session-info .t { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-info .s { color: var(--sl-muted); font-size: 14px; line-height: 20px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-score { text-align: right; font-variant-numeric: tabular-nums; }
.session-score .v { display: block; font-size: 20px; line-height: 28px; font-weight: 600; }
.session-score .p { display: block; font-size: 12px; line-height: 16px; color: var(--sl-muted); }

.hs-list { list-style: none; padding: 0; margin: 0; }
.hs-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sl-border); }
.hs-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hs-list li:first-child { padding-top: 0; }

/* Filterbalk */
.filter-bar { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .filter-bar { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1400px) { .filter-bar { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* Seriegrid in detail en invoer */
.series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 576px) { .series-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .series-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.series-cell { background: var(--sl-bg); border: 1px solid var(--sl-border); border-radius: var(--sl-radius); padding: 12px; }
.series-cell small { display: block; color: var(--sl-muted); font-size: 12px; line-height: 16px; }
.series-cell strong { font-size: 20px; line-height: 28px; font-variant-numeric: tabular-nums; }
.series-cell .bar { height: 4px; border-radius: 4px; background: var(--sl-surface-2); margin-top: 8px; overflow: hidden; }
.series-cell .bar span { display: block; height: 100%; background: var(--sl-primary-text); }

.series-input { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--sl-border); }
.series-input:last-child { border-bottom: 0; }
.series-input .series-label { grid-column: 1 / -1; font-weight: 600; }
@media (min-width: 576px) {
  .series-input { grid-template-columns: 80px 1fr 1fr; }
  .series-input .series-label { grid-column: auto; padding-top: 40px; }
}
.score-input { font-size: 20px !important; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.total-bar { position: sticky; bottom: 76px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--sl-radius); background: var(--sl-primary); color: var(--sl-primary-contrast); }
@media (min-width: 992px) { .total-bar { bottom: 16px; } }
.total-bar .v { font-size: 24px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Stappenindicator nieuwe sessie */
.stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 8px; }
.draft-status { display: flex; align-items: center; gap: 4px; min-height: 20px; margin: 0 0 16px; font-size: 12px; line-height: 16px; color: var(--sl-muted); }
.draft-status.is-error { color: var(--sl-danger); }
.draft-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-color: var(--sl-accent); }
.draft-banner .grow { flex: 1; min-width: 200px; }
.stepper li { flex: 1; }
.stepper-btn { display: block; width: 100%; padding: 8px 0; border: 0; background: none; text-align: left; color: inherit; border-radius: var(--sl-radius-sm); }
.stepper-btn:disabled { cursor: default; }
.stepper-btn:not(:disabled):hover .lbl { color: var(--sl-text); }
.stepper .bar { display: block; height: 4px; border-radius: 4px; background: var(--sl-surface-2); margin-bottom: 8px; }
.stepper .lbl { display: block; font-size: 12px; line-height: 16px; color: var(--sl-muted); font-weight: 500; }
.stepper li.is-done .bar, .stepper li.is-current .bar { background: var(--sl-primary-text); }
.stepper li.is-current .lbl { color: var(--sl-text); font-weight: 600; }
@media (max-width: 575.98px) { .stepper li:not(.is-current) .lbl { visibility: hidden; } }

.step-actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 24px; }
.step-actions .btn { flex: 1; }
@media (min-width: 576px) { .step-actions .btn { flex: 0 0 auto; min-width: 160px; } }

/* Foto's */
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.photo-tile { display: block; width: 100%; padding: 0; border: 1px solid var(--sl-border); border-radius: var(--sl-radius); background: var(--sl-surface); overflow: hidden; text-align: left; color: var(--sl-text); transition: border-color .3s var(--sl-ease); }
.photo-tile:hover { border-color: var(--sl-primary-text); }
.photo-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sl-surface-2); transition: transform .5s var(--sl-ease); }
.photo-tile:hover img { transform: scale(1.03); }
.photo-tile .cap { display: block; padding: 8px 12px 12px; }
.photo-tile .cap .t { display: block; font-weight: 600; font-size: 14px; line-height: 20px; }
.photo-tile .cap .s { display: block; color: var(--sl-muted); font-size: 12px; line-height: 16px; }
.photo-preview { position: relative; border-radius: var(--sl-radius); overflow: hidden; border: 1px solid var(--sl-border); max-width: 320px; }
.photo-preview img { display: block; width: 100%; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 16px; border: 2px dashed var(--sl-border); border-radius: var(--sl-radius); background: var(--sl-bg); text-align: center; cursor: pointer; }
.drop-zone:hover, .drop-zone:focus-within { border-color: var(--sl-primary-text); }
.drop-zone i { font-size: 32px; color: var(--sl-primary-text); }

/* Onderhoudstijdlijn */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--sl-border); }
.timeline li { position: relative; padding-left: 56px; padding-bottom: 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 999px; background: var(--sl-surface); border: 2px solid var(--sl-border); display: flex; align-items: center; justify-content: center; color: var(--sl-primary-text); font-size: 20px; }
.timeline .entry { background: var(--sl-bg); border: 1px solid var(--sl-border); border-radius: var(--sl-radius); padding: 12px 16px; }

/* Lijstrijen voor wapens / disciplines */
.item-row { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--sl-border); border-radius: var(--sl-radius-lg); background: var(--sl-surface); }
.item-row .grow { flex: 1; min-width: 0; }
.item-row .actions { display: flex; gap: 4px; }
.meta-list { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--sl-muted); font-size: 14px; line-height: 20px; margin: 4px 0 0; padding: 0; list-style: none; }

/* 8. Hulpklassen ----------------------------------------------------------- */
.gap-row { row-gap: 24px; }
.mw-680 { max-width: 680px; }
.text-balance { text-wrap: balance; }
.visually-hidden-focusable:focus { position: static !important; }
code { color: var(--sl-primary-text); font-size: .875em; }
.month-head { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sl-muted); margin: 24px 0 8px; }
.month-head:first-child { margin-top: 0; }

/* Verbindingsmelding (js/pwa.js) */
.net-status {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 1090;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 32px); padding: 8px 16px; border-radius: 999px;
  background: var(--sl-text); color: var(--sl-bg);
  font-size: 14px; line-height: 20px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}
.net-status[hidden] { display: none; }
.net-status i { font-size: 18px; }
.net-status.is-online { background: var(--sl-primary); color: var(--sl-primary-contrast); }
@media (min-width: 992px) { .net-status { bottom: 24px; left: calc(50% + 132px); } }
body:not(.app-body) .net-status { bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; }

/* Veilige zones bij gebruik als geïnstalleerde app (iPhone met notch) */
.app-topbar { padding-top: max(12px, env(safe-area-inset-top)); }
@media (min-width: 768px) { .app-topbar { padding-top: max(16px, env(safe-area-inset-top)); } }

/* 9. Merk: Schietboekje ------------------------------------------------------
   Schild uit het logo (assets/brand/schild-*.png) met de naam als tekst,
   zodat het in licht en donker scherp blijft. */
:root,
[data-bs-theme="light"] {
  --sl-brand-green: #178a35;   /* donkerder groen: leesbaar op wit */
  --sl-brand-glow: rgba(46, 204, 64, .18);
}
[data-bs-theme="dark"] {
  --sl-brand-green: #45d35f;   /* het groen uit het logo */
  --sl-brand-glow: rgba(69, 211, 95, .22);
}

.brand { gap: 10px; letter-spacing: -.01em; }
.brand-logo { width: 36px; height: 36px; flex: none; object-fit: contain; }
.brand-name { font-weight: 800; }
.brand-accent { color: var(--sl-brand-green); }
.app-topbar .brand-logo { width: 34px; height: 34px; }

/* Grote versie met slogan: homepage en inlogpagina's */
.brand-lockup { display: inline-flex; align-items: center; gap: 14px; color: var(--sl-text); }
.brand-lockup .brand-logo { width: 72px; height: 72px; filter: drop-shadow(0 6px 18px var(--sl-brand-glow)); }
.brand-lockup .brand-name { font-size: 34px; line-height: 1; font-style: italic; letter-spacing: -.02em; display: block; }
.brand-tagline { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--sl-muted); }
.brand-tagline .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sl-brand-green); }
.brand-lockup-sm .brand-logo { width: 56px; height: 56px; }
.brand-lockup-sm .brand-name { font-size: 26px; }
.hero .brand-lockup { margin-bottom: 28px; }
.auth-card > .brand-lockup { display: flex; justify-content: center; margin-bottom: 20px; }
@media (max-width: 575.98px) {
  .brand-lockup .brand-logo { width: 56px; height: 56px; }
  .brand-lockup .brand-name { font-size: 26px; }
  .brand-tagline { letter-spacing: .16em; }
}
.site-nav .nav-link { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-nav .navbar-nav .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; }
}

/* 10. Download en prijzen ----------------------------------------------------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.store-btn { position: relative; display: inline-flex; align-items: center; gap: 12px; min-width: 210px; padding: 12px 22px 12px 18px; border-radius: 14px; background: #000; color: #fff; border: 1.5px solid #3a3a3a; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.store-btn:hover, .store-btn:focus-visible { color: #fff; transform: translateY(-2px); border-color: var(--sl-brand-green); box-shadow: 0 10px 28px var(--sl-brand-glow); }
.store-btn i { font-size: 34px; }
.store-btn span { display: flex; flex-direction: column; font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.store-btn small { font-size: 12px; font-weight: 500; letter-spacing: 0; opacity: .85; }
.store-soon { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 999px; background: var(--sl-accent); color: var(--sl-accent-contrast); font-size: 11px; font-weight: 700; font-style: normal; }
@media (max-width: 575.98px) { .store-btn { flex: 1 1 100%; justify-content: center; } }
.download-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.download-steps li { display: flex; gap: 14px; align-items: flex-start; }
.download-steps li div { display: flex; flex-direction: column; }
.download-steps li span:not(.icon-badge) { color: var(--sl-muted); }

.price-card { padding: 32px; border: 2px solid var(--sl-brand-green); box-shadow: 0 10px 40px var(--sl-brand-glow); }
.price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.price-amount { display: flex; flex-direction: column; align-items: flex-end; }
.price-value { font-size: 44px; font-weight: 800; line-height: 1; color: var(--sl-brand-green); }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; }
.price-list i { color: var(--sl-brand-green); font-size: 22px; flex: none; }

/* 11. Nieuws ------------------------------------------------------------------- */
.news-filter { margin-bottom: 8px; }
.news-filter fieldset { border: 0; padding: 0; margin: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { position: relative; cursor: pointer; }
.filter-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--sl-border); background: var(--sl-surface); color: var(--sl-text); font-weight: 500; transition: background .15s ease, border-color .15s ease; }
.filter-chip:hover span { border-color: var(--sl-brand-green); }
.filter-chip input:checked + span { background: var(--sl-primary); border-color: var(--sl-primary); color: var(--sl-primary-contrast); }
.filter-chip input:focus-visible + span { outline: 2px solid var(--sl-brand-green); outline-offset: 2px; }
.news-card { position: relative; display: flex; flex-direction: column; }
.news-card-img { width: calc(100% + 48px); margin: -24px -24px 16px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--sl-radius) var(--sl-radius) 0 0; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.news-link { color: var(--sl-text); text-decoration: none; }
.news-link:hover { color: var(--sl-primary-text); }
.news-article-img { width: 100%; border-radius: var(--sl-radius-lg); margin: 8px 0 28px; }
.news-body { font-size: 18px; line-height: 30px; }
.news-body p { margin-bottom: 1.2em; }
.beta-badge { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--sl-accent); color: var(--sl-accent-contrast); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.beta-badge-lg { font-size: 13px; padding: 3px 10px; }
