/* Galerie-Bilder füllen ihre Rahmen ohne weiße Ränder. */
#galerie .image-lift {
  object-fit: cover;
  object-position: center;
}

/* Bewertungen und Kontakt optisch enger zusammenführen. */
#bewertungen {
  padding-bottom: 1.5rem;
}

#kontakt {
  padding-top: 1.5rem;
}

/* Das Startbild bleibt präsent, nimmt aber rund ein Drittel weniger Höhe ein. */
main > section:first-of-type a[aria-label="Alle MediClips im Etsy-Shop ansehen"] > img {
  aspect-ratio: 5 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* Kompakte, ruhigere Informationsbereiche */
main > section:nth-of-type(3),
#kliniken,
#designs,
#geschichte,
section[aria-labelledby="faq-title"] {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

main > section:nth-of-type(3) .section-title,
#kliniken .section-title,
#designs .section-title,
#geschichte .section-title,
section[aria-labelledby="faq-title"] .section-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.08;
}

main > section:nth-of-type(3) .mt-14 {
  margin-top: 1.75rem;
}

main > section:nth-of-type(3) .grid {
  gap: 0.75rem;
}

main > section:nth-of-type(3) article {
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: none;
}

main > section:nth-of-type(3) article > span {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
}

main > section:nth-of-type(3) article > span svg {
  width: 1.15rem;
  height: 1.15rem;
}

main > section:nth-of-type(3) article h3 {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.3;
}

main > section:nth-of-type(3) article p {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.3rem;
}

#kliniken .container-site {
  grid-template-areas:
    "eyebrow"
    "title"
    "body"
    "numbers"
    "cta";
  gap: 0;
}

#kliniken .container-site > div:first-child {
  display: contents;
}

#kliniken .container-site > div:first-child > .eyebrow {
  grid-area: eyebrow;
}

#kliniken .container-site > div:first-child > .section-title {
  grid-area: title;
}

#kliniken .container-site > div:first-child > .body-lg {
  grid-area: body;
}

#kliniken .container-site > .grid.gap-3 {
  grid-area: numbers;
  margin-top: 1.5rem;
}

#kliniken .container-site > div:first-child > .btn {
  grid-area: cta;
  justify-self: start;
}

#kliniken .body-lg,
#designs .body-lg {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

#kliniken .btn {
  margin-top: 1rem;
}

#kliniken .grid.gap-3 {
  gap: 0.65rem;
}

#kliniken .grid.gap-3 > div {
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

@media (min-width: 1024px) {
  /* Logo und „MediClips“-Schrift wirken auf dem Desktop gleich hoch. */
  header a[aria-label="MediMäuse Startseite"] {
    width: clamp(54px, 7.5vw, 108px);
  }

  header .brand-logo {
    width: clamp(54px, 7.5vw, 108px);
    max-width: none;
  }

  /* Das große Produktbild beginnt bündig mit der ersten „MediClips“-Zeile. */
  main > section:first-of-type a[aria-label="Alle MediClips im Etsy-Shop ansehen"] {
    position: relative;
    top: 62px;
  }

  main > section:first-of-type a[aria-label="Alle MediClips im Etsy-Shop ansehen"] > img {
    aspect-ratio: 1.25 / 1;
  }

  #kliniken .container-site {
    grid-template-areas:
      "eyebrow numbers"
      "title numbers"
      "body numbers"
      ". cta";
    column-gap: 2.5rem;
  }

  #kliniken .container-site > .grid.gap-3 {
    margin-top: 0;
  }
}

#designs .mt-14 {
  margin-top: 1.75rem;
  gap: 0.75rem;
}

#designs .mt-14 > div {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
}

#designs .mt-14 h3 {
  margin-top: 0.35rem;
  font-size: 1rem;
  line-height: 1.3;
}

#geschichte .space-y-5 {
  font-size: 1rem;
  line-height: 1.7;
}

section[aria-labelledby="faq-title"] .mt-12 {
  margin-top: 2rem;
  gap: 0.75rem;
}

section[aria-labelledby="faq-title"] article {
  padding: 1.1rem;
  border-radius: 1rem;
}

section[aria-labelledby="faq-title"] article h3 {
  font-size: 1rem;
  line-height: 1.35;
}

section[aria-labelledby="faq-title"] article p {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.35rem;
}

@media (max-width: 639px) {
  #bewertungen {
    padding-bottom: 1rem;
  }

  #kontakt {
    padding-top: 1rem;
  }

  main > section:nth-of-type(3),
  #kliniken,
  #designs,
  #geschichte,
  section[aria-labelledby="faq-title"] {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  main > section:nth-of-type(3) article {
    display: block;
    padding: 0.85rem;
  }

  main > section:nth-of-type(3) .grid,
  #kliniken .grid.gap-3,
  #designs .mt-14 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main > section:nth-of-type(3) article h3 {
    margin-top: 0.55rem;
    font-size: 0.9rem;
  }

  main > section:nth-of-type(3) article p {
    font-size: 0.72rem;
    line-height: 1.15rem;
  }

  #kliniken .container-site {
    gap: 0;
  }

  section[aria-labelledby="faq-title"] .btn {
    width: 100%;
    justify-content: center;
  }
}
