/* FocusChina – Animationen (03.11.2026), ergänzt fc-design.css. Alles nur, wenn fc-anim.js läuft (Klasse
   html.fc-anim) und das Gerät keine reduzierte Bewegung wünscht. */

@media (prefers-reduced-motion: no-preference) {

  /* 1. Startbild: Foto zoomt langsam heran, Überschrift Wort für Wort, danach Text, Knöpfe, Eckdaten */
  .fc-anim .fc-hero { background-image: none !important; overflow: hidden; }
  .fc-anim .fc-hero-bg {
    position: absolute; inset: 0; z-index: -2;
    background: url("fc-hero.jpg") center 40% / cover no-repeat;
    transform: scale(1.12);
    animation: fc-zoom 14s cubic-bezier(.2, .6, .2, 1) forwards;
  }
  @media (max-width: 767.98px) { .fc-anim .fc-hero-bg { background-image: url("fc-hero-s.jpg"); } }
  @keyframes fc-zoom { to { transform: scale(1); } }

  .fc-anim .fc-hero h1 .fc-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
  .fc-anim .fc-hero h1 .fc-w > span { display: inline-block; transform: translateY(105%); animation: fc-up 1s cubic-bezier(.2, .7, .1, 1) forwards; animation-delay: calc(.35s + var(--i) * .09s); }
  @keyframes fc-up { to { transform: none; } }

  .fc-anim .fc-hero .fc-eyebrow { opacity: 0; animation: fc-fade .8s ease .15s forwards; }
  .fc-anim .fc-hero .fc-eyebrow::before { transform-origin: left; transform: scaleX(0); animation: fc-line .9s cubic-bezier(.6, 0, .2, 1) .3s forwards; }
  .fc-anim .fc-hero .fc-lead,
  .fc-anim .fc-hero .fc-btns,
  .fc-anim .fc-hero .fc-hero-facts { opacity: 0; transform: translateY(18px); animation: fc-rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
  .fc-anim .fc-hero .fc-lead { animation-delay: 1.1s; }
  .fc-anim .fc-hero .fc-btns { animation-delay: 1.3s; }
  .fc-anim .fc-hero .fc-hero-facts { animation-delay: 1.55s; }
  .fc-anim .fc-hero-facts { border-top-color: transparent; position: relative; }
  .fc-anim .fc-hero-facts::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: rgba(255, 255, 255, .35); transform-origin: left; transform: scaleX(0); animation: fc-line 1.2s cubic-bezier(.6, 0, .2, 1) 1.7s forwards; }
  @keyframes fc-fade { to { opacity: 1; } }
  @keyframes fc-rise { to { opacity: 1; transform: none; } }
  @keyframes fc-line { to { transform: scaleX(1); } }

  /* 2. Pflaumenblüten-Blätter im Startbild (hell, damit sie vor der roten Mauer sichtbar sind) */
  .fc-petals { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
  .fc-petal {
    position: absolute; top: -40px; left: var(--x);
    width: var(--s); height: var(--s);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1C14 5 16 9 10 19C4 9 6 5 10 1Z' fill='%23f6d3cf'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
    opacity: 0;
    animation: fc-fall var(--d) linear var(--delay) infinite;
  }
  .fc-petal--gold { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1C14 5 16 9 10 19C4 9 6 5 10 1Z' fill='%23f3dca6'/%3E%3C/svg%3E"); }
  @keyframes fc-fall {
    0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
    10%  { opacity: .85; }
    50%  { transform: translate3d(calc(var(--drift) * .6), 50vh, 0) rotate(200deg); }
    90%  { opacity: .7; }
    100% { opacity: 0; transform: translate3d(var(--drift), 100vh, 0) rotate(420deg); }
  }

  /* 3. Beim Scrollen: sanft hereingleiten, Linien zeichnen, Fotos wie ein Vorhang, chinesische Zeichen wie Tusche */
  .fc-anim .fc-rv { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * .12s); }
  .fc-anim .fc-rv.is-in { opacity: 1; transform: none; }

  .fc-anim .fc-sechead { border-top-color: transparent; position: relative; }
  .fc-anim .fc-sechead::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--fc-stone); transform-origin: left; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.6, 0, .2, 1); }
  .fc-anim .fc-sechead.is-in::before { transform: scaleX(1); }

  .fc-anim .frame-type-card_group .card-img-top { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); transition-delay: calc(var(--i, 0) * .12s + .1s); }
  .fc-anim .frame-type-card_group .card-img-top img { transform: scale(1.18); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1), filter .6s ease; transition-delay: calc(var(--i, 0) * .12s + .1s); }
  .fc-anim .frame-type-card_group .card.is-in .card-img-top { clip-path: inset(0 0 0 0); }
  .fc-anim .frame-type-card_group .card.is-in .card-img-top img { transform: scale(1); }
  .fc-anim .frame-type-card_group .card.is-in:hover .card-img-top img { transform: scale(1.04); transition-delay: 0s; }

  .fc-anim .fc-zh.fc-ink { opacity: 0; filter: blur(6px); transition: opacity 1.2s ease, filter 1.4s ease; transition-delay: calc(var(--i, 0) * .12s + .35s); }
  .fc-anim .is-in .fc-zh.fc-ink, .fc-anim .fc-zh.fc-ink.is-in { opacity: 1; filter: blur(0); }

  /* 4. Fotoband Reiseleiter: Hintergrund bewegt sich langsamer (Tiefenwirkung) */
  .fc-anim #c2.fc-band .frame-backgroundimage { will-change: transform; transform: translate3d(0, var(--fc-par, 0px), 0) scale(1.15); }
}
