import React, { useEffect, useState } from 'react'; import { Link, useLocation, useNavigate } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import { CheckCircle, ClipboardList, Download, HeartPulse, Hospital, Mail, Phone, Shield, FileText, Calculator, Users, Star, Home, Activity, Baby, Heart, FileCheck } 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 { 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_CALCULATOR = 'calculator'; const TAB_FORM = 'form'; const TAB_CATALOG = 'catalog'; const TAB_BROCHURE = 'brochure'; const KinderGesundheit = () => { const navigate = useNavigate(); const location = useLocation(); const { t } = useTranslation('kinder_gesundheit'); const baseUrl = import.meta.env.BASE_URL; const assetUrl = (fileName: string) => `${baseUrl}${encodeURI(fileName)}`; const [activeTab, setActiveTab] = useState(TAB_OVERVIEW); useEffect(() => { const hash = (location.hash || '').replace('#', '').toLowerCase(); if (hash === 'zahn') { navigate('/familien-kinder/gesundheit/zahn', { replace: true }); return; } if (hash === TAB_DETAILS) setActiveTab(TAB_DETAILS); 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, navigate]); 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 WHATSAPP_URL = 'https://wa.me/491719864053'; const EMAIL = 'info@finanzen-mizera.de'; return (
{t('tabs.overview', 'Übersicht')} {t('tabs.details', 'Details')} {t('tabs.calculator', 'Rechner')} {t('tabs.form', 'Anfrage')} {t('tabs.catalog', 'Ratgeber')} {t('tabs.brochure', 'PDF')}
{t('overview.badge', 'Nur das Beste für Ihr Kind?')}

{t('overview.title', 'Nur das Beste für Ihr Kind?')} {t('overview.subtitle', 'Eine sehr gesunde Entscheidung.')}

{t('overview.description')}

{t('overview.feature1Title', 'Planbar')}
{t('overview.feature1Desc', 'bessere Leistungen')}
{t('overview.feature2Title', 'Flexibel')}
{t('overview.feature2Desc', 'Bausteine wählen')}
} right={
Kinder Gesundheit { (e.currentTarget as HTMLImageElement).style.display = 'none'; }} />
{t('overview.imageCaption', 'Zahn, Brille, Klinik')}
{t('overview.imageSubtext')}
} />

{t('brochure.title', 'Kundenbroschüre (PDF)')}

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

{t('brochure.cardTitle', 'Broschüre')} {t('brochure.cardDescription', 'Gerne senden wir dir die passende Broschüre zu.')} } right={ {t('brochure.tipTitle', 'Tipp')} {t('brochure.tipDescription', 'Wir helfen bei der Auswahl der richtigen Leistungen.')} } />
{t('details.kicker')}

{t('details.title')}

{t('details.description')}

{t('details.leistung.title', 'Leistung')} {t('details.leistung.badge', 'clinic+')}
{(t('details.leistung.rows', { returnObjects: true }) as unknown as string[]).map((row) => (
{row}
))}
{t('details.ueberblick.title')} {t('details.ueberblick.badge')}
{(t('details.ueberblick.items', { returnObjects: true }) as unknown as string[]).map((row) => (
{row}
))}
{t('details.ueberblick.disclaimer')}
{t('details.leistungsfall.title')} {t('details.leistungsfall.description')}
{t('details.leistungsfall.priceSticker.prefix')}
{t('details.leistungsfall.priceSticker.price')} {t('details.leistungsfall.priceSticker.suffix')}
{(t('details.leistungsfall.rows', { returnObjects: true }) as unknown as Array<{ label: string; value: string; strong?: boolean }>).map( (row) => (
{row.label}
{row.value}
), )}
{t('details.leistungsfall.clinicPlusTitle')}
{t('details.leistungsfall.clinicPlusLabel')}
{t('details.leistungsfall.clinicPlusValue')}
{t('details.hinweis.title')} {t('details.hinweis.subtitle')} {t('details.hinweis.text')}

{t('calculator.title')}

{t('calculator.description')}

{t('calculator.example')} {t('calculator.exampleDescription')}
{t('calculator.exampleValueDescription')}
{t('calculator.exampleValue')}
{t('calculator.exampleDisclaimer')}
} right={ {t('calculator.requirements')} {t('calculator.requirementsDescription')}
{t('calculator.requirement1')}
{t('calculator.requirement2')}
} />

{t('form.title')}

{t('form.description')}

} right={ {t('form.directContact')} {t('form.directContactDescription')}
{phoneLabel}{' '} (auch WhatsApp)
} />

{t('catalog.title')}

{t('catalog.description')}

{t('catalog.checklist')} {t('catalog.checklistDescription')}
{[ 'Leistungsumfang (KFO, Prophylaxe, Wahlleistungen)', 'Wartezeiten & Summenbegrenzungen', 'Erstattungssätze & Bedingungen', 'Beitragsentwicklung im Blick behalten', ].map((row) => (
{row}
))}
} right={ Frage? Wir beraten persönlich. } />
); }; export default KinderGesundheit;