/* ===== Vierdaagsetips.nl ===================================================
   Warm, modern thema geïnspireerd op de Via Gladiola: rood-oranje accenten
   op een rustige, crèmekleurige achtergrond.
============================================================================ */

:root {
  --accent: #d7452c;
  --accent-donker: #b23219;
  --accent-licht: #fdeee9;
  --oranje: #e8722a;
  --groen: #008609;
  --groen-donker: #006d07;
  --groen-licht: #e4f3e5;
  --inkt: #2b2320;
  --inkt-zacht: #6f675f;
  --achtergrond: #faf7f2;
  --kaart: #ffffff;
  --rand: #eadfd2;
  --succes: var(--groen-donker);
  --succes-licht: var(--groen-licht);
  --gevaar: #b3261e;
  --radius: 14px;
  --schaduw: 0 1px 2px rgba(43, 35, 32, 0.06), 0 4px 14px rgba(43, 35, 32, 0.06);
  --schaduw-hoog: 0 2px 4px rgba(43, 35, 32, 0.08), 0 10px 28px rgba(43, 35, 32, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--inkt);
  background: var(--achtergrond);
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5rem; }
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-donker); }

img { max-width: 100%; }

.visueel-verborgen {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rand);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--inkt);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--inkt); }
.logo em { color: var(--accent); font-style: normal; }
.logo-icoon { font-size: 1.4rem; }

.menu-knop {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rand);
  border-radius: 8px;
  background: var(--kaart);
  color: var(--inkt);
  cursor: pointer;
}

.menu-knop:hover,
.menu-knop[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--accent-licht);
}

.menu-knop:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-knop-lijnen,
.menu-knop-lijnen::before,
.menu-knop-lijnen::after {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-knop-lijnen {
  position: relative;
}

.menu-knop-lijnen::before,
.menu-knop-lijnen::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-knop-lijnen::before { top: -7px; }
.menu-knop-lijnen::after { top: 7px; }

.header-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

.hoofdmenu {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.hoofdmenu a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--inkt-zacht);
  font-weight: 500;
}

.hoofdmenu a:hover { background: var(--accent-licht); color: var(--accent-donker); }
.hoofdmenu a.actief { background: var(--accent-licht); color: var(--accent-donker); font-weight: 600; }

.header-acties {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
}

.tekstlink { font-weight: 600; }

/* Gebruikersmenu (dropdown zonder JavaScript) */

.gebruiker-menu { position: relative; }

.gebruiker-menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  border-radius: 50%;
}
.gebruiker-menu summary::-webkit-details-marker { display: none; }
.gebruiker-menu summary:hover .avatar { outline: 3px solid var(--accent-licht); }

.gebruiker-menu-lijst {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: var(--kaart);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schaduw-hoog);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
}

.gebruiker-menu-naam {
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  border-bottom: 1px solid var(--rand);
  margin-bottom: 0.3rem;
}

.gebruiker-menu-lijst a,
.gebruiker-menu-lijst button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: none;
  font: inherit;
  color: var(--inkt);
  border-radius: 8px;
  cursor: pointer;
}

.gebruiker-menu-lijst a:hover,
.gebruiker-menu-lijst button:hover { background: var(--accent-licht); color: var(--accent-donker); }

/* ===== Knoppen ===== */

.knop {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.knop:hover { background: var(--accent-donker); border-color: var(--accent-donker); color: #fff; }
.knop:active { transform: scale(0.98); }

.knop-klein { padding: 0.4rem 1rem; font-size: 0.95rem; }
.knop-groot { padding: 0.75rem 1.6rem; font-size: 1.05rem; }

.knop-secundair {
  background: transparent;
  color: var(--accent);
}
.knop-secundair:hover { background: var(--accent-licht); color: var(--accent-donker); }

.knop-gevaar {
  background: transparent;
  color: var(--gevaar);
  border-color: var(--gevaar);
}
.knop-gevaar:hover { background: var(--gevaar); border-color: var(--gevaar); color: #fff; }

.knop-omgekeerd {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.knop-omgekeerd:hover { background: var(--accent-licht); border-color: var(--accent-licht); color: var(--accent-donker); }

.knop-omlijnd {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.knop-omlijnd:hover { background: rgba(255, 255, 255, 0.15); border-color: #fff; color: #fff; }

/* ===== Hero ===== */

.hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--oranje) 100%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  max-width: 760px;
  margin: 0 auto 1rem;
  letter-spacing: -0.02em;
}

.hero h1 span { white-space: nowrap; }

.hero-tekst {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  font-size: 1.1rem;
  opacity: 0.95;
}

.hero-acties {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cijfers {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-cijfers div { display: flex; flex-direction: column; }
.hero-cijfers strong { font-size: 1.7rem; }
.hero-cijfers span { opacity: 0.85; font-size: 0.95rem; }

/* ===== Secties ===== */

.sectie { padding: 3.25rem 0; }
.sectie-getint { background: #f3ece2; }
.sectie-klein { margin-top: 2.5rem; }

.sectie-kop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.oprichter-kop {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  max-width: 780px;
  margin-bottom: 2rem;
}

.oprichter-kop p { margin: 0.25rem 0 0.5rem; color: var(--inkt-zacht); }

/* De afsluitende oproep in de groene steunkleur, als tegenhanger van de oranje hero. */
.cta-band {
  background: linear-gradient(135deg, var(--groen-donker) 0%, var(--groen) 100%);
  color: #fff;
  text-align: center;
}

.cta-band p { max-width: 560px; margin: 0.5rem auto 1.5rem; opacity: 0.95; }

/* ===== Tipkaarten ===== */

.tips-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.tip-kaart {
  background: var(--kaart);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--schaduw);
  transition: transform 0.15s, box-shadow 0.15s;
}

.tip-kaart:hover { transform: translateY(-3px); box-shadow: var(--schaduw-hoog); }

.tip-samenvatting {
  display: block;
  flex: 1;
  color: inherit;
  padding-bottom: 1rem;
}

.tip-samenvatting:hover .tip-titel { color: var(--accent); }

.tip-titel {
  margin: 0 0 0.4rem;
  color: var(--inkt);
}

.tip-snippet {
  color: var(--inkt-zacht);
  font-size: 0.95rem;
  margin: 0;
}

.tip-voet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--rand);
  padding-top: 0.85rem;
}

.tip-auteur {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--inkt);
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 0;
}

.tip-auteur:hover { color: var(--accent); }
.tip-auteur small { display: block; color: var(--inkt-zacht); font-weight: 400; }

.tip-auteur-naam {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gelopen-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--groen);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.tip-acties { display: flex; gap: 0.4rem; }

.actie-knop {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--rand);
  background: none;
  color: var(--inkt-zacht);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.actie-knop:hover { background: var(--accent-licht); color: var(--accent-donker); border-color: var(--accent-licht); }

.actie-knop.actief {
  background: var(--accent-licht);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

/* Favorieten krijgen de groene steunkleur, zodat ze zich onderscheiden van duimpjes. */
.actie-knop[data-toggle-url*="favoriet"].actief {
  background: var(--groen-licht);
  color: var(--groen-donker);
  border-color: var(--groen);
}

.actie-knop[data-toggle-url*="favoriet"]:hover {
  background: var(--groen-licht);
  color: var(--groen-donker);
  border-color: var(--groen-licht);
}

.actie-knop-groot { padding: 0.5rem 1rem; font-size: 1rem; }

/* ===== Avatars & badges ===== */

.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
}

.avatar-initiaal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--oranje) 100%);
  color: #fff;
  font-weight: 700;
}

.badge-oprichter {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 0.3rem;
}

.aantal-badge {
  display: inline-block;
  background: var(--groen-licht);
  color: var(--groen-donker);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.05rem 0.6rem;
  border-radius: 999px;
  vertical-align: middle;
}

/* ===== Lopers-overzicht ===== */

.lopers-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.loper-kaart {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--kaart);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--schaduw);
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

.loper-kaart:hover { transform: translateY(-3px); box-shadow: var(--schaduw-hoog); }
.loper-kaart:hover .loper-naam { color: var(--accent); }

.loper-info { min-width: 0; }

.loper-naam {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0;
  font-size: 1.05rem;
  color: var(--inkt);
}

.loper-statistieken {
  margin: 0.2rem 0 0;
  color: var(--inkt-zacht);
  font-size: 0.9rem;
}

/* ===== Pagina's ===== */

.pagina { padding: 2.5rem 20px 3.5rem; }
.pagina-smal { max-width: 780px; }
.pagina-formulier { max-width: 560px; }

.pagina-kop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pagina-intro { color: var(--inkt-zacht); margin-top: 0; }

/* ===== Beheer ===== */

.beheer-tegels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.beheer-tegel,
.beheer-rij {
  background: var(--kaart);
  border: 1px solid var(--rand);
  border-radius: 8px;
  box-shadow: var(--schaduw);
}

.beheer-tegel {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  color: var(--inkt);
}

a.beheer-tegel:hover {
  border-color: var(--accent);
  color: var(--inkt);
}

.beheer-tegel strong { font-size: 1.05rem; }
.beheer-tegel span,
.beheer-meta { color: var(--inkt-zacht); }

.beheer-lijst {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.beheer-rij {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.beheer-rij h2,
.beheer-rij h3 {
  margin-bottom: 0.2rem;
  font-size: 1.08rem;
}

.beheer-meta {
  margin: 0;
  font-size: 0.95rem;
}

.beheer-acties {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.beheer-acties form { margin: 0; }

.beheer-preview {
  border: 1px solid var(--rand);
  border-radius: 8px;
  padding: 1rem;
  background: #fffdfa;
  color: var(--inkt-zacht);
}

.beheer-preview strong {
  display: block;
  color: var(--inkt);
  margin-bottom: 0.35rem;
}

.beheer-preview p { margin: 0; }

/* ===== Filterbalk (alle tips) ===== */

.filter-balk {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-balk input[type="search"] {
  flex: 1;
  min-width: 220px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--rand);
  border-radius: 999px;
  font: inherit;
  background: var(--kaart);
}

.filter-balk input[type="search"]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

.sorteer-tabs {
  display: flex;
  background: var(--kaart);
  border: 1px solid var(--rand);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.2rem;
}

.sorteer-tabs a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  color: var(--inkt-zacht);
  font-weight: 600;
  font-size: 0.92rem;
}

.sorteer-tabs a.actief { background: var(--accent); color: #fff; }

/* ===== Tip-detail ===== */

.tip-detail {
  background: var(--kaart);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 2.25rem 2.25rem 1.75rem;
  box-shadow: var(--schaduw);
}

.tip-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rand);
}

.tip-inhoud { font-size: 1.05rem; }
.tip-inhoud p { margin: 0 0 1.1rem; }
.tip-inhoud a { text-decoration: underline; word-break: break-all; }

.tip-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rand);
}

.tip-foto-link {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #f3ece2;
  border: 1px solid var(--rand);
}

.tip-foto-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.15s;
}

.tip-foto-link:hover img { transform: scale(1.03); }

.tip-beheer {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rand);
}

/* ===== Profiel ===== */

.profiel-kop {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  background: var(--kaart);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--schaduw);
}

.profiel-info { min-width: 0; }
/* Het aantal volbrachte Vierdaagses is een prestatie: benadrukt met de groene steunkleur. */
.profiel-statistiek { margin: 0.25rem 0 0.75rem; color: var(--groen-donker); }
.profiel-statistiek small { color: var(--inkt-zacht); }
.profiel-bio { color: var(--inkt-zacht); margin-top: 0; }
.profiel-bio p { margin: 0 0 0.75rem; }
.profiel-bio p:last-child { margin-bottom: 0; }
.profiel-bio a { text-decoration: underline; word-break: break-word; }
.profiel-acties { margin-top: 1rem; }

/* ===== Tips als volledig verhaal op het profiel ===== */

.herorden-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--inkt-zacht);
  font-size: 0.9rem;
}

.herorden-hint .sleep-icoon { color: var(--groen); font-size: 1.1rem; }
.herorden-status { color: var(--groen-donker); font-weight: 600; margin-left: 0.25rem; }

.tip-verhaal {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.profiel-tip {
  background: var(--kaart);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.75rem 2rem 1.25rem;
  box-shadow: var(--schaduw);
}

.profiel-tip-kop {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.profiel-tip-kop h3 { margin: 0; font-size: 1.35rem; }
.profiel-tip-kop h3 a { color: var(--inkt); }
.profiel-tip-kop h3 a:hover { color: var(--accent); }

.profiel-tip .tip-inhoud { font-size: 1.02rem; }
.profiel-tip .tip-inhoud p { margin: 0 0 1rem; }
.profiel-tip .tip-inhoud a { text-decoration: underline; word-break: break-word; }

.profiel-tip-voet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rand);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
}

.actie-statisch { cursor: default; }
.actie-statisch:hover { background: none; color: var(--inkt-zacht); border-color: var(--rand); }

/* Sleep-herordenen (alleen op je eigen profiel) */

.herordenbaar .profiel-tip { cursor: grab; }
.herordenbaar .profiel-tip:active { cursor: grabbing; }

.sleep-greep {
  color: var(--inkt-zacht);
  font-size: 1.2rem;
  line-height: 1;
  cursor: grab;
  user-select: none;
  padding: 0 0.15rem;
}

.herordenbaar .profiel-tip.sleept {
  opacity: 0.6;
  border-color: var(--groen);
  border-style: dashed;
  box-shadow: var(--schaduw-hoog);
}

/* Tijdens het slepen willen we geen tekstselectie of link-activatie. */
.herordenbaar.bezig-slepen { cursor: grabbing; }
.herordenbaar .profiel-tip * { pointer-events: auto; }

/* ===== Formulieren ===== */

.formulier {
  background: var(--kaart);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--schaduw);
}

.veld { margin-bottom: 1.25rem; }

.spam-val {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.veld label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.veld input[type="text"],
.veld input[type="email"],
.veld input[type="password"],
.veld input[type="number"],
.veld input[type="search"],
.veld textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--rand);
  border-radius: 10px;
  font: inherit;
  background: #fffdfa;
}

.veld input:focus,
.veld textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

.veld textarea { resize: vertical; }

.veld-klein input[type="number"] { max-width: 140px; }

.veld-hint { display: block; color: var(--inkt-zacht); margin-top: 0.3rem; }

.veld-checkbox label,
.veld-checkbox-klein {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  cursor: pointer;
}

.veld-checkbox-klein { margin-top: 0.5rem; color: var(--inkt-zacht); }

.avatar-upload {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

/* Drag-and-drop zone voor de profielfoto. De transparante file-input ligt bovenop
   en verzorgt zowel het klikken als het slepen; de rest is enkel visueel. */
.avatar-dropzone {
  position: relative;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border: 2px dashed var(--rand);
  border-radius: var(--radius);
  background: #fffdfa;
  transition: border-color 0.15s, background 0.15s;
}

.avatar-dropzone:hover { border-color: var(--oranje); }

.avatar-dropzone.dragover {
  border-color: var(--groen);
  background: var(--groen-licht);
}

.dropzone-preview { flex-shrink: 0; line-height: 0; }

.dropzone-preview .avatar { transition: transform 0.15s; }
.avatar-dropzone.dragover .dropzone-preview .avatar { transform: scale(1.05); }

.dropzone-body { min-width: 0; }

.dropzone-tekst { margin: 0 0 0.15rem; }
.dropzone-tekst strong { color: var(--inkt); }
.dropzone-tekst span { color: var(--inkt-zacht); }
.dropzone-bladeren { color: var(--accent); text-decoration: underline; font-weight: 600; }

.dropzone-bestandsnaam {
  display: block;
  margin-top: 0.4rem;
  color: var(--groen-donker);
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-all;
}

.dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Zichtbare focus voor toetsenbordgebruikers, ook al is de input zelf onzichtbaar. */
.dropzone-input:focus-visible + .dropzone-body,
.avatar-dropzone:focus-within {
  outline: none;
}
.avatar-dropzone:focus-within { border-color: var(--accent); }

.foto-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border: 2px dashed var(--rand);
  border-radius: var(--radius);
  background: #fffdfa;
  transition: border-color 0.15s, background 0.15s;
}

.foto-dropzone:hover { border-color: var(--oranje); }

.foto-dropzone.dragover {
  border-color: var(--groen);
  background: var(--groen-licht);
}

.foto-dropzone-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--inkt-zacht);
}

.foto-dropzone-body strong { color: var(--inkt); }

.foto-dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.foto-dropzone:focus-within { border-color: var(--accent); }

.foto-preview-lijst,
.bestaande-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.65rem;
}

.foto-preview-lijst:empty { display: none; }

.foto-preview,
.bestaande-foto {
  position: relative;
  border: 1px solid var(--rand);
  border-radius: 8px;
  overflow: hidden;
  background: #f3ece2;
  aspect-ratio: 4 / 3;
}

.foto-preview img,
.bestaande-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.foto-preview span,
.bestaande-foto span {
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.35rem;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  background: rgba(43, 35, 32, 0.78);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bestaande-foto span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
}

.bestaande-foto input { accent-color: var(--accent); }

.formulier-acties {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.formulier-voetnoot {
  margin: 1.25rem 0 0;
  color: var(--inkt-zacht);
}

.field-validation-error {
  display: block;
  color: var(--gevaar);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.input-validation-error { border-color: var(--gevaar) !important; }

.validatie-samenvatting ul {
  margin: 0 0 1rem;
  padding: 0.9rem 1.1rem 0.9rem 2rem;
  background: #fdecea;
  border: 1px solid #f3c1bb;
  border-radius: 10px;
  color: var(--gevaar);
}

.validatie-samenvatting ul:empty { display: none; }

/* ===== Meldingen ===== */

.melding {
  margin: 1rem 0 0;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-weight: 500;
}

.melding-succes {
  background: var(--succes-licht);
  color: var(--succes);
  border: 1px solid #bfe3c8;
}

.leeg-melding {
  background: var(--kaart);
  border: 1px dashed var(--rand);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: var(--inkt-zacht);
}

.leeg-melding .knop { margin-top: 0.5rem; }

/* ===== Lightbox ===== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 16, 14, 0.86);
}

.lightbox img {
  max-width: min(100%, 1200px);
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: var(--schaduw-hoog);
}

.lightbox-sluit {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-sluit:hover { background: rgba(255, 255, 255, 0.22); }

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid var(--rand);
  padding: 2rem 0 2.5rem;
  color: var(--inkt-zacht);
  font-size: 0.95rem;
  background: #f3ece2;
}

.site-footer p { margin: 0.25rem 0; }

/* ===== Responsief ===== */

@media (max-width: 720px) {
  .header-inner { gap: 0.75rem; }
  .logo { flex: 1; min-width: 0; }
  .menu-knop {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
  }
  .header-menu {
    display: none;
    order: 3;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.25rem 0 0.75rem;
  }
  .header-menu.open { display: flex; }
  .hoofdmenu {
    flex-direction: column;
    gap: 0.15rem;
    flex: none;
    width: 100%;
  }
  .hoofdmenu a {
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
  }
  .header-acties {
    align-items: stretch;
    flex-direction: column;
    gap: 0.6rem;
    margin-left: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rand);
  }
  .header-acties .knop,
  .header-acties .tekstlink {
    width: 100%;
    text-align: center;
  }
  .gebruiker-menu summary {
    display: inline-flex;
  }
  .gebruiker-menu-lijst {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: none;
  }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-cijfers { gap: 1.75rem; }
  .oprichter-kop { flex-direction: column; }
  .beheer-rij { align-items: flex-start; flex-direction: column; }
  .beheer-acties { justify-content: flex-start; }
  .profiel-kop { flex-direction: column; padding: 1.5rem; }
  .tip-detail { padding: 1.5rem 1.25rem; }
  .pagina { padding-top: 1.75rem; }
}
