/* ============================================================
   Corné loopt voor onderzoek naar dunnevezelneuropathie
   Rustig blauwgroen, persoonlijk, ingetogen.
   Rubik, rechte hoeken.
   ============================================================ */

:root {
  --bg: #f4f8f6;
  --bg-alt: #e6efeb;
  --bg-deep: #10312e;
  --ink: #14332f;
  --ink-soft: #4d6b66;
  --accent: #17786b;
  --accent-dark: #0f5c52;
  --line: #d5e3dd;
  --card: #ffffff;
  --radius: 2px;
  --shadow: 0 18px 40px -22px rgba(16, 49, 46, 0.35);
  /* Leesbare regellengte, ongeveer 75 tekens. Het kader is breder; alleen
     doorlopende tekst wordt hierop afgetopt. Deze maat geldt voor het
     tekstelement zelf, dus zonder de padding van de container. */
  --maat-tekst: 42rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Rubik", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

/* ---------- typografie ---------- */

h1, h2, h3 {
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
}

h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 1.5rem;
  max-width: 34ch;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

p + p { margin-top: 1rem; }

a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* ---------- layout ---------- */

.container {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Elke sectie gebruikt hetzelfde kader, zodat de linkermarge over de hele
   pagina gelijk blijft. Alleen doorlopende tekst wordt afgetopt op een
   leesbare regellengte; contentblokken mogen het volle kader benutten. */
.container.narrow { max-width: 76rem; }

.container.narrow > p,
.container.narrow > h2,
.container.narrow > h3,
.container.narrow > ol,
.container.narrow > .proof,
.container.narrow > .symptoms,
.container.narrow > .eigen-woorden,
.container.narrow > .citaat {
  max-width: var(--maat-tekst);
}

/* Het drieluik met kaarten mag breder dan de leesmaat, maar niet het volle
   kader: anders wordt de sprong ten opzichte van de tekst zo groot dat de
   lege ruimte rechts als een fout leest in plaats van als een keuze. */
.container.narrow > .facts {
  max-width: 62rem;
}

/* In gecentreerde secties blijft de afgetopte tekst gecentreerd staan */
.container.center > p {
  margin-left: auto;
  margin-right: auto;
}
.container.center { text-align: center; }
.container.center h2 { margin-left: auto; margin-right: auto; }

.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- knoppen (rechthoekig, geen pillen) ---------- */

.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-dark);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(ellipse 90% 60% at 15% 0%, rgba(23, 120, 107, 0.13), transparent 60%),
    radial-gradient(ellipse 70% 50% at 95% 90%, rgba(23, 120, 107, 0.09), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

/* Lijntekening van de Magere Brug, laag in de hero */
.hero-achtergrond {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--accent);
  opacity: 0.11;
  pointer-events: none;
  z-index: 0;
  /* Naar de zijkanten laten uitvloeien zodat de tekening niet hard afkapt */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}

/* Rechts uitlijnen zodat de Marathontoren in beeld blijft wanneer de
   tekening op smalle schermen breder is dan het venster */
.hero-achtergrond {
  display: flex;
  justify-content: flex-end;
}

.hero-achtergrond svg {
  display: block;
  width: 100%;
  /* Niet verder verkleinen dan leesbaar; de linkerkant valt dan buiten beeld */
  min-width: 860px;
  height: auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(5rem, 14vh, 9rem) 2rem 4rem;
}

.hero-lead {
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  color: var(--ink-soft);
  margin-top: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-status {
  margin-top: 2.5rem;
  max-width: 26rem;
  animation: reveal 0.9s ease forwards;
}

.hero-status-balk {
  height: 6px;
  background: rgba(20, 51, 47, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-status-vulling {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: var(--radius);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-status-tekst {
  margin-top: 0.7rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.hero-status-tekst strong {
  color: var(--accent);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .hero-status { animation: none; }
  .hero-status-vulling { transition: none; }
}

.hero-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.hero-strip .dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- verhaal / split ---------- */

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.split-text p { color: var(--ink-soft); }
.split-text p strong { color: var(--ink); }

/* ---------- foto's ---------- */

.photo-frame {
  position: sticky;
  top: 3rem;
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--ink-soft);
}

.photo-placeholder-label {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

.photo-placeholder-hint { font-size: 0.875rem; }

.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* Zodra images/corne.jpg bestaat, verdwijnt de placeholder automatisch */
.photo-frame.has-photo .photo-placeholder { display: none; }

.photo-frame figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ---------- eerbetoon ---------- */

.section-tribute {
  background: var(--bg-deep);
  color: #e2efeb;
}

.tribute-inner {
  max-width: 48rem;
  text-align: center;
}

.tribute-foto {
  margin: 0 auto 2rem;
  width: 240px;
  max-width: 60%;
}

.tribute-foto img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 22px 50px -26px rgba(0, 0, 0, 0.7);
}

.section-tribute .eyebrow { color: #6ec2b1; }

.tribute-name {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-left: auto;
  margin-right: auto;
}

.tribute-text {
  color: #b8cfc9;
  font-size: 1.125rem;
  max-width: 34rem;
  margin: 0 auto;
}

.tribute-quote {
  margin: 2.5rem auto 0;
  max-width: 32rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(226, 239, 235, 0.22);
}

.tribute-quote p {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 300;
  line-height: 1.45;
  color: #fff;
}

.tribute-quote p::before { content: "\201C"; }
.tribute-quote p::after { content: "\201D"; }

.tribute-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6ec2b1;
}

/* ---------- verhaal in eigen woorden ---------- */

.eigen-woorden {
  margin-top: 2rem;
  padding-left: 1.75rem;
  border-left: 3px solid var(--accent);
}

.eigen-woorden p {
  color: var(--ink-soft);
}

.eigen-woorden p + p {
  margin-top: 1.15rem;
}

.eigen-woorden-bron {
  margin-top: 1.25rem;
  padding-left: calc(1.75rem + 3px);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

/* ---------- symptomen ---------- */

.subhead {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.symptoms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.symptom-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.symptom-group ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.symptom-group li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.symptom-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 1.5px;
  background: var(--accent);
}

/* ---------- citaat in een lichte sectie ---------- */

.citaat {
  margin: 2.25rem 0;
  padding: 1.75rem 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.citaat p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.citaat p:first-of-type::before { content: "\201C"; }
.citaat p:last-of-type::after { content: "\201D"; }

.citaat cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* ---------- uitgelicht onderzoeksresultaat ---------- */

.proof {
  margin: 2.25rem 0;
  padding: 1.75rem 2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.proof-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.proof-text {
  font-size: 1rem;
  color: var(--ink-soft);
}

.proof-text strong {
  color: var(--ink);
  font-weight: 700;
}

.proof-source {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* ---------- bronvermelding ---------- */

.sources {
  margin-top: 2rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- feiten ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.fact p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- doneren ---------- */

.section-donate {
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(23, 120, 107, 0.11), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.donate-lead {
  color: var(--ink-soft);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.widget-card {
  margin: 3rem auto 0;
  max-width: 34rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2.5rem;
}

.widget-heart {
  width: 36px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.widget-text {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

/* ---------- voortgangsbalk ---------- */

.voortgang {
  margin: 0 0 1.75rem;
  text-align: left;
}

.voortgang-cijfers {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.voortgang-bedrag {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.voortgang-doel {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.voortgang-balk {
  height: 10px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
}

.voortgang-vulling {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: var(--radius);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.voortgang-meta {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .voortgang-vulling { transition: none; }
}

.btn-donate {
  display: block;
  width: 100%;
  font-size: 1rem;
  padding: 1.15rem 1.5rem;
}

.widget-status {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.widget-platform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.widget-lock {
  width: 15px;
  flex-shrink: 0;
  color: var(--accent);
}

/* ---------- steunbetuigingen bij donaties ---------- */

.steunbetuigingen {
  max-width: 34rem;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.steunbetuigingen-titel {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.steunbetuigingen ul {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.steunbetuigingen li {
  padding: 1.15rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steun-bericht {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}

.steun-bericht::before { content: "\201C"; }
.steun-bericht::after { content: "\201D"; }

.steun-wie {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.steun-wie strong {
  color: var(--accent);
  font-weight: 700;
}

.steunbetuigingen-bron {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
}

/* ---------- delen ---------- */

.share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* ---------- footer ---------- */

.footer {
  background: var(--bg-deep);
  color: #94aea8;
  padding: 4rem 0;
  font-size: 0.9375rem;
}

.footer-inner { max-width: 46rem; }

.footer-title {
  color: #e2efeb;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer a { color: #6ec2b1; }
.footer a:hover { color: #fff; }

.footer-contact { margin-top: 1.5rem; }

/* ---------- reveal-animaties ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.9s ease forwards;
}

.reveal-d1 { animation-delay: 0.15s; }
.reveal-d2 { animation-delay: 0.3s; }
.reveal-d3 { animation-delay: 0.45s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

.reveal-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-scroll {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */

/* Op grote schermen de typografie laten meegroeien in plaats van de
   regels langer te maken. De tekst wordt comfortabeler, het aantal
   tekens per regel blijft rond de 74. */
@media (min-width: 1500px) {
  body { font-size: 1.125rem; }

  :root { --maat-tekst: 44rem; }

  .section { padding: 7rem 0; }
}

@media (max-width: 800px) {
  .section { padding: 4rem 0; }

  .container,
  .hero-inner { padding-left: 1.5rem; padding-right: 1.5rem; }

  .split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .photo-frame { position: static; }

  .facts { grid-template-columns: 1fr; }

  .symptoms {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero { min-height: 0; }

  .hero-strip {
    flex-wrap: wrap;
    gap: 0.75rem;
    letter-spacing: 0.14em;
  }

  .widget-card { padding: 2.25rem 1.5rem; }

  .proof { padding: 1.5rem 1.25rem; }

  .share-actions .btn { width: 100%; }
}
