/* ==========================================================
   Trouwsite Vienne & Tomas — stijl
   Kleuren pas je aan bij :root hieronder.
   ========================================================== */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --creme: #f7f2e8;
  --creme-diep: #efe6d4;
  --papier: #fffdf8;
  --inkt: #2f2a23;
  --inkt-zacht: #6b6255;
  --olijf: #5d6440;
  --olijf-licht: #8d946a;
  --terracotta: #b0603c;
  --terracotta-donker: #8f4a2c;
  --lijn: #ddd2bd;
  --fout: #a3352a;
  --goed: #4f6b3a;

  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --breed: 1080px;
  --smal: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--inkt);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--terracotta-donker); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.1em; }

.label {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--olijf);
}

/* ---------- Navigatie ---------- */
.kop {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 242, 232, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--lijn);
}
.kop-binnen {
  max-width: var(--breed); margin: 0 auto; padding: .9rem 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-family: var(--serif); font-size: 1.6rem; font-style: italic;
  color: var(--inkt); text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--terracotta); font-style: normal; }
.menu { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.menu a {
  color: var(--inkt); text-decoration: none; font-size: .92rem; letter-spacing: .06em;
  padding: .3rem 0; border-bottom: 1px solid transparent;
}
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--terracotta); color: var(--inkt); }
.menu-knop {
  display: none; background: none; border: 1px solid var(--lijn); border-radius: 4px;
  font: inherit; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .8rem; color: var(--inkt); cursor: pointer;
}

@media (max-width: 760px) {
  .menu-knop { display: block; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--creme);
    border-bottom: 1px solid var(--lijn); padding: .5rem 16px 1rem;
  }
  .menu.open { display: flex; }
  .menu a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--lijn); }
  .menu li:last-child a { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(3rem, 9vw, 6rem) 16px 0; position: relative; overflow: hidden; }
.hero .label { margin-bottom: 1.4rem; display: block; }
.hero h1 { margin-bottom: .2em; }
.hero h1 .en { font-style: italic; color: var(--terracotta); padding: 0 .15em; }
.hero-datum { font-family: var(--serif); font-size: clamp(1.3rem, 3.5vw, 1.8rem); font-style: italic; color: var(--inkt-zacht); margin-bottom: .3rem; }
.hero-plek { font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--inkt-zacht); }
.heuvels { margin: 2.5rem -16px 0; width: calc(100% + 32px); max-width: none; height: auto; }

.aftellen {
  display: flex; justify-content: center; gap: clamp(1rem, 5vw, 3rem);
  margin: 2rem auto 0; padding: 0;
}
.aftellen[hidden] { display: none; }
.aftellen div { text-align: center; min-width: 3.5rem; }
.aftellen strong { display: block; font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 500; line-height: 1; }
.aftellen span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--inkt-zacht); }

/* ---------- Secties ---------- */
.sectie { padding: clamp(3rem, 8vw, 5rem) 16px; }
.sectie.diep { background: var(--creme-diep); }
.binnen { max-width: var(--breed); margin: 0 auto; }
.binnen.smal { max-width: var(--smal); }
.kopje { text-align: center; margin-bottom: 2.5rem; }
.kopje .label { display: block; margin-bottom: .6rem; }
.sier { width: 64px; height: 12px; margin: 1rem auto 0; color: var(--terracotta); }

.intro { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.55rem); line-height: 1.55; text-align: center; color: var(--inkt); }

.kaarten { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.kaart {
  background: var(--papier); border: 1px solid var(--lijn); border-radius: 6px;
  padding: 1.8rem 1.6rem;
}
.kaart h3 { margin-bottom: .4rem; }
.kaart p:last-child { margin-bottom: 0; }

/* ---------- Programma (tijdlijn) ---------- */
.tijdlijn { list-style: none; margin: 0; padding: 0; position: relative; }
.tijdlijn::before { content: ""; position: absolute; left: 5.5rem; top: .6rem; bottom: .6rem; width: 1px; background: var(--lijn); }
.tijdlijn li { display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem; padding: 0 0 2.2rem; position: relative; }
.tijdlijn li::after {
  content: ""; position: absolute; left: calc(5.5rem - 5px); top: .55rem;
  width: 11px; height: 11px; border-radius: 50%; background: var(--creme); border: 2px solid var(--terracotta);
}
.sectie.diep .tijdlijn li::after { background: var(--creme-diep); }
.tijd { font-family: var(--serif); font-size: 1.4rem; text-align: right; color: var(--terracotta-donker); line-height: 1.4; }
.tijdlijn h3 { font-size: 1.45rem; margin-bottom: .2rem; padding-left: 1rem; }
.tijdlijn p { padding-left: 1rem; margin: 0; color: var(--inkt-zacht); }

.dag-kop { font-family: var(--serif); font-size: 1.7rem; font-style: italic; margin: 0 0 1.5rem; text-align: center; }

/* ---------- Placeholder ---------- */
.nog-invullen {
  background: #fff3c4; color: #6b5200; border-radius: 3px; padding: 0 .3em;
  font-family: var(--sans); font-style: normal; font-size: .85em;
}

/* ---------- Knoppen ---------- */
.knop {
  display: inline-block; background: var(--terracotta); color: #fff;
  font-family: var(--sans); font-size: .9rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: .95rem 2rem; border-radius: 3px; border: 0; cursor: pointer;
  transition: background .2s;
}
.knop:hover { background: var(--terracotta-donker); color: #fff; }
.knop.licht { background: transparent; color: var(--inkt); border: 1px solid var(--inkt); }
.knop.licht:hover { background: var(--inkt); color: var(--creme); }
.centreer { text-align: center; }

/* ---------- Formulieren ---------- */
.formulier { background: var(--papier); border: 1px solid var(--lijn); border-radius: 6px; padding: clamp(1.5rem, 5vw, 2.5rem); }
.veld { margin-bottom: 1.5rem; }
.veld > label, .veld > .veld-label {
  display: block; font-weight: 500; font-size: .95rem; margin-bottom: .45rem;
}
.hulp { display: block; font-size: .85rem; color: var(--inkt-zacht); margin-top: .3rem; }
input[type="text"], input[type="password"], input[type="date"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--inkt);
  background: #fff; border: 1px solid var(--lijn); border-radius: 4px;
  padding: .75rem .85rem;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--olijf-licht); outline-offset: 1px; border-color: var(--olijf-licht); }
.code-invoer { text-align: center; font-size: 1.35rem !important; letter-spacing: .25em; text-transform: uppercase; }

.keuzes { display: flex; flex-wrap: wrap; gap: .6rem; }
.keuze { position: relative; }
.keuze input { position: absolute; opacity: 0; inset: 0; }
.keuze span {
  display: block; border: 1px solid var(--lijn); border-radius: 4px; background: #fff;
  padding: .65rem 1.1rem; cursor: pointer; font-weight: 400;
}
.keuze input:checked + span { border-color: var(--terracotta); background: #fbeee6; color: var(--terracotta-donker); }
.keuze input:focus-visible + span { outline: 2px solid var(--olijf-licht); outline-offset: 2px; }

.twee { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .twee { grid-template-columns: 1fr; } }

fieldset { border: 0; padding: 0; margin: 0; }
.blok { border-top: 1px solid var(--lijn); padding-top: 1.6rem; margin-top: .4rem; }
.blok > h3 { font-size: 1.35rem; }
[data-alleen-bij-ja][hidden] { display: none; }

.melding { border-radius: 4px; padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-weight: 400; }
.melding.fout { background: #f8e3df; color: var(--fout); }
.melding.goed { background: #e6eedc; color: var(--goed); }
.melding.info { background: var(--creme-diep); color: var(--inkt); }

/* ---------- Voet ---------- */
.voet { text-align: center; padding: 3rem 16px; border-top: 1px solid var(--lijn); color: var(--inkt-zacht); font-size: .9rem; }
.voet .logo { font-size: 1.8rem; display: inline-block; margin-bottom: .5rem; }

/* ---------- Beheer ---------- */
.tabel-wrap { overflow-x: auto; background: var(--papier); border: 1px solid var(--lijn); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--lijn); vertical-align: top; }
th { font-weight: 500; background: var(--creme-diep); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: .1rem .5rem; border-radius: 3px; font-size: .8rem; white-space: nowrap; }
.status.ja { background: #e6eedc; color: var(--goed); }
.status.nee { background: #f8e3df; color: var(--fout); }
.status.open { background: #eee; color: #666; }
.tellers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.teller { background: var(--papier); border: 1px solid var(--lijn); border-radius: 6px; padding: 1rem 1.2rem; }
.teller strong { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 500; line-height: 1.1; }
.teller span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--inkt-zacht); }
code { background: var(--creme-diep); padding: .1em .35em; border-radius: 3px; font-size: .9em; }
