/* ============================================
   school-vakantie.be - Hoofdstijlblad
   Mobile-first, responsive design
   ============================================ */

/* --- CSS Variabelen --- */
:root {
  --oranje: #F5A623;
  --oranje-dark: #d4891a;
  --blauw: #3B82F6;
  --blauw-dark: #2563EB;
  --achtergrond: #FFFBF2;
  --wit: #FFFFFF;
  --tekst: #1A1A2E;
  --tekst-licht: #4A4A6A;
  --grijs-licht: #F0EDE8;
  --grijs-rand: #E0D8CC;
  --schaduw: 0 2px 12px rgba(26, 26, 46, 0.08);
  --schaduw-hover: 0 6px 24px rgba(26, 26, 46, 0.16);
  --radius: 10px;
  --radius-lg: 16px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--achtergrond);
  color: var(--tekst);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blauw);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--blauw-dark);
  text-decoration: underline;
}

/* --- Navbar --- */
.navbar {
  background: var(--wit);
  border-bottom: 3px solid var(--oranje);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--tekst);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar-logo .logo-accent {
  color: var(--oranje);
}

.navbar-logo:hover {
  text-decoration: none;
  color: var(--tekst);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--tekst);
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--oranje);
  color: var(--wit);
  text-decoration: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.hamburger:hover {
  background: var(--grijs-licht);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tekst);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--wit);
  border-top: 1px solid var(--grijs-rand);
  padding: 1rem;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--tekst);
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: block;
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: var(--oranje);
  color: var(--wit);
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .hamburger {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* --- Hero Sectie --- */
.hero {
  background: linear-gradient(135deg, var(--oranje) 0%, #e8941f 50%, var(--blauw) 100%);
  color: var(--wit);
  padding: 3rem 1rem 2.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--grijs-licht);
  border-bottom: 1px solid var(--grijs-rand);
  padding: 0.6rem 1rem;
}

.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--tekst-licht);
}

.breadcrumb a {
  color: var(--blauw);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.4rem;
  color: var(--tekst-licht);
}

/* --- Knoppen --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--wit);
  color: var(--oranje);
  border-color: var(--wit);
}

.btn-primary:hover {
  background: var(--oranje-dark);
  color: var(--wit);
  border-color: var(--oranje-dark);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--wit);
  border-color: var(--wit);
}

.btn-secondary:hover {
  background: var(--wit);
  color: var(--blauw);
  text-decoration: none;
}

.btn-oranje {
  background: var(--oranje);
  color: var(--wit);
  border-color: var(--oranje);
}

.btn-oranje:hover {
  background: var(--oranje-dark);
  border-color: var(--oranje-dark);
  text-decoration: none;
  color: var(--wit);
}

.btn-blauw {
  background: var(--blauw);
  color: var(--wit);
  border-color: var(--blauw);
}

.btn-blauw:hover {
  background: var(--blauw-dark);
  border-color: var(--blauw-dark);
  text-decoration: none;
  color: var(--wit);
}

/* --- Container / Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  flex: 1;
}

.section {
  padding: 3rem 1rem;
}

.section-alt {
  background: var(--grijs-licht);
}

.section-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--tekst);
  margin-bottom: 0.5rem;
}

.section-title-accent {
  color: var(--oranje);
}

.section-subtitle {
  color: var(--tekst-licht);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* --- Countdown Timer --- */
.countdown-section {
  background: linear-gradient(135deg, #1A1A2E 0%, #2d2d4e 100%);
  color: var(--wit);
  padding: 2.5rem 1rem;
  text-align: center;
}

.countdown-label {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.countdown-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--oranje);
}

.countdown-timer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(245, 166, 35, 0.4);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  min-width: 80px;
  backdrop-filter: blur(8px);
}

.countdown-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--oranje);
  line-height: 1;
}

.countdown-unit {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* --- Tabellen --- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  margin-bottom: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--wit);
  font-size: 0.95rem;
}

thead {
  background: var(--oranje);
  color: var(--wit);
}

thead th {
  padding: 0.9rem 1rem;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background: var(--grijs-licht);
}

tbody tr:hover {
  background: #FFF3DC;
}

tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--grijs-rand);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

.vakantie-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--oranje);
  color: var(--wit);
}

.badge-herfst { background: #E07B39; }
.badge-kerst { background: #3B82F6; }
.badge-kroko { background: #8B5CF6; }
.badge-paas { background: #10B981; }
.badge-zomer { background: #F59E0B; }

/* --- Vergelijkingstabel --- */
.vergelijk-tabel thead {
  background: var(--blauw);
}

.vergelijk-tabel .col-vl { border-left: 3px solid var(--oranje); }
.vergelijk-tabel .col-wa { border-left: 3px solid var(--blauw); }
.vergelijk-tabel .col-du { border-left: 3px solid #8B5CF6; }

/* --- Kaarten / Tegels --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--wit);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--schaduw);
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid var(--grijs-rand);
}

.card:hover {
  box-shadow: var(--schaduw-hover);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--tekst);
}

.card p {
  font-size: 0.9rem;
  color: var(--tekst-licht);
  margin-bottom: 1rem;
}

.card .card-link {
  color: var(--blauw);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Linktegels andere sites --- */
.linktegels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.linktegel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--wit);
  border: 2px solid var(--grijs-rand);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: var(--tekst);
  transition: all 0.25s;
  min-height: 120px;
  gap: 0.5rem;
}

.linktegel:hover {
  border-color: var(--oranje);
  background: #FFF8ED;
  transform: translateY(-3px);
  box-shadow: var(--schaduw-hover);
  text-decoration: none;
  color: var(--tekst);
}

.linktegel-icon {
  font-size: 1.8rem;
}

.linktegel-naam {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blauw);
}

.linktegel-beschrijving {
  font-size: 0.8rem;
  color: var(--tekst-licht);
}

/* --- FAQ Accordion --- */
.faq-lijst {
  max-width: 800px;
  margin: 1.5rem auto 0;
}

details {
  background: var(--wit);
  border: 1px solid var(--grijs-rand);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

details:hover {
  box-shadow: var(--schaduw);
}

details[open] {
  box-shadow: var(--schaduw);
  border-color: var(--oranje);
}

summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--tekst);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--oranje);
  font-weight: 700;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details[open] summary {
  color: var(--oranje);
  border-bottom: 1px solid var(--grijs-rand);
}

.faq-antwoord {
  padding: 1rem 1.25rem;
  color: var(--tekst-licht);
  line-height: 1.7;
}

.faq-antwoord p {
  margin-bottom: 0.5rem;
}

.faq-antwoord p:last-child {
  margin-bottom: 0;
}

/* --- Intro tekst block --- */
.intro-block {
  background: var(--wit);
  border-left: 4px solid var(--oranje);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--schaduw);
}

.intro-block p {
  margin-bottom: 1rem;
  color: var(--tekst-licht);
}

.intro-block p:last-child {
  margin-bottom: 0;
}

/* --- Content secties --- */
.content-section {
  max-width: 900px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--tekst);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--grijs-rand);
}

.content-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tekst);
  margin: 1.5rem 0 0.75rem;
}

.content-section p {
  margin-bottom: 1rem;
  color: var(--tekst-licht);
}

.content-section ul,
.content-section ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: var(--tekst-licht);
}

.content-section li {
  margin-bottom: 0.4rem;
}

/* --- Highlight box --- */
.highlight-box {
  background: linear-gradient(135deg, #FFF8ED, #FFF3DC);
  border: 2px solid var(--oranje);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box h3 {
  color: var(--oranje-dark);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* --- Info box --- */
.info-box {
  background: #EFF6FF;
  border: 2px solid var(--blauw);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--blauw-dark);
}

/* --- CTA Sectie --- */
.cta-sectie {
  background: linear-gradient(135deg, var(--oranje) 0%, var(--blauw) 100%);
  color: var(--wit);
  text-align: center;
  padding: 3rem 1rem;
}

.cta-sectie h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-sectie p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-knoppen {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
footer {
  background: var(--tekst);
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 1rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--wit);
  margin-bottom: 0.75rem;
}

.footer-brand .logo-accent {
  color: var(--oranje);
}

.footer-beschrijving {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-sectie h4 {
  color: var(--wit);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--oranje);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
  color: var(--oranje);
}

/* --- Vakantie periode cards --- */
.periode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.periode-card {
  background: var(--wit);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--schaduw);
  border-top: 4px solid var(--oranje);
  text-align: center;
}

.periode-card.herfst { border-top-color: #E07B39; }
.periode-card.kerst { border-top-color: #3B82F6; }
.periode-card.kroko { border-top-color: #8B5CF6; }
.periode-card.paas { border-top-color: #10B981; }
.periode-card.zomer { border-top-color: #F59E0B; }

.periode-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.periode-card .datum {
  font-size: 0.9rem;
  color: var(--tekst-licht);
  font-weight: 500;
}

.periode-card .weken {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  background: var(--grijs-licht);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  color: var(--tekst);
  font-weight: 600;
}

/* --- Tips lijst --- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.tip-item {
  background: var(--wit);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--schaduw);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tip-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tip-item h4 {
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.tip-item p {
  font-size: 0.85rem;
  color: var(--tekst-licht);
  margin: 0;
}

/* --- Pagina navigatie knoppen --- */
.pagina-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}

/* --- 404 pagina --- */
.error-sectie {
  text-align: center;
  padding: 5rem 1rem;
}

.error-code {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 900;
  color: var(--oranje);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-titel {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.error-tekst {
  color: var(--tekst-licht);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Wettelijk pagina --- */
.wettelijk-content {
  max-width: 800px;
  margin: 0 auto;
}

.wettelijk-content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--oranje);
  color: var(--tekst);
}

.wettelijk-content p {
  margin-bottom: 1rem;
  color: var(--tekst-licht);
}

.wettelijk-content a {
  color: var(--blauw);
}

/* --- Skip link (toegankelijkheid) --- */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--oranje);
  color: var(--wit);
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* --- Utility klassen --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* --- Print stijlen --- */
@media print {
  .navbar, footer, .cta-sectie, .hamburger, .countdown-section { display: none; }
  body { background: white; color: black; }
  a { color: black; }
  table { font-size: 10pt; }
}
