/* Huisstijl Pursuit Femmes: kleuren en lettertypes overgenomen van pursuit-femmes.com */
:root {
  --cream: #f2eadf;
  --sand: #e6dcd0;
  --line: #cdbfae;
  --rust: #973d24;
  --rust-dark: #7c2f1a;
  --ink: #141414;
  --muted: #5c5148;
  --white: #fffdf9;
  --display: 'TeX Gyre Termes', 'Tinos', 'Times New Roman', Times, serif;
  --body: 'Darker Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --r: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(60, 30, 15, 0.05), 0 6px 18px -10px rgba(60, 30, 15, 0.18);
  --shadow-up: 0 2px 4px rgba(60, 30, 15, 0.06), 0 14px 28px -14px rgba(60, 30, 15, 0.32);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.25rem; font-weight: 500; line-height: 1.3; background: var(--cream); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-size: 1.375rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { display: block; }

/* ================= Enquête ================= */
body.survey { min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(120% 90% at 100% 0%, #faf5ec 0%, var(--cream) 60%) fixed; }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--sand); z-index: 2; }
.progress-bar { height: 100%; width: 0; background: var(--rust); border-radius: 0 3px 3px 0; transition: width 0.7s var(--ease); }
.survey-head { padding: 1.5rem clamp(1.25rem, 5vw, 4rem) 0; }

.stage { flex: 1; display: grid; align-items: center; padding: 2rem clamp(1.25rem, 5vw, 4rem) 4rem; }
.screen { width: 100%; max-width: 42rem; margin: 0 auto; }
.screen > * { animation: rise 0.6s var(--ease) both; }
.screen > :nth-child(2) { animation-delay: 0.05s; }
.screen > :nth-child(3) { animation-delay: 0.1s; }
.screen > :nth-child(n + 4) { animation-delay: 0.15s; }
.screen.leaving { opacity: 0; transform: translateY(-12px); transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.q-number { font-family: var(--display); font-size: 1.5rem; color: var(--rust); margin-bottom: 0.5rem; }
.q-number::after { content: ''; display: inline-block; width: 2.5rem; height: 1px; background: var(--rust); vertical-align: middle; margin-left: 0.75rem; }
.q-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 4.2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.q-title.big { font-size: clamp(2.5rem, 8vw, 4.25rem); line-height: 0.98; }
.q-hint { color: var(--muted); margin-top: 0.6rem; }
.kicker { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 1rem; color: var(--rust); margin-bottom: 0.75rem; }
.answer { margin-top: 1.75rem; }

.options { display: grid; gap: 0.6rem; }
.option { display: block; padding: 0.75rem 1rem 0.85rem; border: 1px solid transparent; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); cursor: pointer; animation: rise 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms + 0.12s); transition: background 0.25s var(--ease), border-color 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.option-row { display: flex; align-items: center; gap: 0.8rem; }
.option:hover { border-color: var(--rust); transform: translateY(-2px); box-shadow: var(--shadow-up); }
.option:active { transform: scale(0.99); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:checked) { background: var(--rust); color: var(--cream); border-color: var(--rust); box-shadow: var(--shadow-up); }
.option:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.key { flex: none; display: grid; place-items: center; min-width: 1.75rem; height: 1.75rem; padding: 0 0.35rem 0.1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9375rem; font-weight: 700; line-height: 1; color: var(--rust); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.option:has(input:checked) .key { background: var(--cream); border-color: var(--cream); }
.lang:hover .key { background: var(--cream); border-color: var(--cream); }
.options.pictures { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.options.pictures .option { padding: 0.6rem 0.6rem 0.7rem; }
.options.pictures img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 0.6rem; border-radius: 8px; }
.other-input { width: 100%; margin-top: 0.6rem; padding: 0.75rem 1rem 0.85rem; border: 1px solid var(--rust); border-radius: var(--r); background: var(--white); animation: rise 0.4s var(--ease) both; }
.other-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(151, 61, 36, 0.2); }

.scale { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.6rem; }
.scale-item { animation: rise 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + 0.12s); }
.scale-item { position: relative; cursor: pointer; }
.scale-item input { position: absolute; opacity: 0; pointer-events: none; }
.scale-item span { display: grid; place-items: center; height: 4.25rem; border: 1px solid transparent; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); font-family: var(--display); font-size: 1.75rem; transition: background 0.25s var(--ease), border-color 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.scale-item:hover span { border-color: var(--rust); transform: translateY(-2px); box-shadow: var(--shadow-up); }
.scale-item input:checked + span { background: var(--rust); border-color: var(--rust); color: var(--cream); }
.scale-item input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.scale-labels { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; color: var(--muted); font-size: 1.0625rem; }
.scale-labels span:last-child { text-align: right; }

.textfield { width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 0.4rem 0; font-size: 1.5rem; resize: vertical; }
.textfield.number { max-width: 8rem; font-family: var(--display); font-size: 2.5rem; }
.textfield::placeholder { color: #a3968a; }
.textfield { transition: border-color 0.25s, box-shadow 0.25s; }
.textfield:focus { outline: none; border-bottom-color: var(--rust); box-shadow: 0 1.5px 0 var(--rust); }

.combo { position: relative; }
.suggestions { list-style: none; margin: 0.6rem 0 0; padding: 0.4rem; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-up); animation: rise 0.3s var(--ease) both; }
.suggestions li { padding: 0.5rem 0.8rem 0.6rem; border-radius: 10px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.suggestions li:hover { background: var(--sand); }
.suggestions li.active { background: var(--rust); color: var(--cream); }

.error { color: #a1260d; min-height: 1.6rem; margin-top: 0.9rem; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 0.75rem; }
.welcome .actions, .statement .actions { margin-top: 2rem; }
.btn { border: 0; border-radius: 999px; padding: 0.7rem 1.6rem 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.btn.primary { background: var(--rust); color: var(--cream); box-shadow: var(--shadow); }
.btn.primary:hover { background: var(--rust-dark); transform: translateY(-1px); box-shadow: var(--shadow-up); }
.btn.primary:active { transform: scale(0.98); }
.survey .btn.primary::after { content: '→'; display: inline-block; margin-left: 0.6rem; transition: transform 0.3s var(--ease); }
.survey .btn.primary:hover::after { transform: translateX(4px); }
.btn.primary:disabled { opacity: 0.6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--muted); margin-left: auto; padding-inline: 0.5rem; }
.btn.ghost:hover { color: var(--ink); }
.enter-hint { color: var(--muted); font-size: 1rem; }
@media (hover: none) { .enter-hint { display: none; } }

.intro-icon { display: block; margin-bottom: 1.5rem; }
.intro-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.5rem, 8vw, 4.25rem); line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.intro-langs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.5rem; }
.lang { display: inline-flex; align-items: center; gap: 0.75rem; background: var(--white); border: 1px solid transparent; border-radius: 999px; box-shadow: var(--shadow); padding: 0.6rem 1.5rem 0.7rem 0.7rem; cursor: pointer; font-weight: 600; transition: background 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.lang:hover { background: var(--rust); color: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow-up); }
.note { margin-top: 1.5rem; color: var(--muted); font-size: 1.0625rem; }
.welcome-text { margin-top: 1rem; max-width: 38rem; }
.q-title.big + .welcome-text { margin-top: 1.75rem; }
@media (max-width: 640px) {
  .btn.ghost { margin-left: 0; }
  .lang { flex: 1 1 100%; }
}

/* ================= Admin en overzicht ================= */
.admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; padding: 1rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.admin-nav a { color: var(--ink); text-decoration: none; padding: 0.3rem 0.9rem 0.45rem; font-weight: 600; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.admin-nav a[aria-current='page'] { background: var(--rust); color: var(--cream); }
.admin-nav a:hover:not([aria-current]) { background: var(--sand); }
.admin-tools { margin-left: auto; display: flex; gap: 0.5rem; }
.admin-main { padding: 2rem clamp(1rem, 4vw, 3rem) 4rem; }
.admin h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.05; letter-spacing: -0.03em; }
.sub { color: var(--muted); margin-top: 0.35rem; }
.btn.dark { background: var(--rust); color: var(--cream); }
.btn.line { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn.small { padding: 0.3rem 0.9rem 0.4rem; font-size: 1.0625rem; }
.btn.line:hover { background: var(--sand); }

.login { max-width: 24rem; margin: 10vh auto 0; }
.login label { display: block; font-weight: 700; margin: 1.5rem 0 0.4rem; }
.login input { width: 100%; padding: 0.6rem 1rem 0.7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.login .btn { margin-top: 0.5rem; width: 100%; }

.table-wrap { margin-top: 1.5rem; overflow: auto; max-height: 75vh; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: 1.0625rem; line-height: 1.25; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--sand); vertical-align: top; }
th { background: var(--ink); color: var(--cream); font-weight: 600; min-width: 13rem; vertical-align: bottom; }
td { max-width: 22rem; }
th.narrow { min-width: 0; white-space: nowrap; }
td.num, td.when { white-space: nowrap; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.del { background: none; border: 0; color: #a1260d; cursor: pointer; text-decoration: underline; padding: 0; }
.empty { margin-top: 2rem; padding: 2rem; border: 1px dashed var(--line); border-radius: var(--r); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-top: 1.5rem; border-radius: var(--r); box-shadow: var(--shadow); background: var(--white); overflow: hidden; }
.stat { padding: 1rem 1.25rem; border-right: 1px solid var(--sand); }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--display); font-size: 2.5rem; line-height: 1; letter-spacing: -0.03em; }
.stat-label { color: var(--muted); font-size: 1.0625rem; margin-top: 0.35rem; }

.section-title { display: flex; align-items: baseline; gap: 1rem; margin-top: 3rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.section-title h2 { font-family: var(--display); font-weight: 400; font-size: 1.75rem; letter-spacing: -0.03em; }
.section-title span { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9375rem; color: var(--rust); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.card { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.35rem; min-width: 0; }
.card.wide { grid-column: 1 / -1; }
.card-kicker { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 1.375rem; line-height: 1.12; letter-spacing: -0.02em; margin-top: 0.25rem; }
.card-meta { color: var(--muted); font-size: 1.0625rem; margin-top: 0.3rem; }
.chart-box { position: relative; height: 15rem; margin-top: 1rem; }
.legend { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.3rem; font-size: 1.0625rem; line-height: 1.2; }
.legend li { display: grid; grid-template-columns: 0.9rem 1fr auto; gap: 0.6rem; align-items: baseline; }
.legend i { width: 0.9rem; height: 0.9rem; transform: translateY(0.1rem); }
.legend b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.legend img { width: 3rem; height: 3rem; object-fit: cover; vertical-align: middle; margin-right: 0.5rem; }
.quotes { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; max-height: 20rem; overflow-y: auto; }
.quotes li { border-left: 2px solid var(--rust); padding: 0.1rem 0 0.1rem 0.8rem; }
.quotes small { display: block; color: var(--muted); font-size: 1rem; }

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