*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --groen: #2a6b2a;
  --geel:  #fad201;
  --tekst: #2c2c2c;
  --licht: #f5f3ee;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--tekst);
}

/* ── Header & Nav ─────────────────────────────────────────── */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: background 0.3s;
}

/* Transparant op homepage (hero), groen op subpagina's */
body.home header          { background: transparent; }
body.subpage header       { background: transparent; position: absolute; }
body.home header.scrolled { background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); }

/* Logo — Duits Ortsteil-bord stijl (zoals "Weiler"-bord) */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--groen);
  color: var(--geel);
  font-family: 'Barlow', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0px;
  text-decoration: none;
  padding: 12px 20px;
  border: 6px solid var(--geel);
  border-radius: 8px;
  box-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
  margin-top: 22px;
  margin-left: 22px;
}

/* Nav links */
nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  margin-right: 34px;
}

nav a.nav-link {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 14px;
  text-transform: uppercase;
  transition: color 0.2s;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
nav a.nav-link:hover,
nav a.nav-link.active { color: var(--geel); }

nav .flag { padding: 6px; text-decoration: none; line-height: 1; }
nav .flag img { width: 22px; height: 16px; vertical-align: middle; display: inline-block; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* Mobile nav */
#mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--groen);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
#mobile-nav.open { display: flex; }
#mobile-nav a { color: white; font-size: 1.4rem; font-weight: 700; text-decoration: none; letter-spacing: 2px; }
#mobile-nav a:hover { color: var(--geel); }
#mobile-nav .close-btn {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: white; font-size: 2rem; cursor: pointer;
}
#mobile-nav .flags { display: flex; gap: 16px; margin-top: 12px; }
#mobile-nav .flags img { width: 30px; height: 22px; vertical-align: middle; }

/* ── Hero (homepage) ──────────────────────────────────────── */

.hero {
  min-height: 100vh;
  background-image: url('images/weide.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-tekst {
  text-align: center;
  color: var(--geel);
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.9;
  padding: 0 24px;
}
.hero-tekst p { margin: 0; }

/* ── Paginabanner (subpagina's) ───────────────────────────── */

.banner {
  min-height: 160px;
  background-image: url('images/weide2.jpg');
  background-size: 100% auto;
  background-position: top;
  background-repeat: no-repeat;
}

.banner h1 {
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Breadcrumb */
.breadcrumb {
  background: #eae8e2;
  padding: 10px 40px;
  font-size: 0.85rem;
  color: #666;
}
.breadcrumb a { color: var(--groen); text-decoration: none; }
.breadcrumb a:hover { color: var(--geel); }
.breadcrumb span { margin: 0 6px; }

/* ── Inhoud ───────────────────────────────────────────────── */

.inhoud {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.inhoud h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--groen);
  margin: 48px 0 18px;
}
.inhoud h2:first-child { margin-top: 0; }

.inhoud h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--groen);
  margin: 32px 0 12px;
}

.inhoud p { margin-bottom: 18px; }
.inhoud p:last-child { margin-bottom: 0; }

.inhoud ul {
  margin: 12px 0 18px 20px;
}
.inhoud ul li { margin-bottom: 8px; }

/* Homepage inhoud sectie */
.thuis-sectie {
  background: var(--licht);
  padding: 72px 32px;
}
.thuis-inhoud {
  max-width: 820px;
  margin: 0 auto;
}
.thuis-inhoud p { margin-bottom: 20px; }

.hoofd-inhoud {
  padding-left: 24px;
}

/* ── Wild items (altijd zichtbare omschrijving) ────────────── */

.wild-item {
  margin: 0 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.wild-kop {
  background: var(--groen);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 16px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.wild-kop:hover { background: #1e5220; }
.wild-desc:hover { background: #d9d7d1; }

.wild-pijl {
  font-size: 0.7rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.wild-item.open .wild-pijl { transform: rotate(90deg); }

.wild-kop .wild-count {
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  font-size: 0.88rem;
}

.wild-desc {
  background: #eae8e2;
  color: #666;
  padding: 8px 16px 10px;
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--groen);
}
.wild-desc p { margin: 0 0 8px; }
.wild-desc p:last-child { margin-bottom: 0; }
.wild-desc a { color: var(--groen); }

.wild-tabel-wrapper { display: none; }
.wild-item.open .wild-tabel-wrapper { display: block; }
.wild-tabel-wrapper .vogel-tabel { margin: 0; }

/* ── Uitklapcategorieën (vogels) ──────────────────────────── */

details.vogel-categorie {
  margin: 0 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

details.vogel-categorie summary {
  background: var(--groen);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
details.vogel-categorie summary::-webkit-details-marker { display: none; }
details.vogel-categorie summary::before {
  content: '▶';
  font-size: 0.7rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}
details.vogel-categorie[open] summary::before { transform: rotate(90deg); }
details.vogel-categorie summary:hover { background: #1e5220; }

details.vogel-categorie summary span {
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  font-size: 0.88rem;
}

details.vogel-categorie p {
  background: var(--groen);
  color: white;
  padding: 10px 14px;
  font-size: 0.92rem;
  margin: 0;
}

details.vogel-categorie .vogel-tabel { margin: 0; }

/* ── Vogeltabel ───────────────────────────────────────────── */

.vogel-tabel {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.92rem;
}
.vogel-tabel th {
  background: var(--groen);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
.vogel-tabel td {
  padding: 8px 14px;
  border-bottom: 1px solid #ddd;
}
.vogel-tabel tr:nth-child(even) td { background: #f5f5f0; }
.vogel-tabel a { color: var(--groen); }
.vogel-tabel a:hover { color: var(--geel); }

/* ── Hondenfoto's ─────────────────────────────────────────── */

.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.foto-grid figure {
  margin: 0;
  text-align: center;
}
.foto-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.foto-grid figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  color: #666;
  font-style: italic;
}

/* ── Waarschuwing box ─────────────────────────────────────── */

.tip-box {
  background: #fffbe6;
  border-left: 4px solid var(--geel);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}
.tip-box p { margin: 0; }

.waarschuwing-box {
  background: #fff3f3;
  border-left: 4px solid #c0392b;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
}
.waarschuwing-box p { margin: 0; }

/* ── Uitklaproutes ────────────────────────────────────────── */

details.route-item {
  margin: 0 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

details.route-item summary {
  background: var(--groen);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
details.route-item summary::-webkit-details-marker { display: none; }
details.route-item summary::before {
  content: '▶';
  font-size: 0.7rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}
details.route-item[open] summary::before { transform: rotate(90deg); }
details.route-item summary:hover { background: #1e5220; }

.route-body {
  padding: 16px 20px 20px;
}

/* ── Route info balk ──────────────────────────────────────── */

.route-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  background: #eae8e2;
  border-left: 4px solid var(--groen);
  padding: 14px 20px;
  margin: 16px 0 24px;
  border-radius: 0 4px 4px 0;
  font-size: 0.92rem;
}

/* ── Contactformulier ─────────────────────────────────────── */

.contact-form { max-width: 560px; margin-top: 28px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--tekst);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--groen);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group .required { color: #c0392b; margin-left: 2px; }

.btn {
  background: var(--groen);
  color: white;
  border: none;
  padding: 12px 30px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: #1e5220; }

/* ── Footer ───────────────────────────────────────────────── */

footer {
  background: var(--groen);
  color: white;
  padding: 20px 32px;
  font-size: 0.85rem;
}
footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 14px; }
footer a, footer a:link, footer a:visited {
  color: white !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
footer a:hover { color: var(--geel) !important; }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  header { padding: 12px 18px; }
  nav { display: none; }
  .hamburger { display: block; }

  .hero-tekst { font-size: 0.95rem; }
  .banner { padding: 70px 20px 24px; }
  .banner h1 { font-size: 1.7rem; }
  .breadcrumb { padding: 10px 20px; }
  .inhoud { padding: 36px 20px 60px; }
  .thuis-sectie { padding: 48px 20px; }
  .foto-grid { grid-template-columns: 1fr; }

  .vogel-tabel { font-size: 0.82rem; }
  .vogel-tabel td, .vogel-tabel th { padding: 7px 10px; }
}
