/* ==========================================================================
   Wir gemeinsam
   Hero, eyebrows and titles reuse the concept page styles.
   ========================================================================== */

/* Sections */

.together-section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  background: #ffffff;
}

.together-section:nth-of-type(odd) {
  background: #eff7f5;
}

.together-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  width: min(100% - 3rem, 1240px);
  margin-inline: auto;
}

.together-section--reversed .together-section__content {
  order: 2;
}

.together-section--text-only .together-section__inner {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.together-section__title {
  margin-bottom: 1.75rem;
  font-size: clamp(1.75rem, 7vw, 3.4rem);
  overflow-wrap: break-word;
  hyphens: auto;
}

.together-section__text p {
  margin: 0 0 1.25rem;
}

.together-section__text p:last-child {
  margin-bottom: 0;
}

.together-section__text a,
.together-donation__detail a {
  color: var(--mh-dark-teal, #00595d);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Gallery */

.together-section__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.together-section__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 1.75rem 0.5rem 1.75rem 1.75rem;
  background: #dceceb;
  box-shadow: 0 18px 40px rgb(0 89 93 / 12%);
}

.together-section__media:nth-child(even) {
  border-radius: 0.5rem 1.75rem 1.75rem 1.75rem;
}

.together-section__gallery--1 {
  grid-template-columns: minmax(0, 1fr);
}

.together-section__gallery--1 .together-section__media {
  aspect-ratio: 4 / 3;
}

/* Three images: the first spans both columns. */

.together-section__gallery--3 .together-section__media:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.together-section__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logos (FöJ, Kitalympics): show the whole logo instead of cropping it. */

.together-section--logo .together-section__gallery {
  justify-items: center;
}

.together-section--logo .together-section__media {
  width: min(100%, 340px);
  aspect-ratio: 1;
  padding: 1.5rem;
  border-radius: 50%;
  background: #ffffff;
}

.together-section--logo .together-section__image {
  object-fit: contain;
}

/* Donation */

.together-donation {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  background: var(--mh-primary, #5cc0c7);
}

.together-donation__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  width: min(100% - 3rem, 1240px);
  margin-inline: auto;
}

.together-donation__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 2.75rem 0.75rem 2.75rem 2.75rem;
  box-shadow: 0 22px 55px rgb(0 89 93 / 18%);
}

.together-donation__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.together-donation__content {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 0.75rem 2.75rem 2.75rem 2.75rem;
  background: #ffffff;
  box-shadow: 0 22px 55px rgb(0 89 93 / 12%);
}

.together-donation__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgb(0 89 93 / 10%);
}

.together-donation__detail h3 {
  margin: 0 0 0.5rem;
  color: var(--mh-dark-teal, #00595d);
  font-size: 1.1rem;
}

.together-donation__detail p {
  margin: 0;
}

/* Tablet */

@media (max-width: 960px) {
  .together-section__inner,
  .together-donation__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .together-section--reversed .together-section__content {
    order: 0;
  }

  .together-donation__media {
    aspect-ratio: 16 / 10;
  }
}

/* Mobile */

@media (max-width: 640px) {
  .together-section__inner,
  .together-donation__inner {
    width: min(100% - 2rem, 1240px);
  }

  .together-donation__content {
    padding: 1.6rem;
  }
}
