diff --git a/public/404.html b/public/404.html index 935f76c..0844657 100644 --- a/public/404.html +++ b/public/404.html @@ -53,7 +53,7 @@ @font-face { font-family: "Inter Placeholder"; src: local("Arial"); ascent-override: 89.79%; descent-override: 22.36%; line-gap-override: 0.00%; size-adjust: 107.89% } - + diff --git a/public/custom/fokus.css b/public/custom/fokus.css index a1b45b6..02d18f2 100644 --- a/public/custom/fokus.css +++ b/public/custom/fokus.css @@ -194,22 +194,6 @@ 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; } } @@ -230,7 +214,7 @@ @media (prefers-reduced-motion: reduce) { .fokus-rahmen, .fokus-marke, .fokus-meta, .fokus-lock, - .fokus-hinweis, .fokus-lock .punkt, .fokus-skip { animation: none; } + .fokus-hinweis, .fokus-lock .punkt { animation: none; } } @media (max-width: 760px) { @@ -238,6 +222,4 @@ /* 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; } } diff --git a/public/custom/fokus.js b/public/custom/fokus.js index 70ddab8..a01467e 100644 --- a/public/custom/fokus.js +++ b/public/custom/fokus.js @@ -41,7 +41,6 @@ var cap = document.getElementById('fokus-cap'); var hinweis = document.getElementById('fokus-hinweis'); var bar = document.getElementById('fokus-bar'); - var skip = document.getElementById('fokus-skip'); if (!buehne || ebenen.length < 2) return; // Bildserie des Intros. Reihenfolge = Scroll-Reihenfolge = Dateinummer @@ -147,7 +146,6 @@ // HUD blendet auf den letzten 10 % weich aus → sauberer Übergang in die Seite var hudOp = p < 0.9 ? '1' : String(Math.max(0, 1 - (p - 0.9) / 0.1)); if (hud) hud.style.opacity = hudOp; - if (skip) skip.style.opacity = hudOp; // Intro beendet → transitions.js das Dock einblenden lassen (s. intro-beendet). if (!beendet && p >= 0.985) { @@ -180,16 +178,6 @@ var beiDrehung = function () { messen(); if (aktuell >= 0) scharfstellen(aktuell); }; if (hochMQ.addEventListener) hochMQ.addEventListener('change', beiDrehung); - // „Überspringen": ohne Animation direkt ans Ende der Strecke (kein - // Schnelldurchlauf der Bilder). window.lenis kommt aus smooth-scroll.js. - if (skip) { - skip.addEventListener('click', function () { - var ziel = strecke.offsetTop + strecke.offsetHeight; - if (window.lenis && window.lenis.scrollTo) window.lenis.scrollTo(ziel, { immediate: true, force: true }); - else window.scrollTo(0, ziel); - }); - } - // Erststart messen(); zeichnen(); diff --git a/public/custom/site.css b/public/custom/site.css index e74bd8e..73ff850 100644 --- a/public/custom/site.css +++ b/public/custom/site.css @@ -61,6 +61,10 @@ display: flex; align-items: center; gap: 28px; background: var(--text); color: #fff; border-radius: 24px; padding: 13px 24px; + /* left: 50% lässt der Leiste sonst nur die halbe Fensterbreite → + Einträge wie „Über mich" brechen um. Breite nach Inhalt erzwingen. */ + width: max-content; max-width: calc(100vw - 32px); + white-space: nowrap; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity 0.4s ease-out, transform 0.4s ease-out; } @@ -721,9 +725,8 @@ body { transition: opacity 0.3s ease-out, transform 0.3s ease-out, filter 0.3s e /* ==================== SPRACHSCHALTER (DE ↔ EN) ==================== Kopfzeile: dezente Kontur-Pille neben dem Kontakt-Button. - Dock: kleine Kontur-Pille in Weiß, dauerhaft sichtbar (auch mobil - neben dem Burger), damit der Sprung in die andere Sprache nie - hinter dem Menü versteckt ist. */ + Dock: kleine Kontur-Pille in Weiß als letzter Eintrag der Link-Liste – + am Laptop also in der Leiste, mobil im aufklappbaren Menü (Burger). */ .sprach-schalter { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--linie); border-radius: var(--radius-pill); @@ -743,6 +746,11 @@ body { transition: opacity 0.3s ease-out, transform 0.3s ease-out, filter 0.3s e transition: opacity 0.2s ease-out, border-color 0.2s ease-out; } .dock-sprache:hover { opacity: 1; border-color: rgba(255, 255, 255, 0.7); } +/* Im aufgeklappten Handy-Menü: eigene Maße, sonst erbt die Pille die großen + Menü-Link-Werte (20px Schrift, kein Seitenabstand) und wirkt gequetscht. */ +@media (max-width: 809.98px) { + .dock-links .dock-sprache { margin-top: 12px; padding: 8px 22px; font-size: 14px; } +} @media (prefers-reduced-motion: reduce) { .sprach-schalter, .dock-sprache { transition: none; } diff --git a/public/custom/smooth-scroll.js b/public/custom/smooth-scroll.js index be26ed7..0d1bc60 100644 --- a/public/custom/smooth-scroll.js +++ b/public/custom/smooth-scroll.js @@ -5,7 +5,6 @@ (function () { if (typeof Lenis !== 'function') return; const lenis = new Lenis({ duration: 1.0 }); - window.lenis = lenis; // für fokus.js (Intro überspringen) function raf(time) { lenis.raf(time); requestAnimationFrame(raf); } requestAnimationFrame(raf); })(); diff --git a/public/datenschutz.html b/public/datenschutz.html index 585f634..4a28b3a 100644 --- a/public/datenschutz.html +++ b/public/datenschutz.html @@ -56,7 +56,7 @@ - + diff --git a/public/en/about.html b/public/en/about.html index e1ff061..b44add7 100644 --- a/public/en/about.html +++ b/public/en/about.html @@ -56,7 +56,7 @@ - + @@ -103,8 +103,8 @@ Services Contact Shop + DE - DE - @@ -158,8 +156,8 @@ Services Contact Shop + DE - DE - @@ -163,8 +161,8 @@ Leistungen Kontakt Shop + EN - EN