/* ============================================
   SKIVERHUUR v2 — Base Styles
   Reset, typografie, kleuren, layout utilities
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Kleuren — warm, professioneel */
  --clr-bg: #f7f5f2;
  --clr-surface: #ffffff;
  --clr-surface-alt: #f2efe9;
  --clr-border: #e3ddd4;
  --clr-border-light: #eee9e3;
  --clr-text: #2c2520;
  --clr-text-muted: #7a7068;
  --clr-text-light: #a89e94;

  --clr-primary: #2d6da8;
  --clr-primary-hover: #245d92;
  --clr-accent: #2d6da8;
  --clr-accent-hover: #245d92;
  --clr-accent-light: #e8f1fa;

  --clr-success: #3B6D11;
  --clr-success-bg: #EAF3DE;
  --clr-warning: #7a6010;
  --clr-warning-bg: #f5eccc;
  --clr-danger: #A32D2D;
  --clr-danger-bg: #FCEBEB;
  --clr-info: #185FA5;
  --clr-info-bg: #E6F1FB;
  --clr-reserved: #1d4ed8;
  --clr-reserved-bg: #dbeafe;

  /* Tier kleuren */
  --clr-brons: #CD7F32;
  --clr-brons-bg: #f5e6d3;
  --clr-zilver: #A8A9AD;
  --clr-zilver-bg: #ebebeb;
  --clr-goud: #CFB53B;
  --clr-goud-bg: #f5eccc;

  /* Typografie */
  --font-main: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 26px;
  --fs-input: 16px; /* voorkomt iOS zoom */

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 24px;
  --sp-2xl: 32px;

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

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-normal: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--clr-text);
  background: var(--clr-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--clr-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Focus stijlen voor toegankelijkheid */
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}

/* --- Typografie --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--clr-text);
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

.text-muted { color: var(--clr-text-muted); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Layout Utilities --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: var(--sp-xs); }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.gap-lg { gap: var(--sp-lg); }
.gap-xl { gap: var(--sp-xl); }

.grid { display: grid; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-xl { margin-top: var(--sp-xl); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
.mb-xl { margin-bottom: var(--sp-xl); }
.p-md { padding: var(--sp-md); }
.p-lg { padding: var(--sp-lg); }
.p-xl { padding: var(--sp-xl); }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Scrollbaar container --- */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .hide-mobile { display: none !important; }
}

@media (max-width: 480px) {
  :root {
    --fs-base: 15px;
    --sp-xl: 20px;
  }
}

/* --- Print --- */
@media print {
  body > *:not(#printOverlay) { display: none !important; }
  #printOverlay {
    display: block !important;
    position: static !important;
    background: none !important;
    padding: 0 !important;
  }
  #printDoc {
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .no-print { display: none !important; }
}
