/* ============================================================
   Conference of the Birds 2026 — style.css
   ============================================================ */

:root {
  --bg:           #0d0716;
  --bg-dark:      #0a0705;
  --text:         #e8dfce;
  --text-dark:    #e8dfce;
  --accent:       #c98a2c;
  --accent-light: #e8c87a;
  --accent-gold:  #e8c87a;
  --header-h:     56px;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  /* Instelbare groottes (via admin/theme.json) */
  --sz-hero:    100px;
  --sz-section: 56px;
  --sz-body:    17px;
  --sz-nav:     28px;
  --sz-sidebar: 17px;
  --sz-header:  23px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html {
  scrollbar-width: none;
  overflow-y: scroll;
}
html::-webkit-scrollbar { display: none; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--sz-body, 17px);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
}
body::-webkit-scrollbar { display: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }

/* ── Film grain ──────────────────────────────────────────── */
.grain-overlay {
  position: fixed;
  inset: -150%; width: 400%; height: 400%;
  z-index: 9990; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 10s steps(10) infinite;
}
@keyframes grain {
  0%,100%{transform:translate(0,0)} 10%{transform:translate(-5%,-10%)}
  20%{transform:translate(-15%,5%)} 30%{transform:translate(7%,-25%)}
  40%{transform:translate(-5%,25%)} 50%{transform:translate(-15%,10%)}
  60%{transform:translate(15%,0%)} 70%{transform:translate(0%,15%)}
  80%{transform:translate(3%,35%)} 90%{transform:translate(-10%,10%)}
}

/* ── Video background ────────────────────────────────────── */
#video-fallback {
  position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(ellipse at 60% 40%, #2C1A06 0%, #0E0905 60%, #000 100%);
}
#video-bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; object-fit: cover; object-position: center center;
  opacity: 0.12; transition: opacity 1s ease;
}
@media (orientation: portrait) {
  #video-bg { object-fit: contain; background: #000; }
}
#video-bg.hero-active { opacity: 1; }

/* ── Header ──────────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); z-index: 200;
  display: flex; align-items: center;
  padding: 0 1.5rem; gap: .75rem;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(184,134,11,0.25);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.logo-link {
  display: flex; align-items: center; gap: 0.85rem;
  text-decoration: none; color: var(--text); flex-shrink: 0;
}
.logo-link img { height: 36px; width: auto; }
.logo-title {
  font-family: var(--font-display);
  font-size: var(--sz-header, 1.3rem); font-weight: 500;
  letter-spacing: 0.03em; line-height: 1.2; color: #2a2014;
}
.logo-subtitle {
  display: block; font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.15em; color: var(--accent); margin-top: 1px;
  text-transform: uppercase;
}
.header-spacer { flex: 1; }
.header-controls { display: flex; align-items: center; gap: 0.45rem; }

.lang-btn {
  background: none; border: 1px solid rgba(34,28,21,0.3);
  color: #2a2014; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.1em; padding: 0.24rem 0.54rem;
  border-radius: 2px; transition: all 0.2s;
}
.lang-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.lang-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

.sound-btn {
  background: none; border: none; color: #2a2014;
  padding: 0.35rem; display: flex; align-items: center;
  opacity: 0.85; transition: opacity 0.2s, color 0.2s;
  position: relative;
}
.sound-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: sound-ring 2s ease-out infinite;
}
.sound-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: sound-ring 2s ease-out infinite 1s;
}
.sound-btn.active {
  opacity: 1; color: var(--accent);
}
.sound-btn.active::before,
.sound-btn.active::after {
  animation: none;
  opacity: 0;
}
.sound-btn svg { width: 20px; height: 20px; }

@keyframes sound-ring {
  0%   { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.8);  opacity: 0;   }
}

.hamburger-btn {
  background: none; border: none;
  padding: 0.4rem; display: flex; flex-direction: column; gap: 5px;
}
.hamburger-btn span {
  display: block; width: 22px; height: 2px;
  background: #2a2014; transition: transform 0.3s, opacity 0.3s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Nav drawer ──────────────────────────────────────────── */
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(14,9,5,0.55); backdrop-filter: blur(4px);
  z-index: 190;
}
.nav-overlay.open { display: block; }

.nav-drawer {
  position: fixed; top: 0; right: -340px;
  width: 310px; height: 100vh;
  background: var(--bg-dark);
  border-left: 1px solid rgba(184,134,11,0.15);
  z-index: 195;
  padding: calc(var(--header-h) + 1.5rem) 2rem 1.5rem;
  display: flex; flex-direction: column; gap: 0;
  box-shadow: -8px 0 48px rgba(0,0,0,0.45);
  transition: right 0.45s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.nav-drawer.open { right: 0; }
.nav-label-small {
  font-size: 0.58rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent-light);
  font-weight: 500; margin-bottom: .75rem; opacity: 0.7;
}
#nav-items { display: flex; flex-direction: column; }
.nav-drawer a {
  display: block;
  font-family: var(--font-display); font-size: clamp(1.1rem, 4vh, 1.6rem);
  font-weight: 400; color: rgba(237,229,213,0.82);
  text-decoration: none; padding: clamp(.3rem, 1.2vh, .6rem) 0;
  border-bottom: 1px solid rgba(184,134,11,0.1);
  letter-spacing: 0.02em;
  transition: color 0.2s, padding-left 0.25s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--accent-gold); padding-left: 0.6rem; }

/* ── Hero ────────────────────────────────────────────────── */
main { position: relative; z-index: 1; }

#home {
  height: 100vh; min-height: 600px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  position: relative; overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; mix-blend-mode: screen;
  animation: floatOrb linear infinite;
}
.hero-orb:nth-child(1) {
  width: 600px; height: 600px; opacity: 0.12;
  background: radial-gradient(circle, #C9A84C 0%, transparent 70%);
  top: -120px; left: -80px; animation-duration: 28s;
}
.hero-orb:nth-child(2) {
  width: 400px; height: 400px; opacity: 0.1;
  background: radial-gradient(circle, #8B6914 0%, transparent 70%);
  bottom: 60px; right: -40px; animation-duration: 22s; animation-delay: -8s;
}
.hero-orb:nth-child(3) {
  width: 300px; height: 300px; opacity: 0.07;
  background: radial-gradient(circle, #D4A82A 0%, transparent 70%);
  top: 40%; left: 55%; animation-duration: 35s; animation-delay: -15s;
}
@keyframes floatOrb {
  0%   { transform: translate(0,0) scale(1); }
  25%  { transform: translate(40px,-30px) scale(1.05); }
  50%  { transform: translate(20px,40px) scale(0.95); }
  75%  { transform: translate(-30px,20px) scale(1.08); }
  100% { transform: translate(0,0) scale(1); }
}
.hero-content {
  text-align: center; padding: 0 2rem;
  position: relative; z-index: 2;
  animation: fadeUp 1.8s ease forwards;
}
.hero-eyebrow {
  font-size: 0.82rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent-light);
  font-weight: 500; margin-bottom: 1.25rem; opacity: 0;
  animation: fadeUp 1.8s 0.3s ease forwards;
}
@keyframes fadeUp {
  from { opacity:0; transform: translateY(32px); }
  to   { opacity:1; transform: translateY(0); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, var(--sz-hero, 9rem));
  font-weight: 400; color: #F5EDD8;
  letter-spacing: 0.03em; line-height: 1.05;
  text-shadow: 0 2px 80px rgba(0,0,0,0.7);
}
.hero-title em { font-style: italic; color: var(--accent-gold); display: block; }
.hero-year {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.5em; font-weight: 300;
  margin-top: 1rem; color: rgba(245,237,216,0.5); font-style: normal;
}
.hero-rule {
  width: 80px; height: 1px; margin: 1.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}
/* ── Sections ────────────────────────────────────────────── */
.section { position: relative; background: rgba(245,240,232,0.90); padding: 7rem 0 6rem; }
#home { background: transparent !important; }
.section.dark {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(184,134,11,0.07) 0%, transparent 55%),
    linear-gradient(150deg, rgba(30,20,8,0.88) 0%, rgba(18,14,8,0.88) 60%, rgba(10,7,5,0.88) 100%);
  color: var(--text-dark);
}
/* Watermark number */

.section-inner { max-width: 920px; margin: 0 auto; padding: 0 2.5rem; }
.section-label {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.75rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 500; margin-bottom: 1rem;
}
.section-label::after {
  content: ''; display: block;
  width: 36px; height: 1px; background: currentColor; opacity: 0.4;
}
.section.dark .section-label { color: var(--accent-light); }

.deco-rule {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 2rem;
}
.deco-rule::before {
  content: ''; display: block;
  width: 44px; height: 2px; background: var(--accent); flex-shrink: 0;
}
.deco-rule::after {
  content: '◆'; font-size: 0.42rem; color: var(--accent); flex-shrink: 0;
}
.section.dark .deco-rule::before,
.section.dark .deco-rule::after { color: var(--accent-light); background: var(--accent-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, var(--sz-section, 4.5rem));
  font-weight: 400; line-height: 1.08;
  margin-bottom: 2rem; letter-spacing: 0.01em;
  color: #2a2014;
}
.section.dark .section-title { color: #F0E6D0; font-style: italic; }
.section-body { font-size: 1.15rem; line-height: 1.95; opacity: 0.84; max-width: 700px; color: #3a2e1e; }
.section-body p + p { margin-top: 1.2rem; }
.section.dark .section-body { color: #C8BBA8; opacity: 1; }

#verhaal .section-body {
  font-family: var(--font-display);
  font-size: 1.25rem; line-height: 1.8; font-weight: 300; max-width: 720px;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Programme ───────────────────────────────────────────── */
.view-toggle { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.view-btn {
  background: none; border: 1px solid rgba(34,28,21,0.3);
  color: #2a2014; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.4rem 1.1rem;
  border-radius: 2px; transition: all 0.2s; cursor: pointer;
}
.view-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.view-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }
.section.dark .view-btn { border-color: rgba(184,134,11,0.25); color: var(--text-dark); }
.section.dark .view-btn.active { background: var(--accent); color: #fff; }

.date-filter { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 2rem; }
.date-filter-lbl {
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #6a5a44; font-weight: 600;
}
.date-input {
  border: 1px solid rgba(34,28,21,0.25); background: #fff; color: #2a2014;
  padding: 0.4rem 0.6rem; font-size: 0.85rem; border-radius: 3px;
  font-family: var(--font-body); outline: none;
}
.date-input:focus { border-color: var(--accent); }
.date-reset {
  background: none; border: 1px solid rgba(34,28,21,0.25); color: #2a2014;
  width: 32px; height: 32px; border-radius: 3px; cursor: pointer; font-size: 1rem;
  transition: all 0.2s;
}
.date-reset:hover { border-color: var(--accent); color: var(--accent); }
.section.dark .date-filter-lbl { color: var(--accent-light, #e8c87a); }
.section.dark .date-input,
.section.dark .date-reset { background: rgba(255,255,255,0.06); color: #e8dfce; border-color: rgba(184,134,11,0.3); }

.pli-empty {
  padding: 2.5rem 1rem; text-align: center; color: #8a7a5e;
  font-style: italic; font-size: 1.05rem;
}
.section.dark .pli-empty { color: rgba(200,187,168,0.7); }

#program-list { display: none; }
#program-list.visible { display: block; }
#program-timeline.hidden { display: none; }

.timeline { position: relative; padding: 1.5rem 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: rgba(34,28,21,0.1); transform: translateX(-50%);
}
.section.dark .timeline::before { background: rgba(184,134,11,0.15); }
.tl-row {
  display: grid; grid-template-columns: 1fr 48px 1fr;
  gap: 0 1rem; margin-bottom: 2.5rem; align-items: center;
}
.tl-card {
  background: #fff; border-radius: 2px;
  padding: 1.3rem 1.6rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  border-left: 3px solid var(--accent);
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
}
.tl-card:hover { box-shadow: 0 8px 36px rgba(0,0,0,0.12); transform: translateY(-2px); }
.section.dark .tl-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,134,11,0.2);
  border-left: 3px solid var(--accent-light);
  box-shadow: none; color: var(--text-dark);
}
.section.dark .tl-card:hover { background: rgba(255,255,255,0.08); }
.tl-card-date { font-size: 0.67rem; letter-spacing: 0.12em; color: var(--accent); font-weight: 500; margin-bottom: 0.38rem; text-transform: uppercase; }
.section.dark .tl-card-date { color: var(--accent-light); }
.tl-card-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.section.dark .tl-card-title { color: #EDE5D5; }
.tl-card-desc { font-size: 0.83rem; opacity: 0.6; margin-top: 0.35rem; line-height: 1.5; }
.section.dark .tl-card-desc { opacity: 0.5; }
.tl-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent); margin: 0 auto;
  transition: transform 0.25s;
}
.section.dark .tl-dot { border-color: var(--bg-dark); }
.tl-row:hover .tl-dot { transform: scale(1.3); }
.tl-empty {}

.pli-row {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 0 1.5rem; padding: 1rem 0; cursor: pointer;
  border-bottom: 1px solid rgba(34,28,21,0.07);
  transition: background 0.2s;
}
.pli-row:hover { background: rgba(184,134,11,0.04); }
.pli-row:last-child { border-bottom: none; }
.section.dark .pli-row { border-bottom-color: rgba(184,134,11,0.1); }
.pli-date { font-size: 0.8rem; color: var(--accent); line-height: 1.65; }
.section.dark .pli-date { color: var(--accent-light); }
.pli-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; color: #2a2014; }
.section.dark .pli-title { color: #EDE5D5; }
.pli-loc { font-size: 0.8rem; opacity: 0.55; margin-top: 0.15rem; }

.read-more {
  display: block; font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-top: 0.6rem; opacity: 0.7;
}
.section.dark .read-more { color: var(--accent-light); }

/* ── News ────────────────────────────────────────────────── */
.news-grid { display: grid; gap: 2rem; }
.news-card {
  border-left: 2px solid var(--accent); padding-left: 1.6rem;
  cursor: pointer; transition: border-left-width 0.2s;
}
.news-card:hover { border-left-width: 4px; }
.section.dark .news-card { border-left-color: var(--accent-light); }
.news-meta { font-size: 0.65rem; letter-spacing: 0.15em; color: var(--accent); font-weight: 500; margin-bottom: 0.42rem; text-transform: uppercase; }
.section.dark .news-meta { color: var(--accent-light); }
.news-headline { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; margin-bottom: 0.45rem; line-height: 1.25; }
.section.dark .news-headline { color: #EDE5D5; }
.news-body { font-size: 0.88rem; line-height: 1.65; opacity: 0.7; }
.section.dark .news-body { opacity: 0.55; }

/* ── Organisation ────────────────────────────────────────── */
/* ══ De Band: echte muzieknoten op een notenbalk over volle breedte ══ */
.org-members { margin-top: 2.5rem; width: 100%; }

.staff-wrap {
  position: relative; width: 100%;
  padding: 1rem 0 0;
}
/* één enkele SVG met lijnen, sleutel en noten — alles in hetzelfde coördinatenstelsel */
.staff-single {
  width: 100%; height: auto; display: block; overflow: visible;
}
.nb-staff-line {
  stroke: #3a2a16; stroke-width: 1.4; vector-effect: non-scaling-stroke;
}
.nb-clef-svg {
  font-family: Georgia, 'Times New Roman', serif; font-size: 210px;
  fill: #3a2a16; dominant-baseline: alphabetic;
}
/* instrument-label bij de noot (in de SVG) */
.note-role-svg {
  font-family: var(--font-display, 'Archivo'); font-weight: 500; font-size: 9px;
  letter-spacing: 0.08em; fill: var(--accent, #c98a2c);
}
/* naam onder/boven de noot — donker op de lichte sectie */
.note-name-svg {
  font-family: var(--font-display, 'Archivo'); font-weight: 700; font-size: 14px;
  letter-spacing: .01em; fill: #2a2014;
}

/* de muzieknoten zelf */
.music-note { transition: transform .45s cubic-bezier(.34,1.5,.5,1); transform-origin: center; cursor: pointer; }
.music-note:hover { transform: translateY(-8px); }
.note-head { fill: var(--accent-gold, #e8c87a); stroke: var(--accent-gold, #e8c87a); stroke-width: 2; vector-effect: non-scaling-stroke; }
.note-head.open { fill: #1a1008; stroke-width: 3; vector-effect: non-scaling-stroke; }
.note-head.filled { fill: var(--accent-gold, #e8c87a); }
.note-head-ring { fill: #1a1008; stroke: var(--accent-gold, #e8c87a); stroke-width: 2; vector-effect: non-scaling-stroke; }
.note-head-photo { stroke: var(--accent-gold, #e8c87a); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.note-stem { stroke: #2a1c0c; stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.note-flag { fill: #2a1c0c; stroke: none; }
.note-name-in {
  font-family: var(--font-display, 'Archivo'); font-weight: 700; font-size: 11px;
  letter-spacing: .01em;
}
.note-name-in.on-fill { fill: #1a1008; }
.note-name-in.on-open { fill: #fff; }
.music-note:hover .note-head.filled,
.music-note:hover .note-flag,
.music-note:hover .note-stem { filter: drop-shadow(0 0 6px rgba(232,200,122,0.6)); }
.music-note:hover .note-head-ring { stroke: #fff; }


/* smalle schermen: noten wat compacter, maar blijven echte noten */
@media (max-width: 720px) {
}

/* ── Links ───────────────────────────────────────────────── */
.links-grid { display: grid; gap: 0.85rem; margin-top: 1.25rem; }
.link-card {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.1rem 1.4rem; background: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05); border-radius: 2px;
  text-decoration: none; color: #2a2014;
  border-left: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.link-card:hover { transform: translateX(5px); box-shadow: 0 6px 24px rgba(0,0,0,0.09); border-left-color: var(--accent); }
.section.dark .link-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(184,134,11,0.14); color: var(--text-dark); }
.section.dark .link-card:hover { background: rgba(255,255,255,0.08); border-left-color: var(--accent-light); }
.link-arrow { color: var(--accent); font-size: 1.4rem; flex-shrink: 0; transition: transform 0.2s; }
.link-card:hover .link-arrow { transform: translateX(4px); }
.section.dark .link-arrow { color: var(--accent-light); }
.link-name { font-family: var(--font-display); font-size: 1.08rem; font-weight: 500; }
.section.dark .link-name { color: #EDE5D5; }
.link-desc { font-size: 0.73rem; opacity: 0.45; margin-top: 0.1rem; }

/* ── Admin ───────────────────────────────────────────────── */
.admin-login-box { max-width: 400px; }
.af-group { margin-bottom: 1.2rem; }
.af-group label { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.45; margin-bottom: 0.35rem; }
.af-group input {
  width: 100%; border: 1px solid rgba(34,28,21,0.18); background: #fff;
  padding: 0.68rem 0.9rem; font-size: 0.95rem; color: #2a2014;
  border-radius: 2px; outline: none; font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.af-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,134,11,0.12); }
.admin-err { color: #a03020; font-size: 0.85rem; margin-top: 0.75rem; display: none; line-height: 1.5; }
.admin-login-box.hidden { display: none; }
.admin-panel { display: none; }
.admin-panel.visible { display: block; }

.btn-primary {
  background: var(--accent); color: #fff; border: none;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.75rem 2rem; border-radius: 2px;
  transition: background 0.2s, transform 0.15s; font-family: var(--font-body);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-secondary {
  background: none; color: var(--text); border: 1px solid rgba(34,28,21,0.22);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.65rem 1.25rem; border-radius: 2px; transition: all 0.2s; font-family: var(--font-body);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger {
  background: none; color: #a03020; border: 1px solid rgba(160,48,32,0.3);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.65rem 1.25rem; border-radius: 2px; transition: all 0.2s; font-family: var(--font-body);
}
.btn-danger:hover { background: #a03020; color: #fff; }

.admin-tabs {
  display: flex; flex-wrap: wrap; gap: 0;
  border-bottom: 1px solid rgba(34,28,21,0.12); margin-bottom: 2rem;
}
.atab {
  font-size: 0.73rem; letter-spacing: 0.06em; padding: 0.6rem 1rem;
  border: none; background: none; color: var(--text); opacity: 0.4;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s; margin-bottom: -1px;
  font-family: var(--font-body);
}
.atab.active { opacity: 1; border-bottom-color: var(--accent); color: var(--accent); }
.atab:hover:not(.active) { opacity: 0.7; }
.atab.danger { color: #a03020; opacity: 0.7; }
.atab.danger:hover { opacity: 1; }

.admin-tab-content { display: none; }
.admin-tab-content.visible { display: block; }

.afield { margin-bottom: 1rem; }
.afield label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.42; display: block; margin-bottom: 0.28rem; }
.afield input, .afield textarea, .afield select {
  width: 100%; border: 1px solid rgba(34,28,21,0.15); padding: 0.6rem 0.78rem;
  font-family: var(--font-body); font-size: 0.88rem; border-radius: 2px;
  background: #fff; color: #2a2014; outline: none; transition: border-color 0.2s;
}
.afield input:focus, .afield textarea:focus, .afield select:focus { border-color: var(--accent); }
.afield textarea { height: 90px; resize: vertical; }

.admin-block {
  background: rgba(34,28,21,0.03); border: 1px solid rgba(34,28,21,0.08);
  border-radius: 3px; padding: 1.25rem; margin-bottom: 1rem; position: relative;
}
.admin-block-title {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 500;
  margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(34,28,21,0.08);
}
.admin-block .remove-btn {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: none; border: none; color: rgba(34,28,21,0.22);
  font-size: 1.3rem; line-height: 1; transition: color 0.2s;
}
.admin-block .remove-btn:hover { color: #a03020; }
.admin-action-bar { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.5rem; flex-wrap: wrap; }
.admin-section-title {
  font-family: var(--font-display); font-size: 1.28rem; font-weight: 400;
  margin-bottom: 1.5rem; padding-bottom: 0.6rem; border-bottom: 1px solid rgba(34,28,21,0.1);
}
.admin-subtitle { font-size: 0.82rem; opacity: 0.45; margin-bottom: 1.25rem; }
.color-row { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.color-swatch { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.color-swatch label { font-size: 0.67rem; opacity: 0.5; text-align: center; }
.color-swatch input[type="color"] { width: 52px; height: 52px; border: 1px solid rgba(34,28,21,0.15); border-radius: 3px; padding: 3px; background: #fff; }
.font-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.sync-badge { display: inline-block; font-size: 0.55rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 2px; padding: .08rem .35rem; opacity: .6; margin-left: .4rem; vertical-align: middle; }
.en-synced { opacity: .5; }
.en-synced:focus { opacity: 1; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: #0C0905; color: rgba(237,229,213,0.45);
  padding: 4rem 2rem 3rem; text-align: center;
  border-top: 1px solid rgba(184,134,11,0.15);
}
.footer-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.footer-logo { height: 50px; opacity: 0.3; filter: invert(1) sepia(1) saturate(0.5) brightness(1.5); margin: 0 auto 1.5rem; }
.footer-ornament { color: var(--accent); opacity: 0.4; font-size: 0.9rem; margin-bottom: 1.1rem; letter-spacing: 0.6em; }
.footer-copy { font-size: 0.88rem; letter-spacing: 0.04em; line-height: 2; margin-bottom: 1.25rem; opacity: .75; text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 1.75rem; flex-wrap: wrap; }
.footer-social a { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: rgba(237,229,213,0.28); transition: color 0.2s; }
.footer-social a:hover { color: var(--accent-light); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 8000;
  background: rgba(10,7,3,0.9); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto; padding: calc(var(--header-h) + 1.5rem) 1.5rem 3rem;
}
.modal-overlay.open { display: block; }
.modal-box {
  max-width: 760px; margin: 0 auto; background: var(--bg);
  border-radius: 2px; overflow: hidden; position: relative;
  border-top: 3px solid var(--accent);
  animation: modalIn .32s cubic-bezier(0.2,0,0,1) forwards;
}
@keyframes modalIn { from{opacity:0;transform:translateY(36px)} to{opacity:1;transform:none} }
.modal-close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 2.4rem; height: 2.4rem; background: rgba(34,28,21,0.08);
  border: none; border-radius: 50%; font-size: 1.25rem; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, transform 0.2s, opacity 0.2s; z-index: 10;
  opacity: 0.35;
}
.modal-close:hover { background: var(--accent); color: #fff; transform: rotate(90deg); opacity: 1; }
.modal-image {
  width: 100%;
  background: linear-gradient(135deg, #1C140A, #2C1E0E, #16100A);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.modal-image img { width: 100%; height: auto; max-height: 50vh; object-fit: scale-down; display: block; }
.modal-placeholder { font-size: 4.5rem; opacity: 0.15; user-select: none; }
.modal-image-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,7,3,0.35) 100%);
}
.modal-image.member {
  height: 200px; flex-direction: column; gap: 0.85rem;
}
.modal-member-photo {
  width: 100px; height: 100px; border-radius: 50%;
  border: 3px solid var(--accent); object-fit: cover; display: block;
}
.modal-member-initial {
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(184,134,11,0.15); border: 2px solid rgba(184,134,11,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.5rem; color: rgba(237,229,213,0.6);
}
.modal-content { padding: 2.25rem 2.75rem 2.75rem; }
.modal-label { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 0.7rem; }
.modal-title { font-family: var(--font-display); font-size: clamp(1.7rem,3.5vw,2.6rem); font-weight: 400; line-height: 1.1; margin-bottom: 1rem; }
.modal-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(34,28,21,0.1); }
.modal-meta-item { display: flex; flex-direction: column; gap: 0.15rem; }
.modal-meta-key { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.38; }
.modal-meta-val { font-size: 0.9rem; font-weight: 500; }
.modal-body { font-size: 1rem; line-height: 1.88; opacity: 0.8; }
.modal-body p { margin-bottom: 1rem; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-footer { margin-top: 1.75rem; padding-top: 1.4rem; border-top: 1px solid rgba(34,28,21,0.08); display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.modal-ext-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.modal-ext-link:hover { color: var(--accent-light); }

/* ── Confirm modal ───────────────────────────────────────── */
.confirm-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(14,9,5,0.72); backdrop-filter: blur(6px);
  z-index: 9000; align-items: center; justify-content: center;
}
.confirm-overlay.open { display: flex; }
.confirm-box {
  background: var(--bg); border-radius: 3px;
  padding: 2.5rem 2.25rem 2rem; max-width: 440px; width: 90%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  border-top: 3px solid var(--accent);
  animation: modalIn .25s ease;
}
.confirm-icon { font-size: 2rem; margin-bottom: .75rem; line-height: 1; }
.confirm-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin-bottom: .55rem; }
.confirm-msg { font-size: .88rem; line-height: 1.65; opacity: .65; margin-bottom: 1.75rem; }
.confirm-actions { display: flex; gap: .75rem; }

/* Mobiele titel: standaard verborgen */
.logo-title--mob { display: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Portrait: verkorte titel tonen, normale verbergen */
  @media (orientation: portrait) {
    .logo-title--desk { display: none; }
    .logo-title--mob  { display: block; }
  }
  /* Landscape: normale titel gewoon tonen */
  @media (orientation: landscape) {
    .logo-title--desk { display: block; }
    .logo-title--mob  { display: none; }
  }

  #home { justify-content: flex-start; padding-top: calc(var(--header-h) + 2.5rem); gap: 1.5rem; }
  .timeline::before { left: 22px; }
  .tl-row { grid-template-columns: 44px 1fr !important; }
  .tl-empty { display: none !important; }
  .tl-card  { grid-column: 2 !important; grid-row: 1 !important; }
  .tl-dot   { grid-column: 1 !important; grid-row: 1 !important; margin: 0; }
  .section-inner { padding: 0 1.5rem 0 52px; }  /* linker ruimte voor drawer-tabs (44px) */
  .modal-content { padding: 1.75rem 1.5rem 2.25rem; }
  .font-row { grid-template-columns: 1fr; }
}

/* ── Inline bewerkmodus ──────────────────────────────────────── */
#edit-bar {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 9500;
  background: linear-gradient(90deg, #1C140A, #2C1E0E);
  border-bottom: 1px solid var(--accent);
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 1.5rem;
  font-family: var(--font-body);
  font-size: .78rem;
  color: rgba(237,229,213,.7);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
#edit-bar span { color: var(--accent-light); font-weight: 500; letter-spacing: .08em; }
#edit-bar button, #edit-bar a {
  background: rgba(184,134,11,.18);
  color: rgba(237,229,213,.85);
  border: 1px solid rgba(184,134,11,.25);
  padding: .3rem .9rem;
  border-radius: 2px;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
  font-family: var(--font-body);
}
#edit-bar button:hover, #edit-bar a:hover { background: rgba(184,134,11,.35); }
#edit-bar .edit-save { background: var(--accent); color: #fff; border-color: var(--accent); }
#edit-bar .edit-save:hover { background: var(--accent-light); }
#edit-bar .edit-spacer { flex: 1; }
body.edit-mode { padding-top: 38px; } /* ruimte voor edit bar */

/* Bewerkbare elementen */
[contenteditable="true"] {
  outline: 2px dashed rgba(184,134,11,.4);
  outline-offset: 3px;
  border-radius: 1px;
  cursor: text;
  transition: outline-color .2s;
  min-height: 1em;
}
[contenteditable="true"]:focus {
  outline-color: var(--accent-light);
  background: rgba(184,134,11,.05);
}
[contenteditable="true"]:empty::before {
  content: attr(data-placeholder);
  opacity: .35;
  pointer-events: none;
}
.edit-field-label {
  display: block;
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .6;
  margin-bottom: .15rem;
}

/* ============================================================
   HORIZONTALE TIJDSBALK
   ============================================================ */
.htl-outer {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 .5rem;
  /* Scrollbar stijl */
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(34,28,21,.1);
}
.htl-outer::-webkit-scrollbar { height: 4px; }
.htl-outer::-webkit-scrollbar-track { background: rgba(34,28,21,.06); border-radius: 2px; }
.htl-outer::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.htl {
  position: relative;
  min-width: 700px;
  height: 420px;
  margin: 1rem 0;
}

/* De hoofdlijn */
.htl-line {
  position: absolute;
  top: 50%;
  left: 4%;
  right: 4%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 8%,
    var(--accent) 92%,
    transparent 100%);
}

/* Uiteinden van de lijn */
.htl-line::before, .htl-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  opacity: .6;
}
.htl-line::before { left: 0; }
.htl-line::after  { right: 0; }

/* Event-container (anchor op de lijn) */
.htl-event {
  position: absolute;
  top: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}

/* Diamond marker op de lijn */
.htl-marker {
  position: absolute;
  left: -8px; top: -8px;
  width: 16px; height: 16px;
  background: var(--accent);
  transform: rotate(45deg);
  transition: transform .25s, background .25s;
  box-shadow: 0 0 0 3px rgba(184,134,11,.2);
  z-index: 2;
}
.htl-event:hover .htl-marker {
  transform: rotate(45deg) scale(1.35);
  background: var(--accent-light);
}

/* Verticale stam */
.htl-stem {
  position: absolute;
  left: -0.5px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: .45;
}

/* Kaart */
.htl-card {
  position: absolute;
  width: 172px;
  left: -86px;
  background: #fff;
  border-radius: 2px;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
  border-top: 2px solid var(--accent);
  transition: box-shadow .25s, transform .25s;
}
.htl-event:hover .htl-card {
  box-shadow: 0 8px 36px rgba(0,0,0,.14);
  transform: translateY(-3px);
}
.htl-card-label {
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: .35rem;
}
.htl-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: .3rem;
  color: var(--text);
}
.htl-card-loc {
  font-size: .74rem;
  opacity: .5;
  line-height: 1.4;
}
.htl-more {
  display: inline-block;
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: .5rem;
  opacity: .7;
}

/* ── Boven de lijn ── */
.htl-above .htl-stem {
  top: -84px;
  height: 77px;
  background: linear-gradient(to top, var(--accent), transparent);
}
.htl-above .htl-card {
  bottom: 84px;
}
.htl-above:hover .htl-card { transform: translateY(-5px); }

/* ── Onder de lijn ── */
.htl-below .htl-stem {
  top: 8px;
  height: 70px;
}
.htl-below .htl-card {
  top: 78px;
  border-top: none;
  border-bottom: 2px solid var(--accent);
}
.htl-below:hover .htl-card { transform: translateY(3px); }

/* Dark section versie */
.section.dark .htl-card {
  background: rgba(255,255,255,.05);
  border-top-color: var(--accent-light);
  box-shadow: 0 4px 32px rgba(0,0,0,.3);
}
.section.dark .htl-below .htl-card { border-bottom-color: var(--accent-light); border-top: none; }
.section.dark .htl-card-title { color: #EDE5D5; }
.section.dark .htl-card-label { color: var(--accent-light); }
.section.dark .htl-more { color: var(--accent-light); }
.section.dark .htl-event:hover .htl-card { background: rgba(255,255,255,.09); }
.section.dark .htl-marker { background: var(--accent-light); }
.section.dark .htl-event:hover .htl-marker { background: var(--accent-gold); }
.section.dark .htl-line {
  background: linear-gradient(90deg, transparent 0%, var(--accent-light) 8%, var(--accent-light) 92%, transparent 100%);
}
.section.dark .htl-line::before,
.section.dark .htl-line::after { background: var(--accent-light); }

/* Programma-lijn (lichte sectie) */
.htl-pli-list { margin-top: 1.5rem; }

/* ============================================================
   GANTT-TIJDLIJN (vervangt htl-*)
   ============================================================ */
.gantt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--accent) rgba(34,28,21,.1); }
.gantt-wrap::-webkit-scrollbar { height: 4px; }
.gantt-wrap::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.gantt { min-width: 560px; width: 100%; border-collapse: collapse; }

/* Tijdas header */
.gantt-head { display: grid; grid-template-columns: 1fr auto 45%; gap: 0; margin-bottom: .5rem; }
.gantt-head-ticket { min-width: 90px; padding: 0 .85rem; }
.gantt-head-info { padding-right: 1.5rem; }
.gantt-head-track { position: relative; height: 28px; }
.gantt-head-track::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: rgba(34,28,21,.12);
}
.section.dark .gantt-head-track::after { background: rgba(184,134,11,.2); }

.gantt-month {
  position: absolute; bottom: 5px;
  transform: translateX(-50%);
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; white-space: nowrap; pointer-events: none;
}
.section.dark .gantt-month { color: var(--accent-light); }

/* Rijen */
.gantt-row {
  display: grid;
  grid-template-columns: 1fr auto 45%;
  gap: 0;
  border-bottom: 1px solid rgba(34,28,21,.07);
  padding: .75rem 0;
  transition: background .15s;
  align-items: center;
}
.gantt-row:hover { background: rgba(184,134,11,.04); }
.section.dark .gantt-row { border-bottom-color: rgba(184,134,11,.08); }
.section.dark .gantt-row:hover { background: rgba(184,134,11,.06); }

.gantt-info { padding-right: 1.5rem; }
.gantt-title {
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 500;
  line-height: 1.2; margin-bottom: .2rem; color: #2a2014;
  transition: color .15s;
}
.section.dark .gantt-title { color: #EDE5D5; }
.gantt-row:hover .gantt-title { color: var(--accent); }
.section.dark .gantt-row:hover .gantt-title { color: var(--accent-light); }

.gantt-meta { font-size: .75rem; opacity: .5; line-height: 1.45; }
.gantt-read  {
  display: inline-block; font-size: .62rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-top: .35rem; opacity: .7;
}
.section.dark .gantt-read { color: var(--accent-light); }

/* Track */
.gantt-track {
  position: relative;
  display: flex; align-items: center;
  padding: .4rem 0;
}
.gantt-track-line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: rgba(34,28,21,.1); transform: translateY(-50%);
}
.section.dark .gantt-track-line { background: rgba(184,134,11,.15); }

/* Kruis / ruit voor enkelvoudige datum */
.gantt-cross {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--accent);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 0 3px rgba(184,134,11,.18);
  transition: transform .2s, background .2s;
  z-index: 1;
}
.section.dark .gantt-cross { background: var(--accent-light); box-shadow: 0 0 0 3px rgba(212,168,42,.2); }
.gantt-row:hover .gantt-cross {
  transform: translateX(-50%) rotate(45deg) scale(1.4);
  background: var(--accent-light);
}

/* Balk voor periode */
.gantt-bar {
  position: absolute;
  height: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(184,134,11,.25);
  transition: height .2s, box-shadow .2s;
  z-index: 1;
}
.gantt-row:hover .gantt-bar { height: 12px; box-shadow: 0 3px 14px rgba(184,134,11,.4); }

/* Datum-label onder het kruis/balk */
.gantt-tick {
  position: absolute;
  top: calc(50% + 9px);
  transform: translateX(-50%);
  font-size: .58rem; color: var(--accent); white-space: nowrap;
  opacity: .65; pointer-events: none;
}
.section.dark .gantt-tick { color: var(--accent-light); }
.gantt-bar-tick {
  position: absolute;
  top: calc(50% + 9px);
  left: 0;
  font-size: .58rem; color: var(--accent); white-space: nowrap;
  opacity: .65; pointer-events: none;
}
.section.dark .gantt-bar-tick { color: var(--accent-light); }

/* ── Tickets reservering sectie ─────────────────────────────── */
.ticket-event-list { display: grid; gap: 1.25rem; }
.ticket-event-card {
  background: #fff;
  border-radius: 2px;
  padding: 1.5rem;
  box-shadow: 0 2px 18px rgba(0,0,0,.06);
  border-left: 3px solid var(--accent);
}
.ticket-event-hd {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem;
  margin-bottom: .75rem; flex-wrap: wrap;
}
.ticket-event-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: #2a2014; }
.ticket-event-meta  { font-size: .8rem; opacity: .55; margin-top: .2rem; color: #3a2e1e; }
.ticket-badge {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .22rem .65rem; border-radius: 10px; white-space: nowrap; flex-shrink: 0;
}
.ticket-badge.free     { background: rgba(46,125,50,.1);  color: #2e7d32; }
.ticket-badge.paid     { background: rgba(184,134,11,.12); color: #7a5c00; }
.ticket-badge.soldout  { background: rgba(160,48,32,.1);   color: #a03020; }
.ticket-badge.disabled { background: rgba(34,28,21,.07);   color: rgba(34,28,21,.35); }
.ticket-avail { font-size: .8rem; margin: .4rem 0 .75rem; }
.ticket-avail.ok   { color: #2e7d32; }
.ticket-avail.warn { color: #e65100; }
.ticket-avail.full { color: #a03020; }

/* Inline reserveringsformulier in ticketspagina */
.res-form-inline {
  margin-top: 1rem;
  padding: 1.25rem;
  background: rgba(34,28,21,.03);
  border-radius: 2px;
  border: 1px solid rgba(34,28,21,.08);
}
.res-form-inline .res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: .75rem; }
.res-form-inline label { font-size:.65rem;letter-spacing:.1em;text-transform:uppercase;opacity:.4;display:block;margin-bottom:.25rem; }
.res-form-inline input {
  width:100%;border:1px solid rgba(34,28,21,.14);padding:.55rem .75rem;
  border-radius:2px;font-family:var(--font-body);font-size:.88rem;
}
.res-form-inline input:focus { outline:none; border-color:var(--accent); }

/* ── Privacy ─────────────────────────────────────────────────── */
.privacy-sections { display: grid; gap: 0; }
.privacy-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(34,28,21,.07);
}
.privacy-item:last-child { border-bottom: none; }
.privacy-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 500;
  margin-bottom: .6rem; color: var(--text);
}
.privacy-item p { font-size: .95rem; line-height: 1.85; opacity: .78; }

/* ── Edit-toggle knop in header ─────────────────────────────── */
.edit-toggle-btn {
  background: none;
  border: none;
  color: rgba(34,28,21,0.45);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.edit-toggle-btn svg { width: 13px; height: 13px; }
.edit-btn-label { display: none; }
.edit-toggle-btn:hover { color: var(--accent); }
.edit-toggle-btn.edit-active { color: var(--accent); }

/* Login modal voor inline bewerken */
.edit-login-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 8500;
  background: rgba(14,9,5,0.75);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.edit-login-overlay.open { display: flex; }
.edit-login-box {
  background: var(--bg);
  max-width: 360px; width: 90%;
  padding: 2.5rem;
  border-top: 3px solid var(--accent);
  border-radius: 2px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  animation: modalIn .28s ease;
}
.edit-login-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 400;
  margin-bottom: .25rem;
}
.edit-login-sub {
  font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 2rem;
}
.edit-login-label {
  display: block; font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; opacity: .45; margin-bottom: .3rem;
}
.edit-login-input {
  width: 100%; border: 1px solid rgba(34,28,21,.18);
  padding: .68rem .9rem; font-size: .95rem;
  border-radius: 2px; font-family: var(--font-body);
  margin-bottom: 1.25rem; box-sizing: border-box;
}
.edit-login-input:focus { outline: none; border-color: var(--accent); }
.edit-login-err { color: #a03020; font-size: .82rem; margin-bottom: .75rem; display: none; }

/* ── Gantt: acties + badges ─────────────────────────────────── */
.gantt-actions {
  display: flex; align-items: center; gap: .75rem;
  margin-top: .35rem; flex-wrap: wrap;
}
/* ── Gantt ticket column (middle) ───────────────────────────── */
.gantt-ticket-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 0 .85rem;
  min-width: 90px;
  text-align: center;
}
.gtick-price {
  font-size: .72rem; letter-spacing: .08em;
  font-weight: 600; white-space: nowrap;
}
.gtick-free { color: #2e7d32; }
.gtick-paid { color: var(--accent); }
.section.dark .gtick-free { color: #81c784; }
.section.dark .gtick-paid { color: var(--accent-light); }
.gtick-reserve-btn {
  font-family: var(--font-body);
  font-size: .62rem; letter-spacing: .07em; text-transform: uppercase;
  background: var(--accent); color: #fff; border: none;
  padding: .28rem .7rem; border-radius: 2px; cursor: pointer;
  transition: background .2s; white-space: nowrap;
}
.gtick-reserve-btn:hover { background: var(--accent-light); }
.section.dark .gtick-reserve-btn { background: var(--accent-light); color: var(--bg-dark); }
.section.dark .gtick-reserve-btn:hover { background: var(--accent-gold); }

/* Legacy (keep for pli) */
.gantt-badge-free,.gantt-badge-paid,.gantt-reserve-btn { display: none; }

/* ── Lijst: ticket-kolom ────────────────────────────────────── */
.pli-row {
  grid-template-columns: 130px 1fr auto;
}
.pli-ticket-col {
  display: flex; align-items: center; flex-shrink: 0;
}
.pli-badge {
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .18rem .6rem; border-radius: 10px; white-space: nowrap;
}
.pli-free { background: rgba(46,125,50,.1);  color: #2e7d32; }
.pli-paid { background: rgba(184,134,11,.12); color: #7a5c00; }
.section.dark .pli-free { background: rgba(46,125,50,.2);   color: #81c784; }
.section.dark .pli-paid { background: rgba(212,168,42,.15); color: var(--accent-light); }

/* ── Gantt edit knop (edit-mode) ────────────────────────────── */
.gantt-edit-btn {
  background: none; border: 1px solid rgba(184,134,11,.3);
  color: var(--accent); font-size: .72rem; padding: .12rem .45rem;
  border-radius: 2px; cursor: pointer; margin-left: .5rem;
  opacity: .6; transition: opacity .2s;
}
.gantt-edit-btn:hover { opacity: 1; background: rgba(184,134,11,.08); }
.section.dark .gantt-edit-btn { border-color: rgba(212,168,42,.3); color: var(--accent-light); }

/* ── Confirm dialoog ─────────────────────────────────────────── */
.confirm-backdrop {
  position: fixed; inset: 0; z-index: 9200;
  background: rgba(10,7,3,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.confirm-box {
  background: var(--bg); max-width: 420px; width: 90%;
  padding: 2.25rem; border-top: 3px solid var(--accent);
  border-radius: 2px; box-shadow: 0 24px 80px rgba(0,0,0,.35);
  font-family: var(--font-body);
}
.confirm-box h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; margin-bottom: .5rem; }
.confirm-box p  { font-size: .88rem; opacity: .65; margin-bottom: 1.75rem; line-height: 1.55; }
.confirm-btns   { display: flex; gap: .75rem; }

/* ── Undo-toast ──────────────────────────────────────────────── */
#undo-toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 9300; background: #221C15; color: #EDE5D5;
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 1.25rem; border-radius: 3px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  font-family: var(--font-body); font-size: .85rem;
  transition: opacity .3s; pointer-events: auto;
  min-width: 280px;
}
#undo-toast .undo-msg { flex: 1; }
#undo-toast .undo-bar {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--accent); border-radius: 0 0 3px 3px;
  animation: undoBar linear forwards;
}
@keyframes undoBar { from { width: 100%; } to { width: 0%; } }
#undo-toast button {
  background: var(--accent); color: #fff; border: none;
  padding: .35rem .9rem; border-radius: 2px; cursor: pointer;
  font-family: var(--font-body); font-size: .75rem;
  letter-spacing: .06em; white-space: nowrap;
}

/* ── Delete knop in edit-mode ───────────────────────────────── */
.gantt-del-btn {
  border-color: rgba(160,48,32,.3) !important;
  color: #a03020 !important;
}
.gantt-del-btn:hover {
  background: rgba(160,48,32,.08) !important;
}

/* ============================================================
   MEDIA CONTAINERS (4:3)
   ============================================================ */

/* Section header media */
.section-media {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 3rem;
  border-radius: 2px;
}
.section-media img {
  width: 100%;
  height: auto;
  max-height: 60vh;   /* nooit groter dan 60% van het scherm */
  object-fit: scale-down; /* kleiner als nodig, nooit bijsnijden */
  display: block;
}
.section-media video {
  width: 100%;
  height: auto;
  max-height: 60vh;
  display: block;
  background: #000;
}

/* Modal media (top half) */
.modal-image {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, rgba(184,134,11,.08) 0%, rgba(14,10,5,.6) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-image.has-media {
  display: block;
  height: auto;
  min-height: 0;
  background: #000;
}
.modal-image.has-media img {
  width: 100%;
  height: auto;
  max-height: 50vh;
  object-fit: scale-down;
  display: block;
}
.modal-image.has-media video {
  width: 100%;
  height: auto;
  max-height: 50vh;
  display: block;
  background: #000; cursor: pointer;
}
/* Video play overlay */
.modal-video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25);
  transition: opacity .2s;
  pointer-events: none;
}
.modal-video-play svg { width: 56px; height: 56px; opacity: .85; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.modal-image.has-media.playing .modal-video-play { opacity: 0; }

/* Admin media picker */
.media-field {
  display: flex; align-items: center; gap: .75rem;
  margin-top: .5rem; flex-wrap: wrap;
}
.media-thumb {
  width: 80px; height: 60px; object-fit: cover;
  border-radius: 2px; border: 1px solid rgba(34,28,21,.12);
  background: #f0ebe2;
}
.media-clear {
  background: none; border: none; color: #a03020;
  font-size: .75rem; cursor: pointer; text-decoration: underline;
}

/* ── Modal: organisator ─────────────────────────────────────── */
.modal-organiser {
  margin: 1.5rem 0 1rem;
  padding: 1rem 1.25rem;
  background: rgba(34,28,21,.03);
  border-left: 2px solid var(--accent);
  border-radius: 0 2px 2px 0;
}
.modal-organiser-title {
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: .6rem;
}
.modal-org-row {
  font-size: .88rem; line-height: 1.7;
}
.modal-org-key {
  display: inline-block; min-width: 75px;
  font-size: .7rem; opacity: .45; text-transform: uppercase; letter-spacing: .06em;
}
.modal-org-row a { color: var(--accent); text-decoration: none; }
.modal-org-row a:hover { text-decoration: underline; }

/* ── Modal: prijs-badge ─────────────────────────────────────── */
.modal-price-badge {
  font-size: .88rem; font-weight: 600; color: var(--accent);
  margin-right: .75rem;
}
.modal-footer { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }

/* ============================================================
   GEDICHTEN PAGINA
   ============================================================ */

/* Uitgelicht gedicht */
.gedicht-featured {
  max-width: 680px; margin: 0 auto 3rem;
  padding: 2.5rem; position: relative;
  border-left: 3px solid var(--accent);
  background: rgba(184,134,11,.04);
  border-radius: 0 2px 2px 0;
}
.gedicht-featured-label {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 1.25rem;
}
.gedicht-featured-title {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 400;
  color: #EDE5D5; margin-bottom: .25rem;
}
.gedicht-featured-author {
  font-size: .82rem; opacity: .45; margin-bottom: 1.75rem;
}
.gedicht-featured-text {
  font-family: var(--font-display); font-size: 1.05rem; line-height: 2;
  color: rgba(237,229,213,.88); white-space: pre-wrap; margin-bottom: 1.5rem;
}

/* Gedichtenraster */
.gedichten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem; margin-bottom: 2.5rem;
}
.gedicht-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(184,134,11,.15);
  border-radius: 2px; padding: 1.25rem;
  transition: background .2s, border-color .2s;
}
.gedicht-card:hover {
  background: rgba(184,134,11,.08);
  border-color: rgba(184,134,11,.35);
}
.gedicht-card-title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 500;
  color: #EDE5D5; margin-bottom: .2rem;
}
.gedicht-card-author { font-size: .75rem; opacity: .42; margin-bottom: .75rem; }
.gedicht-card-preview {
  font-family: var(--font-display); font-size: .9rem; line-height: 1.7;
  opacity: .55; margin-bottom: .75rem;
}
.gedicht-card-stem { margin-top: .5rem; }

/* Stem-knop */
.gedicht-stem-btn {
  font-family: var(--font-body); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; background: none;
  border: 1px solid rgba(184,134,11,.4); color: var(--accent-light);
  padding: .3rem .85rem; border-radius: 2px; cursor: pointer;
  transition: all .2s; display: inline-flex; align-items: center; gap: .35rem;
}
.gedicht-stem-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.gedicht-stem-count {
  background: rgba(184,134,11,.25); padding: .05rem .35rem;
  border-radius: 8px; font-size: .68rem;
}

/* Modal gedicht tekst */
.gedicht-modal-text {
  font-family: var(--font-display); font-size: 1.05rem; line-height: 2;
  white-space: pre-wrap; padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--accent);
  background: rgba(34,28,21,.03);
}
.section.dark .gedicht-modal-text { background: rgba(255,255,255,.04); }

/* Inzendformulier */
.gedicht-form-wrap {
  max-width: 680px; margin: 0 auto;
  padding-top: 2rem; border-top: 1px solid rgba(184,134,11,.15);
}

/* Stem verdelen UI */
.stem-banner {
  background: rgba(184,134,11,.08); border: 1px solid rgba(184,134,11,.25);
  border-radius: 2px; padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
}
.stem-banner-title {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--accent-light);
  font-weight: 500; flex-shrink: 0;
}
.stem-banner-info { font-size: .85rem; opacity: .7; flex: 1; min-width: 180px; }
.gedicht-stem-row {
  display: flex; align-items: center; gap: .4rem; margin-top: .75rem;
}
.stem-minus, .stem-plus {
  width: 1.8rem; height: 1.8rem; border: 1px solid rgba(184,134,11,.4);
  background: none; color: var(--accent-light); border-radius: 2px;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center;
  justify-content: center; transition: all .15s; flex-shrink: 0;
}
.stem-minus:hover, .stem-plus:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.stem-punten {
  min-width: 1.6rem; text-align: center; font-size: .95rem;
  font-weight: 600; color: var(--accent-light);
}
.stem-label { font-size: .72rem; opacity: .55; }
.gedicht-card-featured { border-color: rgba(184,134,11,.45) !important; }
.gedicht-card-badge {
  display: inline-block; font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; background: var(--accent); color: #fff;
  padding: .1rem .5rem; border-radius: 2px; margin-bottom: .5rem;
}
.gedicht-card-score { font-size: .75rem; opacity: .45; margin-top: .35rem; }
.avg-badge {
  display: inline-block; background: rgba(184,134,11,.15); color: var(--acc);
  padding: .15rem .55rem; border-radius: 10px; font-size: .72rem;
  font-family: 'Jost', sans-serif; margin-left: .5rem; vertical-align: middle;
}

/* Gedichten in activiteitsmodal */
.modal-gedicht-form {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(34,28,21,.1);
}
.modal-gedicht-title {
  font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 400; margin-bottom: 1.25rem;
}
.modal-gedicht-gesloten {
  margin-top: 1.75rem; padding: .9rem 1.1rem;
  background: rgba(34,28,21,.04);
  border-left: 3px solid rgba(34,28,21,.18);
  border-radius: 0 2px 2px 0; font-size: .9rem; line-height: 1.6;
}
.modal-gedicht-gesloten a { color: var(--accent); text-decoration: none; }
.modal-gedicht-gesloten a:hover { text-decoration: underline; }

.ticket-badge.ntb { background: rgba(100,80,20,.1); color: #7a5c00; font-style: italic; }

/* ── Video laadscherm ───────────────────────────────────────── */
#video-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #0E0905;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s ease;
}
#video-loader.fade-out { opacity: 0; pointer-events: none; }
#video-loader.hidden   { display: none; }

#video-loader-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.5rem;
}

#video-loader-ring {
  width: 48px; height: 48px;
  border: 2px solid rgba(184,134,11,.2);
  border-top-color: #B8860B;
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#video-loader-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(184,134,11,.6);
}

/* ── Responsive afbeeldingen ────────────────────────────────── */
@media (max-width: 768px) {
  .section-media { max-width: 100%; }
}

/* ── Alle sluit-knoppen ─────────────────────────────────────── */
button[onclick*="closeModal"],
button[onclick*="closeEditLogin"],
button[onclick*="toggleResForm"],
button[onclick*="renderTab"],
button[onclick*="closeNav"],
[id$="-close-btn"] {
  opacity: 0.35;
  transition: opacity 0.2s;
}
button[onclick*="closeModal"]:hover,
button[onclick*="closeEditLogin"]:hover,
button[onclick*="toggleResForm"]:hover,
button[onclick*="renderTab"]:hover,
[id$="-close-btn"]:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   LINKER UITSCHUIF-DRAWER
   ═══════════════════════════════════════════════════════ */

/* Schuifpaneel */
.ld-panel {
  position: fixed;
  left: 0; top: var(--header-h, 56px); bottom: 0;
  width: 270px;
  background: rgba(6,4,2,.82);
  border-right: 1px solid rgba(184,134,11,.22);
  display: flex;
  flex-direction: column;
  transform: translateX(-270px);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 190;
  box-shadow: 4px 0 28px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ld-panel.ld-open { transform: translateX(0); }

/* Tabs: eigen fixed positie, schuiven mee via transition */
.ld-tabs {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 301;
  transition: left .28s cubic-bezier(.4,0,.2,1);
}
.ld-tabs.ld-shifted { left: 270px; }

.ld-tab-ear {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  background: rgba(40,25,5,.82);
  border: 1.5px solid rgba(184,134,11,.7);
  border-left: none;
  border-radius: 0 7px 7px 0;
  padding: 1rem .55rem;
  font-family: var(--font-display), Georgia, serif;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(220,190,100,.95);
  cursor: pointer;
  transition: background .15s, color .15s;
  user-select: none;
  white-space: nowrap;
  width: 44px;
  pointer-events: all;
}
.ld-tab-ear:hover {
  background: rgba(60,38,8,.92);
  color: #e8cc70;
}
.ld-tab-ear.ld-active {
  background: rgba(80,50,10,.92);
  color: #D4A040;
  border-color: #B8860B;
}

/* Twee helften: optredens boven, nieuws onder — elk een eigen scrollgebied */
.ld-half {
  display: flex;
  flex-direction: column;
  flex: 1 1 50%;
  min-height: 0;
}
.ld-divider {
  height: 1px; flex-shrink: 0;
  background: rgba(184,134,11,.28);
  margin: 0 .6rem;
}
.ld-hidden { display: none !important; }

.ld-panel-header {
  padding: .75rem 1rem;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(184,134,11,.8);
  border-bottom: 1px solid rgba(184,134,11,.14);
  flex-shrink: 0;
}
.ld-panel-items {
  flex: 1;
  overflow-y: auto;
  padding-top: .35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(184,134,11,.2) transparent;
}
.ld-item {
  padding: .65rem 1rem;
  border-bottom: 1px solid rgba(184,134,11,.08);
  cursor: pointer;
  transition: background .12s;
}
.ld-item:hover { background: rgba(184,134,11,.08); }
.ld-item-date {
  font-size: .76rem;
  letter-spacing: .04em;
  color: rgba(184,134,11,.75);
  margin-bottom: .25rem;
}
.ld-item-title {
  font-size: .9rem;
  line-height: 1.4;
  color: rgba(225,200,130,.95);
  margin-bottom: .3rem;
}
.ld-item-more {
  font-size: .74rem;
  color: rgba(184,134,11,.55);
}
.ld-item:hover .ld-item-more { color: #D4A040; }
.ld-panel-footer {
  display: block;
  padding: .65rem 1rem;
  border-top: 1px solid rgba(184,134,11,.18);
  font-size: .78rem;
  letter-spacing: .06em;
  color: rgba(184,134,11,.6);
  text-decoration: none;
  flex-shrink: 0;
  transition: color .15s;
}
.ld-panel-footer:hover { color: #D4A040; }

@media (max-width: 600px) {
  .ld-panel { width: 230px; transform: translateX(-230px); }
  .ld-panel.ld-open { transform: translateX(0); }
  .ld-tabs.ld-shifted { left: 230px; }
  .ld-tab-ear { font-size: .62rem; padding: .7rem .34rem; width: 30px; }
  /* tekst opschuiven zodat de verticale tab er niet overheen valt */
  .section-inner { padding: 0 1.25rem 0 44px; }
}
/* Landscape op telefoons: breed maar laag scherm (tabs zijn 44px) */
@media (orientation: landscape) and (max-height: 500px) {
  .section-inner { padding: 0 1.5rem 0 52px; }
}
@media (max-height: 620px) {
  .nav-drawer {
    padding-top: calc(var(--header-h) + .5rem);
    padding-bottom: 1rem;
  }
  .nav-drawer a { font-size: 1rem; padding: .22rem 0; }
  .nav-label-small { margin-bottom: .4rem; }
}

.btn-kind-pdf {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(184,134,11,.15); color: var(--accent-light);
  border: 1px solid rgba(184,134,11,.4); border-radius: 2px;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.65rem 1.5rem; text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}
.btn-kind-pdf:hover { background: rgba(184,134,11,.28); border-color: rgba(184,134,11,.7); }

/* ============================================================
   WestEndJ jazzclub-look op COTB-basis: balkenlogo + improvisatie
   ============================================================ */
.wej-logo{width:min(300px,60vw);height:auto;margin:0 auto 1.4rem;display:block;overflow:visible;}
.wej-logo .bar{fill:var(--accent-gold,#e8c87a);opacity:0;transition:opacity .6s ease,transform .7s cubic-bezier(.3,1.2,.4,1),fill .4s;transform-origin:center;}
.wej-logo .bar.in{opacity:1;transform:none!important;}
.wej-logo .bar-gold{fill:var(--accent,#c98a2c);}
.hero-impro{margin-top:1.4rem;font-size:11px;color:var(--text-dark,#9a8e78);opacity:.7;letter-spacing:1px;}
.impro-btn{background:none;border:none;color:var(--accent-gold,#e8c87a);font-family:inherit;font-size:11px;letter-spacing:1px;cursor:pointer;text-decoration:underline;text-underline-offset:3px;padding:0;}
.impro-btn:hover{color:#fff;}
/* hero-titel in display-font (recht, niet cursief) */
.hero-title em{font-style:normal!important;font-family:var(--font-display)!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.04em;}

/* Google Maps-kaart in de activiteit-modal */
.modal-map {
  margin-top: 1.5rem; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(232,200,122,0.18);
  background: rgba(0,0,0,0.2);
}
.modal-map iframe {
  width: 100%; height: 240px; border: 0; display: block;
  filter: saturate(0.9) brightness(0.95);
}
.modal-map-link {
  display: block; text-align: center; padding: 0.7rem;
  font-family: var(--font-display, 'Archivo'); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-gold, #e8c87a); text-decoration: none;
  background: rgba(232,200,122,0.06); transition: background 0.3s, color 0.3s;
}
.modal-map-link:hover { background: rgba(232,200,122,0.14); color: #fff; }

/* ── Hero achtergrond: video of slideshow ──────────────────── */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1; pointer-events: none;
  opacity: 0.85;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  overflow: hidden;
}
.hero-bg .hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease-in-out;
}
.hero-bg .hero-slide.active { opacity: 0.55; }
/* donkere sluier over video/slideshow zodat de titel leesbaar blijft */
#home::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(13,7,22,0.12) 0%, rgba(13,7,22,0.42) 100%);
}

/* Hero-reveal: herstart de opkomst-animatie bij terugkeer/klik */
.hero-content { opacity: 1; }
.hero-content.hero-in { animation: fadeUp 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero-content.hero-in .hero-eyebrow { animation: fadeUp 1.1s .2s ease both; }

/* ── Muziek-sectie (donkere sectie) ────────────────────────── */
.music-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; max-width: 720px; }
.music-track {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(232,200,122,0.16);
  border-radius: 10px; padding: 1.1rem 1.3rem;
  transition: border-color .3s, background .3s;
}
.music-track:hover { border-color: rgba(232,200,122,0.4); background: rgba(232,200,122,0.05); }
.music-track-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.music-track-no {
  font-family: var(--font-display, 'Archivo'); font-weight: 800; font-size: 1.3rem;
  color: rgba(232,200,122,0.4); min-width: 2ch;
}
.music-track-title { font-family: var(--font-display, 'Archivo'); font-size: 1.05rem; font-weight: 600; color: #e8dfce; }
.music-track-sub { font-size: .8rem; color: var(--accent-light, #e8c87a); margin-top: .15rem; }
.music-audio { width: 100%; height: 38px; filter: sepia(0.3) saturate(0.8); }
.music-empty { color: rgba(200,187,168,0.7); font-style: italic; padding: 1.5rem 0; }

/* ── Galerij-sectie (lichte sectie) ────────────────────────── */
.gallery-grid {
  margin: 2.5rem auto 0; max-width: 1200px; padding: 0 2.5rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item {
  margin: 0; position: relative; cursor: pointer; overflow: hidden;
  border-radius: 8px; aspect-ratio: 4/3; background: #1a1008;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.gallery-item img, .gallery-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .7rem .9rem .6rem; font-size: .8rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover figcaption { opacity: 1; }
.gallery-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6); pointer-events: none;
}
.gallery-empty { grid-column: 1/-1; text-align: center; color: #8a7a5e; font-style: italic; padding: 2rem 0; }

.gallery-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(8,5,3,0.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 2rem;
}
.gallery-lightbox .gl-inner { text-align: center; }
.gallery-lightbox .gl-cap { color: #e8dfce; margin-top: 1rem; font-size: .95rem; }
.gallery-lightbox .gl-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none; color: #fff; font-size: 2.4rem;
  cursor: pointer; line-height: 1;
}

@media (max-width: 600px) {
  .gallery-grid { padding: 0 1.25rem 0 44px; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); }
}

/* ── Muzikanten: notenbalk (desktop) vs kaartjes (mobiel) ───── */
.staff-view { display: block; }
.members-cards { display: none; }

.member-card {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(184,134,11,0.22);
  border-radius: 12px; padding: 0.85rem 1rem;
  text-decoration: none; transition: border-color .25s, transform .25s, background .25s;
}
.member-card:active { transform: scale(0.985); }
.mc-photo {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%;
  overflow: hidden; background: #1a1008;
  border: 2px solid var(--accent-gold, #e8c87a);
  display: flex; align-items: center; justify-content: center;
}
.mc-photo img { width: 100%; height: 100%; object-fit: cover; }
.mc-initial {
  font-family: var(--font-display, 'Archivo'); font-size: 1.6rem; font-weight: 700;
  color: var(--accent-gold, #e8c87a);
}
.mc-info { min-width: 0; }
.mc-name {
  font-family: var(--font-display, 'Archivo'); font-size: 1.15rem; font-weight: 600;
  color: #2a2014; line-height: 1.2;
}
.mc-role {
  display: flex; align-items: center; gap: 0.4rem; margin-top: 0.25rem;
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent, #c98a2c);
}
.mc-ico { display: inline-flex; width: 18px; height: 18px; }
.mc-ico svg { width: 100%; height: 100%; }

@media (max-width: 768px) {
  .staff-view { display: none; }
  .members-cards {
    display: grid; grid-template-columns: 1fr; gap: 0.75rem;
    padding: 0 1.25rem 0 44px;   /* ruimte voor de zijbalk-tab */
    margin-top: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MODERNE VERFIJNING — scroll-driven animations, @starting-style,
   view transitions, container scroll-state, fijnere typografie.
   Alles met progressieve verbetering: onbekende regels worden genegeerd.
   ═══════════════════════════════════════════════════════════════ */

/* ── Fijnere typografie ──────────────────────────────────────── */
.hero-title, .section-title, .modal-title, h1, h2, h3 {
  text-wrap: balance;            /* koppen breken evenwichtiger af */
}
p, .section-intro, .modal-body, .muz-bio {
  text-wrap: pretty;             /* voorkomt eenzame woorden op de laatste regel */
}
:root {
  /* vloeiende, schermbreedte-afhankelijke ritmes */
  --fluid-gap: clamp(1rem, 3vw, 2.5rem);
}

/* respecteer de voorkeur voor minder beweging */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Scroll-driven reveal (vervangt/versterkt de JS-observer) ──
   Elementen faden en schuiven omhoog op basis van hun positie in beeld.
   Werkt alleen waar de browser animation-timeline ondersteunt. */
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 1;                  /* JS-observer niet meer nodig hier */
    transform: none;
    animation: revealIn linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  @keyframes revealIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* gelaagd binnenkomen: titel, intro en inhoud net iets na elkaar */
  .section-title {
    animation: revealIn linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 45%;
  }
  .section-intro {
    animation: revealIn linear both;
    animation-timeline: view();
    animation-range: entry 12% entry 52%;
  }

  /* muzikant-kaartjes (mobiel) komen één voor één binnen */
  .member-card {
    animation: cardIn linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  @keyframes cardIn {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* de noten op de notenbalk 'spelen zich op' bij binnenkomst */
  .staff-single .music-note {
    animation: noteIn linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  @keyframes noteIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* subtiele parallax op de hero-inhoud terwijl je wegscrollt */
  .hero-content {
    animation: heroFade linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
  }
  @keyframes heroFade {
    to { opacity: 0.25; transform: translateY(-40px); }
  }
}

/* ── @starting-style: zachte intro voor dynamisch getoonde dingen ── */
@supports (transition-behavior: allow-discrete) {
  /* modal-overlay vloeiend in- en uitfaden, ook al schakelt display */
  .modal-overlay {
    opacity: 0;
    transition: opacity 0.4s ease, display 0.4s allow-discrete;
  }
  .modal-overlay.open {
    opacity: 1;
  }
  @starting-style {
    .modal-overlay.open { opacity: 0; }
  }
  .modal-overlay.open .modal-box {
    animation: modalBoxIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes modalBoxIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* navigatie-drawer items glijden binnen wanneer het menu opent */
  .nav-drawer.open .nav-link {
    animation: navLinkIn 0.5s ease both;
  }
  @keyframes navLinkIn {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
  }
}

/* ── Header reageert op scrollen (subtiel compacter/omkaderd) ──
   Via een class die JS toevoegt zodra je begint te scrollen. */
header {
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.35s ease;
}
header.is-scrolled {
  box-shadow: 0 6px 30px rgba(0,0,0,0.18);
  background: rgba(245,240,232,0.97);
}
header.is-scrolled .logo-title { transform: scale(0.94); }
.logo-title { transition: transform 0.35s ease; transform-origin: left center; }

/* Container scroll-state queries: de optredenden/nieuws-zijbalk toont een
   subtiele schaduw bovenaan zodra je erin scrolt (waar ondersteund). */
@supports (container-type: scroll-state) {
  .ld-half {
    container-type: scroll-state;
  }
  @container scroll-state(scrollable: top) {
    .ld-list-head { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
  }
}

/* ── View Transitions ─────────────────────────────────────────
   Vloeiende cross-fade tussen pagina's (home ↔ muzikant-pagina)
   en bij taal-wissel binnen de pagina. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
