/* EYT Nederland - Odd Fellows Jeugdprijs & European Youth Tour */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blauw: #1a3a5c;
  --blauw-licht: #2a5480;
  --goud: #c8a84b;
  --goud-licht: #e8c96b;
  --wit: #ffffff;
  --grijs-licht: #f5f5f0;
  --grijs: #e0ddd5;
  --tekst: #2c2c2c;
  --tekst-midden: #555;
  --max-breedte: 1200px;
  --footer-hoogte: 30px;
  --font-hoofd: 'Georgia', 'Times New Roman', serif;
  --font-ui: 'Helvetica Neue', Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  color: var(--tekst);
  background: var(--wit);
  line-height: 1.6;
  padding-bottom: var(--footer-hoogte); /* ruimte voor vaste footer */
}

a {
  color: var(--blauw);
  text-decoration: none;
}

a:hover {
  color: var(--goud);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== NAVIGATIE ===== */
.site-header {
  background: var(--blauw);
  color: var(--wit);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--wit);
  font-family: var(--font-hoofd);
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.03em;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-logo span {
  color: var(--goud-licht);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-ui);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.actief {
  background: var(--blauw-licht);
  color: var(--goud-licht);
  text-decoration: none;
}

/* ===== PAGINA BANNER (foto + logo overlay) ===== */
.pagina-banner {
  position: relative;
  width: 100%;
  max-width: var(--max-breedte); /* zelfde breedte als content */
  margin: 0 auto;                /* gecentreerd */
  overflow: hidden;
  background: var(--blauw);
  line-height: 0; /* voorkomt witruimte onder img */
}

.pagina-banner .banner-foto {
  width: 100%;
  height: 280px;
  object-fit: cover;
  /* object-position wordt per pagina inline ingesteld op de <img> zelf */
  display: block;
  /* Lichte donkere overlay via filter zodat logo goed leesbaar is */
  filter: brightness(0.75);
}

.banner-logo-overlay {
  position: absolute;
  top: 1.25rem;
  left: 1.75rem;
  z-index: 10;
  line-height: 1;
}

.banner-logo-overlay a {
  display: block;
}

.banner-logo-overlay img {
  height: 72px;
  width: auto;
  display: block;
  /* Logo zichtbaar houden ook op foto */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

@media (max-width: 768px) {
  .pagina-banner .banner-foto {
    height: 180px;
  }
  .banner-logo-overlay img {
    height: 50px;
  }
  .banner-logo-overlay {
    top: 0.75rem;
    left: 1rem;
  }
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pagina-inhoud {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Twee kolommen */
.twee-kolommen {
  display: grid;
  grid-template-columns: 2fr 1fr;   /* tekst breed, smal element rechts */
  gap: 2.5rem;
  align-items: start;
}

.twee-kolommen.omgekeerd {
  grid-template-columns: 1fr 2fr;   /* smal element links, tekst breed */
}

.twee-kolommen.gelijk {
  grid-template-columns: 1fr 1fr;
}

/* Foto-secties: foto krijgt 50% van de breedte */
.twee-kolommen.met-foto,
.twee-kolommen.omgekeerd.met-foto {
  grid-template-columns: 1fr 1fr;
}

/* Drie kolommen */
.drie-kolommen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ===== SECTIES ===== */
.sectie {
  padding: 3rem 0;
  border-bottom: 1px solid var(--grijs);
}

.sectie:last-of-type {
  border-bottom: none;
}

.sectie-grijs {
  background: var(--grijs-licht);
  padding: 3rem 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

/* ===== TYPOGRAFIE ===== */
h1, h2, h3, h4 {
  font-family: var(--font-hoofd);
  line-height: 1.3;
  color: var(--blauw);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.65rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: var(--tekst-midden);
}

p:last-child { margin-bottom: 0; }

strong { color: var(--tekst); }

/* ===== CITATEN ===== */
.citaat {
  border-left: 4px solid var(--goud);
  background: var(--grijs-licht);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.citaat p {
  font-family: var(--font-hoofd);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--blauw);
  margin-bottom: 0.5rem;
}

.citaat-naam {
  font-size: 0.85rem;
  color: var(--tekst-midden);
  font-weight: bold;
  font-style: normal;
  font-family: var(--font-ui);
}

/* ===== AFBEELDINGEN ===== */
figure.afbeelding-kader,
.afbeelding-kader {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  margin: 0; /* reset browser default figure margin */
}

.afbeelding-kader img {
  width: 100%;
  aspect-ratio: 4 / 3;  /* hoogte = 75% van breedte (1 op 3/4) */
  object-fit: cover;
  /* object-position en transform worden beheerd door photo-editor.js
     (opgeslagen in localStorage, instelbaar via ?admin=jc2025) */
  display: block;
}

/* Krantenfoto's – staand formaat (2:3) */
.krant-portret img {
  aspect-ratio: 2 / 3;
}

/* Krantenfoto's – liggend (behoudt standaard 4:3) */
.krant-liggend img {
  aspect-ratio: 4 / 3;
}

/* Media-grid: 3 gelijke kolommen voor krantenknipsels */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 700px) {
  .media-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== FOTO WRAPPER (photo-editor.js) ===== */
.foto-wrapper {
  position: relative;
  overflow: hidden;   /* clips de img bij zoom (transform: scale) */
}

.foto-wrapper img {
  display: block;
  width: 100%;
}

/* Admin-highlight in admin-mode */
.foto-admin {
  cursor: grab;
  outline: 2px dashed #e07b00;
  outline-offset: -2px;
}

.foto-admin:active {
  cursor: grabbing;
}

/* Admin-balk onderaan het scherm */
#admin-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #e07b00;
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-family: var(--font-ui, sans-serif);
  z-index: 9999;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.25);
  letter-spacing: 0.01em;
}

#admin-banner kbd {
  background: rgba(255,255,255,0.25);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  font-family: inherit;
  font-size: 0.85em;
}

/* ===== BIJSCHRIFT (foto caption) ===== */
figcaption.bijschrift {
  padding: 0.55rem 0.8rem 0.65rem;
  background: var(--grijs-licht);
  border-top: 2px solid var(--goud);
  line-height: 1.5;
}

.bijschrift-quote {
  display: block;
  font-size: 0.78rem;
  color: var(--tekst);
  margin-bottom: 0.2rem;
}

.bijschrift-auteur {
  display: block;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--tekst-midden);
}

/* ===== KAARTEN ===== */
.kaart {
  background: var(--wit);
  border: 1px solid var(--grijs);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}

.kaart:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.kaart img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.kaart-inhoud {
  padding: 1.25rem;
}

.kaart-inhoud h3 {
  margin-bottom: 0.5rem;
}

/* ===== KNOPPEN ===== */
.knop {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
}

.knop-primair {
  background: var(--goud);
  color: var(--blauw);
}

.knop-primair:hover {
  background: var(--goud-licht);
  text-decoration: none;
  transform: translateY(-1px);
}

.knop-secundair {
  background: transparent;
  color: var(--blauw);
  border: 2px solid var(--blauw);
}

.knop-secundair:hover {
  background: var(--blauw);
  color: var(--wit);
  text-decoration: none;
}

/* ===== ACCENT BLOK ===== */
.accent-blok {
  background: var(--blauw);
  color: var(--wit);
  padding: 2rem 2.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.accent-blok h2, .accent-blok h3 {
  color: var(--goud-licht);
  margin-bottom: 0.75rem;
}

.accent-blok p {
  color: rgba(255,255,255,0.87);
}

.accent-blok a {
  color: var(--goud-licht);
}

.accent-blok strong {
  color: #fff;
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--grijs);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-vraag {
  background: var(--grijs-licht);
  padding: 1rem 1.25rem;
  font-weight: bold;
  font-family: var(--font-hoofd);
  color: var(--blauw);
  cursor: pointer;
}

.faq-antwoord {
  padding: 1rem 1.25rem;
  color: var(--tekst-midden);
}

/* ===== TEAM KAARTEN ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-kaart {
  text-align: center;
  padding: 1.25rem;
  background: var(--grijs-licht);
  border-radius: 8px;
}

.team-kaart img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--goud);
}

.team-kaart h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.team-kaart p {
  font-size: 0.85rem;
  color: var(--tekst-midden);
}

/* ===== CONTACT REGEL ===== */
.contact-regel {
  font-size: 0.85rem;
  color: var(--tekst-midden);
}

/* ===== FOOTER ===== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--footer-hoogte);
  background: var(--blauw);
  color: rgba(255,255,255,0.7);
  padding: 0 1.5rem;
  font-size: 0.75rem;
  z-index: 90;
  display: flex;
  align-items: center;
}

.footer-inner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.footer-inner a {
  color: var(--goud-licht);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .twee-kolommen,
  .twee-kolommen.omgekeerd {
    grid-template-columns: 1fr;
  }

  .drie-kolommen {
    grid-template-columns: 1fr;
  }

  .main-nav ul {
    flex-wrap: wrap;
    gap: 0.1rem;
  }

  .main-nav a {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }

  .header-inner {
    height: auto;
    padding: 0.5rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }

  .hero-eenvoudig h1 { font-size: 1.6rem; }
}
