/* ===============================
   Basisinstellingen & Font-face
   =============================== */

/* Verberg horizontale scroll overal (globale instelling) */
body {
  overflow-x: hidden;
}

/* Quicksand lettertypes */
/* Gebruik @font-face voor elk benodigd gewicht OF de variabele font */

/* Variable font (aanbevolen voor flexibiliteit en potentieel minder bestanden) */
@font-face {
  font-family: 'Quicksand'; /* Gebruik dezelfde naam, maar let op waar je 'QuicksandVar' gebruikt in je CSS */
  src: url('Quicksand-VariableFont_wght.woff2') format('woff2');
  font-weight: 300 700; /* Definieert het bereik van gewichten */
  font-style: normal;
  font-display: swap;
}

/* Fallback/Specifieke gewichten (alleen als je ze individueel nodig hebt of als backup voor variable font) */
/* Als je de variabele font gebruikt, heb je deze individuele definities NIET nodig, tenzij voor oudere browsers */
/* Als je ze wel behoudt, zorg dat 'font-family' hetzelfde is als de variabele, zodat de browser de juiste laadt. */

/* Light (300) */
@font-face {
  font-family: 'Quicksand';
  src: url('Quicksand-Light.woff2') format('woff2'),
       url('Quicksand-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Regular (400) */
@font-face {
  font-family: 'Quicksand';
  src: url('Quicksand-Regular.woff2') format('woff2'),
       url('Quicksand-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Medium (500) */
@font-face {
  font-family: 'Quicksand';
  src: url('Quicksand-Medium.woff2') format('woff2'),
       url('Quicksand-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* SemiBold (600) */
@font-face {
  font-family: 'Quicksand';
  src: url('Quicksand-SemiBold.woff2') format('woff2'),
       url('Quicksand-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Bold (700) */
@font-face {
  font-family: 'Quicksand';
  src: url('Quicksand-Bold.woff2') format('woff2'),
       url('Quicksand-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ===============================
   Donker/licht toggle-knop
   =============================== */

.dark-toggle,
#darkModeToggle.dark-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.5rem;
  color: inherit;
  transition: opacity 0.3s ease;
  position: relative;
  /* Dit is de regel die je toevoegt of aanpast */
  margin-left: 1rem; /* Pas deze waarde aan voor de gewenste afstand */
}

/* Icoontjes in toggle */
.dark-toggle .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.8rem;
  height: 1.8rem;
  transform: translate(-50%, -50%) scale(1);
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* Beginstand icoon */
.icon-moon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}
.icon-sun {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* In donkere modus */
html.dark-mode .icon-sun {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

html.dark-mode .icon-moon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ===============================
   Formulierstijl (licht)
   =============================== */

form {
  background-color: #e9e9e9;
  padding: 1.5rem;
  border-radius: 8px;
  color: #222;
  transition: background-color 0.3s ease, color 0.3s ease;
}

input,
textarea,
select {
  background-color: #ffffff;
  color: #111;
  border: 1px solid #666;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

input::placeholder,
textarea::placeholder {
  color: #555;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #005bb5;
  background-color: #fff;
  border-color: #005bb5;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #c0392b;
  background-color: #fff2f2;
  color: #8b0000;
}

.invalid-feedback {
  color: #c0392b;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  display: block;
}

#form-message.text-success {
  color: #198754;
}

#form-message.text-danger {
  color: #d9534f;
}

/* ================================
   Menu mobiel optimalisatie
   ================================ */

/* Algemene instellingen voor mobiel menu */
.nav-dropdown-sm {
  max-height: 100vh;
  overflow-y: auto;
  width: 100vw;
  max-width: 100%;
  left: 0;
  right: 0;
  box-sizing: border-box;
  padding: 0; /* Pas dit aan indien nodig */

  /* Verborgen toestand van mobiel menu (animatie) */
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

/* Open toestand wanneer Mobirise .opened toevoegt */
.navbar-dropdown.opened .nav-dropdown-sm {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

.navbar-dropdown {
  width: 100%;
  box-sizing: border-box;
}

/* Compacter mobiel menu items */
.nav-dropdown-sm .link,
.nav-dropdown-sm .dropdown-item {
  padding: 0.5rem 1.5rem !important;
  line-height: 1.3;
  box-sizing: border-box;
  width: 100%;
  word-break: break-word;
}

/* Optioneel: hoogte menu-items iets kleiner maken */
.nav-dropdown-sm .nav-item {
  padding: 0.3rem 1rem; /* Standaard is vaak groter */
  font-size: 0.95rem;
}

/* Zorg dat items niet te veel ruimte nemen op kleine schermen */
.nav-dropdown-sm .nav-link {
  white-space: normal;
  line-height: 1.2;
}

/* Compacter desktop dropdowns */
.nav-dropdown .link,
.nav-dropdown .dropdown-item {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  line-height: 1.3;
}


/* ===============================
   Donkere modus theming
   =============================== */

html.dark-mode {
  color-scheme: dark; /* Belangrijk voor native dark mode support in browsers */
}

/* Toggle icoon in donkere modus */
html.dark-mode .icon-sun {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

html.dark-mode .icon-moon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Formulier in donkere modus */
html.dark-mode form {
  background-color: #2c2c2c;
  color: #e0e0e0;
}

html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select {
  background-color: #484848;
  color: #eeeeee;
  border: 1px solid #555555;
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder {
  color: #bbbbbb;
}

html.dark-mode input:focus,
html.dark-mode textarea:focus,
html.dark-mode select:focus {
  outline: 2px solid #82b1ff;
  background-color: #454545;
  color: #ffffff;
}

html.dark-mode input[aria-invalid="true"],
html.dark-mode textarea[aria-invalid="true"] {
  border-color: #ff6b6b;
  background-color: #3a1f1f;
  color: #fff5f5;
}

html.dark-mode .invalid-feedback {
  color: #ff6b6b;
}

html.dark-mode #form-message.text-success {
  color: #a2f5a2;
}

html.dark-mode #form-message.text-danger {
  color: #ff7f7f;
}

/* Achtergrond & tekst Mobirise-secties in donkere modus */
html.dark-mode section[class*="cid-"],
html.dark-mode .header1,
html.dark-mode .content5 {
  background-color: #1e1e1e !important; /* Pas op met !important, indien mogelijk vermijden */
  color: #e0e0e0 !important;
}

html.dark-mode .mbr-overlay {
  background-color: #000 !important;
  opacity: 0.25 !important;
}

html.dark-mode .mbr-text,
html.dark-mode .mbr-section-title,
html.dark-mode .mbr-section-subtitle,
html.dark-mode .display-1,
html.dark-mode .display-2,
html.dark-mode .display-5,
html.dark-mode .display-7 {
  color: #e0e0e0 !important;
}

html.dark-mode .btn-success {
  background-color: #2e8b57 !important;
  color: #fff !important;
  border: none;
}

html.dark-mode .btn-secondary {
  background-color: #3d3d3d !important;
  color: #fff !important;
  border: none;
}

html.dark-mode a {
  color: #70b8ff;
}

html.dark-mode a:hover,
html.dark-mode a:focus {
  color: #addbff;
  text-decoration: underline;
}

html.dark-mode .team1 .item-wrapper {
    background-color: #333333 !important; /* Donkergrijs voor achtergrond */
    border-color: #444444 !important; /* Optioneel: iets donkerdere rand als er een is */
}