/* =========================================================
   1) Reset & Variabelen
   ========================================================= */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%; /* voorkom onbedoelde auto-zoom/resize op iOS */
}

/* Geen woordafbreking meer op de site */
p, li {
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

:root {
  /* Buttons */
  --btn-width: clamp(8rem, 30vw, 13rem);
  --btn-height: 44px;

  /* Typografie & vorm */
  --btn-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --btn-font-size: 20px;
  --btn-font-weight: 600;
  --btn-radius: 6px;
  --btn-letter-spacing: 0.3px;
  --btn-text-transform: none;

  /* Kleuren & schaduwen */
  --brand-blue: #007bff;
  --brand-green: #28a745;
  --brand-red: #dc3545;       /* rood voor 'Voor wie' */
  --text-muted: #555;
  --text-muted-2: #777;
  --shadow-strong: 0 10px 24px rgba(0,0,0,0.25);

  /* Spacing */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
}

input, select, textarea { font-size: 16px; } /* voorkomt iOS zoom op inputs */

body {
  color: var(--text-muted);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Standaard desktop/tablet */
.hero,
#nav-bar .navbar {
  padding-top: 5px;
}

/* Alleen mobiel / small screens */
@media (max-width: 576px) {
  .hero,
  #nav-bar .navbar {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

/* =========================================================
   2) Navbar
   ========================================================= */
#nav-bar {
  position: sticky;
  top: 0;
  z-index: 10;
}
.navbar { background: #fff; }
.navbar-toggler { border: none; }
.navbar-brand img { height: 40px; padding-left: 30px; }

.navbar-nav li { padding: 0 10px; }
.navbar-nav .nav-link {
  color: #555 !important;
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  padding: 0 .75rem;
}
#nav-bar ul li a:hover { color: var(--brand-blue) !important; }

/* Iets compacter op hele kleine schermen */
@media (max-width: 576px) {
  .navbar-brand img {
    padding-left: 10px;
    height: 32px;
  }
  .navbar-nav .nav-link {
    font-size: 15px;
    padding: 4px .75rem;
  }
}



/* =========================================================
   2b) Navbar – mobiel: alles links
   ========================================================= */
@media (max-width: 576px) {

  /* Menu-items links en ruim klikbaar */
  .navbar-nav .nav-link {
    display: block;
    text-align: left;
    padding: 0.5rem 1.25rem;
  }

  /* Dropdown-toggles (INFO, taal) ook links en over hele breedte klikbaar */
  .navbar .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
  }

  /* Taal-schakelaar: vlag + code netjes links */
  .navbar-nav .lang-toggle .nav-link {
    justify-content: flex-start;
  }
}

/* =========================================================
   3) Slider / Carousel
   ========================================================= */
#slider { width: 100%; }

.carousel-caption {
  top: 50%;
  transform: translateY(-50%);
  bottom: initial !important;
}

.carousel-caption h5 {
  font-size: 28px;
  font-weight: 600;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

/* Banners vullen schermhoogte responsief */
/* → wat lager croppen zodat je minder "bovenkant" ziet */
.banner-img {
  height: clamp(420px, 55vh, 950px);
  width: 100%;
  object-fit: cover;
  object-position: 50% 35%; /* voorheen 20% → nu lager beelddeel */
  display: block;
}

/* Op mobiel nog iets lager zodat middenstuk beter in beeld komt */
@media (max-width: 576px) {
  .banner-img {
    height: clamp(360px, 60vh, 820px);
    object-position: 50% 50%;
  }

  .carousel-caption h5 {
    font-size: 20px;
    padding: 0 10px;
  }
}

/* Verberg standaard Bootstrap-iconen; gebruik unicode pijlen */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none;
}
.carousel-control-prev-icon::after {
  content: '‹';
  font-size: 48px;
  color: #fff;
}
.carousel-control-next-icon::after {
  content: '›';
  font-size: 48px;
  color: #fff;
}

/* =========================================================
   4) Hero / Promo (homepage)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #fff;
  text-align: center;
  font-family: sans-serif;
  /* geen globale font-size, dat regelen we per heading */
}

.hero-media,
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-img {
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  margin-top: 150px;
}

.hero-content p.lead { margin-top: 40px; }

#promo {
  position: relative;
  background-size: cover;
  background-position: center;
}
#promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
  pointer-events: none;
}

/* Hero headings: zorg dat H1 groter is dan H2 */
#promo h1 {
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

#promo h2 {
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

/* Mobiele hero-tweaks: kleinere tekst, minder marge, beter passend op iPhone */
@media (max-width: 576px) {
  .hero {
    min-height: 90vh;
  }
  #promo h1 {
    font-size: clamp(28px, 8vw, 38px);
  }
  #promo h2 {
    font-size: clamp(22px, 6.5vw, 30px);
  }
  .hero-content {
    margin-top: 80px;
    padding: 0 10px;
  }
  .hero-content .lead {
    margin-top: 24px;
    font-size: 18px;
  }
}

/* Iets kleiner op kleine tablets */
@media (min-width: 577px) and (max-width: 768px) {
  .hero {
    font-size: 36px;
  }
  /* h1/h2 worden via clamp al goed geschaald; extra regels optioneel */
}

/* =========================================================
   5) About
   ========================================================= */
#about {
  padding: 60px 0;
  color: var(--text-muted);
}

#about h2 {
  margin-bottom: 20px;
  font-weight: 700;
  text-align: left;
}

#about .about-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

#about .about-content p:first-child {
  margin-top: 0;
}

/* Linkerkolom iets meer naar links op grotere schermen */
#about .about-text {
  padding-left: 0; /* haalt de extra “inspring” weg van Bootstrap's .col */
}

/* Rechterkolom naar rechts op grotere schermen */
#about .about-logo {
  text-align: right;
}

/* Afbeelding in de rechterkolom echt tegen de rechterkant op desktop */
@media (min-width: 769px) {
  #about .about-logo img {
    display: block;      /* blok-element */
    margin-left: auto;   /* duwt de afbeelding naar rechts */
    /* optioneel: max-width: 220px; */
  }
}

/* Op mobiel: links uitlijnen, wat padding, en logo onder de tekst */
@media (max-width: 768px) {
  #about {
    text-align: left;
    padding: 40px 16px;
  }

  #about .about-text,
  #about .about-logo {
    padding-left: 0;
    padding-right: 0;
    text-align: left;   /* wil je logo centreren op mobiel? verander dit in center */
    margin-top: 16px;
  }

  #about .about-logo img {
    display: block;
    margin: 0 0 8px 0; /* of: margin: 0 auto 8px; als je 'm wilt centreren */
  }
}

/* =========================================================
   6) Info
   ========================================================= */
#info {
  background-image:
    linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
    url(img/services.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #efefef !important;
  padding: 50px 0;
}
@media (max-width: 991.98px) { #info { background-attachment: scroll; } }
@supports (-webkit-touch-callout: none) { #info { background-attachment: scroll; } }

#info h1 {
  text-align: center;
  color: #efefef !important;
  padding-bottom: 10px;
}
#info h1::after {
  content: '';
  background: #efefef;
  display: block;
  height: 3px;
  width: 170px;
  margin: 20px auto 5px;
}
.info { margin-top: 40px; }

/* Kaarten */
.info .col-md-3 {
  border-radius: 12px;
  padding: 16px 14px 24px;
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    background-color .35s ease;
}
.info .col-md-3:hover {
  background-color: rgba(255,255,255,0.06);
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
  cursor: pointer;
}

/* Op mobiel: kaarten onder elkaar met wat extra marge */
@media (max-width: 576px) {
  .info {
    margin-top: 24px;
  }
  .info .col-md-3 {
    margin-bottom: 16px;
  }
}

/* Iconen */
#info .icon {
  font-size: 40px;
  margin: 20px auto 12px;
  padding: 20px;
  height: 80px;
  width: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color .35s ease,
    color .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
  border: 2px solid currentColor;
}
#info .icon i { transition: color .35s ease; }

/* Tekst in info cards */
#info h3 { margin-bottom: 8px; }
#info p {
  font-size: 14px;
  margin-top: 10px;
  color: #ccc;
}

/* Accentkleuren voor LEGO-kamp */
#info .icon.participant { color: var(--brand-red); }   /* Voor wie */
#info .icon.price       { color: var(--brand-green); } /* Prijs */
#info .icon.calendar,
#info .icon.location    { color: var(--brand-blue); }  /* Wanneer & Locatie */

/* Hover effecten */
.info .col-md-3:hover .icon.participant {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  box-shadow: 0 0 15px rgba(220,53,69,0.55);
}
.info .col-md-3:hover .icon.participant i { color: #fff; }

.info .col-md-3:hover .icon.price {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  box-shadow: 0 0 15px rgba(40,167,69,0.55);
}
.info .col-md-3:hover .icon.price i { color: #fff; }

.info .col-md-3:hover .icon.calendar,
.info .col-md-3:hover .icon.location {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  box-shadow: 0 0 15px rgba(0,123,255,0.55);
}
.info .col-md-3:hover .icon.calendar i,
.info .col-md-3:hover .icon.location i { color: #fff; }

/* Klikbare kaart (zonder onderstreping) */
.info-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  padding: 16px 14px 24px;
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    background-color .35s ease;
}
#info a.info-card,
#info a.info-card:hover,
#info a.info-card:focus,
#info a.info-card:active,
#info a.info-card:visited {
  text-decoration: none;
  color: inherit;
}
#info a.info-card * { text-decoration: none; }

/* =========================================================
   7) Contact
   ========================================================= */
#contact {
  background: #efefef;
  padding: 70px 0;
  color: var(--text-muted-2);
}

#contact .form-group { margin-bottom: var(--space-3); }
#contact .btn { margin-top: var(--space-2); }

/* Inputs algemeen (Bootstrap override) */
.form-control {
  border-radius: 0 !important;
  border: none !important;
}
::placeholder { color: #999 !important; }

@media (max-width: 576px) {
  #contact { padding: 60px 16px; }
}

/* =========================================================
   8) Footer
   ========================================================= */
#footer {
  background: #333;
  color: #fff;
  padding: 12px;
}
.fa-heart-o { margin: 3px; color: red; }

/* =========================================================
   9) Buttons (globaal)
   ========================================================= */
.btn,
.buy-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: var(--btn-width) !important;
  height: var(--btn-height) !important;
  max-width: 100% !important;
  padding: 0 1rem !important;

  font-family: var(--btn-font) !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  line-height: 1 !important;
  letter-spacing: var(--btn-letter-spacing) !important;
  text-transform: var(--btn-text-transform) !important;
  text-align: center !important;
  white-space: nowrap !important;

  border-radius: var(--btn-radius) !important;
  border: 1px solid transparent !important;
  box-sizing: border-box !important;
  cursor: pointer !important;

  outline: none !important;
}
.btn:focus,
.buy-btn:focus {
  outline: none;
  box-shadow: none !important;
}
.btn:focus-visible,
.buy-btn:focus-visible {
  outline: 2px solid rgba(33,150,243,0.6);
  outline-offset: 2px;
}

/* Op klein scherm: knoppen mogen wat smaller en tekst iets kleiner */
@media (max-width: 576px) {
  :root {
    --btn-font-size: 18px;
  }
  .btn,
  .buy-btn {
    width: auto !important;
    min-width: 9rem;
  }
}

/* =========================================================
   10) Thanks-pagina (thanks.html)
   ========================================================= */

/* === Thanks hero (compact & responsief) === */
/* → iets lager croppen zodat je minder pure bovenkant ziet */
#thanks {
  position: relative;
  height: clamp(220px, 32vh, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  background: url('img/bedankt.jpeg') no-repeat center 40%; /* was center center → nu lager */
  background-size: cover;
}
#thanks::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.32);
  z-index: 1;
  pointer-events: none;
}
#thanks .hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
#thanks h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.55);
}
#thanks .lead {
  font-size: clamp(15px, 2.1vw, 18px);
  line-height: 1.45;
  margin-bottom: 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.45);
}

/* Op mobiele schermen nog iets verder naar beneden in de afbeelding */
@media (max-width: 576px) {
  #thanks {
    height: clamp(220px, 40vh, 380px);
    background-position: center 55%;
  }
}

/* Email opt-in / inschrijfformulier (thanks.html) */
#email-optin {
  background: #efefef;
  padding: 70px 20px;
  text-align: left;
  color: var(--text-muted-2);
  border-top: none;
}

/* container-breedte beperken voor leesbaarheid */
#email-optin .container {
  max-width: 820px;
}

/* het formulier zelf iets smaller dan de container */
#email-optin #inschrijf-form {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0;
}

#email-optin h3 {
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
}

#email-optin p {
  font-size: 18px;
  color: #555;
  margin-bottom: 1.5rem;
}

#email-optin .form-group label {
  font-weight: 600;
  color: #333;
}

#email-optin .form-control {
  width: 100%;
  max-width: 500px;
  margin-top: 8px;
}

#email-optin .form-check-label {
  font-size: 15px;
  color: #444;
}

#email-optin .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 600;
}

#email-optin .form-text {
  font-size: 13px;
  color: #777;
}

#email-optin #inschrijf-feedback,
#email-optin #inschrijf-fout {
  font-size: 15px;
  margin-top: 20px;
}

@media (max-width: 576px) {
  #email-optin {
    padding: 40px 15px;
  }
  #email-optin h3 {
    font-size: 22px;
  }
  #email-optin p {
    font-size: 14px;
  }
  #email-optin .btn {
    width: 100%;
  }
}

/* =========================================================
   11) Toegankelijkheid / motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .info .col-md-3,
  #info .icon,
  #info .icon i {
    transition: none;
  }
}
