/* Vertaol huisstijl v2. Tokens uit het design system. */
:root {
  --zeildoek: #F4EFE6;
  --kaart: #FFFDF9;
  --kaart-tint: #FBF8F1;
  --inkt: #10232E;
  --steen: #4A5B66;
  --bijschrift: #566671;
  --lijn: #E3DACB;
  --teal: #185E73;
  --teal-donker: #124B5C;
  --ondiep: #E6EFF1;
  --roest: #A34A24;
  --geel: #F2C14E;
  --geel-tint: #FBF2D9;
  --display: "Fredoka", "Instrument Sans", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-groot: 16px;
  --schaduw: 0 1px 2px rgba(16, 35, 46, 0.06), 0 16px 40px rgba(16, 35, 46, 0.06);
  --gutter: clamp(16px, 6vw, 96px);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--inkt);
  background: var(--zeildoek);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); }
a:hover { color: var(--teal-donker); }

button { font-family: inherit; }

.visueel-verborgen {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.omslag { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 var(--gutter); }

/* Kop */
.site-header { position: relative; }
.site-header .omslag { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }

.merk { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--inkt); }
.merk .logo { height: 34px; width: auto; display: block; }
.logo-voet { height: 30px; width: auto; }
.beta {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--roest); border: 1px solid var(--roest); border-radius: 999px; padding: 3px 8px; line-height: 1;
}

.site-nav { display: none; align-items: center; gap: 32px; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--inkt); }
.site-nav a:hover { color: var(--teal); }
.menu-knop {
  width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--inkt);
}
.site-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: 0; right: 0; top: 100%; background: var(--kaart); border-top: 1px solid var(--lijn); border-bottom: 1px solid var(--lijn); z-index: 10; }
.site-nav.open a { padding: 14px var(--gutter); }

/* Held en vertaler */
.held { padding-top: 24px; }
.held h1 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(34px, 5vw, 60px); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; max-width: 900px; text-wrap: balance; }
.held .intro { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--steen); max-width: 680px; }

.vertaler {
  margin-top: 24px; background: var(--kaart); border: 1px solid var(--lijn); border-radius: 20px; box-shadow: var(--schaduw); overflow: hidden;
}

.taalbalk {
  display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center;
  min-height: 56px; padding: 6px; border-bottom: 1px solid var(--lijn);
}
.taal { text-align: center; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.taal-doel { color: var(--teal); }
.taal-doel::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--teal); }
.wissel {
  width: 44px; height: 44px; margin: 0 auto; border-radius: 10px; border: 0; background: var(--zeildoek); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--inkt);
  transition: transform 0.25s ease;
}
.wissel:hover { background: var(--ondiep); }
.wissel.gedraaid svg { transform: rotate(180deg); }
.wissel svg { transition: transform 0.25s ease; }

.panelen { display: grid; grid-template-columns: 1fr; }
.paneel { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.paneel-bron { border-bottom: 1px solid var(--lijn); }
.paneel-doel { background: var(--kaart-tint); }
.paneel-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bijschrift); }
.paneel-kop .doel { color: var(--teal); }
.paneel-kop .bijschrift { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 12px; }

textarea#bron {
  width: 100%; min-height: 132px; border: 0; padding: 0; resize: none; background: transparent; outline: none;
  font-family: var(--sans); font-size: 17px; line-height: 1.5; color: var(--inkt);
}
textarea#bron::placeholder { color: var(--bijschrift); }

.uitvoer {
  min-height: 132px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere;
  font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--inkt);
}
.uitvoer.nederlands { font-family: var(--sans); font-size: 17px; line-height: 1.5; }
.uitvoer.leeg { color: var(--bijschrift); font-family: var(--sans); font-size: 16px; }
.uitvoer .cursor { display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--teal); vertical-align: -0.15em; animation: knipper 1s steps(2) infinite; }
@keyframes knipper { to { visibility: hidden; } }

.paneel-voet { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.teller { font-size: 13px; color: var(--bijschrift); }
.knoppen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.knoppen-doel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }

.knop-primair {
  height: 48px; padding: 0 24px; border-radius: var(--radius); border: 0; background: var(--teal); color: var(--kaart);
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.knop-primair:hover { background: var(--teal-donker); }
.knop-primair:disabled { opacity: 0.55; cursor: default; }
.knop-rand {
  height: 44px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--lijn); background: var(--kaart); color: var(--inkt);
  font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.knop-rand:hover { border-color: var(--teal); }
.knop-rand:disabled, .knop-tekst:disabled { opacity: 0.45; cursor: default; }
.knop-tekst {
  height: 44px; padding: 0 12px; border-radius: var(--radius); border: 0; background: transparent; color: var(--bijschrift);
  font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.knop-tekst.accent, .knop-rand.accent { color: var(--teal); font-weight: 600; }
/* Links die eruitzien als knop. Geen style-attributen in de HTML: de CSP staat ze niet toe. */
a.knop-primair, a.knop-rand { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.knop-primair:hover { color: var(--kaart); }
.steun-blok a.knop-primair:hover { color: var(--teal); }
.sheet-stapel { display: flex; flex-direction: column; gap: 14px; }
.sheet-veld { display: flex; flex-direction: column; gap: 6px; }
.knop-tekst:hover { background: var(--ondiep); }
.knop-rand svg, .knop-tekst svg { flex: none; }
.lang { display: none; }

.melding { margin: 0; min-height: 20px; font-size: 14px; color: var(--roest); }
.melding.ok { color: var(--teal); }

/* Chips */
.chips { margin-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chips > span { font-size: 14px; color: var(--steen); margin-right: 4px; }
.chip {
  height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--lijn); background: var(--kaart); color: var(--inkt);
  font-size: 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.chip:hover { border-color: var(--geel); background: var(--geel-tint); }
.chip .punt { color: var(--bijschrift); }
.chip .chip-ur { font-family: var(--serif); font-style: italic; color: var(--teal); }

/* Secties */
.sectie { margin-top: 72px; }
.sectie h2 { margin: 0 0 24px; font-family: var(--display); font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.005em; text-wrap: balance; }
.kaarten { display: grid; grid-template-columns: 1fr; gap: 16px; }
.kaart { background: var(--kaart); border: 1px solid var(--lijn); border-radius: var(--radius-groot); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.kaart .nummer { font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1; color: var(--teal); }
.kaart h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.kaart p { margin: 0; color: var(--steen); }

.help { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.help p { margin: 0 0 14px; color: var(--steen); font-size: 17px; }
.help p:last-child { margin-bottom: 0; }
.voorbeeld .label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bijschrift); }
.voorbeeld .rij { display: flex; flex-direction: column; gap: 4px; }
.voorbeeld .rij span:first-child { font-size: 14px; color: var(--bijschrift); }
.voorbeeld .oud { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--steen); text-decoration: line-through; text-decoration-color: var(--roest); }
.voorbeeld .nieuw { font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.voorbeeld .noot { font-size: 14px; color: var(--bijschrift); border-top: 1px solid var(--lijn); padding-top: 12px; }

/* Voet */
.site-footer { margin-top: 72px; padding: 32px 0 40px; border-top: 1px solid var(--lijn); }
.site-footer .omslag { display: flex; flex-direction: column; gap: 20px; }
.site-footer p { margin: 8px 0 0; font-size: 15px; color: var(--steen); max-width: 620px; }
.voet-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.voet-nav a { text-decoration: none; color: var(--inkt); }

/* Verbeter-sheet */
.sheet { border: 0; padding: 0; background: transparent; max-width: none; width: 100%; }
.sheet::backdrop { background: rgba(16, 35, 46, 0.5); }
.sheet[open] { position: fixed; inset: auto 0 0 0; margin: 0; max-height: 92vh; overflow: auto; }
.sheet-inhoud {
  background: var(--kaart); border-radius: 24px 24px 0 0; padding: 12px 20px 24px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 -8px 32px rgba(16, 35, 46, 0.18); padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.greep { width: 40px; height: 4px; border-radius: 999px; background: var(--lijn); align-self: center; }
.sheet h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.2; }
.sheet .uitleg { margin: 0; font-size: 15px; color: var(--steen); }
.sheet .blok { background: var(--zeildoek); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.sheet .blok .label, .sheet label.label, .sheet legend { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bijschrift); padding: 0; }
.sheet .blok p { margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.4; color: var(--steen); white-space: pre-wrap; }
.sheet label.label.doel { color: var(--teal); }
.sheet textarea {
  width: 100%; min-height: 96px; border: 1.5px solid var(--teal); border-radius: var(--radius); padding: 12px 14px; resize: vertical; background: var(--kaart);
  font-family: var(--serif); font-size: 17px; line-height: 1.4; color: var(--inkt); outline: none;
}
.sheet textarea.nederlands { font-family: var(--sans); font-size: 16px; }
.sheet fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.categorie { display: flex; gap: 8px; flex-wrap: wrap; }
.categorie button {
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--lijn); background: var(--kaart); font-size: 14px; color: var(--inkt); cursor: pointer;
}
.categorie button[aria-pressed="true"] { border-color: var(--teal); background: var(--ondiep); color: var(--teal); font-weight: 600; }
.sheet .privacy { margin: 0; font-size: 13px; color: var(--bijschrift); }
.sheet .knop-primair { width: 100%; height: 52px; font-size: 17px; }
.sheet .annuleer { width: 100%; }
.sheet .dank { display: none; flex-direction: column; gap: 14px; }
.sheet.klaar form { display: none; }
.sheet.klaar .dank { display: flex; }

/* Steun (sectie op de voorpagina) */
.steun-blok { background: var(--teal); color: var(--kaart); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.steun-blok h2 { margin: 0; color: var(--kaart); }
.steun-blok p { margin: 0; font-size: 17px; color: var(--ondiep); max-width: 640px; }
.steun-blok .knoppen { margin-top: 6px; }
.steun-blok .knop-primair { background: var(--kaart); color: var(--teal); }
.steun-blok .knop-primair:hover { background: var(--zeildoek); }
.steun-blok .knop-tekst { color: var(--kaart); }
.steun-blok .knop-tekst:hover { background: var(--teal-donker); }

/* Toestemming voor meten: een balk onderin, geen muur voor de site. Akkoord en Liever niet even groot. */
.meldbalk {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  max-width: 560px; margin: 0 auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
  background: var(--kaart); border: 1px solid var(--lijn); border-radius: var(--radius-groot); box-shadow: 0 8px 32px rgba(16, 35, 46, 0.16);
}
.meldbalk[hidden] { display: none; }
.meldbalk p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--inkt); }
.meldbalk .knoppen { flex-wrap: nowrap; }
.meldbalk .knoppen button { flex: 1 1 0; height: 44px; padding: 0 12px; font-size: 15px; }

/* Urker vlag: altijd de foto, nooit nagetekend, nooit op teal of achter tekst */
.vlag-groot { margin: 0 0 16px; width: 150px; }
.vlag-groot img, .vlag-over img { display: block; width: 100%; height: auto; }
.vlag-over { float: right; width: 132px; margin: 4px 0 12px 20px; }
.site-footer .maker { display: flex; align-items: flex-start; gap: 12px; }
.vlag-klein { flex: none; width: 48px; height: auto; margin-top: 2px; }

/* Steunpagina */
.steunpagina { padding-top: 24px; }
.steunpagina .held { max-width: 760px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--geel); transform: rotate(-8deg); }
.steunpagina .held h1 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(34px, 5vw, 56px); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.steunpagina .held p { margin: 0 0 14px; font-size: 17px; line-height: 1.55; color: var(--steen); }
.steunpagina .held p.intro { font-size: clamp(18px, 1.5vw, 21px); color: var(--inkt); }
.steunpagina .held p:last-child { margin-bottom: 0; }
.steunkaarten { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
.steunkaart { background: var(--kaart); border: 1px solid var(--lijn); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--schaduw); }
.steunkaart h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.2; }
.steunkaart .bedrag { font-family: var(--display); font-size: 42px; font-weight: 600; line-height: 1; color: var(--teal); letter-spacing: -0.01em; }
.steunkaart .bedrag small { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--steen); letter-spacing: 0; margin-left: 4px; }
.steunkaart p { margin: 0; color: var(--steen); }
.steunkaart .knop-primair { width: 100%; }
.steunkaart .knop-rand { width: 100%; height: 48px; font-size: 15px; }
.steunkaart .noot { font-size: 14px; color: var(--bijschrift); }
.bedragen { display: flex; gap: 8px; flex-wrap: wrap; }
.bedragen button { height: 44px; min-width: 68px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--lijn); background: var(--kaart); color: var(--inkt); font-size: 16px; font-weight: 600; cursor: pointer; }
.bedragen button:hover { border-color: var(--geel); background: var(--geel-tint); }
.bedragen button[aria-pressed="true"] { border-color: var(--teal); background: var(--ondiep); color: var(--teal); }
.anders { display: flex; align-items: center; gap: 10px; }
.anders label { font-size: 14px; color: var(--bijschrift); }
.anders .veld { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--lijn); border-radius: var(--radius); background: var(--kaart); padding: 0 12px; gap: 6px; }
.anders .veld:focus-within { border-color: var(--teal); }
.anders input { width: 72px; border: 0; outline: none; background: transparent; font: inherit; font-size: 17px; font-weight: 600; color: var(--inkt); }
.anders input::-webkit-outer-spin-button, .anders input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.anders input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.stand { display: none; margin-top: 20px; padding: 14px 18px; border-radius: var(--radius); background: var(--geel-tint); border: 1px solid #ECDCA7; font-size: 15px; color: var(--inkt); }
.stand.zichtbaar { display: block; }
.stand strong { font-family: var(--display); font-weight: 600; font-size: 19px; }
.waarheen { display: grid; grid-template-columns: 1fr; gap: 16px; }
.waarheen .kaart .nummer { font-size: 28px; }
.vragen { margin: 0; }
.vragen dt { font-weight: 600; font-size: 17px; margin-top: 22px; }
.vragen dd { margin: 6px 0 0; color: var(--steen); font-size: 17px; }
.vragen dt:first-child { margin-top: 0; }

/* Bedankpagina */
.bedankt { max-width: 640px; padding-top: 48px; text-align: center; margin-left: auto; margin-right: auto; }
.bedankt .tegel { width: 84px; height: 84px; margin: 0 auto 24px; display: block; transform: rotate(-4deg); }
.bedankt h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 56px); font-weight: 600; line-height: 1.08; margin: 0 0 12px; }
.bedankt p { font-size: 18px; color: var(--steen); margin: 0 0 12px; }
.bedankt .groet { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--inkt); margin: 20px 0 32px; }
.bedankt .knoppen { justify-content: center; }

/* Over-pagina */
.tekstpagina { max-width: 720px; padding-top: 24px; }
.tekstpagina h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 16px; }
.tekstpagina h2 { font-family: var(--display); font-size: 28px; font-weight: 600; margin: 40px 0 12px; }
.tekstpagina p, .tekstpagina li { color: var(--steen); font-size: 17px; }
.tekstpagina .intro { font-size: 20px; }

@media (min-width: 760px) {
  .site-header .omslag { min-height: 88px; }
  .site-nav { display: flex; }
  .menu-knop { display: none; }
  .merk .logo { height: 40px; }
  .beta { font-size: 12px; padding: 4px 9px; }
  .held { padding-top: 48px; }
  .vertaler { margin-top: 40px; }
  .taalbalk { min-height: 64px; padding: 0 28px; }
  .taal { justify-content: flex-start; }
  .taal-doel { justify-content: flex-end; }
  .panelen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paneel { padding: 28px; gap: 20px; }
  .paneel-bron { border-bottom: 0; border-right: 1px solid var(--lijn); }
  textarea#bron { font-size: 20px; min-height: 200px; }
  .uitvoer { font-size: 27px; min-height: 200px; }
  .uitvoer.nederlands { font-size: 20px; }
  .knoppen-doel { display: flex; width: auto; justify-content: flex-end; margin-top: auto; }
  .knoppen-doel .accent { border: 0; background: transparent; padding: 0 12px; }
  .knoppen-doel .accent:hover { background: var(--ondiep); }
  .paneel-doel .melding:empty { display: none; }
  .kort { display: none; }
  .lang { display: inline; }
  .chips { margin-top: 20px; }
  .chip { height: 40px; font-size: 15px; }
  .sectie { margin-top: 104px; }
  .kaarten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .kaart { padding: 28px; }
  .help { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
  .steun-blok { padding: 40px 48px; flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
  .steun-blok .knoppen { margin-top: 0; flex: none; }
  .steunpagina { padding-top: 48px; }
  .steunpagina .held-vlag { max-width: none; display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); align-items: center; gap: 48px; }
  .steunpagina .held-vlag .vlag-groot { order: 2; width: 100%; max-width: 360px; margin: 0 0 0 auto; }
  .vlag-over { width: 200px; margin-left: 28px; }
  .steunkaarten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
  .steunkaart { padding: 28px; }
  .waarheen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .site-footer { margin-top: 96px; padding: 40px 0 56px; }
  .site-footer .omslag { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 48px; }
  .sheet[open] { inset: 0; margin: auto; max-width: 560px; max-height: 90vh; }
  .sheet-inhoud { border-radius: 20px; padding: 24px 28px 28px; }
  .greep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wissel, .wissel svg { transition: none; }
  .uitvoer .cursor { animation: none; }
}
