'use client'; import React, { useState } from 'react'; import { motion, AnimatePresence } from 'framer-motion'; import { MapPin, CheckCircle2, Factory, Zap } from 'lucide-react'; import Image from 'next/image'; interface Location { id: string; name: string; type: 'hq' | 'branch' | 'project'; x: number; // percentage from left y: number; // percentage from top description?: string; details?: string[]; } const locations: Location[] = [ { id: 'guben', name: 'Guben (Hauptsitz)', type: 'hq', x: 85, // approx East (adjusted to be inside map) y: 48, // approx Middle description: 'E-TIB GmbH Holding & Bohrtechnik GmbH', details: ['Zentrale Steuerung', 'Kabelleitungstiefbau', 'Maschinenpark'], }, { id: 'buelstedt', name: 'Bülstedt (Ingenieurgesellschaft)', type: 'branch', x: 37, // approx North-West y: 25, // approx North description: 'E-TIB Ingenieurgesellschaft mbH', details: ['Planung & Projektierung', 'Vermessung', 'Dokumentation'], }, // Dummy Projects { id: 'project-1', name: '110kV Trasse München', type: 'project', x: 58, y: 85, description: 'Horizontalspülbohrung & Netzanbindung', }, { id: 'project-2', name: 'Solarpark Hamburg', type: 'project', x: 45, y: 18, description: 'Komplexe Querung unter Gewässer', }, { id: 'project-3', name: 'Windpark NRW', type: 'project', x: 20, y: 50, description: 'Kabelpflugarbeiten & LWL', }, { id: 'project-4', name: 'Trassenausbau Leipzig', type: 'project', x: 65, y: 55, description: 'Infrastrukturausbau', } ]; export function InteractiveGermanyMap() { const [activeLocation, setActiveLocation] = useState(null); const hq = locations.find((l) => l.type === 'hq'); const branch = locations.find((l) => l.type === 'branch'); const projects = locations.filter((l) => l.type === 'project'); return (
{/* Background Effects */}
{/* Content Left */}
Einsatzgebiete

Deutschlandweit
für Sie im Einsatz.

Von unseren strategischen Standorten in Guben und Bülstedt steuern und realisieren wir komplexe Infrastrukturprojekte im gesamten Bundesgebiet.

{/* Industrial Stats Grid */}
100%
Überregionale Reichweite
2+
Operative Standorte
{/* Map Right */}
{/* Map Container - Enforce strict aspect ratio matching the SVG (1024x1024) */}
{/* Map SVG */}
Deutschlandkarte
{/* Connections (Lines) */} {hq && branch && ( )} {hq && projects.map((proj, idx) => ( ))} {/* Location Pins */} {locations.map((loc, idx) => { const isHQ = loc.type === 'hq'; const isBranch = loc.type === 'branch'; const isActive = activeLocation?.id === loc.id; return (
setActiveLocation(loc)} onMouseLeave={() => setActiveLocation(null)} > {/* Ping Animation for HQ / Branch */} {(isHQ || isBranch) && (
)} {/* Marker Dot */} {(isHQ || isBranch) && } {/* Tooltip */} {isActive && (
{isHQ ? : } {loc.name}

{loc.description}

{loc.details && (
    {loc.details.map((detail, i) => (
  • {detail}
  • ))}
)} {/* Arrow Down */}
)}
); })}
); }