/* ikwilclaude.nl: gedeelde stijlen. Paginaopmaak staat inline in de HTML (uit de designs). */

:root {
  --paper: #FCFCFC;
  --paper-sunken: #F2F2F2;
  --surface: #FFFFFF;
  --ink: #24383F;
  --ink-muted: #4A5A60;
  --line: #DDE3E1;
  --brand: #17775C;
  --brand-hover: #0F5743;
  --brand-tint: #E3F2ED;
  --cta: #FEBF00;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4, summary, dt { font-family: Poppins, "Open Sans", system-ui, Arial, sans-serif; overflow-wrap: break-word; }
button, input, select, textarea, pre, code { font-family: inherit; }
img, svg { max-width: 100%; }

a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

[hidden] { display: none !important; }

/* Naar de inhoud */
.skiplink { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 12px 18px; background: var(--ink); color: #FFFFFF; border-radius: 4px; font-weight: 600; text-decoration: none; }
.skiplink:focus { top: 16px; color: #FFFFFF; }

/* Huidige pagina in het menu */
.hoofdmenu a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-hover) !important; }

/* Inklapbaar menu */
.menuknop {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .menuknop { display: inline-flex; order: 2; }
  .kop .kop-cta { order: 1; margin-left: auto; }
  .kop .hoofdmenu { display: none !important; order: 3; flex-basis: 100%; }
  .kop.open .hoofdmenu { display: flex !important; flex-direction: column; align-items: stretch !important; padding: 8px 0 4px; border-top: 1px solid var(--line); }
  .kop.open .hoofdmenu a { min-height: 52px !important; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .kop .kop-cta { display: none !important; order: 4; }
  .kop.open .kop-cta { display: inline-flex !important; flex-basis: 100%; justify-content: center; margin-left: 0; }
  .kop > div { column-gap: 12px !important; }
  .menuknop { margin-left: auto; }
}

/* Smalle telefoons: logo en menuknop op één regel */
@media (max-width: 420px) {
  .kop > div > a:first-child { gap: 10px !important; }
  .kop > div > a:first-child svg { width: 36px; height: 36px; }
  .kop > div > a:first-child > span > span:first-child { font-size: 20px !important; }
  .menuknop { width: 48px; padding: 0; justify-content: center; }
  .menuknop-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Veelgestelde vragen: eigen plus/min in plaats van het browserdriehoekje */
details > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; flex: none; font-family: Poppins, "Open Sans", Arial, sans-serif; font-weight: 600; font-size: 1.2em; line-height: 1; color: var(--brand); }
details[open] > summary::after { content: "−"; }

/* Kruimelpad: klikdoel van minimaal 24 px (WCAG 2.2) */
nav[aria-label="Kruimelpad"] a { display: inline-block; padding: 2px 0; min-height: 24px; line-height: 20px; }

/* Formulieren */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formstatus { margin: 0; font-size: 15px; }
.formstatus:empty { display: none; }
.formstatus.fout { color: #A3261B; font-weight: 600; }
.formstatus.ok { color: var(--brand-hover); font-weight: 600; }
form button[type="submit"][disabled] { opacity: .6; cursor: progress; }
input:user-invalid, select:user-invalid { border-color: #A3261B !important; }

/* Kennisbank: geen resultaten */
.geen-resultaten { margin: 0; padding: 24px 0; color: var(--ink-muted); }

/* Focusrand op donkergroene vlakken: wit in plaats van donkerblauw */
.donker :focus-visible { outline-color: #FFFFFF; }

/* Rijen in lijsten: focusrand binnen de rij, zodat hij nooit wegvalt */
.inhoud a:focus-visible { outline: 3px solid var(--ink) !important; outline-offset: -3px !important; background: var(--paper-sunken); }

/* Hero: vult het eerste scherm en komt één keer binnen bij het laden */
@media (prefers-reduced-motion: no-preference) {
  .hero > div > * { animation: hero-in .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero > div > :nth-child(2) { animation-delay: .12s; }
  @keyframes hero-in { from { opacity: 0; transform: translateY(16px); } }
}
@media (max-width: 760px) {
  .hero { min-height: 0 !important; }
  .hero .hero-beeld { max-height: 44svh; }
}

/* Footer: klikdoelen van 44 px op telefoons */
@media (max-width: 640px) {
  .voet a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Vaste adviesgesprek-knop onderin op telefoons */
.plakknop { display: none; }
@media (max-width: 640px) {
  .plakknop { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: flex; transform: translateY(140%); transition: transform .25s ease; align-items: center; justify-content: center; min-height: 52px; border-radius: 6px; background: var(--cta); color: var(--ink); font-family: Poppins, "Open Sans", Arial, sans-serif; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(36, 56, 63, .25); }
  .plakknop:hover { color: var(--ink); }
  .plakknop.zichtbaar, .plakknop:focus { transform: none; }
  body { padding-bottom: 76px; }
}
