/* Dekorative Akzente auf Home, Über mich und Kontakt.
   Ausschließlich absolute Motive, ohne Eingriff in den Dokumentfluss. */
.cm-emote-anchor-content,
.cm-emote-anchor-service,
.cm-emote-anchor-talk { position: relative; }

.cm-home-emote {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
  color: var(--color-accent, #892dae);
  opacity: .78;
  isolation: isolate;
}
.cm-home-emote svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cm-home-emote--film,
.cm-home-emote--service { width: 56px; height: 56px; top: 24px; right: 24px; }
.cm-home-emote--gold { color: var(--color-gold, #cda86a); }
.cm-home-emote--talk { width: 70px; height: 63px; top: -34px; right: 12px; }
.cm-emote-gold,
.cm-emote-glint { color: var(--color-gold, #cda86a); }
.cm-emote-spark-purple { color: var(--color-accent, #892dae); }
.cm-emote-film-body { transform-origin: 49px 60px; transform: rotate(-8deg); }
.cm-emote-film-lid { transform-origin: 17px 47px; }
.cm-emote-bubble-fill { fill: var(--color-bg-alt, #f6f2f8); }
.cm-emote-bubble-front { transform-origin: 34px 66px; transform: rotate(-7deg); }
.cm-emote-bubble-back { transform-origin: 77px 39px; transform: rotate(7deg); }
.cm-emote-glint { transform-box: fill-box; transform-origin: center; opacity: .8; }
.cm-emote-flying-heart { opacity: 0; fill: currentColor; stroke-width: 1; }
.cm-emote-calendar-body { transform-origin: 50px 54px; }
.cm-emote-calendar-check { stroke-dasharray: 35; stroke-dashoffset: 0; }
.cm-emote-calendar-spark { transform-box: fill-box; transform-origin: center; opacity: .8; }
.cm-emote-megaphone-body { transform-origin: 45px 52px; transform: rotate(-7deg); }
.cm-emote-megaphone-wave { opacity: .8; }
.cm-emote-target-rings { transform-origin: 45px 55px; }

/* Nur ein kurzer Durchlauf pro Seitenaufruf. Keine Scroll-Handler,
   Endlosschleifen, neuen Reveal-Effekte oder Layout-Animationen. */
.cm-emote-play .cm-emote-film-body { animation: cm-home-film 1.8s ease-in-out .2s both; }
.cm-emote-play .cm-emote-film-lid { animation: cm-home-clap 1.8s ease-in-out .2s both; }
.cm-emote-play .cm-emote-glint { animation: cm-home-glint 2s ease-in-out .3s both; }
.cm-emote-play .cm-emote-bubble-front { animation: cm-home-front 2s ease-in-out .2s both; }
.cm-emote-play .cm-emote-bubble-back { animation: cm-home-back 2s ease-in-out .35s both; }
.cm-emote-play .cm-emote-flying-heart { animation: cm-home-heart 2.2s ease-out .6s both; }
.cm-emote-play .cm-emote-calendar-body { animation: cm-home-calendar 1.8s ease-in-out .2s both; }
.cm-emote-play .cm-emote-calendar-check { animation: cm-home-check 1.8s ease-in-out .25s both; }
.cm-emote-play .cm-emote-calendar-spark { animation: cm-home-glint 2s ease-in-out .3s both; }
.cm-emote-play .cm-emote-megaphone-body { animation: cm-home-megaphone 1.8s ease-in-out .2s both; }
.cm-emote-play .cm-emote-megaphone-wave { animation: cm-home-signal 1.8s ease-in-out .3s both; }
.cm-emote-play .cm-emote-target-rings { animation: cm-home-target 1.8s ease-in-out .2s both; }
.cm-emote-play .cm-emote-target-arrow { animation: cm-home-arrow 1.8s ease-in-out .2s both; }

@keyframes cm-home-calendar {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-2px); }
}
@keyframes cm-home-check {
  0% { stroke-dashoffset: 35; opacity: 0; }
  55%, 100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes cm-home-megaphone {
  0%, 100% { transform: rotate(-7deg); }
  45% { transform: rotate(-3deg); }
}
@keyframes cm-home-signal {
  0%, 100% { opacity: .8; }
  35% { opacity: .35; }
  65% { opacity: 1; }
}
@keyframes cm-home-target {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.035); }
}
@keyframes cm-home-arrow {
  0% { transform: translate(3px, -3px); }
  55%, 100% { transform: translate(0, 0); }
}

@keyframes cm-home-film {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  40% { transform: rotate(-3deg) translateY(-2px); }
  70% { transform: rotate(-9deg) translateY(-1px); }
}
@keyframes cm-home-clap {
  0%, 100% { transform: rotate(0); }
  30% { transform: rotate(-7deg); }
  60% { transform: rotate(0); }
}
@keyframes cm-home-glint {
  0%, 100% { opacity: .8; transform: scale(.9); }
  45% { opacity: 1; transform: scale(1.12); }
}
@keyframes cm-home-front {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  45% { transform: rotate(-4deg) translateY(-3px); }
}
@keyframes cm-home-back {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  45% { transform: rotate(4deg) translateY(-2px); }
}
@keyframes cm-home-heart {
  0% { opacity: 0; transform: translate(0, 0) scale(.7); }
  25% { opacity: .7; }
  70% { opacity: .4; }
  100% { opacity: 0; transform: translate(10px, -27px) scale(.85); }
}
html.cm-emotes-suspended .cm-home-emote * { animation-play-state: paused !important; }
@media (max-width: 600px) {
  .cm-home-emote--film,
  .cm-home-emote--service { width: 48px; height: 48px; top: 23px; right: 8px; }
  /* Auch bei einer bereits in v27 zu breiten Grid-Spalte auf 320px bleibt
     nur unser Motiv innerhalb des sichtbaren Bereichs; kein Layout-Umbau. */
  .cm-home-emote--talk {
    width: 59px;
    height: 53px;
    right: max(8px, calc(100% - 100vw + 48px));
    top: -30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cm-home-emote * { animation: none !important; }
}

/* Drei zusätzliche, einzeln platzierte Akzente. Bestehende Motive unverändert. */
.cm-emote-anchor-extra { position: relative; }
.cm-home-emote--extra {
  width: 64px;
  height: 51px;
  top: -58px;
  left: 50%;
  transform: translateX(-50%);
}
.cm-home-emote--personal { left: auto; right: 4px; top: -55px; transform: none; }
.cm-emote-link-body { transform-origin: 50px 41px; }
.cm-emote-personal-body { transform-origin: 48px 48px; }
.cm-emote-envelope-body { transform-origin: 49px 47px; }
.cm-emote-play .cm-emote-link-body { animation: cm-extra-link 2s ease-in-out .2s both; }
.cm-emote-play .cm-emote-personal-body { animation: cm-extra-personal 2s ease-in-out .2s both; }
.cm-emote-play .cm-emote-envelope-body { animation: cm-extra-envelope 2s ease-in-out .2s both; }
@keyframes cm-extra-link {
  0%, 100% { transform: rotate(0); }
  45% { transform: rotate(-3deg); }
}
@keyframes cm-extra-personal {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-2px); }
}
@keyframes cm-extra-envelope {
  0%, 100% { transform: rotate(0) translateY(0); }
  45% { transform: rotate(-3deg) translateY(-2px); }
}
@media (max-width: 600px) {
  .cm-home-emote--extra { width: 52px; height: 42px; top: -48px; }
  .cm-home-emote--personal { top: -47px; right: 4px; }
}
