/* Esserberg Open 2026 - Summer Chique edition
   Kleuren en typografie afgeleid van de toernooiposter. */

:root {
  --cream:        #efe6d6;
  --cream-deep:   #e6d9c3;
  --surface:      #fbf6ec;
  --ink:          #1c1913;
  --ink-soft:     #3a342a;
  --muted:        #7a7062;
  --line:         #ded0b6;
  --clay:         #a8703f;
  --clay-deep:    #8c4a2f;
  --olive:        #6e7256;
  --success:      #4c6b46;
  --danger:       #9b3a2c;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 18px 40px -28px rgba(28, 25, 19, .55);
  --serif:        "Playfair Display", Georgia, "Times New Roman", serif;
  --body:         "Lora", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  background-image:
    radial-gradient(1200px 500px at 12% -10%, rgba(168, 112, 63, .13), transparent 60%),
    radial-gradient(900px 420px at 96% 4%, rgba(110, 114, 86, .12), transparent 62%);
  background-attachment: fixed;
}

.shell { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.shell-wide { width: min(1040px, 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.14; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.3rem); font-weight: 800; letter-spacing: -.015em; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--clay-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream); padding: .7rem 1.1rem; z-index: 50;
}
.skip-link:focus { left: 1rem; top: 1rem; border-radius: 6px; }

/* ── Kop ─────────────────────────────────────────────────────────────────── */
.masthead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  width: min(1040px, 100% - 2.5rem); margin: 0 auto; padding: 1.4rem 0 .9rem;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.masthead-brand { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none; }
.masthead-kicker { font-family: var(--serif); font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.01em; }
.masthead-year { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--clay); }
.masthead-tag {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 3rem 0 1.6rem; }
.hero .eyebrow {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--clay); margin: 0 0 .8rem; font-weight: 600;
}
.hero .lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 60ch; }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.chip {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: .38rem 1rem; font-size: .92rem;
  box-shadow: 0 6px 14px -12px rgba(28,25,19,.7);
}
.chip-strong { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ── Kaarten ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: var(--shadow);
}
.card + .card { margin-top: 1.2rem; }
.card h2:first-child, .card h1:first-child { margin-top: 0; }

.grid-2 { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.activity-list { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
.activity-list .activity-card { width: 100%; }
.activity-list .activity-card .cta-btn { max-width: 340px; }

.activity-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
a.activity-card:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -26px rgba(28,25,19,.6); color: inherit; }
.activity-card .when { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: .5rem; font-weight: 600; }
.activity-card .price { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); font-weight: 700; }
.activity-card .price small { font-family: var(--body); font-size: .85rem; font-weight: 400; color: var(--muted); }
.activity-card .cta { margin-top: auto; padding-top: 1.3rem; margin-bottom: 0; }
.cta-btn {
  display: block; text-align: center; font-weight: 600; font-size: 1.02rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  background: var(--ink); color: var(--cream); border: 1px solid var(--ink);
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.cta-arrow { display: inline-block; margin-left: .35rem; transition: transform .16s ease; }
a.activity-card:hover .cta-btn,
a.activity-card:focus-visible .cta-btn { background: var(--clay-deep); border-color: var(--clay-deep); color: #fff; }
a.activity-card:hover .cta-arrow { transform: translateX(3px); }
.cta-btn-secondary { background: transparent; color: var(--ink); }
a.activity-card:hover .cta-btn-secondary { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ── Feitenlijst ─────────────────────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.4rem; margin: 0; }
.facts dt { color: var(--muted); font-size: .95rem; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }

.prizes { margin: .35rem 0 0; padding-left: 1.1rem; font-weight: 400; }
.prizes li { margin-bottom: .3rem; }
.prizes li::marker { color: var(--clay); }
.prizes li:last-child { margin-bottom: 0; }

.rules { margin: 0; padding-left: 1.3rem; }
.rules li { margin-bottom: .6rem; }
.rules li::marker { color: var(--clay); font-family: var(--serif); font-weight: 700; }
.rules li:last-child { margin-bottom: 0; }

/* ── Formulier ───────────────────────────────────────────────────────────── */
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .92rem; color: var(--muted); margin-bottom: .3rem; }
.field .req { color: var(--clay-deep); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select {
  width: 100%; padding: .72rem .85rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(168,112,63,.22);
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(155,58,44,.15); }

.field-error { display: block; color: var(--danger); font-size: .88rem; margin-top: .3rem; }

.person-block { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.1rem .2rem; margin-bottom: 1rem; background: rgba(255,255,255,.5); }
.person-block legend { font-family: var(--serif); font-weight: 700; color: var(--ink); padding: 0 .5rem; font-size: 1.02rem; }
.person-block[hidden] { display: none; }

fieldset { border: 0; padding: 0; margin: 0; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); }
.consent input { margin-top: .35rem; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; accent-color: var(--clay); }

.summary {
  background: var(--cream-deep); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; margin: 1.2rem 0; display: flex; justify-content: space-between;
  align-items: baseline; gap: 1rem; flex-wrap: wrap;
}
.summary .total { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; color: var(--ink); }

/* ── Knoppen ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  padding: .82rem 1.6rem; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--cream); text-decoration: none; text-align: center;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.btn:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: #fff; transform: translateY(-1px); }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.btn-block { display: block; width: 100%; }

/* ── Meldingen ───────────────────────────────────────────────────────────── */
.notice { border-radius: var(--radius-sm); padding: .95rem 1.15rem; margin: 0 0 1.3rem; border: 1px solid; font-size: .98rem; }
.notice-error   { background: #f8e9e5; border-color: #dcb4aa; color: #6f2519; }
.notice-info    { background: #eef1e6; border-color: #c8cfb4; color: #3f4a35; }
.notice-success { background: #e9f0e5; border-color: #b7cbaa; color: #2f4a2a; }
.notice ul { margin: .5rem 0 0; padding-left: 1.2rem; }

.availability { font-size: .95rem; color: var(--muted); margin-top: .6rem; }
.availability strong { color: var(--ink); }
.availability.is-low strong { color: var(--clay-deep); }
.badge-soldout {
  display: inline-block; background: var(--danger); color: #fff; border-radius: 999px;
  padding: .2rem .8rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}

.hold-note { font-size: .9rem; color: var(--muted); margin-top: .9rem; }

/* ── Bedankpagina ────────────────────────────────────────────────────────── */
.checkmark {
  width: 62px; height: 62px; border-radius: 50%; background: var(--success); color: #fff;
  display: grid; place-items: center; font-size: 2rem; margin: 0 0 1rem;
}

/* ── Beheer ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.data th, table.data td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
table.data th { background: var(--cream-deep); font-family: var(--serif); font-size: .88rem; letter-spacing: .04em; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.row-attention td { background: #faece8; }
.pill { display: inline-block; border-radius: 999px; padding: .1rem .6rem; font-size: .78rem; border: 1px solid; }
.pill-paid { background: #e9f0e5; border-color: #b7cbaa; color: #2f4a2a; }
.pill-pending { background: #f5eeda; border-color: #ddc98f; color: #6a5518; }
.pill-other { background: #eee; border-color: #ccc; color: #555; }
.stats { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1.2rem; }
.stat .n { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--ink); display: block; line-height: 1.1; }
.stat .l { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* ── Voettekst ───────────────────────────────────────────────────────────── */
.site-footer { margin-top: 3.5rem; padding: 1.8rem 0 2.6rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.site-footer p { margin: 0 0 .5rem; }
.site-footer .fine { font-size: .84rem; max-width: 70ch; }
.site-footer a { color: var(--clay-deep); }

.page-error { display: grid; place-items: center; min-height: 100vh; }

@media (max-width: 540px) {
  body { font-size: 16px; }
  .card { padding: 1.25rem 1.15rem; }
  .facts { grid-template-columns: 1fr; gap: .1rem 0; }
  .facts dd { margin-bottom: .55rem; }
  .hero { padding: 2rem 0 1rem; }
}

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