feat: Intro flüssiger machen und englische Sprachversion ergänzen

Intro „Fokus":
- zwei Bild-Ebenen blenden ineinander über statt hartem Bildwechsel
- Unschärfe über winzige Vorschaubilder statt live berechnetem Weichzeichner
  (animiert werden nur noch transform und opacity)
- eigene WebP-Dateien für Laptop (quer) und Handy (hoch) in assets/intro,
  erzeugt mit scripts/intro-bilder.py; 1,8 MB bzw. 1,1 MB statt 5,9 MB
- Bühnenhöhe auf dem Handy unabhängig von der Adressleiste, größere HUD-Schrift
- „Überspringen"-Knopf, Scroll-Hinweis blendet jetzt wirklich aus
- Bildpfade relativ zum Skript, damit das Intro auch unter /en/ lädt

Zweisprachigkeit:
- englische Seiten unter public/en/, Sprachschalter in Topbar und Dock
- hreflang-Verweise, SEO-Konfiguration, Sitemap und SEO-Prüfskript angepasst
- docs/zweisprachigkeit.md

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Leon TonhäuserandClaude Fable 5.2 committed 2026-11-13 13:57:00 +01:00
1 parent 9639098303
commit c793eb7359
105 files changed
+7107 -126

No files matched your search

+15 -3
View File
@@ -41,6 +41,13 @@ function pageHtml(file) {
return read(`public/${file}`);
}
// PAGES-Pfad → Datei unter public/ ('/' und '/en' sind Verzeichnis-Startseiten)
function pageFile(urlPath) {
if (urlPath === '/') return 'index.html';
if (urlPath === '/en') return 'en/index.html';
return `${urlPath.slice(1)}.html`;
}
function loadConfig() {
const context = { window: {} };
vm.createContext(context);
@@ -104,7 +111,7 @@ if (wants('core')) {
check('crawlbare Seiten behaupten keinen Standort Uelzen', () => {
for (const urlPath of Object.keys(config.PAGES)) {
const file = urlPath === '/' ? 'index.html' : `${urlPath.slice(1)}.html`;
const file = pageFile(urlPath);
const html = pageHtml(file);
if (/<meta\s+name=["']robots["'][^>]*\bnoindex\b/i.test(html)) continue;
assert.doesNotMatch(
@@ -291,7 +298,7 @@ if (wants('links')) {
check('alle konfigurierten Seiten haben genau einen statischen SEO-Block', () => {
const config = loadConfig();
for (const [urlPath, page] of Object.entries(config.PAGES)) {
const file = urlPath === '/' ? 'index.html' : `${urlPath.slice(1)}.html`;
const file = pageFile(urlPath);
const html = pageHtml(file);
assert.equal(count(html, /<!-- STATIC-SEO:/g), 1, `${file}: Startmarker`);
assert.equal(count(html, /<!-- \/STATIC-SEO -->/g), 1, `${file}: Endmarker`);
@@ -311,7 +318,12 @@ if (wants('links')) {
);
for (const href of hrefs) {
const clean = decodeURIComponent(href.slice(2));
const target = clean === '' ? 'index.html' : clean.endsWith('.html') ? clean : `${clean}.html`;
// Verzeichnis-Links (z. B. ./en/ für die Sprachversion) auf index.html auflösen
const target =
clean === '' ? 'index.html'
: clean.endsWith('/') ? `${clean}index.html`
: clean.endsWith('.html') ? clean
: `${clean}.html`;
assert.ok(existsSync(path.join(PUBLIC, target)), `${file} → ${href}`);
}
}