diff --git a/public/custom/tiefenflug.css b/public/custom/tiefenflug.css
index 3e4ef1e..4f122be 100644
--- a/public/custom/tiefenflug.css
+++ b/public/custom/tiefenflug.css
@@ -343,6 +343,22 @@
}
.konfetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
+/* Flug-Partikel: Staub, Lichtstreifen und Bokeh fliegen der Kamera entgegen */
+.flug-partikel { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; }
+.partikel {
+ position: absolute; left: 50%; top: 50%;
+ opacity: 0;
+ will-change: transform, opacity;
+}
+.partikel.staub { width: 5px; height: 5px; border-radius: 50%; background: rgba(102, 112, 133, 0.8); }
+.partikel.staub.gold { background: rgba(201, 162, 39, 0.8); }
+.partikel.streif { width: 42px; height: 2px; background: linear-gradient(to right, transparent, rgba(102, 112, 133, 0.6)); }
+.partikel.bokeh {
+ width: 28px; height: 28px; border-radius: 50%;
+ background: radial-gradient(circle, rgba(201, 162, 39, 0.35), rgba(201, 162, 39, 0.03));
+ filter: blur(1px);
+}
+
/* ==================== FALLBACKS ====================
- .kein-js: steht im HTML und wird von tiefenflug.js entfernt;
ohne JS bleibt sie stehen und das Intro verschwindet.
diff --git a/public/custom/tiefenflug.js b/public/custom/tiefenflug.js
index 786387b..3f078ac 100644
--- a/public/custom/tiefenflug.js
+++ b/public/custom/tiefenflug.js
@@ -27,6 +27,8 @@
var geister = [].slice.call(buehne.querySelectorAll('.geist'));
var fotos = [].slice.call(buehne.querySelectorAll('.flug-foto'))
.filter(function (f) { return f.offsetParent !== null; }); // mobil ausgeblendete überspringen
+ var partikel = [].slice.call(buehne.querySelectorAll('.partikel'))
+ .filter(function (p) { return p.offsetParent !== null; });
var FLUG_TIEFE = 1650; // px, die die Kamera nach vorn fliegt
var FLUG_ENDE = 0.65; // Anteil der Strecke, bis zu dem die Kamerafahrt läuft
@@ -87,6 +89,19 @@
' rotateY(' + foto.dataset.kipp + 'deg) rotateZ(' + kurve + 'deg)';
});
+ // Partikel: gleiche Kamerafahrt wie die Fotos, leicht stärkere Parallaxe
+ partikel.forEach(function (teil) {
+ var z = parseFloat(teil.dataset.z) + kamZ;
+ var x = parseFloat(teil.dataset.x) - kamX * 1.2;
+ var y = parseFloat(teil.dataset.y) - kamY * 1.2;
+ var sicht = parseFloat(teil.dataset.op);
+ if (z > 200) sicht *= Math.max(0, 1 - (z - 200) / 140); // vorbeigeflogen
+ teil.style.opacity = sicht * (1 - wegT);
+ teil.style.transform =
+ 'translate(-50%, -50%) translate3d(' + x + 'px,' + y + 'px,' + z + 'px)' +
+ (teil.dataset.w ? ' rotate(' + teil.dataset.w + 'deg)' : '');
+ });
+
// Name: Buchstabenabstand zieht sich zusammen, wächst leicht, Parallaxe
var abstand = 18 - flug * 16;
var deckkraftName = flug < 0.8 ? 1 : Math.max(0, 1 - (flug - 0.8) / 0.15);
diff --git a/public/start-2.html b/public/start-2.html
index 8720cab..ff25dca 100644
--- a/public/start-2.html
+++ b/public/start-2.html
@@ -63,6 +63,34 @@
+
+