/* ==========================================================
   Overlijdenswebsite.nl - Hoofdstijl
   Uitstraling: rustig, warm, stijlvol, betrouwbaar
   ========================================================== */

:root {
  --kleur-primair: #A9886B;     /* warm beige/aarde */
  --kleur-primair-donker: #8C6F54;
  --kleur-secundair: #5C6B5C;   /* grijsgroen */
  --kleur-achtergrond: #FAF7F2; /* zacht zandwit */
  --kleur-tekst: #3B3A36;
  --kleur-tekst-licht: #6E6B63;
  --kleur-wit: #FFFFFF;
  --kleur-rand: #E5DED3;
  --schaduw: 0 2px 12px rgba(60, 50, 35, 0.08);
  --radius: 10px;
  --font-koppen: 'Georgia', 'Times New Roman', serif;
  --font-tekst: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--kleur-achtergrond);
  color: var(--kleur-tekst);
  font-family: var(--font-tekst);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--font-koppen);
  color: var(--kleur-tekst);
  font-weight: 500;
  line-height: 1.3;
}

a { color: var(--kleur-primair-donker); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header / navigatie */
.site-header {
  background: var(--kleur-wit);
  border-bottom: 1px solid var(--kleur-rand);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
  flex-wrap: nowrap;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 52px; display: block; }
.topbar-acties { display: flex; align-items: center; gap: 16px; flex-shrink: 0; white-space: nowrap; }
.topbar-acties a { color: var(--kleur-tekst); font-size: 0.92rem; }
.nav-actie {
  background: var(--kleur-primair);
  color: var(--kleur-wit) !important;
  padding: 8px 16px;
  border-radius: var(--radius);
}
.nav-actie:hover { background: var(--kleur-primair-donker); text-decoration: none; }

.hoofdnav { background: var(--kleur-achtergrond); border-top: 1px solid var(--kleur-rand); }
.hoofdnav-inner {
  display: flex;
  gap: 26px;
  padding: 11px 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.hoofdnav-inner a { color: var(--kleur-tekst); font-size: 0.93rem; }
.hoofdnav-inner a:hover { color: var(--kleur-primair-donker); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #F3ECE2 0%, #EAE2D4 100%);
  padding: 70px 0;
  text-align: center;
}
.hero h1 { font-size: 2.3rem; margin-bottom: 14px; }
.hero p { font-size: 1.1rem; color: var(--kleur-tekst-licht); max-width: 620px; margin: 0 auto 28px; }

/* Algemene secties */
.sectie { padding: 56px 0; }
.sectie-titel { text-align: center; margin-bottom: 36px; }
.sectie-titel p { color: var(--kleur-tekst-licht); }

/* Kaarten */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.kaart {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--schaduw);
}
.kaart h3 { margin-top: 0; }
.kaart .meta { color: var(--kleur-tekst-licht); font-size: 0.88rem; }

/* Knoppen */
.btn {
  display: inline-block;
  background: var(--kleur-primair);
  color: var(--kleur-wit);
  padding: 12px 26px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--kleur-primair-donker); text-decoration: none; }
.btn-secundair { background: var(--kleur-secundair); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--kleur-primair);
  color: var(--kleur-primair-donker);
}

/* Formulieren */
form .veld { margin-bottom: 18px; }
label { display: block; margin-bottom: 6px; font-size: 0.92rem; color: var(--kleur-tekst-licht); }
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-tekst);
  background: var(--kleur-wit);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--kleur-primair); }
fieldset { border: 1px solid var(--kleur-rand); border-radius: var(--radius); margin-bottom: 22px; padding: 18px; }
legend { font-family: var(--font-koppen); padding: 0 8px; color: var(--kleur-primair-donker); }

.melding { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; }
.melding-succes { background: #EAF2E9; color: #3D5A3C; border: 1px solid #C9DDC6; }
.melding-fout { background: #F7E9E6; color: #7A3A2E; border: 1px solid #E7C9C0; }
.melding-info { background: #EFEAE2; color: var(--kleur-tekst); border: 1px solid var(--kleur-rand); }

.opmaakbalk {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.opmaakbalk button {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: 6px;
  padding: 6px 11px;
  cursor: pointer;
  font-size: 0.95rem;
}
.opmaakbalk button:hover { background: var(--kleur-achtergrond); }
.opmaakbalk-scheiding { width: 1px; background: var(--kleur-rand); margin: 0 4px; }

/* Verhalen / forum */
.verhaal-kaart .reacties { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.verhaal-kaart .reacties button {
  background: var(--kleur-achtergrond);
  border: 1px solid var(--kleur-rand);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: #3F3A33;
  color: #D9D2C5;
  padding: 40px 0 24px;
  margin-top: 60px;
  font-size: 0.92rem;
}
.site-footer a { color: #E7DFD0; }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 24px; margin-bottom: 24px; }
.site-footer .copyright { border-top: 1px solid #564F44; padding-top: 18px; text-align: center; color: #B8AF9F; }

/* Admin-specifiek */
.admin-body { background: #F3F1EC; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: #34302A; color: #E7E1D6; padding: 24px 0; flex-shrink: 0; }
.admin-sidebar .logo { color: #E7E1D6; padding: 0 22px 20px; display: block; }
.admin-sidebar a { display: block; color: #C9C2B4; padding: 11px 22px; font-size: 0.93rem; }
.admin-sidebar a:hover, .admin-sidebar a.actief { background: #45403A; color: #fff; text-decoration: none; }
.admin-main { flex: 1; padding: 30px 36px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--schaduw); }
table.admin-table th, table.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--kleur-rand); text-align: left; font-size: 0.92rem; }
table.admin-table th { background: #EFEAE0; }
.badge { padding: 3px 10px; border-radius: 12px; font-size: 0.78rem; }
.badge-groen { background:#EAF2E9; color:#3D5A3C; }
.badge-grijs { background:#EDEAE4; color:#6E6B63; }
.badge-rood { background:#F7E9E6; color:#7A3A2E; }

@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; }
  .hoofdnav-inner { gap: 14px; justify-content: flex-start; overflow-x: auto; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}
