:root {
  --bg: #faf6f0;
  --card: #ffffff;
  --ink: #2c2621;
  --muted: #8a7f74;
  --accent: #c9736a;
  --accent-dark: #a4564e;
  --gold: #d8b46a;
  --line: #ece3d7;
  --shadow: 0 8px 30px rgba(80, 60, 40, 0.10);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

/* ---------- Header ---------- */
.site-header {
  text-align: center;
  padding: 3.5rem 1.25rem 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
  font-family: system-ui, sans-serif;
}
.site-header h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.1;
}
.intro {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 auto;
  max-width: 620px;
}
.stats {
  margin-top: 1.5rem;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}
.stats .bar {
  height: 8px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  max-width: 320px;
  margin: 0.5rem auto 0;
}
.stats .bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transition: width 0.6s ease;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.25rem;
}
.loading { text-align: center; color: var(--muted); grid-column: 1 / -1; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(80, 60, 40, 0.16);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #222;
  overflow: hidden;
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb .recreation {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card.done:hover .recreation { opacity: 1; }

.thumb .play-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  background: rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.card:hover .play-hint { opacity: 1; }
.card.done:hover .play-hint { opacity: 0; }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.badge.free { background: rgba(216,180,106,0.92); color: #3a2c10; }
.badge.taken { background: rgba(201,115,106,0.92); color: #fff; }

.meta {
  padding: 0.85rem 1rem 1rem;
}
.meta .title {
  font-weight: 700;
  font-size: 1.05rem;
  display: block;
}
.meta .status {
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
  display: block;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 22, 16, 0.55);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--card);
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
  line-height: 1;
}
.modal-body { padding: 0 0 1.5rem; }
.modal-body h2 { padding: 1.25rem 1.5rem 0; margin: 0; }
.modal-body .section { padding: 1rem 1.5rem 0; }

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-wrap iframe, .video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.label {
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 1.25rem 1.5rem 0.4rem;
}

/* ---------- Form ---------- */
.claim-form { padding: 0.5rem 1.5rem 0; font-family: system-ui, sans-serif; }
.claim-form label { display: block; font-size: 0.85rem; margin: 0.75rem 0 0.3rem; font-weight: 600; }
.claim-form input[type="text"],
.claim-form input[type="file"] {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fdfbf8;
}
.btn {
  display: inline-block;
  margin-top: 1.1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: system-ui, sans-serif;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.form-msg {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
}
.form-msg.error { background: #fbe9e7; color: #a4564e; }
.form-msg.ok { background: #e8f3ea; color: #3f7a4a; }
.form-msg.info { background: #f3eee2; color: #7a6a3f; }
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

.claimer-name { font-weight: 700; color: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.config-warning {
  max-width: 700px;
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  background: #fbe9e7;
  border: 1px solid #f0c4bd;
  border-radius: 12px;
  color: #a4564e;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
}

/* ---------- Admin ---------- */
.admin-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: #2c2621;
  color: #fff;
  padding: 0.6rem 1.25rem;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
}
.admin-bar[hidden] { display: none; }
.admin-badge { font-weight: 700; color: var(--gold); }
.admin-bar #adminWho { color: #cbb9a5; margin-right: auto; }
.admin-bar-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  font-size: 0.82rem;
  cursor: pointer;
}
.admin-bar-btn:hover { background: rgba(255,255,255,0.22); }

.admin-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 0.5rem;
  font-family: system-ui, sans-serif;
}
.admin-link:hover { color: var(--accent); }

.modal-narrow { max-width: 420px; }
.claim-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fdfbf8;
  font-family: system-ui, sans-serif;
  resize: vertical;
}

/* knopvarianten */
.btn.secondary { background: #6b6055; }
.btn.secondary:hover { background: #574e45; }
.btn.danger { background: #b23b34; }
.btn.danger:hover { background: #8f2e28; }
.btn.small { padding: 0.55rem 1rem; font-size: 0.9rem; margin-top: 0.6rem; }
.btn-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }

.admin-tools {
  margin: 1rem 1.5rem 0;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--gold);
  border-radius: 12px;
  background: #fdf7e9;
  font-family: system-ui, sans-serif;
}
.admin-tools .label { margin: 0 0 0.5rem; color: #7a6a3f; }

.token-note {
  margin: 0.9rem 1.5rem 0;
  padding: 0.7rem 0.9rem;
  background: #e8f3ea;
  color: #3f7a4a;
  border-radius: 8px;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
}

/* editable header hint als admin */
.editing-hint {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--gold);
  font-family: system-ui, sans-serif;
}
