/* Feature-Showcases: kurzer Text + App-Screenshots (alternierend) */

.showcase-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

.showcase-intro {
  margin-bottom: 12px;
}

.showcase-intro .s-intro {
  max-width: 520px;
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid rgba(20, 30, 50, 0.06);
  min-width: 0;
}

.showcase-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.showcase-row--reverse .showcase-copy {
  order: 2;
}

.showcase-row--reverse .showcase-visual {
  order: 1;
}

.showcase-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.showcase-copy h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--slate);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.showcase-copy h3 em {
  font-style: italic;
  color: var(--amber);
}

.showcase-copy p {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--text2);
  max-width: 38ch;
}

/* Safety: selbst wenn die Phone-Fächer überlappen, darf Text nie verdeckt werden */
.showcase-copy {
  position: relative;
  z-index: 3;
}

.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
  transition: gap 0.2s;
}

.showcase-link:hover {
  gap: 7px;
}

.showcase-link .material-icons-outlined {
  font-size: 18px;
}

.showcase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  width: 100%;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.showcase-scroll {
  display: block;
  width: 100%;
}

.showcase-visual--dual:not(.showcase-carousel-active) .showcase-scroll .showcase-frame ~ .showcase-frame,
.showcase-visual--triple:not(.showcase-carousel-active) .showcase-scroll .showcase-frame ~ .showcase-frame {
  display: none;
}

.showcase-visual--dual:not(.showcase-carousel-active) .showcase-scroll .showcase-frame,
.showcase-visual--triple:not(.showcase-carousel-active) .showcase-scroll .showcase-frame {
  width: min(92vw, 340px);
  margin-inline: auto;
  transform: none !important;
}

.showcase-frame {
  margin: 0;
  flex: 0 0 auto;
  max-width: min(100%, 320px);
}

.showcase-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  box-shadow: var(--sh2), 0 0 0 5px rgba(255, 255, 255, 0.75);
  background: var(--card);
}

.showcase-row--tint {
  background: var(--bg2);
  border-radius: var(--r2);
  margin-inline: -2%;
  padding-inline: clamp(20px, 4vw, 48px);
  border-bottom: none;
}

.showcase-visual--single {
  justify-content: flex-start;
}

.showcase-row--reverse .showcase-visual--single {
  justify-content: flex-end;
}

.showcase-visual--single > .showcase-frame {
  width: min(100%, 300px);
  max-width: 300px;
}

/* 2–3 Screens: immer Karussell (ein Bild + Pfeile + Swipe) */
.showcase-visual--dual,
.showcase-visual--triple {
  flex-direction: column;
  align-items: center;
}

.showcase-carousel-active .showcase-scroll {
  display: block;
  width: 100%;
}

.showcase-carousel-active .showcase-carousel-viewport {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: visible;
  touch-action: pan-y;
}

.showcase-carousel-active .showcase-frame {
  width: clamp(280px, 22vw, 420px);
  max-width: 100%;
  margin: 0 auto;
  transform: none !important;
}

.showcase-carousel-active .showcase-frame[hidden] {
  display: none;
}

.showcase-carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  width: 100%;
}

.showcase-carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--slate4);
  background: var(--card);
  color: var(--slate2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.showcase-carousel-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-1px);
}

.showcase-carousel-btn .material-icons-outlined {
  font-size: 22px;
}

.showcase-carousel-counter {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text3);
  min-width: 3.2em;
  text-align: center;
}

/* Desktop breit: Text + Layout */
@media (min-width: 1400px) {
  .showcase-row {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
    padding: clamp(40px, 6vw, 64px) 0;
  }

  .showcase-row:has(.showcase-visual--dual),
  .showcase-row:has(.showcase-visual--triple) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(48px, 9vw, 128px);
  }

  .showcase-row:not(.showcase-row--reverse):has(.showcase-visual--dual) .showcase-copy,
  .showcase-row:not(.showcase-row--reverse):has(.showcase-visual--triple) .showcase-copy {
    justify-self: start;
    max-width: 36ch;
  }

  .showcase-row--reverse:has(.showcase-visual--dual) .showcase-copy,
  .showcase-row--reverse:has(.showcase-visual--triple) .showcase-copy {
    justify-self: end;
    max-width: 36ch;
  }

  .showcase-frame {
    max-width: min(100%, 360px);
  }

  .showcase-visual--single > .showcase-frame {
    width: min(100%, 400px);
    max-width: 400px;
  }

  /* Carousel bleibt auch auf Desktop sichtbar */
}

/* Mobile: alle Zeilen untereinander */
@media (max-width: 640px) {
  .showcase-row,
  .showcase-row--reverse {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 20px;
    padding: 36px 0;
  }

  .showcase-row--reverse .showcase-copy,
  .showcase-row--reverse .showcase-visual {
    order: unset;
  }

  .showcase-copy p {
    max-width: none;
  }

  .showcase-link {
    justify-content: flex-start;
  }

  .showcase-visual {
    flex-direction: column;
    align-items: center;
  }

  .showcase-visual--single > .showcase-frame {
    width: min(92vw, 340px);
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .showcase-row {
    padding: 32px 0;
  }
}
