/*
  Momentbleib · Story Block 32
  Feinschliff fuer den Erinnerungsstrom: langsamer, subtilere Schattierung,
  leichte Event-Brandings fuer einzelne Karten.

  Videobilder (alle via Pexels License):
  1) Vitaly Gariev · Photo 23495688
     https://www.pexels.com/photo/a-group-of-people-taking-a-selfie-together-23495688/
  2) Huy Phan · Photo 36729778
     https://www.pexels.com/photo/joyful-friends-taking-a-cafe-selfie-36729778/
  3) Huy Phan · Photo 36713032
     https://www.pexels.com/photo/smiling-man-giving-thumbs-up-indoors-36713032/
*/

.mb-block-type-story.problem-story {
  position: relative;
  padding: clamp(72px, 7.2vw, 104px) 0 clamp(80px, 8vw, 118px);
  overflow: hidden;
  background: #F3ECE4 !important;
  border-block: 0;
}

.mb-block-type-story.problem-story::before,
.mb-block-type-story.problem-story::after {
  content: none !important;
  display: none !important;
}

.mb-block-type-story .problem-story-inner {
  position: relative;
  z-index: 2;
}

.mb-block-type-story .problem-story-heading {
  max-width: 860px;
  text-align: center;
  margin-inline: auto;
}

.mb-block-type-story .problem-story-heading .eyebrow {
  margin-bottom: 14px;
}

.mb-block-type-story .problem-story-heading h2 {
  max-width: 860px;
  margin-inline: auto;
  font-size: var(--section-title-size);
  line-height: 1.16;
  letter-spacing: var(--section-title-track);
}

.mb-block-type-story .problem-story-copy {
  max-width: 700px;
  margin: 24px auto 0;
  color: #595361;
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.55;
  text-align: center;
}

.mb-block-type-story .memory-stream-stage {
  --stream-gap: clamp(18px, 2vw, 26px);
  position: relative;
  z-index: 1;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: clamp(38px, 4.8vw, 58px);
}

.mb-block-type-story .memory-stream-stage::before,
.mb-block-type-story .memory-stream-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(7vw, 90px);
  z-index: 3;
  pointer-events: none;
}

.mb-block-type-story .memory-stream-stage::before {
  left: 0;
  background: linear-gradient(90deg, #F3ECE4 10%, rgba(243, 236, 228, 0));
}

.mb-block-type-story .memory-stream-stage::after {
  right: 0;
  background: linear-gradient(270deg, #F3ECE4 10%, rgba(243, 236, 228, 0));
}

.mb-block-type-story .memory-stream-viewport {
  overflow: hidden;
  padding: 18px 0 42px;
}

.mb-block-type-story .memory-stream-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: var(--stream-gap);
  animation: story-memory-stream 56s linear infinite;
  will-change: transform;
}

.mb-block-type-story .memory-stream-group {
  display: flex;
  align-items: center;
  gap: var(--stream-gap);
  flex-shrink: 0;
  padding-inline: 2px;
}

.mb-block-type-story .memory-stream-card {
  width: var(--card-width);
  flex: 0 0 var(--card-width);
  min-height: 278px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(70, 56, 94, .08);
  background: #fff;
  box-shadow: 0 10px 24px rgba(47, 43, 57, .07), 0 2px 6px rgba(47, 43, 57, .03);
  transform: translateY(var(--card-lift)) rotate(var(--card-tilt));
}

.mb-block-type-story .memory-stream-card.tone-paper {
  background: #FFFEFD;
}

.mb-block-type-story .memory-stream-card.tone-lavender {
  background: #EEE7F2;
}

.mb-block-type-story .memory-stream-card.tone-rose {
  background: #F8EDE7;
}

.mb-block-type-story .memory-stream-card.tone-peach {
  background: #F8E8DE;
}

.mb-block-type-story .memory-stream-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--deep-plum);
}

.mb-block-type-story .memory-stream-top strong {
  font-size: 1rem;
  line-height: 1.15;
}

.mb-block-type-story .memory-stream-event {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(199, 99, 66, .12);
  color: var(--terracotta-accessible);
  font-size: .68rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mb-block-type-story .memory-stream-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 248, 241, .92);
  color: var(--deep-plum);
  flex-shrink: 0;
}

.mb-block-type-story .memory-stream-icon svg {
  width: 18px;
  height: 18px;
}

.mb-block-type-story .memory-stream-preview {
  position: relative;
  min-height: 170px;
  border-radius: 10px;
  overflow: hidden;
}

.mb-block-type-story .preview-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  background: rgba(255, 252, 248, .84);
}

.mb-block-type-story .memory-stream-kicker {
  color: var(--terracotta-accessible);
  font-size: .68rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.mb-block-type-story .preview-text blockquote {
  margin: 0;
  color: var(--deep-plum);
  font-size: 1rem;
  line-height: 1.56;
  font-weight: 680;
}

.mb-block-type-story .preview-audio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, .66);
}

.mb-block-type-story .audio-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 78px;
}

.mb-block-type-story .audio-wave span {
  width: 5px;
  height: var(--bar-h);
  border-radius: 999px;
  background: linear-gradient(180deg, #D9977F 0%, #C76342 100%);
}

.mb-block-type-story .memory-stream-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6E6876;
  font-size: .78rem;
  line-height: 1.2;
  font-weight: 700;
}

.mb-block-type-story .memory-stream-meta b {
  color: var(--deep-plum);
  font-variant-numeric: tabular-nums;
}

.mb-block-type-story .preview-video {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  background-color: #E9DFD8;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.mb-block-type-story .preview-video.photo-one {
  background-image:
    linear-gradient(180deg, rgba(246, 239, 231, .08), rgba(70, 56, 94, .30)),
    url("../../img/pexels/story-gruppe.jpg"),
    url("../../img/occasion-placeholder-collage.svg");
  background-position: 50% 42%;
}

.mb-block-type-story .preview-video.photo-two {
  background-image:
    linear-gradient(180deg, rgba(246, 239, 231, .06), rgba(70, 56, 94, .28)),
    url("../../img/pexels/story-cafe.jpg"),
    url("../../img/occasion-placeholder-collage.svg");
  background-position: 50% 36%;
}

.mb-block-type-story .preview-video.photo-three {
  background-image:
    linear-gradient(180deg, rgba(246, 239, 231, .05), rgba(70, 56, 94, .22)),
    url("../../img/pexels/story-portrait.jpg"),
    url("../../img/occasion-placeholder-collage.svg");
  background-position: 50% 18%;
}

.mb-block-type-story .video-preview-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 48%, rgba(34, 27, 43, .28));
}

.mb-block-type-story .video-preview-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(70, 56, 94, .94);
  box-shadow: 0 10px 24px rgba(47, 43, 57, .20);
  color: #fff;
  font-size: .98rem;
  line-height: 1;
}

.mb-block-type-story .memory-stream-meta-video {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  color: rgba(255, 255, 255, .92);
}

.mb-block-type-story .memory-stream-meta-video b {
  color: #fff;
}

@keyframes story-memory-stream {
  from {
    transform: translateX(calc(-50% - (var(--stream-gap) / 2)));
  }
  to {
    transform: translateX(0);
  }
}

@media (hover: hover) {
  .mb-block-type-story .memory-stream-stage:hover .memory-stream-track {
    animation-play-state: paused;
  }
}

@media (max-width: 1100px) {
  .mb-block-type-story .memory-stream-track {
    animation-duration: 48s;
  }

  .mb-block-type-story .memory-stream-card {
    min-height: 250px;
    padding: 16px;
  }

  .mb-block-type-story .memory-stream-card {
    width: min(var(--card-width), 272px);
    flex-basis: min(var(--card-width), 272px);
  }

  .mb-block-type-story .memory-stream-preview {
    min-height: 148px;
  }

  .mb-block-type-story .preview-text blockquote {
    font-size: .91rem;
  }
}

@media (max-width: 720px) {
  .mb-block-type-story.problem-story {
    padding: 66px 0 80px;
  }

  .mb-block-type-story .problem-story-heading {
    max-width: 100%;
    padding-inline: 10px;
  }

  .mb-block-type-story .problem-story-heading h2 {
    font-size: clamp(2.45rem, 12vw, 3.7rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .mb-block-type-story .problem-story-copy {
    max-width: 300px;
    margin-top: 18px;
    padding-inline: 8px;
    font-size: .98rem;
    line-height: 1.5;
  }

  .mb-block-type-story .memory-stream-stage {
    --stream-gap: 0px;
    margin-top: 30px;
  }

  .mb-block-type-story .memory-stream-viewport {
    padding: 12px 0 30px;
  }

  .mb-block-type-story .memory-stream-stage::before,
  .mb-block-type-story .memory-stream-stage::after {
    width: 20px;
  }

  .mb-block-type-story .memory-stream-track {
    animation-duration: 42s;
  }

  .mb-block-type-story .memory-stream-group {
    gap: 0;
    padding-inline: 0;
  }

  .mb-block-type-story .memory-stream-card {
    width: 172px !important;
    flex-basis: 172px !important;
    min-height: 194px;
    padding: 12px;
  }

  .mb-block-type-story .memory-stream-card + .memory-stream-card {
    margin-left: -18px;
  }

  .mb-block-type-story .memory-stream-top {
    margin-bottom: 10px;
    gap: 7px;
  }

  .mb-block-type-story .memory-stream-top strong {
    font-size: .86rem;
  }

  .mb-block-type-story .memory-stream-event {
    min-height: 22px;
    padding: 4px 8px;
    font-size: .54rem;
  }

  .mb-block-type-story .memory-stream-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .mb-block-type-story .memory-stream-icon svg {
    width: 15px;
    height: 15px;
  }

  .mb-block-type-story .memory-stream-preview {
    min-height: 108px;
    border-radius: 8px;
  }

  .mb-block-type-story .preview-text {
    padding: 14px;
    gap: 9px;
  }

  .mb-block-type-story .memory-stream-kicker {
    font-size: .56rem;
  }

  .mb-block-type-story .preview-text blockquote {
    font-size: .70rem;
    line-height: 1.42;
  }

  .mb-block-type-story .preview-audio {
    gap: 12px;
    padding: 16px 14px;
  }

  .mb-block-type-story .audio-wave {
    height: 50px;
    gap: 4px;
  }

  .mb-block-type-story .audio-wave span {
    width: 4px;
  }

  .mb-block-type-story .memory-stream-meta {
    gap: 6px;
    font-size: .60rem;
  }

  .mb-block-type-story .video-preview-play {
    width: 38px;
    height: 38px;
    font-size: .76rem;
  }

  .mb-block-type-story .memory-stream-meta-video {
    left: 10px;
    bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mb-block-type-story .memory-stream-viewport {
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
  }

  .mb-block-type-story .memory-stream-track {
    animation: none;
    width: max-content;
  }

  .mb-block-type-story .memory-stream-group[aria-hidden="true"] {
    display: none;
  }
}
