:root {
  --perkament: #E8E6DE;
  --perkament-diep: #DAD7CB;
  --kaart: #F4F2EC;
  --moeras: #0E1513;
  --moeras-zacht: #18211D;
  --dwaallicht: #8BD8A3;
  --dwaallicht-diep: #3FA771;
  --zon: #F2C14E;
  --inkt: #16201B;
  --inkt-zacht: #5C635D;
  --straal: 18px;
  --hairline: rgba(14, 21, 19, 0.10);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--inkt);
  background: var(--perkament);
  margin: 0;
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.01em;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Atmosfeer: dwaallicht-gloed boven, fijne grain overal */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 70% at 50% -12%, rgba(139, 216, 163, 0.38), transparent 60%),
    radial-gradient(90% 55% at 88% 8%, rgba(242, 193, 78, 0.16), transparent 55%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%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: 400;
  line-height: 1.06;
  letter-spacing: -0.005em;
  margin: 0 0 0.6rem;
}
h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
h1 em, .accent { font-style: italic; color: var(--dwaallicht-diep); }

p { margin: 0 0 1rem; }
a { color: var(--dwaallicht-diep); text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Header */
.kop {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  background: rgba(232, 230, 222, 0.72);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.merk {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
  color: var(--inkt);
  letter-spacing: 0.01em;
}
.merk .vonk {
  color: var(--dwaallicht-diep);
  display: inline-block;
  animation: pols 3.2s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(139, 216, 163, 0.9);
}
.naar-kaart {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--inkt);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.naar-kaart:hover {
  background: var(--moeras);
  color: var(--dwaallicht);
  border-color: var(--moeras);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 1.5rem) 4rem;
}

/* Kaarten */
.zoek, .steen, .alle-kaart, .onbekend,
.admin-login, .admin-stenen, .admin-loslaten, .admin-moderatie {
  background: linear-gradient(180deg, var(--kaart), #EFEDE6);
  border: 1px solid var(--hairline);
  border-radius: var(--straal);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 40px -24px rgba(14, 21, 19, 0.35);
  animation: opduik 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* Hero */
.zoek { text-align: center; padding-block: clamp(2rem, 7vw, 3.4rem); }
.zoek h1 { margin-bottom: 0.4rem; }
.zoek > p { color: var(--inkt-zacht); font-size: 1.05rem; }
.zoek > * { animation: opduik 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.zoek > h1 { animation-delay: 0.05s; }
.zoek > p { animation-delay: 0.14s; }
.zoek > form { animation-delay: 0.22s; }

/* Formulieren */
input, textarea, button, select {
  font: inherit;
  font-family: var(--sans);
  border-radius: 12px;
  border: 1.5px solid var(--perkament-diep);
  background: #FCFBF7;
  padding: 0.75rem 0.95rem;
  color: var(--inkt);
  transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--dwaallicht-diep);
  box-shadow: 0 0 0 4px rgba(139, 216, 163, 0.28);
}
label { display: block; margin: 1rem 0; font-weight: 500; font-size: 0.95rem; }
label input, label textarea { width: 100%; font-weight: 400; margin-top: 0.4rem; }
textarea { min-height: 110px; resize: vertical; }

button {
  background: linear-gradient(180deg, var(--dwaallicht), var(--dwaallicht-diep));
  border: none;
  color: var(--moeras);
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 10px 22px -12px rgba(63, 167, 113, 0.9);
  transition: transform 0.08s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
button:hover { filter: brightness(1.04); box-shadow: 0 14px 26px -12px rgba(63, 167, 113, 1); }
button:active { transform: translateY(1px) scale(0.995); }

/* Code-invoer als showstuk */
.zoek input[name="code"] {
  width: 100%;
  max-width: 420px;
  margin: 0.4rem auto 1rem;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 6vw, 2rem);
  text-align: center;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 0.9rem 1rem;
  background: #FCFBF7;
}
.zoek button { font-size: 1.02rem; padding-inline: 1.8rem; }

/* Boodschap: zon-accent, serif */
.boodschap {
  background: linear-gradient(180deg, #F7D06B, var(--zon));
  border: none;
  border-radius: var(--straal);
  margin: 1.2rem 0;
  padding: 1.2rem 1.4rem;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.25;
  color: #3A2E0E;
  box-shadow: 0 14px 30px -20px rgba(242, 193, 78, 0.9);
  position: relative;
}
.boodschap::before {
  content: "\201C";
  position: absolute;
  top: -0.1em;
  left: 0.2em;
  font-family: var(--serif);
  font-size: 3rem;
  color: rgba(58, 46, 14, 0.28);
}

.bedankt {
  background: rgba(139, 216, 163, 0.28);
  border: 1px solid rgba(63, 167, 113, 0.4);
  border-radius: 12px;
  padding: 0.75rem 1.05rem;
  font-weight: 500;
}
.fout { color: #9B2226; font-weight: 600; }
.prik-hint { color: var(--inkt-zacht); font-size: 0.9rem; margin-top: 0.2rem; }

/* Kaart */
.reis-kaart {
  height: 340px;
  border-radius: var(--straal);
  margin: 1.2rem 0;
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 44px -28px rgba(14, 21, 19, 0.55);
  overflow: hidden;
  background: var(--perkament-diep);
}
.reis-kaart.groot { height: 480px; }
.leaflet-container { font-family: var(--sans); }

/* Code-chip */
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--moeras);
  color: var(--dwaallicht);
  padding: 0.2rem 0.55rem;
  border-radius: 7px;
  letter-spacing: 0.12em;
}

/* Lijsten */
.stenen-lijst, .moderatie-lijst { list-style: none; padding: 0; margin: 1rem 0 0; }
.stenen-lijst li, .moderatie-lijst li {
  padding: 1rem 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}
.stenen-lijst li strong { font-weight: 600; }
.moderatie-lijst li { display: block; }
.moderatie-lijst img { border-radius: 12px; margin: 0.5rem 0; max-width: 100%; height: auto; }
.moderatie-lijst blockquote {
  margin: 0.5rem 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--dwaallicht);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--inkt);
}

/* Beheer-acties */
.nieuwe-steen { margin-top: 1rem; }
.verberg-locatie {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 400;
  color: var(--inkt-zacht);
  font-size: 0.92rem;
  margin: 0.4rem 0 0.9rem;
}
.verberg-locatie input { width: auto; margin: 0; accent-color: var(--dwaallicht-diep); }
.uitloggen, .toggle-locatie { display: inline; margin: 0; }
.uitloggen button, .toggle-locatie button {
  background: transparent;
  color: var(--inkt-zacht);
  border: 1px solid var(--hairline);
  box-shadow: none;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
}
.uitloggen button:hover, .toggle-locatie button:hover {
  filter: none;
  background: var(--moeras);
  color: var(--dwaallicht);
  border-color: var(--moeras);
}
.verborgen-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dwaallicht-diep);
  background: rgba(139, 216, 163, 0.22);
  border: 1px solid rgba(63, 167, 113, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

/* Footer: donkere moeras-band */
.voet {
  margin-top: 2rem;
  text-align: center;
  padding: 2.2rem 1.5rem 2.6rem;
  background: var(--moeras);
  color: var(--dwaallicht);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  letter-spacing: 0.01em;
}

@keyframes opduik {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pols {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
