/* Mitmach-Filme auf der Startseite, r27 vom 03.11.2026, Größen überarbeitet in r29.
   r30: eine schlanke Blase für alle Größen (Titel und Knopf, ohne Schrittangabe und Tastenhinweis), Auftrag Caan 03.11.2026.
   Hilfepfeil, Ring und Sprechblase im Design des Films: helle Oberfläche, Blau #2361ea, Inter.
   Die Farben sind aus den Bildern von B01 gemessen. Die Ebene legt mitmach-film.js genau über
   das Video; sie fängt nur auf der Klickfläche und in der Sprechblase Klicks ab. */

@font-face {
  font-family: "Mitmach Inter";
  src: url("/landing-assets/20260921-landing-v1/nexoria-assets/nex-live/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

.mitmach {
  --mm-blau: #2361ea;
  --mm-blau-tief: #1b4fc4;
  --mm-grund: #f4f5f8;
  --mm-text: #13161f;
  --mm-grau: #6e6f74;
  --mm-rand: #e3e5ec;
  position: absolute;
  z-index: 8;
  overflow: hidden;
  container-type: inline-size;
  pointer-events: none;
  /* r28: eigene Zeichenebene über dem Video; Safari legt Videos sonst gelegentlich über Elemente daneben. */
  transform: translateZ(0);
  will-change: transform;
  font-family: "Mitmach Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.mitmach[hidden] {
  display: none;
}

/* Klickfläche mit Ring */

.mitmach-ziel {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: calc(var(--mitmach-radius, 12) * 100cqw / 1920);
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.mitmach-ziel::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--mm-blau);
  border-radius: calc(var(--mitmach-radius, 12) * 100cqw / 1920 + 4px);
  animation: mitmach-puls 1.9s ease-out infinite;
  transition: background-color 0.12s ease, transform 0.12s ease;
}

/* Auf kleinen Bildern bleibt die Fläche mindestens 44 Pixel groß, damit sie sich gut antippen lässt. */
.mitmach-ziel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}

.mitmach-ziel:hover::before {
  background: rgba(35, 97, 234, 0.06);
}

.mitmach-ziel.mitmach-gedrueckt::before {
  background: rgba(35, 97, 234, 0.16);
  transform: scale(0.99);
}

@keyframes mitmach-puls {
  0% { box-shadow: 0 0 0 0 rgba(35, 97, 234, 0.35); }
  70% { box-shadow: 0 0 0 12px rgba(35, 97, 234, 0); }
  100% { box-shadow: 0 0 0 0 rgba(35, 97, 234, 0); }
}

/* Hilfepfeil */

.mitmach-pfeil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mitmach-sichtbar .mitmach-pfeil {
  opacity: 1;
}

.mitmach-pfeil path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mitmach-pfeil-halo {
  stroke: #ffffff;
}

.mitmach-pfeil-strich {
  stroke: var(--mm-blau);
}

.mitmach-pfeil g {
  animation: mitmach-stupsen 1.2s ease-in-out infinite;
}

.mitmach-pfeil-neu .mitmach-pfeil-kopf {
  animation: mitmach-kopf 0.5s ease-out both;
}

@keyframes mitmach-stupsen {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(var(--mitmach-stups-x, 0px), var(--mitmach-stups-y, 0px)); }
}

@keyframes mitmach-kopf {
  0%, 55% { opacity: 0; }
  100% { opacity: 1; }
}

/* Sprechblase */

.mitmach-blase {
  position: absolute;
  box-sizing: border-box;
  max-width: min(64cqw, 340px);
  padding: clamp(7px, 0.9cqw, 10px) clamp(10px, 1.2cqw, 14px) clamp(8px, 1cqw, 11px);
  color: var(--mm-text);
  background: #ffffff;
  border: 1px solid var(--mm-rand);
  border-radius: clamp(10px, 1.05cqw, 13px);
  box-shadow: 0 10px 30px rgba(19, 22, 31, 0.14), 0 2px 6px rgba(19, 22, 31, 0.06);
  cursor: default;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mitmach-sichtbar .mitmach-blase {
  opacity: 1;
  transform: none;
}

.mitmach-schritt,
.mitmach-taste {
  display: none;
}

.mitmach-titel {
  margin: 0;
  color: var(--mm-text);
  font-size: clamp(13px, 1.45cqw, 16px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mitmach-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6em 0.75em;
  margin-top: clamp(6px, 0.75cqw, 9px);
}

.mitmach-knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin: 0;
  padding: 0.5em 0.95em 0.5em 1.05em;
  color: #ffffff;
  background: var(--mm-blau);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: clamp(12px, 1.3cqw, 14.5px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.mitmach-knopf svg {
  width: 1.05em;
  height: 1.05em;
}

.mitmach-knopf:hover {
  background: var(--mm-blau-tief);
}

.mitmach-knopf:focus-visible {
  outline: 2px solid var(--mm-blau);
  outline-offset: 3px;
}

/* Schmales Bild: nur der Knopf, Pfeil und Ring bleiben */

.mitmach-kompakt .mitmach-blase {
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mitmach-kompakt .mitmach-titel {
  display: none;
}

.mitmach-kompakt .mitmach-zeile {
  margin-top: 0;
}

.mitmach-kompakt .mitmach-knopf {
  padding: 0.55em 0.9em 0.55em 1em;
  font-size: 12.5px;
  box-shadow: 0 6px 18px rgba(19, 22, 31, 0.24);
}

@media (hover: hover) and (pointer: fine) {
  .mitmach-kompakt .mitmach-knopf {
    padding: 0.45em 0.8em 0.45em 0.9em;
    font-size: 11.5px;
  }
}

/* Startseite: Dort bekommt jedes svg im Abschnitt 20 Pixel, und Texte im Abschnitt erhalten
   Polysans mit !important. Die Ebene behält Maße und Schrift des Films. */

.mitmach .mitmach-pfeil {
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

.mitmach .mitmach-knopf svg {
  flex: none;
  width: 1.05em !important;
  height: 1.05em !important;
}

html body #main #nx-platform-story .mitmach :is(p, button, span, kbd) {
  font-family: "Mitmach Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}

.mitmach-ansage {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mitmach *,
  .mitmach *::before,
  .mitmach *::after {
    animation: none !important;
    transition: none !important;
  }
}
