From 2e65829e15e982a32d2cb0403d09b83a15b530a9 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 1 Oct 2026 10:43:01 +0000 Subject: [PATCH] =?UTF-8?q?Anker:=20scroll-margin-top=20von=206rem=20f?= =?UTF-8?q?=C3=BCr=20section[id]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sprünge zu #features, #services, #process und #contact landeten unter dem fixen Header; die Sektionen halten jetzt 6rem Abstand nach oben. Co-Authored-By: Claude Sonnet 5.5 --- src/index.css | 5 +++++ src/test/sofort-paket.test.tsx | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/index.css b/src/index.css index f9be7b4..c08ad7c 100644 --- a/src/index.css +++ b/src/index.css @@ -146,6 +146,11 @@ scroll-behavior: smooth; } + /* Anker-Ziele (#features, #services, #process, #contact) nicht unter dem fixen Header landen lassen */ + section[id] { + scroll-margin-top: 6rem; + } + body { @apply bg-background text-foreground antialiased; font-family: 'Inter', system-ui, sans-serif; diff --git a/src/test/sofort-paket.test.tsx b/src/test/sofort-paket.test.tsx index c0ed658..e98027a 100644 --- a/src/test/sofort-paket.test.tsx +++ b/src/test/sofort-paket.test.tsx @@ -450,3 +450,9 @@ describe("C3 Seitentitel und Beschreibung der Unterseiten", () => { expect(document.title).toBe("Seite nicht gefunden | WEBklar"); }); }); + +describe("A5 Anker landen nicht unter dem fixen Header", () => { + it("section[id] hat ein scroll-margin-top von etwa 6rem", () => { + expect(lies("src/index.css")).toMatch(/section\[id\]\s*\{[^}]*scroll-margin-top:\s*6rem/); + }); +});