/* I ate a bug - stijl naar het voorbeeld van het WordPress-thema Twenty Seventeen (groen kleurenschema) */

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/libre-franklin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/libre-franklin-var-italic.woff2") format("woff2");
}

:root {
  --kop: #1E3211;        /* titels, knoppen, links */
  --tekst: #30471F;      /* lopende tekst */
  --accent: #5E9933;     /* groene koptekst in de inhoud */
  --accent-donker: #4A7D27;
  --icoon: #6CB03B;      /* sociale knoppen */
  --lijn: #DBEECD;       /* scheiding tussen de panelen */
  --lijn-licht: #ECF6E4; /* bovenrand voettekst */
  --veldrand: #A6D489;
  --fout: #B3261E;
  --wit: #FFFFFF;
}

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

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

body {
  margin: 0;
  background: var(--wit);
  color: var(--tekst);
  font-family: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.66;
}
button, input, textarea { font: inherit; color: inherit; }

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 1.5em; }
strong { font-weight: 700; }

a { color: var(--kop); text-decoration: none; }
.paneel__tekst a,
.tekstpagina a,
.voet a {
  box-shadow: inset 0 -1px 0 currentColor;
  transition: box-shadow 130ms ease-in-out, color 130ms ease-in-out;
}
.paneel__tekst a:hover,
.tekstpagina a:hover,
.voet a:hover {
  color: var(--accent-donker);
  box-shadow: inset 0 0 0 transparent, 0 3px 0 currentColor;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2em;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skiplink {
  position: absolute;
  left: 1em;
  top: -10em;
  z-index: 100;
  padding: 0.8em 1.2em;
  background: var(--wit);
  color: var(--kop);
  font-weight: 800;
  border-radius: 2px;
  box-shadow: 0 0 0 2px var(--kop);
}
.skiplink:focus { top: 1em; }

/* ---------- Kop met grote foto ---------- */

.kop {
  position: relative;
  height: 75vh;
  min-height: 300px;
  overflow: hidden;
  background: var(--kop);
  color: var(--wit);
}
.kop__foto,
.kop__foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.kop__foto img { object-fit: cover; object-position: 50% 50%; }
.kop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3) 100%);
}
.kop__tekst {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding-bottom: 1em;
}
.kop__merk {
  display: flex;
  align-items: center;
  gap: 1em;
}
.kop__logo {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.kop__merk a { color: inherit; line-height: 0; }
.kop__titel {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kop__ondertitel {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.8;
}
.kop__verder {
  position: absolute;
  right: 2em;
  bottom: 1em;
  display: block;
  padding: 0.5em;
  margin-right: -0.5em;
  color: var(--wit);
  line-height: 0;
}
.kop__verder svg { width: 16px; height: 16px; }
.kop__verder:hover { opacity: 0.8; }

/* ---------- Panelen ---------- */

.paneel + .paneel { border-top: 1px solid var(--lijn); }
.paneel__binnen { padding-top: 3.5em; padding-bottom: 0.5em; }
.paneel__binnen::after { content: ""; display: table; clear: both; }

.paneel__kop {
  margin: 0 0 1.5em;
  color: var(--kop);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.paneel__tekst ul {
  margin: 0 0 1.5em;
  padding-left: 1.2em;
}
.paneel__tekst li { margin: 0; }
/* Op het menu */
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.2em;
  padding: 0 !important;
  list-style: none;
}
.menu li {
  color: var(--accent);
  font-size: 1.625rem;
  font-weight: 300;
  line-height: 1.4;
}

/* Vergelijking koe en krekel */
.vergelijking {
  width: 100%;
  margin: 0 0 1.5em;
  border-collapse: collapse;
  font-size: 0.9375em;
}
.vergelijking th,
.vergelijking td {
  padding: 0.45em 1em 0.45em 0;
  text-align: left;
  vertical-align: top;
}
.vergelijking thead th {
  border-bottom: 2px solid var(--veldrand);
  color: var(--kop);
  font-weight: 800;
}
.vergelijking tbody tr { border-bottom: 1px solid var(--lijn); }
.vergelijking tbody th { font-weight: 400; }
.vergelijking td { white-space: nowrap; }
.vergelijking td:last-child { color: var(--accent-donker); font-weight: 700; }

/* Veelgestelde vragen */
.vragen h3 {
  margin: 0 0 0.25em;
  color: var(--kop);
  font-size: 1em;
  font-weight: 800;
}
.vragen p { margin-bottom: 1.25em; }

.nieuws__titel {
  margin: 0 0 0.75em;
  color: var(--accent);
  font-size: 1.625rem;
  font-weight: 300;
  line-height: 1.4;
}
.nieuws__foto { margin: 0 0 1.5em; }
.nieuws__foto figcaption {
  margin-top: 0.5em;
  color: var(--accent-donker);
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.5;
}
@media (min-width: 30em) {
  .nieuws__foto {
    float: right;
    width: 300px;
    margin: 0.2em 0 1.5em 1.5em;
  }
}

/* Foto over de volle breedte, op grote schermen met parallax zoals op de oude site */
.paneel-foto {
  position: relative;
  height: 0;
  padding-top: 60%;
  border-top: 1px solid var(--lijn);
  background: #3d5a2a url("../img/handen-1000.jpg") center center / cover no-repeat;
}
.paneel-foto::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.3) 100%);
}

/* ---------- Formulier ---------- */

.formulier { margin-top: 0.5em; }
.veld { margin: 0 0 1.5em; }
.veld label {
  display: block;
  margin-bottom: 0.5em;
  color: var(--tekst);
  font-weight: 800;
}
.veld input,
.veld textarea {
  display: block;
  width: 100%;
  padding: 0.7em;
  border: 1px solid var(--veldrand);
  border-radius: 3px;
  background: var(--wit);
  color: var(--tekst);
  line-height: 1.5;
}
.veld textarea { resize: vertical; min-height: 8em; }
.veld input:focus,
.veld textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.veld [aria-invalid="true"] { border-color: var(--fout); }
.veld__fout {
  display: block;
  margin-top: 0.4em;
  color: var(--fout);
  font-size: 0.875em;
  font-weight: 600;
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.spamcontrole { margin: 0 0 1.5em; }
.spamcontrole altcha-widget {
  --altcha-border-width: 1px;
  --altcha-border-radius: 3px;
  --altcha-color-border: var(--veldrand);
  --altcha-color-text: var(--tekst);
  --altcha-color-base: var(--wit);
  --altcha-color-border-focus: var(--accent);
  --altcha-color-error-text: var(--fout);
  --altcha-max-width: 100%;
  display: block;
}
#altcha-plek:empty { min-height: 58px; }

.privacynoot { font-size: 0.875em; }

.melding {
  margin: 0 0 1.5em;
  padding: 0.8em 1em;
  border-left: 3px solid var(--fout);
  background: #FBEEEC;
  color: #5C130F;
}
.melding a { color: inherit; }

.knop {
  display: inline-block;
  padding: 1em 2em;
  border: 0;
  border-radius: 2px;
  background: var(--kop);
  color: var(--wit);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms ease;
}
.knop:hover,
.knop:focus-visible { background: var(--accent-donker); }
.knop:disabled { opacity: 0.7; cursor: progress; }

.bedankt {
  margin: 0.5em 0 1.5em;
  padding: 1.2em 1.4em;
  border-left: 3px solid var(--accent);
  background: #F3F9EE;
}
.bedankt p:last-child { margin-bottom: 0; }
.bedankt:focus { outline: none; }

/* ---------- Voettekst ---------- */

.voet {
  margin-top: 3em;
  border-top: 1px solid var(--lijn-licht);
  font-size: 0.875rem;
}
.voet .wrap { padding-top: 2em; padding-bottom: 1.5em; }
.voet__kolommen { padding-bottom: 1em; }
.voet__kolom { padding-bottom: 1em; }

.sociaal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1em;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}
.voet .sociaal a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.5em;
  border-radius: 40px;
  background: var(--icoon);
  color: var(--wit);
  box-shadow: none;
  transition: background 200ms ease;
}
.voet .sociaal a:hover,
.voet .sociaal a:focus-visible { background: var(--kop); color: var(--wit); box-shadow: none; }
.sociaal svg { width: 16px; height: 16px; fill: currentColor; }
.voet__info { margin: 0 0 1em; }

/* ---------- Tekstpagina (privacy) ---------- */

.kop--klein { height: 40vh; min-height: 220px; max-height: 420px; }
.kop--klein .kop__titel a { color: inherit; }
.kop--klein .kop__logo { width: 72px; height: 72px; }
.tekstpagina { padding-top: 3.5em; }
.tekstpagina h1 {
  margin: 0 0 1.5em;
  color: var(--kop);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tekstpagina h2 {
  margin: 2em 0 0.5em;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.4;
}
.tekstpagina ul { margin: 0 0 1.5em; padding-left: 1.2em; }
.bijgewerkt { font-size: 0.875em; font-style: italic; }

/* ---------- Grotere schermen ---------- */

@media (min-width: 30em) {
  body { font-size: 1.125rem; }
  .kop__titel { font-size: 1.875rem; }
  .kop__logo { width: 112px; height: 112px; }
  .kop__ondertitel { font-size: 1rem; }
}

@media (min-width: 48em) {
  body { font-size: 1rem; line-height: 1.5; }

  .wrap { max-width: 1000px; padding: 0 3em; }

  .kop { height: 100vh; }
  .kop--klein { height: 50vh; max-height: 480px; }
  .kop--klein .kop__logo { width: 110px; height: 110px; }
  .kop__tekst { padding-bottom: 3em; }
  .kop__titel { font-size: 2.25rem; }
  .kop__logo { width: 150px; height: 150px; }
  .kop__merk { gap: 1.5em; }
  .kop__verder { right: 3em; bottom: 3em; }

  .paneel__binnen { padding-top: 6em; padding-bottom: 4.5em; }
  .paneel__kop { float: left; width: 36%; margin-bottom: 4.5em; }
  .paneel__tekst { float: right; width: 58%; }

  .paneel-foto {
    height: 100vh;
    max-height: 1200px;
    padding-top: 0;
    background-image: url("../img/handen-2000.jpg");
  }

  .voet .wrap { padding-top: 2em; }
  .voet__kolommen {
    display: flex;
    justify-content: space-between;
    padding-bottom: 2em;
  }
  .voet__kolom { padding-bottom: 3em; }
  .voet__kolom:first-child { width: 36%; }
  .voet__kolom:last-child { width: 58%; }
  .voet__kolom p:last-child { margin-bottom: 0; }
  .voet__onder { display: flex; justify-content: space-between; align-items: flex-start; }
  .sociaal { width: 36%; margin-bottom: 0; }
  .voet__info { width: 58%; padding-top: 0.7em; }

  .tekstpagina { padding-top: 6em; max-width: 740px; }
}

/* Parallax alleen op toestellen met muis (op tablets en gsm's werkt dat slecht) */
@media (min-width: 48em) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .paneel-foto { background-attachment: fixed; }
}

@media (min-width: 48em) and (max-resolution: 1.5dppx) and (max-width: 66em) {
  .paneel-foto { background-image: url("../img/handen-1000.jpg"); }
}

@media print {
  .kop { height: auto; color: var(--kop); background: none; }
  .kop__foto, .kop::before, .kop__verder, .paneel-foto, .formulier, .sociaal { display: none; }
  .kop__tekst { position: static; }
}
