/* ── Intro section ── */
.intro-section {
  overflow: visible;
  position: relative;
  z-index: 2;
}

.intro-section .band-inner {
  max-width: 1080px;
}

.intro-layout {
  display: grid;
  grid-template-columns: 40% 1fr;
  grid-template-areas:
    "portrait text"
    "portrait btn";
  column-gap: 3rem;
  align-items: end;
}

.intro-portrait-wrap {
  grid-area: portrait;
  align-self: end;
  margin-bottom: 0;
}

.intro-portrait {
  width: 100%;
  border-radius: 3rem;
  display: block;
}

.intro-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 3rem;
}

.intro-text-inner {
  width: 100%;
}

.intro-btn {
  grid-area: btn;
  padding-bottom: 3rem;
}

@media (min-width: 641px) {
  .intro-text-inner {
    width: 70%;
  }
}

@media (min-width: 641px) and (max-width: 899px) {
  .intro-portrait-wrap {
    align-self: start;
    margin-top: 3rem;
  }
}

/* Keep the portrait overlapping the green band only on large screens */
@media (min-width: 900px) {
  .intro-portrait-wrap {
    align-self: end;
    margin-bottom: -8rem;
  }

  .intro-section + .band--green {
    padding-top: 10rem;
  }
}

@media (max-width: 640px) {
  .intro-section {
    padding-top: 2rem;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "portrait" "btn";
  }

  .intro-portrait-wrap {
    width: 72%;
    margin: 0 auto;
  }

  .intro-portrait {
    border-radius: 2rem;
  }

  .intro-text {
    padding-top: 0;
  }

  .intro-btn {
    padding-bottom: 1.5rem;
  }

  .intro-btn .btn {
    order: 1;
  }

  .intro-btn .btn-line {
    order: 2;
  }

}

/* ── Stagger delay for home page underlines ── */
.intro-title {
  font-size: clamp(2rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.intro-title .animated-underline::after,
.praxis-heading .animated-underline::after {
  animation-delay: 0.3s;
}

.intro-citation {
  display: inline-flex;
  flex-direction: column;
  align-self: flex-start;
  max-width: min(100%, 34rem);
  gap: 0.15rem;
}

.intro-citation blockquote {
  margin: 0;
  font-style: italic;
}

.intro-citation blockquote p {
  margin: 0;
}

.intro-attribution {
  align-self: flex-end;
  font-style: italic;
  font-size: 0.85em;
  opacity: 0.7;
  text-align: right;
  margin-top: 0;
  margin-bottom: 0.85rem;
  padding-right: 0.1rem;
}

/* ── Green band: psychotherapie with decorative blobs ── */
.green-layout {
  grid-template-areas: "left blobs";
}

.green-block-left {
  grid-area: left;
}

.green-blobs {
  grid-area: blobs;
  position: relative;
}

.green-blobs::before {
  width: 220px;
  height: 200px;
  border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
  top: 10%;
  left: 15%;
}

.green-blobs::after {
  width: 180px;
  height: 170px;
  border-radius: 45% 55% 38% 62% / 55% 38% 62% 45%;
  top: 30%;
  left: 30%;
}

@media (max-width: 640px) {
  .green-layout {
    grid-template-areas: "left" "blobs";
  }

  .green-blobs {
    height: 220px;
  }

  .green-blobs::before {
    width: 180px;
    height: 160px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
  }

  .green-blobs::after {
    width: 150px;
    height: 140px;
    top: 25%;
    left: 50%;
    transform: translateX(-35%);
  }
}

/* ── Arbeitsweise row (inside green band) ── */
.arbeitsweise-row {
  padding-top: 1rem;
  margin-top: 1rem;
}

.arbeitsweise-text {
  display: flex;
  flex-direction: column;
}

.arbeitsweise-text .section-heading {
  margin-bottom: 0.5rem;
}

.arbeitsweise-text p {
  margin: 0;
}

.arbeitsweise-btn {
  align-self: flex-end;
  margin-top: 1.5rem;
}

/* ── Praxis section ── */
.praxis-section {
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.praxis-heading {
  margin-bottom: 1.5rem;
}

.praxis-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "primary image"
    "button image"
    "additional image";
  column-gap: 4rem;
  align-items: start;
}

.praxis-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.praxis-primary {
  grid-area: primary;
}

.praxis-btn {
  margin-bottom: 4rem;
  grid-area: button;
}

.praxis-additional {
  grid-area: additional;
  margin-top: 2rem;
  max-width: 34rem;
}

.praxis-btn,
.praxis-additional-btn {
  margin-top: 2.75rem;
}

.praxis-primary p:last-child,
.praxis-additional p:last-child {
  margin-bottom: 0;
}

.praxis-right {
  grid-area: image;
  display: flex;
  flex-direction: column;
}

.praxis-image-frame {
  position: relative;
}

.praxis-image {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

@media (max-width: 640px) {
  .praxis-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "primary"
      "image"
      "button"
      "additional";
  }

  .praxis-additional {
    position: relative;
    max-width: none;
    margin-top: 1.25rem;
    padding-top: 1.75rem;
  }

  .praxis-additional::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(-1 * var(--page-gutter));
    right: calc(-1 * var(--page-gutter));
    height: 1px;
    background: var(--color-separator);
  }

  .praxis-additional-btn,
  .praxis-image-frame {
    padding-inline: 0.75rem;
  }

  .praxis-right {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  .praxis-btn {
    margin-top: 0.75rem;
    padding-inline: 0.75rem;
    margin-bottom: 1rem;
  }
}

/* ── Aktuelles section ── */
.aktuelles-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  text-align: right;
  position: relative;
  overflow: visible;
}

.aktuelles-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.aktuelles-text .section-heading {
  margin-bottom: 0.4rem;
}

.aktuelles-text p {
  margin: 0;
}
