@import url(_font.css);

body {
  color: black;
  font-family: "Courier New", Courier, monospace;
  margin: 0 auto;
  background-color: white; /* ← werkt nu */
}

article {
  max-width: 900px;
  padding-inline: 1.2em;
  margin-inline: auto;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Jost";
  text-transform: uppercase;
  text-align: center;
  line-height: 0.9;
  color: rgb(124, 117, 113);
}

h2 {
  font-size: 3em;
  font-weight: 500;
  /* letter-spacing: 0.2ch; */
}

h3 {
  font-size: 2.2em;
  font-weight: 400;
  text-transform: unset;
}

h4 {
  font-size: 2.2em;
  font-weight: 300;
  text-transform: unset;
}

a {
  color: inherit;
  text-decoration-color: rgba(1, 1, 1, 0.259);
  text-underline-offset: 2px;
  transition: all 0.4s ease;
}

a:hover {
  /* background-color: #ffffff59; */
  background-color: rgba(88, 129, 92, 0.259);
  border-radius: 4px;
  text-decoration-color: rgb(168, 166, 166);
  transition: none;
}

img {
  max-width: 100%;
  margin: auto;
}

.title {
  width: 90vw;
  max-width: 90vw;
  display: block;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-top: 2rem; /* witruimte bovenaan – kan je aanpassen */
}

.cirkels {
  width: 85vw;
  max-width: 85vw;
  display: block;
  margin-left: 50%;
  transform: translateX(-50%);
}

.tomaten {
  width: 85vw;
  max-width: 85vw;
  display: block;
  margin-left: 50%;
  transform: translateX(-50%);
}

.rij {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.tekst {
  flex: 1;
}

.zij-afbeelding {
  width: 280px; /* pas aan naar wens */
  height: auto;
  object-fit: contain;
}

.float-afbeelding {
  float: left;
  width: 35%; /* percentage van de breedte van de tekstkolom */
  max-width: 400px;
  height: auto;
  margin: 5px 20px 10px 0;
}

section {
  clear: both;
}

section:last-of-type {
  margin-bottom: 50px; /* ruimte onder de laatste sectie */
}

/* figcaption */
figcaption {
  text-align: center;
  opacity: 0.5;
  font-size: smaller;
  font-style: italic;
}

.footer-image-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-top: -10%;
  z-index: -1; /* zodat tekst eroverheen komt */
}

.footer-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Titel container */
.titel-container {
  display: flex;
  justify-content: center; /* hele rij centreren */
  align-items: flex-start; /* origineel hoogte behouden */
  gap: 0rem; /* ruimte tussen blokken */
  padding-inline: 3rem; /* marge links en rechts */
  margin: 1rem auto 2rem auto;
  flex-wrap: nowrap; /* naast elkaar op groot scherm */
  box-sizing: border-box;
}

.titel-blok {
  display: flex;
  justify-content: center; /* afbeelding gecentreerd in blok */
  align-items: flex-start;
}

.titel-blok img {
  display: block;
  height: auto; /* originele hoogte behouden */
  width: auto; /* originele breedte behouden */
  max-width: 100%; /* voorkomt dat afbeelding uit scherm loopt */
}

/* MOBIEL / KLEIN SCHERM */
@media (max-width: 960px) {
  .titel-container {
    flex-wrap: wrap;
    padding-inline: 1rem;
    justify-content: center;
  }

  .titel-blok {
    flex: 1 1 100%; /* volledige breedte per blok */
  }

  .titel-blok:not(:first-child) {
    margin-top: -2.5rem;
  }

  .titel-blok img {
    max-width: 100%; /* past binnen blok */
    height: auto;
  }
}
