/* ============================================
   KNWU Actiewebsite – Responsive / Mobile-first
   ============================================ */

/* --- Ultra-small mobile (< 400px) --- */
@media (max-width: 399px) {
  .hero-counter {
    font-size: 1.75rem;
  }

  .countdown__item {
    min-width: 50px;
  }

  .countdown__number {
    font-size: 1.5rem;
  }

  /* Force single column on small screens */
  .toolkit-grid {
    grid-template-columns: 1fr;
  }

  /* Reduce timeline padding */
  .timeline-phase__header {
    padding: var(--space-md);
  }

  .timeline-phase__marker {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .timeline-track::before {
    left: 18px;
  }

  /* Admin tabs: scrollable on tiny screens */
  .admin-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-tab {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Modal full-width on tiny screens */
  .modal {
    max-width: calc(100vw - 24px);
  }

  .modal__header,
  .modal__body,
  .modal__footer {
    padding: var(--space-md);
  }
}

/* --- Mobile (default, < 768px) --- */

.header-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--wit);
  flex-direction: column;
  padding: var(--space-md);
  border-bottom: 2px solid var(--knwu-oranje);
  box-shadow: var(--shadow-lg);
}

.header-nav.open {
  display: flex;
}

.header-nav a {
  padding: var(--space-sm) var(--space-md);
  border-bottom: none;
}

.menu-toggle {
  display: block;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

.hero {
  padding: var(--space-2xl) 0;
}

.hero h1 {
  font-size: 1.75rem;
}

.hero-counter {
  font-size: 2.5rem;
}

.countdown__number {
  font-size: 1.75rem;
}

.countdown__item {
  min-width: 60px;
}

.footer-inner {
  flex-direction: column;
  text-align: center;
}

/* Cookie banner mobile */
.cookie-inner {
  flex-direction: column;
  text-align: center;
}

.cookie-buttons {
  width: 100%;
  justify-content: center;
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .hero {
    padding: var(--space-3xl) 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-counter {
    font-size: 3.5rem;
  }

  .countdown__number {
    font-size: 2.25rem;
  }

  .countdown__item {
    min-width: 70px;
  }

  .container {
    padding: 0 var(--space-xl);
  }

  .footer-inner {
    flex-direction: row;
    text-align: left;
  }

  .cookie-inner {
    flex-direction: row;
    text-align: left;
  }

  .cookie-buttons {
    width: auto;
  }
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .menu-toggle {
    display: none;
  }

  .header-nav {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-counter {
    font-size: 4rem;
  }

  .countdown__number {
    font-size: 2.5rem;
  }

  .countdown__item {
    min-width: 80px;
  }
}
