2026-03-07 08:34:05 +01:00
|
|
|
/**
|
|
|
|
|
* 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';
|
2026-03-07 09:03:32 +01:00
|
|
|
import './impressum.css';
|
2026-03-07 08:34:05 +01:00
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
|
|
|
|
title: 'Impressum',
|
|
|
|
|
robots: { index: false, follow: true }, // Usually no need to index legal pages
|
|
|
|
|
};
|
|
|
|
|
|
2026-03-08 21:53:20 +01:00
|
|
|
export const dynamic = 'force-dynamic';
|
|
|
|
|
|
2026-03-07 08:34:05 +01:00
|
|
|
export default function ImpressumPage() {
|
|
|
|
|
const { legal } = getConfig();
|
|
|
|
|
|
|
|
|
|
if (!legal.enabled) {
|
|
|
|
|
notFound();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="subpage-container">
|
|
|
|
|
<header className="subpage-header">
|
|
|
|
|
<BackLink href="/" label="Home" />
|
2026-03-07 09:16:05 +01:00
|
|
|
<h1 className="subpage-title">Impressum</h1>
|
|
|
|
|
<p className="subpage-subtitle">Angaben gemäß § 5 TMG</p>
|
2026-03-07 08:34:05 +01:00
|
|
|
</header>
|
|
|
|
|
|
2026-03-07 09:27:47 +01:00
|
|
|
<main className="subpage-content">
|
|
|
|
|
<section className="legal-section">
|
|
|
|
|
<h2 className="legal-section__title">Anschrift</h2>
|
|
|
|
|
<p className="legal-section__text">
|
2026-03-07 09:16:05 +01:00
|
|
|
{legal.name}
|
|
|
|
|
<br />
|
|
|
|
|
{legal.address}
|
|
|
|
|
<br />
|
|
|
|
|
{legal.zipCity}
|
|
|
|
|
<br />
|
|
|
|
|
{legal.country}
|
|
|
|
|
</p>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
{(legal.email || legal.phone) && (
|
2026-03-07 09:27:47 +01:00
|
|
|
<section className="legal-section">
|
|
|
|
|
<h2 className="legal-section__title">Kontakt</h2>
|
|
|
|
|
<p className="legal-section__text">
|
2026-03-07 09:16:05 +01:00
|
|
|
{legal.email && (
|
|
|
|
|
<>
|
|
|
|
|
E-Mail: {legal.email}
|
|
|
|
|
<br />
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
{legal.phone && <>Telefon: {legal.phone}</>}
|
2026-03-07 08:34:05 +01:00
|
|
|
</p>
|
|
|
|
|
</section>
|
2026-03-07 09:16:05 +01:00
|
|
|
)}
|
2026-03-07 08:34:05 +01:00
|
|
|
|
2026-03-07 09:16:05 +01:00
|
|
|
{(legal.taxId || legal.vatId) && (
|
2026-03-07 09:27:47 +01:00
|
|
|
<section className="legal-section">
|
|
|
|
|
<h2 className="legal-section__title">Steuernummer</h2>
|
|
|
|
|
<p className="legal-section__text">
|
2026-03-07 09:16:05 +01:00
|
|
|
{legal.taxId && (
|
|
|
|
|
<>
|
|
|
|
|
Steuernummer: {legal.taxId}
|
|
|
|
|
<br />
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
{legal.vatId && <>Umsatzsteuer-ID: {legal.vatId}</>}
|
|
|
|
|
</p>
|
|
|
|
|
</section>
|
|
|
|
|
)}
|
2026-03-07 09:13:36 +01:00
|
|
|
|
2026-03-07 09:16:05 +01:00
|
|
|
{legal.extraInfo && (
|
2026-03-07 09:27:47 +01:00
|
|
|
<section className="legal-section">
|
|
|
|
|
<h2 className="legal-section__title">Weitere Informationen</h2>
|
|
|
|
|
<p className="legal-section__text legal-section__text--pre">{legal.extraInfo}</p>
|
2026-03-07 09:13:36 +01:00
|
|
|
</section>
|
2026-03-07 09:16:05 +01:00
|
|
|
)}
|
|
|
|
|
|
2026-03-07 09:27:47 +01:00
|
|
|
<section className="legal-source">
|
2026-03-07 09:16:05 +01:00
|
|
|
<p>Quelle: Erstellt mit dem Impressum-Generator von eRecht24.</p>
|
|
|
|
|
</section>
|
2026-03-07 08:34:05 +01:00
|
|
|
</main>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|