import React, { useEffect, useState } from 'react'; import { Link, useLocation, useNavigate } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import { BadgeCheck, BarChart3, Calculator, Download, FileCheck, FileText, LineChart, Mail, Phone, ShieldCheck, TrendingUp, } from 'lucide-react'; import Layout from '@/components/Layout'; import GeneralNotice from '@/components/GeneralNotice'; import HeroSlider from '@/components/HeroSlider'; import { Button } from '@/components/ui/button'; import Disclaimer from '@/components/Disclaimer'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; import TwoColumnTab from '@/components/tab-pages/TwoColumnTab'; import RightImageCard from '@/components/tab-pages/RightImageCard'; const TAB_OVERVIEW = 'overview'; const TAB_DETAILS = 'details'; const TAB_STATISTICS = 'statistics'; const TAB_CALCULATOR = 'calculator'; const TAB_FORM = 'form'; const TAB_CATALOG = 'catalog'; const TAB_BROCHURE = 'brochure'; const RiesterRenteFinal = () => { const navigate = useNavigate(); const location = useLocation(); const { t } = useTranslation('riester_rente'); const baseUrl = import.meta.env.BASE_URL; const assetUrl = (fileName: string) => `${baseUrl}${encodeURI(fileName)}`; const [activeTab, setActiveTab] = useState(TAB_OVERVIEW); const statistics = [ { label: t('stats.s1.label', 'Verträge'), value: t('stats.s1.value', '16,5 Mio') }, { label: t('stats.s2.label', 'Förderung/Jahr'), value: t('stats.s2.value', '10 Mrd €') }, { label: t('stats.s3.label', 'Zulagen'), value: t('stats.s3.value', '175 €/Kind') }, { label: t('stats.s4.label', 'Zufriedenheit'), value: t('stats.s4.value', '89%') }, ]; useEffect(() => { const hash = (location.hash || '').replace('#', '').toLowerCase(); if (hash === TAB_DETAILS) setActiveTab(TAB_DETAILS); else if (hash === TAB_STATISTICS) setActiveTab(TAB_STATISTICS); else if (hash === TAB_CALCULATOR) setActiveTab(TAB_CALCULATOR); else if (hash === TAB_FORM) setActiveTab(TAB_FORM); else if (hash === TAB_CATALOG) setActiveTab(TAB_CATALOG); else if (hash === TAB_BROCHURE) setActiveTab(TAB_BROCHURE); else setActiveTab(TAB_OVERVIEW); if (!hash) return; window.setTimeout(() => { const tabSection = document.getElementById('tab-section'); if (tabSection) tabSection.scrollIntoView({ behavior: 'smooth', block: 'start' }); }, 100); }, [location.hash]); const onTabChange = (tab: string) => { setActiveTab(tab); if (tab === TAB_OVERVIEW) { navigate(location.pathname, { replace: true }); return; } navigate(`${location.pathname}#${tab}`, { replace: true }); }; const phoneLabel = t('form.phoneNumber', 'Telefon: 0171 / 9864053'); const EMAIL = 'info@finanzen-mizera.de'; return (
{t('tabs.overview', 'Übersicht')} {t('tabs.details', 'Details')} {t('tabs.statistics', 'Statistik')} {t('tabs.calculator', 'Rechner')} {t('tabs.form', 'Anfrage')} {t('tabs.catalog', 'Ratgeber')} {t('tabs.brochure', 'PDF')}
{t('overview.badge', 'Riester – staatlich gefördert')}

{t('overview.title', 'Mehr Förderung für Ihre Rente')} {t('overview.subtitle', 'Wir prüfen, ob sich Riester für Sie lohnt.')}

{t('overview.description')}

{t('overview.feature1Title', 'Förderung')}
{t('overview.feature1Desc', 'Zulagen & Steuervorteile')}
{t('overview.feature2Title', 'Planbar')}
{t('overview.feature2Desc', 'Langfristige Vorsorge')}
} right={
{t('overview.imageAlt', { (e.currentTarget as HTMLImageElement).style.display = 'none'; }} />
{t('overview.imageCaption', 'Zulagen prüfen')}
{t('overview.imageSubtext')}
} />

{t('details.title', 'Details')}

{t('details.subtitle')}

{[ { icon: TrendingUp, title: t('details.cards.0.title'), desc: t('details.cards.0.desc') }, { icon: ShieldCheck, title: t('details.cards.1.title'), desc: t('details.cards.1.desc') }, { icon: BadgeCheck, title: t('details.cards.2.title'), desc: t('details.cards.2.desc') }, ].map((item, idx) => (
{item.title} {item.desc}
))}

{t('statistics.title', 'Riester-Rente in Zahlen')}

{t('statistics.subtitle', 'Fakten und Daten zur staatlichen Förderung')}

{statistics.map((stat, index) => (
{stat.value}
{stat.label}
))}
{t('calculator.title', 'Fördercheck')} {t('calculator.subtitle', 'Schnelle Orientierung – unverbindlich.')}
{t('calculator.placeholder', 'Rechner kommt als nächstes – wir beraten Sie gern persönlich.')}
{t('form.title', 'Anfrage')} {t('form.subtitle', 'Wir melden uns kurzfristig bei Ihnen.')}
{t('form.phone', 'Telefon')}
{phoneLabel}
{t('form.email', 'E-Mail')}
{EMAIL}
{t('form.tipTitle', 'Tipp')} {t('form.tipDescription', 'Wir prüfen Zulagen, Kosten und passende Tarife – transparent & verständlich.')}

{t('catalog.title', 'Ratgeber')}

{t('catalog.subtitle', 'Kurz & verständlich – die wichtigsten Punkte auf einen Blick.')}

{t('catalog.cardTitle', 'Was ist wichtig?')} {t('catalog.cardDescription', 'Förderung, Kosten, Zulagenberechtigung, passende Produktart.')} } right={ {t('catalog.boxTitle', 'Hinweis')} {t('catalog.boxDescription', 'Nicht für jeden sinnvoll – wir machen den Fördercheck mit Ihnen.')} } />

{t('brochure.title', 'Informationen (PDF)')}

{t('brochure.subtitle', 'PDF zum Download – auf Anfrage.')}

{t('brochure.cardTitle', 'PDF')} {t('brochure.cardDescription', 'Gerne senden wir Ihnen die passende Broschüre zu.')} } right={ {t('brochure.tipTitle', 'Tipp')} {t('brochure.tipDescription', 'Wir erklären verständlich – ohne Fachchinesisch.')} } />
); }; export default RiesterRenteFinal;