/* ============================================================
   WeddingSwap stylesheet
   ============================================================ */

:root {
  --paper:      #FBF8F6;
  --paper-warm: #F3EBE7;
  --ink:        #16121F;
  --ink-soft:   #5D5566;
  --wine:       #7A2E4E;
  --wine-dark:  #5A1F39;
  --wine-mist:  #F6EAEF;
  --gold:       #B8901F;
  --groen:      #2F6B4F;
  --lijn:       #E6DDD8;
  --radius:     6px;
  --breedte:    1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark, .datum-dag, .cijfer {
  font-family: "Bricolage Grotesque", "Instrument Sans", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wine-dark); }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--breedte);
  margin: 0 auto;
  padding: 0 24px;
}

.smal { max-width: 760px; }

/* ---------- Kop en navigatie ---------- */
.site-kop {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 246, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lijn);
}

.kop-inhoud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.wordmark {
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
  white-space: nowrap;
}
.wordmark span { color: var(--wine); }

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--lijn); }
.nav a.actief { border-bottom-color: var(--wine); }

.menu-knop {
  display: none;
  background: none;
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  padding: 8px 12px;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}

/* ---------- Knoppen ---------- */
.knop {
  display: inline-block;
  background: var(--wine);
  color: #fff;
  border: 1px solid var(--wine);
  border-radius: var(--radius);
  padding: 11px 20px;
  font-size: .97rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease;
}
.knop:hover { background: var(--wine-dark); color: #fff; }

.knop-licht {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.knop-licht:hover { background: var(--ink); color: var(--paper); }

.knop-omgekeerd {
  background: var(--paper);
  color: var(--wine-dark);
  border-color: var(--paper);
}
.knop-omgekeerd:hover { background: #fff; color: var(--wine-dark); }

.knop-klein { padding: 7px 14px; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero {
  background: var(--wine-dark);
  color: var(--paper);
  padding: 72px 0 0;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { color: rgba(251, 248, 246, .82); max-width: 52ch; font-size: 1.08rem; }
.hero-acties { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-strook {
  margin-top: 56px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px 10px 0 0;
  padding: 26px 26px 6px;
}
.hero-strook h2 { font-size: 1.05rem; color: var(--ink-soft); font-weight: 500; letter-spacing: 0; }

/* ---------- Datumblok, het handelsmerk ---------- */
.datum {
  flex: 0 0 auto;
  width: 74px;
  text-align: center;
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.datum-top {
  background: var(--wine-mist);
  color: var(--wine-dark);
  font-size: .72rem;
  padding: 3px 0;
  border-bottom: 1px solid var(--lijn);
}
.datum-dag {
  font-size: 1.9rem;
  line-height: 1;
  padding: 8px 0 2px;
  margin: 0;
}
.datum-maand {
  font-size: .8rem;
  color: var(--ink-soft);
  padding-bottom: 7px;
}
.datum-jaar {
  font-size: .68rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--lijn);
  padding: 2px 0;
}

/* ---------- Lijst met advertenties ---------- */
.lijst { border-top: 1px solid var(--lijn); margin: 0; padding: 0; list-style: none; }

.rij {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--lijn);
  text-decoration: none;
  color: inherit;
}
.rij:hover { background: rgba(122, 46, 78, .03); }

.rij-kern { flex: 1 1 auto; min-width: 0; }
.rij-kern h3 { margin: 0 0 3px; }
.rij-meta { font-size: .92rem; color: var(--ink-soft); }
.rij-zij { flex: 0 0 auto; text-align: right; font-size: .92rem; }

.prijs { font-size: 1.05rem; font-weight: 600; color: var(--ink); }

/* ---------- Labels ---------- */
.label {
  display: inline-block;
  font-size: .78rem;
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid;
  white-space: nowrap;
}
.label-vrij   { color: var(--groen); border-color: rgba(47,107,79,.35); background: rgba(47,107,79,.07); }
.label-snel   { color: var(--gold);  border-color: rgba(184,144,31,.4); background: rgba(184,144,31,.09); }
.label-gereserveerd { color: var(--ink-soft); border-color: var(--lijn); background: var(--paper-warm); }

/* ---------- Zalen ---------- */
.zaal-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}
.zaal {
  border: 1px solid var(--lijn);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.zaal:hover { border-color: var(--wine); }
.zaal-foto { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--paper-warm); }
.zaal-leeg {
  aspect-ratio: 3 / 2;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: .9rem;
}
.zaal-tekst { padding: 16px 18px 18px; flex: 1; }
.zaal-tekst h3 { margin-bottom: 2px; }
.zaal-plaats { font-size: .9rem; color: var(--ink-soft); margin-bottom: 10px; }

.datum-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: .82rem;
  border: 1px solid var(--lijn);
  border-radius: 4px;
  padding: 3px 8px;
  background: var(--paper);
}

/* ---------- Filter ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.filter a {
  display: inline-block;
  font-size: .9rem;
  padding: 6px 13px;
  border: 1px solid var(--lijn);
  border-radius: 20px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
}
.filter a:hover { border-color: var(--wine); }
.filter a.actief { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Secties ---------- */
.sectie { padding: 64px 0; }
.sectie-lijn { border-top: 1px solid var(--lijn); }
.sectie-warm { background: var(--paper-warm); }

.kolommen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px;
}

.stap { border-top: 2px solid var(--ink); padding-top: 14px; }
.stap-nummer {
  font-family: "Bricolage Grotesque", serif;
  font-size: 1.6rem;
  color: var(--wine);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

/* ---------- Detailpagina ---------- */
.detail-kop { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.terug { font-size: .92rem; display: inline-block; margin-bottom: 18px; }

.feiten { border-top: 1px solid var(--lijn); margin: 26px 0; }
.feit {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--lijn);
  font-size: .96rem;
}
.feit dt { color: var(--ink-soft); margin: 0; }
.feit dd { margin: 0; text-align: right; font-weight: 500; }

/* ---------- Formulieren ---------- */
.formulier { max-width: 560px; }
.veld { margin-bottom: 18px; }
.veld label { display: block; font-size: .93rem; margin-bottom: 5px; font-weight: 500; }
.veld .hint { font-size: .85rem; color: var(--ink-soft); font-weight: 400; }

input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], input[type=password], input[type=file], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--wine); outline-offset: 0; }

.kaart {
  background: #fff;
  border: 1px solid var(--lijn);
  border-radius: 8px;
  padding: 26px;
}

.melding {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: .95rem;
  border: 1px solid;
}
.melding-goed { background: rgba(47,107,79,.08); border-color: rgba(47,107,79,.3); color: var(--groen); }
.melding-fout { background: rgba(122,46,78,.07); border-color: rgba(122,46,78,.3); color: var(--wine-dark); }

.leeg {
  border: 1px dashed var(--lijn);
  border-radius: 8px;
  padding: 44px 26px;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- Voettekst ---------- */
.voet {
  background: var(--ink);
  color: rgba(251,248,246,.7);
  padding: 52px 0 30px;
  margin-top: 80px;
  font-size: .93rem;
}
.voet a { color: rgba(251,248,246,.9); text-decoration: none; }
.voet a:hover { color: #fff; text-decoration: underline; }
.voet h3 { color: #fff; font-size: .95rem; margin-bottom: 12px; font-family: inherit; font-weight: 600; letter-spacing: 0; }
.voet ul { list-style: none; padding: 0; margin: 0; }
.voet li { margin-bottom: 7px; }
.voet-onder {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 36px;
  padding-top: 18px;
  font-size: .85rem;
  color: rgba(251,248,246,.5);
}

/* ---------- Beheer ---------- */
.admin-kop {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 0;
  margin-bottom: 36px;
}
.admin-kop a { color: rgba(251,248,246,.8); text-decoration: none; margin-right: 20px; font-size: .93rem; }
.admin-kop a:hover, .admin-kop a.actief { color: #fff; }

table.tabel { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.tabel th {
  text-align: left;
  border-bottom: 2px solid var(--ink);
  padding: 9px 10px;
  font-size: .85rem;
  color: var(--ink-soft);
  font-weight: 500;
}
table.tabel td { border-bottom: 1px solid var(--lijn); padding: 11px 10px; vertical-align: top; }
table.tabel tr:hover td { background: rgba(122,46,78,.03); }

.tel-blok { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.tel { border-left: 3px solid var(--wine); padding-left: 14px; }
.tel .cijfer { font-size: 2rem; display: block; line-height: 1; }
.tel span.omschrijving { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Responsief ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-knop { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--lijn);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--lijn); }
  .nav a:last-child { border-bottom: none; }

  .hero { padding-top: 46px; }
  .hero-strook { margin-top: 38px; padding: 20px 18px 4px; }
  .sectie { padding: 46px 0; }
  .rij { gap: 14px; align-items: flex-start; }
  .rij-zij { text-align: left; }
  .datum { width: 62px; }
  .datum-dag { font-size: 1.55rem; }
  .voet { margin-top: 54px; }
}

@media (max-width: 560px) {
  .rij { flex-wrap: wrap; }
  .rij-zij { width: 100%; padding-left: 76px; }
}

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