diff --git a/frontend/src/components/Header.astro b/frontend/src/components/Header.astro index 1466869..217d39a 100644 --- a/frontend/src/components/Header.astro +++ b/frontend/src/components/Header.astro @@ -168,6 +168,34 @@ const isCurrent = (href: string) => box-shadow 200ms var(--ease-out); } + /* Ganz oben liegt die Navigation auf dem Hero — bei uns auf einem Video, + * das ständig seine Helligkeit wechselt. Schwarze Schrift auf hellem Holz + * ist mal gut, mal kaum lesbar. Dieser weiche Verlauf gibt ihr einen + * ruhigen Untergrund, ohne die schwebende Wirkung aufzugeben. Sobald die + * Glasfläche beim Scrollen einsetzt, blendet er weg. */ + #site-nav::before { + content: ""; + position: absolute; + inset: 0; + background: linear-gradient(to bottom, rgb(250 248 243 / 0.92), rgb(250 248 243 / 0)); + pointer-events: none; + /* Hinter den Inhalt: Ein absolut gesetztes ::before läge sonst über den + * Menüpunkten und würde sie verdecken. */ + z-index: -1; + transition: opacity 200ms var(--ease-out); + } + + /* Über dunklen Heros steht die Schrift weiß — dort muss der Verlauf + * dunkel sein, sonst kehrt sich das Problem nur um. */ + :root[data-hero="dark"] #site-nav::before { + background: linear-gradient(to bottom, rgb(26 24 20 / 0.72), rgb(26 24 20 / 0)); + } + + #site-nav.is-scrolled::before, + #site-nav.is-menu-open::before { + opacity: 0; + } + :root[data-nav-hidden="true"] #site-nav { transform: translateY(-100%); } diff --git a/frontend/src/layouts/Layout.astro b/frontend/src/layouts/Layout.astro index a7e9fa2..ac74993 100644 --- a/frontend/src/layouts/Layout.astro +++ b/frontend/src/layouts/Layout.astro @@ -150,7 +150,12 @@ const gaId = process.env.PUBLIC_GA_ID ?? import.meta.env.PUBLIC_GA_ID ?? ""; )} - + {/* Bewusst ohne "antialiased": Das schaltet unter macOS die + Graustufenglättung ein, die Buchstaben dünner und auf Bildschirmen + ohne hohe Auflösung sichtbar weicher macht. Genau das wurde uns als + "verschwommen" gemeldet. Die alte Seite stellt nichts um und + überlässt die Glättung dem Betriebssystem — hier jetzt auch. */} + diff --git a/frontend/src/pages/business/ihr-projekt.astro b/frontend/src/pages/business/ihr-projekt.astro index d485ec5..eb6daff 100644 --- a/frontend/src/pages/business/ihr-projekt.astro +++ b/frontend/src/pages/business/ihr-projekt.astro @@ -82,7 +82,7 @@ const leistungen = [ class="p4b-spalte-bild flex min-h-[70vh] items-end pb-5" style="background-image: url('/images/p4b/kontakt-bild-1.jpg')" > -
+

Eigene Bienen vor Ort.
Professionell betreut.
Nachhaltig erlebbar.

diff --git a/frontend/src/pages/business/kontakt.astro b/frontend/src/pages/business/kontakt.astro index a55eda3..b7c3f08 100644 --- a/frontend/src/pages/business/kontakt.astro +++ b/frontend/src/pages/business/kontakt.astro @@ -20,7 +20,7 @@ import KontaktVersand from "../../components/KontaktVersand.astro"; class="p4b-spalte-bild flex min-h-[70vh] items-end pb-5" style="background-image: url('/images/p4b/kontakt-bild-3.jpg')" > -
+

Partnerschaftliche
Vertrauensvolle
Zusammenarbeit

diff --git a/frontend/src/pages/business/philosophie.astro b/frontend/src/pages/business/philosophie.astro index 8ef2753..858c65b 100644 --- a/frontend/src/pages/business/philosophie.astro +++ b/frontend/src/pages/business/philosophie.astro @@ -25,7 +25,7 @@ const werte = [ class="p4b-spalte-bild flex min-h-[70vh] items-end pb-5" style="background-image: url('/images/p4b/philosophie-bild-15.jpg')" > -
+

Verantwortung.
Regionalität.
Wertschätzung.

diff --git a/frontend/src/pages/business/presse.astro b/frontend/src/pages/business/presse.astro index 137c3db..10d6444 100644 --- a/frontend/src/pages/business/presse.astro +++ b/frontend/src/pages/business/presse.astro @@ -36,7 +36,7 @@ const mitteilungen = [ class="p4b-spalte-bild flex min-h-[70vh] items-end pb-5" style="background-image: url('/images/p4b/philosophie-bild-15.jpg')" > -
+

Verantwortung.
Regionalität.
Wertschätzung.

diff --git a/frontend/src/pages/business/ueber-uns.astro b/frontend/src/pages/business/ueber-uns.astro index f914399..c52cb5d 100644 --- a/frontend/src/pages/business/ueber-uns.astro +++ b/frontend/src/pages/business/ueber-uns.astro @@ -34,7 +34,7 @@ const team = [ class="p4b-spalte-bild flex min-h-[70vh] items-end pb-5" style="background-image: url('/images/p4b/ueberuns-9-scaled.jpg'); background-position: center top" > -
+

Eigene Bienen vor Ort.
Professionell betreut.
Nachhaltig erlebbar.