:root {
  --brown: #7a5230;
  --green: #8ec63f;
  --bg: #faf8f4;
  --muted: #6b6b6b;
  --line: #e7e0d6;
  --card-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 8px 22px rgba(0, 0, 0, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--brown);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--brown); }

/* ---------- Header / navigatie ---------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--brown);
  margin-right: auto;
}

.brand img {
  height: 44px;
  width: auto;
}

.brand span {
  font-size: 0.95rem;
  line-height: 1.25;
  max-width: 20ch;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  justify-content: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--brown); }

.site-nav a[aria-current="page"] {
  color: var(--brown);
  font-weight: 600;
  border-bottom-color: var(--green);
}

/* ---------- Layout ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

main.home {
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h1 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

.prose p { margin: 0 0 1.1rem; }

.panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 1.8rem;
}

.panel + .panel { margin-top: 1.5rem; }

.note {
  border-left: 4px solid var(--green);
  background: #fff;
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Home ---------- */

.logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-bottom: 2rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
  max-width: 640px;
}

.card {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.8rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 1px;
}

.badge.scouts { background: var(--green); }
.badge.akabe { background: var(--brown); }

.card span.name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown);
}

.card span.url {
  font-size: 0.85rem;
  color: #999;
}

/* ---------- Foto's ---------- */

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.album-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.album-card .cover {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--line);
}

.album-card .cover.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--green);
  font-size: 2rem;
  font-weight: 800;
}

.album-card .body {
  padding: 1rem 1.1rem 1.2rem;
}

.album-card .title {
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}

.album-card .meta {
  font-size: 0.85rem;
  color: #999;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.photo-grid button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--line);
  transition: transform 0.15s ease;
}

.photo-grid button:hover img { transform: scale(1.04); }

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1rem;
}

.back-link:hover { color: var(--brown); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox button:hover { background: rgba(255, 255, 255, 0.3); }

.lightbox .close { top: 1rem; right: 1rem; }
.lightbox .prev { left: 1rem; }
.lightbox .next { right: 1rem; }

/* ---------- Contact ---------- */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
}

.contact-list li:last-child { border-bottom: 0; }

.contact-list .label {
  font-weight: 600;
  min-width: 9rem;
}

.contact-list .value { color: var(--muted); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
}

@media (max-width: 520px) {
  .brand span { display: none; }
  .brand { margin-right: 0; }
  .site-header .inner { justify-content: center; }
}
