/* ==========================================================
   Sitrino — stylesheet
   Concept: rustig, links uitgelijnd, veel lucht. Eén opvallend
   ding: het briefje met gele tape dat zichzelf afvinkt.
   ========================================================== */

:root {
  /* Kleuren uit het logo */
  --navy: #102A4B;
  --citroen: #FACC16;
  --citroen-licht: #FEF18B;
  --citroen-druk: #EDBB00;   /* hover op gele knop */
  --grond: #F6F7F9;          /* achtergrond, licht koel grijs */
  --papier: #FFFFFF;
  --lijn: #DCE1E8;
  --zacht: #4A5B73;          /* rustige tekst, contrast 6.4:1 op --grond */

  /* Lettertypes */
  --kop: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --tekst: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Pacifico", "Brush Script MT", cursive;

  /* Maten */
  --breed: 72rem;
  --goot: clamp(1rem, 4vw, 2.5rem);
  --ruimte: clamp(4rem, 9vw, 7.5rem); /* tussen secties */

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--grond);
  color: var(--navy);
  font-family: var(--tekst);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--kop);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--citroen); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--breed);
  margin-inline: auto;
  padding-inline: var(--goot);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.naar-inhoud {
  position: absolute; left: var(--goot); top: -4rem;
  background: var(--navy); color: var(--papier);
  padding: 0.6rem 1rem; border-radius: 0 0 6px 6px; z-index: 10;
}
.naar-inhoud:focus { top: 0; }

/* Nog in te vullen tekst — valt bewust op zodat je hem niet vergeet */
.invullen {
  background: var(--citroen-licht);
  outline: 1px dashed var(--navy);
  outline-offset: 1px;
  padding: 0 0.25em;
  font-weight: 600;
}

/* ---------- Knoppen ---------- */
.knop {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--kop);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.95rem 1.6rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--citroen);
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 4px 0 var(--navy);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease;
}
.knop:hover { background: var(--citroen-druk); }
.knop:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }

.knop--klein {
  font-size: 1rem;
  padding: 0.7rem 1.15rem 0.55rem;
  box-shadow: 0 3px 0 var(--navy);
}

.tekstlink {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--citroen);
  text-decoration-thickness: 3px;
}
.tekstlink:hover { text-decoration-color: var(--navy); }

/* ---------- Header ---------- */
.kop-balk { padding-block: 1.1rem; }

.kop-balk .wrap {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "logo actie"
    "menu menu";
  align-items: center;
  justify-content: space-between;
  row-gap: 0.9rem;
}

.logo { grid-area: logo; display: block; }
.logo img { height: 38px; width: auto; }

.menu { grid-area: menu; }
.menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  padding-block: 0.55rem 0.35rem;
  border-bottom: 3px solid transparent;
}
.menu a:hover { border-bottom-color: var(--citroen); }
.menu a[aria-current="page"] { border-bottom-color: var(--citroen); }

.kop-balk .knop { grid-area: actie; }

@media (min-width: 52rem) {
  .kop-balk { padding-block: 1.5rem; }
  .kop-balk .wrap {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo menu actie";
    column-gap: 2.5rem;
  }
  .logo img { height: 46px; }
  .menu ul { justify-content: flex-end; gap: 2rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.5rem, 5vw, 4rem) var(--ruimte); }

.hero .wrap {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 10.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.hero h1 .vraag { display: block; }
.hero h1 .antwoord {
  display: block;
  font-family: var(--hand);
  font-weight: 400;
  font-size: 0.86em;
  line-height: 1.35;
  margin-top: 0.05em;
  letter-spacing: 0;
}

.hero .intro {
  margin-top: 1.9rem;
  font-size: 1.2rem;
  max-width: 33ch;
}

.hero .acties {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 2rem;
}

.hero .prijsregel {
  margin-top: 1.75rem;
  color: var(--zacht);
  font-variant-numeric: tabular-nums;
}
.hero .prijsregel strong { color: var(--navy); }

@media (min-width: 60rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) 23rem;
    gap: 4rem;
  }
}

/* ---------- Het briefje (het ene opvallende element) ---------- */
.briefje {
  position: relative;
  background: var(--papier);
  padding: 2.4rem 1.6rem 1.4rem;
  border-radius: 3px;
  box-shadow:
    0 1px 0 var(--lijn),
    0 22px 40px -28px rgba(16, 42, 75, 0.45);
  transform: rotate(1.2deg);
  max-width: 25rem;
  width: 100%;
}

/* Gele tape, met gescheurde randjes zoals in het logo */
.briefje::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  width: 9rem;
  height: 30px;
  background: var(--citroen);
  transform: translateX(-50%) rotate(-2.5deg);
  clip-path: polygon(
    0% 8%, 4% 0%, 96% 4%, 100% 16%, 97% 30%, 100% 46%, 96% 62%, 100% 80%, 97% 100%,
    3% 94%, 0% 80%, 3% 64%, 0% 48%, 4% 32%, 0% 20%
  );
}

.briefje h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lijstje { list-style: none; margin: 0; padding: 0; }

.lijstje li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--lijn);
  line-height: 1.4;
}
.lijstje li:last-child { border-bottom: 0; }

.vinkje { width: 1.6rem; height: 1.6rem; margin-top: -0.05rem; }
.vinkje rect { fill: none; stroke: var(--navy); stroke-width: 2; }
.vinkje path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 26;
  stroke-dashoffset: 0;
  animation: afvinken 0.32s cubic-bezier(.5, 0, .3, 1) both;
  animation-delay: calc(0.6s + var(--i, 0) * 0.3s);
}
/* Volgorde van het afvinken (geen inline styles, zodat een strenge CSP kan) */
.lijstje li:nth-child(2) { --i: 1; }
.lijstje li:nth-child(3) { --i: 2; }
.lijstje li:nth-child(4) { --i: 3; }
.lijstje li:nth-child(5) { --i: 4; }

@keyframes afvinken {
  from { stroke-dashoffset: 26; }
  to   { stroke-dashoffset: 0; }
}

@media (min-width: 60rem) {
  .briefje { justify-self: end; padding: 2.75rem 2rem 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .vinkje path { animation: none; }
  .knop { transition: none; }
}

/* ==========================================================
   Secties (homepage en subpagina's)
   ========================================================== */
.sectie { padding-block: var(--ruimte); }
.sectie + .sectie { padding-top: 0; }
.sectie--wit {
  background: var(--papier);
  border-block: 1px solid var(--lijn);
}
.sectie--wit + .sectie,
.sectie + .sectie--wit { padding-top: var(--ruimte); }

.sectie h2 { font-size: clamp(2rem, 5.2vw, 3rem); }
.sectie h3 { font-size: 1.45rem; font-weight: 700; }

.lead {
  margin-top: 1rem;
  max-width: 40ch;
  font-size: 1.15rem;
  color: var(--zacht);
}

.tekst { max-width: 62ch; }
.tekst > * + * { margin-top: 1rem; }

.twee-kol { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) {
  .twee-kol {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 5rem;
    align-items: start;
  }
}

.meer { margin-top: 1.75rem; }

/* Herken je dit? */
.herken-kop { font-size: 1.45rem; }
.herken {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 2px solid var(--navy);
}
.herken li {
  padding: 1rem 0 1rem 1.75rem;
  border-bottom: 1px solid var(--lijn);
  position: relative;
  font-size: 1.1rem;
}
.herken li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.65rem;
  width: 0.8rem;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
}

/* Stappen (echte volgorde, dus genummerd) */
.stappen {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}
.stappen li {
  border-top: 2px solid var(--navy);
  padding-top: 1.25rem;
}
.stap-nr {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--citroen);
  font-family: var(--kop);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  padding-top: 0.2rem;
}
.stappen h3 { margin-top: 1rem; }
.stappen p { margin-top: 0.5rem; }
.stappen ul { margin: 0.75rem 0 0; padding-left: 1.2rem; }
.stappen ul li { border: 0; padding: 0.15rem 0; }

@media (min-width: 52rem) {
  .stappen--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}

/* Stappen als tijdlijn (werkwijze-pagina) */
.stappen--lijn { gap: 0; max-width: 46rem; }
.stappen--lijn > li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 1.25rem;
  border-top: 0;
  padding: 0 0 2.75rem;
  position: relative;
}
.stappen--lijn > li::before {
  content: "";
  position: absolute;
  left: calc(1.375rem - 1px);
  top: 2.75rem;
  bottom: 0;
  width: 2px;
  background: var(--lijn);
}
.stappen--lijn > li:last-child { padding-bottom: 0; }
.stappen--lijn > li:last-child::before { display: none; }
.stappen--lijn h3 { margin-top: 0.35rem; }

/* De bon: prijs uitgeschreven */
.bon {
  background: var(--papier);
  border: 1px solid var(--lijn);
  border-radius: 6px;
  padding: 0.5rem 1.5rem 1.5rem;
  font-variant-numeric: tabular-nums;
}
.sectie--wit .bon { background: var(--grond); }

.bon-regel {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 2px dashed var(--lijn);
}
.bon-bedrag {
  font-family: var(--kop);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  padding-top: 0.15rem;
}
.bon-regel strong { font-size: 1.15rem; }
.bon-regel p { margin-top: 0.25rem; color: var(--zacht); }
.bon-regel ul { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.bon-regel ul li { padding-block: 0.15rem; }

.bon-som {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}
.bon-som strong { font-family: var(--kop); font-size: 1.35rem; }
.bon-noot { margin-top: 0.5rem; font-size: 0.95rem; color: var(--zacht); }

@media (min-width: 36rem) {
  .bon { padding: 0.75rem 2rem 2rem; }
  .bon-regel { grid-template-columns: 7rem minmax(0, 1fr); }
  .bon-bedrag { font-size: 3rem; }
}

/* Wie zit erachter */
.over { display: grid; gap: 2rem; align-items: center; }
.foto-plek {
  aspect-ratio: 4 / 5;
  max-width: 18rem;
  width: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  background: var(--papier);
  border: 2px dashed var(--zacht);
  border-radius: 6px;
  color: var(--zacht);
  font-weight: 600;
}
@media (min-width: 52rem) {
  .over { grid-template-columns: 18rem minmax(0, 1fr); gap: 4rem; }
}

/* Slot-oproep */
.oproep h2 { max-width: 18ch; }
.oproep .acties { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; align-items: center; }

/* ---------- Kop van subpagina's ---------- */
.pagina-kop { padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.pagina-kop h1 { font-size: clamp(2.6rem, 8vw, 4.25rem); line-height: 1; }
.pagina-kop .lead { margin-top: 1.25rem; font-size: 1.25rem; color: var(--navy); max-width: 42ch; }

/* ---------- Beheerpagina-voorbeeld (werkwijze) ---------- */
.beheer-voorbeeld {
  background: var(--papier);
  border: 1px solid var(--lijn);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
  max-width: 28rem;
}
.beheer-balk {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--grond);
  border-bottom: 1px solid var(--lijn);
  color: var(--zacht);
  font-size: 0.85rem;
}
.beheer-balk span:first-child {
  width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--citroen);
}
.beheer-inhoud { padding: 1.25rem; display: grid; gap: 1.25rem; }
.beheer-inhoud h3 { font-size: 1.1rem; }
.beheer-veld {
  margin-top: 0.4rem;
  border: 1px solid var(--lijn);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  background: var(--grond);
}
.beheer-tijden { width: 100%; border-collapse: collapse; margin-top: 0.4rem; font-variant-numeric: tabular-nums; }
.beheer-tijden th, .beheer-tijden td { text-align: left; padding: 0.35rem 0; border-bottom: 1px solid var(--lijn); font-weight: 400; }
.beheer-tijden th { width: 5rem; font-weight: 600; }
.beheer-knop {
  justify-self: start;
  background: var(--navy);
  color: var(--papier);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}
.onderschrift { margin-top: 0.75rem; font-size: 0.9rem; color: var(--zacht); }

.vinklijst { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.vinklijst li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.75rem; }
.vinklijst svg { width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; }
.vinklijst path { fill: none; stroke: var(--navy); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Vragen (prijzen) ---------- */
.vragen { margin-top: 2rem; border-top: 2px solid var(--navy); max-width: 48rem; }
.vragen details { border-bottom: 1px solid var(--lijn); }
.vragen summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  gap: 1rem;
  align-items: center;
  padding-block: 1.15rem;
  font-family: var(--kop);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
}
.vragen summary::-webkit-details-marker { display: none; }
.vragen summary::after {
  content: "+";
  font-size: 1.6rem;
  line-height: 1;
  text-align: center;
  transition: transform 0.2s ease;
}
.vragen details[open] summary::after { transform: rotate(45deg); }
.vragen details > div { padding: 0 2.5rem 1.4rem 0; max-width: 60ch; }
.vragen details > div > * + * { margin-top: 0.75rem; }

/* ---------- Contact & formulier ---------- */
.contact-raster { display: grid; gap: 3rem; }
@media (min-width: 56rem) {
  .contact-raster { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 5rem; align-items: start; }
}

.formulier { display: grid; gap: 1.35rem; max-width: 36rem; }
.veld { display: grid; gap: 0.4rem; }
.veld label { font-weight: 600; }
.veld .optioneel { font-weight: 400; color: var(--zacht); }
.veld input,
.veld textarea {
  font: inherit;
  color: var(--navy);
  background: var(--papier);
  border: 2px solid #74839A;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.veld textarea { min-height: 8rem; resize: vertical; }
.veld input:focus-visible,
.veld textarea:focus-visible { outline: 3px solid var(--citroen); outline-offset: 0; border-color: var(--navy); }
.veld [aria-invalid="true"] { border-color: #B42318; }
.veld-fout { color: #B42318; font-weight: 600; font-size: 0.95rem; }
.veld-fout:empty { display: none; }

.formulier-noot { font-size: 0.95rem; color: var(--zacht); }
.formulier .knop { justify-self: start; }
.formulier-status {
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-weight: 600;
  background: var(--citroen-licht);
}
.formulier-status--fout { background: #FDE8E7; color: #8A1C12; }

.contact-zij { display: grid; gap: 2rem; }
.contact-zij h2 { font-size: 1.45rem; font-weight: 700; }
.contact-zij p { margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.voet {
  background: var(--navy);
  color: var(--papier);
  padding-block: 3.5rem 2rem;
  margin-top: var(--ruimte);
}
.voet a { color: var(--papier); }
.voet a:hover { text-decoration-color: var(--citroen); }
.voet :focus-visible { outline-color: var(--citroen); }
.voet .invullen { color: var(--navy); }

.voet-boven { display: grid; gap: 2.5rem; }
.voet-merk img { height: 40px; width: auto; }
.voet-merk p { margin-top: 1rem; max-width: 30ch; color: #C9D3E0; }
.voet h2 {
  font-family: var(--kop);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.voet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }

.voet-onder {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.95rem;
  color: #C9D3E0;
}

@media (min-width: 52rem) {
  .voet-boven { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
}

/* Footer zit direct onder een witte sectie: geen dubbele ruimte */
main > .sectie:last-child { padding-bottom: 0; }
.hero + .sectie { padding-top: 0; }
.pagina-kop + .sectie { padding-top: 0; }

/* Tijdlijn: nummer links, alle tekst in de rechterkolom */
.stappen--lijn .stap-nr { grid-row: 1; grid-column: 1; }
.stappen--lijn > li > :not(.stap-nr) { grid-column: 2; }

/* Footer: linkgroepen naast elkaar op telefoon */
@media (min-width: 22rem) and (max-width: 51.99rem) {
  .voet-boven { grid-template-columns: 1fr 1fr; }
  .voet-merk { grid-column: 1 / -1; }
}
.stappen--lijn h3 { margin-top: 0; align-self: center; }
.stappen--lijn h3 + * { margin-top: 0.4rem; }

/* Echte foto (vervangt .foto-plek zodra er een foto is) */
.foto {
  aspect-ratio: 4 / 5;
  max-width: 18rem;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

.figuur { margin: 0; }
