import type { Metadata } from "next"; import Link from "next/link"; import Image from "next/image"; import { draftMode } from "next/headers"; import { Reveal } from "../components/Reveal"; import { Footer } from "../components/Footer"; import { RichText, extractHeadings } from "../components/RichText"; import { LiveRichText } from "../components/LiveRichText"; import { SectionTOC } from "../components/SectionTOC"; import { getLegalPage } from "../lib/payload"; export const metadata: Metadata = { title: "Impressum", description: "Angaben gemäß § 5 TMG für einfach produktiv.", alternates: { canonical: "/impressum" }, }; export default async function ImpressumPage() { const page = await getLegalPage("impressum"); const headings = page ? extractHeadings(page.content) : []; const { isEnabled: isPreview } = await draftMode(); return ( <>

Startseite Impressum

Impressum

Angaben gemäß § 5 TMG

{/* Static, not part of the CMS content — the LegalPages collection's richText field is deliberately generic (shared shape across Impressum/Datenschutz/AGB/Widerruf), so a bespoke brand callout like this doesn't belong inside it; hardcoding it here matches how VersandSections.tsx keeps structural/brand elements in code and only pulls the actual numbers/copy that need single-sourcing from data. */}

Nachhaltigkeit

Diese Website wird mit Ökostrom betrieben und ist klimafreundlich gehostet.

Für eine bessere Zukunft – für uns alle.

{page ? ( isPreview ? : ) : (

Inhalte werden gerade aktualisiert.

)}