/* ============================================================
   MFC DE DOORBRAAK — Hoofdstijl
   Thema: Energiek, jeugdig, warm oranje & donkerblauw
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Righteous&display=swap');

:root {
  --oranje: #F97316;
  --oranje-licht: #FED7AA;
  --blauw: #1E3A5F;
  --blauw-donker: #0F2240;
  --blauw-midden: #2563A8;
  --wit: #FFFFFF;
  --lichtgrijs: #F8F7F4;
  --tekst: #1a1a2e;
  --tekst-licht: #6B7280;
  --rand: #E5E7EB;
  --schaduw: 0 4px 24px rgba(30,58,95,0.10);
  --schaduw-groot: 0 12px 48px rgba(30,58,95,0.18);
  --radius: 16px;
  --radius-klein: 8px;
  --nav-hoogte: 70px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--tekst);
  background: var(--lichtgrijs);
  min-height: 100vh;
  line-height: 1.65;
}

/* ── NAVIGATIE ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-hoogte);
  background: var(--blauw-donker);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 42px; height: 42px;
  background: var(--oranje);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Righteous', cursive;
  color: white; font-size: 1.2rem;
  font-weight: 900;
  flex-shrink: 0;
}

.nav-logo span {
  font-family: 'Righteous', cursive;
  color: var(--wit);
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.nav-logo span em {
  color: var(--oranje);
  font-style: normal;
}

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

.nav-links a {
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-klein);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.actief {
  color: var(--wit);
  background: rgba(249,115,22,0.20);
}

.nav-links a.actief {
  color: var(--oranje);
}

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; border-radius: 2px;
  transition: all 0.3s;
}

/* ── PAGINAINHOUD ──────────────────────────────────────────── */
main {
  margin-top: var(--nav-hoogte);
  min-height: calc(100vh - var(--nav-hoogte));
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── HERO SECTIE ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blauw-donker) 0%, var(--blauw-midden) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(249,115,22,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(249,115,22,0.10) 0%, transparent 40%);
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-family: 'Righteous', cursive;
  color: var(--wit);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 span { color: var(--oranje); }

.hero p {
  color: rgba(255,255,255,0.80);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.3px;
}

.btn-oranje {
  background: var(--oranje);
  color: white;
  box-shadow: 0 4px 20px rgba(249,115,22,0.40);
}
.btn-oranje:hover {
  background: #ea6c0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249,115,22,0.50);
}

.btn-omrand {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.50);
  margin-left: 0.75rem;
}
.btn-omrand:hover {
  background: rgba(255,255,255,0.10);
  border-color: white;
}

/* ── KAARTEN GRID ──────────────────────────────────────────── */
.kaarten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
}

.kaart {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.kaart:hover {
  transform: translateY(-5px);
  box-shadow: var(--schaduw-groot);
}

.kaart-afbeelding {
  width: 100%; height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blauw) 0%, var(--blauw-midden) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}

.kaart-body { padding: 1.5rem; }
.kaart-body h3 { color: var(--blauw); font-size: 1.15rem; margin-bottom: 0.5rem; }
.kaart-body p { color: var(--tekst-licht); font-size: 0.9rem; }

/* ── SECTIE TITELS ─────────────────────────────────────────── */
.sectie-titel {
  text-align: center;
  padding: 3.5rem 0 0;
}

.sectie-titel h2 {
  font-family: 'Righteous', cursive;
  color: var(--blauw);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.sectie-titel p {
  color: var(--tekst-licht);
  max-width: 550px;
  margin: 0 auto;
}

.sectie-lijn {
  width: 60px; height: 4px;
  background: var(--oranje);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ── FORMULIEREN ───────────────────────────────────────────── */
.formulier-wrapper {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  padding: 2.5rem;
  max-width: 720px;
  margin: 2.5rem auto;
}

.form-groep {
  margin-bottom: 1.25rem;
}

.form-groep label {
  display: block;
  font-weight: 700;
  color: var(--blauw);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-groep input,
.form-groep select,
.form-groep textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--rand);
  border-radius: var(--radius-klein);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--tekst);
  transition: border-color 0.2s;
  background: var(--lichtgrijs);
}

.form-groep input:focus,
.form-groep select:focus,
.form-groep textarea:focus {
  outline: none;
  border-color: var(--oranje);
  background: white;
}

.form-rij {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.verplicht { color: var(--oranje); }

/* ── SUCCES / FOUT MELDINGEN ───────────────────────────────── */
.melding {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-klein);
  margin-bottom: 1.25rem;
  font-weight: 700;
  display: none;
}
.melding.succes {
  background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7;
}
.melding.fout {
  background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5;
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--blauw-donker);
  color: rgba(255,255,255,0.70);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h4 {
  color: var(--oranje);
  font-family: 'Righteous', cursive;
  margin-bottom: 1rem;
  font-size: 1rem;
}

footer a {
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}
footer a:hover { color: var(--oranje); }

.footer-bodem {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ── BADGES / TAGS ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-oranje { background: var(--oranje-licht); color: #9A3412; }
.badge-blauw  { background: #DBEAFE; color: var(--blauw); }

/* ── PAGINAHEADER ──────────────────────────────────────────── */
.pagina-header {
  background: linear-gradient(135deg, var(--blauw) 0%, var(--blauw-midden) 100%);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pagina-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--lichtgrijs);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.pagina-header h1 {
  font-family: 'Righteous', cursive;
  color: var(--wit);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  position: relative; z-index: 1;
}
.pagina-header p {
  color: rgba(255,255,255,0.80);
  margin-top: 0.5rem;
  position: relative; z-index: 1;
}

/* ── NIEUWS FEED ───────────────────────────────────────────── */
.nieuws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.nieuws-kaart {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  overflow: hidden;
  border-left: 5px solid var(--oranje);
  padding: 1.5rem;
  transition: transform 0.2s;
}
.nieuws-kaart:hover { transform: translateY(-3px); }
.nieuws-kaart .datum {
  font-size: 0.78rem;
  color: var(--tekst-licht);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.nieuws-kaart h3 { color: var(--blauw); font-size: 1.05rem; margin-bottom: 0.5rem; }
.nieuws-kaart p  { color: var(--tekst-licht); font-size: 0.9rem; }

/* ── FOTO GALERIJ ──────────────────────────────────────────── */
.foto-rotatie {
  position: relative;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schaduw-groot);
  aspect-ratio: 16/9;
  background: var(--blauw);
}

.foto-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex; align-items: center; justify-content: center;
}
.foto-slide.actief { opacity: 1; }

.foto-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.foto-navigatie {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 1rem;
}
.foto-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rand);
  cursor: pointer;
  transition: background 0.2s;
}
.foto-dot.actief { background: var(--oranje); }

/* ── ORGANISATIES ──────────────────────────────────────────── */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}

.org-kaart {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.org-kaart::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--oranje);
}
.org-kaart:hover { transform: translateY(-4px); box-shadow: var(--schaduw-groot); }

.org-logo {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--oranje-licht);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.org-kaart h3 { color: var(--blauw); font-size: 1.1rem; margin-bottom: 0.25rem; }
.org-kaart .org-type { color: var(--tekst-licht); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1rem; }

.org-info { font-size: 0.88rem; color: var(--tekst-licht); }
.org-info a { color: var(--blauw-midden); text-decoration: none; font-weight: 600; }
.org-info a:hover { color: var(--oranje); }
.org-info-rij {
  display: flex; align-items: flex-start; gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.org-info-rij .icon { flex-shrink: 0; font-style: normal; }

/* ── ADMIN ─────────────────────────────────────────────────── */
.admin-wrapper {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.5rem 4rem;
}

.admin-tab-bar {
  display: flex; gap: 0.5rem;
  border-bottom: 2px solid var(--rand);
  margin-bottom: 2rem;
}
.admin-tab {
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  border: none; background: none;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--tekst-licht);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.admin-tab.actief, .admin-tab:hover {
  color: var(--oranje);
  border-bottom-color: var(--oranje);
}

.admin-paneel { display: none; }
.admin-paneel.actief { display: block; }

.admin-tabel {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schaduw);
}
.admin-tabel th {
  background: var(--blauw);
  color: white;
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 800;
}
.admin-tabel td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rand);
  font-size: 0.9rem;
}
.admin-tabel tr:last-child td { border-bottom: none; }
.admin-tabel tr:hover td { background: var(--lichtgrijs); }

.btn-klein {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 6px;
}
.btn-rood { background: #FEE2E2; color: #991B1B; border: none; cursor: pointer; font-weight: 700; font-family: 'Nunito', sans-serif; transition: background 0.2s; }
.btn-rood:hover { background: #FCA5A5; }

/* ── RESPONSIEF ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-hoogte); left: 0; right: 0;
    background: var(--blauw-donker);
    flex-direction: column; align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    transition: transform 0.3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.30);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.75rem 1rem; font-size: 0.95rem; }
  .hamburger { display: flex; }
  .form-rij { grid-template-columns: 1fr; }
  .admin-tabel { font-size: 0.78rem; }
  .admin-tabel th, .admin-tabel td { padding: 0.6rem 0.6rem; }
}

/* ── ANIMATIES ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease both; }
.fade-in-2 { animation: fadeInUp 0.6s 0.15s ease both; }
.fade-in-3 { animation: fadeInUp 0.6s 0.30s ease both; }

/* ── INLOGSCHERM ───────────────────────────────────────────── */
.inlog-kaart {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--schaduw-groot);
  padding: 3rem 2.5rem;
  max-width: 420px;
  margin: 8vh auto;
  text-align: center;
}
.inlog-kaart .logo-groot {
  width: 72px; height: 72px;
  background: var(--oranje);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Righteous', cursive;
  font-size: 2rem;
  color: white;
  margin: 0 auto 1.5rem;
}
.inlog-kaart h2 { font-family: 'Righteous', cursive; color: var(--blauw); margin-bottom: 0.25rem; }
.inlog-kaart .sub { color: var(--tekst-licht); font-size: 0.9rem; margin-bottom: 2rem; }

/* ── GOOGLE KALENDER ───────────────────────────────────────── */
.kalender-wrapper {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  overflow: hidden;
  margin: 2rem 0 3rem;
}
.kalender-wrapper iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

/* ── CONTACT OPTIES ────────────────────────────────────────── */
.contact-blokken {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 2rem 0;
}
.contact-blok {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  padding: 1.75rem;
  text-align: center;
  transition: transform 0.2s;
}
.contact-blok:hover { transform: translateY(-3px); }
.contact-blok .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.contact-blok h3 { color: var(--blauw); margin-bottom: 0.4rem; font-size: 1rem; }
.contact-blok p, .contact-blok a {
  color: var(--tekst-licht); font-size: 0.9rem;
  text-decoration: none;
}
.contact-blok a:hover { color: var(--oranje); }
