*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  height: 100%;
}

#home,
#overons,
#tarieven,
#contact {
  scroll-margin-top: 250px;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #f9f9f9;
  color: #2a2a2a;
  height: 100%;
}

img,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2),
    0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}

iframe {
  width: 100%;
  margin: 1rem auto;
  aspect-ratio: 16 / 9;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 0.5rem;
  text-wrap: balance;
  font-weight: 500;
}

h1 {
  font-size: 2.25rem;
  font-weight: 600;
}

h2 {
  font-size: 1.5em;
  color: #1a1a1a;
}

section h2 {
  color: #3e7569;
}

h3 {
  font-size: 1em;
  margin-bottom: 1.5rem;
}

h4 {
  font-size: 1.15em;
}

p,
a {
  padding: 0.5rem 0.5rem 1rem 0;
  text-wrap: balance;
}

header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 2px solid rgba(53, 47, 24, 0.8);
}

header,
footer,
#hoofd-titel h2 {
  background-color: #56a392;
  color: #f7f5ed;
}

#hoofd-titel,
footer {
  padding: 2rem;
  text-align: center;
}
#hoofd-titel h2 {
  font-size: 1.25rem;
  padding: 0;
}

footer {
  border-top: 2px solid rgba(53, 47, 24, 0.8);
}

nav ul {
  display: flex;
  list-style: none;
  background-color: rgba(0 0 0 / 12%);
}

nav ul li {
  padding: 0.75rem 1.25rem;
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

li a,
a {
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3rem;
  transition: all 200ms ease-in-out;
  color: #f7f5ed;
}
a {
  color: #3e7569;
  font-weight: 500;
  word-break: break-all;
}

a:hover,
a:focus {
  color: #3e7569;
  text-decoration-color: #3e7569;
}

li a:hover,
li a:focus,
li a.nav-active {
  color: #f0f0f0;
  text-decoration-color: #f3f3f3;
}

main {
  flex-grow: 1;
  display: flex;
  margin: 0 auto;
  width: min(100%, 1280px);
  border-left: 1px solid rgba(53, 47, 24, 0.8);
  border-right: 1px solid rgba(53, 47, 24, 0.8);
}

aside {
  width: min(33%, 450px);
  padding: 1.5rem 0.75rem;
  background-color: rgba(225, 208, 208, 0.6);
}

aside img {
  max-height: 250px;
  margin-inline: auto;
  margin-block: 1.5rem;
}

aside address {
  width: 100%;
  margin: 0.5rem 0 1.5rem;
}

img.portrait-img,
.profiel-foto {
  max-height: 420px;
  object-fit: contain;
}

section {
  width: min(66%, 800px);
  height: 100%;
  padding: 1.5rem 0.75rem;
}

section#voorwaarden h4 {
  display: inline-block;
  margin-bottom: 0.75rem;
  margin-right: 0.75rem;
}

section#voorwaarden span {
  font-size: 1.1rem;
}

article {
  padding-bottom: 1rem;
}

article img {
  max-height: 460px;
  margin-bottom: 1.25rem;
}

article .profiel-foto {
  float: right;
  margin: 0 0 0.75rem 0.75rem;
  border: 1px solid rgba(53, 47, 24, 0.8);
  border-radius: 6px;
  max-width: 275px;
}

/* selecteerd elke even profiel foto  */

article:nth-child(even) .profiel-foto {
  float: left;
  margin: 0 1rem 1rem 0;
}

hr {
  width: 98%;
  margin: auto;
  height: 2px;
  border: 0;
  border-radius: 24px;
  background-color: hsl(167, 31%, 35%, 0.3);
}

label {
  display: block;
  margin: 0.25rem 0 0;
}

input,
select,
textarea {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0.25rem 0 0.75rem;
  padding: 0.5rem;
  width: 100%;
  border: 1px solid #3e7569;
  border-radius: 6px;
  outline: 1px solid transparent;
  outline-offset: 3px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #56a392;
  outline-color: #56a392;
}

/* target submit */
input[type="submit"] {
  max-width: 150px;
  font-size: 1.1rem;
  background-color: #3e7569;
  color: #f0f0f0;
  border: 1px solid #3e7569;
  border-radius: 6px;
  cursor: pointer;
  transition: all 200ms ease-in-out;
  outline: 1px solid transparent;
  outline-offset: 3px;
}

input[type="submit"]:hover,
input[type="submit"]:focus {
  outline-color: #56a392;

  background-color: #56a392;
  border-color: #56a392;
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  #home,
  #overons,
  #tarieven,
  #contact {
    scroll-margin-top: 350px;
  }

  body {
    height: auto;
  }

  #hoofd-titel,
  footer {
    padding: 1rem;
  }
  #hoofd-titel h2 {
    font-size: 1rem;
  }

  nav ul {
    flex-direction: column;
  }
  h1 {
    font-size: 1.75rem;
  }
  nav ul li {
    padding: 0.675rem 0.925rem;
    font-size: 1.1rem;
  }
  main {
    flex-direction: column;
  }
  aside {
    width: 100%;
  }
  section {
    width: 100%;
  }

  article .profiel-foto {
    max-width: 150px;
  }

  img.portrait-img {
    max-height: 350px;
  }
}
