/* Kompakte Bildfolge im Abschluss der Startseite: Druck -> Klarheit -> Freiraum.
   Bleibt neben dem bestehenden Abschluss-Text, ersetzt nichts und scrollt nichts. */

.design-studio .final .final-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
}

.design-studio .wandel {
  position: relative;
  margin: 0 0 28px;
  border-radius: 18px;
  overflow: hidden;
  background: #201f20;
  aspect-ratio: 16 / 10;
  max-height: 360px;
  isolation: isolate;
}
.design-studio .wandel-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
}
.design-studio .wandel-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition:
    opacity 0.55s cubic-bezier(0.22, 0.75, 0.2, 1),
    transform 1.6s cubic-bezier(0.22, 0.75, 0.2, 1);
}
.design-studio .wandel-frame img[data-shown] {
  opacity: 1;
  transform: scale(1);
}
.design-studio .wandel:after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(16, 15, 16, 0.86));
  pointer-events: none;
}
.design-studio .wandel-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: opacity 0.45s ease;
}
.design-studio .wandel-note {
  position: absolute;
  left: 20px;
  top: 16px;
  z-index: 2;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f4eeee;
  background: rgba(16, 15, 16, 0.55);
  border-radius: 999px;
  padding: 7px 12px;
}
.design-studio .wandel-control {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 3;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(16, 15, 16, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.design-studio .wandel-control:hover {
  background: rgba(16, 15, 16, 0.8);
  border-color: #fff;
}
.design-studio .wandel-control:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Auf schmalen Bildern wird die Bedienung zu einem kompakten Symbol-Knopf,
   damit sie den Hinweis oben links nicht überlagert. Der aria-label bleibt sprechend. */
@media (max-width: 620px) {
  .design-studio .wandel-control {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 0;
    display: grid;
    place-items: center;
  }
  .design-studio .wandel-control:before {
    content: "";
    width: 14px;
    height: 16px;
    background: linear-gradient(to right, currentColor 0 32%, transparent 32% 68%, currentColor 68% 100%);
    font-size: 17px;
    line-height: 1;
  }
  .design-studio .wandel-control[data-state="paused"]:before {
    content: "";
    width: 13px;
    height: 16px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }
  .design-studio .wandel-control[data-state="replay"]:before {
    content: "";
    width: 13px;
    height: 16px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    font-size: 19px;
  }
  .design-studio .wandel-note {
    font-size: 12px;
    padding: 6px 10px;
    max-width: calc(100% - 84px);
  }
}

@media (max-width: 900px) {
  .design-studio .final .final-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .design-studio .wandel {
    max-height: 300px;
    aspect-ratio: 3 / 2;
    margin-bottom: 24px;
  }
  .design-studio .wandel-frame {
    min-height: 220px;
  }
}
@media (max-width: 420px) {
  .design-studio .wandel {
    max-height: 250px;
    aspect-ratio: 4 / 3;
  }
  .design-studio .wandel-caption {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .design-studio .wandel-frame img {
    transition: none;
    transform: none;
  }
}
