/* =====================================================================
   Smoelenboek Rotaryclub Deventer IJssel
   Richting: verfijnd editorial "club-jaarboek"
   Ivoorpapier · marineblauwe inkt · antiek goud · Fraunces + Hanken Grotesk
   ===================================================================== */

:root {
  --paper:   #f6f1e6;   /* warm ivoor achtergrond */
  --paper-2: #fffdf7;   /* crème kaartvlak */
  --ink:     #1a2740;   /* diepe marineblauwe inkt (tekst) */
  --navy:    #17458f;   /* Rotary royal blue */
  --navy-d:  #0e2a57;
  --navy-dd: #0a1f43;
  --gold:    #b8893b;   /* antiek goud */
  --gold-2:  #caa15a;
  --gold-d:  #8a6420;
  --muted:   #6f6757;   /* warm grijsbruin */
  --line:    #e7dfcc;   /* haarlijn */
  --line-2:  #d8cfb6;
  --radius:  9px;
  --radius-sm: 6px;
  --shadow:  0 12px 30px -20px rgba(20, 35, 64, .34);
  --shadow-sm: 0 3px 12px -8px rgba(20, 35, 64, .3);
  --maxw:    1160px;
  --serif:   'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:    'Hanken Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 90% at 50% -10%, rgba(199,161,90,.10), transparent 60%),
    radial-gradient(90% 70% at 100% 0%, rgba(23,69,143,.06), transparent 55%);
  background-attachment: fixed;
  line-height: 1.62;
  font-size: 17px;
}
/* fijne papierkorrel over alles */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--serif); font-weight: 460; line-height: 1.08; letter-spacing: -.012em; color: var(--navy-d); }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(199,161,90,.3); }

/* Kleine-kapitalen labels */
.eyebrow, .card-meta, .member-facts dt, .sitefoot, .badge, .tag,
.admin-table th, .auth-sub {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .7rem;
  font-weight: 600;
}

/* ---------- Rotary-wiel motief ---------- */
.wheel {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--navy-d) 0 22%, transparent 23%),
    conic-gradient(var(--gold) 0 100%);
  -webkit-mask:
    radial-gradient(circle at center, #000 0 30%, transparent 31% 40%, #000 41% 47%, transparent 48%),
    repeating-conic-gradient(#000 0 8deg, transparent 8deg 15deg);
  mask:
    radial-gradient(circle at center, #000 0 30%, transparent 31% 40%, #000 41% 47%, transparent 48%),
    repeating-conic-gradient(#000 0 8deg, transparent 8deg 15deg);
  background-color: var(--gold);
}
.wheel-lg { width: 52px; height: 52px; flex-basis: 52px; margin: 0 auto 16px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 15px clamp(16px, 4vw, 44px);
  background: rgba(246,241,230,.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; color: var(--navy-d); }
.brand-text small { color: var(--gold-d); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 2px; }
.topnav { flex: 1; display: flex; align-items: center; gap: 2px; }
.nav-main, .nav-account { display: flex; align-items: center; gap: 2px; }
.nav-account { margin-left: auto; padding-left: 14px; border-left: 1px solid var(--line); }
.topnav a {
  padding: 9px 13px; border-radius: 999px; color: var(--ink);
  font-size: .9rem; font-weight: 500; position: relative; transition: color .18s; white-space: nowrap;
}
.topnav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.topnav a:hover { color: var(--navy); }
.topnav a:hover::after, .topnav a.active::after { transform: scaleX(1); }
.topnav a.active { color: var(--navy-d); font-weight: 600; }
.nav-account a { color: var(--muted); }
.nav-account a:hover, .nav-account a.active { color: var(--navy); }
.topnav a.logout { color: var(--muted); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2);
  background: var(--paper-2); border-radius: 12px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-d); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Layout ---------- */
.page { max-width: var(--maxw); margin: 0 auto; padding: clamp(22px, 4vw, 48px) clamp(16px, 4vw, 44px) 90px; }
.muted { color: var(--muted); }
.back {
  display: inline-block; margin-bottom: 22px; color: var(--muted);
  font-weight: 500; font-size: .9rem; letter-spacing: .02em;
}
.back:hover { color: var(--gold-d); }

/* ---------- Flash ---------- */
.flash {
  max-width: var(--maxw); margin: 18px auto -6px; padding: 13px 20px;
  border-radius: 12px; font-weight: 500; font-size: .95rem; border-left: 3px solid;
}
.flash-ok    { background: #eef4ec; color: #355e36; border-color: var(--gold); }
.flash-error { background: #f8ecea; color: #98342a; border-color: #c0563f; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 12px; margin-bottom: 38px; padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
  background:
    radial-gradient(140% 120% at 85% -20%, rgba(199,161,90,.22), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-d) 55%, var(--navy-dd) 100%);
  color: #fdfaf2;
  box-shadow: var(--shadow);
}
/* groot, vaag gouden wiel als watermerk */
.hero::after {
  content: ""; position: absolute; right: -90px; top: 50%; transform: translateY(-50%);
  width: 460px; height: 460px; border-radius: 50%; z-index: -1; opacity: .9;
  background: repeating-conic-gradient(rgba(199,161,90,.10) 0 7deg, transparent 7deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 31% 39%, #000 40% 46%, transparent 47%);
  mask: radial-gradient(circle, #000 30%, transparent 31% 39%, #000 40% 46%, transparent 47%);
}
.hero-inner { position: relative; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-2); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold-2); opacity: .7; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 0 0 16px; color: #fffdf7; font-weight: 420; letter-spacing: -.02em; }
.hero .lead { font-size: 1.16rem; max-width: 50ch; color: rgba(253,250,242,.86); margin: 0 0 22px; }
.hero .count {
  display: inline-block; padding: 7px 18px; border-radius: 999px;
  border: 1px solid rgba(199,161,90,.5); color: var(--gold-2);
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- Volgende activiteit (home) ---------- */
.next-event {
  display: flex; flex-direction: column; gap: 3px; margin: 0 0 26px;
  padding: 18px 24px; border-radius: var(--radius); color: #fdfaf2;
  background: linear-gradient(135deg, var(--navy), var(--navy-d));
  border-left: 4px solid var(--gold); box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.next-event:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }
.ne-label { text-transform: uppercase; letter-spacing: .16em; font-size: .66rem; font-weight: 700; color: var(--gold-2); }
.ne-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.ne-date { font-size: .92rem; color: rgba(253,250,242,.8); }

/* ---------- Agenda app-balk + RSVP ---------- */
.agenda-app-bar { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin: 0 0 24px; }
.agenda-app-bar .muted { font-size: .88rem; }
.event-rsvp { margin-top: 10px; background: rgba(199,161,90,.12); border-color: rgba(199,161,90,.45); color: var(--gold-d); font-weight: 600; }
.event-rsvp:hover { background: var(--gold); color: #2a1c00; border-color: var(--gold); }
.sitefoot a { color: var(--gold-d); font-weight: 600; margin-left: 14px; }
.credit {
  margin: 16px auto 0; display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding-top: 14px; border-top: 1px solid var(--line);
}
.credit strong { color: var(--gold-d); font-weight: 600; }
.credit-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex: 0 0 24px; border: 1.5px solid var(--gold);
  border-radius: 50%; color: var(--gold-d); font-size: .82rem; font-weight: 600;
  box-shadow: 0 0 0 3px rgba(199,161,90,.12);
}

/* ---------- Agenda ---------- */
.agenda-head { font-family: var(--serif); font-size: 1.6rem; color: var(--navy-d); font-weight: 460; margin: 32px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.agenda-head-past { color: var(--muted); }
.agenda-list { display: flex; flex-direction: column; gap: 14px; }
.event { display: flex; gap: 20px; align-items: stretch; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.event-date {
  flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy), var(--navy-d)); color: #fff; border-radius: 10px; padding: 8px 0;
}
.ed-day { font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.ed-mon { text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; color: var(--gold-2); margin-top: 3px; }
.event-body { min-width: 0; }
.event-body h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--navy-d); margin: 0 0 4px; font-weight: 500; }
.event-meta { margin: 0 0 8px; color: var(--gold-d); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.event-text { margin: 0; color: var(--ink); }
.agenda-past .event { opacity: .72; }
.agenda-past .event-date { background: #9a9282; }
.admin-events { margin-bottom: 36px; }
.admin-events h2, .admin-members-head { font-family: var(--serif); color: var(--navy-d); font-weight: 460; }
.event-add { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.admin-members-head { margin-top: 8px; }

/* ---------- Bestuur & commissies ---------- */
.org-head { font-family: var(--serif); font-size: 1.6rem; color: var(--navy-d); font-weight: 460; margin: 32px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.org-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.org-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--navy); }
.org-card-com { border-top-color: var(--gold); }
.org-role { margin: 0 0 6px; font-family: var(--serif); font-size: 1.2rem; color: var(--navy-d); font-weight: 500; }
.org-people { margin: 0; color: var(--ink); }
.org-people a { color: var(--navy); font-weight: 500; }
.org-people a:hover { color: var(--gold-d); }

/* ---------- Oud-voorzitters ---------- */
.oudvz-list { list-style: none; padding: 0; margin: 0; max-width: 560px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.oudvz-list li { display: flex; gap: 16px; align-items: baseline; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.oudvz-list li:last-child { border-bottom: none; }
.oudvz-year { font-family: var(--serif); color: var(--gold-d); font-weight: 500; min-width: 96px; }
.oudvz-name { font-weight: 500; }

/* ---------- Compacte sub-hero ---------- */
.hero-sub { padding: clamp(32px, 5vw, 56px) clamp(28px, 5vw, 64px); margin-bottom: 30px; }
.hero-sub h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

/* ---------- Ledenlijst: contactkaarten ---------- */
.ll-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.ll-card {
  position: relative; display: flex; gap: 18px; align-items: flex-start;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ll-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--gold-2), var(--gold-d)); transform: scaleY(0); transform-origin: top;
  transition: transform .22s ease;
}
.ll-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.ll-card:hover::before { transform: scaleY(1); }
.ll-avatar {
  flex: 0 0 66px; width: 66px; height: 66px; border-radius: 50%;
  background-size: cover; background-position: center top; background-color: var(--navy-d);
  display: flex; align-items: center; justify-content: center; align-self: center;
  box-shadow: 0 0 0 1px var(--line-2), 0 0 0 4px var(--paper-2), 0 0 0 5px rgba(199,161,90,.45);
  transition: transform .2s ease;
}
.ll-card:hover .ll-avatar { transform: scale(1.05); }
.ll-avatar span { font-family: var(--serif); color: #f4e9cf; font-size: 1.5rem; letter-spacing: .03em; }
.ll-info { min-width: 0; flex: 1; }
.ll-info h3 { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; margin: 0 0 1px; line-height: 1.12; letter-spacing: -.01em; }
.ll-info h3 a { color: var(--navy-d); }
.ll-info h3 a:hover { color: var(--gold-d); }
.ll-partner { margin: 0 0 9px; font-size: .9rem; color: var(--muted); font-style: italic; font-family: var(--serif); }
.ll-classif { margin: 0 0 12px; color: var(--gold-d); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 700; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.ll-contacts { display: flex; flex-direction: column; gap: 4px; }
.ll-contacts a { font-size: .88rem; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ll-contacts a:hover { color: var(--gold-d); }
.ll-email { font-size: .84rem !important; }

/* ---------- Beheer-acties (uitnodigen) ---------- */
.admin-actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.admin-actions .inline-add { margin: 0; flex: 1; min-width: 280px; }
.invite-all { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--muted); }
.chk input { accent-color: var(--gold-d); }

/* ---------- Toolbar / zoek ---------- */
.toolbar { margin: 0 0 30px; }
.toolbar-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.toolbar-row input[type="search"] { flex: 1; min-width: 240px; }
.toolbar input[type="search"] {
  width: 100%; max-width: 520px; padding: 15px 20px 15px 50px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background-color: var(--paper-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6420' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 18px center; background-size: 19px;
  font-family: var(--sans); font-size: 1.05rem; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s;
}
.toolbar input[type="search"]::placeholder { color: var(--muted); }
.toolbar input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.toolbar input[type="search"]:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(199,161,90,.16), var(--shadow-sm);
}

/* ---------- Grid van leden ---------- */
.grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.card {
  background: var(--paper-2); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  color: var(--ink); display: flex; flex-direction: column;
  animation: rise .6s both;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.card-photo {
  aspect-ratio: 4/4.2; background-size: cover; background-position: center top;
  background-color: var(--navy-d); position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,31,67,.28), transparent 42%);
}
.card-initials, .card-initials.big {
  font-family: var(--serif); color: #f4e9cf; font-weight: 460;
  letter-spacing: .04em; opacity: .96; position: relative; z-index: 1;
}
.card-initials { font-size: 2.5rem; }
.card-initials.big { font-size: 4.4rem; }
.card-body { padding: 18px 20px 22px; }
.card-body h2 { font-size: 1.22rem; margin: 0 0 6px; color: var(--navy-d); font-weight: 500; }
.card-meta { margin: 0; color: var(--gold-d); }
.empty-filter { text-align: center; color: var(--muted); padding: 50px; font-family: var(--serif); font-size: 1.2rem; }

/* ---------- Lid-detail ---------- */
.member-head { display: grid; grid-template-columns: 340px 1fr; gap: 44px; align-items: end; margin-bottom: 44px; }
.member-portrait {
  aspect-ratio: 1; border-radius: 18px; background-size: cover; background-position: center;
  background-color: var(--navy-d); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  padding: 9px; border: 1px solid var(--line-2);
  position: relative;
}
.member-portrait::before {
  content: ""; position: absolute; inset: 9px; border: 1px solid rgba(199,161,90,.55);
  border-radius: 11px; pointer-events: none; z-index: 1;
}
.member-intro h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--navy-d); margin: 0 0 10px; font-weight: 420; }
.member-meta { margin: 0 0 18px; color: var(--gold-d); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 600; }
.bio-empty {
  display: flex; gap: 16px; align-items: flex-start; padding: 26px 28px;
  background: linear-gradient(180deg, #fbf6ea, var(--paper-2));
  border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius);
}
.bio-empty .wheel { flex: 0 0 30px; margin-top: 3px; }
.bio-empty p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--muted); }
.quote {
  margin: 0 0 22px; padding-left: 20px; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.4; color: var(--ink);
}
.member-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.member-bio p { font-size: 1.1rem; margin: 0 0 18px; }
.member-bio p:first-of-type::first-letter {
  font-family: var(--serif); float: left; font-size: 3rem; line-height: .8;
  padding: 5px 10px 0 0; color: var(--gold-d); font-weight: 500;
}
.keywords { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.kw {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(199,161,90,.12); border: 1px solid rgba(199,161,90,.4);
  color: var(--gold-d); font-size: .82rem; font-weight: 500; letter-spacing: .01em;
}
.contact { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact a { font-weight: 600; color: var(--navy); }
.contact a:hover { color: var(--gold-d); }
.member-facts {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 26px 22px; box-shadow: var(--shadow-sm); position: sticky; top: 92px;
}
.member-facts dl { margin: 0; }
.member-facts dt { color: var(--gold-d); margin-top: 18px; }
.member-facts dt:first-child { margin-top: 8px; }
.member-facts dd { margin: 3px 0 0; font-weight: 500; font-size: 1rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.member-facts dd:last-child { border-bottom: none; padding-bottom: 0; }

/* ---------- Smoelenboek-paginablok ---------- */
.lead-note { font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.smoelenboek-page { margin-top: 52px; }
.smoelenboek-page h2 { font-size: 1.7rem; color: var(--navy-d); margin: 0 0 20px; position: relative; padding-bottom: 12px; font-weight: 460; }
.smoelenboek-page h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 2px; background: var(--gold); }
.smoelenboek-page figure {
  margin: 0; padding: 14px; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  position: relative;
}
.smoelenboek-page figure::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(199,161,90,.4);
  pointer-events: none; z-index: 1;
}
.smoelenboek-page img { width: 100%; border-radius: 4px; cursor: zoom-in; display: block; }

/* ---------- Galerij + lightbox ---------- */
.gallery { margin-top: 56px; }
.gallery h2 { font-size: 1.7rem; color: var(--navy-d); margin: 0 0 22px; position: relative; padding-bottom: 12px; font-weight: 460; }
.gallery h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 2px; background: var(--gold); }
.gallery-grid { columns: 3 220px; column-gap: 18px; }
.gallery-grid figure { margin: 0 0 18px; break-inside: avoid; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--paper-2); border: 1px solid var(--line); }
.gallery-grid img { width: 100%; cursor: zoom-in; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption { padding: 9px 13px; font-size: .86rem; color: var(--muted); font-style: italic; font-family: var(--serif); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,21,43,.94);
  display: flex; align-items: center; justify-content: center; padding: 30px; }
.lightbox[hidden] { display: none; }
[hidden] { display: none !important; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); border: 3px solid var(--paper-2); }
.lb-close { position: absolute; top: 22px; right: 28px; background: none; border: none; color: #f4e9cf; font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* ---------- Formulieren ---------- */
.form label { display: block; margin-bottom: 18px; font-weight: 600; font-size: .82rem; letter-spacing: .04em; color: var(--ink); text-transform: uppercase; }
.form input, .form textarea, .inline-add input, #filter { font-family: var(--sans); font-size: 1rem; }
.form input[type=text], .form input[type=email], .form input[type=url],
.form input[type=password], .form textarea {
  width: 100%; margin-top: 8px; padding: 12px 14px; font-weight: 400; text-transform: none; letter-spacing: 0;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(199,161,90,.15); }
.form textarea { resize: vertical; line-height: 1.6; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px 10px; margin: 0 0 24px; background: var(--paper-2); box-shadow: var(--shadow-sm); }
legend { float: left; width: 100%; font-family: var(--serif); font-size: 1.2rem; color: var(--navy-d); padding: 0; margin: 0 0 16px; font-weight: 500; }
legend + * { clear: left; }
.form-actions { display: flex; gap: 14px; align-items: center; }
.edit-head { margin-bottom: 28px; }
.edit-head h1 { font-size: 2.2rem; color: var(--navy-d); margin: 0; font-weight: 420; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--sans); font-size: .92rem; font-weight: 600; letter-spacing: .01em; cursor: pointer;
  transition: transform .14s, box-shadow .18s, background .18s, border-color .18s; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-d) 100%); color: #fffdf7;
  box-shadow: var(--shadow-sm); border-color: rgba(199,161,90,.25);
}
.btn-primary:hover { box-shadow: var(--shadow); border-color: var(--gold); }
.btn-ghost { background: var(--paper-2); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-d); }
.btn-block { width: 100%; }
.btn-mini { padding: 7px 13px; font-size: .78rem; background: var(--paper); border-color: var(--line-2); color: var(--ink); }
.btn-mini:hover { border-color: var(--gold); color: var(--gold-d); }
.btn-danger { color: #98342a; }
.btn-danger:hover { background: #f8ecea; border-color: #d8a99f; }

/* ---------- Publieke landing / inlog ---------- */
.landing {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); min-height: 540px; margin: 8px 0 10px;
}
.landing-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fffdf7;
  display: flex; align-items: center; padding: clamp(34px, 5vw, 60px);
  background:
    radial-gradient(130% 120% at 90% -10%, rgba(199,161,90,.24), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-d) 55%, var(--navy-dd) 100%);
}
.landing-hero::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px;
  border-radius: 50%; z-index: -1;
  background: repeating-conic-gradient(rgba(199,161,90,.10) 0 7deg, transparent 7deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 31% 39%, #000 40% 46%, transparent 47%);
  mask: radial-gradient(circle, #000 30%, transparent 31% 39%, #000 40% 46%, transparent 47%);
}
.landing-hero-inner { position: relative; z-index: 1; }
.landing-hero .wheel-lg { margin: 0 0 18px; }
.landing-hero .eyebrow { color: var(--gold-2); }
.landing-hero h1 { color: #fffdf7; font-size: clamp(2.2rem, 4vw, 3.1rem); margin: 0 0 16px; font-weight: 420; }
.landing-lead { font-size: 1.1rem; line-height: 1.65; color: rgba(253,250,242,.9); max-width: 46ch; margin: 0; }
.landing-lead em { color: var(--gold-2); font-style: italic; }
.landing-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 9px; }
.landing-points li {
  border: 1px solid rgba(199,161,90,.5); color: var(--gold-2);
  padding: 6px 15px; border-radius: 999px; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
}
.landing-login { background: var(--paper-2); display: flex; align-items: center; justify-content: center; padding: clamp(28px, 4vw, 44px); }
.landing-login .auth-card { box-shadow: none; border: none; max-width: 360px; margin: 0; padding: 0; }
.landing-login .auth-card::before { display: none; }
@media (max-width: 820px) {
  .landing { grid-template-columns: 1fr; min-height: 0; }
  .landing-hero { padding: 34px 26px 30px; }
}

/* ---------- Auth-kaart ---------- */
.auth-wrap { min-height: 72vh; display: flex; align-items: center; justify-content: center; }
.auth-card {
  width: 100%; max-width: 410px; background: var(--paper-2); border-radius: 12px;
  padding: 44px 40px; box-shadow: var(--shadow); border: 1px solid var(--line);
  text-align: center; position: relative; overflow: hidden;
}
.auth-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-d), var(--gold-2), var(--gold-d)); }
.auth-card h1 { font-size: 1.7rem; color: var(--navy-d); margin: 0 0 8px; font-weight: 460; }
.auth-sub { color: var(--gold-d); margin: 0 0 30px; }
.auth-card .form { text-align: left; }
.auth-hint { margin-top: 24px; font-size: .82rem; color: var(--muted); }

/* ---------- Foto-beheer ---------- */
.photo-manager { margin-top: 54px; }
.photo-manager h2 { color: var(--navy-d); font-weight: 460; }
.upload-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.dropzone {
  position: relative; flex: 1; min-width: 260px; border: 1.5px dashed var(--line-2); border-radius: 13px;
  padding: 26px; text-align: center; color: var(--muted); cursor: pointer; background: var(--paper-2);
  transition: border-color .18s, background .18s, color .18s; display: block;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: #fbf6ea; color: var(--gold-d); }
/* input over het hele vak: klikken = bestandskiezer, overal in het vak */
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-edit-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.photo-tile { background: var(--paper-2); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.photo-tile.is-primary { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.photo-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-tile .badge { position: absolute; top: 9px; left: 9px; background: var(--gold); color: #2a1c00; padding: 4px 10px; border-radius: 999px; }
.caption-form { display: flex; gap: 7px; padding: 9px; }
.caption-form input { flex: 1; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 9px; font-size: .82rem; background: var(--paper); }
.photo-tile-actions { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 9px 11px; }

/* ---------- Admin-tabel ---------- */
.inline-add { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.inline-add input { flex: 1; min-width: 220px; padding: 12px 15px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--paper-2); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.admin-table th, .admin-table td { padding: 14px 17px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { color: var(--gold-d); background: var(--paper); }
.admin-table code { background: var(--paper); padding: 3px 8px; border-radius: 6px; font-size: .85rem; }
.actions-col { white-space: nowrap; }
.actions-col form { display: inline-block; }
.actions-col .btn, .actions-col form { margin: 2px; }
.row-hidden { opacity: .5; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; }
.tag-on { background: #eef4ec; color: #355e36; }
.tag-off { background: #efe9da; color: var(--muted); }
.tag-admin { background: rgba(199,161,90,.18); color: var(--gold-d); }
.tag-warn { background: #fbeedd; color: var(--gold-d); }

/* ---------- Beheer (strak, panelen) ---------- */
.admin-head { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.admin-head h1 { font-size: 2.1rem; color: var(--navy-d); margin: 0; font-weight: 420; }
.admin-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 10px 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-n { font-family: var(--serif); font-size: 1.7rem; color: var(--navy-d); line-height: 1; }
.stat-l { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-d); font-weight: 700; margin-top: 4px; }
.admin-panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px 24px; margin-bottom: 22px; }
.panel-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-family: var(--serif); font-size: 1.35rem; color: var(--navy-d); margin: 0; font-weight: 500; }
.panel-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.panel-actions .inline-add { margin: 0; gap: 8px; }
.panel-actions .inline-add input { min-width: 160px; padding: 8px 12px; }
.panel-note { font-size: .82rem; color: var(--muted); margin: 0 0 4px; max-width: 60ch; }
.panel-form { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 18px; }
.panel-form .row { gap: 14px; }
.panel-form label { margin-bottom: 12px; }
.select { width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper-2); font-family: var(--sans); font-size: 1rem; }
.admin-panel .admin-table { box-shadow: none; border-radius: 10px; }
.table-wrap { overflow-x: auto; }
@media (max-width: 640px) { .admin-table { min-width: 560px; } .panel-head { align-items: flex-start; } }

/* ---------- Fotoalbums ---------- */
.album-new { background: var(--paper-2); margin-bottom: 26px; }
.album-grid .card-photo { aspect-ratio: 4/3; }
.album-count { position: absolute; bottom: 10px; right: 10px; z-index: 1; background: rgba(10,31,67,.78); color: #f4e9cf; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.album-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.album-gallery figure { position: relative; }
.album-photo-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 5px; }
.album-photo-actions .btn { padding: 2px 9px; font-size: 1rem; line-height: 1.2; background: rgba(255,255,255,.92); }
.cover-badge { position: absolute; top: 8px; left: 8px; background: var(--gold); color: #2a1c00; font-size: .66rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.album-desc { margin: 4px 0 0; color: var(--gold-d); font-style: italic; font-family: var(--serif); }
.album-gallery video { width: 100%; display: block; border-radius: 4px; background: #000; }
.album-gallery figure.is-video { break-inside: avoid; }

/* ---------- Footer ---------- */
.sitefoot { text-align: center; padding: 36px 20px 46px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 30px; }

/* ---------- Animatie ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card:nth-child(1){animation-delay:.02s}.card:nth-child(2){animation-delay:.06s}
.card:nth-child(3){animation-delay:.10s}.card:nth-child(4){animation-delay:.14s}
.card:nth-child(5){animation-delay:.18s}.card:nth-child(6){animation-delay:.22s}
.card:nth-child(7){animation-delay:.26s}.card:nth-child(8){animation-delay:.30s}
@media (prefers-reduced-motion: reduce) { .card { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .member-head { grid-template-columns: 1fr; gap: 26px; }
  .member-portrait { max-width: 260px; }
  .member-grid { grid-template-columns: 1fr; gap: 32px; }
  .member-facts { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { flex-wrap: wrap; padding: 13px 16px; }
  .nav-toggle { display: flex; }
  .topnav {
    flex: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .2s ease;
  }
  .topnav.open { max-height: 560px; opacity: 1; margin-top: 8px; }
  .nav-main, .nav-account { flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; border: none; }
  .nav-account { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
  .topnav a { padding: 13px 14px; font-size: 1rem; }
  .topnav a::after { display: none; }
  .nav-main a:not(:last-child), .nav-account a:not(:last-child) { border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card-body { padding: 14px 14px 16px; }
  .card-body h2 { font-size: 1.04rem; }
  /* nieuwe onderdelen op mobiel */
  .ll-grid, .org-grid { grid-template-columns: 1fr; }
  .next-event { padding: 16px 18px; }
  .ne-title { font-size: 1.2rem; }
  .event { gap: 14px; padding: 14px 16px; }
  .event-date { flex-basis: 54px; }
  .ed-day { font-size: 1.4rem; }
  .event-body h3 { font-size: 1.1rem; }
  .toolbar-row { flex-direction: column; align-items: stretch; }
  .toolbar-row .btn { width: 100%; }
  .admin-table { font-size: .9rem; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2 140px; }
  .hero { border-radius: 18px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
  .upload-box { flex-direction: column; align-items: stretch; }
  .upload-box .btn { width: 100%; }
}
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }

/* ---------- Beheer: verfijning + login-info ---------- */
.admin-table th, .admin-table td { padding: 11px 16px; }
.admin-table tbody tr:hover { background: var(--paper); }
.admin-table tbody tr.row-hidden { opacity: .5; }
.login-cell { white-space: nowrap; font-size: .85rem; color: var(--muted); }
.login-cell .li-date { color: var(--ink); }
.login-cell .li-count { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600; vertical-align: middle; }
.actions-col { text-align: right; }
.actions-col .btn-mini { padding: 5px 11px; font-size: .73rem; margin: 2px 0 2px 5px; }
