/* Seitenweite Bewegungen im Stil der Startseite (Skript: js/fx-plus.js).
   Alles Selbstlaufende ist bei "Bewegung reduzieren" (html.lite) aus. */

/* ---------- Kompassband an Seitenköpfen und Fußzeile ---------- */
.has-tape { position: relative; }
.page-hero.has-tape { padding-bottom: 96px; }
footer.site.has-tape { padding-top: 104px; }
.fx-tape { position: absolute; left: 0; right: 0; height: 54px; overflow: hidden; pointer-events: none; color: rgba(14, 34, 56, .55);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.fx-tape.bottom { bottom: 0; border-top: 1px solid rgba(14, 34, 56, .1); }
.fx-tape.top { top: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fx-tape.dark { color: rgba(183, 200, 226, .6); }
.fx-tape-track { position: absolute; left: 50%; top: 8px; width: 3620px; will-change: transform; transform: translateX(calc(-1810px + var(--tp, 0px))); animation: fxTape 160s linear infinite; }
@keyframes fxTape { to { translate: -1800px 0; } }
.fx-tape-svg { display: block; stroke: currentColor; stroke-width: 1.3; fill: currentColor; font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.fx-tape-svg text { stroke: none; }
.fx-caret { position: absolute; left: 50%; top: 0; width: 0; height: 0; margin-left: -6px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--blue); }
.fx-tape.dark .fx-caret { border-top-color: #8fc0ff; }
.lite .fx-tape-track { animation: none; }
@media (max-width: 560px) { .page-hero.has-tape { padding-bottom: 84px; } footer.site.has-tape { padding-top: 92px; } }
@media print { .fx-tape { display: none; } }

/* ---------- Überschriften steigen Wort für Wort aus einer Maske auf ---------- */
.fx-h .fw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.fx-h .fw > span { display: inline-block; transform: translateY(112%); transition: transform .95s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 55ms); }
.fx-h.in .fw > span { transform: none; }

/* ---------- Kicker: Pille zieht sich auf, Punkt pulsiert ---------- */
.eyebrow::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin: 0 9px 2px 0; vertical-align: middle; animation: fxPing 2.8s ease-out infinite; }
@keyframes fxPing { 0% { box-shadow: 0 0 0 0 rgba(21, 101, 216, .45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(21, 101, 216, 0); } }
.band-dark .eyebrow::before { animation-name: fxPingLight; }
@keyframes fxPingLight { 0% { box-shadow: 0 0 0 0 rgba(143, 192, 255, .5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(143, 192, 255, 0); } }
.fx-eb { clip-path: inset(0 100% 0 0 round 999px); transition: clip-path 1s cubic-bezier(.2, .8, .2, 1); }
.fx-eb.in { clip-path: inset(0 -2px 0 0 round 999px); }
.lite .eyebrow::before { animation: none; }

/* ---------- Fotos: Wisch-Reveal von links ---------- */
@keyframes fxWipe { from { clip-path: inset(0 100% 0 0 round 24px); } to { clip-path: inset(-90px round 24px); } }
.fx-ready .px:not(.fx-in):not(.hero .px) { clip-path: inset(0 100% 0 0 round 24px); }
.fx-ready .px.fx-in { animation: fxWipe 1.25s cubic-bezier(.7, 0, .2, 1) both; }

/* ---------- 3D-Neigung bei Karten und Fotos (Skript setzt --tx / --ty) ---------- */
.js .card.tilt, .card.tilt { transform: perspective(900px) translateY(-4px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .12s linear, box-shadow .35s ease, border-color .35s ease; }
.px, .strip-item { transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.px.tilt, .strip-item.tilt { transform: perspective(1100px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .12s linear; }

/* ---------- Lichtkegel auf dunklen Flächen folgt der Maus ---------- */
.band-dark, footer.site { background-image: radial-gradient(560px circle at var(--bmx, 82%) var(--bmy, 0%), rgba(110, 170, 255, .16), transparent 62%); background-repeat: no-repeat; }
footer.site:not(.lit), .band-dark:not(.lit) { background-image: none; }

/* ---------- Navigation: gleitende Markierung ---------- */
nav.main { position: relative; }
.nav-ink { position: absolute; left: 0; bottom: -9px; height: 2px; width: 0; border-radius: 2px; background: var(--blue); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1), opacity .25s ease; }

/* ---------- Kleinigkeiten ---------- */
.btn svg { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.btn:hover svg { transform: translateX(4px); }
.progress { background: linear-gradient(90deg, #5ea3ff, var(--blue)); box-shadow: 0 0 12px rgba(21, 101, 216, .55); }
.lite .btn:hover svg { transform: none; }
