/* WW Houtland – publieke website */
:root {
  --ink: #1f2423;
  --muted: #5d6664;
  --bg: #ffffff;
  --sand: #f1eeea;
  --blush: #efe7e6;
  --teal: #2f6b66;
  --teal-dark: #214e4a;
  --line: #ddd7d0;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Mulish', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid #e0a21b; outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; flex-wrap: wrap; padding-block: .5rem; }
.brand { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-header nav a {
  display: block; padding: .4rem .8rem; border-radius: 999px; color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: .95rem;
}
.site-header nav a:hover { background: var(--sand); }
.site-header nav a[aria-current="page"] { background: var(--teal); color: #fff; }

/* Hero */
.hero {
  --hero: none;
  position: relative;
  min-height: clamp(200px, 32vw, 360px);
  display: grid; place-items: center; text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse at 15% 70%, rgba(70, 150, 140, .85), transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(60, 80, 40, .9), transparent 60%),
    linear-gradient(120deg, #9fb2b0 0%, #6f8c7f 45%, #2e3d2c 100%);
}
.hero { overflow: hidden; }
.hero.has-img { background: #333; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-img::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .32); z-index: 1; }
.hero .wrap { position: relative; z-index: 2; padding-block: 3rem; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

/* Intro (grijze band zoals op de oorspronkelijke site) */
.intro { background: var(--sand); padding-block: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.intro .rich p { margin: 0 0 .45rem; }
.intro .rich p:first-child { font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; }

/* Secties */
.section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section + .section { padding-top: 0; }
.page-title, .section-title { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 1.25rem; }
.page-title { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-title { font-size: 1.7rem; text-align: center; }
.lead { font-size: 1.05rem; margin-bottom: 1.5rem; }
.switch { margin: 0 0 2rem; font-weight: 600; }
.empty { background: var(--sand); padding: 1.5rem 1.75rem; border-radius: var(--radius); }
.empty p:last-child { margin-bottom: 0; }

.rich h2, .rich h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 1.4em 0 .4em; }
.rich h3 { font-size: 1.3rem; }
.rich > :first-child { margin-top: 0; }
.rich ul, .rich ol { padding-left: 1.3em; }

.btn {
  display: inline-block; background: var(--teal); color: #fff; text-decoration: none; font-weight: 700;
  padding: .65rem 1.3rem; border-radius: 999px; margin-top: 1rem;
}
.btn:hover { background: var(--teal-dark); color: #fff; }

/* Activiteiten */
.month {
  font-family: var(--serif); font-weight: 400; font-size: 1.45rem; text-transform: capitalize;
  margin: 2.5rem 0 1rem; padding-bottom: .4rem; border-bottom: 2px solid var(--line);
}
.month:first-of-type { margin-top: 0; }
.acts { display: grid; gap: 1.25rem; }
.act {
  display: grid; grid-template-columns: 80px 1fr; gap: 1.1rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem;
  scroll-margin-top: 100px;
}
.act:target { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47, 107, 102, .2); }
.act.has-img { grid-template-columns: 80px 1fr 230px; }
.badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--teal); color: #fff; border-radius: 12px; padding: .6rem .3rem; line-height: 1.1;
}
.b-dow { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.b-day { font-family: var(--serif); font-size: 2rem; line-height: 1.05; }
.b-mon { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.act h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; margin: 0 0 .75rem; }
.meta { margin: 0 0 1rem; display: grid; gap: .35rem; }
.meta div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; }
.meta dt { font-weight: 700; color: var(--muted); }
.meta dd { margin: 0; }
.act .rich { border-top: 1px solid var(--line); padding-top: .9rem; }
.act .rich p { margin: 0 0 .7rem; }
.act-img { border-radius: 10px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.act .more { margin: 0; font-weight: 700; }

/* Weergavekeuze */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; margin: 0 0 1.5rem; }
.toolbar .switch { margin: 0; }
.views { display: inline-flex; align-items: center; gap: .25rem; background: var(--sand); padding: .25rem; border-radius: 999px; }
.views-lbl { font-size: .85rem; color: var(--muted); padding: 0 .4rem 0 .6rem; }
.views a { padding: .3rem .85rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.views a:hover { background: #fff; }
.views a[aria-current] { background: var(--teal); color: #fff; }

/* Tegels */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.tile:hover { border-color: var(--teal); box-shadow: 0 6px 18px rgba(0, 0, 0, .07); color: var(--ink); }
.tile-img { position: relative; aspect-ratio: 16 / 10; background: #f6f4f1; overflow: hidden; }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .5rem .5rem .5rem 4.5rem; }
.tile-img.empty { background: linear-gradient(120deg, #9fb2b0 0%, #6f8c7f 55%, #3d5243 100%); }
.tile-img .badge { position: absolute; left: .7rem; top: .7rem; width: 56px; padding: .35rem .2rem; flex-direction: column; justify-content: center; gap: 0; }
.tile-img .b-day { font-size: 1.5rem; }
.tile-img .b-dow, .tile-img .b-mon { font-size: .7rem; }
.tile-body { padding: .9rem 1rem 1.1rem; }
.tile-body h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.25; margin: 0 0 .4rem; }
.tile-body p { margin: 0 0 .2rem; font-size: .92rem; }
.tile-when { font-weight: 600; }
.tile-where, .tile-price { color: var(--muted); }

/* Tabel */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.acts-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.acts-table th, .acts-table td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid #ece7e1; vertical-align: top; }
.acts-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #faf8f6; }
.acts-table tr:last-child td { border-bottom: 0; }
.acts-table td a { font-weight: 700; }
.nowrap { white-space: nowrap; }

/* Bestuur */
.board-photo { margin: 0 auto 2.5rem; max-width: 640px; }
.board-photo img { border-radius: var(--radius); width: 100%; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.member { background: var(--sand); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.member h2 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.2; margin: 0 0 .3rem; }
.member .role { color: var(--teal-dark); font-weight: 700; margin: 0 0 .5rem; }
.member p { margin: 0 0 .6rem; }
.member .lbl { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.member .contact a { word-break: break-word; }

/* Footer */
.site-footer { background: var(--blush); padding: 1.25rem 0; text-align: center; font-size: .88rem; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer .sep { margin: 0 .4rem; }

@media (max-width: 820px) {
  .act.has-img { grid-template-columns: 72px 1fr; }
  .act-img { grid-column: 1 / -1; order: -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .acts-table thead { display: none; }
  .acts-table, .acts-table tbody, .acts-table tr, .acts-table td { display: block; width: 100%; }
  .acts-table tr { padding: .6rem .9rem; border-bottom: 1px solid #ece7e1; }
  .acts-table tr:last-child { border-bottom: 0; }
  .acts-table td { border: 0; padding: .1rem 0; display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; }
  .acts-table td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; font-weight: 700; }
  .nowrap { white-space: normal; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .header-inner { justify-content: center; text-align: center; }
  .site-header { position: static; }
  .site-header nav ul { justify-content: center; }
  .site-header nav ul { gap: 0; }
  .site-header nav a { padding: .35rem .6rem; font-size: .92rem; }
  .act, .act.has-img { grid-template-columns: 1fr; padding: 1.1rem; }
  .badge { flex-direction: row; gap: .5rem; justify-content: flex-start; padding: .45rem .9rem; width: max-content; }
  .b-day { font-size: 1.35rem; }
  .meta div { grid-template-columns: 1fr; gap: 0; }
}
@media print {
  .site-header nav, .site-footer, .switch { display: none; }
  .act { break-inside: avoid; }
}

[hidden] { display: none !important; }
