/* 12.11.2026 – Animierte Effekte (Testpaket): 3 Überschrift, 4 Einblenden, 5 Laufband, 6 Zahlen,
   7 3D-Kippen, 8 Figuren-Clips, 9 Lichtrand, Besucherzähler.
   Alles ohne Fremd-Bibliotheken. Bei „weniger Bewegung“ (prefers-reduced-motion) bleibt die Seite ruhig. */

/* 3 – Überschrift baut sich Wort für Wort auf, mit Goldglanz */
.wort { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(6px);
  animation: wort-rein .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--w, 0) * 110ms + 150ms); }
@keyframes wort-rein { to { opacity: 1; transform: none; filter: none; } }
.hero h1.glanz { background: linear-gradient(100deg, var(--fg) 0%, var(--fg) 42%, #ffe7a3 50%, var(--fg) 58%, var(--fg) 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: h1-glanz 5s ease-in-out 1.6s infinite; }
.hero h1.glanz .wort { -webkit-text-fill-color: transparent; }
@keyframes h1-glanz { 0% { background-position: 110% 0; } 45%, 100% { background-position: -160% 0; } }

/* 4 – Einblenden beim Scrollen */
.rein { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.rein.sichtbar { opacity: 1; transform: none; }

/* 5 – Laufband */
.laufband { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid var(--line); background: #0f0f0d; }
.laufband__spur { display: flex; width: max-content; animation: laufband 38s linear infinite; }
.laufband:hover .laufband__spur { animation-play-state: paused; }
.laufband__teil { display: flex; align-items: center; gap: 28px; padding: 14px 14px; white-space: nowrap;
  font: 400 26px/1 var(--font-display); letter-spacing: .06em; color: var(--fg); }
.laufband__teil b { color: var(--gold); font-weight: 400; }
.laufband__teil i { color: var(--gold); font-style: normal; font-size: 18px; }
@keyframes laufband { to { transform: translateX(-50%); } }

/* 6 – Zahlen, die hochzählen */
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; padding-block: 8px 56px; }
.zahl strong { display: block; font: 400 clamp(52px, 7vw, 84px)/1 var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.zahl span { color: var(--muted); font-size: 15px; }

/* 7 + 9 – 3D-Kippen und Lichtrand, der der Maus folgt */
.kipp { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; will-change: transform; }
.kipp.aktiv { transition: transform .08s linear; }
.licht { position: relative; isolation: isolate; }
.licht::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  padding: 2px; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,224,138,.95), rgba(232,193,90,.25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease; }
.licht::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255,240,200,.14), transparent 60%); opacity: 0; transition: opacity .3s ease; }
.licht.aktiv::after, .licht.aktiv::before { opacity: 1; }

/* 8 – Figuren werden lebendig */
.figur__bild { overflow: hidden; }
.figur__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0; transition: opacity .35s ease; z-index: 1; }
.figur__clip.laeuft { opacity: 1; }
.figur__rolle { z-index: 2; }

/* Besucherzähler im Fuß */
.besucher { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.besucher b { color: var(--gold); font-weight: 700; }
.besucher__punkt { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

@media (prefers-reduced-motion: reduce) {
  .wort { animation: none; opacity: 1; transform: none; filter: none; }
  .hero h1.glanz { animation: none; }
  .rein { opacity: 1; transform: none; transition: none; }
  .laufband__spur { animation: none; }
  .kipp { transform: none !important; }
  .besucher__punkt { animation: none; }
}
