From d7c4fc547ceaaac98ad7e965d121b91e8467dcbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Tonh=C3=A4user?= Date: Thu, 11 Jun 2026 11:45:43 +0200 Subject: [PATCH 1/9] docs: Designkonzept Tiefenflug-Feinschliff festhalten Co-Authored-By: Claude Fable 5 --- ...026-06-11-tiefenflug-feinschliff-design.md | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 docs/superpowers/specs/2026-06-11-tiefenflug-feinschliff-design.md diff --git a/docs/superpowers/specs/2026-06-11-tiefenflug-feinschliff-design.md b/docs/superpowers/specs/2026-06-11-tiefenflug-feinschliff-design.md new file mode 100644 index 0000000..c8123f5 --- /dev/null +++ b/docs/superpowers/specs/2026-06-11-tiefenflug-feinschliff-design.md @@ -0,0 +1,98 @@ +# Tiefenflug-Feinschliff – Designdokument + +**Datum:** 11. Juni 2026 +**Status:** Vom Nutzer freigegeben +**Baut auf:** `docs/superpowers/specs/2026-06-11-startseite-tiefenflug-design.md` und dem umgesetzten Stand auf Branch `feature/startseite-tiefenflug` (Commits bis `64dfac9`). + +## Ziel + +Vier Verbesserungen am Intro von `public/start-2.html`: + +1. **Preis-Moment steht allein** – aktuell ragt noch ein Flug-Foto in den Preis-Moment hinein. +2. **Vollbild-Übergang** – das Gewinnerbild wächst am Ende ins Vollbild und geht unten + über einen weißen Verlauf in die normale Startseite über. +3. **Flug-Partikel** – beim Flug durch die Fotos kommen Partikel entgegen + (realistischeres Fluggefühl). +4. **Name-Moment** – vor dem Gewinnerbild erscheint „LEON TONHÄUSER" mit + Buchstaben-Animation (Umrisse füllen sich nacheinander). + +## Neue Dramaturgie + +Die Scroll-Strecke `#flug-strecke` wächst von 480vh auf **~640vh** (mobil entsprechend +von 380vh auf ~500vh). Der Scroll-Fortschritt 0..1 teilt sich in fünf Phasen: + +| Phase | Fortschritt | Inhalt | +|---|---|---| +| Flug | 0,00–0,55 | Kamerafahrt durch die 8 Fotos wie bisher; Partikel-Mix fliegt entgegen | +| Abschied | 0,55–0,65 | Letzte Fotos ziehen vorbei, Umriss-Name blendet aus → Bühne komplett leer | +| Name | 0,65–0,78 | „LEON TONHÄUSER" erscheint als Umriss; Buchstaben füllen sich nacheinander schwarz; danach Ausblenden | +| Preis-Moment | 0,78–0,88 | Gewinnerbild steigt allein auf; 3D-Medaille dreht daneben; Gold-Schriftzug mit Rieseln; Konfetti einmalig | +| Vollbild & Landung | 0,88–1,00 | Bild wächst ins Vollbild, Medaille/Schriftzug blenden aus, weißer Verlauf unten; danach scrollt die Landung herein | + +Wichtig: **Kein Flug-Foto darf im Preis-Moment mehr sichtbar sein.** Die Ausblend-Logik +(`z > 260` → Deckkraft 0) wird so ergänzt, dass ab Phase „Abschied" alle Fotos +unabhängig von ihrer Z-Position vollständig ausgeblendet werden. + +## Preis-Moment im Detail + +- Das Gewinnerbild steht allein auf weißer Bühne (kein Hintergrundbild, kein Name). +- **3D-Medaille:** CSS-Münze rechts neben dem Bild, dreht sich langsam dauerhaft um die + Y-Achse (`rotateY`-Keyframe). Goldener Radialverlauf, „1" auf der Vorderseite, + Rückseite ebenfalls gold. Ersetzt die bisherige flache Medaille am unteren Bildrand. +- **Gold-Schriftzug:** „NACHWUCHSPREIS 2025" unter dem Bild, Fragment Mono wie bisher, + aber mit wanderndem Goldverlauf (`background-clip: text` + animierte + `background-position`). +- **Gold-Rieseln:** ca. 10 kleine goldene Partikel (HTML-Elemente) fallen in + Dauerschleife vom Schriftzug herab und blenden dabei aus. +- Konfetti-Verhalten unverändert (feuert einmalig beim Erreichen des Preis-Moments). + +## Vollbild-Übergang + +- Beim Weiterscrollen (Phase 5) skaliert das Gewinnerbild weich per `transform: scale`, + bis es den gesamten Viewport abdeckt (Skalierungsfaktor aus Viewport-/Bildgröße + berechnet); Rundung und Schatten blenden über eine CSS-Klasse aus. +- Medaille und Schriftzug blenden während des Wachsens aus. +- Am unteren Rand der Bühne liegt ein **weißer Verlauf** (transparent → weiß, ca. 30vh + hoch), der das Vollbild weich in die weiße Landung auslaufen lässt. +- Nach Fortschritt 1 endet die Sticky-Bühne wie bisher; die Landung scrollt darüber. +- Das „Einrasten" (nach erstem Durchflug kein Zurückscrollen vor den Preis-Moment) + bleibt unverändert. + +## Flug-Partikel (Mix) + +- **Bauweise:** HTML-Elemente (keine Canvas), bewegt von derselben Scroll-Logik wie + die Flug-Fotos (eigene `data-z`-Tiefenstaffelung, Bewegung nur über + `transform`/`opacity`). +- **Mischung:** ca. 20–25 Stück gesamt – + - feiner Staub (Basis): kleine Punkte, grau (`#667085`-Ton) und gold (`#c9a227`-Ton), + - 4–5 Lichtstreifen: kurze Linien für Tempo-Gefühl, + - 2–3 Bokeh-Kreise: größer, weich, halbtransparent, leicht unscharf. +- Partikel sind während der Phasen Flug und Abschied sichtbar, danach aus. +- **Mobil** (≤760px): etwa die halbe Menge (per `data-mobil="aus"` wie bei den Fotos). + +## Name-Moment (Variante C – Umriss füllt sich) + +- Markup: eigener Block in der Bühne, jeder Buchstabe ein `` + („LEON TONHÄUSER", 14 Spans inkl. geschütztem Leerzeichen). +- Buchstaben starten als Umriss (`color: transparent` + + `-webkit-text-stroke`) – knüpft optisch an den Umriss-Namen des Flugs an. +- Beim Eintritt in die Name-Phase löst das JS **einmalig** das Füllen aus + (CSS-Klasse setzt gestaffelte Übergänge, ~0,1s Versatz pro Buchstabe); + die Sichtbarkeit des Blocks (Ein-/Ausblenden) bleibt scrollgesteuert. +- Kein Gold – schwarze Füllung; das Gold gehört allein dem Preis-Moment. + +## Technik & Fallbacks + +- Nur die drei bestehenden Dateien werden geändert: `public/start-2.html`, + `public/custom/tiefenflug.css`, `public/custom/tiefenflug.js`. Keine neuen + Abhängigkeiten. +- Animationen ausschließlich über `transform` und `opacity` (flüssig, GPU-freundlich). +- Fallbacks unverändert: ohne JS und bei `prefers-reduced-motion` erscheint direkt die + normale Seite; die neuen Dauer-Animationen (Medaille, Rieseln) werden bei + `prefers-reduced-motion` zusätzlich deaktiviert (greift nur, falls das Intro doch + sichtbar ist). + +## Offene Punkte für Leon + +Unverändert aus der Ursprungs-Spec: echte Fotoauswahl (Flug, Verläufe, Gewinnerbild) +und offizieller Wortlaut „Nachwuchspreis 2025". From 3a88f000a33a5f32400e4c9c109f2f2c36593f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Tonh=C3=A4user?= Date: Thu, 11 Jun 2026 11:52:18 +0200 Subject: [PATCH 2/9] docs: Implementierungsplan Tiefenflug-Feinschliff Co-Authored-By: Claude Fable 5 --- .../2026-06-11-tiefenflug-feinschliff.md | 644 ++++++++++++++++++ 1 file changed, 644 insertions(+) create mode 100644 docs/superpowers/plans/2026-06-11-tiefenflug-feinschliff.md diff --git a/docs/superpowers/plans/2026-06-11-tiefenflug-feinschliff.md b/docs/superpowers/plans/2026-06-11-tiefenflug-feinschliff.md new file mode 100644 index 0000000..4459d9f --- /dev/null +++ b/docs/superpowers/plans/2026-06-11-tiefenflug-feinschliff.md @@ -0,0 +1,644 @@ +# Tiefenflug-Feinschliff – Implementierungsplan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Ziel:** Die vier abgenommenen Verbesserungen aus `docs/superpowers/specs/2026-06-11-tiefenflug-feinschliff-design.md` umsetzen: leere Bühne im Preis-Moment, Vollbild-Übergang mit weißem Verlauf, Flug-Partikel-Mix, Name-Moment mit sich füllenden Umriss-Buchstaben. + +**Architektur:** Ausschließlich Änderungen an den drei bestehenden Dateien (`public/start-2.html`, `public/custom/tiefenflug.css`, `public/custom/tiefenflug.js`). Der Scroll-Fortschritt 0..1 wird in fünf Phasen geteilt (Flug 0–0,55 / Abschied 0,55–0,65 / Name 0,65–0,78 / Preis 0,78–0,88 / Vollbild 0,88–1). Partikel sind HTML-Elemente, bewegt von derselben Scroll-Logik wie die Fotos. Nur `transform`/`opacity`. + +**Tech-Stack:** Statisches HTML/CSS/JS, canvas-confetti (bereits vendored), kein Build-Schritt. + +**Branch:** `feature/startseite-tiefenflug` (bereits ausgecheckt, Stand: Commit `d7c4fc5`). + +**Hinweis zum Testen:** Es gibt kein Test-Framework – geprüft wird wie bisher per `node --check`, `curl` gegen einen lokalen Server (`python3 -m http.server 8000 --directory public`) und Headless-Chrome/Browser-Sichtprüfung. + +--- + +### Task 1: Neue Phasen-Dramaturgie + leere Bühne im Preis-Moment + +**Files:** +- Modify: `public/custom/tiefenflug.css` (Abschnitt TIEFENFLUG-INTRO und FALLBACKS) +- Modify: `public/custom/tiefenflug.js` (Konstanten + `zeichnen()`) + +- [ ] **Schritt 1.1: Scroll-Strecke verlängern (CSS)** + +In `public/custom/tiefenflug.css` ersetzen: + +```css +.flug-strecke { height: 480vh; position: relative; } +``` + +durch: + +```css +.flug-strecke { height: 640vh; position: relative; } +``` + +und im `@media (max-width: 760px)`-Block des FALLBACKS-Abschnitts: + +```css + .flug-strecke { height: 380vh; } +``` + +durch: + +```css + .flug-strecke { height: 500vh; } +``` + +- [ ] **Schritt 1.2: Phasen-Konstanten im JS ersetzen** + +In `public/custom/tiefenflug.js` den Block + +```js + var FLUG_TIEFE = 1650; // px, die die Kamera nach vorn fliegt + var FLUG_ENDE = 0.72; // Anteil der Strecke, ab dem der Preis-Moment beginnt + var SCHWENK = 130; // px seitliches Ausscheren (rechts, dann links) + var SINKFLUG = 190; // px Sinkflug am Ende + var GEIST_FENSTER = [[0.10, 0.30], [0.30, 0.50], [0.50, 0.68]]; +``` + +ersetzen durch: + +```js + 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 + var ABSCHIED = [0.55, 0.65]; // Fotos räumen die Bühne (alles ausblenden) + var NAME_FENSTER = [0.65, 0.78]; // Name-Moment (Task 3) + var PREIS_START = 0.78; // ab hier steigt das Gewinnerbild auf + var VOLLBILD = [0.88, 1]; // Bild wächst ins Vollbild (Task 5) + var SCHWENK = 130; // px seitliches Ausscheren (rechts, dann links) + var SINKFLUG = 190; // px Sinkflug am Ende + var GEIST_FENSTER = [[0.08, 0.25], [0.25, 0.42], [0.42, 0.60]]; +``` + +- [ ] **Schritt 1.3: Abschied-Ausblendung in `zeichnen()` einbauen** + +In `zeichnen()` direkt nach der Zeile `var kurve = -kamX / SCHWENK * 2.5; // leichtes Gegen-Kippen in der Kurve` einfügen: + +```js + // Abschied: ab hier blenden alle Fotos unabhängig von ihrer Tiefe aus, + // damit der Preis-Moment auf komplett leerer Bühne stattfindet + var wegT = Math.max(0, Math.min((fortschritt - ABSCHIED[0]) / (ABSCHIED[1] - ABSCHIED[0]), 1)); +``` + +Danach in der Foto-Schleife den Block + +```js + var deckkraft = 1; + if (z > 260) deckkraft = Math.max(0, 1 - (z - 260) / 160); // passiert → ausblenden +``` + +ersetzen durch: + +```js + var deckkraft = 1; + if (z > 260) deckkraft = Math.max(0, 1 - (z - 260) / 160); // passiert → ausblenden + deckkraft = Math.min(deckkraft, 1 - wegT); // Abschied: Bühne räumen +``` + +- [ ] **Schritt 1.4: Preis-Start an neue Phase koppeln** + +Die Zeile + +```js + var preisDa = Math.max(0, Math.min((fortschritt - FLUG_ENDE) / 0.08, 1)); +``` + +ersetzen durch: + +```js + var preisDa = Math.max(0, Math.min((fortschritt - PREIS_START) / 0.06, 1)); +``` + +- [ ] **Schritt 1.5: Prüfen** + +```bash +node --check public/custom/tiefenflug.js && echo "Syntax OK" +grep -c "640vh\|500vh" public/custom/tiefenflug.css +``` + +Erwartet: `Syntax OK` und `2`. Browser-Stichprobe (`http://localhost:8000/start-2.html`): Beim Scrollen verschwinden **alle** Fotos, bevor das Gewinnerbild aufsteigt; zwischen Fotos und Preis-Moment ist die Bühne eine Zeit lang leer (dort entsteht in Task 3 der Name-Moment). + +- [ ] **Schritt 1.6: Commit** + +```bash +git add public/custom/tiefenflug.css public/custom/tiefenflug.js +git commit -m "feat: Tiefenflug-Phasen neu aufgeteilt, Preis-Moment auf leerer Bühne" +``` + +--- + +### Task 2: Flug-Partikel (Staub + Lichtstreifen + Bokeh) + +**Files:** +- Modify: `public/start-2.html` (Bühne, nach den `.geist`-Bildern) +- Modify: `public/custom/tiefenflug.css` (anhängen an TIEFENFLUG-INTRO, vor FALLBACKS) +- Modify: `public/custom/tiefenflug.js` + +- [ ] **Schritt 2.1: Partikel-Markup einfügen** + +In `public/start-2.html` direkt nach der dritten `.geist`-Zeile (`…QwfHCkpPLinsSAI5SjDYNNwjQQ.jpg…`) einfügen: + +```html + + +``` + +(22 Partikel: 14 Staub – davon 5 gold –, 4 Streifen, 4 Bokeh; 10 mit `data-mobil="aus"`.) + +- [ ] **Schritt 2.2: Partikel-CSS anhängen** + +In `public/custom/tiefenflug.css` direkt **vor** dem Kommentarblock `/* ==================== FALLBACKS ====================` einfügen: + +```css +/* Flug-Partikel: Staub, Lichtstreifen und Bokeh fliegen der Kamera entgegen */ +.flug-partikel { position: absolute; inset: 0; pointer-events: none; } +.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); +} +``` + +- [ ] **Schritt 2.3: Partikel-Bewegung im JS** + +In `public/custom/tiefenflug.js` nach dem `fotos`-Block (`.filter(function (f) { return f.offsetParent !== null; }); // mobil ausgeblendete überspringen`) einfügen: + +```js + var partikel = [].slice.call(buehne.querySelectorAll('.partikel')) + .filter(function (p) { return p.offsetParent !== null; }); +``` + +In `zeichnen()` direkt nach der schließenden Zeile der Foto-Schleife (`});` nach dem `foto.style.transform`-Block) einfügen: + +```js + // 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)' : ''); + }); +``` + +- [ ] **Schritt 2.4: Prüfen** + +```bash +node --check public/custom/tiefenflug.js && echo "Syntax OK" +curl -s http://localhost:8000/start-2.html | grep -c 'class="partikel' +``` + +Erwartet: `Syntax OK` und `22`. Browser: Beim Scrollen ziehen kleine graue/goldene Punkte, vereinzelte Streifen und weiche Bokeh-Kreise an einem vorbei; im Preis-Moment sind sie verschwunden. + +- [ ] **Schritt 2.5: Commit** + +```bash +git add public/start-2.html public/custom/tiefenflug.css public/custom/tiefenflug.js +git commit -m "feat: Flug-Partikel (Staub, Lichtstreifen, Bokeh) im Tiefenflug" +``` + +--- + +### Task 3: Name-Moment (Umriss-Buchstaben füllen sich) + +**Files:** +- Modify: `public/start-2.html` (Bühne, nach `#flug-name`) +- Modify: `public/custom/tiefenflug.css` (vor FALLBACKS anhängen) +- Modify: `public/custom/tiefenflug.js` + +- [ ] **Schritt 3.1: Markup einfügen** + +In `public/start-2.html` direkt nach der Zeile `
LEON TONHÄUSER
` einfügen: + +```html + + +``` + +- [ ] **Schritt 3.2: CSS anhängen** + +Vor dem FALLBACKS-Kommentarblock in `public/custom/tiefenflug.css` einfügen: + +```css +/* Name-Moment: Umriss-Buchstaben füllen sich nacheinander schwarz. + Das Füllen löst tiefenflug.js einmalig über die Klasse .gefuellt aus; + das Ein-/Ausblenden des Blocks steuert der Scroll-Fortschritt. */ +.name-moment { + position: absolute; left: 50%; top: 50%; + transform: translate(-50%, -50%); + font-weight: 600; + font-size: clamp(34px, 6vw, 84px); + letter-spacing: 8px; + white-space: nowrap; + opacity: 0; + will-change: opacity; + pointer-events: none; +} +.name-moment span { + color: transparent; + -webkit-text-stroke: 1.2px rgba(18, 18, 18, 0.4); + transition: color 0.45s ease-out, -webkit-text-stroke-color 0.45s ease-out; +} +.name-moment.gefuellt span { color: var(--text); -webkit-text-stroke-color: transparent; } +.name-moment span:nth-child(1) { transition-delay: 0.00s; } +.name-moment span:nth-child(2) { transition-delay: 0.10s; } +.name-moment span:nth-child(3) { transition-delay: 0.20s; } +.name-moment span:nth-child(4) { transition-delay: 0.30s; } +.name-moment span:nth-child(5) { transition-delay: 0.40s; } +.name-moment span:nth-child(6) { transition-delay: 0.50s; } +.name-moment span:nth-child(7) { transition-delay: 0.60s; } +.name-moment span:nth-child(8) { transition-delay: 0.70s; } +.name-moment span:nth-child(9) { transition-delay: 0.80s; } +.name-moment span:nth-child(10) { transition-delay: 0.90s; } +.name-moment span:nth-child(11) { transition-delay: 1.00s; } +.name-moment span:nth-child(12) { transition-delay: 1.10s; } +.name-moment span:nth-child(13) { transition-delay: 1.20s; } +.name-moment span:nth-child(14) { transition-delay: 1.30s; } +``` + +- [ ] **Schritt 3.3: JS-Logik** + +In `public/custom/tiefenflug.js` nach der Zeile `var hinweis = document.getElementById('flug-hinweis');` einfügen: + +```js + var nameMoment = document.getElementById('name-moment'); + var nameGefuellt = false; +``` + +In `zeichnen()` direkt **vor** dem Kommentar `// Preis-Moment: steigt von unten herauf, dann Konfetti` einfügen: + +```js + // Name-Moment: weich ein- und ausblenden, Füllen einmalig auslösen + var nameDa = fenster01(fortschritt, NAME_FENSTER[0], NAME_FENSTER[1]); + nameMoment.style.opacity = nameDa; + if (!nameGefuellt && fortschritt > NAME_FENSTER[0] + 0.02) { + nameGefuellt = true; + nameMoment.classList.add('gefuellt'); + } +``` + +- [ ] **Schritt 3.4: Prüfen** + +```bash +node --check public/custom/tiefenflug.js && echo "Syntax OK" +curl -s http://localhost:8000/start-2.html | grep -o 'name-moment' | head -1 +``` + +Erwartet: `Syntax OK` und `name-moment`. Browser: Nach dem Abschied der Fotos erscheint der Name als Umriss, die Buchstaben füllen sich von links nach rechts schwarz, danach blendet er aus und das Gewinnerbild steigt auf. + +- [ ] **Schritt 3.5: Commit** + +```bash +git add public/start-2.html public/custom/tiefenflug.css public/custom/tiefenflug.js +git commit -m "feat: Name-Moment mit sich füllenden Umriss-Buchstaben" +``` + +--- + +### Task 4: Preis-Moment – 3D-Medaille, Gold-Schriftzug, Gold-Rieseln + +**Files:** +- Modify: `public/start-2.html` (Preis-Block) +- Modify: `public/custom/tiefenflug.css` (`.medaille`- und `.preis-text`-Regeln ersetzen) + +- [ ] **Schritt 4.1: Preis-Markup ersetzen** + +In `public/start-2.html` den Block + +```html +
+ + Gewinnerbild Nachwuchspreis 2025 +
1
+
+
NACHWUCHSPREIS 2025
+``` + +ersetzen durch: + +```html +
+ + Gewinnerbild Nachwuchspreis 2025 + + +
+ +
NACHWUCHSPREIS 2025
+``` + +- [ ] **Schritt 4.2: CSS ersetzen** + +In `public/custom/tiefenflug.css` die beiden Regeln + +```css +.medaille { + position: absolute; left: 50%; bottom: -44px; + transform: translateX(-50%); + z-index: 3; + width: 96px; height: 96px; + border-radius: 50%; + background: radial-gradient(circle at 35% 30%, #f3d27a, #c9a227 60%, #9a7a1c); + display: flex; align-items: center; justify-content: center; + font-weight: 600; font-size: 34px; color: #fff; + border: 3px solid #fff; + box-shadow: 0 10px 28px rgba(154, 122, 28, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.5); +} +.preis-text { + margin-top: 64px; + font-family: "Fragment Mono", monospace; + font-size: 14px; + letter-spacing: 3px; + color: #9a7a1c; +} +``` + +ersetzen durch: + +```css +/* 3D-Medaille: flache CSS-Münze, dreht sich dauerhaft um die Y-Achse */ +.medaille-3d { + position: absolute; right: -48px; top: 50%; + width: 96px; height: 96px; + margin-top: -48px; + perspective: 420px; + z-index: 3; +} +.medaille-kern { + position: relative; + width: 100%; height: 100%; + transform-style: preserve-3d; + animation: muenzdrehung 6s linear infinite; +} +@keyframes muenzdrehung { + from { transform: rotateY(0deg); } + to { transform: rotateY(360deg); } +} +.medaille-seite { + position: absolute; inset: 0; + border-radius: 50%; + backface-visibility: hidden; + background: radial-gradient(circle at 35% 30%, #f3d27a, #c9a227 60%, #9a7a1c); + display: flex; align-items: center; justify-content: center; + font-weight: 600; font-size: 34px; color: #fff; + border: 3px solid #fff; + box-shadow: 0 10px 28px rgba(154, 122, 28, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.5); +} +.medaille-seite.hinten { transform: rotateY(180deg); } + +/* Gold-Schriftzug: Verlauf wandert durch den Text */ +.preis-text { + position: relative; + margin-top: 28px; + font-family: "Fragment Mono", monospace; + font-size: 14px; + letter-spacing: 3px; + background: linear-gradient(100deg, #9a7a1c 0%, #c9a227 30%, #f7e7ae 50%, #c9a227 70%, #9a7a1c 100%); + background-size: 200% 100%; + -webkit-background-clip: text; + background-clip: text; + color: transparent; + animation: goldglanz 3s linear infinite; +} +@keyframes goldglanz { + from { background-position: 200% 0; } + to { background-position: -200% 0; } +} + +/* Gold-Rieseln: kleine Partikel fallen vom Schriftzug herab */ +.preis-text .rieseln { + position: absolute; top: 100%; + width: 3px; height: 3px; + border-radius: 50%; + background: #c9a227; + opacity: 0; + animation: rieseln 2.8s linear infinite; +} +@keyframes rieseln { + 0% { transform: translate(0, 0); opacity: 0; } + 15% { opacity: 0.9; } + 100% { transform: translate(var(--drift, 0px), 46px); opacity: 0; } +} +.preis-text .rieseln:nth-child(1) { left: 6%; animation-delay: 0.0s; --drift: -6px; } +.preis-text .rieseln:nth-child(2) { left: 16%; animation-delay: 1.1s; --drift: 4px; } +.preis-text .rieseln:nth-child(3) { left: 25%; animation-delay: 0.4s; --drift: -3px; } +.preis-text .rieseln:nth-child(4) { left: 34%; animation-delay: 1.8s; --drift: 5px; } +.preis-text .rieseln:nth-child(5) { left: 45%; animation-delay: 0.8s; --drift: -5px; } +.preis-text .rieseln:nth-child(6) { left: 55%; animation-delay: 2.2s; --drift: 3px; } +.preis-text .rieseln:nth-child(7) { left: 64%; animation-delay: 0.2s; --drift: -4px; } +.preis-text .rieseln:nth-child(8) { left: 75%; animation-delay: 1.4s; --drift: 6px; } +.preis-text .rieseln:nth-child(9) { left: 85%; animation-delay: 2.6s; --drift: -2px; } +.preis-text .rieseln:nth-child(10) { left: 94%; animation-delay: 0.6s; --drift: 4px; } +``` + +- [ ] **Schritt 4.3: Prüfen** + +```bash +curl -s http://localhost:8000/start-2.html | grep -c 'class="rieseln"' +curl -s http://localhost:8000/start-2.html | grep -c 'medaille-3d' +``` + +Erwartet: `10` und `1`. Browser: Im Preis-Moment dreht sich rechts neben dem Gewinnerbild eine goldene Münze mit „1"; darunter glänzt „NACHWUCHSPREIS 2025" mit wanderndem Goldverlauf, von dem kleine Goldpunkte herabrieseln. + +- [ ] **Schritt 4.4: Commit** + +```bash +git add public/start-2.html public/custom/tiefenflug.css +git commit -m "feat: 3D-Medaille, Gold-Schriftzug und Gold-Rieseln im Preis-Moment" +``` + +--- + +### Task 5: Vollbild-Übergang mit weißem Verlauf + +**Files:** +- Modify: `public/start-2.html` (Bühne, nach dem Konfetti-Canvas) +- Modify: `public/custom/tiefenflug.css` (vor FALLBACKS anhängen) +- Modify: `public/custom/tiefenflug.js` + +- [ ] **Schritt 5.1: Verlaufs-Element einfügen** + +In `public/start-2.html` direkt nach `` einfügen: + +```html + + +``` + +- [ ] **Schritt 5.2: CSS anhängen** + +Vor dem FALLBACKS-Kommentarblock in `public/custom/tiefenflug.css` einfügen: + +```css +/* Vollbild-Übergang: Gewinnerbild wächst, Verlauf ins Weiße */ +.preis-bild { will-change: transform; } +.preis-bild img { transition: border-radius 0.4s ease-out, box-shadow 0.4s ease-out; } +.preis.vollbild .preis-bild img { border-radius: 0; box-shadow: none; } +.landung-verlauf { + position: absolute; left: 0; right: 0; bottom: 0; + height: 30vh; + background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff); + opacity: 0; + pointer-events: none; + z-index: 4; +} +``` + +- [ ] **Schritt 5.3: JS-Logik** + +In `public/custom/tiefenflug.js` nach den Zeilen aus Schritt 3.3 (`var nameMoment = …; var nameGefuellt = false;`) einfügen: + +```js + var preisBild = document.getElementById('preis-bild'); + var medaille = document.getElementById('medaille'); + var preisText = document.getElementById('preis-text'); + var verlauf = document.getElementById('landung-verlauf'); +``` + +In `zeichnen()` direkt **vor** der Zeile `hinweis.style.opacity = fortschritt > 0.05 ? 0 : '';` einfügen: + +```js + // Vollbild: Bild wächst über den Viewport, Medaille/Schriftzug blenden + // aus, der weiße Verlauf holt die Landung herein + var vollT = Math.max(0, Math.min((fortschritt - VOLLBILD[0]) / (VOLLBILD[1] - VOLLBILD[0]), 1)); + var weichVoll = 1 - Math.pow(1 - vollT, 3); + if (vollT > 0) { + var zielBreite = window.innerWidth / preisBild.offsetWidth; + var zielHoehe = window.innerHeight / preisBild.offsetHeight; + var ziel = Math.max(zielBreite, zielHoehe) * 1.02; + preisBild.style.transform = 'scale(' + (1 + (ziel - 1) * weichVoll) + ')'; + } else { + preisBild.style.transform = ''; + } + preis.classList.toggle('vollbild', vollT > 0.01); + medaille.style.opacity = Math.max(0, 1 - vollT * 3); + preisText.style.opacity = Math.max(0, 1 - vollT * 2); + verlauf.style.opacity = vollT; +``` + +(`offsetWidth`/`offsetHeight` ignorieren `transform` – die Zielskala bleibt dadurch beim Scrollen stabil.) + +- [ ] **Schritt 5.4: Prüfen** + +```bash +node --check public/custom/tiefenflug.js && echo "Syntax OK" +curl -s http://localhost:8000/start-2.html | grep -c 'landung-verlauf' +``` + +Erwartet: `Syntax OK` und mindestens `1`. Browser: Nach dem Preis-Moment wächst das Bild beim Weiterscrollen bildschirmfüllend (Rundung/Schatten verschwinden, Medaille und Schriftzug blenden aus), unten läuft es in einen weißen Verlauf aus; danach schiebt sich die normale Startseite darüber. Hochscrollen nach dem Durchlauf: Einrasten wie bisher. + +- [ ] **Schritt 5.5: Commit** + +```bash +git add public/start-2.html public/custom/tiefenflug.css public/custom/tiefenflug.js +git commit -m "feat: Vollbild-Übergang des Gewinnerbilds mit weißem Verlauf zur Landung" +``` + +--- + +### Task 6: Fallbacks ergänzen, Gesamttest, Push + +**Files:** +- Modify: `public/custom/tiefenflug.css` (FALLBACKS-Abschnitt) + +- [ ] **Schritt 6.1: Fallback-Regeln erweitern** + +Im FALLBACKS-Abschnitt von `public/custom/tiefenflug.css` die Regel + +```css +@media (prefers-reduced-motion: reduce) { + .flug-foto img, .flug-hinweis { animation: none; } +} +``` + +ersetzen durch: + +```css +@media (prefers-reduced-motion: reduce) { + .flug-foto img, .flug-hinweis, + .medaille-kern, .preis-text, .preis-text .rieseln { animation: none; } +} +``` + +und im `@media (max-width: 760px)`-Block die Zeile + +```css + .flug-foto[data-mobil="aus"] { display: none; } +``` + +ersetzen durch: + +```css + .flug-foto[data-mobil="aus"], .partikel[data-mobil="aus"] { display: none; } +``` + +- [ ] **Schritt 6.2: Gesamttest** + +```bash +node --check public/custom/tiefenflug.js && echo "Syntax OK" +curl -s -o /dev/null -w "HTTP %{http_code}\n" http://localhost:8000/start-2.html +curl -s http://localhost:8000/start-2.html | grep -o 'src="[^"]*"\|href="[^"]*"' | sed 's/^[a-z]*="//;s/"$//' | sort -u | grep -v '^https\?://' | grep -v '^\./' | while read p; do [ -e "public/$p" ] || echo "FEHLT: $p"; done; echo "Asset-Check fertig" +``` + +Erwartet: `Syntax OK`, `HTTP 200`, keine `FEHLT:`-Zeilen. Browser-Komplettdurchlauf: +1. Flug mit Partikel-Mix (Staub/Streifen/Bokeh kommen entgegen). +2. Alle Fotos und Partikel weg, bevor der Name erscheint (leere Bühne). +3. Name füllt sich Buchstabe für Buchstabe, blendet aus. +4. Gewinnerbild allein, Münze dreht sich daneben, Gold-Schriftzug rieselt, Konfetti einmal. +5. Bild wächst ins Vollbild, weißer Verlauf, Landung schiebt sich darüber. +6. DevTools: JS aus → keine Intro-Strecke; reduzierte Bewegung → keine Intro-Strecke; 390px-Breite → weniger Fotos/Partikel. + +- [ ] **Schritt 6.3: Commit und Push** + +```bash +git add public/custom/tiefenflug.css +git commit -m "feat: Fallbacks für Partikel und Preis-Animationen ergänzt" +git push origin feature/startseite-tiefenflug +``` + +Dann Leon Bescheid geben (Merge Request wie gewohnt selbst anlegen). From ceacdb53982724da217d32954d773006c98ed2bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Tonh=C3=A4user?= Date: Thu, 11 Jun 2026 11:58:38 +0200 Subject: [PATCH 3/9] =?UTF-8?q?feat:=20Tiefenflug-Phasen=20neu=20aufgeteil?= =?UTF-8?q?t,=20Preis-Moment=20auf=20leerer=20B=C3=BChne?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- public/custom/tiefenflug.css | 4 ++-- public/custom/tiefenflug.js | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/public/custom/tiefenflug.css b/public/custom/tiefenflug.css index 7c0266b..3e4ef1e 100644 --- a/public/custom/tiefenflug.css +++ b/public/custom/tiefenflug.css @@ -235,7 +235,7 @@ /* ==================== TIEFENFLUG-INTRO ==================== */ -.flug-strecke { height: 480vh; position: relative; } +.flug-strecke { height: 640vh; position: relative; } .flug-buehne { position: sticky; top: 0; @@ -358,6 +358,6 @@ @media (max-width: 760px) { .flug-foto[data-mobil="aus"] { display: none; } - .flug-strecke { height: 380vh; } + .flug-strecke { height: 500vh; } .flug-name { -webkit-text-stroke-width: 1px; } } diff --git a/public/custom/tiefenflug.js b/public/custom/tiefenflug.js index 1042af8..786387b 100644 --- a/public/custom/tiefenflug.js +++ b/public/custom/tiefenflug.js @@ -29,10 +29,14 @@ .filter(function (f) { return f.offsetParent !== null; }); // mobil ausgeblendete überspringen var FLUG_TIEFE = 1650; // px, die die Kamera nach vorn fliegt - var FLUG_ENDE = 0.72; // Anteil der Strecke, ab dem der Preis-Moment beginnt + var FLUG_ENDE = 0.65; // Anteil der Strecke, bis zu dem die Kamerafahrt läuft + var ABSCHIED = [0.55, 0.65]; // Fotos räumen die Bühne (alles ausblenden) + var NAME_FENSTER = [0.65, 0.78]; // Name-Moment (Task 3) + var PREIS_START = 0.78; // ab hier steigt das Gewinnerbild auf + var VOLLBILD = [0.88, 1]; // Bild wächst ins Vollbild (Task 5) var SCHWENK = 130; // px seitliches Ausscheren (rechts, dann links) var SINKFLUG = 190; // px Sinkflug am Ende - var GEIST_FENSTER = [[0.10, 0.30], [0.30, 0.50], [0.50, 0.68]]; + var GEIST_FENSTER = [[0.08, 0.25], [0.25, 0.42], [0.42, 0.60]]; var eingerastet = false; // Feature: einmal durch = kein Rückflug bis zum Neuladen var konfettiAb = false; @@ -65,12 +69,17 @@ var kamY = sinkT * sinkT * SINKFLUG; var kurve = -kamX / SCHWENK * 2.5; // leichtes Gegen-Kippen in der Kurve + // Abschied: ab hier blenden alle Fotos unabhängig von ihrer Tiefe aus, + // damit der Preis-Moment auf komplett leerer Bühne stattfindet + var wegT = Math.max(0, Math.min((fortschritt - ABSCHIED[0]) / (ABSCHIED[1] - ABSCHIED[0]), 1)); + fotos.forEach(function (foto) { var z = parseFloat(foto.dataset.z) + kamZ; var x = parseFloat(foto.dataset.x) - kamX + mausX * 14; var y = parseFloat(foto.dataset.y) - kamY + mausY * 10; var deckkraft = 1; if (z > 260) deckkraft = Math.max(0, 1 - (z - 260) / 160); // passiert → ausblenden + deckkraft = Math.min(deckkraft, 1 - wegT); // Abschied: Bühne räumen foto.style.opacity = deckkraft; foto.style.visibility = deckkraft === 0 ? 'hidden' : 'visible'; foto.style.transform = @@ -94,7 +103,7 @@ }); // Preis-Moment: steigt von unten herauf, dann Konfetti - var preisDa = Math.max(0, Math.min((fortschritt - FLUG_ENDE) / 0.08, 1)); + var preisDa = Math.max(0, Math.min((fortschritt - PREIS_START) / 0.06, 1)); var weich = 1 - Math.pow(1 - preisDa, 3); // ease-out preis.style.opacity = preisDa; preis.style.transform = From 8b1c7080b97a822fb1ee412e8d320b0e7b47c219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Tonh=C3=A4user?= Date: Thu, 11 Jun 2026 12:03:44 +0200 Subject: [PATCH 4/9] feat: Flug-Partikel (Staub, Lichtstreifen, Bokeh) im Tiefenflug Co-Authored-By: Claude Fable 5 --- public/custom/tiefenflug.css | 16 ++++++++++++++++ public/custom/tiefenflug.js | 15 +++++++++++++++ public/start-2.html | 28 ++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) 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 @@ + + +
LEON TONHÄUSER
+ +
From d7db9124c6ff8a10847367d759a4d88346e5a39f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Tonh=C3=A4user?= Date: Thu, 11 Jun 2026 12:14:59 +0200 Subject: [PATCH 6/9] feat: 3D-Medaille, Gold-Schriftzug und Gold-Rieseln im Preis-Moment Co-Authored-By: Claude Fable 5 --- public/custom/tiefenflug.css | 66 ++++++++++++++++++++++++++++++++---- public/start-2.html | 13 +++++-- 2 files changed, 70 insertions(+), 9 deletions(-) diff --git a/public/custom/tiefenflug.css b/public/custom/tiefenflug.css index 70574c2..d6df301 100644 --- a/public/custom/tiefenflug.css +++ b/public/custom/tiefenflug.css @@ -322,25 +322,79 @@ border-radius: var(--radius-karte); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); } -.medaille { - position: absolute; left: 50%; bottom: -44px; - transform: translateX(-50%); - z-index: 3; +/* 3D-Medaille: flache CSS-Münze, dreht sich dauerhaft um die Y-Achse */ +.medaille-3d { + position: absolute; right: -48px; top: 50%; width: 96px; height: 96px; + margin-top: -48px; + perspective: 420px; + z-index: 3; +} +.medaille-kern { + position: relative; + width: 100%; height: 100%; + transform-style: preserve-3d; + animation: muenzdrehung 6s linear infinite; +} +@keyframes muenzdrehung { + from { transform: rotateY(0deg); } + to { transform: rotateY(360deg); } +} +.medaille-seite { + position: absolute; inset: 0; border-radius: 50%; + backface-visibility: hidden; background: radial-gradient(circle at 35% 30%, #f3d27a, #c9a227 60%, #9a7a1c); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 34px; color: #fff; border: 3px solid #fff; box-shadow: 0 10px 28px rgba(154, 122, 28, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.5); } +.medaille-seite.hinten { transform: rotateY(180deg); } + +/* Gold-Schriftzug: Verlauf wandert durch den Text */ .preis-text { - margin-top: 64px; + position: relative; + margin-top: 28px; font-family: "Fragment Mono", monospace; font-size: 14px; letter-spacing: 3px; - color: #9a7a1c; + background: linear-gradient(100deg, #9a7a1c 0%, #c9a227 30%, #f7e7ae 50%, #c9a227 70%, #9a7a1c 100%); + background-size: 200% 100%; + -webkit-background-clip: text; + background-clip: text; + color: transparent; + animation: goldglanz 3s linear infinite; } +@keyframes goldglanz { + from { background-position: 200% 0; } + to { background-position: -200% 0; } +} + +/* Gold-Rieseln: kleine Partikel fallen vom Schriftzug herab */ +.preis-text .rieseln { + position: absolute; top: 100%; + width: 3px; height: 3px; + border-radius: 50%; + background: #c9a227; + opacity: 0; + animation: rieseln 2.8s linear infinite; +} +@keyframes rieseln { + 0% { transform: translate(0, 0); opacity: 0; } + 15% { opacity: 0.9; } + 100% { transform: translate(var(--drift, 0px), 46px); opacity: 0; } +} +.preis-text .rieseln:nth-child(1) { left: 6%; animation-delay: 0.0s; --drift: -6px; } +.preis-text .rieseln:nth-child(2) { left: 16%; animation-delay: 1.1s; --drift: 4px; } +.preis-text .rieseln:nth-child(3) { left: 25%; animation-delay: 0.4s; --drift: -3px; } +.preis-text .rieseln:nth-child(4) { left: 34%; animation-delay: 1.8s; --drift: 5px; } +.preis-text .rieseln:nth-child(5) { left: 45%; animation-delay: 0.8s; --drift: -5px; } +.preis-text .rieseln:nth-child(6) { left: 55%; animation-delay: 2.2s; --drift: 3px; } +.preis-text .rieseln:nth-child(7) { left: 64%; animation-delay: 0.2s; --drift: -4px; } +.preis-text .rieseln:nth-child(8) { left: 75%; animation-delay: 1.4s; --drift: 6px; } +.preis-text .rieseln:nth-child(9) { left: 85%; animation-delay: 2.6s; --drift: -2px; } +.preis-text .rieseln:nth-child(10) { left: 94%; animation-delay: 0.6s; --drift: 4px; } .konfetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } /* Flug-Partikel: Staub, Lichtstreifen und Bokeh fliegen der Kamera entgegen */ diff --git a/public/start-2.html b/public/start-2.html index 3c71ac6..503e7c9 100644 --- a/public/start-2.html +++ b/public/start-2.html @@ -109,12 +109,19 @@
-
+
Gewinnerbild Nachwuchspreis 2025 -
1
+ +
-
NACHWUCHSPREIS 2025
+ +
NACHWUCHSPREIS 2025
From 50e40139fd490c8cb1fc07cb8272126cb18cb020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Tonh=C3=A4user?= Date: Thu, 11 Jun 2026 12:20:56 +0200 Subject: [PATCH 7/9] =?UTF-8?q?feat:=20Vollbild-=C3=9Cbergang=20des=20Gewi?= =?UTF-8?q?nnerbilds=20mit=20wei=C3=9Fem=20Verlauf=20zur=20Landung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- public/custom/tiefenflug.css | 13 +++++++++++++ public/custom/tiefenflug.js | 21 +++++++++++++++++++++ public/start-2.html | 3 +++ 3 files changed, 37 insertions(+) diff --git a/public/custom/tiefenflug.css b/public/custom/tiefenflug.css index d6df301..a6dd044 100644 --- a/public/custom/tiefenflug.css +++ b/public/custom/tiefenflug.css @@ -448,6 +448,19 @@ .name-moment span:nth-child(13) { transition-delay: 1.20s; } .name-moment span:nth-child(14) { transition-delay: 1.30s; } +/* Vollbild-Übergang: Gewinnerbild wächst, Verlauf ins Weiße */ +.preis-bild { will-change: transform; } +.preis-bild img { transition: border-radius 0.4s ease-out, box-shadow 0.4s ease-out; } +.preis.vollbild .preis-bild img { border-radius: 0; box-shadow: none; } +.landung-verlauf { + position: absolute; left: 0; right: 0; bottom: 0; + height: 30vh; + background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff); + opacity: 0; + pointer-events: none; + z-index: 4; +} + /* ==================== 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 006c516..77cba2e 100644 --- a/public/custom/tiefenflug.js +++ b/public/custom/tiefenflug.js @@ -26,6 +26,10 @@ var hinweis = document.getElementById('flug-hinweis'); var nameMoment = document.getElementById('name-moment'); var nameGefuellt = false; + var preisBild = document.getElementById('preis-bild'); + var medaille = document.getElementById('medaille'); + var preisText = document.getElementById('preis-text'); + var verlauf = document.getElementById('landung-verlauf'); 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 @@ -143,6 +147,23 @@ }, 350); } + // Vollbild: Bild wächst über den Viewport, Medaille/Schriftzug blenden + // aus, der weiße Verlauf holt die Landung herein + var vollT = Math.max(0, Math.min((fortschritt - VOLLBILD[0]) / (VOLLBILD[1] - VOLLBILD[0]), 1)); + var weichVoll = 1 - Math.pow(1 - vollT, 3); + if (vollT > 0) { + var zielBreite = window.innerWidth / preisBild.offsetWidth; + var zielHoehe = window.innerHeight / preisBild.offsetHeight; + var ziel = Math.max(zielBreite, zielHoehe) * 1.02; + preisBild.style.transform = 'scale(' + (1 + (ziel - 1) * weichVoll) + ')'; + } else { + preisBild.style.transform = ''; + } + preis.classList.toggle('vollbild', vollT > 0.01); + medaille.style.opacity = Math.max(0, 1 - vollT * 3); + preisText.style.opacity = Math.max(0, 1 - vollT * 2); + verlauf.style.opacity = vollT; + hinweis.style.opacity = fortschritt > 0.05 ? 0 : ''; } diff --git a/public/start-2.html b/public/start-2.html index 503e7c9..921f656 100644 --- a/public/start-2.html +++ b/public/start-2.html @@ -125,6 +125,9 @@
+ + +
SCROLLEN ↓
From 8f020022233c0010b6484f0554459988fa6992f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Tonh=C3=A4user?= Date: Thu, 11 Jun 2026 16:07:29 +0200 Subject: [PATCH 8/9] =?UTF-8?q?feat:=20Fallbacks=20f=C3=BCr=20Partikel=20u?= =?UTF-8?q?nd=20Preis-Animationen=20erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- public/custom/tiefenflug.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/custom/tiefenflug.css b/public/custom/tiefenflug.css index a6dd044..78a1e77 100644 --- a/public/custom/tiefenflug.css +++ b/public/custom/tiefenflug.css @@ -471,11 +471,12 @@ .ohne-intro .flug-strecke { display: none; } @media (prefers-reduced-motion: reduce) { - .flug-foto img, .flug-hinweis { animation: none; } + .flug-foto img, .flug-hinweis, + .medaille-kern, .preis-text, .preis-text .rieseln { animation: none; } } @media (max-width: 760px) { - .flug-foto[data-mobil="aus"] { display: none; } + .flug-foto[data-mobil="aus"], .partikel[data-mobil="aus"] { display: none; } .flug-strecke { height: 500vh; } .flug-name { -webkit-text-stroke-width: 1px; } } From 96d4ebc67904ab28582f7461f98da50be4c7cb24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Tonh=C3=A4user?= Date: Thu, 11 Jun 2026 16:13:28 +0200 Subject: [PATCH 9/9] feat: Medaille entfernt, Flug-Fotos erkennen Hoch- und Querformat Co-Authored-By: Claude Fable 5 --- public/custom/tiefenflug.css | 36 ++++-------------------------------- public/custom/tiefenflug.js | 18 +++++++++++++++--- public/start-2.html | 7 ------- 3 files changed, 19 insertions(+), 42 deletions(-) diff --git a/public/custom/tiefenflug.css b/public/custom/tiefenflug.css index 78a1e77..2f09788 100644 --- a/public/custom/tiefenflug.css +++ b/public/custom/tiefenflug.css @@ -276,11 +276,13 @@ .flug-foto { position: absolute; left: 50%; top: 50%; width: clamp(180px, 22vw, 300px); - aspect-ratio: 3 / 2; + aspect-ratio: 3 / 2; /* Fallback bis das Bild geladen ist – JS setzt das echte Format */ transform-style: preserve-3d; will-change: transform, opacity; pointer-events: none; } +/* Hochformat (vom JS erkannt): schmaler, damit das Foto nicht zu hoch wird */ +.flug-foto.hochformat { width: clamp(150px, 16vw, 220px); } .flug-foto img { width: 100%; height: 100%; object-fit: cover; @@ -322,36 +324,6 @@ border-radius: var(--radius-karte); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); } -/* 3D-Medaille: flache CSS-Münze, dreht sich dauerhaft um die Y-Achse */ -.medaille-3d { - position: absolute; right: -48px; top: 50%; - width: 96px; height: 96px; - margin-top: -48px; - perspective: 420px; - z-index: 3; -} -.medaille-kern { - position: relative; - width: 100%; height: 100%; - transform-style: preserve-3d; - animation: muenzdrehung 6s linear infinite; -} -@keyframes muenzdrehung { - from { transform: rotateY(0deg); } - to { transform: rotateY(360deg); } -} -.medaille-seite { - position: absolute; inset: 0; - border-radius: 50%; - backface-visibility: hidden; - background: radial-gradient(circle at 35% 30%, #f3d27a, #c9a227 60%, #9a7a1c); - display: flex; align-items: center; justify-content: center; - font-weight: 600; font-size: 34px; color: #fff; - border: 3px solid #fff; - box-shadow: 0 10px 28px rgba(154, 122, 28, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.5); -} -.medaille-seite.hinten { transform: rotateY(180deg); } - /* Gold-Schriftzug: Verlauf wandert durch den Text */ .preis-text { position: relative; @@ -472,7 +444,7 @@ @media (prefers-reduced-motion: reduce) { .flug-foto img, .flug-hinweis, - .medaille-kern, .preis-text, .preis-text .rieseln { animation: none; } + .preis-text, .preis-text .rieseln { animation: none; } } @media (max-width: 760px) { diff --git a/public/custom/tiefenflug.js b/public/custom/tiefenflug.js index 77cba2e..373ca27 100644 --- a/public/custom/tiefenflug.js +++ b/public/custom/tiefenflug.js @@ -27,7 +27,6 @@ var nameMoment = document.getElementById('name-moment'); var nameGefuellt = false; var preisBild = document.getElementById('preis-bild'); - var medaille = document.getElementById('medaille'); var preisText = document.getElementById('preis-text'); var verlauf = document.getElementById('landung-verlauf'); var geister = [].slice.call(buehne.querySelectorAll('.geist')); @@ -36,6 +35,20 @@ var partikel = [].slice.call(buehne.querySelectorAll('.partikel')) .filter(function (p) { return p.offsetParent !== null; }); + // Bildformat übernehmen: Rahmen ans echte Seitenverhältnis des Fotos + // anpassen, damit Hochformat-Bilder nicht auf 3:2 zugeschnitten werden + fotos.forEach(function (foto) { + var bild = foto.querySelector('img'); + if (!bild) return; + function formatSetzen() { + if (!bild.naturalWidth || !bild.naturalHeight) return; + foto.style.aspectRatio = bild.naturalWidth + ' / ' + bild.naturalHeight; + foto.classList.toggle('hochformat', bild.naturalHeight > bild.naturalWidth); + } + if (bild.complete) formatSetzen(); + else bild.addEventListener('load', formatSetzen, { once: true }); + }); + 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 var ABSCHIED = [0.55, 0.65]; // Fotos räumen die Bühne (alles ausblenden) @@ -147,7 +160,7 @@ }, 350); } - // Vollbild: Bild wächst über den Viewport, Medaille/Schriftzug blenden + // Vollbild: Bild wächst über den Viewport, der Schriftzug blendet // aus, der weiße Verlauf holt die Landung herein var vollT = Math.max(0, Math.min((fortschritt - VOLLBILD[0]) / (VOLLBILD[1] - VOLLBILD[0]), 1)); var weichVoll = 1 - Math.pow(1 - vollT, 3); @@ -160,7 +173,6 @@ preisBild.style.transform = ''; } preis.classList.toggle('vollbild', vollT > 0.01); - medaille.style.opacity = Math.max(0, 1 - vollT * 3); preisText.style.opacity = Math.max(0, 1 - vollT * 2); verlauf.style.opacity = vollT; diff --git a/public/start-2.html b/public/start-2.html index 921f656..f754ee3 100644 --- a/public/start-2.html +++ b/public/start-2.html @@ -112,13 +112,6 @@
Gewinnerbild Nachwuchspreis 2025 - -
NACHWUCHSPREIS 2025