/* biteme.digital . Zwei kleine Signaturmomente (Fable Runde 2, 11.11.2026):
   Kontakt, Bjoern ploppt einmal aus dem Wasser. 404, die Laterne.
   Alles hier wirkt nur mit den Elementen und Klassen, die fx-momente.js anlegt. */

/* ------------------------------------------------ Kontakt: Bjoern ploppt */
.fx-plopp-host { position: relative; }
.fx-plopp {
  position: absolute; right: max(4%, calc(50% - 600px)); bottom: 6px; width: 300px; height: 210px;
  pointer-events: none; transform-origin: 100% 100%;
}
/* Luftraum ueber der Wasserlinie: darunter ist der Fisch nicht zu sehen.
   Gespiegelt (Juergen 11.11.: der Fisch sprang rueckwaerts): Das Logo schaut nach rechts. Im Luftraum
   laeuft der Pfad von links nach rechts, Nase voraus; die Spiegelung dreht das Bild um, der Fisch
   springt also wie bisher von rechts nach links auf die Ueberschrift zu, jetzt mit der Nase voraus. */
.fx-plopp__luft { position: absolute; left: 0; right: 0; top: -60px; bottom: 21px; overflow: hidden; transform: scaleX(-1); }
.fx-plopp__fisch {
  position: absolute; left: 0; top: 60px; width: 72px; height: 72px; margin: -36px 0 0 -36px; opacity: 0;
  offset-path: path('M64 196Q150 -70 236 196'); offset-rotate: auto; offset-distance: 0%;
  filter: drop-shadow(0 0 14px rgba(160, 239, 255, 0.45));
}
.fx-plopp__welle { position: absolute; left: 0; bottom: 0; width: 100%; height: 40px; overflow: visible; }
/* Klickflaeche ueber der Welle (der Rest von .fx-plopp faengt keine Klicks) */
.fx-plopp__griff { position: absolute; left: 24px; right: 24px; bottom: -22px; height: 84px; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fx-plopp__griff:hover + .fx-plopp__welle path { opacity: 0.95; stroke-width: 3; }
.fx-plopp__welle path {
  fill: none; stroke: var(--accent-caribbean, #A0EFFF); stroke-width: 2; stroke-linecap: round; opacity: 0.55;
  -webkit-mask-image: none;
}
.fx-plopp__welle { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.fx-plopp__ring {
  position: absolute; bottom: 12px; width: 70px; height: 16px; margin-left: -35px; border-radius: 50%;
  border: 2px solid var(--accent-caribbean, #A0EFFF); opacity: 0;
}
.fx-plopp__ring--raus { left: 236px; }
.fx-plopp__ring--rein { left: 64px; }
.fx-plopp__tropfen {
  position: absolute; bottom: 18px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--accent-caribbean, #A0EFFF); opacity: 0;
}
.fx-plopp__tropfen--raus { left: 236px; }
.fx-plopp__tropfen--rein { left: 64px; }
.fx-plopp__tropfen:nth-of-type(4n+1) { --dx: -34px; --dy: -58px; }
.fx-plopp__tropfen:nth-of-type(4n+2) { --dx: -12px; --dy: -84px; width: 5px; height: 5px; }
.fx-plopp__tropfen:nth-of-type(4n+3) { --dx: 16px; --dy: -72px; width: 7px; height: 7px; }
.fx-plopp__tropfen:nth-of-type(4n)   { --dx: 38px; --dy: -46px; width: 4px; height: 4px; }

.fx-plopp.is-plopp .fx-plopp__fisch { animation: plopp-flug 1.35s cubic-bezier(0.33, 0.12, 0.67, 0.88) both; }
.fx-plopp.is-plopp .fx-plopp__welle path { animation: plopp-welle 1.9s ease-out both; }
.fx-plopp.is-plopp .fx-plopp__ring--raus { animation: plopp-ring 0.9s ease-out both; }
.fx-plopp.is-plopp .fx-plopp__ring--rein { animation: plopp-ring 0.9s ease-out 1.22s both; }
.fx-plopp.is-plopp .fx-plopp__tropfen--raus { animation: plopp-tropfen 0.75s cubic-bezier(0.2, 0.7, 0.4, 1) 0.03s both; }
.fx-plopp.is-plopp .fx-plopp__tropfen--rein { animation: plopp-tropfen 0.75s cubic-bezier(0.2, 0.7, 0.4, 1) 1.24s both; }

@keyframes plopp-flug { 0% { offset-distance: 0%; opacity: 0; } 5% { opacity: 1; } 94% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes plopp-welle { 0%, 100% { transform: translateY(0); opacity: 0.55; } 8% { transform: translateY(-4px); opacity: 0.9; } 30% { transform: translateY(2px); } 66% { transform: translateY(-3px); opacity: 0.9; } 84% { transform: translateY(2px); } }
@keyframes plopp-ring { 0% { transform: scale(0.3); opacity: 0.85; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes plopp-tropfen { 0% { transform: translate(0, 0); opacity: 0.95; } 55% { transform: translate(var(--dx), var(--dy)); opacity: 0.9; } 100% { transform: translate(calc(var(--dx) * 1.35), calc(var(--dy) * 0.25)); opacity: 0; } }

/* Handy: kleiner, tiefer gesetzt und mit flacherem Bogen, damit der Sprung unter dem Text bleibt */
@media (max-width: 899px) {
  .fx-plopp { right: 3%; bottom: -40px; transform: scale(0.52); }
  .fx-plopp__fisch { offset-path: path('M64 196Q150 40 236 196'); }
}
/* aeltere Browser ohne Bewegungspfad: kein Sprung, nur die Wasserlinie */
@supports not (offset-path: path('M0 0L1 1')) { .fx-plopp__fisch { display: none; } }

/* ------------------------------------------------------- 404: Laterne */
/* Zwei Schichten (Fable Runde 4, Kontrastmessung): das Dunkel liegt zum groesseren Teil UNTER dem Text
   (.fx-dunkel--grund, 0.69) und nur zum kleineren Teil darueber (.fx-dunkel, 0.36). Zusammen bleibt der
   Hintergrund so dunkel wie zuvor (0.80), der Text daemmert aber nur ab und bleibt ueberall lesbar
   (mindestens 4,5:1 auch ausserhalb des Lichtkreises). Lage und Radius stehen als --lx, --ly, --lr an main. */
.fx-dunkel {
  --lr-wirk: var(--lr, 450px);
  position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle var(--lr-wirk) at var(--lx, 50%) var(--ly, 40%),
    rgba(255, 216, 140, 0.15) 0%, rgba(255, 216, 140, 0.05) 30%, rgba(3, 7, 18, 0) 52%, rgba(3, 7, 18, 0.36) 100%);
}
.fx-dunkel--grund {
  z-index: 0;
  background: radial-gradient(circle var(--lr-wirk) at var(--lx, 50%) var(--ly, 40%),
    rgba(3, 7, 18, 0) 52%, rgba(3, 7, 18, 0.69) 100%);
}
.fx-laterne .nf { position: relative; z-index: 1; }
.fx-laterne .nf__fish { filter: drop-shadow(0 0 22px rgba(255, 214, 140, 0.55)); }
/* Kleintext im Daemmer: volle Textfarbe statt gedaempft, die Maschinenzeile ohne eigene Abschwaechung */
.fx-laterne .nf__paths { color: var(--text-primary); }
.fx-laterne .nf__paths--machine { opacity: 1; }
@media (max-width: 699px) {
  .fx-dunkel { --lr-wirk: calc(var(--lr, 450px) * 0.78); }
}
