/* ── Ablauf page ── */

/* ── Rahmenbedingungen: image left, text right ── */
.rahmen-layout {
  grid-template-columns: 2fr 3fr;
  align-items: center;
}

.rahmen-image-wrap {
  width: 100%;
  max-width: 320px;
  justify-self: center;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.rahmen-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1.7;
}

.rahmen-text {
  min-width: 0;
}

@media (max-width: 768px) {
  .rahmen-layout {
    display: block;
  }

  .rahmen-image-wrap {
    float: right;
    width: min(42vw, 180px);
    margin: 0.35rem 0 0.9rem 1rem;
  }

  .rahmen-text::after {
    content: "";
    display: block;
    clear: both;
  }
}

@media (max-width: 560px) {
  .rahmen-image-wrap {
    display: none;
  }
}

/* ── Einblick band: text left, 2×2 image grid right ── */
.einblick-section {
  scroll-margin-top: 2rem;
}

.einblick-layout {
  align-items: center;
}

.einblick-text {
  min-width: 0;
}

.einblick-btn {
  margin-top: 2rem;
}

.einblick-image {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.einblick-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── FAQ band ── */
.faq-layout {
  grid-template-columns: 1fr 1.2fr;
}

.faq-blob {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1.7;
  justify-self: center;
  margin-top: 25%;
}

.faq-blob::before {
  width: 72%;
  height: 84%;
  top: 8%;
  left: 14%;
  border-radius: 48% 52% 44% 56% / 36% 40% 60% 64%;
  transform: rotate(4deg);
}

.faq-blob::after {
  width: 80%;
  height: 90%;
  top: 4%;
  left: 9%;
  border-radius: 44% 56% 52% 48% / 62% 58% 42% 38%;
  transform: rotate(-6deg);
}

.faq-blob-accent {
  position: absolute;
  width: 90px;
  height: 76px;
  background: var(--color-bg-green);
  border-radius: 55% 45% 40% 60% / 50% 60% 40% 50%;
  bottom: 8%;
  left: 12%;
  pointer-events: none;
}

.faq-accordion-wrap {
  min-width: 0;
}

.faq-accordion {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  overflow-anchor: none;
}

.faq-item {
  border-top: 1px solid var(--color-separator);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--color-separator);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-base);
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question .faq-toggle {
  flex: none;
}

.faq-question span:not(.faq-toggle) {
  flex: 1;
}

.faq-toggle {
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 400;
  color: var(--color-text-base);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  display: inline-block;
  width: 0.9rem;
  text-align: center;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}

/* Smooth open/close — grid-rows controlled via JS */
.faq-answer-outer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-answer {
  overflow: hidden;
}

.faq-answer-inner {
  padding-bottom: 1.2rem;
}

.faq-answer p {
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-blob {
    order: 2;
    max-width: 180px;
    margin-top: 8%;
  }

  .faq-accordion-wrap {
    order: 1;
  }

  .faq-blob-accent {
    width: 68px;
    height: 58px;
    left: 10%;
    bottom: 8%;
  }
}
