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:
1 parent
9639098303
commit
c793eb7359
105 files changed
+7107
-126
No files matched your search
+60
-17
@@ -40,18 +40,32 @@
|
||||
.fokus-buehne {
|
||||
position: sticky; top: 0;
|
||||
height: 100vh;
|
||||
/* lvh = Höhe bei eingeklappter Handy-Adressleiste: das Foto ändert seine
|
||||
Größe beim Scrollen nicht mehr (kein Springen). */
|
||||
height: 100lvh;
|
||||
overflow: hidden;
|
||||
background: #0a0a0a; /* hinter dem Foto; Foto deckt komplett */
|
||||
}
|
||||
|
||||
/* Foto + Wrapper (Wrapper trägt die dezente Eigenbewegung, Foto die Schärfe) */
|
||||
.fokus-bildwrap { position: absolute; inset: 0; will-change: transform; }
|
||||
.fokus-bild {
|
||||
/* Zwei Bild-Ebenen, die ineinander überblenden (fokus.js). Animiert werden
|
||||
nur opacity und transform – das läuft auch auf Handys flüssig. */
|
||||
/* isolation: die z-index-Wechsel der Ebenen bleiben unterhalb von Vignette + HUD */
|
||||
.fokus-bildwrap { position: absolute; inset: 0; isolation: isolate; }
|
||||
.fokus-ebene {
|
||||
position: absolute; inset: 0;
|
||||
opacity: 0;
|
||||
transition: opacity 0.5s ease-out;
|
||||
will-change: transform, opacity;
|
||||
}
|
||||
.fokus-ebene img {
|
||||
position: absolute; inset: 0;
|
||||
width: 100%; height: 100%;
|
||||
object-fit: cover;
|
||||
filter: blur(16px); /* Startzustand vor dem ersten Scharfziehen (JS übernimmt) */
|
||||
will-change: filter, transform, opacity;
|
||||
}
|
||||
/* Scharfes Foto blendet leicht verzögert über das unscharfe Vorschaubild */
|
||||
.fokus-scharf {
|
||||
opacity: 0;
|
||||
transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
|
||||
}
|
||||
|
||||
/* Leichte Abdunklung an den Rändern – hält die weiße HUD-Schrift lesbar */
|
||||
@@ -61,7 +75,11 @@
|
||||
}
|
||||
|
||||
.fokus-hud {
|
||||
position: absolute; inset: 0;
|
||||
position: absolute; top: 0; left: 0; right: 0;
|
||||
height: 100vh;
|
||||
/* dvh = gerade sichtbare Höhe: die Anzeigen unten bleiben auf dem Handy
|
||||
über der Adressleiste sichtbar. */
|
||||
height: 100dvh;
|
||||
pointer-events: none;
|
||||
color: #fff;
|
||||
will-change: opacity;
|
||||
@@ -102,7 +120,7 @@
|
||||
.fokus-marke .sub {
|
||||
margin-top: 1.6vmin;
|
||||
font-family: "Fragment Mono", monospace;
|
||||
font-size: clamp(8px, 1.5vmin, 13px);
|
||||
font-size: clamp(10px, 1.5vmin, 13px);
|
||||
letter-spacing: 0.26em;
|
||||
color: rgba(255, 255, 255, 0.82);
|
||||
}
|
||||
@@ -115,13 +133,13 @@
|
||||
}
|
||||
.fokus-meta .expo {
|
||||
font-family: "Fragment Mono", monospace;
|
||||
font-size: clamp(9px, 1.8vmin, 15px);
|
||||
font-size: clamp(11px, 1.8vmin, 15px);
|
||||
letter-spacing: 0.12em;
|
||||
}
|
||||
.fokus-meta .cap {
|
||||
margin-top: 1.4vmin;
|
||||
font-family: "Fragment Mono", monospace;
|
||||
font-size: clamp(8px, 1.45vmin, 12px);
|
||||
font-size: clamp(10px, 1.45vmin, 12px);
|
||||
line-height: 1.4; letter-spacing: 0.07em;
|
||||
color: rgba(255, 255, 255, 0.66);
|
||||
max-width: 62vw;
|
||||
@@ -142,7 +160,7 @@
|
||||
}
|
||||
.fokus-lock .text {
|
||||
font-family: "Fragment Mono", monospace;
|
||||
font-size: clamp(8px, 1.5vmin, 13px);
|
||||
font-size: clamp(10px, 1.5vmin, 13px);
|
||||
letter-spacing: 0.18em;
|
||||
}
|
||||
|
||||
@@ -157,28 +175,49 @@
|
||||
}
|
||||
.fokus-hinweis .wort {
|
||||
font-family: "Fragment Mono", monospace;
|
||||
font-size: clamp(7px, 1.3vmin, 11px);
|
||||
font-size: clamp(10px, 1.3vmin, 11px);
|
||||
letter-spacing: 0.34em;
|
||||
}
|
||||
.fokus-hinweis .pfeil { font-size: clamp(12px, 2.2vmin, 18px); line-height: 1; }
|
||||
|
||||
/* Dünne Fortschrittslinie am unteren Rand */
|
||||
.fokus-fortschritt {
|
||||
position: absolute; left: 0; bottom: 0;
|
||||
position: absolute; left: 0;
|
||||
top: calc(100vh - 2px);
|
||||
top: calc(100dvh - 2px);
|
||||
width: 100%; height: 2px;
|
||||
background: rgba(255, 255, 255, 0.16);
|
||||
}
|
||||
.fokus-fortschritt span {
|
||||
display: block; height: 100%; width: 0;
|
||||
display: block; height: 100%;
|
||||
background: #fff;
|
||||
transform: scaleX(0); transform-origin: left;
|
||||
}
|
||||
|
||||
/* „Überspringen" oben rechts */
|
||||
.fokus-skip {
|
||||
position: absolute;
|
||||
top: clamp(18px, 4.4vmin, 48px); right: clamp(22px, 5vmin, 56px);
|
||||
padding: 10px 16px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 100px;
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
color: #fff; cursor: pointer;
|
||||
font-family: "Fragment Mono", monospace;
|
||||
font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
|
||||
transition: background 0.2s ease-out, border-color 0.2s ease-out;
|
||||
animation: fokusEin 1s 1.35s both;
|
||||
}
|
||||
.fokus-skip:hover { background: rgba(0, 0, 0, 0.5); border-color: #fff; }
|
||||
.fokus-skip:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
|
||||
|
||||
@keyframes fokusHoch { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
|
||||
@keyframes fokusEin { from { opacity: 0; } to { opacity: 1; } }
|
||||
@keyframes fokusBlinken { 0%, 48% { opacity: 1; } 50%, 100% { opacity: 0.12; } }
|
||||
@keyframes fokusScroll {
|
||||
0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
|
||||
50% { transform: translateX(-50%) translateY(7px); opacity: 1; }
|
||||
/* nur Bewegung, keine opacity: sonst überstimmt die Animation das
|
||||
Ausblenden des Hinweises durch fokus.js */
|
||||
0%, 100% { transform: translateX(-50%) translateY(0); }
|
||||
50% { transform: translateX(-50%) translateY(7px); }
|
||||
}
|
||||
|
||||
/* ==================== FALLBACKS ====================
|
||||
@@ -191,10 +230,14 @@
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.fokus-rahmen, .fokus-marke, .fokus-meta, .fokus-lock,
|
||||
.fokus-hinweis, .fokus-lock .punkt { animation: none; }
|
||||
.fokus-bild { filter: none; }
|
||||
.fokus-hinweis, .fokus-lock .punkt, .fokus-skip { animation: none; }
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.fokus-strecke { height: 480vh; }
|
||||
/* Bildunterschrift über den Scroll-Hinweis heben, volle Breite nutzen */
|
||||
.fokus-meta { bottom: 76px; right: 22px; }
|
||||
.fokus-meta .cap { max-width: none; }
|
||||
/* „Überspringen" unter den Namen setzen – oben rechts wäre es im Weg */
|
||||
.fokus-skip { top: 104px; left: 22px; right: auto; }
|
||||
}
|
||||
Reference in new issue
Block a user