/** * Impressum (Legal Notice) page. * Required for German law compliance. Displays information from settings.yaml. */ import { Metadata } from 'next'; import { notFound } from 'next/navigation'; import { getConfig } from '@/lib/config'; import { BackLink } from '@/components/BackLink'; import { getServerDictionary } from '@/lib/i18n/server'; import './impressum.css'; export function generateMetadata(): Metadata { return { title: getServerDictionary().legal.title, robots: { index: false, follow: true }, // Usually no need to index legal pages }; } export const dynamic = 'force-dynamic'; export default function ImpressumPage() { const { legal } = getConfig(); const t = getServerDictionary(); if (!legal.enabled) { notFound(); } return (

{t.legal.title}

{t.legal.subtitle}

{t.legal.address}

{legal.name}
{legal.address}
{legal.zipCity}
{legal.country}

{(legal.email || legal.phone) && (

{t.legal.contact}

{legal.email && ( <> {t.legal.email}: {legal.email}
)} {legal.phone && ( <> {t.legal.phone}: {legal.phone} )}

)} {(legal.taxId || legal.vatId) && (

{t.legal.taxSection}

{legal.taxId && ( <> {t.legal.taxId}: {legal.taxId}
)} {legal.vatId && ( <> {t.legal.vatId}: {legal.vatId} )}

)} {legal.extraInfo && (

{t.legal.extraInfo}

{legal.extraInfo}

)}

{t.legal.source}

); }