/* ==========================================================================
   Mehr als Kooperationen (Startseite und Für Talents)
   Inhalte in assets/js/momente-data.js, aufgebaut von assets/js/momente.js.
   Baut auf style.css auf: gleiche Farben, Schriften, Abstände und Kanten.
   Hervorhebung über dünne und dicke Schnitte, keine Linien, keine Rahmen.
   ========================================================================== */

.momente[hidden] { display: none; }

.momente {
  /* gleiches Hellgrau wie die Case-Nummern auf der Case-Studies-Seite */
  --momente-hellgrau: #8F8B85;
  /* Seitenrand des Containers, damit der Streifen mobil bis zum Rand läuft */
  --momente-rand: clamp(1.25rem, 4vw, 2.5rem);
}

/* Überschrift: „Mehr als“ dünn, „Kooperationen“ kräftig */
.momente .section-title h2 { max-width: 14ch; }
.momente__duenn { font-weight: 300; }

.momente__liste {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Ein Moment ---------------------------------------------------------------
   Handy: Überschrift, darunter der Moment. Ab 720 px: Moment links, Text
   rechts, beide mittig auf einer Höhe. Auf der Startseite steht darüber
   „Wir liefern Konzepte“ mit dem Bild rechts, so wechseln sich die Seiten ab. */
.momente--einzeln .moment {
  width: 100%;
  max-width: 420px;
}
@media (min-width: 720px) {
  .momente--einzeln .container {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: center;
  }
  .momente--einzeln .momente__liste { grid-column: 1; grid-row: 1; }
  .momente--einzeln .section-title {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5);
    margin-bottom: 0;
  }
}
@media (min-width: 1080px) {
  .momente--einzeln .container { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
}

/* Mehrere Momente ---------------------------------------------------------- */
@media (min-width: 880px) {
  .momente--mehrere .momente__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Startseite mobil: ein Streifen zum Wischen, der nächste Moment schaut rein */
@media (max-width: 879px) {
  .momente--mehrere[data-momente="start"] .momente__liste {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 320px);
    margin-inline: calc(var(--momente-rand) * -1);
    padding: 0 var(--momente-rand) 0.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--momente-rand);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .momente--mehrere[data-momente="start"] .momente__liste::-webkit-scrollbar { display: none; }
  .momente--mehrere[data-momente="start"] .moment { scroll-snap-align: start; }
}

/* Für Talents: alle Momente als Raster */
@media (min-width: 560px) and (max-width: 879px) {
  .momente--mehrere[data-momente="alle"] .momente__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Moment ------------------------------------------------------------------- */
.moment__figur { margin: 0; }

.moment__medium {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-sand);
}
.moment__medium video,
.moment__medium img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.moment__medium.ist-video { cursor: pointer; }

/* Ton-Knopf unten rechts, gleicher Stil wie der Play-Knopf der Case Studies */
.moment__knopf {
  position: absolute;
  z-index: 1;
  right: 0.85rem;
  bottom: 0.85rem;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  background: rgba(250, 246, 239, 0.92);
  color: var(--color-walnut);
  transition: transform var(--dur-base) var(--ease),
              background-color var(--dur-base) var(--ease);
}
.moment__medium:hover .moment__knopf,
.moment__knopf:focus-visible {
  transform: scale(1.07);
  background: var(--color-cream);
}
.moment__knopf:focus-visible {
  outline: 2px solid var(--color-clay);
  outline-offset: 3px;
}
.moment__icon {
  display: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.moment__icon .voll { fill: currentColor; }
.moment__icon--play { margin-left: 2px; }
.moment__knopf[data-zustand="aus"] .moment__icon--aus,
.moment__knopf[data-zustand="an"] .moment__icon--an,
.moment__knopf[data-zustand="play"] .moment__icon--play,
.moment__knopf[data-zustand="pause"] .moment__icon--pause { display: block; }

/* Monat und eine Zeile Text */
.moment__unterschrift { margin-top: 1rem; }
.moment__monat {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--momente-hellgrau);
}
.moment__text {
  display: block;
  max-width: 40ch;
  margin-top: 0.3rem;
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-walnut);
}

/* Link zu allen Momenten (nur sichtbar, wenn es mehr als drei gibt) */
.momente__alle {
  display: inline-flex;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}
.momente__alle[hidden] { display: none; }
