/* MPE Insight docs: Funktions-Animationen (Baukasten, Phase 1)
   Sprachneutral, rechtefrei, rein dekorativ (aria-hidden im Markup). */

.mpe-anim {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 6;
  margin: 14px 0 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(120, 130, 180, 0.18);
  overflow: hidden;
}

/* Solange kein Canvas montiert ist (anim.js fehlt oder deaktiviert), bleibt
   der Platzhalter unsichtbar statt als leerer Rahmen zu erscheinen. */
.mpe-anim:empty { display: none; }

.mpe-anim canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Uebersichtskarte: volle Spaltenbreite (gleiche Kante wie das how-grid),
   dafuer flacher als die Modul-Animationen */
.mpe-anim.wide { aspect-ratio: 16 / 9; max-width: none; }

/* Karten der Website-Sektion "How it works": Animation oben, Erklaerung darunter */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
  margin-top: 34px;
}
.how-card {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(120, 130, 180, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.how-card .mpe-anim { margin: 0 0 12px; max-width: none; }
.how-card h3 { margin: 0 0 6px; font-size: 15px; }
.how-card p { margin: 0; font-size: 13.5px; line-height: 1.55; opacity: 0.78; }
.how-cap { margin: 14px 0 0; font-size: 14px; line-height: 1.65; opacity: 0.8; max-width: 900px; }
.how-more { margin-top: 26px; opacity: 0.7; }

@media (max-width: 560px) {
  .mpe-anim { aspect-ratio: 16 / 8; }
  .mpe-anim.wide { aspect-ratio: 4 / 3; }
}
