html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background-color: #faf7f3;
  color: #581908;
}

header {
  background-color: #581908;
  color: #f3ede3;
  padding: 1rem;
  font-weight: 400;
  font-size: 1.5rem
}

main {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
}

#partners {
  background-color: #f3ede3;
  color: #581908;
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

#imprint {
  background-color: #581908;
  color: #f3ede3;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

#imprint a {
  color: #f3ede3;
  text-decoration: underline;
}

.underline {
  text-decoration: underline;
}

.text-center {
  justify-self: center;
  padding-top: 3rem
}

header a {
  color: #f3ede3;
  text-decoration: none;
}

/* Title + image */
#title {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 3rem;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;

  align-items: stretch;
}

/* Left side */
#title > div:first-child {
  display: grid;
  gap: 2rem;
  align-content: center;
  align-items: center;
  text-align: center;
}

h1 {
  margin: 0;
  color: #581908;
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.25rem;
  text-decoration-line: underline;
}

#title span {
  font-size: 1.5rem;
  color: #581908;
  font-weight: 300;
}

#title p {
  margin: 0.5rem 0;
}

#imprint-content {
    display: block;
    text-align: justify;
    color:#581908;
    overflow: auto;
}

/* Right side */
figure {
  margin: 0;
  min-width: 0;

  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.75rem;

  min-height: 0;
}

figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;

  object-fit: cover;
  object-position: center;

  border-radius: 8px;
}

figcaption {
  line-height: 1.4;
  text-align: left;
  color: #581908;
}


/* Lower content */
main > div:last-child {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 2rem 3rem 3rem;
  box-sizing: border-box;
  text-align: center;
  min-height: 0;
}

main > div:last-child > div {
  margin-bottom: 2rem;
}

h2 {
  color: #581908;
}

a {
  color: #581908;
}

figcaption {
  font-size: 0.7rem;
  font-weight: lighter;
}

#construction-notice {
  font-size: 1.5rem;
  font-weight: bold;
  color: #862004;
}

#contribute span {
  font-weight: bold;
  text-align: start;
}

#partners div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

#partners img {
  width: 100%;
  max-width: 200px;
  max-height: 60px;
}

/* Smaller screens */
@media (max-width: 768px) {
  #title {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2rem;
    font-size: 1rem;
  }

  #title > div > span {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.25rem;
  }

  figure img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  main > div:last-child {
    padding-inline: 1.5rem;
  }

  #partners {
    flex-direction: column;
    gap: 1rem;
    font-size:small
  }

  #construction-notice {
    font-size: 1rem;
  }

}
   