:root {
  --cream: #faf9f4;
  --field: #f1efe9;
  --rose: #d1ab9c;
  --rose-dark: #b98a78;
  --ink: #1d1d1b;
  --muted: #6b6560;
  --serif: "Playfair Display", Georgia, serif;
  --sans: Roboto, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.7 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--rose-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }

/* Navigatie */
.topbar { position: fixed; inset: 0 0 auto; z-index: 10; transition: background .3s, box-shadow .3s; }
.topbar.solid { background: rgba(250, 249, 244, .96); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.nav { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 4vw, 56px); padding: 18px 16px; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font-family: var(--serif); letter-spacing: 2px; font-size: 17px; }
.topbar.solid .nav a { color: var(--ink); }
.nav a:hover, .topbar.solid .nav a:hover { color: var(--rose); }
.nav-heart { font-size: 22px !important; }

/* Hero */
.hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff;
  background: #6b5a4e center 35% / cover no-repeat; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.15) 45%, rgba(0,0,0,.45)); }
.hero-inner { position: relative; padding: 110px 16px 60px; }
.hero-date { font-family: var(--serif); font-size: clamp(22px, 3vw, 34px); margin: 0 0 4px; }
.hero h1 { font-size: clamp(42px, 8vw, 84px); letter-spacing: clamp(2px, .8vw, 7px); line-height: 1.15; }
.heart { font-size: .8em; }

.countdown { display: flex; justify-content: center; gap: clamp(10px, 3vw, 28px); margin: 34px 0 36px; }
.countdown div { min-width: clamp(64px, 16vw, 104px); padding: 12px 6px; border: 1px solid rgba(255,255,255,.55);
  border-radius: 6px; background: rgba(255,255,255,.08); backdrop-filter: blur(3px); }
.countdown span { display: block; font-family: var(--serif); font-size: clamp(28px, 6vw, 48px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown small { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; opacity: .9; }
.countdown-done { font-family: var(--serif); font-size: 28px; }

/* Knoppen */
.btn { display: inline-block; background: var(--rose); color: #fff; border: 0; border-radius: 999px; padding: 12px 36px;
  font: 700 16px var(--sans); text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--rose-dark); color: #fff; }
.btn-light { background: rgba(255,255,255,.92); color: var(--rose-dark); }
.btn-light:hover { background: #fff; color: var(--rose-dark); }
.btn-small { padding: 6px 18px; font-size: 13px; }

/* Secties */
.section { max-width: 960px; margin: 0 auto; padding: 90px 16px 40px; text-align: center; }
.section h2 { font-size: clamp(32px, 5vw, 45px); }
.divider { width: 220px; height: 26px; margin: 14px auto 34px; background: no-repeat center / contain
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 26' fill='none' stroke='%23b98a78' stroke-width='1.2'%3E%3Cpath d='M4 13h72M144 13h72'/%3E%3Cpath d='M76 13c8-9 18-9 22 0-4 9-14 9-22 0zM144 13c-8-9-18-9-22 0 4 9 14 9 22 0z'/%3E%3Cpath d='M110 20s-9-5.5-9-11a4.6 4.6 0 0 1 9-1.4A4.6 4.6 0 0 1 119 9c0 5.5-9 11-9 11z'/%3E%3Ccircle cx='60' cy='13' r='1.6' fill='%23b98a78'/%3E%3Ccircle cx='160' cy='13' r='1.6' fill='%23b98a78'/%3E%3C/svg%3E"); }
.tbd { color: var(--muted); font-style: italic; }
.intro { max-width: 640px; margin: 0 auto 28px; }

.welkom { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; text-align: left; max-width: 760px; margin: 0 auto; }
.welkom img { width: 260px; height: 260px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 8px var(--cream), 0 0 0 9px var(--rose); }
.welkom p { font-size: 17px; margin: 0; }

/* Planning */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 560px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; border-left: 1px dashed var(--rose); }
.timeline li { position: relative; background: var(--cream); margin: 0 auto 26px; padding: 4px 0; width: max-content; max-width: 100%; }
.tl-time { display: block; font-family: var(--serif); font-size: 22px; color: var(--rose-dark); }
.tl-what { display: block; font-weight: 500; }
.tl-where { display: block; color: var(--muted); font-size: 14px; }

/* Kaarten */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; }
.card { width: 260px; }
.card h3 { font-size: 20px; margin: 14px 0 6px; }
.card p { margin: 0 0 12px; }
.round { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; margin: 0 auto; }
.portrait { width: 240px; height: 300px; object-fit: cover; margin: 0 auto; }

/* Formulieren */
form.login, form.rsvp { max-width: 600px; margin: 0 auto; text-align: left; }
form.login p { margin-top: 0; }
label { display: block; font-family: var(--serif); text-align: center; margin: 22px 0 8px; }
input, select, textarea { width: 100%; padding: 14px; border: 0; border-bottom: 1px solid #ddd8cf; background: var(--field);
  font: 15px var(--sans); color: var(--ink); border-radius: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rose); outline-offset: 0; }
fieldset { border: 0; padding: 0; margin: 0; text-align: center; }
legend { font-family: var(--serif); width: 100%; text-align: center; margin-bottom: 6px; }
label.radio { display: inline-flex; align-items: center; gap: 6px; margin: 0 12px; font-family: var(--sans); }
label.radio input { width: auto; accent-color: var(--rose-dark); }
form .btn { display: block; margin: 34px auto 0; min-width: 180px; }
form.login .btn { width: 100%; }
.hp { position: absolute; left: -9999px; }
.alert { background: #f6e3dc; border-left: 3px solid var(--rose-dark); padding: 10px 14px; text-align: left; }
.alert-ok { background: #eef3ea; border-color: #8aa77c; max-width: 600px; margin: 0 auto 20px; }

/* Q&A */
.qa { max-width: 640px; margin: 0 auto; text-align: left; }
.qa details { background: var(--field); margin-bottom: 8px; }
.qa summary { cursor: pointer; padding: 12px 16px; font-family: var(--serif); letter-spacing: 1.5px; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "+"; display: inline-block; width: 18px; color: var(--rose-dark); }
.qa details[open] summary { background: var(--rose); color: #fff; }
.qa details[open] summary::before { content: "\2212"; color: #fff; }
.qa details p { margin: 0; padding: 12px 16px 14px; background: #fff; }

/* Footer */
.footer { margin-top: 80px; min-height: 60vh; display: grid; place-items: end center; color: #fff; text-align: center;
  background: #6b5a4e center 60% / cover no-repeat; position: relative; }
.footer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 30%, rgba(0,0,0,.5)); }
.footer-inner { position: relative; padding: 40px 16px; }
.footer-names { font-family: var(--serif); font-size: 32px; letter-spacing: 3px; margin: 0; }
.footer p { margin: 0; }

/* Beheer */
.admin .section { max-width: 1200px; padding-top: 50px; }
.stats { margin-bottom: 20px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; background: #fff; }
th, td { padding: 8px 10px; border-bottom: 1px solid #ece8e0; vertical-align: top; }
th { background: var(--rose); color: #fff; font-weight: 500; }

@media (max-width: 720px) {
  .nav { gap: 6px 18px; padding: 12px 16px; }
  .nav a { font-size: 14px; letter-spacing: 1px; }
  .welkom { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .welkom img { margin: 0 auto; width: 200px; height: 200px; }
  .section { padding-top: 70px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Hero met de heidefoto: gezichten links, tekst rechts boven de heide (mobiel: onderin) */
.hero-photo { background-position: left 40%; place-items: center end; }
.hero-photo::before { background: linear-gradient(90deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.38) 75%), linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,0) 25%); }
.hero-photo .hero-inner { width: 52%; padding-right: 3vw; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero-photo h1 { font-size: clamp(40px, 4.6vw, 72px); letter-spacing: clamp(2px, .4vw, 5px); }
.hero h1 .n { white-space: nowrap; }
.hero-photo .countdown div { background: rgba(0,0,0,.12); }
@media (max-width: 900px) {
  .hero-photo { background-position: 25% 30%; place-items: end center; }
  .hero-photo::before { background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,0) 20%, rgba(0,0,0,0) 45%, rgba(0,0,0,.6) 80%); }
  .hero-photo .hero-inner { width: auto; padding: 0 16px 36px; }
  .hero-photo .countdown { margin: 22px 0 24px; }
}

/* Smalle schermen (ook bij vergrote tekst op Android): namen onder elkaar, countdown krimpt mee */
@media (max-width: 600px) {
  .hero h1, .hero-photo h1 { font-size: clamp(36px, 12vw, 54px); letter-spacing: 2px; line-height: 1.05; }
  .hero h1 span { display: block; }
  .hero h1 .heart { font-size: .5em; margin: 4px 0 2px; }
  .hero-date { font-size: 20px; margin-bottom: 8px; }
  .countdown { gap: 8px; width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
  .countdown div { flex: 1 1 0; min-width: 0; padding: 10px 2px; }
  .countdown span { font-size: clamp(22px, 8vw, 34px); }
  .countdown small { font-size: 9px; letter-spacing: .5px; }
  .footer-names { font-size: 26px; letter-spacing: 2px; }
}
