From 222d8069f10f70f8315b673ae1825829e286f173 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Leon=20Tonh=C3=A4user?=
Date: Thu, 11 Jun 2026 23:21:55 +0200
Subject: [PATCH] docs: Umsetzungsplan Site-Redesign
---
.../plans/2026-06-11-site-redesign.md | 763 ++++++++++++++++++
1 file changed, 763 insertions(+)
create mode 100644 docs/superpowers/plans/2026-06-11-site-redesign.md
diff --git a/docs/superpowers/plans/2026-06-11-site-redesign.md b/docs/superpowers/plans/2026-06-11-site-redesign.md
new file mode 100644
index 0000000..a26a115
--- /dev/null
+++ b/docs/superpowers/plans/2026-06-11-site-redesign.md
@@ -0,0 +1,763 @@
+# Site-Redesign Implementation Plan
+
+> **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.
+
+**Goal:** `start-2.html` wird zur neuen Startseite (`index.html`), und ihr Design wird über ein geteiltes `site.css` + `transitions.js` auf alle Unterseiten übertragen – die alten Framer-Exporte werden durch sauberes, eigenes HTML ersetzt, inkl. Staub-Fade-Seitenübergang.
+
+**Architecture:** Zwei neue geteilte Dateien tragen das gesamte Design: `public/custom/site.css` (alle gemeinsamen Styles, aus `tiefenflug.css` Z. 1–189 herausgelöst plus neue Hero-/Label-/Übergangs-Styles) und `public/custom/transitions.js` (Seitenübergang, Scroll-Einblenden, Dock-Active-State). Jede Seite ist statisches HTML, das nur diese beiden Dateien einbindet – kein Framer-CSS/JS mehr. Die Startseite bindet zusätzlich `tiefenflug.css` + `tiefenflug.js` für das Intro.
+
+**Tech Stack:** Statisches HTML/CSS/Vanilla-JS (Framer-Export-Basis), IntersectionObserver, GitLab Pages. Kein Build-Schritt, kein Test-Runner – Verifikation läuft über lokalen HTTP-Server (`python3 -m http.server`) + Browser-Sichtprüfung + `grep`/`curl`-Checks.
+
+> **Hinweis zur Verifikation (statische Seite, kein TDD-Runner):** "Tests" sind hier konkrete Prüf-Schritte: lokaler Server starten, im Browser ansehen, und per `grep`/`curl` belegen, dass Framer-Code raus ist und alle Links/Assets auflösen. Jeder Task endet mit so einem Prüf-Schritt **vor** dem Commit.
+
+> **Voraussetzung:** Vor Task 1 neuen Branch anlegen:
+> ```bash
+> git checkout main && git pull && git checkout -b feature/site-redesign
+> ```
+> (Optional via `superpowers:using-git-worktrees` isolieren.)
+
+---
+
+## File Structure
+
+| Datei | Verantwortung | Aktion |
+|---|---|---|
+| `public/custom/site.css` | Alle geteilten Styles: Variablen, Reset, Topbar, Dock, Typo, Buttons, Pakete/Ablauf, Footer, Reveal, **neu:** Page-Hero, Section-Label, `.einblenden`, Seitenübergangs-Klassen + Partikel | **Neu** |
+| `public/custom/transitions.js` | Staub-Fade-Übergang, Scroll-Einblenden (IntersectionObserver), Dock-Active-State, Dock-Einblenden auf Unterseiten | **Neu** |
+| `public/index.html` | Inhalt aus `start-2.html`; bindet `site.css` + `tiefenflug.css` + `tiefenflug.js` + `transitions.js`; Blog-Links raus | **Ersetzt** |
+| `public/custom/tiefenflug.css` | Geteilte Basis (Z. 1–189) entfällt → wandert in `site.css`; behält LANDUNG + Tiefenflug-Intro + Fallbacks (Z. 191–454) | **Gekürzt** |
+| `public/start-2.html` | nach Übernahme gelöscht | **Gelöscht** |
+| `public/portfolio.html` | Neu gebaut, Texte 1:1 aus Framer-Export | **Ersetzt** |
+| `public/über-mich.html` | Neu gebaut | **Ersetzt** |
+| `public/leistungen.html` | Neu gebaut | **Ersetzt** |
+| `public/kontakt.html` | Neu gebaut | **Ersetzt** |
+| `public/datenschutz.html` | Neu gebaut | **Ersetzt** |
+| `public/impressum.html` | Neu gebaut | **Ersetzt** |
+| `public/custom/nav.js` | Framer-Workaround, obsolet | **Gelöscht** |
+| `public/blog.html`, `public/blog/` | Blog zurückgestellt | **Gelöscht** (Task 9) |
+
+**Gemeinsamer Kopf-/Fuß-Baustein:** Topbar, Dock und Footer sind auf allen Seiten identisch (1:1 aus `start-2.html` Z. 131–226, **ohne** Blog-Links). Dieser Block wird in jeder Unterseite wiederverwendet – siehe „Geteiltes Seitengerüst" unter Task 4.
+
+---
+
+## Phase 1 – Fundament
+
+### Task 1: `site.css` anlegen (geteilte Styles herauslösen + neue Bausteine)
+
+**Files:**
+- Create: `public/custom/site.css`
+- Reference: `public/custom/tiefenflug.css:1-189` (Quelle der geteilten Styles)
+
+- [ ] **Step 1: Geteilten Block nach `site.css` kopieren**
+
+Kopiere `public/custom/tiefenflug.css` Zeilen **1–189** unverändert in eine neue Datei `public/custom/site.css`. Passe nur den Kopfkommentar an:
+
+```css
+/* site.css – geteilte Styles für ALLE Seiten (Topbar, Dock, Typo, Buttons,
+ Pakete/Ablauf, Footer, Reveal) + Page-Hero, Section-Labels, Seitenübergang.
+ Quelle der Basis: tiefenflug.css Z. 1–189 (Stand Juni 2026). */
+```
+
+Der kopierte Block enthält: `:root`-Variablen, Reset, `body`, `.container`, `.topbar*`, `.dock*` (inkl. Mobile-Burger), Typografie (`h1–h3`, `.gedaempft`), `.pill`, `.button`, `.hero`, `.pakete*`, `.ablauf*`, `.abschluss`, `.footer*`, `.reveal`, `.landen`, und den `prefers-reduced-motion`-Block.
+
+- [ ] **Step 2: Dock-Active-State an Spec angleichen**
+
+In `site.css` die bestehende Zeile (aus dem kopierten Block)
+```css
+.dock-links a[aria-current="page"] { opacity: 0.64; }
+```
+ersetzen durch (inaktive gedämpft, aktive Seite hell – wie Spec):
+```css
+.dock-links a { opacity: 0.6; transition: opacity 0.2s ease-out; }
+.dock-links a:hover { opacity: 1; }
+.dock-links a[aria-current="page"] { opacity: 1; }
+```
+(Die ursprüngliche `.dock-links a { color:#fff; transition… }` und `.dock-links a:hover { opacity:0.64 }` Regeln entsprechend zusammenführen, sodass `color:#fff` erhalten bleibt.)
+
+- [ ] **Step 3: Neue geteilte Bausteine ans Ende von `site.css` anhängen**
+
+```css
+/* ==================== PAGE-HERO (Unterseiten) ==================== */
+.page-hero { padding: 70px 0 50px; }
+.hero-label {
+ font-family: "Fragment Mono", monospace;
+ font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
+ color: var(--text-leise);
+}
+.hero-title {
+ font-size: clamp(48px, 6vw, 72px);
+ font-weight: 600; letter-spacing: -0.05em; line-height: 1.05;
+ margin: 16px 0 14px;
+}
+.hero-sub { font-size: 15px; color: var(--text-leise); max-width: 560px; }
+
+/* Abschnitts-Label im selben Fragment-Mono-Stil */
+.section-label {
+ font-family: "Fragment Mono", monospace;
+ font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
+ color: var(--text-leise); display: block; margin-bottom: 18px;
+}
+
+/* ==================== SCROLL-EINBLENDEN ==================== */
+.einblenden { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
+.einblenden.sichtbar { opacity: 1; transform: none; }
+
+/* ==================== SEITENÜBERGANG (Staub-Fade) ==================== */
+body { transition: opacity 0.3s ease-out, transform 0.3s ease-out, filter 0.3s ease-out; }
+.seite-ausgang { opacity: 0; transform: translateY(-12px); filter: blur(3px); }
+.seite-eingang { opacity: 0; transform: translateY(14px); filter: blur(3px); transition: none; }
+
+.uebergang-partikel {
+ position: fixed; z-index: 9999; border-radius: 50%; pointer-events: none;
+ will-change: transform, opacity;
+ animation: uebergang-drift 0.5s ease-out forwards;
+}
+@keyframes uebergang-drift {
+ from { opacity: 0.9; transform: translate(0, 0) scale(1); }
+ to { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.4); }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .einblenden { opacity: 1; transform: none; transition: none; }
+ body { transition: none; }
+ .seite-ausgang, .seite-eingang { opacity: 1; transform: none; filter: none; }
+}
+```
+
+- [ ] **Step 4: CSS-Syntax prüfen**
+
+Run:
+```bash
+cd /Users/leon/IdeaProjects/framer-leon-tonhaeuser.de
+npx --yes csstree-validator public/custom/site.css || echo "Falls csstree nicht verfügbar: visuell in Step 5 prüfen"
+grep -c "aria-current" public/custom/site.css
+```
+Expected: keine Parse-Fehler; `grep` liefert `1` (Active-State vorhanden).
+
+- [ ] **Step 5: Commit**
+
+```bash
+git add public/custom/site.css
+git commit -m "feat: site.css mit geteilten Styles + Page-Hero, Labels, Seitenübergang"
+```
+
+---
+
+### Task 2: `transitions.js` anlegen
+
+**Files:**
+- Create: `public/custom/transitions.js`
+
+- [ ] **Step 1: Datei mit vollständigem Inhalt schreiben**
+
+```javascript
+/* transitions.js – geteilte Animationen für alle Seiten:
+ 1) Staub-Fade-Seitenübergang bei internen Links
+ 2) Scroll-Einblenden via IntersectionObserver (.einblenden)
+ 3) Dock-Active-State (aria-current) nach location.pathname
+ 4) Dock-Einblenden beim Scrollen (nur Unterseiten ohne Tiefenflug-Intro)
+ Respektiert prefers-reduced-motion. */
+(function () {
+ "use strict";
+ var reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
+
+ /* ---------- 1) Eingangs-Animation: Body sanft einblenden ---------- */
+ if (!reduce) {
+ document.body.classList.add("seite-eingang");
+ requestAnimationFrame(function () {
+ requestAnimationFrame(function () {
+ document.body.style.transition = "opacity 0.4s ease-out, transform 0.4s ease-out, filter 0.4s ease-out";
+ document.body.classList.remove("seite-eingang");
+ });
+ });
+ }
+
+ /* ---------- Partikel am Klickpunkt ---------- */
+ function partikel(x, y) {
+ var farben = ["#c9a227", "#98a2b3"];
+ var anzahl = 5;
+ for (var i = 0; i < anzahl; i++) {
+ var p = document.createElement("div");
+ p.className = "uebergang-partikel";
+ var groesse = 4 + Math.random() * 4; // 4–8px
+ p.style.width = groesse + "px";
+ p.style.height = groesse + "px";
+ p.style.left = x + "px";
+ p.style.top = y + "px";
+ p.style.background = farben[i % farben.length];
+ var winkel = Math.random() * Math.PI * 2;
+ var weite = 30 + Math.random() * 40;
+ p.style.setProperty("--dx", Math.cos(winkel) * weite + "px");
+ p.style.setProperty("--dy", Math.sin(winkel) * weite + "px");
+ document.body.appendChild(p);
+ setTimeout((function (el) { return function () { el.remove(); }; })(p), 520);
+ }
+ }
+
+ /* ---------- 2) Seitenübergang bei internen Links ---------- */
+ function internerLink(a) {
+ if (!a || a.target === "_blank") return false;
+ var href = a.getAttribute("href");
+ if (!href) return false;
+ if (href.charAt(0) === "#") return false; // Anker
+ if (/^(mailto:|tel:|https?:)/i.test(href)) {
+ // extern nur, wenn andere Domain
+ return a.hostname === window.location.hostname;
+ }
+ return true; // relative interne Links (./, ../, seite)
+ }
+
+ document.addEventListener("click", function (e) {
+ if (reduce) return;
+ var a = e.target.closest ? e.target.closest("a") : null;
+ if (!a || !internerLink(a)) return;
+ if (e.metaKey || e.ctrlKey || e.shiftKey || e.button !== 0) return;
+ e.preventDefault();
+ var ziel = a.href;
+ partikel(e.clientX, e.clientY);
+ document.body.classList.add("seite-ausgang");
+ setTimeout(function () { window.location.href = ziel; }, 320);
+ });
+
+ /* ---------- 3) Scroll-Einblenden ---------- */
+ var elemente = document.querySelectorAll(".einblenden");
+ if (elemente.length && "IntersectionObserver" in window && !reduce) {
+ var beobachter = new IntersectionObserver(function (eintraege) {
+ eintraege.forEach(function (eintrag) {
+ if (eintrag.isIntersecting) {
+ eintrag.target.classList.add("sichtbar");
+ beobachter.unobserve(eintrag.target);
+ }
+ });
+ }, { threshold: 0.15 });
+ elemente.forEach(function (el) { beobachter.observe(el); });
+ } else {
+ elemente.forEach(function (el) { el.classList.add("sichtbar"); });
+ }
+
+ /* ---------- 4a) Dock-Active-State ---------- */
+ var pfad = window.location.pathname.replace(/\/index\.html$/, "/");
+ var dockLinks = document.querySelectorAll(".dock-links a");
+ dockLinks.forEach(function (a) {
+ var hp = a.getAttribute("href") || "";
+ var norm = hp.replace(/^\.\//, "/").replace(/\/$/, "");
+ var aktuell = pfad.replace(/\/$/, "");
+ if (norm && aktuell.indexOf(norm) !== -1 && norm !== "/") {
+ a.setAttribute("aria-current", "page");
+ }
+ });
+
+ /* ---------- 4b) Dock einblenden beim Scrollen (nur ohne Tiefenflug-Intro) ---------- */
+ var dock = document.getElementById("dock");
+ var hatIntro = document.querySelector(".flug-strecke");
+ if (dock && !hatIntro) {
+ var prüfen = function () {
+ if (window.scrollY > 200) dock.classList.add("sichtbar");
+ else dock.classList.remove("sichtbar");
+ };
+ window.addEventListener("scroll", prüfen, { passive: true });
+ prüfen();
+ }
+})();
+```
+
+- [ ] **Step 2: JS-Syntax prüfen**
+
+Run:
+```bash
+cd /Users/leon/IdeaProjects/framer-leon-tonhaeuser.de
+node --check public/custom/transitions.js && echo "Syntax OK"
+```
+Expected: `Syntax OK`
+
+- [ ] **Step 3: Commit**
+
+```bash
+git add public/custom/transitions.js
+git commit -m "feat: transitions.js – Seitenübergang, Scroll-Einblenden, Dock-Active-State"
+```
+
+---
+
+### Task 3: `start-2.html` → `index.html` migrieren + `tiefenflug.css` kürzen
+
+**Files:**
+- Modify: `public/index.html` (Inhalt komplett ersetzen)
+- Modify: `public/custom/tiefenflug.css` (Z. 1–189 entfernen)
+- Delete: `public/start-2.html`
+
+- [ ] **Step 1: `tiefenflug.css` kürzen**
+
+Entferne aus `public/custom/tiefenflug.css` die Zeilen **1–189** (der gesamte geteilte Block, jetzt in `site.css`). Setze stattdessen diesen Kopf an den Anfang, sodass die Datei mit der LANDUNG-Sektion (vormals Z. 191) beginnt:
+
+```css
+/* tiefenflug.css – NUR Startseiten-spezifisch: Landung + Tiefenflug-Intro.
+ Geteilte Basis-Styles (Topbar, Dock, Typo, Buttons, Footer …) stehen in site.css.
+ index.html bindet beide Dateien ein. */
+
+/* ==================== LANDUNG (normale Startseite) ==================== */
+```
+Der Rest der Datei (vormals Z. 192–454: `.landung .hero`, `.auszug*`, `.zeilen*`, alle `TIEFENFLUG-INTRO`-Styles, `FALLBACKS`) bleibt unverändert.
+
+- [ ] **Step 2: `index.html` mit `start-2.html`-Inhalt überschreiben + 3 Anpassungen**
+
+Kopiere den **gesamten** Inhalt von `public/start-2.html` nach `public/index.html`. Nimm dabei genau diese drei Änderungen vor:
+
+**(a)** Im ``, nach der `tiefenflug.css`-Zeile, `site.css` **davor** einhängen und `transitions.js` ergänzen. Ersetze:
+```html
+
+
+```
+durch:
+```html
+
+
+
+```
+
+**(b)** Im Dock den Blog-Link entfernen. Lösche die Zeile:
+```html
+ Blog
+```
+
+**(c)** Im Footer den Blog-Link entfernen. Lösche die Zeile:
+```html
+ Blog
+```
+
+**(d)** Am Dateiende `transitions.js` nach `tiefenflug.js` ergänzen. Ersetze:
+```html
+
+
+>
+>
+>
+>
+>
+>
+>
{HERO-LABEL}
+>
{HERO-TITLE}
+>
{HERO-SUB}
+>
+>
+> {INHALT}
+>
+>
+>
+>
+>
+```
+durch:
+```html
+
+
+
+```
+
+- [ ] **Step 3: `start-2.html` löschen**
+
+```bash
+git rm public/start-2.html
+```
+
+- [ ] **Step 4: Prüfen – Startseite lädt, kein Blog-Link, beide CSS gebunden**
+
+Run:
+```bash
+cd /Users/leon/IdeaProjects/framer-leon-tonhaeuser.de/public
+python3 -m http.server 8000 >/dev/null 2>&1 &
+SRV=$!; sleep 1
+echo "--- CSS/JS-Einbindungen ---"
+curl -s localhost:8000/index.html | grep -E "site\.css|tiefenflug\.css|transitions\.js|tiefenflug\.js"
+echo "--- Blog-Links (soll leer sein) ---"
+curl -s localhost:8000/index.html | grep -c "./blog"
+echo "--- site.css + transitions.js erreichbar (soll 200 200) ---"
+curl -s -o /dev/null -w "%{http_code} " localhost:8000/custom/site.css
+curl -s -o /dev/null -w "%{http_code}\n" localhost:8000/custom/transitions.js
+kill $SRV
+```
+Expected: alle vier Includes erscheinen; Blog-Zähler `0`; HTTP `200 200`.
+
+- [ ] **Step 5: Browser-Sichtprüfung**
+
+Server starten (`cd public && python3 -m http.server 8000`), `http://localhost:8000/` öffnen. Prüfen: Tiefenflug-Intro läuft beim Scrollen, Landung erscheint, Dock blendet ein, kein „Blog" im Dock/Footer. Beim Klick auf „Portfolio" kurzer Staub-Fade (Seite existiert noch nicht → 404 ist hier ok).
+
+- [ ] **Step 6: Commit**
+
+```bash
+git add public/index.html public/custom/tiefenflug.css
+git commit -m "feat: start-2.html wird index.html; tiefenflug.css auf Intro gekürzt"
+```
+
+---
+
+## Phase 2 – Unterseiten
+
+> **Geteiltes Seitengerüst (für alle Unterseiten in Phase 2):**
+> Jede Unterseite nutzt exakt diesen Rahmen. `{TITLE}`, `{DESC}`, `{HERO-LABEL}`, `{HERO-TITLE}`, `{HERO-SUB}` und `{INHALT}` pro Seite einsetzen. Topbar/Dock/Footer sind **1:1 aus `index.html`** (ohne Blog-Links). Der `
` übernimmt den **kompletten `@font-face`-Block + Fragment-Mono-Link aus `index.html`** (Z. 21–50), bindet aber **nur `site.css`** (kein `tiefenflug.css`).
+>
+> ```html
+>
+>
+>