/* Basisinstellingen */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #111111;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-bottom: 1px solid #ddd;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo a {
  color: #111;
  text-decoration: none;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

/* Hero */
.hero-intro {
  background-color: #111;
  color: #fff;
  padding: 15px 20px;
  text-align: center;
}

.hero-intro-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-intro h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  margin-top: 0;
  white-space: nowrap;
}

.hero-intro p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Call to Action */
.cta-button {
  padding: 12px 30px;
  font-size: 1rem;
  background-color: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #f0f0f0;
}

.white-button {
  background-color: #fff;
  color: #000;
  font-weight: 700;
  padding: 18px 40px;
  font-size: 1.15rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.white-button:hover {
  background-color: #eee;
  transform: translateY(-2px);
}

/* Pagina Header */
.page-header {
  text-align: center;
  padding: 50px 20px 30px;
  background-color: #000;
  color: #fff;
}

.page-header h1 {
  margin: 0;
  font-size: 2.5rem;
}

/* Filterbar */
.filter-bar {
  padding: 20px 30px;
  background-color: #000;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: center;
  flex-direction: row;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.filter-bar select,
.filter-bar input,
.filter-bar .custom-multiselect {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #fff;
  color: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.filter-bar input[type='text'] {
  min-width: 180px;
}

/* Responsieve fallback */
@media (max-width: 768px) {
  .filter-bar {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Multiselect */
.custom-multiselect {
  position: relative;
  display: inline-block;
}

.multiselect-toggle {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #fff;
  color: #000;
  cursor: pointer;
  min-width: 200px;
}

.multiselect-options {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 1000;
  border-radius: 4px;
  width: 240px;
}

.multiselect-options label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #111;
}

.custom-multiselect.open .multiselect-options {
  display: block;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 40px;
}

.card {
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: #fff;
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.card h3 {
  margin: 10px;
  font-size: 1.1rem;
}

/* Paginatie */
.pagination {
  text-align: center;
  padding: 30px 20px 60px;
}

.page-link {
  display: inline-block;
  margin: 0 6px;
  padding: 10px 16px;
  border-radius: 6px;
  background-color: #eee;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-link:hover {
  background-color: #ddd;
}

.page-link.active {
  background-color: #000;
  color: #fff;
}

/* Donkere modus */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #111;
    color: #fff;
  }

  .card,
  .feature-box {
    background-color: #1a1a1a;
    color: #fff;
  }

  nav a,
  .logo a {
    color: #fff;
  }

  .cta-button {
    background-color: #fff;
    color: #000;
  }

  .cta-button:hover {
    background-color: #ccc;
  }

  .filter-bar,
  .multiselect-toggle,
  .multiselect-options {
    background-color: #222;
    color: #fff;
  }

  .filter-bar select,
  .filter-bar input,
  input,
  textarea,
  select,
  button {
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
  }

  .multiselect-options label {
    color: #eee;
  }

  .page-link {
    background-color: #333;
    color: #fff;
  }

  .page-link:hover {
    background-color: #444;
  }

  .page-link.active {
    background-color: #fff;
    color: #000;
  }
}

/* Spinner overlay */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  font-size: 1.2em;
  z-index: 1000;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.stat-box {
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1.2rem;
  flex: 1;
  min-width: 200px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-box strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.3rem;
}

.stat-box small {
  font-size: 0.9rem;
  color: #555;
}

