"use client"; import React, { useState } from "react"; import { ComponentShareButton } from "../ComponentShareButton"; import { Reveal } from "../Reveal"; import { ComposedChart, Line, Bar, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, } from "recharts"; import { ShieldAlert, Rocket, Database, Lock } from "lucide-react"; const archData = [ { year: "Jahr 1", saasInvest: 50, saasIndep: 40, customInvest: 120, customIndep: 80, }, { year: "Jahr 2", saasInvest: 100, saasIndep: 30, customInvest: 140, customIndep: 90, }, { year: "Jahr 3", saasInvest: 155, saasIndep: 20, customInvest: 155, customIndep: 95, }, { year: "Jahr 4", saasInvest: 220, saasIndep: 10, customInvest: 170, customIndep: 100, }, { year: "Jahr 5", saasInvest: 290, saasIndep: 5, customInvest: 185, customIndep: 100, }, ]; export function ArchitectureBuilder({ className = "", }: { className?: string; }) { const [stack, setStack] = useState<"saas" | "custom">("custom"); return (
🏗️

Zeitlicher Verlauf: Investment vs. Unabhängigkeit

Wie Plattform-Abhängigkeit (Lock-in) über die Jahre Ihre Skalierbarkeit zerstört, während ein Headless-System echte Souveränität aufbaut.

{/* Control Tabs */}
{/* Chart Area */}
{/* Left Y-Axis: Cost */} `€${val}k`} axisLine={false} tickLine={false} tick={{ fill: "#94a3b8", fontSize: 12 }} dx={-10} /> {/* Right Y-Axis: Independence */} `${val}%`} axisLine={false} tickLine={false} tick={{ fill: "#14b8a6", fontSize: 12, fontWeight: "bold", }} dx={10} domain={[0, 100]} /> { if (name === "saasInvest") return [ `€${value}.000`, "Kumuliertes Investment (Miete + Addons)", ]; if (name === "customInvest") return [ `€${value}.000`, "Kumuliertes Investment (Bau + Betrieb)", ]; if (name === "saasIndep") return [ `${value}%`, "Technische Unabhängigkeit (Lock-in sinkt)", ]; if (name === "customIndep") return [ `${value}%`, "Technische Unabhängigkeit & Datenhoheit", ]; return [String(value), String(name)]; }} labelStyle={{ fontWeight: "bold", color: "#0f172a", marginBottom: "8px", }} /> {stack === "saas" ? ( <> ) : ( <> )}
{/* Impact Summary */}
{stack === "saas" ? ( ) : ( )}
{stack === "saas" ? "Massiver Platform Lock-in" : "100% Datenhoheit"}
{stack === "saas" ? "Ihre Daten und Prozesse liegen bei Dritten. Umzüge werden nach Jahr 2 exponentiell teuers und riskant." : "Sie besitzen die Kern-Datenbanken und APIs. Keine Lizenzschocks, keine Blackbox-Updates."}
); }