diff --git a/hifi-src/src/components/admin/VehicleCatalogDialog.jsx b/hifi-src/src/components/admin/VehicleCatalogDialog.jsx
new file mode 100644
index 0000000..c6a8dee
--- /dev/null
+++ b/hifi-src/src/components/admin/VehicleCatalogDialog.jsx
@@ -0,0 +1,258 @@
+import { useEffect, useMemo, useRef, useState } from 'react';
+import { ChevronDown, ChevronRight, Search, X } from 'lucide-react';
+import { api } from '../../api/client.js';
+import useDialog from '../../hooks/useDialog.js';
+import { useToast } from '../../context/AdminUiContext.jsx';
+
+// Kleinschreibung ohne Akzente, damit "skoda" auch "Škoda" findet.
+const normalize = (value) => value.normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase();
+const count = (n, one, many) => `${n} ${n === 1 ? one : many}`;
+
+// Auswahl aus der Fahrzeug-Vorlage (api/data/vehicle-catalog.json): Marken/Modelle anhaken
+// und anlegen. Bereits vorhandene Eintraege sind markiert und werden nie doppelt angelegt.
+export default function VehicleCatalogDialog({ open, onClose, onImported }) {
+ const toast = useToast();
+ const dialogRef = useRef(null);
+ const [catalog, setCatalog] = useState(null);
+ const [error, setError] = useState('');
+ const [query, setQuery] = useState('');
+ const [expanded, setExpanded] = useState(() => new Set());
+ // Marke -> Set der ausgewaehlten Modellnamen
+ const [selected, setSelected] = useState(() => new Map());
+ const [busy, setBusy] = useState(false);
+
+ useDialog(dialogRef, open, onClose);
+
+ useEffect(() => {
+ if (!open) return;
+ setCatalog(null);
+ setError('');
+ setSelected(new Map());
+ setExpanded(new Set());
+ setQuery('');
+ api.get('/vehicle-catalog').then(setCatalog).catch((err) => setError(err.message));
+ }, [open]);
+
+ const brands = useMemo(() => {
+ if (!catalog) return [];
+ const q = normalize(query.trim());
+ return catalog
+ .map((entry) => {
+ const newModels = entry.models.filter((m) => !m.exists);
+ if (!q || normalize(entry.brand).includes(q)) return { ...entry, newModels, visibleModels: entry.models };
+ const visibleModels = entry.models.filter((m) => normalize(`${entry.brand} ${m.name}`).includes(q));
+ return visibleModels.length ? { ...entry, newModels, visibleModels } : null;
+ })
+ .filter(Boolean);
+ }, [catalog, query]);
+
+ const totals = useMemo(() => {
+ let models = 0;
+ let newBrands = 0;
+ selected.forEach((names, brand) => {
+ models += names.size;
+ if (names.size && catalog?.find((e) => e.brand === brand && !e.exists)) newBrands += 1;
+ });
+ return { models, newBrands };
+ }, [selected, catalog]);
+
+ const allNew = useMemo(
+ () => (catalog || []).reduce((sum, entry) => sum + entry.models.filter((m) => !m.exists).length, 0),
+ [catalog]
+ );
+
+ const setBrandModels = (brand, names) => {
+ setSelected((current) => {
+ const next = new Map(current);
+ if (names.size) next.set(brand, names);
+ else next.delete(brand);
+ return next;
+ });
+ };
+
+ const toggleBrand = (entry) => {
+ const current = selected.get(entry.brand) || new Set();
+ // Bei einer Suche nur die sichtbaren Modelle umschalten
+ const pool = entry.visibleModels.filter((m) => !m.exists).map((m) => m.name);
+ const allOn = pool.every((name) => current.has(name));
+ const next = new Set(current);
+ pool.forEach((name) => (allOn ? next.delete(name) : next.add(name)));
+ setBrandModels(entry.brand, next);
+ };
+
+ const toggleModel = (brand, name) => {
+ const next = new Set(selected.get(brand) || []);
+ if (next.has(name)) next.delete(name);
+ else next.add(name);
+ setBrandModels(brand, next);
+ };
+
+ const toggleExpanded = (brand) => {
+ setExpanded((current) => {
+ const next = new Set(current);
+ if (next.has(brand)) next.delete(brand);
+ else next.add(brand);
+ return next;
+ });
+ };
+
+ const selectAllVisible = () => {
+ const next = new Map(selected);
+ brands.forEach((entry) => {
+ const names = new Set(next.get(entry.brand) || []);
+ entry.visibleModels.filter((m) => !m.exists).forEach((m) => names.add(m.name));
+ if (names.size) next.set(entry.brand, names);
+ });
+ setSelected(next);
+ };
+
+ const handleImport = async () => {
+ setBusy(true);
+ try {
+ const items = [...selected].map(([brand, names]) => ({ brand, models: [...names] }));
+ const result = await api.post('/vehicle-catalog/import', { items });
+ toast.success(
+ `${count(result.models, 'Modell', 'Modelle')}${result.brands ? ` und ${count(result.brands, 'Marke', 'Marken')}` : ''} angelegt.`
+ + (result.skipped ? ` ${count(result.skipped, 'Modell war', 'Modelle waren')} schon vorhanden.` : '')
+ );
+ onImported?.();
+ onClose();
+ } catch (err) {
+ toast.error(`Laden fehlgeschlagen: ${err.message}`);
+ } finally {
+ setBusy(false);
+ }
+ };
+
+ if (!open) return null;
+
+ return (
+
-
Modelle
+
+
Modelle
+
+
@@ -231,6 +242,7 @@ export default function Models() {
)}
+
setCatalogOpen(false)} onImported={load} />
);
}
diff --git a/hifi/api/data/vehicle-catalog.json b/hifi/api/data/vehicle-catalog.json
new file mode 100644
index 0000000..793a4a3
--- /dev/null
+++ b/hifi/api/data/vehicle-catalog.json
@@ -0,0 +1,6558 @@
+[
+ {
+ "brand": "Abarth",
+ "models": [
+ {
+ "name": "500 / 595 / 695",
+ "years": "2008–2024"
+ },
+ {
+ "name": "500e",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Grande Punto / Punto Evo",
+ "years": "2007–2014"
+ },
+ {
+ "name": "600e",
+ "years": "2024–heute"
+ },
+ {
+ "name": "124 Spider",
+ "years": "2016–2019"
+ }
+ ]
+ },
+ {
+ "brand": "Alfa Romeo",
+ "models": [
+ {
+ "name": "MiTo",
+ "years": "2008–2018"
+ },
+ {
+ "name": "147",
+ "years": "2000–2010"
+ },
+ {
+ "name": "145 / 146",
+ "years": "1994–2001"
+ },
+ {
+ "name": "Giulietta (940)",
+ "years": "2010–2020"
+ },
+ {
+ "name": "156",
+ "years": "1997–2005"
+ },
+ {
+ "name": "159",
+ "years": "2005–2011"
+ },
+ {
+ "name": "Giulia (952)",
+ "years": "2016–heute"
+ },
+ {
+ "name": "166",
+ "years": "1998–2007"
+ },
+ {
+ "name": "Junior",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Tonale",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Stelvio (949)",
+ "years": "2017–heute"
+ },
+ {
+ "name": "GT (937)",
+ "years": "2003–2010"
+ },
+ {
+ "name": "Brera",
+ "years": "2005–2010"
+ },
+ {
+ "name": "Spider (939)",
+ "years": "2006–2010"
+ },
+ {
+ "name": "GTV / Spider (916)",
+ "years": "1995–2006"
+ },
+ {
+ "name": "8C Competizione",
+ "years": "2007–2010"
+ },
+ {
+ "name": "4C",
+ "years": "2013–2020"
+ },
+ {
+ "name": "33 Stradale",
+ "years": "2024–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Alpine",
+ "models": [
+ {
+ "name": "A290",
+ "years": "2024–heute"
+ },
+ {
+ "name": "A390",
+ "years": "2025–heute"
+ },
+ {
+ "name": "A110",
+ "years": "2017–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Aston Martin",
+ "models": [
+ {
+ "name": "Cygnet",
+ "years": "2011–2013"
+ },
+ {
+ "name": "Rapide",
+ "years": "2010–2020"
+ },
+ {
+ "name": "DBX",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Vantage II",
+ "years": "2018–heute"
+ },
+ {
+ "name": "Vantage I (V8/V12 Vantage)",
+ "years": "2005–2018"
+ },
+ {
+ "name": "DB12",
+ "years": "2023–heute"
+ },
+ {
+ "name": "DB11",
+ "years": "2016–2023"
+ },
+ {
+ "name": "DB9",
+ "years": "2004–2016"
+ },
+ {
+ "name": "DB7",
+ "years": "1994–2004"
+ },
+ {
+ "name": "Virage",
+ "years": "2011–2012"
+ },
+ {
+ "name": "DBS Superleggera",
+ "years": "2018–2023"
+ },
+ {
+ "name": "DBS V12",
+ "years": "2007–2012"
+ },
+ {
+ "name": "Vanquish III",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Vanquish II",
+ "years": "2012–2018"
+ },
+ {
+ "name": "Vanquish I",
+ "years": "2001–2007"
+ },
+ {
+ "name": "Valhalla",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Valkyrie",
+ "years": "2021–2024"
+ }
+ ]
+ },
+ {
+ "brand": "Audi",
+ "models": [
+ {
+ "name": "A1 GB",
+ "years": "2018–heute"
+ },
+ {
+ "name": "A1 8X",
+ "years": "2010–2018"
+ },
+ {
+ "name": "A2 8Z",
+ "years": "1999–2005"
+ },
+ {
+ "name": "A3 8Y",
+ "years": "2020–heute"
+ },
+ {
+ "name": "A3 8V",
+ "years": "2012–2020"
+ },
+ {
+ "name": "A3 8P",
+ "years": "2003–2013"
+ },
+ {
+ "name": "A3 8L",
+ "years": "1996–2003"
+ },
+ {
+ "name": "A4 B9",
+ "years": "2015–2024"
+ },
+ {
+ "name": "A4 B8",
+ "years": "2007–2015"
+ },
+ {
+ "name": "A4 B7",
+ "years": "2004–2008"
+ },
+ {
+ "name": "A4 B6",
+ "years": "2000–2004"
+ },
+ {
+ "name": "A4 B5",
+ "years": "1994–2001"
+ },
+ {
+ "name": "A5 B10",
+ "years": "2024–heute"
+ },
+ {
+ "name": "A5 F5",
+ "years": "2016–2024"
+ },
+ {
+ "name": "A5 8T",
+ "years": "2007–2016"
+ },
+ {
+ "name": "A6 C9",
+ "years": "2025–heute"
+ },
+ {
+ "name": "A6 C8",
+ "years": "2018–2025"
+ },
+ {
+ "name": "A6 C7",
+ "years": "2011–2018"
+ },
+ {
+ "name": "A6 C6",
+ "years": "2004–2011"
+ },
+ {
+ "name": "A6 C5",
+ "years": "1997–2004"
+ },
+ {
+ "name": "A6 e-tron",
+ "years": "2024–heute"
+ },
+ {
+ "name": "A7 C8",
+ "years": "2018–2025"
+ },
+ {
+ "name": "A7 C7",
+ "years": "2010–2018"
+ },
+ {
+ "name": "A8 D5",
+ "years": "2017–heute"
+ },
+ {
+ "name": "A8 D4",
+ "years": "2010–2017"
+ },
+ {
+ "name": "A8 D3",
+ "years": "2002–2010"
+ },
+ {
+ "name": "A8 D2",
+ "years": "1994–2002"
+ },
+ {
+ "name": "Q2 GA",
+ "years": "2016–heute"
+ },
+ {
+ "name": "Q3 III",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Q3 F3",
+ "years": "2018–2025"
+ },
+ {
+ "name": "Q3 8U",
+ "years": "2011–2018"
+ },
+ {
+ "name": "Q4 e-tron",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Q5 III",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Q5 FY",
+ "years": "2016–2024"
+ },
+ {
+ "name": "Q5 8R",
+ "years": "2008–2017"
+ },
+ {
+ "name": "Q6 e-tron",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Q7 4M",
+ "years": "2015–heute"
+ },
+ {
+ "name": "Q7 4L",
+ "years": "2006–2015"
+ },
+ {
+ "name": "Q8 4M",
+ "years": "2018–heute"
+ },
+ {
+ "name": "Q8 e-tron / e-tron GE",
+ "years": "2018–2024"
+ },
+ {
+ "name": "e-tron GT",
+ "years": "2021–heute"
+ },
+ {
+ "name": "TT 8S",
+ "years": "2014–2023"
+ },
+ {
+ "name": "TT 8J",
+ "years": "2006–2014"
+ },
+ {
+ "name": "TT 8N",
+ "years": "1998–2006"
+ },
+ {
+ "name": "R8 4S",
+ "years": "2015–2024"
+ },
+ {
+ "name": "R8 42",
+ "years": "2006–2015"
+ }
+ ]
+ },
+ {
+ "brand": "Bentley",
+ "models": [
+ {
+ "name": "Flying Spur III",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Flying Spur II",
+ "years": "2013–2019"
+ },
+ {
+ "name": "Continental Flying Spur I",
+ "years": "2005–2013"
+ },
+ {
+ "name": "Mulsanne",
+ "years": "2010–2020"
+ },
+ {
+ "name": "Arnage",
+ "years": "1998–2009"
+ },
+ {
+ "name": "Bentayga",
+ "years": "2015–heute"
+ },
+ {
+ "name": "Continental GT IV",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Continental GT III",
+ "years": "2018–2024"
+ },
+ {
+ "name": "Continental GT II",
+ "years": "2011–2018"
+ },
+ {
+ "name": "Continental GT I",
+ "years": "2003–2011"
+ },
+ {
+ "name": "Azure",
+ "years": "2006–2009"
+ },
+ {
+ "name": "Brooklands",
+ "years": "2008–2011"
+ }
+ ]
+ },
+ {
+ "brand": "BMW",
+ "models": [
+ {
+ "name": "1er F70",
+ "years": "2024–heute"
+ },
+ {
+ "name": "1er F40",
+ "years": "2019–2024"
+ },
+ {
+ "name": "1er F20",
+ "years": "2011–2019"
+ },
+ {
+ "name": "1er E87",
+ "years": "2004–2011"
+ },
+ {
+ "name": "1er Coupé E82",
+ "years": "2007–2013"
+ },
+ {
+ "name": "1er Cabrio E88",
+ "years": "2008–2013"
+ },
+ {
+ "name": "2er Coupé G42",
+ "years": "2021–heute"
+ },
+ {
+ "name": "2er Coupé F22",
+ "years": "2014–2021"
+ },
+ {
+ "name": "2er Cabrio F23",
+ "years": "2015–2021"
+ },
+ {
+ "name": "2er Gran Coupé F74",
+ "years": "2024–heute"
+ },
+ {
+ "name": "2er Gran Coupé F44",
+ "years": "2019–2024"
+ },
+ {
+ "name": "3er G20",
+ "years": "2019–heute"
+ },
+ {
+ "name": "3er F30",
+ "years": "2012–2019"
+ },
+ {
+ "name": "3er E90",
+ "years": "2005–2012"
+ },
+ {
+ "name": "3er E46",
+ "years": "1998–2006"
+ },
+ {
+ "name": "3er Gran Turismo F34",
+ "years": "2013–2020"
+ },
+ {
+ "name": "i3 NA0",
+ "years": "2026–heute"
+ },
+ {
+ "name": "i3 I01",
+ "years": "2013–2022"
+ },
+ {
+ "name": "4er G22",
+ "years": "2020–heute"
+ },
+ {
+ "name": "4er F32",
+ "years": "2013–2020"
+ },
+ {
+ "name": "4er Gran Coupé G26",
+ "years": "2021–heute"
+ },
+ {
+ "name": "4er Gran Coupé F36",
+ "years": "2014–2021"
+ },
+ {
+ "name": "i4 G26",
+ "years": "2021–heute"
+ },
+ {
+ "name": "5er G60",
+ "years": "2023–heute"
+ },
+ {
+ "name": "5er G30",
+ "years": "2017–2023"
+ },
+ {
+ "name": "5er F10",
+ "years": "2010–2017"
+ },
+ {
+ "name": "5er E60",
+ "years": "2003–2010"
+ },
+ {
+ "name": "5er E39",
+ "years": "1995–2004"
+ },
+ {
+ "name": "5er Gran Turismo F07",
+ "years": "2009–2017"
+ },
+ {
+ "name": "i5 G60",
+ "years": "2023–heute"
+ },
+ {
+ "name": "6er Gran Turismo G32",
+ "years": "2017–2023"
+ },
+ {
+ "name": "6er F12",
+ "years": "2011–2018"
+ },
+ {
+ "name": "6er Gran Coupé F06",
+ "years": "2012–2018"
+ },
+ {
+ "name": "6er E63",
+ "years": "2003–2010"
+ },
+ {
+ "name": "7er G70",
+ "years": "2022–heute"
+ },
+ {
+ "name": "7er G11",
+ "years": "2015–2022"
+ },
+ {
+ "name": "7er F01",
+ "years": "2008–2015"
+ },
+ {
+ "name": "7er E65",
+ "years": "2001–2008"
+ },
+ {
+ "name": "i7 G70",
+ "years": "2022–heute"
+ },
+ {
+ "name": "8er G15",
+ "years": "2018–2026"
+ },
+ {
+ "name": "8er Gran Coupé G16",
+ "years": "2019–2026"
+ },
+ {
+ "name": "X1 U11",
+ "years": "2022–heute"
+ },
+ {
+ "name": "X1 F48",
+ "years": "2015–2022"
+ },
+ {
+ "name": "X1 E84",
+ "years": "2009–2015"
+ },
+ {
+ "name": "iX1 U11",
+ "years": "2022–heute"
+ },
+ {
+ "name": "X2 U10",
+ "years": "2023–heute"
+ },
+ {
+ "name": "X2 F39",
+ "years": "2018–2023"
+ },
+ {
+ "name": "iX2 U10",
+ "years": "2024–heute"
+ },
+ {
+ "name": "X3 G45",
+ "years": "2024–heute"
+ },
+ {
+ "name": "X3 G01",
+ "years": "2017–2024"
+ },
+ {
+ "name": "X3 F25",
+ "years": "2010–2017"
+ },
+ {
+ "name": "X3 E83",
+ "years": "2003–2010"
+ },
+ {
+ "name": "iX3 NA5",
+ "years": "2025–heute"
+ },
+ {
+ "name": "iX3 G08",
+ "years": "2020–2025"
+ },
+ {
+ "name": "X4 G02",
+ "years": "2018–heute"
+ },
+ {
+ "name": "X4 F26",
+ "years": "2014–2018"
+ },
+ {
+ "name": "X5 G05",
+ "years": "2018–heute"
+ },
+ {
+ "name": "X5 F15",
+ "years": "2013–2018"
+ },
+ {
+ "name": "X5 E70",
+ "years": "2006–2013"
+ },
+ {
+ "name": "X5 E53",
+ "years": "1999–2006"
+ },
+ {
+ "name": "X6 G06",
+ "years": "2019–heute"
+ },
+ {
+ "name": "X6 F16",
+ "years": "2014–2019"
+ },
+ {
+ "name": "X6 E71",
+ "years": "2008–2014"
+ },
+ {
+ "name": "iX I20",
+ "years": "2021–heute"
+ },
+ {
+ "name": "X7 G07",
+ "years": "2019–heute"
+ },
+ {
+ "name": "XM G09",
+ "years": "2022–heute"
+ },
+ {
+ "name": "2er Active Tourer U06",
+ "years": "2021–heute"
+ },
+ {
+ "name": "2er Active Tourer F45",
+ "years": "2014–2021"
+ },
+ {
+ "name": "2er Gran Tourer F46",
+ "years": "2015–2022"
+ },
+ {
+ "name": "M2 G87",
+ "years": "2023–heute"
+ },
+ {
+ "name": "M2 F87",
+ "years": "2016–2021"
+ },
+ {
+ "name": "Z4 G29",
+ "years": "2018–heute"
+ },
+ {
+ "name": "Z4 E89",
+ "years": "2009–2016"
+ },
+ {
+ "name": "Z4 E85",
+ "years": "2002–2008"
+ },
+ {
+ "name": "i8 I12",
+ "years": "2014–2020"
+ }
+ ]
+ },
+ {
+ "brand": "BYD",
+ "models": [
+ {
+ "name": "Dolphin Surf",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Dolphin",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Seal",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Seal 6 DM-i",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Han",
+ "years": "2022–2024"
+ },
+ {
+ "name": "Atto 2",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Atto 3",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Seal U",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Sealion 7",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Tang",
+ "years": "2022–heute"
+ },
+ {
+ "name": "e6",
+ "years": "2021–2022"
+ },
+ {
+ "name": "ETP3",
+ "years": "2021–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Chevrolet",
+ "models": [
+ {
+ "name": "Matiz M200",
+ "years": "2005–2010"
+ },
+ {
+ "name": "Spark M300",
+ "years": "2010–2015"
+ },
+ {
+ "name": "Kalos T200",
+ "years": "2005–2008"
+ },
+ {
+ "name": "Aveo T300",
+ "years": "2011–2015"
+ },
+ {
+ "name": "Aveo T250",
+ "years": "2006–2011"
+ },
+ {
+ "name": "Lacetti",
+ "years": "2005–2011"
+ },
+ {
+ "name": "Nubira",
+ "years": "2005–2010"
+ },
+ {
+ "name": "Cruze J300",
+ "years": "2009–2015"
+ },
+ {
+ "name": "Volt",
+ "years": "2011–2014"
+ },
+ {
+ "name": "Evanda",
+ "years": "2004–2006"
+ },
+ {
+ "name": "Epica",
+ "years": "2006–2011"
+ },
+ {
+ "name": "Malibu V300",
+ "years": "2012–2015"
+ },
+ {
+ "name": "Trax",
+ "years": "2013–2015"
+ },
+ {
+ "name": "Captiva C100",
+ "years": "2006–2015"
+ },
+ {
+ "name": "HHR",
+ "years": "2006–2011"
+ },
+ {
+ "name": "Tacuma",
+ "years": "2005–2008"
+ },
+ {
+ "name": "Orlando",
+ "years": "2011–2015"
+ },
+ {
+ "name": "Camaro VI",
+ "years": "2016–2019"
+ },
+ {
+ "name": "Camaro V",
+ "years": "2012–2015"
+ },
+ {
+ "name": "Corvette C8",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Corvette C7",
+ "years": "2014–2019"
+ },
+ {
+ "name": "Corvette C6",
+ "years": "2005–2013"
+ },
+ {
+ "name": "Corvette C5",
+ "years": "1997–2004"
+ }
+ ]
+ },
+ {
+ "brand": "Chrysler",
+ "models": [
+ {
+ "name": "Neon II",
+ "years": "1999–2005"
+ },
+ {
+ "name": "PT Cruiser",
+ "years": "2000–2010"
+ },
+ {
+ "name": "Sebring III",
+ "years": "2007–2010"
+ },
+ {
+ "name": "Sebring II",
+ "years": "2001–2006"
+ },
+ {
+ "name": "300M",
+ "years": "1998–2004"
+ },
+ {
+ "name": "300C II",
+ "years": "2011–2015"
+ },
+ {
+ "name": "300C I",
+ "years": "2004–2011"
+ },
+ {
+ "name": "Voyager IV / Grand Voyager IV",
+ "years": "2000–2007"
+ },
+ {
+ "name": "Grand Voyager V",
+ "years": "2008–2011"
+ },
+ {
+ "name": "Crossfire",
+ "years": "2003–2008"
+ }
+ ]
+ },
+ {
+ "brand": "Citroën",
+ "models": [
+ {
+ "name": "Ami",
+ "years": "2020–heute"
+ },
+ {
+ "name": "C-Zero",
+ "years": "2010–2020"
+ },
+ {
+ "name": "C1 II",
+ "years": "2014–2022"
+ },
+ {
+ "name": "C1 I",
+ "years": "2005–2014"
+ },
+ {
+ "name": "Saxo",
+ "years": "1996–2004"
+ },
+ {
+ "name": "C2",
+ "years": "2003–2009"
+ },
+ {
+ "name": "C3 IV",
+ "years": "2024–heute"
+ },
+ {
+ "name": "C3 III",
+ "years": "2016–2024"
+ },
+ {
+ "name": "C3 II",
+ "years": "2009–2016"
+ },
+ {
+ "name": "C3 I",
+ "years": "2002–2009"
+ },
+ {
+ "name": "C3 Pluriel",
+ "years": "2003–2010"
+ },
+ {
+ "name": "C3 Picasso",
+ "years": "2009–2017"
+ },
+ {
+ "name": "Xsara",
+ "years": "1997–2006"
+ },
+ {
+ "name": "Xsara Picasso",
+ "years": "1999–2012"
+ },
+ {
+ "name": "C4 III",
+ "years": "2020–heute"
+ },
+ {
+ "name": "C4 X",
+ "years": "2022–heute"
+ },
+ {
+ "name": "C4 II",
+ "years": "2010–2018"
+ },
+ {
+ "name": "C4 I",
+ "years": "2004–2010"
+ },
+ {
+ "name": "C4 Cactus",
+ "years": "2014–2020"
+ },
+ {
+ "name": "C4 Picasso II / C4 SpaceTourer",
+ "years": "2013–2022"
+ },
+ {
+ "name": "C4 Picasso I",
+ "years": "2006–2013"
+ },
+ {
+ "name": "Grand C4 Picasso II / Grand C4 SpaceTourer",
+ "years": "2013–2022"
+ },
+ {
+ "name": "Grand C4 Picasso I",
+ "years": "2006–2013"
+ },
+ {
+ "name": "C-Elysée",
+ "years": "2012–2020"
+ },
+ {
+ "name": "C5 X",
+ "years": "2021–heute"
+ },
+ {
+ "name": "C5 II",
+ "years": "2008–2017"
+ },
+ {
+ "name": "C5 I",
+ "years": "2001–2008"
+ },
+ {
+ "name": "C6",
+ "years": "2005–2012"
+ },
+ {
+ "name": "C8",
+ "years": "2002–2014"
+ },
+ {
+ "name": "Evasion",
+ "years": "1994–2002"
+ },
+ {
+ "name": "C3 Aircross II",
+ "years": "2024–heute"
+ },
+ {
+ "name": "C3 Aircross I",
+ "years": "2017–2024"
+ },
+ {
+ "name": "C4 Aircross",
+ "years": "2012–2017"
+ },
+ {
+ "name": "C5 Aircross II",
+ "years": "2025–heute"
+ },
+ {
+ "name": "C5 Aircross I",
+ "years": "2018–2025"
+ },
+ {
+ "name": "C-Crosser",
+ "years": "2007–2012"
+ },
+ {
+ "name": "Nemo",
+ "years": "2008–2017"
+ },
+ {
+ "name": "Berlingo III (K9)",
+ "years": "2018–heute"
+ },
+ {
+ "name": "Berlingo II (B9)",
+ "years": "2008–2018"
+ },
+ {
+ "name": "Berlingo I",
+ "years": "1996–2011"
+ },
+ {
+ "name": "Jumpy III",
+ "years": "2016–heute"
+ },
+ {
+ "name": "Jumpy II",
+ "years": "2007–2016"
+ },
+ {
+ "name": "Jumpy I",
+ "years": "1995–2006"
+ },
+ {
+ "name": "SpaceTourer",
+ "years": "2016–heute"
+ },
+ {
+ "name": "Jumper 290",
+ "years": "2014–heute"
+ },
+ {
+ "name": "Jumper 250",
+ "years": "2006–2014"
+ },
+ {
+ "name": "Jumper 230/244",
+ "years": "1994–2006"
+ }
+ ]
+ },
+ {
+ "brand": "Cupra",
+ "models": [
+ {
+ "name": "Raval",
+ "years": "2026–heute"
+ },
+ {
+ "name": "Born",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Leon",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Formentor",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Ateca",
+ "years": "2018–heute"
+ },
+ {
+ "name": "Terramar",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Tavascan",
+ "years": "2024–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Dacia",
+ "models": [
+ {
+ "name": "Spring",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Sandero III",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Sandero II",
+ "years": "2012–2020"
+ },
+ {
+ "name": "Sandero I",
+ "years": "2008–2012"
+ },
+ {
+ "name": "Logan III",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Logan II",
+ "years": "2012–2020"
+ },
+ {
+ "name": "Logan I",
+ "years": "2004–2012"
+ },
+ {
+ "name": "Logan MCV II",
+ "years": "2013–2020"
+ },
+ {
+ "name": "Logan MCV I",
+ "years": "2006–2013"
+ },
+ {
+ "name": "Jogger",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Lodgy",
+ "years": "2012–2022"
+ },
+ {
+ "name": "Duster III",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Duster II",
+ "years": "2017–2024"
+ },
+ {
+ "name": "Duster I",
+ "years": "2010–2017"
+ },
+ {
+ "name": "Bigster",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Dokker",
+ "years": "2012–2021"
+ },
+ {
+ "name": "Logan Pick-up / Van",
+ "years": "2007–2013"
+ }
+ ]
+ },
+ {
+ "brand": "Dodge",
+ "models": [
+ {
+ "name": "Caliber",
+ "years": "2006–2011"
+ },
+ {
+ "name": "Avenger",
+ "years": "2007–2010"
+ },
+ {
+ "name": "Charger Daytona",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Charger VII (LD)",
+ "years": "2011–2023"
+ },
+ {
+ "name": "Journey",
+ "years": "2008–2011"
+ },
+ {
+ "name": "Nitro",
+ "years": "2007–2011"
+ },
+ {
+ "name": "Ram 1500 IV (DS)",
+ "years": "2009–2018"
+ },
+ {
+ "name": "Ram 1500 III (DR)",
+ "years": "2002–2009"
+ },
+ {
+ "name": "Challenger III (LC)",
+ "years": "2008–2023"
+ },
+ {
+ "name": "Viper ZB",
+ "years": "2003–2010"
+ }
+ ]
+ },
+ {
+ "brand": "DS",
+ "models": [
+ {
+ "name": "DS 3 Crossback / DS 3",
+ "years": "2019–heute"
+ },
+ {
+ "name": "DS 3 I",
+ "years": "2009–2019"
+ },
+ {
+ "name": "DS 4 II / N°4",
+ "years": "2021–heute"
+ },
+ {
+ "name": "DS 4 I",
+ "years": "2011–2018"
+ },
+ {
+ "name": "DS 5",
+ "years": "2011–2018"
+ },
+ {
+ "name": "DS 9",
+ "years": "2020–2025"
+ },
+ {
+ "name": "DS 7 Crossback / DS 7",
+ "years": "2017–heute"
+ },
+ {
+ "name": "N°8",
+ "years": "2025–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Ferrari",
+ "models": [
+ {
+ "name": "California",
+ "years": "2008–2017"
+ },
+ {
+ "name": "Portofino / Portofino M",
+ "years": "2017–2023"
+ },
+ {
+ "name": "Roma / Roma Spider",
+ "years": "2020–2025"
+ },
+ {
+ "name": "Amalfi",
+ "years": "2025–heute"
+ },
+ {
+ "name": "612 Scaglietti",
+ "years": "2004–2011"
+ },
+ {
+ "name": "FF",
+ "years": "2011–2016"
+ },
+ {
+ "name": "GTC4Lusso",
+ "years": "2016–2020"
+ },
+ {
+ "name": "Purosangue",
+ "years": "2022–heute"
+ },
+ {
+ "name": "360 Modena / Spider",
+ "years": "1999–2005"
+ },
+ {
+ "name": "F430",
+ "years": "2004–2009"
+ },
+ {
+ "name": "458 Italia",
+ "years": "2009–2015"
+ },
+ {
+ "name": "488 GTB",
+ "years": "2015–2019"
+ },
+ {
+ "name": "F8 Tributo",
+ "years": "2019–2023"
+ },
+ {
+ "name": "296 GTB / GTS",
+ "years": "2022–heute"
+ },
+ {
+ "name": "SF90 Stradale",
+ "years": "2019–2025"
+ },
+ {
+ "name": "849 Testarossa",
+ "years": "2025–heute"
+ },
+ {
+ "name": "550 Maranello",
+ "years": "1996–2002"
+ },
+ {
+ "name": "575M Maranello",
+ "years": "2002–2006"
+ },
+ {
+ "name": "599 GTB Fiorano",
+ "years": "2006–2012"
+ },
+ {
+ "name": "F12berlinetta",
+ "years": "2012–2017"
+ },
+ {
+ "name": "812 Superfast / GTS",
+ "years": "2017–2024"
+ },
+ {
+ "name": "12Cilindri",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Enzo",
+ "years": "2002–2004"
+ },
+ {
+ "name": "LaFerrari",
+ "years": "2013–2016"
+ },
+ {
+ "name": "F80",
+ "years": "2025–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Fiat",
+ "models": [
+ {
+ "name": "Topolino",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Seicento",
+ "years": "1998–2010"
+ },
+ {
+ "name": "Panda III (319) / Pandina",
+ "years": "2012–heute"
+ },
+ {
+ "name": "Panda II (169)",
+ "years": "2003–2012"
+ },
+ {
+ "name": "Grande Panda",
+ "years": "2024–heute"
+ },
+ {
+ "name": "500 (312)",
+ "years": "2007–heute"
+ },
+ {
+ "name": "500e (332)",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Punto (199) / Grande Punto / Punto Evo",
+ "years": "2005–2018"
+ },
+ {
+ "name": "Punto II (188)",
+ "years": "1999–2010"
+ },
+ {
+ "name": "Idea",
+ "years": "2003–2012"
+ },
+ {
+ "name": "500L",
+ "years": "2012–2022"
+ },
+ {
+ "name": "Tipo (356)",
+ "years": "2015–heute"
+ },
+ {
+ "name": "Bravo II",
+ "years": "2007–2014"
+ },
+ {
+ "name": "Stilo",
+ "years": "2001–2007"
+ },
+ {
+ "name": "Bravo / Brava",
+ "years": "1995–2001"
+ },
+ {
+ "name": "Marea",
+ "years": "1996–2002"
+ },
+ {
+ "name": "Croma II",
+ "years": "2005–2011"
+ },
+ {
+ "name": "Multipla",
+ "years": "1998–2010"
+ },
+ {
+ "name": "Ulysse III",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Ulysse II",
+ "years": "2002–2010"
+ },
+ {
+ "name": "Ulysse I",
+ "years": "1994–2002"
+ },
+ {
+ "name": "Freemont",
+ "years": "2011–2016"
+ },
+ {
+ "name": "600",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Sedici",
+ "years": "2006–2014"
+ },
+ {
+ "name": "500X",
+ "years": "2014–2024"
+ },
+ {
+ "name": "Fullback",
+ "years": "2016–2019"
+ },
+ {
+ "name": "Qubo",
+ "years": "2008–2019"
+ },
+ {
+ "name": "Fiorino III",
+ "years": "2007–2021"
+ },
+ {
+ "name": "Doblò III (K9)",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Doblò II (263)",
+ "years": "2009–2022"
+ },
+ {
+ "name": "Doblò I (119/223)",
+ "years": "2000–2010"
+ },
+ {
+ "name": "Scudo III",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Scudo II",
+ "years": "2007–2016"
+ },
+ {
+ "name": "Scudo I",
+ "years": "1995–2006"
+ },
+ {
+ "name": "Talento",
+ "years": "2016–2021"
+ },
+ {
+ "name": "Ducato Serie 9 (X290)",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Ducato Serie 8 (X290)",
+ "years": "2021–2024"
+ },
+ {
+ "name": "Ducato X290",
+ "years": "2014–2021"
+ },
+ {
+ "name": "Ducato X250",
+ "years": "2006–2014"
+ },
+ {
+ "name": "Ducato 244",
+ "years": "2002–2006"
+ },
+ {
+ "name": "Ducato 230",
+ "years": "1994–2002"
+ },
+ {
+ "name": "Barchetta",
+ "years": "1995–2005"
+ },
+ {
+ "name": "124 Spider",
+ "years": "2016–2020"
+ }
+ ]
+ },
+ {
+ "brand": "Ford",
+ "models": [
+ {
+ "name": "Ka Plus",
+ "years": "2016–2019"
+ },
+ {
+ "name": "Ka II",
+ "years": "2008–2016"
+ },
+ {
+ "name": "Ka I",
+ "years": "1996–2008"
+ },
+ {
+ "name": "StreetKa",
+ "years": "2003–2005"
+ },
+ {
+ "name": "Fiesta Mk7",
+ "years": "2017–2023"
+ },
+ {
+ "name": "Fiesta Mk6",
+ "years": "2008–2017"
+ },
+ {
+ "name": "Fiesta Mk5",
+ "years": "2002–2008"
+ },
+ {
+ "name": "Fiesta Mk4",
+ "years": "1995–2002"
+ },
+ {
+ "name": "Fusion",
+ "years": "2002–2012"
+ },
+ {
+ "name": "B-Max",
+ "years": "2012–2017"
+ },
+ {
+ "name": "Focus Mk4",
+ "years": "2018–2025"
+ },
+ {
+ "name": "Focus Mk3",
+ "years": "2011–2018"
+ },
+ {
+ "name": "Focus Mk2",
+ "years": "2004–2011"
+ },
+ {
+ "name": "Focus Mk1",
+ "years": "1998–2004"
+ },
+ {
+ "name": "C-Max II",
+ "years": "2010–2019"
+ },
+ {
+ "name": "Grand C-Max",
+ "years": "2010–2019"
+ },
+ {
+ "name": "C-Max I",
+ "years": "2003–2010"
+ },
+ {
+ "name": "Mondeo Mk5",
+ "years": "2014–2022"
+ },
+ {
+ "name": "Mondeo Mk4",
+ "years": "2007–2014"
+ },
+ {
+ "name": "Mondeo Mk3",
+ "years": "2000–2007"
+ },
+ {
+ "name": "S-Max II",
+ "years": "2015–2023"
+ },
+ {
+ "name": "S-Max I",
+ "years": "2006–2015"
+ },
+ {
+ "name": "Galaxy III",
+ "years": "2015–2023"
+ },
+ {
+ "name": "Galaxy II",
+ "years": "2006–2015"
+ },
+ {
+ "name": "Galaxy I",
+ "years": "1995–2006"
+ },
+ {
+ "name": "EcoSport",
+ "years": "2014–2022"
+ },
+ {
+ "name": "Puma",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Puma Gen-E",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Kuga III",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Kuga II",
+ "years": "2012–2019"
+ },
+ {
+ "name": "Kuga I",
+ "years": "2008–2012"
+ },
+ {
+ "name": "Capri",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Explorer EV",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Mustang Mach-E",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Edge II",
+ "years": "2016–2020"
+ },
+ {
+ "name": "Explorer VI",
+ "years": "2019–2022"
+ },
+ {
+ "name": "Bronco VI",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Ranger P703",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Ranger T6",
+ "years": "2011–2022"
+ },
+ {
+ "name": "Ranger J97U",
+ "years": "2006–2011"
+ },
+ {
+ "name": "Ranger I",
+ "years": "1999–2006"
+ },
+ {
+ "name": "Transit Courier II",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Transit Courier I",
+ "years": "2014–2023"
+ },
+ {
+ "name": "Tourneo Courier II",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Tourneo Courier I",
+ "years": "2014–2023"
+ },
+ {
+ "name": "Transit Connect III",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Transit Connect II",
+ "years": "2013–2022"
+ },
+ {
+ "name": "Transit Connect I",
+ "years": "2002–2013"
+ },
+ {
+ "name": "Tourneo Connect III",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Tourneo Connect II",
+ "years": "2013–2022"
+ },
+ {
+ "name": "Tourneo Connect I",
+ "years": "2002–2013"
+ },
+ {
+ "name": "Transit Custom II",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Transit Custom I",
+ "years": "2012–2023"
+ },
+ {
+ "name": "Tourneo Custom II",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Tourneo Custom I",
+ "years": "2012–2023"
+ },
+ {
+ "name": "Nugget (Transit Custom II)",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Nugget (Transit Custom I)",
+ "years": "2013–2023"
+ },
+ {
+ "name": "Transit City",
+ "years": "2026–heute"
+ },
+ {
+ "name": "Transit Mk8",
+ "years": "2014–heute"
+ },
+ {
+ "name": "Transit Mk7",
+ "years": "2006–2014"
+ },
+ {
+ "name": "Transit Mk6",
+ "years": "2000–2006"
+ },
+ {
+ "name": "Tourneo Mk8",
+ "years": "2014–heute"
+ },
+ {
+ "name": "Mustang S650",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Mustang S550",
+ "years": "2015–2023"
+ },
+ {
+ "name": "Mustang S197",
+ "years": "2005–2014"
+ },
+ {
+ "name": "GT (2. Generation)",
+ "years": "2017–2022"
+ },
+ {
+ "name": "Puma Coupé",
+ "years": "1997–2002"
+ },
+ {
+ "name": "Cougar",
+ "years": "1998–2002"
+ }
+ ]
+ },
+ {
+ "brand": "Genesis",
+ "models": [
+ {
+ "name": "G70 IK",
+ "years": "2021–heute"
+ },
+ {
+ "name": "G80 RG3",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Electrified G80",
+ "years": "2021–heute"
+ },
+ {
+ "name": "GV60 JW1",
+ "years": "2022–heute"
+ },
+ {
+ "name": "GV70 JK1",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Electrified GV70",
+ "years": "2022–heute"
+ },
+ {
+ "name": "GV80 JX1",
+ "years": "2021–heute"
+ },
+ {
+ "name": "GV80 Coupé",
+ "years": "2025–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Honda",
+ "models": [
+ {
+ "name": "e",
+ "years": "2020–2024"
+ },
+ {
+ "name": "Jazz IV",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Jazz III",
+ "years": "2015–2020"
+ },
+ {
+ "name": "Jazz II",
+ "years": "2008–2015"
+ },
+ {
+ "name": "Jazz I",
+ "years": "2002–2008"
+ },
+ {
+ "name": "Civic XI",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Civic X",
+ "years": "2017–2022"
+ },
+ {
+ "name": "Civic IX",
+ "years": "2012–2017"
+ },
+ {
+ "name": "Civic VIII",
+ "years": "2006–2011"
+ },
+ {
+ "name": "Civic VII",
+ "years": "2001–2005"
+ },
+ {
+ "name": "Insight II",
+ "years": "2009–2014"
+ },
+ {
+ "name": "CR-Z",
+ "years": "2010–2016"
+ },
+ {
+ "name": "Stream",
+ "years": "2001–2006"
+ },
+ {
+ "name": "FR-V",
+ "years": "2004–2009"
+ },
+ {
+ "name": "Accord VIII",
+ "years": "2008–2015"
+ },
+ {
+ "name": "Accord VII",
+ "years": "2003–2008"
+ },
+ {
+ "name": "Accord VI",
+ "years": "1998–2002"
+ },
+ {
+ "name": "Legend IV",
+ "years": "2006–2010"
+ },
+ {
+ "name": "HR-V III",
+ "years": "2021–heute"
+ },
+ {
+ "name": "HR-V II",
+ "years": "2015–2021"
+ },
+ {
+ "name": "HR-V I",
+ "years": "1999–2006"
+ },
+ {
+ "name": "e:Ny1",
+ "years": "2023–heute"
+ },
+ {
+ "name": "ZR-V",
+ "years": "2023–heute"
+ },
+ {
+ "name": "CR-V VI",
+ "years": "2023–heute"
+ },
+ {
+ "name": "CR-V V",
+ "years": "2018–2023"
+ },
+ {
+ "name": "CR-V IV",
+ "years": "2012–2018"
+ },
+ {
+ "name": "CR-V III",
+ "years": "2007–2012"
+ },
+ {
+ "name": "CR-V II",
+ "years": "2002–2006"
+ },
+ {
+ "name": "Prelude VI",
+ "years": "2025–heute"
+ },
+ {
+ "name": "S2000",
+ "years": "1999–2009"
+ },
+ {
+ "name": "NSX II",
+ "years": "2016–2022"
+ }
+ ]
+ },
+ {
+ "brand": "Hyundai",
+ "models": [
+ {
+ "name": "Atos",
+ "years": "1997–2008"
+ },
+ {
+ "name": "i10 III",
+ "years": "2019–heute"
+ },
+ {
+ "name": "i10 II",
+ "years": "2013–2019"
+ },
+ {
+ "name": "i10 I",
+ "years": "2008–2013"
+ },
+ {
+ "name": "Inster",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Getz",
+ "years": "2002–2011"
+ },
+ {
+ "name": "i20 III",
+ "years": "2020–heute"
+ },
+ {
+ "name": "i20 II",
+ "years": "2014–2020"
+ },
+ {
+ "name": "i20 I",
+ "years": "2008–2014"
+ },
+ {
+ "name": "Accent III",
+ "years": "2006–2010"
+ },
+ {
+ "name": "Accent II",
+ "years": "1999–2005"
+ },
+ {
+ "name": "Matrix",
+ "years": "2001–2010"
+ },
+ {
+ "name": "ix20",
+ "years": "2010–2019"
+ },
+ {
+ "name": "i30 III",
+ "years": "2017–heute"
+ },
+ {
+ "name": "i30 II",
+ "years": "2012–2017"
+ },
+ {
+ "name": "i30 I",
+ "years": "2007–2012"
+ },
+ {
+ "name": "Elantra XD",
+ "years": "2000–2006"
+ },
+ {
+ "name": "Elantra HD",
+ "years": "2006–2011"
+ },
+ {
+ "name": "Veloster",
+ "years": "2011–2017"
+ },
+ {
+ "name": "Coupé GK",
+ "years": "2002–2009"
+ },
+ {
+ "name": "Ioniq",
+ "years": "2016–2022"
+ },
+ {
+ "name": "i40",
+ "years": "2011–2019"
+ },
+ {
+ "name": "Sonata NF",
+ "years": "2005–2010"
+ },
+ {
+ "name": "Sonata EF",
+ "years": "1998–2005"
+ },
+ {
+ "name": "XG",
+ "years": "1999–2005"
+ },
+ {
+ "name": "Grandeur TG",
+ "years": "2005–2011"
+ },
+ {
+ "name": "Ioniq 6",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Ioniq 5",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Ioniq 9",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Nexo II",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Nexo I",
+ "years": "2018–2025"
+ },
+ {
+ "name": "Bayon",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Kona II",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Kona I",
+ "years": "2017–2023"
+ },
+ {
+ "name": "Tucson IV",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Tucson III",
+ "years": "2015–2020"
+ },
+ {
+ "name": "ix35",
+ "years": "2010–2015"
+ },
+ {
+ "name": "Tucson I",
+ "years": "2004–2010"
+ },
+ {
+ "name": "Santa Fe V",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Santa Fe IV",
+ "years": "2018–2024"
+ },
+ {
+ "name": "Grand Santa Fe",
+ "years": "2013–2018"
+ },
+ {
+ "name": "Santa Fe III",
+ "years": "2012–2018"
+ },
+ {
+ "name": "Santa Fe II",
+ "years": "2006–2012"
+ },
+ {
+ "name": "Santa Fe I",
+ "years": "2001–2006"
+ },
+ {
+ "name": "ix55",
+ "years": "2008–2012"
+ },
+ {
+ "name": "Terracan",
+ "years": "2001–2007"
+ },
+ {
+ "name": "Trajet",
+ "years": "1999–2008"
+ },
+ {
+ "name": "Staria",
+ "years": "2021–heute"
+ },
+ {
+ "name": "H-1 II",
+ "years": "2008–2021"
+ },
+ {
+ "name": "H-1 I",
+ "years": "1997–2007"
+ },
+ {
+ "name": "H350",
+ "years": "2015–2020"
+ }
+ ]
+ },
+ {
+ "brand": "Infiniti",
+ "models": [
+ {
+ "name": "Q30",
+ "years": "2015–2019"
+ },
+ {
+ "name": "QX30",
+ "years": "2016–2019"
+ },
+ {
+ "name": "G37 V36",
+ "years": "2008–2013"
+ },
+ {
+ "name": "Q50 V37",
+ "years": "2013–2019"
+ },
+ {
+ "name": "Q60 CV37",
+ "years": "2016–2019"
+ },
+ {
+ "name": "M Y51",
+ "years": "2010–2013"
+ },
+ {
+ "name": "Q70 Y51",
+ "years": "2013–2019"
+ },
+ {
+ "name": "EX J50",
+ "years": "2008–2013"
+ },
+ {
+ "name": "QX50 J50",
+ "years": "2013–2017"
+ },
+ {
+ "name": "FX S51",
+ "years": "2008–2013"
+ },
+ {
+ "name": "QX70 S51",
+ "years": "2013–2017"
+ }
+ ]
+ },
+ {
+ "brand": "Iveco",
+ "models": [
+ {
+ "name": "Daily VI",
+ "years": "2014–heute"
+ },
+ {
+ "name": "Daily V",
+ "years": "2011–2014"
+ },
+ {
+ "name": "Daily IV",
+ "years": "2006–2011"
+ },
+ {
+ "name": "Daily III",
+ "years": "1999–2006"
+ },
+ {
+ "name": "Daily 4x4",
+ "years": "2007–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Jaecoo",
+ "models": [
+ {
+ "name": "5",
+ "years": "2025–heute"
+ },
+ {
+ "name": "7",
+ "years": "2024–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Jaguar",
+ "models": [
+ {
+ "name": "X-Type X400",
+ "years": "2001–2009"
+ },
+ {
+ "name": "XE X760",
+ "years": "2015–2024"
+ },
+ {
+ "name": "S-Type X200",
+ "years": "1999–2007"
+ },
+ {
+ "name": "XF X260",
+ "years": "2015–2024"
+ },
+ {
+ "name": "XF X250",
+ "years": "2007–2015"
+ },
+ {
+ "name": "XJ X351",
+ "years": "2009–2019"
+ },
+ {
+ "name": "XJ X350",
+ "years": "2003–2009"
+ },
+ {
+ "name": "XJ X308",
+ "years": "1997–2003"
+ },
+ {
+ "name": "E-Pace X540",
+ "years": "2017–2024"
+ },
+ {
+ "name": "I-Pace X590",
+ "years": "2018–2024"
+ },
+ {
+ "name": "F-Pace X761",
+ "years": "2016–heute"
+ },
+ {
+ "name": "F-Type X152",
+ "years": "2013–2024"
+ },
+ {
+ "name": "XK X150",
+ "years": "2006–2014"
+ },
+ {
+ "name": "XK X100",
+ "years": "1996–2006"
+ }
+ ]
+ },
+ {
+ "brand": "Jeep",
+ "models": [
+ {
+ "name": "Avenger",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Renegade (BU)",
+ "years": "2014–heute"
+ },
+ {
+ "name": "Compass III",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Compass II (MP)",
+ "years": "2017–2025"
+ },
+ {
+ "name": "Compass I (MK)",
+ "years": "2006–2016"
+ },
+ {
+ "name": "Patriot",
+ "years": "2007–2016"
+ },
+ {
+ "name": "Cherokee KL",
+ "years": "2014–2021"
+ },
+ {
+ "name": "Cherokee KK",
+ "years": "2008–2013"
+ },
+ {
+ "name": "Cherokee KJ",
+ "years": "2001–2008"
+ },
+ {
+ "name": "Grand Cherokee WL",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Grand Cherokee WK2",
+ "years": "2010–2021"
+ },
+ {
+ "name": "Grand Cherokee WK",
+ "years": "2005–2010"
+ },
+ {
+ "name": "Grand Cherokee WJ",
+ "years": "1999–2004"
+ },
+ {
+ "name": "Commander XK",
+ "years": "2006–2010"
+ },
+ {
+ "name": "Wagoneer S",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Wrangler JL",
+ "years": "2018–heute"
+ },
+ {
+ "name": "Wrangler JK",
+ "years": "2007–2018"
+ },
+ {
+ "name": "Wrangler TJ",
+ "years": "1996–2006"
+ },
+ {
+ "name": "Gladiator JT",
+ "years": "2021–heute"
+ }
+ ]
+ },
+ {
+ "brand": "KGM (SsangYong)",
+ "models": [
+ {
+ "name": "Tivoli",
+ "years": "2015–heute"
+ },
+ {
+ "name": "XLV",
+ "years": "2016–2021"
+ },
+ {
+ "name": "Korando C300",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Korando C200",
+ "years": "2010–2019"
+ },
+ {
+ "name": "Korando KJ",
+ "years": "1996–2006"
+ },
+ {
+ "name": "Actyon J120",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Torres",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Torres EVX",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Actyon",
+ "years": "2006–2012"
+ },
+ {
+ "name": "Kyron",
+ "years": "2005–2014"
+ },
+ {
+ "name": "Rexton Y400",
+ "years": "2017–heute"
+ },
+ {
+ "name": "Rexton Y200",
+ "years": "2001–2017"
+ },
+ {
+ "name": "Musso EV",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Musso Q200",
+ "years": "2018–heute"
+ },
+ {
+ "name": "Actyon Sports",
+ "years": "2006–2012"
+ },
+ {
+ "name": "Musso FJ",
+ "years": "1993–2005"
+ },
+ {
+ "name": "Rodius II",
+ "years": "2013–2019"
+ },
+ {
+ "name": "Rodius I",
+ "years": "2004–2013"
+ }
+ ]
+ },
+ {
+ "brand": "Kia",
+ "models": [
+ {
+ "name": "Picanto III",
+ "years": "2017–heute"
+ },
+ {
+ "name": "Picanto II",
+ "years": "2011–2017"
+ },
+ {
+ "name": "Picanto I",
+ "years": "2004–2011"
+ },
+ {
+ "name": "Rio IV",
+ "years": "2017–2023"
+ },
+ {
+ "name": "Rio III",
+ "years": "2011–2017"
+ },
+ {
+ "name": "Rio II",
+ "years": "2005–2011"
+ },
+ {
+ "name": "Rio I",
+ "years": "2000–2005"
+ },
+ {
+ "name": "Venga",
+ "years": "2010–2019"
+ },
+ {
+ "name": "Ceed III",
+ "years": "2018–heute"
+ },
+ {
+ "name": "ProCeed",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Ceed II",
+ "years": "2012–2018"
+ },
+ {
+ "name": "Ceed I",
+ "years": "2006–2012"
+ },
+ {
+ "name": "Cerato I",
+ "years": "2004–2009"
+ },
+ {
+ "name": "Carens IV",
+ "years": "2013–2019"
+ },
+ {
+ "name": "Carens III",
+ "years": "2006–2013"
+ },
+ {
+ "name": "Carens II",
+ "years": "2002–2006"
+ },
+ {
+ "name": "Optima II",
+ "years": "2015–2020"
+ },
+ {
+ "name": "Optima I",
+ "years": "2012–2015"
+ },
+ {
+ "name": "Magentis II",
+ "years": "2005–2010"
+ },
+ {
+ "name": "Magentis I",
+ "years": "2001–2005"
+ },
+ {
+ "name": "Opirus",
+ "years": "2003–2010"
+ },
+ {
+ "name": "Stinger",
+ "years": "2017–2023"
+ },
+ {
+ "name": "Soul III",
+ "years": "2019–2023"
+ },
+ {
+ "name": "Soul II",
+ "years": "2014–2019"
+ },
+ {
+ "name": "Soul I",
+ "years": "2008–2014"
+ },
+ {
+ "name": "EV2",
+ "years": "2026–heute"
+ },
+ {
+ "name": "EV3",
+ "years": "2024–heute"
+ },
+ {
+ "name": "EV4",
+ "years": "2025–heute"
+ },
+ {
+ "name": "EV5",
+ "years": "2025–heute"
+ },
+ {
+ "name": "EV6",
+ "years": "2021–heute"
+ },
+ {
+ "name": "EV9",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Stonic",
+ "years": "2017–heute"
+ },
+ {
+ "name": "XCeed",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Niro II",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Niro I",
+ "years": "2016–2022"
+ },
+ {
+ "name": "Sportage V",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Sportage IV",
+ "years": "2016–2021"
+ },
+ {
+ "name": "Sportage III",
+ "years": "2010–2016"
+ },
+ {
+ "name": "Sportage II",
+ "years": "2004–2010"
+ },
+ {
+ "name": "Sportage I",
+ "years": "1993–2004"
+ },
+ {
+ "name": "Sorento IV",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Sorento III",
+ "years": "2015–2020"
+ },
+ {
+ "name": "Sorento II",
+ "years": "2009–2014"
+ },
+ {
+ "name": "Sorento I",
+ "years": "2002–2009"
+ },
+ {
+ "name": "Carnival II",
+ "years": "2006–2014"
+ },
+ {
+ "name": "Carnival I",
+ "years": "1999–2006"
+ },
+ {
+ "name": "Pregio",
+ "years": "1997–2006"
+ },
+ {
+ "name": "PV5",
+ "years": "2025–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Lada",
+ "models": [
+ {
+ "name": "Kalina",
+ "years": "2004–2018"
+ },
+ {
+ "name": "Granta",
+ "years": "2011–2022"
+ },
+ {
+ "name": "110 / 111 / 112",
+ "years": "1995–2009"
+ },
+ {
+ "name": "Samara",
+ "years": "1984–2013"
+ },
+ {
+ "name": "Priora",
+ "years": "2007–2018"
+ },
+ {
+ "name": "Vesta",
+ "years": "2015–2022"
+ },
+ {
+ "name": "XRAY",
+ "years": "2016–2022"
+ },
+ {
+ "name": "Niva / 4x4 (Niva Legend)",
+ "years": "1977–2022"
+ }
+ ]
+ },
+ {
+ "brand": "Lamborghini",
+ "models": [
+ {
+ "name": "Urus",
+ "years": "2018–heute"
+ },
+ {
+ "name": "Temerario",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Huracán",
+ "years": "2014–2024"
+ },
+ {
+ "name": "Gallardo",
+ "years": "2003–2013"
+ },
+ {
+ "name": "Revuelto",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Aventador",
+ "years": "2011–2022"
+ },
+ {
+ "name": "Murciélago",
+ "years": "2001–2010"
+ }
+ ]
+ },
+ {
+ "brand": "Lancia",
+ "models": [
+ {
+ "name": "Ypsilon III",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Ypsilon II (846)",
+ "years": "2011–2024"
+ },
+ {
+ "name": "Ypsilon I (843)",
+ "years": "2003–2011"
+ },
+ {
+ "name": "Y (840)",
+ "years": "1995–2003"
+ },
+ {
+ "name": "Musa",
+ "years": "2004–2012"
+ },
+ {
+ "name": "Delta III",
+ "years": "2008–2014"
+ },
+ {
+ "name": "Lybra",
+ "years": "1999–2005"
+ },
+ {
+ "name": "Thema II",
+ "years": "2011–2014"
+ },
+ {
+ "name": "Thesis",
+ "years": "2002–2009"
+ },
+ {
+ "name": "Flavia",
+ "years": "2012–2014"
+ },
+ {
+ "name": "Phedra",
+ "years": "2002–2010"
+ },
+ {
+ "name": "Voyager",
+ "years": "2011–2015"
+ }
+ ]
+ },
+ {
+ "brand": "Land Rover",
+ "models": [
+ {
+ "name": "Range Rover Evoque L551",
+ "years": "2018–heute"
+ },
+ {
+ "name": "Range Rover Evoque L538",
+ "years": "2011–2018"
+ },
+ {
+ "name": "Freelander 2 L359",
+ "years": "2006–2014"
+ },
+ {
+ "name": "Freelander 1 L314",
+ "years": "1997–2006"
+ },
+ {
+ "name": "Discovery Sport L550",
+ "years": "2014–heute"
+ },
+ {
+ "name": "Range Rover Velar L560",
+ "years": "2017–heute"
+ },
+ {
+ "name": "Defender L663",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Defender L316 (klassisch)",
+ "years": "1990–2016"
+ },
+ {
+ "name": "Discovery 5 L462",
+ "years": "2017–heute"
+ },
+ {
+ "name": "Discovery 4 L319",
+ "years": "2009–2016"
+ },
+ {
+ "name": "Discovery 3 L319",
+ "years": "2004–2009"
+ },
+ {
+ "name": "Discovery 2 L318",
+ "years": "1998–2004"
+ },
+ {
+ "name": "Range Rover Sport L461",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Range Rover Sport L494",
+ "years": "2013–2022"
+ },
+ {
+ "name": "Range Rover Sport L320",
+ "years": "2005–2013"
+ },
+ {
+ "name": "Range Rover L460",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Range Rover L405",
+ "years": "2012–2021"
+ },
+ {
+ "name": "Range Rover L322",
+ "years": "2002–2012"
+ }
+ ]
+ },
+ {
+ "brand": "Leapmotor",
+ "models": [
+ {
+ "name": "T03",
+ "years": "2024–heute"
+ },
+ {
+ "name": "B05",
+ "years": "2026–heute"
+ },
+ {
+ "name": "B10",
+ "years": "2025–heute"
+ },
+ {
+ "name": "C10",
+ "years": "2024–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Lexus",
+ "models": [
+ {
+ "name": "LBX",
+ "years": "2024–heute"
+ },
+ {
+ "name": "CT 200h",
+ "years": "2011–2022"
+ },
+ {
+ "name": "UX ZA10",
+ "years": "2019–heute"
+ },
+ {
+ "name": "IS XE30",
+ "years": "2013–2023"
+ },
+ {
+ "name": "IS XE20",
+ "years": "2005–2013"
+ },
+ {
+ "name": "IS XE10",
+ "years": "1999–2005"
+ },
+ {
+ "name": "ES XZ20",
+ "years": "2026–heute"
+ },
+ {
+ "name": "ES XZ10",
+ "years": "2019–2025"
+ },
+ {
+ "name": "GS L10",
+ "years": "2012–2020"
+ },
+ {
+ "name": "GS S190",
+ "years": "2005–2011"
+ },
+ {
+ "name": "GS S160",
+ "years": "1997–2005"
+ },
+ {
+ "name": "LS XF50",
+ "years": "2017–2024"
+ },
+ {
+ "name": "LS XF40",
+ "years": "2006–2017"
+ },
+ {
+ "name": "LS XF30",
+ "years": "2000–2006"
+ },
+ {
+ "name": "NX AZ20",
+ "years": "2021–heute"
+ },
+ {
+ "name": "NX AZ10",
+ "years": "2014–2021"
+ },
+ {
+ "name": "RZ",
+ "years": "2023–heute"
+ },
+ {
+ "name": "RX AL30",
+ "years": "2022–heute"
+ },
+ {
+ "name": "RX AL20",
+ "years": "2015–2022"
+ },
+ {
+ "name": "RX AL10",
+ "years": "2009–2015"
+ },
+ {
+ "name": "RX XU30",
+ "years": "2003–2009"
+ },
+ {
+ "name": "LM AW10",
+ "years": "2023–heute"
+ },
+ {
+ "name": "RC XC10",
+ "years": "2014–2023"
+ },
+ {
+ "name": "SC Z40",
+ "years": "2001–2010"
+ },
+ {
+ "name": "LC Z100",
+ "years": "2017–heute"
+ },
+ {
+ "name": "LFA",
+ "years": "2010–2012"
+ }
+ ]
+ },
+ {
+ "brand": "Lotus",
+ "models": [
+ {
+ "name": "Emeya",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Eletre",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Elise S3",
+ "years": "2010–2021"
+ },
+ {
+ "name": "Elise S2",
+ "years": "2001–2010"
+ },
+ {
+ "name": "Elise S1",
+ "years": "1996–2001"
+ },
+ {
+ "name": "Exige S3",
+ "years": "2012–2021"
+ },
+ {
+ "name": "Exige S2",
+ "years": "2004–2011"
+ },
+ {
+ "name": "Europa S",
+ "years": "2006–2010"
+ },
+ {
+ "name": "Evora",
+ "years": "2009–2021"
+ },
+ {
+ "name": "Emira",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Evija",
+ "years": "2023–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Lynk & Co",
+ "models": [
+ {
+ "name": "02",
+ "years": "2024–heute"
+ },
+ {
+ "name": "01",
+ "years": "2021–heute"
+ },
+ {
+ "name": "08",
+ "years": "2025–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Maserati",
+ "models": [
+ {
+ "name": "Ghibli III",
+ "years": "2013–2024"
+ },
+ {
+ "name": "Quattroporte VI",
+ "years": "2013–2024"
+ },
+ {
+ "name": "Quattroporte V",
+ "years": "2003–2012"
+ },
+ {
+ "name": "Grecale",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Levante",
+ "years": "2016–2024"
+ },
+ {
+ "name": "3200 GT",
+ "years": "1998–2002"
+ },
+ {
+ "name": "Coupé / Spyder",
+ "years": "2001–2007"
+ },
+ {
+ "name": "GranTurismo II",
+ "years": "2023–heute"
+ },
+ {
+ "name": "GranTurismo I",
+ "years": "2007–2019"
+ },
+ {
+ "name": "GranCabrio II",
+ "years": "2024–heute"
+ },
+ {
+ "name": "GranCabrio I",
+ "years": "2010–2019"
+ },
+ {
+ "name": "MC20 / MCPura",
+ "years": "2020–heute"
+ },
+ {
+ "name": "MC20 Cielo / MCPura Cielo",
+ "years": "2022–heute"
+ },
+ {
+ "name": "MC12",
+ "years": "2004–2005"
+ }
+ ]
+ },
+ {
+ "brand": "Mazda",
+ "models": [
+ {
+ "name": "Mazda2 Hybrid",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Mazda2 DJ",
+ "years": "2014–2024"
+ },
+ {
+ "name": "Mazda2 DE",
+ "years": "2007–2014"
+ },
+ {
+ "name": "Mazda2 DY",
+ "years": "2003–2007"
+ },
+ {
+ "name": "Mazda3 BP",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Mazda3 BM",
+ "years": "2013–2019"
+ },
+ {
+ "name": "Mazda3 BL",
+ "years": "2009–2013"
+ },
+ {
+ "name": "Mazda3 BK",
+ "years": "2003–2009"
+ },
+ {
+ "name": "323 BJ",
+ "years": "1998–2003"
+ },
+ {
+ "name": "Mazda6 GJ",
+ "years": "2012–2024"
+ },
+ {
+ "name": "Mazda6 GH",
+ "years": "2008–2012"
+ },
+ {
+ "name": "Mazda6 GG",
+ "years": "2002–2008"
+ },
+ {
+ "name": "626 GF",
+ "years": "1997–2002"
+ },
+ {
+ "name": "Mazda6e",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Mazda5 CW",
+ "years": "2010–2015"
+ },
+ {
+ "name": "Mazda5 CR",
+ "years": "2005–2010"
+ },
+ {
+ "name": "Premacy CP",
+ "years": "1999–2005"
+ },
+ {
+ "name": "MPV LW",
+ "years": "1999–2006"
+ },
+ {
+ "name": "CX-3 DK",
+ "years": "2015–2022"
+ },
+ {
+ "name": "CX-30 DM",
+ "years": "2019–heute"
+ },
+ {
+ "name": "MX-30 DR",
+ "years": "2020–heute"
+ },
+ {
+ "name": "CX-5 III",
+ "years": "2026–heute"
+ },
+ {
+ "name": "CX-5 II KF",
+ "years": "2017–2025"
+ },
+ {
+ "name": "CX-5 I KE",
+ "years": "2012–2017"
+ },
+ {
+ "name": "CX-6e",
+ "years": "2026–heute"
+ },
+ {
+ "name": "CX-60 KH",
+ "years": "2022–heute"
+ },
+ {
+ "name": "CX-80 KL",
+ "years": "2024–heute"
+ },
+ {
+ "name": "CX-7 ER",
+ "years": "2007–2012"
+ },
+ {
+ "name": "Tribute",
+ "years": "2001–2006"
+ },
+ {
+ "name": "BT-50 II",
+ "years": "2011–2015"
+ },
+ {
+ "name": "BT-50 I",
+ "years": "2006–2011"
+ },
+ {
+ "name": "MX-5 ND",
+ "years": "2015–heute"
+ },
+ {
+ "name": "MX-5 NC",
+ "years": "2005–2015"
+ },
+ {
+ "name": "MX-5 NB",
+ "years": "1998–2005"
+ },
+ {
+ "name": "RX-8 SE",
+ "years": "2003–2012"
+ }
+ ]
+ },
+ {
+ "brand": "McLaren",
+ "models": [
+ {
+ "name": "GTS",
+ "years": "2024–heute"
+ },
+ {
+ "name": "GT",
+ "years": "2019–2024"
+ },
+ {
+ "name": "Artura",
+ "years": "2021–heute"
+ },
+ {
+ "name": "570S / 540C / 570GT",
+ "years": "2015–2021"
+ },
+ {
+ "name": "600LT",
+ "years": "2018–2020"
+ },
+ {
+ "name": "MP4-12C / 12C",
+ "years": "2011–2014"
+ },
+ {
+ "name": "650S",
+ "years": "2014–2017"
+ },
+ {
+ "name": "675LT",
+ "years": "2015–2017"
+ },
+ {
+ "name": "750S",
+ "years": "2023–heute"
+ },
+ {
+ "name": "720S",
+ "years": "2017–2023"
+ },
+ {
+ "name": "765LT",
+ "years": "2020–2022"
+ },
+ {
+ "name": "Elva",
+ "years": "2020–2021"
+ },
+ {
+ "name": "Senna",
+ "years": "2018–2019"
+ },
+ {
+ "name": "Speedtail",
+ "years": "2020–2021"
+ },
+ {
+ "name": "P1",
+ "years": "2013–2015"
+ },
+ {
+ "name": "W1",
+ "years": "2025–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Mercedes-Benz",
+ "models": [
+ {
+ "name": "A-Klasse W177",
+ "years": "2018–heute"
+ },
+ {
+ "name": "A-Klasse W176",
+ "years": "2012–2018"
+ },
+ {
+ "name": "A-Klasse W169",
+ "years": "2004–2012"
+ },
+ {
+ "name": "A-Klasse W168",
+ "years": "1997–2004"
+ },
+ {
+ "name": "B-Klasse W247",
+ "years": "2019–heute"
+ },
+ {
+ "name": "B-Klasse W246",
+ "years": "2011–2018"
+ },
+ {
+ "name": "B-Klasse W245",
+ "years": "2005–2011"
+ },
+ {
+ "name": "CLA C178",
+ "years": "2025–heute"
+ },
+ {
+ "name": "CLA C118",
+ "years": "2019–2025"
+ },
+ {
+ "name": "CLA C117",
+ "years": "2013–2019"
+ },
+ {
+ "name": "CLA Shooting Brake X178",
+ "years": "2026–heute"
+ },
+ {
+ "name": "CLA Shooting Brake X118",
+ "years": "2019–2025"
+ },
+ {
+ "name": "CLA Shooting Brake X117",
+ "years": "2015–2019"
+ },
+ {
+ "name": "C-Klasse W206",
+ "years": "2021–heute"
+ },
+ {
+ "name": "C-Klasse W205",
+ "years": "2014–2021"
+ },
+ {
+ "name": "C-Klasse W204",
+ "years": "2007–2014"
+ },
+ {
+ "name": "C-Klasse W203",
+ "years": "2000–2007"
+ },
+ {
+ "name": "C-Klasse mit EQ-Technologie",
+ "years": "2026–heute"
+ },
+ {
+ "name": "C-Klasse Coupé C205",
+ "years": "2015–2023"
+ },
+ {
+ "name": "C-Klasse Coupé C204",
+ "years": "2011–2015"
+ },
+ {
+ "name": "C-Klasse Sportcoupé CL203",
+ "years": "2001–2008"
+ },
+ {
+ "name": "CLC CL203",
+ "years": "2008–2011"
+ },
+ {
+ "name": "CLK C209",
+ "years": "2002–2010"
+ },
+ {
+ "name": "CLK C208",
+ "years": "1997–2002"
+ },
+ {
+ "name": "CLE C236",
+ "years": "2023–heute"
+ },
+ {
+ "name": "E-Klasse W214",
+ "years": "2023–heute"
+ },
+ {
+ "name": "E-Klasse W213",
+ "years": "2016–2023"
+ },
+ {
+ "name": "E-Klasse W212",
+ "years": "2009–2016"
+ },
+ {
+ "name": "E-Klasse W211",
+ "years": "2002–2009"
+ },
+ {
+ "name": "E-Klasse W210",
+ "years": "1995–2002"
+ },
+ {
+ "name": "E-Klasse Coupé C238",
+ "years": "2017–2023"
+ },
+ {
+ "name": "E-Klasse Coupé C207",
+ "years": "2009–2016"
+ },
+ {
+ "name": "CLS C257",
+ "years": "2018–2023"
+ },
+ {
+ "name": "CLS C218",
+ "years": "2011–2018"
+ },
+ {
+ "name": "CLS C219",
+ "years": "2004–2010"
+ },
+ {
+ "name": "S-Klasse W223",
+ "years": "2020–heute"
+ },
+ {
+ "name": "S-Klasse W222",
+ "years": "2013–2020"
+ },
+ {
+ "name": "S-Klasse W221",
+ "years": "2005–2013"
+ },
+ {
+ "name": "S-Klasse W220",
+ "years": "1998–2005"
+ },
+ {
+ "name": "S-Klasse Coupé C217",
+ "years": "2014–2020"
+ },
+ {
+ "name": "CL C216",
+ "years": "2006–2014"
+ },
+ {
+ "name": "CL C215",
+ "years": "1999–2006"
+ },
+ {
+ "name": "EQE V295",
+ "years": "2022–heute"
+ },
+ {
+ "name": "EQS V297",
+ "years": "2021–heute"
+ },
+ {
+ "name": "GLA H247",
+ "years": "2020–heute"
+ },
+ {
+ "name": "GLA X156",
+ "years": "2014–2020"
+ },
+ {
+ "name": "EQA H243",
+ "years": "2021–heute"
+ },
+ {
+ "name": "GLB X247",
+ "years": "2019–2025"
+ },
+ {
+ "name": "GLB (2. Generation)",
+ "years": "2026–heute"
+ },
+ {
+ "name": "EQB X243",
+ "years": "2021–2025"
+ },
+ {
+ "name": "GLK X204",
+ "years": "2008–2015"
+ },
+ {
+ "name": "GLC X254",
+ "years": "2022–heute"
+ },
+ {
+ "name": "GLC X253",
+ "years": "2015–2022"
+ },
+ {
+ "name": "GLC mit EQ-Technologie",
+ "years": "2026–heute"
+ },
+ {
+ "name": "GLC Coupé C254",
+ "years": "2023–heute"
+ },
+ {
+ "name": "GLC Coupé C253",
+ "years": "2016–2023"
+ },
+ {
+ "name": "EQC N293",
+ "years": "2019–2023"
+ },
+ {
+ "name": "EQE SUV X294",
+ "years": "2023–heute"
+ },
+ {
+ "name": "GLE V167",
+ "years": "2019–heute"
+ },
+ {
+ "name": "GLE Coupé C167",
+ "years": "2019–heute"
+ },
+ {
+ "name": "GLE W166",
+ "years": "2015–2019"
+ },
+ {
+ "name": "GLE Coupé C292",
+ "years": "2015–2019"
+ },
+ {
+ "name": "M-Klasse W166",
+ "years": "2011–2015"
+ },
+ {
+ "name": "M-Klasse W164",
+ "years": "2005–2011"
+ },
+ {
+ "name": "M-Klasse W163",
+ "years": "1997–2005"
+ },
+ {
+ "name": "EQS SUV X296",
+ "years": "2022–heute"
+ },
+ {
+ "name": "GLS X167",
+ "years": "2019–heute"
+ },
+ {
+ "name": "GL X166",
+ "years": "2012–2019"
+ },
+ {
+ "name": "GL X164",
+ "years": "2006–2012"
+ },
+ {
+ "name": "G-Klasse W465",
+ "years": "2024–heute"
+ },
+ {
+ "name": "G-Klasse W463A",
+ "years": "2018–2024"
+ },
+ {
+ "name": "G-Klasse W463",
+ "years": "1990–2018"
+ },
+ {
+ "name": "R-Klasse W251",
+ "years": "2005–2013"
+ },
+ {
+ "name": "X-Klasse W470",
+ "years": "2017–2020"
+ },
+ {
+ "name": "Vaneo W414",
+ "years": "2002–2005"
+ },
+ {
+ "name": "T-Klasse W420",
+ "years": "2022–heute"
+ },
+ {
+ "name": "EQT W420",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Citan W420",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Citan W415",
+ "years": "2012–2021"
+ },
+ {
+ "name": "Vito W447",
+ "years": "2014–heute"
+ },
+ {
+ "name": "Vito W639",
+ "years": "2003–2014"
+ },
+ {
+ "name": "Vito W638",
+ "years": "1996–2003"
+ },
+ {
+ "name": "V-Klasse W447",
+ "years": "2014–heute"
+ },
+ {
+ "name": "EQV W447",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Viano W639",
+ "years": "2003–2014"
+ },
+ {
+ "name": "V-Klasse W638",
+ "years": "1996–2003"
+ },
+ {
+ "name": "VLE",
+ "years": "2026–heute"
+ },
+ {
+ "name": "Marco Polo W447",
+ "years": "2014–heute"
+ },
+ {
+ "name": "Marco Polo W639",
+ "years": "2003–2014"
+ },
+ {
+ "name": "Sprinter W907",
+ "years": "2018–heute"
+ },
+ {
+ "name": "Sprinter W906",
+ "years": "2006–2018"
+ },
+ {
+ "name": "Sprinter W903 (T1N)",
+ "years": "1995–2006"
+ },
+ {
+ "name": "SLK R172",
+ "years": "2011–2016"
+ },
+ {
+ "name": "SLC R172",
+ "years": "2016–2020"
+ },
+ {
+ "name": "SLK R171",
+ "years": "2004–2011"
+ },
+ {
+ "name": "SLK R170",
+ "years": "1996–2004"
+ },
+ {
+ "name": "SL R232",
+ "years": "2021–heute"
+ },
+ {
+ "name": "SL R231",
+ "years": "2012–2020"
+ },
+ {
+ "name": "SL R230",
+ "years": "2001–2011"
+ },
+ {
+ "name": "SLR McLaren C199",
+ "years": "2003–2009"
+ },
+ {
+ "name": "SLS AMG C197",
+ "years": "2010–2014"
+ },
+ {
+ "name": "AMG GT C192",
+ "years": "2023–heute"
+ },
+ {
+ "name": "AMG GT C190",
+ "years": "2014–2021"
+ },
+ {
+ "name": "AMG GT 4-Türer X290",
+ "years": "2018–heute"
+ }
+ ]
+ },
+ {
+ "brand": "MG",
+ "models": [
+ {
+ "name": "MG3 II",
+ "years": "2024–heute"
+ },
+ {
+ "name": "MG3 I",
+ "years": "2013–2024"
+ },
+ {
+ "name": "MG4 II",
+ "years": "2026–heute"
+ },
+ {
+ "name": "MG4 Electric",
+ "years": "2022–heute"
+ },
+ {
+ "name": "MG5 Electric",
+ "years": "2020–2024"
+ },
+ {
+ "name": "IM5",
+ "years": "2025–heute"
+ },
+ {
+ "name": "ZS II",
+ "years": "2024–heute"
+ },
+ {
+ "name": "ZS I",
+ "years": "2017–2024"
+ },
+ {
+ "name": "ZS EV",
+ "years": "2019–heute"
+ },
+ {
+ "name": "S5 EV",
+ "years": "2025–heute"
+ },
+ {
+ "name": "HS II",
+ "years": "2024–heute"
+ },
+ {
+ "name": "HS I (inkl. EHS)",
+ "years": "2018–2024"
+ },
+ {
+ "name": "IM6",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Marvel R",
+ "years": "2021–2023"
+ },
+ {
+ "name": "Cyberster",
+ "years": "2024–heute"
+ }
+ ]
+ },
+ {
+ "brand": "MINI",
+ "models": [
+ {
+ "name": "Cooper F66",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Cooper 5-Türer F65",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Cooper E J01",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Cooper F56",
+ "years": "2014–2024"
+ },
+ {
+ "name": "Cooper 5-Türer F55",
+ "years": "2014–2024"
+ },
+ {
+ "name": "Cooper R56",
+ "years": "2006–2014"
+ },
+ {
+ "name": "Cooper R50",
+ "years": "2001–2006"
+ },
+ {
+ "name": "Cabrio F67",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Cabrio F57",
+ "years": "2016–2024"
+ },
+ {
+ "name": "Cabrio R57",
+ "years": "2009–2015"
+ },
+ {
+ "name": "Cabrio R52",
+ "years": "2004–2008"
+ },
+ {
+ "name": "Coupé R58",
+ "years": "2011–2015"
+ },
+ {
+ "name": "Roadster R59",
+ "years": "2012–2015"
+ },
+ {
+ "name": "Clubman F54",
+ "years": "2015–2024"
+ },
+ {
+ "name": "Clubman R55",
+ "years": "2007–2014"
+ },
+ {
+ "name": "Aceman J05",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Countryman U25",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Countryman F60",
+ "years": "2017–2024"
+ },
+ {
+ "name": "Countryman R60",
+ "years": "2010–2016"
+ },
+ {
+ "name": "Paceman R61",
+ "years": "2013–2016"
+ }
+ ]
+ },
+ {
+ "brand": "Mitsubishi",
+ "models": [
+ {
+ "name": "i-MiEV",
+ "years": "2010–2020"
+ },
+ {
+ "name": "Space Star II",
+ "years": "2013–2024"
+ },
+ {
+ "name": "Space Star I",
+ "years": "1998–2005"
+ },
+ {
+ "name": "Colt VII",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Colt VI Z30",
+ "years": "2004–2012"
+ },
+ {
+ "name": "Colt V CJ0",
+ "years": "1996–2004"
+ },
+ {
+ "name": "Lancer VIII CY",
+ "years": "2008–2017"
+ },
+ {
+ "name": "Lancer Evolution X",
+ "years": "2008–2016"
+ },
+ {
+ "name": "Lancer VII CS",
+ "years": "2003–2008"
+ },
+ {
+ "name": "Lancer Evolution VIII/IX",
+ "years": "2003–2007"
+ },
+ {
+ "name": "Carisma",
+ "years": "1995–2004"
+ },
+ {
+ "name": "Galant VIII",
+ "years": "1996–2004"
+ },
+ {
+ "name": "Space Wagon",
+ "years": "1998–2004"
+ },
+ {
+ "name": "Grandis II",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Grandis",
+ "years": "2004–2011"
+ },
+ {
+ "name": "ASX II",
+ "years": "2023–heute"
+ },
+ {
+ "name": "ASX I",
+ "years": "2010–2023"
+ },
+ {
+ "name": "Eclipse Cross II",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Eclipse Cross I",
+ "years": "2017–2024"
+ },
+ {
+ "name": "Outlander IV",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Outlander III",
+ "years": "2012–2021"
+ },
+ {
+ "name": "Outlander II",
+ "years": "2007–2012"
+ },
+ {
+ "name": "Outlander I",
+ "years": "2003–2007"
+ },
+ {
+ "name": "Pajero Pinin",
+ "years": "1999–2007"
+ },
+ {
+ "name": "Pajero IV",
+ "years": "2006–2021"
+ },
+ {
+ "name": "Pajero III",
+ "years": "2000–2006"
+ },
+ {
+ "name": "L200 VI",
+ "years": "2024–heute"
+ },
+ {
+ "name": "L200 V",
+ "years": "2015–2024"
+ },
+ {
+ "name": "L200 IV",
+ "years": "2006–2015"
+ },
+ {
+ "name": "L200 III",
+ "years": "1996–2006"
+ }
+ ]
+ },
+ {
+ "brand": "NIO",
+ "models": [
+ {
+ "name": "ET5",
+ "years": "2022–heute"
+ },
+ {
+ "name": "ET5 Touring",
+ "years": "2023–heute"
+ },
+ {
+ "name": "ET7",
+ "years": "2022–heute"
+ },
+ {
+ "name": "EL6",
+ "years": "2023–heute"
+ },
+ {
+ "name": "EL7",
+ "years": "2022–heute"
+ },
+ {
+ "name": "EL8 (ES8)",
+ "years": "2021–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Nissan",
+ "models": [
+ {
+ "name": "Pixo",
+ "years": "2009–2013"
+ },
+ {
+ "name": "Micra VI",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Micra K14",
+ "years": "2017–2023"
+ },
+ {
+ "name": "Micra K13",
+ "years": "2010–2017"
+ },
+ {
+ "name": "Micra K12",
+ "years": "2003–2010"
+ },
+ {
+ "name": "Micra K11",
+ "years": "1992–2003"
+ },
+ {
+ "name": "Note E12",
+ "years": "2013–2017"
+ },
+ {
+ "name": "Note E11",
+ "years": "2006–2013"
+ },
+ {
+ "name": "Cube Z12",
+ "years": "2010–2012"
+ },
+ {
+ "name": "Almera N16",
+ "years": "2000–2006"
+ },
+ {
+ "name": "Almera Tino",
+ "years": "2000–2006"
+ },
+ {
+ "name": "Tiida C11",
+ "years": "2007–2012"
+ },
+ {
+ "name": "Pulsar C13",
+ "years": "2014–2018"
+ },
+ {
+ "name": "Primera P12",
+ "years": "2002–2008"
+ },
+ {
+ "name": "Primera P11",
+ "years": "1996–2002"
+ },
+ {
+ "name": "Leaf III",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Leaf II ZE1",
+ "years": "2018–2025"
+ },
+ {
+ "name": "Leaf I ZE0",
+ "years": "2010–2017"
+ },
+ {
+ "name": "Juke F16",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Juke F15",
+ "years": "2010–2019"
+ },
+ {
+ "name": "Qashqai J12",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Qashqai J11",
+ "years": "2014–2021"
+ },
+ {
+ "name": "Qashqai J10",
+ "years": "2007–2013"
+ },
+ {
+ "name": "Qashqai+2",
+ "years": "2008–2013"
+ },
+ {
+ "name": "Ariya",
+ "years": "2022–heute"
+ },
+ {
+ "name": "X-Trail T33",
+ "years": "2022–heute"
+ },
+ {
+ "name": "X-Trail T32",
+ "years": "2014–2022"
+ },
+ {
+ "name": "X-Trail T31",
+ "years": "2007–2014"
+ },
+ {
+ "name": "X-Trail T30",
+ "years": "2001–2007"
+ },
+ {
+ "name": "Murano Z51",
+ "years": "2008–2014"
+ },
+ {
+ "name": "Murano Z50",
+ "years": "2004–2007"
+ },
+ {
+ "name": "Pathfinder R51",
+ "years": "2005–2014"
+ },
+ {
+ "name": "Patrol Y61",
+ "years": "1997–2010"
+ },
+ {
+ "name": "Terrano II R20",
+ "years": "1993–2006"
+ },
+ {
+ "name": "Navara D23",
+ "years": "2015–2022"
+ },
+ {
+ "name": "Navara D40",
+ "years": "2005–2015"
+ },
+ {
+ "name": "Navara D22",
+ "years": "1998–2005"
+ },
+ {
+ "name": "Townstar",
+ "years": "2022–heute"
+ },
+ {
+ "name": "NV200",
+ "years": "2009–2021"
+ },
+ {
+ "name": "e-NV200",
+ "years": "2014–2022"
+ },
+ {
+ "name": "Kubistar",
+ "years": "2003–2009"
+ },
+ {
+ "name": "Primastar II",
+ "years": "2021–heute"
+ },
+ {
+ "name": "NV300",
+ "years": "2016–2021"
+ },
+ {
+ "name": "Primastar I",
+ "years": "2002–2014"
+ },
+ {
+ "name": "Interstar III",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Interstar II",
+ "years": "2021–2024"
+ },
+ {
+ "name": "NV400",
+ "years": "2010–2021"
+ },
+ {
+ "name": "Interstar I",
+ "years": "2002–2010"
+ },
+ {
+ "name": "NT400 Cabstar",
+ "years": "2014–2019"
+ },
+ {
+ "name": "Cabstar F24",
+ "years": "2006–2013"
+ },
+ {
+ "name": "350Z Z33",
+ "years": "2003–2009"
+ },
+ {
+ "name": "370Z Z34",
+ "years": "2009–2020"
+ },
+ {
+ "name": "GT-R R35",
+ "years": "2009–2022"
+ }
+ ]
+ },
+ {
+ "brand": "Omoda",
+ "models": [
+ {
+ "name": "5",
+ "years": "2024–heute"
+ },
+ {
+ "name": "E5",
+ "years": "2024–heute"
+ },
+ {
+ "name": "9",
+ "years": "2025–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Opel",
+ "models": [
+ {
+ "name": "Karl",
+ "years": "2015–2019"
+ },
+ {
+ "name": "Adam",
+ "years": "2013–2019"
+ },
+ {
+ "name": "Agila B",
+ "years": "2008–2014"
+ },
+ {
+ "name": "Agila A",
+ "years": "2000–2007"
+ },
+ {
+ "name": "Corsa F",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Corsa E",
+ "years": "2014–2019"
+ },
+ {
+ "name": "Corsa D",
+ "years": "2006–2014"
+ },
+ {
+ "name": "Corsa C",
+ "years": "2000–2006"
+ },
+ {
+ "name": "Tigra TwinTop",
+ "years": "2004–2009"
+ },
+ {
+ "name": "Meriva B",
+ "years": "2010–2017"
+ },
+ {
+ "name": "Meriva A",
+ "years": "2003–2010"
+ },
+ {
+ "name": "Astra L",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Astra K",
+ "years": "2015–2021"
+ },
+ {
+ "name": "Astra J",
+ "years": "2009–2015"
+ },
+ {
+ "name": "Astra H",
+ "years": "2004–2010"
+ },
+ {
+ "name": "Astra G",
+ "years": "1998–2004"
+ },
+ {
+ "name": "Ampera-e",
+ "years": "2017–2019"
+ },
+ {
+ "name": "Ampera",
+ "years": "2011–2015"
+ },
+ {
+ "name": "Vectra C",
+ "years": "2002–2008"
+ },
+ {
+ "name": "Vectra B",
+ "years": "1995–2002"
+ },
+ {
+ "name": "Signum",
+ "years": "2003–2008"
+ },
+ {
+ "name": "Insignia B",
+ "years": "2017–2022"
+ },
+ {
+ "name": "Insignia A",
+ "years": "2008–2017"
+ },
+ {
+ "name": "Zafira C Tourer",
+ "years": "2011–2019"
+ },
+ {
+ "name": "Zafira B",
+ "years": "2005–2014"
+ },
+ {
+ "name": "Zafira A",
+ "years": "1999–2005"
+ },
+ {
+ "name": "Mokka B",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Mokka A",
+ "years": "2012–2019"
+ },
+ {
+ "name": "Crossland",
+ "years": "2017–2024"
+ },
+ {
+ "name": "Frontera",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Frontera B",
+ "years": "1998–2004"
+ },
+ {
+ "name": "Grandland",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Grandland X",
+ "years": "2017–2024"
+ },
+ {
+ "name": "Antara",
+ "years": "2006–2015"
+ },
+ {
+ "name": "Combo E",
+ "years": "2018–heute"
+ },
+ {
+ "name": "Combo D",
+ "years": "2011–2018"
+ },
+ {
+ "name": "Combo C",
+ "years": "2001–2011"
+ },
+ {
+ "name": "Zafira Life",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Vivaro C",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Vivaro B",
+ "years": "2014–2019"
+ },
+ {
+ "name": "Vivaro A",
+ "years": "2001–2014"
+ },
+ {
+ "name": "Movano C",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Movano B",
+ "years": "2010–2021"
+ },
+ {
+ "name": "Movano A",
+ "years": "1998–2010"
+ },
+ {
+ "name": "Cascada",
+ "years": "2013–2019"
+ },
+ {
+ "name": "GT",
+ "years": "2007–2009"
+ },
+ {
+ "name": "Speedster",
+ "years": "2000–2005"
+ }
+ ]
+ },
+ {
+ "brand": "Peugeot",
+ "models": [
+ {
+ "name": "107",
+ "years": "2005–2014"
+ },
+ {
+ "name": "108",
+ "years": "2014–2021"
+ },
+ {
+ "name": "1007",
+ "years": "2005–2009"
+ },
+ {
+ "name": "206",
+ "years": "1998–2012"
+ },
+ {
+ "name": "206 Plus",
+ "years": "2009–2013"
+ },
+ {
+ "name": "207",
+ "years": "2006–2014"
+ },
+ {
+ "name": "208 II",
+ "years": "2019–heute"
+ },
+ {
+ "name": "208 I",
+ "years": "2012–2019"
+ },
+ {
+ "name": "301",
+ "years": "2012–2017"
+ },
+ {
+ "name": "iOn",
+ "years": "2010–2020"
+ },
+ {
+ "name": "306",
+ "years": "1993–2002"
+ },
+ {
+ "name": "308 III",
+ "years": "2021–heute"
+ },
+ {
+ "name": "308 II",
+ "years": "2013–2021"
+ },
+ {
+ "name": "308 I",
+ "years": "2007–2013"
+ },
+ {
+ "name": "307",
+ "years": "2001–2008"
+ },
+ {
+ "name": "408",
+ "years": "2022–heute"
+ },
+ {
+ "name": "406",
+ "years": "1995–2004"
+ },
+ {
+ "name": "407",
+ "years": "2004–2011"
+ },
+ {
+ "name": "508 II",
+ "years": "2018–2025"
+ },
+ {
+ "name": "508 I",
+ "years": "2010–2018"
+ },
+ {
+ "name": "607",
+ "years": "1999–2010"
+ },
+ {
+ "name": "807",
+ "years": "2002–2014"
+ },
+ {
+ "name": "806",
+ "years": "1994–2002"
+ },
+ {
+ "name": "2008 II",
+ "years": "2019–heute"
+ },
+ {
+ "name": "2008 I",
+ "years": "2013–2019"
+ },
+ {
+ "name": "3008 III",
+ "years": "2023–heute"
+ },
+ {
+ "name": "3008 II",
+ "years": "2016–2023"
+ },
+ {
+ "name": "3008 I",
+ "years": "2009–2016"
+ },
+ {
+ "name": "4007",
+ "years": "2007–2012"
+ },
+ {
+ "name": "4008",
+ "years": "2012–2017"
+ },
+ {
+ "name": "5008 III",
+ "years": "2024–heute"
+ },
+ {
+ "name": "5008 II",
+ "years": "2017–2024"
+ },
+ {
+ "name": "5008 I",
+ "years": "2009–2017"
+ },
+ {
+ "name": "Bipper",
+ "years": "2008–2017"
+ },
+ {
+ "name": "Partner III (K9)",
+ "years": "2018–heute"
+ },
+ {
+ "name": "Partner II (B9)",
+ "years": "2008–2018"
+ },
+ {
+ "name": "Partner I",
+ "years": "1996–2008"
+ },
+ {
+ "name": "Rifter",
+ "years": "2018–heute"
+ },
+ {
+ "name": "Partner Tepee",
+ "years": "2008–2018"
+ },
+ {
+ "name": "Expert III",
+ "years": "2016–heute"
+ },
+ {
+ "name": "Expert II",
+ "years": "2007–2016"
+ },
+ {
+ "name": "Expert I",
+ "years": "1995–2006"
+ },
+ {
+ "name": "Traveller",
+ "years": "2016–heute"
+ },
+ {
+ "name": "Expert Tepee",
+ "years": "2007–2016"
+ },
+ {
+ "name": "Boxer 290",
+ "years": "2014–heute"
+ },
+ {
+ "name": "Boxer 250",
+ "years": "2006–2014"
+ },
+ {
+ "name": "Boxer 230/244",
+ "years": "1994–2006"
+ },
+ {
+ "name": "RCZ",
+ "years": "2010–2015"
+ }
+ ]
+ },
+ {
+ "brand": "Polestar",
+ "models": [
+ {
+ "name": "2",
+ "years": "2020–heute"
+ },
+ {
+ "name": "4",
+ "years": "2024–heute"
+ },
+ {
+ "name": "3",
+ "years": "2024–heute"
+ },
+ {
+ "name": "5",
+ "years": "2025–heute"
+ },
+ {
+ "name": "1",
+ "years": "2019–2021"
+ }
+ ]
+ },
+ {
+ "brand": "Porsche",
+ "models": [
+ {
+ "name": "Panamera G3",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Panamera G2",
+ "years": "2016–2023"
+ },
+ {
+ "name": "Panamera G1",
+ "years": "2009–2016"
+ },
+ {
+ "name": "Taycan",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Macan Electric",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Macan 95B",
+ "years": "2014–2024"
+ },
+ {
+ "name": "Cayenne Electric",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Cayenne E3",
+ "years": "2017–heute"
+ },
+ {
+ "name": "Cayenne 92A",
+ "years": "2010–2017"
+ },
+ {
+ "name": "Cayenne 9PA",
+ "years": "2002–2010"
+ },
+ {
+ "name": "718 Boxster 982",
+ "years": "2016–2025"
+ },
+ {
+ "name": "Boxster 981",
+ "years": "2012–2016"
+ },
+ {
+ "name": "Boxster 987",
+ "years": "2004–2012"
+ },
+ {
+ "name": "Boxster 986",
+ "years": "1996–2004"
+ },
+ {
+ "name": "718 Cayman 982",
+ "years": "2016–2025"
+ },
+ {
+ "name": "Cayman 981",
+ "years": "2013–2016"
+ },
+ {
+ "name": "Cayman 987",
+ "years": "2005–2013"
+ },
+ {
+ "name": "911 992",
+ "years": "2019–heute"
+ },
+ {
+ "name": "911 991",
+ "years": "2011–2019"
+ },
+ {
+ "name": "911 997",
+ "years": "2004–2012"
+ },
+ {
+ "name": "911 996",
+ "years": "1997–2005"
+ },
+ {
+ "name": "Carrera GT",
+ "years": "2003–2006"
+ },
+ {
+ "name": "918 Spyder",
+ "years": "2013–2015"
+ }
+ ]
+ },
+ {
+ "brand": "Renault",
+ "models": [
+ {
+ "name": "Twizy",
+ "years": "2012–2023"
+ },
+ {
+ "name": "Twingo IV",
+ "years": "2026–heute"
+ },
+ {
+ "name": "Twingo III",
+ "years": "2014–2024"
+ },
+ {
+ "name": "Twingo II",
+ "years": "2007–2014"
+ },
+ {
+ "name": "Twingo I",
+ "years": "1993–2007"
+ },
+ {
+ "name": "R5 E-Tech",
+ "years": "2024–heute"
+ },
+ {
+ "name": "R4 E-Tech",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Clio VI",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Clio V",
+ "years": "2019–2025"
+ },
+ {
+ "name": "Clio IV",
+ "years": "2012–2019"
+ },
+ {
+ "name": "Clio III",
+ "years": "2005–2014"
+ },
+ {
+ "name": "Clio II",
+ "years": "1998–2012"
+ },
+ {
+ "name": "Zoe",
+ "years": "2012–2024"
+ },
+ {
+ "name": "Modus / Grand Modus",
+ "years": "2004–2012"
+ },
+ {
+ "name": "Wind",
+ "years": "2010–2013"
+ },
+ {
+ "name": "Mégane E-Tech",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Mégane IV",
+ "years": "2016–2024"
+ },
+ {
+ "name": "Mégane III",
+ "years": "2008–2016"
+ },
+ {
+ "name": "Mégane II",
+ "years": "2002–2009"
+ },
+ {
+ "name": "Mégane I",
+ "years": "1995–2003"
+ },
+ {
+ "name": "Fluence",
+ "years": "2010–2016"
+ },
+ {
+ "name": "Scénic E-Tech",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Scénic IV",
+ "years": "2016–2022"
+ },
+ {
+ "name": "Scénic III",
+ "years": "2009–2016"
+ },
+ {
+ "name": "Scénic II",
+ "years": "2003–2009"
+ },
+ {
+ "name": "Scénic I",
+ "years": "1996–2003"
+ },
+ {
+ "name": "Grand Scénic IV",
+ "years": "2016–2022"
+ },
+ {
+ "name": "Grand Scénic III",
+ "years": "2009–2016"
+ },
+ {
+ "name": "Grand Scénic II",
+ "years": "2004–2009"
+ },
+ {
+ "name": "Laguna III",
+ "years": "2007–2015"
+ },
+ {
+ "name": "Laguna II",
+ "years": "2001–2007"
+ },
+ {
+ "name": "Talisman",
+ "years": "2015–2022"
+ },
+ {
+ "name": "Latitude",
+ "years": "2010–2015"
+ },
+ {
+ "name": "Vel Satis",
+ "years": "2002–2009"
+ },
+ {
+ "name": "Avantime",
+ "years": "2001–2003"
+ },
+ {
+ "name": "Espace VI",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Espace V",
+ "years": "2015–2023"
+ },
+ {
+ "name": "Espace IV",
+ "years": "2002–2014"
+ },
+ {
+ "name": "Espace III",
+ "years": "1996–2002"
+ },
+ {
+ "name": "Captur II",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Captur I",
+ "years": "2013–2019"
+ },
+ {
+ "name": "Symbioz",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Arkana",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Kadjar",
+ "years": "2015–2022"
+ },
+ {
+ "name": "Austral",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Rafale",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Koleos II",
+ "years": "2016–2023"
+ },
+ {
+ "name": "Koleos I",
+ "years": "2008–2016"
+ },
+ {
+ "name": "Alaskan",
+ "years": "2017–2020"
+ },
+ {
+ "name": "Express",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Kangoo III",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Kangoo II",
+ "years": "2008–2021"
+ },
+ {
+ "name": "Kangoo I",
+ "years": "1997–2008"
+ },
+ {
+ "name": "Grand Kangoo",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Trafic E-Tech",
+ "years": "2026–heute"
+ },
+ {
+ "name": "Trafic III",
+ "years": "2014–heute"
+ },
+ {
+ "name": "Trafic II",
+ "years": "2001–2014"
+ },
+ {
+ "name": "Master IV",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Master III",
+ "years": "2010–2024"
+ },
+ {
+ "name": "Master II",
+ "years": "1997–2010"
+ }
+ ]
+ },
+ {
+ "brand": "Rolls-Royce",
+ "models": [
+ {
+ "name": "Ghost II",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Ghost I",
+ "years": "2009–2020"
+ },
+ {
+ "name": "Wraith",
+ "years": "2013–2023"
+ },
+ {
+ "name": "Dawn",
+ "years": "2015–2023"
+ },
+ {
+ "name": "Spectre",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Phantom VIII",
+ "years": "2017–heute"
+ },
+ {
+ "name": "Phantom VII",
+ "years": "2003–2017"
+ },
+ {
+ "name": "Phantom Coupé",
+ "years": "2008–2016"
+ },
+ {
+ "name": "Phantom Drophead Coupé",
+ "years": "2007–2016"
+ },
+ {
+ "name": "Silver Seraph",
+ "years": "1998–2002"
+ },
+ {
+ "name": "Cullinan",
+ "years": "2018–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Saab",
+ "models": [
+ {
+ "name": "9-3 II",
+ "years": "2002–2014"
+ },
+ {
+ "name": "9-3 I",
+ "years": "1998–2002"
+ },
+ {
+ "name": "9-5 II",
+ "years": "2010–2012"
+ },
+ {
+ "name": "9-5 I",
+ "years": "1997–2010"
+ }
+ ]
+ },
+ {
+ "brand": "SEAT",
+ "models": [
+ {
+ "name": "Arosa",
+ "years": "1997–2004"
+ },
+ {
+ "name": "Mii",
+ "years": "2011–2021"
+ },
+ {
+ "name": "Ibiza KJ",
+ "years": "2017–heute"
+ },
+ {
+ "name": "Ibiza 6J",
+ "years": "2008–2017"
+ },
+ {
+ "name": "Ibiza 6L",
+ "years": "2002–2008"
+ },
+ {
+ "name": "Ibiza 6K",
+ "years": "1993–2002"
+ },
+ {
+ "name": "Cordoba 6L",
+ "years": "2002–2009"
+ },
+ {
+ "name": "Cordoba 6K",
+ "years": "1993–2002"
+ },
+ {
+ "name": "Leon KL",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Leon 5F",
+ "years": "2012–2020"
+ },
+ {
+ "name": "Leon 1P",
+ "years": "2005–2012"
+ },
+ {
+ "name": "Leon 1M",
+ "years": "1999–2005"
+ },
+ {
+ "name": "Toledo KG",
+ "years": "2012–2019"
+ },
+ {
+ "name": "Toledo 5P",
+ "years": "2004–2009"
+ },
+ {
+ "name": "Toledo 1M",
+ "years": "1998–2004"
+ },
+ {
+ "name": "Exeo",
+ "years": "2008–2013"
+ },
+ {
+ "name": "Altea",
+ "years": "2004–2015"
+ },
+ {
+ "name": "Alhambra 7N",
+ "years": "2010–2020"
+ },
+ {
+ "name": "Alhambra 7M",
+ "years": "1996–2010"
+ },
+ {
+ "name": "Arona",
+ "years": "2017–heute"
+ },
+ {
+ "name": "Ateca",
+ "years": "2016–heute"
+ },
+ {
+ "name": "Tarraco",
+ "years": "2018–2024"
+ }
+ ]
+ },
+ {
+ "brand": "Škoda",
+ "models": [
+ {
+ "name": "Citigo",
+ "years": "2011–2020"
+ },
+ {
+ "name": "Fabia IV",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Fabia III",
+ "years": "2014–2021"
+ },
+ {
+ "name": "Fabia II",
+ "years": "2007–2014"
+ },
+ {
+ "name": "Fabia I",
+ "years": "1999–2007"
+ },
+ {
+ "name": "Rapid",
+ "years": "2012–2019"
+ },
+ {
+ "name": "Rapid Spaceback",
+ "years": "2013–2019"
+ },
+ {
+ "name": "Scala",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Roomster",
+ "years": "2006–2015"
+ },
+ {
+ "name": "Octavia IV",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Octavia III",
+ "years": "2013–2020"
+ },
+ {
+ "name": "Octavia II",
+ "years": "2004–2013"
+ },
+ {
+ "name": "Octavia I",
+ "years": "1996–2010"
+ },
+ {
+ "name": "Superb IV",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Superb III",
+ "years": "2015–2023"
+ },
+ {
+ "name": "Superb II",
+ "years": "2008–2015"
+ },
+ {
+ "name": "Superb I",
+ "years": "2001–2008"
+ },
+ {
+ "name": "Epiq",
+ "years": "2026–heute"
+ },
+ {
+ "name": "Kamiq",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Yeti",
+ "years": "2009–2017"
+ },
+ {
+ "name": "Karoq",
+ "years": "2017–heute"
+ },
+ {
+ "name": "Elroq",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Enyaq",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Kodiaq II",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Kodiaq I",
+ "years": "2016–2024"
+ }
+ ]
+ },
+ {
+ "brand": "smart",
+ "models": [
+ {
+ "name": "fortwo C453",
+ "years": "2014–2024"
+ },
+ {
+ "name": "fortwo C451",
+ "years": "2007–2014"
+ },
+ {
+ "name": "fortwo C450",
+ "years": "1998–2007"
+ },
+ {
+ "name": "forfour W453",
+ "years": "2014–2021"
+ },
+ {
+ "name": "forfour W454",
+ "years": "2004–2006"
+ },
+ {
+ "name": "roadster 452",
+ "years": "2003–2005"
+ },
+ {
+ "name": "#1",
+ "years": "2022–heute"
+ },
+ {
+ "name": "#3",
+ "years": "2023–heute"
+ },
+ {
+ "name": "#5",
+ "years": "2025–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Subaru",
+ "models": [
+ {
+ "name": "Justy IV",
+ "years": "2007–2011"
+ },
+ {
+ "name": "Justy III G3X",
+ "years": "2003–2007"
+ },
+ {
+ "name": "Trezia",
+ "years": "2011–2016"
+ },
+ {
+ "name": "Impreza VI GU",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Impreza V GT",
+ "years": "2017–2023"
+ },
+ {
+ "name": "Impreza IV GJ",
+ "years": "2012–2016"
+ },
+ {
+ "name": "Impreza III GH",
+ "years": "2007–2011"
+ },
+ {
+ "name": "Impreza II GD",
+ "years": "2000–2007"
+ },
+ {
+ "name": "WRX STI",
+ "years": "2014–2018"
+ },
+ {
+ "name": "Levorg II",
+ "years": "2021–2023"
+ },
+ {
+ "name": "Levorg I",
+ "years": "2015–2020"
+ },
+ {
+ "name": "Legacy V BM",
+ "years": "2009–2014"
+ },
+ {
+ "name": "Legacy IV BL",
+ "years": "2003–2009"
+ },
+ {
+ "name": "Legacy III BE",
+ "years": "1998–2003"
+ },
+ {
+ "name": "Outback VI BT",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Outback V BS",
+ "years": "2014–2021"
+ },
+ {
+ "name": "Outback IV BR",
+ "years": "2009–2014"
+ },
+ {
+ "name": "Outback III BP",
+ "years": "2003–2009"
+ },
+ {
+ "name": "Outback II BH",
+ "years": "1998–2003"
+ },
+ {
+ "name": "Crosstrek",
+ "years": "2024–heute"
+ },
+ {
+ "name": "XV II GT",
+ "years": "2017–2023"
+ },
+ {
+ "name": "XV I GP",
+ "years": "2012–2017"
+ },
+ {
+ "name": "Forester VI SL",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Forester V SK",
+ "years": "2018–2025"
+ },
+ {
+ "name": "Forester IV SJ",
+ "years": "2013–2018"
+ },
+ {
+ "name": "Forester III SH",
+ "years": "2008–2013"
+ },
+ {
+ "name": "Forester II SG",
+ "years": "2002–2008"
+ },
+ {
+ "name": "Forester I SF",
+ "years": "1997–2002"
+ },
+ {
+ "name": "Tribeca",
+ "years": "2005–2014"
+ },
+ {
+ "name": "Solterra",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Uncharted",
+ "years": "2026–heute"
+ },
+ {
+ "name": "Trailseeker",
+ "years": "2026–heute"
+ },
+ {
+ "name": "BRZ II ZD8",
+ "years": "2022–2024"
+ },
+ {
+ "name": "BRZ I ZC6",
+ "years": "2012–2020"
+ }
+ ]
+ },
+ {
+ "brand": "Suzuki",
+ "models": [
+ {
+ "name": "Alto VII",
+ "years": "2009–2014"
+ },
+ {
+ "name": "Alto VI",
+ "years": "2002–2008"
+ },
+ {
+ "name": "Celerio",
+ "years": "2014–2020"
+ },
+ {
+ "name": "Splash",
+ "years": "2008–2014"
+ },
+ {
+ "name": "Wagon R Plus",
+ "years": "2000–2008"
+ },
+ {
+ "name": "Ignis III",
+ "years": "2016–2025"
+ },
+ {
+ "name": "Ignis II",
+ "years": "2000–2008"
+ },
+ {
+ "name": "Swift AZ",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Swift A2L",
+ "years": "2017–2024"
+ },
+ {
+ "name": "Swift FZ",
+ "years": "2010–2017"
+ },
+ {
+ "name": "Swift MZ/EZ",
+ "years": "2005–2010"
+ },
+ {
+ "name": "Baleno",
+ "years": "2016–2019"
+ },
+ {
+ "name": "Liana",
+ "years": "2001–2007"
+ },
+ {
+ "name": "Swace",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Kizashi",
+ "years": "2010–2014"
+ },
+ {
+ "name": "SX4",
+ "years": "2006–2014"
+ },
+ {
+ "name": "S-Cross II",
+ "years": "2022–heute"
+ },
+ {
+ "name": "SX4 S-Cross",
+ "years": "2013–2021"
+ },
+ {
+ "name": "Vitara LY",
+ "years": "2015–heute"
+ },
+ {
+ "name": "e Vitara",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Grand Vitara II",
+ "years": "2005–2015"
+ },
+ {
+ "name": "Grand Vitara I",
+ "years": "1998–2005"
+ },
+ {
+ "name": "Across",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Jimny IV GJ",
+ "years": "2018–2024"
+ },
+ {
+ "name": "Jimny III FJ",
+ "years": "1998–2018"
+ }
+ ]
+ },
+ {
+ "brand": "Tesla",
+ "models": [
+ {
+ "name": "Model 3 Highland",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Model 3",
+ "years": "2017–2023"
+ },
+ {
+ "name": "Model Y Juniper",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Model Y",
+ "years": "2020–2025"
+ },
+ {
+ "name": "Model S",
+ "years": "2012–2026"
+ },
+ {
+ "name": "Model X",
+ "years": "2015–2026"
+ },
+ {
+ "name": "Roadster",
+ "years": "2008–2012"
+ }
+ ]
+ },
+ {
+ "brand": "Toyota",
+ "models": [
+ {
+ "name": "Aygo X",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Aygo II",
+ "years": "2014–2022"
+ },
+ {
+ "name": "Aygo I",
+ "years": "2005–2014"
+ },
+ {
+ "name": "iQ",
+ "years": "2008–2015"
+ },
+ {
+ "name": "Yaris XP210",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Yaris XP130",
+ "years": "2011–2020"
+ },
+ {
+ "name": "Yaris XP90",
+ "years": "2005–2011"
+ },
+ {
+ "name": "Yaris XP10",
+ "years": "1999–2005"
+ },
+ {
+ "name": "Yaris Verso",
+ "years": "1999–2005"
+ },
+ {
+ "name": "Verso-S",
+ "years": "2010–2015"
+ },
+ {
+ "name": "Corolla E210",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Auris E180",
+ "years": "2012–2018"
+ },
+ {
+ "name": "Auris E150",
+ "years": "2006–2012"
+ },
+ {
+ "name": "Corolla E120",
+ "years": "2001–2007"
+ },
+ {
+ "name": "Corolla E110",
+ "years": "1997–2002"
+ },
+ {
+ "name": "Corolla Verso AR10",
+ "years": "2004–2009"
+ },
+ {
+ "name": "Corolla Verso E120",
+ "years": "2002–2004"
+ },
+ {
+ "name": "Verso AR20",
+ "years": "2009–2018"
+ },
+ {
+ "name": "Prius XW60",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Prius XW50",
+ "years": "2015–2022"
+ },
+ {
+ "name": "Prius Plug-in XW52",
+ "years": "2017–2022"
+ },
+ {
+ "name": "Prius XW30",
+ "years": "2009–2015"
+ },
+ {
+ "name": "Prius XW20",
+ "years": "2003–2009"
+ },
+ {
+ "name": "Prius Plus ZVW40",
+ "years": "2012–2021"
+ },
+ {
+ "name": "Avensis T27",
+ "years": "2009–2018"
+ },
+ {
+ "name": "Avensis T25",
+ "years": "2003–2008"
+ },
+ {
+ "name": "Avensis T22",
+ "years": "1997–2003"
+ },
+ {
+ "name": "Avensis Verso",
+ "years": "2001–2006"
+ },
+ {
+ "name": "Camry XV70",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Camry XV30",
+ "years": "2001–2004"
+ },
+ {
+ "name": "Mirai II",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Mirai I",
+ "years": "2015–2020"
+ },
+ {
+ "name": "Urban Cruiser",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Urban Cruiser XP110",
+ "years": "2009–2014"
+ },
+ {
+ "name": "Yaris Cross XP210",
+ "years": "2021–heute"
+ },
+ {
+ "name": "C-HR II",
+ "years": "2023–heute"
+ },
+ {
+ "name": "C-HR I",
+ "years": "2016–2023"
+ },
+ {
+ "name": "C-HR Plus",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Corolla Cross XG10",
+ "years": "2022–heute"
+ },
+ {
+ "name": "bZ4X",
+ "years": "2022–heute"
+ },
+ {
+ "name": "bZ4X Touring",
+ "years": "2026–heute"
+ },
+ {
+ "name": "RAV4 VI",
+ "years": "2026–heute"
+ },
+ {
+ "name": "RAV4 XA50",
+ "years": "2019–2025"
+ },
+ {
+ "name": "RAV4 XA40",
+ "years": "2013–2018"
+ },
+ {
+ "name": "RAV4 XA30",
+ "years": "2006–2012"
+ },
+ {
+ "name": "RAV4 XA20",
+ "years": "2000–2005"
+ },
+ {
+ "name": "Highlander XU70",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Land Cruiser 250",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Land Cruiser J150",
+ "years": "2009–2023"
+ },
+ {
+ "name": "Land Cruiser J120",
+ "years": "2002–2009"
+ },
+ {
+ "name": "Land Cruiser V8 J200",
+ "years": "2008–2021"
+ },
+ {
+ "name": "Land Cruiser J100",
+ "years": "1998–2007"
+ },
+ {
+ "name": "Hilux IX",
+ "years": "2026–heute"
+ },
+ {
+ "name": "Hilux VIII AN120",
+ "years": "2016–2025"
+ },
+ {
+ "name": "Hilux VII AN10",
+ "years": "2005–2015"
+ },
+ {
+ "name": "Hilux VI",
+ "years": "1997–2005"
+ },
+ {
+ "name": "Previa XR30",
+ "years": "2000–2006"
+ },
+ {
+ "name": "Proace City",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Proace City Verso",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Proace II",
+ "years": "2016–heute"
+ },
+ {
+ "name": "Proace Verso",
+ "years": "2016–heute"
+ },
+ {
+ "name": "Proace I",
+ "years": "2013–2016"
+ },
+ {
+ "name": "Proace Max",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Hiace H100",
+ "years": "1995–2012"
+ },
+ {
+ "name": "Celica T230",
+ "years": "1999–2006"
+ },
+ {
+ "name": "MR2 W30",
+ "years": "1999–2007"
+ },
+ {
+ "name": "GT86",
+ "years": "2012–2021"
+ },
+ {
+ "name": "GR86",
+ "years": "2022–2024"
+ },
+ {
+ "name": "GR Yaris",
+ "years": "2020–heute"
+ },
+ {
+ "name": "GR Supra A90",
+ "years": "2019–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Volkswagen",
+ "models": [
+ {
+ "name": "up!",
+ "years": "2011–2023"
+ },
+ {
+ "name": "Fox",
+ "years": "2005–2011"
+ },
+ {
+ "name": "Lupo",
+ "years": "1998–2005"
+ },
+ {
+ "name": "ID. Polo",
+ "years": "2026–heute"
+ },
+ {
+ "name": "Polo 6",
+ "years": "2017–heute"
+ },
+ {
+ "name": "Polo 5",
+ "years": "2009–2017"
+ },
+ {
+ "name": "Polo 4",
+ "years": "2001–2009"
+ },
+ {
+ "name": "Polo 3",
+ "years": "1994–2001"
+ },
+ {
+ "name": "Golf 8",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Golf 7",
+ "years": "2012–2020"
+ },
+ {
+ "name": "Golf 6",
+ "years": "2008–2012"
+ },
+ {
+ "name": "Golf 5",
+ "years": "2003–2008"
+ },
+ {
+ "name": "Golf 4",
+ "years": "1997–2003"
+ },
+ {
+ "name": "Golf Cabriolet",
+ "years": "2011–2016"
+ },
+ {
+ "name": "Golf Plus",
+ "years": "2005–2014"
+ },
+ {
+ "name": "Golf Sportsvan",
+ "years": "2014–2020"
+ },
+ {
+ "name": "ID.3",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Beetle",
+ "years": "2011–2019"
+ },
+ {
+ "name": "New Beetle",
+ "years": "1997–2010"
+ },
+ {
+ "name": "Jetta 6",
+ "years": "2010–2018"
+ },
+ {
+ "name": "Jetta 5",
+ "years": "2005–2010"
+ },
+ {
+ "name": "Bora",
+ "years": "1998–2005"
+ },
+ {
+ "name": "Passat B9",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Passat B8",
+ "years": "2014–2023"
+ },
+ {
+ "name": "Passat B7",
+ "years": "2010–2014"
+ },
+ {
+ "name": "Passat B6",
+ "years": "2005–2010"
+ },
+ {
+ "name": "Passat B5",
+ "years": "1996–2005"
+ },
+ {
+ "name": "Passat CC / CC",
+ "years": "2008–2016"
+ },
+ {
+ "name": "Arteon",
+ "years": "2017–2024"
+ },
+ {
+ "name": "ID.7",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Phaeton",
+ "years": "2002–2016"
+ },
+ {
+ "name": "Touran II",
+ "years": "2015–heute"
+ },
+ {
+ "name": "Touran I",
+ "years": "2003–2015"
+ },
+ {
+ "name": "Sharan II",
+ "years": "2010–2022"
+ },
+ {
+ "name": "Sharan I",
+ "years": "1995–2010"
+ },
+ {
+ "name": "ID. Cross",
+ "years": "2026–heute"
+ },
+ {
+ "name": "T-Cross",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Taigo",
+ "years": "2021–heute"
+ },
+ {
+ "name": "T-Roc II",
+ "years": "2025–heute"
+ },
+ {
+ "name": "T-Roc I",
+ "years": "2017–2025"
+ },
+ {
+ "name": "T-Roc Cabriolet",
+ "years": "2019–2025"
+ },
+ {
+ "name": "ID.4",
+ "years": "2020–heute"
+ },
+ {
+ "name": "ID.5",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Tiguan III",
+ "years": "2023–heute"
+ },
+ {
+ "name": "Tiguan II",
+ "years": "2016–2024"
+ },
+ {
+ "name": "Tiguan Allspace",
+ "years": "2017–2024"
+ },
+ {
+ "name": "Tiguan I",
+ "years": "2007–2016"
+ },
+ {
+ "name": "Tayron",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Touareg III",
+ "years": "2018–heute"
+ },
+ {
+ "name": "Touareg II",
+ "years": "2010–2018"
+ },
+ {
+ "name": "Touareg I",
+ "years": "2002–2010"
+ },
+ {
+ "name": "Caddy 5",
+ "years": "2020–heute"
+ },
+ {
+ "name": "Caddy 4",
+ "years": "2015–2020"
+ },
+ {
+ "name": "Caddy 3",
+ "years": "2003–2015"
+ },
+ {
+ "name": "Caddy 2",
+ "years": "1995–2004"
+ },
+ {
+ "name": "ID. Buzz",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Transporter T7",
+ "years": "2024–heute"
+ },
+ {
+ "name": "Transporter T6.1",
+ "years": "2019–2024"
+ },
+ {
+ "name": "Transporter T6",
+ "years": "2015–2019"
+ },
+ {
+ "name": "Transporter T5.1",
+ "years": "2009–2015"
+ },
+ {
+ "name": "Transporter T5",
+ "years": "2003–2009"
+ },
+ {
+ "name": "Transporter T4",
+ "years": "1990–2003"
+ },
+ {
+ "name": "Caravelle T7",
+ "years": "2025–heute"
+ },
+ {
+ "name": "Caravelle T6.1",
+ "years": "2019–2024"
+ },
+ {
+ "name": "Caravelle T6",
+ "years": "2015–2019"
+ },
+ {
+ "name": "Caravelle T5",
+ "years": "2003–2015"
+ },
+ {
+ "name": "Caravelle T4",
+ "years": "1990–2003"
+ },
+ {
+ "name": "Multivan T7",
+ "years": "2021–heute"
+ },
+ {
+ "name": "Multivan T6.1",
+ "years": "2019–2022"
+ },
+ {
+ "name": "Multivan T6",
+ "years": "2015–2019"
+ },
+ {
+ "name": "Multivan T5",
+ "years": "2003–2015"
+ },
+ {
+ "name": "Multivan T4",
+ "years": "1992–2003"
+ },
+ {
+ "name": "California T7",
+ "years": "2024–heute"
+ },
+ {
+ "name": "California T6.1",
+ "years": "2019–2024"
+ },
+ {
+ "name": "California T6",
+ "years": "2015–2019"
+ },
+ {
+ "name": "California T5",
+ "years": "2003–2015"
+ },
+ {
+ "name": "California T4",
+ "years": "1990–2003"
+ },
+ {
+ "name": "Grand California",
+ "years": "2019–heute"
+ },
+ {
+ "name": "Crafter II",
+ "years": "2016–heute"
+ },
+ {
+ "name": "Crafter I",
+ "years": "2006–2016"
+ },
+ {
+ "name": "LT II",
+ "years": "1996–2006"
+ },
+ {
+ "name": "Amarok II",
+ "years": "2022–heute"
+ },
+ {
+ "name": "Amarok I",
+ "years": "2010–2020"
+ },
+ {
+ "name": "Scirocco III",
+ "years": "2008–2017"
+ },
+ {
+ "name": "Eos",
+ "years": "2006–2015"
+ }
+ ]
+ },
+ {
+ "brand": "Volvo",
+ "models": [
+ {
+ "name": "EX30",
+ "years": "2023–heute"
+ },
+ {
+ "name": "EX30 Cross Country",
+ "years": "2024–heute"
+ },
+ {
+ "name": "C30",
+ "years": "2006–2013"
+ },
+ {
+ "name": "V40 II",
+ "years": "2012–2019"
+ },
+ {
+ "name": "V40 Cross Country",
+ "years": "2012–2019"
+ },
+ {
+ "name": "V40 I",
+ "years": "1995–2004"
+ },
+ {
+ "name": "S40 II",
+ "years": "2004–2012"
+ },
+ {
+ "name": "S40 I",
+ "years": "1995–2004"
+ },
+ {
+ "name": "V50",
+ "years": "2004–2012"
+ },
+ {
+ "name": "S60 III",
+ "years": "2018–2024"
+ },
+ {
+ "name": "S60 II",
+ "years": "2010–2018"
+ },
+ {
+ "name": "S60 I",
+ "years": "2000–2009"
+ },
+ {
+ "name": "V60 II",
+ "years": "2018–heute"
+ },
+ {
+ "name": "V60 Cross Country II",
+ "years": "2019–heute"
+ },
+ {
+ "name": "V60 I",
+ "years": "2010–2018"
+ },
+ {
+ "name": "V60 Cross Country I",
+ "years": "2015–2018"
+ },
+ {
+ "name": "S80 II",
+ "years": "2006–2016"
+ },
+ {
+ "name": "S80 I",
+ "years": "1998–2006"
+ },
+ {
+ "name": "S90 II",
+ "years": "2016–2024"
+ },
+ {
+ "name": "V70 III",
+ "years": "2007–2016"
+ },
+ {
+ "name": "V70 II",
+ "years": "2000–2007"
+ },
+ {
+ "name": "XC70 II",
+ "years": "2007–2016"
+ },
+ {
+ "name": "XC70 I (V70 XC)",
+ "years": "2000–2007"
+ },
+ {
+ "name": "V90 II",
+ "years": "2016–heute"
+ },
+ {
+ "name": "V90 Cross Country",
+ "years": "2016–heute"
+ },
+ {
+ "name": "ES90",
+ "years": "2025–heute"
+ },
+ {
+ "name": "C70 II",
+ "years": "2006–2013"
+ },
+ {
+ "name": "C70 I",
+ "years": "1997–2005"
+ },
+ {
+ "name": "XC40",
+ "years": "2017–heute"
+ },
+ {
+ "name": "EX40 (XC40 Recharge)",
+ "years": "2020–heute"
+ },
+ {
+ "name": "EC40 (C40 Recharge)",
+ "years": "2021–heute"
+ },
+ {
+ "name": "XC60 II",
+ "years": "2017–heute"
+ },
+ {
+ "name": "XC60 I",
+ "years": "2008–2017"
+ },
+ {
+ "name": "EX60",
+ "years": "2026–heute"
+ },
+ {
+ "name": "XC90 II",
+ "years": "2014–heute"
+ },
+ {
+ "name": "XC90 I",
+ "years": "2002–2014"
+ },
+ {
+ "name": "EX90",
+ "years": "2024–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Xpeng",
+ "models": [
+ {
+ "name": "P7 Plus",
+ "years": "2025–heute"
+ },
+ {
+ "name": "P7",
+ "years": "2021–2024"
+ },
+ {
+ "name": "G3",
+ "years": "2020–2022"
+ },
+ {
+ "name": "G6",
+ "years": "2024–heute"
+ },
+ {
+ "name": "G9",
+ "years": "2022–heute"
+ },
+ {
+ "name": "X9",
+ "years": "2025–heute"
+ }
+ ]
+ },
+ {
+ "brand": "Zeekr",
+ "models": [
+ {
+ "name": "X",
+ "years": "2023–heute"
+ },
+ {
+ "name": "7X",
+ "years": "2024–heute"
+ },
+ {
+ "name": "001",
+ "years": "2023–heute"
+ }
+ ]
+ }
+]
\ No newline at end of file
diff --git a/hifi/api/public/index.php b/hifi/api/public/index.php
index cd9f329..ad0d7cf 100644
--- a/hifi/api/public/index.php
+++ b/hifi/api/public/index.php
@@ -43,6 +43,7 @@ use App\Controllers\TwoFactorController;
use App\Controllers\UpdateController;
use App\Controllers\LiveEditController;
use App\Controllers\UploadController;
+use App\Controllers\VehicleCatalogController;
use App\Middleware\AuthMiddleware;
use App\Router;
use App\Services\GitUpdateService;
@@ -144,6 +145,9 @@ $router->get('/models', $anyPerm(['models.manage', 'packages.manage'], fn($p) =>
$router->post('/models', $perm('models.manage', fn($p) => ModelController::store()));
$router->put('/models/{id}', $perm('models.manage', fn($p) => ModelController::update($p)));
$router->delete('/models/{id}', $perm('models.manage', fn($p) => ModelController::destroy($p)));
+// Fahrzeug-Vorlage: legt Marken und Modelle an, braucht deshalb beide Rechte.
+$router->get('/vehicle-catalog', $anyPerm(['brands.manage', 'models.manage'], fn($p) => VehicleCatalogController::index()));
+$router->post('/vehicle-catalog/import', $perm('brands.manage', $perm('models.manage', fn($p) => VehicleCatalogController::import())));
$router->get('/models/{brand_slug}/{model_slug}/packages', $maint('vehicles', fn($p) => ModelController::packagesForModel($p)));
$router->get('/packages', $perm('packages.manage', fn($p) => PackageController::index()));
diff --git a/hifi/api/src/Controllers/VehicleCatalogController.php b/hifi/api/src/Controllers/VehicleCatalogController.php
new file mode 100644
index 0000000..eee23da
--- /dev/null
+++ b/hifi/api/src/Controllers/VehicleCatalogController.php
@@ -0,0 +1,173 @@
+}> */
+ private static function catalog(): array
+ {
+ $data = json_decode((string) @file_get_contents(self::FILE), true);
+ if (!is_array($data)) {
+ Http::error('Fahrzeugkatalog nicht gefunden', 500);
+ }
+ return $data;
+ }
+
+ /**
+ * Vergleichsschluessel fuer "gibt es schon": Slug und kleingeschriebener Name - so wird auch
+ * ein von Hand angelegtes "Citroën" (aelterer Slug "citro-n") wiedererkannt.
+ *
+ * @return string[]
+ */
+ private static function keys(string $name, ?string $slug = null): array
+ {
+ return array_unique(array_filter([$slug, Slug::make($name), 'n:' . mb_strtolower(trim($name))]));
+ }
+
+ /** Vorhandene Marken (Schluessel => id) und deren Modelle (brand_id => [Schluessel => true]). */
+ private static function existing(\PDO $db): array
+ {
+ $brands = [];
+ foreach ($db->query('SELECT id, name, slug FROM brands')->fetchAll() as $row) {
+ foreach (self::keys($row['name'], $row['slug']) as $key) {
+ $brands[$key] = (int) $row['id'];
+ }
+ }
+ $models = [];
+ foreach ($db->query('SELECT brand_id, name, slug FROM car_models')->fetchAll() as $row) {
+ foreach (self::keys($row['name'], $row['slug']) as $key) {
+ $models[(int) $row['brand_id']][$key] = true;
+ }
+ }
+ return [$brands, $models];
+ }
+
+ private static function findBrand(array $brands, string $name): ?int
+ {
+ foreach (self::keys($name) as $key) {
+ if (isset($brands[$key])) {
+ return $brands[$key];
+ }
+ }
+ return null;
+ }
+
+ private static function hasModel(array $models, ?int $brandId, string $name): bool
+ {
+ if ($brandId === null) {
+ return false;
+ }
+ foreach (self::keys($name) as $key) {
+ if (isset($models[$brandId][$key])) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public static function index(): void
+ {
+ [$brands, $models] = self::existing(Database::connection());
+
+ $result = [];
+ foreach (self::catalog() as $entry) {
+ $brandId = self::findBrand($brands, $entry['brand']);
+ $result[] = [
+ 'brand' => $entry['brand'],
+ 'exists' => $brandId !== null,
+ 'models' => array_map(fn(array $model): array => [
+ 'name' => $model['name'],
+ 'years' => $model['years'] ?? null,
+ 'exists' => self::hasModel($models, $brandId, $model['name']),
+ ], $entry['models']),
+ ];
+ }
+ Http::send($result);
+ }
+
+ /**
+ * Body: {"items": [{"brand": "Audi", "models": ["A4 B9", "A3 8Y"]}]} - angelegt wird nur,
+ * was auch im Katalog steht, in der Reihenfolge des Katalogs hinter den vorhandenen Eintraegen.
+ */
+ public static function import(): void
+ {
+ $wanted = [];
+ foreach ((array) (Http::jsonBody()['items'] ?? []) as $item) {
+ $brand = trim((string) ($item['brand'] ?? ''));
+ if ($brand === '') {
+ continue;
+ }
+ foreach ((array) ($item['models'] ?? []) as $name) {
+ $wanted[$brand][trim((string) $name)] = true;
+ }
+ $wanted[$brand] ??= [];
+ }
+ if (!$wanted) {
+ Http::error('Keine Fahrzeuge ausgewählt', 422);
+ }
+
+ $db = Database::connection();
+ [$brands, $models] = self::existing($db);
+ $brandSort = (int) $db->query('SELECT COALESCE(MAX(sort_order), 0) FROM brands')->fetchColumn();
+ $modelSortStmt = $db->prepare('SELECT COALESCE(MAX(sort_order), 0) FROM car_models WHERE brand_id = ?');
+ $insertBrand = $db->prepare('INSERT INTO brands (name, slug, sort_order) VALUES (?, ?, ?)');
+ $insertModel = $db->prepare('INSERT INTO car_models (brand_id, name, slug, sort_order) VALUES (?, ?, ?, ?)');
+
+ $created = ['brands' => 0, 'models' => 0, 'skipped' => 0];
+ $db->beginTransaction();
+ try {
+ foreach (self::catalog() as $entry) {
+ if (!isset($wanted[$entry['brand']])) {
+ continue;
+ }
+ $selected = $wanted[$entry['brand']];
+ $brandId = self::findBrand($brands, $entry['brand']);
+ if ($brandId === null) {
+ $brandSort += 10;
+ $insertBrand->execute([$entry['brand'], Slug::make($entry['brand']), $brandSort]);
+ $brandId = (int) $db->lastInsertId();
+ foreach (self::keys($entry['brand']) as $key) {
+ $brands[$key] = $brandId;
+ }
+ $created['brands']++;
+ }
+
+ $modelSortStmt->execute([$brandId]);
+ $modelSort = (int) $modelSortStmt->fetchColumn();
+ foreach ($entry['models'] as $model) {
+ if (!isset($selected[$model['name']])) {
+ continue;
+ }
+ if (self::hasModel($models, $brandId, $model['name'])) {
+ $created['skipped']++;
+ continue;
+ }
+ $modelSort += 10;
+ $insertModel->execute([$brandId, $model['name'], Slug::make($model['name']), $modelSort]);
+ foreach (self::keys($model['name']) as $key) {
+ $models[$brandId][$key] = true;
+ }
+ $created['models']++;
+ }
+ }
+ $db->commit();
+ } catch (\Throwable $e) {
+ $db->rollBack();
+ throw $e;
+ }
+
+ Http::send($created);
+ }
+}
diff --git a/hifi/api/src/Support/Slug.php b/hifi/api/src/Support/Slug.php
index db15d6a..8ac7474 100644
--- a/hifi/api/src/Support/Slug.php
+++ b/hifi/api/src/Support/Slug.php
@@ -9,6 +9,16 @@ class Slug
$map = [
'ä' => 'ae', 'ö' => 'oe', 'ü' => 'ue', 'ß' => 'ss',
'Ä' => 'ae', 'Ö' => 'oe', 'Ü' => 'ue',
+ // Akzente in Marken-/Modellnamen (Škoda, Citroën, Doblò ...) - sonst fiele der
+ // Buchstabe weg ("citro-n").
+ 'á' => 'a', 'à' => 'a', 'â' => 'a', 'å' => 'a', 'ã' => 'a', 'Á' => 'a', 'À' => 'a', 'Â' => 'a', 'Å' => 'a',
+ 'é' => 'e', 'è' => 'e', 'ê' => 'e', 'ë' => 'e', 'É' => 'e', 'È' => 'e', 'Ê' => 'e', 'Ë' => 'e',
+ 'í' => 'i', 'ì' => 'i', 'î' => 'i', 'ï' => 'i', 'Í' => 'i', 'Î' => 'i',
+ 'ó' => 'o', 'ò' => 'o', 'ô' => 'o', 'õ' => 'o', 'ø' => 'o', 'Ó' => 'o', 'Ò' => 'o', 'Ô' => 'o', 'Ø' => 'o',
+ 'ú' => 'u', 'ù' => 'u', 'û' => 'u', 'Ú' => 'u', 'Û' => 'u',
+ 'ç' => 'c', 'č' => 'c', 'Ç' => 'c', 'Č' => 'c', 'ñ' => 'n', 'Ñ' => 'n', 'ý' => 'y', 'Ý' => 'y',
+ 'š' => 's', 'Š' => 's', 'ž' => 'z', 'Ž' => 'z', 'ř' => 'r', 'Ř' => 'r', 'ě' => 'e', 'Ě' => 'e',
+ 'æ' => 'ae', 'Æ' => 'ae', 'œ' => 'oe', 'Œ' => 'oe',
];
$text = strtr($text, $map);
$text = strtolower($text);
diff --git a/hifi/assets/AGB-B7VmuQYo.js b/hifi/assets/AGB-B7VmuQYo.js
new file mode 100644
index 0000000..bdfce2b
--- /dev/null
+++ b/hifi/assets/AGB-B7VmuQYo.js
@@ -0,0 +1 @@
+import{j as e}from"./index-ByR_n0g5.js";import{L as i}from"./LegalPageView-DyCn1nFB.js";function n(){return e.jsx(i,{slug:"agb",fallbackTitle:"AGB",description:"Allgemeine Geschäftsbedingungen von HifiPlanet Amorbach."})}export{n as default};
diff --git a/hifi/assets/AGB-CaHRKcOb.js b/hifi/assets/AGB-CaHRKcOb.js
deleted file mode 100644
index 81bcb47..0000000
--- a/hifi/assets/AGB-CaHRKcOb.js
+++ /dev/null
@@ -1 +0,0 @@
-import{j as e}from"./index-BlspSYV0.js";import{L as i}from"./LegalPageView-Cw-csW7_.js";function n(){return e.jsx(i,{slug:"agb",fallbackTitle:"AGB",description:"Allgemeine Geschäftsbedingungen von HifiPlanet Amorbach."})}export{n as default};
diff --git a/hifi/assets/AccountSettings-CYJZRLnt.js b/hifi/assets/AccountSettings-ByPcUHUu.js
similarity index 99%
rename from hifi/assets/AccountSettings-CYJZRLnt.js
rename to hifi/assets/AccountSettings-ByPcUHUu.js
index 76f7ae3..b74d1e3 100644
--- a/hifi/assets/AccountSettings-CYJZRLnt.js
+++ b/hifi/assets/AccountSettings-ByPcUHUu.js
@@ -1,4 +1,4 @@
-import{k as De,r as I,j as u,c as V}from"./index-BlspSYV0.js";var Y={},Fe=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},ye={},S={};let de;const Ue=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];S.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};S.getSymbolTotalCodewords=function(t){return Ue[t]};S.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};S.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');de=t};S.isKanjiModeEnabled=function(){return typeof de<"u"};S.toSJIS=function(t){return de(t)};var W={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+s)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})(W);function xe(){this.buffer=[],this.length=0}xe.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let s=0;s
>>t-s-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var ze=xe;function O(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}O.prototype.set=function(e,t,s,n){const r=e*this.size+t;this.data[r]=s,n&&(this.reservedBit[r]=!0)};O.prototype.get=function(e,t){return this.data[e*this.size+t]};O.prototype.xor=function(e,t,s){this.data[e*this.size+t]^=s};O.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Ke=O,Ce={};(function(e){const t=S.getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const r=Math.floor(n/7)+2,o=t(n),i=o===145?26:Math.ceil((o-13)/(2*r-2))*2,l=[o-7];for(let a=1;a=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const o=r.size;let i=0,l=0,a=0,c=null,d=null;for(let x=0;x=5&&(i+=t.N1+(l-5)),c=f,l=1),f=r.get(y,x),f===d?a++:(a>=5&&(i+=t.N1+(a-5)),d=f,a=1)}l>=5&&(i+=t.N1+(l-5)),a>=5&&(i+=t.N1+(a-5))}return i},e.getPenaltyN2=function(r){const o=r.size;let i=0;for(let l=0;l=10&&(l===1488||l===93)&&i++,a=a<<1&2047|r.get(d,c),d>=10&&(a===1488||a===93)&&i++}return i*t.N3},e.getPenaltyN4=function(r){let o=0;const i=r.data.length;for(let a=0;a=0;){const i=o[0];for(let a=0;a0){const o=new Uint8Array(this.degree);return o.set(n,r),o}return n};var He=ce,ke={},R={},fe={};fe.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var _={};const Se="[0-9]+",Je="[A-Z $%*+\\-./:]+";let J="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";J=J.replace(/u/g,"\\u");const Ye="(?:(?![A-Z0-9 $%*+\\-./:]|"+J+`)(?:.|[\r
+import{k as De,r as I,j as u,c as V}from"./index-ByR_n0g5.js";var Y={},Fe=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},ye={},S={};let de;const Ue=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];S.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};S.getSymbolTotalCodewords=function(t){return Ue[t]};S.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};S.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');de=t};S.isKanjiModeEnabled=function(){return typeof de<"u"};S.toSJIS=function(t){return de(t)};var W={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+s)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})(W);function xe(){this.buffer=[],this.length=0}xe.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let s=0;s>>t-s-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var ze=xe;function O(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}O.prototype.set=function(e,t,s,n){const r=e*this.size+t;this.data[r]=s,n&&(this.reservedBit[r]=!0)};O.prototype.get=function(e,t){return this.data[e*this.size+t]};O.prototype.xor=function(e,t,s){this.data[e*this.size+t]^=s};O.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Ke=O,Ce={};(function(e){const t=S.getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const r=Math.floor(n/7)+2,o=t(n),i=o===145?26:Math.ceil((o-13)/(2*r-2))*2,l=[o-7];for(let a=1;a=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const o=r.size;let i=0,l=0,a=0,c=null,d=null;for(let x=0;x=5&&(i+=t.N1+(l-5)),c=f,l=1),f=r.get(y,x),f===d?a++:(a>=5&&(i+=t.N1+(a-5)),d=f,a=1)}l>=5&&(i+=t.N1+(l-5)),a>=5&&(i+=t.N1+(a-5))}return i},e.getPenaltyN2=function(r){const o=r.size;let i=0;for(let l=0;l=10&&(l===1488||l===93)&&i++,a=a<<1&2047|r.get(d,c),d>=10&&(a===1488||a===93)&&i++}return i*t.N3},e.getPenaltyN4=function(r){let o=0;const i=r.data.length;for(let a=0;a=0;){const i=o[0];for(let a=0;a0){const o=new Uint8Array(this.degree);return o.set(n,r),o}return n};var He=ce,ke={},R={},fe={};fe.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var _={};const Se="[0-9]+",Je="[A-Z $%*+\\-./:]+";let J="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";J=J.replace(/u/g,"\\u");const Ye="(?:(?![A-Z0-9 $%*+\\-./:]|"+J+`)(?:.|[\r
]))+`;_.KANJI=new RegExp(J,"g");_.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");_.BYTE=new RegExp(Ye,"g");_.NUMERIC=new RegExp(Se,"g");_.ALPHANUMERIC=new RegExp(Je,"g");const Oe=new RegExp("^"+J+"$"),$e=new RegExp("^"+Se+"$"),qe=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");_.testKanji=function(t){return Oe.test(t)};_.testNumeric=function(t){return $e.test(t)};_.testAlphanumeric=function(t){return qe.test(t)};(function(e){const t=fe,s=_;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,i){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?o.ccBits[0]:i<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return s.testNumeric(o)?e.NUMERIC:s.testAlphanumeric(o)?e.ALPHANUMERIC:s.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function n(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+r)}}e.from=function(o,i){if(e.isValid(o))return o;try{return n(o)}catch{return i}}})(R);(function(e){const t=S,s=Z,n=W,r=R,o=fe,i=7973,l=t.getBCHDigit(i);function a(y,f,p){for(let w=1;w<=40;w++)if(f<=e.getCapacity(w,p,y))return w}function c(y,f){return r.getCharCountIndicator(y,f)+4}function d(y,f){let p=0;return y.forEach(function(w){const B=c(w.mode,f);p+=B+w.getBitsLength()}),p}function x(y,f){for(let p=1;p<=40;p++)if(d(y,p)<=e.getCapacity(p,f,r.MIXED))return p}e.from=function(f,p){return o.isValid(f)?parseInt(f,10):p},e.getCapacity=function(f,p,w){if(!o.isValid(f))throw new Error("Invalid QR Code version");typeof w>"u"&&(w=r.BYTE);const B=t.getSymbolTotalCodewords(f),h=s.getTotalCodewordsCount(f,p),b=(B-h)*8;if(w===r.MIXED)return b;const g=b-c(w,f);switch(w){case r.NUMERIC:return Math.floor(g/10*3);case r.ALPHANUMERIC:return Math.floor(g/11*2);case r.KANJI:return Math.floor(g/13);case r.BYTE:default:return Math.floor(g/8)}},e.getBestVersionForData=function(f,p){let w;const B=n.from(p,n.M);if(Array.isArray(f)){if(f.length>1)return x(f,B);if(f.length===0)return 1;w=f[0]}else w=f;return a(w.mode,w.getLength(),B)},e.getEncodedBits=function(f){if(!o.isValid(f)||f<7)throw new Error("Invalid QR Code version");let p=f<<12;for(;t.getBCHDigit(p)-l>=0;)p^=i<=0;)r^=Ie<0&&(n=this.data.substr(s),r=parseInt(n,10),t.put(r,o*3+1))};var We=D;const Ze=R,te=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function F(e){this.mode=Ze.ALPHANUMERIC,this.data=e}F.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(t){let s;for(s=0;s+2<=this.data.length;s+=2){let n=te.indexOf(this.data[s])*45;n+=te.indexOf(this.data[s+1]),t.put(n,11)}this.data.length%2&&t.put(te.indexOf(this.data[s]),6)};var Xe=F;const et=R;function U(e){this.mode=et.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}U.getBitsLength=function(t){return t*8};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(e){for(let t=0,s=this.data.length;t=33088&&s<=40956)s-=33088;else if(s>=57408&&s<=60351)s-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
Make sure your charset is UTF-8`);s=(s>>>8&255)*192+(s&255),e.put(s,13)}};var ot=z,Me={exports:{}};(function(e){var t={single_source_shortest_paths:function(s,n,r){var o={},i={};i[n]=0;var l=t.PriorityQueue.make();l.push(n,0);for(var a,c,d,x,y,f,p,w,B;!l.empty();){a=l.pop(),c=a.value,x=a.cost,y=s[c]||{};for(d in y)y.hasOwnProperty(d)&&(f=y[d],p=x+f,w=i[d],B=typeof i[d]>"u",(B||w>p)&&(i[d]=p,l.push(d,p),o[d]=c))}if(typeof r<"u"&&typeof i[r]>"u"){var h=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(h)}return o},extract_shortest_path_from_predecessor_list:function(s,n){for(var r=[],o=n;o;)r.push(o),s[o],o=s[o];return r.reverse(),r},find_path:function(s,n,r){var o=t.single_source_shortest_paths(s,n,r);return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(s){var n=t.PriorityQueue,r={},o;s=s||{};for(o in n)n.hasOwnProperty(o)&&(r[o]=n[o]);return r.queue=[],r.sorter=s.sorter||n.default_sorter,r},default_sorter:function(s,n){return s.cost-n.cost},push:function(s,n){var r={value:s,cost:n};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Me);var st=Me.exports;(function(e){const t=R,s=We,n=Xe,r=tt,o=ot,i=_,l=S,a=st;function c(h){return unescape(encodeURIComponent(h)).length}function d(h,b,g){const m=[];let C;for(;(C=h.exec(g))!==null;)m.push({data:C[0],index:C.index,mode:b,length:C[0].length});return m}function x(h){const b=d(i.NUMERIC,t.NUMERIC,h),g=d(i.ALPHANUMERIC,t.ALPHANUMERIC,h);let m,C;return l.isKanjiModeEnabled()?(m=d(i.BYTE,t.BYTE,h),C=d(i.KANJI,t.KANJI,h)):(m=d(i.BYTE_KANJI,t.BYTE,h),C=[]),b.concat(g,m,C).sort(function(A,k){return A.index-k.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function y(h,b){switch(b){case t.NUMERIC:return s.getBitsLength(h);case t.ALPHANUMERIC:return n.getBitsLength(h);case t.KANJI:return o.getBitsLength(h);case t.BYTE:return r.getBitsLength(h)}}function f(h){return h.reduce(function(b,g){const m=b.length-1>=0?b[b.length-1]:null;return m&&m.mode===g.mode?(b[b.length-1].data+=g.data,b):(b.push(g),b)},[])}function p(h){const b=[];for(let g=0;g=0&&l<=6&&(a===0||a===6)||a>=0&&a<=6&&(l===0||l===6)||l>=2&&l<=4&&a>=2&&a<=4?e.set(o+l,i+a,!0,!0):e.set(o+l,i+a,!1,!0))}}function gt(e){const t=e.size;for(let s=8;s>l&1)===1,e.set(r,o,i,!0),e.set(o,r,i,!0)}function oe(e,t,s){const n=e.size,r=ct.getEncodedBits(t,s);let o,i;for(o=0;o<15;o++)i=(r>>o&1)===1,o<6?e.set(o,8,i,!0):o<8?e.set(o+1,8,i,!0):e.set(n-15+o,8,i,!0),o<8?e.set(8,n-o-1,i,!0):o<9?e.set(8,15-o-1+1,i,!0):e.set(8,15-o-1,i,!0);e.set(n-8,8,1,!0)}function wt(e,t){const s=e.size;let n=-1,r=s-1,o=7,i=0;for(let l=s-1;l>0;l-=2)for(l===6&&l--;;){for(let a=0;a<2;a++)if(!e.isReserved(r,l-a)){let c=!1;i>>o&1)===1),e.set(r,l-a,c),o--,o===-1&&(i++,o=7)}if(r+=n,r<0||s<=r){r-=n,n=-n;break}}}function pt(e,t,s){const n=new it;s.forEach(function(a){n.put(a.mode.bit,4),n.put(a.getLength(),ft.getCharCountIndicator(a.mode,e)),a.write(n)});const r=ee.getSymbolTotalCodewords(e),o=le.getTotalCodewordsCount(e,t),i=(r-o)*8;for(n.getLengthInBits()+4<=i&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const l=(i-n.getLengthInBits())/8;for(let a=0;a{c.get("/admin-users").then(w),c.get("/permissions/catalog").then(S),(h("permission_groups.manage")||h("users.manage"))&&c.get("/permission-groups").then(B)};n.useEffect(x,[]);const E=t=>{var i;j(t.id),k(t.is_primary);const s={username:t.username,password:"",is_super_admin:t.is_super_admin,permissions:t.permissions,group_ids:t.groups.map(P=>P.id)};d(s),y(s),(i=v.current)==null||i.scrollIntoView({behavior:"smooth",block:"start"})},p=()=>{j(null),k(!1),d(u),y(u)},A=t=>{d(s=>({...s,permissions:s.permissions.includes(t)?s.permissions.filter(i=>i!==t):[...s.permissions,t]}))},C=t=>{d(s=>({...s,group_ids:s.group_ids.includes(t)?s.group_ids.filter(i=>i!==t):[...s.group_ids,t]}))},D=async t=>{t.preventDefault(),o("");try{if(l)await c.put(`/admin-users/${l}`,r);else{if(r.password.length<8){o("Passwort muss mindestens 8 Zeichen lang sein");return}await c.post("/admin-users",r)}m.success(l?"Benutzer gespeichert.":`Benutzer „${r.username}“ angelegt.`),p(),x()}catch(s){o(s.message)}},F=async t=>{if(confirm("Diesen Benutzer wirklich löschen?"))try{await c.delete(`/admin-users/${t}`),l===t&&p(),m.success("Benutzer gelöscht."),x()}catch(s){m.error(`Löschen fehlgeschlagen: ${s.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Benutzer"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Jeder Mitarbeiter bekommt ein eigenes Konto mit genau den Rechten, die er braucht."}),e.jsx("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Benutzername"}),e.jsx("th",{className:"px-4 py-2",children:"Rolle"}),e.jsx("th",{className:"px-4 py-2",children:"Berechtigungsgruppen"}),e.jsx("th",{className:"px-4 py-2",children:"Zuletzt aktiv"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[g.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsxs("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:[t.username,t.id===(a==null?void 0:a.id)&&e.jsx("span",{className:"ml-1 text-xs text-neutral-400",children:"(du)"}),t.is_primary&&e.jsx("span",{className:"ml-1 text-xs text-neutral-400",children:"(Erst-Administrator)"})]}),e.jsx("td",{className:"px-4 py-2",children:t.is_super_admin?e.jsx("span",{className:"rounded-full bg-brand-100 px-2 py-0.5 text-xs font-medium text-brand-700 dark:bg-brand-900/40 dark:text-brand-300",children:"Super-Admin"}):e.jsxs("span",{className:"text-neutral-500 dark:text-neutral-400",children:[t.permissions.length," Einzelrechte"]})}),e.jsx("td",{className:"px-4 py-2",children:e.jsxs("div",{className:"flex flex-wrap gap-1",children:[t.groups.map(s=>e.jsx("span",{className:"rounded-full bg-neutral-100 px-2 py-0.5 text-xs text-neutral-600 dark:bg-neutral-800 dark:text-neutral-300",children:s.name},s.id)),t.groups.length===0&&"–"]})}),e.jsx("td",{className:"px-4 py-2 text-neutral-500 dark:text-neutral-400",children:$(t.last_active_at)}),e.jsxs("td",{className:"whitespace-nowrap px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>E(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),t.id!==(a==null?void 0:a.id)&&!t.is_primary&&e.jsx("button",{onClick:()=>F(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),g.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:5,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Benutzer angelegt."})})]})]})})]}),e.jsxs("form",{ref:v,onSubmit:D,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:l?"Benutzer bearbeiten":"Neuer Benutzer"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzername *"}),e.jsx("input",{required:!0,value:r.username,onChange:t=>d({...r,username:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Passwort ",l?"(leer lassen = unverändert)":"*"]}),e.jsx("input",{type:"password",required:!l,value:r.password,onChange:t=>d({...r,password:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),(a==null?void 0:a.is_super_admin)&&e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:r.is_super_admin,disabled:N,onChange:t=>d({...r,is_super_admin:t.target.checked}),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500 disabled:opacity-50"}),"Super-Admin (hat automatisch alle Rechte)"]}),N&&e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Der Erst-Administrator behält immer den Super-Admin-Status."})]}),!r.is_super_admin&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Einzelne Berechtigungen"}),e.jsx("div",{className:"space-y-1.5 rounded-md border border-neutral-200 p-3 dark:border-neutral-700",children:_.map(t=>e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:r.permissions.includes(t.key),onChange:()=>A(t.key),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),t.label]},t.key))})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Berechtigungsgruppen"}),e.jsxs("div",{className:"space-y-1.5 rounded-md border border-neutral-200 p-3 dark:border-neutral-700",children:[b.map(t=>e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:r.group_ids.includes(t.id),onChange:()=>C(t.id),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),t.name]},t.id)),b.length===0&&e.jsx("p",{className:"text-sm text-neutral-400",children:"Noch keine Berechtigungsgruppen angelegt."})]})]})]}),f&&e.jsx("p",{className:"text-sm text-red-600",children:f}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:l?"Speichern":"Anlegen"}),l&&e.jsx("button",{type:"button",onClick:p,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{J as default};
+import{k as R,r as n,q as I,s as L,j as e,c}from"./index-ByR_n0g5.js";const u={username:"",password:"",is_super_admin:!1,permissions:[],group_ids:[]};function $(a){return a?new Date(a.replace(" ","T")).toLocaleString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}):"Noch nie"}function J(){const{user:a,hasPermission:h}=R(),[g,w]=n.useState([]),[_,S]=n.useState([]),[b,B]=n.useState([]),[r,d]=n.useState(u),[l,j]=n.useState(null),[N,k]=n.useState(!1),[f,o]=n.useState(""),[z,y]=n.useState(u),v=n.useRef(null),m=I();L(JSON.stringify(r)!==JSON.stringify(z),"admin-users");const x=()=>{c.get("/admin-users").then(w),c.get("/permissions/catalog").then(S),(h("permission_groups.manage")||h("users.manage"))&&c.get("/permission-groups").then(B)};n.useEffect(x,[]);const E=t=>{var i;j(t.id),k(t.is_primary);const s={username:t.username,password:"",is_super_admin:t.is_super_admin,permissions:t.permissions,group_ids:t.groups.map(P=>P.id)};d(s),y(s),(i=v.current)==null||i.scrollIntoView({behavior:"smooth",block:"start"})},p=()=>{j(null),k(!1),d(u),y(u)},A=t=>{d(s=>({...s,permissions:s.permissions.includes(t)?s.permissions.filter(i=>i!==t):[...s.permissions,t]}))},C=t=>{d(s=>({...s,group_ids:s.group_ids.includes(t)?s.group_ids.filter(i=>i!==t):[...s.group_ids,t]}))},D=async t=>{t.preventDefault(),o("");try{if(l)await c.put(`/admin-users/${l}`,r);else{if(r.password.length<8){o("Passwort muss mindestens 8 Zeichen lang sein");return}await c.post("/admin-users",r)}m.success(l?"Benutzer gespeichert.":`Benutzer „${r.username}“ angelegt.`),p(),x()}catch(s){o(s.message)}},F=async t=>{if(confirm("Diesen Benutzer wirklich löschen?"))try{await c.delete(`/admin-users/${t}`),l===t&&p(),m.success("Benutzer gelöscht."),x()}catch(s){m.error(`Löschen fehlgeschlagen: ${s.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Benutzer"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Jeder Mitarbeiter bekommt ein eigenes Konto mit genau den Rechten, die er braucht."}),e.jsx("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Benutzername"}),e.jsx("th",{className:"px-4 py-2",children:"Rolle"}),e.jsx("th",{className:"px-4 py-2",children:"Berechtigungsgruppen"}),e.jsx("th",{className:"px-4 py-2",children:"Zuletzt aktiv"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[g.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsxs("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:[t.username,t.id===(a==null?void 0:a.id)&&e.jsx("span",{className:"ml-1 text-xs text-neutral-400",children:"(du)"}),t.is_primary&&e.jsx("span",{className:"ml-1 text-xs text-neutral-400",children:"(Erst-Administrator)"})]}),e.jsx("td",{className:"px-4 py-2",children:t.is_super_admin?e.jsx("span",{className:"rounded-full bg-brand-100 px-2 py-0.5 text-xs font-medium text-brand-700 dark:bg-brand-900/40 dark:text-brand-300",children:"Super-Admin"}):e.jsxs("span",{className:"text-neutral-500 dark:text-neutral-400",children:[t.permissions.length," Einzelrechte"]})}),e.jsx("td",{className:"px-4 py-2",children:e.jsxs("div",{className:"flex flex-wrap gap-1",children:[t.groups.map(s=>e.jsx("span",{className:"rounded-full bg-neutral-100 px-2 py-0.5 text-xs text-neutral-600 dark:bg-neutral-800 dark:text-neutral-300",children:s.name},s.id)),t.groups.length===0&&"–"]})}),e.jsx("td",{className:"px-4 py-2 text-neutral-500 dark:text-neutral-400",children:$(t.last_active_at)}),e.jsxs("td",{className:"whitespace-nowrap px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>E(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),t.id!==(a==null?void 0:a.id)&&!t.is_primary&&e.jsx("button",{onClick:()=>F(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),g.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:5,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Benutzer angelegt."})})]})]})})]}),e.jsxs("form",{ref:v,onSubmit:D,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:l?"Benutzer bearbeiten":"Neuer Benutzer"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzername *"}),e.jsx("input",{required:!0,value:r.username,onChange:t=>d({...r,username:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Passwort ",l?"(leer lassen = unverändert)":"*"]}),e.jsx("input",{type:"password",required:!l,value:r.password,onChange:t=>d({...r,password:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),(a==null?void 0:a.is_super_admin)&&e.jsxs("div",{children:[e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:r.is_super_admin,disabled:N,onChange:t=>d({...r,is_super_admin:t.target.checked}),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500 disabled:opacity-50"}),"Super-Admin (hat automatisch alle Rechte)"]}),N&&e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Der Erst-Administrator behält immer den Super-Admin-Status."})]}),!r.is_super_admin&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Einzelne Berechtigungen"}),e.jsx("div",{className:"space-y-1.5 rounded-md border border-neutral-200 p-3 dark:border-neutral-700",children:_.map(t=>e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:r.permissions.includes(t.key),onChange:()=>A(t.key),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),t.label]},t.key))})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Berechtigungsgruppen"}),e.jsxs("div",{className:"space-y-1.5 rounded-md border border-neutral-200 p-3 dark:border-neutral-700",children:[b.map(t=>e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:r.group_ids.includes(t.id),onChange:()=>C(t.id),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),t.name]},t.id)),b.length===0&&e.jsx("p",{className:"text-sm text-neutral-400",children:"Noch keine Berechtigungsgruppen angelegt."})]})]})]}),f&&e.jsx("p",{className:"text-sm text-red-600",children:f}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:l?"Speichern":"Anlegen"}),l&&e.jsx("button",{type:"button",onClick:p,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{J as default};
diff --git a/hifi/assets/Brands-DT4cKYHY.js b/hifi/assets/Brands-DT4cKYHY.js
deleted file mode 100644
index 124276e..0000000
--- a/hifi/assets/Brands-DT4cKYHY.js
+++ /dev/null
@@ -1 +0,0 @@
-import{q as M,r as n,s as R,j as e,L as F,c as h}from"./index-BlspSYV0.js";import{I as B}from"./ImageUploadField-Bho12Gdh.js";import{T as C}from"./TextStyleWidget-xhHRXR-m.js";import{S as E,s as I}from"./SortableList-DwfJpzeR.js";import"./resizeImage-C6PvAwh0.js";import"./sortable.esm-D1g5h7xA.js";import"./grip-vertical-Bv_4pkjN.js";const u={name:"",image_path:"",sort_order:0};function O(){const i=M(),[d,o]=n.useState([]),[s,c]=n.useState(u),[y,f]=n.useState(u),[a,k]=n.useState(null),[j,x]=n.useState(""),p=n.useRef(null);R(JSON.stringify(s)!==JSON.stringify(y),"brands");const g=()=>h.get("/brands").then(o);n.useEffect(()=>{g()},[]);const w=t=>{const r={name:t.name,image_path:t.image_path||"",sort_order:t.sort_order};k(t.id),c(r),f(r),x(""),requestAnimationFrame(()=>{var l,m,N;(l=p.current)==null||l.scrollIntoView({behavior:"smooth",block:"start"}),(N=(m=p.current)==null?void 0:m.querySelector("input"))==null||N.focus({preventScroll:!0})})},b=()=>{k(null),c(u),f(u)},v=async t=>{t.preventDefault(),x("");try{if(a)await h.put(`/brands/${a}`,s);else{const r=d.reduce((l,m)=>Math.max(l,Number(m.sort_order)||0),0)+10;await h.post("/brands",{...s,sort_order:r})}i.success(a?"Marke gespeichert.":"Marke angelegt."),b(),g()}catch(r){x(r.message)}},S=async t=>{if(confirm("Marke inkl. aller Modelle/Pakete/Produkte wirklich löschen?"))try{await h.delete(`/brands/${t}`),a===t&&b(),i.success("Marke gelöscht."),g()}catch(r){i.error(`Löschen fehlgeschlagen: ${r.message}`)}},_=async t=>{const r=d;o(t);try{o(await I("brands",t)),i.success("Reihenfolge gespeichert.")}catch(l){o(r),i.error(`Reihenfolge konnte nicht gespeichert werden: ${l.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Marken"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Reihenfolge am Griff links per Ziehen ändern – so erscheinen die Marken auf der Website."}),e.jsx("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"w-8 px-2 py-2","aria-label":"Reihenfolge"}),e.jsx("th",{className:"px-4 py-2",children:"Bild"}),e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(E,{items:d,onReorder:_,as:"tbody",className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:(t,r)=>e.jsxs(e.Fragment,{children:[e.jsx("td",{className:"bg-white px-2 py-2 dark:bg-neutral-950",children:r}),e.jsx("td",{className:"bg-white px-4 py-2 dark:bg-neutral-950",children:t.image_path?e.jsx("img",{src:t.image_path,alt:"",className:"h-10 w-10 rounded-md object-cover"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsx("td",{className:"bg-white px-4 py-2 font-medium text-neutral-800 dark:bg-neutral-950 dark:text-neutral-100",children:e.jsx(F,{to:`/fahrzeuge/${t.slug}`,target:"_blank",className:"hover:text-brand-500",children:t.name})}),e.jsxs("td",{className:"whitespace-nowrap bg-white px-4 py-2 text-right dark:bg-neutral-950",children:[e.jsx("button",{onClick:()=>w(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>S(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]})}),d.length===0&&e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Marken angelegt."})})})]})})]}),e.jsxs("form",{ref:p,onSubmit:v,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:a?"Marke bearbeiten":"Neue Marke"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:s.name,onChange:t=>c({...s,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),a&&e.jsx(C,{fieldKey:`brands.${a}.name`,previewText:s.name||"Beispieltext"})]}),e.jsx(B,{value:s.image_path,onChange:t=>c({...s,image_path:t}),label:"Bild (optional)"}),j&&e.jsx("p",{className:"text-sm text-red-600",children:j}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:a?"Speichern":"Anlegen"}),a&&e.jsx("button",{type:"button",onClick:b,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{O as default};
diff --git a/hifi/assets/Brands-Dgm1mgy_.js b/hifi/assets/Brands-Dgm1mgy_.js
new file mode 100644
index 0000000..43ce7e7
--- /dev/null
+++ b/hifi/assets/Brands-Dgm1mgy_.js
@@ -0,0 +1 @@
+import{q as R,r as n,s as F,j as e,L as I,c as h}from"./index-ByR_n0g5.js";import{I as B}from"./ImageUploadField-IMilh1OJ.js";import{T as E}from"./TextStyleWidget-DgrYcrXW.js";import{S as $,s as A}from"./SortableList-fUokp5Er.js";import{V as L}from"./VehicleCatalogDialog-Db4N0Sxf.js";import"./resizeImage-C6PvAwh0.js";import"./sortable.esm-feaRoI7N.js";import"./grip-vertical-B-w3JIIY.js";const x={name:"",image_path:"",sort_order:0};function W(){const o=R(),[d,i]=n.useState([]),[s,c]=n.useState(x),[v,f]=n.useState(x),[a,k]=n.useState(null),[j,p]=n.useState(""),[w,N]=n.useState(!1),g=n.useRef(null);F(JSON.stringify(s)!==JSON.stringify(v),"brands");const m=()=>h.get("/brands").then(i);n.useEffect(()=>{m()},[]);const S=t=>{const r={name:t.name,image_path:t.image_path||"",sort_order:t.sort_order};k(t.id),c(r),f(r),p(""),requestAnimationFrame(()=>{var l,u,y;(l=g.current)==null||l.scrollIntoView({behavior:"smooth",block:"start"}),(y=(u=g.current)==null?void 0:u.querySelector("input"))==null||y.focus({preventScroll:!0})})},b=()=>{k(null),c(x),f(x)},_=async t=>{t.preventDefault(),p("");try{if(a)await h.put(`/brands/${a}`,s);else{const r=d.reduce((l,u)=>Math.max(l,Number(u.sort_order)||0),0)+10;await h.post("/brands",{...s,sort_order:r})}o.success(a?"Marke gespeichert.":"Marke angelegt."),b(),m()}catch(r){p(r.message)}},M=async t=>{if(confirm("Marke inkl. aller Modelle/Pakete/Produkte wirklich löschen?"))try{await h.delete(`/brands/${t}`),a===t&&b(),o.success("Marke gelöscht."),m()}catch(r){o.error(`Löschen fehlgeschlagen: ${r.message}`)}},C=async t=>{const r=d;i(t);try{i(await A("brands",t)),o.success("Reihenfolge gespeichert.")}catch(l){i(r),o.error(`Reihenfolge konnte nicht gespeichert werden: ${l.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Marken"}),e.jsx("button",{type:"button",onClick:()=>N(!0),className:"shrink-0 rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-50 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:"Aus Vorlage laden"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Reihenfolge am Griff links per Ziehen ändern – so erscheinen die Marken auf der Website."}),e.jsx("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"w-8 px-2 py-2","aria-label":"Reihenfolge"}),e.jsx("th",{className:"px-4 py-2",children:"Bild"}),e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx($,{items:d,onReorder:C,as:"tbody",className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:(t,r)=>e.jsxs(e.Fragment,{children:[e.jsx("td",{className:"bg-white px-2 py-2 dark:bg-neutral-950",children:r}),e.jsx("td",{className:"bg-white px-4 py-2 dark:bg-neutral-950",children:t.image_path?e.jsx("img",{src:t.image_path,alt:"",className:"h-10 w-10 rounded-md object-cover"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsx("td",{className:"bg-white px-4 py-2 font-medium text-neutral-800 dark:bg-neutral-950 dark:text-neutral-100",children:e.jsx(I,{to:`/fahrzeuge/${t.slug}`,target:"_blank",className:"hover:text-brand-500",children:t.name})}),e.jsxs("td",{className:"whitespace-nowrap bg-white px-4 py-2 text-right dark:bg-neutral-950",children:[e.jsx("button",{onClick:()=>S(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>M(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]})}),d.length===0&&e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Marken angelegt."})})})]})})]}),e.jsxs("form",{ref:g,onSubmit:_,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:a?"Marke bearbeiten":"Neue Marke"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:s.name,onChange:t=>c({...s,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),a&&e.jsx(E,{fieldKey:`brands.${a}.name`,previewText:s.name||"Beispieltext"})]}),e.jsx(B,{value:s.image_path,onChange:t=>c({...s,image_path:t}),label:"Bild (optional)"}),j&&e.jsx("p",{className:"text-sm text-red-600",children:j}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:a?"Speichern":"Anlegen"}),a&&e.jsx("button",{type:"button",onClick:b,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]}),e.jsx(L,{open:w,onClose:()=>N(!1),onImported:m})]})}export{W as default};
diff --git a/hifi/assets/ContactRequests-BC1CK4Mp.js b/hifi/assets/ContactRequests-DolPRSAD.js
similarity index 98%
rename from hifi/assets/ContactRequests-BC1CK4Mp.js
rename to hifi/assets/ContactRequests-DolPRSAD.js
index 4e84ec6..9b52d4f 100644
--- a/hifi/assets/ContactRequests-BC1CK4Mp.js
+++ b/hifi/assets/ContactRequests-DolPRSAD.js
@@ -1 +1 @@
-import{k as z,p as _,t as M,r,j as t,c as b}from"./index-BlspSYV0.js";import{t as R,m as F,a as K,v as y}from"./contactRequests-Qfsfq7Lb.js";const D=s=>new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR"}).format(s),S={new:"Neu",in_progress:"In Bearbeitung",done:"Erledigt"},P={new:"bg-brand-100 text-brand-700 dark:bg-brand-900/40 dark:text-brand-300",in_progress:"bg-amber-100 text-amber-700 dark:bg-amber-900/40 dark:text-amber-300",done:"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300"},T=()=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",className:"h-4 w-4",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 7h16M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2m3 0-.8 12.1a1 1 0 0 1-1 .9H7.8a1 1 0 0 1-1-.9L6 7h12ZM10 11v6M14 11v6"})});function U({request:s,onSaved:u}){const[d,p]=r.useState(s.internal_note||""),[i,l]=r.useState(!1),{toast:m}=_(),x=s.internal_note||"",g=async()=>{if(d!==x){l(!0);try{await b.patch(`/contact/${s.id}`,{internal_note:d}),u(s.id,{internal_note:d}),m.success("Notiz gespeichert.")}catch(o){m.error(`Notiz nicht gespeichert: ${o.message}`)}finally{l(!1)}}};return t.jsxs("div",{className:"mt-3",children:[t.jsxs("label",{className:"mb-1 block text-xs font-semibold uppercase tracking-wide text-neutral-400",htmlFor:`note-${s.id}`,children:["Interne Notiz ",i&&t.jsx("span",{className:"normal-case",children:"– speichert…"})]}),t.jsx("textarea",{id:`note-${s.id}`,rows:2,value:d,onChange:o=>p(o.target.value),onBlur:g,placeholder:"Nur für dein Team sichtbar, z. B. „Angebot geschickt am …“",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})}function H(){const{hasPermission:s}=z(),{toast:u,refreshCounters:d}=_(),[p]=M(),i=p.get("id"),[l,m]=r.useState(null),[x,g]=r.useState(""),[o,A]=r.useState(i?"all":"new"),[j,E]=r.useState(""),f=r.useRef(null),L=()=>b.get("/contact").then(e=>{m(e),g("")}).catch(e=>g(e.message));r.useEffect(()=>{L()},[]),r.useEffect(()=>{i&&l&&f.current&&f.current.scrollIntoView({behavior:"smooth",block:"center"})},[i,l]);const k=(e,a)=>m(n=>n.map(c=>c.id===e?{...c,...a}:c)),$=async(e,a)=>{var c;const n=(c=l.find(v=>v.id===e))==null?void 0:c.status;k(e,{status:a});try{await b.patch(`/contact/${e}`,{status:a}),u.success(`Status: ${S[a]}`),d()}catch(v){k(e,{status:n}),u.error(`Status nicht geändert: ${v.message}`)}},C=async e=>{if(confirm("Diese Kontaktanfrage wirklich unwiderruflich löschen?"))try{await b.delete(`/contact/${e}`),m(a=>a.filter(n=>n.id!==e)),u.success("Anfrage gelöscht."),d()}catch(a){u.error(`Löschen fehlgeschlagen: ${a.message}`)}},h=l||[],B=r.useMemo(()=>({all:h.length,new:h.filter(e=>e.status==="new").length,in_progress:h.filter(e=>e.status==="in_progress").length,done:h.filter(e=>e.status==="done").length}),[h]),w=j.trim().toLowerCase(),N=h.filter(e=>o==="all"||e.status===o).filter(e=>!w||[e.name,e.email,e.phone,e.brand_name,e.model_name,e.package_name,e.message,e.internal_note].filter(Boolean).some(a=>String(a).toLowerCase().includes(w))),I=[{value:"new",label:"Neu"},{value:"in_progress",label:"In Bearbeitung"},{value:"done",label:"Erledigt"},{value:"all",label:"Alle"}];return t.jsxs("div",{children:[t.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Anfragen"}),t.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Anfragen aus dem Kontaktformular. Mit „Antworten“ öffnet sich dein E-Mail-Programm mit fertigem Betreff. Setze den Status auf „Erledigt“, wenn alles geklärt ist."}),t.jsxs("div",{className:"mb-5 flex flex-wrap items-center gap-2",children:[I.map(e=>t.jsxs("button",{onClick:()=>A(e.value),className:`rounded-full px-4 py-1.5 text-sm font-medium transition ${o===e.value?"bg-brand-500 text-white":"bg-neutral-100 text-neutral-600 hover:bg-neutral-200 dark:bg-neutral-800 dark:text-neutral-300 dark:hover:bg-neutral-700"}`,children:[e.label," (",B[e.value],")"]},e.value)),t.jsx("input",{type:"search",value:j,onChange:e=>E(e.target.value),placeholder:"Suchen: Name, Fahrzeug, Text…",className:"ml-auto w-full rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-900 sm:w-64"})]}),x&&t.jsxs("p",{className:"mb-4 text-sm text-red-600",children:["Anfragen konnten nicht geladen werden: ",x]}),l===null&&!x&&t.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}),t.jsxs("div",{className:"space-y-3",children:[N.map(e=>{var a;return t.jsxs("div",{ref:String(e.id)===i?f:void 0,className:`rounded-xl border bg-white p-4 dark:bg-neutral-900 ${String(e.id)===i?"border-brand-500 ring-2 ring-brand-500/30":"border-neutral-200 dark:border-neutral-800"}`,children:[t.jsxs("div",{className:"mb-2 flex flex-wrap items-start justify-between gap-2",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx("p",{className:"font-semibold text-neutral-800 dark:text-neutral-100",children:e.name}),t.jsxs("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:[e.email,e.phone?` · ${e.phone}`:""]}),e.vin&&t.jsxs("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:["FIN: ",t.jsx("span",{className:"font-mono",children:e.vin})]}),t.jsx("p",{className:"text-xs text-neutral-400",title:new Date(e.created_at.replace(" ","T")).toLocaleString("de-DE"),children:R(e.created_at)})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx("a",{href:F(e),className:"rounded-md bg-brand-500 px-3 py-1.5 text-sm font-semibold text-white hover:bg-brand-600",children:"Antworten"}),e.phone&&t.jsx("a",{href:K(e.phone),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:"Anrufen"}),t.jsx("select",{value:e.status,onChange:n=>$(e.id,n.target.value),"aria-label":"Status",className:`rounded-full border-0 px-3 py-1.5 text-xs font-medium ${P[e.status]}`,children:Object.entries(S).map(([n,c])=>t.jsx("option",{value:n,children:c},n))}),s("contact.delete")&&t.jsx("button",{onClick:()=>C(e.id),"aria-label":"Anfrage löschen",title:"Anfrage löschen",className:"rounded-md p-1.5 text-neutral-400 hover:bg-red-50 hover:text-red-600 dark:hover:bg-red-900/20",children:t.jsx(T,{})})]})]}),(y(e)||e.product_name)&&t.jsx("p",{className:"mb-2 text-sm text-neutral-500 dark:text-neutral-400",children:[y(e),e.product_name].filter(Boolean).join(" · ")}),((a=e.selected_upgrades)==null?void 0:a.length)>0&&t.jsxs("div",{className:"mb-2 rounded-md bg-brand-50 p-2 text-sm text-brand-800 dark:bg-brand-900/20 dark:text-brand-200",children:[t.jsx("p",{className:"font-semibold",children:"Gewünschte Upgrades:"}),t.jsx("ul",{className:"list-disc pl-5",children:e.selected_upgrades.map(n=>t.jsxs("li",{children:[n.name," – ",D(n.price)]},n.id))})]}),e.message&&t.jsx("p",{className:"whitespace-pre-line text-sm text-neutral-700 dark:text-neutral-300",children:e.message}),t.jsx(U,{request:e,onSaved:k})]},e.id)}),l!==null&&N.length===0&&t.jsx("p",{className:"text-neutral-400",children:w?"Keine Anfrage passt zur Suche.":o==="new"?"Keine neuen Anfragen – alles beantwortet.":o==="all"?"Noch keine Kontaktanfragen eingegangen.":"Keine Anfragen mit diesem Status."})]})]})}export{H as default};
+import{k as z,p as _,x as M,r,j as t,c as b}from"./index-ByR_n0g5.js";import{t as R,m as F,a as K,v as y}from"./contactRequests-Qfsfq7Lb.js";const D=s=>new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR"}).format(s),S={new:"Neu",in_progress:"In Bearbeitung",done:"Erledigt"},P={new:"bg-brand-100 text-brand-700 dark:bg-brand-900/40 dark:text-brand-300",in_progress:"bg-amber-100 text-amber-700 dark:bg-amber-900/40 dark:text-amber-300",done:"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300"},T=()=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",className:"h-4 w-4",children:t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 7h16M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2m3 0-.8 12.1a1 1 0 0 1-1 .9H7.8a1 1 0 0 1-1-.9L6 7h12ZM10 11v6M14 11v6"})});function U({request:s,onSaved:u}){const[d,p]=r.useState(s.internal_note||""),[i,l]=r.useState(!1),{toast:m}=_(),x=s.internal_note||"",g=async()=>{if(d!==x){l(!0);try{await b.patch(`/contact/${s.id}`,{internal_note:d}),u(s.id,{internal_note:d}),m.success("Notiz gespeichert.")}catch(o){m.error(`Notiz nicht gespeichert: ${o.message}`)}finally{l(!1)}}};return t.jsxs("div",{className:"mt-3",children:[t.jsxs("label",{className:"mb-1 block text-xs font-semibold uppercase tracking-wide text-neutral-400",htmlFor:`note-${s.id}`,children:["Interne Notiz ",i&&t.jsx("span",{className:"normal-case",children:"– speichert…"})]}),t.jsx("textarea",{id:`note-${s.id}`,rows:2,value:d,onChange:o=>p(o.target.value),onBlur:g,placeholder:"Nur für dein Team sichtbar, z. B. „Angebot geschickt am …“",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})}function H(){const{hasPermission:s}=z(),{toast:u,refreshCounters:d}=_(),[p]=M(),i=p.get("id"),[l,m]=r.useState(null),[x,g]=r.useState(""),[o,A]=r.useState(i?"all":"new"),[j,E]=r.useState(""),f=r.useRef(null),L=()=>b.get("/contact").then(e=>{m(e),g("")}).catch(e=>g(e.message));r.useEffect(()=>{L()},[]),r.useEffect(()=>{i&&l&&f.current&&f.current.scrollIntoView({behavior:"smooth",block:"center"})},[i,l]);const k=(e,a)=>m(n=>n.map(c=>c.id===e?{...c,...a}:c)),$=async(e,a)=>{var c;const n=(c=l.find(v=>v.id===e))==null?void 0:c.status;k(e,{status:a});try{await b.patch(`/contact/${e}`,{status:a}),u.success(`Status: ${S[a]}`),d()}catch(v){k(e,{status:n}),u.error(`Status nicht geändert: ${v.message}`)}},C=async e=>{if(confirm("Diese Kontaktanfrage wirklich unwiderruflich löschen?"))try{await b.delete(`/contact/${e}`),m(a=>a.filter(n=>n.id!==e)),u.success("Anfrage gelöscht."),d()}catch(a){u.error(`Löschen fehlgeschlagen: ${a.message}`)}},h=l||[],B=r.useMemo(()=>({all:h.length,new:h.filter(e=>e.status==="new").length,in_progress:h.filter(e=>e.status==="in_progress").length,done:h.filter(e=>e.status==="done").length}),[h]),w=j.trim().toLowerCase(),N=h.filter(e=>o==="all"||e.status===o).filter(e=>!w||[e.name,e.email,e.phone,e.brand_name,e.model_name,e.package_name,e.message,e.internal_note].filter(Boolean).some(a=>String(a).toLowerCase().includes(w))),I=[{value:"new",label:"Neu"},{value:"in_progress",label:"In Bearbeitung"},{value:"done",label:"Erledigt"},{value:"all",label:"Alle"}];return t.jsxs("div",{children:[t.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Anfragen"}),t.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Anfragen aus dem Kontaktformular. Mit „Antworten“ öffnet sich dein E-Mail-Programm mit fertigem Betreff. Setze den Status auf „Erledigt“, wenn alles geklärt ist."}),t.jsxs("div",{className:"mb-5 flex flex-wrap items-center gap-2",children:[I.map(e=>t.jsxs("button",{onClick:()=>A(e.value),className:`rounded-full px-4 py-1.5 text-sm font-medium transition ${o===e.value?"bg-brand-500 text-white":"bg-neutral-100 text-neutral-600 hover:bg-neutral-200 dark:bg-neutral-800 dark:text-neutral-300 dark:hover:bg-neutral-700"}`,children:[e.label," (",B[e.value],")"]},e.value)),t.jsx("input",{type:"search",value:j,onChange:e=>E(e.target.value),placeholder:"Suchen: Name, Fahrzeug, Text…",className:"ml-auto w-full rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-900 sm:w-64"})]}),x&&t.jsxs("p",{className:"mb-4 text-sm text-red-600",children:["Anfragen konnten nicht geladen werden: ",x]}),l===null&&!x&&t.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}),t.jsxs("div",{className:"space-y-3",children:[N.map(e=>{var a;return t.jsxs("div",{ref:String(e.id)===i?f:void 0,className:`rounded-xl border bg-white p-4 dark:bg-neutral-900 ${String(e.id)===i?"border-brand-500 ring-2 ring-brand-500/30":"border-neutral-200 dark:border-neutral-800"}`,children:[t.jsxs("div",{className:"mb-2 flex flex-wrap items-start justify-between gap-2",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsx("p",{className:"font-semibold text-neutral-800 dark:text-neutral-100",children:e.name}),t.jsxs("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:[e.email,e.phone?` · ${e.phone}`:""]}),e.vin&&t.jsxs("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:["FIN: ",t.jsx("span",{className:"font-mono",children:e.vin})]}),t.jsx("p",{className:"text-xs text-neutral-400",title:new Date(e.created_at.replace(" ","T")).toLocaleString("de-DE"),children:R(e.created_at)})]}),t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[t.jsx("a",{href:F(e),className:"rounded-md bg-brand-500 px-3 py-1.5 text-sm font-semibold text-white hover:bg-brand-600",children:"Antworten"}),e.phone&&t.jsx("a",{href:K(e.phone),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:"Anrufen"}),t.jsx("select",{value:e.status,onChange:n=>$(e.id,n.target.value),"aria-label":"Status",className:`rounded-full border-0 px-3 py-1.5 text-xs font-medium ${P[e.status]}`,children:Object.entries(S).map(([n,c])=>t.jsx("option",{value:n,children:c},n))}),s("contact.delete")&&t.jsx("button",{onClick:()=>C(e.id),"aria-label":"Anfrage löschen",title:"Anfrage löschen",className:"rounded-md p-1.5 text-neutral-400 hover:bg-red-50 hover:text-red-600 dark:hover:bg-red-900/20",children:t.jsx(T,{})})]})]}),(y(e)||e.product_name)&&t.jsx("p",{className:"mb-2 text-sm text-neutral-500 dark:text-neutral-400",children:[y(e),e.product_name].filter(Boolean).join(" · ")}),((a=e.selected_upgrades)==null?void 0:a.length)>0&&t.jsxs("div",{className:"mb-2 rounded-md bg-brand-50 p-2 text-sm text-brand-800 dark:bg-brand-900/20 dark:text-brand-200",children:[t.jsx("p",{className:"font-semibold",children:"Gewünschte Upgrades:"}),t.jsx("ul",{className:"list-disc pl-5",children:e.selected_upgrades.map(n=>t.jsxs("li",{children:[n.name," – ",D(n.price)]},n.id))})]}),e.message&&t.jsx("p",{className:"whitespace-pre-line text-sm text-neutral-700 dark:text-neutral-300",children:e.message}),t.jsx(U,{request:e,onSaved:k})]},e.id)}),l!==null&&N.length===0&&t.jsx("p",{className:"text-neutral-400",children:w?"Keine Anfrage passt zur Suche.":o==="new"?"Keine neuen Anfragen – alles beantwortet.":o==="all"?"Noch keine Kontaktanfragen eingegangen.":"Keine Anfragen mit diesem Status."})]})]})}export{H as default};
diff --git a/hifi/assets/CountdownSettings-CeR3sHjT.js b/hifi/assets/CountdownSettings-TQTGVVqj.js
similarity index 98%
rename from hifi/assets/CountdownSettings-CeR3sHjT.js
rename to hifi/assets/CountdownSettings-TQTGVVqj.js
index 69773ce..d118dcb 100644
--- a/hifi/assets/CountdownSettings-CeR3sHjT.js
+++ b/hifi/assets/CountdownSettings-TQTGVVqj.js
@@ -1 +1 @@
-import{r as s,c as j,j as e}from"./index-BlspSYV0.js";const S={enabled:!1,launch_at:"",title:"",title_en:"",message:"",message_en:""},w=(t={})=>({enabled:!!t.enabled,launch_at:t.launch_at_local||"",title:t.title||"",title_en:t.title_en||"",message:t.message||"",message_en:t.message_en||""});function y(t){if(!t)return null;const n=new Date(t).getTime()-Date.now();if(Number.isNaN(n))return null;if(n<=0)return{past:!0,text:"Der Zeitpunkt liegt in der Vergangenheit – der Countdown wird Besuchern nicht angezeigt."};const d=Math.floor(n/6e4),i=Math.floor(d/1440),c=Math.floor(d%1440/60),h=d%60;return{past:!1,text:`Noch ${[i&&`${i} ${i===1?"Tag":"Tage"}`,c&&`${c} Std.`,`${h} Min.`].filter(Boolean).join(" ")} bis zum Start.`}}const u="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",m="mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300";function C(){const[t,n]=s.useState(S),[d,i]=s.useState(!0),[c,h]=s.useState(!1),[g,x]=s.useState(!1),[p,f]=s.useState(""),[,N]=s.useState(0);s.useEffect(()=>{j.get("/maintenance").then(a=>n(w(a.countdown))).finally(()=>i(!1))},[]),s.useEffect(()=>{const a=setInterval(()=>N(r=>r+1),3e4);return()=>clearInterval(a)},[]);const l=(a,r)=>{n(v=>({...v,[a]:r})),x(!1)},k=async a=>{a.preventDefault(),h(!0),f(""),x(!1);try{const r=await j.post("/countdown",t);n(w(r.countdown)),x(!0)}catch(r){f(r.message)}finally{h(!1)}};if(d)return e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"});const o=y(t.launch_at),b=t.enabled&&o&&!o.past;return e.jsxs("form",{onSubmit:k,className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:"Countdown anzeigen"}),e.jsxs("label",{className:"relative inline-flex cursor-pointer items-center",children:[e.jsx("input",{type:"checkbox",checked:t.enabled,onChange:a=>l("enabled",a.target.checked),className:"peer sr-only"}),e.jsx("div",{className:"h-6 w-11 rounded-full bg-neutral-200 transition peer-checked:bg-brand-500 dark:bg-neutral-700"}),e.jsx("div",{className:"absolute left-1 top-1 h-4 w-4 rounded-full bg-white transition peer-checked:translate-x-5"})]})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Besucher sehen statt der Website nur den Countdown bis zum Start. Ist der Zeitpunkt erreicht, öffnet sich die Website automatisch – du musst nichts mehr ausschalten. Eingeloggt siehst du weiterhin die normale Seite."}),e.jsx("label",{className:m,htmlFor:"countdown-launch",children:"Start (deutsche Zeit)"}),e.jsx("input",{id:"countdown-launch",type:"datetime-local",value:t.launch_at,onChange:a=>l("launch_at",a.target.value),required:t.enabled,className:`${u} max-w-xs`}),o&&e.jsx("p",{className:`mt-2 text-sm ${o.past?"text-amber-600 dark:text-amber-400":"text-neutral-500 dark:text-neutral-400"}`,children:o.text}),e.jsxs("div",{className:"mt-4 flex flex-wrap items-center gap-3",children:[e.jsxs("span",{className:`inline-flex items-center gap-2 rounded-full px-3 py-1 text-xs font-semibold ${b?"bg-brand-100 text-brand-700 dark:bg-brand-900/40 dark:text-brand-300":"bg-neutral-100 text-neutral-600 dark:bg-neutral-800 dark:text-neutral-400"}`,children:[e.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${b?"bg-brand-500":"bg-neutral-400"}`}),b?"Besucher sehen den Countdown (nach dem Speichern)":"Besucher sehen die normale Website"]}),e.jsx("a",{href:"/?countdown=vorschau",target:"_blank",rel:"noreferrer",className:"text-sm font-medium text-brand-600 underline hover:text-brand-700 dark:text-brand-400",children:"Vorschau öffnen"})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Texte (optional)"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Leer lassen für die Standardtexte („Bald wird’s laut.“). Ohne englischen Text sehen englische Besucher den Standardtext."}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:m,htmlFor:"countdown-title",children:"Überschrift"}),e.jsx("input",{id:"countdown-title",maxLength:150,value:t.title,onChange:a=>l("title",a.target.value),placeholder:"Bald wird’s laut.",className:u})]}),e.jsxs("div",{children:[e.jsx("label",{className:m,htmlFor:"countdown-title-en",children:"Überschrift (Englisch)"}),e.jsx("input",{id:"countdown-title-en",maxLength:150,value:t.title_en,onChange:a=>l("title_en",a.target.value),placeholder:"Things are about to get loud.",className:u})]}),e.jsxs("div",{children:[e.jsx("label",{className:m,htmlFor:"countdown-message",children:"Text"}),e.jsx("textarea",{id:"countdown-message",rows:3,maxLength:500,value:t.message,onChange:a=>l("message",a.target.value),placeholder:"Wir drehen gerade die letzten Schrauben fest …",className:u})]}),e.jsxs("div",{children:[e.jsx("label",{className:m,htmlFor:"countdown-message-en",children:"Text (Englisch)"}),e.jsx("textarea",{id:"countdown-message-en",rows:3,maxLength:500,value:t.message_en,onChange:a=>l("message_en",a.target.value),placeholder:"We are tightening the last screws …",className:u})]})]})]}),p&&e.jsx("p",{className:"text-sm text-red-600",children:p}),g&&e.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsx("button",{type:"submit",disabled:c,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:c?"Speichere…":"Speichern"})]})}export{C as default};
+import{r as s,c as j,j as e}from"./index-ByR_n0g5.js";const S={enabled:!1,launch_at:"",title:"",title_en:"",message:"",message_en:""},w=(t={})=>({enabled:!!t.enabled,launch_at:t.launch_at_local||"",title:t.title||"",title_en:t.title_en||"",message:t.message||"",message_en:t.message_en||""});function y(t){if(!t)return null;const n=new Date(t).getTime()-Date.now();if(Number.isNaN(n))return null;if(n<=0)return{past:!0,text:"Der Zeitpunkt liegt in der Vergangenheit – der Countdown wird Besuchern nicht angezeigt."};const d=Math.floor(n/6e4),i=Math.floor(d/1440),c=Math.floor(d%1440/60),h=d%60;return{past:!1,text:`Noch ${[i&&`${i} ${i===1?"Tag":"Tage"}`,c&&`${c} Std.`,`${h} Min.`].filter(Boolean).join(" ")} bis zum Start.`}}const u="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",m="mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300";function C(){const[t,n]=s.useState(S),[d,i]=s.useState(!0),[c,h]=s.useState(!1),[g,x]=s.useState(!1),[p,f]=s.useState(""),[,N]=s.useState(0);s.useEffect(()=>{j.get("/maintenance").then(a=>n(w(a.countdown))).finally(()=>i(!1))},[]),s.useEffect(()=>{const a=setInterval(()=>N(r=>r+1),3e4);return()=>clearInterval(a)},[]);const l=(a,r)=>{n(v=>({...v,[a]:r})),x(!1)},k=async a=>{a.preventDefault(),h(!0),f(""),x(!1);try{const r=await j.post("/countdown",t);n(w(r.countdown)),x(!0)}catch(r){f(r.message)}finally{h(!1)}};if(d)return e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"});const o=y(t.launch_at),b=t.enabled&&o&&!o.past;return e.jsxs("form",{onSubmit:k,className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:"Countdown anzeigen"}),e.jsxs("label",{className:"relative inline-flex cursor-pointer items-center",children:[e.jsx("input",{type:"checkbox",checked:t.enabled,onChange:a=>l("enabled",a.target.checked),className:"peer sr-only"}),e.jsx("div",{className:"h-6 w-11 rounded-full bg-neutral-200 transition peer-checked:bg-brand-500 dark:bg-neutral-700"}),e.jsx("div",{className:"absolute left-1 top-1 h-4 w-4 rounded-full bg-white transition peer-checked:translate-x-5"})]})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Besucher sehen statt der Website nur den Countdown bis zum Start. Ist der Zeitpunkt erreicht, öffnet sich die Website automatisch – du musst nichts mehr ausschalten. Eingeloggt siehst du weiterhin die normale Seite."}),e.jsx("label",{className:m,htmlFor:"countdown-launch",children:"Start (deutsche Zeit)"}),e.jsx("input",{id:"countdown-launch",type:"datetime-local",value:t.launch_at,onChange:a=>l("launch_at",a.target.value),required:t.enabled,className:`${u} max-w-xs`}),o&&e.jsx("p",{className:`mt-2 text-sm ${o.past?"text-amber-600 dark:text-amber-400":"text-neutral-500 dark:text-neutral-400"}`,children:o.text}),e.jsxs("div",{className:"mt-4 flex flex-wrap items-center gap-3",children:[e.jsxs("span",{className:`inline-flex items-center gap-2 rounded-full px-3 py-1 text-xs font-semibold ${b?"bg-brand-100 text-brand-700 dark:bg-brand-900/40 dark:text-brand-300":"bg-neutral-100 text-neutral-600 dark:bg-neutral-800 dark:text-neutral-400"}`,children:[e.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${b?"bg-brand-500":"bg-neutral-400"}`}),b?"Besucher sehen den Countdown (nach dem Speichern)":"Besucher sehen die normale Website"]}),e.jsx("a",{href:"/?countdown=vorschau",target:"_blank",rel:"noreferrer",className:"text-sm font-medium text-brand-600 underline hover:text-brand-700 dark:text-brand-400",children:"Vorschau öffnen"})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Texte (optional)"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Leer lassen für die Standardtexte („Bald wird’s laut.“). Ohne englischen Text sehen englische Besucher den Standardtext."}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:m,htmlFor:"countdown-title",children:"Überschrift"}),e.jsx("input",{id:"countdown-title",maxLength:150,value:t.title,onChange:a=>l("title",a.target.value),placeholder:"Bald wird’s laut.",className:u})]}),e.jsxs("div",{children:[e.jsx("label",{className:m,htmlFor:"countdown-title-en",children:"Überschrift (Englisch)"}),e.jsx("input",{id:"countdown-title-en",maxLength:150,value:t.title_en,onChange:a=>l("title_en",a.target.value),placeholder:"Things are about to get loud.",className:u})]}),e.jsxs("div",{children:[e.jsx("label",{className:m,htmlFor:"countdown-message",children:"Text"}),e.jsx("textarea",{id:"countdown-message",rows:3,maxLength:500,value:t.message,onChange:a=>l("message",a.target.value),placeholder:"Wir drehen gerade die letzten Schrauben fest …",className:u})]}),e.jsxs("div",{children:[e.jsx("label",{className:m,htmlFor:"countdown-message-en",children:"Text (Englisch)"}),e.jsx("textarea",{id:"countdown-message-en",rows:3,maxLength:500,value:t.message_en,onChange:a=>l("message_en",a.target.value),placeholder:"We are tightening the last screws …",className:u})]})]})]}),p&&e.jsx("p",{className:"text-sm text-red-600",children:p}),g&&e.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsx("button",{type:"submit",disabled:c,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:c?"Speichere…":"Speichern"})]})}export{C as default};
diff --git a/hifi/assets/Dashboard-7_CH1XOt.js b/hifi/assets/Dashboard-BKouj-VO.js
similarity index 99%
rename from hifi/assets/Dashboard-7_CH1XOt.js
rename to hifi/assets/Dashboard-BKouj-VO.js
index 66f4a0f..c5038b9 100644
--- a/hifi/assets/Dashboard-7_CH1XOt.js
+++ b/hifi/assets/Dashboard-BKouj-VO.js
@@ -1 +1 @@
-import{k,r as c,c as m,j as e,L as b,p as j,S as N}from"./index-BlspSYV0.js";import{I as w}from"./ImageOptimizer-sgJymAi_.js";import{t as v,v as y,m as A}from"./contactRequests-Qfsfq7Lb.js";function S(){const[a,t]=c.useState(null),[n,x]=c.useState(null),[u,r]=c.useState(""),{toast:h,refreshCounters:f}=j();c.useEffect(()=>{m.get("/site-settings").then(l=>t(l.hidden_areas||[])).catch(l=>r(l.message))},[]);const g=async l=>{const s=l.key,d=!a.includes(s);if(d&&s.startsWith("page.")&&!window.confirm(`„${l.label}“ wirklich für alle Besucher ausblenden? Die Seite verschwindet sofort aus dem Menü.`))return;const o=a,p=d?[...a,s]:a.filter(i=>i!==s);t(p),x(s),r("");try{const i=await m.put("/site-settings/visibility",{hidden_areas:p});t(i.hidden_areas),h.success(d?`„${l.label}“ ist jetzt ausgeblendet.`:`„${l.label}“ ist wieder sichtbar.`),f()}catch(i){t(o),r(i.message),h.error(i.message)}finally{x(null)}};return e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Sichtbarkeit der Website"}),e.jsx("p",{className:"mb-5 text-sm text-neutral-500 dark:text-neutral-400",children:"Schalte Bereiche aus, die Besucher gerade nicht sehen sollen. Die Inhalte bleiben gespeichert und sind nach dem Wiedereinschalten sofort wieder da. Änderungen gelten sofort."}),u&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:u}),a===null?!u&&e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsx("div",{className:"grid gap-6 md:grid-cols-2",children:N.map(l=>e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-xs font-semibold uppercase tracking-wide text-neutral-400",children:l.title}),e.jsx("p",{className:"mb-3 text-xs text-neutral-500 dark:text-neutral-400",children:l.hint}),e.jsx("ul",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:l.areas.map(s=>{const d=!a.includes(s.key);return e.jsxs("li",{className:"flex items-center justify-between gap-3 py-2.5",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:`text-sm font-medium ${d?"text-neutral-800 dark:text-neutral-100":"text-neutral-400 line-through dark:text-neutral-500"}`,children:s.label}),s.note&&e.jsx("p",{className:"text-xs text-neutral-400",children:s.note})]}),e.jsxs("label",{className:"relative inline-flex shrink-0 cursor-pointer items-center",title:d?"Sichtbar – zum Ausblenden klicken":"Ausgeblendet – zum Einblenden klicken",children:[e.jsxs("span",{className:"sr-only",children:[s.label," sichtbar"]}),e.jsx("input",{type:"checkbox",checked:d,disabled:n!==null,onChange:()=>g(s),className:"peer sr-only"}),e.jsx("div",{className:"h-6 w-11 rounded-full bg-neutral-200 transition peer-checked:bg-brand-500 peer-disabled:opacity-60 dark:bg-neutral-700"}),e.jsx("div",{className:"absolute left-1 top-1 h-4 w-4 rounded-full bg-white transition peer-checked:translate-x-5"})]})]},s.key)})})]},l.title))})]})}function _(){const[a,t]=c.useState(null),[n,x]=c.useState("");if(c.useEffect(()=>{m.get("/analytics/report").then(t).catch(r=>x(r.message))},[]),n)return e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsx("p",{className:"text-sm text-red-600",children:n})]});if(!a)return null;if(!a.configured)return e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsxs("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:["Noch nicht eingerichtet. Unter"," ",e.jsx(b,{to:"/admin/settings/google",className:"text-brand-600 hover:underline dark:text-brand-400",children:"System → Google-Dienste"})," ","kannst du die Dashboard-Anbindung konfigurieren, um hier Besucherzahlen zu sehen."]})]});const u=Math.max(1,...a.daily.map(r=>r.pageviews));return e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsx("p",{className:"mb-5 text-sm text-neutral-500 dark:text-neutral-400",children:"Letzte 7 Tage."}),e.jsxs("div",{className:"mb-6 grid grid-cols-3 gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-extrabold text-brand-600 dark:text-brand-400",children:a.totals.users}),e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Nutzer"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-extrabold text-brand-600 dark:text-brand-400",children:a.totals.sessions}),e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Sitzungen"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-extrabold text-brand-600 dark:text-brand-400",children:a.totals.pageviews}),e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Seitenaufrufe"})]})]}),a.daily.length>0&&e.jsx("div",{className:"mb-6 flex h-24 items-end gap-1.5",children:a.daily.map(r=>e.jsxs("div",{className:"flex flex-1 flex-col items-center gap-1",children:[e.jsx("div",{className:"w-full rounded-t bg-brand-400 dark:bg-brand-500",style:{height:`${Math.max(4,r.pageviews/u*80)}px`},title:`${r.date}: ${r.pageviews} Seitenaufrufe`}),e.jsxs("span",{className:"text-[10px] text-neutral-400",children:[r.date.slice(6,8),".",r.date.slice(4,6),"."]})]},r.date))}),a.top_pages.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-neutral-400",children:"Meistbesuchte Seiten"}),e.jsx("ul",{className:"space-y-1 text-sm",children:a.top_pages.map(r=>e.jsxs("li",{className:"flex items-center justify-between gap-3 text-neutral-700 dark:text-neutral-300",children:[e.jsx("span",{className:"truncate font-mono text-xs",children:r.path}),e.jsx("span",{className:"shrink-0 font-semibold",children:r.pageviews})]},r.path))})]})]})}function z({requests:a}){if(a===null)return null;const t=a.filter(n=>n.status==="new");return e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-4 flex flex-wrap items-baseline justify-between gap-2",children:[e.jsxs("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:["Neue Anfragen ",t.length>0&&e.jsx("span",{className:"ml-1 rounded-full bg-red-500 px-2 py-0.5 text-xs font-bold text-white",children:t.length})]}),e.jsx(b,{to:"/admin/contact-requests",className:"text-sm font-medium text-brand-600 hover:underline dark:text-brand-400",children:"Alle Anfragen →"})]}),t.length===0?e.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:"Keine offenen Anfragen – alles beantwortet. 👍"}):e.jsx("ul",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:t.slice(0,5).map(n=>e.jsxs("li",{className:"flex flex-wrap items-center justify-between gap-3 py-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("p",{className:"font-medium text-neutral-900 dark:text-white",children:[n.name," ",e.jsxs("span",{className:"text-xs font-normal text-neutral-400",children:["· ",v(n.created_at)]})]}),e.jsx("p",{className:"truncate text-sm text-neutral-500 dark:text-neutral-400",children:y(n)||(n.message?n.message.slice(0,80):"Allgemeine Anfrage")})]}),e.jsxs("div",{className:"flex shrink-0 gap-2",children:[e.jsx("a",{href:A(n),className:"rounded-md bg-brand-500 px-3 py-1.5 text-sm font-semibold text-white hover:bg-brand-600",children:"Antworten"}),e.jsx(b,{to:`/admin/contact-requests?id=${n.id}`,className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:"Öffnen"})]})]},n.id))})]})}function W({hasPermission:a}){const t=[{to:"/admin/packages",label:"Pakete bearbeiten",show:a("packages.manage")},{to:"/admin/gallery-projects",label:"Galerie-Fotos hochladen",show:a("gallery.manage")},{to:"/admin/home-sections",label:"Startseiten-Texte ändern",show:a("content.manage")},{to:"/admin/settings/company",label:"Öffnungszeiten & Kontakt",show:a("settings.manage")},{to:"/admin/settings/maintenance",label:"Wartungsmodus",show:a("settings.manage")},{to:"/admin/settings/countdown",label:"Launch-Countdown",show:a("settings.manage")}].filter(n=>n.show);return e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-3 font-semibold text-neutral-900 dark:text-white",children:"Schnellzugriff"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.map(n=>e.jsx(b,{to:n.to,className:"rounded-md border border-neutral-300 px-3 py-2 text-sm font-medium text-neutral-700 hover:border-brand-500 hover:text-brand-600 dark:border-neutral-700 dark:text-neutral-200",children:n.label},n.to)),e.jsx("a",{href:"/",target:"_blank",rel:"noopener noreferrer",className:"rounded-md border border-neutral-300 px-3 py-2 text-sm font-medium text-neutral-700 hover:border-brand-500 hover:text-brand-600 dark:border-neutral-700 dark:text-neutral-200",children:"Website ansehen ↗"}),["content.manage","services.manage","packages.manage","gallery.manage","settings.manage"].some(a)&&e.jsx("a",{href:"/?bearbeiten=1",target:"_blank",rel:"noopener noreferrer",className:"rounded-md bg-brand-500 px-3 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:"✎ Website live bearbeiten ↗"})]})]})}function B(){const{user:a,hasPermission:t}=k(),[n,x]=c.useState({}),[u,r]=c.useState(null),[h,f]=c.useState([]);c.useEffect(()=>{t("brands.manage")&&m.get("/brands").then(d=>x(o=>({...o,brands:d.length}))).catch(()=>{}),t("contact.manage")&&m.get("/contact").then(r).catch(()=>r([]));const s=t("models.manage")||t("packages.manage");s&&m.get("/models").then(d=>x(o=>({...o,models:d.length}))).catch(()=>{}),t("packages.manage")&&m.get("/packages").then(d=>x(o=>({...o,packages:d.length}))).catch(()=>{}),s&&t("packages.manage")&&Promise.all([m.get("/models"),m.get("/packages")]).then(([d,o])=>{const p=new Set(o.filter(i=>!i.is_hidden).map(i=>i.car_model_id));f(d.filter(i=>!p.has(i.id)))}).catch(()=>{})},[]);const g=[{key:"brands",label:"Fahrzeugmarken",value:n.brands,to:"/admin/brands",show:t("brands.manage")},{key:"models",label:"Modelle",value:n.models,to:"/admin/models",show:t("models.manage")},{key:"packages",label:"Pakete",value:n.packages,to:"/admin/packages",show:t("packages.manage")}].filter(s=>s.show),l=g.length===0&&!t("contact.manage")&&!t("content.manage")&&!t("settings.manage")&&!t("gallery.manage");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:["Willkommen, ",a==null?void 0:a.username,"!"]}),e.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:"Das Wichtigste zuerst: offene Anfragen, Hinweise und die häufigsten Aufgaben."})]}),l&&e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:"Für deinen Account sind noch keine Bereiche freigeschaltet. Bitte wende dich an einen Administrator."}),t("contact.manage")&&e.jsx(z,{requests:u}),h.length>0&&e.jsxs("section",{className:"rounded-xl border border-amber-200 bg-amber-50 p-5 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-200",children:[e.jsxs("p",{className:"font-semibold",children:["Hinweis: ",h.length," Modell",h.length===1?"":"e"," ohne sichtbares Paket"]}),e.jsxs("p",{className:"mt-1",children:["Kunden sehen dort nur „noch keine Pakete“ und einen Anfrage-Knopf:"," ",h.slice(0,6).map(s=>`${s.brand_name||""} ${s.name}`.trim()).join(", "),h.length>6?" …":"","."," ",e.jsx(b,{to:"/admin/packages",className:"underline",children:"Pakete anlegen"})]})]}),e.jsx(W,{hasPermission:t}),(t("content.manage")||t("settings.manage"))&&e.jsx(S,{}),t("system.admin")&&e.jsx(_,{}),(t("gallery.manage")||t("settings.manage"))&&e.jsx(w,{compact:!0}),g.length>0&&e.jsxs("section",{children:[e.jsx("p",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-neutral-400",children:"Bestand"}),e.jsx("div",{className:"flex flex-wrap gap-3",children:g.map(s=>e.jsxs(b,{to:s.to,className:"rounded-lg border border-neutral-200 bg-white px-4 py-2 text-sm hover:border-brand-500 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("span",{className:"font-bold text-brand-600 dark:text-brand-400",children:s.value??"…"})," ",e.jsx("span",{className:"text-neutral-600 dark:text-neutral-300",children:s.label})]},s.key))})]})]})}export{B as default};
+import{k,r as c,c as m,j as e,L as b,p as j,S as N}from"./index-ByR_n0g5.js";import{I as w}from"./ImageOptimizer-Cj7lSnrS.js";import{t as v,v as y,m as A}from"./contactRequests-Qfsfq7Lb.js";function S(){const[a,t]=c.useState(null),[n,x]=c.useState(null),[u,r]=c.useState(""),{toast:h,refreshCounters:f}=j();c.useEffect(()=>{m.get("/site-settings").then(l=>t(l.hidden_areas||[])).catch(l=>r(l.message))},[]);const g=async l=>{const s=l.key,d=!a.includes(s);if(d&&s.startsWith("page.")&&!window.confirm(`„${l.label}“ wirklich für alle Besucher ausblenden? Die Seite verschwindet sofort aus dem Menü.`))return;const o=a,p=d?[...a,s]:a.filter(i=>i!==s);t(p),x(s),r("");try{const i=await m.put("/site-settings/visibility",{hidden_areas:p});t(i.hidden_areas),h.success(d?`„${l.label}“ ist jetzt ausgeblendet.`:`„${l.label}“ ist wieder sichtbar.`),f()}catch(i){t(o),r(i.message),h.error(i.message)}finally{x(null)}};return e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Sichtbarkeit der Website"}),e.jsx("p",{className:"mb-5 text-sm text-neutral-500 dark:text-neutral-400",children:"Schalte Bereiche aus, die Besucher gerade nicht sehen sollen. Die Inhalte bleiben gespeichert und sind nach dem Wiedereinschalten sofort wieder da. Änderungen gelten sofort."}),u&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:u}),a===null?!u&&e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsx("div",{className:"grid gap-6 md:grid-cols-2",children:N.map(l=>e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-xs font-semibold uppercase tracking-wide text-neutral-400",children:l.title}),e.jsx("p",{className:"mb-3 text-xs text-neutral-500 dark:text-neutral-400",children:l.hint}),e.jsx("ul",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:l.areas.map(s=>{const d=!a.includes(s.key);return e.jsxs("li",{className:"flex items-center justify-between gap-3 py-2.5",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:`text-sm font-medium ${d?"text-neutral-800 dark:text-neutral-100":"text-neutral-400 line-through dark:text-neutral-500"}`,children:s.label}),s.note&&e.jsx("p",{className:"text-xs text-neutral-400",children:s.note})]}),e.jsxs("label",{className:"relative inline-flex shrink-0 cursor-pointer items-center",title:d?"Sichtbar – zum Ausblenden klicken":"Ausgeblendet – zum Einblenden klicken",children:[e.jsxs("span",{className:"sr-only",children:[s.label," sichtbar"]}),e.jsx("input",{type:"checkbox",checked:d,disabled:n!==null,onChange:()=>g(s),className:"peer sr-only"}),e.jsx("div",{className:"h-6 w-11 rounded-full bg-neutral-200 transition peer-checked:bg-brand-500 peer-disabled:opacity-60 dark:bg-neutral-700"}),e.jsx("div",{className:"absolute left-1 top-1 h-4 w-4 rounded-full bg-white transition peer-checked:translate-x-5"})]})]},s.key)})})]},l.title))})]})}function _(){const[a,t]=c.useState(null),[n,x]=c.useState("");if(c.useEffect(()=>{m.get("/analytics/report").then(t).catch(r=>x(r.message))},[]),n)return e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsx("p",{className:"text-sm text-red-600",children:n})]});if(!a)return null;if(!a.configured)return e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsxs("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:["Noch nicht eingerichtet. Unter"," ",e.jsx(b,{to:"/admin/settings/google",className:"text-brand-600 hover:underline dark:text-brand-400",children:"System → Google-Dienste"})," ","kannst du die Dashboard-Anbindung konfigurieren, um hier Besucherzahlen zu sehen."]})]});const u=Math.max(1,...a.daily.map(r=>r.pageviews));return e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsx("p",{className:"mb-5 text-sm text-neutral-500 dark:text-neutral-400",children:"Letzte 7 Tage."}),e.jsxs("div",{className:"mb-6 grid grid-cols-3 gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-extrabold text-brand-600 dark:text-brand-400",children:a.totals.users}),e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Nutzer"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-extrabold text-brand-600 dark:text-brand-400",children:a.totals.sessions}),e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Sitzungen"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-2xl font-extrabold text-brand-600 dark:text-brand-400",children:a.totals.pageviews}),e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Seitenaufrufe"})]})]}),a.daily.length>0&&e.jsx("div",{className:"mb-6 flex h-24 items-end gap-1.5",children:a.daily.map(r=>e.jsxs("div",{className:"flex flex-1 flex-col items-center gap-1",children:[e.jsx("div",{className:"w-full rounded-t bg-brand-400 dark:bg-brand-500",style:{height:`${Math.max(4,r.pageviews/u*80)}px`},title:`${r.date}: ${r.pageviews} Seitenaufrufe`}),e.jsxs("span",{className:"text-[10px] text-neutral-400",children:[r.date.slice(6,8),".",r.date.slice(4,6),"."]})]},r.date))}),a.top_pages.length>0&&e.jsxs("div",{children:[e.jsx("p",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-neutral-400",children:"Meistbesuchte Seiten"}),e.jsx("ul",{className:"space-y-1 text-sm",children:a.top_pages.map(r=>e.jsxs("li",{className:"flex items-center justify-between gap-3 text-neutral-700 dark:text-neutral-300",children:[e.jsx("span",{className:"truncate font-mono text-xs",children:r.path}),e.jsx("span",{className:"shrink-0 font-semibold",children:r.pageviews})]},r.path))})]})]})}function z({requests:a}){if(a===null)return null;const t=a.filter(n=>n.status==="new");return e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-4 flex flex-wrap items-baseline justify-between gap-2",children:[e.jsxs("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:["Neue Anfragen ",t.length>0&&e.jsx("span",{className:"ml-1 rounded-full bg-red-500 px-2 py-0.5 text-xs font-bold text-white",children:t.length})]}),e.jsx(b,{to:"/admin/contact-requests",className:"text-sm font-medium text-brand-600 hover:underline dark:text-brand-400",children:"Alle Anfragen →"})]}),t.length===0?e.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:"Keine offenen Anfragen – alles beantwortet. 👍"}):e.jsx("ul",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:t.slice(0,5).map(n=>e.jsxs("li",{className:"flex flex-wrap items-center justify-between gap-3 py-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("p",{className:"font-medium text-neutral-900 dark:text-white",children:[n.name," ",e.jsxs("span",{className:"text-xs font-normal text-neutral-400",children:["· ",v(n.created_at)]})]}),e.jsx("p",{className:"truncate text-sm text-neutral-500 dark:text-neutral-400",children:y(n)||(n.message?n.message.slice(0,80):"Allgemeine Anfrage")})]}),e.jsxs("div",{className:"flex shrink-0 gap-2",children:[e.jsx("a",{href:A(n),className:"rounded-md bg-brand-500 px-3 py-1.5 text-sm font-semibold text-white hover:bg-brand-600",children:"Antworten"}),e.jsx(b,{to:`/admin/contact-requests?id=${n.id}`,className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:"Öffnen"})]})]},n.id))})]})}function W({hasPermission:a}){const t=[{to:"/admin/packages",label:"Pakete bearbeiten",show:a("packages.manage")},{to:"/admin/gallery-projects",label:"Galerie-Fotos hochladen",show:a("gallery.manage")},{to:"/admin/home-sections",label:"Startseiten-Texte ändern",show:a("content.manage")},{to:"/admin/settings/company",label:"Öffnungszeiten & Kontakt",show:a("settings.manage")},{to:"/admin/settings/maintenance",label:"Wartungsmodus",show:a("settings.manage")},{to:"/admin/settings/countdown",label:"Launch-Countdown",show:a("settings.manage")}].filter(n=>n.show);return e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-3 font-semibold text-neutral-900 dark:text-white",children:"Schnellzugriff"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.map(n=>e.jsx(b,{to:n.to,className:"rounded-md border border-neutral-300 px-3 py-2 text-sm font-medium text-neutral-700 hover:border-brand-500 hover:text-brand-600 dark:border-neutral-700 dark:text-neutral-200",children:n.label},n.to)),e.jsx("a",{href:"/",target:"_blank",rel:"noopener noreferrer",className:"rounded-md border border-neutral-300 px-3 py-2 text-sm font-medium text-neutral-700 hover:border-brand-500 hover:text-brand-600 dark:border-neutral-700 dark:text-neutral-200",children:"Website ansehen ↗"}),["content.manage","services.manage","packages.manage","gallery.manage","settings.manage"].some(a)&&e.jsx("a",{href:"/?bearbeiten=1",target:"_blank",rel:"noopener noreferrer",className:"rounded-md bg-brand-500 px-3 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:"✎ Website live bearbeiten ↗"})]})]})}function B(){const{user:a,hasPermission:t}=k(),[n,x]=c.useState({}),[u,r]=c.useState(null),[h,f]=c.useState([]);c.useEffect(()=>{t("brands.manage")&&m.get("/brands").then(d=>x(o=>({...o,brands:d.length}))).catch(()=>{}),t("contact.manage")&&m.get("/contact").then(r).catch(()=>r([]));const s=t("models.manage")||t("packages.manage");s&&m.get("/models").then(d=>x(o=>({...o,models:d.length}))).catch(()=>{}),t("packages.manage")&&m.get("/packages").then(d=>x(o=>({...o,packages:d.length}))).catch(()=>{}),s&&t("packages.manage")&&Promise.all([m.get("/models"),m.get("/packages")]).then(([d,o])=>{const p=new Set(o.filter(i=>!i.is_hidden).map(i=>i.car_model_id));f(d.filter(i=>!p.has(i.id)))}).catch(()=>{})},[]);const g=[{key:"brands",label:"Fahrzeugmarken",value:n.brands,to:"/admin/brands",show:t("brands.manage")},{key:"models",label:"Modelle",value:n.models,to:"/admin/models",show:t("models.manage")},{key:"packages",label:"Pakete",value:n.packages,to:"/admin/packages",show:t("packages.manage")}].filter(s=>s.show),l=g.length===0&&!t("contact.manage")&&!t("content.manage")&&!t("settings.manage")&&!t("gallery.manage");return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:["Willkommen, ",a==null?void 0:a.username,"!"]}),e.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:"Das Wichtigste zuerst: offene Anfragen, Hinweise und die häufigsten Aufgaben."})]}),l&&e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:"Für deinen Account sind noch keine Bereiche freigeschaltet. Bitte wende dich an einen Administrator."}),t("contact.manage")&&e.jsx(z,{requests:u}),h.length>0&&e.jsxs("section",{className:"rounded-xl border border-amber-200 bg-amber-50 p-5 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950/40 dark:text-amber-200",children:[e.jsxs("p",{className:"font-semibold",children:["Hinweis: ",h.length," Modell",h.length===1?"":"e"," ohne sichtbares Paket"]}),e.jsxs("p",{className:"mt-1",children:["Kunden sehen dort nur „noch keine Pakete“ und einen Anfrage-Knopf:"," ",h.slice(0,6).map(s=>`${s.brand_name||""} ${s.name}`.trim()).join(", "),h.length>6?" …":"","."," ",e.jsx(b,{to:"/admin/packages",className:"underline",children:"Pakete anlegen"})]})]}),e.jsx(W,{hasPermission:t}),(t("content.manage")||t("settings.manage"))&&e.jsx(S,{}),t("system.admin")&&e.jsx(_,{}),(t("gallery.manage")||t("settings.manage"))&&e.jsx(w,{compact:!0}),g.length>0&&e.jsxs("section",{children:[e.jsx("p",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-neutral-400",children:"Bestand"}),e.jsx("div",{className:"flex flex-wrap gap-3",children:g.map(s=>e.jsxs(b,{to:s.to,className:"rounded-lg border border-neutral-200 bg-white px-4 py-2 text-sm hover:border-brand-500 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("span",{className:"font-bold text-brand-600 dark:text-brand-400",children:s.value??"…"})," ",e.jsx("span",{className:"text-neutral-600 dark:text-neutral-300",children:s.label})]},s.key))})]})]})}export{B as default};
diff --git a/hifi/assets/DatabaseSettings-561PD_Cp.js b/hifi/assets/DatabaseSettings-C696yBmO.js
similarity index 98%
rename from hifi/assets/DatabaseSettings-561PD_Cp.js
rename to hifi/assets/DatabaseSettings-C696yBmO.js
index b092ba1..db0ef77 100644
--- a/hifi/assets/DatabaseSettings-561PD_Cp.js
+++ b/hifi/assets/DatabaseSettings-C696yBmO.js
@@ -1 +1 @@
-import{r as a,j as e,c as i}from"./index-BlspSYV0.js";import{I as T}from"./ImageOptimizer-sgJymAi_.js";function F(){const[r,n]=a.useState({host:"",name:"",user:"",password:"",charset:"utf8mb4"}),[m,b]=a.useState(!1),[y,x]=a.useState(!0),[h,C]=a.useState(!1),[g,p]=a.useState(!1),[k,f]=a.useState(""),[D,j]=a.useState(!1),[s,o]=a.useState(null),[d,w]=a.useState(!0),[v,N]=a.useState(!1),[S,u]=a.useState(null),P=()=>{x(!0),i.get("/settings/database").then(t=>{n({...t.config,password:""}),b(t.has_password)}).finally(()=>x(!1))},c=()=>{w(!0),i.get("/settings/schema-check").then(o).catch(t=>o({ok:!1,error:t.message,tables:[]})).finally(()=>w(!1))};a.useEffect(()=>{P(),c()},[]);const E=async()=>{N(!0),u(null);try{const t=await i.post("/settings/schema-migrate",{});u(t.actions),o(t.report)}catch(t){u(["Fehler: "+t.message])}finally{N(!1)}},z=async t=>{t.preventDefault(),p(!0),f(""),j(!1);try{await i.post("/settings/database",r),j(!0),n(l=>({...l,password:""})),b(!0),c()}catch(l){f(l.message)}finally{p(!1)}};return e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Datenbank-Zugangsdaten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Wichtig für einen Umzug auf einen anderen Server/Webspace: Trage hier die Zugangsdaten der dortigen Datenbank ein. Die Verbindung wird vor dem Speichern getestet, damit du dich nicht aussperrst."}),y?e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsxs("form",{onSubmit:z,className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Host *"}),e.jsx("input",{required:!0,value:r.host,onChange:t=>n({...r,host:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Datenbankname *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>n({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzer *"}),e.jsx("input",{required:!0,value:r.user,onChange:t=>n({...r,user:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Passwort ",m?"(leer lassen = unverändert)":""]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:h?"text":"password",value:r.password,onChange:t=>n({...r,password:t.target.value}),placeholder:m?"••••••••":"",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("button",{type:"button",onClick:()=>C(t=>!t),className:"shrink-0 rounded-md border border-neutral-300 px-3 text-sm dark:border-neutral-700",children:h?"Verbergen":"Anzeigen"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Zeichensatz"}),e.jsx("input",{value:r.charset,onChange:t=>n({...r,charset:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),k&&e.jsx("p",{className:"text-sm text-red-600",children:k}),D&&e.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"Verbindung erfolgreich getestet und gespeichert."}),e.jsx("button",{type:"submit",disabled:g,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:g?"Teste & speichere…":"Verbindung testen & speichern"})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:"Datenbankstruktur"}),!d&&s&&e.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-semibold ${s.ok?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300"}`,children:s.ok?"Datenbank OK":"Datenbank nicht OK"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Prüft, ob diese Datenbank alle Tabellen und Spalten hat, die der aktuelle Code-Stand braucht – wichtig, wenn deine Live-Version auf einem anderen Server einen älteren Stand hat."}),d&&e.jsx("p",{className:"text-sm text-neutral-400",children:"Prüfe…"}),!d&&s&&!s.ok&&e.jsx("ul",{className:"mb-4 space-y-1 rounded-md bg-red-50 p-3 text-sm text-red-800 dark:bg-red-900/20 dark:text-red-300",children:s.tables.filter(t=>!t.ok).map(t=>e.jsx("li",{children:t.exists?e.jsxs(e.Fragment,{children:["Tabelle ",e.jsx("code",{className:"font-mono",children:t.table}),": Spalte(n) fehlen – ",t.missing_columns.join(", ")]}):e.jsxs(e.Fragment,{children:["Tabelle ",e.jsx("code",{className:"font-mono",children:t.table})," fehlt komplett"]})},t.table))}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{onClick:c,disabled:d,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:"Erneut prüfen"}),s&&!s.ok&&e.jsx("button",{onClick:E,disabled:v,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:v?"Aktualisiere…":"Datenbankstruktur aktualisieren"})]}),S&&e.jsx("ul",{className:"mt-3 space-y-1 rounded-md bg-neutral-50 p-3 text-sm text-neutral-700 dark:bg-neutral-800 dark:text-neutral-300",children:S.map((t,l)=>e.jsx("li",{children:t},l))})]}),e.jsx(T,{})]})}export{F as default};
+import{r as a,j as e,c as i}from"./index-ByR_n0g5.js";import{I as T}from"./ImageOptimizer-Cj7lSnrS.js";function F(){const[r,n]=a.useState({host:"",name:"",user:"",password:"",charset:"utf8mb4"}),[m,b]=a.useState(!1),[y,x]=a.useState(!0),[h,C]=a.useState(!1),[g,p]=a.useState(!1),[k,f]=a.useState(""),[D,j]=a.useState(!1),[s,o]=a.useState(null),[d,w]=a.useState(!0),[v,N]=a.useState(!1),[S,u]=a.useState(null),P=()=>{x(!0),i.get("/settings/database").then(t=>{n({...t.config,password:""}),b(t.has_password)}).finally(()=>x(!1))},c=()=>{w(!0),i.get("/settings/schema-check").then(o).catch(t=>o({ok:!1,error:t.message,tables:[]})).finally(()=>w(!1))};a.useEffect(()=>{P(),c()},[]);const E=async()=>{N(!0),u(null);try{const t=await i.post("/settings/schema-migrate",{});u(t.actions),o(t.report)}catch(t){u(["Fehler: "+t.message])}finally{N(!1)}},z=async t=>{t.preventDefault(),p(!0),f(""),j(!1);try{await i.post("/settings/database",r),j(!0),n(l=>({...l,password:""})),b(!0),c()}catch(l){f(l.message)}finally{p(!1)}};return e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Datenbank-Zugangsdaten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Wichtig für einen Umzug auf einen anderen Server/Webspace: Trage hier die Zugangsdaten der dortigen Datenbank ein. Die Verbindung wird vor dem Speichern getestet, damit du dich nicht aussperrst."}),y?e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsxs("form",{onSubmit:z,className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Host *"}),e.jsx("input",{required:!0,value:r.host,onChange:t=>n({...r,host:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Datenbankname *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>n({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzer *"}),e.jsx("input",{required:!0,value:r.user,onChange:t=>n({...r,user:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Passwort ",m?"(leer lassen = unverändert)":""]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:h?"text":"password",value:r.password,onChange:t=>n({...r,password:t.target.value}),placeholder:m?"••••••••":"",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("button",{type:"button",onClick:()=>C(t=>!t),className:"shrink-0 rounded-md border border-neutral-300 px-3 text-sm dark:border-neutral-700",children:h?"Verbergen":"Anzeigen"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Zeichensatz"}),e.jsx("input",{value:r.charset,onChange:t=>n({...r,charset:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),k&&e.jsx("p",{className:"text-sm text-red-600",children:k}),D&&e.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"Verbindung erfolgreich getestet und gespeichert."}),e.jsx("button",{type:"submit",disabled:g,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:g?"Teste & speichere…":"Verbindung testen & speichern"})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:"Datenbankstruktur"}),!d&&s&&e.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-semibold ${s.ok?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300"}`,children:s.ok?"Datenbank OK":"Datenbank nicht OK"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Prüft, ob diese Datenbank alle Tabellen und Spalten hat, die der aktuelle Code-Stand braucht – wichtig, wenn deine Live-Version auf einem anderen Server einen älteren Stand hat."}),d&&e.jsx("p",{className:"text-sm text-neutral-400",children:"Prüfe…"}),!d&&s&&!s.ok&&e.jsx("ul",{className:"mb-4 space-y-1 rounded-md bg-red-50 p-3 text-sm text-red-800 dark:bg-red-900/20 dark:text-red-300",children:s.tables.filter(t=>!t.ok).map(t=>e.jsx("li",{children:t.exists?e.jsxs(e.Fragment,{children:["Tabelle ",e.jsx("code",{className:"font-mono",children:t.table}),": Spalte(n) fehlen – ",t.missing_columns.join(", ")]}):e.jsxs(e.Fragment,{children:["Tabelle ",e.jsx("code",{className:"font-mono",children:t.table})," fehlt komplett"]})},t.table))}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{onClick:c,disabled:d,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:"Erneut prüfen"}),s&&!s.ok&&e.jsx("button",{onClick:E,disabled:v,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:v?"Aktualisiere…":"Datenbankstruktur aktualisieren"})]}),S&&e.jsx("ul",{className:"mt-3 space-y-1 rounded-md bg-neutral-50 p-3 text-sm text-neutral-700 dark:bg-neutral-800 dark:text-neutral-300",children:S.map((t,l)=>e.jsx("li",{children:t},l))})]}),e.jsx(T,{})]})}export{F as default};
diff --git a/hifi/assets/Datenschutz-Q_MacwGA.js b/hifi/assets/Datenschutz-CL1ElwlX.js
similarity index 54%
rename from hifi/assets/Datenschutz-Q_MacwGA.js
rename to hifi/assets/Datenschutz-CL1ElwlX.js
index efedb63..0a65325 100644
--- a/hifi/assets/Datenschutz-Q_MacwGA.js
+++ b/hifi/assets/Datenschutz-CL1ElwlX.js
@@ -1 +1 @@
-import{j as t}from"./index-BlspSYV0.js";import{L as e}from"./LegalPageView-Cw-csW7_.js";function n(){return t.jsx(e,{slug:"datenschutz",fallbackTitle:"Datenschutzerklärung",description:"Datenschutzerklärung von HifiPlanet Amorbach gemäß Art. 13 DSGVO."})}export{n as default};
+import{j as t}from"./index-ByR_n0g5.js";import{L as e}from"./LegalPageView-DyCn1nFB.js";function n(){return t.jsx(e,{slug:"datenschutz",fallbackTitle:"Datenschutzerklärung",description:"Datenschutzerklärung von HifiPlanet Amorbach gemäß Art. 13 DSGVO."})}export{n as default};
diff --git a/hifi/assets/Downloads-DZAlZIUI.js b/hifi/assets/Downloads-aBsc1dNO.js
similarity index 96%
rename from hifi/assets/Downloads-DZAlZIUI.js
rename to hifi/assets/Downloads-aBsc1dNO.js
index 7cc2ec9..3655a3c 100644
--- a/hifi/assets/Downloads-DZAlZIUI.js
+++ b/hifi/assets/Downloads-aBsc1dNO.js
@@ -1 +1 @@
-import{r as n,q as P,s as W,j as e,c as f,A as I}from"./index-BlspSYV0.js";import{b as V,A as M}from"./downloads-B9pqFegV.js";import{S as Z,s as T}from"./SortableList-DwfJpzeR.js";import{V as G}from"./ViewOnSite-BPLJTKOt.js";import{E as q,a as H}from"./eye-BfYwiu9A.js";import"./sortable.esm-D1g5h7xA.js";import"./grip-vertical-Bv_4pkjN.js";const v="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",j={title:"",description:"",sort_order:0};function A(d,o,i){return new Promise((c,u)=>{const a=new XMLHttpRequest;a.open("POST",`${I}${d}`),a.withCredentials=!0,a.upload.onprogress=s=>{s.lengthComputable&&i(s.loaded/s.total)},a.onload=()=>{let s=null;try{s=JSON.parse(a.responseText)}catch{}a.status>=200&&a.status<300?c(s):u(new Error((s==null?void 0:s.error)||(a.status===413?"Die Datei ist zu groß für diesen Server.":`Fehler ${a.status}`)))},a.onerror=()=>u(new Error("Netzwerkfehler beim Hochladen")),a.send(o)})}function J(){const[d,o]=n.useState(void 0),[i,c]=n.useState(""),[u,a]=n.useState(!1),[s,x]=n.useState(null);n.useEffect(()=>{f.get("/settings/downloads").then(l=>{o(l.password),c(l.password||"")}).catch(l=>x({kind:"error",text:l.message}))},[]);const m=async l=>{l.preventDefault(),a(!0),x(null);try{const h=await f.put("/settings/downloads",{password:i});o(h.password),c(h.password||""),x({kind:"ok",text:h.password?"Gespeichert – der Bereich ist jetzt geschützt.":"Gespeichert – der Bereich ist jetzt öffentlich."})}catch(h){x({kind:"error",text:h.message})}finally{a(!1)}};return e.jsxs("form",{onSubmit:m,className:"space-y-3 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:"Zugriffsschutz"}),e.jsxs("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:[d===void 0&&"Lädt…",d===null&&"Öffentlich – jeder, der die Seite aufruft, sieht die Dateien.",typeof d=="string"&&"Geschützt – Besucher müssen zuerst das Passwort eingeben."]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Zugangspasswort (leer = öffentlich)"}),e.jsx("input",{value:i,maxLength:100,autoComplete:"off",onChange:l=>c(l.target.value),className:v}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Das Passwort an die Kunden weitergeben – es bleibt hier jederzeit einsehbar. Direkte Links zu einzelnen Dateien funktionieren auch ohne Passwort; wer freigeschaltet hat, könnte sie also weitergeben."})]}),s&&e.jsx("p",{className:`text-sm ${s.kind==="error"?"text-red-600":"text-brand-600 dark:text-brand-400"}`,children:s.text}),e.jsx("button",{type:"submit",disabled:u||d===void 0,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:"Speichern"})]})}function se(){const[d,o]=n.useState([]),[i,c]=n.useState(j),[u,a]=n.useState(null),[s,x]=n.useState(null),[m,l]=n.useState(null),[h,S]=n.useState(!1),[D,g]=n.useState(""),[E,_]=n.useState(null),[C,z]=n.useState(j),k=n.useRef(null),$=n.useRef(null),b=P();W(!!u||JSON.stringify(i)!==JSON.stringify(C),"downloads");const y=()=>f.get("/downloads/manage").then(o);n.useEffect(()=>{y()},[]);const w=()=>{x(null),c(j),z(j),a(null),g(""),k.current&&(k.current.value="")},B=t=>{var p;w(),x(t.id);const r={title:t.title,description:t.description||"",sort_order:t.sort_order};c(r),z(r),(p=$.current)==null||p.scrollIntoView({behavior:"smooth",block:"start"})},F=async t=>{if(t.preventDefault(),!s&&!u){g("Bitte eine Datei auswählen.");return}S(!0),g("");try{if(s){if(await f.put(`/downloads/${s}`,i),u){const r=new FormData;r.append("file",u),l(0),await A(`/downloads/${s}/file`,r,l)}}else{const r=new FormData;r.append("file",u),r.append("title",i.title),r.append("description",i.description),l(0),await A("/downloads",r,l)}b.success(s?"Download gespeichert.":"Datei hochgeladen."),w(),y()}catch(r){g(r.message)}finally{S(!1),l(null)}},L=async t=>{_(t.id);try{const r=await f.patch(`/downloads/${t.id}/visibility`,{is_hidden:!t.is_hidden});o(p=>p.map(N=>N.id===t.id?{...N,is_hidden:r.is_hidden}:N)),b.success(r.is_hidden?`„${t.title}“ ist jetzt ausgeblendet.`:`„${t.title}“ ist wieder sichtbar.`)}catch(r){b.error(`Sichtbarkeit konnte nicht geändert werden: ${r.message}`)}finally{_(null)}},R=async t=>{if(confirm(`"${t.title}" inkl. Datei wirklich löschen?`))try{await f.delete(`/downloads/${t.id}`),s===t.id&&w(),b.success("Download gelöscht."),y()}catch(r){b.error(`Löschen fehlgeschlagen: ${r.message}`)}},O=async t=>{const r=d;o(t);try{o(await T("downloads",t)),b.success("Reihenfolge gespeichert.")}catch(p){o(r),b.error(`Reihenfolge konnte nicht gespeichert werden: ${p.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Downloads"}),e.jsx(G,{to:"/downloads"})]}),e.jsxs("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:["Dateien, die Kunden auf der Seite"," ",e.jsx("a",{href:"/downloads",target:"_blank",rel:"noopener noreferrer",className:"text-brand-600 hover:underline",children:"/downloads"})," ","anhören bzw. herunterladen können, z. B. Songs oder Anleitungen. Der Menüpunkt „Downloads“ erscheint auf der Website automatisch, sobald mindestens eine Datei sichtbar ist. Ohne Zugangspasswort (siehe „Zugriffsschutz“) ist die Seite öffentlich. Reihenfolge am Griff links per Ziehen ändern."]}),e.jsxs("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:[e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"w-10 px-2 py-2",children:e.jsx("span",{className:"sr-only",children:"Reihenfolge"})}),e.jsx("th",{className:"px-4 py-2",children:"Titel / Datei"}),e.jsx("th",{className:"px-4 py-2",children:"Größe"}),e.jsx("th",{className:"px-4 py-2",children:"Website"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(Z,{items:d,onReorder:O,as:"tbody",className:"divide-y divide-neutral-100 bg-white dark:divide-neutral-800 dark:bg-neutral-950",children:(t,r)=>e.jsxs(e.Fragment,{children:[e.jsx("td",{className:"px-2 py-2",children:r}),e.jsxs("td",{className:`px-4 py-2 ${t.is_hidden?"opacity-60":""}`,children:[e.jsx("p",{className:"font-medium text-neutral-800 dark:text-neutral-100",children:t.title}),e.jsx("a",{href:t.file_path,target:"_blank",rel:"noopener noreferrer",className:"break-all text-xs text-neutral-500 hover:text-brand-600 dark:text-neutral-400",children:t.file_name})]}),e.jsx("td",{className:"whitespace-nowrap px-4 py-2 text-neutral-500 dark:text-neutral-400",children:V(t.file_size)}),e.jsx("td",{className:"px-4 py-2",children:e.jsxs("button",{type:"button",onClick:()=>L(t),disabled:E===t.id,title:t.is_hidden?"Wieder auf der Website anzeigen":"Auf der Website ausblenden",className:`inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs font-semibold transition disabled:opacity-50 ${t.is_hidden?"border-amber-300 bg-amber-50 text-amber-800 hover:bg-amber-100 dark:border-amber-700 dark:bg-amber-900/30 dark:text-amber-300":"border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:[t.is_hidden?e.jsx(q,{className:"h-3.5 w-3.5"}):e.jsx(H,{className:"h-3.5 w-3.5"}),t.is_hidden?"Ausgeblendet":"Sichtbar"]})}),e.jsxs("td",{className:"whitespace-nowrap px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>B(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>R(t),className:"text-red-600 hover:underline",children:"Löschen"})]})]})})]}),d.length===0&&e.jsx("p",{className:"px-4 py-6 text-center text-sm text-neutral-400",children:"Noch keine Dateien hochgeladen."})]})]}),e.jsxs("div",{className:"h-fit space-y-6",children:[e.jsxs("form",{ref:$,onSubmit:F,className:"scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Download bearbeiten":"Neue Datei hochladen"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:s?"Datei ersetzen (optional)":"Datei *"}),e.jsx("input",{ref:k,type:"file",accept:M.map(t=>`.${t}`).join(","),onChange:t=>{var r;return a(((r=t.target.files)==null?void 0:r[0])||null)},className:"block w-full text-sm text-neutral-600 file:mr-3 file:rounded-md file:border-0 file:bg-brand-500 file:px-3 file:py-2 file:text-sm file:font-semibold file:text-white hover:file:bg-brand-600 dark:text-neutral-300"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Musik (MP3, WAV, FLAC, …), Videos, PDFs, Bilder, Office-Dokumente oder ZIP-Archive. Andere Dateitypen bitte als ZIP hochladen."})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Titel ",s?"*":"(optional)"]}),e.jsx("input",{required:!!s,value:i.title,maxLength:150,onChange:t=>c({...i,title:t.target.value}),placeholder:s?"":"Leer lassen = Dateiname",className:v})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung (optional)"}),e.jsx("textarea",{rows:3,value:i.description,onChange:t=>c({...i,description:t.target.value}),className:v})]}),m!==null&&e.jsxs("div",{children:[e.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-neutral-200 dark:bg-neutral-800",children:e.jsx("div",{className:"h-full rounded-full bg-brand-500 transition-[width]",style:{width:`${Math.round(m*100)}%`}})}),e.jsx("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:m<1?`Wird hochgeladen … ${Math.round(m*100)} %`:"Wird gespeichert …"})]}),D&&e.jsx("p",{className:"text-sm text-red-600",children:D}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",disabled:h,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:s?"Speichern":"Hochladen"}),s&&e.jsx("button",{type:"button",onClick:w,disabled:h,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]}),e.jsx(J,{})]})]})}export{se as default};
+import{r as n,q as P,s as W,j as e,c as f,A as I}from"./index-ByR_n0g5.js";import{b as V,A as M}from"./downloads-B9pqFegV.js";import{S as Z,s as T}from"./SortableList-fUokp5Er.js";import{V as G}from"./ViewOnSite-DuRTh7q1.js";import{E as q,a as H}from"./eye-BhaTX13E.js";import"./sortable.esm-feaRoI7N.js";import"./grip-vertical-B-w3JIIY.js";const v="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",j={title:"",description:"",sort_order:0};function A(d,o,i){return new Promise((c,u)=>{const a=new XMLHttpRequest;a.open("POST",`${I}${d}`),a.withCredentials=!0,a.upload.onprogress=s=>{s.lengthComputable&&i(s.loaded/s.total)},a.onload=()=>{let s=null;try{s=JSON.parse(a.responseText)}catch{}a.status>=200&&a.status<300?c(s):u(new Error((s==null?void 0:s.error)||(a.status===413?"Die Datei ist zu groß für diesen Server.":`Fehler ${a.status}`)))},a.onerror=()=>u(new Error("Netzwerkfehler beim Hochladen")),a.send(o)})}function J(){const[d,o]=n.useState(void 0),[i,c]=n.useState(""),[u,a]=n.useState(!1),[s,x]=n.useState(null);n.useEffect(()=>{f.get("/settings/downloads").then(l=>{o(l.password),c(l.password||"")}).catch(l=>x({kind:"error",text:l.message}))},[]);const m=async l=>{l.preventDefault(),a(!0),x(null);try{const h=await f.put("/settings/downloads",{password:i});o(h.password),c(h.password||""),x({kind:"ok",text:h.password?"Gespeichert – der Bereich ist jetzt geschützt.":"Gespeichert – der Bereich ist jetzt öffentlich."})}catch(h){x({kind:"error",text:h.message})}finally{a(!1)}};return e.jsxs("form",{onSubmit:m,className:"space-y-3 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:"Zugriffsschutz"}),e.jsxs("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:[d===void 0&&"Lädt…",d===null&&"Öffentlich – jeder, der die Seite aufruft, sieht die Dateien.",typeof d=="string"&&"Geschützt – Besucher müssen zuerst das Passwort eingeben."]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Zugangspasswort (leer = öffentlich)"}),e.jsx("input",{value:i,maxLength:100,autoComplete:"off",onChange:l=>c(l.target.value),className:v}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Das Passwort an die Kunden weitergeben – es bleibt hier jederzeit einsehbar. Direkte Links zu einzelnen Dateien funktionieren auch ohne Passwort; wer freigeschaltet hat, könnte sie also weitergeben."})]}),s&&e.jsx("p",{className:`text-sm ${s.kind==="error"?"text-red-600":"text-brand-600 dark:text-brand-400"}`,children:s.text}),e.jsx("button",{type:"submit",disabled:u||d===void 0,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:"Speichern"})]})}function se(){const[d,o]=n.useState([]),[i,c]=n.useState(j),[u,a]=n.useState(null),[s,x]=n.useState(null),[m,l]=n.useState(null),[h,S]=n.useState(!1),[D,g]=n.useState(""),[E,_]=n.useState(null),[C,z]=n.useState(j),k=n.useRef(null),$=n.useRef(null),b=P();W(!!u||JSON.stringify(i)!==JSON.stringify(C),"downloads");const y=()=>f.get("/downloads/manage").then(o);n.useEffect(()=>{y()},[]);const w=()=>{x(null),c(j),z(j),a(null),g(""),k.current&&(k.current.value="")},B=t=>{var p;w(),x(t.id);const r={title:t.title,description:t.description||"",sort_order:t.sort_order};c(r),z(r),(p=$.current)==null||p.scrollIntoView({behavior:"smooth",block:"start"})},F=async t=>{if(t.preventDefault(),!s&&!u){g("Bitte eine Datei auswählen.");return}S(!0),g("");try{if(s){if(await f.put(`/downloads/${s}`,i),u){const r=new FormData;r.append("file",u),l(0),await A(`/downloads/${s}/file`,r,l)}}else{const r=new FormData;r.append("file",u),r.append("title",i.title),r.append("description",i.description),l(0),await A("/downloads",r,l)}b.success(s?"Download gespeichert.":"Datei hochgeladen."),w(),y()}catch(r){g(r.message)}finally{S(!1),l(null)}},L=async t=>{_(t.id);try{const r=await f.patch(`/downloads/${t.id}/visibility`,{is_hidden:!t.is_hidden});o(p=>p.map(N=>N.id===t.id?{...N,is_hidden:r.is_hidden}:N)),b.success(r.is_hidden?`„${t.title}“ ist jetzt ausgeblendet.`:`„${t.title}“ ist wieder sichtbar.`)}catch(r){b.error(`Sichtbarkeit konnte nicht geändert werden: ${r.message}`)}finally{_(null)}},R=async t=>{if(confirm(`"${t.title}" inkl. Datei wirklich löschen?`))try{await f.delete(`/downloads/${t.id}`),s===t.id&&w(),b.success("Download gelöscht."),y()}catch(r){b.error(`Löschen fehlgeschlagen: ${r.message}`)}},O=async t=>{const r=d;o(t);try{o(await T("downloads",t)),b.success("Reihenfolge gespeichert.")}catch(p){o(r),b.error(`Reihenfolge konnte nicht gespeichert werden: ${p.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Downloads"}),e.jsx(G,{to:"/downloads"})]}),e.jsxs("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:["Dateien, die Kunden auf der Seite"," ",e.jsx("a",{href:"/downloads",target:"_blank",rel:"noopener noreferrer",className:"text-brand-600 hover:underline",children:"/downloads"})," ","anhören bzw. herunterladen können, z. B. Songs oder Anleitungen. Der Menüpunkt „Downloads“ erscheint auf der Website automatisch, sobald mindestens eine Datei sichtbar ist. Ohne Zugangspasswort (siehe „Zugriffsschutz“) ist die Seite öffentlich. Reihenfolge am Griff links per Ziehen ändern."]}),e.jsxs("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:[e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"w-10 px-2 py-2",children:e.jsx("span",{className:"sr-only",children:"Reihenfolge"})}),e.jsx("th",{className:"px-4 py-2",children:"Titel / Datei"}),e.jsx("th",{className:"px-4 py-2",children:"Größe"}),e.jsx("th",{className:"px-4 py-2",children:"Website"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(Z,{items:d,onReorder:O,as:"tbody",className:"divide-y divide-neutral-100 bg-white dark:divide-neutral-800 dark:bg-neutral-950",children:(t,r)=>e.jsxs(e.Fragment,{children:[e.jsx("td",{className:"px-2 py-2",children:r}),e.jsxs("td",{className:`px-4 py-2 ${t.is_hidden?"opacity-60":""}`,children:[e.jsx("p",{className:"font-medium text-neutral-800 dark:text-neutral-100",children:t.title}),e.jsx("a",{href:t.file_path,target:"_blank",rel:"noopener noreferrer",className:"break-all text-xs text-neutral-500 hover:text-brand-600 dark:text-neutral-400",children:t.file_name})]}),e.jsx("td",{className:"whitespace-nowrap px-4 py-2 text-neutral-500 dark:text-neutral-400",children:V(t.file_size)}),e.jsx("td",{className:"px-4 py-2",children:e.jsxs("button",{type:"button",onClick:()=>L(t),disabled:E===t.id,title:t.is_hidden?"Wieder auf der Website anzeigen":"Auf der Website ausblenden",className:`inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs font-semibold transition disabled:opacity-50 ${t.is_hidden?"border-amber-300 bg-amber-50 text-amber-800 hover:bg-amber-100 dark:border-amber-700 dark:bg-amber-900/30 dark:text-amber-300":"border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:[t.is_hidden?e.jsx(q,{className:"h-3.5 w-3.5"}):e.jsx(H,{className:"h-3.5 w-3.5"}),t.is_hidden?"Ausgeblendet":"Sichtbar"]})}),e.jsxs("td",{className:"whitespace-nowrap px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>B(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>R(t),className:"text-red-600 hover:underline",children:"Löschen"})]})]})})]}),d.length===0&&e.jsx("p",{className:"px-4 py-6 text-center text-sm text-neutral-400",children:"Noch keine Dateien hochgeladen."})]})]}),e.jsxs("div",{className:"h-fit space-y-6",children:[e.jsxs("form",{ref:$,onSubmit:F,className:"scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Download bearbeiten":"Neue Datei hochladen"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:s?"Datei ersetzen (optional)":"Datei *"}),e.jsx("input",{ref:k,type:"file",accept:M.map(t=>`.${t}`).join(","),onChange:t=>{var r;return a(((r=t.target.files)==null?void 0:r[0])||null)},className:"block w-full text-sm text-neutral-600 file:mr-3 file:rounded-md file:border-0 file:bg-brand-500 file:px-3 file:py-2 file:text-sm file:font-semibold file:text-white hover:file:bg-brand-600 dark:text-neutral-300"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Musik (MP3, WAV, FLAC, …), Videos, PDFs, Bilder, Office-Dokumente oder ZIP-Archive. Andere Dateitypen bitte als ZIP hochladen."})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Titel ",s?"*":"(optional)"]}),e.jsx("input",{required:!!s,value:i.title,maxLength:150,onChange:t=>c({...i,title:t.target.value}),placeholder:s?"":"Leer lassen = Dateiname",className:v})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung (optional)"}),e.jsx("textarea",{rows:3,value:i.description,onChange:t=>c({...i,description:t.target.value}),className:v})]}),m!==null&&e.jsxs("div",{children:[e.jsx("div",{className:"h-2 overflow-hidden rounded-full bg-neutral-200 dark:bg-neutral-800",children:e.jsx("div",{className:"h-full rounded-full bg-brand-500 transition-[width]",style:{width:`${Math.round(m*100)}%`}})}),e.jsx("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:m<1?`Wird hochgeladen … ${Math.round(m*100)} %`:"Wird gespeichert …"})]}),D&&e.jsx("p",{className:"text-sm text-red-600",children:D}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",disabled:h,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:s?"Speichern":"Hochladen"}),s&&e.jsx("button",{type:"button",onClick:w,disabled:h,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]}),e.jsx(J,{})]})]})}export{se as default};
diff --git a/hifi/assets/DownloadsPage-BLst4c-p.js b/hifi/assets/DownloadsPage-Mq08ayRG.js
similarity index 97%
rename from hifi/assets/DownloadsPage-BLst4c-p.js
rename to hifi/assets/DownloadsPage-Mq08ayRG.js
index ef8ead7..559038b 100644
--- a/hifi/assets/DownloadsPage-BLst4c-p.js
+++ b/hifi/assets/DownloadsPage-Mq08ayRG.js
@@ -1 +1 @@
-import{r,u as y,b as v,j as e,e as S,R as D,c as I}from"./index-BlspSYV0.js";import{f as _,a as E,b as F,i as L}from"./downloads-B9pqFegV.js";import{L as C,F as p,a as R,b as T,c as U,M,D as A}from"./music-Co2R5rSR.js";const K={audio:M,video:U,pdf:p,image:T,archive:R,document:p},n="hifi-downloads-password",z=()=>{try{return localStorage.getItem(n)||""}catch{return""}},f=t=>{try{t?localStorage.setItem(n,t):localStorage.removeItem(n)}catch{}},g=t=>I.get("/downloads",t?{headers:{"X-Download-Password":encodeURIComponent(t)}}:void 0);function W(){const[t,i]=r.useState(null),[c,x]=r.useState(!1),[o,b]=r.useState(""),[j,m]=r.useState(!1),[u,h]=r.useState(!1),[d,w]=r.useState(null),{t:s,language:k}=y();r.useEffect(()=>{const a=z();g(a).then(l=>{l.locked?(a&&f(""),x(!0)):i(l.items)}).catch(l=>w(l))},[]);const N=async a=>{a.preventDefault(),h(!0),m(!1);try{const l=await g(o);l.locked?m(!0):(f(o),x(!1),i(l.items))}catch(l){w(l.message)}finally{h(!1)}};return v({title:s("downloadsPage.metaTitle"),description:s("downloadsPage.metaDescription"),path:"/downloads"}),e.jsxs("div",{className:"mx-auto max-w-4xl px-4 py-12 sm:px-6",children:[e.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:s("downloadsPage.title")}),e.jsx("p",{className:"mb-10 max-w-2xl text-neutral-600 dark:text-neutral-300",children:s("downloadsPage.intro")}),d&&e.jsx("p",{className:"text-red-600",children:typeof d=="string"?d:S(d,s)}),!d&&!c&&t===null&&e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("downloadsPage.loading")}),(t==null?void 0:t.length)===0&&e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("downloadsPage.empty")}),c&&e.jsxs("form",{onSubmit:N,className:"max-w-md rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[e.jsx(C,{className:"h-5 w-5 text-brand-500","aria-hidden":"true"}),e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:s("downloadsPage.lockedTitle")})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:s("downloadsPage.lockedText")}),e.jsx("label",{htmlFor:"downloads-password",className:"sr-only",children:s("downloadsPage.passwordLabel")}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[e.jsx("input",{id:"downloads-password",type:"password",required:!0,autoComplete:"off",value:o,onChange:a=>b(a.target.value),placeholder:s("downloadsPage.passwordLabel"),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm text-neutral-900 dark:border-neutral-700 dark:bg-neutral-950 dark:text-white"}),e.jsx("button",{type:"submit",disabled:u,className:"shrink-0 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:s(u?"downloadsPage.unlocking":"downloadsPage.unlock")})]}),j&&e.jsx("p",{className:"mt-2 text-sm text-red-600",role:"alert",children:s("downloadsPage.wrongPassword")})]}),e.jsx("div",{className:"space-y-4",children:t==null?void 0:t.map((a,l)=>{const P=K[_(a.file_name)];return e.jsx(D,{index:l%4,className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:e.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start",children:[e.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-brand-500/10 text-brand-600 dark:text-brand-400",children:e.jsx(P,{className:"h-6 w-6","aria-hidden":"true"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:a.title}),a.description&&e.jsx("p",{className:"mt-1 whitespace-pre-line text-sm text-neutral-600 dark:text-neutral-300",children:a.description}),e.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:[E(a.file_name).toUpperCase()," · ",F(a.file_size,k==="de"?"de-DE":"en-US")]}),L(a.file_name)&&e.jsx("audio",{controls:!0,preload:"none",src:a.file_path,className:"mt-3 w-full"})]}),e.jsxs("a",{href:a.file_path,download:a.file_name,className:"inline-flex shrink-0 items-center justify-center gap-2 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:[e.jsx(A,{className:"h-4 w-4","aria-hidden":"true"}),s("downloadsPage.download")]})]})},a.id)})})]})}export{W as default};
+import{r,u as y,b as v,j as e,e as S,R as D,c as I}from"./index-ByR_n0g5.js";import{f as _,a as E,b as F,i as L}from"./downloads-B9pqFegV.js";import{L as C,F as p,a as R,b as T,c as U,M,D as A}from"./music-CzZVX9lt.js";const K={audio:M,video:U,pdf:p,image:T,archive:R,document:p},n="hifi-downloads-password",z=()=>{try{return localStorage.getItem(n)||""}catch{return""}},f=t=>{try{t?localStorage.setItem(n,t):localStorage.removeItem(n)}catch{}},g=t=>I.get("/downloads",t?{headers:{"X-Download-Password":encodeURIComponent(t)}}:void 0);function W(){const[t,i]=r.useState(null),[c,x]=r.useState(!1),[o,b]=r.useState(""),[j,m]=r.useState(!1),[u,h]=r.useState(!1),[d,w]=r.useState(null),{t:s,language:k}=y();r.useEffect(()=>{const a=z();g(a).then(l=>{l.locked?(a&&f(""),x(!0)):i(l.items)}).catch(l=>w(l))},[]);const N=async a=>{a.preventDefault(),h(!0),m(!1);try{const l=await g(o);l.locked?m(!0):(f(o),x(!1),i(l.items))}catch(l){w(l.message)}finally{h(!1)}};return v({title:s("downloadsPage.metaTitle"),description:s("downloadsPage.metaDescription"),path:"/downloads"}),e.jsxs("div",{className:"mx-auto max-w-4xl px-4 py-12 sm:px-6",children:[e.jsx("h1",{className:"mb-2 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:s("downloadsPage.title")}),e.jsx("p",{className:"mb-10 max-w-2xl text-neutral-600 dark:text-neutral-300",children:s("downloadsPage.intro")}),d&&e.jsx("p",{className:"text-red-600",children:typeof d=="string"?d:S(d,s)}),!d&&!c&&t===null&&e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("downloadsPage.loading")}),(t==null?void 0:t.length)===0&&e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("downloadsPage.empty")}),c&&e.jsxs("form",{onSubmit:N,className:"max-w-md rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[e.jsx(C,{className:"h-5 w-5 text-brand-500","aria-hidden":"true"}),e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:s("downloadsPage.lockedTitle")})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:s("downloadsPage.lockedText")}),e.jsx("label",{htmlFor:"downloads-password",className:"sr-only",children:s("downloadsPage.passwordLabel")}),e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[e.jsx("input",{id:"downloads-password",type:"password",required:!0,autoComplete:"off",value:o,onChange:a=>b(a.target.value),placeholder:s("downloadsPage.passwordLabel"),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm text-neutral-900 dark:border-neutral-700 dark:bg-neutral-950 dark:text-white"}),e.jsx("button",{type:"submit",disabled:u,className:"shrink-0 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:s(u?"downloadsPage.unlocking":"downloadsPage.unlock")})]}),j&&e.jsx("p",{className:"mt-2 text-sm text-red-600",role:"alert",children:s("downloadsPage.wrongPassword")})]}),e.jsx("div",{className:"space-y-4",children:t==null?void 0:t.map((a,l)=>{const P=K[_(a.file_name)];return e.jsx(D,{index:l%4,className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:e.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-start",children:[e.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-brand-500/10 text-brand-600 dark:text-brand-400",children:e.jsx(P,{className:"h-6 w-6","aria-hidden":"true"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:a.title}),a.description&&e.jsx("p",{className:"mt-1 whitespace-pre-line text-sm text-neutral-600 dark:text-neutral-300",children:a.description}),e.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:[E(a.file_name).toUpperCase()," · ",F(a.file_size,k==="de"?"de-DE":"en-US")]}),L(a.file_name)&&e.jsx("audio",{controls:!0,preload:"none",src:a.file_path,className:"mt-3 w-full"})]}),e.jsxs("a",{href:a.file_path,download:a.file_name,className:"inline-flex shrink-0 items-center justify-center gap-2 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:[e.jsx(A,{className:"h-4 w-4","aria-hidden":"true"}),s("downloadsPage.download")]})]})},a.id)})})]})}export{W as default};
diff --git a/hifi/assets/EmailSettings-Co9DiTkD.js b/hifi/assets/EmailSettings-1PwpumI2.js
similarity index 98%
rename from hifi/assets/EmailSettings-Co9DiTkD.js
rename to hifi/assets/EmailSettings-1PwpumI2.js
index 34e0eab..0244a4c 100644
--- a/hifi/assets/EmailSettings-Co9DiTkD.js
+++ b/hifi/assets/EmailSettings-1PwpumI2.js
@@ -1,2 +1,2 @@
-import{r,c as m,j as e}from"./index-BlspSYV0.js";import E from"./RichTextEditor-CO4xzKJO.js";function d(a){if(!a)return"";if(/<[a-z][\s\S]*>/i.test(a))return a;const l=document.createElement("div");return l.textContent=a,`${l.innerHTML.replace(/\n/g,"
")}
`}const H={mail_host:"",mail_port:587,mail_username:"",mail_password:"",mail_encryption:"tls",mail_from_email:"",mail_from_name:"",mail_notify_email:"",mail_customer_subject:"",mail_customer_body:"",mail_owner_subject:"",mail_owner_body:""},z=[["{{name}}","Name des Kunden"],["{{email}}","E-Mail des Kunden"],["{{phone}}","Telefonnummer"],["{{vin}}","Fahrgestellnummer (FIN)"],["{{message}}","Nachricht des Kunden"],["{{brand}}","Marke"],["{{model}}","Modell"],["{{package}}","Paket"],["{{product}}","Produkt"],["{{upgrades}}","Gewählte Upgrades"]];function T(){return e.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5",children:z.map(([a,l])=>e.jsx("span",{title:l,className:"rounded-md bg-neutral-100 px-2 py-1 font-mono text-xs text-neutral-600 dark:bg-neutral-800 dark:text-neutral-300",children:a},a))})}function F(){const[a,l]=r.useState(H),[u,c]=r.useState(!1),[C,P]=r.useState(!0),[x,M]=r.useState(!1),[b,h]=r.useState(!1),[p,g]=r.useState(""),[B,o]=r.useState(!1),[f,k]=r.useState(!1),[_,j]=r.useState(""),[w,v]=r.useState(""),[y,N]=r.useState(""),[i,S]=r.useState(null);r.useEffect(()=>{m.get("/settings/mail").then(t=>{l({...t,mail_password:"",mail_customer_body:d(t.mail_customer_body),mail_owner_body:d(t.mail_owner_body)}),c(t.has_password)}).finally(()=>P(!1))},[]);const s=(t,n)=>{l(A=>({...A,[t]:n})),o(!1)},K=async t=>{t.preventDefault(),h(!0),g(""),o(!1);try{const n=await m.post("/settings/mail",a);l({...n,mail_password:"",mail_customer_body:d(n.mail_customer_body),mail_owner_body:d(n.mail_owner_body)}),c(n.has_password),o(!0)}catch(n){g(n.message)}finally{h(!1)}},L=async()=>{k(!0),j(""),v(""),N(""),S(null);try{const t=await m.post("/settings/mail/test",a);v(`Testmail gesendet an ${t.sent_to}. Der Server hat die Mail angenommen - prüfe auch den Spam-Ordner, das ist noch keine Garantie für die Zustellung.`),N(t.warning||""),S(t.smtp_log||null)}catch(t){j(t.message)}finally{k(!1)}};return C?e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsxs("form",{onSubmit:K,className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"SMTP-Server"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Zugangsdaten deines Mail-Postfachs oder Transactional-Mail-Anbieters. Solange kein Server eingetragen ist, werden keine E-Mails verschickt (Kontaktanfragen werden trotzdem in der Datenbank gespeichert)."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-[1fr_120px]",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Server (Host)"}),e.jsx("input",{value:a.mail_host,onChange:t=>s("mail_host",t.target.value),placeholder:"smtp.beispiel.de",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Port"}),e.jsx("input",{type:"number",value:a.mail_port,onChange:t=>s("mail_port",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Verschlüsselung"}),e.jsxs("select",{value:a.mail_encryption,onChange:t=>s("mail_encryption",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"tls",children:"STARTTLS"}),e.jsx("option",{value:"ssl",children:"SSL"}),e.jsx("option",{value:"none",children:"Keine"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzername"}),e.jsx("input",{value:a.mail_username,onChange:t=>s("mail_username",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Passwort ",u?"(leer lassen = unverändert)":""]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:x?"text":"password",value:a.mail_password,onChange:t=>s("mail_password",t.target.value),placeholder:u?"••••••••":"",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("button",{type:"button",onClick:()=>M(t=>!t),className:"shrink-0 rounded-md border border-neutral-300 px-3 text-sm dark:border-neutral-700",children:x?"Verbergen":"Anzeigen"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Absender-E-Mail"}),e.jsx("input",{type:"email",value:a.mail_from_email,onChange:t=>s("mail_from_email",t.target.value),placeholder:"info@hifi-planet-amorbach.de",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Absender-Name"}),e.jsx("input",{value:a.mail_from_name,onChange:t=>s("mail_from_name",t.target.value),placeholder:"HifiPlanet",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]}),e.jsxs("div",{className:"mt-4 border-t border-neutral-200 pt-4 dark:border-neutral-800",children:[_&&e.jsx("p",{className:"mb-2 whitespace-pre-wrap text-sm text-red-600",children:_}),w&&e.jsx("p",{className:"mb-2 text-sm text-green-600 dark:text-green-400",children:w}),y&&e.jsx("p",{className:"mb-2 rounded-md bg-amber-50 p-2 text-sm text-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:y}),e.jsx("button",{type:"button",onClick:L,disabled:f,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:f?"Sende Testmail…":"Verbindung testen"}),i&&i.length>0&&e.jsxs("details",{className:"mt-3",children:[e.jsx("summary",{className:"cursor-pointer text-xs text-neutral-500 dark:text-neutral-400",children:"SMTP-Protokoll anzeigen"}),e.jsx("pre",{className:"mt-2 max-h-64 overflow-auto rounded-md bg-neutral-900 p-3 text-xs text-neutral-200",children:i.join(`
+import{r,c as m,j as e}from"./index-ByR_n0g5.js";import E from"./RichTextEditor-DOxjC-7q.js";function d(a){if(!a)return"";if(/<[a-z][\s\S]*>/i.test(a))return a;const l=document.createElement("div");return l.textContent=a,`${l.innerHTML.replace(/\n/g,"
")}
`}const H={mail_host:"",mail_port:587,mail_username:"",mail_password:"",mail_encryption:"tls",mail_from_email:"",mail_from_name:"",mail_notify_email:"",mail_customer_subject:"",mail_customer_body:"",mail_owner_subject:"",mail_owner_body:""},z=[["{{name}}","Name des Kunden"],["{{email}}","E-Mail des Kunden"],["{{phone}}","Telefonnummer"],["{{vin}}","Fahrgestellnummer (FIN)"],["{{message}}","Nachricht des Kunden"],["{{brand}}","Marke"],["{{model}}","Modell"],["{{package}}","Paket"],["{{product}}","Produkt"],["{{upgrades}}","Gewählte Upgrades"]];function T(){return e.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5",children:z.map(([a,l])=>e.jsx("span",{title:l,className:"rounded-md bg-neutral-100 px-2 py-1 font-mono text-xs text-neutral-600 dark:bg-neutral-800 dark:text-neutral-300",children:a},a))})}function F(){const[a,l]=r.useState(H),[u,c]=r.useState(!1),[C,P]=r.useState(!0),[x,M]=r.useState(!1),[b,h]=r.useState(!1),[p,g]=r.useState(""),[B,o]=r.useState(!1),[f,k]=r.useState(!1),[_,j]=r.useState(""),[w,v]=r.useState(""),[y,N]=r.useState(""),[i,S]=r.useState(null);r.useEffect(()=>{m.get("/settings/mail").then(t=>{l({...t,mail_password:"",mail_customer_body:d(t.mail_customer_body),mail_owner_body:d(t.mail_owner_body)}),c(t.has_password)}).finally(()=>P(!1))},[]);const s=(t,n)=>{l(A=>({...A,[t]:n})),o(!1)},K=async t=>{t.preventDefault(),h(!0),g(""),o(!1);try{const n=await m.post("/settings/mail",a);l({...n,mail_password:"",mail_customer_body:d(n.mail_customer_body),mail_owner_body:d(n.mail_owner_body)}),c(n.has_password),o(!0)}catch(n){g(n.message)}finally{h(!1)}},L=async()=>{k(!0),j(""),v(""),N(""),S(null);try{const t=await m.post("/settings/mail/test",a);v(`Testmail gesendet an ${t.sent_to}. Der Server hat die Mail angenommen - prüfe auch den Spam-Ordner, das ist noch keine Garantie für die Zustellung.`),N(t.warning||""),S(t.smtp_log||null)}catch(t){j(t.message)}finally{k(!1)}};return C?e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsxs("form",{onSubmit:K,className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"SMTP-Server"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Zugangsdaten deines Mail-Postfachs oder Transactional-Mail-Anbieters. Solange kein Server eingetragen ist, werden keine E-Mails verschickt (Kontaktanfragen werden trotzdem in der Datenbank gespeichert)."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-[1fr_120px]",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Server (Host)"}),e.jsx("input",{value:a.mail_host,onChange:t=>s("mail_host",t.target.value),placeholder:"smtp.beispiel.de",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Port"}),e.jsx("input",{type:"number",value:a.mail_port,onChange:t=>s("mail_port",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Verschlüsselung"}),e.jsxs("select",{value:a.mail_encryption,onChange:t=>s("mail_encryption",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"tls",children:"STARTTLS"}),e.jsx("option",{value:"ssl",children:"SSL"}),e.jsx("option",{value:"none",children:"Keine"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzername"}),e.jsx("input",{value:a.mail_username,onChange:t=>s("mail_username",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Passwort ",u?"(leer lassen = unverändert)":""]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{type:x?"text":"password",value:a.mail_password,onChange:t=>s("mail_password",t.target.value),placeholder:u?"••••••••":"",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("button",{type:"button",onClick:()=>M(t=>!t),className:"shrink-0 rounded-md border border-neutral-300 px-3 text-sm dark:border-neutral-700",children:x?"Verbergen":"Anzeigen"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Absender-E-Mail"}),e.jsx("input",{type:"email",value:a.mail_from_email,onChange:t=>s("mail_from_email",t.target.value),placeholder:"info@hifi-planet-amorbach.de",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Absender-Name"}),e.jsx("input",{value:a.mail_from_name,onChange:t=>s("mail_from_name",t.target.value),placeholder:"HifiPlanet",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]}),e.jsxs("div",{className:"mt-4 border-t border-neutral-200 pt-4 dark:border-neutral-800",children:[_&&e.jsx("p",{className:"mb-2 whitespace-pre-wrap text-sm text-red-600",children:_}),w&&e.jsx("p",{className:"mb-2 text-sm text-green-600 dark:text-green-400",children:w}),y&&e.jsx("p",{className:"mb-2 rounded-md bg-amber-50 p-2 text-sm text-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:y}),e.jsx("button",{type:"button",onClick:L,disabled:f,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:f?"Sende Testmail…":"Verbindung testen"}),i&&i.length>0&&e.jsxs("details",{className:"mt-3",children:[e.jsx("summary",{className:"cursor-pointer text-xs text-neutral-500 dark:text-neutral-400",children:"SMTP-Protokoll anzeigen"}),e.jsx("pre",{className:"mt-2 max-h-64 overflow-auto rounded-md bg-neutral-900 p-3 text-xs text-neutral-200",children:i.join(`
`)})]})]})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Empfänger"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"An diese Adresse geht die Benachrichtigung bei jeder neuen Kontaktanfrage."}),e.jsx("input",{type:"email",value:a.mail_notify_email,onChange:t=>s("mail_notify_email",t.target.value),placeholder:"info@hifi-planet-amorbach.de",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"E-Mail an den Kunden (Bestätigung)"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Geht automatisch an den Kunden, sobald er eine Kontaktanfrage abschickt."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Betreff"}),e.jsx("input",{value:a.mail_customer_subject,onChange:t=>s("mail_customer_subject",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(E,{label:"Text",value:a.mail_customer_body,onChange:t=>s("mail_customer_body",t)})]}),e.jsx(T,{})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"E-Mail an den Shop (Benachrichtigung)"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Geht an die oben eingestellte Empfänger-Adresse, sobald eine neue Kontaktanfrage eingeht."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Betreff"}),e.jsx("input",{value:a.mail_owner_subject,onChange:t=>s("mail_owner_subject",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(E,{label:"Text",value:a.mail_owner_body,onChange:t=>s("mail_owner_body",t)})]}),e.jsx(T,{})]}),p&&e.jsx("p",{className:"text-sm text-red-600",children:p}),B&&e.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsx("button",{type:"submit",disabled:b,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:b?"Speichere…":"Speichern"})]})}export{F as default};
diff --git a/hifi/assets/ExportImportSettings-C7wRrxdF.js b/hifi/assets/ExportImportSettings-C4NURXDO.js
similarity index 99%
rename from hifi/assets/ExportImportSettings-C7wRrxdF.js
rename to hifi/assets/ExportImportSettings-C4NURXDO.js
index d16b6ba..38c667c 100644
--- a/hifi/assets/ExportImportSettings-C7wRrxdF.js
+++ b/hifi/assets/ExportImportSettings-C4NURXDO.js
@@ -1 +1 @@
-import{r as n,j as e,A as D,c as F}from"./index-BlspSYV0.js";const p=[{key:"catalog",label:"Fahrzeug-Katalog",hint:"Marken, Modelle (inkl. Bilder), Pakete, Produkte, Upgrades",tables:["brands","car_models","packages","package_products","package_upgrades"]},{key:"services",label:"Leistungen",hint:"Die Leistungen-Übersicht",tables:["services"]},{key:"faqs",label:"FAQs",hint:"Häufig gestellte Fragen",tables:["faqs"]},{key:"gallery",label:"Bildergalerie",hint:"Galerie-Marken, Projekte und Fotos (inkl. Bilder)",tables:["gallery_brands","gallery_projects","gallery_photos"]},{key:"settings",label:"Einstellungen",hint:"Telefon/Adresse/Öffnungszeiten, Logo, Wartungsmodus-Texte, Kachel-Design, Mail-Vorlagen (ohne Zugangsdaten)",tables:["app_settings"]},{key:"legal",label:"Rechtstexte",hint:"Impressum, Datenschutzerklärung, AGB",tables:["legal_pages"]},{key:"home",label:"Startseiten-Texte",hint:'Hero, YouTube-Sektion, Handwerk, Beratung, Einblicke, "Mehr als Car-Hifi"',tables:["home_sections"]},{key:"partners",label:"Partner",hint:"Marken-Logozeile auf der Startseite (inkl. Logos)",tables:["partners"]},{key:"translations",label:"Englische Texte",hint:"Englische Fassungen von Leistungen, Paketen und Upgrades",tables:["content_translations"]},{key:"permissions",label:"Berechtigungsgruppen",hint:"Rollen-Vorlagen und ihre Rechte (ohne Benutzerkonten selbst)",tables:["permission_groups","permission_group_permissions"]}],z={brands:"Marken",car_models:"Modelle",packages:"Pakete",package_products:"Produkte",package_upgrades:"Upgrades",services:"Leistungen",faqs:"FAQs",gallery_brands:"Galerie-Marken",gallery_projects:"Galerie-Projekte",gallery_photos:"Galerie-Fotos",app_settings:"Einstellungen",legal_pages:"Rechtstexte",home_sections:"Startseiten-Texte",partners:"Partner",content_translations:"Englische Texte",permission_groups:"Berechtigungsgruppen",permission_group_permissions:"Berechtigungsgruppen-Rechte",admin_users:"Benutzerkonten",admin_user_permissions:"Benutzer-Einzelrechte",admin_user_groups:"Benutzer-Gruppenzuweisungen"},L=(l,d)=>{if(!l)return null;const i=d.map(s=>[s,Array.isArray(l[s])?l[s].length:0]).filter(([,s])=>s>0).map(([s,c])=>`${c} ${z[s]||s}`);return i.length?i.join(", "):"leer in dieser Datei"};function C(){const[l,d]=n.useState(null),[i,s]=n.useState(null),[c,y]=n.useState(""),[o,w]=n.useState(()=>new Set(p.map(t=>t.key))),[N,E]=n.useState(!1),[g,m]=n.useState(!1),[h,_]=n.useState(!1),[S,B]=n.useState(!1),[u,x]=n.useState(null),[v,b]=n.useState(""),A=async t=>{var a;const r=((a=t.target.files)==null?void 0:a[0])||null;if(d(r),x(null),b(""),s(null),y(""),w(new Set(p.map(f=>f.key))),m(!1),!!r)try{const f=await r.text(),j=JSON.parse(f);if(!j||typeof j.data!="object")throw new Error("kein gültiges Export-Format");s(j.data)}catch{y("Datei konnte nicht gelesen werden – Vorschau der Inhalte nicht möglich. Import würde trotzdem versucht (alle Bereiche).")}},I=t=>{w(r=>{const a=new Set(r);return a.has(t)?a.delete(t):a.add(t),a})},P=async t=>{if(t.preventDefault(),!(!l||!h||o.size===0)){B(!0),b(""),x(null);try{const r=new FormData;r.append("file",l),r.append("sections",JSON.stringify([...o])),r.append("include_accounts",g?"1":"0");const a=await F.post("/settings/import",r);x(a),d(null),s(null),_(!1),m(!1),t.target.reset()}catch(r){b(r.message)}finally{B(!1)}}},k=p.filter(t=>o.has(t.key)).map(t=>t.label);return g&&k.push("Benutzerkonten"),e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Daten exportieren"}),e.jsxs("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:["Lädt eine Datei mit allen Marken, Modellen, Paketen, Produkten, Upgrades, Leistungen, FAQs, der kompletten Bildergalerie (inkl. Bilder), den Einstellungen und den Berechtigungsgruppen herunter (ohne Zugangsdaten wie SMTP-Passwort oder API-Keys – die müssen auf jedem Server neu eingetragen werden). Kontaktanfragen sind bewusst ",e.jsx("strong",{children:"nicht"})," enthalten."]}),e.jsxs("label",{className:"mb-3 flex items-start gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:N,onChange:t=>E(t.target.checked),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"Benutzerkonten mit exportieren (enthält Passwort-Hashes und 2FA-Geheimnisse – nur für Backups an einem vertrauenswürdigen Ort)"]}),e.jsx("a",{href:`${D}/settings/export${N?"?include_accounts=1":""}`,className:"inline-block rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:"Jetzt exportieren"})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Daten importieren"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Lädt eine zuvor exportierte Datei auf diesen Server. Ersetzt dabei die ausgewählten Bereiche komplett durch den Inhalt der Datei – das kann nicht rückgängig gemacht werden. Kontaktanfragen bleiben immer unangetastet, Benutzerkonten nur wenn unten explizit angehakt."}),e.jsxs("form",{onSubmit:P,className:"space-y-4",children:[e.jsx("input",{type:"file",accept:"application/json,.json",onChange:A,className:"text-sm"}),l&&e.jsxs("div",{className:"rounded-lg border border-neutral-200 dark:border-neutral-700",children:[e.jsx("div",{className:"border-b border-neutral-200 px-4 py-2 text-xs font-semibold uppercase tracking-wide text-neutral-500 dark:border-neutral-700 dark:text-neutral-400",children:"Was soll importiert werden?"}),c&&e.jsx("p",{className:"px-4 pt-3 text-sm text-amber-600 dark:text-amber-400",children:c}),e.jsxs("div",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[p.map(t=>e.jsxs("label",{className:"flex cursor-pointer items-start gap-3 px-4 py-3 hover:bg-neutral-50 dark:hover:bg-neutral-800/50",children:[e.jsx("input",{type:"checkbox",checked:o.has(t.key),onChange:()=>I(t.key),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),e.jsxs("span",{className:"flex-1",children:[e.jsx("span",{className:"block text-sm font-medium text-neutral-800 dark:text-neutral-100",children:t.label}),e.jsx("span",{className:"block text-xs text-neutral-500 dark:text-neutral-400",children:i?L(i,t.tables):t.hint})]})]},t.key)),e.jsxs("label",{className:"flex cursor-pointer items-start gap-3 px-4 py-3 hover:bg-neutral-50 dark:hover:bg-neutral-800/50",children:[e.jsx("input",{type:"checkbox",checked:g,onChange:t=>m(t.target.checked),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),e.jsxs("span",{className:"flex-1",children:[e.jsx("span",{className:"block text-sm font-medium text-neutral-800 dark:text-neutral-100",children:"Benutzerkonten"}),e.jsx("span",{className:"block text-xs text-neutral-500 dark:text-neutral-400",children:'Nur wenn die Datei mit "Benutzerkonten mit exportieren" erstellt wurde. Ersetzt auch dein eigenes Konto – danach ggf. mit den Zugangsdaten aus der Export-Datei neu einloggen.'})]})]})]})]}),e.jsxs("label",{className:"flex items-start gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:h,onChange:t=>_(t.target.checked),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"Mir ist bewusst, dass dies"," ",k.length?e.jsx("strong",{children:k.join(", ")}):"die ausgewählten Bereiche"," auf diesem Server unwiderruflich ersetzt."]}),e.jsx("button",{type:"submit",disabled:!l||!h||S||o.size===0,className:"rounded-md bg-red-600 px-4 py-2 text-sm font-semibold text-white hover:bg-red-700 disabled:opacity-50",children:S?"Importiere…":"Importieren"})]}),v&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:v}),u&&e.jsxs("div",{className:"mt-3 rounded-md bg-green-50 p-3 text-sm text-green-800 dark:bg-green-900/20 dark:text-green-300",children:[e.jsx("p",{className:"mb-1 font-semibold",children:"Import erfolgreich:"}),e.jsxs("ul",{className:"list-disc pl-5",children:[Object.entries(u.counts).map(([t,r])=>e.jsxs("li",{children:[r," ",z[t]||t]},t)),u.images_restored>0&&e.jsxs("li",{children:[u.images_restored," Bilder wiederhergestellt"]})]})]})]})]})}export{C as default};
+import{r as n,j as e,A as D,c as F}from"./index-ByR_n0g5.js";const p=[{key:"catalog",label:"Fahrzeug-Katalog",hint:"Marken, Modelle (inkl. Bilder), Pakete, Produkte, Upgrades",tables:["brands","car_models","packages","package_products","package_upgrades"]},{key:"services",label:"Leistungen",hint:"Die Leistungen-Übersicht",tables:["services"]},{key:"faqs",label:"FAQs",hint:"Häufig gestellte Fragen",tables:["faqs"]},{key:"gallery",label:"Bildergalerie",hint:"Galerie-Marken, Projekte und Fotos (inkl. Bilder)",tables:["gallery_brands","gallery_projects","gallery_photos"]},{key:"settings",label:"Einstellungen",hint:"Telefon/Adresse/Öffnungszeiten, Logo, Wartungsmodus-Texte, Kachel-Design, Mail-Vorlagen (ohne Zugangsdaten)",tables:["app_settings"]},{key:"legal",label:"Rechtstexte",hint:"Impressum, Datenschutzerklärung, AGB",tables:["legal_pages"]},{key:"home",label:"Startseiten-Texte",hint:'Hero, YouTube-Sektion, Handwerk, Beratung, Einblicke, "Mehr als Car-Hifi"',tables:["home_sections"]},{key:"partners",label:"Partner",hint:"Marken-Logozeile auf der Startseite (inkl. Logos)",tables:["partners"]},{key:"translations",label:"Englische Texte",hint:"Englische Fassungen von Leistungen, Paketen und Upgrades",tables:["content_translations"]},{key:"permissions",label:"Berechtigungsgruppen",hint:"Rollen-Vorlagen und ihre Rechte (ohne Benutzerkonten selbst)",tables:["permission_groups","permission_group_permissions"]}],z={brands:"Marken",car_models:"Modelle",packages:"Pakete",package_products:"Produkte",package_upgrades:"Upgrades",services:"Leistungen",faqs:"FAQs",gallery_brands:"Galerie-Marken",gallery_projects:"Galerie-Projekte",gallery_photos:"Galerie-Fotos",app_settings:"Einstellungen",legal_pages:"Rechtstexte",home_sections:"Startseiten-Texte",partners:"Partner",content_translations:"Englische Texte",permission_groups:"Berechtigungsgruppen",permission_group_permissions:"Berechtigungsgruppen-Rechte",admin_users:"Benutzerkonten",admin_user_permissions:"Benutzer-Einzelrechte",admin_user_groups:"Benutzer-Gruppenzuweisungen"},L=(l,d)=>{if(!l)return null;const i=d.map(s=>[s,Array.isArray(l[s])?l[s].length:0]).filter(([,s])=>s>0).map(([s,c])=>`${c} ${z[s]||s}`);return i.length?i.join(", "):"leer in dieser Datei"};function C(){const[l,d]=n.useState(null),[i,s]=n.useState(null),[c,y]=n.useState(""),[o,w]=n.useState(()=>new Set(p.map(t=>t.key))),[N,E]=n.useState(!1),[g,m]=n.useState(!1),[h,_]=n.useState(!1),[S,B]=n.useState(!1),[u,x]=n.useState(null),[v,b]=n.useState(""),A=async t=>{var a;const r=((a=t.target.files)==null?void 0:a[0])||null;if(d(r),x(null),b(""),s(null),y(""),w(new Set(p.map(f=>f.key))),m(!1),!!r)try{const f=await r.text(),j=JSON.parse(f);if(!j||typeof j.data!="object")throw new Error("kein gültiges Export-Format");s(j.data)}catch{y("Datei konnte nicht gelesen werden – Vorschau der Inhalte nicht möglich. Import würde trotzdem versucht (alle Bereiche).")}},I=t=>{w(r=>{const a=new Set(r);return a.has(t)?a.delete(t):a.add(t),a})},P=async t=>{if(t.preventDefault(),!(!l||!h||o.size===0)){B(!0),b(""),x(null);try{const r=new FormData;r.append("file",l),r.append("sections",JSON.stringify([...o])),r.append("include_accounts",g?"1":"0");const a=await F.post("/settings/import",r);x(a),d(null),s(null),_(!1),m(!1),t.target.reset()}catch(r){b(r.message)}finally{B(!1)}}},k=p.filter(t=>o.has(t.key)).map(t=>t.label);return g&&k.push("Benutzerkonten"),e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Daten exportieren"}),e.jsxs("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:["Lädt eine Datei mit allen Marken, Modellen, Paketen, Produkten, Upgrades, Leistungen, FAQs, der kompletten Bildergalerie (inkl. Bilder), den Einstellungen und den Berechtigungsgruppen herunter (ohne Zugangsdaten wie SMTP-Passwort oder API-Keys – die müssen auf jedem Server neu eingetragen werden). Kontaktanfragen sind bewusst ",e.jsx("strong",{children:"nicht"})," enthalten."]}),e.jsxs("label",{className:"mb-3 flex items-start gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:N,onChange:t=>E(t.target.checked),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"Benutzerkonten mit exportieren (enthält Passwort-Hashes und 2FA-Geheimnisse – nur für Backups an einem vertrauenswürdigen Ort)"]}),e.jsx("a",{href:`${D}/settings/export${N?"?include_accounts=1":""}`,className:"inline-block rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:"Jetzt exportieren"})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Daten importieren"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Lädt eine zuvor exportierte Datei auf diesen Server. Ersetzt dabei die ausgewählten Bereiche komplett durch den Inhalt der Datei – das kann nicht rückgängig gemacht werden. Kontaktanfragen bleiben immer unangetastet, Benutzerkonten nur wenn unten explizit angehakt."}),e.jsxs("form",{onSubmit:P,className:"space-y-4",children:[e.jsx("input",{type:"file",accept:"application/json,.json",onChange:A,className:"text-sm"}),l&&e.jsxs("div",{className:"rounded-lg border border-neutral-200 dark:border-neutral-700",children:[e.jsx("div",{className:"border-b border-neutral-200 px-4 py-2 text-xs font-semibold uppercase tracking-wide text-neutral-500 dark:border-neutral-700 dark:text-neutral-400",children:"Was soll importiert werden?"}),c&&e.jsx("p",{className:"px-4 pt-3 text-sm text-amber-600 dark:text-amber-400",children:c}),e.jsxs("div",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[p.map(t=>e.jsxs("label",{className:"flex cursor-pointer items-start gap-3 px-4 py-3 hover:bg-neutral-50 dark:hover:bg-neutral-800/50",children:[e.jsx("input",{type:"checkbox",checked:o.has(t.key),onChange:()=>I(t.key),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),e.jsxs("span",{className:"flex-1",children:[e.jsx("span",{className:"block text-sm font-medium text-neutral-800 dark:text-neutral-100",children:t.label}),e.jsx("span",{className:"block text-xs text-neutral-500 dark:text-neutral-400",children:i?L(i,t.tables):t.hint})]})]},t.key)),e.jsxs("label",{className:"flex cursor-pointer items-start gap-3 px-4 py-3 hover:bg-neutral-50 dark:hover:bg-neutral-800/50",children:[e.jsx("input",{type:"checkbox",checked:g,onChange:t=>m(t.target.checked),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),e.jsxs("span",{className:"flex-1",children:[e.jsx("span",{className:"block text-sm font-medium text-neutral-800 dark:text-neutral-100",children:"Benutzerkonten"}),e.jsx("span",{className:"block text-xs text-neutral-500 dark:text-neutral-400",children:'Nur wenn die Datei mit "Benutzerkonten mit exportieren" erstellt wurde. Ersetzt auch dein eigenes Konto – danach ggf. mit den Zugangsdaten aus der Export-Datei neu einloggen.'})]})]})]})]}),e.jsxs("label",{className:"flex items-start gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:h,onChange:t=>_(t.target.checked),className:"mt-0.5 h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"Mir ist bewusst, dass dies"," ",k.length?e.jsx("strong",{children:k.join(", ")}):"die ausgewählten Bereiche"," auf diesem Server unwiderruflich ersetzt."]}),e.jsx("button",{type:"submit",disabled:!l||!h||S||o.size===0,className:"rounded-md bg-red-600 px-4 py-2 text-sm font-semibold text-white hover:bg-red-700 disabled:opacity-50",children:S?"Importiere…":"Importieren"})]}),v&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:v}),u&&e.jsxs("div",{className:"mt-3 rounded-md bg-green-50 p-3 text-sm text-green-800 dark:bg-green-900/20 dark:text-green-300",children:[e.jsx("p",{className:"mb-1 font-semibold",children:"Import erfolgreich:"}),e.jsxs("ul",{className:"list-disc pl-5",children:[Object.entries(u.counts).map(([t,r])=>e.jsxs("li",{children:[r," ",z[t]||t]},t)),u.images_restored>0&&e.jsxs("li",{children:[u.images_restored," Bilder wiederhergestellt"]})]})]})]})]})}export{C as default};
diff --git a/hifi/assets/Faqs-XZAy4Qhr.js b/hifi/assets/Faqs-Dw2czuAP.js
similarity index 95%
rename from hifi/assets/Faqs-XZAy4Qhr.js
rename to hifi/assets/Faqs-Dw2czuAP.js
index af590ad..7249d12 100644
--- a/hifi/assets/Faqs-XZAy4Qhr.js
+++ b/hifi/assets/Faqs-Dw2czuAP.js
@@ -1 +1 @@
-import{q as F,r as l,s as S,j as e,c as m}from"./index-BlspSYV0.js";import{S as E,s as R}from"./SortableList-DwfJpzeR.js";import{V as A}from"./ViewOnSite-BPLJTKOt.js";import"./sortable.esm-D1g5h7xA.js";import"./grip-vertical-Bv_4pkjN.js";const h={question_de:"",answer_de:"",question_en:"",answer_en:"",sort_order:0};function O(){const i=F(),[o,c]=l.useState([]),[r,d]=l.useState(h),[N,w]=l.useState(h),[n,j]=l.useState(null),[k,b]=l.useState(""),g=l.useRef(null);S(JSON.stringify(r)!==JSON.stringify(N),"faqs");const p=()=>m.get("/faqs").then(c);l.useEffect(p,[]);const y=t=>{const s={question_de:t.question_de,answer_de:t.answer_de,question_en:t.question_en,answer_en:t.answer_en,sort_order:t.sort_order};j(t.id),d(s),w(s),b(""),requestAnimationFrame(()=>{var a,u,x;(a=g.current)==null||a.scrollIntoView({behavior:"smooth",block:"start"}),(x=(u=g.current)==null?void 0:u.querySelector("input"))==null||x.focus({preventScroll:!0})})},f=()=>{j(null),d(h),w(h)},v=async t=>{t.preventDefault(),b("");const s={...r,sort_order:Number(r.sort_order)};try{if(n)await m.put(`/faqs/${n}`,s);else{const a=o.reduce((u,x)=>Math.max(u,Number(x.sort_order)||0),0)+10;await m.post("/faqs",{...s,sort_order:a})}i.success(n?"Frage gespeichert.":"Frage angelegt."),f(),p()}catch(a){b(a.message)}},q=async t=>{if(confirm("Diese Frage wirklich löschen?"))try{await m.delete(`/faqs/${t}`),n===t&&f(),i.success("Frage gelöscht."),p()}catch(s){i.error(`Löschen fehlgeschlagen: ${s.message}`)}},_=async t=>{const s=o;c(t);try{c(await R("faqs",t)),i.success("Reihenfolge gespeichert.")}catch(a){c(s),i.error(`Reihenfolge konnte nicht gespeichert werden: ${a.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"mb-1 flex flex-wrap items-center justify-between gap-2",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Häufig gestellte Fragen"}),e.jsx(A,{to:"/#faq",label:"Auf der Startseite ansehen"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Diese Fragen erscheinen im FAQ-Bereich der Startseite, jeweils in der aktuell gewählten Sprache. Die 6 mitgelieferten Einträge sind die Standard-Einstellung – du kannst sie bearbeiten, löschen und beliebig neue hinzufügen. Reihenfolge am Griff links per Ziehen ändern."}),e.jsx("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"w-8 px-2 py-2","aria-label":"Reihenfolge"}),e.jsx("th",{className:"px-4 py-2",children:"Frage (DE)"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(E,{items:o,onReorder:_,as:"tbody",className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:(t,s)=>e.jsxs(e.Fragment,{children:[e.jsx("td",{className:"bg-white px-2 py-2 dark:bg-neutral-950",children:s}),e.jsx("td",{className:"bg-white px-4 py-2 font-medium text-neutral-800 dark:bg-neutral-950 dark:text-neutral-100",children:t.question_de}),e.jsxs("td",{className:"whitespace-nowrap bg-white px-4 py-2 text-right dark:bg-neutral-950",children:[e.jsx("button",{onClick:()=>y(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>q(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]})}),o.length===0&&e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{colSpan:3,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Fragen angelegt."})})})]})})]}),e.jsxs("form",{ref:g,onSubmit:v,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:n?"Frage bearbeiten":"Neue Frage"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Frage (Deutsch) *"}),e.jsx("input",{required:!0,value:r.question_de,onChange:t=>d({...r,question_de:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Antwort (Deutsch) *"}),e.jsx("textarea",{required:!0,rows:3,value:r.answer_de,onChange:t=>d({...r,answer_de:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Frage (Englisch) *"}),e.jsx("input",{required:!0,value:r.question_en,onChange:t=>d({...r,question_en:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Antwort (Englisch) *"}),e.jsx("textarea",{required:!0,rows:3,value:r.answer_en,onChange:t=>d({...r,answer_en:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),k&&e.jsx("p",{className:"text-sm text-red-600",children:k}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:n?"Speichern":"Anlegen"}),n&&e.jsx("button",{type:"button",onClick:f,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{O as default};
+import{q as F,r as l,s as S,j as e,c as m}from"./index-ByR_n0g5.js";import{S as E,s as R}from"./SortableList-fUokp5Er.js";import{V as A}from"./ViewOnSite-DuRTh7q1.js";import"./sortable.esm-feaRoI7N.js";import"./grip-vertical-B-w3JIIY.js";const h={question_de:"",answer_de:"",question_en:"",answer_en:"",sort_order:0};function O(){const i=F(),[o,c]=l.useState([]),[r,d]=l.useState(h),[N,w]=l.useState(h),[n,j]=l.useState(null),[k,b]=l.useState(""),g=l.useRef(null);S(JSON.stringify(r)!==JSON.stringify(N),"faqs");const p=()=>m.get("/faqs").then(c);l.useEffect(p,[]);const y=t=>{const s={question_de:t.question_de,answer_de:t.answer_de,question_en:t.question_en,answer_en:t.answer_en,sort_order:t.sort_order};j(t.id),d(s),w(s),b(""),requestAnimationFrame(()=>{var a,u,x;(a=g.current)==null||a.scrollIntoView({behavior:"smooth",block:"start"}),(x=(u=g.current)==null?void 0:u.querySelector("input"))==null||x.focus({preventScroll:!0})})},f=()=>{j(null),d(h),w(h)},v=async t=>{t.preventDefault(),b("");const s={...r,sort_order:Number(r.sort_order)};try{if(n)await m.put(`/faqs/${n}`,s);else{const a=o.reduce((u,x)=>Math.max(u,Number(x.sort_order)||0),0)+10;await m.post("/faqs",{...s,sort_order:a})}i.success(n?"Frage gespeichert.":"Frage angelegt."),f(),p()}catch(a){b(a.message)}},q=async t=>{if(confirm("Diese Frage wirklich löschen?"))try{await m.delete(`/faqs/${t}`),n===t&&f(),i.success("Frage gelöscht."),p()}catch(s){i.error(`Löschen fehlgeschlagen: ${s.message}`)}},_=async t=>{const s=o;c(t);try{c(await R("faqs",t)),i.success("Reihenfolge gespeichert.")}catch(a){c(s),i.error(`Reihenfolge konnte nicht gespeichert werden: ${a.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"mb-1 flex flex-wrap items-center justify-between gap-2",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Häufig gestellte Fragen"}),e.jsx(A,{to:"/#faq",label:"Auf der Startseite ansehen"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Diese Fragen erscheinen im FAQ-Bereich der Startseite, jeweils in der aktuell gewählten Sprache. Die 6 mitgelieferten Einträge sind die Standard-Einstellung – du kannst sie bearbeiten, löschen und beliebig neue hinzufügen. Reihenfolge am Griff links per Ziehen ändern."}),e.jsx("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"w-8 px-2 py-2","aria-label":"Reihenfolge"}),e.jsx("th",{className:"px-4 py-2",children:"Frage (DE)"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(E,{items:o,onReorder:_,as:"tbody",className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:(t,s)=>e.jsxs(e.Fragment,{children:[e.jsx("td",{className:"bg-white px-2 py-2 dark:bg-neutral-950",children:s}),e.jsx("td",{className:"bg-white px-4 py-2 font-medium text-neutral-800 dark:bg-neutral-950 dark:text-neutral-100",children:t.question_de}),e.jsxs("td",{className:"whitespace-nowrap bg-white px-4 py-2 text-right dark:bg-neutral-950",children:[e.jsx("button",{onClick:()=>y(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>q(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]})}),o.length===0&&e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{colSpan:3,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Fragen angelegt."})})})]})})]}),e.jsxs("form",{ref:g,onSubmit:v,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:n?"Frage bearbeiten":"Neue Frage"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Frage (Deutsch) *"}),e.jsx("input",{required:!0,value:r.question_de,onChange:t=>d({...r,question_de:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Antwort (Deutsch) *"}),e.jsx("textarea",{required:!0,rows:3,value:r.answer_de,onChange:t=>d({...r,answer_de:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Frage (Englisch) *"}),e.jsx("input",{required:!0,value:r.question_en,onChange:t=>d({...r,question_en:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Antwort (Englisch) *"}),e.jsx("textarea",{required:!0,rows:3,value:r.answer_en,onChange:t=>d({...r,answer_en:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),k&&e.jsx("p",{className:"text-sm text-red-600",children:k}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:n?"Speichern":"Anlegen"}),n&&e.jsx("button",{type:"button",onClick:f,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{O as default};
diff --git a/hifi/assets/GalleryBrandPage-Ds2PJMaS.js b/hifi/assets/GalleryBrandPage-BDA2wstJ.js
similarity index 96%
rename from hifi/assets/GalleryBrandPage-Ds2PJMaS.js
rename to hifi/assets/GalleryBrandPage-BDA2wstJ.js
index cdf2c7b..85a9b62 100644
--- a/hifi/assets/GalleryBrandPage-Ds2PJMaS.js
+++ b/hifi/assets/GalleryBrandPage-BDA2wstJ.js
@@ -1 +1 @@
-import{g as c,r as n,u as g,a as m,c as u,b as p,j as a,N as h,e as f,L as b,d as y,f as v}from"./index-BlspSYV0.js";function N(){const{brandSlug:r}=c(),[t,i]=n.useState(null),[l,d]=n.useState(null),{t:s}=g(),{gallery_card_text_x:o,gallery_card_text_y:x}=m();return n.useEffect(()=>{u.get(`/gallery-brands/${r}/projects`).then(i).catch(e=>d(e))},[r]),p({title:t?s("galleryBrandPage.metaTitle")(t.brand.name):s("galleryBrandPage.metaTitleFallback"),description:t?s("galleryBrandPage.metaDescription")(t.brand.name):void 0,path:`/galerie/${r}`}),l?l.status===404?a.jsx(h,{}):a.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:f(l,s)}):t?a.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[a.jsxs("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:[t.brand.name," – ",s("galleryBrandPage.titleSuffix")]}),t.projects.length===0&&a.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryBrandPage.empty")}),a.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:t.projects.map(e=>a.jsxs(b,{to:`/galerie/${r}/${e.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[e.cover_image_path?a.jsx("img",{src:e.cover_image_path,alt:e.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}):a.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),a.jsx(y,{entity:"gallery_projects",id:e.id,field:"name",lang:"de",value:e.name,className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:v(o,x,{x:0,y:100})})]},e.id))})]}):a.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:s("galleryBrandPage.loading")})}export{N as default};
+import{g as c,r as n,u as g,a as m,c as u,b as p,j as a,N as h,e as f,L as b,d as y,f as v}from"./index-ByR_n0g5.js";function N(){const{brandSlug:r}=c(),[t,i]=n.useState(null),[l,d]=n.useState(null),{t:s}=g(),{gallery_card_text_x:o,gallery_card_text_y:x}=m();return n.useEffect(()=>{u.get(`/gallery-brands/${r}/projects`).then(i).catch(e=>d(e))},[r]),p({title:t?s("galleryBrandPage.metaTitle")(t.brand.name):s("galleryBrandPage.metaTitleFallback"),description:t?s("galleryBrandPage.metaDescription")(t.brand.name):void 0,path:`/galerie/${r}`}),l?l.status===404?a.jsx(h,{}):a.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:f(l,s)}):t?a.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[a.jsxs("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:[t.brand.name," – ",s("galleryBrandPage.titleSuffix")]}),t.projects.length===0&&a.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryBrandPage.empty")}),a.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:t.projects.map(e=>a.jsxs(b,{to:`/galerie/${r}/${e.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[e.cover_image_path?a.jsx("img",{src:e.cover_image_path,alt:e.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}):a.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),a.jsx(y,{entity:"gallery_projects",id:e.id,field:"name",lang:"de",value:e.name,className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:v(o,x,{x:0,y:100})})]},e.id))})]}):a.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:s("galleryBrandPage.loading")})}export{N as default};
diff --git a/hifi/assets/GalleryBrands-DTIwD_Dw.js b/hifi/assets/GalleryBrands-DMdXRxbf.js
similarity index 93%
rename from hifi/assets/GalleryBrands-DTIwD_Dw.js
rename to hifi/assets/GalleryBrands-DMdXRxbf.js
index f338b75..7958e97 100644
--- a/hifi/assets/GalleryBrands-DTIwD_Dw.js
+++ b/hifi/assets/GalleryBrands-DMdXRxbf.js
@@ -1 +1 @@
-import{r as l,q as R,s as M,j as e,c as m}from"./index-BlspSYV0.js";import{I as F}from"./ImageUploadField-Bho12Gdh.js";import{S as C,s as E}from"./SortableList-DwfJpzeR.js";import{V as k}from"./ViewOnSite-BPLJTKOt.js";import"./resizeImage-C6PvAwh0.js";import"./sortable.esm-D1g5h7xA.js";import"./grip-vertical-Bv_4pkjN.js";const h={name:"",cover_image_path:"",sort_order:0};function V(){const[o,d]=l.useState([]),[a,c]=l.useState(h),[N,g]=l.useState(h),[s,p]=l.useState(null),[b,f]=l.useState(""),j=l.useRef(null),i=R();M(JSON.stringify(a)!==JSON.stringify(N),"gallery-brands");const x=()=>m.get("/gallery-brands").then(d);l.useEffect(()=>{x()},[]);const y=t=>{var n;const r={name:t.name,cover_image_path:t.cover_image_path||"",sort_order:t.sort_order};p(t.id),c(r),g(r),(n=j.current)==null||n.scrollIntoView({behavior:"smooth",block:"start"})},u=()=>{p(null),c(h),g(h)},v=async t=>{t.preventDefault(),f("");try{if(s)await m.put(`/gallery-brands/${s}`,a);else{const r=o.reduce((n,S)=>Math.max(n,Number(S.sort_order)||0),0)+10;await m.post("/gallery-brands",{...a,sort_order:r})}i.success(s?"Marke gespeichert.":"Marke angelegt."),u(),x()}catch(r){f(r.message)}},w=async t=>{if(confirm("Marke inkl. aller Projekte/Fotos wirklich löschen?"))try{await m.delete(`/gallery-brands/${t}`),s===t&&u(),i.success("Marke gelöscht."),x()}catch(r){i.error(`Löschen fehlgeschlagen: ${r.message}`)}},_=async t=>{const r=o;d(t);try{d(await E("gallery-brands",t)),i.success("Reihenfolge gespeichert.")}catch(n){d(r),i.error(`Reihenfolge konnte nicht gespeichert werden: ${n.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Galerie-Marken"}),e.jsx(k,{to:"/galerie"})]}),e.jsx("p",{className:"mb-3 text-sm text-neutral-500 dark:text-neutral-400",children:"Reihenfolge am Griff links per Ziehen ändern."}),e.jsxs("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:[e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"w-10 px-2 py-2",children:e.jsx("span",{className:"sr-only",children:"Reihenfolge"})}),e.jsx("th",{className:"px-4 py-2",children:"Bild"}),e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(C,{items:o,onReorder:_,as:"tbody",className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:(t,r)=>e.jsxs(e.Fragment,{children:[e.jsx("td",{className:"bg-white px-2 py-2 dark:bg-neutral-950",children:r}),e.jsx("td",{className:"bg-white px-4 py-2 dark:bg-neutral-950",children:t.cover_image_path?e.jsx("img",{src:t.cover_image_path,alt:"",className:"h-10 w-10 rounded-md object-cover"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsxs("td",{className:"bg-white px-4 py-2 font-medium text-neutral-800 dark:bg-neutral-950 dark:text-neutral-100",children:[t.name,e.jsx(k,{to:`/galerie/${t.slug}`,className:"ml-2"})]}),e.jsxs("td",{className:"whitespace-nowrap bg-white px-4 py-2 text-right dark:bg-neutral-950",children:[e.jsx("button",{onClick:()=>y(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>w(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]})})]}),o.length===0&&e.jsx("p",{className:"px-4 py-6 text-center text-sm text-neutral-400",children:"Noch keine Galerie-Marken angelegt."})]})]}),e.jsxs("form",{ref:j,onSubmit:v,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Marke bearbeiten":"Neue Marke"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:a.name,onChange:t=>c({...a,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(F,{value:a.cover_image_path,onChange:t=>c({...a,cover_image_path:t}),aspect:4/3,label:"Titelbild (optional)"}),b&&e.jsx("p",{className:"text-sm text-red-600",children:b}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:s?"Speichern":"Anlegen"}),s&&e.jsx("button",{type:"button",onClick:u,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{V as default};
+import{r as l,q as R,s as M,j as e,c as m}from"./index-ByR_n0g5.js";import{I as F}from"./ImageUploadField-IMilh1OJ.js";import{S as C,s as E}from"./SortableList-fUokp5Er.js";import{V as k}from"./ViewOnSite-DuRTh7q1.js";import"./resizeImage-C6PvAwh0.js";import"./sortable.esm-feaRoI7N.js";import"./grip-vertical-B-w3JIIY.js";const h={name:"",cover_image_path:"",sort_order:0};function V(){const[o,d]=l.useState([]),[a,c]=l.useState(h),[N,g]=l.useState(h),[s,p]=l.useState(null),[b,f]=l.useState(""),j=l.useRef(null),i=R();M(JSON.stringify(a)!==JSON.stringify(N),"gallery-brands");const x=()=>m.get("/gallery-brands").then(d);l.useEffect(()=>{x()},[]);const y=t=>{var n;const r={name:t.name,cover_image_path:t.cover_image_path||"",sort_order:t.sort_order};p(t.id),c(r),g(r),(n=j.current)==null||n.scrollIntoView({behavior:"smooth",block:"start"})},u=()=>{p(null),c(h),g(h)},v=async t=>{t.preventDefault(),f("");try{if(s)await m.put(`/gallery-brands/${s}`,a);else{const r=o.reduce((n,S)=>Math.max(n,Number(S.sort_order)||0),0)+10;await m.post("/gallery-brands",{...a,sort_order:r})}i.success(s?"Marke gespeichert.":"Marke angelegt."),u(),x()}catch(r){f(r.message)}},w=async t=>{if(confirm("Marke inkl. aller Projekte/Fotos wirklich löschen?"))try{await m.delete(`/gallery-brands/${t}`),s===t&&u(),i.success("Marke gelöscht."),x()}catch(r){i.error(`Löschen fehlgeschlagen: ${r.message}`)}},_=async t=>{const r=o;d(t);try{d(await E("gallery-brands",t)),i.success("Reihenfolge gespeichert.")}catch(n){d(r),i.error(`Reihenfolge konnte nicht gespeichert werden: ${n.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Galerie-Marken"}),e.jsx(k,{to:"/galerie"})]}),e.jsx("p",{className:"mb-3 text-sm text-neutral-500 dark:text-neutral-400",children:"Reihenfolge am Griff links per Ziehen ändern."}),e.jsxs("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:[e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"w-10 px-2 py-2",children:e.jsx("span",{className:"sr-only",children:"Reihenfolge"})}),e.jsx("th",{className:"px-4 py-2",children:"Bild"}),e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(C,{items:o,onReorder:_,as:"tbody",className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:(t,r)=>e.jsxs(e.Fragment,{children:[e.jsx("td",{className:"bg-white px-2 py-2 dark:bg-neutral-950",children:r}),e.jsx("td",{className:"bg-white px-4 py-2 dark:bg-neutral-950",children:t.cover_image_path?e.jsx("img",{src:t.cover_image_path,alt:"",className:"h-10 w-10 rounded-md object-cover"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsxs("td",{className:"bg-white px-4 py-2 font-medium text-neutral-800 dark:bg-neutral-950 dark:text-neutral-100",children:[t.name,e.jsx(k,{to:`/galerie/${t.slug}`,className:"ml-2"})]}),e.jsxs("td",{className:"whitespace-nowrap bg-white px-4 py-2 text-right dark:bg-neutral-950",children:[e.jsx("button",{onClick:()=>y(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>w(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]})})]}),o.length===0&&e.jsx("p",{className:"px-4 py-6 text-center text-sm text-neutral-400",children:"Noch keine Galerie-Marken angelegt."})]})]}),e.jsxs("form",{ref:j,onSubmit:v,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Marke bearbeiten":"Neue Marke"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:a.name,onChange:t=>c({...a,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(F,{value:a.cover_image_path,onChange:t=>c({...a,cover_image_path:t}),aspect:4/3,label:"Titelbild (optional)"}),b&&e.jsx("p",{className:"text-sm text-red-600",children:b}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:s?"Speichern":"Anlegen"}),s&&e.jsx("button",{type:"button",onClick:u,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{V as default};
diff --git a/hifi/assets/GalleryOverview-B79TQ8ce.js b/hifi/assets/GalleryOverview-COp2J0Qq.js
similarity index 96%
rename from hifi/assets/GalleryOverview-B79TQ8ce.js
rename to hifi/assets/GalleryOverview-COp2J0Qq.js
index c5f3cdc..bf78a6b 100644
--- a/hifi/assets/GalleryOverview-B79TQ8ce.js
+++ b/hifi/assets/GalleryOverview-COp2J0Qq.js
@@ -1 +1 @@
-import{r,u as d,a as g,b as u,c as m,j as e,E as i,e as p,L as v,d as h,f as y}from"./index-BlspSYV0.js";function w(){const[a,o]=r.useState(null),[l,n]=r.useState(null),{t:s}=d(),{gallery_card_text_x:c,gallery_card_text_y:x}=g();return u({title:s("galleryOverview.metaTitle"),description:s("galleryOverview.metaDescription"),path:"/galerie"}),r.useEffect(()=>{m.get("/gallery-brands").then(o).catch(t=>n(t))},[]),e.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[e.jsx(i,{k:"galleryOverview.title",as:"h1",className:"mb-2 block text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl"}),e.jsx(i,{k:"galleryOverview.intro",as:"p",className:"mb-8 block text-neutral-600 dark:text-neutral-300"}),l&&e.jsx("p",{className:"text-red-600",children:typeof l=="string"?l:p(l,s)}),!a&&!l&&e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryOverview.loading")}),a&&a.length===0&&e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryOverview.empty")}),e.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:a==null?void 0:a.map(t=>e.jsxs(v,{to:`/galerie/${t.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[t.cover_image_path?e.jsx("img",{src:t.cover_image_path,alt:t.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),e.jsx(h,{entity:"gallery_brands",id:t.id,field:"name",lang:"de",value:t.name,className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:y(c,x,{x:0,y:100})})]},t.id))})]})}export{w as default};
+import{r,u as d,a as g,b as u,c as m,j as e,E as i,e as p,L as v,d as h,f as y}from"./index-ByR_n0g5.js";function w(){const[a,o]=r.useState(null),[l,n]=r.useState(null),{t:s}=d(),{gallery_card_text_x:c,gallery_card_text_y:x}=g();return u({title:s("galleryOverview.metaTitle"),description:s("galleryOverview.metaDescription"),path:"/galerie"}),r.useEffect(()=>{m.get("/gallery-brands").then(o).catch(t=>n(t))},[]),e.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[e.jsx(i,{k:"galleryOverview.title",as:"h1",className:"mb-2 block text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl"}),e.jsx(i,{k:"galleryOverview.intro",as:"p",className:"mb-8 block text-neutral-600 dark:text-neutral-300"}),l&&e.jsx("p",{className:"text-red-600",children:typeof l=="string"?l:p(l,s)}),!a&&!l&&e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryOverview.loading")}),a&&a.length===0&&e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:s("galleryOverview.empty")}),e.jsx("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:a==null?void 0:a.map(t=>e.jsxs(v,{to:`/galerie/${t.slug}`,className:"group relative block aspect-[4/3] overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[t.cover_image_path?e.jsx("img",{src:t.cover_image_path,alt:t.name,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-200 dark:bg-neutral-800"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),e.jsx(h,{entity:"gallery_brands",id:t.id,field:"name",lang:"de",value:t.name,className:"absolute whitespace-nowrap p-4 text-lg font-extrabold text-white",style:y(c,x,{x:0,y:100})})]},t.id))})]})}export{w as default};
diff --git a/hifi/assets/GalleryPhotos-DcLBcwrS.js b/hifi/assets/GalleryPhotos-wQg2F1lU.js
similarity index 94%
rename from hifi/assets/GalleryPhotos-DcLBcwrS.js
rename to hifi/assets/GalleryPhotos-wQg2F1lU.js
index f870fb6..3f71a79 100644
--- a/hifi/assets/GalleryPhotos-DcLBcwrS.js
+++ b/hifi/assets/GalleryPhotos-wQg2F1lU.js
@@ -1,3 +1,3 @@
-import{g as z,r as l,q as B,c as d,j as t,L as C}from"./index-BlspSYV0.js";import{S as M,s as D}from"./SortableList-DwfJpzeR.js";import{V as G}from"./ViewOnSite-BPLJTKOt.js";import{r as L,M as A,f as I}from"./resizeImage-C6PvAwh0.js";import"./sortable.esm-D1g5h7xA.js";import"./grip-vertical-Bv_4pkjN.js";function J(){const{projectId:m}=z(),[u,h]=l.useState([]),[c,v]=l.useState(null),[f,j]=l.useState(""),[b,w]=l.useState(!1),[$,y]=l.useState(""),p=l.useRef(null),s=B(),x=()=>d.get(`/gallery-projects/${m}/photos`).then(h);l.useEffect(()=>{x(),d.get("/gallery-projects").then(e=>v(e.find(r=>String(r.id)===String(m))||null)).catch(()=>{})},[m]);const F=async e=>{const r=Array.from(e.target.files||[]);if(r.length===0)return;j(""),w(!0);let a=u.reduce((o,i)=>Math.max(o,Number(i.sort_order)||0),0),n=0;const g=[];for(let o=0;oA)throw new Error(`zu groß (${I(i.size)}, max. 5 MB)`);const k=new FormData;k.append("file",i);const E=await d.post("/uploads",k);a+=10,await d.post("/gallery-photos",{gallery_project_id:Number(m),image_path:E.path,sort_order:a}),n++}catch(i){g.push(`${r[o].name}: ${i.message}`)}}w(!1),y(""),p.current&&(p.current.value=""),x(),g.length===0?s.success(n===1?"1 Foto hochgeladen.":`${n} Fotos hochgeladen.`):(j(`Nicht hochgeladen:
+import{g as z,r as l,q as B,c as d,j as t,L as C}from"./index-ByR_n0g5.js";import{S as M,s as D}from"./SortableList-fUokp5Er.js";import{V as G}from"./ViewOnSite-DuRTh7q1.js";import{r as L,M as A,f as I}from"./resizeImage-C6PvAwh0.js";import"./sortable.esm-feaRoI7N.js";import"./grip-vertical-B-w3JIIY.js";function J(){const{projectId:m}=z(),[u,h]=l.useState([]),[c,v]=l.useState(null),[f,j]=l.useState(""),[b,w]=l.useState(!1),[$,y]=l.useState(""),p=l.useRef(null),s=B(),x=()=>d.get(`/gallery-projects/${m}/photos`).then(h);l.useEffect(()=>{x(),d.get("/gallery-projects").then(e=>v(e.find(r=>String(r.id)===String(m))||null)).catch(()=>{})},[m]);const F=async e=>{const r=Array.from(e.target.files||[]);if(r.length===0)return;j(""),w(!0);let a=u.reduce((o,i)=>Math.max(o,Number(i.sort_order)||0),0),n=0;const g=[];for(let o=0;oA)throw new Error(`zu groß (${I(i.size)}, max. 5 MB)`);const k=new FormData;k.append("file",i);const E=await d.post("/uploads",k);a+=10,await d.post("/gallery-photos",{gallery_project_id:Number(m),image_path:E.path,sort_order:a}),n++}catch(i){g.push(`${r[o].name}: ${i.message}`)}}w(!1),y(""),p.current&&(p.current.value=""),x(),g.length===0?s.success(n===1?"1 Foto hochgeladen.":`${n} Fotos hochgeladen.`):(j(`Nicht hochgeladen:
${g.join(`
`)}`),s.error(`${n} hochgeladen, ${g.length} fehlgeschlagen.`))},P=(e,r)=>{h(a=>a.map(n=>n.id===e.id?{...n,caption:r}:n))},N=l.useRef(null),S=async e=>{if((e.caption||"")!==N.current)try{await d.put(`/gallery-photos/${e.id}`,{caption:e.caption,sort_order:e.sort_order}),s.success("Bildunterschrift gespeichert.")}catch(r){s.error(`Speichern fehlgeschlagen: ${r.message}`)}},_=async e=>{if(confirm("Foto wirklich entfernen?"))try{await d.delete(`/gallery-photos/${e}`),s.success("Foto entfernt."),x()}catch(r){s.error(`Entfernen fehlgeschlagen: ${r.message}`)}},R=async e=>{const r=u;h(e);try{h(await D("gallery-photos",e)),s.success("Reihenfolge gespeichert.")}catch(a){h(r),s.error(`Reihenfolge konnte nicht gespeichert werden: ${a.message}`)}};return t.jsxs("div",{children:[t.jsx("p",{className:"mb-2 text-sm",children:t.jsx(C,{to:"/admin/gallery-projects",className:"text-brand-600 hover:underline",children:"← Zurück zu den Projekten"})}),t.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[t.jsxs("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:["Fotos im Projekt",c?`: ${c.brand_name} ${c.name}`:""]}),c&&t.jsx(G,{to:`/galerie/${c.brand_slug}/${c.slug}`})]}),t.jsxs("div",{className:"mb-6 rounded-xl border border-neutral-200 bg-white p-4 dark:border-neutral-800 dark:bg-neutral-900",children:[t.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Fotos hinzufügen (Mehrfachauswahl möglich)"}),t.jsx("input",{ref:p,type:"file",multiple:!0,accept:"image/png,image/jpeg,image/webp",onChange:F,disabled:b,className:"text-sm"}),t.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"JPG, PNG oder WebP, große Fotos werden automatisch verkleinert."}),b&&t.jsx("p",{className:"mt-2 text-sm text-neutral-500","aria-live":"polite",children:$})]}),f&&t.jsx("p",{className:"mb-4 whitespace-pre-line text-sm text-red-600",children:f}),u.length>1&&t.jsx("p",{className:"mb-3 text-xs text-neutral-500 dark:text-neutral-400",children:"Reihenfolge am Griff per Ziehen ändern."}),t.jsx(M,{items:u,onReorder:R,as:"grid",className:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4",children:(e,r)=>t.jsxs("div",{className:"overflow-hidden rounded-xl border border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900",children:[t.jsx("img",{src:e.image_path,alt:e.caption||"",className:"aspect-square w-full object-cover",loading:"lazy"}),t.jsxs("div",{className:"space-y-2 p-3",children:[t.jsx("input",{value:e.caption||"",onChange:a=>P(e,a.target.value),onFocus:()=>{N.current=e.caption||""},onBlur:()=>S(e),placeholder:"Bildunterschrift (optional)",className:"w-full rounded-md border border-neutral-300 bg-white px-2 py-1 text-xs dark:border-neutral-700 dark:bg-neutral-900"}),t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r,t.jsx("button",{onClick:()=>_(e.id),className:"text-xs text-red-600 hover:underline",children:"Entfernen"})]})]})]})}),u.length===0&&t.jsx("p",{className:"py-6 text-center text-neutral-400",children:"Noch keine Fotos in diesem Projekt."})]})}export{J as default};
diff --git a/hifi/assets/GalleryProjectPage-cPDbShnw.js b/hifi/assets/GalleryProjectPage-DmCj8l5D.js
similarity index 98%
rename from hifi/assets/GalleryProjectPage-cPDbShnw.js
rename to hifi/assets/GalleryProjectPage-DmCj8l5D.js
index 6678139..fbaad52 100644
--- a/hifi/assets/GalleryProjectPage-cPDbShnw.js
+++ b/hifi/assets/GalleryProjectPage-DmCj8l5D.js
@@ -1 +1 @@
-import{u as g,r as x,h as j,j as e,g as b,c as w,b as f,N as k,e as y,d as v,R as P,E as h,L as N}from"./index-BlspSYV0.js";function L({photos:o,index:s,onClose:t,onNavigate:n}){const{t:i}=g();if(x.useEffect(()=>{if(s==null)return;const a=r=>{r.key==="Escape"&&t(),r.key==="ArrowRight"&&n(1),r.key==="ArrowLeft"&&n(-1)};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[s,t,n]),s==null)return null;const d=o[s],c=a=>a.stopPropagation();return j.createPortal(e.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/90 p-4",onClick:t,children:[e.jsx("button",{onClick:a=>{c(a),t()},"aria-label":i("lightbox.close"),className:"absolute right-4 top-4 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-7 w-7",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6l12 12M18 6 6 18"})})}),o.length>1&&e.jsx("button",{onClick:a=>{c(a),n(-1)},"aria-label":i("lightbox.previous"),className:"absolute left-2 top-1/2 -translate-y-1/2 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white sm:left-4",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-8 w-8",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15 18-6-6 6-6"})})}),e.jsx("img",{src:d.image_path,alt:d.caption||"",onClick:c,className:"max-h-[85vh] max-w-full rounded-lg object-contain"}),o.length>1&&e.jsx("button",{onClick:a=>{c(a),n(1)},"aria-label":i("lightbox.next"),className:"absolute right-2 top-1/2 -translate-y-1/2 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white sm:right-4",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-8 w-8",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 18 6-6-6-6"})})}),d.caption&&e.jsx("p",{onClick:c,className:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full bg-black/60 px-4 py-1.5 text-sm text-white",children:d.caption})]}),document.body)}function C(){const{brandSlug:o,projectSlug:s}=b(),[t,n]=x.useState(null),[i,d]=x.useState(null),[c,a]=x.useState(null),{t:r}=g();x.useEffect(()=>{w.get(`/gallery-brands/${o}/${s}/photos`).then(n).catch(l=>d(l))},[o,s]),f({title:t?`${t.project.name} – ${t.project.brand_name}`:r("galleryProjectPage.metaTitleFallback"),description:t?r("galleryProjectPage.metaDescription")(t.project.name):void 0,path:`/galerie/${o}/${s}`});const p=l=>{a(u=>{const m=t.photos.length;return(u+l+m)%m})};return i?i.status===404?e.jsx(k,{}):e.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:y(i,r)}):t?e.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[e.jsx(v,{entity:"gallery_projects",id:t.project.id,field:"name",lang:"de",value:t.project.name,as:"h1",className:"mb-8 block text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl"}),t.photos.length===0&&e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:r("galleryProjectPage.empty")}),e.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:t.photos.map((l,u)=>e.jsx(P,{index:u%6,shine:!0,className:"aspect-square overflow-hidden rounded-xl",children:e.jsx("button",{onClick:()=>a(u),className:"block h-full w-full","aria-label":l.caption||r("galleryProjectPage.enlargeImage"),children:e.jsx("img",{src:l.image_path,alt:l.caption||"",loading:"lazy",decoding:"async",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})})},l.id))}),e.jsxs("div",{className:"mt-12 flex flex-col items-start gap-4 rounded-2xl border border-neutral-200 bg-white p-6 shadow-sm dark:border-neutral-800 dark:bg-neutral-900 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsx(h,{k:"galleryProjectPage.ctaTitle",as:"h2",className:"block text-lg font-bold text-neutral-900 dark:text-white"}),e.jsx(h,{k:"galleryProjectPage.ctaText",as:"p",className:"mt-1 block text-sm text-neutral-600 dark:text-neutral-300"})]}),e.jsx(N,{to:`/kontakt?${new URLSearchParams({topic:r("galleryProjectPage.ctaTopic")(t.project.name)}).toString()}`,className:"shrink-0 rounded-md bg-brand-500 px-5 py-3 text-sm font-semibold text-white shadow-sm hover:bg-brand-600",children:e.jsx(h,{k:"galleryProjectPage.ctaButton"})})]}),e.jsx(L,{photos:t.photos,index:c,onClose:()=>a(null),onNavigate:p})]}):e.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:r("galleryProjectPage.loading")})}export{C as default};
+import{u as g,r as x,h as j,j as e,g as b,c as w,b as f,N as k,e as y,d as v,R as P,E as h,L as N}from"./index-ByR_n0g5.js";function L({photos:o,index:s,onClose:t,onNavigate:n}){const{t:i}=g();if(x.useEffect(()=>{if(s==null)return;const a=r=>{r.key==="Escape"&&t(),r.key==="ArrowRight"&&n(1),r.key==="ArrowLeft"&&n(-1)};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[s,t,n]),s==null)return null;const d=o[s],c=a=>a.stopPropagation();return j.createPortal(e.jsxs("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-black/90 p-4",onClick:t,children:[e.jsx("button",{onClick:a=>{c(a),t()},"aria-label":i("lightbox.close"),className:"absolute right-4 top-4 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-7 w-7",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6l12 12M18 6 6 18"})})}),o.length>1&&e.jsx("button",{onClick:a=>{c(a),n(-1)},"aria-label":i("lightbox.previous"),className:"absolute left-2 top-1/2 -translate-y-1/2 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white sm:left-4",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-8 w-8",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15 18-6-6 6-6"})})}),e.jsx("img",{src:d.image_path,alt:d.caption||"",onClick:c,className:"max-h-[85vh] max-w-full rounded-lg object-contain"}),o.length>1&&e.jsx("button",{onClick:a=>{c(a),n(1)},"aria-label":i("lightbox.next"),className:"absolute right-2 top-1/2 -translate-y-1/2 rounded-full p-2 text-white/80 hover:bg-white/10 hover:text-white sm:right-4",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-8 w-8",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 18 6-6-6-6"})})}),d.caption&&e.jsx("p",{onClick:c,className:"absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full bg-black/60 px-4 py-1.5 text-sm text-white",children:d.caption})]}),document.body)}function C(){const{brandSlug:o,projectSlug:s}=b(),[t,n]=x.useState(null),[i,d]=x.useState(null),[c,a]=x.useState(null),{t:r}=g();x.useEffect(()=>{w.get(`/gallery-brands/${o}/${s}/photos`).then(n).catch(l=>d(l))},[o,s]),f({title:t?`${t.project.name} – ${t.project.brand_name}`:r("galleryProjectPage.metaTitleFallback"),description:t?r("galleryProjectPage.metaDescription")(t.project.name):void 0,path:`/galerie/${o}/${s}`});const p=l=>{a(u=>{const m=t.photos.length;return(u+l+m)%m})};return i?i.status===404?e.jsx(k,{}):e.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:y(i,r)}):t?e.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[e.jsx(v,{entity:"gallery_projects",id:t.project.id,field:"name",lang:"de",value:t.project.name,as:"h1",className:"mb-8 block text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl"}),t.photos.length===0&&e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:r("galleryProjectPage.empty")}),e.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:t.photos.map((l,u)=>e.jsx(P,{index:u%6,shine:!0,className:"aspect-square overflow-hidden rounded-xl",children:e.jsx("button",{onClick:()=>a(u),className:"block h-full w-full","aria-label":l.caption||r("galleryProjectPage.enlargeImage"),children:e.jsx("img",{src:l.image_path,alt:l.caption||"",loading:"lazy",decoding:"async",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})})},l.id))}),e.jsxs("div",{className:"mt-12 flex flex-col items-start gap-4 rounded-2xl border border-neutral-200 bg-white p-6 shadow-sm dark:border-neutral-800 dark:bg-neutral-900 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsx(h,{k:"galleryProjectPage.ctaTitle",as:"h2",className:"block text-lg font-bold text-neutral-900 dark:text-white"}),e.jsx(h,{k:"galleryProjectPage.ctaText",as:"p",className:"mt-1 block text-sm text-neutral-600 dark:text-neutral-300"})]}),e.jsx(N,{to:`/kontakt?${new URLSearchParams({topic:r("galleryProjectPage.ctaTopic")(t.project.name)}).toString()}`,className:"shrink-0 rounded-md bg-brand-500 px-5 py-3 text-sm font-semibold text-white shadow-sm hover:bg-brand-600",children:e.jsx(h,{k:"galleryProjectPage.ctaButton"})})]}),e.jsx(L,{photos:t.photos,index:c,onClose:()=>a(null),onNavigate:p})]}):e.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:r("galleryProjectPage.loading")})}export{C as default};
diff --git a/hifi/assets/GalleryProjects-CXCOXFl8.js b/hifi/assets/GalleryProjects-C29FLapQ.js
similarity index 94%
rename from hifi/assets/GalleryProjects-CXCOXFl8.js
rename to hifi/assets/GalleryProjects-C29FLapQ.js
index e0e6d04..7d01d97 100644
--- a/hifi/assets/GalleryProjects-CXCOXFl8.js
+++ b/hifi/assets/GalleryProjects-C29FLapQ.js
@@ -1 +1 @@
-import{r as a,q as I,s as L,j as e,L as T,c as h}from"./index-BlspSYV0.js";import{I as q}from"./ImageUploadField-Bho12Gdh.js";import{S as z,s as G}from"./SortableList-DwfJpzeR.js";import{V as F}from"./ViewOnSite-BPLJTKOt.js";import"./resizeImage-C6PvAwh0.js";import"./sortable.esm-D1g5h7xA.js";import"./grip-vertical-Bv_4pkjN.js";const b={name:"",gallery_brand_id:"",cover_image_path:"",sort_order:0};function H(){const[l,x]=a.useState([]),[y,C]=a.useState([]),[s,m]=a.useState(b),[R,N]=a.useState(b),[d,v]=a.useState(null),[_,w]=a.useState(""),[o,S]=a.useState("all"),P=a.useRef(null),u=I();L(JSON.stringify(s)!==JSON.stringify(R),"gallery-projects");const p=a.useMemo(()=>o==="all"?l:l.filter(t=>String(t.gallery_brand_id)===o),[l,o]),g=o!=="all",j=()=>{h.get("/gallery-projects").then(x),h.get("/gallery-brands").then(C)};a.useEffect(j,[]);const $=t=>{var n;const r={name:t.name,gallery_brand_id:t.gallery_brand_id,cover_image_path:t.cover_image_path||"",sort_order:t.sort_order};v(t.id),m(r),N(r),(n=P.current)==null||n.scrollIntoView({behavior:"smooth",block:"start"})},k=()=>{v(null),m(b),N(b)},M=async t=>{t.preventDefault(),w("");const r={...s,gallery_brand_id:Number(s.gallery_brand_id)};try{if(d)await h.put(`/gallery-projects/${d}`,r);else{const n=l.filter(c=>Number(c.gallery_brand_id)===r.gallery_brand_id).reduce((c,i)=>Math.max(c,Number(i.sort_order)||0),0)+10;await h.post("/gallery-projects",{...r,sort_order:n})}u.success(d?"Projekt gespeichert.":"Projekt angelegt."),k(),j()}catch(n){w(n.message)}},E=async t=>{if(confirm("Projekt inkl. aller Fotos wirklich löschen?"))try{await h.delete(`/gallery-projects/${t}`),d===t&&k(),u.success("Projekt gelöscht."),j()}catch(r){u.error(`Löschen fehlgeschlagen: ${r.message}`)}},A=async t=>{const r=l,n=new Set(t.map(i=>i.id)),c=i=>[...l.filter(B=>!n.has(B.id)),...i];x(c(t));try{x(c(await G("gallery-projects",t))),u.success("Reihenfolge gespeichert.")}catch(i){x(r),u.error(`Reihenfolge konnte nicht gespeichert werden: ${i.message}`)}},f="bg-white px-4 py-2 dark:bg-neutral-950";return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Galerie-Projekte"}),e.jsx(F,{to:"/galerie"})]}),e.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[e.jsx("label",{className:"text-sm font-medium text-neutral-600 dark:text-neutral-300",children:"Nach Marke filtern:"}),e.jsxs("select",{value:o,onChange:t=>S(t.target.value),className:"rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"all",children:"Alle Marken"}),y.map(t=>e.jsx("option",{value:String(t.id),children:t.name},t.id))]}),o!=="all"&&e.jsx("button",{onClick:()=>S("all"),className:"text-sm text-brand-600 hover:underline",children:"Filter zurücksetzen"}),e.jsxs("span",{className:"text-sm text-neutral-400",children:[p.length," von ",l.length]})]}),e.jsx("p",{className:"mb-3 text-xs text-neutral-500 dark:text-neutral-400",children:g?"Reihenfolge am Griff links per Ziehen ändern.":"Zum Sortieren erst eine Marke auswählen."}),e.jsxs("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:[e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[g&&e.jsx("th",{className:"w-10 px-2 py-2",children:e.jsx("span",{className:"sr-only",children:"Reihenfolge"})}),e.jsx("th",{className:"px-4 py-2",children:"Marke"}),e.jsx("th",{className:"px-4 py-2",children:"Projekt"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(z,{items:p,onReorder:A,as:"tbody",disabled:!g,className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:(t,r)=>e.jsxs(e.Fragment,{children:[g&&e.jsx("td",{className:"bg-white px-2 py-2 dark:bg-neutral-950",children:r}),e.jsx("td",{className:f,children:t.brand_name}),e.jsxs("td",{className:`${f} font-medium text-neutral-800 dark:text-neutral-100`,children:[t.name,e.jsx(F,{to:`/galerie/${t.brand_slug}/${t.slug}`,className:"ml-2"})]}),e.jsxs("td",{className:`${f} whitespace-nowrap text-right`,children:[e.jsx(T,{to:`/admin/gallery-projects/${t.id}/photos`,className:"mr-3 text-brand-600 hover:underline",children:"Fotos"}),e.jsx("button",{onClick:()=>$(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>E(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]})})]}),p.length===0&&e.jsx("p",{className:"px-4 py-6 text-center text-sm text-neutral-400",children:l.length===0?"Noch keine Projekte angelegt.":"Keine Projekte für diese Marke."})]})]}),e.jsxs("form",{ref:P,onSubmit:M,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:d?"Projekt bearbeiten":"Neues Projekt"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Marke *"}),e.jsxs("select",{required:!0,value:s.gallery_brand_id,onChange:t=>m({...s,gallery_brand_id:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Bitte wählen…"}),y.map(t=>e.jsx("option",{value:t.id,children:t.name},t.id))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Projektname *"}),e.jsx("input",{required:!0,placeholder:"z. B. Audi TT",value:s.name,onChange:t=>m({...s,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(q,{value:s.cover_image_path,onChange:t=>m({...s,cover_image_path:t}),aspect:4/3,label:"Titelbild (optional)"}),_&&e.jsx("p",{className:"text-sm text-red-600",children:_}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:d?"Speichern":"Anlegen"}),d&&e.jsx("button",{type:"button",onClick:k,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{H as default};
+import{r as a,q as I,s as L,j as e,L as T,c as h}from"./index-ByR_n0g5.js";import{I as q}from"./ImageUploadField-IMilh1OJ.js";import{S as z,s as G}from"./SortableList-fUokp5Er.js";import{V as F}from"./ViewOnSite-DuRTh7q1.js";import"./resizeImage-C6PvAwh0.js";import"./sortable.esm-feaRoI7N.js";import"./grip-vertical-B-w3JIIY.js";const b={name:"",gallery_brand_id:"",cover_image_path:"",sort_order:0};function H(){const[l,x]=a.useState([]),[y,C]=a.useState([]),[s,m]=a.useState(b),[R,N]=a.useState(b),[d,v]=a.useState(null),[_,w]=a.useState(""),[o,S]=a.useState("all"),P=a.useRef(null),u=I();L(JSON.stringify(s)!==JSON.stringify(R),"gallery-projects");const p=a.useMemo(()=>o==="all"?l:l.filter(t=>String(t.gallery_brand_id)===o),[l,o]),g=o!=="all",j=()=>{h.get("/gallery-projects").then(x),h.get("/gallery-brands").then(C)};a.useEffect(j,[]);const $=t=>{var n;const r={name:t.name,gallery_brand_id:t.gallery_brand_id,cover_image_path:t.cover_image_path||"",sort_order:t.sort_order};v(t.id),m(r),N(r),(n=P.current)==null||n.scrollIntoView({behavior:"smooth",block:"start"})},k=()=>{v(null),m(b),N(b)},M=async t=>{t.preventDefault(),w("");const r={...s,gallery_brand_id:Number(s.gallery_brand_id)};try{if(d)await h.put(`/gallery-projects/${d}`,r);else{const n=l.filter(c=>Number(c.gallery_brand_id)===r.gallery_brand_id).reduce((c,i)=>Math.max(c,Number(i.sort_order)||0),0)+10;await h.post("/gallery-projects",{...r,sort_order:n})}u.success(d?"Projekt gespeichert.":"Projekt angelegt."),k(),j()}catch(n){w(n.message)}},E=async t=>{if(confirm("Projekt inkl. aller Fotos wirklich löschen?"))try{await h.delete(`/gallery-projects/${t}`),d===t&&k(),u.success("Projekt gelöscht."),j()}catch(r){u.error(`Löschen fehlgeschlagen: ${r.message}`)}},A=async t=>{const r=l,n=new Set(t.map(i=>i.id)),c=i=>[...l.filter(B=>!n.has(B.id)),...i];x(c(t));try{x(c(await G("gallery-projects",t))),u.success("Reihenfolge gespeichert.")}catch(i){x(r),u.error(`Reihenfolge konnte nicht gespeichert werden: ${i.message}`)}},f="bg-white px-4 py-2 dark:bg-neutral-950";return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Galerie-Projekte"}),e.jsx(F,{to:"/galerie"})]}),e.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[e.jsx("label",{className:"text-sm font-medium text-neutral-600 dark:text-neutral-300",children:"Nach Marke filtern:"}),e.jsxs("select",{value:o,onChange:t=>S(t.target.value),className:"rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"all",children:"Alle Marken"}),y.map(t=>e.jsx("option",{value:String(t.id),children:t.name},t.id))]}),o!=="all"&&e.jsx("button",{onClick:()=>S("all"),className:"text-sm text-brand-600 hover:underline",children:"Filter zurücksetzen"}),e.jsxs("span",{className:"text-sm text-neutral-400",children:[p.length," von ",l.length]})]}),e.jsx("p",{className:"mb-3 text-xs text-neutral-500 dark:text-neutral-400",children:g?"Reihenfolge am Griff links per Ziehen ändern.":"Zum Sortieren erst eine Marke auswählen."}),e.jsxs("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:[e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[g&&e.jsx("th",{className:"w-10 px-2 py-2",children:e.jsx("span",{className:"sr-only",children:"Reihenfolge"})}),e.jsx("th",{className:"px-4 py-2",children:"Marke"}),e.jsx("th",{className:"px-4 py-2",children:"Projekt"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(z,{items:p,onReorder:A,as:"tbody",disabled:!g,className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:(t,r)=>e.jsxs(e.Fragment,{children:[g&&e.jsx("td",{className:"bg-white px-2 py-2 dark:bg-neutral-950",children:r}),e.jsx("td",{className:f,children:t.brand_name}),e.jsxs("td",{className:`${f} font-medium text-neutral-800 dark:text-neutral-100`,children:[t.name,e.jsx(F,{to:`/galerie/${t.brand_slug}/${t.slug}`,className:"ml-2"})]}),e.jsxs("td",{className:`${f} whitespace-nowrap text-right`,children:[e.jsx(T,{to:`/admin/gallery-projects/${t.id}/photos`,className:"mr-3 text-brand-600 hover:underline",children:"Fotos"}),e.jsx("button",{onClick:()=>$(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>E(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]})})]}),p.length===0&&e.jsx("p",{className:"px-4 py-6 text-center text-sm text-neutral-400",children:l.length===0?"Noch keine Projekte angelegt.":"Keine Projekte für diese Marke."})]})]}),e.jsxs("form",{ref:P,onSubmit:M,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:d?"Projekt bearbeiten":"Neues Projekt"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Marke *"}),e.jsxs("select",{required:!0,value:s.gallery_brand_id,onChange:t=>m({...s,gallery_brand_id:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Bitte wählen…"}),y.map(t=>e.jsx("option",{value:t.id,children:t.name},t.id))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Projektname *"}),e.jsx("input",{required:!0,placeholder:"z. B. Audi TT",value:s.name,onChange:t=>m({...s,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(q,{value:s.cover_image_path,onChange:t=>m({...s,cover_image_path:t}),aspect:4/3,label:"Titelbild (optional)"}),_&&e.jsx("p",{className:"text-sm text-red-600",children:_}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:d?"Speichern":"Anlegen"}),d&&e.jsx("button",{type:"button",onClick:k,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{H as default};
diff --git a/hifi/assets/HomeSections-ZA3Lw7hJ.js b/hifi/assets/HomeSections-Bmnp6Q1H.js
similarity index 94%
rename from hifi/assets/HomeSections-ZA3Lw7hJ.js
rename to hifi/assets/HomeSections-Bmnp6Q1H.js
index f720bab..9d37c7c 100644
--- a/hifi/assets/HomeSections-ZA3Lw7hJ.js
+++ b/hifi/assets/HomeSections-Bmnp6Q1H.js
@@ -1 +1 @@
-import{z as G,r as i,q as K,s as V,c as g,j as e,f as F}from"./index-BlspSYV0.js";import X from"./RichTextEditor-CO4xzKJO.js";import{T as p}from"./TextStyleWidget-xhHRXR-m.js";import{S as q}from"./SaveBar-CVCIr_4p.js";const v=[{slug:"hero",label:"Großes Titelbild (ganz oben)"},{slug:"youtube",label:"Video-Abschnitt"},{slug:"craft",label:"Handwerk"},{slug:"advice",label:"Beratung"},{slug:"insights",label:"Einblicke (Bildergalerie-Intro)"},{slug:"more",label:"Mehr als Car-Hifi"}],J=["hero","youtube"],W=[{value:"left",label:"Links"},{value:"center",label:"Mittig"},{value:"right",label:"Rechts"}],Y={left:"text-left",center:"text-center",right:"text-right"};function Q(b){const d=document.createElement("div");return d.innerHTML=b||"",d.textContent||""}function ne(){var B;const b=G(),[d,h]=i.useState(null),[s,A]=i.useState("hero"),[l,M]=i.useState("de"),[f,k]=i.useState(null),[P,j]=i.useState(!1),[y,m]=i.useState(""),[O,I]=i.useState(null),_=K(),[N,L]=i.useState(""),w=i.useRef(null),[S,$]=i.useState(!1),o=d&&f?v.map(t=>t.slug).filter(t=>JSON.stringify(d[t])!==JSON.stringify(f[t])):[];if(V(o.length>0,"home-sections"),i.useEffect(()=>{g.get("/home-sections").then(t=>{h(t),k(t)}),g.get("/site-settings").then(t=>L(t.hero_image_path||""))},[]),!d)return e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"});const r=d[s],D=J.includes(s),c=(t,a)=>{h(n=>({...n,[s]:{...n[s],[t]:a}}))},u=(t,a)=>{h(n=>({...n,[s]:{...n[s],text_align_x:t,text_align_y:a}}))},T=(t,a)=>{const n=w.current.getBoundingClientRect();return{x:Math.max(0,Math.min(100,Math.round((t-n.left)/n.width*100))),y:Math.max(0,Math.min(100,Math.round((a-n.top)/n.height*100)))}},H=t=>{t.preventDefault(),t.currentTarget.setPointerCapture(t.pointerId),$(!0);const{x:a,y:n}=T(t.clientX,t.clientY);u(a,n)},R=t=>{if(!S)return;const{x:a,y:n}=T(t.clientX,t.clientY);u(a,n)},z=t=>{$(!1),t.currentTarget.releasePointerCapture(t.pointerId)},U=async()=>{j(!0),m("");const t=[];try{for(const a of o)await g.put(`/home-sections/${a}`,d[a]),t.push(a);I(new Date),_.success(o.length>1?`${o.length} Abschnitte gespeichert.`:"Gespeichert.")}catch(a){m(a.message),_.error(`Speichern fehlgeschlagen: ${a.message}`)}finally{t.length&&k(a=>{const n={...a};return t.forEach(E=>{n[E]=d[E]}),n}),j(!1)}},x=r[`eyebrow_${l}`]||"",C=r[`title_${l}`]||((B=v.find(t=>t.slug===s))==null?void 0:B.label)||"",Z=Q(r[`body_html_${l}`]);return e.jsxs("div",{className:"max-w-3xl space-y-6",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Startseite"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Text, Position/Ausrichtung und (falls vorhanden) Button-Ziel der wichtigsten Textabschnitte auf der Startseite. Bilder, Statistik-Kacheln, Marken-Streifen, Bewertungen und FAQ werden an anderer Stelle verwaltet."})]}),e.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("div",{className:"mb-4 flex flex-wrap gap-2",children:v.map(t=>e.jsxs("button",{type:"button",onClick:()=>{A(t.slug),m("")},className:`rounded-md px-3 py-1.5 text-sm font-medium transition ${s===t.slug?"bg-brand-500 text-white":"border border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:[t.label,o.includes(t.slug)&&e.jsx("span",{className:"ml-1 text-amber-400",title:"Ungespeicherte Änderungen",children:"●"})]},t.slug))}),e.jsx("div",{className:"mb-4 flex gap-1 border-b border-neutral-200 pb-4 dark:border-neutral-800",children:[["de","Deutsch"],["en","English"]].map(([t,a])=>e.jsx("button",{type:"button",onClick:()=>M(t),className:`rounded-md px-3 py-1 text-sm font-medium transition ${l===t?"bg-neutral-800 text-white dark:bg-neutral-100 dark:text-neutral-900":"text-neutral-500 hover:bg-neutral-100 dark:text-neutral-400 dark:hover:bg-neutral-800"}`,children:a},t))}),D?e.jsxs("div",{className:"mb-5 grid gap-4 border-b border-neutral-200 pb-5 dark:border-neutral-800 sm:grid-cols-[16rem_1fr] sm:items-start",children:[e.jsxs("div",{children:[e.jsxs("div",{ref:w,className:"relative aspect-video select-none overflow-hidden rounded-xl bg-neutral-900 shadow-sm",children:[s==="hero"&&N?e.jsx("img",{src:N,alt:"",draggable:!1,className:"h-full w-full object-cover"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gradient-to-br from-neutral-700 to-neutral-900 text-xs uppercase tracking-wide text-neutral-500",children:s==="youtube"?"Video-Hintergrund":"Titelbild"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-black/40"}),e.jsxs("div",{onPointerDown:H,onPointerMove:R,onPointerUp:z,style:{...F(r.text_align_x,r.text_align_y,{x:50,y:50}),touchAction:"none"},className:`absolute max-w-[85%] select-none whitespace-nowrap rounded p-2 text-center transition-colors ${S?"cursor-grabbing bg-white/10 ring-2 ring-brand-400":"cursor-grab hover:bg-white/10"}`,children:[x&&e.jsx("p",{className:"truncate text-[10px] font-semibold uppercase tracking-wide text-brand-300",children:x}),e.jsx("p",{className:"truncate text-sm font-extrabold text-white",children:C})]})]}),e.jsx("p",{className:"mt-1.5 text-center text-xs text-neutral-400",children:"Zum Verschieben ziehen"})]}),e.jsxs("div",{className:"flex flex-col gap-3 sm:pt-1",children:[e.jsxs("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:["Position:"," ",e.jsxs("span",{className:"font-mono font-semibold text-neutral-700 dark:text-neutral-200",children:[r.text_align_x,"% / ",r.text_align_y,"%"]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl waagerecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>u(0,r.text_align_y),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Links"}),e.jsx("button",{type:"button",onClick:()=>u(50,r.text_align_y),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>u(100,r.text_align_y),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Rechts"})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl senkrecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>u(r.text_align_x,0),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Oben"}),e.jsx("button",{type:"button",onClick:()=>u(r.text_align_x,50),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>u(r.text_align_x,100),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Unten"})]})]})]})]}):e.jsxs("div",{className:"mb-5 grid gap-4 border-b border-neutral-200 pb-5 dark:border-neutral-800 sm:grid-cols-[10rem_1fr] sm:items-center",children:[e.jsx("div",{className:"aspect-square rounded-xl bg-neutral-100 dark:bg-neutral-800","aria-hidden":!0}),e.jsxs("div",{children:[e.jsxs("div",{className:`rounded-lg border border-neutral-200 p-3 dark:border-neutral-700 ${Y[r.text_align]||"text-left"}`,children:[x&&e.jsx("p",{className:"mb-1 text-xs font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",children:x}),e.jsx("p",{className:"mb-1 font-bold text-neutral-900 dark:text-white",children:C}),e.jsx("p",{className:"line-clamp-2 text-xs text-neutral-500 dark:text-neutral-400",children:Z||"Text erscheint hier…"})]}),e.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:W.map(t=>e.jsx("button",{type:"button",onClick:()=>c("text_align",t.value),className:`rounded-md border px-3 py-1.5 text-sm font-medium transition ${r.text_align===t.value?"border-brand-500 bg-brand-500 text-white":"border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:t.label},t.value))})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Kurzer Vorspann (optional)"}),e.jsx("input",{value:r[`eyebrow_${l}`]||"",onChange:t=>c(`eyebrow_${l}`,t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx(p,{fieldKey:`home_sections.${s}.eyebrow`,previewText:r[`eyebrow_${l}`]||"Beispieltext"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Überschrift"}),e.jsx("input",{value:r[`title_${l}`]||"",onChange:t=>c(`title_${l}`,t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx(p,{fieldKey:`home_sections.${s}.title`,previewText:r[`title_${l}`]||"Beispieltext"})]}),e.jsx(X,{label:"Text",value:r[`body_html_${l}`]||"",onChange:t=>c(`body_html_${l}`,t)}),e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Beschriftung (optional)"}),e.jsx("input",{value:r[`button_label_${l}`]||"",onChange:t=>c(`button_label_${l}`,t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx(p,{fieldKey:`home_sections.${s}.button_label`,previewText:r[`button_label_${l}`]||"Beispieltext"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Ziel (Link, für beide Sprachen gleich)"}),e.jsx("input",{value:r.button_url||"",onChange:t=>c("button_url",t.target.value),placeholder:"/leistungen oder https://…",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:'Ohne Beschriftung UND Ziel wird kein Button angezeigt. Mit "/" beginnende Ziele bleiben innerhalb der Seite, alles andere öffnet extern in einem neuen Tab.'})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Schriftart (für beide Sprachen gleich)"}),e.jsxs("select",{value:r.font_family||"",onChange:t=>c("font_family",t.target.value||null),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Standard (globale Schriftart)"}),b.filter(t=>t.value).map(t=>e.jsx("option",{value:t.value,children:t.label},t.label))]})]})]}),r.updated_at&&e.jsxs("p",{className:"mt-3 text-xs text-neutral-400",children:["Zuletzt geändert: ",new Date(r.updated_at.replace(" ","T")).toLocaleString("de-DE")]}),y&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:y})]}),e.jsx(q,{dirty:o.length>0,busy:P,savedAt:O,onSave:U,label:o.length>1?`Alle ${o.length} Abschnitte speichern`:"Speichern"})]})}export{ne as default};
+import{F as G,r as i,q as K,s as F,c as g,j as e,f as V}from"./index-ByR_n0g5.js";import X from"./RichTextEditor-DOxjC-7q.js";import{T as p}from"./TextStyleWidget-DgrYcrXW.js";import{S as q}from"./SaveBar-DM4P28zl.js";const v=[{slug:"hero",label:"Großes Titelbild (ganz oben)"},{slug:"youtube",label:"Video-Abschnitt"},{slug:"craft",label:"Handwerk"},{slug:"advice",label:"Beratung"},{slug:"insights",label:"Einblicke (Bildergalerie-Intro)"},{slug:"more",label:"Mehr als Car-Hifi"}],J=["hero","youtube"],W=[{value:"left",label:"Links"},{value:"center",label:"Mittig"},{value:"right",label:"Rechts"}],Y={left:"text-left",center:"text-center",right:"text-right"};function Q(b){const d=document.createElement("div");return d.innerHTML=b||"",d.textContent||""}function ne(){var B;const b=G(),[d,h]=i.useState(null),[s,A]=i.useState("hero"),[l,M]=i.useState("de"),[f,k]=i.useState(null),[P,j]=i.useState(!1),[y,m]=i.useState(""),[O,I]=i.useState(null),_=K(),[N,L]=i.useState(""),w=i.useRef(null),[S,$]=i.useState(!1),o=d&&f?v.map(t=>t.slug).filter(t=>JSON.stringify(d[t])!==JSON.stringify(f[t])):[];if(F(o.length>0,"home-sections"),i.useEffect(()=>{g.get("/home-sections").then(t=>{h(t),k(t)}),g.get("/site-settings").then(t=>L(t.hero_image_path||""))},[]),!d)return e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"});const r=d[s],D=J.includes(s),c=(t,a)=>{h(n=>({...n,[s]:{...n[s],[t]:a}}))},u=(t,a)=>{h(n=>({...n,[s]:{...n[s],text_align_x:t,text_align_y:a}}))},T=(t,a)=>{const n=w.current.getBoundingClientRect();return{x:Math.max(0,Math.min(100,Math.round((t-n.left)/n.width*100))),y:Math.max(0,Math.min(100,Math.round((a-n.top)/n.height*100)))}},H=t=>{t.preventDefault(),t.currentTarget.setPointerCapture(t.pointerId),$(!0);const{x:a,y:n}=T(t.clientX,t.clientY);u(a,n)},R=t=>{if(!S)return;const{x:a,y:n}=T(t.clientX,t.clientY);u(a,n)},U=t=>{$(!1),t.currentTarget.releasePointerCapture(t.pointerId)},Z=async()=>{j(!0),m("");const t=[];try{for(const a of o)await g.put(`/home-sections/${a}`,d[a]),t.push(a);I(new Date),_.success(o.length>1?`${o.length} Abschnitte gespeichert.`:"Gespeichert.")}catch(a){m(a.message),_.error(`Speichern fehlgeschlagen: ${a.message}`)}finally{t.length&&k(a=>{const n={...a};return t.forEach(E=>{n[E]=d[E]}),n}),j(!1)}},x=r[`eyebrow_${l}`]||"",C=r[`title_${l}`]||((B=v.find(t=>t.slug===s))==null?void 0:B.label)||"",z=Q(r[`body_html_${l}`]);return e.jsxs("div",{className:"max-w-3xl space-y-6",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Startseite"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Text, Position/Ausrichtung und (falls vorhanden) Button-Ziel der wichtigsten Textabschnitte auf der Startseite. Bilder, Statistik-Kacheln, Marken-Streifen, Bewertungen und FAQ werden an anderer Stelle verwaltet."})]}),e.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("div",{className:"mb-4 flex flex-wrap gap-2",children:v.map(t=>e.jsxs("button",{type:"button",onClick:()=>{A(t.slug),m("")},className:`rounded-md px-3 py-1.5 text-sm font-medium transition ${s===t.slug?"bg-brand-500 text-white":"border border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:[t.label,o.includes(t.slug)&&e.jsx("span",{className:"ml-1 text-amber-400",title:"Ungespeicherte Änderungen",children:"●"})]},t.slug))}),e.jsx("div",{className:"mb-4 flex gap-1 border-b border-neutral-200 pb-4 dark:border-neutral-800",children:[["de","Deutsch"],["en","English"]].map(([t,a])=>e.jsx("button",{type:"button",onClick:()=>M(t),className:`rounded-md px-3 py-1 text-sm font-medium transition ${l===t?"bg-neutral-800 text-white dark:bg-neutral-100 dark:text-neutral-900":"text-neutral-500 hover:bg-neutral-100 dark:text-neutral-400 dark:hover:bg-neutral-800"}`,children:a},t))}),D?e.jsxs("div",{className:"mb-5 grid gap-4 border-b border-neutral-200 pb-5 dark:border-neutral-800 sm:grid-cols-[16rem_1fr] sm:items-start",children:[e.jsxs("div",{children:[e.jsxs("div",{ref:w,className:"relative aspect-video select-none overflow-hidden rounded-xl bg-neutral-900 shadow-sm",children:[s==="hero"&&N?e.jsx("img",{src:N,alt:"",draggable:!1,className:"h-full w-full object-cover"}):e.jsx("div",{className:"flex h-full w-full items-center justify-center bg-gradient-to-br from-neutral-700 to-neutral-900 text-xs uppercase tracking-wide text-neutral-500",children:s==="youtube"?"Video-Hintergrund":"Titelbild"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-black/40"}),e.jsxs("div",{onPointerDown:H,onPointerMove:R,onPointerUp:U,style:{...V(r.text_align_x,r.text_align_y,{x:50,y:50}),touchAction:"none"},className:`absolute max-w-[85%] select-none whitespace-nowrap rounded p-2 text-center transition-colors ${S?"cursor-grabbing bg-white/10 ring-2 ring-brand-400":"cursor-grab hover:bg-white/10"}`,children:[x&&e.jsx("p",{className:"truncate text-[10px] font-semibold uppercase tracking-wide text-brand-300",children:x}),e.jsx("p",{className:"truncate text-sm font-extrabold text-white",children:C})]})]}),e.jsx("p",{className:"mt-1.5 text-center text-xs text-neutral-400",children:"Zum Verschieben ziehen"})]}),e.jsxs("div",{className:"flex flex-col gap-3 sm:pt-1",children:[e.jsxs("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:["Position:"," ",e.jsxs("span",{className:"font-mono font-semibold text-neutral-700 dark:text-neutral-200",children:[r.text_align_x,"% / ",r.text_align_y,"%"]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl waagerecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>u(0,r.text_align_y),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Links"}),e.jsx("button",{type:"button",onClick:()=>u(50,r.text_align_y),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>u(100,r.text_align_y),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Rechts"})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl senkrecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>u(r.text_align_x,0),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Oben"}),e.jsx("button",{type:"button",onClick:()=>u(r.text_align_x,50),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>u(r.text_align_x,100),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Unten"})]})]})]})]}):e.jsxs("div",{className:"mb-5 grid gap-4 border-b border-neutral-200 pb-5 dark:border-neutral-800 sm:grid-cols-[10rem_1fr] sm:items-center",children:[e.jsx("div",{className:"aspect-square rounded-xl bg-neutral-100 dark:bg-neutral-800","aria-hidden":!0}),e.jsxs("div",{children:[e.jsxs("div",{className:`rounded-lg border border-neutral-200 p-3 dark:border-neutral-700 ${Y[r.text_align]||"text-left"}`,children:[x&&e.jsx("p",{className:"mb-1 text-xs font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",children:x}),e.jsx("p",{className:"mb-1 font-bold text-neutral-900 dark:text-white",children:C}),e.jsx("p",{className:"line-clamp-2 text-xs text-neutral-500 dark:text-neutral-400",children:z||"Text erscheint hier…"})]}),e.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:W.map(t=>e.jsx("button",{type:"button",onClick:()=>c("text_align",t.value),className:`rounded-md border px-3 py-1.5 text-sm font-medium transition ${r.text_align===t.value?"border-brand-500 bg-brand-500 text-white":"border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:t.label},t.value))})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Kurzer Vorspann (optional)"}),e.jsx("input",{value:r[`eyebrow_${l}`]||"",onChange:t=>c(`eyebrow_${l}`,t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx(p,{fieldKey:`home_sections.${s}.eyebrow`,previewText:r[`eyebrow_${l}`]||"Beispieltext"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Überschrift"}),e.jsx("input",{value:r[`title_${l}`]||"",onChange:t=>c(`title_${l}`,t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx(p,{fieldKey:`home_sections.${s}.title`,previewText:r[`title_${l}`]||"Beispieltext"})]}),e.jsx(X,{label:"Text",value:r[`body_html_${l}`]||"",onChange:t=>c(`body_html_${l}`,t)}),e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Beschriftung (optional)"}),e.jsx("input",{value:r[`button_label_${l}`]||"",onChange:t=>c(`button_label_${l}`,t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx(p,{fieldKey:`home_sections.${s}.button_label`,previewText:r[`button_label_${l}`]||"Beispieltext"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Ziel (Link, für beide Sprachen gleich)"}),e.jsx("input",{value:r.button_url||"",onChange:t=>c("button_url",t.target.value),placeholder:"/leistungen oder https://…",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:'Ohne Beschriftung UND Ziel wird kein Button angezeigt. Mit "/" beginnende Ziele bleiben innerhalb der Seite, alles andere öffnet extern in einem neuen Tab.'})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Schriftart (für beide Sprachen gleich)"}),e.jsxs("select",{value:r.font_family||"",onChange:t=>c("font_family",t.target.value||null),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Standard (globale Schriftart)"}),b.filter(t=>t.value).map(t=>e.jsx("option",{value:t.value,children:t.label},t.label))]})]})]}),r.updated_at&&e.jsxs("p",{className:"mt-3 text-xs text-neutral-400",children:["Zuletzt geändert: ",new Date(r.updated_at.replace(" ","T")).toLocaleString("de-DE")]}),y&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:y})]}),e.jsx(q,{dirty:o.length>0,busy:P,savedAt:O,onSave:Z,label:o.length>1?`Alle ${o.length} Abschnitte speichern`:"Speichern"})]})}export{ne as default};
diff --git a/hifi/assets/ImageOptimizer-sgJymAi_.js b/hifi/assets/ImageOptimizer-Cj7lSnrS.js
similarity index 97%
rename from hifi/assets/ImageOptimizer-sgJymAi_.js
rename to hifi/assets/ImageOptimizer-Cj7lSnrS.js
index e5919c0..084238e 100644
--- a/hifi/assets/ImageOptimizer-sgJymAi_.js
+++ b/hifi/assets/ImageOptimizer-Cj7lSnrS.js
@@ -1 +1 @@
-import{r,c as u,j as e}from"./index-BlspSYV0.js";function h({compact:m=!1}){const[n,i]=r.useState(!1),[s,l]=r.useState(null),[d,o]=r.useState(""),[t,c]=r.useState(null);r.useEffect(()=>{u.get("/settings/compress-status").then(a=>c(a.gd_available)).catch(()=>c(!1))},[]);const b=async()=>{i(!0),o(""),l(null);try{l(await u.post("/settings/compress-uploads",{}))}catch(a){o(a.message)}finally{i(!1)}};return e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:"Bilder optimieren"}),t!==null&&e.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-semibold ${t?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300"}`,children:t?"Aktiv":"Nicht verfügbar"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:m?"Verkleinert alle bereits hochgeladenen Fotos, damit die Seite schneller lädt. Neue Bilder werden automatisch verkleinert.":"Neu hochgeladene Bilder werden automatisch verkleinert und komprimiert. Dieser Button holt das für alle bereits vorhandenen Bilder nach – nützlich, wenn die Seite durch zu hoch aufgelöste Fotos spürbar langsam lädt."}),t===!1&&e.jsx("p",{className:"mb-4 rounded-md bg-amber-50 p-3 text-sm text-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:'Diese Funktion braucht die PHP-Erweiterung "gd", die auf diesem Server aktuell nicht aktiv ist. Bei den meisten Hostern (auch All-Inkl) ist sie Teil jeder PHP-Version – bitte beim Hoster-Support nachfragen bzw. prüfen, ob in den Hosting-Einstellungen eine andere PHP-Version ausgewählt werden muss.'}),e.jsx("button",{type:"button",onClick:b,disabled:n||t===!1,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:n?"Optimiert… bitte warten":"Bestehende Bilder optimieren"}),d&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:d}),s&&e.jsxs("p",{className:"mt-3 text-sm text-green-600 dark:text-green-400",children:[s.processed," Bild(er) verkleinert: ",(s.before_bytes/1024/1024).toFixed(1)," MB"," → ",(s.after_bytes/1024/1024).toFixed(1)," MB."]})]})}export{h as I};
+import{r,c as u,j as e}from"./index-ByR_n0g5.js";function h({compact:m=!1}){const[n,i]=r.useState(!1),[s,l]=r.useState(null),[d,o]=r.useState(""),[t,c]=r.useState(null);r.useEffect(()=>{u.get("/settings/compress-status").then(a=>c(a.gd_available)).catch(()=>c(!1))},[]);const b=async()=>{i(!0),o(""),l(null);try{l(await u.post("/settings/compress-uploads",{}))}catch(a){o(a.message)}finally{i(!1)}};return e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:"Bilder optimieren"}),t!==null&&e.jsx("span",{className:`rounded-full px-3 py-1 text-xs font-semibold ${t?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300"}`,children:t?"Aktiv":"Nicht verfügbar"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:m?"Verkleinert alle bereits hochgeladenen Fotos, damit die Seite schneller lädt. Neue Bilder werden automatisch verkleinert.":"Neu hochgeladene Bilder werden automatisch verkleinert und komprimiert. Dieser Button holt das für alle bereits vorhandenen Bilder nach – nützlich, wenn die Seite durch zu hoch aufgelöste Fotos spürbar langsam lädt."}),t===!1&&e.jsx("p",{className:"mb-4 rounded-md bg-amber-50 p-3 text-sm text-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:'Diese Funktion braucht die PHP-Erweiterung "gd", die auf diesem Server aktuell nicht aktiv ist. Bei den meisten Hostern (auch All-Inkl) ist sie Teil jeder PHP-Version – bitte beim Hoster-Support nachfragen bzw. prüfen, ob in den Hosting-Einstellungen eine andere PHP-Version ausgewählt werden muss.'}),e.jsx("button",{type:"button",onClick:b,disabled:n||t===!1,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:n?"Optimiert… bitte warten":"Bestehende Bilder optimieren"}),d&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:d}),s&&e.jsxs("p",{className:"mt-3 text-sm text-green-600 dark:text-green-400",children:[s.processed," Bild(er) verkleinert: ",(s.before_bytes/1024/1024).toFixed(1)," MB"," → ",(s.after_bytes/1024/1024).toFixed(1)," MB."]})]})}export{h as I};
diff --git a/hifi/assets/ImageUploadField-Bho12Gdh.js b/hifi/assets/ImageUploadField-IMilh1OJ.js
similarity index 97%
rename from hifi/assets/ImageUploadField-Bho12Gdh.js
rename to hifi/assets/ImageUploadField-IMilh1OJ.js
index fd61c7c..b89b7ad 100644
--- a/hifi/assets/ImageUploadField-Bho12Gdh.js
+++ b/hifi/assets/ImageUploadField-IMilh1OJ.js
@@ -1,4 +1,4 @@
-import{H as mt,r as m,j as u,c as ft}from"./index-BlspSYV0.js";import{M as gt,f as vt}from"./resizeImage-C6PvAwh0.js";var V=!1,E,Z,k,N,_,rt,W,B,U,H,nt,G,X,st,at;function g(){if(!V){V=!0;var o=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(o),t=/(Mac OS X)|(Windows)|(Linux)/.exec(o);if(G=/\b(iPhone|iP[ao]d)/.exec(o),X=/\b(iP[ao]d)/.exec(o),H=/Android/i.exec(o),st=/FBAN\/\w+;/i.exec(o),at=/Mobile/i.exec(o),nt=!!/Win64/.exec(o),e){E=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,E&&document&&document.documentMode&&(E=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(o);rt=i?parseFloat(i[1])+4:E,Z=e[2]?parseFloat(e[2]):NaN,k=e[3]?parseFloat(e[3]):NaN,N=e[4]?parseFloat(e[4]):NaN,N?(e=/(?:Chrome\/(\d+\.\d+))/.exec(o),_=e&&e[1]?parseFloat(e[1]):NaN):_=NaN}else E=Z=k=_=N=NaN;if(t){if(t[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(o);W=r?parseFloat(r[1].replace("_",".")):!0}else W=!1;B=!!t[2],U=!!t[3]}else W=B=U=!1}}var Y={ie:function(){return g()||E},ieCompatibilityMode:function(){return g()||rt>E},ie64:function(){return Y.ie()&&nt},firefox:function(){return g()||Z},opera:function(){return g()||k},webkit:function(){return g()||N},safari:function(){return Y.webkit()},chrome:function(){return g()||_},windows:function(){return g()||B},osx:function(){return g()||W},linux:function(){return g()||U},iphone:function(){return g()||G},mobile:function(){return g()||G||X||H||at},nativeApp:function(){return g()||st},android:function(){return g()||H},ipad:function(){return g()||X}},wt=Y,bt=!!(typeof window<"u"&&window.document&&window.document.createElement),Ct={canUseDOM:bt},xt=Ct,ht=xt,ct;ht.canUseDOM&&(ct=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
+import{J as mt,r as m,j as u,c as ft}from"./index-ByR_n0g5.js";import{M as gt,f as vt}from"./resizeImage-C6PvAwh0.js";var V=!1,E,Z,k,N,_,rt,W,B,U,G,nt,H,X,st,at;function g(){if(!V){V=!0;var o=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(o),t=/(Mac OS X)|(Windows)|(Linux)/.exec(o);if(H=/\b(iPhone|iP[ao]d)/.exec(o),X=/\b(iP[ao]d)/.exec(o),G=/Android/i.exec(o),st=/FBAN\/\w+;/i.exec(o),at=/Mobile/i.exec(o),nt=!!/Win64/.exec(o),e){E=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,E&&document&&document.documentMode&&(E=document.documentMode);var i=/(?:Trident\/(\d+.\d+))/.exec(o);rt=i?parseFloat(i[1])+4:E,Z=e[2]?parseFloat(e[2]):NaN,k=e[3]?parseFloat(e[3]):NaN,N=e[4]?parseFloat(e[4]):NaN,N?(e=/(?:Chrome\/(\d+\.\d+))/.exec(o),_=e&&e[1]?parseFloat(e[1]):NaN):_=NaN}else E=Z=k=_=N=NaN;if(t){if(t[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(o);W=r?parseFloat(r[1].replace("_",".")):!0}else W=!1;B=!!t[2],U=!!t[3]}else W=B=U=!1}}var Y={ie:function(){return g()||E},ieCompatibilityMode:function(){return g()||rt>E},ie64:function(){return Y.ie()&&nt},firefox:function(){return g()||Z},opera:function(){return g()||k},webkit:function(){return g()||N},safari:function(){return Y.webkit()},chrome:function(){return g()||_},windows:function(){return g()||B},osx:function(){return g()||W},linux:function(){return g()||U},iphone:function(){return g()||H},mobile:function(){return g()||H||X||G||at},nativeApp:function(){return g()||st},android:function(){return g()||G},ipad:function(){return g()||X}},wt=Y,bt=!!(typeof window<"u"&&window.document&&window.document.createElement),Ct={canUseDOM:bt},xt=Ct,ht=xt,ct;ht.canUseDOM&&(ct=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
@@ -92,4 +92,4 @@ import{H as mt,r as m,j as u,c as ft}from"./index-BlspSYV0.js";import{M as gt,f
border-left: 0;
border-right: 0;
}
-`;const Bt=250,Ut=1,Ht=3,Gt=1;var F=class x extends m.Component{constructor(...e){super(...e),this.cropperRef=m.createRef(),this.imageRef=m.createRef(),this.videoRef=m.createRef(),this.containerPosition={x:0,y:0},this.containerRef=null,this.styleRef=null,this.containerRect=null,this.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},this.dragStartPosition={x:0,y:0},this.dragStartCrop={x:0,y:0},this.gestureZoomStart=0,this.gestureRotationStart=0,this.isTouching=!1,this.lastPinchDistance=0,this.lastPinchRotation=0,this.rafDragTimeout=null,this.rafPinchTimeout=null,this.wheelTimer=null,this.resizeEmitTimer=null,this.currentDoc=typeof document<"u"?document:null,this.currentWindow=typeof window<"u"?window:null,this.resizeObserver=null,this.previousCropSize=null,this.isInitialized=!1,this.dragInteractionSource=null,this.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},this.initResizeObserver=()=>{if(typeof window.ResizeObserver>"u"||!this.containerRef)return;let t=!0;this.resizeObserver=new window.ResizeObserver(i=>{if(t){t=!1;return}this.computeSizes({isResizeTriggered:!0})}),this.resizeObserver.observe(this.containerRef)},this.onWindowResize=()=>{this.computeSizes({isResizeTriggered:!0})},this.preventZoomSafari=t=>t.preventDefault(),this.cleanEvents=()=>{this.currentDoc&&(this.currentDoc.removeEventListener("mousemove",this.onMouseMove),this.currentDoc.removeEventListener("mouseup",this.onDragStopped),this.currentDoc.removeEventListener("touchmove",this.onTouchMove),this.currentDoc.removeEventListener("touchend",this.onDragStopped),this.currentDoc.removeEventListener("gesturechange",this.onGestureChange),this.currentDoc.removeEventListener("gestureend",this.onGestureEnd),this.currentDoc.removeEventListener("scroll",this.onScroll))},this.clearScrollEvent=()=>{this.containerRef&&this.containerRef.removeEventListener("wheel",this.onWheel),this.wheelTimer&&clearTimeout(this.wheelTimer)},this.onMediaLoad=()=>{const t=this.computeSizes();t&&(this.previousCropSize=t,this.emitCropData(),this.setInitialCrop(t),this.isInitialized=!0),this.props.onMediaLoaded&&this.props.onMediaLoaded(this.mediaSize)},this.setInitialCrop=t=>{if(this.props.initialCroppedAreaPercentages){const{crop:i,zoom:r}=It(this.props.initialCroppedAreaPercentages,this.mediaSize,this.props.rotation,t,this.props.minZoom,this.props.maxZoom);this.props.onCropChange(i),this.props.onZoomChange&&this.props.onZoomChange(r)}else if(this.props.initialCroppedAreaPixels){const{crop:i,zoom:r}=Lt(this.props.initialCroppedAreaPixels,this.mediaSize,this.props.rotation,t,this.props.minZoom,this.props.maxZoom);this.props.onCropChange(i),this.props.onZoomChange&&this.props.onZoomChange(r)}},this.computeSizes=({isResizeTriggered:t=!1}={})=>{const i=this.imageRef.current||this.videoRef.current;if(i&&this.containerRef){var r,n,s,a,h,c;this.containerRect=this.containerRef.getBoundingClientRect(),this.saveContainerPosition();const p=this.containerRect.width/this.containerRect.height,f=((r=this.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((n=this.videoRef.current)===null||n===void 0?void 0:n.videoWidth)||0,y=((s=this.imageRef.current)===null||s===void 0?void 0:s.naturalHeight)||((a=this.videoRef.current)===null||a===void 0?void 0:a.videoHeight)||0,b=i.offsetWidthS?{width:this.containerRect.height*S,height:this.containerRect.height}:{width:this.containerRect.width,height:this.containerRect.width/S};break;case"horizontal-cover":C={width:this.containerRect.width,height:this.containerRect.width/S};break;case"vertical-cover":C={width:this.containerRect.height*S,height:this.containerRect.height};break}else C={width:i.offsetWidth,height:i.offsetHeight};this.mediaSize=d(d({},C),{},{naturalWidth:f,naturalHeight:y}),this.props.setMediaSize&&this.props.setMediaSize(this.mediaSize);const v=this.props.cropSize?this.props.cropSize:At(this.mediaSize.width,this.mediaSize.height,this.containerRect.width,this.containerRect.height,this.props.aspect,this.props.rotation);return(((h=this.state.cropSize)===null||h===void 0?void 0:h.height)!==v.height||((c=this.state.cropSize)===null||c===void 0?void 0:c.width)!==v.width)&&this.props.onCropSizeChange&&this.props.onCropSizeChange(v),this.setState({cropSize:v},()=>this.recomputeCropPosition({isResizeTriggered:t})),this.props.setCropSize&&this.props.setCropSize(v),v}},this.saveContainerPosition=()=>{if(this.containerRef){const t=this.containerRef.getBoundingClientRect();this.containerPosition={x:t.left,y:t.top}}},this.onMouseDown=t=>{this.currentDoc&&(t.preventDefault(),this.currentDoc.addEventListener("mousemove",this.onMouseMove),this.currentDoc.addEventListener("mouseup",this.onDragStopped),this.saveContainerPosition(),this.onDragStart(x.getMousePoint(t),"mouse"))},this.onMouseMove=t=>this.onDrag(x.getMousePoint(t)),this.onScroll=t=>{this.currentDoc&&(t.preventDefault(),this.saveContainerPosition())},this.onTouchStart=t=>{this.currentDoc&&(this.isTouching=!0,!(this.props.onTouchRequest&&!this.props.onTouchRequest(t))&&(this.currentDoc.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.currentDoc.addEventListener("touchend",this.onDragStopped),this.saveContainerPosition(),t.touches.length===2?this.onPinchStart(t):t.touches.length===1&&this.onDragStart(x.getTouchPoint(t.touches[0]),"touch")))},this.onTouchMove=t=>{t.preventDefault(),t.touches.length===2?this.onPinchMove(t):t.touches.length===1&&this.onDrag(x.getTouchPoint(t.touches[0]))},this.onGestureStart=t=>{this.currentDoc&&(t.preventDefault(),this.currentDoc.addEventListener("gesturechange",this.onGestureChange),this.currentDoc.addEventListener("gestureend",this.onGestureEnd),this.gestureZoomStart=this.props.zoom,this.gestureRotationStart=this.props.rotation)},this.onGestureChange=t=>{if(t.preventDefault(),this.isTouching)return;const i=x.getMousePoint(t),r=this.gestureZoomStart-1+t.scale;if(this.setNewZoom(r,i,{shouldUpdatePosition:!0}),this.props.onRotationChange){const n=this.gestureRotationStart+t.rotation;this.props.onRotationChange(n)}},this.onGestureEnd=t=>{this.cleanEvents()},this.onDragStart=({x:t,y:i},r)=>{var n,s;this.dragStartPosition={x:t,y:i},this.dragStartCrop=d({},this.props.crop),this.dragInteractionSource=r,(n=(s=this.props).onInteractionStart)===null||n===void 0||n.call(s,{source:r})},this.onDrag=({x:t,y:i})=>{this.currentWindow&&(this.rafDragTimeout&&this.currentWindow.cancelAnimationFrame(this.rafDragTimeout),this.rafDragTimeout=this.currentWindow.requestAnimationFrame(()=>{if(!this.state.cropSize||t===void 0||i===void 0)return;const r=t-this.dragStartPosition.x,n=i-this.dragStartPosition.y,s={x:this.dragStartCrop.x+r,y:this.dragStartCrop.y+n},a=this.props.restrictPosition?M(s,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):s;this.props.onCropChange(a)}))},this.onDragStopped=()=>{var t,i,r;this.isTouching=!1,this.cleanEvents(),this.emitCropData(),(t=(i=this.props).onInteractionEnd)===null||t===void 0||t.call(i,{source:(r=this.dragInteractionSource)!==null&&r!==void 0?r:"mouse"}),this.dragInteractionSource=null},this.onWheel=t=>{if(!this.currentWindow||this.props.onWheelRequest&&!this.props.onWheelRequest(t))return;t.preventDefault();const i=x.getMousePoint(t),{pixelY:r}=Pt(t),n=this.props.zoom-r*this.props.zoomSpeed/200;this.setNewZoom(n,i,{shouldUpdatePosition:!0}),this.state.hasWheelJustStarted||this.setState({hasWheelJustStarted:!0},()=>{var s,a;return(s=(a=this.props).onInteractionStart)===null||s===void 0?void 0:s.call(a,{source:"wheel"})}),this.wheelTimer&&clearTimeout(this.wheelTimer),this.wheelTimer=this.currentWindow.setTimeout(()=>this.setState({hasWheelJustStarted:!1},()=>{var s,a;return(s=(a=this.props).onInteractionEnd)===null||s===void 0?void 0:s.call(a,{source:"wheel"})}),250)},this.getPointOnContainer=({x:t,y:i},r)=>{if(!this.containerRect)throw new Error("The Cropper is not mounted");return{x:this.containerRect.width/2-(t-r.x),y:this.containerRect.height/2-(i-r.y)}},this.getPointOnMedia=({x:t,y:i})=>{const{crop:r,zoom:n}=this.props;return{x:(t+r.x)/n,y:(i+r.y)/n}},this.setNewZoom=(t,i,{shouldUpdatePosition:r=!0}={})=>{if(!this.state.cropSize||!this.props.onZoomChange)return;const n=I(t,this.props.minZoom,this.props.maxZoom);if(r){const s=this.getPointOnContainer(i,this.containerPosition),a=this.getPointOnMedia(s),h={x:a.x*n-s.x,y:a.y*n-s.y},c=this.props.restrictPosition?M(h,this.mediaSize,this.state.cropSize,n,this.props.rotation):h;this.props.onCropChange(c)}this.props.onZoomChange(n)},this.getCropData=()=>this.state.cropSize?Nt(this.props.restrictPosition?M(this.props.crop,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):this.props.crop,this.mediaSize,this.state.cropSize,this.getAspect(),this.props.zoom,this.props.rotation,this.props.restrictPosition):null,this.emitCropData=()=>{this.resizeEmitTimer&&(clearTimeout(this.resizeEmitTimer),this.resizeEmitTimer=null);const t=this.getCropData();if(!t)return;const{croppedAreaPercentages:i,croppedAreaPixels:r}=t;this.props.onCropComplete&&this.props.onCropComplete(i,r),this.props.onCropAreaChange&&this.props.onCropAreaChange(i,r)},this.emitCropAreaChange=()=>{const t=this.getCropData();if(!t)return;const{croppedAreaPercentages:i,croppedAreaPixels:r}=t;this.props.onCropAreaChange&&this.props.onCropAreaChange(i,r)},this.recomputeCropPosition=({isResizeTriggered:t=!1}={})=>{var i,r;if(!this.state.cropSize)return;let n=this.props.crop;if(this.isInitialized&&(!((i=this.previousCropSize)===null||i===void 0)&&i.width)&&(!((r=this.previousCropSize)===null||r===void 0)&&r.height)&&(Math.abs(this.previousCropSize.width-this.state.cropSize.width)>1e-6||Math.abs(this.previousCropSize.height-this.state.cropSize.height)>1e-6)){const a=this.state.cropSize.width/this.previousCropSize.width,h=this.state.cropSize.height/this.previousCropSize.height;n={x:this.props.crop.x*a,y:this.props.crop.y*h}}const s=this.props.restrictPosition?M(n,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):n;this.previousCropSize=this.state.cropSize,this.props.onCropChange(s),t?this.debouncedEmitCropData():this.emitCropData()},this.debouncedEmitCropData=()=>{this.currentWindow&&(this.resizeEmitTimer&&clearTimeout(this.resizeEmitTimer),this.resizeEmitTimer=this.currentWindow.setTimeout(()=>{this.emitCropData()},Bt))},this.onKeyDown=t=>{const{crop:i,onCropChange:r,keyboardStep:n,zoom:s,rotation:a}=this.props;let h=n;if(!this.state.cropSize)return;t.shiftKey&&(h*=.2);let c=d({},i);switch(t.key){case"ArrowUp":c.y-=h,t.preventDefault();break;case"ArrowDown":c.y+=h,t.preventDefault();break;case"ArrowLeft":c.x-=h,t.preventDefault();break;case"ArrowRight":c.x+=h,t.preventDefault();break;default:return}if(this.props.restrictPosition&&(c=M(c,this.mediaSize,this.state.cropSize,s,a)),!t.repeat){var p,f;(p=(f=this.props).onInteractionStart)===null||p===void 0||p.call(f,{source:"keyboard"})}r(c)},this.onKeyUp=t=>{var i,r;switch(t.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":t.preventDefault();break;default:return}this.emitCropData(),(i=(r=this.props).onInteractionEnd)===null||i===void 0||i.call(r,{source:"keyboard"})}}componentDidMount(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.onWindowResize),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=kt,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))}componentWillUnmount(){var e;if(!(!this.currentDoc||!this.currentWindow)){if(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.onWindowResize),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),this.resizeEmitTimer&&clearTimeout(this.resizeEmitTimer),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef){var t;(t=this.styleRef.parentNode)===null||t===void 0||t.removeChild(this.styleRef)}this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()}}componentDidUpdate(e){var t,i,r,n,s,a,h,c;if(e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():((t=e.cropSize)===null||t===void 0?void 0:t.height)!==((i=this.props.cropSize)===null||i===void 0?void 0:i.height)||((r=e.cropSize)===null||r===void 0?void 0:r.width)!==((n=this.props.cropSize)===null||n===void 0?void 0:n.width)?this.computeSizes():(((s=e.crop)===null||s===void 0?void 0:s.x)!==((a=this.props.crop)===null||a===void 0?void 0:a.x)||((h=e.crop)===null||h===void 0?void 0:h.y)!==((c=this.props.crop)===null||c===void 0?void 0:c.y))&&this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video){var p;(p=this.videoRef.current)===null||p===void 0||p.load()}const f=this.getObjectFit();f!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:f},this.computeSizes)}getAspect(){const{cropSize:e,aspect:t}=this.props;return e?e.width/e.height:t}getObjectFit(){if(this.props.objectFit==="cover"){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){var e,t,i,r;this.containerRect=this.containerRef.getBoundingClientRect();const n=this.containerRect.width/this.containerRect.height;return(((e=this.imageRef.current)===null||e===void 0?void 0:e.naturalWidth)||((t=this.videoRef.current)===null||t===void 0?void 0:t.videoWidth)||0)/(((i=this.imageRef.current)===null||i===void 0?void 0:i.naturalHeight)||((r=this.videoRef.current)===null||r===void 0?void 0:r.videoHeight)||0){const n=et(t,i),s=this.props.zoom*(n/this.lastPinchDistance);this.setNewZoom(s,r,{shouldUpdatePosition:!1}),this.lastPinchDistance=n;const a=it(t,i),h=this.props.rotation+(a-this.lastPinchRotation);this.props.onRotationChange&&this.props.onRotationChange(h),this.lastPinchRotation=a})}render(){var e;const{image:t,video:i,mediaProps:r,cropperProps:n,transform:s,crop:{x:a,y:h},rotation:c,zoom:p,cropShape:f,showGrid:y,roundCropAreaPixels:b,style:{containerStyle:S,cropAreaStyle:C,mediaStyle:v},classes:{containerClassName:T,cropAreaClassName:L,mediaClassName:P}}=this.props,z=(e=this.state.mediaObjectFit)!==null&&e!==void 0?e:this.getObjectFit();return m.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:D=>this.containerRef=D,"data-testid":"container",style:S,className:O("reactEasyCrop_Container",T)},t?m.createElement("img",d(d({alt:"",className:O("reactEasyCrop_Image",z==="contain"&&"reactEasyCrop_Contain",z==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",z==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",P)},r),{},{src:t,ref:this.imageRef,style:d(d({},v),{},{transform:s||`translate(${a}px, ${h}px) rotate(${c}deg) scale(${p})`}),onLoad:this.onMediaLoad})):i&&m.createElement("video",d(d({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:O("reactEasyCrop_Video",z==="contain"&&"reactEasyCrop_Contain",z==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",z==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",P)},r),{},{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:d(d({},v),{},{transform:s||`translate(${a}px, ${h}px) rotate(${c}deg) scale(${p})`}),controls:!1}),(Array.isArray(i)?i:[{src:i}]).map(D=>m.createElement("source",d({key:D.src},D)))),this.state.cropSize&&m.createElement("div",d({ref:this.cropperRef,style:d(d({},C),{},{width:b?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:b?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:O("reactEasyCrop_CropArea",f==="round"&&"reactEasyCrop_CropAreaRound",y&&"reactEasyCrop_CropAreaGrid",L)},n)))}};F.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:Ht,minZoom:Ut,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:Gt};F.getMousePoint=o=>({x:Number(o.clientX),y:Number(o.clientY)});F.getTouchPoint=o=>({x:Number(o.clientX),y:Number(o.clientY)});var Xt=F;function Yt(o){return new Promise((e,t)=>{const i=new Image;i.addEventListener("load",()=>e(i)),i.addEventListener("error",r=>t(r)),i.crossOrigin="anonymous",i.src=o})}const Kt=2400;async function Vt(o,e,t="image/png"){const i=await Yt(o),r=document.createElement("canvas"),n=Math.min(1,Kt/Math.max(e.width,e.height));return r.width=Math.round(e.width*n),r.height=Math.round(e.height*n),r.getContext("2d").drawImage(i,e.x,e.y,e.width,e.height,0,0,r.width,r.height),new Promise((a,h)=>{r.toBlob(c=>{if(!c){h(new Error("Zuschneiden fehlgeschlagen"));return}a(c)},t,t==="image/png"?void 0:.85)})}function qt(o){return o==="image/jpeg"?"jpg":o==="image/webp"?"webp":"png"}function $t({value:o,onChange:e,label:t="Bild",aspect:i}){const[r,n]=m.useState(!1),[s,a]=m.useState(""),[h,c]=m.useState(null),[p,f]=m.useState("image/png"),[y,b]=m.useState({x:0,y:0}),[S,C]=m.useState(1),[v,T]=m.useState(null),[L,P]=m.useState(i||1),z=l=>{f(l.type||"image/png"),b({x:0,y:0}),C(1),T(null),P(i||1),c(URL.createObjectURL(l))},D=l=>{var A;const w=(A=l.target.files)==null?void 0:A[0];l.target.value="",w&&(a(""),z(w))},ut=async()=>{if(o){a("");try{const w=await(await fetch(o)).blob();z(w)}catch{a("Bild konnte nicht zum Zuschneiden geladen werden.")}}},lt=({width:l,height:w})=>{!i&&l&&w&&P(l/w)},K=()=>{h&&URL.revokeObjectURL(h),c(null)},dt=async()=>{if(!(!h||!v)){n(!0),a("");try{const l=await Vt(h,v,p);if(l.size>gt)throw new Error(`Das Bild ist auch nach dem Verkleinern noch ${vt(l.size)} groß (max. 5 MB). Bitte als JPG statt PNG speichern oder einen kleineren Ausschnitt wählen.`);const w=new FormData;w.append("file",l,`zugeschnitten.${qt(p)}`);const A=await ft.post("/uploads",w);e(A.path),K()}catch(l){a(l.message)}finally{n(!1)}}};return u.jsxs("div",{children:[u.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:t}),u.jsxs("div",{className:"flex items-center gap-3",children:[o&&u.jsxs("div",{className:"relative",children:[u.jsx("img",{src:o,alt:"",className:"h-12 w-12 rounded-md object-cover"}),u.jsx("button",{type:"button",onClick:()=>e(null),title:"Bild entfernen","aria-label":"Bild entfernen",className:"absolute -right-1.5 -top-1.5 flex h-5 w-5 items-center justify-center rounded-full bg-red-600 text-xs font-bold leading-none text-white shadow hover:bg-red-700",children:"×"})]}),u.jsx("input",{type:"file",accept:"image/png,image/jpeg,image/webp",onChange:D,className:"text-sm"}),o&&u.jsx("button",{type:"button",onClick:ut,className:"rounded-md border border-neutral-300 px-2 py-1 text-xs font-medium text-neutral-600 hover:bg-neutral-50 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Zuschneiden"}),r&&u.jsx("span",{className:"text-sm text-neutral-500",children:"Lädt hoch…"})]}),u.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"JPG, PNG oder WebP. Große Fotos werden automatisch verkleinert."}),s&&u.jsx("p",{className:"mt-1 text-sm text-red-600",children:s}),h&&u.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",children:u.jsxs("div",{className:"w-full max-w-lg rounded-xl bg-white p-4 dark:bg-neutral-900",children:[u.jsx("p",{className:"mb-3 text-sm font-semibold text-neutral-900 dark:text-white",children:"Bild zuschneiden"}),u.jsx("div",{className:"relative h-80 w-full overflow-hidden rounded-md bg-neutral-800 sm:h-96",children:u.jsx(Xt,{image:h,crop:y,zoom:S,aspect:L,onCropChange:b,onZoomChange:C,onCropComplete:(l,w)=>T(w),onMediaLoaded:lt})}),u.jsx("input",{type:"range",min:1,max:3,step:.01,value:S,onChange:l=>C(Number(l.target.value)),className:"mt-4 w-full"}),s&&u.jsx("p",{className:"mt-2 text-sm text-red-600",children:s}),u.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[u.jsx("button",{type:"button",onClick:K,disabled:r,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"}),u.jsx("button",{type:"button",onClick:dt,disabled:r||!v,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:r?"Lädt hoch…":"Übernehmen"})]})]})})]})}export{$t as I};
+`;const Bt=250,Ut=1,Gt=3,Ht=1;var F=class x extends m.Component{constructor(...e){super(...e),this.cropperRef=m.createRef(),this.imageRef=m.createRef(),this.videoRef=m.createRef(),this.containerPosition={x:0,y:0},this.containerRef=null,this.styleRef=null,this.containerRect=null,this.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},this.dragStartPosition={x:0,y:0},this.dragStartCrop={x:0,y:0},this.gestureZoomStart=0,this.gestureRotationStart=0,this.isTouching=!1,this.lastPinchDistance=0,this.lastPinchRotation=0,this.rafDragTimeout=null,this.rafPinchTimeout=null,this.wheelTimer=null,this.resizeEmitTimer=null,this.currentDoc=typeof document<"u"?document:null,this.currentWindow=typeof window<"u"?window:null,this.resizeObserver=null,this.previousCropSize=null,this.isInitialized=!1,this.dragInteractionSource=null,this.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},this.initResizeObserver=()=>{if(typeof window.ResizeObserver>"u"||!this.containerRef)return;let t=!0;this.resizeObserver=new window.ResizeObserver(i=>{if(t){t=!1;return}this.computeSizes({isResizeTriggered:!0})}),this.resizeObserver.observe(this.containerRef)},this.onWindowResize=()=>{this.computeSizes({isResizeTriggered:!0})},this.preventZoomSafari=t=>t.preventDefault(),this.cleanEvents=()=>{this.currentDoc&&(this.currentDoc.removeEventListener("mousemove",this.onMouseMove),this.currentDoc.removeEventListener("mouseup",this.onDragStopped),this.currentDoc.removeEventListener("touchmove",this.onTouchMove),this.currentDoc.removeEventListener("touchend",this.onDragStopped),this.currentDoc.removeEventListener("gesturechange",this.onGestureChange),this.currentDoc.removeEventListener("gestureend",this.onGestureEnd),this.currentDoc.removeEventListener("scroll",this.onScroll))},this.clearScrollEvent=()=>{this.containerRef&&this.containerRef.removeEventListener("wheel",this.onWheel),this.wheelTimer&&clearTimeout(this.wheelTimer)},this.onMediaLoad=()=>{const t=this.computeSizes();t&&(this.previousCropSize=t,this.emitCropData(),this.setInitialCrop(t),this.isInitialized=!0),this.props.onMediaLoaded&&this.props.onMediaLoaded(this.mediaSize)},this.setInitialCrop=t=>{if(this.props.initialCroppedAreaPercentages){const{crop:i,zoom:r}=It(this.props.initialCroppedAreaPercentages,this.mediaSize,this.props.rotation,t,this.props.minZoom,this.props.maxZoom);this.props.onCropChange(i),this.props.onZoomChange&&this.props.onZoomChange(r)}else if(this.props.initialCroppedAreaPixels){const{crop:i,zoom:r}=Lt(this.props.initialCroppedAreaPixels,this.mediaSize,this.props.rotation,t,this.props.minZoom,this.props.maxZoom);this.props.onCropChange(i),this.props.onZoomChange&&this.props.onZoomChange(r)}},this.computeSizes=({isResizeTriggered:t=!1}={})=>{const i=this.imageRef.current||this.videoRef.current;if(i&&this.containerRef){var r,n,s,a,h,c;this.containerRect=this.containerRef.getBoundingClientRect(),this.saveContainerPosition();const p=this.containerRect.width/this.containerRect.height,f=((r=this.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((n=this.videoRef.current)===null||n===void 0?void 0:n.videoWidth)||0,y=((s=this.imageRef.current)===null||s===void 0?void 0:s.naturalHeight)||((a=this.videoRef.current)===null||a===void 0?void 0:a.videoHeight)||0,b=i.offsetWidthS?{width:this.containerRect.height*S,height:this.containerRect.height}:{width:this.containerRect.width,height:this.containerRect.width/S};break;case"horizontal-cover":C={width:this.containerRect.width,height:this.containerRect.width/S};break;case"vertical-cover":C={width:this.containerRect.height*S,height:this.containerRect.height};break}else C={width:i.offsetWidth,height:i.offsetHeight};this.mediaSize=d(d({},C),{},{naturalWidth:f,naturalHeight:y}),this.props.setMediaSize&&this.props.setMediaSize(this.mediaSize);const v=this.props.cropSize?this.props.cropSize:At(this.mediaSize.width,this.mediaSize.height,this.containerRect.width,this.containerRect.height,this.props.aspect,this.props.rotation);return(((h=this.state.cropSize)===null||h===void 0?void 0:h.height)!==v.height||((c=this.state.cropSize)===null||c===void 0?void 0:c.width)!==v.width)&&this.props.onCropSizeChange&&this.props.onCropSizeChange(v),this.setState({cropSize:v},()=>this.recomputeCropPosition({isResizeTriggered:t})),this.props.setCropSize&&this.props.setCropSize(v),v}},this.saveContainerPosition=()=>{if(this.containerRef){const t=this.containerRef.getBoundingClientRect();this.containerPosition={x:t.left,y:t.top}}},this.onMouseDown=t=>{this.currentDoc&&(t.preventDefault(),this.currentDoc.addEventListener("mousemove",this.onMouseMove),this.currentDoc.addEventListener("mouseup",this.onDragStopped),this.saveContainerPosition(),this.onDragStart(x.getMousePoint(t),"mouse"))},this.onMouseMove=t=>this.onDrag(x.getMousePoint(t)),this.onScroll=t=>{this.currentDoc&&(t.preventDefault(),this.saveContainerPosition())},this.onTouchStart=t=>{this.currentDoc&&(this.isTouching=!0,!(this.props.onTouchRequest&&!this.props.onTouchRequest(t))&&(this.currentDoc.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.currentDoc.addEventListener("touchend",this.onDragStopped),this.saveContainerPosition(),t.touches.length===2?this.onPinchStart(t):t.touches.length===1&&this.onDragStart(x.getTouchPoint(t.touches[0]),"touch")))},this.onTouchMove=t=>{t.preventDefault(),t.touches.length===2?this.onPinchMove(t):t.touches.length===1&&this.onDrag(x.getTouchPoint(t.touches[0]))},this.onGestureStart=t=>{this.currentDoc&&(t.preventDefault(),this.currentDoc.addEventListener("gesturechange",this.onGestureChange),this.currentDoc.addEventListener("gestureend",this.onGestureEnd),this.gestureZoomStart=this.props.zoom,this.gestureRotationStart=this.props.rotation)},this.onGestureChange=t=>{if(t.preventDefault(),this.isTouching)return;const i=x.getMousePoint(t),r=this.gestureZoomStart-1+t.scale;if(this.setNewZoom(r,i,{shouldUpdatePosition:!0}),this.props.onRotationChange){const n=this.gestureRotationStart+t.rotation;this.props.onRotationChange(n)}},this.onGestureEnd=t=>{this.cleanEvents()},this.onDragStart=({x:t,y:i},r)=>{var n,s;this.dragStartPosition={x:t,y:i},this.dragStartCrop=d({},this.props.crop),this.dragInteractionSource=r,(n=(s=this.props).onInteractionStart)===null||n===void 0||n.call(s,{source:r})},this.onDrag=({x:t,y:i})=>{this.currentWindow&&(this.rafDragTimeout&&this.currentWindow.cancelAnimationFrame(this.rafDragTimeout),this.rafDragTimeout=this.currentWindow.requestAnimationFrame(()=>{if(!this.state.cropSize||t===void 0||i===void 0)return;const r=t-this.dragStartPosition.x,n=i-this.dragStartPosition.y,s={x:this.dragStartCrop.x+r,y:this.dragStartCrop.y+n},a=this.props.restrictPosition?M(s,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):s;this.props.onCropChange(a)}))},this.onDragStopped=()=>{var t,i,r;this.isTouching=!1,this.cleanEvents(),this.emitCropData(),(t=(i=this.props).onInteractionEnd)===null||t===void 0||t.call(i,{source:(r=this.dragInteractionSource)!==null&&r!==void 0?r:"mouse"}),this.dragInteractionSource=null},this.onWheel=t=>{if(!this.currentWindow||this.props.onWheelRequest&&!this.props.onWheelRequest(t))return;t.preventDefault();const i=x.getMousePoint(t),{pixelY:r}=Pt(t),n=this.props.zoom-r*this.props.zoomSpeed/200;this.setNewZoom(n,i,{shouldUpdatePosition:!0}),this.state.hasWheelJustStarted||this.setState({hasWheelJustStarted:!0},()=>{var s,a;return(s=(a=this.props).onInteractionStart)===null||s===void 0?void 0:s.call(a,{source:"wheel"})}),this.wheelTimer&&clearTimeout(this.wheelTimer),this.wheelTimer=this.currentWindow.setTimeout(()=>this.setState({hasWheelJustStarted:!1},()=>{var s,a;return(s=(a=this.props).onInteractionEnd)===null||s===void 0?void 0:s.call(a,{source:"wheel"})}),250)},this.getPointOnContainer=({x:t,y:i},r)=>{if(!this.containerRect)throw new Error("The Cropper is not mounted");return{x:this.containerRect.width/2-(t-r.x),y:this.containerRect.height/2-(i-r.y)}},this.getPointOnMedia=({x:t,y:i})=>{const{crop:r,zoom:n}=this.props;return{x:(t+r.x)/n,y:(i+r.y)/n}},this.setNewZoom=(t,i,{shouldUpdatePosition:r=!0}={})=>{if(!this.state.cropSize||!this.props.onZoomChange)return;const n=I(t,this.props.minZoom,this.props.maxZoom);if(r){const s=this.getPointOnContainer(i,this.containerPosition),a=this.getPointOnMedia(s),h={x:a.x*n-s.x,y:a.y*n-s.y},c=this.props.restrictPosition?M(h,this.mediaSize,this.state.cropSize,n,this.props.rotation):h;this.props.onCropChange(c)}this.props.onZoomChange(n)},this.getCropData=()=>this.state.cropSize?Nt(this.props.restrictPosition?M(this.props.crop,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):this.props.crop,this.mediaSize,this.state.cropSize,this.getAspect(),this.props.zoom,this.props.rotation,this.props.restrictPosition):null,this.emitCropData=()=>{this.resizeEmitTimer&&(clearTimeout(this.resizeEmitTimer),this.resizeEmitTimer=null);const t=this.getCropData();if(!t)return;const{croppedAreaPercentages:i,croppedAreaPixels:r}=t;this.props.onCropComplete&&this.props.onCropComplete(i,r),this.props.onCropAreaChange&&this.props.onCropAreaChange(i,r)},this.emitCropAreaChange=()=>{const t=this.getCropData();if(!t)return;const{croppedAreaPercentages:i,croppedAreaPixels:r}=t;this.props.onCropAreaChange&&this.props.onCropAreaChange(i,r)},this.recomputeCropPosition=({isResizeTriggered:t=!1}={})=>{var i,r;if(!this.state.cropSize)return;let n=this.props.crop;if(this.isInitialized&&(!((i=this.previousCropSize)===null||i===void 0)&&i.width)&&(!((r=this.previousCropSize)===null||r===void 0)&&r.height)&&(Math.abs(this.previousCropSize.width-this.state.cropSize.width)>1e-6||Math.abs(this.previousCropSize.height-this.state.cropSize.height)>1e-6)){const a=this.state.cropSize.width/this.previousCropSize.width,h=this.state.cropSize.height/this.previousCropSize.height;n={x:this.props.crop.x*a,y:this.props.crop.y*h}}const s=this.props.restrictPosition?M(n,this.mediaSize,this.state.cropSize,this.props.zoom,this.props.rotation):n;this.previousCropSize=this.state.cropSize,this.props.onCropChange(s),t?this.debouncedEmitCropData():this.emitCropData()},this.debouncedEmitCropData=()=>{this.currentWindow&&(this.resizeEmitTimer&&clearTimeout(this.resizeEmitTimer),this.resizeEmitTimer=this.currentWindow.setTimeout(()=>{this.emitCropData()},Bt))},this.onKeyDown=t=>{const{crop:i,onCropChange:r,keyboardStep:n,zoom:s,rotation:a}=this.props;let h=n;if(!this.state.cropSize)return;t.shiftKey&&(h*=.2);let c=d({},i);switch(t.key){case"ArrowUp":c.y-=h,t.preventDefault();break;case"ArrowDown":c.y+=h,t.preventDefault();break;case"ArrowLeft":c.x-=h,t.preventDefault();break;case"ArrowRight":c.x+=h,t.preventDefault();break;default:return}if(this.props.restrictPosition&&(c=M(c,this.mediaSize,this.state.cropSize,s,a)),!t.repeat){var p,f;(p=(f=this.props).onInteractionStart)===null||p===void 0||p.call(f,{source:"keyboard"})}r(c)},this.onKeyUp=t=>{var i,r;switch(t.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":t.preventDefault();break;default:return}this.emitCropData(),(i=(r=this.props).onInteractionEnd)===null||i===void 0||i.call(r,{source:"keyboard"})}}componentDidMount(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.onWindowResize),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=kt,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))}componentWillUnmount(){var e;if(!(!this.currentDoc||!this.currentWindow)){if(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.onWindowResize),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),this.resizeEmitTimer&&clearTimeout(this.resizeEmitTimer),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef){var t;(t=this.styleRef.parentNode)===null||t===void 0||t.removeChild(this.styleRef)}this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()}}componentDidUpdate(e){var t,i,r,n,s,a,h,c;if(e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():((t=e.cropSize)===null||t===void 0?void 0:t.height)!==((i=this.props.cropSize)===null||i===void 0?void 0:i.height)||((r=e.cropSize)===null||r===void 0?void 0:r.width)!==((n=this.props.cropSize)===null||n===void 0?void 0:n.width)?this.computeSizes():(((s=e.crop)===null||s===void 0?void 0:s.x)!==((a=this.props.crop)===null||a===void 0?void 0:a.x)||((h=e.crop)===null||h===void 0?void 0:h.y)!==((c=this.props.crop)===null||c===void 0?void 0:c.y))&&this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video){var p;(p=this.videoRef.current)===null||p===void 0||p.load()}const f=this.getObjectFit();f!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:f},this.computeSizes)}getAspect(){const{cropSize:e,aspect:t}=this.props;return e?e.width/e.height:t}getObjectFit(){if(this.props.objectFit==="cover"){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){var e,t,i,r;this.containerRect=this.containerRef.getBoundingClientRect();const n=this.containerRect.width/this.containerRect.height;return(((e=this.imageRef.current)===null||e===void 0?void 0:e.naturalWidth)||((t=this.videoRef.current)===null||t===void 0?void 0:t.videoWidth)||0)/(((i=this.imageRef.current)===null||i===void 0?void 0:i.naturalHeight)||((r=this.videoRef.current)===null||r===void 0?void 0:r.videoHeight)||0){const n=et(t,i),s=this.props.zoom*(n/this.lastPinchDistance);this.setNewZoom(s,r,{shouldUpdatePosition:!1}),this.lastPinchDistance=n;const a=it(t,i),h=this.props.rotation+(a-this.lastPinchRotation);this.props.onRotationChange&&this.props.onRotationChange(h),this.lastPinchRotation=a})}render(){var e;const{image:t,video:i,mediaProps:r,cropperProps:n,transform:s,crop:{x:a,y:h},rotation:c,zoom:p,cropShape:f,showGrid:y,roundCropAreaPixels:b,style:{containerStyle:S,cropAreaStyle:C,mediaStyle:v},classes:{containerClassName:T,cropAreaClassName:L,mediaClassName:P}}=this.props,z=(e=this.state.mediaObjectFit)!==null&&e!==void 0?e:this.getObjectFit();return m.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:D=>this.containerRef=D,"data-testid":"container",style:S,className:O("reactEasyCrop_Container",T)},t?m.createElement("img",d(d({alt:"",className:O("reactEasyCrop_Image",z==="contain"&&"reactEasyCrop_Contain",z==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",z==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",P)},r),{},{src:t,ref:this.imageRef,style:d(d({},v),{},{transform:s||`translate(${a}px, ${h}px) rotate(${c}deg) scale(${p})`}),onLoad:this.onMediaLoad})):i&&m.createElement("video",d(d({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:O("reactEasyCrop_Video",z==="contain"&&"reactEasyCrop_Contain",z==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",z==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",P)},r),{},{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:d(d({},v),{},{transform:s||`translate(${a}px, ${h}px) rotate(${c}deg) scale(${p})`}),controls:!1}),(Array.isArray(i)?i:[{src:i}]).map(D=>m.createElement("source",d({key:D.src},D)))),this.state.cropSize&&m.createElement("div",d({ref:this.cropperRef,style:d(d({},C),{},{width:b?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:b?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:O("reactEasyCrop_CropArea",f==="round"&&"reactEasyCrop_CropAreaRound",y&&"reactEasyCrop_CropAreaGrid",L)},n)))}};F.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:Gt,minZoom:Ut,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:Ht};F.getMousePoint=o=>({x:Number(o.clientX),y:Number(o.clientY)});F.getTouchPoint=o=>({x:Number(o.clientX),y:Number(o.clientY)});var Xt=F;function Yt(o){return new Promise((e,t)=>{const i=new Image;i.addEventListener("load",()=>e(i)),i.addEventListener("error",r=>t(r)),i.crossOrigin="anonymous",i.src=o})}const Kt=2400;async function Vt(o,e,t="image/png"){const i=await Yt(o),r=document.createElement("canvas"),n=Math.min(1,Kt/Math.max(e.width,e.height));return r.width=Math.round(e.width*n),r.height=Math.round(e.height*n),r.getContext("2d").drawImage(i,e.x,e.y,e.width,e.height,0,0,r.width,r.height),new Promise((a,h)=>{r.toBlob(c=>{if(!c){h(new Error("Zuschneiden fehlgeschlagen"));return}a(c)},t,t==="image/png"?void 0:.85)})}function qt(o){return o==="image/jpeg"?"jpg":o==="image/webp"?"webp":"png"}function $t({value:o,onChange:e,label:t="Bild",aspect:i}){const[r,n]=m.useState(!1),[s,a]=m.useState(""),[h,c]=m.useState(null),[p,f]=m.useState("image/png"),[y,b]=m.useState({x:0,y:0}),[S,C]=m.useState(1),[v,T]=m.useState(null),[L,P]=m.useState(i||1),z=l=>{f(l.type||"image/png"),b({x:0,y:0}),C(1),T(null),P(i||1),c(URL.createObjectURL(l))},D=l=>{var A;const w=(A=l.target.files)==null?void 0:A[0];l.target.value="",w&&(a(""),z(w))},ut=async()=>{if(o){a("");try{const w=await(await fetch(o)).blob();z(w)}catch{a("Bild konnte nicht zum Zuschneiden geladen werden.")}}},lt=({width:l,height:w})=>{!i&&l&&w&&P(l/w)},K=()=>{h&&URL.revokeObjectURL(h),c(null)},dt=async()=>{if(!(!h||!v)){n(!0),a("");try{const l=await Vt(h,v,p);if(l.size>gt)throw new Error(`Das Bild ist auch nach dem Verkleinern noch ${vt(l.size)} groß (max. 5 MB). Bitte als JPG statt PNG speichern oder einen kleineren Ausschnitt wählen.`);const w=new FormData;w.append("file",l,`zugeschnitten.${qt(p)}`);const A=await ft.post("/uploads",w);e(A.path),K()}catch(l){a(l.message)}finally{n(!1)}}};return u.jsxs("div",{children:[u.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:t}),u.jsxs("div",{className:"flex items-center gap-3",children:[o&&u.jsxs("div",{className:"relative",children:[u.jsx("img",{src:o,alt:"",className:"h-12 w-12 rounded-md object-cover"}),u.jsx("button",{type:"button",onClick:()=>e(null),title:"Bild entfernen","aria-label":"Bild entfernen",className:"absolute -right-1.5 -top-1.5 flex h-5 w-5 items-center justify-center rounded-full bg-red-600 text-xs font-bold leading-none text-white shadow hover:bg-red-700",children:"×"})]}),u.jsx("input",{type:"file",accept:"image/png,image/jpeg,image/webp",onChange:D,className:"text-sm"}),o&&u.jsx("button",{type:"button",onClick:ut,className:"rounded-md border border-neutral-300 px-2 py-1 text-xs font-medium text-neutral-600 hover:bg-neutral-50 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Zuschneiden"}),r&&u.jsx("span",{className:"text-sm text-neutral-500",children:"Lädt hoch…"})]}),u.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"JPG, PNG oder WebP. Große Fotos werden automatisch verkleinert."}),s&&u.jsx("p",{className:"mt-1 text-sm text-red-600",children:s}),h&&u.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",children:u.jsxs("div",{className:"w-full max-w-lg rounded-xl bg-white p-4 dark:bg-neutral-900",children:[u.jsx("p",{className:"mb-3 text-sm font-semibold text-neutral-900 dark:text-white",children:"Bild zuschneiden"}),u.jsx("div",{className:"relative h-80 w-full overflow-hidden rounded-md bg-neutral-800 sm:h-96",children:u.jsx(Xt,{image:h,crop:y,zoom:S,aspect:L,onCropChange:b,onZoomChange:C,onCropComplete:(l,w)=>T(w),onMediaLoaded:lt})}),u.jsx("input",{type:"range",min:1,max:3,step:.01,value:S,onChange:l=>C(Number(l.target.value)),className:"mt-4 w-full"}),s&&u.jsx("p",{className:"mt-2 text-sm text-red-600",children:s}),u.jsxs("div",{className:"mt-4 flex justify-end gap-2",children:[u.jsx("button",{type:"button",onClick:K,disabled:r,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"}),u.jsx("button",{type:"button",onClick:dt,disabled:r||!v,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:r?"Lädt hoch…":"Übernehmen"})]})]})})]})}export{$t as I};
diff --git a/hifi/assets/Impressum-BcYT0HIo.js b/hifi/assets/Impressum-BcYT0HIo.js
deleted file mode 100644
index ea9088a..0000000
--- a/hifi/assets/Impressum-BcYT0HIo.js
+++ /dev/null
@@ -1 +0,0 @@
-import{j as s}from"./index-BlspSYV0.js";import{L as e}from"./LegalPageView-Cw-csW7_.js";function i(){return s.jsx(e,{slug:"impressum",fallbackTitle:"Impressum",description:"Impressum von HifiPlanet Amorbach gemäß § 5 DDG."})}export{i as default};
diff --git a/hifi/assets/Impressum-teGCkFgH.js b/hifi/assets/Impressum-teGCkFgH.js
new file mode 100644
index 0000000..5527125
--- /dev/null
+++ b/hifi/assets/Impressum-teGCkFgH.js
@@ -0,0 +1 @@
+import{j as s}from"./index-ByR_n0g5.js";import{L as e}from"./LegalPageView-DyCn1nFB.js";function i(){return s.jsx(e,{slug:"impressum",fallbackTitle:"Impressum",description:"Impressum von HifiPlanet Amorbach gemäß § 5 DDG."})}export{i as default};
diff --git a/hifi/assets/LegalPageView-Cw-csW7_.js b/hifi/assets/LegalPageView-DyCn1nFB.js
similarity index 82%
rename from hifi/assets/LegalPageView-Cw-csW7_.js
rename to hifi/assets/LegalPageView-DyCn1nFB.js
index 894763e..9be35b5 100644
--- a/hifi/assets/LegalPageView-Cw-csW7_.js
+++ b/hifi/assets/LegalPageView-DyCn1nFB.js
@@ -1 +1 @@
-import{r as l,c as n,b as r,j as a,d,i as m}from"./index-BlspSYV0.js";function c({slug:e,fallbackTitle:s,description:i}){const[t,x]=l.useState(null);return l.useEffect(()=>{n.get(`/legal-pages/${e}`).then(x).catch(()=>{})},[e]),r({title:(t==null?void 0:t.title)||s,description:i,path:`/${e}`}),t?a.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-12 sm:px-6",children:[a.jsx(d,{entity:"legal_pages",id:e,field:"title",lang:"de",value:t.title,as:"h1",className:"mb-8 block text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl"}),a.jsx(m,{entity:"legal_pages",id:e,field:"body_html",lang:"de",value:t.body_html,label:t.title,className:"legal-content text-sm text-neutral-600 dark:text-neutral-300"})]}):null}export{c as L};
+import{r as l,c as n,b as r,j as a,d,i as m}from"./index-ByR_n0g5.js";function c({slug:e,fallbackTitle:s,description:i}){const[t,x]=l.useState(null);return l.useEffect(()=>{n.get(`/legal-pages/${e}`).then(x).catch(()=>{})},[e]),r({title:(t==null?void 0:t.title)||s,description:i,path:`/${e}`}),t?a.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-12 sm:px-6",children:[a.jsx(d,{entity:"legal_pages",id:e,field:"title",lang:"de",value:t.title,as:"h1",className:"mb-8 block text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl"}),a.jsx(m,{entity:"legal_pages",id:e,field:"body_html",lang:"de",value:t.body_html,label:t.title,className:"legal-content text-sm text-neutral-600 dark:text-neutral-300"})]}):null}export{c as L};
diff --git a/hifi/assets/LegalSettings-DOcxDZNv.js b/hifi/assets/LegalSettings-BIpr5BoD.js
similarity index 95%
rename from hifi/assets/LegalSettings-DOcxDZNv.js
rename to hifi/assets/LegalSettings-BIpr5BoD.js
index 5d85ba0..116f0e1 100644
--- a/hifi/assets/LegalSettings-DOcxDZNv.js
+++ b/hifi/assets/LegalSettings-BIpr5BoD.js
@@ -1 +1 @@
-import{r as s,c as b,j as e}from"./index-BlspSYV0.js";import v from"./RichTextEditor-CO4xzKJO.js";const j=[{slug:"impressum",label:"Impressum"},{slug:"datenschutz",label:"Datenschutzerklärung"},{slug:"agb",label:"AGB"}];function k(){const[d,u]=s.useState(null),[r,h]=s.useState("impressum"),[c,i]=s.useState(!1),[o,n]=s.useState(""),[g,l]=s.useState(!1);if(s.useEffect(()=>{b.get("/legal-pages").then(u)},[]),!d)return e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"});const a=d[r],m=(t,f)=>{u(x=>({...x,[r]:{...x[r],[t]:f}})),l(!1)},p=async()=>{i(!0),n(""),l(!1);try{await b.put(`/legal-pages/${r}`,{title:a.title,body_html:a.body_html}),l(!0)}catch(t){n(t.message)}finally{i(!1)}};return e.jsx("div",{className:"max-w-3xl space-y-6",children:e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Rechtstexte"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Impressum, Datenschutzerklärung und AGB direkt hier pflegen, statt einen Deploy für jede Textänderung zu brauchen. Bitte bei Rechtstexten im Zweifel rechtlich beraten lassen, bevor du größere Änderungen veröffentlichst."}),e.jsx("div",{className:"mb-4 flex flex-wrap gap-2",children:j.map(t=>e.jsx("button",{type:"button",onClick:()=>{h(t.slug),l(!1),n("")},className:`rounded-md px-3 py-1.5 text-sm font-medium transition ${r===t.slug?"bg-brand-500 text-white":"border border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:t.label},t.slug))}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Überschrift"}),e.jsx("input",{value:a.title,onChange:t=>m("title",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(v,{label:"Inhalt",value:a.body_html,onChange:t=>m("body_html",t)})]}),a.updated_at&&e.jsxs("p",{className:"mt-3 text-xs text-neutral-400",children:["Zuletzt geändert: ",new Date(a.updated_at.replace(" ","T")).toLocaleString("de-DE")]}),o&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:o}),g&&e.jsx("p",{className:"mt-3 text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsx("button",{type:"button",onClick:p,disabled:c,className:"mt-4 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:c?"Speichere…":"Speichern"})]})})}export{k as default};
+import{r as s,c as b,j as e}from"./index-ByR_n0g5.js";import v from"./RichTextEditor-DOxjC-7q.js";const j=[{slug:"impressum",label:"Impressum"},{slug:"datenschutz",label:"Datenschutzerklärung"},{slug:"agb",label:"AGB"}];function k(){const[d,u]=s.useState(null),[r,h]=s.useState("impressum"),[c,i]=s.useState(!1),[o,n]=s.useState(""),[g,l]=s.useState(!1);if(s.useEffect(()=>{b.get("/legal-pages").then(u)},[]),!d)return e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"});const a=d[r],m=(t,f)=>{u(x=>({...x,[r]:{...x[r],[t]:f}})),l(!1)},p=async()=>{i(!0),n(""),l(!1);try{await b.put(`/legal-pages/${r}`,{title:a.title,body_html:a.body_html}),l(!0)}catch(t){n(t.message)}finally{i(!1)}};return e.jsx("div",{className:"max-w-3xl space-y-6",children:e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Rechtstexte"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Impressum, Datenschutzerklärung und AGB direkt hier pflegen, statt einen Deploy für jede Textänderung zu brauchen. Bitte bei Rechtstexten im Zweifel rechtlich beraten lassen, bevor du größere Änderungen veröffentlichst."}),e.jsx("div",{className:"mb-4 flex flex-wrap gap-2",children:j.map(t=>e.jsx("button",{type:"button",onClick:()=>{h(t.slug),l(!1),n("")},className:`rounded-md px-3 py-1.5 text-sm font-medium transition ${r===t.slug?"bg-brand-500 text-white":"border border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:t.label},t.slug))}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Überschrift"}),e.jsx("input",{value:a.title,onChange:t=>m("title",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(v,{label:"Inhalt",value:a.body_html,onChange:t=>m("body_html",t)})]}),a.updated_at&&e.jsxs("p",{className:"mt-3 text-xs text-neutral-400",children:["Zuletzt geändert: ",new Date(a.updated_at.replace(" ","T")).toLocaleString("de-DE")]}),o&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:o}),g&&e.jsx("p",{className:"mt-3 text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),e.jsx("button",{type:"button",onClick:p,disabled:c,className:"mt-4 rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:c?"Speichere…":"Speichern"})]})})}export{k as default};
diff --git a/hifi/assets/Login-CtyQdW_H.js b/hifi/assets/Login-7RAlIzMA.js
similarity index 98%
rename from hifi/assets/Login-CtyQdW_H.js
rename to hifi/assets/Login-7RAlIzMA.js
index 7fd13e6..bf36f85 100644
--- a/hifi/assets/Login-CtyQdW_H.js
+++ b/hifi/assets/Login-7RAlIzMA.js
@@ -1 +1 @@
-import{k as N,m as v,r,j as e,n as y,l as C,o as S}from"./index-BlspSYV0.js";function P(){const{user:x,login:h,verifyTwoFactor:g}=N(),o=v(),[f,u]=r.useState("credentials"),[i,p]=r.useState(""),[c,w]=r.useState(""),[m,b]=r.useState(""),[s,a]=r.useState(""),[n,l]=r.useState(!1);if(x)return e.jsx(y,{to:"/admin",replace:!0});const k=async t=>{t.preventDefault(),l(!0),a("");try{(await h(i,c)).requires2fa?u("code"):o("/admin")}catch(d){a(d.message)}finally{l(!1)}},j=async t=>{t.preventDefault(),l(!0),a("");try{await g(m),o("/admin")}catch(d){a(d.message)}finally{l(!1)}};return e.jsxs("div",{className:"flex min-h-screen flex-col items-center justify-center gap-6 bg-neutral-50 px-4 dark:bg-neutral-950",children:[e.jsx("img",{src:C,alt:"HifiPlanet",className:"h-16 w-auto dark:hidden sm:h-20"}),e.jsx("img",{src:S,alt:"HifiPlanet",className:"hidden h-16 w-auto dark:block sm:h-20"}),f==="credentials"?e.jsxs("form",{onSubmit:k,className:"w-full max-w-sm rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h1",{className:"mb-6 text-xl font-bold text-neutral-900 dark:text-white",children:"Admin-Login"}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzername"}),e.jsx("input",{value:i,onChange:t=>p(t.target.value),required:!0,autoFocus:!0,className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Passwort"}),e.jsx("input",{type:"password",value:c,onChange:t=>w(t.target.value),required:!0,className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900"})]}),s&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:s}),e.jsx("button",{type:"submit",disabled:n,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:n?"Anmelden…":"Anmelden"})]}):e.jsxs("form",{onSubmit:j,className:"w-full max-w-sm rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Bestätigungscode"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Öffne die Google Authenticator App und gib den 6-stelligen Code ein. Alternativ kannst du auch einen deiner Wiederherstellungscodes verwenden."}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Code"}),e.jsx("input",{value:m,onChange:t=>b(t.target.value),required:!0,autoFocus:!0,inputMode:"numeric",placeholder:"123456",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-center text-lg tracking-widest focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900"})]}),s&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:s}),e.jsx("button",{type:"submit",disabled:n,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:n?"Prüfe…":"Bestätigen"}),e.jsx("button",{type:"button",onClick:()=>{u("credentials"),b(""),a("")},className:"mt-3 w-full text-sm text-neutral-500 hover:underline dark:text-neutral-400",children:"Zurück zum Login"})]})]})}export{P as default};
+import{k as N,m as v,r,j as e,n as y,l as C,o as S}from"./index-ByR_n0g5.js";function P(){const{user:x,login:h,verifyTwoFactor:g}=N(),o=v(),[f,u]=r.useState("credentials"),[i,p]=r.useState(""),[c,w]=r.useState(""),[m,b]=r.useState(""),[s,a]=r.useState(""),[n,l]=r.useState(!1);if(x)return e.jsx(y,{to:"/admin",replace:!0});const k=async t=>{t.preventDefault(),l(!0),a("");try{(await h(i,c)).requires2fa?u("code"):o("/admin")}catch(d){a(d.message)}finally{l(!1)}},j=async t=>{t.preventDefault(),l(!0),a("");try{await g(m),o("/admin")}catch(d){a(d.message)}finally{l(!1)}};return e.jsxs("div",{className:"flex min-h-screen flex-col items-center justify-center gap-6 bg-neutral-50 px-4 dark:bg-neutral-950",children:[e.jsx("img",{src:C,alt:"HifiPlanet",className:"h-16 w-auto dark:hidden sm:h-20"}),e.jsx("img",{src:S,alt:"HifiPlanet",className:"hidden h-16 w-auto dark:block sm:h-20"}),f==="credentials"?e.jsxs("form",{onSubmit:k,className:"w-full max-w-sm rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h1",{className:"mb-6 text-xl font-bold text-neutral-900 dark:text-white",children:"Admin-Login"}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Benutzername"}),e.jsx("input",{value:i,onChange:t=>p(t.target.value),required:!0,autoFocus:!0,className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Passwort"}),e.jsx("input",{type:"password",value:c,onChange:t=>w(t.target.value),required:!0,className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900"})]}),s&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:s}),e.jsx("button",{type:"submit",disabled:n,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:n?"Anmelden…":"Anmelden"})]}):e.jsxs("form",{onSubmit:j,className:"w-full max-w-sm rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Bestätigungscode"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Öffne die Google Authenticator App und gib den 6-stelligen Code ein. Alternativ kannst du auch einen deiner Wiederherstellungscodes verwenden."}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Code"}),e.jsx("input",{value:m,onChange:t=>b(t.target.value),required:!0,autoFocus:!0,inputMode:"numeric",placeholder:"123456",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-center text-lg tracking-widest focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900"})]}),s&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:s}),e.jsx("button",{type:"submit",disabled:n,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:n?"Prüfe…":"Bestätigen"}),e.jsx("button",{type:"button",onClick:()=>{u("credentials"),b(""),a("")},className:"mt-3 w-full text-sm text-neutral-500 hover:underline dark:text-neutral-400",children:"Zurück zum Login"})]})]})}export{P as default};
diff --git a/hifi/assets/MaintenanceSettings-C-n0I6ae.js b/hifi/assets/MaintenanceSettings-DOQMi8VY.js
similarity index 98%
rename from hifi/assets/MaintenanceSettings-C-n0I6ae.js
rename to hifi/assets/MaintenanceSettings-DOQMi8VY.js
index 3d492eb..b020c73 100644
--- a/hifi/assets/MaintenanceSettings-C-n0I6ae.js
+++ b/hifi/assets/MaintenanceSettings-DOQMi8VY.js
@@ -1 +1 @@
-import{r as s,c as o,j as a}from"./index-BlspSYV0.js";const v={global:{enabled:!1,message:""},services:{enabled:!1,message:""},vehicles:{enabled:!1,message:""}};function N(){const[l,n]=s.useState(v),[g,h]=s.useState(!0),[i,d]=s.useState(!1),[x,r]=s.useState(!1),[c,u]=s.useState("");s.useEffect(()=>{o.get("/maintenance").then(e=>{n({global:{enabled:e.global.enabled,message:e.global.message||""},services:{enabled:e.services.enabled,message:e.services.message||""},vehicles:{enabled:e.vehicles.enabled,message:e.vehicles.message||""}})}).finally(()=>h(!1))},[]);const m=(e,t,k)=>{n(b=>({...b,[e]:{...b[e],[t]:k}})),r(!1)},p=async e=>{e.preventDefault(),d(!0),u(""),r(!1);try{const t=await o.post("/maintenance",l);n({global:{enabled:t.global.enabled,message:t.global.message||""},services:{enabled:t.services.enabled,message:t.services.message||""},vehicles:{enabled:t.vehicles.enabled,message:t.vehicles.message||""}}),r(!0)}catch(t){u(t.message)}finally{d(!1)}},f=[{key:"global",title:"Gesamte Seite",hint:"Besucher sehen nur noch eine Wartungsmeldung – egal welche Seite sie aufrufen. Das Admin-Panel bleibt für dich erreichbar."},{key:"services",title:"Nur Leistungen",hint:"Nur die Leistungen-Seite zeigt eine Wartungsmeldung, der Rest der Website funktioniert normal."},{key:"vehicles",title:"Nur Fahrzeugkatalog",hint:"Nur die Fahrzeugauswahl (Marke → Modell → Pakete) zeigt eine Wartungsmeldung, der Rest der Website funktioniert normal."}];return g?a.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):a.jsxs("form",{onSubmit:p,className:"max-w-2xl space-y-6",children:[a.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:'Ist "Gesamte Seite" aktiv, gewinnt das immer – die beiden anderen Schalter spielen dann keine Rolle mehr.'}),f.map(e=>a.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[a.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[a.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:e.title}),a.jsxs("label",{className:"relative inline-flex cursor-pointer items-center",children:[a.jsx("input",{type:"checkbox",checked:l[e.key].enabled,onChange:t=>m(e.key,"enabled",t.target.checked),className:"peer sr-only"}),a.jsx("div",{className:"h-6 w-11 rounded-full bg-neutral-200 transition peer-checked:bg-brand-500 dark:bg-neutral-700"}),a.jsx("div",{className:"absolute left-1 top-1 h-4 w-4 rounded-full bg-white transition peer-checked:translate-x-5"})]})]}),a.jsx("p",{className:"mb-3 text-sm text-neutral-500 dark:text-neutral-400",children:e.hint}),a.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Eigene Nachricht (optional)"}),a.jsx("textarea",{rows:2,value:l[e.key].message,onChange:t=>m(e.key,"message",t.target.value),placeholder:"z. B. Wir aktualisieren gerade unser Angebot. Schau bald wieder vorbei!",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]},e.key)),c&&a.jsx("p",{className:"text-sm text-red-600",children:c}),x&&a.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),a.jsx("button",{type:"submit",disabled:i,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:i?"Speichere…":"Speichern"})]})}export{N as default};
+import{r as s,c as o,j as a}from"./index-ByR_n0g5.js";const v={global:{enabled:!1,message:""},services:{enabled:!1,message:""},vehicles:{enabled:!1,message:""}};function N(){const[l,n]=s.useState(v),[g,h]=s.useState(!0),[i,d]=s.useState(!1),[x,r]=s.useState(!1),[c,u]=s.useState("");s.useEffect(()=>{o.get("/maintenance").then(e=>{n({global:{enabled:e.global.enabled,message:e.global.message||""},services:{enabled:e.services.enabled,message:e.services.message||""},vehicles:{enabled:e.vehicles.enabled,message:e.vehicles.message||""}})}).finally(()=>h(!1))},[]);const m=(e,t,k)=>{n(b=>({...b,[e]:{...b[e],[t]:k}})),r(!1)},p=async e=>{e.preventDefault(),d(!0),u(""),r(!1);try{const t=await o.post("/maintenance",l);n({global:{enabled:t.global.enabled,message:t.global.message||""},services:{enabled:t.services.enabled,message:t.services.message||""},vehicles:{enabled:t.vehicles.enabled,message:t.vehicles.message||""}}),r(!0)}catch(t){u(t.message)}finally{d(!1)}},f=[{key:"global",title:"Gesamte Seite",hint:"Besucher sehen nur noch eine Wartungsmeldung – egal welche Seite sie aufrufen. Das Admin-Panel bleibt für dich erreichbar."},{key:"services",title:"Nur Leistungen",hint:"Nur die Leistungen-Seite zeigt eine Wartungsmeldung, der Rest der Website funktioniert normal."},{key:"vehicles",title:"Nur Fahrzeugkatalog",hint:"Nur die Fahrzeugauswahl (Marke → Modell → Pakete) zeigt eine Wartungsmeldung, der Rest der Website funktioniert normal."}];return g?a.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):a.jsxs("form",{onSubmit:p,className:"max-w-2xl space-y-6",children:[a.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:'Ist "Gesamte Seite" aktiv, gewinnt das immer – die beiden anderen Schalter spielen dann keine Rolle mehr.'}),f.map(e=>a.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[a.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[a.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:e.title}),a.jsxs("label",{className:"relative inline-flex cursor-pointer items-center",children:[a.jsx("input",{type:"checkbox",checked:l[e.key].enabled,onChange:t=>m(e.key,"enabled",t.target.checked),className:"peer sr-only"}),a.jsx("div",{className:"h-6 w-11 rounded-full bg-neutral-200 transition peer-checked:bg-brand-500 dark:bg-neutral-700"}),a.jsx("div",{className:"absolute left-1 top-1 h-4 w-4 rounded-full bg-white transition peer-checked:translate-x-5"})]})]}),a.jsx("p",{className:"mb-3 text-sm text-neutral-500 dark:text-neutral-400",children:e.hint}),a.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Eigene Nachricht (optional)"}),a.jsx("textarea",{rows:2,value:l[e.key].message,onChange:t=>m(e.key,"message",t.target.value),placeholder:"z. B. Wir aktualisieren gerade unser Angebot. Schau bald wieder vorbei!",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]},e.key)),c&&a.jsx("p",{className:"text-sm text-red-600",children:c}),x&&a.jsx("p",{className:"text-sm text-green-600 dark:text-green-400",children:"Gespeichert."}),a.jsx("button",{type:"submit",disabled:i,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:i?"Speichere…":"Speichern"})]})}export{N as default};
diff --git a/hifi/assets/Models-DhJaITYo.js b/hifi/assets/Models-DhJaITYo.js
new file mode 100644
index 0000000..4a4f87b
--- /dev/null
+++ b/hifi/assets/Models-DhJaITYo.js
@@ -0,0 +1 @@
+import{q as E,r as l,s as V,j as e,c as x}from"./index-ByR_n0g5.js";import{I as O}from"./ImageUploadField-IMilh1OJ.js";import{T}from"./TextStyleWidget-DgrYcrXW.js";import{S as z,s as D}from"./SortableList-fUokp5Er.js";import{V as L}from"./ViewOnSite-DuRTh7q1.js";import{V as J}from"./VehicleCatalogDialog-Db4N0Sxf.js";import"./resizeImage-C6PvAwh0.js";import"./sortable.esm-feaRoI7N.js";import"./grip-vertical-B-w3JIIY.js";const g={name:"",brand_id:"",image_path:"",sort_order:0};function Y(){const c=E(),[i,h]=l.useState([]),[v,F]=l.useState([]),[n,u]=l.useState(g),[R,y]=l.useState(g),[d,w]=l.useState(null),[_,f]=l.useState(""),[o,S]=l.useState("all"),[I,M]=l.useState(!1),j=l.useRef(null);V(JSON.stringify(n)!==JSON.stringify(R),"models");const m=o!=="all",k=l.useMemo(()=>o==="all"?i:i.filter(t=>String(t.brand_id)===o),[i,o]),b=()=>{x.get("/models").then(h),x.get("/brands").then(F)};l.useEffect(b,[]);const B=t=>{const r={name:t.name,brand_id:t.brand_id,image_path:t.image_path||"",sort_order:t.sort_order};w(t.id),u(r),y(r),f(""),requestAnimationFrame(()=>{var a,s,p;(a=j.current)==null||a.scrollIntoView({behavior:"smooth",block:"start"}),(p=(s=j.current)==null?void 0:s.querySelector("select, input"))==null||p.focus({preventScroll:!0})})},N=()=>{w(null),u(g),y(g)},$=async t=>{t.preventDefault(),f("");const r={...n,brand_id:Number(n.brand_id)};try{if(d)await x.put(`/models/${d}`,r);else{const a=i.filter(s=>Number(s.brand_id)===r.brand_id).reduce((s,p)=>Math.max(s,Number(p.sort_order)||0),0)+10;await x.post("/models",{...r,sort_order:a})}c.success(d?"Modell gespeichert.":"Modell angelegt."),N(),b()}catch(a){f(a.message)}},q=async t=>{if(confirm("Modell inkl. aller Pakete/Produkte wirklich löschen?"))try{await x.delete(`/models/${t}`),d===t&&N(),c.success("Modell gelöscht."),b()}catch(r){c.error(`Löschen fehlgeschlagen: ${r.message}`)}},C=(t,r)=>{const a=[...r];return t.map(s=>String(s.brand_id)===o?a.shift():s)},A=async t=>{const r=i;h(C(i,t));try{const a=await D("models",t);h(s=>C(s,a)),c.success("Reihenfolge gespeichert.")}catch(a){h(r),c.error(`Reihenfolge konnte nicht gespeichert werden: ${a.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"mb-4 flex items-center justify-between gap-3",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Modelle"}),e.jsx("button",{type:"button",onClick:()=>M(!0),className:"shrink-0 rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-50 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:"Aus Vorlage laden"})]}),e.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[e.jsx("label",{className:"text-sm font-medium text-neutral-600 dark:text-neutral-300",children:"Nach Marke filtern:"}),e.jsxs("select",{value:o,onChange:t=>S(t.target.value),className:"rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"all",children:"Alle Marken"}),v.map(t=>e.jsx("option",{value:String(t.id),children:t.name},t.id))]}),o!=="all"&&e.jsx("button",{onClick:()=>S("all"),className:"text-sm text-brand-600 hover:underline",children:"Filter zurücksetzen"}),e.jsxs("span",{className:"text-sm text-neutral-400",children:[k.length," von ",i.length]})]}),e.jsx("p",{className:"mb-3 text-xs text-neutral-500 dark:text-neutral-400",children:m?"Reihenfolge am Griff links per Ziehen ändern – so erscheinen die Modelle auf der Website.":"Zum Sortieren erst eine Marke auswählen."}),e.jsx("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[m&&e.jsx("th",{className:"w-8 px-2 py-2","aria-label":"Reihenfolge"}),e.jsx("th",{className:"px-4 py-2",children:"Bild"}),e.jsx("th",{className:"px-4 py-2",children:"Marke"}),e.jsx("th",{className:"px-4 py-2",children:"Modell"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(z,{items:k,onReorder:A,as:"tbody",disabled:!m,className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:(t,r)=>e.jsxs(e.Fragment,{children:[m&&e.jsx("td",{className:"bg-white px-2 py-2 dark:bg-neutral-950",children:r}),e.jsx("td",{className:"bg-white px-4 py-2 dark:bg-neutral-950",children:t.image_path?e.jsx("img",{src:t.image_path,alt:"",className:"h-10 w-10 rounded-md object-cover"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsx("td",{className:"bg-white px-4 py-2 dark:bg-neutral-950",children:t.brand_name}),e.jsx("td",{className:"bg-white px-4 py-2 font-medium text-neutral-800 dark:bg-neutral-950 dark:text-neutral-100",children:t.name}),e.jsxs("td",{className:"whitespace-nowrap bg-white px-4 py-2 text-right dark:bg-neutral-950",children:[e.jsx(L,{to:`/fahrzeuge/${t.brand_slug}/${t.slug}`,className:"mr-3"}),e.jsx("button",{onClick:()=>B(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>q(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]})}),k.length===0&&e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{colSpan:m?5:4,className:"px-4 py-6 text-center text-neutral-400",children:i.length===0?"Noch keine Modelle angelegt.":"Keine Modelle für diese Marke."})})})]})})]}),e.jsxs("form",{ref:j,onSubmit:$,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:d?"Modell bearbeiten":"Neues Modell"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Marke *"}),e.jsxs("select",{required:!0,value:n.brand_id,onChange:t=>u({...n,brand_id:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Bitte wählen…"}),v.map(t=>e.jsx("option",{value:t.id,children:t.name},t.id))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Modellname *"}),e.jsx("input",{required:!0,value:n.name,onChange:t=>u({...n,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),d&&e.jsx(T,{fieldKey:`car_models.${d}.name`,previewText:n.name||"Beispieltext"})]}),e.jsx(O,{value:n.image_path,onChange:t=>u({...n,image_path:t}),label:"Bild (optional)"}),_&&e.jsx("p",{className:"text-sm text-red-600",children:_}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:d?"Speichern":"Anlegen"}),d&&e.jsx("button",{type:"button",onClick:N,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]}),e.jsx(J,{open:I,onClose:()=>M(!1),onImported:b})]})}export{Y as default};
diff --git a/hifi/assets/Models-cJVztP8m.js b/hifi/assets/Models-cJVztP8m.js
deleted file mode 100644
index b880e2b..0000000
--- a/hifi/assets/Models-cJVztP8m.js
+++ /dev/null
@@ -1 +0,0 @@
-import{q,r as n,s as E,j as e,c as x}from"./index-BlspSYV0.js";import{I as A}from"./ImageUploadField-Bho12Gdh.js";import{T}from"./TextStyleWidget-xhHRXR-m.js";import{S as z,s as L}from"./SortableList-DwfJpzeR.js";import{V as O}from"./ViewOnSite-BPLJTKOt.js";import"./resizeImage-C6PvAwh0.js";import"./sortable.esm-D1g5h7xA.js";import"./grip-vertical-Bv_4pkjN.js";const p={name:"",brand_id:"",image_path:"",sort_order:0};function G(){const c=q(),[i,h]=n.useState([]),[v,F]=n.useState([]),[l,m]=n.useState(p),[R,y]=n.useState(p),[d,w]=n.useState(null),[_,g]=n.useState(""),[o,M]=n.useState("all"),f=n.useRef(null);E(JSON.stringify(l)!==JSON.stringify(R),"models");const u=o!=="all",j=n.useMemo(()=>o==="all"?i:i.filter(t=>String(t.brand_id)===o),[i,o]),k=()=>{x.get("/models").then(h),x.get("/brands").then(F)};n.useEffect(k,[]);const C=t=>{const r={name:t.name,brand_id:t.brand_id,image_path:t.image_path||"",sort_order:t.sort_order};w(t.id),m(r),y(r),g(""),requestAnimationFrame(()=>{var a,s,b;(a=f.current)==null||a.scrollIntoView({behavior:"smooth",block:"start"}),(b=(s=f.current)==null?void 0:s.querySelector("select, input"))==null||b.focus({preventScroll:!0})})},N=()=>{w(null),m(p),y(p)},B=async t=>{t.preventDefault(),g("");const r={...l,brand_id:Number(l.brand_id)};try{if(d)await x.put(`/models/${d}`,r);else{const a=i.filter(s=>Number(s.brand_id)===r.brand_id).reduce((s,b)=>Math.max(s,Number(b.sort_order)||0),0)+10;await x.post("/models",{...r,sort_order:a})}c.success(d?"Modell gespeichert.":"Modell angelegt."),N(),k()}catch(a){g(a.message)}},I=async t=>{if(confirm("Modell inkl. aller Pakete/Produkte wirklich löschen?"))try{await x.delete(`/models/${t}`),d===t&&N(),c.success("Modell gelöscht."),k()}catch(r){c.error(`Löschen fehlgeschlagen: ${r.message}`)}},S=(t,r)=>{const a=[...r];return t.map(s=>String(s.brand_id)===o?a.shift():s)},$=async t=>{const r=i;h(S(i,t));try{const a=await L("models",t);h(s=>S(s,a)),c.success("Reihenfolge gespeichert.")}catch(a){h(r),c.error(`Reihenfolge konnte nicht gespeichert werden: ${a.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-4 text-xl font-bold text-neutral-900 dark:text-white",children:"Modelle"}),e.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[e.jsx("label",{className:"text-sm font-medium text-neutral-600 dark:text-neutral-300",children:"Nach Marke filtern:"}),e.jsxs("select",{value:o,onChange:t=>M(t.target.value),className:"rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"all",children:"Alle Marken"}),v.map(t=>e.jsx("option",{value:String(t.id),children:t.name},t.id))]}),o!=="all"&&e.jsx("button",{onClick:()=>M("all"),className:"text-sm text-brand-600 hover:underline",children:"Filter zurücksetzen"}),e.jsxs("span",{className:"text-sm text-neutral-400",children:[j.length," von ",i.length]})]}),e.jsx("p",{className:"mb-3 text-xs text-neutral-500 dark:text-neutral-400",children:u?"Reihenfolge am Griff links per Ziehen ändern – so erscheinen die Modelle auf der Website.":"Zum Sortieren erst eine Marke auswählen."}),e.jsx("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[u&&e.jsx("th",{className:"w-8 px-2 py-2","aria-label":"Reihenfolge"}),e.jsx("th",{className:"px-4 py-2",children:"Bild"}),e.jsx("th",{className:"px-4 py-2",children:"Marke"}),e.jsx("th",{className:"px-4 py-2",children:"Modell"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(z,{items:j,onReorder:$,as:"tbody",disabled:!u,className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:(t,r)=>e.jsxs(e.Fragment,{children:[u&&e.jsx("td",{className:"bg-white px-2 py-2 dark:bg-neutral-950",children:r}),e.jsx("td",{className:"bg-white px-4 py-2 dark:bg-neutral-950",children:t.image_path?e.jsx("img",{src:t.image_path,alt:"",className:"h-10 w-10 rounded-md object-cover"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsx("td",{className:"bg-white px-4 py-2 dark:bg-neutral-950",children:t.brand_name}),e.jsx("td",{className:"bg-white px-4 py-2 font-medium text-neutral-800 dark:bg-neutral-950 dark:text-neutral-100",children:t.name}),e.jsxs("td",{className:"whitespace-nowrap bg-white px-4 py-2 text-right dark:bg-neutral-950",children:[e.jsx(O,{to:`/fahrzeuge/${t.brand_slug}/${t.slug}`,className:"mr-3"}),e.jsx("button",{onClick:()=>C(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>I(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]})}),j.length===0&&e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{colSpan:u?5:4,className:"px-4 py-6 text-center text-neutral-400",children:i.length===0?"Noch keine Modelle angelegt.":"Keine Modelle für diese Marke."})})})]})})]}),e.jsxs("form",{ref:f,onSubmit:B,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:d?"Modell bearbeiten":"Neues Modell"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Marke *"}),e.jsxs("select",{required:!0,value:l.brand_id,onChange:t=>m({...l,brand_id:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Bitte wählen…"}),v.map(t=>e.jsx("option",{value:t.id,children:t.name},t.id))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Modellname *"}),e.jsx("input",{required:!0,value:l.name,onChange:t=>m({...l,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),d&&e.jsx(T,{fieldKey:`car_models.${d}.name`,previewText:l.name||"Beispieltext"})]}),e.jsx(A,{value:l.image_path,onChange:t=>m({...l,image_path:t}),label:"Bild (optional)"}),_&&e.jsx("p",{className:"text-sm text-red-600",children:_}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:d?"Speichern":"Anlegen"}),d&&e.jsx("button",{type:"button",onClick:N,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{G as default};
diff --git a/hifi/assets/Packages-Qhz_q4KJ.js b/hifi/assets/Packages-DgflBHGJ.js
similarity index 98%
rename from hifi/assets/Packages-Qhz_q4KJ.js
rename to hifi/assets/Packages-DgflBHGJ.js
index 417c01d..a49c4ab 100644
--- a/hifi/assets/Packages-Qhz_q4KJ.js
+++ b/hifi/assets/Packages-DgflBHGJ.js
@@ -1,4 +1,4 @@
-import{j as e,r as p,q as oe,P as Ae,c as S,t as at,s as lt,C as Be,v as it,w as dt}from"./index-BlspSYV0.js";import{T as Se}from"./TextStyleWidget-xhHRXR-m.js";import{V as ct}from"./ViewOnSite-BPLJTKOt.js";import{u as ot,a as we,s as ut,K as mt,P as xt,D as ht,c as pt,S as bt,v as gt,b as ft,d as kt,C as jt}from"./sortable.esm-D1g5h7xA.js";import{R as vt,T as Me}from"./trash-2-BGP0wMN7.js";import{G as Nt}from"./grip-vertical-Bv_4pkjN.js";import{E as _t,a as yt}from"./eye-BfYwiu9A.js";const St=["Base","Clear","Drive","Prime","Elite","Apex","The Statement","Limitless"],wt=r=>(r+1)*10,se="rounded-md border border-neutral-300 bg-white px-3 text-sm dark:border-neutral-700 dark:bg-neutral-900",A=`${se} w-full py-2`,Z=r=>new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR"}).format(Number(r)||0);function ze(r,a){const n=r.reduce((h,l)=>h+(Number(l.scraped_price)||0),0),x=Number(a.markup_value)||0;let o=0;return a.markup_type==="fixed"?o=x:a.markup_type==="percent"&&(o=n*x/100),{subtotal:n,markup:o,total:Math.round((n+o)*100)/100}}function X({title:r,onClick:a,disabled:n,danger:x,children:o}){return e.jsx("button",{type:"button",title:r,"aria-label":r,onClick:a,disabled:n,className:`rounded p-1.5 transition disabled:opacity-40 ${x?"text-neutral-400 hover:bg-red-50 hover:text-red-600 dark:hover:bg-red-900/30":"text-neutral-400 hover:bg-neutral-100 hover:text-neutral-700 dark:hover:bg-neutral-800 dark:hover:text-neutral-200"}`,children:o})}function Te({items:r,onReorder:a,children:n}){const x=ot(we(xt,{activationConstraint:{distance:4}}),we(mt,{coordinateGetter:ut})),o=({active:h,over:l})=>{if(!l||h.id===l.id)return;const k=r.findIndex(_=>_.id===h.id),f=r.findIndex(_=>_.id===l.id);a(ft(r,k,f))};return e.jsx(ht,{sensors:x,collisionDetection:pt,onDragEnd:o,children:e.jsx(bt,{items:r.map(h=>h.id),strategy:gt,children:e.jsx("ul",{className:"divide-y divide-neutral-100 rounded-lg border border-neutral-200 dark:divide-neutral-800 dark:border-neutral-800",children:r.map(h=>e.jsx($t,{id:h.id,children:l=>n(h,l)},h.id))})})})}function $t({id:r,children:a}){const{attributes:n,listeners:x,setNodeRef:o,setActivatorNodeRef:h,transform:l,transition:k,isDragging:f}=kt({id:r}),_=e.jsx("button",{type:"button",ref:h,...n,...x,title:"Ziehen, um die Reihenfolge zu ändern","aria-label":"Reihenfolge ändern",className:"mt-0.5 cursor-grab touch-none rounded p-1 text-neutral-400 hover:bg-neutral-100 hover:text-neutral-600 active:cursor-grabbing dark:hover:bg-neutral-800",children:e.jsx(Nt,{className:"h-4 w-4"})});return e.jsx("li",{ref:o,style:{transform:jt.Transform.toString(l),transition:k,position:"relative",zIndex:f?10:void 0},className:`bg-white dark:bg-neutral-950 ${f?"shadow-lg ring-1 ring-brand-500":""}`,children:a(_)})}function Ue(r,a,n){const x=a.map((l,k)=>({...l,sort_order:(k+1)*10})),o=new Map(r.map(l=>[l.id,Number(l.sort_order)])),h=x.filter(l=>o.get(l.id)!==l.sort_order);return{next:x,persist:async()=>{for(const l of h)await n(l)}}}function Pt({products:r,form:a}){const{subtotal:n,markup:x,total:o}=ze(r,a),h=r.filter(l=>l.scraped_price==null).length;return e.jsxs("div",{className:"rounded-lg bg-neutral-50 p-3 text-sm dark:bg-neutral-950",children:[e.jsxs("div",{className:"flex justify-between text-neutral-600 dark:text-neutral-300",children:[e.jsxs("span",{children:["Bauteile (",r.length,")"]}),e.jsx("span",{children:Z(n)})]}),e.jsxs("div",{className:"flex justify-between text-neutral-600 dark:text-neutral-300",children:[e.jsxs("span",{children:["Aufschlag",a.markup_type==="percent"&&` (${Number(a.markup_value)||0} %)`]}),e.jsxs("span",{children:["+ ",Z(x)]})]}),e.jsxs("div",{className:"mt-1 flex justify-between border-t border-neutral-200 pt-1 font-semibold text-neutral-900 dark:border-neutral-800 dark:text-white",children:[e.jsx("span",{children:"Preis auf der Website"}),e.jsx("span",{children:Z(o)})]}),a.price_text&&e.jsxs("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:["Auf der Kachel steht stattdessen der Preis-Text „",a.price_text,"“."]}),h>0&&e.jsxs("p",{className:"mt-1 text-xs text-amber-700 dark:text-amber-400",children:[h===1?"1 Produkt hat":`${h} Produkte haben`," noch keinen Preis und ",h===1?"zählt":"zählen"," mit 0 €."]})]})}function Ct({packageId:r,products:a,onChange:n}){const[x,o]=p.useState(""),[h,l]=p.useState(null),[k,f]=p.useState([]),[_,E]=p.useState(null),[b,u]=p.useState(null),g=oe(),y=async()=>{const i=x.split(/\r?\n/).map(P=>P.trim()).filter(Boolean);if(!i.length)return;f([]);const v=P=>/^https:\/\/www\.audio4cars\.de\//i.test(P),N=i.filter(v),c=i.filter(P=>!v(P)),L=c.map(P=>`${P}: keine audio4cars.de-Produktseite (muss mit https://www.audio4cars.de/ beginnen)`);let D=a,W=D.reduce((P,M)=>Math.max(P,Number(M.sort_order)||0),0),T=0;l({done:0,total:N.length});for(const[P,M]of N.entries()){W+=10;try{const G=await S.post("/products",{package_id:r,source_url:M,sort_order:W});D=[...D,G],n(D),T+=1,G.scrape_status==="error"&&L.push(`${M}: angelegt, aber Preis konnte nicht gelesen werden (${G.scrape_error||"unbekannter Fehler"})`)}catch(G){c.push(M),L.push(`${M}: ${G.message}`)}l({done:P+1,total:N.length})}l(null),f(L),T>0&&g.success(T===1?"Produkt hinzugefügt.":`${T} Produkte hinzugefügt.`),L.length&&g.error(`${L.length} Link(s) mit Problemen – Details unter dem Eingabefeld.`),o(c.join(`
+import{j as e,r as p,q as oe,P as Ae,c as S,x as at,s as lt,y as Be,C as it,w as dt}from"./index-ByR_n0g5.js";import{T as Se}from"./TextStyleWidget-DgrYcrXW.js";import{V as ct}from"./ViewOnSite-DuRTh7q1.js";import{u as ot,a as we,s as ut,K as mt,P as xt,D as ht,c as pt,S as bt,v as gt,b as ft,d as kt,C as jt}from"./sortable.esm-feaRoI7N.js";import{R as vt,T as Me}from"./trash-2-CQUo9mrD.js";import{G as Nt}from"./grip-vertical-B-w3JIIY.js";import{E as _t,a as yt}from"./eye-BhaTX13E.js";const St=["Base","Clear","Drive","Prime","Elite","Apex","The Statement","Limitless"],wt=r=>(r+1)*10,se="rounded-md border border-neutral-300 bg-white px-3 text-sm dark:border-neutral-700 dark:bg-neutral-900",A=`${se} w-full py-2`,Z=r=>new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR"}).format(Number(r)||0);function ze(r,a){const n=r.reduce((h,l)=>h+(Number(l.scraped_price)||0),0),x=Number(a.markup_value)||0;let o=0;return a.markup_type==="fixed"?o=x:a.markup_type==="percent"&&(o=n*x/100),{subtotal:n,markup:o,total:Math.round((n+o)*100)/100}}function X({title:r,onClick:a,disabled:n,danger:x,children:o}){return e.jsx("button",{type:"button",title:r,"aria-label":r,onClick:a,disabled:n,className:`rounded p-1.5 transition disabled:opacity-40 ${x?"text-neutral-400 hover:bg-red-50 hover:text-red-600 dark:hover:bg-red-900/30":"text-neutral-400 hover:bg-neutral-100 hover:text-neutral-700 dark:hover:bg-neutral-800 dark:hover:text-neutral-200"}`,children:o})}function Te({items:r,onReorder:a,children:n}){const x=ot(we(xt,{activationConstraint:{distance:4}}),we(mt,{coordinateGetter:ut})),o=({active:h,over:l})=>{if(!l||h.id===l.id)return;const k=r.findIndex(_=>_.id===h.id),f=r.findIndex(_=>_.id===l.id);a(ft(r,k,f))};return e.jsx(ht,{sensors:x,collisionDetection:pt,onDragEnd:o,children:e.jsx(bt,{items:r.map(h=>h.id),strategy:gt,children:e.jsx("ul",{className:"divide-y divide-neutral-100 rounded-lg border border-neutral-200 dark:divide-neutral-800 dark:border-neutral-800",children:r.map(h=>e.jsx($t,{id:h.id,children:l=>n(h,l)},h.id))})})})}function $t({id:r,children:a}){const{attributes:n,listeners:x,setNodeRef:o,setActivatorNodeRef:h,transform:l,transition:k,isDragging:f}=kt({id:r}),_=e.jsx("button",{type:"button",ref:h,...n,...x,title:"Ziehen, um die Reihenfolge zu ändern","aria-label":"Reihenfolge ändern",className:"mt-0.5 cursor-grab touch-none rounded p-1 text-neutral-400 hover:bg-neutral-100 hover:text-neutral-600 active:cursor-grabbing dark:hover:bg-neutral-800",children:e.jsx(Nt,{className:"h-4 w-4"})});return e.jsx("li",{ref:o,style:{transform:jt.Transform.toString(l),transition:k,position:"relative",zIndex:f?10:void 0},className:`bg-white dark:bg-neutral-950 ${f?"shadow-lg ring-1 ring-brand-500":""}`,children:a(_)})}function Ue(r,a,n){const x=a.map((l,k)=>({...l,sort_order:(k+1)*10})),o=new Map(r.map(l=>[l.id,Number(l.sort_order)])),h=x.filter(l=>o.get(l.id)!==l.sort_order);return{next:x,persist:async()=>{for(const l of h)await n(l)}}}function Pt({products:r,form:a}){const{subtotal:n,markup:x,total:o}=ze(r,a),h=r.filter(l=>l.scraped_price==null).length;return e.jsxs("div",{className:"rounded-lg bg-neutral-50 p-3 text-sm dark:bg-neutral-950",children:[e.jsxs("div",{className:"flex justify-between text-neutral-600 dark:text-neutral-300",children:[e.jsxs("span",{children:["Bauteile (",r.length,")"]}),e.jsx("span",{children:Z(n)})]}),e.jsxs("div",{className:"flex justify-between text-neutral-600 dark:text-neutral-300",children:[e.jsxs("span",{children:["Aufschlag",a.markup_type==="percent"&&` (${Number(a.markup_value)||0} %)`]}),e.jsxs("span",{children:["+ ",Z(x)]})]}),e.jsxs("div",{className:"mt-1 flex justify-between border-t border-neutral-200 pt-1 font-semibold text-neutral-900 dark:border-neutral-800 dark:text-white",children:[e.jsx("span",{children:"Preis auf der Website"}),e.jsx("span",{children:Z(o)})]}),a.price_text&&e.jsxs("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:["Auf der Kachel steht stattdessen der Preis-Text „",a.price_text,"“."]}),h>0&&e.jsxs("p",{className:"mt-1 text-xs text-amber-700 dark:text-amber-400",children:[h===1?"1 Produkt hat":`${h} Produkte haben`," noch keinen Preis und ",h===1?"zählt":"zählen"," mit 0 €."]})]})}function Ct({packageId:r,products:a,onChange:n}){const[x,o]=p.useState(""),[h,l]=p.useState(null),[k,f]=p.useState([]),[_,E]=p.useState(null),[b,u]=p.useState(null),g=oe(),y=async()=>{const i=x.split(/\r?\n/).map(P=>P.trim()).filter(Boolean);if(!i.length)return;f([]);const v=P=>/^https:\/\/www\.audio4cars\.de\//i.test(P),N=i.filter(v),c=i.filter(P=>!v(P)),L=c.map(P=>`${P}: keine audio4cars.de-Produktseite (muss mit https://www.audio4cars.de/ beginnen)`);let D=a,W=D.reduce((P,M)=>Math.max(P,Number(M.sort_order)||0),0),T=0;l({done:0,total:N.length});for(const[P,M]of N.entries()){W+=10;try{const G=await S.post("/products",{package_id:r,source_url:M,sort_order:W});D=[...D,G],n(D),T+=1,G.scrape_status==="error"&&L.push(`${M}: angelegt, aber Preis konnte nicht gelesen werden (${G.scrape_error||"unbekannter Fehler"})`)}catch(G){c.push(M),L.push(`${M}: ${G.message}`)}l({done:P+1,total:N.length})}l(null),f(L),T>0&&g.success(T===1?"Produkt hinzugefügt.":`${T} Produkte hinzugefügt.`),L.length&&g.error(`${L.length} Link(s) mit Problemen – Details unter dem Eingabefeld.`),o(c.join(`
`))},j=async i=>{E(i.id);try{const v=await S.post(`/products/${i.id}/refresh-price`,{});n(a.map(N=>N.id===i.id?v:N)),v.scrape_status==="error"?g.error(`Preis konnte nicht gelesen werden: ${v.scrape_error||"unbekannter Fehler"}`):g.success("Name und Preis aktualisiert.")}catch(v){f([`Preis konnte nicht aktualisiert werden: ${v.message}`]),g.error(`Preis konnte nicht aktualisiert werden: ${v.message}`)}finally{E(null)}},V=async i=>{if(confirm(`Produkt "${i.name_override||i.scraped_name||i.source_url}" aus dem Paket entfernen?`)){try{await S.delete(`/products/${i.id}`)}catch(v){g.error(`Entfernen fehlgeschlagen: ${v.message}`);return}n(a.filter(v=>v.id!==i.id)),g.success("Produkt entfernt.")}},B=async(i,v)=>{const N=v.trim()||null;try{await S.put(`/products/${i.id}`,{source_url:i.source_url,name_override:N,sort_order:i.sort_order})}catch(c){g.error(`Name konnte nicht gespeichert werden: ${c.message}`);return}n(a.map(c=>c.id===i.id?{...c,name_override:N}:c)),u(null),g.success("Anzeigename gespeichert.")},z=async i=>{const{next:v,persist:N}=Ue(a,i,c=>S.put(`/products/${c.id}`,{source_url:c.source_url,name_override:c.name_override,sort_order:c.sort_order}));n(v);try{await N()}catch(c){n(a),f([`Reihenfolge konnte nicht gespeichert werden: ${c.message}`]),g.error(`Reihenfolge konnte nicht gespeichert werden: ${c.message}`)}};return e.jsxs("div",{children:[e.jsxs("h4",{className:"mb-2 text-sm font-semibold text-neutral-700 dark:text-neutral-300",children:["Produkte ",e.jsx("span",{className:"font-normal text-neutral-400",children:"– erscheinen als Stichpunkte auf der Kachel"})]}),a.length>0&&e.jsx(Te,{items:a,onReorder:z,children:(i,v)=>e.jsxs("div",{className:"flex items-start gap-2 px-2 py-2 text-sm",children:[v,e.jsxs("div",{className:"min-w-0 flex-1",children:[(b==null?void 0:b.id)===i.id?e.jsxs("form",{className:"flex gap-2",onSubmit:N=>{N.preventDefault(),B(i,b.value)},children:[e.jsx("input",{autoFocus:!0,value:b.value,onChange:N=>u({...b,value:N.target.value}),placeholder:i.scraped_name||"Anzeigename",className:`${se} w-full py-1`}),e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-3 text-xs font-semibold text-white hover:bg-brand-600",children:"OK"}),e.jsx("button",{type:"button",onClick:()=>u(null),className:"text-xs text-neutral-500 hover:underline",children:"Abbrechen"})]}):e.jsx("p",{className:"font-medium text-neutral-800 dark:text-neutral-100",children:i.name_override||i.scraped_name||"Name konnte nicht gelesen werden"}),e.jsx("a",{href:i.source_url,target:"_blank",rel:"noreferrer",className:"block truncate text-xs text-neutral-400 hover:text-brand-600",children:i.source_url.replace(/^https?:\/\/(www\.)?/,"")}),i.name_override&&i.scraped_name&&e.jsxs("p",{className:"text-xs text-neutral-400",children:["Original: ",i.scraped_name]}),i.scrape_status==="error"&&e.jsx("p",{className:"text-xs text-red-600",children:i.scrape_error})]}),e.jsx("span",{className:"whitespace-nowrap pt-0.5 font-medium text-neutral-700 dark:text-neutral-200",children:i.scraped_price!=null?Z(i.scraped_price):"–"}),e.jsxs("div",{className:"flex shrink-0 items-center",children:[e.jsx(X,{title:"Anzeigenamen ändern",onClick:()=>u({id:i.id,value:i.name_override||""}),children:e.jsx(Ae,{className:"h-3.5 w-3.5"})}),e.jsx(X,{title:"Name und Preis neu abrufen",onClick:()=>j(i),disabled:_===i.id,children:e.jsx(vt,{className:`h-3.5 w-3.5 ${_===i.id?"animate-spin":""}`})}),e.jsx(X,{title:"Aus dem Paket entfernen",danger:!0,onClick:()=>V(i),children:e.jsx(Me,{className:"h-3.5 w-3.5"})})]})]})}),e.jsxs("div",{className:"mt-2",children:[e.jsx("textarea",{rows:2,value:x,onChange:i=>o(i.target.value),disabled:!!h,placeholder:"audio4cars.de-Links einfügen – auch mehrere, einer pro Zeile",className:A}),e.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[e.jsx("button",{type:"button",onClick:y,disabled:!!h||!x.trim(),className:"rounded-md border border-brand-500 px-3 py-1.5 text-sm font-semibold text-brand-600 hover:bg-brand-50 disabled:opacity-50 dark:hover:bg-brand-900/20",children:"Produkte hinzufügen"}),h&&e.jsxs("span",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:["Name und Preis werden abgerufen … ",h.done,"/",h.total]})]}),k.map(i=>e.jsx("p",{className:"mt-1 text-xs text-red-600",children:i},i))]})]})}const Ie={name:"",price:"",description:"",name_en:"",description_en:""};function $e({initial:r,submitLabel:a,onSubmit:n,onCancel:x}){const[o,h]=p.useState(r),[l,k]=p.useState(""),[f,_]=p.useState(!1),E=async b=>{b.preventDefault(),_(!0),k("");try{await n({...o,name:o.name.trim(),price:Number(o.price)||0,description:o.description.trim()||null,name_en:(o.name_en||"").trim(),description_en:(o.description_en||"").trim()}),x||h(Ie)}catch(u){k(u.message)}finally{_(!1)}};return e.jsxs("form",{onSubmit:E,className:"space-y-2",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx("input",{required:!0,value:o.name,onChange:b=>h({...o,name:b.target.value}),placeholder:"Upgrade, z. B. Türdämmung vorne",className:`${se} min-w-0 flex-1 py-2`}),e.jsx("input",{required:!0,type:"number",step:"0.01",min:"0",value:o.price,onChange:b=>h({...o,price:b.target.value}),placeholder:"Preis €",className:`${se} w-28 shrink-0 py-2`})]}),e.jsx("input",{value:o.description||"",onChange:b=>h({...o,description:b.target.value}),placeholder:"Kurze Beschreibung (optional)",className:A}),e.jsxs("details",{open:!!(r.name_en||r.description_en),children:[e.jsx("summary",{className:"cursor-pointer select-none text-xs text-neutral-500 hover:text-neutral-700 dark:text-neutral-400 dark:hover:text-neutral-200",children:"Englisch (optional – leer = deutscher Text)"}),e.jsxs("div",{className:"mt-2 space-y-2",children:[e.jsx("input",{value:o.name_en||"",onChange:b=>h({...o,name_en:b.target.value}),placeholder:"Name auf Englisch, z. B. Front door insulation",className:A}),e.jsx("input",{value:o.description_en||"",onChange:b=>h({...o,description_en:b.target.value}),placeholder:"Beschreibung auf Englisch (optional)",className:A})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{type:"submit",disabled:f,className:"rounded-md border border-brand-500 px-3 py-1.5 text-sm font-semibold text-brand-600 hover:bg-brand-50 disabled:opacity-50 dark:hover:bg-brand-900/20",children:a}),x&&e.jsx("button",{type:"button",onClick:x,className:"text-sm text-neutral-500 hover:underline",children:"Abbrechen"}),l&&e.jsx("span",{className:"text-xs text-red-600",children:l})]})]})}function Et({packageId:r,upgrades:a,onChange:n}){const[x,o]=p.useState(null),[h,l]=p.useState(""),k=oe(),f=async u=>{const g=a.reduce((V,B)=>Math.max(V,Number(B.sort_order)||0),0)+10,y={...u,package_id:r,sort_order:g},j=await S.post("/package-upgrades",y);n([...a,{...y,id:j.id}]),k.success(`Upgrade „${u.name}“ hinzugefügt.`)},_=async(u,g)=>{const y={...g,sort_order:u.sort_order};await S.put(`/package-upgrades/${u.id}`,y),n(a.map(j=>j.id===u.id?{...j,...y}:j)),o(null),k.success("Upgrade gespeichert.")},E=async u=>{if(confirm(`Upgrade "${u.name}" löschen?`)){try{await S.delete(`/package-upgrades/${u.id}`)}catch(g){k.error(`Löschen fehlgeschlagen: ${g.message}`);return}n(a.filter(g=>g.id!==u.id)),k.success(`Upgrade „${u.name}“ gelöscht.`)}},b=async u=>{const{next:g,persist:y}=Ue(a,u,j=>S.put(`/package-upgrades/${j.id}`,{name:j.name,description:j.description,price:j.price,sort_order:j.sort_order,name_en:j.name_en||"",description_en:j.description_en||""}));n(g);try{await y()}catch(j){n(a),l(`Reihenfolge konnte nicht gespeichert werden: ${j.message}`),k.error(`Reihenfolge konnte nicht gespeichert werden: ${j.message}`)}};return e.jsxs("div",{children:[e.jsxs("h4",{className:"mb-2 text-sm font-semibold text-neutral-700 dark:text-neutral-300",children:["Upgrades ",e.jsx("span",{className:"font-normal text-neutral-400",children:"– wählbar im Kontaktformular, nicht auf der Kachel"})]}),a.length>0&&e.jsx("div",{className:"mb-2",children:e.jsx(Te,{items:a,onReorder:b,children:(u,g)=>x===u.id?e.jsx("div",{className:"p-2",children:e.jsx($e,{initial:{name:u.name,price:u.price,description:u.description||"",name_en:u.name_en||"",description_en:u.description_en||""},submitLabel:"Speichern",onSubmit:y=>_(u,y),onCancel:()=>o(null)})}):e.jsxs("div",{className:"flex items-start gap-2 px-2 py-2 text-sm",children:[g,e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"font-medium text-neutral-800 dark:text-neutral-100",children:u.name}),u.description&&e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:u.description}),u.name_en&&e.jsxs("p",{className:"text-xs text-neutral-400",children:["EN: ",u.name_en]})]}),e.jsxs("span",{className:"whitespace-nowrap pt-0.5 font-medium text-neutral-700 dark:text-neutral-200",children:["+ ",Z(u.price)]}),e.jsxs("div",{className:"flex shrink-0 items-center",children:[e.jsx(X,{title:"Bearbeiten",onClick:()=>o(u.id),children:e.jsx(Ae,{className:"h-3.5 w-3.5"})}),e.jsx(X,{title:"Löschen",danger:!0,onClick:()=>E(u),children:e.jsx(Me,{className:"h-3.5 w-3.5"})})]})]})})}),h&&e.jsx("p",{className:"mb-1 text-xs text-red-600",children:h}),e.jsx($e,{initial:Ie,submitLabel:"Upgrade hinzufügen",onSubmit:f})]})}const Le=[{value:"",label:"Keine"},{value:"recommended",label:"Empfohlen"},{value:"popular",label:"Am beliebtesten"},{value:"tip",label:"Tipp"},{value:"coming_soon",label:"Coming soon"},{value:"custom",label:"Eigener Text …"}],Rt=(r,a)=>{var n;return r==="custom"?a:(n=Le.find(x=>x.value===r&&x.value))==null?void 0:n.label},de=r=>({description:r.description||"",markup_type:r.markup_type||"none",markup_value:r.markup_value||0,icon_name:r.icon_name||"",tagline:r.tagline||"",price_text:r.price_text||"",description_en:r.description_en||"",tagline_en:r.tagline_en||"",price_text_en:r.price_text_en||"",badge:r.badge||"",badge_text:r.badge_text||"",video_url:r.video_url||"",sort_order:r.sort_order??0}),At=r=>({description:"",markup_type:"none",markup_value:0,icon_name:"",tagline:"",price_text:"",description_en:"",tagline_en:"",price_text_en:"",badge:"",badge_text:"",video_url:"",sort_order:wt(r)}),Bt=["description","markup_type","markup_value","icon_name","tagline","price_text","badge","badge_text","video_url","sort_order","description_en","tagline_en","price_text_en"];function Pe({children:r}){return e.jsxs("details",{className:"mt-1",children:[e.jsx("summary",{className:"cursor-pointer select-none text-xs text-neutral-400 hover:text-neutral-600 dark:hover:text-neutral-300",children:"Erweitert: Schriftstil"}),r]})}const ne=r=>{if(!r.existing)return r.checked;const a=de(r.existing);return Bt.some(n=>String(a[n])!==String(r.form[n]))};function ce({tone:r="brand",children:a}){const n={brand:"bg-brand-100 text-brand-700 dark:bg-brand-900/40 dark:text-brand-400",amber:"bg-amber-100 text-amber-800 dark:bg-amber-900/40 dark:text-amber-300"};return e.jsx("span",{className:`rounded-full px-2 py-0.5 text-xs font-semibold ${n[r]}`,children:a})}function De({badge:r,text:a}){const n=Rt(r,a);return n?e.jsx(ce,{children:n}):null}function Ke({pkg:r,busy:a,onToggle:n}){return e.jsxs("button",{type:"button",onClick:()=>n(r),disabled:a,title:r.is_hidden?"Wieder auf der Website anzeigen":"Auf der Website ausblenden",className:`inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs font-semibold transition disabled:opacity-50 ${r.is_hidden?"border-amber-300 bg-amber-50 text-amber-800 hover:bg-amber-100 dark:border-amber-700 dark:bg-amber-900/30 dark:text-amber-300":"border-neutral-300 text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:[r.is_hidden?e.jsx(_t,{className:"h-3.5 w-3.5"}):e.jsx(yt,{className:"h-3.5 w-3.5"}),r.is_hidden?"Ausgeblendet":"Sichtbar"]})}const Y=(r,a)=>{const n=a.filter(l=>l.car_model_id===r).slice().sort((l,k)=>l.sort_order-k.sort_order||l.name.localeCompare(k.name)),x=new Set,o=St.map((l,k)=>{const f=n.find(_=>!x.has(_.id)&&_.name.trim().toLowerCase()===l.toLowerCase());return f&&x.add(f.id),{key:`tier-${k}`,tierName:l,existing:f||null,checked:!!f,form:f?de(f):At(k)}}),h=n.filter(l=>!x.has(l.id)).map(l=>({key:`legacy-${l.id}`,tierName:null,existing:l,checked:!0,form:de(l)}));return[...o,...h]},Ce=r=>{r.target.style.height="auto",r.target.style.height=`${r.target.scrollHeight}px`},Ee=r=>r.reduce((a,n)=>{var x;return(a[x=n.package_id]||(a[x]=[])).push(n),a},{}),Re=[];function Mt({row:r,open:a,products:n,upgrades:x,itemsLoaded:o,saving:h,error:l,visibilityBusy:k,descriptionRef:f,onToggleOpen:_,onToggleCreate:E,onChangeForm:b,onBold:u,onToggleVisibility:g,onDelete:y,onProductsChange:j,onUpgradesChange:V}){const B=r.tierName??r.existing.name,z=!!r.existing||r.checked,i=r.existing&&ne(r),{total:v}=ze(n,r.form);let N=null;return r.existing&&(r.form.price_text?N=`„${r.form.price_text}“`:N=o?Z(v):"…"),e.jsxs("div",{id:r.existing?`paket-${r.existing.id}`:void 0,className:"scroll-mt-4 border-t border-neutral-100 dark:border-neutral-800",children:[e.jsxs("div",{onClick:z?_:void 0,className:`flex flex-wrap items-center gap-x-3 gap-y-2 px-4 py-3 ${z?"cursor-pointer hover:bg-neutral-50 dark:hover:bg-neutral-800/40":""} ${!r.existing&&!r.checked?"opacity-70":""}`,children:[z?a?e.jsx(it,{className:"h-4 w-4 shrink-0 text-neutral-400"}):e.jsx(dt,{className:"h-4 w-4 shrink-0 text-neutral-400"}):e.jsx("span",{className:"w-4 shrink-0"}),!r.existing&&e.jsx("input",{type:"checkbox",checked:r.checked,disabled:h,title:"Paket für dieses Modell anlegen",onClick:c=>c.stopPropagation(),onChange:c=>E(c.target.checked),className:"h-5 w-5 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),e.jsx("span",{className:"font-semibold text-neutral-900 dark:text-white",children:B}),r.tierName===null&&e.jsx("span",{className:"text-xs text-neutral-400",children:"(alter Name)"}),!r.existing&&!r.checked&&e.jsx("span",{className:"text-xs text-neutral-400",children:"nicht angelegt – anhaken zum Anlegen"}),!r.existing&&r.checked&&e.jsx(ce,{children:"Neu – wird mit „Alle speichern“ angelegt"}),e.jsx(De,{badge:r.form.badge,text:r.form.badge_text}),r.form.video_url&&e.jsx(Be,{className:"h-4 w-4 text-red-500","aria-label":"Mit Video-Link"}),i&&e.jsx(ce,{tone:"amber",children:"● ungespeichert"}),r.existing&&e.jsxs("span",{className:"ml-auto flex flex-wrap items-center gap-3 text-sm",onClick:c=>c.stopPropagation(),children:[e.jsxs("span",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:[n.length," ",n.length===1?"Produkt":"Produkte"," · ",x.length," ",x.length===1?"Upgrade":"Upgrades"]}),e.jsx("span",{className:"min-w-[90px] text-right font-semibold text-neutral-800 dark:text-neutral-100",children:N}),e.jsx(Ke,{pkg:r.existing,busy:k,onToggle:g})]})]}),a&&z&&e.jsxs("div",{className:"grid gap-6 px-4 pb-6 sm:pl-11 lg:grid-cols-2",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung"}),e.jsx("p",{className:"mb-1 text-xs text-neutral-500 dark:text-neutral-400",children:"Jede Zeile wird ein eigener Stichpunkt (unter den Produkten). Text markieren und „Fett“ klicken, um ihn hervorzuheben."}),e.jsx("button",{type:"button",onClick:u,className:"mb-1 rounded-md border border-neutral-300 px-2 py-1 text-xs font-bold text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Fett"}),e.jsx("textarea",{ref:f,rows:5,value:r.form.description,onChange:c=>b({description:c.target.value}),onInput:Ce,className:A}),r.existing&&e.jsx(Pe,{children:e.jsx(Se,{fieldKey:`packages.${r.existing.id}.description`,previewText:"Beispieltext"})})]}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Markierung"}),e.jsx("select",{value:r.form.badge,onChange:c=>b({badge:c.target.value}),className:A,children:Le.map(c=>e.jsx("option",{value:c.value,children:c.label},c.value))}),r.form.badge==="custom"&&e.jsx("input",{value:r.form.badge_text,onChange:c=>b({badge_text:c.target.value}),maxLength:40,placeholder:'z. B. "Neu" oder "Angebot"',className:`${A} mt-2`})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Video-Link (optional)"}),e.jsx("input",{type:"url",value:r.form.video_url,onChange:c=>b({video_url:c.target.value}),placeholder:"https://youtu.be/…",className:A}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Zeigt auf der Kachel „Zum Video“."})]})]}),e.jsxs("details",{className:"rounded-lg border border-neutral-200 dark:border-neutral-800",children:[e.jsx("summary",{className:"cursor-pointer select-none px-3 py-2 text-sm font-medium text-neutral-600 dark:text-neutral-300",children:"Weitere Optionen (Preis-Text, Sortierung)"}),e.jsxs("div",{className:"space-y-4 border-t border-neutral-200 p-3 dark:border-neutral-800",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Preis-Text (optional)"}),e.jsx("input",{value:r.form.price_text,onChange:c=>b({price_text:c.target.value}),placeholder:'z. B. "Coming soon" oder "Preis auf Anfrage"',className:A}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Ersetzt auf der Kachel den berechneten Preis, solange ausgefüllt."}),r.existing&&e.jsx(Pe,{children:e.jsx(Se,{fieldKey:`packages.${r.existing.id}.price_text`,previewText:"Beispieltext"})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Sortierung"}),e.jsx("input",{type:"number",value:r.form.sort_order,onChange:c=>b({sort_order:c.target.value}),className:`${A} max-w-[160px]`})]})]})]}),e.jsxs("details",{className:"rounded-lg border border-neutral-200 dark:border-neutral-800",children:[e.jsxs("summary",{className:"cursor-pointer select-none px-3 py-2 text-sm font-medium text-neutral-600 dark:text-neutral-300",children:["Englisch (optional)",(r.form.description_en||r.form.price_text_en)&&e.jsx("span",{className:"ml-2 text-xs text-brand-600",children:"● ausgefüllt"})]}),e.jsxs("div",{className:"space-y-4 border-t border-neutral-200 p-3 dark:border-neutral-800",children:[e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Für Besucher mit englischer Sprache. Leere Felder zeigen automatisch den deutschen Text."}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung (Englisch)"}),e.jsx("textarea",{rows:4,value:r.form.description_en,onChange:c=>b({description_en:c.target.value}),onInput:Ce,placeholder:r.form.description?"Leer = deutscher Text":"",className:A})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Preis-Text (Englisch)"}),e.jsx("input",{value:r.form.price_text_en,onChange:c=>b({price_text_en:c.target.value}),placeholder:'z. B. "Price on request"',className:A})]})]})]}),r.existing&&e.jsx("button",{type:"button",onClick:y,className:"text-sm text-red-600 hover:underline",children:"Paket löschen"}),l&&e.jsx("p",{className:"text-sm text-red-600",children:l})]}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Aufschlag"}),e.jsxs("div",{className:"mb-2 flex gap-2",children:[e.jsxs("select",{value:r.form.markup_type,onChange:c=>b({markup_type:c.target.value}),className:"w-44 shrink-0 rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"none",children:"Kein Aufschlag"}),e.jsx("option",{value:"fixed",children:"Fester Betrag (€)"}),e.jsx("option",{value:"percent",children:"Prozent (%)"})]}),e.jsx("input",{type:"number",step:"0.01",min:"0",disabled:r.form.markup_type==="none",value:r.form.markup_value,onChange:c=>b({markup_value:c.target.value}),className:`${A} disabled:opacity-50`})]}),e.jsx(Pt,{products:n,form:r.form})]}),r.existing?e.jsxs(e.Fragment,{children:[e.jsx(Ct,{packageId:r.existing.id,products:n,onChange:j}),e.jsx(Et,{packageId:r.existing.id,upgrades:x,onChange:V})]}):e.jsx("p",{className:"rounded-lg border border-dashed border-neutral-300 p-3 text-sm text-neutral-500 dark:border-neutral-700 dark:text-neutral-400",children:"Produkte und Upgrades lassen sich hinzufügen, sobald das Paket mit „Alle speichern“ angelegt ist."})]})]})]})}function Ft(){const[r,a]=at(),n=r.get("model")||"",x=Number(r.get("paket"))||null,[o,h]=p.useState([]),[l,k]=p.useState(!1),[f,_]=p.useState([]),[E,b]=p.useState(""),[u,g]=p.useState([]),[y,j]=p.useState(null),[V,B]=p.useState(()=>new Set),[z,i]=p.useState({modelId:null,products:{},upgrades:{}}),[v,N]=p.useState({}),[c,L]=p.useState(!1),[D,W]=p.useState(null),[T,P]=p.useState(""),[M,G]=p.useState(!0),[ue,me]=p.useState(!1),[ee,te]=p.useState(null),[K,xe]=p.useState("all"),[H,ae]=p.useState("all"),[he,pe]=p.useState(null),U=oe(),be=p.useRef(new Map),ge=p.useRef(n);ge.current=n;const J=async()=>{const[t,s]=await Promise.all([S.get("/packages"),S.get("/models")]);return h(t),_(s),k(!0),t};p.useEffect(()=>{J()},[]);const fe=async t=>{const s=await S.get(`/models/${t}/package-items`);ge.current===String(t)&&i({modelId:String(t),products:Ee(s.products),upgrades:Ee(s.upgrades)})},F=p.useMemo(()=>new Map(f.map(t=>[t.id,t])),[f]),ke=p.useMemo(()=>{const t=new Map;return f.forEach(s=>{t.has(s.brand_id)||t.set(s.brand_id,s.brand_name)}),Array.from(t,([s,m])=>({id:s,name:m})).sort((s,m)=>s.name.localeCompare(m.name))},[f]),Fe=p.useMemo(()=>f.filter(t=>!E||String(t.brand_id)===E).sort((t,s)=>t.name.localeCompare(s.name)),[f,E]),O=n?F.get(Number(n)):null,le=p.useMemo(()=>u.some(ne),[u]),re=()=>!le||confirm("Ungespeicherte Änderungen verwerfen?");p.useEffect(()=>{if(!l||n||!x)return;const t=o.find(s=>s.id===x);t&&a({model:String(t.car_model_id),paket:String(t.id)},{replace:!0})},[l,n,x,o,a]),p.useEffect(()=>{const t=F.get(Number(n));t&&b(String(t.brand_id))},[n,F]),p.useEffect(()=>{if(!n){g([]),j(null);return}if(!l||y===n)return;const t=Y(Number(n),o);g(t),j(n),N({}),W(null),P(""),te(null);const s=t.find(m=>{var d;return((d=m.existing)==null?void 0:d.id)===x});B(new Set(s?[s.key]:[])),i({modelId:null,products:{},upgrades:{}}),fe(n)},[n,l,y]),p.useEffect(()=>{!x||y!==n||requestAnimationFrame(()=>{var t;(t=document.getElementById(`paket-${x}`))==null||t.scrollIntoView({behavior:"smooth",block:"start"})})},[x,y,n]),lt(le,"packages");const Oe=t=>{t===n||!re()||a(t?{model:t}:{})},Ve=t=>{if(!re())return;b(t);const s=F.get(Number(n));s&&String(s.brand_id)!==t&&a({})},We=t=>B(s=>{const m=new Set(s);return m.has(t)?m.delete(t):m.add(t),m}),Ge=(t,s)=>{g(m=>m.map(d=>d.key===t?{...d,checked:s}:d)),B(m=>{const d=new Set(m);return s?d.add(t):d.delete(t),d})},je=(t,s)=>g(m=>m.map(d=>d.key===t?{...d,form:{...d.form,...s}}:d)),qe=t=>{const s=be.current.get(t);if(!s)return;const{selectionStart:m,selectionEnd:d,value:$}=s;if(m===d)return;const C=$.slice(m,d),R=C.startsWith("**")&&C.endsWith("**")&&C.length>=4?C.slice(2,-2):`**${C}**`,I=$.slice(0,m)+R+$.slice(d);je(t,{description:I}),requestAnimationFrame(()=>{s.focus();const w=m+R.length;s.setSelectionRange(w,w)})},ve=(t,s,m)=>i(d=>({...d,[t]:{...d[t],[s]:m}})),Ne=t=>({name:t.tierName??t.existing.name,car_model_id:Number(n),...t.form,markup_value:Number(t.form.markup_value),sort_order:Number(t.form.sort_order)}),Ze=async()=>{L(!0),W(null);const t={},s=u;let m=0,d=0;for(const w of u)try{w.existing?ne(w)&&(await S.put(`/packages/${w.existing.id}`,Ne(w)),d+=1):w.checked&&(await S.post("/packages",Ne(w)),m+=1)}catch(Q){t[w.key]=Q.message}const $=await J(),C=Y(Number(n),$).map(w=>{if(!t[w.key])return w;const Q=s.find(st=>st.key===w.key);return Q?{...w,checked:Q.checked,form:Q.form}:w});g(C),N(t);const q=Object.keys(t).length,R=[];m&&R.push(`${m} neu angelegt – Produkte können jetzt hinzugefügt werden`),d&&R.push(`${d} aktualisiert`),!R.length&&!q&&R.push("Keine Änderungen");const I=q?{kind:"error",text:`${R.join(", ")||"Nichts gespeichert"} – ${q} Paket(e) fehlgeschlagen (Details im Paket).`}:{kind:"ok",text:`${R.join(", ")}.`};W(I),q?U.error(I.text):U.success(I.text),L(!1)},He=async t=>{const s=t.tierName??t.existing.name;if(!confirm(`Paket "${s}" inkl. aller Produkte und Upgrades wirklich löschen?`))return;try{await S.delete(`/packages/${t.existing.id}`)}catch(d){U.error(`Löschen fehlgeschlagen: ${d.message}`);return}const m=await J();g(Y(Number(n),m)),W(null),U.success(`Paket „${s}“ gelöscht.`)},_e=async t=>{pe(t.id);try{const s=await S.patch(`/packages/${t.id}/visibility`,{is_hidden:!t.is_hidden}),m=d=>d.id===t.id?{...d,is_hidden:s.is_hidden}:d;h(d=>d.map(m)),g(d=>d.map($=>{var C;return((C=$.existing)==null?void 0:C.id)===t.id?{...$,existing:m($.existing)}:$})),U.success(s.is_hidden?`„${t.name}“ ist jetzt auf der Website ausgeblendet.`:`„${t.name}“ ist wieder sichtbar.`)}catch(s){U.error(`Sichtbarkeit konnte nicht geändert werden: ${s.message}`)}finally{pe(null)}},Je=async t=>{if(!confirm(`Paket "${t.name}" (${t.brand_name} ${t.model_name}) inkl. aller Produkte und Upgrades wirklich löschen?`))return;try{await S.delete(`/packages/${t.id}`)}catch(m){U.error(`Löschen fehlgeschlagen: ${m.message}`);return}const s=await J();n&&g(Y(Number(n),s)),U.success(`Paket „${t.name}“ gelöscht.`)},Qe=t=>{const s={model:String(t.car_model_id),paket:String(t.id)};if(String(t.car_model_id)===n){const m=u.find(d=>{var $;return(($=d.existing)==null?void 0:$.id)===t.id});m&&B(d=>new Set(d).add(m.key)),a(s,{replace:!0});return}re()&&a(s)},Ye=async()=>{if(!T||!re())return;const t=F.get(Number(T)),s=F.get(Number(n));if(confirm(`Alle Pakete von "${t.brand_name} ${t.name}" inkl. verknüpfter Produkte${M?" und Upgrades":""} nach "${s.brand_name} ${s.name}" kopieren?
Bereits vorhandene Paketstufen werden übersprungen.`)){me(!0),te(null);try{const m=await S.post(`/models/${n}/copy-packages`,{source_model_id:Number(T),include_upgrades:M}),d=m.copied.reduce((R,I)=>R+I.products,0),$=m.copied.reduce((R,I)=>R+(I.upgrades||0),0),C=[`${m.copied.length} Paket(e) kopiert (${d} Produkte${M?`, ${$} Upgrades`:""})`];m.skipped.length&&C.push(`übersprungen: ${m.skipped.join(", ")}`),te({text:`${C.join(" – ")}.`}),U.success(`${C.join(" – ")}.`);const q=await J();g(Y(Number(n),q)),N({}),fe(n)}catch(m){te({error:m.message}),U.error(`Kopieren fehlgeschlagen: ${m.message}`)}me(!1)}},Xe=u.filter(t=>!t.existing&&t.checked).length,et=u.filter(t=>t.existing&&ne(t)).length,tt=u.filter(t=>t.existing||t.checked).map(t=>t.key),rt=z.modelId===n,nt=p.useMemo(()=>f.filter(t=>K==="all"||String(t.brand_id)===K).sort((t,s)=>t.name.localeCompare(s.name)),[f,K]),ie=p.useMemo(()=>o.filter(t=>{const s=F.get(t.car_model_id);return!(K!=="all"&&String(s==null?void 0:s.brand_id)!==K||H!=="all"&&String(t.car_model_id)!==H)}),[o,F,K,H]),ye=e.jsxs("div",{children:[e.jsxs("div",{className:"mb-3 flex flex-wrap items-center gap-2",children:[e.jsx("label",{className:"text-sm font-medium text-neutral-600 dark:text-neutral-300",children:"Filtern:"}),e.jsxs("select",{value:K,onChange:t=>{xe(t.target.value),ae("all")},className:"rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"all",children:"Alle Marken"}),ke.map(t=>e.jsx("option",{value:String(t.id),children:t.name},t.id))]}),e.jsxs("select",{value:H,onChange:t=>ae(t.target.value),className:"rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"all",children:"Alle Modelle"}),nt.map(t=>e.jsxs("option",{value:String(t.id),children:[t.brand_name," ",t.name]},t.id))]}),(K!=="all"||H!=="all")&&e.jsx("button",{onClick:()=>{xe("all"),ae("all")},className:"text-sm text-brand-600 hover:underline",children:"Filter zurücksetzen"}),e.jsxs("span",{className:"text-sm text-neutral-400",children:[ie.length," von ",o.length]})]}),e.jsx("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full min-w-[640px] text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Marke / Modell"}),e.jsx("th",{className:"px-4 py-2",children:"Paket"}),e.jsx("th",{className:"px-4 py-2",children:"Aufschlag"}),e.jsx("th",{className:"px-4 py-2",children:"Website"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[ie.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsxs("td",{className:"px-4 py-2",children:[t.brand_name," ",t.model_name]}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:e.jsxs("span",{className:`inline-flex flex-wrap items-center gap-1.5 ${t.is_hidden?"opacity-60":""}`,children:[t.name,e.jsx(De,{badge:t.badge,text:t.badge_text}),t.video_url&&e.jsx(Be,{className:"h-4 w-4 text-red-500","aria-label":"Mit Video-Link"})]})}),e.jsxs("td",{className:"px-4 py-2 text-neutral-500 dark:text-neutral-400",children:[t.markup_type==="fixed"&&`+${t.markup_value} €`,t.markup_type==="percent"&&`+${t.markup_value} %`,(!t.markup_type||t.markup_type==="none")&&"–"]}),e.jsx("td",{className:"px-4 py-2",children:e.jsx(Ke,{pkg:t,busy:he===t.id,onToggle:_e})}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>{Qe(t),window.scrollTo({top:0,behavior:"smooth"})},className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>Je(t),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),ie.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:5,className:"px-4 py-6 text-center text-neutral-400",children:o.length===0?"Noch keine Pakete angelegt.":"Keine Pakete für diesen Filter."})})]})]})})]});return e.jsxs("div",{className:"space-y-6",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Pakete"}),e.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-3 font-bold text-neutral-900 dark:text-white",children:"Modell wählen"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs("select",{value:E,onChange:t=>Ve(t.target.value),className:"rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Marke wählen…"}),ke.map(t=>e.jsx("option",{value:String(t.id),children:t.name},t.id))]}),e.jsxs("select",{value:n,onChange:t=>Oe(t.target.value),className:"min-w-[220px] rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Modell wählen…"}),Fe.map(t=>e.jsxs("option",{value:String(t.id),children:[t.brand_name," ",t.name]},t.id))]})]}),!n&&e.jsx("p",{className:"mt-2 text-sm text-neutral-500 dark:text-neutral-400",children:"Modell auswählen, um dessen Pakete mit Produkten, Upgrades und Preisen zu bearbeiten – alles auf dieser Seite."})]}),O&&e.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"border-b border-neutral-200 px-5 py-4 dark:border-neutral-800",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("h2",{className:"flex flex-wrap items-center gap-3 font-bold text-neutral-900 dark:text-white",children:["Pakete für ",O.brand_name," ",O.name,O.brand_slug&&O.slug&&e.jsx(ct,{to:`/fahrzeuge/${O.brand_slug}/${O.slug}`,label:"Auf der Website ansehen"})]}),e.jsxs("div",{className:"flex gap-3 text-sm",children:[e.jsx("button",{type:"button",onClick:()=>B(new Set(tt)),className:"text-brand-600 hover:underline",children:"Alle aufklappen"}),e.jsx("button",{type:"button",onClick:()=>B(new Set),className:"text-brand-600 hover:underline",children:"Alle zuklappen"})]})]}),e.jsx("p",{className:"mt-1 text-sm text-neutral-500 dark:text-neutral-400",children:"Paket anklicken zum Bearbeiten. Produkte, Upgrades und Sichtbarkeit werden sofort gespeichert, Texte und Aufschläge mit „Alle speichern“ unten."}),e.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2 rounded-lg border border-neutral-200 bg-neutral-50 px-3 py-2.5 dark:border-neutral-800 dark:bg-neutral-950",children:[e.jsx("span",{className:"text-sm font-medium text-neutral-600 dark:text-neutral-300",children:"Pakete von anderem Modell kopieren:"}),e.jsxs("select",{value:T,onChange:t=>P(t.target.value),className:"rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:[e.jsx("option",{value:"",children:"Quellmodell wählen…"}),f.filter(t=>String(t.id)!==n).sort((t,s)=>`${t.brand_name} ${t.name}`.localeCompare(`${s.brand_name} ${s.name}`)).map(t=>e.jsxs("option",{value:String(t.id),children:[t.brand_name," ",t.name]},t.id))]}),e.jsxs("label",{className:"flex items-center gap-1.5 text-sm text-neutral-600 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:M,onChange:t=>G(t.target.checked),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"inkl. Upgrades"]}),e.jsx("button",{type:"button",onClick:Ye,disabled:!T||ue,className:"rounded-md border border-brand-500 px-3 py-1.5 text-sm font-semibold text-brand-600 hover:bg-brand-50 disabled:opacity-50 dark:hover:bg-brand-900/20",children:ue?"Kopiert…":"Kopieren"}),ee&&e.jsx("span",{className:`w-full text-sm ${ee.error?"text-red-600":"text-brand-600 dark:text-brand-400"}`,children:ee.error||ee.text})]})]}),u.map((t,s)=>{var m;return e.jsxs("div",{children:[t.tierName===null&&s>0&&u[s-1].tierName!==null&&e.jsx("div",{className:"border-t border-neutral-200 bg-neutral-50 px-5 py-2 text-xs font-semibold uppercase tracking-wide text-neutral-500 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-400",children:"Weitere Pakete (alte Namen)"}),e.jsx(Mt,{row:t,open:V.has(t.key),products:t.existing&&z.products[t.existing.id]||Re,upgrades:t.existing&&z.upgrades[t.existing.id]||Re,itemsLoaded:rt,saving:c,error:v[t.key],visibilityBusy:he===((m=t.existing)==null?void 0:m.id),descriptionRef:d=>be.current.set(t.key,d),onToggleOpen:()=>We(t.key),onToggleCreate:d=>Ge(t.key,d),onChangeForm:d=>je(t.key,d),onBold:()=>qe(t.key),onToggleVisibility:_e,onDelete:()=>He(t),onProductsChange:d=>ve("products",t.existing.id,d),onUpgradesChange:d=>ve("upgrades",t.existing.id,d)})]},t.key)}),e.jsxs("div",{className:"sticky bottom-0 z-10 flex flex-wrap items-center gap-3 rounded-b-xl border-t border-neutral-200 bg-white px-5 py-3 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("button",{type:"button",onClick:Ze,disabled:c||!le,className:"rounded-md bg-brand-500 px-5 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:c?"Speichert…":"Alle speichern"}),e.jsxs("span",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:[Xe," neu, ",et," geändert"]}),D&&e.jsx("span",{className:`text-sm ${D.kind==="error"?"text-red-600":"text-brand-600 dark:text-brand-400"}`,children:D.text})]})]}),O?e.jsxs("details",{className:"rounded-xl border border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("summary",{className:"cursor-pointer select-none px-5 py-3 font-bold text-neutral-900 dark:text-white",children:"Alle Pakete (Übersicht)"}),e.jsx("div",{className:"border-t border-neutral-200 p-5 dark:border-neutral-800",children:ye})]}):ye]})}export{Ft as default};
diff --git a/hifi/assets/Partners-gT0HmSOb.js b/hifi/assets/Partners-BN6q2vm6.js
similarity index 93%
rename from hifi/assets/Partners-gT0HmSOb.js
rename to hifi/assets/Partners-BN6q2vm6.js
index ad99a82..5875324 100644
--- a/hifi/assets/Partners-gT0HmSOb.js
+++ b/hifi/assets/Partners-BN6q2vm6.js
@@ -1 +1 @@
-import{q as P,r as n,s as R,j as e,c as h}from"./index-BlspSYV0.js";import{I as F}from"./ImageUploadField-Bho12Gdh.js";import{S as L,s as C}from"./SortableList-DwfJpzeR.js";import{V as E}from"./ViewOnSite-BPLJTKOt.js";import"./resizeImage-C6PvAwh0.js";import"./sortable.esm-D1g5h7xA.js";import"./grip-vertical-Bv_4pkjN.js";const u={name:"",logo_path:"",sort_order:0};function z(){const o=P(),[i,d]=n.useState([]),[a,c]=n.useState(u),[y,f]=n.useState(u),[s,j]=n.useState(null),[N,x]=n.useState(""),p=n.useRef(null);R(JSON.stringify(a)!==JSON.stringify(y),"partners");const g=()=>h.get("/partners").then(d);n.useEffect(()=>{g()},[]);const w=t=>{const r={name:t.name,logo_path:t.logo_path||"",sort_order:t.sort_order};j(t.id),c(r),f(r),x(""),requestAnimationFrame(()=>{var l,m,k;(l=p.current)==null||l.scrollIntoView({behavior:"smooth",block:"start"}),(k=(m=p.current)==null?void 0:m.querySelector("input"))==null||k.focus({preventScroll:!0})})},b=()=>{j(null),c(u),f(u)},v=async t=>{t.preventDefault(),x("");try{if(s)await h.put(`/partners/${s}`,a);else{const r=i.reduce((l,m)=>Math.max(l,Number(m.sort_order)||0),0)+10;await h.post("/partners",{...a,sort_order:r})}o.success(s?"Partner gespeichert.":"Partner angelegt."),b(),g()}catch(r){x(r.message)}},S=async t=>{if(confirm("Partner wirklich löschen?"))try{await h.delete(`/partners/${t}`),s===t&&b(),o.success("Partner gelöscht."),g()}catch(r){o.error(`Löschen fehlgeschlagen: ${r.message}`)}},_=async t=>{const r=i;d(t);try{d(await C("partners",t)),o.success("Reihenfolge gespeichert.")}catch(l){d(r),o.error(`Reihenfolge konnte nicht gespeichert werden: ${l.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-2",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Partner"}),e.jsx(E,{to:"/",label:"Startseite ansehen"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Die Marken-Logozeile auf der Startseite. Ohne Logo wird der Name als Text angezeigt. Reihenfolge am Griff links per Ziehen ändern."}),e.jsx("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"w-8 px-2 py-2","aria-label":"Reihenfolge"}),e.jsx("th",{className:"px-4 py-2",children:"Logo"}),e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(L,{items:i,onReorder:_,as:"tbody",className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:(t,r)=>e.jsxs(e.Fragment,{children:[e.jsx("td",{className:"bg-white px-2 py-2 dark:bg-neutral-950",children:r}),e.jsx("td",{className:"bg-white px-4 py-2 dark:bg-neutral-950",children:t.logo_path?e.jsx("img",{src:t.logo_path,alt:"",className:"h-10 w-10 rounded-md object-contain"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsx("td",{className:"bg-white px-4 py-2 font-medium text-neutral-800 dark:bg-neutral-950 dark:text-neutral-100",children:t.name}),e.jsxs("td",{className:"whitespace-nowrap bg-white px-4 py-2 text-right dark:bg-neutral-950",children:[e.jsx("button",{onClick:()=>w(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>S(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]})}),i.length===0&&e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Partner angelegt."})})})]})})]}),e.jsxs("form",{ref:p,onSubmit:v,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Partner bearbeiten":"Neuer Partner"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:a.name,onChange:t=>c({...a,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(F,{value:a.logo_path,onChange:t=>c({...a,logo_path:t}),label:"Logo (optional)"}),N&&e.jsx("p",{className:"text-sm text-red-600",children:N}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:s?"Speichern":"Anlegen"}),s&&e.jsx("button",{type:"button",onClick:b,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{z as default};
+import{q as P,r as n,s as R,j as e,c as h}from"./index-ByR_n0g5.js";import{I as F}from"./ImageUploadField-IMilh1OJ.js";import{S as L,s as C}from"./SortableList-fUokp5Er.js";import{V as E}from"./ViewOnSite-DuRTh7q1.js";import"./resizeImage-C6PvAwh0.js";import"./sortable.esm-feaRoI7N.js";import"./grip-vertical-B-w3JIIY.js";const u={name:"",logo_path:"",sort_order:0};function z(){const o=P(),[i,d]=n.useState([]),[a,c]=n.useState(u),[y,f]=n.useState(u),[s,j]=n.useState(null),[N,x]=n.useState(""),p=n.useRef(null);R(JSON.stringify(a)!==JSON.stringify(y),"partners");const g=()=>h.get("/partners").then(d);n.useEffect(()=>{g()},[]);const w=t=>{const r={name:t.name,logo_path:t.logo_path||"",sort_order:t.sort_order};j(t.id),c(r),f(r),x(""),requestAnimationFrame(()=>{var l,m,k;(l=p.current)==null||l.scrollIntoView({behavior:"smooth",block:"start"}),(k=(m=p.current)==null?void 0:m.querySelector("input"))==null||k.focus({preventScroll:!0})})},b=()=>{j(null),c(u),f(u)},v=async t=>{t.preventDefault(),x("");try{if(s)await h.put(`/partners/${s}`,a);else{const r=i.reduce((l,m)=>Math.max(l,Number(m.sort_order)||0),0)+10;await h.post("/partners",{...a,sort_order:r})}o.success(s?"Partner gespeichert.":"Partner angelegt."),b(),g()}catch(r){x(r.message)}},S=async t=>{if(confirm("Partner wirklich löschen?"))try{await h.delete(`/partners/${t}`),s===t&&b(),o.success("Partner gelöscht."),g()}catch(r){o.error(`Löschen fehlgeschlagen: ${r.message}`)}},_=async t=>{const r=i;d(t);try{d(await C("partners",t)),o.success("Reihenfolge gespeichert.")}catch(l){d(r),o.error(`Reihenfolge konnte nicht gespeichert werden: ${l.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-2",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Partner"}),e.jsx(E,{to:"/",label:"Startseite ansehen"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Die Marken-Logozeile auf der Startseite. Ohne Logo wird der Name als Text angezeigt. Reihenfolge am Griff links per Ziehen ändern."}),e.jsx("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"w-8 px-2 py-2","aria-label":"Reihenfolge"}),e.jsx("th",{className:"px-4 py-2",children:"Logo"}),e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(L,{items:i,onReorder:_,as:"tbody",className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:(t,r)=>e.jsxs(e.Fragment,{children:[e.jsx("td",{className:"bg-white px-2 py-2 dark:bg-neutral-950",children:r}),e.jsx("td",{className:"bg-white px-4 py-2 dark:bg-neutral-950",children:t.logo_path?e.jsx("img",{src:t.logo_path,alt:"",className:"h-10 w-10 rounded-md object-contain"}):e.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-md bg-neutral-100 text-xs text-neutral-400 dark:bg-neutral-800",children:"–"})}),e.jsx("td",{className:"bg-white px-4 py-2 font-medium text-neutral-800 dark:bg-neutral-950 dark:text-neutral-100",children:t.name}),e.jsxs("td",{className:"whitespace-nowrap bg-white px-4 py-2 text-right dark:bg-neutral-950",children:[e.jsx("button",{onClick:()=>w(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>S(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]})}),i.length===0&&e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{colSpan:4,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Partner angelegt."})})})]})})]}),e.jsxs("form",{ref:p,onSubmit:v,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:s?"Partner bearbeiten":"Neuer Partner"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:a.name,onChange:t=>c({...a,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(F,{value:a.logo_path,onChange:t=>c({...a,logo_path:t}),label:"Logo (optional)"}),N&&e.jsx("p",{className:"text-sm text-red-600",children:N}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:s?"Speichern":"Anlegen"}),s&&e.jsx("button",{type:"button",onClick:b,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{z as default};
diff --git a/hifi/assets/PermissionGroups-RYkt4uTw.js b/hifi/assets/PermissionGroups-CaY9t8pp.js
similarity index 98%
rename from hifi/assets/PermissionGroups-RYkt4uTw.js
rename to hifi/assets/PermissionGroups-CaY9t8pp.js
index 3543d4e..601ae6c 100644
--- a/hifi/assets/PermissionGroups-RYkt4uTw.js
+++ b/hifi/assets/PermissionGroups-CaY9t8pp.js
@@ -1 +1 @@
-import{r as n,j as e,c as i}from"./index-BlspSYV0.js";const h={name:"",description:"",permissions:[]};function w(){const[c,b]=n.useState([]),[o,g]=n.useState([]),[r,a]=n.useState(h),[l,u]=n.useState(null),[m,x]=n.useState(""),d=()=>{i.get("/permission-groups").then(b),i.get("/permissions/catalog").then(g)};n.useEffect(d,[]);const j=t=>{u(t.id),a({name:t.name,description:t.description||"",permissions:t.permissions})},p=()=>{u(null),a(h)},N=t=>{a(s=>({...s,permissions:s.permissions.includes(t)?s.permissions.filter(y=>y!==t):[...s.permissions,t]}))},k=async t=>{t.preventDefault(),x("");try{l?await i.put(`/permission-groups/${l}`,r):await i.post("/permission-groups",r),p(),d()}catch(s){x(s.message)}},f=async t=>{confirm("Diese Berechtigungsgruppe wirklich löschen? Benutzer behalten ihre sonstigen Rechte.")&&(await i.delete(`/permission-groups/${t}`),d())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Berechtigungsgruppen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Fasse mehrere Berechtigungen zu einer Gruppe zusammen (z. B. „Werkstatt"), die du dann bequem einem oder mehreren Benutzern zuweisen kannst.'}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2",children:"Berechtigungen"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[c.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsxs("td",{className:"px-4 py-2",children:[e.jsx("p",{className:"font-medium text-neutral-800 dark:text-neutral-100",children:t.name}),t.description&&e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:t.description})]}),e.jsxs("td",{className:"px-4 py-2 text-neutral-500 dark:text-neutral-400",children:[t.permissions.length," von ",o.length]}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>j(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>f(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),c.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:3,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Berechtigungsgruppen angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:k,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:l?"Gruppe bearbeiten":"Neue Gruppe"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>a({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung"}),e.jsx("textarea",{rows:2,value:r.description,onChange:t=>a({...r,description:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Berechtigungen"}),e.jsx("div",{className:"space-y-1.5 rounded-md border border-neutral-200 p-3 dark:border-neutral-700",children:o.map(t=>e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:r.permissions.includes(t.key),onChange:()=>N(t.key),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),t.label]},t.key))})]}),m&&e.jsx("p",{className:"text-sm text-red-600",children:m}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:l?"Speichern":"Anlegen"}),l&&e.jsx("button",{type:"button",onClick:p,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{w as default};
+import{r as n,j as e,c as i}from"./index-ByR_n0g5.js";const h={name:"",description:"",permissions:[]};function w(){const[c,b]=n.useState([]),[o,g]=n.useState([]),[r,a]=n.useState(h),[l,u]=n.useState(null),[m,x]=n.useState(""),d=()=>{i.get("/permission-groups").then(b),i.get("/permissions/catalog").then(g)};n.useEffect(d,[]);const j=t=>{u(t.id),a({name:t.name,description:t.description||"",permissions:t.permissions})},p=()=>{u(null),a(h)},N=t=>{a(s=>({...s,permissions:s.permissions.includes(t)?s.permissions.filter(y=>y!==t):[...s.permissions,t]}))},k=async t=>{t.preventDefault(),x("");try{l?await i.put(`/permission-groups/${l}`,r):await i.post("/permission-groups",r),p(),d()}catch(s){x(s.message)}},f=async t=>{confirm("Diese Berechtigungsgruppe wirklich löschen? Benutzer behalten ihre sonstigen Rechte.")&&(await i.delete(`/permission-groups/${t}`),d())};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:"Berechtigungsgruppen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Fasse mehrere Berechtigungen zu einer Gruppe zusammen (z. B. „Werkstatt"), die du dann bequem einem oder mehreren Benutzern zuweisen kannst.'}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2",children:"Name"}),e.jsx("th",{className:"px-4 py-2",children:"Berechtigungen"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsxs("tbody",{className:"divide-y divide-neutral-100 dark:divide-neutral-800",children:[c.map(t=>e.jsxs("tr",{className:"bg-white dark:bg-neutral-950",children:[e.jsxs("td",{className:"px-4 py-2",children:[e.jsx("p",{className:"font-medium text-neutral-800 dark:text-neutral-100",children:t.name}),t.description&&e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:t.description})]}),e.jsxs("td",{className:"px-4 py-2 text-neutral-500 dark:text-neutral-400",children:[t.permissions.length," von ",o.length]}),e.jsxs("td",{className:"px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>j(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>f(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]},t.id)),c.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:3,className:"px-4 py-6 text-center text-neutral-400",children:"Noch keine Berechtigungsgruppen angelegt."})})]})]})})]}),e.jsxs("form",{onSubmit:k,className:"h-fit space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:l?"Gruppe bearbeiten":"Neue Gruppe"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:r.name,onChange:t=>a({...r,name:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung"}),e.jsx("textarea",{rows:2,value:r.description,onChange:t=>a({...r,description:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1 text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Berechtigungen"}),e.jsx("div",{className:"space-y-1.5 rounded-md border border-neutral-200 p-3 dark:border-neutral-700",children:o.map(t=>e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:r.permissions.includes(t.key),onChange:()=>N(t.key),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),t.label]},t.key))})]}),m&&e.jsx("p",{className:"text-sm text-red-600",children:m}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:l?"Speichern":"Anlegen"}),l&&e.jsx("button",{type:"button",onClick:p,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{w as default};
diff --git a/hifi/assets/ResetSettings-CCa36SGd.js b/hifi/assets/ResetSettings-hunPYZEc.js
similarity index 99%
rename from hifi/assets/ResetSettings-CCa36SGd.js
rename to hifi/assets/ResetSettings-hunPYZEc.js
index 40c1ee5..d1dfc36 100644
--- a/hifi/assets/ResetSettings-CCa36SGd.js
+++ b/hifi/assets/ResetSettings-hunPYZEc.js
@@ -1 +1 @@
-import{r,j as e,L as U,c as d,A as P}from"./index-BlspSYV0.js";const o="LÖSCHEN";async function L(){const s=await fetch(`${P}/settings/export`,{credentials:"include"});if(!s.ok)throw new Error("Sicherung konnte nicht erstellt werden – es wurde nichts gelöscht.");const l=await s.blob(),n=URL.createObjectURL(l),a=document.createElement("a");a.href=n,a.download=`hifiplanet-sicherung-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(a),a.click(),a.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}function q(){const[s,l]=r.useState(!1),[n,a]=r.useState(""),[b,x]=r.useState(!1),[k,i]=r.useState(""),[p,f]=r.useState(!1),[y,u]=r.useState(""),[w,j]=r.useState(!1),[z,c]=r.useState(""),[S,N]=r.useState(!1),[F,m]=r.useState(""),[g,v]=r.useState(""),[h,C]=r.useState(""),B=async()=>{if(confirm("Alle aktuellen Leistungen werden gelöscht und durch die 8 Standard-Leistungen ersetzt. Fortfahren?")){l(!0),a("");try{const t=await d.post("/settings/reset-services",{});a(`${t.count} Standard-Leistungen wiederhergestellt.`)}catch(t){a("Fehler: "+t.message)}finally{l(!1)}}},A=async()=>{if(confirm("Alle aktuellen FAQ-Einträge werden gelöscht und durch die 6 Standard-Fragen ersetzt. Fortfahren?")){x(!0),i("");try{const t=await d.post("/settings/reset-faqs",{});i(`${t.count} Standard-Fragen wiederhergestellt.`)}catch(t){i("Fehler: "+t.message)}finally{x(!1)}}},R=async()=>{if(confirm("Die komplette Bildergalerie wird gelöscht und durch die 13 Marken/29 Projekte/207 Fotos der alten hifi-planet.de-Seite ersetzt. Fortfahren?")){f(!0),u("");try{const t=await d.post("/settings/reset-gallery",{});u(`${t.photos} Fotos wiederhergestellt.`)}catch(t){u("Fehler: "+t.message)}finally{f(!1)}}},E=async()=>{if(g.trim().toUpperCase()===o){j(!0),c("");try{await L();const t=await d.post("/settings/reset-catalog",{});v(""),c(`Fahrzeugkatalog geleert (${t.brands_removed} Marken entfernt).`)}catch(t){c("Fehler: "+t.message)}finally{j(!1)}}},$=async()=>{if(h.trim().toUpperCase()===o){N(!0),m("");try{await L();const t=await d.post("/settings/reset-all",{});C(""),m(`Erledigt: ${t.brands_removed} Marken entfernt, ${t.services_reset} Standard-Leistungen, ${t.faqs_reset} Standard-Fragen und ${t.gallery_photos_reset} Galerie-Fotos wiederhergestellt.`)}catch(t){m("Fehler: "+t.message)}finally{N(!1)}}};return e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsxs("p",{className:"rounded-md bg-amber-50 p-3 text-sm text-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:["Beim Leeren des Fahrzeugkatalogs und bei „Alles zurücksetzen“ wird vorher automatisch eine Sicherung heruntergeladen. Für die anderen Aktionen am besten vorher unter"," ",e.jsx(U,{to:"/admin/settings/export-import",className:"font-semibold underline",children:"Export & Import"})," sichern."]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur Leistungen zurücksetzen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle aktuellen Leistungen-Karten und stellt die 8 mitgelieferten Standard-Leistungen wieder her. Marken, Modelle und Pakete bleiben unangetastet."}),e.jsx("button",{onClick:B,disabled:s,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:s?"Setze zurück…":"Leistungen auf Standard zurücksetzen"}),n&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:n})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur FAQs zurücksetzen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle aktuellen Fragen und stellt die 6 mitgelieferten Standard-Fragen (Deutsch & Englisch) wieder her. Leistungen, Marken, Modelle und Pakete bleiben unangetastet."}),e.jsx("button",{onClick:A,disabled:b,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:b?"Setze zurück…":"FAQs auf Standard zurücksetzen"}),k&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:k})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur Bildergalerie zurücksetzen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle aktuellen Galerie-Marken, -Projekte und -Fotos und stellt die komplette Galerie der alten hifi-planet.de-Seite wieder her (13 Marken, 29 Projekte, 207 Fotos). Fahrzeugkatalog, Leistungen und FAQs bleiben unangetastet."}),e.jsx("button",{onClick:R,disabled:p,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:p?"Setze zurück…":"Galerie auf Standard zurücksetzen"}),y&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:y})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur Fahrzeugkatalog leeren"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle Marken, Modelle, Pakete, Produkte und Upgrades unwiderruflich. Leistungen, Kontaktanfragen und Benutzerkonten bleiben erhalten."}),e.jsx(M,{value:g,onChange:v}),e.jsx("button",{onClick:E,disabled:w||g.trim().toUpperCase()!==o,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:w?"Leere…":"Fahrzeugkatalog leeren"}),z&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:z})]}),e.jsxs("section",{className:"rounded-xl border border-red-300 bg-red-50/40 p-6 dark:border-red-900 dark:bg-red-900/10",children:[e.jsx("h2",{className:"mb-1 font-semibold text-red-700 dark:text-red-300",children:"Alles zurücksetzen"}),e.jsxs("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:["Kombiniert alles: Fahrzeugkatalog wird komplett geleert ",e.jsx("strong",{children:"und"})," Leistungen, FAQs sowie die Bildergalerie werden auf Standard zurückgesetzt. Kontaktanfragen und Benutzerkonten bleiben erhalten. Nicht rückgängig zu machen."]}),e.jsx(M,{value:h,onChange:C}),e.jsx("button",{onClick:$,disabled:S||h.trim().toUpperCase()!==o,className:"rounded-md bg-red-600 px-4 py-2 text-sm font-semibold text-white hover:bg-red-700 disabled:opacity-50",children:S?"Setze zurück…":"Wirklich alles zurücksetzen"}),F&&e.jsx("p",{className:"mt-3 text-sm text-neutral-700 dark:text-neutral-300",children:F})]})]})}function M({value:s,onChange:l}){return e.jsxs("label",{className:"mb-3 block text-sm text-neutral-600 dark:text-neutral-300",children:["Zur Bestätigung ",e.jsx("strong",{className:"font-mono",children:o})," eintippen:",e.jsx("input",{value:s,onChange:n=>l(n.target.value),autoComplete:"off",className:"mt-1 block w-48 rounded-md border border-red-300 bg-white px-3 py-2 font-mono text-sm dark:border-red-900 dark:bg-neutral-900"})]})}export{q as default};
+import{r,j as e,L as U,c as d,A as P}from"./index-ByR_n0g5.js";const o="LÖSCHEN";async function L(){const s=await fetch(`${P}/settings/export`,{credentials:"include"});if(!s.ok)throw new Error("Sicherung konnte nicht erstellt werden – es wurde nichts gelöscht.");const l=await s.blob(),n=URL.createObjectURL(l),a=document.createElement("a");a.href=n,a.download=`hifiplanet-sicherung-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(a),a.click(),a.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}function q(){const[s,l]=r.useState(!1),[n,a]=r.useState(""),[b,x]=r.useState(!1),[k,i]=r.useState(""),[p,f]=r.useState(!1),[y,u]=r.useState(""),[w,j]=r.useState(!1),[z,c]=r.useState(""),[S,N]=r.useState(!1),[F,m]=r.useState(""),[g,v]=r.useState(""),[h,C]=r.useState(""),B=async()=>{if(confirm("Alle aktuellen Leistungen werden gelöscht und durch die 8 Standard-Leistungen ersetzt. Fortfahren?")){l(!0),a("");try{const t=await d.post("/settings/reset-services",{});a(`${t.count} Standard-Leistungen wiederhergestellt.`)}catch(t){a("Fehler: "+t.message)}finally{l(!1)}}},A=async()=>{if(confirm("Alle aktuellen FAQ-Einträge werden gelöscht und durch die 6 Standard-Fragen ersetzt. Fortfahren?")){x(!0),i("");try{const t=await d.post("/settings/reset-faqs",{});i(`${t.count} Standard-Fragen wiederhergestellt.`)}catch(t){i("Fehler: "+t.message)}finally{x(!1)}}},R=async()=>{if(confirm("Die komplette Bildergalerie wird gelöscht und durch die 13 Marken/29 Projekte/207 Fotos der alten hifi-planet.de-Seite ersetzt. Fortfahren?")){f(!0),u("");try{const t=await d.post("/settings/reset-gallery",{});u(`${t.photos} Fotos wiederhergestellt.`)}catch(t){u("Fehler: "+t.message)}finally{f(!1)}}},E=async()=>{if(g.trim().toUpperCase()===o){j(!0),c("");try{await L();const t=await d.post("/settings/reset-catalog",{});v(""),c(`Fahrzeugkatalog geleert (${t.brands_removed} Marken entfernt).`)}catch(t){c("Fehler: "+t.message)}finally{j(!1)}}},$=async()=>{if(h.trim().toUpperCase()===o){N(!0),m("");try{await L();const t=await d.post("/settings/reset-all",{});C(""),m(`Erledigt: ${t.brands_removed} Marken entfernt, ${t.services_reset} Standard-Leistungen, ${t.faqs_reset} Standard-Fragen und ${t.gallery_photos_reset} Galerie-Fotos wiederhergestellt.`)}catch(t){m("Fehler: "+t.message)}finally{N(!1)}}};return e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsxs("p",{className:"rounded-md bg-amber-50 p-3 text-sm text-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:["Beim Leeren des Fahrzeugkatalogs und bei „Alles zurücksetzen“ wird vorher automatisch eine Sicherung heruntergeladen. Für die anderen Aktionen am besten vorher unter"," ",e.jsx(U,{to:"/admin/settings/export-import",className:"font-semibold underline",children:"Export & Import"})," sichern."]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur Leistungen zurücksetzen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle aktuellen Leistungen-Karten und stellt die 8 mitgelieferten Standard-Leistungen wieder her. Marken, Modelle und Pakete bleiben unangetastet."}),e.jsx("button",{onClick:B,disabled:s,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:s?"Setze zurück…":"Leistungen auf Standard zurücksetzen"}),n&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:n})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur FAQs zurücksetzen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle aktuellen Fragen und stellt die 6 mitgelieferten Standard-Fragen (Deutsch & Englisch) wieder her. Leistungen, Marken, Modelle und Pakete bleiben unangetastet."}),e.jsx("button",{onClick:A,disabled:b,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:b?"Setze zurück…":"FAQs auf Standard zurücksetzen"}),k&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:k})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur Bildergalerie zurücksetzen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle aktuellen Galerie-Marken, -Projekte und -Fotos und stellt die komplette Galerie der alten hifi-planet.de-Seite wieder her (13 Marken, 29 Projekte, 207 Fotos). Fahrzeugkatalog, Leistungen und FAQs bleiben unangetastet."}),e.jsx("button",{onClick:R,disabled:p,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:p?"Setze zurück…":"Galerie auf Standard zurücksetzen"}),y&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:y})]}),e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Nur Fahrzeugkatalog leeren"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Löscht alle Marken, Modelle, Pakete, Produkte und Upgrades unwiderruflich. Leistungen, Kontaktanfragen und Benutzerkonten bleiben erhalten."}),e.jsx(M,{value:g,onChange:v}),e.jsx("button",{onClick:E,disabled:w||g.trim().toUpperCase()!==o,className:"rounded-md border border-red-300 px-4 py-2 text-sm font-semibold text-red-600 hover:bg-red-50 disabled:opacity-50 dark:border-red-900 dark:hover:bg-red-900/20",children:w?"Leere…":"Fahrzeugkatalog leeren"}),z&&e.jsx("p",{className:"mt-3 text-sm text-neutral-600 dark:text-neutral-300",children:z})]}),e.jsxs("section",{className:"rounded-xl border border-red-300 bg-red-50/40 p-6 dark:border-red-900 dark:bg-red-900/10",children:[e.jsx("h2",{className:"mb-1 font-semibold text-red-700 dark:text-red-300",children:"Alles zurücksetzen"}),e.jsxs("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:["Kombiniert alles: Fahrzeugkatalog wird komplett geleert ",e.jsx("strong",{children:"und"})," Leistungen, FAQs sowie die Bildergalerie werden auf Standard zurückgesetzt. Kontaktanfragen und Benutzerkonten bleiben erhalten. Nicht rückgängig zu machen."]}),e.jsx(M,{value:h,onChange:C}),e.jsx("button",{onClick:$,disabled:S||h.trim().toUpperCase()!==o,className:"rounded-md bg-red-600 px-4 py-2 text-sm font-semibold text-white hover:bg-red-700 disabled:opacity-50",children:S?"Setze zurück…":"Wirklich alles zurücksetzen"}),F&&e.jsx("p",{className:"mt-3 text-sm text-neutral-700 dark:text-neutral-300",children:F})]})]})}function M({value:s,onChange:l}){return e.jsxs("label",{className:"mb-3 block text-sm text-neutral-600 dark:text-neutral-300",children:["Zur Bestätigung ",e.jsx("strong",{className:"font-mono",children:o})," eintippen:",e.jsx("input",{value:s,onChange:n=>l(n.target.value),autoComplete:"off",className:"mt-1 block w-48 rounded-md border border-red-300 bg-white px-3 py-2 font-mono text-sm dark:border-red-900 dark:bg-neutral-900"})]})}export{q as default};
diff --git a/hifi/assets/RichTextEditor-CO4xzKJO.js b/hifi/assets/RichTextEditor-DOxjC-7q.js
similarity index 99%
rename from hifi/assets/RichTextEditor-CO4xzKJO.js
rename to hifi/assets/RichTextEditor-DOxjC-7q.js
index 335206c..4eab1f6 100644
--- a/hifi/assets/RichTextEditor-CO4xzKJO.js
+++ b/hifi/assets/RichTextEditor-DOxjC-7q.js
@@ -1,4 +1,4 @@
-import{r as q,y as xt,j as R,am as Gu,z as Yu}from"./index-BlspSYV0.js";var Hl={exports:{}},jl={};/**
+import{r as q,B as xt,j as R,an as Gu,F as Yu}from"./index-ByR_n0g5.js";var Hl={exports:{}},jl={};/**
* @license React
* use-sync-external-store-shim.production.js
*
diff --git a/hifi/assets/SaveBar-CVCIr_4p.js b/hifi/assets/SaveBar-DM4P28zl.js
similarity index 93%
rename from hifi/assets/SaveBar-CVCIr_4p.js
rename to hifi/assets/SaveBar-DM4P28zl.js
index 473a563..4c7dae4 100644
--- a/hifi/assets/SaveBar-CVCIr_4p.js
+++ b/hifi/assets/SaveBar-DM4P28zl.js
@@ -1 +1 @@
-import{j as e}from"./index-BlspSYV0.js";function m({dirty:t,busy:i,savedAt:a,onSave:n,label:s="Speichern",form:r}){return e.jsx("div",{className:"sticky bottom-0 z-20 -mx-4 mt-6 border-t border-neutral-200 bg-white/95 px-4 py-3 backdrop-blur dark:border-neutral-800 dark:bg-neutral-950/95 sm:-mx-6 sm:px-6",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsx("p",{className:`text-sm ${t?"font-medium text-amber-600 dark:text-amber-400":"text-neutral-500 dark:text-neutral-400"}`,children:t?"● Ungespeicherte Änderungen":a?`✓ Gespeichert um ${a.toLocaleTimeString("de-DE",{hour:"2-digit",minute:"2-digit"})} Uhr`:"Alles gespeichert"}),e.jsx("button",{type:r?"submit":"button",form:r,onClick:r?void 0:n,disabled:i||!t,className:"rounded-md bg-brand-500 px-5 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:i?"Speichere…":s})]})})}export{m as S};
+import{j as e}from"./index-ByR_n0g5.js";function m({dirty:t,busy:i,savedAt:a,onSave:n,label:s="Speichern",form:r}){return e.jsx("div",{className:"sticky bottom-0 z-20 -mx-4 mt-6 border-t border-neutral-200 bg-white/95 px-4 py-3 backdrop-blur dark:border-neutral-800 dark:bg-neutral-950/95 sm:-mx-6 sm:px-6",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsx("p",{className:`text-sm ${t?"font-medium text-amber-600 dark:text-amber-400":"text-neutral-500 dark:text-neutral-400"}`,children:t?"● Ungespeicherte Änderungen":a?`✓ Gespeichert um ${a.toLocaleTimeString("de-DE",{hour:"2-digit",minute:"2-digit"})} Uhr`:"Alles gespeichert"}),e.jsx("button",{type:r?"submit":"button",form:r,onClick:r?void 0:n,disabled:i||!t,className:"rounded-md bg-brand-500 px-5 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:i?"Speichere…":s})]})})}export{m as S};
diff --git a/hifi/assets/Services-Y3-jTFYy.js b/hifi/assets/Services-BJ8NVLPL.js
similarity index 95%
rename from hifi/assets/Services-Y3-jTFYy.js
rename to hifi/assets/Services-BJ8NVLPL.js
index 751094a..b99a148 100644
--- a/hifi/assets/Services-Y3-jTFYy.js
+++ b/hifi/assets/Services-BJ8NVLPL.js
@@ -1 +1 @@
-import{r as i,j as e,q as R,s as F,D as T,c as h}from"./index-BlspSYV0.js";import{S as z,s as D}from"./SortableList-DwfJpzeR.js";import{V as A}from"./ViewOnSite-BPLJTKOt.js";import{I as M}from"./ImageUploadField-Bho12Gdh.js";import{toComponentName as w,ICON_NAMES as b,findIcon as $}from"./iconRegistry-B5nlmNdu.js";import"./sortable.esm-D1g5h7xA.js";import"./grip-vertical-Bv_4pkjN.js";import"./resizeImage-C6PvAwh0.js";import"./music-Co2R5rSR.js";import"./eye-BfYwiu9A.js";import"./trash-2-BGP0wMN7.js";function y({name:l,className:c}){const r=$(l);return r?e.jsx(r,{className:c}):null}const q=120,O=200;function V({value:l,onChange:c}){const[r,a]=i.useState(""),d=l?w(l):null,u=i.useMemo(()=>{const s=r.trim().toLowerCase();return s?b.filter(x=>x.includes(s)).slice(0,O):b.slice(0,q)},[r]);return e.jsxs("div",{children:[e.jsxs("div",{className:"mb-2 flex items-center gap-3 rounded-md border border-neutral-300 p-2 dark:border-neutral-700",children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:l?e.jsx(y,{name:l,className:"h-6 w-6"}):e.jsx("span",{className:"text-xs text-neutral-400",children:"?"})}),e.jsxs("div",{className:"text-sm",children:[e.jsx("p",{className:"font-medium text-neutral-800 dark:text-neutral-100",children:l||"Kein Icon gewählt"}),e.jsxs("p",{className:"text-xs text-neutral-400",children:[b.length," Icons verfügbar"]})]})]}),e.jsx("input",{value:r,onChange:s=>a(s.target.value),placeholder:"Icon suchen (z. B. car, shield, zap)…",className:"mb-2 w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsxs("div",{className:"grid max-h-64 grid-cols-6 gap-1 overflow-y-auto rounded-md border border-neutral-200 p-2 sm:grid-cols-8 dark:border-neutral-700",children:[u.map(s=>e.jsx("button",{type:"button",title:s,onClick:()=>c(s),className:`flex h-10 w-10 items-center justify-center rounded-md transition ${d===w(s)?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:e.jsx(y,{name:s,className:"h-5 w-5"})},s)),u.length===0&&e.jsx("p",{className:"col-span-full py-4 text-center text-sm text-neutral-400",children:"Keine Icons gefunden."})]}),!r&&e.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:["Tipp: Tippe einen Suchbegriff ein, um alle ",b.length," Icons zu durchsuchen."]})]})}const p={icon_name:"",title:"",description:"",image_path:"",cta_label:"",cta_url:"",sort_order:0,title_en:"",description_en:"",cta_label_en:""},k="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900";function ee(){const[l,c]=i.useState([]),[r,a]=i.useState(p),[d,u]=i.useState(null),[s,x]=i.useState(""),[S,v]=i.useState(p),[g,f]=i.useState(!1),_=i.useRef(null),m=R();F(JSON.stringify(r)!==JSON.stringify(S),"services");const j=()=>h.get("/services").then(c);i.useEffect(j,[]);const I=t=>{var o;const n={icon_name:t.icon_name,title:t.title,description:t.description,image_path:t.image_path||"",cta_label:t.cta_label||"",cta_url:t.cta_url||"",sort_order:t.sort_order,title_en:t.title_en||"",description_en:t.description_en||"",cta_label_en:t.cta_label_en||""};u(t.id),a(n),v(n),f(!!(n.title_en||n.description_en||n.cta_label_en)),(o=_.current)==null||o.scrollIntoView({behavior:"smooth",block:"start"})},N=()=>{u(null),a(p),v(p),f(!1)},C=async t=>{if(t.preventDefault(),x(""),!r.icon_name){x("Bitte ein Icon auswählen");return}const n={...r,sort_order:Number(r.sort_order)};try{d?await h.put(`/services/${d}`,n):(n.sort_order=l.reduce((o,B)=>Math.max(o,Number(B.sort_order)||0),0)+10,await h.post("/services",n)),m.success(d?"Leistung gespeichert.":"Leistung angelegt."),N(),j()}catch(o){x(o.message)}},E=async t=>{if(confirm("Diese Leistung wirklich löschen?"))try{await h.delete(`/services/${t}`),d===t&&N(),m.success("Leistung gelöscht."),j()}catch(n){m.error(`Löschen fehlgeschlagen: ${n.message}`)}},L=async t=>{const n=l;c(t);try{c(await D("services",t)),m.success("Reihenfolge gespeichert.")}catch(o){c(n),m.error(`Reihenfolge konnte nicht gespeichert werden: ${o.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Leistungen"}),e.jsx(A,{to:"/leistungen"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Diese Karten erscheinen auf der öffentlichen Leistungen-Seite. Die 8 mitgelieferten Einträge sind die Standard-Einstellung – du kannst sie bearbeiten, löschen und beliebig neue hinzufügen. Reihenfolge am Griff links per Ziehen ändern."}),e.jsxs("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:[e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"w-10 px-2 py-2",children:e.jsx("span",{className:"sr-only",children:"Reihenfolge"})}),e.jsx("th",{className:"px-4 py-2",children:"Icon"}),e.jsx("th",{className:"px-4 py-2",children:"Titel"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(z,{items:l,onReorder:L,as:"tbody",className:"divide-y divide-neutral-100 bg-white dark:divide-neutral-800 dark:bg-neutral-950",children:(t,n)=>e.jsxs(e.Fragment,{children:[e.jsx("td",{className:"px-2 py-2",children:n}),e.jsx("td",{className:"px-4 py-2",children:e.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:e.jsx(T,{name:t.icon_name,className:"h-5 w-5"})})}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:t.title}),e.jsxs("td",{className:"whitespace-nowrap px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>I(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>E(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]})})]}),l.length===0&&e.jsx("p",{className:"px-4 py-6 text-center text-sm text-neutral-400",children:"Noch keine Leistungen angelegt."})]})]}),e.jsxs("form",{ref:_,onSubmit:C,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:d?"Leistung bearbeiten":"Neue Leistung"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Icon *"}),e.jsx(V,{value:r.icon_name,onChange:t=>a({...r,icon_name:t})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:r.title,onChange:t=>a({...r,title:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung *"}),e.jsx("textarea",{required:!0,rows:4,value:r.description,onChange:t=>a({...r,description:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(M,{value:r.image_path,onChange:t=>a({...r,image_path:t}),aspect:4/3,label:"Bild"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Text (optional)"}),e.jsx("input",{value:r.cta_label,onChange:t=>a({...r,cta_label:t.target.value}),placeholder:"z. B. Fahrzeug konfigurieren",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Link (optional)"}),e.jsx("input",{value:r.cta_url,onChange:t=>a({...r,cta_url:t.target.value}),placeholder:"z. B. /fahrzeuge",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{className:"rounded-lg border border-neutral-200 dark:border-neutral-800",children:[e.jsxs("button",{type:"button",onClick:()=>f(t=>!t),"aria-expanded":g,className:"flex w-full items-center justify-between px-3 py-2 text-left text-sm font-medium text-neutral-700 dark:text-neutral-300",children:[e.jsx("span",{children:"Englische Version (optional)"}),e.jsx("span",{className:"text-neutral-400",children:g?"▲":"▼"})]}),g&&e.jsxs("div",{className:"space-y-3 border-t border-neutral-200 p-3 dark:border-neutral-800",children:[e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Leere Felder: Englische Besucher sehen den deutschen Text."}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name (Englisch)"}),e.jsx("input",{value:r.title_en,onChange:t=>a({...r,title_en:t.target.value}),placeholder:r.title,className:k})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung (Englisch)"}),e.jsx("textarea",{rows:4,value:r.description_en,onChange:t=>a({...r,description_en:t.target.value}),className:k})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Text (Englisch)"}),e.jsx("input",{value:r.cta_label_en,onChange:t=>a({...r,cta_label_en:t.target.value}),placeholder:r.cta_label,className:k})]})]})]}),s&&e.jsx("p",{className:"text-sm text-red-600",children:s}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:d?"Speichern":"Anlegen"}),d&&e.jsx("button",{type:"button",onClick:N,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{ee as default};
+import{r as i,j as e,q as R,s as F,D as T,c as h}from"./index-ByR_n0g5.js";import{S as z,s as D}from"./SortableList-fUokp5Er.js";import{V as A}from"./ViewOnSite-DuRTh7q1.js";import{I as M}from"./ImageUploadField-IMilh1OJ.js";import{toComponentName as w,ICON_NAMES as b,findIcon as $}from"./iconRegistry-D2FmHLLX.js";import"./sortable.esm-feaRoI7N.js";import"./grip-vertical-B-w3JIIY.js";import"./resizeImage-C6PvAwh0.js";import"./music-CzZVX9lt.js";import"./eye-BhaTX13E.js";import"./trash-2-CQUo9mrD.js";function y({name:l,className:c}){const r=$(l);return r?e.jsx(r,{className:c}):null}const q=120,O=200;function V({value:l,onChange:c}){const[r,a]=i.useState(""),d=l?w(l):null,u=i.useMemo(()=>{const s=r.trim().toLowerCase();return s?b.filter(x=>x.includes(s)).slice(0,O):b.slice(0,q)},[r]);return e.jsxs("div",{children:[e.jsxs("div",{className:"mb-2 flex items-center gap-3 rounded-md border border-neutral-300 p-2 dark:border-neutral-700",children:[e.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:l?e.jsx(y,{name:l,className:"h-6 w-6"}):e.jsx("span",{className:"text-xs text-neutral-400",children:"?"})}),e.jsxs("div",{className:"text-sm",children:[e.jsx("p",{className:"font-medium text-neutral-800 dark:text-neutral-100",children:l||"Kein Icon gewählt"}),e.jsxs("p",{className:"text-xs text-neutral-400",children:[b.length," Icons verfügbar"]})]})]}),e.jsx("input",{value:r,onChange:s=>a(s.target.value),placeholder:"Icon suchen (z. B. car, shield, zap)…",className:"mb-2 w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsxs("div",{className:"grid max-h-64 grid-cols-6 gap-1 overflow-y-auto rounded-md border border-neutral-200 p-2 sm:grid-cols-8 dark:border-neutral-700",children:[u.map(s=>e.jsx("button",{type:"button",title:s,onClick:()=>c(s),className:`flex h-10 w-10 items-center justify-center rounded-md transition ${d===w(s)?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:e.jsx(y,{name:s,className:"h-5 w-5"})},s)),u.length===0&&e.jsx("p",{className:"col-span-full py-4 text-center text-sm text-neutral-400",children:"Keine Icons gefunden."})]}),!r&&e.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:["Tipp: Tippe einen Suchbegriff ein, um alle ",b.length," Icons zu durchsuchen."]})]})}const p={icon_name:"",title:"",description:"",image_path:"",cta_label:"",cta_url:"",sort_order:0,title_en:"",description_en:"",cta_label_en:""},k="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900";function ee(){const[l,c]=i.useState([]),[r,a]=i.useState(p),[d,u]=i.useState(null),[s,x]=i.useState(""),[S,v]=i.useState(p),[g,f]=i.useState(!1),_=i.useRef(null),m=R();F(JSON.stringify(r)!==JSON.stringify(S),"services");const j=()=>h.get("/services").then(c);i.useEffect(j,[]);const I=t=>{var o;const n={icon_name:t.icon_name,title:t.title,description:t.description,image_path:t.image_path||"",cta_label:t.cta_label||"",cta_url:t.cta_url||"",sort_order:t.sort_order,title_en:t.title_en||"",description_en:t.description_en||"",cta_label_en:t.cta_label_en||""};u(t.id),a(n),v(n),f(!!(n.title_en||n.description_en||n.cta_label_en)),(o=_.current)==null||o.scrollIntoView({behavior:"smooth",block:"start"})},N=()=>{u(null),a(p),v(p),f(!1)},C=async t=>{if(t.preventDefault(),x(""),!r.icon_name){x("Bitte ein Icon auswählen");return}const n={...r,sort_order:Number(r.sort_order)};try{d?await h.put(`/services/${d}`,n):(n.sort_order=l.reduce((o,B)=>Math.max(o,Number(B.sort_order)||0),0)+10,await h.post("/services",n)),m.success(d?"Leistung gespeichert.":"Leistung angelegt."),N(),j()}catch(o){x(o.message)}},E=async t=>{if(confirm("Diese Leistung wirklich löschen?"))try{await h.delete(`/services/${t}`),d===t&&N(),m.success("Leistung gelöscht."),j()}catch(n){m.error(`Löschen fehlgeschlagen: ${n.message}`)}},L=async t=>{const n=l;c(t);try{c(await D("services",t)),m.success("Reihenfolge gespeichert.")}catch(o){c(n),m.error(`Reihenfolge konnte nicht gespeichert werden: ${o.message}`)}};return e.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h1",{className:"text-xl font-bold text-neutral-900 dark:text-white",children:"Leistungen"}),e.jsx(A,{to:"/leistungen"})]}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Diese Karten erscheinen auf der öffentlichen Leistungen-Seite. Die 8 mitgelieferten Einträge sind die Standard-Einstellung – du kannst sie bearbeiten, löschen und beliebig neue hinzufügen. Reihenfolge am Griff links per Ziehen ändern."}),e.jsxs("div",{className:"overflow-x-auto rounded-xl border border-neutral-200 dark:border-neutral-800",children:[e.jsxs("table",{className:"w-full text-left text-sm",children:[e.jsx("thead",{className:"bg-neutral-50 text-neutral-500 dark:bg-neutral-900 dark:text-neutral-400",children:e.jsxs("tr",{children:[e.jsx("th",{className:"w-10 px-2 py-2",children:e.jsx("span",{className:"sr-only",children:"Reihenfolge"})}),e.jsx("th",{className:"px-4 py-2",children:"Icon"}),e.jsx("th",{className:"px-4 py-2",children:"Titel"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Aktionen"})]})}),e.jsx(z,{items:l,onReorder:L,as:"tbody",className:"divide-y divide-neutral-100 bg-white dark:divide-neutral-800 dark:bg-neutral-950",children:(t,n)=>e.jsxs(e.Fragment,{children:[e.jsx("td",{className:"px-2 py-2",children:n}),e.jsx("td",{className:"px-4 py-2",children:e.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:e.jsx(T,{name:t.icon_name,className:"h-5 w-5"})})}),e.jsx("td",{className:"px-4 py-2 font-medium text-neutral-800 dark:text-neutral-100",children:t.title}),e.jsxs("td",{className:"whitespace-nowrap px-4 py-2 text-right",children:[e.jsx("button",{onClick:()=>I(t),className:"mr-3 text-brand-600 hover:underline",children:"Bearbeiten"}),e.jsx("button",{onClick:()=>E(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]})]})})]}),l.length===0&&e.jsx("p",{className:"px-4 py-6 text-center text-sm text-neutral-400",children:"Noch keine Leistungen angelegt."})]})]}),e.jsxs("form",{ref:_,onSubmit:C,className:"h-fit scroll-mt-20 space-y-4 rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"font-bold text-neutral-900 dark:text-white",children:d?"Leistung bearbeiten":"Neue Leistung"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Icon *"}),e.jsx(V,{value:r.icon_name,onChange:t=>a({...r,icon_name:t})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name *"}),e.jsx("input",{required:!0,value:r.title,onChange:t=>a({...r,title:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung *"}),e.jsx("textarea",{required:!0,rows:4,value:r.description,onChange:t=>a({...r,description:t.target.value}),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx(M,{value:r.image_path,onChange:t=>a({...r,image_path:t}),aspect:4/3,label:"Bild"}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Text (optional)"}),e.jsx("input",{value:r.cta_label,onChange:t=>a({...r,cta_label:t.target.value}),placeholder:"z. B. Fahrzeug konfigurieren",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Link (optional)"}),e.jsx("input",{value:r.cta_url,onChange:t=>a({...r,cta_url:t.target.value}),placeholder:"z. B. /fahrzeuge",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{className:"rounded-lg border border-neutral-200 dark:border-neutral-800",children:[e.jsxs("button",{type:"button",onClick:()=>f(t=>!t),"aria-expanded":g,className:"flex w-full items-center justify-between px-3 py-2 text-left text-sm font-medium text-neutral-700 dark:text-neutral-300",children:[e.jsx("span",{children:"Englische Version (optional)"}),e.jsx("span",{className:"text-neutral-400",children:g?"▲":"▼"})]}),g&&e.jsxs("div",{className:"space-y-3 border-t border-neutral-200 p-3 dark:border-neutral-800",children:[e.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Leere Felder: Englische Besucher sehen den deutschen Text."}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name (Englisch)"}),e.jsx("input",{value:r.title_en,onChange:t=>a({...r,title_en:t.target.value}),placeholder:r.title,className:k})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Beschreibung (Englisch)"}),e.jsx("textarea",{rows:4,value:r.description_en,onChange:t=>a({...r,description_en:t.target.value}),className:k})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Button-Text (Englisch)"}),e.jsx("input",{value:r.cta_label_en,onChange:t=>a({...r,cta_label_en:t.target.value}),placeholder:r.cta_label,className:k})]})]})]}),s&&e.jsx("p",{className:"text-sm text-red-600",children:s}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{type:"submit",className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:d?"Speichern":"Anlegen"}),d&&e.jsx("button",{type:"button",onClick:N,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"})]})]})]})}export{ee as default};
diff --git a/hifi/assets/SettingsLayout-BpB6khtG.js b/hifi/assets/SettingsLayout-DAVl0DYi.js
similarity index 96%
rename from hifi/assets/SettingsLayout-BpB6khtG.js
rename to hifi/assets/SettingsLayout-DAVl0DYi.js
index e8de2fa..ffad548 100644
--- a/hifi/assets/SettingsLayout-BpB6khtG.js
+++ b/hifi/assets/SettingsLayout-DAVl0DYi.js
@@ -1 +1 @@
-import{B as a,j as e,r as i,O as u}from"./index-BlspSYV0.js";const d={company:["Firmendaten","Telefon, Adresse, Öffnungszeiten, Logo und der Hinweis unter den Paketpreisen."],design:["Aussehen","Titelbild, Schriften und das Aussehen der Kacheln auf der Website."],legal:["Rechtstexte","Impressum, Datenschutzerklärung und AGB."],maintenance:["Wartungsmodus","Die ganze Website oder einzelne Bereiche vorübergehend für Besucher sperren."],countdown:["Launch-Countdown","Vor dem Start nur einen Countdown zeigen, der neugierig macht. Danach öffnet sich die Website von selbst."],email:["E-Mail-Versand","Zugangsdaten des Mail-Servers und die Texte der automatischen E-Mails."],google:["Google-Dienste","Google Analytics und Google-Bewertungen anbinden. Nur für Techniker."],database:["Datenbank","Verbindung und Struktur der Datenbank. Nur für Techniker."],"export-import":["Export & Import","Sicherung herunterladen oder auf einem anderen Server einspielen."],update:["Updates","Neue Versionen der Website installieren."],reset:["Zurücksetzen","Inhalte auf den Auslieferungszustand zurücksetzen. Vorher unbedingt exportieren."]};function l(){const{pathname:t}=a(),r=t.replace(/\/$/,"").split("/").pop(),[s,n]=d[r]||["Einstellungen",""];return e.jsxs("div",{children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:s}),n&&e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:n}),e.jsx(i.Suspense,{fallback:e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}),children:e.jsx(u,{})})]})}export{l as default};
+import{G as a,j as e,r as i,O as u}from"./index-ByR_n0g5.js";const d={company:["Firmendaten","Telefon, Adresse, Öffnungszeiten, Logo und der Hinweis unter den Paketpreisen."],design:["Aussehen","Titelbild, Schriften und das Aussehen der Kacheln auf der Website."],legal:["Rechtstexte","Impressum, Datenschutzerklärung und AGB."],maintenance:["Wartungsmodus","Die ganze Website oder einzelne Bereiche vorübergehend für Besucher sperren."],countdown:["Launch-Countdown","Vor dem Start nur einen Countdown zeigen, der neugierig macht. Danach öffnet sich die Website von selbst."],email:["E-Mail-Versand","Zugangsdaten des Mail-Servers und die Texte der automatischen E-Mails."],google:["Google-Dienste","Google Analytics und Google-Bewertungen anbinden. Nur für Techniker."],database:["Datenbank","Verbindung und Struktur der Datenbank. Nur für Techniker."],"export-import":["Export & Import","Sicherung herunterladen oder auf einem anderen Server einspielen."],update:["Updates","Neue Versionen der Website installieren."],reset:["Zurücksetzen","Inhalte auf den Auslieferungszustand zurücksetzen. Vorher unbedingt exportieren."]};function l(){const{pathname:t}=a(),r=t.replace(/\/$/,"").split("/").pop(),[s,n]=d[r]||["Einstellungen",""];return e.jsxs("div",{children:[e.jsx("h1",{className:"mb-1 text-xl font-bold text-neutral-900 dark:text-white",children:s}),n&&e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:n}),e.jsx(i.Suspense,{fallback:e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}),children:e.jsx(u,{})})]})}export{l as default};
diff --git a/hifi/assets/SetupWizard-BQmYQeMI.js b/hifi/assets/SetupWizard-BWR47IEf.js
similarity index 98%
rename from hifi/assets/SetupWizard-BQmYQeMI.js
rename to hifi/assets/SetupWizard-BWR47IEf.js
index ee75f96..15746be 100644
--- a/hifi/assets/SetupWizard-BQmYQeMI.js
+++ b/hifi/assets/SetupWizard-BWR47IEf.js
@@ -1 +1 @@
-import{b as E,r as x,c as b,j as e,l as P,L as k}from"./index-BlspSYV0.js";const F={host:"",name:"",user:"",password:"",charset:"utf8mb4"},L={username:"",password:"",password_confirmation:""};function z(){E({title:"Ersteinrichtung",path:"/setup"});const[n,c]=x.useState("loading"),[m,r]=x.useState(""),[u,o]=x.useState(!1),[f,v]=x.useState(""),[a,h]=x.useState(F),[l,p]=x.useState(L),[w,y]=x.useState(null),N=()=>b.get("/setup/status").then(t=>(t.needs_setup?t.steps.admin.ok?c("done"):t.steps.schema.ok?c("admin"):c(t.steps.database.ok?"schema":"database"):c("locked"),t));x.useEffect(()=>{b.get("/setup/status").then(t=>c(t.needs_setup?"password":"locked")).catch(()=>c("locked"))},[]);const D=async t=>{t.preventDefault(),r(""),o(!0);try{await b.post("/setup/verify-password",{password:f}),await N()}catch(s){r(s.message)}finally{o(!1)}},S=async t=>{t.preventDefault(),r(""),o(!0);try{await b.post("/setup/database",a),await N()}catch(s){r(s.message)}finally{o(!1)}},A=async()=>{r(""),o(!0);try{const t=await b.post("/setup/migrate",{});y(t.actions),t.status.steps.schema.ok&&c("admin")}catch(t){r(t.message)}finally{o(!1)}},C=async t=>{if(t.preventDefault(),r(""),l.password!==l.password_confirmation){r("Die Passwörter stimmen nicht überein");return}o(!0);try{await b.post("/setup/admin",l),c("done")}catch(s){r(s.message)}finally{o(!1)}},d="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900",i="mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",g=[{key:"database",label:"Datenbank"},{key:"schema",label:"Struktur"},{key:"admin",label:"Admin-Account"}],j=g.findIndex(t=>t.key===n);return e.jsxs("div",{className:"flex min-h-screen flex-col items-center justify-center gap-6 bg-neutral-50 px-4 py-12 dark:bg-neutral-950",children:[e.jsx("img",{src:P,alt:"HifiPlanet",className:"h-16 w-auto sm:h-20"}),e.jsxs("div",{className:"w-full max-w-md rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900",children:[n==="loading"&&e.jsx("p",{className:"text-center text-sm text-neutral-400",children:"Lädt…"}),n==="locked"&&e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Bereits eingerichtet"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Diese Seite wurde bereits vollständig eingerichtet. Der Assistent ist deshalb gesperrt."}),e.jsx(k,{to:"/admin/login",className:"text-sm font-medium text-brand-600 hover:underline dark:text-brand-400",children:"Zum Login"})]}),["database","schema","admin"].includes(n)&&e.jsx("div",{className:"mb-6 flex items-center justify-center gap-2",children:g.map((t,s)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`flex h-6 w-6 items-center justify-center rounded-full text-xs font-semibold ${sv(t.target.value),required:!0,autoFocus:!0,className:d})]}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Prüfe…":"Weiter"})]}),n==="database"&&e.jsxs("form",{onSubmit:S,children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Datenbank-Zugangsdaten"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Trage die Zugangsdaten der Datenbank auf diesem Server ein. Die Verbindung wird vor dem Speichern getestet."}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Host *"}),e.jsx("input",{required:!0,value:a.host,onChange:t=>h({...a,host:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Datenbankname *"}),e.jsx("input",{required:!0,value:a.name,onChange:t=>h({...a,name:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Benutzer *"}),e.jsx("input",{required:!0,value:a.user,onChange:t=>h({...a,user:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Passwort"}),e.jsx("input",{type:"password",value:a.password,onChange:t=>h({...a,password:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:i,children:"Zeichensatz"}),e.jsx("input",{value:a.charset,onChange:t=>h({...a,charset:t.target.value}),className:d})]}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Teste Verbindung…":"Verbindung testen & speichern"})]}),n==="schema"&&e.jsxs("div",{children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Datenbankstruktur"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Die Datenbankverbindung funktioniert. Jetzt legen wir die benötigten Tabellen an."}),w&&e.jsx("ul",{className:"mb-4 space-y-1 rounded-md bg-neutral-50 p-3 text-sm text-neutral-700 dark:bg-neutral-800 dark:text-neutral-300",children:w.map((t,s)=>e.jsx("li",{children:t},s))}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"button",onClick:A,disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Richte ein…":"Datenbankstruktur einrichten"})]}),n==="admin"&&e.jsxs("form",{onSubmit:C,children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Erster Admin-Account"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Lege den ersten Super-Admin-Account an, mit dem du dich anschließend einloggen kannst."}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Benutzername"}),e.jsx("input",{required:!0,autoFocus:!0,value:l.username,onChange:t=>p({...l,username:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Passwort"}),e.jsx("input",{type:"password",required:!0,minLength:8,value:l.password,onChange:t=>p({...l,password:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:i,children:"Passwort wiederholen"}),e.jsx("input",{type:"password",required:!0,minLength:8,value:l.password_confirmation,onChange:t=>p({...l,password_confirmation:t.target.value}),className:d})]}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Lege an…":"Admin-Account anlegen"})]}),n==="done"&&e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Fertig!"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Die Ersteinrichtung ist abgeschlossen. Du kannst dich jetzt mit deinem neuen Admin-Account anmelden."}),e.jsx(k,{to:"/admin/login",className:"inline-block w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600",children:"Zum Login"})]})]})]})}export{z as default};
+import{b as E,r as x,c as b,j as e,l as P,L as k}from"./index-ByR_n0g5.js";const F={host:"",name:"",user:"",password:"",charset:"utf8mb4"},L={username:"",password:"",password_confirmation:""};function z(){E({title:"Ersteinrichtung",path:"/setup"});const[n,c]=x.useState("loading"),[m,r]=x.useState(""),[u,o]=x.useState(!1),[f,v]=x.useState(""),[a,h]=x.useState(F),[l,p]=x.useState(L),[w,y]=x.useState(null),N=()=>b.get("/setup/status").then(t=>(t.needs_setup?t.steps.admin.ok?c("done"):t.steps.schema.ok?c("admin"):c(t.steps.database.ok?"schema":"database"):c("locked"),t));x.useEffect(()=>{b.get("/setup/status").then(t=>c(t.needs_setup?"password":"locked")).catch(()=>c("locked"))},[]);const D=async t=>{t.preventDefault(),r(""),o(!0);try{await b.post("/setup/verify-password",{password:f}),await N()}catch(s){r(s.message)}finally{o(!1)}},S=async t=>{t.preventDefault(),r(""),o(!0);try{await b.post("/setup/database",a),await N()}catch(s){r(s.message)}finally{o(!1)}},A=async()=>{r(""),o(!0);try{const t=await b.post("/setup/migrate",{});y(t.actions),t.status.steps.schema.ok&&c("admin")}catch(t){r(t.message)}finally{o(!1)}},C=async t=>{if(t.preventDefault(),r(""),l.password!==l.password_confirmation){r("Die Passwörter stimmen nicht überein");return}o(!0);try{await b.post("/setup/admin",l),c("done")}catch(s){r(s.message)}finally{o(!1)}},d="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900",i="mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",g=[{key:"database",label:"Datenbank"},{key:"schema",label:"Struktur"},{key:"admin",label:"Admin-Account"}],j=g.findIndex(t=>t.key===n);return e.jsxs("div",{className:"flex min-h-screen flex-col items-center justify-center gap-6 bg-neutral-50 px-4 py-12 dark:bg-neutral-950",children:[e.jsx("img",{src:P,alt:"HifiPlanet",className:"h-16 w-auto sm:h-20"}),e.jsxs("div",{className:"w-full max-w-md rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900",children:[n==="loading"&&e.jsx("p",{className:"text-center text-sm text-neutral-400",children:"Lädt…"}),n==="locked"&&e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Bereits eingerichtet"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Diese Seite wurde bereits vollständig eingerichtet. Der Assistent ist deshalb gesperrt."}),e.jsx(k,{to:"/admin/login",className:"text-sm font-medium text-brand-600 hover:underline dark:text-brand-400",children:"Zum Login"})]}),["database","schema","admin"].includes(n)&&e.jsx("div",{className:"mb-6 flex items-center justify-center gap-2",children:g.map((t,s)=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:`flex h-6 w-6 items-center justify-center rounded-full text-xs font-semibold ${sv(t.target.value),required:!0,autoFocus:!0,className:d})]}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Prüfe…":"Weiter"})]}),n==="database"&&e.jsxs("form",{onSubmit:S,children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Datenbank-Zugangsdaten"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Trage die Zugangsdaten der Datenbank auf diesem Server ein. Die Verbindung wird vor dem Speichern getestet."}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Host *"}),e.jsx("input",{required:!0,value:a.host,onChange:t=>h({...a,host:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Datenbankname *"}),e.jsx("input",{required:!0,value:a.name,onChange:t=>h({...a,name:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Benutzer *"}),e.jsx("input",{required:!0,value:a.user,onChange:t=>h({...a,user:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Passwort"}),e.jsx("input",{type:"password",value:a.password,onChange:t=>h({...a,password:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:i,children:"Zeichensatz"}),e.jsx("input",{value:a.charset,onChange:t=>h({...a,charset:t.target.value}),className:d})]}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Teste Verbindung…":"Verbindung testen & speichern"})]}),n==="schema"&&e.jsxs("div",{children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Datenbankstruktur"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Die Datenbankverbindung funktioniert. Jetzt legen wir die benötigten Tabellen an."}),w&&e.jsx("ul",{className:"mb-4 space-y-1 rounded-md bg-neutral-50 p-3 text-sm text-neutral-700 dark:bg-neutral-800 dark:text-neutral-300",children:w.map((t,s)=>e.jsx("li",{children:t},s))}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"button",onClick:A,disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Richte ein…":"Datenbankstruktur einrichten"})]}),n==="admin"&&e.jsxs("form",{onSubmit:C,children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Erster Admin-Account"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Lege den ersten Super-Admin-Account an, mit dem du dich anschließend einloggen kannst."}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Benutzername"}),e.jsx("input",{required:!0,autoFocus:!0,value:l.username,onChange:t=>p({...l,username:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-3",children:[e.jsx("label",{className:i,children:"Passwort"}),e.jsx("input",{type:"password",required:!0,minLength:8,value:l.password,onChange:t=>p({...l,password:t.target.value}),className:d})]}),e.jsxs("div",{className:"mb-6",children:[e.jsx("label",{className:i,children:"Passwort wiederholen"}),e.jsx("input",{type:"password",required:!0,minLength:8,value:l.password_confirmation,onChange:t=>p({...l,password_confirmation:t.target.value}),className:d})]}),m&&e.jsx("p",{className:"mb-4 text-sm text-red-600",children:m}),e.jsx("button",{type:"submit",disabled:u,className:"w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-60",children:u?"Lege an…":"Admin-Account anlegen"})]}),n==="done"&&e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:"Fertig!"}),e.jsx("p",{className:"mb-6 text-sm text-neutral-500 dark:text-neutral-400",children:"Die Ersteinrichtung ist abgeschlossen. Du kannst dich jetzt mit deinem neuen Admin-Account anmelden."}),e.jsx(k,{to:"/admin/login",className:"inline-block w-full rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white hover:bg-brand-600",children:"Zum Login"})]})]})]})}export{z as default};
diff --git a/hifi/assets/SortableList-DwfJpzeR.js b/hifi/assets/SortableList-fUokp5Er.js
similarity index 89%
rename from hifi/assets/SortableList-DwfJpzeR.js
rename to hifi/assets/SortableList-fUokp5Er.js
index cab2c56..6399081 100644
--- a/hifi/assets/SortableList-DwfJpzeR.js
+++ b/hifi/assets/SortableList-fUokp5Er.js
@@ -1 +1 @@
-import{j as o,c as x}from"./index-BlspSYV0.js";import{u as p,a as f,D as m,c as v,S as y,r as j,v as C,b as R,s as w,K as D,T as N,P as T,d as E,C as G}from"./sortable.esm-D1g5h7xA.js";import{G as I}from"./grip-vertical-Bv_4pkjN.js";function P({items:t,onReorder:s,children:n,as:e="ul",className:d="",disabled:i=!1}){const l=p(f(T,{activationConstraint:{distance:4}}),f(N,{activationConstraint:{delay:150,tolerance:6}}),f(D,{coordinateGetter:w})),c=({active:r,over:a})=>{if(!a||r.id===a.id)return;const h=t.findIndex(b=>b.id===r.id),S=t.findIndex(b=>b.id===a.id);s(R(t,h,S))},u=e==="tbody"?"tbody":e==="grid"?"div":"ul",g=e==="tbody"?"tr":e==="grid"?"div":"li";return o.jsx(m,{sensors:l,collisionDetection:v,onDragEnd:c,children:o.jsx(y,{items:t.map(r=>r.id),strategy:e==="grid"?j:C,disabled:i,children:o.jsx(u,{className:d,children:t.map(r=>o.jsx(K,{id:r.id,tag:g,disabled:i,children:a=>n(r,a)},r.id))})})})}function K({id:t,tag:s,disabled:n,children:e}){const{attributes:d,listeners:i,setNodeRef:l,setActivatorNodeRef:c,transform:u,transition:g,isDragging:r}=E({id:t,disabled:n}),a=n?null:o.jsx("button",{type:"button",ref:c,...d,...i,title:"Ziehen, um die Reihenfolge zu ändern","aria-label":"Reihenfolge ändern",className:"cursor-grab touch-none rounded p-1 text-neutral-400 hover:bg-neutral-100 hover:text-neutral-600 active:cursor-grabbing dark:hover:bg-neutral-800",children:o.jsx(I,{className:"h-4 w-4"})});return o.jsx(s,{ref:l,style:{transform:G.Translate.toString(u),transition:g,position:"relative",zIndex:r?10:void 0},className:r?"bg-white shadow-lg ring-1 ring-brand-500 dark:bg-neutral-900":void 0,children:e(a)})}async function A(t,s){return await x.put(`/reorder/${t}`,{ids:s.map(n=>n.id)}),s.map((n,e)=>({...n,sort_order:(e+1)*10}))}export{P as S,A as s};
+import{j as o,c as x}from"./index-ByR_n0g5.js";import{u as p,a as f,D as m,c as v,S as y,r as j,v as C,b as R,s as w,K as D,T as N,P as T,d as E,C as G}from"./sortable.esm-feaRoI7N.js";import{G as I}from"./grip-vertical-B-w3JIIY.js";function P({items:t,onReorder:s,children:n,as:e="ul",className:d="",disabled:i=!1}){const l=p(f(T,{activationConstraint:{distance:4}}),f(N,{activationConstraint:{delay:150,tolerance:6}}),f(D,{coordinateGetter:w})),c=({active:r,over:a})=>{if(!a||r.id===a.id)return;const h=t.findIndex(b=>b.id===r.id),S=t.findIndex(b=>b.id===a.id);s(R(t,h,S))},u=e==="tbody"?"tbody":e==="grid"?"div":"ul",g=e==="tbody"?"tr":e==="grid"?"div":"li";return o.jsx(m,{sensors:l,collisionDetection:v,onDragEnd:c,children:o.jsx(y,{items:t.map(r=>r.id),strategy:e==="grid"?j:C,disabled:i,children:o.jsx(u,{className:d,children:t.map(r=>o.jsx(K,{id:r.id,tag:g,disabled:i,children:a=>n(r,a)},r.id))})})})}function K({id:t,tag:s,disabled:n,children:e}){const{attributes:d,listeners:i,setNodeRef:l,setActivatorNodeRef:c,transform:u,transition:g,isDragging:r}=E({id:t,disabled:n}),a=n?null:o.jsx("button",{type:"button",ref:c,...d,...i,title:"Ziehen, um die Reihenfolge zu ändern","aria-label":"Reihenfolge ändern",className:"cursor-grab touch-none rounded p-1 text-neutral-400 hover:bg-neutral-100 hover:text-neutral-600 active:cursor-grabbing dark:hover:bg-neutral-800",children:o.jsx(I,{className:"h-4 w-4"})});return o.jsx(s,{ref:l,style:{transform:G.Translate.toString(u),transition:g,position:"relative",zIndex:r?10:void 0},className:r?"bg-white shadow-lg ring-1 ring-brand-500 dark:bg-neutral-900":void 0,children:e(a)})}async function A(t,s){return await x.put(`/reorder/${t}`,{ids:s.map(n=>n.id)}),s.map((n,e)=>({...n,sort_order:(e+1)*10}))}export{P as S,A as s};
diff --git a/hifi/assets/TextStyleWidget-xhHRXR-m.js b/hifi/assets/TextStyleWidget-DgrYcrXW.js
similarity index 97%
rename from hifi/assets/TextStyleWidget-xhHRXR-m.js
rename to hifi/assets/TextStyleWidget-DgrYcrXW.js
index 621b1b0..ccae9c5 100644
--- a/hifi/assets/TextStyleWidget-xhHRXR-m.js
+++ b/hifi/assets/TextStyleWidget-DgrYcrXW.js
@@ -1 +1 @@
-import{z as g,r as l,c as x,j as t}from"./index-BlspSYV0.js";const y=[{label:"Standard",value:""},{label:"S (14px)",value:"14px"},{label:"M (16px)",value:"16px"},{label:"L (18px)",value:"18px"},{label:"XL (20px)",value:"20px"},{label:"XXL (24px)",value:"24px"},{label:"XXXL (28px)",value:"28px"},{label:"Groß (36px)",value:"36px"},{label:"Riesig (48px)",value:"48px"}],s={font_family:"",font_size:"",color:""};function k({fieldKey:o,previewText:p="Beispieltext",label:c="Stil"}){const b=g(),[a,n]=l.useState(s),[m,u]=l.useState(!0),[d,i]=l.useState("");l.useEffect(()=>{u(!0),x.get(`/text-styles/one?key=${encodeURIComponent(o)}`).then(e=>n({font_family:e.font_family||"",font_size:e.font_size||"",color:e.color||""})).catch(()=>n(s)).finally(()=>u(!1))},[o]);const r=async e=>{n(e),i("");try{await x.put("/text-styles",{field_key:o,...e})}catch(v){i(v.message)}};if(m)return null;const f={fontFamily:a.font_family||void 0,fontSize:a.font_size||void 0,color:a.color||void 0};return t.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2 rounded-md border border-neutral-200 bg-neutral-50 p-2 dark:border-neutral-700 dark:bg-neutral-800/50",children:[t.jsx("span",{className:"text-xs font-medium uppercase tracking-wide text-neutral-400",children:c}),t.jsx("select",{value:a.font_family,onChange:e=>r({...a,font_family:e.target.value}),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-xs dark:border-neutral-700 dark:bg-neutral-900",children:b.map(e=>t.jsx("option",{value:e.value,children:e.label},e.label))}),t.jsx("select",{value:a.font_size,onChange:e=>r({...a,font_size:e.target.value}),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-xs dark:border-neutral-700 dark:bg-neutral-900",children:y.map(e=>t.jsx("option",{value:e.value,children:e.label},e.label))}),t.jsx("input",{type:"color",value:a.color||"#000000",onChange:e=>r({...a,color:e.target.value}),className:"h-7 w-9 cursor-pointer rounded border border-neutral-300 bg-white p-0.5 dark:border-neutral-700 dark:bg-neutral-900",title:"Textfarbe"}),t.jsx("button",{type:"button",onClick:()=>r(s),className:"rounded-md border border-neutral-300 px-2 py-1 text-xs text-neutral-500 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-400 dark:hover:bg-neutral-700",children:"Zurücksetzen"}),t.jsx("span",{className:"ml-1 rounded px-2 py-1 text-sm",style:f,children:p}),d&&t.jsx("span",{className:"text-xs text-red-600",children:d})]})}export{k as T};
+import{F as g,r as l,c as x,j as t}from"./index-ByR_n0g5.js";const y=[{label:"Standard",value:""},{label:"S (14px)",value:"14px"},{label:"M (16px)",value:"16px"},{label:"L (18px)",value:"18px"},{label:"XL (20px)",value:"20px"},{label:"XXL (24px)",value:"24px"},{label:"XXXL (28px)",value:"28px"},{label:"Groß (36px)",value:"36px"},{label:"Riesig (48px)",value:"48px"}],s={font_family:"",font_size:"",color:""};function k({fieldKey:o,previewText:p="Beispieltext",label:c="Stil"}){const b=g(),[a,n]=l.useState(s),[m,u]=l.useState(!0),[d,i]=l.useState("");l.useEffect(()=>{u(!0),x.get(`/text-styles/one?key=${encodeURIComponent(o)}`).then(e=>n({font_family:e.font_family||"",font_size:e.font_size||"",color:e.color||""})).catch(()=>n(s)).finally(()=>u(!1))},[o]);const r=async e=>{n(e),i("");try{await x.put("/text-styles",{field_key:o,...e})}catch(v){i(v.message)}};if(m)return null;const f={fontFamily:a.font_family||void 0,fontSize:a.font_size||void 0,color:a.color||void 0};return t.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2 rounded-md border border-neutral-200 bg-neutral-50 p-2 dark:border-neutral-700 dark:bg-neutral-800/50",children:[t.jsx("span",{className:"text-xs font-medium uppercase tracking-wide text-neutral-400",children:c}),t.jsx("select",{value:a.font_family,onChange:e=>r({...a,font_family:e.target.value}),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-xs dark:border-neutral-700 dark:bg-neutral-900",children:b.map(e=>t.jsx("option",{value:e.value,children:e.label},e.label))}),t.jsx("select",{value:a.font_size,onChange:e=>r({...a,font_size:e.target.value}),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-xs dark:border-neutral-700 dark:bg-neutral-900",children:y.map(e=>t.jsx("option",{value:e.value,children:e.label},e.label))}),t.jsx("input",{type:"color",value:a.color||"#000000",onChange:e=>r({...a,color:e.target.value}),className:"h-7 w-9 cursor-pointer rounded border border-neutral-300 bg-white p-0.5 dark:border-neutral-700 dark:bg-neutral-900",title:"Textfarbe"}),t.jsx("button",{type:"button",onClick:()=>r(s),className:"rounded-md border border-neutral-300 px-2 py-1 text-xs text-neutral-500 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-400 dark:hover:bg-neutral-700",children:"Zurücksetzen"}),t.jsx("span",{className:"ml-1 rounded px-2 py-1 text-sm",style:f,children:p}),d&&t.jsx("span",{className:"text-xs text-red-600",children:d})]})}export{k as T};
diff --git a/hifi/assets/UpdateSettings-JQfCGU1a.js b/hifi/assets/UpdateSettings-DwMfiCHS.js
similarity index 99%
rename from hifi/assets/UpdateSettings-JQfCGU1a.js
rename to hifi/assets/UpdateSettings-DwMfiCHS.js
index 449da51..2faf25c 100644
--- a/hifi/assets/UpdateSettings-JQfCGU1a.js
+++ b/hifi/assets/UpdateSettings-DwMfiCHS.js
@@ -1 +1 @@
-import{r,j as e,A as M,c as i}from"./index-BlspSYV0.js";const O={download:"Herunterladen",extract:"Entpacken",backup:"Sichern",apply:"Installieren"};function I(a){return a?a.slice(0,7):"–"}const V={5:"alle 5 Minuten",15:"alle 15 Minuten",60:"jede Stunde",360:"alle 6 Stunden",1440:"einmal am Tag"};function R(a){return a?new Date(a).toLocaleString("de-DE"):"–"}function G(){const[a,b]=r.useState(null),[l,S]=r.useState(null),[$,_]=r.useState(!0),[B,A]=r.useState(""),[h,E]=r.useState([]),[g,L]=r.useState(!1),[x,C]=r.useState(!1),[u,o]=r.useState({download:null,extract:null,backup:null,apply:null}),[k,m]=r.useState(""),[j,f]=r.useState(null),[U,D]=r.useState(!1),N=()=>{_(!0),A(""),Promise.all([i.get("/settings/update-status"),i.get("/settings/update-check")]).then(([t,n])=>{b(t),S(n)}).catch(t=>A(t.message)).finally(()=>_(!1)),i.get("/settings/update-branches").then(t=>E(t.branches||[])).catch(()=>E([]))},z=async t=>{L(!0),m(""),f(null);try{const n=await i.post("/settings/update-branch",{branch:t});S(n),b(s=>s&&{...s,branch:t})}catch(n){m(n.message)}finally{L(!1)}};r.useEffect(N,[]);const P=async t=>{const n=(a==null?void 0:a.auto)||{};D(!0),m("");try{const s=await i.post("/settings/update-auto",{enabled:n.enabled,interval:n.interval,...t});b(s)}catch(s){m(s.message)}finally{D(!1)}},F=async()=>{C(!0),m(""),f(null),o({download:"busy",extract:null,backup:null,apply:null});try{const n=(await i.post("/settings/update-download",{})).run_id;o(d=>({...d,download:"done",extract:"busy"})),await i.post("/settings/update-extract",{run_id:n}),o(d=>({...d,extract:"done",backup:"busy"})),await i.post("/settings/update-backup",{}),o(d=>({...d,backup:"done",apply:"busy"}));const s=await i.post("/settings/update-apply",{run_id:n});o(d=>({...d,apply:"done"})),f(s.log||[]),N()}catch(t){o(n=>{const s=Object.keys(n).find(d=>n[d]==="busy");return s?{...n,[s]:"error"}:n}),m(t.message)}finally{C(!1)}};if($)return e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"});const w=(a==null?void 0:a.capabilities)||{},v=w.zip?w.http_client?w.writable?null:"Das Website-Verzeichnis ist für PHP nicht beschreibbar - bitte Dateiberechtigungen prüfen.":"Diese Funktion benötigt ausgehende HTTPS-Verbindungen (curl oder allow_url_fopen), die auf diesem Server aktuell nicht verfügbar sind.":'Diese Funktion benötigt die PHP-Erweiterung "zip", die auf diesem Server aktuell nicht aktiviert ist. Bitte beim Hoster aktivieren lassen.',y=l==null?void 0:l.update_available,c=(a==null?void 0:a.branch)||"main",p=a==null?void 0:a.deployed_branch,H=!!p&&p!==c,T=h.some(t=>t.name===c)?h:[{name:c},...h];return e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Updates aus Git"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Zieht den aktuellen Stand direkt vom Code-Repository und installiert ihn hier - ohne manuellen FTP-Upload. Entweder per Klick auf "Update installieren" oder automatisch, wenn du unten "Automatisch installieren" einschaltest.'}),B&&e.jsx("p",{className:"mb-3 text-sm text-red-600",children:B}),v?e.jsx("p",{className:"rounded-md bg-amber-50 p-3 text-sm text-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:v}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{htmlFor:"update-branch",className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-200",children:"Branch"}),e.jsx("select",{id:"update-branch",value:c,onChange:t=>z(t.target.value),disabled:x||g,className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm disabled:opacity-50 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-100",children:T.map(t=>e.jsxs("option",{value:t.name,children:[t.name,t.message?` – ${t.message}`:""]},t.name))}),e.jsx("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:"Von diesem Branch wird installiert. Zum Zurückwechseln einfach wieder „main“ wählen und installieren – vorher wird wie immer eine Sicherung angelegt."})]}),e.jsxs("div",{className:"mb-4 grid grid-cols-2 gap-3 text-sm",children:[e.jsxs("div",{className:"rounded-md bg-neutral-50 p-3 dark:bg-neutral-800/50",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-neutral-400",children:"Installiert"}),e.jsxs("p",{className:"font-mono text-neutral-800 dark:text-neutral-100",children:[I(a==null?void 0:a.deployed_sha),p&&e.jsxs("span",{className:"ml-2 font-sans text-xs text-neutral-400",children:["(",p,")"]})]}),e.jsx("p",{className:"text-xs text-neutral-400",children:R(a==null?void 0:a.deployed_at)})]}),e.jsxs("div",{className:"rounded-md bg-neutral-50 p-3 dark:bg-neutral-800/50",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-neutral-400",children:"Neuester Stand"}),e.jsxs("p",{className:"font-mono text-neutral-800 dark:text-neutral-100",children:[I(l==null?void 0:l.latest_sha),e.jsxs("span",{className:"ml-2 font-sans text-xs text-neutral-400",children:["(",c,")"]})]}),(l==null?void 0:l.latest_message)&&e.jsx("p",{className:"truncate text-xs text-neutral-400",title:l.latest_message,children:l.latest_message})]})]}),H&&y?e.jsxs("p",{className:"mb-3 text-sm font-medium text-brand-600 dark:text-brand-400",children:["Installiert ist „",p,"“ – mit „Update installieren“ wechselst du auf „",c,"“."]}):y?e.jsx("p",{className:"mb-3 text-sm font-medium text-brand-600 dark:text-brand-400",children:"Update verfügbar."}):e.jsx("p",{className:"mb-3 text-sm text-neutral-500 dark:text-neutral-400",children:"Bereits auf dem neuesten Stand."}),e.jsxs("div",{className:"mb-3 flex gap-2",children:[e.jsx("button",{type:"button",onClick:N,disabled:x||g,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:"Nach Updates suchen"}),e.jsx("button",{type:"button",onClick:F,disabled:x||g||!y,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:x?"Installiere…":H?`Auf „${c}“ wechseln`:"Update installieren"})]}),(x||k)&&e.jsx("ul",{className:"mb-3 space-y-1 text-sm",children:Object.entries(O).map(([t,n])=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("span",{className:u[t]==="done"?"text-green-600 dark:text-green-400":u[t]==="error"?"text-red-600":u[t]==="busy"?"text-brand-600 dark:text-brand-400":"text-neutral-300 dark:text-neutral-600",children:u[t]==="done"?"✓":u[t]==="error"?"✕":u[t]==="busy"?"…":"○"}),n]},t))}),k&&e.jsx("p",{className:"text-sm text-red-600",children:k}),j&&e.jsxs("div",{className:"mt-3 rounded-md bg-green-50 p-3 text-sm text-green-800 dark:bg-green-900/20 dark:text-green-300",children:[e.jsx("p",{className:"mb-1 font-semibold",children:"Update installiert."}),j.length>0&&e.jsxs("details",{children:[e.jsx("summary",{className:"cursor-pointer text-xs",children:"Details anzeigen"}),e.jsx("ul",{className:"mt-2 list-disc pl-5 text-xs",children:j.map((t,n)=>e.jsx("li",{children:t},n))})]})]})]})]}),!v&&(a==null?void 0:a.auto)&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:"Automatisch installieren"}),e.jsxs("label",{className:"relative inline-flex cursor-pointer items-center",children:[e.jsx("input",{type:"checkbox",checked:!!a.auto.enabled,onChange:t=>P({enabled:t.target.checked}),disabled:U,className:"peer sr-only"}),e.jsx("div",{className:"h-6 w-11 rounded-full bg-neutral-200 transition peer-checked:bg-brand-500 dark:bg-neutral-700"}),e.jsx("div",{className:"absolute left-1 top-1 h-4 w-4 rounded-full bg-white transition peer-checked:translate-x-5"})]})]}),e.jsxs("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:["Neue Stände vom Branch „",c,"“ werden ohne Klick installiert – mit derselben Sicherung vorher wie beim manuellen Update. Gilt nur für diesen Server."]}),e.jsx("label",{htmlFor:"update-interval",className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-200",children:"Nach Updates schauen"}),e.jsx("select",{id:"update-interval",value:a.auto.interval,onChange:t=>P({interval:Number(t.target.value)}),disabled:U,className:"mb-4 w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm disabled:opacity-50 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-100",children:(a.auto.intervals||[]).map(t=>e.jsx("option",{value:t,children:V[t]||`alle ${t} Minuten`},t))}),a.auto.last_result&&e.jsxs("div",{className:`mb-4 rounded-md p-3 text-sm ${a.auto.last_result.ok?"bg-neutral-50 text-neutral-700 dark:bg-neutral-800/50 dark:text-neutral-200":"bg-red-50 text-red-700 dark:bg-red-900/20 dark:text-red-300"}`,children:[e.jsxs("p",{className:"text-xs uppercase tracking-wide text-neutral-400",children:["Letzter automatischer Lauf · ",R(a.auto.last_result.at)," · ",a.auto.last_result.trigger]}),e.jsx("p",{children:a.auto.last_result.message})]}),a.auto.enabled&&e.jsxs("details",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:[e.jsx("summary",{className:"cursor-pointer",children:a.auto.background_supported?"Optional: Cronjob beim Hoster einrichten":"Wichtig: Cronjob beim Hoster einrichten"}),e.jsxs("div",{className:"mt-2 space-y-2",children:[e.jsx("p",{children:a.auto.background_supported?"Die Prüfung läuft nebenbei, sobald jemand die Seite aufruft. Soll sie auch ohne Besucher pünktlich laufen, kannst du beim Hoster einen Cronjob mit dieser Adresse anlegen:":"Dieser Server kann Updates nicht nebenbei bei Seitenaufrufen einspielen. Lege beim Hoster einen Cronjob an, der diese Adresse aufruft (z. B. alle 15 Minuten):"}),e.jsx("code",{className:"block break-all rounded bg-neutral-100 p-2 text-xs dark:bg-neutral-800",children:`${window.location.origin}${M}/update-cron?token=${a.auto.cron_token}`}),e.jsx("p",{className:"text-xs",children:"Die Adresse enthält einen geheimen Schlüssel – nicht weitergeben."})]})]})]})]})}export{G as default};
+import{r,j as e,A as M,c as i}from"./index-ByR_n0g5.js";const O={download:"Herunterladen",extract:"Entpacken",backup:"Sichern",apply:"Installieren"};function I(a){return a?a.slice(0,7):"–"}const V={5:"alle 5 Minuten",15:"alle 15 Minuten",60:"jede Stunde",360:"alle 6 Stunden",1440:"einmal am Tag"};function R(a){return a?new Date(a).toLocaleString("de-DE"):"–"}function G(){const[a,b]=r.useState(null),[l,S]=r.useState(null),[$,_]=r.useState(!0),[B,A]=r.useState(""),[h,E]=r.useState([]),[g,L]=r.useState(!1),[x,C]=r.useState(!1),[u,o]=r.useState({download:null,extract:null,backup:null,apply:null}),[k,m]=r.useState(""),[j,f]=r.useState(null),[U,D]=r.useState(!1),N=()=>{_(!0),A(""),Promise.all([i.get("/settings/update-status"),i.get("/settings/update-check")]).then(([t,n])=>{b(t),S(n)}).catch(t=>A(t.message)).finally(()=>_(!1)),i.get("/settings/update-branches").then(t=>E(t.branches||[])).catch(()=>E([]))},z=async t=>{L(!0),m(""),f(null);try{const n=await i.post("/settings/update-branch",{branch:t});S(n),b(s=>s&&{...s,branch:t})}catch(n){m(n.message)}finally{L(!1)}};r.useEffect(N,[]);const P=async t=>{const n=(a==null?void 0:a.auto)||{};D(!0),m("");try{const s=await i.post("/settings/update-auto",{enabled:n.enabled,interval:n.interval,...t});b(s)}catch(s){m(s.message)}finally{D(!1)}},F=async()=>{C(!0),m(""),f(null),o({download:"busy",extract:null,backup:null,apply:null});try{const n=(await i.post("/settings/update-download",{})).run_id;o(d=>({...d,download:"done",extract:"busy"})),await i.post("/settings/update-extract",{run_id:n}),o(d=>({...d,extract:"done",backup:"busy"})),await i.post("/settings/update-backup",{}),o(d=>({...d,backup:"done",apply:"busy"}));const s=await i.post("/settings/update-apply",{run_id:n});o(d=>({...d,apply:"done"})),f(s.log||[]),N()}catch(t){o(n=>{const s=Object.keys(n).find(d=>n[d]==="busy");return s?{...n,[s]:"error"}:n}),m(t.message)}finally{C(!1)}};if($)return e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"});const w=(a==null?void 0:a.capabilities)||{},v=w.zip?w.http_client?w.writable?null:"Das Website-Verzeichnis ist für PHP nicht beschreibbar - bitte Dateiberechtigungen prüfen.":"Diese Funktion benötigt ausgehende HTTPS-Verbindungen (curl oder allow_url_fopen), die auf diesem Server aktuell nicht verfügbar sind.":'Diese Funktion benötigt die PHP-Erweiterung "zip", die auf diesem Server aktuell nicht aktiviert ist. Bitte beim Hoster aktivieren lassen.',y=l==null?void 0:l.update_available,c=(a==null?void 0:a.branch)||"main",p=a==null?void 0:a.deployed_branch,H=!!p&&p!==c,T=h.some(t=>t.name===c)?h:[{name:c},...h];return e.jsxs("div",{className:"max-w-2xl space-y-6",children:[e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Updates aus Git"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Zieht den aktuellen Stand direkt vom Code-Repository und installiert ihn hier - ohne manuellen FTP-Upload. Entweder per Klick auf "Update installieren" oder automatisch, wenn du unten "Automatisch installieren" einschaltest.'}),B&&e.jsx("p",{className:"mb-3 text-sm text-red-600",children:B}),v?e.jsx("p",{className:"rounded-md bg-amber-50 p-3 text-sm text-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:v}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{htmlFor:"update-branch",className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-200",children:"Branch"}),e.jsx("select",{id:"update-branch",value:c,onChange:t=>z(t.target.value),disabled:x||g,className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm disabled:opacity-50 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-100",children:T.map(t=>e.jsxs("option",{value:t.name,children:[t.name,t.message?` – ${t.message}`:""]},t.name))}),e.jsx("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:"Von diesem Branch wird installiert. Zum Zurückwechseln einfach wieder „main“ wählen und installieren – vorher wird wie immer eine Sicherung angelegt."})]}),e.jsxs("div",{className:"mb-4 grid grid-cols-2 gap-3 text-sm",children:[e.jsxs("div",{className:"rounded-md bg-neutral-50 p-3 dark:bg-neutral-800/50",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-neutral-400",children:"Installiert"}),e.jsxs("p",{className:"font-mono text-neutral-800 dark:text-neutral-100",children:[I(a==null?void 0:a.deployed_sha),p&&e.jsxs("span",{className:"ml-2 font-sans text-xs text-neutral-400",children:["(",p,")"]})]}),e.jsx("p",{className:"text-xs text-neutral-400",children:R(a==null?void 0:a.deployed_at)})]}),e.jsxs("div",{className:"rounded-md bg-neutral-50 p-3 dark:bg-neutral-800/50",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-neutral-400",children:"Neuester Stand"}),e.jsxs("p",{className:"font-mono text-neutral-800 dark:text-neutral-100",children:[I(l==null?void 0:l.latest_sha),e.jsxs("span",{className:"ml-2 font-sans text-xs text-neutral-400",children:["(",c,")"]})]}),(l==null?void 0:l.latest_message)&&e.jsx("p",{className:"truncate text-xs text-neutral-400",title:l.latest_message,children:l.latest_message})]})]}),H&&y?e.jsxs("p",{className:"mb-3 text-sm font-medium text-brand-600 dark:text-brand-400",children:["Installiert ist „",p,"“ – mit „Update installieren“ wechselst du auf „",c,"“."]}):y?e.jsx("p",{className:"mb-3 text-sm font-medium text-brand-600 dark:text-brand-400",children:"Update verfügbar."}):e.jsx("p",{className:"mb-3 text-sm text-neutral-500 dark:text-neutral-400",children:"Bereits auf dem neuesten Stand."}),e.jsxs("div",{className:"mb-3 flex gap-2",children:[e.jsx("button",{type:"button",onClick:N,disabled:x||g,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm font-medium hover:bg-neutral-50 disabled:opacity-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:"Nach Updates suchen"}),e.jsx("button",{type:"button",onClick:F,disabled:x||g||!y,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:x?"Installiere…":H?`Auf „${c}“ wechseln`:"Update installieren"})]}),(x||k)&&e.jsx("ul",{className:"mb-3 space-y-1 text-sm",children:Object.entries(O).map(([t,n])=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("span",{className:u[t]==="done"?"text-green-600 dark:text-green-400":u[t]==="error"?"text-red-600":u[t]==="busy"?"text-brand-600 dark:text-brand-400":"text-neutral-300 dark:text-neutral-600",children:u[t]==="done"?"✓":u[t]==="error"?"✕":u[t]==="busy"?"…":"○"}),n]},t))}),k&&e.jsx("p",{className:"text-sm text-red-600",children:k}),j&&e.jsxs("div",{className:"mt-3 rounded-md bg-green-50 p-3 text-sm text-green-800 dark:bg-green-900/20 dark:text-green-300",children:[e.jsx("p",{className:"mb-1 font-semibold",children:"Update installiert."}),j.length>0&&e.jsxs("details",{children:[e.jsx("summary",{className:"cursor-pointer text-xs",children:"Details anzeigen"}),e.jsx("ul",{className:"mt-2 list-disc pl-5 text-xs",children:j.map((t,n)=>e.jsx("li",{children:t},n))})]})]})]})]}),!v&&(a==null?void 0:a.auto)&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between gap-3",children:[e.jsx("h2",{className:"font-semibold text-neutral-900 dark:text-white",children:"Automatisch installieren"}),e.jsxs("label",{className:"relative inline-flex cursor-pointer items-center",children:[e.jsx("input",{type:"checkbox",checked:!!a.auto.enabled,onChange:t=>P({enabled:t.target.checked}),disabled:U,className:"peer sr-only"}),e.jsx("div",{className:"h-6 w-11 rounded-full bg-neutral-200 transition peer-checked:bg-brand-500 dark:bg-neutral-700"}),e.jsx("div",{className:"absolute left-1 top-1 h-4 w-4 rounded-full bg-white transition peer-checked:translate-x-5"})]})]}),e.jsxs("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:["Neue Stände vom Branch „",c,"“ werden ohne Klick installiert – mit derselben Sicherung vorher wie beim manuellen Update. Gilt nur für diesen Server."]}),e.jsx("label",{htmlFor:"update-interval",className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-200",children:"Nach Updates schauen"}),e.jsx("select",{id:"update-interval",value:a.auto.interval,onChange:t=>P({interval:Number(t.target.value)}),disabled:U,className:"mb-4 w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm disabled:opacity-50 dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-100",children:(a.auto.intervals||[]).map(t=>e.jsx("option",{value:t,children:V[t]||`alle ${t} Minuten`},t))}),a.auto.last_result&&e.jsxs("div",{className:`mb-4 rounded-md p-3 text-sm ${a.auto.last_result.ok?"bg-neutral-50 text-neutral-700 dark:bg-neutral-800/50 dark:text-neutral-200":"bg-red-50 text-red-700 dark:bg-red-900/20 dark:text-red-300"}`,children:[e.jsxs("p",{className:"text-xs uppercase tracking-wide text-neutral-400",children:["Letzter automatischer Lauf · ",R(a.auto.last_result.at)," · ",a.auto.last_result.trigger]}),e.jsx("p",{children:a.auto.last_result.message})]}),a.auto.enabled&&e.jsxs("details",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:[e.jsx("summary",{className:"cursor-pointer",children:a.auto.background_supported?"Optional: Cronjob beim Hoster einrichten":"Wichtig: Cronjob beim Hoster einrichten"}),e.jsxs("div",{className:"mt-2 space-y-2",children:[e.jsx("p",{children:a.auto.background_supported?"Die Prüfung läuft nebenbei, sobald jemand die Seite aufruft. Soll sie auch ohne Besucher pünktlich laufen, kannst du beim Hoster einen Cronjob mit dieser Adresse anlegen:":"Dieser Server kann Updates nicht nebenbei bei Seitenaufrufen einspielen. Lege beim Hoster einen Cronjob an, der diese Adresse aufruft (z. B. alle 15 Minuten):"}),e.jsx("code",{className:"block break-all rounded bg-neutral-100 p-2 text-xs dark:bg-neutral-800",children:`${window.location.origin}${M}/update-cron?token=${a.auto.cron_token}`}),e.jsx("p",{className:"text-xs",children:"Die Adresse enthält einen geheimen Schlüssel – nicht weitergeben."})]})]})]})]})}export{G as default};
diff --git a/hifi/assets/VehicleCatalogDialog-Db4N0Sxf.js b/hifi/assets/VehicleCatalogDialog-Db4N0Sxf.js
new file mode 100644
index 0000000..a44c303
--- /dev/null
+++ b/hifi/assets/VehicleCatalogDialog-Db4N0Sxf.js
@@ -0,0 +1 @@
+import{q as L,r as i,t as F,c as y,j as s,X as O,v as K,C as Q,w as W}from"./index-ByR_n0g5.js";const v=c=>c.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),h=(c,x,m)=>`${c} ${c===1?x:m}`;function G({open:c,onClose:x,onImported:m}){const j=L(),k=i.useRef(null),[r,N]=i.useState(null),[f,M]=i.useState(""),[p,$]=i.useState(""),[B,S]=i.useState(()=>new Set),[u,g]=i.useState(()=>new Map),[z,C]=i.useState(!1);F(k,c,x),i.useEffect(()=>{c&&(N(null),M(""),g(new Map),S(new Set),$(""),y.get("/vehicle-catalog").then(N).catch(e=>M(e.message)))},[c]);const w=i.useMemo(()=>{if(!r)return[];const e=v(p.trim());return r.map(t=>{const a=t.models.filter(d=>!d.exists);if(!e||v(t.brand).includes(e))return{...t,newModels:a,visibleModels:t.models};const l=t.models.filter(d=>v(`${t.brand} ${d.name}`).includes(e));return l.length?{...t,newModels:a,visibleModels:l}:null}).filter(Boolean)},[r,p]),b=i.useMemo(()=>{let e=0,t=0;return u.forEach((a,l)=>{e+=a.size,a.size&&(r!=null&&r.find(d=>d.brand===l&&!d.exists))&&(t+=1)}),{models:e,newBrands:t}},[u,r]),V=i.useMemo(()=>(r||[]).reduce((e,t)=>e+t.models.filter(a=>!a.exists).length,0),[r]),E=(e,t)=>{g(a=>{const l=new Map(a);return t.size?l.set(e,t):l.delete(e),l})},A=e=>{const t=u.get(e.brand)||new Set,a=e.visibleModels.filter(o=>!o.exists).map(o=>o.name),l=a.every(o=>t.has(o)),d=new Set(t);a.forEach(o=>l?d.delete(o):d.add(o)),E(e.brand,d)},D=(e,t)=>{const a=new Set(u.get(e)||[]);a.has(t)?a.delete(t):a.add(t),E(e,a)},R=e=>{S(t=>{const a=new Set(t);return a.has(e)?a.delete(e):a.add(e),a})},T=()=>{const e=new Map(u);w.forEach(t=>{const a=new Set(e.get(t.brand)||[]);t.visibleModels.filter(l=>!l.exists).forEach(l=>a.add(l.name)),a.size&&e.set(t.brand,a)}),g(e)},q=async()=>{C(!0);try{const e=[...u].map(([a,l])=>({brand:a,models:[...l]})),t=await y.post("/vehicle-catalog/import",{items:e});j.success(`${h(t.models,"Modell","Modelle")}${t.brands?` und ${h(t.brands,"Marke","Marken")}`:""} angelegt.`+(t.skipped?` ${h(t.skipped,"Modell war","Modelle waren")} schon vorhanden.`:"")),m==null||m(),x()}catch(e){j.error(`Laden fehlgeschlagen: ${e.message}`)}finally{C(!1)}};return c?s.jsx("div",{className:"fixed inset-0 z-[300] flex items-center justify-center bg-black/50 p-4",onMouseDown:e=>e.target===e.currentTarget&&x(),children:s.jsxs("div",{ref:k,role:"dialog","aria-modal":"true","aria-labelledby":"vehicle-catalog-title",className:"flex max-h-[90vh] w-full max-w-2xl flex-col rounded-xl bg-white shadow-xl dark:bg-neutral-900",children:[s.jsxs("div",{className:"flex items-start justify-between gap-4 border-b border-neutral-200 p-5 dark:border-neutral-800",children:[s.jsxs("div",{children:[s.jsx("h2",{id:"vehicle-catalog-title",className:"text-lg font-bold text-neutral-900 dark:text-white",children:"Fahrzeuge aus Vorlage laden"}),s.jsx("p",{className:"mt-1 text-sm text-neutral-500 dark:text-neutral-400",children:"In Europa verbreitete Marken und Modellgenerationen. Vorhandenes bleibt unverändert und wird nicht doppelt angelegt."})]}),s.jsx("button",{type:"button",onClick:x,"aria-label":"Schließen",className:"rounded-md p-1 text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-200",children:s.jsx(O,{className:"h-5 w-5"})})]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-neutral-200 px-5 py-3 dark:border-neutral-800",children:[s.jsxs("div",{className:"relative min-w-0 flex-1",children:[s.jsx(K,{className:"pointer-events-none absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-neutral-400"}),s.jsx("input",{value:p,onChange:e=>$(e.target.value),placeholder:"Marke oder Modell suchen…",className:"w-full rounded-md border border-neutral-300 bg-white py-1.5 pl-8 pr-3 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),s.jsx("button",{type:"button",onClick:T,className:"text-sm text-brand-600 hover:underline",children:p.trim()?"Treffer auswählen":"Alle auswählen"}),u.size>0&&s.jsx("button",{type:"button",onClick:()=>g(new Map),className:"text-sm text-neutral-500 hover:underline",children:"Auswahl leeren"})]}),s.jsxs("div",{className:"min-h-0 flex-1 overflow-y-auto px-2 py-2",children:[f&&s.jsx("p",{className:"px-3 py-4 text-sm text-red-600",children:f}),!r&&!f&&s.jsx("p",{className:"px-3 py-4 text-sm text-neutral-400",children:"Lade Vorlage…"}),r&&w.length===0&&s.jsx("p",{className:"px-3 py-4 text-sm text-neutral-400",children:"Keine Treffer."}),w.map(e=>{const t=u.get(e.brand)||new Set,a=e.visibleModels.filter(n=>!n.exists),l=a.length>0&&a.every(n=>t.has(n.name)),d=!l&&a.some(n=>t.has(n.name)),o=B.has(e.brand)||p.trim()!=="";return s.jsxs("div",{className:"rounded-lg",children:[s.jsxs("div",{className:"flex items-center gap-2 rounded-lg px-2 py-1.5 hover:bg-neutral-50 dark:hover:bg-neutral-800/60",children:[s.jsx("button",{type:"button",onClick:()=>R(e.brand),"aria-expanded":o,"aria-label":`${e.brand} aufklappen`,className:"rounded p-0.5 text-neutral-400 hover:text-neutral-700 dark:hover:text-neutral-200",children:o?s.jsx(Q,{className:"h-4 w-4"}):s.jsx(W,{className:"h-4 w-4"})}),s.jsxs("label",{className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2",children:[s.jsx("input",{type:"checkbox",checked:l,disabled:a.length===0,ref:n=>{n&&(n.indeterminate=d)},onChange:()=>A(e),className:"h-4 w-4 accent-brand-500"}),s.jsx("span",{className:"truncate font-medium text-neutral-800 dark:text-neutral-100",children:e.brand}),e.exists&&s.jsx("span",{className:"rounded bg-neutral-100 px-1.5 text-xs text-neutral-500 dark:bg-neutral-800",children:"vorhanden"})]}),s.jsxs("span",{className:"shrink-0 text-xs text-neutral-400",children:[t.size>0?`${t.size} gewählt · `:"",e.newModels.length===e.models.length?`${e.models.length} Modelle`:`${e.newModels.length} von ${e.models.length} neu`]})]}),o&&s.jsx("ul",{className:"mb-2 ml-9 grid gap-x-4 sm:grid-cols-2",children:e.visibleModels.map(n=>s.jsx("li",{children:s.jsxs("label",{className:`flex items-center gap-2 py-0.5 text-sm ${n.exists?"text-neutral-400":"cursor-pointer text-neutral-700 dark:text-neutral-200"}`,children:[s.jsx("input",{type:"checkbox",checked:n.exists||t.has(n.name),disabled:n.exists,onChange:()=>D(e.brand,n.name),className:"h-3.5 w-3.5 accent-brand-500"}),s.jsx("span",{className:"truncate",children:n.name}),s.jsx("span",{className:"ml-auto shrink-0 text-xs text-neutral-400",children:n.exists?"vorhanden":n.years})]})},n.name))})]},e.brand)})]}),s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-t border-neutral-200 p-4 dark:border-neutral-800",children:[s.jsx("span",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:b.models?`${h(b.models,"Modell","Modelle")}${b.newBrands?`, ${h(b.newBrands,"neue Marke","neue Marken")}`:""} ausgewählt`:r?`${r.length} Marken, ${h(V,"Modell","Modelle")} noch nicht angelegt`:""}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("button",{type:"button",onClick:x,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Abbrechen"}),s.jsx("button",{type:"button",onClick:q,disabled:z||b.models===0,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:z?"Wird angelegt…":"Auswahl anlegen"})]})]})]})}):null}export{G as V};
diff --git a/hifi/assets/ViewOnSite-BPLJTKOt.js b/hifi/assets/ViewOnSite-DuRTh7q1.js
similarity index 84%
rename from hifi/assets/ViewOnSite-BPLJTKOt.js
rename to hifi/assets/ViewOnSite-DuRTh7q1.js
index 22b6d1e..0187f17 100644
--- a/hifi/assets/ViewOnSite-BPLJTKOt.js
+++ b/hifi/assets/ViewOnSite-DuRTh7q1.js
@@ -1 +1 @@
-import{j as n,x as a}from"./index-BlspSYV0.js";function i({to:e,label:r="Ansehen",className:t=""}){return e?n.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",title:"Auf der Website ansehen (neuer Tab)",className:`inline-flex items-center gap-1 text-xs font-medium text-neutral-500 hover:text-brand-600 dark:text-neutral-400 ${t}`,children:[n.jsx(a,{className:"h-3.5 w-3.5"}),r]}):null}export{i as V};
+import{j as n,z as a}from"./index-ByR_n0g5.js";function i({to:e,label:r="Ansehen",className:t=""}){return e?n.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",title:"Auf der Website ansehen (neuer Tab)",className:`inline-flex items-center gap-1 text-xs font-medium text-neutral-500 hover:text-brand-600 dark:text-neutral-400 ${t}`,children:[n.jsx(a,{className:"h-3.5 w-3.5"}),r]}):null}export{i as V};
diff --git a/hifi/assets/WebsiteSettings-LkaVnoOm.js b/hifi/assets/WebsiteSettings-TrTUFhaa.js
similarity index 97%
rename from hifi/assets/WebsiteSettings-LkaVnoOm.js
rename to hifi/assets/WebsiteSettings-TrTUFhaa.js
index 5144f99..a30ce7a 100644
--- a/hifi/assets/WebsiteSettings-LkaVnoOm.js
+++ b/hifi/assets/WebsiteSettings-TrTUFhaa.js
@@ -1 +1 @@
-import{q as Me,z as Le,F as Ie,G as He,r as s,c as o,s as We,j as e,f as Oe}from"./index-BlspSYV0.js";import{I as S}from"./ImageUploadField-Bho12Gdh.js";import{S as Te}from"./SaveBar-CVCIr_4p.js";import"./resizeImage-C6PvAwh0.js";const me=[{key:"mon",label:"Montag"},{key:"tue",label:"Dienstag"},{key:"wed",label:"Mittwoch"},{key:"thu",label:"Donnerstag"},{key:"fri",label:"Freitag"},{key:"sat",label:"Samstag"},{key:"sun",label:"Sonntag"}],he=Object.fromEntries(me.map(i=>[i.key,{open:"09:00",close:"18:00",closed:!1}])),ue={phone:"",whatsapp:"",contact_email:"",address_street:"",address_zip:"",address_city:"",logo_path:"",logo_dark_path:"",business_hours:he,hero_image_path:"",ga_measurement_id:"",package_card_theme:"graphite",package_card_layout:"strip",package_wheel_hint_interval:8,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,gallery_card_text_x:0,gallery_card_text_y:100,site_font:"",page_loader_enabled:!0,price_note:"",price_note_en:""},Xe=[{value:"graphite",label:"Graphite Green",description:"Graphit über Bronze/Silber/Gold/Platin bis zur Onyx-Krönung."},{value:"deep-blue",label:"Deep Blue Luxury",description:"Kühles Blau, das sich über Grün zu Gold erwärmt."},{value:"warm-bronze",label:"Warm Bronze",description:"Durchgehend warmes Kupfer/Bronze/Amber bis zum Gold."}],Ue=[{value:"grid",label:"Raster",description:"Breite Kacheln, die responsiv in mehrere Zeilen umbrechen."},{value:"strip",label:"Scroll-Band",description:"Schmale, hochkant Kacheln in einer horizontal scrollbaren Reihe."},{value:"coverflow",label:"3D-Coverflow",description:"Kacheln drehen sich beim Wischen räumlich – die mittlere steht im Fokus."}];function et({section:i="company"}){const d=t=>t===i,u=Me(),xe=Le(),C=Ie(),z=He(),[B,D]=s.useState(""),[be,F]=s.useState(null),[G,A]=s.useState(!1),[P,R]=s.useState(""),ge=async t=>{t.preventDefault(),R(""),A(!0);try{const a=new FormData;a.append("name",B),a.append("file",be),await o.post("/custom-fonts",a),D(""),F(null),t.target.reset(),z(),u.success("Schriftart hochgeladen.")}catch(a){R(a.message)}finally{A(!1)}},pe=async t=>{if(confirm("Schriftart wirklich löschen? Felder, die sie noch verwenden, fallen danach auf die Standardschrift zurück."))try{await o.delete(`/custom-fonts/${t}`),z(),u.success("Schriftart gelöscht.")}catch(a){u.error(a.message)}},[r,b]=s.useState(ue),[ke,E]=s.useState(ue),[_e,fe]=s.useState(null),[ve,we]=s.useState(!0),[je,K]=s.useState(!1),[Je,m]=s.useState(!1),[M,L]=s.useState(""),[g,ye]=s.useState(null),I=s.useRef(null),[H,W]=s.useState(!1),Ne=(t,a)=>{const n=I.current.getBoundingClientRect();return{x:Math.max(0,Math.min(100,Math.round((t-n.left)/n.width*100))),y:Math.max(0,Math.min(100,Math.round((a-n.top)/n.height*100)))}},O=(t,a)=>{const{x:n,y:x}=Ne(t,a);b(Ke=>({...Ke,gallery_card_text_x:n,gallery_card_text_y:x})),m(!1)},Se=t=>{t.preventDefault(),t.currentTarget.setPointerCapture(t.pointerId),W(!0),O(t.clientX,t.clientY)},Ce=t=>{H&&O(t.clientX,t.clientY)},ze=t=>{W(!1),t.currentTarget.releasePointerCapture(t.pointerId)},[p,T]=s.useState(""),[Be,X]=s.useState(""),[v,U]=s.useState(""),[J,Z]=s.useState(!1),[De,$]=s.useState(!1),[V,Y]=s.useState(""),[Ze,k]=s.useState(!1),[h,q]=s.useState(""),[Fe,Q]=s.useState(""),[w,ee]=s.useState(""),[j,te]=s.useState(!1),[c,y]=s.useState(null),[Ge,ae]=s.useState(!1),[re,_]=s.useState(""),[$e,f]=s.useState(!1),[se,le]=s.useState(!1);s.useEffect(()=>{o.get("/site-settings").then(t=>{const a={phone:t.phone||"",whatsapp:t.whatsapp||"",contact_email:t.contact_email||"",address_street:t.address_street||"",address_zip:t.address_zip||"",address_city:t.address_city||"",logo_path:t.logo_path||"",logo_dark_path:t.logo_dark_path||"",business_hours:t.business_hours||he,hero_image_path:t.hero_image_path||"",ga_measurement_id:t.ga_measurement_id||"",package_card_theme:t.package_card_theme||"graphite",package_card_layout:t.package_card_layout||"strip",package_wheel_hint_interval:t.package_wheel_hint_interval||8,package_card_width:t.package_card_width||210,package_card_height:t.package_card_height||480,vehicle_tile_width:t.vehicle_tile_width||240,vehicle_tile_height:t.vehicle_tile_height||180,gallery_card_text_x:t.gallery_card_text_x??0,gallery_card_text_y:t.gallery_card_text_y??100,site_font:t.site_font||"",page_loader_enabled:t.page_loader_enabled===void 0?!0:!!t.page_loader_enabled,price_note:t.price_note||"",price_note_en:t.price_note_en||""};b(a),E(a)}).catch(t=>u.error(t.message)).finally(()=>we(!1)),i==="design"&&o.get("/gallery-brands").then(t=>ye(t.find(a=>a.cover_image_path)||null)).catch(()=>{}),i==="google"&&(o.get("/settings/analytics").then(t=>{T(t.ga_property_id||""),X(t.ga_property_id||""),Z(t.has_credentials)}).catch(()=>{}),ne())},[i]);const ne=()=>{o.get("/settings/google-reviews").then(t=>{q(t.place_id||""),Q(t.place_id||""),te(t.has_api_key),y(t)}).catch(()=>{})},Ae=async()=>{ae(!0),_(""),f(!1);try{const t=await o.post("/settings/google-reviews",{place_id:h,api_key:w});te(t.has_api_key),y(t),ee(""),Q(h),f(!0)}catch(t){throw _(t.message),t}finally{ae(!1)}},Pe=async()=>{le(!0),_("");try{const t=await o.post("/settings/google-reviews/refresh",{});y(t)}catch(t){_(t.message),ne()}finally{le(!1)}},Re=async()=>{$(!0),Y(""),k(!1);try{const t=await o.post("/settings/analytics",{ga_property_id:p,service_account_json:v});Z(t.has_credentials),U(""),X(p),k(!0)}catch(t){throw Y(t.message),t}finally{$(!1)}},l=(t,a)=>{b(n=>({...n,[t]:a})),m(!1)},N=(t,a,n)=>{b(x=>({...x,business_hours:{...x.business_hours,[t]:{...x.business_hours[t],[a]:n}}})),m(!1)},de=JSON.stringify(r)!==JSON.stringify(ke),ie=p!==Be||v!=="",oe=h!==Fe||w!=="",ce=de||i==="google"&&(ie||oe);We(ce,`website-settings-${i}`);const Ee=async t=>{t.preventDefault(),K(!0),L(""),m(!1);try{de&&await o.post("/site-settings",r),i==="google"&&ie&&await Re(),i==="google"&&oe&&await Ae(),E(r),m(!0),fe(new Date),u.success("Gespeichert.")}catch(a){L(a.message),u.error(`Speichern fehlgeschlagen: ${a.message}`)}finally{K(!1)}};return ve?e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsxs("form",{id:"website-settings-form",onSubmit:Ee,className:"max-w-2xl space-y-6",children:[d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Großes Titelbild der Startseite"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Das große Bild ganz oben auf der Startseite. Ohne eigenes Bild wird das Standardbild verwendet."}),e.jsx(S,{value:r.hero_image_path,onChange:t=>l("hero_image_path",t),label:"Bild",aspect:16/9})]}),d("company")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Firmenlogo"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Ohne eigenes Logo wird das Standard-Logo dieser Vorlage angezeigt. Für den Dunkelmodus kann eine eigene Variante hinterlegt werden (z. B. mit heller statt dunkler Wortmarke)."}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsx(S,{value:r.logo_path,onChange:t=>l("logo_path",t),label:"Logo (Hellmodus)"}),e.jsx(S,{value:r.logo_dark_path,onChange:t=>l("logo_dark_path",t),label:"Logo (Dunkelmodus)"})]})]}),d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Schriftart"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Gilt für die gesamte Website. Einzelne Startseiten-Sektionen können unter „Startseite“ davon abweichen."}),e.jsx("select",{value:r.site_font,onChange:t=>l("site_font",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:xe.map(t=>e.jsx("option",{value:t.value,children:t.label},t.label))})]}),d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Eigene Schriftarten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Eigene Schriftart-Dateien (WOFF2, WOFF, TTF oder OTF) hochladen - stehen danach in jeder Schriftart-Auswahl im Dashboard zusätzlich zur Wahl."}),C.length>0&&e.jsx("ul",{className:"mb-4 space-y-2",children:C.map(t=>e.jsxs("li",{className:"flex items-center justify-between gap-2 rounded-md border border-neutral-200 px-3 py-2 text-sm dark:border-neutral-700",children:[e.jsx("span",{style:{fontFamily:t.font_family},children:t.name}),e.jsx("button",{type:"button",onClick:()=>pe(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]},t.id))}),e.jsxs("form",{onSubmit:ge,className:"flex flex-wrap items-end gap-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name"}),e.jsx("input",{required:!0,value:B,onChange:t=>D(t.target.value),placeholder:"z. B. Firmenschrift",className:"rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Datei"}),e.jsx("input",{required:!0,type:"file",accept:".woff2,.woff,.ttf,.otf",onChange:t=>{var a;return F(((a=t.target.files)==null?void 0:a[0])||null)},className:"text-sm"})]}),e.jsx("button",{type:"submit",disabled:G,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:G?"Lädt hoch…":"Hochladen"})]}),P&&e.jsx("p",{className:"mt-2 text-sm text-red-600",children:P})]}),d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Seiten-Ladeanzeige"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Solange Daten und Bilder im sichtbaren Bereich einer Seite noch laden, bleibt der Inhalt ausgeblendet – verhindert, dass Bilder nachträglich "einpoppen". Das Lade-Symbol erscheint nur, wenn das länger als einen Augenblick dauert. Wirkt sich nicht auf das Dashboard und die Startseite aus, nur auf die übrigen Seiten der öffentlichen Website.'}),e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:r.page_loader_enabled,onChange:t=>l("page_loader_enabled",t.target.checked),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"Ladeanzeige aktivieren"]})]}),d("company")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Kontaktdaten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Wird im Header, Footer und auf der Kontaktseite angezeigt."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Telefon"}),e.jsx("input",{value:r.phone,onChange:t=>l("phone",t.target.value),placeholder:"09373 20 62 390",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"WhatsApp Business Nummer"}),e.jsx("input",{value:r.whatsapp,onChange:t=>l("whatsapp",t.target.value),placeholder:"z. B. 09373 20 62 390",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Leer lassen, um den WhatsApp-Link im Header auszublenden."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"E-Mail"}),e.jsx("input",{type:"email",value:r.contact_email,onChange:t=>l("contact_email",t.target.value),placeholder:"info@hifi-planet-amorbach.de",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-[1fr_120px_1fr]",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Straße & Hausnummer"}),e.jsx("input",{value:r.address_street,onChange:t=>l("address_street",t.target.value),placeholder:"Boxbrunner Str. 20a",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"PLZ"}),e.jsx("input",{value:r.address_zip,onChange:t=>l("address_zip",t.target.value),placeholder:"63916",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Ort"}),e.jsx("input",{value:r.address_city,onChange:t=>l("address_city",t.target.value),placeholder:"Amorbach",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]})]})]}),d("company")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Öffnungszeiten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Wird im Footer und auf der Kontaktseite angezeigt, inklusive dem "Geöffnet/Geschlossen"-Hinweis im Footer, der live gegen diese Zeiten rechnet.'}),e.jsx("div",{className:"space-y-2",children:me.map(t=>{const a=r.business_hours[t.key]||{open:"",close:"",closed:!1};return e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx("span",{className:"w-24 shrink-0 text-sm text-neutral-600 dark:text-neutral-300",children:t.label}),e.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-neutral-500 dark:text-neutral-400",children:[e.jsx("input",{type:"checkbox",checked:!a.closed,onChange:n=>N(t.key,"closed",!n.target.checked),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"geöffnet"]}),!a.closed&&e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"time",value:a.open,onChange:n=>N(t.key,"open",n.target.value),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("span",{className:"text-neutral-400",children:"–"}),e.jsx("input",{type:"time",value:a.close,onChange:n=>N(t.key,"close",n.target.value),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]},t.key)})})]}),d("company")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Hinweis unter den Paketpreisen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Erscheint klein unter jedem Paketpreis und im Kontaktformular – z. B. „inkl. MwSt. und Einbau“. So weiß der Kunde, was im Preis enthalten ist. Leer lassen, um keinen Hinweis anzuzeigen."}),e.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Deutsch"}),e.jsx("input",{value:r.price_note,onChange:t=>l("price_note",t.target.value),maxLength:150,placeholder:"inkl. MwSt. und Einbau",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Englisch (optional)"}),e.jsx("input",{value:r.price_note_en,onChange:t=>l("price_note_en",t.target.value),maxLength:150,placeholder:"incl. VAT and installation",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]})]}),d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Paket-Kachel-Design"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Bestimmt die Farbgebung der Paket-Stufen auf jeder Fahrzeug-Modell-Seite (von der günstigsten bis zur teuersten Option)."}),e.jsx("div",{className:"grid gap-3 sm:grid-cols-3",children:Xe.map(t=>e.jsxs("label",{className:`cursor-pointer rounded-lg border p-3 text-sm transition ${r.package_card_theme===t.value?"border-brand-500 ring-2 ring-brand-500/40":"border-neutral-300 hover:border-neutral-400 dark:border-neutral-700 dark:hover:border-neutral-600"}`,children:[e.jsx("input",{type:"radio",name:"package_card_theme",value:t.value,checked:r.package_card_theme===t.value,onChange:a=>l("package_card_theme",a.target.value),className:"sr-only"}),e.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:t.label}),e.jsx("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:t.description})]},t.value))})]}),d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Kachel-Layout"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Bestimmt, wie die Paket-Stufen auf jeder Fahrzeug-Modell-Seite angeordnet werden."}),e.jsx("div",{className:"grid gap-3 sm:grid-cols-3",children:Ue.map(t=>e.jsxs("label",{className:`cursor-pointer rounded-lg border p-3 text-sm transition ${r.package_card_layout===t.value?"border-brand-500 ring-2 ring-brand-500/40":"border-neutral-300 hover:border-neutral-400 dark:border-neutral-700 dark:hover:border-neutral-600"}`,children:[e.jsx("input",{type:"radio",name:"package_card_layout",value:t.value,checked:r.package_card_layout===t.value,onChange:a=>l("package_card_layout",a.target.value),className:"sr-only"}),e.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:t.label}),e.jsx("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:t.description})]},t.value))}),e.jsxs("div",{className:"mt-5 max-w-xs",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Mausrad-Hinweis: Wiederholung (Sekunden)"}),e.jsx("input",{type:"number",min:"2",max:"120",value:r.package_wheel_hint_interval,onChange:t=>l("package_wheel_hint_interval",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:'Nur bei Scroll-Band/3D-Coverflow: Solange ein Besucher noch auf der ersten Kachel steht, wird der "mit dem Mausrad blättern"-Hinweis in diesem Abstand wiederholt.'})]}),e.jsxs("div",{className:"mt-5 grid max-w-xs gap-3 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Breite (px)"}),e.jsx("input",{type:"number",min:"80",max:"600",value:r.package_card_width,onChange:t=>l("package_card_width",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Höhe (px)"}),e.jsx("input",{type:"number",min:"80",max:"900",value:r.package_card_height,onChange:t=>l("package_card_height",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx("p",{className:"text-xs text-neutral-400 sm:col-span-2",children:'Bei „Raster" bestimmt die Breite stattdessen, wie viele Kacheln pro Zeile passen.'})]})]}),d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Marken-/Modell-Kacheln"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Größe der Kacheln unter „Fahrzeuge wählen" und auf der Marken-Detailseite.'}),e.jsxs("div",{className:"grid max-w-xs gap-3 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Breite (px)"}),e.jsx("input",{type:"number",min:"80",max:"600",value:r.vehicle_tile_width,onChange:t=>l("vehicle_tile_width",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Höhe (px)"}),e.jsx("input",{type:"number",min:"80",max:"600",value:r.vehicle_tile_height,onChange:t=>l("vehicle_tile_height",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]})]}),d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Bildergalerie-Kacheln"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Position des Marken-/Projekt-Namens auf den Kacheln der Bildergalerie-Übersicht und der Marken-Detailseite."}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-[16rem_1fr] sm:items-start",children:[e.jsxs("div",{children:[e.jsxs("div",{ref:I,className:"relative aspect-[4/3] select-none overflow-hidden rounded-xl bg-neutral-900 shadow-sm",children:[g?e.jsx("img",{src:g.cover_image_path,alt:"",draggable:!1,className:"h-full w-full object-cover"}):e.jsx("div",{className:"h-full w-full bg-gradient-to-br from-neutral-700 to-neutral-900"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent"}),e.jsx("span",{onPointerDown:Se,onPointerMove:Ce,onPointerUp:ze,style:{...Oe(r.gallery_card_text_x,r.gallery_card_text_y,{x:0,y:100}),touchAction:"none"},className:`absolute select-none whitespace-nowrap rounded p-3 text-sm font-extrabold text-white transition-colors ${H?"cursor-grabbing bg-white/10 ring-2 ring-brand-400":"cursor-grab hover:bg-white/10"}`,children:g?g.name:"Beispiel-Marke"})]}),e.jsx("p",{className:"mt-1.5 text-center text-xs text-neutral-400",children:"Namen zum Verschieben ziehen"})]}),e.jsxs("div",{className:"flex flex-col gap-3 sm:pt-1",children:[e.jsxs("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:["Position:"," ",e.jsxs("span",{className:"font-mono font-semibold text-neutral-700 dark:text-neutral-200",children:[r.gallery_card_text_x,"% / ",r.gallery_card_text_y,"%"]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl waagerecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>l("gallery_card_text_x",0),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Links"}),e.jsx("button",{type:"button",onClick:()=>l("gallery_card_text_x",50),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>l("gallery_card_text_x",100),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Rechts"})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl senkrecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>l("gallery_card_text_y",0),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Oben"}),e.jsx("button",{type:"button",onClick:()=>l("gallery_card_text_y",50),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>l("gallery_card_text_y",100),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Unten"})]})]})]})]})]}),d("google")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Wird erst geladen, nachdem ein Besucher der Statistik-Kategorie im Cookie-Banner zugestimmt hat. Leer lassen, um Google Analytics zu deaktivieren."}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Measurement-ID"}),e.jsx("input",{value:r.ga_measurement_id,onChange:t=>l("ga_measurement_id",t.target.value),placeholder:"G-XXXXXXXXXX",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{className:"mt-5 border-t border-neutral-200 pt-5 dark:border-neutral-800",children:[e.jsx("h3",{className:"mb-1 text-sm font-semibold text-neutral-900 dark:text-white",children:"Dashboard-Anbindung (optional)"}),e.jsx("p",{className:"mb-3 text-sm text-neutral-500 dark:text-neutral-400",children:"Zeigt Besucherzahlen direkt in deinem Admin-Dashboard an. Braucht ein Google-Cloud-Service-Account mit Lesezugriff auf diese GA4-Property."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Property-ID"}),e.jsx("input",{value:p,onChange:t=>{T(t.target.value),k(!1)},placeholder:"z. B. 123456789",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Nicht die Measurement-ID (G-...) - zu finden unter GA4 → Verwaltung → Property-Details."})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Service-Account-JSON-Schlüssel ",J?"(leer lassen = unverändert)":""]}),e.jsx("textarea",{rows:4,value:v,onChange:t=>{U(t.target.value),k(!1)},placeholder:J?'{ "type": "service_account", ... } (bereits hinterlegt)':'{ "type": "service_account", ... }',className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 font-mono text-xs dark:border-neutral-700 dark:bg-neutral-900"})]})]}),V&&e.jsx("p",{className:"mt-2 text-sm text-red-600",children:V})]})]}),d("google")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google-Rezensionen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Zeigt die echte Google-Bewertung und die aktuellsten Rezensionen auf der Startseite an, statt der fest eingetragenen Beispiel-Texte. Wird einmal täglich automatisch aktualisiert (nie bei einem Seitenbesuch selbst) – die Seite zeigt also immer den letzten erfolgreich abgerufenen Stand."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Place-ID"}),e.jsx("input",{value:h,onChange:t=>{q(t.target.value),f(!1)},placeholder:"z. B. ChIJN1t_tDeuEmsRUsoyG83frY4",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:["Eindeutige Google-Kennung eures Eintrags – zu finden über den"," ",e.jsx("a",{href:"https://developers.google.com/maps/documentation/places/web-service/place-id#find-id",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-brand-600",children:"Google Place ID Finder"}),"."]})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Places-API-Key ",j?"(leer lassen = unverändert)":""]}),e.jsx("input",{value:w,onChange:t=>{ee(t.target.value),f(!1)},placeholder:j?"••••••••••••••••••••• (bereits hinterlegt)":"AIzaSy…",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 font-mono text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Aus der Google-Cloud-Console, mit aktivierter „Places API (New)“."})]})]}),re&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:re}),e.jsx("div",{className:"mt-3 flex flex-wrap items-center gap-3",children:e.jsx("button",{type:"button",onClick:Pe,disabled:se||!h||!j,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:se?"Aktualisiere…":"Jetzt aktualisieren"})}),c&&e.jsxs("div",{className:"mt-4 rounded-md bg-neutral-50 p-3 text-sm dark:bg-neutral-800/50",children:[c.rating!=null?e.jsxs("p",{className:"text-neutral-700 dark:text-neutral-300",children:["Aktuell hinterlegt: ",e.jsxs("strong",{children:[c.rating," ★"]})," (",c.rating_count," Bewertungen)",c.updated_at&&e.jsxs(e.Fragment,{children:[" – zuletzt aktualisiert am ",new Date(c.updated_at.replace(" ","T")).toLocaleString("de-DE")]})]}):e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:"Noch keine erfolgreiche Aktualisierung – die Startseite zeigt bis dahin weiter die Beispiel-Rezensionen."}),c.error&&e.jsxs("p",{className:"mt-1 text-red-600",children:["Letzter Fehler: ",c.error]})]})]}),M&&e.jsx("p",{className:"text-sm text-red-600",children:M}),e.jsx(Te,{dirty:ce,busy:je||De||Ge,savedAt:_e,form:"website-settings-form"})]})}export{et as default};
+import{q as Me,F as Le,H as Ie,I as He,r as s,c as o,s as We,j as e,f as Oe}from"./index-ByR_n0g5.js";import{I as S}from"./ImageUploadField-IMilh1OJ.js";import{S as Te}from"./SaveBar-DM4P28zl.js";import"./resizeImage-C6PvAwh0.js";const me=[{key:"mon",label:"Montag"},{key:"tue",label:"Dienstag"},{key:"wed",label:"Mittwoch"},{key:"thu",label:"Donnerstag"},{key:"fri",label:"Freitag"},{key:"sat",label:"Samstag"},{key:"sun",label:"Sonntag"}],he=Object.fromEntries(me.map(i=>[i.key,{open:"09:00",close:"18:00",closed:!1}])),ue={phone:"",whatsapp:"",contact_email:"",address_street:"",address_zip:"",address_city:"",logo_path:"",logo_dark_path:"",business_hours:he,hero_image_path:"",ga_measurement_id:"",package_card_theme:"graphite",package_card_layout:"strip",package_wheel_hint_interval:8,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,gallery_card_text_x:0,gallery_card_text_y:100,site_font:"",page_loader_enabled:!0,price_note:"",price_note_en:""},Xe=[{value:"graphite",label:"Graphite Green",description:"Graphit über Bronze/Silber/Gold/Platin bis zur Onyx-Krönung."},{value:"deep-blue",label:"Deep Blue Luxury",description:"Kühles Blau, das sich über Grün zu Gold erwärmt."},{value:"warm-bronze",label:"Warm Bronze",description:"Durchgehend warmes Kupfer/Bronze/Amber bis zum Gold."}],Ue=[{value:"grid",label:"Raster",description:"Breite Kacheln, die responsiv in mehrere Zeilen umbrechen."},{value:"strip",label:"Scroll-Band",description:"Schmale, hochkant Kacheln in einer horizontal scrollbaren Reihe."},{value:"coverflow",label:"3D-Coverflow",description:"Kacheln drehen sich beim Wischen räumlich – die mittlere steht im Fokus."}];function et({section:i="company"}){const d=t=>t===i,u=Me(),xe=Le(),C=Ie(),z=He(),[B,D]=s.useState(""),[be,F]=s.useState(null),[A,G]=s.useState(!1),[P,R]=s.useState(""),ge=async t=>{t.preventDefault(),R(""),G(!0);try{const a=new FormData;a.append("name",B),a.append("file",be),await o.post("/custom-fonts",a),D(""),F(null),t.target.reset(),z(),u.success("Schriftart hochgeladen.")}catch(a){R(a.message)}finally{G(!1)}},pe=async t=>{if(confirm("Schriftart wirklich löschen? Felder, die sie noch verwenden, fallen danach auf die Standardschrift zurück."))try{await o.delete(`/custom-fonts/${t}`),z(),u.success("Schriftart gelöscht.")}catch(a){u.error(a.message)}},[r,b]=s.useState(ue),[ke,E]=s.useState(ue),[_e,fe]=s.useState(null),[ve,we]=s.useState(!0),[je,K]=s.useState(!1),[Je,m]=s.useState(!1),[M,L]=s.useState(""),[g,ye]=s.useState(null),I=s.useRef(null),[H,W]=s.useState(!1),Ne=(t,a)=>{const n=I.current.getBoundingClientRect();return{x:Math.max(0,Math.min(100,Math.round((t-n.left)/n.width*100))),y:Math.max(0,Math.min(100,Math.round((a-n.top)/n.height*100)))}},O=(t,a)=>{const{x:n,y:x}=Ne(t,a);b(Ke=>({...Ke,gallery_card_text_x:n,gallery_card_text_y:x})),m(!1)},Se=t=>{t.preventDefault(),t.currentTarget.setPointerCapture(t.pointerId),W(!0),O(t.clientX,t.clientY)},Ce=t=>{H&&O(t.clientX,t.clientY)},ze=t=>{W(!1),t.currentTarget.releasePointerCapture(t.pointerId)},[p,T]=s.useState(""),[Be,X]=s.useState(""),[v,U]=s.useState(""),[J,Z]=s.useState(!1),[De,$]=s.useState(!1),[V,Y]=s.useState(""),[Ze,k]=s.useState(!1),[h,q]=s.useState(""),[Fe,Q]=s.useState(""),[w,ee]=s.useState(""),[j,te]=s.useState(!1),[c,y]=s.useState(null),[Ae,ae]=s.useState(!1),[re,_]=s.useState(""),[$e,f]=s.useState(!1),[se,le]=s.useState(!1);s.useEffect(()=>{o.get("/site-settings").then(t=>{const a={phone:t.phone||"",whatsapp:t.whatsapp||"",contact_email:t.contact_email||"",address_street:t.address_street||"",address_zip:t.address_zip||"",address_city:t.address_city||"",logo_path:t.logo_path||"",logo_dark_path:t.logo_dark_path||"",business_hours:t.business_hours||he,hero_image_path:t.hero_image_path||"",ga_measurement_id:t.ga_measurement_id||"",package_card_theme:t.package_card_theme||"graphite",package_card_layout:t.package_card_layout||"strip",package_wheel_hint_interval:t.package_wheel_hint_interval||8,package_card_width:t.package_card_width||210,package_card_height:t.package_card_height||480,vehicle_tile_width:t.vehicle_tile_width||240,vehicle_tile_height:t.vehicle_tile_height||180,gallery_card_text_x:t.gallery_card_text_x??0,gallery_card_text_y:t.gallery_card_text_y??100,site_font:t.site_font||"",page_loader_enabled:t.page_loader_enabled===void 0?!0:!!t.page_loader_enabled,price_note:t.price_note||"",price_note_en:t.price_note_en||""};b(a),E(a)}).catch(t=>u.error(t.message)).finally(()=>we(!1)),i==="design"&&o.get("/gallery-brands").then(t=>ye(t.find(a=>a.cover_image_path)||null)).catch(()=>{}),i==="google"&&(o.get("/settings/analytics").then(t=>{T(t.ga_property_id||""),X(t.ga_property_id||""),Z(t.has_credentials)}).catch(()=>{}),ne())},[i]);const ne=()=>{o.get("/settings/google-reviews").then(t=>{q(t.place_id||""),Q(t.place_id||""),te(t.has_api_key),y(t)}).catch(()=>{})},Ge=async()=>{ae(!0),_(""),f(!1);try{const t=await o.post("/settings/google-reviews",{place_id:h,api_key:w});te(t.has_api_key),y(t),ee(""),Q(h),f(!0)}catch(t){throw _(t.message),t}finally{ae(!1)}},Pe=async()=>{le(!0),_("");try{const t=await o.post("/settings/google-reviews/refresh",{});y(t)}catch(t){_(t.message),ne()}finally{le(!1)}},Re=async()=>{$(!0),Y(""),k(!1);try{const t=await o.post("/settings/analytics",{ga_property_id:p,service_account_json:v});Z(t.has_credentials),U(""),X(p),k(!0)}catch(t){throw Y(t.message),t}finally{$(!1)}},l=(t,a)=>{b(n=>({...n,[t]:a})),m(!1)},N=(t,a,n)=>{b(x=>({...x,business_hours:{...x.business_hours,[t]:{...x.business_hours[t],[a]:n}}})),m(!1)},de=JSON.stringify(r)!==JSON.stringify(ke),ie=p!==Be||v!=="",oe=h!==Fe||w!=="",ce=de||i==="google"&&(ie||oe);We(ce,`website-settings-${i}`);const Ee=async t=>{t.preventDefault(),K(!0),L(""),m(!1);try{de&&await o.post("/site-settings",r),i==="google"&&ie&&await Re(),i==="google"&&oe&&await Ge(),E(r),m(!0),fe(new Date),u.success("Gespeichert.")}catch(a){L(a.message),u.error(`Speichern fehlgeschlagen: ${a.message}`)}finally{K(!1)}};return ve?e.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}):e.jsxs("form",{id:"website-settings-form",onSubmit:Ee,className:"max-w-2xl space-y-6",children:[d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Großes Titelbild der Startseite"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Das große Bild ganz oben auf der Startseite. Ohne eigenes Bild wird das Standardbild verwendet."}),e.jsx(S,{value:r.hero_image_path,onChange:t=>l("hero_image_path",t),label:"Bild",aspect:16/9})]}),d("company")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Firmenlogo"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Ohne eigenes Logo wird das Standard-Logo dieser Vorlage angezeigt. Für den Dunkelmodus kann eine eigene Variante hinterlegt werden (z. B. mit heller statt dunkler Wortmarke)."}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsx(S,{value:r.logo_path,onChange:t=>l("logo_path",t),label:"Logo (Hellmodus)"}),e.jsx(S,{value:r.logo_dark_path,onChange:t=>l("logo_dark_path",t),label:"Logo (Dunkelmodus)"})]})]}),d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Schriftart"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Gilt für die gesamte Website. Einzelne Startseiten-Sektionen können unter „Startseite“ davon abweichen."}),e.jsx("select",{value:r.site_font,onChange:t=>l("site_font",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900",children:xe.map(t=>e.jsx("option",{value:t.value,children:t.label},t.label))})]}),d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Eigene Schriftarten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Eigene Schriftart-Dateien (WOFF2, WOFF, TTF oder OTF) hochladen - stehen danach in jeder Schriftart-Auswahl im Dashboard zusätzlich zur Wahl."}),C.length>0&&e.jsx("ul",{className:"mb-4 space-y-2",children:C.map(t=>e.jsxs("li",{className:"flex items-center justify-between gap-2 rounded-md border border-neutral-200 px-3 py-2 text-sm dark:border-neutral-700",children:[e.jsx("span",{style:{fontFamily:t.font_family},children:t.name}),e.jsx("button",{type:"button",onClick:()=>pe(t.id),className:"text-red-600 hover:underline",children:"Löschen"})]},t.id))}),e.jsxs("form",{onSubmit:ge,className:"flex flex-wrap items-end gap-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Name"}),e.jsx("input",{required:!0,value:B,onChange:t=>D(t.target.value),placeholder:"z. B. Firmenschrift",className:"rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Datei"}),e.jsx("input",{required:!0,type:"file",accept:".woff2,.woff,.ttf,.otf",onChange:t=>{var a;return F(((a=t.target.files)==null?void 0:a[0])||null)},className:"text-sm"})]}),e.jsx("button",{type:"submit",disabled:A,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:A?"Lädt hoch…":"Hochladen"})]}),P&&e.jsx("p",{className:"mt-2 text-sm text-red-600",children:P})]}),d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Seiten-Ladeanzeige"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Solange Daten und Bilder im sichtbaren Bereich einer Seite noch laden, bleibt der Inhalt ausgeblendet – verhindert, dass Bilder nachträglich "einpoppen". Das Lade-Symbol erscheint nur, wenn das länger als einen Augenblick dauert. Wirkt sich nicht auf das Dashboard und die Startseite aus, nur auf die übrigen Seiten der öffentlichen Website.'}),e.jsxs("label",{className:"flex items-center gap-2 text-sm text-neutral-700 dark:text-neutral-300",children:[e.jsx("input",{type:"checkbox",checked:r.page_loader_enabled,onChange:t=>l("page_loader_enabled",t.target.checked),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"Ladeanzeige aktivieren"]})]}),d("company")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Kontaktdaten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Wird im Header, Footer und auf der Kontaktseite angezeigt."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Telefon"}),e.jsx("input",{value:r.phone,onChange:t=>l("phone",t.target.value),placeholder:"09373 20 62 390",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"WhatsApp Business Nummer"}),e.jsx("input",{value:r.whatsapp,onChange:t=>l("whatsapp",t.target.value),placeholder:"z. B. 09373 20 62 390",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Leer lassen, um den WhatsApp-Link im Header auszublenden."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"E-Mail"}),e.jsx("input",{type:"email",value:r.contact_email,onChange:t=>l("contact_email",t.target.value),placeholder:"info@hifi-planet-amorbach.de",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-[1fr_120px_1fr]",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Straße & Hausnummer"}),e.jsx("input",{value:r.address_street,onChange:t=>l("address_street",t.target.value),placeholder:"Boxbrunner Str. 20a",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"PLZ"}),e.jsx("input",{value:r.address_zip,onChange:t=>l("address_zip",t.target.value),placeholder:"63916",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Ort"}),e.jsx("input",{value:r.address_city,onChange:t=>l("address_city",t.target.value),placeholder:"Amorbach",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]})]})]}),d("company")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Öffnungszeiten"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Wird im Footer und auf der Kontaktseite angezeigt, inklusive dem "Geöffnet/Geschlossen"-Hinweis im Footer, der live gegen diese Zeiten rechnet.'}),e.jsx("div",{className:"space-y-2",children:me.map(t=>{const a=r.business_hours[t.key]||{open:"",close:"",closed:!1};return e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsx("span",{className:"w-24 shrink-0 text-sm text-neutral-600 dark:text-neutral-300",children:t.label}),e.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-neutral-500 dark:text-neutral-400",children:[e.jsx("input",{type:"checkbox",checked:!a.closed,onChange:n=>N(t.key,"closed",!n.target.checked),className:"h-4 w-4 rounded border-neutral-300 text-brand-600 focus:ring-brand-500"}),"geöffnet"]}),!a.closed&&e.jsxs(e.Fragment,{children:[e.jsx("input",{type:"time",value:a.open,onChange:n=>N(t.key,"open",n.target.value),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("span",{className:"text-neutral-400",children:"–"}),e.jsx("input",{type:"time",value:a.close,onChange:n=>N(t.key,"close",n.target.value),className:"rounded-md border border-neutral-300 bg-white px-2 py-1 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]},t.key)})})]}),d("company")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Hinweis unter den Paketpreisen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Erscheint klein unter jedem Paketpreis und im Kontaktformular – z. B. „inkl. MwSt. und Einbau“. So weiß der Kunde, was im Preis enthalten ist. Leer lassen, um keinen Hinweis anzuzeigen."}),e.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Deutsch"}),e.jsx("input",{value:r.price_note,onChange:t=>l("price_note",t.target.value),maxLength:150,placeholder:"inkl. MwSt. und Einbau",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Englisch (optional)"}),e.jsx("input",{value:r.price_note_en,onChange:t=>l("price_note_en",t.target.value),maxLength:150,placeholder:"incl. VAT and installation",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]})]}),d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Paket-Kachel-Design"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Bestimmt die Farbgebung der Paket-Stufen auf jeder Fahrzeug-Modell-Seite (von der günstigsten bis zur teuersten Option)."}),e.jsx("div",{className:"grid gap-3 sm:grid-cols-3",children:Xe.map(t=>e.jsxs("label",{className:`cursor-pointer rounded-lg border p-3 text-sm transition ${r.package_card_theme===t.value?"border-brand-500 ring-2 ring-brand-500/40":"border-neutral-300 hover:border-neutral-400 dark:border-neutral-700 dark:hover:border-neutral-600"}`,children:[e.jsx("input",{type:"radio",name:"package_card_theme",value:t.value,checked:r.package_card_theme===t.value,onChange:a=>l("package_card_theme",a.target.value),className:"sr-only"}),e.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:t.label}),e.jsx("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:t.description})]},t.value))})]}),d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Kachel-Layout"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Bestimmt, wie die Paket-Stufen auf jeder Fahrzeug-Modell-Seite angeordnet werden."}),e.jsx("div",{className:"grid gap-3 sm:grid-cols-3",children:Ue.map(t=>e.jsxs("label",{className:`cursor-pointer rounded-lg border p-3 text-sm transition ${r.package_card_layout===t.value?"border-brand-500 ring-2 ring-brand-500/40":"border-neutral-300 hover:border-neutral-400 dark:border-neutral-700 dark:hover:border-neutral-600"}`,children:[e.jsx("input",{type:"radio",name:"package_card_layout",value:t.value,checked:r.package_card_layout===t.value,onChange:a=>l("package_card_layout",a.target.value),className:"sr-only"}),e.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:t.label}),e.jsx("p",{className:"mt-1 text-xs text-neutral-500 dark:text-neutral-400",children:t.description})]},t.value))}),e.jsxs("div",{className:"mt-5 max-w-xs",children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Mausrad-Hinweis: Wiederholung (Sekunden)"}),e.jsx("input",{type:"number",min:"2",max:"120",value:r.package_wheel_hint_interval,onChange:t=>l("package_wheel_hint_interval",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:'Nur bei Scroll-Band/3D-Coverflow: Solange ein Besucher noch auf der ersten Kachel steht, wird der "mit dem Mausrad blättern"-Hinweis in diesem Abstand wiederholt.'})]}),e.jsxs("div",{className:"mt-5 grid max-w-xs gap-3 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Breite (px)"}),e.jsx("input",{type:"number",min:"80",max:"600",value:r.package_card_width,onChange:t=>l("package_card_width",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Höhe (px)"}),e.jsx("input",{type:"number",min:"80",max:"900",value:r.package_card_height,onChange:t=>l("package_card_height",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsx("p",{className:"text-xs text-neutral-400 sm:col-span-2",children:'Bei „Raster" bestimmt die Breite stattdessen, wie viele Kacheln pro Zeile passen.'})]})]}),d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Marken-/Modell-Kacheln"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:'Größe der Kacheln unter „Fahrzeuge wählen" und auf der Marken-Detailseite.'}),e.jsxs("div",{className:"grid max-w-xs gap-3 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Breite (px)"}),e.jsx("input",{type:"number",min:"80",max:"600",value:r.vehicle_tile_width,onChange:t=>l("vehicle_tile_width",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Höhe (px)"}),e.jsx("input",{type:"number",min:"80",max:"600",value:r.vehicle_tile_height,onChange:t=>l("vehicle_tile_height",t.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]})]})]}),d("design")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Bildergalerie-Kacheln"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Position des Marken-/Projekt-Namens auf den Kacheln der Bildergalerie-Übersicht und der Marken-Detailseite."}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-[16rem_1fr] sm:items-start",children:[e.jsxs("div",{children:[e.jsxs("div",{ref:I,className:"relative aspect-[4/3] select-none overflow-hidden rounded-xl bg-neutral-900 shadow-sm",children:[g?e.jsx("img",{src:g.cover_image_path,alt:"",draggable:!1,className:"h-full w-full object-cover"}):e.jsx("div",{className:"h-full w-full bg-gradient-to-br from-neutral-700 to-neutral-900"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent"}),e.jsx("span",{onPointerDown:Se,onPointerMove:Ce,onPointerUp:ze,style:{...Oe(r.gallery_card_text_x,r.gallery_card_text_y,{x:0,y:100}),touchAction:"none"},className:`absolute select-none whitespace-nowrap rounded p-3 text-sm font-extrabold text-white transition-colors ${H?"cursor-grabbing bg-white/10 ring-2 ring-brand-400":"cursor-grab hover:bg-white/10"}`,children:g?g.name:"Beispiel-Marke"})]}),e.jsx("p",{className:"mt-1.5 text-center text-xs text-neutral-400",children:"Namen zum Verschieben ziehen"})]}),e.jsxs("div",{className:"flex flex-col gap-3 sm:pt-1",children:[e.jsxs("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:["Position:"," ",e.jsxs("span",{className:"font-mono font-semibold text-neutral-700 dark:text-neutral-200",children:[r.gallery_card_text_x,"% / ",r.gallery_card_text_y,"%"]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl waagerecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>l("gallery_card_text_x",0),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Links"}),e.jsx("button",{type:"button",onClick:()=>l("gallery_card_text_x",50),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>l("gallery_card_text_x",100),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Rechts"})]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-1.5 text-xs font-medium uppercase tracking-wide text-neutral-400",children:"Schnellauswahl senkrecht"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button",onClick:()=>l("gallery_card_text_y",0),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Oben"}),e.jsx("button",{type:"button",onClick:()=>l("gallery_card_text_y",50),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Mittig"}),e.jsx("button",{type:"button",onClick:()=>l("gallery_card_text_y",100),className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm text-neutral-600 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800",children:"Unten"})]})]})]})]})]}),d("google")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google Analytics"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Wird erst geladen, nachdem ein Besucher der Statistik-Kategorie im Cookie-Banner zugestimmt hat. Leer lassen, um Google Analytics zu deaktivieren."}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Measurement-ID"}),e.jsx("input",{value:r.ga_measurement_id,onChange:t=>l("ga_measurement_id",t.target.value),placeholder:"G-XXXXXXXXXX",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"})]}),e.jsxs("div",{className:"mt-5 border-t border-neutral-200 pt-5 dark:border-neutral-800",children:[e.jsx("h3",{className:"mb-1 text-sm font-semibold text-neutral-900 dark:text-white",children:"Dashboard-Anbindung (optional)"}),e.jsx("p",{className:"mb-3 text-sm text-neutral-500 dark:text-neutral-400",children:"Zeigt Besucherzahlen direkt in deinem Admin-Dashboard an. Braucht ein Google-Cloud-Service-Account mit Lesezugriff auf diese GA4-Property."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Property-ID"}),e.jsx("input",{value:p,onChange:t=>{T(t.target.value),k(!1)},placeholder:"z. B. 123456789",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Nicht die Measurement-ID (G-...) - zu finden unter GA4 → Verwaltung → Property-Details."})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Service-Account-JSON-Schlüssel ",J?"(leer lassen = unverändert)":""]}),e.jsx("textarea",{rows:4,value:v,onChange:t=>{U(t.target.value),k(!1)},placeholder:J?'{ "type": "service_account", ... } (bereits hinterlegt)':'{ "type": "service_account", ... }',className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 font-mono text-xs dark:border-neutral-700 dark:bg-neutral-900"})]})]}),V&&e.jsx("p",{className:"mt-2 text-sm text-red-600",children:V})]})]}),d("google")&&e.jsxs("section",{className:"rounded-xl border border-neutral-200 bg-white p-6 dark:border-neutral-800 dark:bg-neutral-900",children:[e.jsx("h2",{className:"mb-1 font-semibold text-neutral-900 dark:text-white",children:"Google-Rezensionen"}),e.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Zeigt die echte Google-Bewertung und die aktuellsten Rezensionen auf der Startseite an, statt der fest eingetragenen Beispiel-Texte. Wird einmal täglich automatisch aktualisiert (nie bei einem Seitenbesuch selbst) – die Seite zeigt also immer den letzten erfolgreich abgerufenen Stand."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:"Place-ID"}),e.jsx("input",{value:h,onChange:t=>{q(t.target.value),f(!1)},placeholder:"z. B. ChIJN1t_tDeuEmsRUsoyG83frY4",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsxs("p",{className:"mt-1 text-xs text-neutral-400",children:["Eindeutige Google-Kennung eures Eintrags – zu finden über den"," ",e.jsx("a",{href:"https://developers.google.com/maps/documentation/places/web-service/place-id#find-id",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-brand-600",children:"Google Place ID Finder"}),"."]})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"mb-1 block text-sm font-medium text-neutral-700 dark:text-neutral-300",children:["Places-API-Key ",j?"(leer lassen = unverändert)":""]}),e.jsx("input",{value:w,onChange:t=>{ee(t.target.value),f(!1)},placeholder:j?"••••••••••••••••••••• (bereits hinterlegt)":"AIzaSy…",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 font-mono text-sm dark:border-neutral-700 dark:bg-neutral-900"}),e.jsx("p",{className:"mt-1 text-xs text-neutral-400",children:"Aus der Google-Cloud-Console, mit aktivierter „Places API (New)“."})]})]}),re&&e.jsx("p",{className:"mt-3 text-sm text-red-600",children:re}),e.jsx("div",{className:"mt-3 flex flex-wrap items-center gap-3",children:e.jsx("button",{type:"button",onClick:Pe,disabled:se||!h||!j,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:se?"Aktualisiere…":"Jetzt aktualisieren"})}),c&&e.jsxs("div",{className:"mt-4 rounded-md bg-neutral-50 p-3 text-sm dark:bg-neutral-800/50",children:[c.rating!=null?e.jsxs("p",{className:"text-neutral-700 dark:text-neutral-300",children:["Aktuell hinterlegt: ",e.jsxs("strong",{children:[c.rating," ★"]})," (",c.rating_count," Bewertungen)",c.updated_at&&e.jsxs(e.Fragment,{children:[" – zuletzt aktualisiert am ",new Date(c.updated_at.replace(" ","T")).toLocaleString("de-DE")]})]}):e.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:"Noch keine erfolgreiche Aktualisierung – die Startseite zeigt bis dahin weiter die Beispiel-Rezensionen."}),c.error&&e.jsxs("p",{className:"mt-1 text-red-600",children:["Letzter Fehler: ",c.error]})]})]}),M&&e.jsx("p",{className:"text-sm text-red-600",children:M}),e.jsx(Te,{dirty:ce,busy:je||De||Ae,savedAt:_e,form:"website-settings-form"})]})}export{et as default};
diff --git a/hifi/assets/eye-BfYwiu9A.js b/hifi/assets/eye-BhaTX13E.js
similarity index 95%
rename from hifi/assets/eye-BfYwiu9A.js
rename to hifi/assets/eye-BhaTX13E.js
index 9620c01..086b4b4 100644
--- a/hifi/assets/eye-BfYwiu9A.js
+++ b/hifi/assets/eye-BhaTX13E.js
@@ -1,4 +1,4 @@
-import{I as e}from"./index-BlspSYV0.js";/**
+import{K as e}from"./index-ByR_n0g5.js";/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
diff --git a/hifi/assets/grip-vertical-Bv_4pkjN.js b/hifi/assets/grip-vertical-B-w3JIIY.js
similarity index 91%
rename from hifi/assets/grip-vertical-Bv_4pkjN.js
rename to hifi/assets/grip-vertical-B-w3JIIY.js
index 44957e5..5622613 100644
--- a/hifi/assets/grip-vertical-Bv_4pkjN.js
+++ b/hifi/assets/grip-vertical-B-w3JIIY.js
@@ -1,4 +1,4 @@
-import{I as c}from"./index-BlspSYV0.js";/**
+import{K as c}from"./index-ByR_n0g5.js";/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
diff --git a/hifi/assets/iconRegistry-B5nlmNdu.js b/hifi/assets/iconRegistry-D2FmHLLX.js
similarity index 99%
rename from hifi/assets/iconRegistry-B5nlmNdu.js
rename to hifi/assets/iconRegistry-D2FmHLLX.js
index a57fc05..f7c29f1 100644
--- a/hifi/assets/iconRegistry-B5nlmNdu.js
+++ b/hifi/assets/iconRegistry-D2FmHLLX.js
@@ -1,4 +1,4 @@
-import{I as e,J as L0,K as x0,M as w0,Q as f0,T as I0,U as C0,v as N0,V as b0,w as $0,W as q0,C as s,X as z0,Y as S0,x as A0,Z as H0,_ as j0,$ as V0,a0 as P0,a1 as B0,a2 as D0,a3 as F0,a4 as R0,a5 as T0,a6 as U0,a7 as O0,P as G0,a8 as Z0,a9 as W0,aa as E0,ab as X0,ac as K0,ad as Q0,ae as J0,af as Y0,ag as ea,ah as aa,ai as ca,aj as fL,ak as IL,al as CL,j as NL}from"./index-BlspSYV0.js";import{D as ta,a as oa,b as da,c as l,F as na,L as ha,M as ia}from"./music-Co2R5rSR.js";import{a as ya,E as ra}from"./eye-BfYwiu9A.js";import{G as ka}from"./grip-vertical-Bv_4pkjN.js";import{R as pa,T as sa}from"./trash-2-BGP0wMN7.js";/**
+import{K as e,M as L0,Q as x0,T as w0,U as f0,V as I0,W as C0,C as N0,Y as b0,w as $0,Z as q0,y as s,_ as z0,$ as S0,z as A0,a0 as H0,a1 as j0,a2 as V0,a3 as P0,a4 as B0,a5 as D0,a6 as F0,a7 as R0,a8 as T0,a9 as U0,aa as O0,P as G0,ab as Z0,ac as W0,v as E0,ad as X0,ae as K0,af as Q0,ag as J0,ah as Y0,ai as ea,X as aa,aj as ca,ak as fL,al as IL,am as CL,j as NL}from"./index-ByR_n0g5.js";import{D as ta,a as oa,b as da,c as l,F as na,L as ha,M as ia}from"./music-CzZVX9lt.js";import{a as ya,E as ra}from"./eye-BhaTX13E.js";import{G as ka}from"./grip-vertical-B-w3JIIY.js";import{R as pa,T as sa}from"./trash-2-CQUo9mrD.js";/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
diff --git a/hifi/assets/index-BlspSYV0.js b/hifi/assets/index-ByR_n0g5.js
similarity index 98%
rename from hifi/assets/index-BlspSYV0.js
rename to hifi/assets/index-ByR_n0g5.js
index 09635e5..8f56f8a 100644
--- a/hifi/assets/index-BlspSYV0.js
+++ b/hifi/assets/index-ByR_n0g5.js
@@ -1,4 +1,4 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/iconRegistry-B5nlmNdu.js","assets/music-Co2R5rSR.js","assets/eye-BfYwiu9A.js","assets/grip-vertical-Bv_4pkjN.js","assets/trash-2-BGP0wMN7.js","assets/DownloadsPage-BLst4c-p.js","assets/downloads-B9pqFegV.js","assets/Impressum-BcYT0HIo.js","assets/LegalPageView-Cw-csW7_.js","assets/Datenschutz-Q_MacwGA.js","assets/AGB-CaHRKcOb.js","assets/Dashboard-7_CH1XOt.js","assets/ImageOptimizer-sgJymAi_.js","assets/contactRequests-Qfsfq7Lb.js","assets/Brands-DT4cKYHY.js","assets/ImageUploadField-Bho12Gdh.js","assets/resizeImage-C6PvAwh0.js","assets/TextStyleWidget-xhHRXR-m.js","assets/SortableList-DwfJpzeR.js","assets/sortable.esm-D1g5h7xA.js","assets/Models-cJVztP8m.js","assets/ViewOnSite-BPLJTKOt.js","assets/GalleryBrands-DTIwD_Dw.js","assets/GalleryProjects-CXCOXFl8.js","assets/GalleryPhotos-DcLBcwrS.js","assets/Packages-Qhz_q4KJ.js","assets/Services-Y3-jTFYy.js","assets/Faqs-XZAy4Qhr.js","assets/Partners-gT0HmSOb.js","assets/Downloads-DZAlZIUI.js","assets/HomeSections-ZA3Lw7hJ.js","assets/RichTextEditor-CO4xzKJO.js","assets/SaveBar-CVCIr_4p.js","assets/ContactRequests-BC1CK4Mp.js","assets/WebsiteSettings-LkaVnoOm.js","assets/LegalSettings-DOcxDZNv.js","assets/EmailSettings-Co9DiTkD.js","assets/DatabaseSettings-561PD_Cp.js"])))=>i.map(i=>d[i]);
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/iconRegistry-D2FmHLLX.js","assets/music-CzZVX9lt.js","assets/eye-BhaTX13E.js","assets/grip-vertical-B-w3JIIY.js","assets/trash-2-CQUo9mrD.js","assets/DownloadsPage-Mq08ayRG.js","assets/downloads-B9pqFegV.js","assets/Impressum-teGCkFgH.js","assets/LegalPageView-DyCn1nFB.js","assets/Datenschutz-CL1ElwlX.js","assets/AGB-B7VmuQYo.js","assets/Dashboard-BKouj-VO.js","assets/ImageOptimizer-Cj7lSnrS.js","assets/contactRequests-Qfsfq7Lb.js","assets/Brands-Dgm1mgy_.js","assets/ImageUploadField-IMilh1OJ.js","assets/resizeImage-C6PvAwh0.js","assets/TextStyleWidget-DgrYcrXW.js","assets/SortableList-fUokp5Er.js","assets/sortable.esm-feaRoI7N.js","assets/VehicleCatalogDialog-Db4N0Sxf.js","assets/Models-DhJaITYo.js","assets/ViewOnSite-DuRTh7q1.js","assets/GalleryBrands-DMdXRxbf.js","assets/GalleryProjects-C29FLapQ.js","assets/GalleryPhotos-wQg2F1lU.js","assets/Packages-DgflBHGJ.js","assets/Services-BJ8NVLPL.js","assets/Faqs-Dw2czuAP.js","assets/Partners-BN6q2vm6.js","assets/Downloads-aBsc1dNO.js","assets/HomeSections-Bmnp6Q1H.js","assets/RichTextEditor-DOxjC-7q.js","assets/SaveBar-DM4P28zl.js","assets/ContactRequests-DolPRSAD.js","assets/WebsiteSettings-TrTUFhaa.js","assets/LegalSettings-BIpr5BoD.js","assets/EmailSettings-1PwpumI2.js","assets/DatabaseSettings-C696yBmO.js"])))=>i.map(i=>d[i]);
function ov(e,t){for(var n=0;nr[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function pp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gp={exports:{}},ra={},xp={exports:{}},Y={};/**
* @license React
* react.production.min.js
@@ -295,7 +295,7 @@ Error generating stack: `+i.message+`
* See the LICENSE file in the root directory of this source tree.
*/const RP=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],VP=Z("zap",RP),Oy=m.createContext(null);function IP(){const e=new Date,t=e.getHours()+e.getMinutes()/60;return t>=6.5&&t<21?"light":"dark"}function FP({children:e}){const[t,n]=m.useState(()=>{const s=localStorage.getItem("hifi-theme");return s==="light"||s==="dark"?s:IP()});m.useEffect(()=>{document.documentElement.classList.toggle("dark",t==="dark"),localStorage.setItem("hifi-theme",t)},[t]);const r=()=>n(s=>s==="dark"?"light":"dark");return a.jsx(Oy.Provider,{value:{theme:t,toggleTheme:r},children:e})}function OP(){return m.useContext(Oy)}const zP={nav:{mainNav:"Hauptnavigation",menu:"Menü",call:"Anrufen",openMenu:"Menü öffnen",closeMenu:"Menü schließen",close:"Schließen",adminPanel:"Zum Admin-Panel",vehicles:"Fahrzeuge",services:"Leistungen",gallery:"Galerie",contact:"Kontakt",whatsapp:"WhatsApp",shop:"Zum Shop",downloads:"Downloads"},themeToggle:{label:"Theme umschalten"},languageToggle:{label:"Sprache auswählen"},footer:{routePlan:"Route planen",contactHeading:"Kontakt",contactForm:"Kontaktformular",hoursHeading:"Öffnungszeiten",open:"Geöffnet",closed:"Geschlossen",days:{monFri:"Montag – Freitag",sat:"Samstag",sun:"Sonntag"},copyright:e=>`© ${e} HifiPlanet. Alle Angaben ohne Gewähr.`,imprint:"Impressum",privacy:"Datenschutz",terms:"AGB",downloads:"Downloads",cookieSettings:"Cookie-Einstellungen"},cookieConsent:{bannerText:"Wir verwenden nur technisch notwendige Cookies. Für Google Maps, YouTube-Videos und Statistik-Cookies benötigen wir zusätzlich deine Zustimmung, da dabei Daten an Google übertragen werden.",moreInfo:"Mehr dazu in unserer",privacyPolicy:"Datenschutzerklärung",settings:"Einstellungen",onlyNecessary:"Nur notwendige",acceptAll:"Alle akzeptieren",modalTitle:"Cookie-Einstellungen",modalIntro:"Lege fest, welche Kategorien du zulassen möchtest. Mehr dazu in unserer",necessaryTitle:"Notwendig",necessaryDesc:"Für den Betrieb der Website erforderlich (z. B. Login-Session, Theme- und Cookie-Einstellung). Kann nicht deaktiviert werden.",externalTitle:"Externe Medien",externalDesc:"Google Maps und YouTube-Videos. Beim Laden werden Daten (u. a. deine IP-Adresse) an Google übertragen.",analyticsTitle:"Statistik",analyticsDesc:"Google Analytics hilft uns zu verstehen, wie die Website genutzt wird. Dabei werden Daten an Google übertragen.",cancel:"Abbrechen",saveSelection:"Auswahl speichern"},maintenance:{title:"Wartungsarbeiten",defaultMessage:"Dieser Bereich wird gerade aktualisiert. Bitte schau in Kürze wieder vorbei.",login:"Anmelden"},countdown:{eyebrow:"Neue Website",title:"Bald wird’s laut.",message:"Wir drehen gerade die letzten Schrauben fest. Unsere neue Website mit allen Paketen für dein Fahrzeug startet in Kürze.",days:"Tage",hours:"Stunden",minutes:"Minuten",seconds:"Sekunden",launchPrefix:"Start",launchAt:"um",clock:"Uhr",addToCalendar:"In den Kalender",calendarTitle:"Launch der neuen HifiPlanet-Website",questions:"Fragen vorab?",liveEyebrow:"Jetzt online",liveTitle:"Wir sind live!",liveMessage:"Einen Moment, die Seite öffnet sich …",preview:"Vorschau – nur für dich sichtbar",closePreview:"Vorschau schließen",adminActive:"Countdown aktiv – Besucher sehen bis {date} nur den Teaser.",adminPreview:"Vorschau ansehen"},lightbox:{close:"Schließen",previous:"Vorheriges Bild",next:"Nächstes Bild"},home:{metaTitle:"Car-Hifi Umbauten nach Maß",metaDescription:"HifiPlanet – dein Car-Hifi Spezialist in Amorbach. Marke und Modell wählen, passende Sound-Pakete entdecken und unverbindlich anfragen.",stickyCta:"Bereit für deinen Sound-Umbau?",selectVehicle:"Fahrzeug auswählen",getInTouch:"Kontakt aufnehmen",welcome:"Willkommen bei HifiPlanet",heroTitle:"Home of pure Sound",heroSubtitle:"Dein Car-Hifi Spezialist für individuelle Sound-Umbauten. Wähle dein Fahrzeug, entdecke passende Pakete und frag unverbindlich an – wir kümmern uns um den Rest.",stats:[{value:"20+",label:"Jahre Erfahrung"},{value:"Riesige",label:"3D-Druckfarm im eigenen Haus"},{value:"Eigene",label:"CNC- & Laserwerkstatt"},{value:"International",label:"anerkannter Car-Hifi-Spezialist"}],brandsHeading:"Marken, mit denen wir arbeiten",youtubeBadge:"HifiPlanet präsentiert",youtubeTitle:"Das Handwerk hinter deinem Sound",youtubeText:"Entdecke die Handwerkskunst hinter unserer Arbeit",youtubeCta:"Jetzt ansehen",heroImageAlt:"Ground Zero Subwoofer und Endstufen mit violetter Ambiente-Beleuchtung",craftImageAlt:"Individueller Subwoofer-Bau",adviceImageAlt:"Endstufen-Einbau mit Ambiente-Beleuchtung",moreImageAlt:"Hochwertige Endstufe und Subwoofer, Studioaufnahme",craftEyebrow:"Handwerk",craftTitle:"Präzisionsarbeit in jedem Detail",craftText:"Ob eigens gefertigte Subwoofer-Gehäuse, integrierte Beleuchtung oder unsichtbar verlegte Kabelwege – dank eigener CNC-, Laser- und 3D-Druck-Fertigung entstehen bei uns Lösungen, die es von der Stange nicht gibt.",adviceEyebrow:"Beratung",adviceTitle:"Von der ersten Idee bis zum letzten Schliff",adviceText:"Jedes Fahrzeug und jeder Anspruch ist anders. Deshalb beraten wir dich persönlich und unverbindlich – vom dezenten Upgrade bis zum kompromisslosen High-End-System.",insightsTitle:"Einblicke in unsere Umbauten",insightsText:"Vom unauffälligen Sound-Upgrade bis zum aufwendigen Komplettumbau – Handarbeit aus unserer Werkstatt in Amorbach.",galleryAlts:["Individueller Subwoofer-Bau mit Ground Zero Bässen","Endstufen-Einbau mit violetter Ambiente-Beleuchtung","Hochtöner- und Mitteltöner-Einbau von Focal Utopia","Sony Navigationssystem mit Apple CarPlay im Cockpit","Verbauter Hochtöner im Kofferraum","Individueller Subwoofer-Einbau mit LED-Beleuchtung im Kofferraum"],reviewsRating:"5,0 von 181 Kunden bewertet",reviewsRatingDynamic:(e,t)=>`${e.toFixed(1).replace(".",",")} von ${t} Kunden bewertet`,reviewsText:"Das sagen unsere Kunden über uns.",reviewsLink:"Alle Bewertungen auf Google ansehen →",testimonials:[{name:"Thomas K.",text:"Über YouTube auf dieses Klang-Juwel gestoßen. Beratung und Empfehlungen sind erstklassig – der Tesla-Vorführwagen hat meine Leidenschaft für guten Sound neu entfacht."},{name:"Andreas I.",text:"Sehr professionelle Beratung und Service. Obwohl ich von VAG zu Mercedes gewechselt bin, wurde alles reibungslos angepasst. Die 3-Wege-Lautsprecher und zwei Subwoofer liefern außergewöhnliche Leistung."},{name:"Thomas F.",text:"Kompletter Audi A4 B9 Umbau hat meine Erwartungen übertroffen. Von Anfang bis Ende professionell, mit tadelloser Verarbeitung und Klangqualität."},{name:"Drago G.",text:"Beeindruckt von der CNC-Arbeit, die auf YouTube gezeigt wird. Angefangen mit 3D-gedruckten Lautsprecherringen für meinen Ford Mustang – daraus wurde ein viel größeres Projekt."},{name:"Leonardo B.",text:"Toller Service und meisterhafte Handwerkskunst. Saubere Installation, Leidenschaft in jedem Detail erkennbar."},{name:"Marcel S.",text:"Unschlagbares Preis-Leistungs-Verhältnis. Das Team hat sich viel Zeit genommen, um genau die Lösung für mein Budget zu finden."},{name:"Julia W.",text:"Endlich ein Betrieb, der auch Wohnmobile ernst nimmt. Die Soundanlage in unserem Camper klingt jetzt wie im Wohnzimmer."},{name:"Kevin R.",text:"Dashcam und Alarmanlage in einem Termin sauber verbaut, keine sichtbaren Kabel. Absolute Empfehlung für alle, die Wert auf Verarbeitung legen."},{name:"Sabrina H.",text:"Mein Oldtimer hat jetzt modernen Sound, ohne dass es dem Original-Look geschadet hätte. Genau das habe ich gesucht."},{name:"Niklas P.",text:"Von der ersten Anfrage bis zum fertigen Umbau lief alles reibungslos. Ehrliche Beratung ohne Verkaufsdruck."}],moreTitle:"Mehr als nur Car-Hifi",moreText:"Neben individuellen Sound-Umbauten bieten wir CNC-Zerspanung, Lasertechnik, 3D-Druck und mehr – alles aus einer Hand in unserer eigenen Werkstatt.",moreCta:"Alle Leistungen entdecken",faqHeading:"Häufig gestellte Fragen"},vehicleSelect:{loading:"Marken werden geladen…",metaTitle:"Fahrzeug auswählen",metaDescription:"Wähle deine Fahrzeugmarke und dein Modell und entdecke passende Car-Hifi Sound-Pakete von HifiPlanet.",title:"Fahrzeug auswählen",intro:"Wähle zuerst deine Marke, dann dein Modell – wir zeigen dir direkt die passenden Sound-Pakete.",empty:"Es sind noch keine Marken hinterlegt."},vehicleSearch:{label:"Fahrzeug direkt suchen",placeholder:"Direkt suchen, z. B. Golf 7 oder BMW 3er",clear:"Suche leeren",loading:"Suche läuft…",noResults:"Kein passendes Fahrzeug gefunden.",contact:"Frag uns einfach direkt.",allModels:"Alle Modelle"},brandPage:{metaTitleFallback:"Modell auswählen",metaDescription:e=>`Wähle dein ${e} Modell und entdecke passende Car-Hifi Sound-Pakete von HifiPlanet.`,loading:"Lädt…",breadcrumbVehicles:"Fahrzeuge",titleSuffix:"Modell wählen",empty:"Für diese Marke sind noch keine Modelle hinterlegt."},modelPage:{customRequest:"Individuell anfragen",customHint:"Nicht das Passende dabei? Wir stellen dir gerne ein Paket nach deinen Wünschen zusammen.",whatsappText:(e,t)=>`Hallo HifiPlanet, ich interessiere mich für einen Car-Hifi-Umbau für meinen ${e} ${t}.`,metaTitleFallback:"Sound-Pakete",metaTitle:(e,t)=>`${e} ${t} Sound-Pakete`,metaDescription:(e,t)=>`Car-Hifi Sound-Pakete für ${e} ${t} inkl. aktueller Preise – von HifiPlanet unverbindlich anfragen.`,loading:"Lädt…",breadcrumbVehicles:"Fahrzeuge",titleSuffix:"Sound-Pakete",empty:"Für dieses Modell sind noch keine Pakete hinterlegt.",totalPrice:"ab ca.",productLoading:"Produkt wird geladen…",requestContact:"Kontakt anfragen",badges:{recommended:"Empfohlen",popular:"Am beliebtesten",tip:"Tipp",coming_soon:"Coming soon"},videoLink:"Zum Video",moreBullets:e=>e===1?"+ 1 weitere Leistung":`+ ${e} weitere Leistungen`,showMore:"Mehr anzeigen",lessBullets:"Weniger anzeigen",wheelHint:"Mit dem Mausrad blättern"},leistungen:{metaTitle:"Leistungen",metaDescription:"Car-Hifi, Wohnmobil & Caravan, Oldtimer, CNC-Zerspanung, Lasertechnik, 3D-Druck, Alarmanlagen und Dash Cams – alles aus einer Hand bei HifiPlanet in Amorbach.",title:"Unsere Leistungen",intro:"Von individuellen Sound-Umbauten bis zur eigenen CNC- und 3D-Druck-Fertigung – alles aus einer Hand in unserer Werkstatt in Amorbach.",notListedTitle:"Dein Projekt ist nicht dabei?",notListedText:"Sprich uns einfach an – wir finden gemeinsam die passende Lösung.",contact:"Kontakt aufnehmen"},contactPage:{sendAnother:"Weitere Anfrage senden",vehicleBoxTitle:"Dein Fahrzeug:",privacyPre:"Mit dem Absenden stimmst du zu, dass wir deine Angaben zur Bearbeitung der Anfrage verwenden. Mehr dazu in der ",privacyLink:"Datenschutzerklärung",privacyPost:".",mapIframeTitle:"Standort von HifiPlanet in Amorbach auf Google Maps",whatsappText:(e,t,n)=>`Hallo HifiPlanet, ich interessiere mich für das Paket "${n}" für meinen ${e} ${t}.`,metaTitle:"Kontakt",metaDescription:"Kontaktiere HifiPlanet in Amorbach für dein individuelles Car-Hifi Projekt – wir beraten dich gerne unverbindlich.",title:"Kontakt aufnehmen",heroEyebrow:"Kontakt",heroTitlePre:"Sprich",heroTitleAccent:"mit",heroTitlePost:"uns.",heroSubtitle:"Ob Anlage, Einbau oder Klang-Tuning für dein Fahrzeug — schreib uns, wir melden uns schnellstmöglich zurück.",packageBoxTitle:"Deine Anfrage bezieht sich auf",formTitle:"Anfrage senden",sentTitle:"Anfrage gesendet ✓",sentText:"Danke! Wir melden uns innerhalb eines Werktags bei dir.",contextIntro:"Deine Anfrage bezieht sich auf:",contextBrand:"Marke",contextModel:"Modell",contextPackage:"Paket",contextProduct:"Produkt",packagePrice:"Paketpreis",upgrades:"Upgrades",optionalUpgrades:"Optionale Upgrades",totalWithUpgrades:"Gesamt inkl. Upgrades",nameLabel:"Name *",namePlaceholder:"Max Mustermann",emailLabel:"E-Mail *",emailPlaceholder:"max@mail.de",phoneLabel:"Telefon",phonePlaceholder:"Optional",vinLabel:"Fahrgestellnummer (FIN)",vinPlaceholder:"Optional – hilft bei der Einschätzung",messageLabel:"Nachricht",messagePlaceholder:"Erzähl uns von deinem Projekt – Fahrzeug, Wunschklang, Budget …",requiredHint:"* Pflichtfelder",sending:"Wird gesendet…",submit:"Anfrage senden",cardTitle:"HiFi Planet Amorbach",address:"Adresse",phone:"Telefon",email:"E-Mail",hours:"Öffnungszeiten",hoursWeek:"Mo–Fr: 9:00–18:00 Uhr",hoursSat:"Sa: 10:00–13:00 Uhr",hoursWeekDays:"Mo–Fr",hoursWeekTime:"9:00 – 18:00 Uhr",hoursSatDay:"Sa",hoursSatTime:"10:00 – 13:00 Uhr",directionsTitle:"Anfahrt",mapEmbedName:"Die Google-Maps-Karte",mapOpenChip:"In Maps öffnen",routePlan:"Route planen",featurePremiumTitle:"Premium Klang",featurePremiumSub:"Höchste Qualität",featureGermanyTitle:"Made in Germany",featureGermanySub:"Präzise Handarbeit",featureIndividualTitle:"Individuell",featureIndividualSub:"Maßgeschneiderte Lösungen",featureExpertsTitle:"Experten Team",featureExpertsSub:"Leidenschaft & Know-how"},galleryOverview:{metaTitle:"Bildergalerie",metaDescription:"Einblicke in unsere Car-Hifi Umbauten – nach Marke sortiert. Wähle eine Marke und entdecke die Projekte.",title:"Bildergalerie",intro:"Wähle eine Marke und entdecke unsere Umbauten im Detail.",loading:"Lädt…",empty:"Es sind noch keine Galerie-Marken hinterlegt."},galleryBrandPage:{metaTitleFallback:"Bildergalerie",metaTitle:e=>`${e} Umbauten`,metaDescription:e=>`Einblicke in unsere ${e} Car-Hifi Umbauten.`,loading:"Lädt…",breadcrumbGallery:"Galerie",titleSuffix:"Projekt wählen",empty:"Für diese Marke sind noch keine Projekte hinterlegt."},galleryProjectPage:{ctaTitle:"So etwas für dein Auto?",ctaText:"Erzähl uns von deinem Fahrzeug – wir planen einen ähnlichen Umbau für dich.",ctaButton:"Ähnlichen Umbau anfragen",ctaTopic:e=>`Mich interessiert ein ähnlicher Umbau wie "${e}" aus eurer Galerie.`,metaTitleFallback:"Bildergalerie",metaDescription:e=>`Fotos unseres ${e} Umbaus.`,loading:"Lädt…",breadcrumbGallery:"Galerie",empty:"Für dieses Projekt sind noch keine Fotos hinterlegt.",enlargeImage:"Bild vergrößern"},downloadsPage:{metaTitle:"Downloads",metaDescription:"Dateien und Songs von HifiPlanet zum Anhören und Herunterladen.",title:"Downloads",intro:"Hier stellen wir dir Dateien und Songs bereit – direkt anhören oder herunterladen.",loading:"Lädt…",empty:"Aktuell stehen keine Downloads bereit.",download:"Herunterladen",lockedTitle:"Geschützter Bereich",lockedText:"Bitte gib das Passwort ein, das du von uns bekommen hast.",passwordLabel:"Passwort",unlock:"Freischalten",unlocking:"Wird geprüft…",wrongPassword:"Das Passwort stimmt leider nicht."},errors:{generic:"Da ist etwas schiefgelaufen. Bitte versuche es noch einmal.",network:"Keine Verbindung zum Server. Bitte prüfe deine Internetverbindung.",notFound:"Diese Seite gibt es nicht (mehr).",rateLimited:"Zu viele Anfragen in kurzer Zeit. Bitte versuche es später noch einmal oder ruf uns an.",invalidInput:"Bitte gib deinen Namen und eine gültige E-Mail-Adresse an.",server:"Auf dem Server ist ein Fehler aufgetreten. Bitte versuche es später noch einmal.",maintenance:"Dieser Bereich wird gerade überarbeitet. Bitte schau später wieder vorbei."},notFound:{metaTitle:"Seite nicht gefunden",title:"Diese Seite haben wir nicht gefunden",text:"Vielleicht ist der Link veraltet oder hat einen Tippfehler. Hier geht es direkt weiter:",toVehicles:"Fahrzeug wählen",toContact:"Kontakt aufnehmen",toHome:"Zur Startseite"}},BP={nav:{mainNav:"Main navigation",menu:"Menu",call:"Call",openMenu:"Open menu",closeMenu:"Close menu",close:"Close",adminPanel:"Go to admin panel",vehicles:"Vehicles",services:"Services",gallery:"Gallery",contact:"Contact",whatsapp:"WhatsApp",shop:"Visit shop",downloads:"Downloads"},themeToggle:{label:"Toggle theme"},languageToggle:{label:"Select language"},footer:{routePlan:"Get directions",contactHeading:"Contact",contactForm:"Contact form",hoursHeading:"Opening hours",open:"Open",closed:"Closed",days:{monFri:"Monday – Friday",sat:"Saturday",sun:"Sunday"},copyright:e=>`© ${e} HifiPlanet. All information without guarantee.`,imprint:"Legal notice",privacy:"Privacy",terms:"Terms",downloads:"Downloads",cookieSettings:"Cookie settings"},cookieConsent:{bannerText:"We only use technically necessary cookies. For Google Maps, YouTube videos and analytics cookies we need your additional consent, since data is transferred to Google in that case.",moreInfo:"More details in our",privacyPolicy:"privacy policy",settings:"Settings",onlyNecessary:"Necessary only",acceptAll:"Accept all",modalTitle:"Cookie settings",modalIntro:"Choose which categories you want to allow. More details in our",necessaryTitle:"Necessary",necessaryDesc:"Required to operate the website (e.g. login session, theme and cookie preference). Cannot be disabled.",externalTitle:"External media",externalDesc:"Google Maps and YouTube videos. Loading them transfers data (including your IP address) to Google.",analyticsTitle:"Analytics",analyticsDesc:"Google Analytics helps us understand how the website is used. This transfers data to Google.",cancel:"Cancel",saveSelection:"Save selection"},maintenance:{title:"Under maintenance",defaultMessage:"This area is currently being updated. Please check back shortly.",login:"Log in"},countdown:{eyebrow:"New website",title:"Things are about to get loud.",message:"We are tightening the last screws. Our new website with every package for your vehicle launches shortly.",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds",launchPrefix:"Launch",launchAt:"at",clock:"",addToCalendar:"Add to calendar",calendarTitle:"Launch of the new HifiPlanet website",questions:"Questions?",liveEyebrow:"Now online",liveTitle:"We are live!",liveMessage:"One moment, the site is opening …",preview:"Preview – only visible to you",closePreview:"Close preview",adminActive:"Countdown active – visitors only see the teaser until {date}.",adminPreview:"Open preview"},lightbox:{close:"Close",previous:"Previous image",next:"Next image"},home:{metaTitle:"Custom Car-Hifi Installations",metaDescription:"HifiPlanet – your car-hifi specialist in Amorbach, Germany. Choose your make and model, discover matching sound packages and get in touch, no obligation.",stickyCta:"Ready for your sound upgrade?",selectVehicle:"Select vehicle",getInTouch:"Get in touch",welcome:"Welcome to HifiPlanet",heroTitle:"Home of pure Sound",heroSubtitle:"Your car-hifi specialist for custom sound installations. Choose your vehicle, discover the right package and get in touch, no obligation – we take care of the rest.",stats:[{value:"20+",label:"years of experience"},{value:"Huge",label:"in-house 3D print farm"},{value:"In-house",label:"CNC & laser workshop"},{value:"International",label:"recognized car-hifi specialist"}],brandsHeading:"Brands we work with",youtubeBadge:"HifiPlanet presents",youtubeTitle:"The craft behind your sound",youtubeText:"Discover the artistry behind our work",youtubeCta:"Watch now",heroImageAlt:"Ground Zero subwoofer and amplifiers with purple ambient lighting",craftImageAlt:"Custom subwoofer build",adviceImageAlt:"Amplifier installation with ambient lighting",moreImageAlt:"High-end amplifier and subwoofer, studio shot",craftEyebrow:"Craftsmanship",craftTitle:"Precision work in every detail",craftText:"Whether custom-built subwoofer enclosures, integrated lighting or invisibly routed cabling – our own CNC, laser and 3D-printing production means we can build solutions you simply can't buy off the shelf.",adviceEyebrow:"Consultation",adviceTitle:"From the first idea to the final touch",adviceText:"Every vehicle and every requirement is different. That's why we advise you personally and without obligation – from a subtle upgrade to an uncompromising high-end system.",insightsTitle:"A look at our installations",insightsText:"From subtle sound upgrades to elaborate full installations – handcrafted in our workshop in Amorbach.",galleryAlts:["Custom subwoofer build with Ground Zero bass drivers","Amplifier installation with purple ambient lighting","Tweeter and midrange installation by Focal Utopia","Sony navigation system with Apple CarPlay in the cockpit","Installed tweeter in the trunk","Custom subwoofer installation with LED lighting in the trunk"],reviewsRating:"Rated 5.0 by 181 customers",reviewsRatingDynamic:(e,t)=>`Rated ${e.toFixed(1)} by ${t} customers`,reviewsText:"Here's what our customers say about us.",reviewsLink:"See all reviews on Google →",testimonials:[{name:"Thomas K.",text:"Found this gem through YouTube. Advice and recommendations are top-notch – the Tesla demo car reignited my passion for great sound."},{name:"Andreas I.",text:"Very professional advice and service. Even though I switched from VAG to Mercedes, everything was adapted smoothly. The 3-way speakers and two subwoofers deliver outstanding performance."},{name:"Thomas F.",text:"The complete Audi A4 B9 build exceeded my expectations. Professional from start to finish, with flawless workmanship and sound quality."},{name:"Drago G.",text:"Impressed by the CNC work shown on YouTube. Started with 3D-printed speaker rings for my Ford Mustang – it turned into a much bigger project."},{name:"Leonardo B.",text:"Great service and masterful craftsmanship. Clean installation, passion visible in every detail."},{name:"Marcel S.",text:"Unbeatable value for money. The team took a lot of time to find the exact solution for my budget."},{name:"Julia W.",text:"Finally a shop that takes motorhomes seriously too. The sound system in our camper now sounds like a living room."},{name:"Kevin R.",text:"Dash cam and alarm system installed cleanly in a single appointment, no visible cables. Highly recommended for anyone who values quality workmanship."},{name:"Sabrina H.",text:"My classic car now has modern sound without compromising the original look. Exactly what I was looking for."},{name:"Niklas P.",text:"From the first inquiry to the finished build, everything went smoothly. Honest advice with no sales pressure."}],moreTitle:"More than just car-hifi",moreText:"Besides custom sound installations, we also offer CNC machining, laser technology, 3D printing and more – all from a single source in our own workshop.",moreCta:"Discover all our services",faqHeading:"Frequently asked questions"},vehicleSelect:{loading:"Loading brands…",metaTitle:"Select your vehicle",metaDescription:"Choose your vehicle make and model and discover matching car-hifi sound packages from HifiPlanet.",title:"Select your vehicle",intro:"Choose your make first, then your model – we'll show you the matching sound packages right away.",empty:"No brands have been added yet."},vehicleSearch:{label:"Search for your vehicle",placeholder:"Search directly, e.g. Golf 7 or BMW 3 Series",clear:"Clear search",loading:"Searching…",noResults:"No matching vehicle found.",contact:"Just ask us directly.",allModels:"All models"},brandPage:{metaTitleFallback:"Select a model",metaDescription:e=>`Choose your ${e} model and discover matching car-hifi sound packages from HifiPlanet.`,loading:"Loading…",breadcrumbVehicles:"Vehicles",titleSuffix:"Select a model",empty:"No models have been added for this brand yet."},modelPage:{customRequest:"Request a custom setup",customHint:"Nothing quite right? We will happily put together a package to suit you.",whatsappText:(e,t)=>`Hello HifiPlanet, I am interested in a car audio upgrade for my ${e} ${t}.`,metaTitleFallback:"Sound packages",metaTitle:(e,t)=>`${e} ${t} sound packages`,metaDescription:(e,t)=>`Car-hifi sound packages for the ${e} ${t} including current prices – get in touch with HifiPlanet, no obligation.`,loading:"Loading…",breadcrumbVehicles:"Vehicles",titleSuffix:"Sound packages",empty:"No packages have been added for this model yet.",totalPrice:"from approx.",productLoading:"Loading product…",requestContact:"Request contact",badges:{recommended:"Recommended",popular:"Most popular",tip:"Tip",coming_soon:"Coming soon"},videoLink:"Watch video",moreBullets:e=>e===1?"+ 1 more feature":`+ ${e} more features`,showMore:"Show more",lessBullets:"Show less",wheelHint:"Scroll to browse"},leistungen:{metaTitle:"Services",metaDescription:"Car-hifi, motorhomes & caravans, classic cars, CNC machining, laser technology, 3D printing, alarm systems and dash cams – all from a single source at HifiPlanet in Amorbach.",title:"Our services",intro:"From custom sound installations to our own CNC and 3D-printing production – all from a single source in our workshop in Amorbach.",notListedTitle:"Don't see your project?",notListedText:"Just get in touch – we'll find the right solution together.",contact:"Get in touch"},contactPage:{sendAnother:"Send another request",vehicleBoxTitle:"Your vehicle:",privacyPre:"By sending this form you agree that we use your details to handle your request. Learn more in our ",privacyLink:"privacy policy",privacyPost:".",mapIframeTitle:"HifiPlanet location in Amorbach on Google Maps",whatsappText:(e,t,n)=>`Hello HifiPlanet, I am interested in the "${n}" package for my ${e} ${t}.`,metaTitle:"Contact",metaDescription:"Get in touch with HifiPlanet in Amorbach for your custom car-hifi project – we're happy to advise you, no obligation.",title:"Get in touch",heroEyebrow:"Contact",heroTitlePre:"Talk",heroTitleAccent:"to",heroTitlePost:"us.",heroSubtitle:"Whether it's a system, installation, or sound tuning for your car — write to us, we'll get back to you as soon as possible.",packageBoxTitle:"Your inquiry relates to",formTitle:"Send inquiry",sentTitle:"Inquiry sent ✓",sentText:"Thanks! We'll get back to you within one business day.",contextIntro:"Your inquiry relates to:",contextBrand:"Brand",contextModel:"Model",contextPackage:"Package",contextProduct:"Product",packagePrice:"Package price",upgrades:"Upgrades",optionalUpgrades:"Optional upgrades",totalWithUpgrades:"Total incl. upgrades",nameLabel:"Name *",namePlaceholder:"Max Mustermann",emailLabel:"Email *",emailPlaceholder:"max@mail.de",phoneLabel:"Phone",phonePlaceholder:"Optional",vinLabel:"Vehicle identification number (VIN)",vinPlaceholder:"Optional – helps us assess your vehicle",messageLabel:"Message",messagePlaceholder:"Tell us about your project – vehicle, desired sound, budget …",requiredHint:"* Required fields",sending:"Sending…",submit:"Send inquiry",cardTitle:"HiFi Planet Amorbach",address:"Address",phone:"Phone",email:"Email",hours:"Opening hours",hoursWeek:"Mon–Fri: 9:00 AM–6:00 PM",hoursSat:"Sat: 10:00 AM–1:00 PM",hoursWeekDays:"Mon–Fri",hoursWeekTime:"9:00 AM – 6:00 PM",hoursSatDay:"Sat",hoursSatTime:"10:00 AM – 1:00 PM",directionsTitle:"Directions",mapEmbedName:"The Google Maps map",mapOpenChip:"Open in Maps",routePlan:"Get directions",featurePremiumTitle:"Premium Sound",featurePremiumSub:"Highest quality",featureGermanyTitle:"Made in Germany",featureGermanySub:"Precision craftsmanship",featureIndividualTitle:"Custom-built",featureIndividualSub:"Tailored solutions",featureExpertsTitle:"Expert Team",featureExpertsSub:"Passion & know-how"},galleryOverview:{metaTitle:"Photo gallery",metaDescription:"A look at our car-hifi installations – sorted by brand. Choose a brand and explore the projects.",title:"Photo gallery",intro:"Choose a brand and explore our installations in detail.",loading:"Loading…",empty:"No gallery brands have been added yet."},galleryBrandPage:{metaTitleFallback:"Photo gallery",metaTitle:e=>`${e} installations`,metaDescription:e=>`A look at our ${e} car-hifi installations.`,loading:"Loading…",breadcrumbGallery:"Gallery",titleSuffix:"Select a project",empty:"No projects have been added for this brand yet."},galleryProjectPage:{ctaTitle:"Want something like this for your car?",ctaText:"Tell us about your vehicle and we will plan a similar build for you.",ctaButton:"Request a similar build",ctaTopic:e=>`I am interested in a build similar to "${e}" from your gallery.`,metaTitleFallback:"Photo gallery",metaDescription:e=>`Photos of our ${e} installation.`,loading:"Loading…",breadcrumbGallery:"Gallery",empty:"No photos have been added for this project yet.",enlargeImage:"Enlarge image"},downloadsPage:{metaTitle:"Downloads",metaDescription:"Files and songs from HifiPlanet to listen to and download.",title:"Downloads",intro:"Here you will find files and songs we provide for you – listen right here or download them.",loading:"Loading…",empty:"There are no downloads available right now.",download:"Download",lockedTitle:"Protected area",lockedText:"Please enter the password you received from us.",passwordLabel:"Password",unlock:"Unlock",unlocking:"Checking…",wrongPassword:"Sorry, that password is not correct."},errors:{generic:"Something went wrong. Please try again.",network:"No connection to the server. Please check your internet connection.",notFound:"This page does not exist (anymore).",rateLimited:"Too many requests in a short time. Please try again later or give us a call.",invalidInput:"Please enter your name and a valid email address.",server:"A server error occurred. Please try again later.",maintenance:"This section is being updated. Please check back later."},notFound:{metaTitle:"Page not found",title:"We could not find this page",text:"The link may be outdated or contain a typo. Continue here:",toVehicles:"Choose your vehicle",toContact:"Get in touch",toHome:"Back to the homepage"}},vn={de:zP,en:BP},zy=m.createContext(null);function $P({children:e}){const[t,n]=m.useState(null),[r,s]=m.useState(!0);m.useEffect(()=>{ie.get("/auth/me").then(d=>n(d.authenticated===!1?null:d)).catch(()=>n(null)).finally(()=>s(!1))},[]);const i=async(d,f)=>{const h=await ie.post("/auth/login",{username:d,password:f});return h.requires_2fa?{requires2fa:!0}:(n(h),{requires2fa:!1})},o=async d=>{const f=await ie.post("/auth/verify-2fa",{code:d});n(f)},l=async()=>{await ie.post("/auth/logout",{}),n(null)},u=async()=>{const d=await ie.get("/auth/me");n(d.authenticated===!1?null:d)},c=d=>{var f;return!!t&&(t.is_super_admin||((f=t.permissions)==null?void 0:f.includes(d)))};return a.jsx(zy.Provider,{value:{user:t,loading:r,login:i,verifyTwoFactor:o,logout:l,refreshUser:u,hasPermission:c},children:e})}function cr(){return m.useContext(zy)}const Sl={home_sections:"content.manage",faqs:"content.manage",partners:"content.manage",text:"content.manage",services:"services.manage",packages:"packages.manage",brands:"brands.manage",car_models:"models.manage",gallery_brands:"gallery.manage",gallery_projects:"gallery.manage",gallery_photos:"gallery.manage",legal_pages:"settings.manage"},ac="hifi-live-edit",HP={de:{},en:{}},ps=(e,t,n,r)=>`${e}|${t}|${n}|${r}`;function UP(){try{const e=new URLSearchParams(window.location.search);if(e.get("bearbeiten")==="1"){sessionStorage.setItem(ac,"1"),e.delete("bearbeiten");const t=e.toString();return window.history.replaceState(window.history.state,"",window.location.pathname+(t?`?${t}`:"")+window.location.hash),!0}return sessionStorage.getItem(ac)==="1"}catch{return!1}}const zn=()=>{},By=m.createContext({available:!1,enabled:!1,setEnabled:zn,canEdit:()=>!1,getValue:(e,t,n,r,s)=>s,setValue:zn,resetValue:zn,hasPending:()=>!1,textOverride:()=>{},trackTextKey:zn,usedTextKeys:()=>[],pendingCount:0,saving:!1,error:"",save:async()=>{},discard:zn,editor:null,openEditor:zn,closeEditor:zn});function jl({serverOverrides:e,children:t}){const{user:n,hasPermission:r}=cr(),s=!!n&&Object.values(Sl).some(L=>r(L)),[i,o]=m.useState(UP),l=s&&i,[u,c]=m.useState({}),[d,f]=m.useState({}),[h,g]=m.useState(!1),[v,w]=m.useState(""),[b,p]=m.useState(null),x=m.useRef(l);x.current=l;const y=m.useRef(new Map),k=m.useCallback(L=>{o(L);try{sessionStorage.setItem(ac,L?"1":"0")}catch{}L||p(null)},[]),E=m.useCallback(L=>l&&!!Sl[L]&&r(Sl[L]),[l,r]),T=m.useCallback((L,F,P,R,z)=>{const G=ps(L,F,P,R);return G in u?u[G]:G in d?d[G]:z},[u,d]),S=m.useCallback((L,F,P,R,z)=>{w(""),c(G=>({...G,[ps(L,F,P,R)]:z}))},[]),j=m.useCallback((L,F,P,R)=>{c(z=>{const G=ps(L,F,P,R);if(!(G in z))return z;const ee={...z};return delete ee[G],ee})},[]),_=m.useCallback((L,F,P,R)=>ps(L,F,P,R)in u,[u]),C=e||HP,B=m.useCallback((L,F)=>{var z;const P=ps("text",F,"value",L),R=P in u?u[P]:P in d?d[P]:(z=C[L])==null?void 0:z[F];return R||void 0},[u,d,C]),H=m.useCallback(L=>{if(!x.current)return;const F=window.location.pathname,P=y.current.get(L);P?P.add(F):y.current.set(L,new Set([F]))},[]),ne=m.useCallback(L=>{const F=[];return y.current.forEach((P,R)=>{P.has(L)&&F.push(R)}),F.sort()},[]),W=Object.keys(u).length,K=m.useCallback(async()=>{const L=Object.entries(u);if(!L.length)return;const F=L.map(([P,R])=>{const[z,G,ee,se]=P.split("|");return{entity:z,id:G,field:ee,lang:se,value:R??""}});g(!0),w("");try{await ie.put("/live-edit",{changes:F}),f(P=>({...P,...u})),c({})}catch(P){w(P.status===401?"Deine Anmeldung ist abgelaufen. Bitte im Admin-Bereich neu anmelden, die Änderungen bleiben hier so lange erhalten.":P.message)}finally{g(!1)}},[u]),q=m.useCallback(()=>{c({}),w(""),p(null)},[]),oe=m.useCallback(L=>p(L),[]),N=m.useCallback(()=>p(null),[]);m.useEffect(()=>{if(!W)return;const L=F=>{F.preventDefault(),F.returnValue=""};return window.addEventListener("beforeunload",L),()=>window.removeEventListener("beforeunload",L)},[W]);const A=m.useMemo(()=>({available:s,enabled:l,setEnabled:k,canEdit:E,getValue:T,setValue:S,resetValue:j,hasPending:_,textOverride:B,trackTextKey:H,usedTextKeys:ne,pendingCount:W,saving:h,error:v,save:K,discard:q,editor:b,openEditor:oe,closeEditor:N}),[s,l,k,E,T,S,j,_,B,H,ne,W,h,v,K,q,b,oe,N]);return a.jsx(By.Provider,{value:A,children:t})}function at(){return m.useContext(By)}function WP(){const e=localStorage.getItem("hifi-lang");return e==="de"||e==="en"?e:(navigator.language||"de").toLowerCase().startsWith("de")?"de":"en"}function ho(e,t){return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}const $y=m.createContext({language:"de",setLanguage:()=>{},toggleLanguage:()=>{},t:e=>{const t=ho(vn.de,e);return t!==void 0?t:e}});function El({children:e}){const[t,n]=m.useState(WP),{textOverride:r,trackTextKey:s}=at();m.useEffect(()=>{document.documentElement.setAttribute("lang",t),localStorage.setItem("hifi-lang",t)},[t]);const i=()=>n(l=>l==="de"?"en":"de"),o=l=>{const u=vn[t]||vn.de,c=ho(u,l);if(typeof c=="string"||c===void 0&&typeof ho(vn.de,l)=="string"){s(l);const f=r(t,l);if(f!==void 0)return f}if(c!==void 0)return c;const d=ho(vn.de,l);return d!==void 0?d:l};return a.jsx($y.Provider,{value:{language:t,setLanguage:n,toggleLanguage:i,t:o},children:e})}function pe(){return m.useContext($y)}function Hy({overHero:e=!1,forceDark:t=!1}){const{theme:n,toggleTheme:r}=OP(),{t:s}=pe();return a.jsx("button",{onClick:r,"aria-label":s("themeToggle.label"),className:`rounded-full p-2 transition ${e?"text-white hover:bg-white/10":t?"text-neutral-300 hover:bg-neutral-800":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,children:n==="dark"?a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:a.jsx("path",{d:"M12 3a1 1 0 011 1v1a1 1 0 11-2 0V4a1 1 0 011-1zm0 15a5 5 0 100-10 5 5 0 000 10zm9-6a1 1 0 010 2h-1a1 1 0 110-2h1zM4 12a1 1 0 010 2H3a1 1 0 110-2h1zm14.36-7.36a1 1 0 011.42 1.42l-.71.7a1 1 0 11-1.41-1.4l.7-.72zM5.64 18.36a1 1 0 011.41 1.41l-.7.71a1 1 0 11-1.42-1.41l.71-.71zm12.72 0l.71.7a1 1 0 11-1.41 1.42l-.71-.71a1 1 0 011.41-1.41zM6.34 5.64l-.7-.7A1 1 0 117.05 3.5l.7.71A1 1 0 016.34 5.64zM12 6a1 1 0 011-1v0a1 1 0 01-1 1zm0 12a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1z"})}):a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"h-5 w-5",children:a.jsx("path",{fillRule:"evenodd",d:"M9.53 2.25a.75.75 0 01.19.82 8.25 8.25 0 0011.03 11.03.75.75 0 011.01.99A10.5 10.5 0 1112.9 2.1a.75.75 0 011.63-.85z",clipRule:"evenodd"})})})}const $d=m.createContext({phone:"09373 20 62 390",whatsapp:null,contact_email:"info@hifi-planet-amorbach.de",address_street:"Boxbrunner Str. 20a",address_zip:"63916",address_city:"Amorbach",logo_path:null,logo_dark_path:null,business_hours:null,hero_image_path:null,ga_measurement_id:null,gallery_card_text_x:0,gallery_card_text_y:100,site_font:null,page_loader_enabled:1,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,hidden_areas:[]}),GP=$d.Provider;function It(){return m.useContext($d)}function Pa(){const{hidden_areas:e}=m.useContext($d);return t=>(e||[]).includes(t)}const ea="/assets/logo-dark-R-ckaBhx.png",Uy=e=>(e||"").replace(/[^\d+]/g,""),ai=e=>`tel:${Uy(e)}`,Hd=(e,t="")=>`https://wa.me/${Uy(e).replace(/^0/,"49").replace("+","")}${t?`?text=${encodeURIComponent(t)}`:""}`;function Nn(e,t={}){typeof window>"u"||typeof window.gtag!="function"||window.gtag("event",e,t)}const KP="https://www.audio4cars.de/",Wm=70,qP=500;function YP({className:e}){return a.jsxs("svg",{viewBox:"0 0 3 2",className:e,"aria-hidden":"true",children:[a.jsx("rect",{width:"3",height:"0.667",y:"0",fill:"#000"}),a.jsx("rect",{width:"3",height:"0.667",y:"0.667",fill:"#D00"}),a.jsx("rect",{width:"3",height:"0.666",y:"1.334",fill:"#FFCE00"})]})}function XP({className:e}){return a.jsxs("svg",{viewBox:"0 0 60 30",className:e,"aria-hidden":"true",children:[a.jsx("clipPath",{id:"fgb-t",children:a.jsx("path",{d:"M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"})}),a.jsx("path",{d:"M0,0 v30 h60 v-30 z",fill:"#00247d"}),a.jsx("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#fff",strokeWidth:"6"}),a.jsx("path",{d:"M0,0 L60,30 M60,0 L0,30",clipPath:"url(#fgb-t)",stroke:"#cf142b",strokeWidth:"4"}),a.jsx("path",{d:"M30,0 v30 M0,15 h60",stroke:"#fff",strokeWidth:"10"}),a.jsx("path",{d:"M30,0 v30 M0,15 h60",stroke:"#cf142b",strokeWidth:"6"})]})}const Cl=[{code:"de",label:"Deutsch",Flag:YP},{code:"en",label:"English",Flag:XP}];function ZP({overHero:e=!1}){const{language:t,setLanguage:n,t:r}=pe(),[s,i]=m.useState(!1),o=m.useRef(null),l=Cl.find(u=>u.code===t)||Cl[0];return m.useEffect(()=>{if(!s)return;const u=d=>{o.current&&!o.current.contains(d.target)&&i(!1)},c=d=>{d.key==="Escape"&&i(!1)};return document.addEventListener("mousedown",u),document.addEventListener("keydown",c),()=>{document.removeEventListener("mousedown",u),document.removeEventListener("keydown",c)}},[s]),a.jsxs("div",{className:"relative",ref:o,children:[a.jsxs("button",{type:"button",onClick:()=>i(u=>!u),"aria-haspopup":"listbox","aria-expanded":s,"aria-label":r("languageToggle.label"),className:`flex items-center gap-1 rounded-full p-1.5 transition ${e?"hover:bg-white/10":"hover:bg-neutral-800"}`,children:[a.jsx("span",{className:`block h-4 w-6 shrink-0 overflow-hidden rounded-[3px] ring-1 ${e?"ring-white/50":"ring-neutral-600"}`,children:a.jsx(l.Flag,{className:"h-full w-full"})}),a.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:`h-3 w-3 transition-transform ${e?"text-white/70":"text-neutral-400"} ${s?"rotate-180":""}`,children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"})})]}),s&&a.jsx("div",{role:"listbox",className:"absolute right-0 z-50 mt-2 min-w-[9rem] overflow-hidden rounded-lg border border-neutral-700 bg-neutral-900 py-1 shadow-lg",children:Cl.map(u=>a.jsxs("button",{type:"button",role:"option","aria-selected":u.code===t,onClick:()=>{n(u.code),i(!1)},className:`flex w-full items-center gap-2 px-3 py-2 text-left text-sm transition hover:bg-neutral-800 ${u.code===t?"font-semibold text-brand-400":"text-neutral-200"}`,children:[a.jsx("span",{className:"block h-4 w-6 shrink-0 overflow-hidden rounded-[3px] ring-1 ring-neutral-600",children:a.jsx(u.Flag,{className:"h-full w-full"})}),u.label]},u.code))})]})}function QP(){const[e,t]=m.useState(!1),[n,r]=m.useState(!1),[s,i]=m.useState(!1),{user:o}=cr(),{phone:l,whatsapp:u,logo_dark_path:c,has_downloads:d}=It(),f=Pa(),{t:h}=pe(),g=!f("page.vehicles"),v=!f("page.services"),w=!f("page.gallery"),b=d&&!f("page.downloads"),p=3+[g,v,w,b,l,u].filter(Boolean).length,y=et().pathname==="/",[k,E]=m.useState(!y);m.useEffect(()=>{if(!y){E(!0);return}const q=()=>E(window.scrollY>24);return q(),window.addEventListener("scroll",q,{passive:!0}),()=>window.removeEventListener("scroll",q)},[y]);const T=y&&!k,S=m.useRef(null),j=m.useRef(null);m.useEffect(()=>{if(!e)return;const q=document.body.style.overflow;document.body.style.overflow="hidden";const oe=setTimeout(()=>{var A,L;return(L=(A=S.current)==null?void 0:A.querySelector("button, a"))==null?void 0:L.focus()},50),N=A=>{if(A.key==="Escape"){t(!1);return}if(A.key!=="Tab"||!S.current)return;const L=[...S.current.querySelectorAll("a[href], button")];if(!L.length)return;const F=L[0],P=L[L.length-1];A.shiftKey&&document.activeElement===F?(A.preventDefault(),P.focus()):!A.shiftKey&&document.activeElement===P&&(A.preventDefault(),F.focus())};return document.addEventListener("keydown",N),()=>{var A;clearTimeout(oe),document.body.style.overflow=q,document.removeEventListener("keydown",N),(A=j.current)==null||A.focus({preventScroll:!0})}},[e]),m.useEffect(()=>{if(e){r(!0);let N;const A=requestAnimationFrame(()=>{N=requestAnimationFrame(()=>i(!0))});return()=>{cancelAnimationFrame(A),N&&cancelAnimationFrame(N)}}i(!1);const q=qP+(p-1)*Wm,oe=setTimeout(()=>r(!1),q);return()=>clearTimeout(oe)},[e,p]);const _=()=>`transition-all duration-500 ease-out ${s?"opacity-100":"opacity-0"}`,C=q=>({transitionDelay:`${(s?q:p-1-q)*Wm}ms`,transform:s?"translateY(0)":"translateY(-140px)"}),B=o&&a.jsx(U,{to:"/admin","aria-label":h("nav.adminPanel"),title:h("nav.adminPanel"),className:`rounded-full p-2 transition ${T?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:a.jsx(tP,{className:"h-5 w-5"})}),H=at(),ne=H.available&&a.jsx("button",{type:"button",onClick:()=>H.setEnabled(!H.enabled),"aria-pressed":H.enabled,"aria-label":"Seite bearbeiten",title:H.enabled?"Bearbeiten beenden":"Seite bearbeiten",className:`rounded-full p-2 transition ${H.enabled?"bg-brand-500 text-white hover:bg-brand-600":T?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:a.jsx(Fy,{className:"h-5 w-5"})});let W=0;const K=()=>C(W++);return a.jsxs("header",{className:`sticky top-0 z-30 border-b transition-colors duration-300 ${T?"border-transparent bg-transparent":"border-neutral-800 bg-neutral-950/90 backdrop-blur"}`,children:[a.jsxs("div",{className:"mx-auto grid max-w-6xl grid-cols-[1fr_auto_1fr] items-center gap-3 px-4 py-3 sm:px-6",children:[a.jsx("div",{className:"flex items-center justify-self-start",children:a.jsx("button",{ref:j,onClick:()=>t(!0),"aria-label":h("nav.openMenu"),"aria-expanded":e,"aria-haspopup":"dialog",className:`rounded-md p-2 transition ${T?"text-white hover:bg-white/10":"text-neutral-300 hover:bg-neutral-800"}`,children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})})}),a.jsx(U,{to:"/",className:"flex items-center justify-self-center rounded-lg px-2 py-1",children:a.jsx("img",{src:c||ea,alt:"HifiPlanet",className:"h-14 w-auto sm:h-16"})}),a.jsxs("div",{className:"flex items-center justify-self-end gap-1",children:[ne,B,!e&&a.jsx(ZP,{overHero:T}),a.jsx(Hy,{overHero:T,forceDark:!0})]})]}),n&&rd.createPortal(a.jsx("div",{ref:S,role:"dialog","aria-modal":"true","aria-label":h("nav.menu"),className:"fixed inset-0 z-[100] overflow-y-auto text-left backdrop-blur-xl",style:{background:"linear-gradient(135deg, rgba(241,245,249,0.55) 0%, rgba(227,240,207,0.55) 50%, rgba(248,250,252,0.55) 100%)"},children:a.jsxs("div",{className:"relative mx-auto flex min-h-full max-w-6xl flex-col items-start justify-center gap-5 py-24 pl-6 pr-8 sm:pl-8",children:[a.jsxs("button",{onClick:()=>t(!1),"aria-label":h("nav.closeMenu"),className:"absolute left-6 top-8 flex items-center gap-2 text-neutral-600 hover:text-brand-600 sm:left-8 sm:top-[65px]",children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6l12 12M18 6 6 18"})}),a.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",children:h("nav.close")})]}),g&&a.jsx(U,{to:"/fahrzeuge",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${_()}`,style:K(),children:h("nav.vehicles")}),v&&a.jsx(U,{to:"/leistungen",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${_()}`,style:K(),children:h("nav.services")}),w&&a.jsx(U,{to:"/galerie",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${_()}`,style:K(),children:h("nav.gallery")}),a.jsx(U,{to:"/kontakt",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${_()}`,style:K(),children:h("nav.contact")}),b&&a.jsx(U,{to:"/downloads",onClick:()=>t(!1),className:`text-3xl font-extrabold tracking-tight text-neutral-900 hover:text-brand-600 ${_()}`,style:K(),children:h("nav.downloads")}),a.jsx("div",{className:`h-px w-16 bg-brand-500/60 ${_()}`,style:K()}),l&&a.jsxs("a",{href:ai(l),onClick:()=>Nn("contact_call"),className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${_()}`,style:K(),children:[a.jsx(or,{className:"h-4 w-4"}),l]}),u&&a.jsxs("a",{href:Hd(u),onClick:()=>Nn("contact_whatsapp"),target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${_()}`,style:K(),children:[a.jsx(Iy,{className:"h-4 w-4"}),h("nav.whatsapp")]}),a.jsxs("a",{href:KP,target:"_blank",rel:"noopener noreferrer",className:`flex items-center gap-2 text-sm font-semibold uppercase tracking-wide text-neutral-600 hover:text-brand-600 ${_()}`,style:K(),children:[a.jsx(PP,{className:"h-4 w-4"}),h("nav.shop")]})]})}),document.body)]})}const Gm="hifiplanet-cookie-consent",Wy={necessary:!0,external:!1,analytics:!1},Gy=m.createContext({consent:Wy,decided:!1,settingsOpen:!1,acceptAll:()=>{},rejectNonEssential:()=>{},saveCustom:()=>{},openSettings:()=>{},closeSettings:()=>{}});function JP({children:e}){const[t,n]=m.useState(Wy),[r,s]=m.useState(!1),[i,o]=m.useState(!1);m.useEffect(()=>{try{const g=localStorage.getItem(Gm);if(g){const v=JSON.parse(g);n({necessary:!0,external:!!v.external,analytics:!!v.analytics}),s(!0)}}catch{}},[]);const l=m.useCallback(g=>{n(g),s(!0),o(!1),localStorage.setItem(Gm,JSON.stringify({...g,decidedAt:new Date().toISOString()}))},[]),u=m.useCallback(()=>l({necessary:!0,external:!0,analytics:!0}),[l]),c=m.useCallback(()=>l({necessary:!0,external:!1,analytics:!1}),[l]),d=m.useCallback(g=>l({necessary:!0,external:!!g.external,analytics:!!g.analytics}),[l]),f=m.useCallback(()=>o(!0),[]),h=m.useCallback(()=>o(!1),[]);return a.jsx(Gy.Provider,{value:{consent:t,decided:r,settingsOpen:i,acceptAll:u,rejectNonEssential:c,saveCustom:d,openSettings:f,closeSettings:h},children:e})}function ss(){return m.useContext(Gy)}const eT=["mon","tue","wed","thu","fri","sat","sun"],tT=["sun","mon","tue","wed","thu","fri","sat"],Pl={mon:"Mo",tue:"Di",wed:"Mi",thu:"Do",fri:"Fr",sat:"Sa",sun:"So"};function nT(e){const t=new Date,n=e==null?void 0:e[tT[t.getDay()]];if(!n||n.closed||!n.open||!n.close)return!1;const r=t.getHours()*60+t.getMinutes(),[s,i]=n.open.split(":").map(Number),[o,l]=n.close.split(":").map(Number);return r>=s*60+i&&r{const s=rT(e==null?void 0:e[r])||t,i=n[n.length-1];i&&i.label===s?i.days=`${i.firstLabel}-${Pl[r]}`:n.push({key:r,days:Pl[r],firstLabel:Pl[r],label:s})}),n}const sT=e=>(e||"").replace(/[^\d+]/g,"");function iT(){const{phone:e,contact_email:t,address_street:n,address_zip:r,address_city:s,business_hours:i,has_downloads:o}=It(),l=Pa(),u=o&&!l("page.downloads"),c=nT(i),{openSettings:d}=ss(),{pathname:f}=et(),h=f==="/",{t:g}=pe(),v=[n,[r,s].filter(Boolean).join(" ")].filter(Boolean).join(", "),w=`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(v)}`,b=Ky(i,g("footer.closed"));return a.jsxs("footer",{className:`border-t border-neutral-200 bg-neutral-50 py-10 text-sm text-neutral-600 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-300 ${h?"pb-24":""}`,children:[a.jsxs("div",{className:"mx-auto grid max-w-6xl gap-4 px-4 sm:grid-cols-3 sm:px-6",children:[a.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[a.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[a.jsx(Vy,{className:"h-4 w-4 text-brand-500"}),a.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:"HifiPlanet"})]}),n&&a.jsx("p",{children:n}),(r||s)&&a.jsx("p",{children:[r,s].filter(Boolean).join(" ")}),a.jsxs("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"mt-4 flex items-center justify-center gap-1.5 rounded-md bg-brand-500 px-3 py-2 text-xs font-semibold text-white hover:bg-brand-600",children:[a.jsx(hP,{className:"h-3.5 w-3.5"}),g("footer.routePlan")]})]}),a.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[a.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[a.jsx(or,{className:"h-4 w-4 text-brand-500"}),a.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:g("footer.contactHeading")})]}),a.jsx("p",{children:a.jsx("a",{href:`tel:${sT(e)}`,className:"inline-block py-1 hover:text-brand-500",children:e})}),a.jsx("p",{children:a.jsx("a",{href:`mailto:${t}`,className:"inline-block py-1 hover:text-brand-500",children:t})}),a.jsx(U,{to:"/kontakt",className:"mt-4 flex items-center justify-center gap-1.5 rounded-md border border-neutral-300 px-3 py-2 text-xs font-semibold text-neutral-700 hover:border-brand-500 hover:text-brand-600 dark:border-neutral-700 dark:text-neutral-200",children:g("footer.contactForm")})]}),a.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-5 dark:border-neutral-800 dark:bg-neutral-900",children:[a.jsxs("div",{className:"mb-3 flex items-center justify-between gap-2",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(Dy,{className:"h-4 w-4 text-brand-500"}),a.jsx("p",{className:"font-semibold text-neutral-900 dark:text-white",children:g("footer.hoursHeading")})]}),a.jsxs("span",{className:`flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] font-semibold ${c?"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300":"bg-neutral-100 text-neutral-500 dark:bg-neutral-800 dark:text-neutral-400"}`,children:[a.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${c?"bg-green-500":"bg-neutral-400"}`}),g(c?"footer.open":"footer.closed")]})]}),a.jsx("dl",{className:"space-y-1.5",children:b.map(p=>a.jsxs("div",{className:"flex items-center justify-between gap-3",children:[a.jsx("dt",{className:"text-neutral-500 dark:text-neutral-400",children:p.days}),a.jsx("dd",{className:"font-medium text-neutral-700 dark:text-neutral-200",children:p.label})]},p.key))})]})]}),a.jsx("div",{className:"mx-auto mt-8 max-w-6xl border-t border-neutral-200 px-4 pt-6 text-center text-xs text-neutral-500 dark:border-neutral-800 dark:text-neutral-400 sm:px-6",children:a.jsxs("p",{className:"flex flex-wrap items-center justify-center gap-x-2 gap-y-1",children:[a.jsx("span",{children:g("footer.copyright")(new Date().getFullYear())}),a.jsx("span",{children:"·"}),a.jsx(U,{to:"/impressum",className:"hover:text-brand-500",children:g("footer.imprint")}),a.jsx("span",{children:"·"}),a.jsx(U,{to:"/datenschutz",className:"hover:text-brand-500",children:g("footer.privacy")}),a.jsx("span",{children:"·"}),a.jsx(U,{to:"/agb",className:"hover:text-brand-500",children:g("footer.terms")}),a.jsx("span",{children:"·"}),u&&a.jsxs(a.Fragment,{children:[a.jsx(U,{to:"/downloads",className:"hover:text-brand-500",children:g("footer.downloads")}),a.jsx("span",{children:"·"})]}),a.jsx("button",{type:"button",onClick:d,className:"hover:text-brand-500",children:g("footer.cookieSettings")})]})})]})}function oT(){const{scrollYProgress:e}=Ty(),t=cC(e,{stiffness:200,damping:30,restDelta:.001});return a.jsx(Qt.div,{style:{scaleX:t},className:"fixed left-0 top-0 z-40 h-0.5 w-full origin-left bg-brand-500"})}const aT=()=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"h-10 w-10",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.7 6.3a4 4 0 0 0-5.5 4.5L3 17l2 2 6.2-6.2a4 4 0 0 0 4.5-5.5l-2.6 2.6-2-2 2.6-2.6Z"})});function vi({message:e,fullScreen:t=!1}){const{t:n}=pe(),r=a.jsxs("div",{className:"mx-auto max-w-md text-center",children:[a.jsx("div",{className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-brand-100 text-brand-600 dark:bg-brand-900/40 dark:text-brand-400",children:a.jsx(aT,{})}),a.jsx("h1",{className:"mb-2 text-xl font-bold text-neutral-900 dark:text-white",children:n("maintenance.title")}),a.jsx("p",{className:"text-neutral-600 dark:text-neutral-300",children:e||n("maintenance.defaultMessage")})]});return t?a.jsxs("div",{className:"relative flex min-h-screen items-center justify-center bg-white px-4 dark:bg-neutral-950",children:[r,a.jsxs(U,{to:"/admin/login","aria-label":n("maintenance.login"),title:n("maintenance.login"),className:"fixed bottom-4 right-4 flex items-center gap-2 rounded-full border border-neutral-200 bg-white px-3 py-2 text-sm font-medium text-neutral-600 shadow-sm transition hover:border-brand-500 hover:text-brand-600 dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-300 dark:hover:text-brand-400",children:[a.jsx(Ry,{className:"h-4 w-4"}),n("maintenance.login")]})]}):a.jsx("div",{className:"mx-auto max-w-6xl px-4 py-20 sm:px-6",children:r})}const Km=a.jsx(a.Fragment,{children:'Wartungsmodus aktiv – Besucher sehen aktuell eine Wartungsmeldung. Du siehst diese Seite nur, weil du die Berechtigung "Wartungsmodus umgehen" hast.'});function wi({inline:e=!1}){return e?a.jsx("div",{className:"mb-8 rounded-lg bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:Km}):a.jsx("div",{className:"bg-amber-500 px-4 py-2 text-center text-xs font-semibold text-white",children:Km})}const qm='a[href], button:not([disabled]), input:not([disabled]), select, textarea, [tabindex]:not([tabindex="-1"])';function qy(e,t,n){m.useEffect(()=>{if(!t)return;const r=document.activeElement,s=document.body.style.overflow;document.body.style.overflow="hidden";const i=setTimeout(()=>{var l,u;return(u=(l=e.current)==null?void 0:l.querySelector(qm))==null?void 0:u.focus()},30),o=l=>{if(l.key==="Escape"){l.stopPropagation(),n==null||n();return}if(l.key!=="Tab"||!e.current)return;const u=[...e.current.querySelectorAll(qm)];if(!u.length)return;const c=u[0],d=u[u.length-1];l.shiftKey&&document.activeElement===c?(l.preventDefault(),d.focus()):!l.shiftKey&&document.activeElement===d&&(l.preventDefault(),c.focus())};return document.addEventListener("keydown",o),()=>{clearTimeout(i),document.body.style.overflow=s,document.removeEventListener("keydown",o),r instanceof HTMLElement&&r.focus({preventScroll:!0})}},[t,e])}function lT({onClose:e}){const{consent:t,saveCustom:n}=ss(),[r,s]=m.useState(t.external),[i,o]=m.useState(t.analytics),{t:l}=pe(),u=m.useRef(null);return qy(u,!0,e),a.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center bg-black/50 p-4",onClick:e,children:a.jsxs("div",{ref:u,role:"dialog","aria-modal":"true","aria-label":l("cookieConsent.modalTitle"),className:"w-full max-w-md rounded-xl bg-white p-6 dark:bg-neutral-900",onClick:c=>c.stopPropagation(),children:[a.jsx("h2",{className:"mb-1 text-lg font-bold text-neutral-900 dark:text-white",children:l("cookieConsent.modalTitle")}),a.jsxs("p",{className:"mb-4 text-sm text-neutral-600 dark:text-neutral-300",children:[l("cookieConsent.modalIntro")," ",a.jsx(U,{to:"/datenschutz",className:"underline hover:text-brand-500",onClick:e,children:l("cookieConsent.privacyPolicy")}),"."]}),a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:l("cookieConsent.necessaryTitle")}),a.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:l("cookieConsent.necessaryDesc")})]}),a.jsx("input",{type:"checkbox",checked:!0,disabled:!0,className:"mt-1 h-4 w-4 shrink-0"})]}),a.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:l("cookieConsent.externalTitle")}),a.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:l("cookieConsent.externalDesc")})]}),a.jsx("input",{type:"checkbox",checked:r,onChange:c=>s(c.target.checked),className:"mt-1 h-4 w-4 shrink-0"})]}),a.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-neutral-200 p-3 dark:border-neutral-700",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-sm font-semibold text-neutral-800 dark:text-neutral-100",children:l("cookieConsent.analyticsTitle")}),a.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:l("cookieConsent.analyticsDesc")})]}),a.jsx("input",{type:"checkbox",checked:i,onChange:c=>o(c.target.checked),className:"mt-1 h-4 w-4 shrink-0"})]})]}),a.jsxs("div",{className:"mt-5 flex justify-end gap-2",children:[a.jsx("button",{type:"button",onClick:e,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:l("cookieConsent.cancel")}),a.jsx("button",{type:"button",onClick:()=>n({external:r,analytics:i}),className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:l("cookieConsent.saveSelection")})]})]})})}function uT(){const{decided:e,settingsOpen:t,acceptAll:n,rejectNonEssential:r,openSettings:s,closeSettings:i}=ss(),{t:o}=pe();return a.jsxs(a.Fragment,{children:[!e&&a.jsx("div",{className:"fixed inset-x-0 bottom-0 z-50 border-t border-neutral-200 bg-white/95 p-4 shadow-lg backdrop-blur dark:border-neutral-800 dark:bg-neutral-900/95 sm:p-5",children:a.jsxs("div",{className:"mx-auto flex max-w-6xl flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[a.jsxs("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:[o("cookieConsent.bannerText")," ",o("cookieConsent.moreInfo")," ",a.jsx(U,{to:"/datenschutz",className:"underline hover:text-brand-500",children:o("cookieConsent.privacyPolicy")}),"."]}),a.jsxs("div",{className:"flex flex-wrap gap-2 sm:shrink-0",children:[a.jsx("button",{type:"button",onClick:s,className:"rounded-md border border-neutral-300 px-3 py-2 text-sm dark:border-neutral-700",children:o("cookieConsent.settings")}),a.jsx("button",{type:"button",onClick:r,className:"rounded-md border border-neutral-300 px-3 py-2 text-sm dark:border-neutral-700",children:o("cookieConsent.onlyNecessary")}),a.jsx("button",{type:"button",onClick:n,className:"rounded-md bg-brand-500 px-3 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:o("cookieConsent.acceptAll")})]})]})}),t&&a.jsx(lT,{onClose:i})]})}const cT="/assets/bg-dark-B4R1klEI.webp",Te={card:"#14170e",cardBorder:"rgba(168,225,12,0.16)",divider:"rgba(168,225,12,0.15)",text:"#f3f6ea",muted:"#9aa38c",label:"#8f987f",accent:"#b6e619",pillBorder:"rgba(168,225,12,0.28)"},Ym={fontFamily:"'Michroma', sans-serif"};function ta(e,t=0){return e!=null&&e.launch_at?new Date(e.launch_at).getTime()-(Date.now()+t):0}function dT(e,t){return!(e!=null&&e.server_time)||!t?0:new Date(e.server_time).getTime()-t}function fT(e){const t=Math.max(0,Math.floor(e/1e3));return{days:Math.floor(t/86400),hours:Math.floor(t%86400/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}function hT(e,t){const n=new Date(e),r=new Date(n.getTime()+60*60*1e3),s=o=>o.toISOString().replace(/[-:]/g,"").replace(/\.\d{3}/,""),i=["BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//HifiPlanet//Countdown//DE","BEGIN:VEVENT",`UID:launch-${s(n)}@hifi-planet.de`,`DTSTAMP:${s(new Date)}`,`DTSTART:${s(n)}`,`DTEND:${s(r)}`,`SUMMARY:${t}`,`URL:${window.location.origin}`,"END:VEVENT","END:VCALENDAR"].join(`\r
`);return`data:text/calendar;charset=utf-8,${encodeURIComponent(i)}`}function mT({text:e}){const t=e.trimEnd().lastIndexOf(" ");return t<0?e:a.jsxs(a.Fragment,{children:[e.slice(0,t+1),a.jsx("span",{style:{color:Te.accent},children:e.slice(t+1)})]})}function pT({countdown:e,clockOffset:t=0,settings:n={},preview:r=!1,onClosePreview:s,onLaunch:i}){const{t:o,language:l,toggleLanguage:u}=pe(),[c,d]=m.useState(()=>ta(e,t)),f=c<=0;m.useEffect(()=>{const y=()=>d(ta(e,t));y();const k=setInterval(y,250);return()=>clearInterval(k)},[e,t]),m.useEffect(()=>{if(!f||r)return;const y=setTimeout(()=>i==null?void 0:i(),2600);return()=>clearTimeout(y)},[f,r,i]),m.useEffect(()=>{const y=document.title;return document.title=`HifiPlanet – ${o("countdown.eyebrow")}`,()=>{document.title=y}},[o]);const h=fT(c),g=l==="en",v=f?o("countdown.liveTitle"):(g?e.title_en:e.title)||o("countdown.title"),w=f?o("countdown.liveMessage"):(g?e.message_en:e.message)||o("countdown.message"),b=e.launch_at?new Date(e.launch_at):null,p=b?b.toLocaleString(g?"en-GB":"de-DE",{weekday:"long",day:"numeric",month:"long",hour:"2-digit",minute:"2-digit",timeZone:"Europe/Berlin"}):"",x=[[h.days,o("countdown.days")],[h.hours,o("countdown.hours")],[h.minutes,o("countdown.minutes")],[h.seconds,o("countdown.seconds")]];return a.jsxs("div",{className:"flex min-h-[100svh] flex-col bg-[#0a0c06] bg-cover bg-center",style:{backgroundImage:`url(${cT})`,color:Te.text,fontFamily:"'Barlow', sans-serif"},children:[r&&a.jsxs("div",{className:"flex items-center justify-center gap-3 px-4 py-2 text-xs font-semibold",style:{background:Te.accent,color:"#0f1208"},children:[o("countdown.preview"),a.jsxs("button",{type:"button",onClick:s,className:"inline-flex items-center gap-1 underline",children:[a.jsx(yi,{className:"h-3.5 w-3.5"}),o("countdown.closePreview")]})]}),a.jsxs("div",{className:"mx-auto flex w-full max-w-[1280px] flex-1 flex-col px-4 pb-6 sm:px-10 sm:pb-10",children:[a.jsxs("header",{className:"flex items-center justify-between gap-4 border-b pb-5 pt-6 sm:pt-8",style:{borderColor:Te.divider},children:[a.jsx("img",{src:n.logo_dark_path||ea,alt:"HifiPlanet",className:"h-12 w-auto sm:h-14"}),a.jsxs("div",{className:"flex items-center gap-5",children:[a.jsx("button",{type:"button",onClick:u,"aria-label":o("languageToggle.label"),className:"text-xs font-semibold uppercase tracking-[3px] hover:text-white",style:{color:Te.muted},children:l==="de"?"EN":"DE"}),n.phone&&a.jsxs("a",{href:ai(n.phone),className:"hidden items-center gap-2.5 rounded-full border py-2 pl-2 pr-5 text-sm font-semibold sm:inline-flex",style:{borderColor:Te.pillBorder,background:Te.card},children:[a.jsx("span",{className:"flex h-7 w-7 items-center justify-center rounded-full",style:{background:"rgba(168,225,12,0.1)",color:Te.accent},children:a.jsx(or,{className:"h-3.5 w-3.5"})}),n.phone]})]})]}),a.jsxs("main",{className:"flex flex-1 flex-col justify-center py-12 sm:py-16",children:[a.jsx("p",{className:"mb-3 text-[13px] font-semibold uppercase tracking-[6px]",style:{color:Te.accent},children:o(f?"countdown.liveEyebrow":"countdown.eyebrow")}),a.jsx("h1",{style:Ym,className:"max-w-3xl text-[34px] leading-[1.08] sm:text-[clamp(34px,5vw,60px)]",children:a.jsx(mT,{text:v})}),a.jsx("p",{className:"mb-10 mt-5 max-w-[520px] text-lg leading-[1.55]",style:{color:Te.muted},children:w}),a.jsx("div",{className:"grid w-full max-w-[720px] grid-cols-4 rounded-[14px] border shadow-[0_24px_60px_rgba(0,0,0,0.55)]",style:{background:Te.card,borderColor:Te.cardBorder},children:x.map(([y,k],E)=>a.jsxs("div",{className:`px-2 py-5 text-center sm:px-6 sm:py-7 ${E>0?"border-l":""}`,style:{borderColor:Te.divider},children:[a.jsx("div",{style:Ym,className:"text-[22px] tabular-nums leading-none min-[400px]:text-[26px] sm:text-[44px]",children:String(y).padStart(2,"0")}),a.jsx("div",{className:"mt-3 text-[10px] font-semibold uppercase tracking-[2px] sm:text-[11px] sm:tracking-[3px]",style:{color:Te.label},children:k})]},k))}),b&&!f&&a.jsxs("div",{className:"mt-6 flex flex-col gap-3 text-[15px] sm:flex-row sm:items-center sm:gap-8",children:[a.jsxs("p",{style:{color:Te.muted},children:[o("countdown.launchPrefix"),": ",a.jsx("span",{className:"font-semibold",style:{color:Te.text},children:p}),o("countdown.clock")&&` ${o("countdown.clock")}`]}),a.jsxs("a",{href:hT(e.launch_at,o("countdown.calendarTitle")),download:"hifiplanet-launch.ics",className:"text-[13px] font-bold uppercase tracking-[3px] hover:underline",style:{color:Te.accent},children:[o("countdown.addToCalendar")," →"]})]})]}),a.jsxs("footer",{className:"flex flex-wrap gap-x-6 gap-y-2 border-t pt-5 text-[13px]",style:{borderColor:Te.divider,color:Te.label},children:[n.phone&&a.jsx("a",{href:ai(n.phone),className:"hover:text-white sm:hidden",children:n.phone}),n.address_city&&a.jsxs("span",{children:[n.address_street,", ",n.address_zip," ",n.address_city]}),a.jsx(U,{to:"/impressum",className:"hover:text-white",children:"Impressum"}),a.jsx(U,{to:"/datenschutz",className:"hover:text-white",children:g?"Privacy":"Datenschutz"}),a.jsx(U,{to:"/admin/login","aria-label":o("maintenance.login"),title:o("maintenance.login"),className:"hover:text-white",children:a.jsx(Ry,{className:"h-3.5 w-3.5"})})]})]})]})}function gT({countdown:e}){const{t,language:n}=pe(),r=new Date(e.launch_at).toLocaleString(n==="en"?"en-GB":"de-DE",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",timeZone:"Europe/Berlin"});return a.jsxs("div",{className:"bg-neutral-900 px-4 py-2 text-center text-xs font-semibold text-neutral-200",children:[t("countdown.adminActive").replace("{date}",r)," ",a.jsx(U,{to:"/?countdown=vorschau",className:"text-brand-300 underline hover:text-brand-200",children:t("countdown.adminPreview")})]})}function xT(){const{consent:e}=ss(),{ga_measurement_id:t}=It(),n=m.useRef(!1),r=et();return m.useEffect(()=>{if(!t||!e.analytics||n.current)return;n.current=!0;const s=document.createElement("script");s.src=`https://www.googletagmanager.com/gtag/js?id=${t}`,s.async=!0,document.head.appendChild(s),window.dataLayer=window.dataLayer||[];function i(...o){window.dataLayer.push(o)}window.gtag=i,i("js",new Date),i("config",t,{anonymize_ip:!0,send_page_view:!1})},[t,e.analytics]),m.useEffect(()=>{!n.current||typeof window.gtag!="function"||window.gtag("consent","update",{analytics_storage:e.analytics?"granted":"denied"})},[e.analytics]),m.useEffect(()=>{!e.analytics||typeof window.gtag!="function"||window.gtag("event","page_view",{page_path:r.pathname+r.search,page_location:window.location.href,page_title:document.title})},[r.pathname,r.search,e.analytics,t]),null}const Yy=m.createContext({global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null},bypass:!1}),yT=Yy.Provider;function Ta(){return m.useContext(Yy)}const Ud=m.createContext({}),vT=Ud.Provider;function ar(e,t){const n=e[t];if(!n)return{};const r={};return n.font_family&&(r.fontFamily=n.font_family),n.font_size&&(r.fontSize=n.font_size),n.color&&(r.color=n.color),r}function Ue(e){const t=m.useContext(Ud);return ar(t,e)}function Wd(){return m.useContext(Ud)}const wT=[{label:"Systemschrift",value:""},{label:"Serifenlos (Arial)",value:"Arial, Helvetica, sans-serif"},{label:"Serif (Georgia)",value:'Georgia, "Times New Roman", serif'},{label:"Klassisch (Times New Roman)",value:'"Times New Roman", Times, serif'},{label:"Modern (Verdana)",value:"Verdana, Geneva, sans-serif"},{label:"Schreibmaschine (Courier New)",value:'"Courier New", Courier, monospace'}],Gd=m.createContext({fonts:[],refresh:()=>{}}),Xy=Gd.Provider;function Zy(){return m.useContext(Gd).fonts}function L4(){return m.useContext(Gd).refresh}function A4(){const e=Zy();return[...wT,...e.map(t=>({label:t.name,value:t.font_family}))]}function bT(e){const t=/\.([a-z0-9]+)$/i.exec(e||"");return t?t[1].toLowerCase():""}const kT={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"opentype"};function Qy(){const e=Zy();if(e.length===0)return null;const t=e.map(n=>{const r=kT[bT(n.file_path)]||"woff2";return`@font-face { font-family: "${n.font_family}"; src: url("${n.file_path}") format("${r}"); font-display: swap; }`}).join(`
-`);return a.jsx("style",{children:t})}const ST=150,jT=300,ET=80,CT=5e3;function PT(){return a.jsx("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-white dark:bg-neutral-950",children:a.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-4 border-neutral-200 border-t-brand-500 dark:border-neutral-800 dark:border-t-brand-500"})})}function TT({enabled:e,children:t}){const n=et(),[r,s]=m.useState(!e),[i,o]=m.useState(!1),l=m.useRef(null);return m.useLayoutEffect(()=>{const u=l.current;if(!e||!u){s(!0),o(!1);return}s(!1),o(!1);let c=!1,d=0,f=null;const h=new Set,g=setTimeout(()=>{d=Date.now(),o(!0)},ST),v=()=>{s(!0),o(!1)},w=()=>{c=!0,clearTimeout(g),clearTimeout(f),clearTimeout(T),k.disconnect(),E()},b=()=>{if(c)return;w();const S=d?jT-(Date.now()-d):0;S>0?setTimeout(v,S):v()},p=()=>{clearTimeout(f),f=setTimeout(()=>{h.size===0&&xC()===0&&b()},ET)},x=S=>{if(h.has(S)||S.complete||S.getBoundingClientRect().top>=window.innerHeight)return;S.loading==="lazy"&&(S.loading="eager"),h.add(S);const j=()=>{h.delete(S),S.removeEventListener("load",j),S.removeEventListener("error",j),p()};S.addEventListener("load",j),S.addEventListener("error",j)},y=S=>{var j;S.nodeType===1&&(S.tagName==="IMG"&&x(S),(j=S.querySelectorAll)==null||j.call(S,"img").forEach(x))},k=new MutationObserver(S=>{S.forEach(j=>j.addedNodes.forEach(y)),p()});k.observe(u,{childList:!0,subtree:!0});const E=yC(p),T=setTimeout(b,CT);return u.querySelectorAll("img").forEach(x),p(),()=>{c||w()}},[n.pathname,e]),a.jsxs("div",{className:"relative",children:[a.jsx("div",{ref:l,style:e?{visibility:r?"visible":"hidden"}:void 0,children:t}),e&&i&&a.jsx(PT,{})]})}const NT=m.lazy(()=>X(()=>import("./RichTextEditor-CO4xzKJO.js"),[])),Kd={de:"Deutsch",en:"Englisch"},_T=["nav.","footer.","cookieConsent.","languageToggle.","themeToggle.","maintenance."],Ui=e=>_T.some(t=>e.startsWith(t));function Tl(e,t){return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}function MT({editor:e}){const t=at(),{entity:n,id:r,field:s,lang:i,kind:o,label:l,hint:u,original:c}=e,[d]=m.useState(()=>({value:c,wasPending:t.hasPending(n,r,s,i)})),[f,h]=m.useState(c),g=w=>{h(w),t.setValue(n,r,s,i,w)},v=()=>{d.wasPending?t.setValue(n,r,s,i,d.value):t.resetValue(n,r,s,i),t.closeEditor()};return a.jsxs("div",{className:"pointer-events-auto w-full rounded-xl border border-neutral-200 bg-white p-4 text-neutral-900 shadow-2xl dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 sm:w-[min(92vw,520px)]",children:[a.jsxs("div",{className:"mb-2 flex items-center justify-between gap-3",children:[a.jsxs("p",{className:"text-sm font-semibold",children:[l," ",a.jsxs("span",{className:"font-normal text-neutral-500",children:["(",Kd[i],")"]})]}),a.jsx("button",{type:"button",onClick:v,"aria-label":"Abbrechen",className:"rounded p-1 text-neutral-500 hover:bg-neutral-100 dark:hover:bg-neutral-800",children:a.jsx(yi,{className:"h-4 w-4"})})]}),u&&a.jsx("p",{className:"mb-2 text-xs text-neutral-500 dark:text-neutral-400",children:u}),o==="html"?a.jsx("div",{className:"max-h-[45vh] overflow-y-auto rounded-md border border-neutral-300 dark:border-neutral-700",children:a.jsx(m.Suspense,{fallback:a.jsx("p",{className:"p-3 text-sm text-neutral-500",children:"Editor lädt…"}),children:a.jsx(NT,{value:f,onChange:g})})}):o==="input"?a.jsx("input",{autoFocus:!0,value:f,onChange:w=>g(w.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-800"}):a.jsx("textarea",{autoFocus:!0,rows:7,value:f,onChange:w=>g(w.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-800"}),a.jsxs("div",{className:"mt-3 flex justify-end gap-2",children:[a.jsx("button",{type:"button",onClick:v,className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium hover:bg-neutral-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:"Abbrechen"}),a.jsx("button",{type:"button",onClick:t.closeEditor,className:"rounded-md bg-brand-500 px-3 py-1.5 text-sm font-semibold text-white hover:bg-brand-600",children:"Übernehmen"})]})]})}function LT({onClose:e}){const t=at(),{language:n,t:r}=pe(),s=et(),[i,o]=m.useState(""),[l,u]=m.useState(0);m.useEffect(()=>{const h=setTimeout(()=>u(g=>g+1),400);return()=>clearTimeout(h)},[s.pathname]);const c=m.useMemo(()=>t.usedTextKeys(s.pathname).filter(h=>typeof Tl(vn.de,h)=="string").sort((h,g)=>Ui(h)-Ui(g)||h.localeCompare(g)),[s.pathname,l,t.usedTextKeys]),d=i.trim().toLowerCase(),f=c.filter(h=>!d||h.toLowerCase().includes(d)||r(h).toLowerCase().includes(d));return a.jsxs("div",{className:"pointer-events-auto flex max-h-[60vh] w-full flex-col rounded-xl border border-neutral-200 bg-white text-neutral-900 shadow-2xl dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 sm:w-[min(92vw,520px)]",children:[a.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-neutral-200 p-4 pb-3 dark:border-neutral-800",children:[a.jsxs("div",{children:[a.jsxs("p",{className:"text-sm font-semibold",children:["Feste Texte auf dieser Seite ",a.jsxs("span",{className:"font-normal text-neutral-500",children:["(",Kd[n],")"]})]}),a.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Buttons, Beschriftungen, Menü und Fußzeile. Leer lassen = Standardtext."})]}),a.jsx("button",{type:"button",onClick:e,"aria-label":"Schließen",className:"rounded p-1 text-neutral-500 hover:bg-neutral-100 dark:hover:bg-neutral-800",children:a.jsx(yi,{className:"h-4 w-4"})})]}),a.jsx("div",{className:"px-4 pt-3",children:a.jsx("input",{type:"search",value:i,onChange:h=>o(h.target.value),placeholder:"Suchen…",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-800"})}),a.jsxs("ul",{className:"flex-1 space-y-3 overflow-y-auto p-4",children:[f.length===0&&a.jsx("li",{className:"text-sm text-neutral-500",children:"Keine Texte gefunden."}),f.map((h,g)=>{const v=Tl(vn[n],h)??Tl(vn.de,h),w=t.textOverride(n,h)!==void 0,b=r(h);return a.jsxs("li",{children:[Ui(h)&&(g===0||!Ui(f[g-1]))&&a.jsx("p",{className:"mb-3 border-t border-neutral-200 pt-3 text-xs font-semibold uppercase tracking-wide text-neutral-500 dark:border-neutral-800",children:"Auf allen Seiten (Menü, Fußzeile, Cookie-Hinweis)"}),a.jsxs("div",{className:"mb-1 flex items-center justify-between gap-2",children:[a.jsx("label",{htmlFor:`live-text-${h}`,className:"truncate font-mono text-[11px] text-neutral-500",title:h,children:h}),w&&a.jsxs("button",{type:"button",onClick:()=>t.setValue("text",h,"value",n,""),className:"flex shrink-0 items-center gap-1 text-[11px] text-neutral-500 hover:text-brand-600",title:`Standard: ${v}`,children:[a.jsx(vP,{className:"h-3 w-3"})," Standard"]})]}),a.jsx("textarea",{id:`live-text-${h}`,rows:b.length>60?3:1,value:b,onChange:p=>t.setValue("text",h,"value",n,p.target.value===v?"":p.target.value),className:`w-full resize-y rounded-md border bg-white px-2.5 py-1.5 text-sm dark:bg-neutral-800 ${w?"border-amber-400 dark:border-amber-500":"border-neutral-300 dark:border-neutral-700"}`})]},h)})]})]})}function AT(){const e=at(),{language:t}=pe(),[n,r]=m.useState(!1);if(!e.enabled)return null;const s=()=>{e.pendingCount&&!window.confirm("Es gibt ungespeicherte Änderungen. Bearbeiten trotzdem beenden? Die Änderungen gehen dann verloren.")||(e.discard(),e.setEnabled(!1))},i=e.editor&&`${e.editor.entity}|${e.editor.id}|${e.editor.field}|${e.editor.lang}`;return a.jsxs("div",{className:"pointer-events-none fixed inset-x-0 bottom-0 z-[150] flex flex-col items-end gap-2 p-2 sm:p-4",children:[e.editor?a.jsx(MT,{editor:e.editor},i):n&&a.jsx(LT,{onClose:()=>r(!1)}),a.jsxs("div",{className:"pointer-events-auto flex w-full flex-wrap items-center justify-between gap-2 rounded-xl border border-neutral-700 bg-neutral-950/95 px-3 py-2.5 text-sm text-neutral-100 shadow-2xl backdrop-blur sm:px-4",children:[a.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[a.jsx(Fy,{className:"h-4 w-4 shrink-0 text-brand-400"}),a.jsxs("p",{className:"min-w-0 truncate",children:[a.jsx("span",{className:"font-semibold",children:"Bearbeiten"}),a.jsxs("span",{className:"hidden text-neutral-400 sm:inline",children:[" · ",Kd[t]," · gestrichelte Stellen anklicken"]})]})]}),a.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.error&&a.jsx("span",{className:"max-w-xs text-xs text-red-400",children:e.error}),a.jsxs("button",{type:"button",onClick:()=>{e.closeEditor(),r(o=>!o)},className:`flex items-center gap-1.5 rounded-md border px-3 py-1.5 font-medium ${n?"border-brand-400 text-brand-300":"border-neutral-700 hover:bg-neutral-800"}`,children:[a.jsx(iP,{className:"h-4 w-4"}),a.jsx("span",{className:"hidden sm:inline",children:"Feste Texte"})]}),e.pendingCount>0&&a.jsx("button",{type:"button",onClick:e.discard,className:"rounded-md border border-neutral-700 px-3 py-1.5 font-medium hover:bg-neutral-800",children:"Verwerfen"}),a.jsxs("button",{type:"button",onClick:e.save,disabled:!e.pendingCount||e.saving,className:"flex items-center gap-1.5 rounded-md bg-brand-500 px-3 py-1.5 font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:[a.jsx(Ay,{className:"h-4 w-4"}),e.saving?"Speichere…":e.pendingCount?`Speichern (${e.pendingCount})`:"Gespeichert"]}),a.jsx("button",{type:"button",onClick:s,"aria-label":"Bearbeiten beenden",title:"Bearbeiten beenden",className:"rounded-md p-1.5 text-neutral-400 hover:bg-neutral-800 hover:text-white",children:a.jsx(yi,{className:"h-4 w-4"})})]})]})]})}const Jy=[{title:"Seiten",hint:"Ausgeblendete Seiten verschwinden aus dem Menü und leiten Besucher auf die Startseite um.",areas:[{key:"page.vehicles",label:"Fahrzeuge & Pakete",path:"/fahrzeuge"},{key:"page.services",label:"Leistungen",path:"/leistungen"},{key:"page.gallery",label:"Galerie",path:"/galerie"},{key:"page.downloads",label:"Downloads",path:"/downloads",note:"Erscheint ohnehin nur, wenn Downloads hinterlegt sind."}]},{title:"Startseite",hint:"Einzelne Abschnitte der Startseite. Das große Titelbild oben bleibt immer sichtbar.",areas:[{key:"home.stats",label:"Zahlen-Leiste"},{key:"home.partners",label:"Marken / Partner-Logos"},{key:"home.youtube",label:"Video-Abschnitt"},{key:"home.craft",label:"Handwerk & Beratung"},{key:"home.insights",label:"Einblicke (Bilder)"},{key:"home.reviews",label:"Kundenbewertungen"},{key:"home.more",label:'„Mehr als Car-Hifi"'},{key:"home.faq",label:"Häufige Fragen (FAQ)"}]}],DT=Jy[0].areas;function RT(e){if(!e)return null;const t=DT.find(n=>e===n.path||e.startsWith(`${n.path}/`));return t?t.key:null}function ev(e,t=[]){const n=RT(e);return!!n&&t.includes(n)}const VT=Jy.flatMap(e=>e.areas),IT={global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null}},FT={mon:{open:"09:00",close:"18:00",closed:!1},tue:{open:"09:00",close:"18:00",closed:!1},wed:{open:"09:00",close:"18:00",closed:!1},thu:{open:"09:00",close:"18:00",closed:!1},fri:{open:"09:00",close:"18:00",closed:!1},sat:{open:"10:00",close:"13:00",closed:!1},sun:{open:"",close:"",closed:!0}},Nl={phone:"09373 20 62 390",whatsapp:null,contact_email:"info@hifi-planet-amorbach.de",address_street:"Boxbrunner Str. 20a",address_zip:"63916",address_city:"Amorbach",logo_path:null,logo_dark_path:null,business_hours:FT,hero_image_path:null,ga_measurement_id:null,package_card_theme:"graphite",package_card_layout:"strip",package_wheel_hint_interval:8,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,gallery_card_text_x:0,gallery_card_text_y:100,site_font:null,page_loader_enabled:1,has_downloads:!1,hidden_areas:[],price_note:null,price_note_en:null},OT=["/impressum","/datenschutz","/agb"],Xm="hifi-site-settings",Zm="hifi-maintenance";function Qm(e){try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}}function Jm(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}const zT={mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday",sun:"Sunday"};function BT(e){var n,r,s;const t=document.getElementById("ld-business");if(t)try{const i=JSON.parse(t.textContent),o=(e.phone||"").replace(/[^\d+]/g,"");o&&(i.telephone=o.startsWith("+")?o:`+49${o.replace(/^0/,"")}`),e.contact_email&&(i.email=e.contact_email),i.address={"@type":"PostalAddress",streetAddress:e.address_street||((n=i.address)==null?void 0:n.streetAddress),postalCode:e.address_zip||((r=i.address)==null?void 0:r.postalCode),addressLocality:e.address_city||((s=i.address)==null?void 0:s.addressLocality),addressCountry:"DE"};const l=e.business_hours;l&&typeof l=="object"&&(i.openingHoursSpecification=Object.entries(zT).filter(([u])=>l[u]&&!l[u].closed&&l[u].open&&l[u].close).map(([u,c])=>({"@type":"OpeningHoursSpecification",dayOfWeek:c,opens:l[u].open,closes:l[u].close}))),t.textContent=JSON.stringify(i)}catch{}}function $T(){var _;const[e]=m.useState(()=>Qm(Xm)),[t,n]=m.useState(()=>Qm(Zm)),[r,s]=m.useState(()=>e?{...Nl,...e}:Nl),[i,o]=m.useState(!!e),[l,u]=m.useState({}),[c,d]=m.useState([]),{loading:f,hasPermission:h,user:g}=cr(),v=et(),w=es(),[b,p]=m.useState(!1),[x]=m.useState(()=>new Date(Date.now()+(7*24+3)*3600*1e3+42*60*1e3).toISOString());m.useEffect(()=>{ie.get("/maintenance").then(C=>{const B={...C,_received_at:Date.now()};n(B),Jm(Zm,B)}).catch(()=>n(C=>C||IT)),ie.get("/site-settings").then(C=>{s({...Nl,...C}),Jm(Xm,C)}).catch(()=>{}).finally(()=>o(!0)),ie.get("/text-styles").then(u).catch(()=>{}),ie.get("/custom-fonts").then(d).catch(()=>{})},[]),m.useEffect(()=>{r.site_font?document.documentElement.style.setProperty("--site-font",r.site_font):document.documentElement.style.removeProperty("--site-font")},[r.site_font]),m.useEffect(()=>{i&&BT(r)},[r,i]);const y=t==null?void 0:t.countdown,k=dT(y,t==null?void 0:t._received_at),E=!!(y!=null&&y.active)&&!b&&ta(y,k)>0;if(t===null||!i||((_=t.global)!=null&&_.enabled||E)&&f)return a.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});const T=h("maintenance.bypass"),S=OT.includes(v.pathname),j=!!g&&new URLSearchParams(v.search).get("countdown")==="vorschau";if(!S&&(E&&!g||j)){const C=j&&!(y!=null&&y.launch_at&&ta(y,k)>0)?{...y,launch_at:x}:y;return a.jsx(jl,{serverOverrides:r.text_overrides,children:a.jsx(El,{children:a.jsx(pT,{countdown:C,clockOffset:C===y?k:0,settings:r,preview:j,onClosePreview:()=>w("/",{replace:!0}),onLaunch:()=>p(!0)})})})}return t.global.enabled&&!T&&!S?a.jsx(jl,{serverOverrides:r.text_overrides,children:a.jsx(El,{children:a.jsx(vi,{message:t.global.message,fullScreen:!0})})}):a.jsx(jl,{serverOverrides:r.text_overrides,children:a.jsx(El,{children:a.jsx(yT,{value:{...t,bypass:T},children:a.jsx(GP,{value:r,children:a.jsx(vT,{value:l,children:a.jsx(Xy,{value:{fonts:c,refresh:()=>{}},children:a.jsxs("div",{className:"page-texture flex min-h-screen flex-col text-neutral-900 dark:text-neutral-100",children:[a.jsx(Qy,{}),T&&t.global.enabled&&a.jsx(wi,{}),!!g&&E&&a.jsx(gT,{countdown:y}),a.jsx(oT,{}),a.jsx(QP,{}),a.jsx("main",{className:"flex-1",children:a.jsx(TT,{enabled:v.pathname!=="/"&&!!r.page_loader_enabled,children:ev(v.pathname,r.hidden_areas)?a.jsx(sr,{to:"/",replace:!0}):a.jsx(m.Suspense,{fallback:a.jsx("div",{className:"min-h-[60vh]"}),children:a.jsx(ld,{})})})}),a.jsx(iT,{}),a.jsx(uT,{}),a.jsx(xT,{}),a.jsx(AT,{})]})})})})})})})}const Na=m.createContext({toast:{success:()=>{},error:()=>{},info:()=>{}},setDirty:()=>{},confirmLeave:()=>!0,refreshCounters:()=>{}});let HT=0;function UT({children:e,onRefreshCounters:t}){const[n,r]=m.useState([]),s=m.useRef(new Set),i=m.useCallback(f=>r(h=>h.filter(g=>g.id!==f)),[]),o=m.useCallback((f,h,g={})=>{const v=++HT;return r(w=>[...w.slice(-3),{id:v,type:f,message:h,action:g.action}]),setTimeout(()=>i(v),g.duration||(f==="error"?7e3:3500)),v},[i]),l=m.useMemo(()=>({success:(f,h)=>o("success",f,h),error:(f,h)=>o("error",f,h),info:(f,h)=>o("info",f,h)}),[o]),u=m.useCallback((f,h)=>{h?s.current.add(f):s.current.delete(f)},[]),c=m.useCallback(()=>{if(s.current.size===0)return!0;const f=window.confirm("Du hast ungespeicherte Änderungen. Seite trotzdem verlassen? Die Änderungen gehen dann verloren.");return f&&s.current.clear(),f},[]);m.useEffect(()=>{const f=g=>{s.current.size!==0&&(g.preventDefault(),g.returnValue="")},h=g=>{var b,p;if(s.current.size===0||g.defaultPrevented||g.button!==0)return;const v=(p=(b=g.target).closest)==null?void 0:p.call(b,"a[href]");if(!v||v.target==="_blank"||g.metaKey||g.ctrlKey||g.shiftKey)return;const w=new URL(v.href,window.location.href);w.origin!==window.location.origin||w.pathname===window.location.pathname||c()||(g.preventDefault(),g.stopPropagation())};return window.addEventListener("beforeunload",f),document.addEventListener("click",h,!0),()=>{window.removeEventListener("beforeunload",f),document.removeEventListener("click",h,!0)}},[c]);const d=m.useMemo(()=>({toast:l,setDirty:u,confirmLeave:c,refreshCounters:t||(()=>{})}),[l,u,c,t]);return a.jsxs(Na.Provider,{value:d,children:[e,a.jsx("div",{className:"pointer-events-none fixed bottom-4 right-4 z-[300] flex w-[min(92vw,380px)] flex-col gap-2","aria-live":"polite",children:n.map(f=>a.jsxs("div",{role:f.type==="error"?"alert":"status",className:`pointer-events-auto flex items-start justify-between gap-3 rounded-lg border px-4 py-3 text-sm shadow-lg ${f.type==="error"?"border-red-200 bg-red-50 text-red-800 dark:border-red-900 dark:bg-red-950 dark:text-red-200":f.type==="success"?"border-green-200 bg-green-50 text-green-800 dark:border-green-900 dark:bg-green-950 dark:text-green-200":"border-neutral-200 bg-white text-neutral-800 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100"}`,children:[a.jsxs("span",{children:[f.type==="success"?"✓ ":"",f.message]}),a.jsxs("span",{className:"flex shrink-0 items-center gap-3",children:[f.action&&a.jsx("button",{type:"button",onClick:()=>{f.action.onClick(),i(f.id)},className:"font-semibold underline",children:f.action.label}),a.jsx("button",{type:"button",onClick:()=>i(f.id),"aria-label":"Meldung schließen",className:"opacity-60 hover:opacity-100",children:"✕"})]})]},f.id))})]})}function D4(){return m.useContext(Na)}function R4(){return m.useContext(Na).toast}function V4(e,t="page"){const{setDirty:n}=m.useContext(Na);m.useEffect(()=>{n(t,!!e)},[e,t,n]),m.useEffect(()=>()=>n(t,!1),[t,n])}const WT=5*60*1e3,GT=30*60*1e3;function KT(){const{user:e,login:t,verifyTwoFactor:n}=cr(),[r,s]=m.useState(!1),[i,o]=m.useState("credentials"),[l,u]=m.useState((e==null?void 0:e.username)||""),[c,d]=m.useState(""),[f,h]=m.useState(""),[g,v]=m.useState(""),[w,b]=m.useState(!1),p=m.useRef(Date.now()),x=m.useRef(null);if(qy(x,r,()=>{}),m.useEffect(()=>vC(()=>s(!0)),[]),m.useEffect(()=>{const S=()=>{p.current=Date.now()},j=["keydown","pointerdown","scroll"];j.forEach(C=>window.addEventListener(C,S,{passive:!0}));const _=setInterval(()=>{document.hidden||Date.now()-p.current>GT||ie.get("/auth/me").then(C=>{(C==null?void 0:C.authenticated)===!1&&s(!0)}).catch(()=>{})},WT);return()=>{j.forEach(C=>window.removeEventListener(C,S)),clearInterval(_)}},[]),!r)return null;const y=()=>{s(!1),o("credentials"),d(""),h(""),v("")},k=async S=>{S.preventDefault(),b(!0),v("");try{(await t(l,c)).requires2fa?o("code"):y()}catch(j){v(j.message)}finally{b(!1)}},E=async S=>{S.preventDefault(),b(!0),v("");try{await n(f),y()}catch(j){v(j.message)}finally{b(!1)}},T="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900";return a.jsx("div",{className:"fixed inset-0 z-[400] flex items-center justify-center bg-black/50 p-4",children:a.jsxs("div",{ref:x,role:"dialog","aria-modal":"true","aria-labelledby":"session-expired-title",className:"w-full max-w-sm rounded-xl bg-white p-6 shadow-xl dark:bg-neutral-900",children:[a.jsx("h2",{id:"session-expired-title",className:"mb-1 text-lg font-bold text-neutral-900 dark:text-white",children:"Bitte erneut anmelden"}),a.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Deine Sitzung ist abgelaufen. Deine Eingaben auf dieser Seite bleiben erhalten – nach dem Anmelden einfach noch einmal speichern."}),i==="credentials"?a.jsxs("form",{onSubmit:k,className:"space-y-3",children:[a.jsx("input",{value:l,onChange:S=>u(S.target.value),required:!0,placeholder:"Benutzername",autoComplete:"username",className:T}),a.jsx("input",{type:"password",value:c,onChange:S=>d(S.target.value),required:!0,placeholder:"Passwort",autoComplete:"current-password",className:T}),g&&a.jsx("p",{className:"text-sm text-red-600",children:g}),a.jsx("button",{type:"submit",disabled:w,className:"w-full rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:w?"Melde an…":"Anmelden"})]}):a.jsxs("form",{onSubmit:E,className:"space-y-3",children:[a.jsx("input",{value:f,onChange:S=>h(S.target.value),required:!0,inputMode:"numeric",autoComplete:"one-time-code",placeholder:"6-stelliger Code aus der App",className:T}),g&&a.jsx("p",{className:"text-sm text-red-600",children:g}),a.jsx("button",{type:"submit",disabled:w,className:"w-full rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:w?"Prüfe…":"Bestätigen"})]})]})})}const ep="/assets/logo-BNfZDkmN.png",tp={home:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9",tag:"M4 4h7l9 9-7 7-9-9V4Zm3.5 3.5h.01",car:"M3 13.5 4.5 9A2 2 0 0 1 6.4 7.5h11.2A2 2 0 0 1 19.5 9L21 13.5M3 13.5v4a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1h12v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-4M3 13.5h18M6.5 16.5h.01M17.5 16.5h.01",box:"M12 3 4 7.5v9L12 21l8-4.5v-9L12 3Zm0 9 8-4.5M12 12v9M12 12 4 7.5",mail:"M4 6h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Zm0 0 8 7 8-7",users:"M16 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-4 6c-4 0-7 2-7 4.5V19h14v-1.5C19 15 16 13 12 13Z",shield:"M12 3 4 6v6c0 4.5 3.4 7.7 8 9 4.6-1.3 8-4.5 8-9V6l-8-3Zm-1.5 9.5 4-4 1 1-5 5-2.5-2.5 1-1 1.5 1.5Z",lock:"M6 10V8a6 6 0 1 1 12 0v2m-13 0h14a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1Zm7 5v2",briefcase:"M4 7h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1Zm4 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 12h18",sliders:"M4 6h16M4 6a2 2 0 1 0 4 0 2 2 0 0 0-4 0Zm16 6H4m10 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0ZM4 18h16m-12 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0Z",image:"M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm2 12 4.5-5.5L14 16l2.5-3L20 17H6ZM8 9.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",help:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-5.5v.01M9.5 9.25a2.5 2.5 0 1 1 3.5 2.29c-.7.32-1 .77-1 1.46v.3",download:"M12 4v11m0 0-4-4m4 4 4-4M5 19h14",gauge:"M4 13a8 8 0 1 1 16 0M12 13l3.5-3.5M6 17h12",inbox:"M3 13h5l1.5 2.5h5L16 13h5M5 5h14l2 8v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5l2-8Z",building:"M4 21V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v16M15 9h4a1 1 0 0 1 1 1v11M3 21h18M8 8h3M8 12h3M8 16h3",palette:"M12 3a9 9 0 1 0 0 18c1 0 1.5-.7 1.5-1.5 0-.4-.2-.8-.4-1.1-.3-.3-.4-.7-.4-1.1 0-.8.7-1.5 1.5-1.5H16a5 5 0 0 0 5-5c0-4.4-4-7.8-9-7.8ZM7.5 12h.01M10 7.5h.01M15 7.5h.01",file:"M7 3h7l5 5v12a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm7 0v5h5M9 13h6M9 17h6",wrench:"M14.5 6.5a4 4 0 0 0-5.3 5.3L4 17l3 3 5.2-5.2a4 4 0 0 0 5.3-5.3l-2.5 2.5-2.5-.5-.5-2.5 2.5-2.5Z",server:"M4 4h16v6H4V4Zm0 10h16v6H4v-6Zm3-7h.01M7 17h.01",globe:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm-9-9h18M12 3c2.5 2.5 3.5 5.5 3.5 9s-1 6.5-3.5 9c-2.5-2.5-3.5-5.5-3.5-9s1-6.5 3.5-9Z",send:"M4 12 20 4l-4 16-4-7-8-1Zm8 1 8-9",refresh:"M20 11a8 8 0 0 0-14.9-3M4 4v4h4m-4 5a8 8 0 0 0 14.9 3M20 20v-4h-4",trash:"M5 7h14M10 11v6m4-6v6M6 7l1 13h10l1-13M9 7V4h6v3",external:"M14 4h6v6m0-6-9 9M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5",pause:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm-2-12v6m4-6v6",timer:"M10 2h4M12 14l3-3M12 22a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z"},np=({path:e})=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",className:"h-5 w-5 shrink-0",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})});function qT(){const{logout:e,user:t,hasPermission:n}=cr(),r=es(),[s,i]=m.useState(!1),[o,l]=m.useState(0),[u,c]=m.useState([]),[d,f]=m.useState([]),[h,g]=m.useState(!1),[v,w]=m.useState(null),b=m.useCallback(()=>{n("contact.manage")&&ie.get("/contact").then(S=>l(S.filter(j=>j.status==="new").length)).catch(()=>{}),ie.get("/site-settings").then(S=>f(S.hidden_areas||[])).catch(()=>{}),ie.get("/maintenance").then(S=>{var j,_;g(!!((j=S==null?void 0:S.global)!=null&&j.enabled)),w((_=S==null?void 0:S.countdown)!=null&&_.active?S.countdown.launch_at:null)}).catch(()=>{})},[t==null?void 0:t.id]);m.useEffect(()=>{b();const S=setInterval(b,2*60*1e3);return()=>clearInterval(S)},[b]);const p=VT.filter(S=>d.includes(S.key)).map(S=>S.label),x=()=>ie.get("/custom-fonts").then(c).catch(()=>{});m.useEffect(()=>{x()},[]);const y=[{title:null,links:[{to:"/admin",label:"Übersicht",icon:"gauge",end:!0},{to:"/admin/contact-requests",label:"Anfragen",icon:"inbox",permission:"contact.manage",badge:o}]},{title:"Fahrzeuge & Pakete",links:[{to:"/admin/brands",label:"Fahrzeugmarken",icon:"tag",permission:"brands.manage"},{to:"/admin/models",label:"Modelle",icon:"car",permission:"models.manage"},{to:"/admin/packages",label:"Pakete",icon:"box",permission:"packages.manage"}]},{title:"Website-Inhalte",links:[{to:"/admin/home-sections",label:"Startseite",icon:"home",permission:"content.manage"},{to:"/admin/services",label:"Leistungen",icon:"briefcase",permission:"services.manage"},{to:"/admin/faqs",label:"FAQ",icon:"help",permission:"content.manage"},{to:"/admin/partners",label:"Partner-Logos",icon:"shield",permission:"content.manage"},{to:"/admin/downloads",label:"Downloads",icon:"download",permission:"downloads.manage"}]},{title:"Bildergalerie",links:[{to:"/admin/gallery-brands",label:"Galerie-Marken",icon:"image",permission:"gallery.manage"},{to:"/admin/gallery-projects",label:"Projekte & Fotos",icon:"image",permission:"gallery.manage"}]},{title:"Firma & Aussehen",links:[{to:"/admin/settings/company",label:"Firmendaten",icon:"building",permission:"settings.manage"},{to:"/admin/settings/design",label:"Aussehen",icon:"palette",permission:"settings.manage"},{to:"/admin/settings/legal",label:"Rechtstexte",icon:"file",permission:"settings.manage"},{to:"/admin/settings/maintenance",label:"Wartungsmodus",icon:"pause",permission:"settings.manage"},{to:"/admin/settings/countdown",label:"Launch-Countdown",icon:"timer",permission:"settings.manage"}]},{title:"System (Experten)",links:[{to:"/admin/users",label:"Benutzer",icon:"users",permission:"users.manage"},{to:"/admin/permission-groups",label:"Berechtigungsgruppen",icon:"lock",permission:"permission_groups.manage"},{to:"/admin/settings/email",label:"E-Mail-Versand",icon:"send",permission:"system.admin"},{to:"/admin/settings/google",label:"Google-Dienste",icon:"globe",permission:"system.admin"},{to:"/admin/settings/database",label:"Datenbank",icon:"server",permission:"system.admin"},{to:"/admin/settings/export-import",label:"Export & Import",icon:"download",permission:"system.admin"},{to:"/admin/settings/update",label:"Updates",icon:"refresh",permission:"system.update"},{to:"/admin/settings/reset",label:"Zurücksetzen",icon:"trash",permission:"system.admin"}]},{title:null,links:[{to:"/admin/account",label:"Mein Konto",icon:"lock"}]}].map(S=>({...S,links:S.links.filter(j=>!j.permission||n(j.permission))})).filter(S=>S.links.length>0),k=async()=>{await e(),r("/admin/login")},E=({isActive:S})=>`flex items-center justify-between gap-2 rounded-md px-3 py-2 text-sm font-medium transition ${S?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,T=({onNavigate:S})=>a.jsx("nav",{className:"space-y-5",children:y.map((j,_)=>a.jsxs("div",{children:[j.title&&a.jsx("p",{className:"mb-1.5 px-3 text-xs font-semibold uppercase tracking-wide text-neutral-400 dark:text-neutral-500",children:j.title}),a.jsx("div",{className:"space-y-1",children:j.links.map(C=>a.jsxs(Vb,{to:C.to,end:C.end,className:E,onClick:S,children:[a.jsxs("span",{className:"flex items-center gap-2.5",children:[a.jsx(np,{path:tp[C.icon]}),C.label]}),!!C.badge&&a.jsx("span",{className:"rounded-full bg-red-500 px-2 py-0.5 text-xs font-bold text-white",children:C.badge})]},C.to))})]},_))});return a.jsxs(UT,{onRefreshCounters:b,children:[a.jsx(KT,{}),a.jsx(Xy,{value:{fonts:u,refresh:x},children:a.jsxs("div",{className:"flex min-h-screen bg-neutral-50 text-neutral-900 dark:bg-neutral-950 dark:text-neutral-100",children:[a.jsx(Qy,{}),a.jsxs("aside",{className:"hidden w-60 shrink-0 border-r border-neutral-200 p-4 dark:border-neutral-800 sm:block",children:[a.jsxs("div",{className:"mb-6 flex items-center gap-2 px-3",children:[a.jsxs(U,{to:"/",className:"rounded-lg px-2 py-1",children:[a.jsx("img",{src:ep,alt:"HifiPlanet",className:"h-7 w-auto dark:hidden"}),a.jsx("img",{src:ea,alt:"HifiPlanet",className:"hidden h-7 w-auto dark:block"})]}),a.jsx("span",{className:"text-sm font-semibold text-neutral-500 dark:text-neutral-400",children:"Admin"})]}),a.jsx(T,{})]}),a.jsxs("div",{className:"flex-1",children:[a.jsxs("header",{className:"border-b border-neutral-200 dark:border-neutral-800",children:[a.jsxs("div",{className:"flex items-center justify-between px-4 py-3 sm:px-6",children:[a.jsxs("div",{className:"flex items-center gap-2 sm:hidden",children:[a.jsx("button",{onClick:()=>i(S=>!S),"aria-label":"Menü öffnen",className:"rounded-md p-2 text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800",children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})}),a.jsxs(U,{to:"/",className:"rounded-lg px-1.5 py-0.5",children:[a.jsx("img",{src:ep,alt:"HifiPlanet",className:"h-6 w-auto dark:hidden"}),a.jsx("img",{src:ea,alt:"HifiPlanet",className:"hidden h-6 w-auto dark:block"})]})]}),a.jsxs("p",{className:"hidden text-sm text-neutral-500 dark:text-neutral-400 sm:block",children:["Angemeldet als ",t==null?void 0:t.username,t!=null&&t.is_super_admin?" · Super-Admin":""]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("a",{href:"/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:[a.jsx(np,{path:tp.external}),a.jsx("span",{className:"hidden sm:inline",children:"Website öffnen"})]}),a.jsx(Hy,{}),a.jsx("button",{onClick:k,className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:"Abmelden"})]})]}),s&&a.jsx("div",{className:"border-t border-neutral-200 px-4 py-3 dark:border-neutral-800 sm:hidden",children:a.jsx(T,{onNavigate:()=>i(!1)})})]}),(h||v||p.length>0)&&a.jsxs("div",{className:"border-b border-amber-200 bg-amber-50 px-4 py-2 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200 sm:px-6",children:[h&&a.jsxs("p",{children:[a.jsx("strong",{children:"Wartungsmodus ist aktiv"})," – Besucher sehen gerade nur die Wartungsseite."," ",n("settings.manage")&&a.jsx(U,{to:"/admin/settings/maintenance",className:"underline",children:"Ändern"})]}),v&&a.jsxs("p",{children:[a.jsx("strong",{children:"Launch-Countdown läuft"})," – Besucher sehen bis"," ",new Date(v).toLocaleString("de-DE",{dateStyle:"medium",timeStyle:"short",timeZone:"Europe/Berlin"})," Uhr nur den Countdown."," ",n("settings.manage")&&a.jsx(U,{to:"/admin/settings/countdown",className:"underline",children:"Ändern"})]}),p.length>0&&a.jsxs("p",{children:[a.jsx("strong",{children:"Ausgeblendet für Besucher:"})," ",p.join(", "),"."," ",a.jsx(U,{to:"/admin",className:"underline",children:"Auf der Übersicht ändern"})]})]}),a.jsx("main",{className:"p-4 sm:p-6",children:a.jsx(m.Suspense,{fallback:a.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}),children:a.jsx(ld,{})})})]})]})})]})}function YT(){const{user:e,loading:t}=cr();return t?a.jsx("div",{className:"flex min-h-screen items-center justify-center text-neutral-500",children:"Lädt…"}):e?a.jsx(ld,{}):a.jsx(sr,{to:"/admin/login",replace:!0})}function ce({permission:e,children:t}){const{hasPermission:n}=cr();return(Array.isArray(e)?e:[e]).some(i=>n(i))?t:a.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-8 text-center dark:border-neutral-800 dark:bg-neutral-900",children:[a.jsx("h1",{className:"mb-2 text-lg font-bold text-neutral-900 dark:text-white",children:"Keine Berechtigung"}),a.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:"Du hast keinen Zugriff auf diesen Bereich. Bitte wende dich an einen Administrator, falls du hier Zugriff brauchst."})]})}function mo(e,t,n="name"){if(!t)return;let r=document.head.querySelector(`meta[${n}="${e}"]`);r||(r=document.createElement("meta"),r.setAttribute(n,e),document.head.appendChild(r)),r.setAttribute("content",t)}function XT(e){let t=document.head.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.setAttribute("rel","canonical"),document.head.appendChild(t)),t.setAttribute("href",`https://hifi-planet.de${e}`),mo("og:url",`https://hifi-planet.de${e}`,"property")}function rp(e){let t=document.head.querySelector('meta[name="robots"]');if(!e){t==null||t.remove();return}t||(t=document.createElement("meta"),t.setAttribute("name","robots"),document.head.appendChild(t)),t.setAttribute("content","noindex")}function dr({title:e,description:t,path:n,noindex:r=!1}){m.useEffect(()=>(rp(r),()=>rp(!1)),[r]),m.useEffect(()=>{e&&(document.title=`${e} | HifiPlanet`,mo("og:title",`${e} | HifiPlanet`,"property")),t&&(mo("description",t),mo("og:description",t,"property")),n&&XT(n)},[e,t,n])}const ZT=[.16,1,.3,1],sp={up:{y:40},left:{x:-56},right:{x:56}};function QT(e){return{hidden:{opacity:0,scale:.96,filter:"blur(8px)",...sp[e]||sp.up},visible:{opacity:1,scale:1,x:0,y:0,filter:"blur(0px)"}}}const JT={hidden:{x:"-130%"},visible:{x:"230%",transition:{duration:1.1,ease:"easeInOut",delay:.4}}};function He({children:e,direction:t="up",className:n="",index:r=0,shine:s=!1,style:i}){const o=Math.min(r*.09,.45);return a.jsxs(Qt.div,{className:n,style:{position:"relative",overflow:"hidden",...i},initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.25,margin:"-100px"},variants:QT(t),transition:{duration:.75,ease:ZT,delay:o},children:[e,s&&a.jsx(Qt.div,{"aria-hidden":!0,variants:JT,className:"pointer-events-none absolute inset-y-0 -left-1/3 w-1/3 rotate-12 bg-gradient-to-r from-transparent via-white/40 to-transparent"})]})}const qd=e=>{e.preventDefault(),e.stopPropagation()};function eN(e){e.preventDefault();const t=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)}function le({entity:e,id:t,field:n,lang:r,value:s,as:i="span",multiline:o=!1,placeholder:l="Text eingeben…",className:u="",...c}){const{language:d}=pe(),f=at(),h=r||d,g=f.getValue(e,t,n,h,s??"")??"";if(!f.canEdit(e))return a.jsx(i,{className:u,...c,children:g});const v=w=>{const b=o?w.innerText.replace(/\n{3,}/g,`
+`);return a.jsx("style",{children:t})}const ST=150,jT=300,ET=80,CT=5e3;function PT(){return a.jsx("div",{className:"fixed inset-0 z-[200] flex items-center justify-center bg-white dark:bg-neutral-950",children:a.jsx("div",{className:"h-10 w-10 animate-spin rounded-full border-4 border-neutral-200 border-t-brand-500 dark:border-neutral-800 dark:border-t-brand-500"})})}function TT({enabled:e,children:t}){const n=et(),[r,s]=m.useState(!e),[i,o]=m.useState(!1),l=m.useRef(null);return m.useLayoutEffect(()=>{const u=l.current;if(!e||!u){s(!0),o(!1);return}s(!1),o(!1);let c=!1,d=0,f=null;const h=new Set,g=setTimeout(()=>{d=Date.now(),o(!0)},ST),v=()=>{s(!0),o(!1)},w=()=>{c=!0,clearTimeout(g),clearTimeout(f),clearTimeout(T),k.disconnect(),E()},b=()=>{if(c)return;w();const S=d?jT-(Date.now()-d):0;S>0?setTimeout(v,S):v()},p=()=>{clearTimeout(f),f=setTimeout(()=>{h.size===0&&xC()===0&&b()},ET)},x=S=>{if(h.has(S)||S.complete||S.getBoundingClientRect().top>=window.innerHeight)return;S.loading==="lazy"&&(S.loading="eager"),h.add(S);const j=()=>{h.delete(S),S.removeEventListener("load",j),S.removeEventListener("error",j),p()};S.addEventListener("load",j),S.addEventListener("error",j)},y=S=>{var j;S.nodeType===1&&(S.tagName==="IMG"&&x(S),(j=S.querySelectorAll)==null||j.call(S,"img").forEach(x))},k=new MutationObserver(S=>{S.forEach(j=>j.addedNodes.forEach(y)),p()});k.observe(u,{childList:!0,subtree:!0});const E=yC(p),T=setTimeout(b,CT);return u.querySelectorAll("img").forEach(x),p(),()=>{c||w()}},[n.pathname,e]),a.jsxs("div",{className:"relative",children:[a.jsx("div",{ref:l,style:e?{visibility:r?"visible":"hidden"}:void 0,children:t}),e&&i&&a.jsx(PT,{})]})}const NT=m.lazy(()=>X(()=>import("./RichTextEditor-DOxjC-7q.js"),[])),Kd={de:"Deutsch",en:"Englisch"},_T=["nav.","footer.","cookieConsent.","languageToggle.","themeToggle.","maintenance."],Ui=e=>_T.some(t=>e.startsWith(t));function Tl(e,t){return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}function MT({editor:e}){const t=at(),{entity:n,id:r,field:s,lang:i,kind:o,label:l,hint:u,original:c}=e,[d]=m.useState(()=>({value:c,wasPending:t.hasPending(n,r,s,i)})),[f,h]=m.useState(c),g=w=>{h(w),t.setValue(n,r,s,i,w)},v=()=>{d.wasPending?t.setValue(n,r,s,i,d.value):t.resetValue(n,r,s,i),t.closeEditor()};return a.jsxs("div",{className:"pointer-events-auto w-full rounded-xl border border-neutral-200 bg-white p-4 text-neutral-900 shadow-2xl dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 sm:w-[min(92vw,520px)]",children:[a.jsxs("div",{className:"mb-2 flex items-center justify-between gap-3",children:[a.jsxs("p",{className:"text-sm font-semibold",children:[l," ",a.jsxs("span",{className:"font-normal text-neutral-500",children:["(",Kd[i],")"]})]}),a.jsx("button",{type:"button",onClick:v,"aria-label":"Abbrechen",className:"rounded p-1 text-neutral-500 hover:bg-neutral-100 dark:hover:bg-neutral-800",children:a.jsx(yi,{className:"h-4 w-4"})})]}),u&&a.jsx("p",{className:"mb-2 text-xs text-neutral-500 dark:text-neutral-400",children:u}),o==="html"?a.jsx("div",{className:"max-h-[45vh] overflow-y-auto rounded-md border border-neutral-300 dark:border-neutral-700",children:a.jsx(m.Suspense,{fallback:a.jsx("p",{className:"p-3 text-sm text-neutral-500",children:"Editor lädt…"}),children:a.jsx(NT,{value:f,onChange:g})})}):o==="input"?a.jsx("input",{autoFocus:!0,value:f,onChange:w=>g(w.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-800"}):a.jsx("textarea",{autoFocus:!0,rows:7,value:f,onChange:w=>g(w.target.value),className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm dark:border-neutral-700 dark:bg-neutral-800"}),a.jsxs("div",{className:"mt-3 flex justify-end gap-2",children:[a.jsx("button",{type:"button",onClick:v,className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium hover:bg-neutral-50 dark:border-neutral-700 dark:hover:bg-neutral-800",children:"Abbrechen"}),a.jsx("button",{type:"button",onClick:t.closeEditor,className:"rounded-md bg-brand-500 px-3 py-1.5 text-sm font-semibold text-white hover:bg-brand-600",children:"Übernehmen"})]})]})}function LT({onClose:e}){const t=at(),{language:n,t:r}=pe(),s=et(),[i,o]=m.useState(""),[l,u]=m.useState(0);m.useEffect(()=>{const h=setTimeout(()=>u(g=>g+1),400);return()=>clearTimeout(h)},[s.pathname]);const c=m.useMemo(()=>t.usedTextKeys(s.pathname).filter(h=>typeof Tl(vn.de,h)=="string").sort((h,g)=>Ui(h)-Ui(g)||h.localeCompare(g)),[s.pathname,l,t.usedTextKeys]),d=i.trim().toLowerCase(),f=c.filter(h=>!d||h.toLowerCase().includes(d)||r(h).toLowerCase().includes(d));return a.jsxs("div",{className:"pointer-events-auto flex max-h-[60vh] w-full flex-col rounded-xl border border-neutral-200 bg-white text-neutral-900 shadow-2xl dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100 sm:w-[min(92vw,520px)]",children:[a.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-neutral-200 p-4 pb-3 dark:border-neutral-800",children:[a.jsxs("div",{children:[a.jsxs("p",{className:"text-sm font-semibold",children:["Feste Texte auf dieser Seite ",a.jsxs("span",{className:"font-normal text-neutral-500",children:["(",Kd[n],")"]})]}),a.jsx("p",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Buttons, Beschriftungen, Menü und Fußzeile. Leer lassen = Standardtext."})]}),a.jsx("button",{type:"button",onClick:e,"aria-label":"Schließen",className:"rounded p-1 text-neutral-500 hover:bg-neutral-100 dark:hover:bg-neutral-800",children:a.jsx(yi,{className:"h-4 w-4"})})]}),a.jsx("div",{className:"px-4 pt-3",children:a.jsx("input",{type:"search",value:i,onChange:h=>o(h.target.value),placeholder:"Suchen…",className:"w-full rounded-md border border-neutral-300 bg-white px-3 py-1.5 text-sm dark:border-neutral-700 dark:bg-neutral-800"})}),a.jsxs("ul",{className:"flex-1 space-y-3 overflow-y-auto p-4",children:[f.length===0&&a.jsx("li",{className:"text-sm text-neutral-500",children:"Keine Texte gefunden."}),f.map((h,g)=>{const v=Tl(vn[n],h)??Tl(vn.de,h),w=t.textOverride(n,h)!==void 0,b=r(h);return a.jsxs("li",{children:[Ui(h)&&(g===0||!Ui(f[g-1]))&&a.jsx("p",{className:"mb-3 border-t border-neutral-200 pt-3 text-xs font-semibold uppercase tracking-wide text-neutral-500 dark:border-neutral-800",children:"Auf allen Seiten (Menü, Fußzeile, Cookie-Hinweis)"}),a.jsxs("div",{className:"mb-1 flex items-center justify-between gap-2",children:[a.jsx("label",{htmlFor:`live-text-${h}`,className:"truncate font-mono text-[11px] text-neutral-500",title:h,children:h}),w&&a.jsxs("button",{type:"button",onClick:()=>t.setValue("text",h,"value",n,""),className:"flex shrink-0 items-center gap-1 text-[11px] text-neutral-500 hover:text-brand-600",title:`Standard: ${v}`,children:[a.jsx(vP,{className:"h-3 w-3"})," Standard"]})]}),a.jsx("textarea",{id:`live-text-${h}`,rows:b.length>60?3:1,value:b,onChange:p=>t.setValue("text",h,"value",n,p.target.value===v?"":p.target.value),className:`w-full resize-y rounded-md border bg-white px-2.5 py-1.5 text-sm dark:bg-neutral-800 ${w?"border-amber-400 dark:border-amber-500":"border-neutral-300 dark:border-neutral-700"}`})]},h)})]})]})}function AT(){const e=at(),{language:t}=pe(),[n,r]=m.useState(!1);if(!e.enabled)return null;const s=()=>{e.pendingCount&&!window.confirm("Es gibt ungespeicherte Änderungen. Bearbeiten trotzdem beenden? Die Änderungen gehen dann verloren.")||(e.discard(),e.setEnabled(!1))},i=e.editor&&`${e.editor.entity}|${e.editor.id}|${e.editor.field}|${e.editor.lang}`;return a.jsxs("div",{className:"pointer-events-none fixed inset-x-0 bottom-0 z-[150] flex flex-col items-end gap-2 p-2 sm:p-4",children:[e.editor?a.jsx(MT,{editor:e.editor},i):n&&a.jsx(LT,{onClose:()=>r(!1)}),a.jsxs("div",{className:"pointer-events-auto flex w-full flex-wrap items-center justify-between gap-2 rounded-xl border border-neutral-700 bg-neutral-950/95 px-3 py-2.5 text-sm text-neutral-100 shadow-2xl backdrop-blur sm:px-4",children:[a.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[a.jsx(Fy,{className:"h-4 w-4 shrink-0 text-brand-400"}),a.jsxs("p",{className:"min-w-0 truncate",children:[a.jsx("span",{className:"font-semibold",children:"Bearbeiten"}),a.jsxs("span",{className:"hidden text-neutral-400 sm:inline",children:[" · ",Kd[t]," · gestrichelte Stellen anklicken"]})]})]}),a.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.error&&a.jsx("span",{className:"max-w-xs text-xs text-red-400",children:e.error}),a.jsxs("button",{type:"button",onClick:()=>{e.closeEditor(),r(o=>!o)},className:`flex items-center gap-1.5 rounded-md border px-3 py-1.5 font-medium ${n?"border-brand-400 text-brand-300":"border-neutral-700 hover:bg-neutral-800"}`,children:[a.jsx(iP,{className:"h-4 w-4"}),a.jsx("span",{className:"hidden sm:inline",children:"Feste Texte"})]}),e.pendingCount>0&&a.jsx("button",{type:"button",onClick:e.discard,className:"rounded-md border border-neutral-700 px-3 py-1.5 font-medium hover:bg-neutral-800",children:"Verwerfen"}),a.jsxs("button",{type:"button",onClick:e.save,disabled:!e.pendingCount||e.saving,className:"flex items-center gap-1.5 rounded-md bg-brand-500 px-3 py-1.5 font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:[a.jsx(Ay,{className:"h-4 w-4"}),e.saving?"Speichere…":e.pendingCount?`Speichern (${e.pendingCount})`:"Gespeichert"]}),a.jsx("button",{type:"button",onClick:s,"aria-label":"Bearbeiten beenden",title:"Bearbeiten beenden",className:"rounded-md p-1.5 text-neutral-400 hover:bg-neutral-800 hover:text-white",children:a.jsx(yi,{className:"h-4 w-4"})})]})]})]})}const Jy=[{title:"Seiten",hint:"Ausgeblendete Seiten verschwinden aus dem Menü und leiten Besucher auf die Startseite um.",areas:[{key:"page.vehicles",label:"Fahrzeuge & Pakete",path:"/fahrzeuge"},{key:"page.services",label:"Leistungen",path:"/leistungen"},{key:"page.gallery",label:"Galerie",path:"/galerie"},{key:"page.downloads",label:"Downloads",path:"/downloads",note:"Erscheint ohnehin nur, wenn Downloads hinterlegt sind."}]},{title:"Startseite",hint:"Einzelne Abschnitte der Startseite. Das große Titelbild oben bleibt immer sichtbar.",areas:[{key:"home.stats",label:"Zahlen-Leiste"},{key:"home.partners",label:"Marken / Partner-Logos"},{key:"home.youtube",label:"Video-Abschnitt"},{key:"home.craft",label:"Handwerk & Beratung"},{key:"home.insights",label:"Einblicke (Bilder)"},{key:"home.reviews",label:"Kundenbewertungen"},{key:"home.more",label:'„Mehr als Car-Hifi"'},{key:"home.faq",label:"Häufige Fragen (FAQ)"}]}],DT=Jy[0].areas;function RT(e){if(!e)return null;const t=DT.find(n=>e===n.path||e.startsWith(`${n.path}/`));return t?t.key:null}function ev(e,t=[]){const n=RT(e);return!!n&&t.includes(n)}const VT=Jy.flatMap(e=>e.areas),IT={global:{enabled:!1,message:null},services:{enabled:!1,message:null},vehicles:{enabled:!1,message:null}},FT={mon:{open:"09:00",close:"18:00",closed:!1},tue:{open:"09:00",close:"18:00",closed:!1},wed:{open:"09:00",close:"18:00",closed:!1},thu:{open:"09:00",close:"18:00",closed:!1},fri:{open:"09:00",close:"18:00",closed:!1},sat:{open:"10:00",close:"13:00",closed:!1},sun:{open:"",close:"",closed:!0}},Nl={phone:"09373 20 62 390",whatsapp:null,contact_email:"info@hifi-planet-amorbach.de",address_street:"Boxbrunner Str. 20a",address_zip:"63916",address_city:"Amorbach",logo_path:null,logo_dark_path:null,business_hours:FT,hero_image_path:null,ga_measurement_id:null,package_card_theme:"graphite",package_card_layout:"strip",package_wheel_hint_interval:8,package_card_width:210,package_card_height:480,vehicle_tile_width:240,vehicle_tile_height:180,gallery_card_text_x:0,gallery_card_text_y:100,site_font:null,page_loader_enabled:1,has_downloads:!1,hidden_areas:[],price_note:null,price_note_en:null},OT=["/impressum","/datenschutz","/agb"],Xm="hifi-site-settings",Zm="hifi-maintenance";function Qm(e){try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}}function Jm(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch{}}const zT={mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday",sun:"Sunday"};function BT(e){var n,r,s;const t=document.getElementById("ld-business");if(t)try{const i=JSON.parse(t.textContent),o=(e.phone||"").replace(/[^\d+]/g,"");o&&(i.telephone=o.startsWith("+")?o:`+49${o.replace(/^0/,"")}`),e.contact_email&&(i.email=e.contact_email),i.address={"@type":"PostalAddress",streetAddress:e.address_street||((n=i.address)==null?void 0:n.streetAddress),postalCode:e.address_zip||((r=i.address)==null?void 0:r.postalCode),addressLocality:e.address_city||((s=i.address)==null?void 0:s.addressLocality),addressCountry:"DE"};const l=e.business_hours;l&&typeof l=="object"&&(i.openingHoursSpecification=Object.entries(zT).filter(([u])=>l[u]&&!l[u].closed&&l[u].open&&l[u].close).map(([u,c])=>({"@type":"OpeningHoursSpecification",dayOfWeek:c,opens:l[u].open,closes:l[u].close}))),t.textContent=JSON.stringify(i)}catch{}}function $T(){var _;const[e]=m.useState(()=>Qm(Xm)),[t,n]=m.useState(()=>Qm(Zm)),[r,s]=m.useState(()=>e?{...Nl,...e}:Nl),[i,o]=m.useState(!!e),[l,u]=m.useState({}),[c,d]=m.useState([]),{loading:f,hasPermission:h,user:g}=cr(),v=et(),w=es(),[b,p]=m.useState(!1),[x]=m.useState(()=>new Date(Date.now()+(7*24+3)*3600*1e3+42*60*1e3).toISOString());m.useEffect(()=>{ie.get("/maintenance").then(C=>{const B={...C,_received_at:Date.now()};n(B),Jm(Zm,B)}).catch(()=>n(C=>C||IT)),ie.get("/site-settings").then(C=>{s({...Nl,...C}),Jm(Xm,C)}).catch(()=>{}).finally(()=>o(!0)),ie.get("/text-styles").then(u).catch(()=>{}),ie.get("/custom-fonts").then(d).catch(()=>{})},[]),m.useEffect(()=>{r.site_font?document.documentElement.style.setProperty("--site-font",r.site_font):document.documentElement.style.removeProperty("--site-font")},[r.site_font]),m.useEffect(()=>{i&&BT(r)},[r,i]);const y=t==null?void 0:t.countdown,k=dT(y,t==null?void 0:t._received_at),E=!!(y!=null&&y.active)&&!b&&ta(y,k)>0;if(t===null||!i||((_=t.global)!=null&&_.enabled||E)&&f)return a.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});const T=h("maintenance.bypass"),S=OT.includes(v.pathname),j=!!g&&new URLSearchParams(v.search).get("countdown")==="vorschau";if(!S&&(E&&!g||j)){const C=j&&!(y!=null&&y.launch_at&&ta(y,k)>0)?{...y,launch_at:x}:y;return a.jsx(jl,{serverOverrides:r.text_overrides,children:a.jsx(El,{children:a.jsx(pT,{countdown:C,clockOffset:C===y?k:0,settings:r,preview:j,onClosePreview:()=>w("/",{replace:!0}),onLaunch:()=>p(!0)})})})}return t.global.enabled&&!T&&!S?a.jsx(jl,{serverOverrides:r.text_overrides,children:a.jsx(El,{children:a.jsx(vi,{message:t.global.message,fullScreen:!0})})}):a.jsx(jl,{serverOverrides:r.text_overrides,children:a.jsx(El,{children:a.jsx(yT,{value:{...t,bypass:T},children:a.jsx(GP,{value:r,children:a.jsx(vT,{value:l,children:a.jsx(Xy,{value:{fonts:c,refresh:()=>{}},children:a.jsxs("div",{className:"page-texture flex min-h-screen flex-col text-neutral-900 dark:text-neutral-100",children:[a.jsx(Qy,{}),T&&t.global.enabled&&a.jsx(wi,{}),!!g&&E&&a.jsx(gT,{countdown:y}),a.jsx(oT,{}),a.jsx(QP,{}),a.jsx("main",{className:"flex-1",children:a.jsx(TT,{enabled:v.pathname!=="/"&&!!r.page_loader_enabled,children:ev(v.pathname,r.hidden_areas)?a.jsx(sr,{to:"/",replace:!0}):a.jsx(m.Suspense,{fallback:a.jsx("div",{className:"min-h-[60vh]"}),children:a.jsx(ld,{})})})}),a.jsx(iT,{}),a.jsx(uT,{}),a.jsx(xT,{}),a.jsx(AT,{})]})})})})})})})}const Na=m.createContext({toast:{success:()=>{},error:()=>{},info:()=>{}},setDirty:()=>{},confirmLeave:()=>!0,refreshCounters:()=>{}});let HT=0;function UT({children:e,onRefreshCounters:t}){const[n,r]=m.useState([]),s=m.useRef(new Set),i=m.useCallback(f=>r(h=>h.filter(g=>g.id!==f)),[]),o=m.useCallback((f,h,g={})=>{const v=++HT;return r(w=>[...w.slice(-3),{id:v,type:f,message:h,action:g.action}]),setTimeout(()=>i(v),g.duration||(f==="error"?7e3:3500)),v},[i]),l=m.useMemo(()=>({success:(f,h)=>o("success",f,h),error:(f,h)=>o("error",f,h),info:(f,h)=>o("info",f,h)}),[o]),u=m.useCallback((f,h)=>{h?s.current.add(f):s.current.delete(f)},[]),c=m.useCallback(()=>{if(s.current.size===0)return!0;const f=window.confirm("Du hast ungespeicherte Änderungen. Seite trotzdem verlassen? Die Änderungen gehen dann verloren.");return f&&s.current.clear(),f},[]);m.useEffect(()=>{const f=g=>{s.current.size!==0&&(g.preventDefault(),g.returnValue="")},h=g=>{var b,p;if(s.current.size===0||g.defaultPrevented||g.button!==0)return;const v=(p=(b=g.target).closest)==null?void 0:p.call(b,"a[href]");if(!v||v.target==="_blank"||g.metaKey||g.ctrlKey||g.shiftKey)return;const w=new URL(v.href,window.location.href);w.origin!==window.location.origin||w.pathname===window.location.pathname||c()||(g.preventDefault(),g.stopPropagation())};return window.addEventListener("beforeunload",f),document.addEventListener("click",h,!0),()=>{window.removeEventListener("beforeunload",f),document.removeEventListener("click",h,!0)}},[c]);const d=m.useMemo(()=>({toast:l,setDirty:u,confirmLeave:c,refreshCounters:t||(()=>{})}),[l,u,c,t]);return a.jsxs(Na.Provider,{value:d,children:[e,a.jsx("div",{className:"pointer-events-none fixed bottom-4 right-4 z-[300] flex w-[min(92vw,380px)] flex-col gap-2","aria-live":"polite",children:n.map(f=>a.jsxs("div",{role:f.type==="error"?"alert":"status",className:`pointer-events-auto flex items-start justify-between gap-3 rounded-lg border px-4 py-3 text-sm shadow-lg ${f.type==="error"?"border-red-200 bg-red-50 text-red-800 dark:border-red-900 dark:bg-red-950 dark:text-red-200":f.type==="success"?"border-green-200 bg-green-50 text-green-800 dark:border-green-900 dark:bg-green-950 dark:text-green-200":"border-neutral-200 bg-white text-neutral-800 dark:border-neutral-700 dark:bg-neutral-900 dark:text-neutral-100"}`,children:[a.jsxs("span",{children:[f.type==="success"?"✓ ":"",f.message]}),a.jsxs("span",{className:"flex shrink-0 items-center gap-3",children:[f.action&&a.jsx("button",{type:"button",onClick:()=>{f.action.onClick(),i(f.id)},className:"font-semibold underline",children:f.action.label}),a.jsx("button",{type:"button",onClick:()=>i(f.id),"aria-label":"Meldung schließen",className:"opacity-60 hover:opacity-100",children:"✕"})]})]},f.id))})]})}function D4(){return m.useContext(Na)}function R4(){return m.useContext(Na).toast}function V4(e,t="page"){const{setDirty:n}=m.useContext(Na);m.useEffect(()=>{n(t,!!e)},[e,t,n]),m.useEffect(()=>()=>n(t,!1),[t,n])}const WT=5*60*1e3,GT=30*60*1e3;function KT(){const{user:e,login:t,verifyTwoFactor:n}=cr(),[r,s]=m.useState(!1),[i,o]=m.useState("credentials"),[l,u]=m.useState((e==null?void 0:e.username)||""),[c,d]=m.useState(""),[f,h]=m.useState(""),[g,v]=m.useState(""),[w,b]=m.useState(!1),p=m.useRef(Date.now()),x=m.useRef(null);if(qy(x,r,()=>{}),m.useEffect(()=>vC(()=>s(!0)),[]),m.useEffect(()=>{const S=()=>{p.current=Date.now()},j=["keydown","pointerdown","scroll"];j.forEach(C=>window.addEventListener(C,S,{passive:!0}));const _=setInterval(()=>{document.hidden||Date.now()-p.current>GT||ie.get("/auth/me").then(C=>{(C==null?void 0:C.authenticated)===!1&&s(!0)}).catch(()=>{})},WT);return()=>{j.forEach(C=>window.removeEventListener(C,S)),clearInterval(_)}},[]),!r)return null;const y=()=>{s(!1),o("credentials"),d(""),h(""),v("")},k=async S=>{S.preventDefault(),b(!0),v("");try{(await t(l,c)).requires2fa?o("code"):y()}catch(j){v(j.message)}finally{b(!1)}},E=async S=>{S.preventDefault(),b(!0),v("");try{await n(f),y()}catch(j){v(j.message)}finally{b(!1)}},T="w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm focus:border-brand-500 focus:outline-none dark:border-neutral-700 dark:bg-neutral-900";return a.jsx("div",{className:"fixed inset-0 z-[400] flex items-center justify-center bg-black/50 p-4",children:a.jsxs("div",{ref:x,role:"dialog","aria-modal":"true","aria-labelledby":"session-expired-title",className:"w-full max-w-sm rounded-xl bg-white p-6 shadow-xl dark:bg-neutral-900",children:[a.jsx("h2",{id:"session-expired-title",className:"mb-1 text-lg font-bold text-neutral-900 dark:text-white",children:"Bitte erneut anmelden"}),a.jsx("p",{className:"mb-4 text-sm text-neutral-500 dark:text-neutral-400",children:"Deine Sitzung ist abgelaufen. Deine Eingaben auf dieser Seite bleiben erhalten – nach dem Anmelden einfach noch einmal speichern."}),i==="credentials"?a.jsxs("form",{onSubmit:k,className:"space-y-3",children:[a.jsx("input",{value:l,onChange:S=>u(S.target.value),required:!0,placeholder:"Benutzername",autoComplete:"username",className:T}),a.jsx("input",{type:"password",value:c,onChange:S=>d(S.target.value),required:!0,placeholder:"Passwort",autoComplete:"current-password",className:T}),g&&a.jsx("p",{className:"text-sm text-red-600",children:g}),a.jsx("button",{type:"submit",disabled:w,className:"w-full rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:w?"Melde an…":"Anmelden"})]}):a.jsxs("form",{onSubmit:E,className:"space-y-3",children:[a.jsx("input",{value:f,onChange:S=>h(S.target.value),required:!0,inputMode:"numeric",autoComplete:"one-time-code",placeholder:"6-stelliger Code aus der App",className:T}),g&&a.jsx("p",{className:"text-sm text-red-600",children:g}),a.jsx("button",{type:"submit",disabled:w,className:"w-full rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600 disabled:opacity-50",children:w?"Prüfe…":"Bestätigen"})]})]})})}const ep="/assets/logo-BNfZDkmN.png",tp={home:"M3 11.5 12 4l9 7.5M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9",tag:"M4 4h7l9 9-7 7-9-9V4Zm3.5 3.5h.01",car:"M3 13.5 4.5 9A2 2 0 0 1 6.4 7.5h11.2A2 2 0 0 1 19.5 9L21 13.5M3 13.5v4a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1h12v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-4M3 13.5h18M6.5 16.5h.01M17.5 16.5h.01",box:"M12 3 4 7.5v9L12 21l8-4.5v-9L12 3Zm0 9 8-4.5M12 12v9M12 12 4 7.5",mail:"M4 6h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Zm0 0 8 7 8-7",users:"M16 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-4 6c-4 0-7 2-7 4.5V19h14v-1.5C19 15 16 13 12 13Z",shield:"M12 3 4 6v6c0 4.5 3.4 7.7 8 9 4.6-1.3 8-4.5 8-9V6l-8-3Zm-1.5 9.5 4-4 1 1-5 5-2.5-2.5 1-1 1.5 1.5Z",lock:"M6 10V8a6 6 0 1 1 12 0v2m-13 0h14a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1Zm7 5v2",briefcase:"M4 7h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1Zm4 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 12h18",sliders:"M4 6h16M4 6a2 2 0 1 0 4 0 2 2 0 0 0-4 0Zm16 6H4m10 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0ZM4 18h16m-12 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0Z",image:"M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Zm2 12 4.5-5.5L14 16l2.5-3L20 17H6ZM8 9.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z",help:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm0-5.5v.01M9.5 9.25a2.5 2.5 0 1 1 3.5 2.29c-.7.32-1 .77-1 1.46v.3",download:"M12 4v11m0 0-4-4m4 4 4-4M5 19h14",gauge:"M4 13a8 8 0 1 1 16 0M12 13l3.5-3.5M6 17h12",inbox:"M3 13h5l1.5 2.5h5L16 13h5M5 5h14l2 8v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5l2-8Z",building:"M4 21V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v16M15 9h4a1 1 0 0 1 1 1v11M3 21h18M8 8h3M8 12h3M8 16h3",palette:"M12 3a9 9 0 1 0 0 18c1 0 1.5-.7 1.5-1.5 0-.4-.2-.8-.4-1.1-.3-.3-.4-.7-.4-1.1 0-.8.7-1.5 1.5-1.5H16a5 5 0 0 0 5-5c0-4.4-4-7.8-9-7.8ZM7.5 12h.01M10 7.5h.01M15 7.5h.01",file:"M7 3h7l5 5v12a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm7 0v5h5M9 13h6M9 17h6",wrench:"M14.5 6.5a4 4 0 0 0-5.3 5.3L4 17l3 3 5.2-5.2a4 4 0 0 0 5.3-5.3l-2.5 2.5-2.5-.5-.5-2.5 2.5-2.5Z",server:"M4 4h16v6H4V4Zm0 10h16v6H4v-6Zm3-7h.01M7 17h.01",globe:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm-9-9h18M12 3c2.5 2.5 3.5 5.5 3.5 9s-1 6.5-3.5 9c-2.5-2.5-3.5-5.5-3.5-9s1-6.5 3.5-9Z",send:"M4 12 20 4l-4 16-4-7-8-1Zm8 1 8-9",refresh:"M20 11a8 8 0 0 0-14.9-3M4 4v4h4m-4 5a8 8 0 0 0 14.9 3M20 20v-4h-4",trash:"M5 7h14M10 11v6m4-6v6M6 7l1 13h10l1-13M9 7V4h6v3",external:"M14 4h6v6m0-6-9 9M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5",pause:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm-2-12v6m4-6v6",timer:"M10 2h4M12 14l3-3M12 22a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z"},np=({path:e})=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",className:"h-5 w-5 shrink-0",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})});function qT(){const{logout:e,user:t,hasPermission:n}=cr(),r=es(),[s,i]=m.useState(!1),[o,l]=m.useState(0),[u,c]=m.useState([]),[d,f]=m.useState([]),[h,g]=m.useState(!1),[v,w]=m.useState(null),b=m.useCallback(()=>{n("contact.manage")&&ie.get("/contact").then(S=>l(S.filter(j=>j.status==="new").length)).catch(()=>{}),ie.get("/site-settings").then(S=>f(S.hidden_areas||[])).catch(()=>{}),ie.get("/maintenance").then(S=>{var j,_;g(!!((j=S==null?void 0:S.global)!=null&&j.enabled)),w((_=S==null?void 0:S.countdown)!=null&&_.active?S.countdown.launch_at:null)}).catch(()=>{})},[t==null?void 0:t.id]);m.useEffect(()=>{b();const S=setInterval(b,2*60*1e3);return()=>clearInterval(S)},[b]);const p=VT.filter(S=>d.includes(S.key)).map(S=>S.label),x=()=>ie.get("/custom-fonts").then(c).catch(()=>{});m.useEffect(()=>{x()},[]);const y=[{title:null,links:[{to:"/admin",label:"Übersicht",icon:"gauge",end:!0},{to:"/admin/contact-requests",label:"Anfragen",icon:"inbox",permission:"contact.manage",badge:o}]},{title:"Fahrzeuge & Pakete",links:[{to:"/admin/brands",label:"Fahrzeugmarken",icon:"tag",permission:"brands.manage"},{to:"/admin/models",label:"Modelle",icon:"car",permission:"models.manage"},{to:"/admin/packages",label:"Pakete",icon:"box",permission:"packages.manage"}]},{title:"Website-Inhalte",links:[{to:"/admin/home-sections",label:"Startseite",icon:"home",permission:"content.manage"},{to:"/admin/services",label:"Leistungen",icon:"briefcase",permission:"services.manage"},{to:"/admin/faqs",label:"FAQ",icon:"help",permission:"content.manage"},{to:"/admin/partners",label:"Partner-Logos",icon:"shield",permission:"content.manage"},{to:"/admin/downloads",label:"Downloads",icon:"download",permission:"downloads.manage"}]},{title:"Bildergalerie",links:[{to:"/admin/gallery-brands",label:"Galerie-Marken",icon:"image",permission:"gallery.manage"},{to:"/admin/gallery-projects",label:"Projekte & Fotos",icon:"image",permission:"gallery.manage"}]},{title:"Firma & Aussehen",links:[{to:"/admin/settings/company",label:"Firmendaten",icon:"building",permission:"settings.manage"},{to:"/admin/settings/design",label:"Aussehen",icon:"palette",permission:"settings.manage"},{to:"/admin/settings/legal",label:"Rechtstexte",icon:"file",permission:"settings.manage"},{to:"/admin/settings/maintenance",label:"Wartungsmodus",icon:"pause",permission:"settings.manage"},{to:"/admin/settings/countdown",label:"Launch-Countdown",icon:"timer",permission:"settings.manage"}]},{title:"System (Experten)",links:[{to:"/admin/users",label:"Benutzer",icon:"users",permission:"users.manage"},{to:"/admin/permission-groups",label:"Berechtigungsgruppen",icon:"lock",permission:"permission_groups.manage"},{to:"/admin/settings/email",label:"E-Mail-Versand",icon:"send",permission:"system.admin"},{to:"/admin/settings/google",label:"Google-Dienste",icon:"globe",permission:"system.admin"},{to:"/admin/settings/database",label:"Datenbank",icon:"server",permission:"system.admin"},{to:"/admin/settings/export-import",label:"Export & Import",icon:"download",permission:"system.admin"},{to:"/admin/settings/update",label:"Updates",icon:"refresh",permission:"system.update"},{to:"/admin/settings/reset",label:"Zurücksetzen",icon:"trash",permission:"system.admin"}]},{title:null,links:[{to:"/admin/account",label:"Mein Konto",icon:"lock"}]}].map(S=>({...S,links:S.links.filter(j=>!j.permission||n(j.permission))})).filter(S=>S.links.length>0),k=async()=>{await e(),r("/admin/login")},E=({isActive:S})=>`flex items-center justify-between gap-2 rounded-md px-3 py-2 text-sm font-medium transition ${S?"bg-brand-500 text-white":"text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800"}`,T=({onNavigate:S})=>a.jsx("nav",{className:"space-y-5",children:y.map((j,_)=>a.jsxs("div",{children:[j.title&&a.jsx("p",{className:"mb-1.5 px-3 text-xs font-semibold uppercase tracking-wide text-neutral-400 dark:text-neutral-500",children:j.title}),a.jsx("div",{className:"space-y-1",children:j.links.map(C=>a.jsxs(Vb,{to:C.to,end:C.end,className:E,onClick:S,children:[a.jsxs("span",{className:"flex items-center gap-2.5",children:[a.jsx(np,{path:tp[C.icon]}),C.label]}),!!C.badge&&a.jsx("span",{className:"rounded-full bg-red-500 px-2 py-0.5 text-xs font-bold text-white",children:C.badge})]},C.to))})]},_))});return a.jsxs(UT,{onRefreshCounters:b,children:[a.jsx(KT,{}),a.jsx(Xy,{value:{fonts:u,refresh:x},children:a.jsxs("div",{className:"flex min-h-screen bg-neutral-50 text-neutral-900 dark:bg-neutral-950 dark:text-neutral-100",children:[a.jsx(Qy,{}),a.jsxs("aside",{className:"hidden w-60 shrink-0 border-r border-neutral-200 p-4 dark:border-neutral-800 sm:block",children:[a.jsxs("div",{className:"mb-6 flex items-center gap-2 px-3",children:[a.jsxs(U,{to:"/",className:"rounded-lg px-2 py-1",children:[a.jsx("img",{src:ep,alt:"HifiPlanet",className:"h-7 w-auto dark:hidden"}),a.jsx("img",{src:ea,alt:"HifiPlanet",className:"hidden h-7 w-auto dark:block"})]}),a.jsx("span",{className:"text-sm font-semibold text-neutral-500 dark:text-neutral-400",children:"Admin"})]}),a.jsx(T,{})]}),a.jsxs("div",{className:"flex-1",children:[a.jsxs("header",{className:"border-b border-neutral-200 dark:border-neutral-800",children:[a.jsxs("div",{className:"flex items-center justify-between px-4 py-3 sm:px-6",children:[a.jsxs("div",{className:"flex items-center gap-2 sm:hidden",children:[a.jsx("button",{onClick:()=>i(S=>!S),"aria-label":"Menü öffnen",className:"rounded-md p-2 text-neutral-600 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-neutral-800",children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-6 w-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})}),a.jsxs(U,{to:"/",className:"rounded-lg px-1.5 py-0.5",children:[a.jsx("img",{src:ep,alt:"HifiPlanet",className:"h-6 w-auto dark:hidden"}),a.jsx("img",{src:ea,alt:"HifiPlanet",className:"hidden h-6 w-auto dark:block"})]})]}),a.jsxs("p",{className:"hidden text-sm text-neutral-500 dark:text-neutral-400 sm:block",children:["Angemeldet als ",t==null?void 0:t.username,t!=null&&t.is_super_admin?" · Super-Admin":""]}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("a",{href:"/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:[a.jsx(np,{path:tp.external}),a.jsx("span",{className:"hidden sm:inline",children:"Website öffnen"})]}),a.jsx(Hy,{}),a.jsx("button",{onClick:k,className:"rounded-md border border-neutral-300 px-3 py-1.5 text-sm font-medium text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:"Abmelden"})]})]}),s&&a.jsx("div",{className:"border-t border-neutral-200 px-4 py-3 dark:border-neutral-800 sm:hidden",children:a.jsx(T,{onNavigate:()=>i(!1)})})]}),(h||v||p.length>0)&&a.jsxs("div",{className:"border-b border-amber-200 bg-amber-50 px-4 py-2 text-sm text-amber-900 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200 sm:px-6",children:[h&&a.jsxs("p",{children:[a.jsx("strong",{children:"Wartungsmodus ist aktiv"})," – Besucher sehen gerade nur die Wartungsseite."," ",n("settings.manage")&&a.jsx(U,{to:"/admin/settings/maintenance",className:"underline",children:"Ändern"})]}),v&&a.jsxs("p",{children:[a.jsx("strong",{children:"Launch-Countdown läuft"})," – Besucher sehen bis"," ",new Date(v).toLocaleString("de-DE",{dateStyle:"medium",timeStyle:"short",timeZone:"Europe/Berlin"})," Uhr nur den Countdown."," ",n("settings.manage")&&a.jsx(U,{to:"/admin/settings/countdown",className:"underline",children:"Ändern"})]}),p.length>0&&a.jsxs("p",{children:[a.jsx("strong",{children:"Ausgeblendet für Besucher:"})," ",p.join(", "),"."," ",a.jsx(U,{to:"/admin",className:"underline",children:"Auf der Übersicht ändern"})]})]}),a.jsx("main",{className:"p-4 sm:p-6",children:a.jsx(m.Suspense,{fallback:a.jsx("p",{className:"text-sm text-neutral-400",children:"Lädt…"}),children:a.jsx(ld,{})})})]})]})})]})}function YT(){const{user:e,loading:t}=cr();return t?a.jsx("div",{className:"flex min-h-screen items-center justify-center text-neutral-500",children:"Lädt…"}):e?a.jsx(ld,{}):a.jsx(sr,{to:"/admin/login",replace:!0})}function ce({permission:e,children:t}){const{hasPermission:n}=cr();return(Array.isArray(e)?e:[e]).some(i=>n(i))?t:a.jsxs("div",{className:"rounded-xl border border-neutral-200 bg-white p-8 text-center dark:border-neutral-800 dark:bg-neutral-900",children:[a.jsx("h1",{className:"mb-2 text-lg font-bold text-neutral-900 dark:text-white",children:"Keine Berechtigung"}),a.jsx("p",{className:"text-sm text-neutral-500 dark:text-neutral-400",children:"Du hast keinen Zugriff auf diesen Bereich. Bitte wende dich an einen Administrator, falls du hier Zugriff brauchst."})]})}function mo(e,t,n="name"){if(!t)return;let r=document.head.querySelector(`meta[${n}="${e}"]`);r||(r=document.createElement("meta"),r.setAttribute(n,e),document.head.appendChild(r)),r.setAttribute("content",t)}function XT(e){let t=document.head.querySelector('link[rel="canonical"]');t||(t=document.createElement("link"),t.setAttribute("rel","canonical"),document.head.appendChild(t)),t.setAttribute("href",`https://hifi-planet.de${e}`),mo("og:url",`https://hifi-planet.de${e}`,"property")}function rp(e){let t=document.head.querySelector('meta[name="robots"]');if(!e){t==null||t.remove();return}t||(t=document.createElement("meta"),t.setAttribute("name","robots"),document.head.appendChild(t)),t.setAttribute("content","noindex")}function dr({title:e,description:t,path:n,noindex:r=!1}){m.useEffect(()=>(rp(r),()=>rp(!1)),[r]),m.useEffect(()=>{e&&(document.title=`${e} | HifiPlanet`,mo("og:title",`${e} | HifiPlanet`,"property")),t&&(mo("description",t),mo("og:description",t,"property")),n&&XT(n)},[e,t,n])}const ZT=[.16,1,.3,1],sp={up:{y:40},left:{x:-56},right:{x:56}};function QT(e){return{hidden:{opacity:0,scale:.96,filter:"blur(8px)",...sp[e]||sp.up},visible:{opacity:1,scale:1,x:0,y:0,filter:"blur(0px)"}}}const JT={hidden:{x:"-130%"},visible:{x:"230%",transition:{duration:1.1,ease:"easeInOut",delay:.4}}};function He({children:e,direction:t="up",className:n="",index:r=0,shine:s=!1,style:i}){const o=Math.min(r*.09,.45);return a.jsxs(Qt.div,{className:n,style:{position:"relative",overflow:"hidden",...i},initial:"hidden",whileInView:"visible",viewport:{once:!0,amount:.25,margin:"-100px"},variants:QT(t),transition:{duration:.75,ease:ZT,delay:o},children:[e,s&&a.jsx(Qt.div,{"aria-hidden":!0,variants:JT,className:"pointer-events-none absolute inset-y-0 -left-1/3 w-1/3 rotate-12 bg-gradient-to-r from-transparent via-white/40 to-transparent"})]})}const qd=e=>{e.preventDefault(),e.stopPropagation()};function eN(e){e.preventDefault();const t=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,t)}function le({entity:e,id:t,field:n,lang:r,value:s,as:i="span",multiline:o=!1,placeholder:l="Text eingeben…",className:u="",...c}){const{language:d}=pe(),f=at(),h=r||d,g=f.getValue(e,t,n,h,s??"")??"";if(!f.canEdit(e))return a.jsx(i,{className:u,...c,children:g});const v=w=>{const b=o?w.innerText.replace(/\n{3,}/g,`
`).trim():w.innerText.replace(/\s+/g," ").trim();b!==g.trim()&&f.setValue(e,t,n,h,b),w.innerText!==b&&(w.innerText=b)};return a.jsx(i,{...c,className:`${u} live-editable${f.hasPending(e,t,n,h)?" live-editable-changed":""}`,contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:!0,"data-live-placeholder":l,onClick:qd,onPaste:eN,onKeyDown:w=>{w.key==="Enter"&&!o?(w.preventDefault(),w.currentTarget.blur()):w.key==="Escape"&&(w.currentTarget.innerText=g,w.currentTarget.blur()),w.stopPropagation()},onKeyUp:w=>w.stopPropagation(),onBlur:w=>v(w.currentTarget),children:g},`${h}:${g}`)}function We({k:e,...t}){const{t:n}=pe();return a.jsx(le,{entity:"text",id:e,field:"value",value:n(e),placeholder:"Leer = Standardtext",...t})}function mr({entity:e,id:t,field:n,lang:r,value:s,label:i="Text",className:o="",...l}){const{language:u}=pe(),c=at(),d=r||u,f=c.getValue(e,t,n,d,s??"")??"";if(!c.canEdit(e))return a.jsx("div",{className:o,...l,dangerouslySetInnerHTML:{__html:f}});const h=g=>{qd(g),c.openEditor({kind:"html",entity:e,id:t,field:n,lang:d,label:i,original:f})};return a.jsx("div",{...l,className:`${o} live-editable live-editable-block${c.hasPending(e,t,n,d)?" live-editable-changed":""}`,role:"button",tabIndex:0,title:"Klicken zum Bearbeiten",onClick:h,onKeyDown:g=>g.key==="Enter"&&h(g),"data-live-placeholder":"Text hinzufügen…",dangerouslySetInnerHTML:{__html:f}})}function lc({entity:e,id:t,field:n,lang:r,value:s,label:i,kind:o="textarea",hint:l,as:u="div",className:c="",children:d,...f}){const{language:h}=pe(),g=at(),v=r||h;if(!g.canEdit(e))return a.jsx(u,{className:c,...f,children:d});const w=g.getValue(e,t,n,v,s??"")??"",b=p=>{qd(p),g.openEditor({kind:o,entity:e,id:t,field:n,lang:v,label:i,hint:l,original:w})};return a.jsx(u,{...f,className:`${c} live-editable live-editable-block${g.hasPending(e,t,n,v)?" live-editable-changed":""}`,role:"button",tabIndex:0,title:`${i} bearbeiten`,onClickCapture:b,onKeyDown:p=>p.key==="Enter"&&b(p),children:d})}function tN({items:e,entity:t="faqs"}){const[n,r]=m.useState(null),s=at(),{language:i}=pe();return s.canEdit(t)?a.jsx("div",{className:"divide-y divide-neutral-200 rounded-xl border border-neutral-200 bg-white dark:divide-neutral-800 dark:border-neutral-800 dark:bg-neutral-900",children:e.map((o,l)=>a.jsxs("div",{className:"space-y-3 px-5 py-4",children:[a.jsx(le,{entity:t,id:o.id,field:"question",value:o.question,as:"p",className:"block font-medium text-neutral-900 dark:text-white",placeholder:"Frage"}),a.jsx(le,{entity:t,id:o.id,field:"answer",value:o.answer,as:"p",multiline:!0,className:"block whitespace-pre-line text-sm text-neutral-600 dark:text-neutral-300",placeholder:"Antwort"})]},o.id??l))}):a.jsx("div",{className:"divide-y divide-neutral-200 rounded-xl border border-neutral-200 bg-white dark:divide-neutral-800 dark:border-neutral-800 dark:bg-neutral-900",children:e.map((o,l)=>{const u=n===l,c=o.id?{...o,question:s.getValue(t,o.id,"question",i,o.question),answer:s.getValue(t,o.id,"answer",i,o.answer)}:o;return a.jsxs("div",{children:[a.jsxs("button",{onClick:()=>r(u?null:l),className:"flex w-full items-center justify-between gap-4 px-5 py-4 text-left","aria-expanded":u,children:[a.jsx("span",{className:"font-medium text-neutral-900 dark:text-white",children:c.question}),a.jsx(Qt.svg,{animate:{rotate:u?180:0},transition:{duration:.2},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"h-5 w-5 shrink-0 text-neutral-500",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6 9 6 6 6-6"})})]}),a.jsx(Mj,{initial:!1,children:u&&a.jsx(Qt.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden",children:a.jsx("p",{className:"px-5 pb-4 text-sm text-neutral-600 dark:text-neutral-300",children:c.answer})})})]},c.id??c.question)})})}function tv({count:e=5,className:t="h-4 w-4"}){return a.jsx("div",{className:"flex gap-0.5 text-amber-400",children:Array.from({length:e}).map((n,r)=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:t,children:a.jsx("path",{d:"M10 1.5l2.6 5.6 6.1.6-4.6 4.1 1.3 6-5.4-3.1-5.4 3.1 1.3-6-4.6-4.1 6.1-.6L10 1.5z"})},r))})}const nN=70;function rN({testimonials:e}){const t=m.useRef(null),n=m.useRef(null),r=m.useRef({pos:0,half:0,hovering:!1,dragging:!1,dragStartX:0,dragStartPos:0,lastTime:null,rafId:null}).current;m.useLayoutEffect(()=>{const i=n.current,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches,l=()=>{i.style.transform=`translateX(${r.pos}px)`},u=x=>{if(r.half<=0)return x;for(;x>0;)x-=r.half;for(;x<=-r.half;)x+=r.half;return x},c=()=>{r.half=i.scrollWidth/2,r.pos===0?r.pos=-r.half:r.pos=u(r.pos),l()};c();const d=new ResizeObserver(c);d.observe(i);const f=x=>{r.lastTime===null&&(r.lastTime=x);const y=(x-r.lastTime)/1e3;r.lastTime=x,!r.dragging&&!r.hovering&&!o&&(r.pos=u(r.pos+nN*y),l()),r.rafId=requestAnimationFrame(f)};r.rafId=requestAnimationFrame(f);const h=t.current,g=()=>{r.hovering=!0},v=()=>{r.hovering=!1},w=x=>{r.dragging=!0,r.dragStartX=x.clientX,r.dragStartPos=r.pos,h.setPointerCapture(x.pointerId),h.classList.add("cursor-grabbing"),h.classList.remove("cursor-grab")},b=x=>{r.dragging&&(r.pos=u(r.dragStartPos+(x.clientX-r.dragStartX)),l())},p=x=>{r.dragging&&(r.dragging=!1,h.hasPointerCapture(x.pointerId)&&h.releasePointerCapture(x.pointerId),h.classList.remove("cursor-grabbing"),h.classList.add("cursor-grab"))};return h.addEventListener("pointerenter",g),h.addEventListener("pointerleave",v),h.addEventListener("pointerdown",w),h.addEventListener("pointermove",b),h.addEventListener("pointerup",p),h.addEventListener("pointercancel",p),()=>{cancelAnimationFrame(r.rafId),d.disconnect(),h.removeEventListener("pointerenter",g),h.removeEventListener("pointerleave",v),h.removeEventListener("pointerdown",w),h.removeEventListener("pointermove",b),h.removeEventListener("pointerup",p),h.removeEventListener("pointercancel",p)}},[e.length]);const s=[...e,...e];return a.jsx("div",{ref:t,className:"marquee-viewport cursor-grab touch-pan-y select-none overflow-hidden",children:a.jsx("div",{ref:n,className:"marquee-track flex w-max gap-5",children:s.map((i,o)=>a.jsx("div",{className:"w-64 shrink-0 sm:w-72 lg:w-80",children:a.jsxs("div",{className:"relative flex h-full flex-col overflow-hidden rounded-xl border border-neutral-200 bg-white p-6 shadow-sm transition-shadow duration-300 hover:shadow-lg dark:border-neutral-800 dark:bg-neutral-900",children:[a.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 32 24",className:"absolute -right-1 -top-1 h-16 w-16 text-brand-500/10 dark:text-brand-400/10",children:a.jsx("path",{fill:"currentColor",d:"M9.4 0C4.4 3.5 1 9.1 1 15.3 1 20.6 4.3 24 8.4 24c3.8 0 6.6-3 6.6-6.6 0-3.4-2.4-5.9-5.4-5.9-.6 0-1.4.1-1.6.2C8.5 8.5 11.6 4.6 14.6 2.6L9.4 0zm16.5 0c-4.8 3.5-8.3 9.1-8.3 15.3 0 5.3 3.3 8.6 7.5 8.6 3.7 0 6.6-3 6.6-6.6 0-3.4-2.5-5.9-5.4-5.9-.6 0-1.4.1-1.6.2.5-3.3 3.6-7.1 6.7-9.1L25.9 0z"})}),a.jsx(tv,{className:"relative z-10 mb-3 h-4 w-4",count:i.rating||5}),a.jsxs("p",{className:"relative z-10 mb-4 line-clamp-6 flex-1 text-sm leading-relaxed text-neutral-600 dark:text-neutral-300",children:["„",i.text,'"']}),a.jsxs("div",{className:"relative z-10 mt-auto flex items-center gap-3",children:[i.photo?a.jsx("img",{src:i.photo,alt:"",referrerPolicy:"no-referrer",className:"h-9 w-9 shrink-0 rounded-full object-cover"}):a.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-brand-100 text-sm font-semibold text-brand-700 dark:bg-brand-900/40 dark:text-brand-300",children:i.name.charAt(0).toUpperCase()}),a.jsx("p",{className:"text-sm font-semibold text-neutral-900 dark:text-white",children:i.name})]})]})},`${i.name}-${o}`))})})}function ip(e,t,n={x:0,y:0}){const r=Math.max(0,Math.min(100,e==null?n.x:Number(e)||0)),s=Math.max(0,Math.min(100,t==null?n.y:Number(t)||0));return{left:`${r}%`,top:`${s}%`,transform:`translate(-${r}%, -${s}%)`}}const sN="/assets/gallery-dash2-CEVCErVK.webp",nv="/assets/gallery-amp-purple-CESAKuOf.webp",iN="/assets/gallery-speaker-CUXQZ49Q.webp",rv="/assets/gallery-subs-COSd4seJ.webp",sv="/assets/gallery-dash-Cg-7v9qo.webp",oN="/assets/hero-trunk-Dp4_JHDh.webp",aN="/assets/gallery-rear-8cIXPC7T.webp",lN="/assets/hero-highlight-Co4f1Kj5.webp",uN="/assets/youtube-hintergrund-BqSbCrLQ.mp4",cN="/assets/youtube-hintergrund-mobil-BolxAIc0.mp4",Wi={left:"text-left",center:"text-center",right:"text-right"},dN={left:"",center:"mx-auto",right:"ml-auto"},fN={eyebrow_de:"",eyebrow_en:"",title_de:"",title_en:"",body_html_de:"",body_html_en:"",text_align:"center",text_align_x:50,text_align_y:50,button_label_de:"",button_label_en:"",button_url:"",font_family:null};function op({slug:e,label:t,url:n,className:r,style:s}){const{hidden_areas:i}=It(),o=at();return e&&o.canEdit("home_sections")?a.jsxs("span",{className:"inline-flex flex-wrap items-center justify-center gap-2",children:[a.jsx(le,{entity:"home_sections",id:e,field:"button_label",value:t,className:r,style:s,placeholder:"Button-Text (leer = kein Button)"}),a.jsxs(lc,{entity:"home_sections",id:e,field:"button_url",lang:"de",value:n,kind:"input",label:"Button-Ziel",hint:"Interne Seite mit / am Anfang (z. B. /leistungen) oder volle Adresse (https://...).",as:"span",className:"rounded bg-black/60 px-2 py-1 text-xs font-medium text-white",children:["Ziel: ",n||"–"]})]}):!t||!n||ev(n,i)?null:n.startsWith("/")?a.jsx(U,{to:n,className:r,style:s,children:t}):a.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:r,style:s,children:t})}const hN=[{src:rv,width:900,height:600},{src:nv,width:900,height:600},{src:iN,width:900,height:1200},{src:sv,width:900,height:814},{src:aN,width:900,height:1200},{src:oN,width:1920,height:1280}];function mN(){const{hero_image_path:e}=It(),t=e||sN,{t:n,language:r}=pe(),s=Pa(),i=at(),o=i.canEdit("home_sections"),l=!s("page.vehicles"),u=n("home.stats"),c=n("home.galleryAlts"),d=hN.map((M,V)=>({...M,alt:c[V]})),[f,h]=m.useState([]),[g,v]=m.useState({}),[w,b]=m.useState(!1),[p,x]=m.useState([]),y=M=>{const V=g[M]||fN,Ee=w&&{hero:n("home.heroTitle"),craft:n("home.craftTitle")}[M]||"",Ie=w&&M==="hero"?`${n("home.heroSubtitle")}
`:"";return{eyebrow:i.getValue("home_sections",M,"eyebrow",r,V[`eyebrow_${r}`]||""),title:i.getValue("home_sections",M,"title",r,V[`title_${r}`]||Ee),bodyHtml:i.getValue("home_sections",M,"body_html",r,V[`body_html_${r}`]||Ie),align:V.text_align||"center",alignX:V.text_align_x,alignY:V.text_align_y,buttonLabel:i.getValue("home_sections",M,"button_label",r,V[`button_label_${r}`]||""),buttonUrl:i.getValue("home_sections",M,"button_url","de",V.button_url||""),fontFamily:V.font_family||void 0}},k=Ue("home_sections.hero.eyebrow"),E=Ue("home_sections.hero.title"),T=Ue("home_sections.youtube.eyebrow"),S=Ue("home_sections.youtube.title"),j=Ue("home_sections.youtube.button_label"),_=Ue("home_sections.craft.eyebrow"),C=Ue("home_sections.craft.title"),B=Ue("home_sections.advice.eyebrow"),H=Ue("home_sections.advice.title"),ne=Ue("home_sections.insights.eyebrow"),W=Ue("home_sections.insights.title"),K=Ue("home_sections.more.eyebrow"),q=Ue("home_sections.more.title"),oe=Ue("home_sections.more.button_label");m.useEffect(()=>{ie.get("/home-sections").then(v).catch(()=>b(!0))},[]),m.useEffect(()=>{ie.get("/partners").then(x).catch(()=>{})},[]);const[N,A]=m.useState(null),L=N?N.reviews.filter(M=>M.review_text).map(M=>({name:M.author_name,text:M.review_text,rating:M.rating,photo:M.profile_photo_url})):n("home.testimonials");m.useEffect(()=>{ie.get("/faqs").then(M=>{h(M.map(V=>({id:V.id,question:r==="de"?V.question_de:V.question_en,answer:r==="de"?V.answer_de:V.answer_en})))}).catch(()=>{})},[r]),m.useEffect(()=>{ie.get("/google-reviews").then(M=>{M.rating!=null&&M.reviews.some(V=>V.review_text)&&A(M)}).catch(()=>{})},[]),dr({title:n("home.metaTitle"),description:n("home.metaDescription"),path:"/"}),m.useEffect(()=>{if(f.length===0||s("home.faq"))return;const M=document.createElement("script");return M.type="application/ld+json",M.text=JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:f.map(V=>({"@type":"Question",name:V.question,acceptedAnswer:{"@type":"Answer",text:V.answer}}))}),document.head.appendChild(M),()=>document.head.removeChild(M)},[f]),m.useEffect(()=>{var M;f.length>0&&window.location.hash==="#faq"&&((M=document.getElementById("faq"))==null||M.scrollIntoView())},[f]);const F=m.useRef(null);m.useEffect(()=>{var pt,Fn,Xd;const M=F.current;if(!M)return;const V=(pt=window.matchMedia)==null?void 0:pt.call(window,"(prefers-reduced-motion: reduce)").matches,Ee=(Fn=navigator.connection)==null?void 0:Fn.saveData;if(V||Ee)return;const ae=((Xd=window.matchMedia)==null?void 0:Xd.call(window,"(max-width: 767px), (pointer: coarse)").matches)?cN:uN,we=new IntersectionObserver(([iv])=>{iv.isIntersecting?(M.getAttribute("src")||(M.src=ae),M.play().catch(()=>{})):M.paused||M.pause()},{rootMargin:"300px 0px"});return we.observe(M),()=>we.disconnect()},[]);const P=m.useRef(null),{scrollYProgress:R}=Ty({target:P,offset:["start start","end start"]}),z=dC(),G=fn(R,[0,1],z?["0%","0%"]:["-6%","6%"]),ee=fn(R,[0,1],z?["0%","0%"]:["0%","60%"]),se=fn(R,[0,.8],[1,0]),je=fn(R,[.5,1],[0,1]),Ve=fn(je,M=>M>.05?"auto":"none"),jt=fn(R,[.5,1],[16,0]);return a.jsxs("div",{children:[a.jsx(Qt.div,{style:{opacity:je,pointerEvents:Ve,y:jt},className:"fixed inset-x-0 bottom-0 z-20 border-t border-neutral-200 bg-white/95 px-4 py-3 shadow-[0_-8px_24px_rgba(0,0,0,0.08)] backdrop-blur dark:border-neutral-800 dark:bg-neutral-950/95 sm:px-6",children:a.jsxs("div",{className:"mx-auto flex max-w-6xl items-center justify-between gap-3",children:[a.jsx(We,{k:"home.stickyCta",as:"p",className:"hidden text-sm font-medium text-neutral-600 dark:text-neutral-300 sm:block"}),a.jsxs("div",{className:"flex w-full gap-3 sm:w-auto",children:[l&&a.jsx(U,{to:"/fahrzeuge",className:"flex-1 rounded-md bg-brand-500 px-5 py-2.5 text-center text-sm font-semibold text-white shadow-sm transition hover:-translate-y-0.5 hover:bg-brand-600 sm:flex-none",children:a.jsx(We,{k:"home.selectVehicle"})}),a.jsx(U,{to:"/kontakt",className:"flex-1 rounded-md border border-neutral-300 px-5 py-2.5 text-center text-sm font-semibold text-neutral-700 transition hover:-translate-y-0.5 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800 sm:flex-none",children:a.jsx(We,{k:"home.getInTouch"})})]})]})}),a.jsxs("section",{ref:P,className:"relative -mt-[89px] h-svh min-h-[560px] overflow-hidden sm:-mt-[97px]",children:[a.jsx(Qt.img,{style:{y:G,scale:1.15},src:t,alt:n("home.heroImageAlt"),className:"absolute inset-0 h-full w-full object-cover"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-neutral-950 via-neutral-950/80 to-neutral-950/40"}),a.jsx(Qt.div,{style:{y:ee,opacity:se},className:"absolute inset-0",children:a.jsx("div",{className:"absolute w-full max-w-2xl px-4 text-center sm:px-6",style:{...ip(y("hero").alignX,y("hero").alignY,{x:50,y:50}),fontFamily:y("hero").fontFamily},children:a.jsxs(Qt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,ease:"easeOut"},children:[(y("hero").eyebrow||o)&&a.jsx(le,{entity:"home_sections",id:"hero",field:"eyebrow",value:y("hero").eyebrow,as:"p",className:"mb-3 text-sm font-semibold uppercase tracking-wide text-brand-400",style:k,placeholder:"Vorspann (optional)"}),a.jsx(le,{entity:"home_sections",id:"hero",field:"title",value:y("hero").title,as:"h1",className:"text-3xl font-extrabold tracking-tight text-white sm:text-5xl",style:E,placeholder:"Überschrift"}),a.jsx(mr,{entity:"home_sections",id:"hero",field:"body_html",value:y("hero").bodyHtml,label:"Text",className:"legal-content mx-auto mt-4 max-w-2xl text-base text-neutral-200 sm:text-lg"}),a.jsxs("div",{className:"mt-8 flex flex-wrap items-center justify-center gap-3",children:[l&&a.jsx(U,{to:"/fahrzeuge",className:"rounded-md bg-brand-500 px-6 py-3 text-sm font-semibold text-white shadow-sm transition hover:-translate-y-0.5 hover:bg-brand-600 hover:shadow-lg",children:a.jsx(We,{k:"home.selectVehicle"})}),a.jsx(U,{to:"/kontakt",className:"rounded-md border border-white/30 bg-white/10 px-6 py-3 text-sm font-semibold text-white backdrop-blur transition hover:-translate-y-0.5 hover:bg-white/20",children:a.jsx(We,{k:"home.getInTouch"})})]})]})})})]}),!s("home.stats")&&a.jsx("section",{className:"border-b border-neutral-200 bg-neutral-950 py-8 dark:border-neutral-800",children:a.jsx("div",{className:"mx-auto grid max-w-6xl grid-cols-2 gap-6 px-4 text-center sm:grid-cols-4 sm:px-6",children:u.map((M,V)=>a.jsxs(He,{index:V,children:[a.jsx("p",{className:"text-2xl font-extrabold text-brand-400 sm:text-3xl",children:M.value}),a.jsx("p",{className:"text-sm text-neutral-400",children:M.label})]},M.label))})}),!s("home.partners")&&a.jsx("section",{className:"border-b border-neutral-200 py-8 dark:border-neutral-800",children:a.jsxs("div",{className:"mx-auto max-w-6xl px-4 sm:px-6",children:[a.jsx(We,{k:"home.brandsHeading",as:"p",className:"mb-4 block text-center text-xs font-semibold uppercase tracking-wide text-neutral-400"}),a.jsx("div",{className:"flex flex-wrap items-center justify-center gap-x-8 gap-y-3",children:p.map((M,V)=>a.jsx(He,{index:V,children:M.logo_path?a.jsx("img",{src:M.logo_path,alt:M.name,className:"h-8 max-w-[8rem] object-contain opacity-70 grayscale transition hover:opacity-100 hover:grayscale-0"}):a.jsx(le,{entity:"partners",id:M.id,field:"name",lang:"de",value:M.name,className:"text-lg font-bold text-neutral-400 dark:text-neutral-600"})},M.id))})]})}),!s("home.youtube")&&a.jsxs("section",{className:"relative min-h-[70vh] overflow-hidden sm:min-h-[85vh]",children:[a.jsx("video",{ref:F,loop:!0,muted:!0,playsInline:!0,preload:"none",poster:sv,className:"absolute inset-0 h-full w-full object-cover"}),a.jsx("div",{className:"absolute inset-0 bg-black/55"}),a.jsx("div",{className:"absolute w-full max-w-3xl px-4 text-center sm:px-6",style:{...ip(y("youtube").alignX,y("youtube").alignY,{x:50,y:50}),fontFamily:y("youtube").fontFamily},children:a.jsxs(He,{children:[(y("youtube").eyebrow||o)&&a.jsx(le,{entity:"home_sections",id:"youtube",field:"eyebrow",value:y("youtube").eyebrow,as:"p",className:"mb-4 text-xs font-semibold uppercase tracking-[0.2em] text-neutral-200 sm:text-sm",style:T,placeholder:"Vorspann (optional)"}),a.jsx(le,{entity:"home_sections",id:"youtube",field:"title",value:y("youtube").title,as:"h2",className:"text-3xl font-bold uppercase tracking-wide text-white sm:text-5xl",style:S,placeholder:"Überschrift"}),a.jsx(mr,{entity:"home_sections",id:"youtube",field:"body_html",value:y("youtube").bodyHtml,label:"Text",className:"legal-content mt-4 text-xs font-semibold uppercase tracking-wide text-neutral-200 sm:text-sm"}),a.jsx(op,{slug:"youtube",label:y("youtube").buttonLabel,url:y("youtube").buttonUrl,className:"mt-8 inline-flex items-center justify-center rounded-full bg-white px-8 py-3 text-xs font-bold uppercase tracking-wide text-neutral-900 transition hover:-translate-y-0.5 hover:bg-neutral-100",style:j})]})})]}),!s("home.craft")&&a.jsx("section",{className:"grain-band border-y border-neutral-200 bg-neutral-50 py-16 dark:border-neutral-800 dark:bg-neutral-900/40",children:a.jsxs("div",{className:"mx-auto max-w-6xl space-y-16 overflow-hidden px-4 sm:px-6",children:[a.jsxs("div",{className:"grid items-center gap-8 md:grid-cols-2",children:[a.jsx(He,{direction:"left",shine:!0,className:"rounded-xl shadow-lg",children:a.jsx("img",{src:rv,alt:n("home.craftImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})}),a.jsxs(He,{direction:"right",index:1,className:Wi[y("craft").align],style:{fontFamily:y("craft").fontFamily},children:[(y("craft").eyebrow||o)&&a.jsx(le,{entity:"home_sections",id:"craft",field:"eyebrow",value:y("craft").eyebrow,as:"p",className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:_,placeholder:"Vorspann (optional)"}),a.jsx(le,{entity:"home_sections",id:"craft",field:"title",value:y("craft").title,as:"h2",className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:C,placeholder:"Überschrift"}),a.jsx(mr,{entity:"home_sections",id:"craft",field:"body_html",value:y("craft").bodyHtml,label:"Text",className:"legal-content text-neutral-600 dark:text-neutral-300"})]})]}),a.jsxs("div",{className:"grid items-center gap-8 md:grid-cols-2",children:[a.jsxs(He,{direction:"left",className:`order-2 md:order-1 ${Wi[y("advice").align]}`,style:{fontFamily:y("advice").fontFamily},children:[(y("advice").eyebrow||o)&&a.jsx(le,{entity:"home_sections",id:"advice",field:"eyebrow",value:y("advice").eyebrow,as:"p",className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:B,placeholder:"Vorspann (optional)"}),a.jsx(le,{entity:"home_sections",id:"advice",field:"title",value:y("advice").title,as:"h2",className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:H,placeholder:"Überschrift"}),a.jsx(mr,{entity:"home_sections",id:"advice",field:"body_html",value:y("advice").bodyHtml,label:"Text",className:"legal-content text-neutral-600 dark:text-neutral-300"})]}),a.jsx(He,{direction:"right",index:1,shine:!0,className:"order-1 md:order-2 rounded-xl shadow-lg",children:a.jsx("img",{src:nv,alt:n("home.adviceImageAlt"),width:900,height:600,className:"w-full rounded-xl object-cover",style:{maxHeight:380}})})]})]})}),!s("home.insights")&&a.jsxs("section",{className:"mx-auto max-w-6xl px-4 py-16 sm:px-6",children:[a.jsxs(He,{className:`mb-8 ${Wi[y("insights").align]}`,style:{fontFamily:y("insights").fontFamily},children:[(y("insights").eyebrow||o)&&a.jsx(le,{entity:"home_sections",id:"insights",field:"eyebrow",value:y("insights").eyebrow,as:"p",className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:ne,placeholder:"Vorspann (optional)"}),a.jsx(le,{entity:"home_sections",id:"insights",field:"title",value:y("insights").title,as:"h2",className:"text-2xl font-bold text-neutral-900 dark:text-white",style:W,placeholder:"Überschrift"}),a.jsx(mr,{entity:"home_sections",id:"insights",field:"body_html",value:y("insights").bodyHtml,label:"Text",className:"legal-content mt-2 text-neutral-600 dark:text-neutral-300"})]}),a.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:d.map((M,V)=>a.jsx(He,{index:V%3,shine:!0,className:"aspect-square overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800",children:a.jsx("img",{src:M.src,alt:M.alt,width:M.width,height:M.height,loading:"lazy",className:"h-full w-full object-cover transition duration-300 hover:scale-105"})},M.src))})]}),!s("home.reviews")&&a.jsx("section",{className:"grain-band border-y border-neutral-200 bg-neutral-50 py-16 dark:border-neutral-800 dark:bg-neutral-900/40",children:a.jsxs("div",{className:"mx-auto max-w-6xl px-4 sm:px-6",children:[a.jsxs(He,{className:"mb-10 text-center",children:[a.jsx("div",{className:"mb-2 flex items-center justify-center gap-2",children:a.jsx(tv,{className:"h-6 w-6",count:N?Math.round(N.rating):5})}),a.jsx("h2",{className:"text-2xl font-bold text-neutral-900 dark:text-white",children:N?n("home.reviewsRatingDynamic")(N.rating,N.rating_count):n("home.reviewsRating")}),a.jsx(We,{k:"home.reviewsText",as:"p",className:"mt-1 text-neutral-600 dark:text-neutral-300"}),a.jsx("a",{href:"https://www.google.com/maps/search/?api=1&query=Hifi+Planet+Amorbach+Boxbrunner+Stra%C3%9Fe+20a",target:"_blank",rel:"noopener noreferrer",className:"mt-2 inline-block text-sm font-medium text-brand-600 hover:underline dark:text-brand-400",children:a.jsx(We,{k:"home.reviewsLink"})})]}),a.jsx(He,{children:a.jsx(rN,{testimonials:L})})]})}),!s("home.more")&&a.jsx("section",{className:"mx-auto max-w-6xl overflow-hidden px-4 py-16 sm:px-6",children:a.jsxs("div",{className:"grid items-center gap-10 md:grid-cols-2",children:[a.jsx(He,{direction:"left",shine:!0,className:"overflow-hidden rounded-xl shadow-lg",children:a.jsx("img",{src:lN,alt:n("home.moreImageAlt"),width:1600,height:905,className:"h-full w-full object-cover",loading:"lazy"})}),a.jsxs(He,{direction:"right",index:1,className:`rounded-xl border border-neutral-200 bg-white p-8 shadow-sm dark:border-neutral-800 dark:bg-neutral-900 ${Wi[y("more").align]}`,style:{fontFamily:y("more").fontFamily},children:[(y("more").eyebrow||o)&&a.jsx(le,{entity:"home_sections",id:"more",field:"eyebrow",value:y("more").eyebrow,as:"p",className:"mb-2 text-sm font-semibold uppercase tracking-wide text-brand-600 dark:text-brand-400",style:K,placeholder:"Vorspann (optional)"}),a.jsx(le,{entity:"home_sections",id:"more",field:"title",value:y("more").title,as:"h2",className:"mb-3 text-2xl font-bold text-neutral-900 dark:text-white",style:q,placeholder:"Überschrift"}),a.jsx(mr,{entity:"home_sections",id:"more",field:"body_html",value:y("more").bodyHtml,label:"Text",className:`legal-content mb-8 max-w-2xl text-neutral-600 dark:text-neutral-300 ${dN[y("more").align]}`}),a.jsx(op,{slug:"more",label:y("more").buttonLabel,url:y("more").buttonUrl,className:"inline-block rounded-md border border-neutral-300 px-6 py-3 text-sm font-semibold text-neutral-700 transition hover:-translate-y-0.5 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",style:oe})]})]})}),!s("home.faq")&&a.jsx("section",{id:"faq",className:"scroll-mt-20 border-t border-neutral-300 py-16 dark:border-neutral-700",children:a.jsxs("div",{className:"mx-auto max-w-3xl px-4 sm:px-6",children:[a.jsx(He,{className:"mb-8 text-center",children:a.jsx(We,{k:"home.faqHeading",as:"h2",className:"text-2xl font-bold text-neutral-900 dark:text-white"})}),a.jsx(He,{index:1,children:a.jsx(tN,{items:f})})]})})]})}function _a(e,t){return e?e.code==="rate_limited"||e.status===429?t("errors.rateLimited"):e.code==="invalid_input"||e.status===422?t("errors.invalidInput"):e.status===404?t("errors.notFound"):e.status===503?t("errors.maintenance"):e.status>=500?t("errors.server"):e.status?t("errors.generic"):t("errors.network"):""}const ap={vw:"volkswagen",mercedes:"mercedes-benz",benz:"mercedes-benz",mb:"mercedes-benz",chevy:"chevrolet",alfa:"alfa romeo"},pN=8,Is=e=>String(e||"").toLowerCase().normalize("NFD").replace(/[̀-ͯ]/g,"").replace(/ß/g,"ss").replace(/[-_./]+/g," ").replace(/\s+/g," ").trim(),na=e=>e.replace(/\s/g,"");function gN(e,t){const n=(e||[]).map(s=>{const i=Is(s.name);return{key:`b${s.id}`,type:"brand",label:s.name,to:`/fahrzeuge/${s.slug}`,text:i,flat:na(i)}}),r=(t||[]).map(s=>{const i=Is(`${s.brand_name} ${s.name}`);return{key:`m${s.id}`,type:"model",label:s.name,brand:s.brand_name,image:s.image_path,to:`/fahrzeuge/${s.brand_slug}/${s.slug}`,text:i,flat:na(i),modelText:Is(s.name)}});return[...n,...r]}function xN(e,t){const n=Is(t).split(" ").filter(Boolean);if(n.length===0)return[];const r=n.map(o=>ap[o]?[o,Is(ap[o])]:[o]),s=na(n.join("")),i=[];for(const o of e){const l=c=>o.text.includes(c)||o.flat.includes(na(c));if(!r.every(c=>c.some(l))&&!o.flat.includes(s))continue;let u=0;for(const c of r)c.some(d=>o.text.startsWith(d))?u+=3:c.some(d=>` ${o.text}`.includes(` ${d}`))&&(u+=2),c.some(d=>{var f;return(f=o.modelText)==null?void 0:f.startsWith(d)})&&(u+=2);o.type==="brand"&&(u+=1),i.push({entry:o,score:u})}return i.sort((o,l)=>l.score-o.score||o.entry.text.localeCompare(l.entry.text,void 0,{numeric:!0})),i.slice(0,pN).map(o=>o.entry)}function yN({brands:e,width:t}){const{t:n}=pe(),r=es(),s=m.useId(),i=m.useRef(null),[o,l]=m.useState(null),[u,c]=m.useState(""),[d,f]=m.useState(!1),[h,g]=m.useState(0),v=m.useRef(!1),w=()=>{o||v.current||(v.current=!0,ie.get("/vehicle-search").then(l).catch(()=>l([])).finally(()=>{v.current=!1}))},b=m.useMemo(()=>gN(e,o),[e,o]),p=m.useMemo(()=>xN(b,u),[b,u]),x=d&&u.trim()!=="",y=p.some(S=>S.image);m.useEffect(()=>g(0),[u]),m.useEffect(()=>{if(!x)return;const S=j=>{var _;(_=i.current)!=null&&_.contains(j.target)||f(!1)};return document.addEventListener("pointerdown",S),()=>document.removeEventListener("pointerdown",S)},[x]);const k=S=>{f(!1),r(S.to)},E=S=>{S.key==="ArrowDown"&&p.length?(S.preventDefault(),f(!0),g(j=>(j+1)%p.length)):S.key==="ArrowUp"&&p.length?(S.preventDefault(),g(j=>(j-1+p.length)%p.length)):S.key==="Enter"&&x&&p[h]?(S.preventDefault(),k(p[h])):S.key==="Escape"&&(x?f(!1):c(""))},T=o===null&&u.trim()!=="";return a.jsxs("div",{ref:i,className:"relative mb-8 max-w-full",style:{width:t?`${t}px`:"100%"},children:[a.jsx("label",{htmlFor:`${s}-input`,className:"sr-only",children:n("vehicleSearch.label")}),a.jsxs("div",{className:"relative flex items-center",children:[a.jsx(bP,{className:"pointer-events-none absolute left-4 h-[18px] w-[18px] text-neutral-400","aria-hidden":"true"}),a.jsx("input",{id:`${s}-input`,type:"search",role:"combobox","aria-expanded":x,"aria-controls":`${s}-list`,"aria-autocomplete":"list","aria-activedescendant":x&&p[h]?`${s}-${p[h].key}`:void 0,autoComplete:"off",spellCheck:!1,value:u,placeholder:n("vehicleSearch.placeholder"),onFocus:()=>{w(),f(!0)},onChange:S=>{w(),c(S.target.value),f(!0)},onKeyDown:E,className:"vehicle-search-input w-full rounded-xl border border-neutral-300 bg-gradient-to-b from-white to-neutral-50 py-3.5 pl-11 pr-11 text-[15px] text-neutral-900 outline-none transition-[border-color,box-shadow] duration-200 placeholder:text-neutral-400 focus:border-brand-500 dark:border-neutral-700 dark:from-neutral-800 dark:to-neutral-900 dark:text-white dark:placeholder:text-neutral-500 [&::-webkit-search-cancel-button]:hidden"}),u&&a.jsx("button",{type:"button",onClick:()=>c(""),"aria-label":n("vehicleSearch.clear"),className:"absolute right-3 rounded-md p-1 text-neutral-400 transition hover:text-neutral-700 dark:hover:text-neutral-200",children:a.jsx(yi,{className:"h-4 w-4"})})]}),x&&a.jsx("div",{className:"absolute inset-x-0 top-full z-30 mt-2 overflow-hidden rounded-xl border border-neutral-200 bg-white shadow-lg dark:border-neutral-800 dark:bg-neutral-900",children:p.length>0?a.jsx("ul",{id:`${s}-list`,role:"listbox",className:"max-h-[360px] overflow-y-auto py-1",children:p.map((S,j)=>a.jsx("li",{id:`${s}-${S.key}`,role:"option","aria-selected":j===h,children:a.jsxs(U,{to:S.to,onClick:()=>f(!1),onMouseEnter:()=>g(j),className:`flex items-center gap-3 px-4 py-2.5 text-[15px] ${j===h?"bg-neutral-100 dark:bg-neutral-800":""}`,children:[S.type==="model"?a.jsxs(a.Fragment,{children:[S.image?a.jsx("img",{src:S.image,alt:"",loading:"lazy",className:"h-9 w-14 shrink-0 rounded object-cover"}):y&&a.jsx("span",{className:"h-9 w-14 shrink-0 rounded bg-neutral-100 dark:bg-neutral-800"}),a.jsxs("span",{className:"min-w-0 flex-1 truncate text-neutral-900 dark:text-white",children:[a.jsx("span",{className:"text-neutral-500 dark:text-neutral-400",children:S.brand})," ",S.label]})]}):a.jsxs("span",{className:"min-w-0 flex-1 truncate text-neutral-900 dark:text-white",children:[S.label,a.jsx("span",{className:"ml-2 text-xs uppercase tracking-wider text-neutral-500 dark:text-neutral-400",children:n("vehicleSearch.allModels")})]}),a.jsx(TC,{className:`h-4 w-4 shrink-0 text-brand-500 transition-opacity ${j===h?"opacity-100":"opacity-0"}`,"aria-hidden":"true"})]})},S.key))}):a.jsx("div",{id:`${s}-list`,className:"px-4 py-3 text-sm text-neutral-500 dark:text-neutral-400",children:T?n("vehicleSearch.loading"):a.jsxs(a.Fragment,{children:[n("vehicleSearch.noResults")," ",a.jsx(U,{to:"/kontakt",className:"font-semibold text-brand-500 hover:underline",children:n("vehicleSearch.contact")})]})})})]})}function vN(){const[e,t]=m.useState(null),[n,r]=m.useState(null),s=Ta(),{t:i}=pe(),o=Wd(),{vehicle_tile_width:l,vehicle_tile_height:u}=It(),c={width:`${l}px`,height:`${u}px`},d=m.useRef(null),[f,h]=m.useState(0);m.useEffect(()=>{const p=d.current;if(!p)return;const x=new ResizeObserver(([y])=>h(y.contentRect.width));return x.observe(p),()=>x.disconnect()},[]);const g=16,v=e?e.length:6,w=Math.max(1,Math.min(v,Math.floor((f+g)/(Number(l)+g)))),b=f&&v?w*Number(l)+(w-1)*g:void 0;return dr({title:i("vehicleSelect.metaTitle"),description:i("vehicleSelect.metaDescription"),path:"/fahrzeuge"}),m.useEffect(()=>{s.vehicles.enabled&&!s.bypass||ie.get("/brands").then(t).catch(p=>r(p))},[s.vehicles.enabled,s.bypass]),s.vehicles.enabled&&!s.bypass?a.jsx(vi,{message:s.vehicles.message}):a.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[a.jsx("div",{ref:d}),s.vehicles.enabled&&s.bypass&&a.jsx(wi,{inline:!0}),a.jsx(We,{k:"vehicleSelect.title",as:"h1",className:"mb-2 block text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl"}),a.jsx(We,{k:"vehicleSelect.intro",as:"p",className:"mb-6 block text-neutral-600 dark:text-neutral-300"}),a.jsx(yN,{brands:e,width:b}),n&&a.jsx("p",{className:"text-red-600",children:typeof n=="string"?n:_a(n,i)}),e===null&&!n&&a.jsx("div",{className:"flex flex-wrap gap-4","aria-busy":"true","aria-label":i("vehicleSelect.loading"),children:Array.from({length:6},(p,x)=>a.jsx("div",{style:c,className:"shrink-0 animate-pulse rounded-xl bg-neutral-200 dark:bg-neutral-800"},x))}),(e==null?void 0:e.length)===0&&!n&&a.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:i("vehicleSelect.empty")}),a.jsx("div",{className:"flex flex-wrap gap-4",children:(e||[]).map(p=>p.image_path?a.jsxs(U,{to:`/fahrzeuge/${p.slug}`,style:c,className:"group relative block shrink-0 overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[a.jsx("img",{src:p.image_path,alt:"",loading:"lazy",decoding:"async",width:l,height:u,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),a.jsx(le,{entity:"brands",id:p.id,field:"name",lang:"de",value:p.name,className:"absolute inset-x-0 bottom-0 p-4 text-center text-lg font-extrabold text-white",style:ar(o,`brands.${p.id}.name`)})]},p.id):a.jsx(U,{to:`/fahrzeuge/${p.slug}`,style:c,className:"flex shrink-0 flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-white px-6 text-center font-semibold text-neutral-800 shadow-sm transition hover:-translate-y-0.5 hover:border-brand-500 hover:shadow-md dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-100",children:a.jsx(le,{entity:"brands",id:p.id,field:"name",lang:"de",value:p.name,style:ar(o,`brands.${p.id}.name`)})},p.id))})]})}function Yd(){const{t:e}=pe(),{phone:t}=It(),n=Pa();return dr({title:e("notFound.metaTitle"),noindex:!0}),a.jsxs("div",{className:"mx-auto max-w-2xl px-4 py-20 text-center sm:px-6",children:[a.jsx("p",{className:"text-sm font-semibold uppercase tracking-[4px] text-brand-500",children:"404"}),a.jsx("h1",{className:"mt-3 text-3xl font-bold text-neutral-900 dark:text-white sm:text-4xl",children:e("notFound.title")}),a.jsx("p",{className:"mx-auto mt-4 max-w-md text-neutral-600 dark:text-neutral-300",children:e("notFound.text")}),a.jsxs("div",{className:"mt-10 flex flex-wrap justify-center gap-3",children:[!n("page.vehicles")&&a.jsxs(U,{to:"/fahrzeuge",className:"inline-flex items-center gap-2 rounded-md bg-brand-500 px-5 py-3 text-sm font-semibold text-white shadow-sm hover:bg-brand-600",children:[a.jsx(Jo,{className:"h-4 w-4"}),e("notFound.toVehicles")]}),a.jsxs(U,{to:"/kontakt",className:"inline-flex items-center gap-2 rounded-md border border-neutral-300 px-5 py-3 text-sm font-semibold text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:[a.jsx(oc,{className:"h-4 w-4"}),e("notFound.toContact")]}),t&&a.jsxs("a",{href:ai(t),className:"inline-flex items-center gap-2 rounded-md border border-neutral-300 px-5 py-3 text-sm font-semibold text-neutral-700 hover:bg-neutral-100 dark:border-neutral-700 dark:text-neutral-200 dark:hover:bg-neutral-800",children:[a.jsx(or,{className:"h-4 w-4"}),t]})]}),a.jsx(U,{to:"/",className:"mt-8 inline-block text-sm text-neutral-500 underline hover:text-brand-500",children:e("notFound.toHome")})]})}function wN(){const{brandSlug:e}=ad(),[t,n]=m.useState(null),[r,s]=m.useState(null),i=Ta(),{t:o}=pe(),l=Wd(),u=Ue(t?`brands.${t.brand.id}.name`:""),{vehicle_tile_width:c,vehicle_tile_height:d}=It(),f={width:`${c}px`,height:`${d}px`};return m.useEffect(()=>{i.vehicles.enabled&&!i.bypass||ie.get(`/brands/${e}/models`).then(n).catch(h=>s(h))},[e,i.vehicles.enabled,i.bypass]),dr({title:t?`${t.brand.name} ${o("brandPage.titleSuffix")}`:o("brandPage.metaTitleFallback"),description:t?o("brandPage.metaDescription")(t.brand.name):void 0,path:`/fahrzeuge/${e}`}),i.vehicles.enabled&&!i.bypass?a.jsx(vi,{message:i.vehicles.message}):r?r.status===404?a.jsx(Yd,{}):a.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:_a(r,o)}):t?a.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[i.vehicles.enabled&&i.bypass&&a.jsx(wi,{inline:!0}),a.jsxs("h1",{className:"mb-8 text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl",children:[a.jsx("span",{style:u,children:t.brand.name})," – ",o("brandPage.titleSuffix")]}),t.models.length===0&&a.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:o("brandPage.empty")}),a.jsx("div",{className:"flex flex-wrap gap-4",children:t.models.map(h=>h.image_path?a.jsxs(U,{to:`/fahrzeuge/${e}/${h.slug}`,style:f,className:"group relative block shrink-0 overflow-hidden rounded-xl bg-neutral-900 shadow-sm transition hover:shadow-lg",children:[a.jsx("img",{src:h.image_path,alt:"",loading:"lazy",decoding:"async",width:c,height:d,className:"h-full w-full object-cover transition duration-300 group-hover:scale-105"}),a.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/85 via-black/10 to-transparent transition group-hover:from-black/95"}),a.jsx(le,{entity:"car_models",id:h.id,field:"name",lang:"de",value:h.name,className:"absolute inset-x-0 bottom-0 p-4 text-center text-lg font-extrabold text-white",style:ar(l,`car_models.${h.id}.name`)})]},h.id):a.jsx(U,{to:`/fahrzeuge/${e}/${h.slug}`,style:f,className:"flex shrink-0 flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-white px-6 text-center font-semibold text-neutral-800 shadow-sm transition hover:-translate-y-0.5 hover:border-brand-500 hover:shadow-md dark:border-neutral-800 dark:bg-neutral-900 dark:text-neutral-100",children:a.jsx(le,{entity:"car_models",id:h.id,field:"name",lang:"de",value:h.name,style:ar(l,`car_models.${h.id}.name`)})},h.id))})]}):a.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:o("brandPage.loading")})}function bN({text:e}){return e?e.split(/(\*\*[^*]+\*\*)/g).map((n,r)=>{const s=n.match(/^\*\*([^*]+)\*\*$/);return s?a.jsx("strong",{children:s[1]},r):a.jsx("span",{children:n},r)}):null}const lp="data:image/webp;base64,UklGRmoNAABXRUJQVlA4IF4NAAAQjACdASrgAVYDPlEok0ajoqGhIRK4IHAKCWlu/F+5xDCoDux8VXNtc99B5Uf715Q+k/+V6E/yD7bfvf7tYI7QKys1Pu/n/K9wD+L/0L/aeqHflfZf937AH81/p//N/yXr9f9f+M/yf7c+4D6R/7n+O+BL9d+rb+0f//9yX9VQU+fHDhw4cN7KTkCBAgQIECBAgQIEB8GtgzU5WrVq1atWrVq1atTTWWxGRvDLM5r169evXr169evVcNgPhleRXp06dOnTp06dOnTpUIn65+OKaJVsmzZs2bNmzZs2bNmSyYC6ipEunTp06dOnTp06dOlydZVuN901q1atWrVq1atWrVXZqLYS16JYyeHDhw4cOHDhw4cN4wtQeDaQLgECBAgQIECBAgQIDddB6sEmQB2atWrVq1atWrVq1aq1iYS5JU9iBlzXr169evXr169evXeEPp+8N6OklatWrVq1atWrVq1V3IfqDdZ8CK1AgQIECBAgQIECBBQFoI3bXHSzdGb8+OHDhw4cOHDhw4ZwLNj/Gx48ePHjx48ePHjx5HaZ5q8hFQPLVq1atWrVq1atWrVWlrSSS1atWrVq1atWrVq1VouJ4vs1atWrVq1atWrVqzMNN6naRaj4OHDhw4cOHDhwzggYy8goXr169evXr169evXbAmy3nWg79+/fv379+/fv377Aw+GV3JG24BIkSJEiRIkSJEiRH091sORb3KZK2rVq1atWrVq1atWZgOgxn2g3CECBAgQIECBAgQHwEh4tRYq5WHRSJEiRIkSJEiRIkRmQ4gXd9q0Xa9evXr169evXr169SUP3aSDmqBOfHDhw4cOHDhw4cN/rYXzoW6jx48ePHjx48ePHjwyNgV/F/hRIkSJEiRIkSJEiRGcgeccx2x48ePHjx48ePHjx5+h2DL7y1q1atWrVq1atWrVqrLjxn1+UevXr169evXr169epWz/ixb7G7Fx48ePHjx48ePHjx64Dpo0+TFzjw4cOHDhw4cOHDhwr64/FOVqj1ftlBYsWLFixYsWLFixsB93m6MKtrfi/YePHjx48ePHjx48eGCFP4MdBX+BXbQiRIkSJEiRIkSJEiA+X4/Ne4l0FixYsWLFixYsWLTKZjxkHLs7TTrVq1atWrVq1atWrSGY83Cktx0PPjhw4cOHDhw4cN/7Xmd/H4DxEePHjx48ePHjx48ct7KWpas7p5jy5cuXLly5cuXLlyM+h2/gRIkSJEiRIkSJEiRAPRMs9EnbFixYsWLFixYsWLBwJstxClHwcOHDhw4cOHDhw3+o6GvCGxY8ePHjx48ePHjx45aAayr3BCnnxw4cOHDhw4cOG/2HuJWxIvK1JLZs2bNmzZs2bNmyAMNnZLnTo6dOnTp06dOnTp06Vd0rFPQfnwwCPHjx48ePHjx48eOU7jRhCFUn5bFixYsWLFixYsWKZRr/1LzwcOHDhw4cOHDhw4ZshIGgexQoECBAgQIECBAgQH+hD+jvXr169eu0AAP7/2BA2pStbx3f0LK6/mZcFuZpv73FLTm7GUv07j8lFLoOGX1EwKUHfPc4FImBkAvjxF1E2TgBogJKpQ2lbMv5bOqPckB4PELJo9ZXlMwGup4PkMOtTZPmrbNoaCJqn0H4Bx7A0xA439P5hkMGBnAEfInQIN5UeUIDb3y6tLej2gR8HhJ5XmTsxvmM15ltL5ZwdGmoNeW8NevUVUKqJ8mNngu7ocCsyGYaeYOGGZBBt6rj6bPVKVbxvb8onw6mljAaaxGTz0W+aNPv06kK3qhDe6/uHi8kg2qvjF3njhRMyOJKZzg12h4qOtVgTuKPAMRWYDkgwiRs9iYqcumonNNXvXk3FAk2LO5XnyjtD5sHSUO3pIrztpBvqq+UJzKeIwGBlPwA2NP46tOJxLzbrKeH4SQjt2HAsbrVcQ/b/TgKZGPwaqfGDN+OjqJK3Z9dyCkGGfGKeG1w9+HSZTm/qh052lQEJAcdUX6vm/+sDBxtrfl4Sg8iMcVnDsfTKJpsTYF/vzJ1oQ6/VPyIX1HpDwnPXsptu9rKDFazlkwc3ofi8uKJmycgPiG9xOLlzn4Af8Dm+LcjJUMAtA7XeZPLlW1bwogbRthU8oA4LcURuku6eXDJ1eb1IKUU7k/UK0cBeK+R5YVcmrOnZIyHzcIaClYnrIwerP535fHv4VXjURTO6/85BvSeTNWvQGqkW5v1hG6AEMrxBryfat3kmr+SNEz5wC2f54z1O7C2KsRpt3maISh9PhMg7jDIxmVe07eHtkLtz6v3yQUJQV95yazDYpH5JfpuYSb8dtmB1cKjeoDTPvik9dCA1UFCTZBfojpIOwXdwAR7JEdZkEi/24hMNKJJlB6udZZKqNJB1hNl24Z++z6lAGSAuRgSwDZGdbqxs+0iL6wmRHilqPOiYB6hQiPZ7cfpMZxesqRwyhcf1O29w4ORG/7BlerR8hYvY4B1XsPYbDORvPk6FHIDXwTXGpuDIta7G4F6RNDdOvCFkAl53GZo5h/p2QkWUry5YuyegnPlKjT3He6ewYypA9YOvMhaqip7kr9sF4TU2bX9foKZ+FFZNzhyySS+13+g4BdJo9YF3bw5b6eSxUfTWiDLNh50VjuqRQWHUEkiA8zJqnqkKCwuDy6iY2oF20FJQlGIPpCDKPBzdXSb/n9NDltaoUlbam7cDAU7CwNdaWFXTABRk0S0e49iF4tO106Uwul7DGYpq0Eu71TnKUjCtEBc83QH8skvRzHniEne3AtJLYRH0cMNSSzeCJ1g+Nfc8RaZkhLhCaZGZdYe5j0LGmQnVFt2iapZvGBi7Sw0X56zdziC9Foq0OPsqKFetZdICc2eUV5Vu1+nvisSzn8wlSDUt3OmRkt/gJxfJQfWxcu5HZ26qqNpA4ablWrX4E9DEmvXzpFGYCnYJMheN2BlWwBVLh1cyQ8INngXaoB8I5Pj9oYyuz/W+jvJQ6G074luX9D3pLkuc88D0Hae3ZqXrRYRzGF1vD8pHsk9Co8B6rpE/4GEwW/zsCtnjz5G8m4KFwf2qW1k0HkNv7Nlg38bcz6TdTzuw/jega5XZQQhflLu4I6l+s90BHFIR+JEXTBBqJwT+IgTnpHNc+h5Ek74HiKqXuGUNGIKIozHkiFxMlnrsklrpweBzYY6ype9CzepAuQF63xC/eIJw1pMZEC1pPgq/r+1gWx5M6g8fpu2O12sb6pLeqT+G4mK3yHMZTojfp1xwQedRmwZnWQ8SCh4XV2a/+3OTz4D4pmmumyBV7V2VW3he8y6usinSjfYPxLyTng27fgw6jQhHl2mVhxBBjiwr5ljvJV7L+MJYDiZjGWfBCsTmehk6rbNt7ahTJpHu4B9ctRqiZXjx0zGpTF91OKifmy4nTq31p1XaIsZAHCWvItXKeke06KKKRTIm6mCT9yBJVwG1sqQhjrkP77q0/JGYgOwgdCQCstsAZQ0FlOrGYXYTIQK/krLyCAZjg8vP/Ers/KVN8F88OsyU5/T1e5ba8A2F63qgwhtkWoVIEZErOVL8sM/DtpWTlcBNsvVOFl4tT+Sk6a2ScCptFL5F6cZXTIw8JmgoCbyqB6xyU+uPP5y09s5T8MDC7Em7NpxCjgD39eed40gHQrBm6CtAbS9JOCVPkPxbpcGDj/LoAGbnyYzMpOmTi28LJ9FTIqyGuAI0jxY/QpNelOOEvNK3io1HeYkK3AprImDk99tlUjgt9bc3ejCOFDXt9LqGHjFssGrhVHyJBmWjwHQipcIMHxF2jfP5jfAGuHtJRRncHIFgLWmJ1XmzJ0LLqWCJShdJSJLc7L6YeVcgKfzOZCwhtzJ7VeI3uBhPXQNOqCf5tlQ32HApAMvCIiBwhYrpfFo/kvjfTMB/NJ0w2Lk8GAFfFQY+U6uX1oB0hztGmA5HggJTwgLo8exG64m3Xu4fg2g4MmQol7z6xNwwubABnpoS3Og85giFkaarUP2ovQyixFpXki8Xf5a5NwjUGCPbx+LD3WKJiBtkiHsYMMV/VAZVNvdg/Ph/V4ZYOr+hw7g9mOJXi+oVZxG9pqJC9w8nRkegsnQ2lpRHn22lTsIa9aOkR0X8zp/IajQxUzv057a3WptBst0EZbZtfmWp6h2K0sDQS9oQT1PqOkGDJlz6ZHZzDMShDTcwJfIZMdnjpeHdPoYoqlcn3M8daRuMeTSP3mabP1/pdQrs6Wl7ToKog2Au/gv46pUMgVcKmdWNJdDF8RplMMXJpU2tZMdkTWq4ofSypsCfuWfeHOpFQGJdFF6OoH2pDJXvkqpj1a832g3uYtVQg1TGyqYqI7UBZQy4NEZbdj6O/s6MNEnfujUDQ8QZj7rSE2RI77egKDWzM708AsvlMFoeX4CVP09rMzXNP2aOZwY7zOBTvBgEEqCWlXAFlY8pW0zIm16gqSPiwRUgH41i1PuJx382C0zTWGT243ZhLnyOIlreUrMQAfwR/oYt+ljnDFKqa5PEczDPa+u/vWmR6UM+Q/lLFiIlgBJTfaekWoeLpPd9FPN4gIHzK1ZS8kDHyq3lh/e6FQ84a4Zg6JlfQC/qhAAAAA==",kN="/assets/base-BKOm0Bib.webp",SN="/assets/clear-DZZMSrMX.webp",jN="/assets/drive-BE2W1yna.webp",EN="/assets/prime-BTVNe2Gb.webp",CN="/assets/elite_r-BRvz_pyr.webp",PN="/assets/apex-CFy2qup8.webp",TN="/assets/statement-pTO-wTPx.webp",NN="/assets/limitless-DDs0S_PU.webp";function _n(e,t,n){if(!e)return"";if(n==="en"){const r=e[`${t}_en`];if(r)return r}return e[t]}const _N=(e,t,n)=>{t/=100,n/=100;const r=o=>(o+e/30)%12,s=t*Math.min(n,1-n),i=o=>n-s*Math.max(-1,Math.min(r(o)-3,Math.min(9-r(o),1)));return[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)]},_l=(e,t,n)=>`rgb(${_N(e,t,n).join(", ")})`,up=e=>e.map(([t,n,r,s,i,o])=>({bgTop:_l(t,n,r),border:_l(t,n,r+8),accent:_l(s,i,o),img:null})),cp={graphite:[{accent:"#b6b6b6",border:"#2a2a2a",bgTop:"#1c1c1c",img:kN},{accent:"#d3d3d3",border:"#2e2e2e",bgTop:"#212121",img:SN},{accent:"#8fb8bd",border:"#26383b",bgTop:"#16282b",img:jN},{accent:"#6fbf73",border:"#1f3a24",bgTop:"#122916",img:EN},{accent:"#63d34f",border:"#204a1c",bgTop:"#123312",img:CN},{accent:"#8bea3c",border:"#2b5518",bgTop:"#173a0f",img:PN},{accent:"#d9a83c",border:"#4a3a16",bgTop:"#33270d",img:TN},{accent:"#f2c14e",border:"#5a4718",bgTop:"#3d2f0c",img:NN}],"deep-blue":up([[215,18,11,210,15,60],[212,25,11,208,32,60],[210,38,12,206,46,60],[212,46,12,205,56,61],[214,52,12,205,63,62],[216,58,12,205,68,63],[220,62,12,212,73,65],[226,66,12,216,78,68]]),"warm-bronze":up([[30,15,11,34,22,60],[34,32,11,34,46,60],[32,46,12,30,58,60],[26,52,12,24,65,60],[20,55,12,18,68,60],[14,55,12,12,68,61],[8,52,12,6,64,62],[2,50,12,358,60,63]])},MN="#f2f2f2",dp="#8a8a8a",fp="#c4c4c4",hp=5,LN=3,AN={recommended:{Icon:NP,className:"bg-brand-500 text-white"},popular:{Icon:JC,className:"bg-amber-400 text-neutral-950"},tip:{Icon:rP,className:"bg-sky-500 text-white"},coming_soon:{Icon:Dy,className:"bg-white text-neutral-900"},custom:{Icon:null,className:"bg-brand-500 text-white"}};function DN({pkg:e,tier:t,tierT:n,layout:r,bullets:s,formatPrice:i,contactUrl:o,priceNote:l,t:u}){const[c,d]=m.useState(!1),f=at().canEdit("packages"),[h,g]=m.useState(!1),v=m.useRef(null),w=s.length-hp,b=c?s:s.slice(0,hp);m.useLayoutEffect(()=>{const _=v.current;if(!_||c){g(!1);return}const C=()=>g([..._.querySelectorAll("[data-clamp]")].some(H=>H.scrollHeight>H.clientHeight+1));C();const B=new ResizeObserver(C);return B.observe(_),()=>B.disconnect()},[c,s.length,e.description]);const p=Wd(),x=ar(p,`packages.${e.id}.description`),y=ar(p,`packages.${e.id}.price_text`),{package_card_height:k}=It(),E=AN[e.badge],T=r!=="grid",S=e.badge==="custom"?e.badge_text:e.badge&&u(`modelPage.badges.${e.badge}`),j=t.img?null:{backgroundColor:t.accent,WebkitMaskImage:`url(${lp})`,maskImage:`url(${lp})`,maskMode:"luminance",WebkitMaskSize:"cover",maskSize:"cover",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat"};return a.jsxs("div",{style:{borderColor:t.border,background:`linear-gradient(180deg, ${t.bgTop} 0%, #0b0b0b 55%, #080808 100%)`,...T?{gridRow:"span 4",gridTemplateRows:"subgrid",rowGap:0}:{minHeight:`${k}px`}},className:r==="strip"?"relative grid snap-start overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40":r==="coverflow"?"relative grid snap-center overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 will-change-transform dark:shadow-black/40":"relative flex flex-col overflow-hidden rounded-[18px] border shadow-xl shadow-neutral-900/20 dark:shadow-black/40",children:[t.img?a.jsx("img",{src:t.img,alt:"","aria-hidden":"true",className:"pointer-events-none absolute inset-0 h-full w-full object-cover"}):a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...j,opacity:.2+n*.45,filter:"blur(18px)"},"aria-hidden":"true"}),a.jsx("div",{className:"pointer-events-none absolute inset-0",style:{...j,opacity:.55+n*.45},"aria-hidden":"true"})]}),E&&S&&a.jsxs("span",{className:`absolute top-2 left-1/2 z-10 flex max-w-[calc(100%-16px)] -translate-x-1/2 items-center gap-1 whitespace-nowrap rounded-full px-3 py-1 text-xs font-bold shadow ${E.className}`,children:[E.Icon&&a.jsx(E.Icon,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),a.jsx("span",{className:"truncate",children:S})]}),a.jsxs("div",{className:"relative z-10 text-center",style:{padding:"34px 20px 0",gridRow:1},children:[a.jsx("div",{style:{fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",letterSpacing:"3px",fontWeight:600,color:t.accent,textTransform:"uppercase",lineHeight:1.1},children:a.jsx(le,{entity:"packages",id:e.id,field:"name",lang:"de",value:e.name,placeholder:"Paketname"})}),a.jsx("div",{style:{width:"44px",height:"2px",margin:"14px auto 0",background:`linear-gradient(90deg, rgba(255,255,255,0) 0%, ${t.accent} 50%, rgba(255,255,255,0) 100%)`}})]}),s.length>0&&a.jsxs("div",{className:"relative z-10",style:{gridRow:2,padding:"18px 20px 14px",background:c?"linear-gradient(180deg, rgba(8,8,8,0.7) 0%, rgba(8,8,8,0.62) 94%, rgba(8,8,8,0) 100%)":"linear-gradient(180deg, rgba(8,8,8,0.55) 0%, rgba(8,8,8,0.48) 92%, rgba(8,8,8,0) 100%)"},children:[a.jsx(lc,{entity:"packages",id:e.id,field:"description",value:e.description,label:"Zusätzliche Stichpunkte",hint:"Eine Zeile = ein Stichpunkt (unter den Produkten). **fett** wird fett dargestellt. Die Produkte selbst pflegst du im Admin unter Pakete.",children:a.jsx("ul",{ref:v,className:"space-y-1.5 text-left",children:b.map((_,C)=>a.jsxs("li",{className:"flex items-start gap-2",style:{fontSize:"13px",color:fp,..._.fromDescription?x:null},children:[a.jsx(Ay,{className:"mt-0.5 h-3.5 w-3.5 shrink-0",style:{color:t.accent}}),a.jsx("span",{"data-clamp":!0,className:"leading-snug",style:c?void 0:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:LN,overflow:"hidden"},children:_.fromDescription?a.jsx(bN,{text:_.text}):_.text})]},C))})}),(c||w>0||h)&&a.jsxs("button",{type:"button",onClick:()=>d(_=>!_),className:"mt-2.5 flex items-center gap-1 hover:opacity-80",style:{fontSize:"13px",color:t.accent},children:[c?u("modelPage.lessBullets"):w>0?u("modelPage.moreBullets")(w):u("modelPage.showMore"),c?a.jsx(UC,{className:"h-3.5 w-3.5"}):a.jsx(FC,{className:"h-3.5 w-3.5"})]})]}),s.length===0&&f&&a.jsx(lc,{entity:"packages",id:e.id,field:"description",value:e.description,label:"Zusätzliche Stichpunkte",hint:"Eine Zeile = ein Stichpunkt. **fett** wird fett dargestellt.",className:"relative z-10 mx-5 mt-4 text-center text-xs",style:{gridRow:2,color:fp},children:"+ Stichpunkte hinzufügen"}),a.jsx("div",{className:"relative z-10 flex-1",style:{gridRow:3}}),a.jsx("div",{className:"relative z-10",style:{gridRow:4,padding:"20px 20px 28px",background:"linear-gradient(180deg, rgba(8,8,8,0) 0%, rgba(8,8,8,0.85) 45%, rgba(8,8,8,0.95) 100%)"},children:a.jsxs("div",{className:"text-center",children:[!e.price_text&&a.jsx("div",{style:{fontSize:"13px",color:dp},children:u("modelPage.totalPrice")}),a.jsx("div",{style:{marginTop:"4px",fontFamily:"'Barlow Condensed', sans-serif",fontSize:"30px",fontWeight:600,letterSpacing:"1px",color:MN,...e.price_text?y:null},children:f?a.jsx(le,{entity:"packages",id:e.id,field:"price_text",value:e.price_text,placeholder:i(e.total_price),title:"Leer lassen = Preis automatisch aus den Produkten"}):e.price_text||i(e.total_price)}),!e.price_text&&l&&a.jsx("div",{style:{marginTop:"2px",fontSize:"11px",color:dp},children:l}),a.jsx(U,{to:o(e),onClick:()=>Nn("select_package",{package_name:e.name,value:Number(e.total_price)||void 0,currency:"EUR"}),className:"mt-4 inline-block rounded-md bg-brand-500 px-4 py-2 text-center text-sm font-semibold text-white shadow-lg shadow-brand-500/30 hover:bg-brand-400",children:u("modelPage.requestContact")}),e.video_url&&a.jsx("div",{className:"mt-3",children:a.jsxs("a",{href:e.video_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-full border border-white/15 bg-white/5 px-3 py-1 text-xs font-semibold text-white transition hover:bg-white/15",children:[a.jsx(GC,{className:"h-4 w-4 text-red-500","aria-hidden":"true"}),u("modelPage.videoLink")]})})]})})]})}function RN(){const{brandSlug:e,modelSlug:t}=ad(),[n,r]=m.useState(null),[s,i]=m.useState(null),o=Ta(),{t:l,language:u}=pe(),c=at(),{package_card_theme:d,package_card_layout:f,package_wheel_hint_interval:h,package_card_width:g,package_card_height:v,phone:w,whatsapp:b,price_note:p,price_note_en:x}=It(),y=u==="en"&&x||p,k=cp[d]||cp.graphite,E=["grid","strip","coverflow"].includes(f)?f:"strip",T=Math.max(2,Number(h)||8)*1e3,S=m.useRef(null),j=m.useRef(null),_=m.useRef(null),[C,B]=m.useState(!1),H=P=>new Intl.NumberFormat(u==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(P);m.useEffect(()=>{o.vehicles.enabled&&!o.bypass||ie.get(`/models/${e}/${t}/packages`).then(r).catch(P=>i(P))},[e,t,o.vehicles.enabled,o.bypass]),m.useEffect(()=>{const P=S.current;if(E!=="coverflow"||!P)return;let R=0;const z=()=>{R=0;const se=P.scrollLeft+P.clientWidth/2;for(const je of P.children){const Ve=je.offsetLeft+je.offsetWidth/2,jt=Math.max(-1,Math.min(1,(Ve-se)/(je.offsetWidth*1.4))),M=Math.abs(jt);je.style.transform=`rotateY(${(-jt*35).toFixed(2)}deg) scale(${(1-M*.13).toFixed(3)}) translateZ(${(-M*60).toFixed(1)}px)`,je.style.zIndex=String(100-Math.round(M*50))}},G=()=>{R||(R=requestAnimationFrame(z))};z(),P.addEventListener("scroll",G,{passive:!0});const ee=new ResizeObserver(G);return ee.observe(P),()=>{P.removeEventListener("scroll",G),ee.disconnect(),cancelAnimationFrame(R)}},[E,n]),m.useEffect(()=>{const P=S.current;if(E==="grid"||!P)return;const R=window.matchMedia("(pointer: coarse)").matches;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let G=[],ee=0;const se=()=>{const Ve=Math.min(P.clientWidth*.4,160);G.push(setTimeout(()=>P.scrollTo({left:Ve,behavior:"smooth"}),500)),G.push(setTimeout(()=>P.scrollTo({left:0,behavior:"smooth"}),1250)),R||(G.push(setTimeout(()=>B(!0),450)),G.push(setTimeout(()=>B(!1),1700)))},je=new IntersectionObserver(([Ve])=>{Ve.isIntersecting&&(je.disconnect(),se(),ee=setInterval(()=>{P.scrollLeft<=1&&se()},T))},{threshold:.35});return je.observe(P),()=>{je.disconnect(),clearInterval(ee),G.forEach(clearTimeout)}},[E,n,T]),m.useEffect(()=>{const P=S.current;if(E==="grid"||!P)return;let R=0,z=0,G=!1,ee=0,se=0;const je=()=>[...P.children].map(V=>V.offsetLeft+V.offsetWidth/2),Ve=(V,Ee)=>{let Ie=0,ae=1/0;return V.forEach((we,pt)=>{const Fn=Math.abs(we-Ee);Fn{G=!1;const V=je();if(!V.length)return;const Ee=P.scrollLeft+P.clientWidth/2,Ie=Ve(V,Ee);let ae=Ie;Ie===ee&&Math.abs(se)>4&&(ae=se>0?Math.min(ee+1,V.length-1):Math.max(ee-1,0));const we=P.scrollWidth-P.clientWidth,pt=Math.max(0,Math.min(V[ae]-P.clientWidth/2,we));P.scrollTo({left:pt,behavior:"smooth"}),clearTimeout(z),z=setTimeout(()=>{P.style.scrollSnapType=""},450)},M=V=>{if(Math.abs(V.deltaX)>Math.abs(V.deltaY))return;const Ee=P.scrollWidth-P.clientWidth;if(Ee<=1)return;const Ie=P.scrollLeft<=1,ae=P.scrollLeft>=Ee-1;V.deltaY<0&&Ie||V.deltaY>0&&ae||(V.preventDefault(),G||(G=!0,se=0,ee=Ve(je(),P.scrollLeft+P.clientWidth/2)),se+=V.deltaY,P.style.scrollSnapType="none",P.scrollLeft+=V.deltaY,clearTimeout(R),R=setTimeout(jt,150))};return P.addEventListener("wheel",M,{passive:!1}),()=>{P.removeEventListener("wheel",M),clearTimeout(R),clearTimeout(z)}},[E,n]),m.useEffect(()=>{const P=S.current,R=j.current,z=_.current;if(E==="grid"||!P||!R||!z)return;let G=0;const ee=()=>{G=0;const ae=P.scrollWidth-P.clientWidth;if(ae<=1){R.style.opacity="0",R.style.pointerEvents="none";return}R.style.opacity="1",R.style.pointerEvents="auto";const we=R.clientWidth,pt=Math.max(32,P.clientWidth/P.scrollWidth*we);z.style.width=`${pt}px`,z.style.transform=`translateX(${(P.scrollLeft/ae*(we-pt)).toFixed(1)}px)`},se=()=>{G||(G=requestAnimationFrame(ee))};ee(),P.addEventListener("scroll",se,{passive:!0});const je=new ResizeObserver(se);je.observe(P);let Ve=!1,jt=0;const M=ae=>{const we=R.getBoundingClientRect(),pt=z.clientWidth,Fn=Math.min(Math.max(ae-we.left-jt,0),we.width-pt);P.scrollLeft=Fn/(we.width-pt)*(P.scrollWidth-P.clientWidth)},V=ae=>{Ve=!0,R.setPointerCapture(ae.pointerId),P.style.scrollSnapType="none";const we=z.getBoundingClientRect();jt=ae.clientX>=we.left&&ae.clientX<=we.right?ae.clientX-we.left:z.clientWidth/2,ae.clientX>=we.left&&ae.clientX<=we.right||M(ae.clientX)},Ee=ae=>{Ve&&M(ae.clientX)},Ie=ae=>{var we;Ve&&(Ve=!1,(we=R.hasPointerCapture)!=null&&we.call(R,ae.pointerId)&&R.releasePointerCapture(ae.pointerId),P.style.scrollSnapType="")};return R.addEventListener("pointerdown",V),R.addEventListener("pointermove",Ee),R.addEventListener("pointerup",Ie),R.addEventListener("pointercancel",Ie),()=>{P.removeEventListener("scroll",se),je.disconnect(),cancelAnimationFrame(G),R.removeEventListener("pointerdown",V),R.removeEventListener("pointermove",Ee),R.removeEventListener("pointerup",Ie),R.removeEventListener("pointercancel",Ie)}},[E,n]),dr({title:n?l("modelPage.metaTitle")(n.model.brand_name,n.model.name):l("modelPage.metaTitleFallback"),description:n?l("modelPage.metaDescription")(n.model.brand_name,n.model.name):void 0,path:`/fahrzeuge/${e}/${t}`});const ne=Ue(n?`car_models.${n.model.id}.name`:"");if(o.vehicles.enabled&&!o.bypass)return a.jsx(vi,{message:o.vehicles.message});if(s)return s.status===404?a.jsx(Yd,{}):a.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-red-600 sm:px-6",children:_a(s,l)});if(!n)return a.jsx("p",{className:"mx-auto max-w-6xl px-4 py-12 text-neutral-500 sm:px-6",children:l("modelPage.loading")});const{model:W}=n,K=n.packages.map(P=>({...P,name:c.getValue("packages",P.id,"name","de",P.name),description:c.getValue("packages",P.id,"description",u,_n(P,"description",u)),tagline:_n(P,"tagline",u),price_text:c.getValue("packages",P.id,"price_text",u,_n(P,"price_text",u))})),q=new Map([...K].sort((P,R)=>P.total_price-R.total_price).map((P,R)=>[P.id,R])),oe=P=>{const R=P.tier_count??K.length,z=P.tier_rank??q.get(P.id)??0,G=R<=1?0:z/(R-1),ee=Math.round(G*(k.length-1));return{tier:k[ee],tierT:G}},N=P=>[...P.products.map(R=>({text:R.name_override||R.scraped_name||l("modelPage.productLoading"),fromDescription:!1})),...(P.description||"").split(`
-`).map(R=>R.trim()).filter(Boolean).map(R=>({text:R,fromDescription:!0}))],A=P=>`/kontakt?${new URLSearchParams({brand:W.brand_name,model:W.name,package:P.name,packageId:P.id,total:P.total_price,brandSlug:e,modelSlug:t}).toString()}`,L=`/kontakt?${new URLSearchParams({brand:W.brand_name,model:W.name}).toString()}`,F=l("modelPage.whatsappText")(W.brand_name,W.name);return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mx-auto max-w-6xl px-4 pt-12 sm:px-6",children:[o.vehicles.enabled&&o.bypass&&a.jsx(wi,{inline:!0}),a.jsxs("h1",{className:`text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl ${K.length?"mb-2":"mb-8"}`,children:[W.brand_name," ",a.jsx(le,{entity:"car_models",id:W.id,field:"name",lang:"de",value:W.name,style:ne})," – ",l("modelPage.titleSuffix")]}),K.length===0&&a.jsxs("div",{className:"pb-12",children:[a.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:l("modelPage.empty")}),a.jsx(U,{to:L,className:"mt-5 inline-block rounded-md bg-brand-500 px-5 py-3 text-sm font-semibold text-white shadow-sm hover:bg-brand-600",children:l("modelPage.customRequest")})]})]}),K.length>0&&a.jsx("section",{className:"py-10 sm:py-14",style:{fontFamily:"'Barlow', sans-serif"},children:a.jsxs("div",{className:E==="grid"?"mx-auto max-w-6xl px-4 sm:px-6":"relative mx-auto max-w-[1880px] px-4 sm:px-6",children:[a.jsx("div",{ref:E==="grid"?void 0:S,className:E==="grid"?"grid items-stretch gap-[18px]":"grid select-none gap-x-[18px] overflow-x-auto pb-3 snap-x snap-mandatory [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:E==="grid"?{gridTemplateColumns:`repeat(auto-fill, minmax(${g}px, 1fr))`,gridAutoRows:"1fr"}:{gridAutoFlow:"column",gridAutoColumns:`${g}px`,gridTemplateRows:"auto auto 1fr auto",minHeight:`${Number(v)+(E==="coverflow"?22:12)}px`,...E==="coverflow"?{perspective:"1200px",paddingLeft:`calc(50% - ${g/2}px)`,paddingRight:`calc(50% - ${g/2}px)`,paddingTop:"10px"}:null},children:K.map(P=>{const{tier:R,tierT:z}=oe(P);return a.jsx(DN,{pkg:P,tier:R,tierT:z,layout:E,bullets:N(P),formatPrice:H,contactUrl:A,priceNote:y,t:l},P.id)})}),E!=="grid"&&a.jsx("div",{className:`pointer-events-none absolute inset-x-0 top-1/2 z-[200] flex -translate-y-1/2 justify-center transition-opacity duration-300 ${C?"opacity-100":"opacity-0"}`,"aria-hidden":"true",children:a.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-white/10 bg-neutral-900/85 px-4 py-2 text-xs font-medium text-white shadow-lg backdrop-blur-sm",children:[a.jsx(zC,{className:"h-3.5 w-3.5 text-brand-400"}),a.jsx(dP,{className:"h-4 w-4 text-brand-400"}),a.jsx($C,{className:"h-3.5 w-3.5 text-brand-400"}),a.jsx("span",{children:l("modelPage.wheelHint")})]})}),E!=="grid"&&a.jsx("div",{ref:j,className:"relative mx-auto mt-5 h-2 w-56 max-w-full cursor-pointer rounded-full bg-neutral-900/10 transition-opacity duration-200 dark:bg-white/10",style:{touchAction:"none"},"aria-hidden":"true",children:a.jsx("div",{ref:_,className:"absolute left-0 top-0 h-full rounded-full bg-brand-500 shadow-[0_0_10px_rgba(107,166,38,0.7)]",style:{width:"48px"}})})]})}),K.length>0&&a.jsxs("div",{className:"mx-auto max-w-6xl px-4 pb-24 text-center sm:px-6 sm:pb-14",children:[a.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:l("modelPage.customHint")}),a.jsx(U,{to:L,className:"mt-2 inline-block text-sm font-semibold text-brand-600 underline hover:text-brand-500",children:l("modelPage.customRequest")})]}),(w||b)&&a.jsxs("div",{className:"fixed inset-x-0 bottom-0 z-20 flex gap-3 border-t border-neutral-200 bg-white/95 px-4 py-3 shadow-[0_-8px_24px_rgba(0,0,0,0.08)] backdrop-blur dark:border-neutral-800 dark:bg-neutral-950/95 sm:hidden",children:[w&&a.jsxs("a",{href:ai(w),onClick:()=>Nn("contact_call"),className:"flex flex-1 items-center justify-center gap-2 rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white",children:[a.jsx(or,{className:"h-4 w-4"}),l("nav.call")]}),b&&a.jsxs("a",{href:Hd(b,F),target:"_blank",rel:"noopener noreferrer",onClick:()=>Nn("contact_whatsapp"),className:"flex flex-1 items-center justify-center gap-2 rounded-md border border-neutral-300 px-4 py-2.5 text-sm font-semibold text-neutral-700 dark:border-neutral-700 dark:text-neutral-200",children:[a.jsx(Iy,{className:"h-4 w-4"}),l("nav.whatsapp")]})]})]})}const VN={car:Jo,caravan:RC,"car-front":LC,cog:YC,zap:VP,boxes:_C,"shield-alert":EP,video:AP},IN=m.lazy(()=>X(()=>import("./iconRegistry-B5nlmNdu.js"),__vite__mapDeps([0,1,2,3,4])));function FN({name:e,className:t="h-6 w-6",...n}){if(!e)return null;const r=VN[e];return r?a.jsx(r,{className:t,...n}):a.jsx(m.Suspense,{fallback:a.jsx("span",{className:`inline-block ${t}`,"aria-hidden":"true"}),children:a.jsx(IN,{name:e,className:t,...n})})}function ON(){const[e,t]=m.useState([]),n=Ta(),{t:r,language:s}=pe(),i=at();return m.useEffect(()=>{ie.get("/services").then(t).catch(()=>t([]))},[]),dr({title:r("leistungen.metaTitle"),description:r("leistungen.metaDescription"),path:"/leistungen"}),n.services.enabled&&!n.bypass?a.jsx(vi,{message:n.services.message}):a.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[n.services.enabled&&n.bypass&&a.jsx(wi,{inline:!0}),a.jsx(We,{k:"leistungen.title",as:"h1",className:"mb-2 block text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl"}),a.jsx(We,{k:"leistungen.intro",as:"p",className:"mb-10 block max-w-2xl text-neutral-600 dark:text-neutral-300"}),a.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:e.map(o=>({...o,title:_n(o,"title",s),description:_n(o,"description",s),cta_label:_n(o,"cta_label",s)})).map((o,l)=>a.jsxs(He,{index:l%3,shine:!0,className:"overflow-hidden rounded-xl border border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900",children:[a.jsxs("div",{className:"relative aspect-[4/3]",children:[o.image_path&&a.jsx("img",{src:o.image_path,alt:o.title,className:"h-full w-full object-cover",loading:"lazy"}),a.jsx("div",{className:"absolute -bottom-5 left-5 flex h-12 w-12 items-center justify-center rounded-full bg-brand-500 text-white shadow-lg ring-4 ring-white dark:ring-neutral-900",children:a.jsx(FN,{name:o.icon_name,className:"h-6 w-6"})})]}),a.jsxs("div",{className:"p-6 pt-8",children:[a.jsx(le,{entity:"services",id:o.id,field:"title",value:o.title,as:"h2",className:"mb-2 block font-semibold text-neutral-900 dark:text-white"}),a.jsx(le,{entity:"services",id:o.id,field:"description",value:o.description,as:"p",multiline:!0,className:"mb-3 block text-sm text-neutral-600 dark:text-neutral-300"}),a.jsxs(U,{to:o.cta_url||"/kontakt",className:"text-sm font-semibold text-brand-600 hover:underline dark:text-brand-400",children:[i.canEdit("services")||o.cta_label?a.jsx(le,{entity:"services",id:o.id,field:"cta_label",value:o.cta_label,placeholder:r("leistungen.contact")}):r("leistungen.contact")," ","→"]})]})]},o.id))}),a.jsxs("div",{className:"mt-12 rounded-xl border border-neutral-200 bg-neutral-50 p-8 text-center dark:border-neutral-800 dark:bg-neutral-900/40",children:[a.jsx(We,{k:"leistungen.notListedTitle",as:"h2",className:"mb-2 block text-xl font-bold text-neutral-900 dark:text-white"}),a.jsx(We,{k:"leistungen.notListedText",as:"p",className:"mb-5 block text-neutral-600 dark:text-neutral-300"}),a.jsx(U,{to:"/kontakt",className:"inline-block rounded-md bg-brand-500 px-6 py-3 text-sm font-semibold text-white hover:bg-brand-600",children:a.jsx(We,{k:"leistungen.contact"})})]})]})}function zN({name:e,description:t,className:n="",children:r}){const{consent:s,acceptAll:i,openSettings:o}=ss();return s.external?r:a.jsxs("div",{className:`flex flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-neutral-50 p-6 text-center dark:border-neutral-800 dark:bg-neutral-900/40 ${n}`,children:[a.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:t||`${e} wird erst nach deiner Zustimmung geladen, da dabei Daten an Google übertragen werden.`}),a.jsxs("div",{className:"flex flex-wrap justify-center gap-2",children:[a.jsx("button",{type:"button",onClick:i,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:"Laden erlauben"}),a.jsx("button",{type:"button",onClick:o,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Cookie-Einstellungen"})]})]})}const BN=e=>(e||"").replace(/[^\d+]/g,""),po={fontFamily:"'Michroma', sans-serif"};function $N({className:e}){return a.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:a.jsx("path",{d:"M12 2a10 10 0 0 0-8.6 15l-1.3 4.8 5-1.3A10 10 0 1 0 12 2zm0 2a8 8 0 1 1-4.2 14.8l-.3-.2-2.6.7.7-2.5-.2-.3A8 8 0 0 1 12 4zm4.3 9.9c-.2-.1-1.4-.7-1.6-.8s-.4-.1-.5.1l-.7.9c-.1.1-.3.2-.5.1a6.5 6.5 0 0 1-3.2-2.8c-.1-.2 0-.4.1-.5l.4-.5.2-.4v-.4l-.7-1.7c-.2-.4-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3-.7.7-.9 1.6-.6 2.7.5 1.7 1.6 3.1 3.4 4.2 1.7 1 2.5 1 3.4.9.5-.1 1.4-.6 1.6-1.1.2-.5.2-1 .1-1.1z"})})}function HN({path:e,className:t}){return a.jsx("svg",{className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:a.jsx("path",{d:e})})}const UN={premium:"M4 12v3M8 8v11M12 4v16M16 8v11M20 12v3",germany:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0 M12 2v2M12 20v2M2 12h2M20 12h2M5 5l1.5 1.5M17.5 17.5 19 19M19 5l-1.5 1.5M6.5 17.5 5 19",individual:"M6 3h12l4 6-10 12L2 9z M11 3 8 9l4 12 4-12-3-6M2 9h20",experts:"M20 6 9 17l-5-5"};function mp({formatted:e,color:t}){const[n,r]=e.split("€");return a.jsxs("span",{style:{...po,color:t},children:[n,a.jsx("span",{style:{fontFamily:"'Barlow', sans-serif"},children:"€"}),r]})}function Gi({icon:e,label:t,name:n,type:r="text",required:s,value:i,onChange:o,placeholder:l,autoComplete:u,inputMode:c}){return a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("label",{htmlFor:`kf-${n}`,className:"text-xs font-semibold uppercase tracking-[2px]",style:{color:"var(--kf-label)"},children:t}),a.jsxs("div",{className:"relative flex items-center",children:[a.jsx(e,{className:"pointer-events-none absolute left-[14px] h-[17px] w-[17px]",style:{color:"var(--kf-fieldicon)"}}),a.jsx("input",{id:`kf-${n}`,name:n,type:r,required:s,autoComplete:u,inputMode:c,value:i,onChange:o,placeholder:l,className:"w-full rounded-lg border py-3.5 pl-[42px] pr-4 text-[15px] outline-none transition-colors",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)",color:"var(--kf-text2)"}})]})]})}function WN(){const[e]=Ob(),{phone:t,whatsapp:n,contact_email:r,address_street:s,address_zip:i,address_city:o,business_hours:l,price_note:u,price_note_en:c}=It(),{t:d,language:f}=pe(),{consent:h}=ss(),g=[s,[i,o].filter(Boolean).join(" ")].filter(Boolean).join(", "),v=encodeURIComponent(g),w=`https://www.google.com/maps/dir/?api=1&destination=${v}`,b=Ky(l,d("footer.closed")),p=M=>new Intl.NumberFormat(f==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(M),[x,y]=m.useState(()=>({name:"",email:"",phone:"",vin:"",message:e.get("topic")||""})),[k,E]=m.useState("idle"),[T,S]=m.useState(""),[j,_]=m.useState([]),[C,B]=m.useState([]),H=m.useRef(Date.now()),ne=m.useRef(null),W=e.get("packageId"),K=e.get("brandSlug"),q=e.get("modelSlug"),[oe,N]=m.useState(e.get("total")?Number(e.get("total")):null),[A,L]=m.useState(null),F=f==="en"&&c||u;m.useEffect(()=>{!W||!K||!q||ie.get(`/models/${encodeURIComponent(K)}/${encodeURIComponent(q)}/packages`).then(M=>{var Ee;const V=(Ee=M==null?void 0:M.packages)==null?void 0:Ee.find(Ie=>String(Ie.id)===String(W));V&&(N(Number(V.total_price)),L(V.price_text||null))}).catch(()=>{})},[W,K,q]),m.useEffect(()=>{if(!W){_([]);return}ie.get(`/packages/${W}/upgrades`).then(_).catch(()=>_([]))},[W]);const P=M=>{B(V=>V.includes(M)?V.filter(Ee=>Ee!==M):[...V,M])},R=j.filter(M=>C.includes(M.id)).reduce((M,V)=>M+Number(V.price),0);dr({title:d("contactPage.metaTitle"),description:d("contactPage.metaDescription"),path:"/kontakt"});const z={brand:e.get("brand")||"",model:e.get("model")||"",package:e.get("package")||""},G=!!(z.brand&&z.model&&z.package),ee=!G&&!!(z.brand&&z.model),se=M=>y(V=>({...V,[M.target.name]:M.target.value})),je=async M=>{var V;M.preventDefault(),E("sending"),S("");try{await ie.post("/contact",{...x,website:((V=M.target.elements.website)==null?void 0:V.value)||"",fill_ms:Date.now()-H.current,brand_name:z.brand||null,model_name:z.model||null,package_name:z.package||null,product_name:e.get("product")||null,package_id:W||null,package_product_id:e.get("productId")||null,upgrade_ids:C}),E("sent"),y({name:"",email:"",phone:"",vin:"",message:""}),Nn("generate_lead",{package_name:z.package||void 0,value:oe||void 0,currency:"EUR"})}catch(Ee){S(_a(Ee,d)),E("idle")}};m.useEffect(()=>{k==="sent"&&ne.current&&(ne.current.scrollIntoView({behavior:"smooth",block:"center"}),ne.current.focus({preventScroll:!0}))},[k]);const Ve=G?d("contactPage.whatsappText")(z.brand,z.model,z.package):ee?d("modelPage.whatsappText")(z.brand,z.model):"",jt=[{key:"premium",title:d("contactPage.featurePremiumTitle"),sub:d("contactPage.featurePremiumSub")},{key:"germany",title:d("contactPage.featureGermanyTitle"),sub:d("contactPage.featureGermanySub")},{key:"individual",title:d("contactPage.featureIndividualTitle"),sub:d("contactPage.featureIndividualSub")},{key:"experts",title:d("contactPage.featureExpertsTitle"),sub:d("contactPage.featureExpertsSub")}];return a.jsx("div",{className:"kf-page kontakt-sektion relative w-full overflow-hidden px-4 pb-10 sm:px-10",style:{color:"var(--kf-text2)",fontFamily:"'Barlow', sans-serif"},children:a.jsxs("div",{className:"relative z-10 mx-auto max-w-[1280px] pt-10 sm:pt-14",children:[a.jsx("div",{className:"mb-3 text-[13px] font-semibold uppercase tracking-[6px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.heroEyebrow")}),a.jsxs("h1",{className:"text-[34px] leading-[1.08] sm:text-[46px] lg:text-[60px]",style:{...po,color:"var(--kf-text)"},children:[d("contactPage.heroTitlePre")," ",a.jsx("span",{style:{color:"var(--kf-accent2)"},children:d("contactPage.heroTitleAccent")})," ",d("contactPage.heroTitlePost")]}),a.jsx("p",{className:"mb-10 mt-5 max-w-[520px] text-lg leading-[1.55]",style:{color:"var(--kf-muted)"},children:d("contactPage.heroSubtitle")}),a.jsxs("div",{className:"grid grid-cols-1 items-start gap-10 min-[981px]:grid-cols-[minmax(0,1.35fr)_minmax(320px,1fr)]",children:[a.jsx("div",{children:a.jsxs("div",{className:"rounded-2xl border p-[22px] sm:p-10",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[G&&a.jsxs("div",{className:"mb-8 rounded-xl border px-6 py-[22px]",style:{background:"var(--kf-pkgbg)",borderColor:"var(--kf-pkgbrd)"},children:[a.jsxs("div",{className:"mb-3.5 flex items-center gap-2.5 text-xs font-bold uppercase tracking-[2px]",style:{color:"var(--kf-accent2)"},children:[a.jsx(pP,{className:"h-4 w-4"}),d("contactPage.packageBoxTitle")]}),a.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-5 gap-y-2 text-[15px]",children:[a.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.contextBrand")}),a.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:z.brand}),a.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.contextModel")}),a.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:z.model}),a.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.contextPackage")}),a.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:z.package})]}),a.jsxs("div",{className:"mt-3.5 flex items-baseline justify-between border-t pt-3.5",style:{borderColor:"var(--kf-pkgbrd)"},children:[a.jsx("span",{className:"text-[13px] font-semibold uppercase tracking-wide",style:{color:"var(--kf-muted)"},children:d("contactPage.packagePrice")}),a.jsx("span",{className:"text-xl",children:A||(oe!=null?a.jsx(mp,{formatted:p(oe),color:"var(--kf-text)"}):"—")})]}),F&&!A&&a.jsx("div",{className:"mt-1 text-right text-xs",style:{color:"var(--kf-muted)"},children:F})]}),ee&&a.jsxs("div",{className:"mb-8 flex items-center gap-3 rounded-xl border px-6 py-4 text-[15px]",style:{background:"var(--kf-pkgbg)",borderColor:"var(--kf-pkgbrd)"},children:[a.jsx(Jo,{className:"h-4 w-4",style:{color:"var(--kf-accent2)"}}),a.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.vehicleBoxTitle")}),a.jsxs("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:[z.brand," ",z.model]})]}),j.length>0&&a.jsxs("div",{className:"mb-8 rounded-xl border p-5",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)"},children:[a.jsx("div",{className:"mb-3 text-xs font-bold uppercase tracking-[2px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.optionalUpgrades")}),a.jsx("div",{className:"space-y-2",children:j.map(M=>a.jsxs("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg border p-3 text-sm",style:{borderColor:"var(--kf-fieldbrd)"},children:[a.jsx("input",{type:"checkbox",checked:C.includes(M.id),onChange:()=>P(M.id),className:"mt-0.5 h-4 w-4 rounded",style:{accentColor:"var(--kf-accent)"}}),a.jsxs("span",{className:"flex-1",children:[a.jsx("span",{className:"block font-semibold",style:{color:"var(--kf-text2)"},children:_n(M,"name",f)}),M.description&&a.jsx("span",{className:"block text-xs",style:{color:"var(--kf-muted)"},children:_n(M,"description",f)})]}),a.jsxs("span",{className:"font-semibold",style:{color:"var(--kf-accent2)"},children:["+",p(M.price)]})]},M.id))}),C.length>0&&oe!=null&&!A&&a.jsxs("div",{className:"mt-3 flex items-baseline justify-between border-t pt-3 text-sm",style:{borderColor:"var(--kf-pkgbrd)"},children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",style:{color:"var(--kf-muted)"},children:d("contactPage.totalWithUpgrades")}),a.jsx(mp,{formatted:p(oe+R),color:"var(--kf-text)"})]})]}),a.jsx("h2",{className:"mb-8 text-xl",style:{...po,color:"var(--kf-text)"},children:d("contactPage.formTitle")}),a.jsx("div",{role:"status","aria-live":"polite",children:k==="sent"&&a.jsxs("div",{ref:ne,tabIndex:-1,className:"rounded-[10px] border p-5 outline-none",style:{borderColor:"var(--kf-accent)",background:"var(--kf-accentsoft)"},children:[a.jsx("div",{className:"text-base font-bold",style:{color:"var(--kf-accent2)"},children:d("contactPage.sentTitle")}),a.jsx("div",{className:"mt-1 text-sm",style:{color:"var(--kf-muted)"},children:d("contactPage.sentText")}),a.jsx("button",{type:"button",onClick:()=>{H.current=Date.now(),E("idle")},className:"mt-4 text-sm font-semibold underline",style:{color:"var(--kf-text2)"},children:d("contactPage.sendAnother")})]})}),k!=="sent"&&a.jsxs("form",{onSubmit:je,noValidate:!1,children:[a.jsxs("div",{"aria-hidden":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"},children:[a.jsx("label",{htmlFor:"kf-website",children:"Website"}),a.jsx("input",{id:"kf-website",name:"website",type:"text",tabIndex:-1,autoComplete:"off",defaultValue:""})]}),a.jsxs("div",{className:"grid grid-cols-1 gap-6 min-[641px]:grid-cols-2",children:[a.jsx(Gi,{icon:MP,label:d("contactPage.nameLabel"),name:"name",autoComplete:"name",required:!0,value:x.name,onChange:se,placeholder:d("contactPage.namePlaceholder")}),a.jsx(Gi,{icon:oc,label:d("contactPage.emailLabel"),name:"email",type:"email",autoComplete:"email",required:!0,value:x.email,onChange:se,placeholder:d("contactPage.emailPlaceholder")}),a.jsx(Gi,{icon:or,label:d("contactPage.phoneLabel"),name:"phone",type:"tel",inputMode:"tel",autoComplete:"tel",value:x.phone,onChange:se,placeholder:d("contactPage.phonePlaceholder")}),a.jsx(Gi,{icon:Jo,label:d("contactPage.vinLabel"),name:"vin",value:x.vin,onChange:se,placeholder:d("contactPage.vinPlaceholder")})]}),a.jsxs("div",{className:"mt-6 flex flex-col gap-2",children:[a.jsx("label",{htmlFor:"kf-message",className:"text-xs font-semibold uppercase tracking-[2px]",style:{color:"var(--kf-label)"},children:d("contactPage.messageLabel")}),a.jsx("textarea",{id:"kf-message",name:"message",rows:5,value:x.message,onChange:se,placeholder:d("contactPage.messagePlaceholder"),className:"w-full resize-y rounded-lg border px-4 py-3.5 text-[15px] outline-none",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)",color:"var(--kf-text2)"}})]}),a.jsx("div",{role:"alert","aria-live":"assertive",children:T&&a.jsx("p",{className:"mt-4 text-sm text-red-600 dark:text-red-400",children:T})}),a.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-5",children:[a.jsxs("button",{type:"submit",disabled:k==="sending",className:"inline-flex items-center gap-3 rounded-lg px-8 py-4 text-sm font-bold uppercase tracking-[3px] transition-[filter,box-shadow] hover:brightness-110 disabled:opacity-60",style:{background:"var(--kf-accent)",color:"var(--kf-btntext)",boxShadow:"0 10px 24px rgba(150,200,20,0.32)"},children:[a.jsx(SP,{className:"h-[18px] w-[18px]"}),d(k==="sending"?"contactPage.sending":"contactPage.submit")]}),a.jsx("div",{className:"text-[13px]",style:{color:"var(--kf-label)"},children:d("contactPage.requiredHint")})]}),a.jsxs("p",{className:"mt-5 text-[13px] leading-relaxed",style:{color:"var(--kf-muted)"},children:[d("contactPage.privacyPre"),a.jsx(U,{to:"/datenschutz",className:"underline",style:{color:"var(--kf-text2)"},children:d("contactPage.privacyLink")}),d("contactPage.privacyPost")]})]})]})}),a.jsxs("div",{className:"flex flex-col gap-6",children:[a.jsxs("div",{className:"relative overflow-hidden rounded-2xl border px-[22px] py-[26px] sm:px-8 sm:py-[34px]",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[a.jsx("div",{className:"pointer-events-none absolute -right-[60px] -top-[60px] h-[190px] w-[190px] rounded-full border border-dashed",style:{borderColor:"var(--kf-pkgbrd)"}}),a.jsx("h2",{className:"mb-7 text-[17px]",style:{...po,color:"var(--kf-text)"},children:d("contactPage.cardTitle")}),a.jsxs("div",{className:"flex flex-col gap-5",children:[a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:a.jsx(or,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),a.jsxs("div",{children:[a.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.phone")}),a.jsx("a",{href:`tel:${BN(t)}`,onClick:()=>Nn("contact_call"),className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:t})]})]}),a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:a.jsx(oc,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),a.jsxs("div",{children:[a.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.email")}),a.jsx("a",{href:`mailto:${r}`,className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:r})]})]}),a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:a.jsx(Vy,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),a.jsxs("div",{children:[a.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.address")}),a.jsxs("div",{className:"text-base font-semibold leading-[1.4]",style:{color:"var(--kf-text2)"},children:[s,a.jsx("br",{}),[i,o].filter(Boolean).join(" ")]})]})]}),n&&a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:a.jsx($N,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),a.jsxs("div",{children:[a.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("nav.whatsapp")}),a.jsx("a",{href:Hd(n,Ve),target:"_blank",rel:"noopener noreferrer",onClick:()=>Nn("contact_whatsapp"),className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:n})]})]})]}),a.jsxs("div",{className:"mt-7 border-t pt-6",style:{borderColor:"var(--kf-divider)"},children:[a.jsx("div",{className:"mb-3 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.hours")}),a.jsx("div",{className:"grid grid-cols-[auto_1fr] gap-x-6 gap-y-2 text-[15px]",children:b.map(M=>a.jsxs("span",{style:{display:"contents"},children:[a.jsx("span",{style:{color:"var(--kf-label)"},children:M.days}),a.jsx("span",{children:M.label})]},M.key))})]})]}),a.jsxs("div",{className:"relative overflow-hidden rounded-2xl border",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[h.external&&a.jsxs("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"absolute left-3.5 top-3.5 z-10 inline-flex items-center gap-2 rounded-lg border px-3.5 py-2 text-[13px] font-semibold hover:border-[var(--kf-accent)]",style:{background:"var(--kf-pill)",borderColor:"var(--kf-pillbrd)",color:"var(--kf-text2)",boxShadow:"var(--kf-shadow2)"},children:[d("contactPage.mapOpenChip"),a.jsx(ZC,{className:"h-3.5 w-3.5",style:{color:"var(--kf-accent2)"}})]}),a.jsx(zN,{name:d("contactPage.mapEmbedName"),className:"h-[210px] w-full",children:a.jsx("div",{className:"h-[210px] overflow-hidden",children:a.jsx("iframe",{title:d("contactPage.mapIframeTitle"),src:`https://www.google.com/maps?q=${v}&output=embed`,width:"100%",height:"290",style:{border:0,display:"block",marginTop:"-60px"},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})}),a.jsxs("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2.5 border-t px-4 py-4 text-[13px] font-bold uppercase tracking-[3px] hover:bg-[var(--kf-accentsoft)]",style:{borderColor:"var(--kf-divider)",color:"var(--kf-accent2)"},children:[d("contactPage.routePlan")," →"]})]})]})]}),a.jsx("div",{className:"mt-10 grid grid-cols-1 overflow-hidden rounded-2xl border min-[641px]:grid-cols-2 min-[901px]:grid-cols-4",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow2)"},children:jt.map(M=>a.jsxs("div",{className:"flex items-center gap-4 border-b p-6 last:border-b-0 min-[641px]:border-b-0 min-[641px]:border-r min-[641px]:last:border-r-0",style:{borderColor:"var(--kf-divider)"},children:[a.jsx("div",{className:"flex h-[46px] w-[46px] flex-shrink-0 items-center justify-center rounded-full border-[1.5px]",style:{borderColor:"var(--kf-pkgbrd)",color:"var(--kf-accent2)"},children:a.jsx(HN,{path:UN[M.key],className:"h-[22px] w-[22px]"})}),a.jsxs("div",{children:[a.jsx("div",{className:"text-[15px] font-bold",style:{color:"var(--kf-text)"},children:M.title}),a.jsx("div",{className:"mt-0.5 text-[13px]",style:{color:"var(--kf-muted)"},children:M.sub})]})]},M.key))})]})})}const Ml="hifi-chunk-reload",Q=e=>m.lazy(()=>e().then(t=>{try{sessionStorage.removeItem(Ml)}catch{}return t},t=>{let n=!0;try{n=!!sessionStorage.getItem(Ml),sessionStorage.setItem(Ml,"1")}catch{}if(n)throw t;return window.location.reload(),new Promise(()=>{})})),GN=Q(()=>X(()=>import("./GalleryOverview-B79TQ8ce.js"),[])),KN=Q(()=>X(()=>import("./GalleryBrandPage-Ds2PJMaS.js"),[])),qN=Q(()=>X(()=>import("./GalleryProjectPage-cPDbShnw.js"),[])),YN=Q(()=>X(()=>import("./DownloadsPage-BLst4c-p.js"),__vite__mapDeps([5,6,1]))),XN=Q(()=>X(()=>import("./Impressum-BcYT0HIo.js"),__vite__mapDeps([7,8]))),ZN=Q(()=>X(()=>import("./Datenschutz-Q_MacwGA.js"),__vite__mapDeps([9,8]))),QN=Q(()=>X(()=>import("./AGB-CaHRKcOb.js"),__vite__mapDeps([10,8]))),JN=Q(()=>X(()=>import("./SetupWizard-BQmYQeMI.js"),[])),e4=Q(()=>X(()=>import("./Login-CtyQdW_H.js"),[])),t4=Q(()=>X(()=>import("./Dashboard-7_CH1XOt.js"),__vite__mapDeps([11,12,13]))),n4=Q(()=>X(()=>import("./Brands-DT4cKYHY.js"),__vite__mapDeps([14,15,16,17,18,19,3]))),r4=Q(()=>X(()=>import("./Models-cJVztP8m.js"),__vite__mapDeps([20,15,16,17,18,19,3,21]))),s4=Q(()=>X(()=>import("./GalleryBrands-DTIwD_Dw.js"),__vite__mapDeps([22,15,16,18,19,3,21]))),i4=Q(()=>X(()=>import("./GalleryProjects-CXCOXFl8.js"),__vite__mapDeps([23,15,16,18,19,3,21]))),o4=Q(()=>X(()=>import("./GalleryPhotos-DcLBcwrS.js"),__vite__mapDeps([24,18,19,3,21,16]))),a4=Q(()=>X(()=>import("./Packages-Qhz_q4KJ.js"),__vite__mapDeps([25,17,21,19,4,3,2]))),l4=Q(()=>X(()=>import("./Services-Y3-jTFYy.js"),__vite__mapDeps([26,18,19,3,21,15,16,0,1,2,4]))),u4=Q(()=>X(()=>import("./Faqs-XZAy4Qhr.js"),__vite__mapDeps([27,18,19,3,21]))),c4=Q(()=>X(()=>import("./Partners-gT0HmSOb.js"),__vite__mapDeps([28,15,16,18,19,3,21]))),d4=Q(()=>X(()=>import("./Downloads-DZAlZIUI.js"),__vite__mapDeps([29,6,18,19,3,21,2]))),f4=Q(()=>X(()=>import("./HomeSections-ZA3Lw7hJ.js"),__vite__mapDeps([30,31,17,32]))),h4=Q(()=>X(()=>import("./ContactRequests-BC1CK4Mp.js"),__vite__mapDeps([33,13]))),m4=Q(()=>X(()=>import("./AccountSettings-CYJZRLnt.js"),[])),p4=Q(()=>X(()=>import("./AdminUsers-DpMLkktK.js"),[])),g4=Q(()=>X(()=>import("./PermissionGroups-RYkt4uTw.js"),[])),x4=Q(()=>X(()=>import("./SettingsLayout-BpB6khtG.js"),[])),Ll=Q(()=>X(()=>import("./WebsiteSettings-LkaVnoOm.js"),__vite__mapDeps([34,15,16,32]))),y4=Q(()=>X(()=>import("./LegalSettings-DOcxDZNv.js"),__vite__mapDeps([35,31]))),v4=Q(()=>X(()=>import("./UpdateSettings-JQfCGU1a.js"),[])),w4=Q(()=>X(()=>import("./EmailSettings-Co9DiTkD.js"),__vite__mapDeps([36,31]))),b4=Q(()=>X(()=>import("./DatabaseSettings-561PD_Cp.js"),__vite__mapDeps([37,12]))),k4=Q(()=>X(()=>import("./ExportImportSettings-C7wRrxdF.js"),[])),S4=Q(()=>X(()=>import("./MaintenanceSettings-C-n0I6ae.js"),[])),j4=Q(()=>X(()=>import("./CountdownSettings-CeR3sHjT.js"),[])),E4=Q(()=>X(()=>import("./ResetSettings-CCa36SGd.js"),[])),C4=a.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});function P4(){const{packageId:e}=ad();return a.jsx(sr,{to:`/admin/packages?paket=${e}`,replace:!0})}function T4(){return a.jsxs(Vj,{reducedMotion:"user",children:[a.jsx(fC,{}),a.jsx(pC,{}),a.jsx(bC,{children:a.jsx(m.Suspense,{fallback:C4,children:a.jsxs(jb,{children:[a.jsx($,{path:"/setup",element:a.jsx(JN,{})}),a.jsxs($,{element:a.jsx($T,{}),children:[a.jsx($,{path:"/",element:a.jsx(mN,{})}),a.jsx($,{path:"/fahrzeuge",element:a.jsx(vN,{})}),a.jsx($,{path:"/fahrzeuge/:brandSlug",element:a.jsx(wN,{})}),a.jsx($,{path:"/fahrzeuge/:brandSlug/:modelSlug",element:a.jsx(RN,{})}),a.jsx($,{path:"/galerie",element:a.jsx(GN,{})}),a.jsx($,{path:"/galerie/:brandSlug",element:a.jsx(KN,{})}),a.jsx($,{path:"/galerie/:brandSlug/:projectSlug",element:a.jsx(qN,{})}),a.jsx($,{path:"/leistungen",element:a.jsx(ON,{})}),a.jsx($,{path:"/kontakt",element:a.jsx(WN,{})}),a.jsx($,{path:"/downloads",element:a.jsx(YN,{})}),a.jsx($,{path:"/impressum",element:a.jsx(XN,{})}),a.jsx($,{path:"/datenschutz",element:a.jsx(ZN,{})}),a.jsx($,{path:"/agb",element:a.jsx(QN,{})}),a.jsx($,{path:"*",element:a.jsx(Yd,{})})]}),a.jsx($,{path:"/admin/login",element:a.jsx(e4,{})}),a.jsx($,{path:"/admin",element:a.jsx(YT,{}),children:a.jsxs($,{element:a.jsx(qT,{}),children:[a.jsx($,{index:!0,element:a.jsx(t4,{})}),a.jsx($,{path:"account",element:a.jsx(m4,{})}),a.jsx($,{path:"brands",element:a.jsx(ce,{permission:"brands.manage",children:a.jsx(n4,{})})}),a.jsx($,{path:"models",element:a.jsx(ce,{permission:"models.manage",children:a.jsx(r4,{})})}),a.jsx($,{path:"gallery-brands",element:a.jsx(ce,{permission:"gallery.manage",children:a.jsx(s4,{})})}),a.jsx($,{path:"gallery-projects",element:a.jsx(ce,{permission:"gallery.manage",children:a.jsx(i4,{})})}),a.jsx($,{path:"gallery-projects/:projectId/photos",element:a.jsx(ce,{permission:"gallery.manage",children:a.jsx(o4,{})})}),a.jsx($,{path:"packages",element:a.jsx(ce,{permission:"packages.manage",children:a.jsx(a4,{})})}),a.jsx($,{path:"packages/:packageId/*",element:a.jsx(P4,{})}),a.jsx($,{path:"services",element:a.jsx(ce,{permission:"services.manage",children:a.jsx(l4,{})})}),a.jsx($,{path:"faqs",element:a.jsx(ce,{permission:"content.manage",children:a.jsx(u4,{})})}),a.jsx($,{path:"partners",element:a.jsx(ce,{permission:"content.manage",children:a.jsx(c4,{})})}),a.jsx($,{path:"downloads",element:a.jsx(ce,{permission:"downloads.manage",children:a.jsx(d4,{})})}),a.jsx($,{path:"home-sections",element:a.jsx(ce,{permission:"content.manage",children:a.jsx(f4,{})})}),a.jsx($,{path:"contact-requests",element:a.jsx(ce,{permission:"contact.manage",children:a.jsx(h4,{})})}),a.jsx($,{path:"users",element:a.jsx(ce,{permission:"users.manage",children:a.jsx(p4,{})})}),a.jsx($,{path:"permission-groups",element:a.jsx(ce,{permission:"permission_groups.manage",children:a.jsx(g4,{})})}),a.jsxs($,{path:"settings",element:a.jsx(ce,{permission:["settings.manage","system.admin","system.update"],children:a.jsx(x4,{})}),children:[a.jsx($,{index:!0,element:a.jsx(sr,{to:"company",replace:!0})}),a.jsx($,{path:"website",element:a.jsx(sr,{to:"../company",replace:!0})}),a.jsx($,{path:"company",element:a.jsx(ce,{permission:"settings.manage",children:a.jsx(Ll,{section:"company"})})}),a.jsx($,{path:"design",element:a.jsx(ce,{permission:"settings.manage",children:a.jsx(Ll,{section:"design"})})}),a.jsx($,{path:"legal",element:a.jsx(ce,{permission:"settings.manage",children:a.jsx(y4,{})})}),a.jsx($,{path:"maintenance",element:a.jsx(ce,{permission:"settings.manage",children:a.jsx(S4,{})})}),a.jsx($,{path:"countdown",element:a.jsx(ce,{permission:"settings.manage",children:a.jsx(j4,{})})}),a.jsx($,{path:"google",element:a.jsx(ce,{permission:"system.admin",children:a.jsx(Ll,{section:"google"})})}),a.jsx($,{path:"email",element:a.jsx(ce,{permission:"system.admin",children:a.jsx(w4,{})})}),a.jsx($,{path:"database",element:a.jsx(ce,{permission:"system.admin",children:a.jsx(b4,{})})}),a.jsx($,{path:"export-import",element:a.jsx(ce,{permission:"system.admin",children:a.jsx(k4,{})})}),a.jsx($,{path:"update",element:a.jsx(ce,{permission:"system.update",children:a.jsx(v4,{})})}),a.jsx($,{path:"reset",element:a.jsx(ce,{permission:"system.admin",children:a.jsx(E4,{})})})]})]})})]})})})]})}Al.createRoot(document.getElementById("root")).render(a.jsx(Cp.StrictMode,{children:a.jsx(Ab,{basename:"/".replace(/\/$/,"")||"/",children:a.jsx(FP,{children:a.jsx($P,{children:a.jsx(JP,{children:a.jsx(T4,{})})})})})}));export{rP as $,gC as A,et as B,GC as C,FN as D,We as E,Zy as F,L4 as G,pp as H,Z as I,TC as J,_C as K,U as L,Jo as M,Yd as N,ld as O,Fy as P,LC as Q,He as R,Jy as S,RC as T,Ay as U,zC as V,UC as W,Dy as X,YC as Y,JC as Z,tP as _,It as a,iP as a0,Ry as a1,oc as a2,Vy as a3,Iy as a4,dP as a5,hP as a6,pP as a7,or as a8,vP as a9,bP as aa,SP as ab,EP as ac,PP as ad,NP as ae,MP as af,AP as ag,yi as ah,VP as ai,CC as aj,M4 as ak,EC as al,N4 as am,dr as b,ie as c,le as d,_a as e,ip as f,ad as g,rd as h,mr as i,a as j,cr as k,ep as l,es as m,sr as n,ea as o,D4 as p,R4 as q,m as r,V4 as s,Ob as t,pe as u,FC as v,$C as w,ZC as x,Cp as y,A4 as z};
+`).map(R=>R.trim()).filter(Boolean).map(R=>({text:R,fromDescription:!0}))],A=P=>`/kontakt?${new URLSearchParams({brand:W.brand_name,model:W.name,package:P.name,packageId:P.id,total:P.total_price,brandSlug:e,modelSlug:t}).toString()}`,L=`/kontakt?${new URLSearchParams({brand:W.brand_name,model:W.name}).toString()}`,F=l("modelPage.whatsappText")(W.brand_name,W.name);return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"mx-auto max-w-6xl px-4 pt-12 sm:px-6",children:[o.vehicles.enabled&&o.bypass&&a.jsx(wi,{inline:!0}),a.jsxs("h1",{className:`text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl ${K.length?"mb-2":"mb-8"}`,children:[W.brand_name," ",a.jsx(le,{entity:"car_models",id:W.id,field:"name",lang:"de",value:W.name,style:ne})," – ",l("modelPage.titleSuffix")]}),K.length===0&&a.jsxs("div",{className:"pb-12",children:[a.jsx("p",{className:"text-neutral-500 dark:text-neutral-400",children:l("modelPage.empty")}),a.jsx(U,{to:L,className:"mt-5 inline-block rounded-md bg-brand-500 px-5 py-3 text-sm font-semibold text-white shadow-sm hover:bg-brand-600",children:l("modelPage.customRequest")})]})]}),K.length>0&&a.jsx("section",{className:"py-10 sm:py-14",style:{fontFamily:"'Barlow', sans-serif"},children:a.jsxs("div",{className:E==="grid"?"mx-auto max-w-6xl px-4 sm:px-6":"relative mx-auto max-w-[1880px] px-4 sm:px-6",children:[a.jsx("div",{ref:E==="grid"?void 0:S,className:E==="grid"?"grid items-stretch gap-[18px]":"grid select-none gap-x-[18px] overflow-x-auto pb-3 snap-x snap-mandatory [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:E==="grid"?{gridTemplateColumns:`repeat(auto-fill, minmax(${g}px, 1fr))`,gridAutoRows:"1fr"}:{gridAutoFlow:"column",gridAutoColumns:`${g}px`,gridTemplateRows:"auto auto 1fr auto",minHeight:`${Number(v)+(E==="coverflow"?22:12)}px`,...E==="coverflow"?{perspective:"1200px",paddingLeft:`calc(50% - ${g/2}px)`,paddingRight:`calc(50% - ${g/2}px)`,paddingTop:"10px"}:null},children:K.map(P=>{const{tier:R,tierT:z}=oe(P);return a.jsx(DN,{pkg:P,tier:R,tierT:z,layout:E,bullets:N(P),formatPrice:H,contactUrl:A,priceNote:y,t:l},P.id)})}),E!=="grid"&&a.jsx("div",{className:`pointer-events-none absolute inset-x-0 top-1/2 z-[200] flex -translate-y-1/2 justify-center transition-opacity duration-300 ${C?"opacity-100":"opacity-0"}`,"aria-hidden":"true",children:a.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-white/10 bg-neutral-900/85 px-4 py-2 text-xs font-medium text-white shadow-lg backdrop-blur-sm",children:[a.jsx(zC,{className:"h-3.5 w-3.5 text-brand-400"}),a.jsx(dP,{className:"h-4 w-4 text-brand-400"}),a.jsx($C,{className:"h-3.5 w-3.5 text-brand-400"}),a.jsx("span",{children:l("modelPage.wheelHint")})]})}),E!=="grid"&&a.jsx("div",{ref:j,className:"relative mx-auto mt-5 h-2 w-56 max-w-full cursor-pointer rounded-full bg-neutral-900/10 transition-opacity duration-200 dark:bg-white/10",style:{touchAction:"none"},"aria-hidden":"true",children:a.jsx("div",{ref:_,className:"absolute left-0 top-0 h-full rounded-full bg-brand-500 shadow-[0_0_10px_rgba(107,166,38,0.7)]",style:{width:"48px"}})})]})}),K.length>0&&a.jsxs("div",{className:"mx-auto max-w-6xl px-4 pb-24 text-center sm:px-6 sm:pb-14",children:[a.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:l("modelPage.customHint")}),a.jsx(U,{to:L,className:"mt-2 inline-block text-sm font-semibold text-brand-600 underline hover:text-brand-500",children:l("modelPage.customRequest")})]}),(w||b)&&a.jsxs("div",{className:"fixed inset-x-0 bottom-0 z-20 flex gap-3 border-t border-neutral-200 bg-white/95 px-4 py-3 shadow-[0_-8px_24px_rgba(0,0,0,0.08)] backdrop-blur dark:border-neutral-800 dark:bg-neutral-950/95 sm:hidden",children:[w&&a.jsxs("a",{href:ai(w),onClick:()=>Nn("contact_call"),className:"flex flex-1 items-center justify-center gap-2 rounded-md bg-brand-500 px-4 py-2.5 text-sm font-semibold text-white",children:[a.jsx(or,{className:"h-4 w-4"}),l("nav.call")]}),b&&a.jsxs("a",{href:Hd(b,F),target:"_blank",rel:"noopener noreferrer",onClick:()=>Nn("contact_whatsapp"),className:"flex flex-1 items-center justify-center gap-2 rounded-md border border-neutral-300 px-4 py-2.5 text-sm font-semibold text-neutral-700 dark:border-neutral-700 dark:text-neutral-200",children:[a.jsx(Iy,{className:"h-4 w-4"}),l("nav.whatsapp")]})]})]})}const VN={car:Jo,caravan:RC,"car-front":LC,cog:YC,zap:VP,boxes:_C,"shield-alert":EP,video:AP},IN=m.lazy(()=>X(()=>import("./iconRegistry-D2FmHLLX.js"),__vite__mapDeps([0,1,2,3,4])));function FN({name:e,className:t="h-6 w-6",...n}){if(!e)return null;const r=VN[e];return r?a.jsx(r,{className:t,...n}):a.jsx(m.Suspense,{fallback:a.jsx("span",{className:`inline-block ${t}`,"aria-hidden":"true"}),children:a.jsx(IN,{name:e,className:t,...n})})}function ON(){const[e,t]=m.useState([]),n=Ta(),{t:r,language:s}=pe(),i=at();return m.useEffect(()=>{ie.get("/services").then(t).catch(()=>t([]))},[]),dr({title:r("leistungen.metaTitle"),description:r("leistungen.metaDescription"),path:"/leistungen"}),n.services.enabled&&!n.bypass?a.jsx(vi,{message:n.services.message}):a.jsxs("div",{className:"mx-auto max-w-6xl px-4 py-12 sm:px-6",children:[n.services.enabled&&n.bypass&&a.jsx(wi,{inline:!0}),a.jsx(We,{k:"leistungen.title",as:"h1",className:"mb-2 block text-2xl font-bold text-neutral-900 dark:text-white sm:text-3xl"}),a.jsx(We,{k:"leistungen.intro",as:"p",className:"mb-10 block max-w-2xl text-neutral-600 dark:text-neutral-300"}),a.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3",children:e.map(o=>({...o,title:_n(o,"title",s),description:_n(o,"description",s),cta_label:_n(o,"cta_label",s)})).map((o,l)=>a.jsxs(He,{index:l%3,shine:!0,className:"overflow-hidden rounded-xl border border-neutral-200 bg-white dark:border-neutral-800 dark:bg-neutral-900",children:[a.jsxs("div",{className:"relative aspect-[4/3]",children:[o.image_path&&a.jsx("img",{src:o.image_path,alt:o.title,className:"h-full w-full object-cover",loading:"lazy"}),a.jsx("div",{className:"absolute -bottom-5 left-5 flex h-12 w-12 items-center justify-center rounded-full bg-brand-500 text-white shadow-lg ring-4 ring-white dark:ring-neutral-900",children:a.jsx(FN,{name:o.icon_name,className:"h-6 w-6"})})]}),a.jsxs("div",{className:"p-6 pt-8",children:[a.jsx(le,{entity:"services",id:o.id,field:"title",value:o.title,as:"h2",className:"mb-2 block font-semibold text-neutral-900 dark:text-white"}),a.jsx(le,{entity:"services",id:o.id,field:"description",value:o.description,as:"p",multiline:!0,className:"mb-3 block text-sm text-neutral-600 dark:text-neutral-300"}),a.jsxs(U,{to:o.cta_url||"/kontakt",className:"text-sm font-semibold text-brand-600 hover:underline dark:text-brand-400",children:[i.canEdit("services")||o.cta_label?a.jsx(le,{entity:"services",id:o.id,field:"cta_label",value:o.cta_label,placeholder:r("leistungen.contact")}):r("leistungen.contact")," ","→"]})]})]},o.id))}),a.jsxs("div",{className:"mt-12 rounded-xl border border-neutral-200 bg-neutral-50 p-8 text-center dark:border-neutral-800 dark:bg-neutral-900/40",children:[a.jsx(We,{k:"leistungen.notListedTitle",as:"h2",className:"mb-2 block text-xl font-bold text-neutral-900 dark:text-white"}),a.jsx(We,{k:"leistungen.notListedText",as:"p",className:"mb-5 block text-neutral-600 dark:text-neutral-300"}),a.jsx(U,{to:"/kontakt",className:"inline-block rounded-md bg-brand-500 px-6 py-3 text-sm font-semibold text-white hover:bg-brand-600",children:a.jsx(We,{k:"leistungen.contact"})})]})]})}function zN({name:e,description:t,className:n="",children:r}){const{consent:s,acceptAll:i,openSettings:o}=ss();return s.external?r:a.jsxs("div",{className:`flex flex-col items-center justify-center gap-3 rounded-xl border border-neutral-200 bg-neutral-50 p-6 text-center dark:border-neutral-800 dark:bg-neutral-900/40 ${n}`,children:[a.jsx("p",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:t||`${e} wird erst nach deiner Zustimmung geladen, da dabei Daten an Google übertragen werden.`}),a.jsxs("div",{className:"flex flex-wrap justify-center gap-2",children:[a.jsx("button",{type:"button",onClick:i,className:"rounded-md bg-brand-500 px-4 py-2 text-sm font-semibold text-white hover:bg-brand-600",children:"Laden erlauben"}),a.jsx("button",{type:"button",onClick:o,className:"rounded-md border border-neutral-300 px-4 py-2 text-sm dark:border-neutral-700",children:"Cookie-Einstellungen"})]})]})}const BN=e=>(e||"").replace(/[^\d+]/g,""),po={fontFamily:"'Michroma', sans-serif"};function $N({className:e}){return a.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:a.jsx("path",{d:"M12 2a10 10 0 0 0-8.6 15l-1.3 4.8 5-1.3A10 10 0 1 0 12 2zm0 2a8 8 0 1 1-4.2 14.8l-.3-.2-2.6.7.7-2.5-.2-.3A8 8 0 0 1 12 4zm4.3 9.9c-.2-.1-1.4-.7-1.6-.8s-.4-.1-.5.1l-.7.9c-.1.1-.3.2-.5.1a6.5 6.5 0 0 1-3.2-2.8c-.1-.2 0-.4.1-.5l.4-.5.2-.4v-.4l-.7-1.7c-.2-.4-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3-.7.7-.9 1.6-.6 2.7.5 1.7 1.6 3.1 3.4 4.2 1.7 1 2.5 1 3.4.9.5-.1 1.4-.6 1.6-1.1.2-.5.2-1 .1-1.1z"})})}function HN({path:e,className:t}){return a.jsx("svg",{className:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:a.jsx("path",{d:e})})}const UN={premium:"M4 12v3M8 8v11M12 4v16M16 8v11M20 12v3",germany:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0 M12 2v2M12 20v2M2 12h2M20 12h2M5 5l1.5 1.5M17.5 17.5 19 19M19 5l-1.5 1.5M6.5 17.5 5 19",individual:"M6 3h12l4 6-10 12L2 9z M11 3 8 9l4 12 4-12-3-6M2 9h20",experts:"M20 6 9 17l-5-5"};function mp({formatted:e,color:t}){const[n,r]=e.split("€");return a.jsxs("span",{style:{...po,color:t},children:[n,a.jsx("span",{style:{fontFamily:"'Barlow', sans-serif"},children:"€"}),r]})}function Gi({icon:e,label:t,name:n,type:r="text",required:s,value:i,onChange:o,placeholder:l,autoComplete:u,inputMode:c}){return a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("label",{htmlFor:`kf-${n}`,className:"text-xs font-semibold uppercase tracking-[2px]",style:{color:"var(--kf-label)"},children:t}),a.jsxs("div",{className:"relative flex items-center",children:[a.jsx(e,{className:"pointer-events-none absolute left-[14px] h-[17px] w-[17px]",style:{color:"var(--kf-fieldicon)"}}),a.jsx("input",{id:`kf-${n}`,name:n,type:r,required:s,autoComplete:u,inputMode:c,value:i,onChange:o,placeholder:l,className:"w-full rounded-lg border py-3.5 pl-[42px] pr-4 text-[15px] outline-none transition-colors",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)",color:"var(--kf-text2)"}})]})]})}function WN(){const[e]=Ob(),{phone:t,whatsapp:n,contact_email:r,address_street:s,address_zip:i,address_city:o,business_hours:l,price_note:u,price_note_en:c}=It(),{t:d,language:f}=pe(),{consent:h}=ss(),g=[s,[i,o].filter(Boolean).join(" ")].filter(Boolean).join(", "),v=encodeURIComponent(g),w=`https://www.google.com/maps/dir/?api=1&destination=${v}`,b=Ky(l,d("footer.closed")),p=M=>new Intl.NumberFormat(f==="de"?"de-DE":"en-US",{style:"currency",currency:"EUR"}).format(M),[x,y]=m.useState(()=>({name:"",email:"",phone:"",vin:"",message:e.get("topic")||""})),[k,E]=m.useState("idle"),[T,S]=m.useState(""),[j,_]=m.useState([]),[C,B]=m.useState([]),H=m.useRef(Date.now()),ne=m.useRef(null),W=e.get("packageId"),K=e.get("brandSlug"),q=e.get("modelSlug"),[oe,N]=m.useState(e.get("total")?Number(e.get("total")):null),[A,L]=m.useState(null),F=f==="en"&&c||u;m.useEffect(()=>{!W||!K||!q||ie.get(`/models/${encodeURIComponent(K)}/${encodeURIComponent(q)}/packages`).then(M=>{var Ee;const V=(Ee=M==null?void 0:M.packages)==null?void 0:Ee.find(Ie=>String(Ie.id)===String(W));V&&(N(Number(V.total_price)),L(V.price_text||null))}).catch(()=>{})},[W,K,q]),m.useEffect(()=>{if(!W){_([]);return}ie.get(`/packages/${W}/upgrades`).then(_).catch(()=>_([]))},[W]);const P=M=>{B(V=>V.includes(M)?V.filter(Ee=>Ee!==M):[...V,M])},R=j.filter(M=>C.includes(M.id)).reduce((M,V)=>M+Number(V.price),0);dr({title:d("contactPage.metaTitle"),description:d("contactPage.metaDescription"),path:"/kontakt"});const z={brand:e.get("brand")||"",model:e.get("model")||"",package:e.get("package")||""},G=!!(z.brand&&z.model&&z.package),ee=!G&&!!(z.brand&&z.model),se=M=>y(V=>({...V,[M.target.name]:M.target.value})),je=async M=>{var V;M.preventDefault(),E("sending"),S("");try{await ie.post("/contact",{...x,website:((V=M.target.elements.website)==null?void 0:V.value)||"",fill_ms:Date.now()-H.current,brand_name:z.brand||null,model_name:z.model||null,package_name:z.package||null,product_name:e.get("product")||null,package_id:W||null,package_product_id:e.get("productId")||null,upgrade_ids:C}),E("sent"),y({name:"",email:"",phone:"",vin:"",message:""}),Nn("generate_lead",{package_name:z.package||void 0,value:oe||void 0,currency:"EUR"})}catch(Ee){S(_a(Ee,d)),E("idle")}};m.useEffect(()=>{k==="sent"&&ne.current&&(ne.current.scrollIntoView({behavior:"smooth",block:"center"}),ne.current.focus({preventScroll:!0}))},[k]);const Ve=G?d("contactPage.whatsappText")(z.brand,z.model,z.package):ee?d("modelPage.whatsappText")(z.brand,z.model):"",jt=[{key:"premium",title:d("contactPage.featurePremiumTitle"),sub:d("contactPage.featurePremiumSub")},{key:"germany",title:d("contactPage.featureGermanyTitle"),sub:d("contactPage.featureGermanySub")},{key:"individual",title:d("contactPage.featureIndividualTitle"),sub:d("contactPage.featureIndividualSub")},{key:"experts",title:d("contactPage.featureExpertsTitle"),sub:d("contactPage.featureExpertsSub")}];return a.jsx("div",{className:"kf-page kontakt-sektion relative w-full overflow-hidden px-4 pb-10 sm:px-10",style:{color:"var(--kf-text2)",fontFamily:"'Barlow', sans-serif"},children:a.jsxs("div",{className:"relative z-10 mx-auto max-w-[1280px] pt-10 sm:pt-14",children:[a.jsx("div",{className:"mb-3 text-[13px] font-semibold uppercase tracking-[6px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.heroEyebrow")}),a.jsxs("h1",{className:"text-[34px] leading-[1.08] sm:text-[46px] lg:text-[60px]",style:{...po,color:"var(--kf-text)"},children:[d("contactPage.heroTitlePre")," ",a.jsx("span",{style:{color:"var(--kf-accent2)"},children:d("contactPage.heroTitleAccent")})," ",d("contactPage.heroTitlePost")]}),a.jsx("p",{className:"mb-10 mt-5 max-w-[520px] text-lg leading-[1.55]",style:{color:"var(--kf-muted)"},children:d("contactPage.heroSubtitle")}),a.jsxs("div",{className:"grid grid-cols-1 items-start gap-10 min-[981px]:grid-cols-[minmax(0,1.35fr)_minmax(320px,1fr)]",children:[a.jsx("div",{children:a.jsxs("div",{className:"rounded-2xl border p-[22px] sm:p-10",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[G&&a.jsxs("div",{className:"mb-8 rounded-xl border px-6 py-[22px]",style:{background:"var(--kf-pkgbg)",borderColor:"var(--kf-pkgbrd)"},children:[a.jsxs("div",{className:"mb-3.5 flex items-center gap-2.5 text-xs font-bold uppercase tracking-[2px]",style:{color:"var(--kf-accent2)"},children:[a.jsx(pP,{className:"h-4 w-4"}),d("contactPage.packageBoxTitle")]}),a.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-5 gap-y-2 text-[15px]",children:[a.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.contextBrand")}),a.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:z.brand}),a.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.contextModel")}),a.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:z.model}),a.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.contextPackage")}),a.jsx("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:z.package})]}),a.jsxs("div",{className:"mt-3.5 flex items-baseline justify-between border-t pt-3.5",style:{borderColor:"var(--kf-pkgbrd)"},children:[a.jsx("span",{className:"text-[13px] font-semibold uppercase tracking-wide",style:{color:"var(--kf-muted)"},children:d("contactPage.packagePrice")}),a.jsx("span",{className:"text-xl",children:A||(oe!=null?a.jsx(mp,{formatted:p(oe),color:"var(--kf-text)"}):"—")})]}),F&&!A&&a.jsx("div",{className:"mt-1 text-right text-xs",style:{color:"var(--kf-muted)"},children:F})]}),ee&&a.jsxs("div",{className:"mb-8 flex items-center gap-3 rounded-xl border px-6 py-4 text-[15px]",style:{background:"var(--kf-pkgbg)",borderColor:"var(--kf-pkgbrd)"},children:[a.jsx(Jo,{className:"h-4 w-4",style:{color:"var(--kf-accent2)"}}),a.jsx("span",{style:{color:"var(--kf-label)"},children:d("contactPage.vehicleBoxTitle")}),a.jsxs("span",{className:"font-semibold",style:{color:"var(--kf-text2)"},children:[z.brand," ",z.model]})]}),j.length>0&&a.jsxs("div",{className:"mb-8 rounded-xl border p-5",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)"},children:[a.jsx("div",{className:"mb-3 text-xs font-bold uppercase tracking-[2px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.optionalUpgrades")}),a.jsx("div",{className:"space-y-2",children:j.map(M=>a.jsxs("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg border p-3 text-sm",style:{borderColor:"var(--kf-fieldbrd)"},children:[a.jsx("input",{type:"checkbox",checked:C.includes(M.id),onChange:()=>P(M.id),className:"mt-0.5 h-4 w-4 rounded",style:{accentColor:"var(--kf-accent)"}}),a.jsxs("span",{className:"flex-1",children:[a.jsx("span",{className:"block font-semibold",style:{color:"var(--kf-text2)"},children:_n(M,"name",f)}),M.description&&a.jsx("span",{className:"block text-xs",style:{color:"var(--kf-muted)"},children:_n(M,"description",f)})]}),a.jsxs("span",{className:"font-semibold",style:{color:"var(--kf-accent2)"},children:["+",p(M.price)]})]},M.id))}),C.length>0&&oe!=null&&!A&&a.jsxs("div",{className:"mt-3 flex items-baseline justify-between border-t pt-3 text-sm",style:{borderColor:"var(--kf-pkgbrd)"},children:[a.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide",style:{color:"var(--kf-muted)"},children:d("contactPage.totalWithUpgrades")}),a.jsx(mp,{formatted:p(oe+R),color:"var(--kf-text)"})]})]}),a.jsx("h2",{className:"mb-8 text-xl",style:{...po,color:"var(--kf-text)"},children:d("contactPage.formTitle")}),a.jsx("div",{role:"status","aria-live":"polite",children:k==="sent"&&a.jsxs("div",{ref:ne,tabIndex:-1,className:"rounded-[10px] border p-5 outline-none",style:{borderColor:"var(--kf-accent)",background:"var(--kf-accentsoft)"},children:[a.jsx("div",{className:"text-base font-bold",style:{color:"var(--kf-accent2)"},children:d("contactPage.sentTitle")}),a.jsx("div",{className:"mt-1 text-sm",style:{color:"var(--kf-muted)"},children:d("contactPage.sentText")}),a.jsx("button",{type:"button",onClick:()=>{H.current=Date.now(),E("idle")},className:"mt-4 text-sm font-semibold underline",style:{color:"var(--kf-text2)"},children:d("contactPage.sendAnother")})]})}),k!=="sent"&&a.jsxs("form",{onSubmit:je,noValidate:!1,children:[a.jsxs("div",{"aria-hidden":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"},children:[a.jsx("label",{htmlFor:"kf-website",children:"Website"}),a.jsx("input",{id:"kf-website",name:"website",type:"text",tabIndex:-1,autoComplete:"off",defaultValue:""})]}),a.jsxs("div",{className:"grid grid-cols-1 gap-6 min-[641px]:grid-cols-2",children:[a.jsx(Gi,{icon:MP,label:d("contactPage.nameLabel"),name:"name",autoComplete:"name",required:!0,value:x.name,onChange:se,placeholder:d("contactPage.namePlaceholder")}),a.jsx(Gi,{icon:oc,label:d("contactPage.emailLabel"),name:"email",type:"email",autoComplete:"email",required:!0,value:x.email,onChange:se,placeholder:d("contactPage.emailPlaceholder")}),a.jsx(Gi,{icon:or,label:d("contactPage.phoneLabel"),name:"phone",type:"tel",inputMode:"tel",autoComplete:"tel",value:x.phone,onChange:se,placeholder:d("contactPage.phonePlaceholder")}),a.jsx(Gi,{icon:Jo,label:d("contactPage.vinLabel"),name:"vin",value:x.vin,onChange:se,placeholder:d("contactPage.vinPlaceholder")})]}),a.jsxs("div",{className:"mt-6 flex flex-col gap-2",children:[a.jsx("label",{htmlFor:"kf-message",className:"text-xs font-semibold uppercase tracking-[2px]",style:{color:"var(--kf-label)"},children:d("contactPage.messageLabel")}),a.jsx("textarea",{id:"kf-message",name:"message",rows:5,value:x.message,onChange:se,placeholder:d("contactPage.messagePlaceholder"),className:"w-full resize-y rounded-lg border px-4 py-3.5 text-[15px] outline-none",style:{background:"var(--kf-field)",borderColor:"var(--kf-fieldbrd)",color:"var(--kf-text2)"}})]}),a.jsx("div",{role:"alert","aria-live":"assertive",children:T&&a.jsx("p",{className:"mt-4 text-sm text-red-600 dark:text-red-400",children:T})}),a.jsxs("div",{className:"mt-8 flex flex-wrap items-center gap-5",children:[a.jsxs("button",{type:"submit",disabled:k==="sending",className:"inline-flex items-center gap-3 rounded-lg px-8 py-4 text-sm font-bold uppercase tracking-[3px] transition-[filter,box-shadow] hover:brightness-110 disabled:opacity-60",style:{background:"var(--kf-accent)",color:"var(--kf-btntext)",boxShadow:"0 10px 24px rgba(150,200,20,0.32)"},children:[a.jsx(SP,{className:"h-[18px] w-[18px]"}),d(k==="sending"?"contactPage.sending":"contactPage.submit")]}),a.jsx("div",{className:"text-[13px]",style:{color:"var(--kf-label)"},children:d("contactPage.requiredHint")})]}),a.jsxs("p",{className:"mt-5 text-[13px] leading-relaxed",style:{color:"var(--kf-muted)"},children:[d("contactPage.privacyPre"),a.jsx(U,{to:"/datenschutz",className:"underline",style:{color:"var(--kf-text2)"},children:d("contactPage.privacyLink")}),d("contactPage.privacyPost")]})]})]})}),a.jsxs("div",{className:"flex flex-col gap-6",children:[a.jsxs("div",{className:"relative overflow-hidden rounded-2xl border px-[22px] py-[26px] sm:px-8 sm:py-[34px]",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[a.jsx("div",{className:"pointer-events-none absolute -right-[60px] -top-[60px] h-[190px] w-[190px] rounded-full border border-dashed",style:{borderColor:"var(--kf-pkgbrd)"}}),a.jsx("h2",{className:"mb-7 text-[17px]",style:{...po,color:"var(--kf-text)"},children:d("contactPage.cardTitle")}),a.jsxs("div",{className:"flex flex-col gap-5",children:[a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:a.jsx(or,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),a.jsxs("div",{children:[a.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.phone")}),a.jsx("a",{href:`tel:${BN(t)}`,onClick:()=>Nn("contact_call"),className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:t})]})]}),a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:a.jsx(oc,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),a.jsxs("div",{children:[a.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.email")}),a.jsx("a",{href:`mailto:${r}`,className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:r})]})]}),a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:a.jsx(Vy,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),a.jsxs("div",{children:[a.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.address")}),a.jsxs("div",{className:"text-base font-semibold leading-[1.4]",style:{color:"var(--kf-text2)"},children:[s,a.jsx("br",{}),[i,o].filter(Boolean).join(" ")]})]})]}),n&&a.jsxs("div",{className:"flex items-start gap-4",children:[a.jsx("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full",style:{background:"var(--kf-accentsoft)"},children:a.jsx($N,{className:"h-[18px] w-[18px]",style:{color:"var(--kf-accent2)"}})}),a.jsxs("div",{children:[a.jsx("div",{className:"mb-1 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("nav.whatsapp")}),a.jsx("a",{href:Hd(n,Ve),target:"_blank",rel:"noopener noreferrer",onClick:()=>Nn("contact_whatsapp"),className:"text-base font-semibold",style:{color:"var(--kf-text2)"},children:n})]})]})]}),a.jsxs("div",{className:"mt-7 border-t pt-6",style:{borderColor:"var(--kf-divider)"},children:[a.jsx("div",{className:"mb-3 text-[11px] font-semibold uppercase tracking-[3px]",style:{color:"var(--kf-accent2)"},children:d("contactPage.hours")}),a.jsx("div",{className:"grid grid-cols-[auto_1fr] gap-x-6 gap-y-2 text-[15px]",children:b.map(M=>a.jsxs("span",{style:{display:"contents"},children:[a.jsx("span",{style:{color:"var(--kf-label)"},children:M.days}),a.jsx("span",{children:M.label})]},M.key))})]})]}),a.jsxs("div",{className:"relative overflow-hidden rounded-2xl border",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow)"},children:[h.external&&a.jsxs("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"absolute left-3.5 top-3.5 z-10 inline-flex items-center gap-2 rounded-lg border px-3.5 py-2 text-[13px] font-semibold hover:border-[var(--kf-accent)]",style:{background:"var(--kf-pill)",borderColor:"var(--kf-pillbrd)",color:"var(--kf-text2)",boxShadow:"var(--kf-shadow2)"},children:[d("contactPage.mapOpenChip"),a.jsx(ZC,{className:"h-3.5 w-3.5",style:{color:"var(--kf-accent2)"}})]}),a.jsx(zN,{name:d("contactPage.mapEmbedName"),className:"h-[210px] w-full",children:a.jsx("div",{className:"h-[210px] overflow-hidden",children:a.jsx("iframe",{title:d("contactPage.mapIframeTitle"),src:`https://www.google.com/maps?q=${v}&output=embed`,width:"100%",height:"290",style:{border:0,display:"block",marginTop:"-60px"},loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})}),a.jsxs("a",{href:w,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2.5 border-t px-4 py-4 text-[13px] font-bold uppercase tracking-[3px] hover:bg-[var(--kf-accentsoft)]",style:{borderColor:"var(--kf-divider)",color:"var(--kf-accent2)"},children:[d("contactPage.routePlan")," →"]})]})]})]}),a.jsx("div",{className:"mt-10 grid grid-cols-1 overflow-hidden rounded-2xl border min-[641px]:grid-cols-2 min-[901px]:grid-cols-4",style:{background:"var(--kf-card)",borderColor:"var(--kf-cardbrd)",boxShadow:"var(--kf-shadow2)"},children:jt.map(M=>a.jsxs("div",{className:"flex items-center gap-4 border-b p-6 last:border-b-0 min-[641px]:border-b-0 min-[641px]:border-r min-[641px]:last:border-r-0",style:{borderColor:"var(--kf-divider)"},children:[a.jsx("div",{className:"flex h-[46px] w-[46px] flex-shrink-0 items-center justify-center rounded-full border-[1.5px]",style:{borderColor:"var(--kf-pkgbrd)",color:"var(--kf-accent2)"},children:a.jsx(HN,{path:UN[M.key],className:"h-[22px] w-[22px]"})}),a.jsxs("div",{children:[a.jsx("div",{className:"text-[15px] font-bold",style:{color:"var(--kf-text)"},children:M.title}),a.jsx("div",{className:"mt-0.5 text-[13px]",style:{color:"var(--kf-muted)"},children:M.sub})]})]},M.key))})]})})}const Ml="hifi-chunk-reload",Q=e=>m.lazy(()=>e().then(t=>{try{sessionStorage.removeItem(Ml)}catch{}return t},t=>{let n=!0;try{n=!!sessionStorage.getItem(Ml),sessionStorage.setItem(Ml,"1")}catch{}if(n)throw t;return window.location.reload(),new Promise(()=>{})})),GN=Q(()=>X(()=>import("./GalleryOverview-COp2J0Qq.js"),[])),KN=Q(()=>X(()=>import("./GalleryBrandPage-BDA2wstJ.js"),[])),qN=Q(()=>X(()=>import("./GalleryProjectPage-DmCj8l5D.js"),[])),YN=Q(()=>X(()=>import("./DownloadsPage-Mq08ayRG.js"),__vite__mapDeps([5,6,1]))),XN=Q(()=>X(()=>import("./Impressum-teGCkFgH.js"),__vite__mapDeps([7,8]))),ZN=Q(()=>X(()=>import("./Datenschutz-CL1ElwlX.js"),__vite__mapDeps([9,8]))),QN=Q(()=>X(()=>import("./AGB-B7VmuQYo.js"),__vite__mapDeps([10,8]))),JN=Q(()=>X(()=>import("./SetupWizard-BWR47IEf.js"),[])),e4=Q(()=>X(()=>import("./Login-7RAlIzMA.js"),[])),t4=Q(()=>X(()=>import("./Dashboard-BKouj-VO.js"),__vite__mapDeps([11,12,13]))),n4=Q(()=>X(()=>import("./Brands-Dgm1mgy_.js"),__vite__mapDeps([14,15,16,17,18,19,3,20]))),r4=Q(()=>X(()=>import("./Models-DhJaITYo.js"),__vite__mapDeps([21,15,16,17,18,19,3,22,20]))),s4=Q(()=>X(()=>import("./GalleryBrands-DMdXRxbf.js"),__vite__mapDeps([23,15,16,18,19,3,22]))),i4=Q(()=>X(()=>import("./GalleryProjects-C29FLapQ.js"),__vite__mapDeps([24,15,16,18,19,3,22]))),o4=Q(()=>X(()=>import("./GalleryPhotos-wQg2F1lU.js"),__vite__mapDeps([25,18,19,3,22,16]))),a4=Q(()=>X(()=>import("./Packages-DgflBHGJ.js"),__vite__mapDeps([26,17,22,19,4,3,2]))),l4=Q(()=>X(()=>import("./Services-BJ8NVLPL.js"),__vite__mapDeps([27,18,19,3,22,15,16,0,1,2,4]))),u4=Q(()=>X(()=>import("./Faqs-Dw2czuAP.js"),__vite__mapDeps([28,18,19,3,22]))),c4=Q(()=>X(()=>import("./Partners-BN6q2vm6.js"),__vite__mapDeps([29,15,16,18,19,3,22]))),d4=Q(()=>X(()=>import("./Downloads-aBsc1dNO.js"),__vite__mapDeps([30,6,18,19,3,22,2]))),f4=Q(()=>X(()=>import("./HomeSections-Bmnp6Q1H.js"),__vite__mapDeps([31,32,17,33]))),h4=Q(()=>X(()=>import("./ContactRequests-DolPRSAD.js"),__vite__mapDeps([34,13]))),m4=Q(()=>X(()=>import("./AccountSettings-ByPcUHUu.js"),[])),p4=Q(()=>X(()=>import("./AdminUsers-7hZ4IX-u.js"),[])),g4=Q(()=>X(()=>import("./PermissionGroups-CaY9t8pp.js"),[])),x4=Q(()=>X(()=>import("./SettingsLayout-DAVl0DYi.js"),[])),Ll=Q(()=>X(()=>import("./WebsiteSettings-TrTUFhaa.js"),__vite__mapDeps([35,15,16,33]))),y4=Q(()=>X(()=>import("./LegalSettings-BIpr5BoD.js"),__vite__mapDeps([36,32]))),v4=Q(()=>X(()=>import("./UpdateSettings-DwMfiCHS.js"),[])),w4=Q(()=>X(()=>import("./EmailSettings-1PwpumI2.js"),__vite__mapDeps([37,32]))),b4=Q(()=>X(()=>import("./DatabaseSettings-C696yBmO.js"),__vite__mapDeps([38,12]))),k4=Q(()=>X(()=>import("./ExportImportSettings-C4NURXDO.js"),[])),S4=Q(()=>X(()=>import("./MaintenanceSettings-DOQMi8VY.js"),[])),j4=Q(()=>X(()=>import("./CountdownSettings-TQTGVVqj.js"),[])),E4=Q(()=>X(()=>import("./ResetSettings-hunPYZEc.js"),[])),C4=a.jsx("div",{className:"min-h-screen bg-white dark:bg-neutral-950"});function P4(){const{packageId:e}=ad();return a.jsx(sr,{to:`/admin/packages?paket=${e}`,replace:!0})}function T4(){return a.jsxs(Vj,{reducedMotion:"user",children:[a.jsx(fC,{}),a.jsx(pC,{}),a.jsx(bC,{children:a.jsx(m.Suspense,{fallback:C4,children:a.jsxs(jb,{children:[a.jsx($,{path:"/setup",element:a.jsx(JN,{})}),a.jsxs($,{element:a.jsx($T,{}),children:[a.jsx($,{path:"/",element:a.jsx(mN,{})}),a.jsx($,{path:"/fahrzeuge",element:a.jsx(vN,{})}),a.jsx($,{path:"/fahrzeuge/:brandSlug",element:a.jsx(wN,{})}),a.jsx($,{path:"/fahrzeuge/:brandSlug/:modelSlug",element:a.jsx(RN,{})}),a.jsx($,{path:"/galerie",element:a.jsx(GN,{})}),a.jsx($,{path:"/galerie/:brandSlug",element:a.jsx(KN,{})}),a.jsx($,{path:"/galerie/:brandSlug/:projectSlug",element:a.jsx(qN,{})}),a.jsx($,{path:"/leistungen",element:a.jsx(ON,{})}),a.jsx($,{path:"/kontakt",element:a.jsx(WN,{})}),a.jsx($,{path:"/downloads",element:a.jsx(YN,{})}),a.jsx($,{path:"/impressum",element:a.jsx(XN,{})}),a.jsx($,{path:"/datenschutz",element:a.jsx(ZN,{})}),a.jsx($,{path:"/agb",element:a.jsx(QN,{})}),a.jsx($,{path:"*",element:a.jsx(Yd,{})})]}),a.jsx($,{path:"/admin/login",element:a.jsx(e4,{})}),a.jsx($,{path:"/admin",element:a.jsx(YT,{}),children:a.jsxs($,{element:a.jsx(qT,{}),children:[a.jsx($,{index:!0,element:a.jsx(t4,{})}),a.jsx($,{path:"account",element:a.jsx(m4,{})}),a.jsx($,{path:"brands",element:a.jsx(ce,{permission:"brands.manage",children:a.jsx(n4,{})})}),a.jsx($,{path:"models",element:a.jsx(ce,{permission:"models.manage",children:a.jsx(r4,{})})}),a.jsx($,{path:"gallery-brands",element:a.jsx(ce,{permission:"gallery.manage",children:a.jsx(s4,{})})}),a.jsx($,{path:"gallery-projects",element:a.jsx(ce,{permission:"gallery.manage",children:a.jsx(i4,{})})}),a.jsx($,{path:"gallery-projects/:projectId/photos",element:a.jsx(ce,{permission:"gallery.manage",children:a.jsx(o4,{})})}),a.jsx($,{path:"packages",element:a.jsx(ce,{permission:"packages.manage",children:a.jsx(a4,{})})}),a.jsx($,{path:"packages/:packageId/*",element:a.jsx(P4,{})}),a.jsx($,{path:"services",element:a.jsx(ce,{permission:"services.manage",children:a.jsx(l4,{})})}),a.jsx($,{path:"faqs",element:a.jsx(ce,{permission:"content.manage",children:a.jsx(u4,{})})}),a.jsx($,{path:"partners",element:a.jsx(ce,{permission:"content.manage",children:a.jsx(c4,{})})}),a.jsx($,{path:"downloads",element:a.jsx(ce,{permission:"downloads.manage",children:a.jsx(d4,{})})}),a.jsx($,{path:"home-sections",element:a.jsx(ce,{permission:"content.manage",children:a.jsx(f4,{})})}),a.jsx($,{path:"contact-requests",element:a.jsx(ce,{permission:"contact.manage",children:a.jsx(h4,{})})}),a.jsx($,{path:"users",element:a.jsx(ce,{permission:"users.manage",children:a.jsx(p4,{})})}),a.jsx($,{path:"permission-groups",element:a.jsx(ce,{permission:"permission_groups.manage",children:a.jsx(g4,{})})}),a.jsxs($,{path:"settings",element:a.jsx(ce,{permission:["settings.manage","system.admin","system.update"],children:a.jsx(x4,{})}),children:[a.jsx($,{index:!0,element:a.jsx(sr,{to:"company",replace:!0})}),a.jsx($,{path:"website",element:a.jsx(sr,{to:"../company",replace:!0})}),a.jsx($,{path:"company",element:a.jsx(ce,{permission:"settings.manage",children:a.jsx(Ll,{section:"company"})})}),a.jsx($,{path:"design",element:a.jsx(ce,{permission:"settings.manage",children:a.jsx(Ll,{section:"design"})})}),a.jsx($,{path:"legal",element:a.jsx(ce,{permission:"settings.manage",children:a.jsx(y4,{})})}),a.jsx($,{path:"maintenance",element:a.jsx(ce,{permission:"settings.manage",children:a.jsx(S4,{})})}),a.jsx($,{path:"countdown",element:a.jsx(ce,{permission:"settings.manage",children:a.jsx(j4,{})})}),a.jsx($,{path:"google",element:a.jsx(ce,{permission:"system.admin",children:a.jsx(Ll,{section:"google"})})}),a.jsx($,{path:"email",element:a.jsx(ce,{permission:"system.admin",children:a.jsx(w4,{})})}),a.jsx($,{path:"database",element:a.jsx(ce,{permission:"system.admin",children:a.jsx(b4,{})})}),a.jsx($,{path:"export-import",element:a.jsx(ce,{permission:"system.admin",children:a.jsx(k4,{})})}),a.jsx($,{path:"update",element:a.jsx(ce,{permission:"system.update",children:a.jsx(v4,{})})}),a.jsx($,{path:"reset",element:a.jsx(ce,{permission:"system.admin",children:a.jsx(E4,{})})})]})]})})]})})})]})}Al.createRoot(document.getElementById("root")).render(a.jsx(Cp.StrictMode,{children:a.jsx(Ab,{basename:"/".replace(/\/$/,"")||"/",children:a.jsx(FP,{children:a.jsx($P,{children:a.jsx(JP,{children:a.jsx(T4,{})})})})})}));export{YC as $,gC as A,Cp as B,FC as C,FN as D,We as E,A4 as F,et as G,Zy as H,L4 as I,pp as J,Z as K,U as L,TC as M,Yd as N,ld as O,Fy as P,_C as Q,He as R,Jy as S,Jo as T,LC as U,RC as V,Ay as W,yi as X,zC as Y,UC as Z,Dy as _,It as a,JC as a0,tP as a1,rP as a2,iP as a3,Ry as a4,oc as a5,Vy as a6,Iy as a7,dP as a8,hP as a9,pP as aa,or as ab,vP as ac,SP as ad,EP as ae,PP as af,NP as ag,MP as ah,AP as ai,VP as aj,CC as ak,M4 as al,EC as am,N4 as an,dr as b,ie as c,le as d,_a as e,ip as f,ad as g,rd as h,mr as i,a as j,cr as k,ep as l,es as m,sr as n,ea as o,D4 as p,R4 as q,m as r,V4 as s,qy as t,pe as u,bP as v,$C as w,Ob as x,GC as y,ZC as z};
diff --git a/hifi/assets/index-DV1Bga93.css b/hifi/assets/index-DV1Bga93.css
deleted file mode 100644
index bdfc0c9..0000000
--- a/hifi/assets/index-DV1Bga93.css
+++ /dev/null
@@ -1 +0,0 @@
-@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-vietnamese-400-normal-Dpl4UHAZ.woff2) format("woff2"),url(/assets/barlow-vietnamese-400-normal-BFeobeCK.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-latin-ext-400-normal-HxX4XjxC.woff2) format("woff2"),url(/assets/barlow-latin-ext-400-normal-CvBsJvxq.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-latin-400-normal-qiz4-Cze.woff2) format("woff2"),url(/assets/barlow-latin-400-normal-fsAxiSwU.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-vietnamese-500-normal-zTViEIzf.woff2) format("woff2"),url(/assets/barlow-vietnamese-500-normal-GNfB7rCE.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-latin-ext-500-normal-DOaysfXq.woff2) format("woff2"),url(/assets/barlow-latin-ext-500-normal-CJPcKP2Q.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-latin-500-normal-BPAOfeC8.woff2) format("woff2"),url(/assets/barlow-latin-500-normal-C1h8hMer.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-vietnamese-600-normal-DcjprdFV.woff2) format("woff2"),url(/assets/barlow-vietnamese-600-normal-CA_GiK2e.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-latin-ext-600-normal-B8NK_A3D.woff2) format("woff2"),url(/assets/barlow-latin-ext-600-normal-DMVRjfRT.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-latin-600-normal-DILqtrty.woff2) format("woff2"),url(/assets/barlow-latin-600-normal-CNwfPWQD.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-vietnamese-700-normal-D6euyNzi.woff2) format("woff2"),url(/assets/barlow-vietnamese-700-normal-4Jt4k04K.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-latin-ext-700-normal-BLuWmldJ.woff2) format("woff2"),url(/assets/barlow-latin-ext-700-normal-CctuGmmz.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-latin-700-normal-A9pxMQ4z.woff2) format("woff2"),url(/assets/barlow-latin-700-normal-__SGTsZ1.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-condensed-vietnamese-500-normal-DjeaNLFD.woff2) format("woff2"),url(/assets/barlow-condensed-vietnamese-500-normal-CsrJDWc5.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-condensed-latin-ext-500-normal-yA5ONLQ9.woff2) format("woff2"),url(/assets/barlow-condensed-latin-ext-500-normal-B1RE8WP7.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-condensed-latin-500-normal-BgYH2mbd.woff2) format("woff2"),url(/assets/barlow-condensed-latin-500-normal-HIEiP5Ov.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-condensed-vietnamese-600-normal-A5AYRdjN.woff2) format("woff2"),url(/assets/barlow-condensed-vietnamese-600-normal-CNlPk46_.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-condensed-latin-ext-600-normal-18ESti3H.woff2) format("woff2"),url(/assets/barlow-condensed-latin-ext-600-normal-Clv9cIcR.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-condensed-latin-600-normal-DepVgxBB.woff2) format("woff2"),url(/assets/barlow-condensed-latin-600-normal-BFJEwTuo.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Michroma;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/michroma-latin-ext-400-normal-BeYM1uOO.woff2) format("woff2"),url(/assets/michroma-latin-ext-400-normal-DlRaauac.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Michroma;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/michroma-latin-400-normal-4gS0VCia.woff2) format("woff2"),url(/assets/michroma-latin-400-normal-C7Pn7qca.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--site-font, ui-sans-serif, system-ui, sans-serif);font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-5{bottom:-1.25rem}.-left-1\/3{left:-33.333333%}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-right-\[60px\]{right:-60px}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.-top-3{top:-.75rem}.-top-\[60px\]{top:-60px}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-3\.5{left:.875rem}.left-4{left:1rem}.left-5{left:1.25rem}.left-6{left:1.5rem}.left-\[14px\]{left:14px}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-3\.5{top:.875rem}.top-4{top:1rem}.top-8{top:2rem}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[150\]{z-index:150}.z-\[200\]{z-index:200}.z-\[300\]{z-index:300}.z-\[400\]{z-index:400}.z-\[60\]{z-index:60}.order-1{order:1}.order-2{order:2}.col-span-full{grid-column:1 / -1}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.-mt-\[89px\]{margin-top:-89px}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-7{margin-bottom:1.75rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-3{margin-right:.75rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-3\.5{margin-top:.875rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-6{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.\!hidden{display:none!important}.hidden{display:none}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.h-0\.5{height:.125rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-\[17px\]{height:17px}.h-\[18px\]{height:18px}.h-\[190px\]{height:190px}.h-\[210px\]{height:210px}.h-\[22px\]{height:22px}.h-\[46px\]{height:46px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-64{max-height:16rem}.max-h-\[360px\]{max-height:360px}.max-h-\[45vh\]{max-height:45vh}.max-h-\[60vh\]{max-height:60vh}.max-h-\[85vh\]{max-height:85vh}.min-h-\[100svh\]{min-height:100svh}.min-h-\[10rem\]{min-height:10rem}.min-h-\[560px\]{min-height:560px}.min-h-\[60vh\]{min-height:60vh}.min-h-\[70vh\]{min-height:70vh}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[17px\]{width:17px}.w-\[18px\]{width:18px}.w-\[190px\]{width:190px}.w-\[22px\]{width:22px}.w-\[46px\]{width:46px}.w-\[min\(92vw\,380px\)\]{width:min(92vw,380px)}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-\[220px\]{min-width:220px}.min-w-\[640px\]{min-width:640px}.min-w-\[90px\]{min-width:90px}.min-w-\[9rem\]{min-width:9rem}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-\[1280px\]{max-width:1280px}.max-w-\[160px\]{max-width:160px}.max-w-\[1880px\]{max-width:1880px}.max-w-\[520px\]{max-width:520px}.max-w-\[720px\]{max-width:720px}.max-w-\[85\%\]{max-width:85%}.max-w-\[8rem\]{max-width:8rem}.max-w-\[calc\(100\%-16px\)\]{max-width:calc(100% - 16px)}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.origin-left{transform-origin:left}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-12{--tw-rotate: 12deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.touch-pan-y{--tw-pan-y: pan-y;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness: mandatory}.snap-start{scroll-snap-align:start}.snap-center{scroll-snap-align:center}.scroll-mt-20{scroll-margin-top:5rem}.scroll-mt-4{scroll-margin-top:1rem}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[18px\]{gap:18px}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-x-\[18px\]{-moz-column-gap:18px;column-gap:18px}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-neutral-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(245 245 245 / var(--tw-divide-opacity, 1))}.divide-neutral-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 229 229 / var(--tw-divide-opacity, 1))}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[10px\]{border-radius:10px}.rounded-\[14px\]{border-radius:14px}.rounded-\[18px\]{border-radius:18px}.rounded-\[3px\]{border-radius:3px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.border{border-width:1px}.border-0{border-width:0px}.border-4{border-width:4px}.border-\[1\.5px\]{border-width:1.5px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.border-amber-400{--tw-border-opacity: 1;border-color:rgb(251 191 36 / var(--tw-border-opacity, 1))}.border-brand-400{--tw-border-opacity: 1;border-color:rgb(146 212 68 / var(--tw-border-opacity, 1))}.border-brand-500{--tw-border-opacity: 1;border-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-neutral-100{--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1))}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-neutral-300{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity, 1))}.border-neutral-700{--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity, 1))}.border-neutral-800{--tw-border-opacity: 1;border-color:rgb(38 38 38 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-white\/10{border-color:#ffffff1a}.border-white\/15{border-color:#ffffff26}.border-white\/30{border-color:#ffffff4d}.border-t-brand-500{--tw-border-opacity: 1;border-top-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.bg-\[\#0a0c06\]{--tw-bg-opacity: 1;background-color:rgb(10 12 6 / var(--tw-bg-opacity, 1))}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-black\/50{background-color:#00000080}.bg-black\/55{background-color:#0000008c}.bg-black\/60{background-color:#0009}.bg-black\/70{background-color:#000000b3}.bg-black\/90{background-color:#000000e6}.bg-brand-100{--tw-bg-opacity: 1;background-color:rgb(233 246 218 / var(--tw-bg-opacity, 1))}.bg-brand-400{--tw-bg-opacity: 1;background-color:rgb(146 212 68 / var(--tw-bg-opacity, 1))}.bg-brand-50{--tw-bg-opacity: 1;background-color:rgb(245 251 238 / var(--tw-bg-opacity, 1))}.bg-brand-500{--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.bg-brand-500\/10{background-color:#6ba6261a}.bg-brand-500\/60{background-color:#6ba62699}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.bg-neutral-200{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity, 1))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity, 1))}.bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity, 1))}.bg-neutral-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.bg-neutral-800{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.bg-neutral-900\/10{background-color:#1717171a}.bg-neutral-900\/85{background-color:#171717d9}.bg-neutral-950{--tw-bg-opacity: 1;background-color:rgb(10 10 10 / var(--tw-bg-opacity, 1))}.bg-neutral-950\/90{background-color:#0a0a0ae6}.bg-neutral-950\/95{background-color:#0a0a0af2}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-50\/40{background-color:#fef2f266}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-sky-500{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/10{background-color:#ffffff1a}.bg-white\/5{background-color:#ffffff0d}.bg-white\/95{background-color:#fffffff2}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-black\/70{--tw-gradient-from: rgb(0 0 0 / .7) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-black\/85{--tw-gradient-from: rgb(0 0 0 / .85) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-neutral-700{--tw-gradient-from: #404040 var(--tw-gradient-from-position);--tw-gradient-to: rgb(64 64 64 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-neutral-950{--tw-gradient-from: #0a0a0a var(--tw-gradient-from-position);--tw-gradient-to: rgb(10 10 10 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-white{--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-black\/10{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(0 0 0 / .1) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-black\/20{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(0 0 0 / .2) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-neutral-950\/80{--tw-gradient-to: rgb(10 10 10 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(10 10 10 / .8) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-white\/40{--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / .4) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-black\/40{--tw-gradient-to: rgb(0 0 0 / .4) var(--tw-gradient-to-position)}.to-neutral-50{--tw-gradient-to: #fafafa var(--tw-gradient-to-position)}.to-neutral-900{--tw-gradient-to: #171717 var(--tw-gradient-to-position)}.to-neutral-950\/40{--tw-gradient-to: rgb(10 10 10 / .4) var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.bg-cover{background-size:cover}.bg-center{background-position:center}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[22px\]{padding:22px}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[22px\]{padding-left:22px;padding-right:22px}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[22px\]{padding-top:22px;padding-bottom:22px}.py-\[26px\]{padding-top:26px;padding-bottom:26px}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-24{padding-bottom:6rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pl-11{padding-left:2.75rem}.pl-2{padding-left:.5rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pl-\[42px\]{padding-left:42px}.pr-11{padding-right:2.75rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pr-8{padding-right:2rem}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pt-3{padding-top:.75rem}.pt-3\.5{padding-top:.875rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:var(--site-font, ui-sans-serif, system-ui, sans-serif)}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[17px\]{font-size:17px}.text-\[22px\]{font-size:22px}.text-\[34px\]{font-size:34px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.normal-case{text-transform:none}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-\[1\.08\]{line-height:1.08}.leading-\[1\.4\]{line-height:1.4}.leading-\[1\.55\]{line-height:1.55}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.tracking-\[0\.2em\]{letter-spacing:.2em}.tracking-\[2px\]{letter-spacing:2px}.tracking-\[3px\]{letter-spacing:3px}.tracking-\[4px\]{letter-spacing:4px}.tracking-\[6px\]{letter-spacing:6px}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-brand-300{--tw-text-opacity: 1;color:rgb(182 227 130 / var(--tw-text-opacity, 1))}.text-brand-400{--tw-text-opacity: 1;color:rgb(146 212 68 / var(--tw-text-opacity, 1))}.text-brand-500{--tw-text-opacity: 1;color:rgb(107 166 38 / var(--tw-text-opacity, 1))}.text-brand-500\/10{color:#6ba6261a}.text-brand-600{--tw-text-opacity: 1;color:rgb(88 137 31 / var(--tw-text-opacity, 1))}.text-brand-700{--tw-text-opacity: 1;color:rgb(72 112 26 / var(--tw-text-opacity, 1))}.text-brand-800{--tw-text-opacity: 1;color:rgb(59 91 21 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-neutral-100{--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.text-neutral-200{--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.text-neutral-300{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.text-neutral-800{--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity, 1))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-neutral-950{--tw-text-opacity: 1;color:rgb(10 10 10 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\/70{color:#ffffffb3}.text-white\/80{color:#fffc}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_-8px_24px_rgba\(0\,0\,0\,0\.08\)\]{--tw-shadow: 0 -8px 24px rgba(0,0,0,.08);--tw-shadow-colored: 0 -8px 24px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_10px_rgba\(107\,166\,38\,0\.7\)\]{--tw-shadow: 0 0 10px rgba(107,166,38,.7);--tw-shadow-colored: 0 0 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_24px_60px_rgba\(0\,0\,0\,0\.55\)\]{--tw-shadow: 0 24px 60px rgba(0,0,0,.55);--tw-shadow-colored: 0 24px 60px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-brand-500\/30{--tw-shadow-color: rgb(107 166 38 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-neutral-900\/20{--tw-shadow-color: rgb(23 23 23 / .2);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-brand-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(146 212 68 / var(--tw-ring-opacity, 1))}.ring-brand-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 166 38 / var(--tw-ring-opacity, 1))}.ring-brand-500\/30{--tw-ring-color: rgb(107 166 38 / .3)}.ring-brand-500\/40{--tw-ring-color: rgb(107 166 38 / .4)}.ring-neutral-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(82 82 82 / var(--tw-ring-opacity, 1))}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity, 1))}.ring-white\/50{--tw-ring-color: rgb(255 255 255 / .5)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[border-color\,box-shadow\]{transition-property:border-color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[filter\,box-shadow\]{transition-property:filter,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-transform{will-change:transform}.\[scrollbar-width\:none\]{scrollbar-width:none}html{scroll-behavior:smooth}.marquee-viewport{-webkit-mask-image:linear-gradient(to right,transparent,black 6%,black 94%,transparent);mask-image:linear-gradient(to right,transparent,black 6%,black 94%,transparent)}.page-texture{background-color:#f6f5f0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:180px 180px}.dark .page-texture{background-color:#0a0b07;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}.kf-page{--kf-pagebg: linear-gradient(120deg, #eef0ea 0%, #f6f8f3 45%, #fbfcf9 100%);--kf-card: #ffffff;--kf-cardbrd: #e4e8dc;--kf-text: #23271d;--kf-text2: #2a2e24;--kf-muted: #6c7360;--kf-label: #5f6650;--kf-field: #fafcf6;--kf-fieldbrd: #dde2d3;--kf-fieldicon: #a7ad9d;--kf-accent: #a4d417;--kf-accent2: #4f7a00;--kf-accentsoft: #f2f8df;--kf-pill: #ffffff;--kf-pillbrd: #dfe4d6;--kf-shadow: 0 24px 60px rgba(60, 70, 40, .08);--kf-shadow2: 0 16px 40px rgba(60, 70, 40, .06);--kf-divider: #e8ecdf;--kf-topo: #d7dccd;--kf-pkgbg: #f4fbe4;--kf-pkgbrd: #cfe89a;--kf-btntext: #1f2417;--kf-scrim: linear-gradient(90deg, rgba(244, 246, 241, .35) 0%, rgba(244, 246, 241, .55) 55%, rgba(246, 248, 243, 1) 100%)}.dark .kf-page{--kf-pagebg: linear-gradient(120deg, #181b0f 0%, #111409 45%, #0a0c06 100%);--kf-card: #14170e;--kf-cardbrd: rgba(168, 225, 12, .16);--kf-text: #f3f6ea;--kf-text2: #e8ece0;--kf-muted: #9aa38c;--kf-label: #8f987f;--kf-field: rgba(0, 0, 0, .35);--kf-fieldbrd: #2c3323;--kf-fieldicon: #5f6852;--kf-accent: #a8e10c;--kf-accent2: #b6e619;--kf-accentsoft: rgba(168, 225, 12, .1);--kf-pill: #14170e;--kf-pillbrd: rgba(168, 225, 12, .28);--kf-shadow: 0 24px 60px rgba(0, 0, 0, .55);--kf-shadow2: 0 16px 40px rgba(0, 0, 0, .45);--kf-divider: rgba(168, 225, 12, .15);--kf-pkgbg: rgba(168, 225, 12, .08);--kf-pkgbrd: rgba(168, 225, 12, .4);--kf-btntext: #0f1208}.kontakt-sektion{background-image:url(/assets/bg-light-CBAG2tPV.webp);background-size:cover;background-position:center}.dark .kontakt-sektion{background-image:url(/assets/bg-dark-B4R1klEI.webp)}.kf-page input::-moz-placeholder,.kf-page textarea::-moz-placeholder{color:var(--kf-fieldicon)}.kf-page input::placeholder,.kf-page textarea::placeholder{color:var(--kf-fieldicon)}.kf-page input:focus,.kf-page textarea:focus{border-color:var(--kf-accent)!important;box-shadow:0 0 0 3px #a4d41733}.grain-band{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:180px 180px}.dark .grain-band{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}html.hifi-cursor-on,html.hifi-cursor-on *{cursor:none!important}html.hifi-cursor-on :is(input,textarea,[contenteditable=true]){cursor:auto!important}.hifi-cursor{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:99999;opacity:1;transition:opacity .2s ease}.hifi-cursor[data-hidden=true]{opacity:0}.hifi-cursor__core{position:fixed;top:0;left:0;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:9999px;background:#7fd44a;box-shadow:0 0 0 1.5px #ffffffe6,0 0 10px #7fd44abf;transition:width .18s ease,height .18s ease,margin .18s ease,background-color .18s ease,opacity .15s ease}.hifi-cursor__orbit{position:fixed;top:0;left:0;opacity:0;transition:opacity .18s ease}.hifi-cursor__ring{position:absolute;width:38px;height:15px;margin:-7.5px 0 0 -19px;border:1px solid rgba(139,234,60,.85);border-radius:50%;transform:rotate(-24deg) scale(.6);transition:transform .22s ease}.hifi-cursor__sat{position:absolute;width:5px;height:5px;margin:-2.5px 0 0 -2.5px;border-radius:9999px;background:#eaffdb;box-shadow:0 0 6px #8bea3ce6}.hifi-cursor[data-state=hover] .hifi-cursor__orbit{opacity:1}.hifi-cursor[data-state=hover] .hifi-cursor__core{width:16px;height:16px;margin:-8px 0 0 -8px;background:#8bea3c;box-shadow:0 0 0 1.5px #fffffff2,0 0 12px #8bea3cd9}.hifi-cursor[data-state=hover] .hifi-cursor__ring{transform:rotate(-24deg) scale(1.45)}.hifi-cursor[data-state=text] .hifi-cursor__core,.hifi-cursor[data-state=text] .hifi-cursor__orbit{opacity:0}.hifi-cursor[data-down=true] .hifi-cursor__core{width:20px;height:20px;margin:-10px 0 0 -10px}.hifi-cursor__pulse{position:fixed;top:0;left:0;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:9999px;border:1.5px solid rgba(139,234,60,.9);opacity:0}.hifi-cursor__pulse.is-live{animation:hifi-cursor-pulse .45s ease-out forwards}@keyframes hifi-cursor-pulse{0%{opacity:.9;transform:scale(1)}to{opacity:0;transform:scale(3.2)}}.rte-content ul{list-style:disc;padding-left:1.5rem}.rte-content ol{list-style:decimal;padding-left:1.5rem}.rte-content a{color:#3b82f6;text-decoration:underline}.rte-content p{margin:.25rem 0}.rte-content h2{font-size:1.125rem;font-weight:700;margin:.75rem 0 .25rem}.rte-content code{font-family:ui-monospace,monospace;background:#7d7d7d26;border-radius:.25rem;padding:.1rem .3rem;font-size:.85em}.legal-content h2{margin:2rem 0 .5rem;font-weight:600;color:#171717}.dark .legal-content h2{color:#fff}.legal-content h2:first-child{margin-top:0}.legal-content p{margin:.5rem 0}.legal-content ul{list-style:disc;padding-left:1.25rem;margin:.5rem 0}.legal-content li{margin:.25rem 0}.legal-content a{color:#6ba626;text-decoration:underline}.legal-content code{font-family:ui-monospace,monospace;background:#7d7d7d26;border-radius:.25rem;padding:.1rem .3rem;font-size:.85em}.live-editable{outline:1px dashed rgba(132,204,22,.75);outline-offset:3px;border-radius:2px;cursor:text;transition:outline-color .15s,background-color .15s}.live-editable-block{cursor:pointer}.live-editable:hover{outline:2px dashed rgb(132,204,22);background-color:#84cc1614}.live-editable:focus{outline:2px solid rgb(132,204,22);background-color:#84cc161a}.live-editable-changed,.live-editable-changed:hover{outline-color:#f59e0b}.live-editable:empty:before{content:attr(data-live-placeholder);opacity:.5;font-style:italic}.vehicle-search-input{box-shadow:inset 0 1px #ffffffe6,inset 0 -2px #0000000d,0 1px 2px #0000000f,0 6px 16px -6px #0000002e}.vehicle-search-input:focus{box-shadow:inset 0 1px #ffffffe6,inset 0 -2px #0000000d,0 2px 4px #00000014,0 12px 24px -8px #00000040}.dark .vehicle-search-input{box-shadow:inset 0 1px #ffffff12,inset 0 -2px #00000059,0 1px 2px #00000080,0 8px 20px -6px #000000b3}.dark .vehicle-search-input:focus{box-shadow:inset 0 1px #ffffff17,inset 0 -2px #00000059,0 2px 4px #00000080,0 14px 28px -8px #000c}.file\:mr-3::file-selector-button{margin-right:.75rem}.file\:rounded-md::file-selector-button{border-radius:.375rem}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-brand-500::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.file\:px-3::file-selector-button{padding-left:.75rem;padding-right:.75rem}.file\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-semibold::file-selector-button{font-weight:600}.file\:text-white::file-selector-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.placeholder\:text-neutral-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.placeholder\:text-neutral-400::placeholder{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.last\:border-b-0:last-child{border-bottom-width:0px}.hover\:-translate-y-0\.5:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-\[var\(--kf-accent\)\]:hover{border-color:var(--kf-accent)}.hover\:border-brand-500:hover{--tw-border-opacity: 1;border-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.hover\:border-neutral-400:hover{--tw-border-opacity: 1;border-color:rgb(163 163 163 / var(--tw-border-opacity, 1))}.hover\:bg-\[var\(--kf-accentsoft\)\]:hover{background-color:var(--kf-accentsoft)}.hover\:bg-amber-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.hover\:bg-brand-400:hover{--tw-bg-opacity: 1;background-color:rgb(146 212 68 / var(--tw-bg-opacity, 1))}.hover\:bg-brand-50:hover{--tw-bg-opacity: 1;background-color:rgb(245 251 238 / var(--tw-bg-opacity, 1))}.hover\:bg-brand-600:hover{--tw-bg-opacity: 1;background-color:rgb(88 137 31 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-50:hover{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-800:hover{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.hover\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:bg-white\/15:hover{background-color:#ffffff26}.hover\:bg-white\/20:hover{background-color:#fff3}.hover\:text-brand-200:hover{--tw-text-opacity: 1;color:rgb(211 238 180 / var(--tw-text-opacity, 1))}.hover\:text-brand-500:hover{--tw-text-opacity: 1;color:rgb(107 166 38 / var(--tw-text-opacity, 1))}.hover\:text-brand-600:hover{--tw-text-opacity: 1;color:rgb(88 137 31 / var(--tw-text-opacity, 1))}.hover\:text-brand-700:hover{--tw-text-opacity: 1;color:rgb(72 112 26 / var(--tw-text-opacity, 1))}.hover\:text-neutral-600:hover{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.hover\:text-neutral-700:hover{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-80:hover{opacity:.8}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:brightness-110:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:grayscale-0:hover{--tw-grayscale: grayscale(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:file\:bg-brand-600::file-selector-button:hover{--tw-bg-opacity: 1;background-color:rgb(88 137 31 / var(--tw-bg-opacity, 1))}.focus\:border-brand-500:focus{--tw-border-opacity: 1;border-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-brand-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 166 38 / var(--tw-ring-opacity, 1))}.active\:cursor-grabbing:active{cursor:grabbing}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:from-black\/95{--tw-gradient-from: rgb(0 0 0 / .95) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.peer:checked~.peer-checked\:translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:bg-brand-500{--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.peer:disabled~.peer-disabled\:opacity-60{opacity:.6}.dark\:block:is(.dark *){display:block}.dark\:hidden:is(.dark *){display:none}.dark\:divide-neutral-800:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(38 38 38 / var(--tw-divide-opacity, 1))}.dark\:border-amber-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity, 1))}.dark\:border-amber-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(180 83 9 / var(--tw-border-opacity, 1))}.dark\:border-amber-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(120 53 15 / var(--tw-border-opacity, 1))}.dark\:border-green-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(20 83 45 / var(--tw-border-opacity, 1))}.dark\:border-neutral-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity, 1))}.dark\:border-neutral-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(38 38 38 / var(--tw-border-opacity, 1))}.dark\:border-red-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(127 29 29 / var(--tw-border-opacity, 1))}.dark\:border-t-brand-500:is(.dark *){--tw-border-opacity: 1;border-top-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.dark\:bg-amber-900\/20:is(.dark *){background-color:#78350f33}.dark\:bg-amber-900\/30:is(.dark *){background-color:#78350f4d}.dark\:bg-amber-900\/40:is(.dark *){background-color:#78350f66}.dark\:bg-amber-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 26 3 / var(--tw-bg-opacity, 1))}.dark\:bg-amber-950\/40:is(.dark *){background-color:#451a0366}.dark\:bg-brand-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.dark\:bg-brand-900\/20:is(.dark *){background-color:#304b1133}.dark\:bg-brand-900\/40:is(.dark *){background-color:#304b1166}.dark\:bg-green-900\/20:is(.dark *){background-color:#14532d33}.dark\:bg-green-900\/40:is(.dark *){background-color:#14532d66}.dark\:bg-green-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 46 22 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-100:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(82 82 82 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-800\/50:is(.dark *){background-color:#26262680}.dark\:bg-neutral-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-900\/40:is(.dark *){background-color:#17171766}.dark\:bg-neutral-900\/95:is(.dark *){background-color:#171717f2}.dark\:bg-neutral-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(10 10 10 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-950\/95:is(.dark *){background-color:#0a0a0af2}.dark\:bg-red-900\/10:is(.dark *){background-color:#7f1d1d1a}.dark\:bg-red-900\/20:is(.dark *){background-color:#7f1d1d33}.dark\:bg-red-900\/40:is(.dark *){background-color:#7f1d1d66}.dark\:bg-red-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 10 10 / var(--tw-bg-opacity, 1))}.dark\:bg-slate-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.dark\:bg-white\/10:is(.dark *){background-color:#ffffff1a}.dark\:from-neutral-800:is(.dark *){--tw-gradient-from: #262626 var(--tw-gradient-from-position);--tw-gradient-to: rgb(38 38 38 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-neutral-900:is(.dark *){--tw-gradient-to: #171717 var(--tw-gradient-to-position)}.dark\:text-amber-200:is(.dark *){--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}.dark\:text-amber-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.dark\:text-amber-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.dark\:text-brand-200:is(.dark *){--tw-text-opacity: 1;color:rgb(211 238 180 / var(--tw-text-opacity, 1))}.dark\:text-brand-300:is(.dark *){--tw-text-opacity: 1;color:rgb(182 227 130 / var(--tw-text-opacity, 1))}.dark\:text-brand-400:is(.dark *){--tw-text-opacity: 1;color:rgb(146 212 68 / var(--tw-text-opacity, 1))}.dark\:text-brand-400\/10:is(.dark *){color:#92d4441a}.dark\:text-green-200:is(.dark *){--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}.dark\:text-green-300:is(.dark *){--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark\:text-neutral-100:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.dark\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.dark\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.dark\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.dark\:text-neutral-500:is(.dark *){--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.dark\:text-neutral-600:is(.dark *){--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.dark\:text-neutral-900:is(.dark *){--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.dark\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-slate-100:is(.dark *){--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:shadow-black\/40:is(.dark *){--tw-shadow-color: rgb(0 0 0 / .4);--tw-shadow: var(--tw-shadow-colored)}.dark\:ring-neutral-900:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(23 23 23 / var(--tw-ring-opacity, 1))}.dark\:placeholder\:text-neutral-500:is(.dark *)::-moz-placeholder{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.dark\:placeholder\:text-neutral-500:is(.dark *)::placeholder{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.dark\:hover\:border-neutral-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(82 82 82 / var(--tw-border-opacity, 1))}.dark\:hover\:bg-brand-900\/20:hover:is(.dark *){background-color:#304b1133}.dark\:hover\:bg-neutral-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-neutral-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-neutral-800\/40:hover:is(.dark *){background-color:#26262666}.dark\:hover\:bg-neutral-800\/50:hover:is(.dark *){background-color:#26262680}.dark\:hover\:bg-red-900\/20:hover:is(.dark *){background-color:#7f1d1d33}.dark\:hover\:bg-red-900\/30:hover:is(.dark *){background-color:#7f1d1d4d}.dark\:hover\:text-brand-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(146 212 68 / var(--tw-text-opacity, 1))}.dark\:hover\:text-neutral-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.dark\:hover\:text-neutral-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}@media (min-width: 400px){.min-\[400px\]\:text-\[26px\]{font-size:26px}}@media (min-width: 640px){.sm\:left-4{left:1rem}.sm\:left-8{left:2rem}.sm\:right-4{right:1rem}.sm\:top-\[65px\]{top:65px}.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\:-mt-\[97px\]{margin-top:-97px}.sm\:block{display:block}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:hidden{display:none}.sm\:h-14{height:3.5rem}.sm\:h-16{height:4rem}.sm\:h-20{height:5rem}.sm\:h-96{height:24rem}.sm\:min-h-\[85vh\]{min-height:85vh}.sm\:w-64{width:16rem}.sm\:w-72{width:18rem}.sm\:w-\[min\(92vw\,520px\)\]{width:min(92vw,520px)}.sm\:w-auto{width:auto}.sm\:flex-none{flex:none}.sm\:shrink-0{flex-shrink:0}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.sm\:grid-cols-\[10rem_1fr\]{grid-template-columns:10rem 1fr}.sm\:grid-cols-\[16rem_1fr\]{grid-template-columns:16rem 1fr}.sm\:grid-cols-\[1fr_120px\]{grid-template-columns:1fr 120px}.sm\:grid-cols-\[1fr_120px_1fr\]{grid-template-columns:1fr 120px 1fr}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:gap-8{gap:2rem}.sm\:p-10{padding:2.5rem}.sm\:p-4{padding:1rem}.sm\:p-5{padding:1.25rem}.sm\:p-6{padding:1.5rem}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-14{padding-top:3.5rem;padding-bottom:3.5rem}.sm\:py-16{padding-top:4rem;padding-bottom:4rem}.sm\:py-7{padding-top:1.75rem;padding-bottom:1.75rem}.sm\:py-\[34px\]{padding-top:34px;padding-bottom:34px}.sm\:pb-10{padding-bottom:2.5rem}.sm\:pb-14{padding-bottom:3.5rem}.sm\:pl-11{padding-left:2.75rem}.sm\:pl-8{padding-left:2rem}.sm\:pt-1{padding-top:.25rem}.sm\:pt-14{padding-top:3.5rem}.sm\:pt-8{padding-top:2rem}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\:text-5xl{font-size:3rem;line-height:1}.sm\:text-\[11px\]{font-size:11px}.sm\:text-\[44px\]{font-size:44px}.sm\:text-\[46px\]{font-size:46px}.sm\:text-\[clamp\(34px\,5vw\,60px\)\]{font-size:clamp(34px,5vw,60px)}.sm\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:tracking-\[3px\]{letter-spacing:3px}}@media (min-width: 641px){.min-\[641px\]\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.min-\[641px\]\:border-b-0{border-bottom-width:0px}.min-\[641px\]\:border-r{border-right-width:1px}.min-\[641px\]\:last\:border-r-0:last-child{border-right-width:0px}}@media (min-width: 768px){.md\:order-1{order:1}.md\:order-2{order:2}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 901px){.min-\[901px\]\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 981px){.min-\[981px\]\:grid-cols-\[minmax\(0\,1\.35fr\)_minmax\(320px\,1fr\)\]{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr)}}@media (min-width: 1024px){.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:w-80{width:20rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:text-\[60px\]{font-size:60px}}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\:\:-webkit-search-cancel-button\]\:hidden::-webkit-search-cancel-button{display:none}
diff --git a/hifi/assets/index-UdfsXj4H.css b/hifi/assets/index-UdfsXj4H.css
new file mode 100644
index 0000000..26cef3a
--- /dev/null
+++ b/hifi/assets/index-UdfsXj4H.css
@@ -0,0 +1 @@
+@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-vietnamese-400-normal-Dpl4UHAZ.woff2) format("woff2"),url(/assets/barlow-vietnamese-400-normal-BFeobeCK.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-latin-ext-400-normal-HxX4XjxC.woff2) format("woff2"),url(/assets/barlow-latin-ext-400-normal-CvBsJvxq.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/barlow-latin-400-normal-qiz4-Cze.woff2) format("woff2"),url(/assets/barlow-latin-400-normal-fsAxiSwU.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-vietnamese-500-normal-zTViEIzf.woff2) format("woff2"),url(/assets/barlow-vietnamese-500-normal-GNfB7rCE.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-latin-ext-500-normal-DOaysfXq.woff2) format("woff2"),url(/assets/barlow-latin-ext-500-normal-CJPcKP2Q.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-latin-500-normal-BPAOfeC8.woff2) format("woff2"),url(/assets/barlow-latin-500-normal-C1h8hMer.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-vietnamese-600-normal-DcjprdFV.woff2) format("woff2"),url(/assets/barlow-vietnamese-600-normal-CA_GiK2e.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-latin-ext-600-normal-B8NK_A3D.woff2) format("woff2"),url(/assets/barlow-latin-ext-600-normal-DMVRjfRT.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-latin-600-normal-DILqtrty.woff2) format("woff2"),url(/assets/barlow-latin-600-normal-CNwfPWQD.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-vietnamese-700-normal-D6euyNzi.woff2) format("woff2"),url(/assets/barlow-vietnamese-700-normal-4Jt4k04K.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-latin-ext-700-normal-BLuWmldJ.woff2) format("woff2"),url(/assets/barlow-latin-ext-700-normal-CctuGmmz.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/barlow-latin-700-normal-A9pxMQ4z.woff2) format("woff2"),url(/assets/barlow-latin-700-normal-__SGTsZ1.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-condensed-vietnamese-500-normal-DjeaNLFD.woff2) format("woff2"),url(/assets/barlow-condensed-vietnamese-500-normal-CsrJDWc5.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-condensed-latin-ext-500-normal-yA5ONLQ9.woff2) format("woff2"),url(/assets/barlow-condensed-latin-ext-500-normal-B1RE8WP7.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/barlow-condensed-latin-500-normal-BgYH2mbd.woff2) format("woff2"),url(/assets/barlow-condensed-latin-500-normal-HIEiP5Ov.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-condensed-vietnamese-600-normal-A5AYRdjN.woff2) format("woff2"),url(/assets/barlow-condensed-vietnamese-600-normal-CNlPk46_.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-condensed-latin-ext-600-normal-18ESti3H.woff2) format("woff2"),url(/assets/barlow-condensed-latin-ext-600-normal-Clv9cIcR.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Barlow Condensed;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/barlow-condensed-latin-600-normal-DepVgxBB.woff2) format("woff2"),url(/assets/barlow-condensed-latin-600-normal-BFJEwTuo.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Michroma;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/michroma-latin-ext-400-normal-BeYM1uOO.woff2) format("woff2"),url(/assets/michroma-latin-ext-400-normal-DlRaauac.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Michroma;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/michroma-latin-400-normal-4gS0VCia.woff2) format("woff2"),url(/assets/michroma-latin-400-normal-C7Pn7qca.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--site-font, ui-sans-serif, system-ui, sans-serif);font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-5{bottom:-1.25rem}.-left-1\/3{left:-33.333333%}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-right-\[60px\]{right:-60px}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.-top-3{top:-.75rem}.-top-\[60px\]{top:-60px}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-2\.5{left:.625rem}.left-3\.5{left:.875rem}.left-4{left:1rem}.left-5{left:1.25rem}.left-6{left:1.5rem}.left-\[14px\]{left:14px}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-3\.5{top:.875rem}.top-4{top:1rem}.top-8{top:2rem}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[150\]{z-index:150}.z-\[200\]{z-index:200}.z-\[300\]{z-index:300}.z-\[400\]{z-index:400}.z-\[60\]{z-index:60}.order-1{order:1}.order-2{order:2}.col-span-full{grid-column:1 / -1}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.-mt-\[89px\]{margin-top:-89px}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-3\.5{margin-bottom:.875rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-7{margin-bottom:1.75rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-9{margin-left:2.25rem}.ml-auto{margin-left:auto}.mr-3{margin-right:.75rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-3\.5{margin-top:.875rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-6{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.\!hidden{display:none!important}.hidden{display:none}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.h-0\.5{height:.125rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-24{height:6rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-\[17px\]{height:17px}.h-\[18px\]{height:18px}.h-\[190px\]{height:190px}.h-\[210px\]{height:210px}.h-\[22px\]{height:22px}.h-\[46px\]{height:46px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-64{max-height:16rem}.max-h-\[360px\]{max-height:360px}.max-h-\[45vh\]{max-height:45vh}.max-h-\[60vh\]{max-height:60vh}.max-h-\[85vh\]{max-height:85vh}.max-h-\[90vh\]{max-height:90vh}.min-h-0{min-height:0px}.min-h-\[100svh\]{min-height:100svh}.min-h-\[10rem\]{min-height:10rem}.min-h-\[560px\]{min-height:560px}.min-h-\[60vh\]{min-height:60vh}.min-h-\[70vh\]{min-height:70vh}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[17px\]{width:17px}.w-\[18px\]{width:18px}.w-\[190px\]{width:190px}.w-\[22px\]{width:22px}.w-\[46px\]{width:46px}.w-\[min\(92vw\,380px\)\]{width:min(92vw,380px)}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-\[220px\]{min-width:220px}.min-w-\[640px\]{min-width:640px}.min-w-\[90px\]{min-width:90px}.min-w-\[9rem\]{min-width:9rem}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-\[1280px\]{max-width:1280px}.max-w-\[160px\]{max-width:160px}.max-w-\[1880px\]{max-width:1880px}.max-w-\[520px\]{max-width:520px}.max-w-\[720px\]{max-width:720px}.max-w-\[85\%\]{max-width:85%}.max-w-\[8rem\]{max-width:8rem}.max-w-\[calc\(100\%-16px\)\]{max-width:calc(100% - 16px)}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.origin-left{transform-origin:left}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-12{--tw-rotate: 12deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.touch-pan-y{--tw-pan-y: pan-y;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness: mandatory}.snap-start{scroll-snap-align:start}.snap-center{scroll-snap-align:center}.scroll-mt-20{scroll-margin-top:5rem}.scroll-mt-4{scroll-margin-top:1rem}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[18px\]{gap:18px}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-x-\[18px\]{-moz-column-gap:18px;column-gap:18px}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-neutral-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(245 245 245 / var(--tw-divide-opacity, 1))}.divide-neutral-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 229 229 / var(--tw-divide-opacity, 1))}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[10px\]{border-radius:10px}.rounded-\[14px\]{border-radius:14px}.rounded-\[18px\]{border-radius:18px}.rounded-\[3px\]{border-radius:3px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.rounded-b-xl{border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.border{border-width:1px}.border-0{border-width:0px}.border-4{border-width:4px}.border-\[1\.5px\]{border-width:1.5px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.border-amber-400{--tw-border-opacity: 1;border-color:rgb(251 191 36 / var(--tw-border-opacity, 1))}.border-brand-400{--tw-border-opacity: 1;border-color:rgb(146 212 68 / var(--tw-border-opacity, 1))}.border-brand-500{--tw-border-opacity: 1;border-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-neutral-100{--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1))}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-neutral-300{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity, 1))}.border-neutral-700{--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity, 1))}.border-neutral-800{--tw-border-opacity: 1;border-color:rgb(38 38 38 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-white\/10{border-color:#ffffff1a}.border-white\/15{border-color:#ffffff26}.border-white\/30{border-color:#ffffff4d}.border-t-brand-500{--tw-border-opacity: 1;border-top-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.bg-\[\#0a0c06\]{--tw-bg-opacity: 1;background-color:rgb(10 12 6 / var(--tw-bg-opacity, 1))}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-black\/50{background-color:#00000080}.bg-black\/55{background-color:#0000008c}.bg-black\/60{background-color:#0009}.bg-black\/70{background-color:#000000b3}.bg-black\/90{background-color:#000000e6}.bg-brand-100{--tw-bg-opacity: 1;background-color:rgb(233 246 218 / var(--tw-bg-opacity, 1))}.bg-brand-400{--tw-bg-opacity: 1;background-color:rgb(146 212 68 / var(--tw-bg-opacity, 1))}.bg-brand-50{--tw-bg-opacity: 1;background-color:rgb(245 251 238 / var(--tw-bg-opacity, 1))}.bg-brand-500{--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.bg-brand-500\/10{background-color:#6ba6261a}.bg-brand-500\/60{background-color:#6ba62699}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.bg-neutral-200{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity, 1))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity, 1))}.bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity, 1))}.bg-neutral-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.bg-neutral-800{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.bg-neutral-900\/10{background-color:#1717171a}.bg-neutral-900\/85{background-color:#171717d9}.bg-neutral-950{--tw-bg-opacity: 1;background-color:rgb(10 10 10 / var(--tw-bg-opacity, 1))}.bg-neutral-950\/90{background-color:#0a0a0ae6}.bg-neutral-950\/95{background-color:#0a0a0af2}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-50\/40{background-color:#fef2f266}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-sky-500{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\/10{background-color:#ffffff1a}.bg-white\/5{background-color:#ffffff0d}.bg-white\/95{background-color:#fffffff2}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-black\/70{--tw-gradient-from: rgb(0 0 0 / .7) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-black\/85{--tw-gradient-from: rgb(0 0 0 / .85) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-neutral-700{--tw-gradient-from: #404040 var(--tw-gradient-from-position);--tw-gradient-to: rgb(64 64 64 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-neutral-950{--tw-gradient-from: #0a0a0a var(--tw-gradient-from-position);--tw-gradient-to: rgb(10 10 10 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-white{--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-black\/10{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(0 0 0 / .1) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-black\/20{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(0 0 0 / .2) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-neutral-950\/80{--tw-gradient-to: rgb(10 10 10 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(10 10 10 / .8) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-white\/40{--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / .4) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-black\/40{--tw-gradient-to: rgb(0 0 0 / .4) var(--tw-gradient-to-position)}.to-neutral-50{--tw-gradient-to: #fafafa var(--tw-gradient-to-position)}.to-neutral-900{--tw-gradient-to: #171717 var(--tw-gradient-to-position)}.to-neutral-950\/40{--tw-gradient-to: rgb(10 10 10 / .4) var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.bg-cover{background-size:cover}.bg-center{background-position:center}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[22px\]{padding:22px}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[22px\]{padding-left:22px;padding-right:22px}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[22px\]{padding-top:22px;padding-bottom:22px}.py-\[26px\]{padding-top:26px;padding-bottom:26px}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-24{padding-bottom:6rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pl-11{padding-left:2.75rem}.pl-2{padding-left:.5rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pl-\[42px\]{padding-left:42px}.pr-11{padding-right:2.75rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pr-8{padding-right:2rem}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pt-3{padding-top:.75rem}.pt-3\.5{padding-top:.875rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:var(--site-font, ui-sans-serif, system-ui, sans-serif)}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[17px\]{font-size:17px}.text-\[22px\]{font-size:22px}.text-\[34px\]{font-size:34px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.normal-case{text-transform:none}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-\[1\.08\]{line-height:1.08}.leading-\[1\.4\]{line-height:1.4}.leading-\[1\.55\]{line-height:1.55}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.tracking-\[0\.2em\]{letter-spacing:.2em}.tracking-\[2px\]{letter-spacing:2px}.tracking-\[3px\]{letter-spacing:3px}.tracking-\[4px\]{letter-spacing:4px}.tracking-\[6px\]{letter-spacing:6px}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-brand-300{--tw-text-opacity: 1;color:rgb(182 227 130 / var(--tw-text-opacity, 1))}.text-brand-400{--tw-text-opacity: 1;color:rgb(146 212 68 / var(--tw-text-opacity, 1))}.text-brand-500{--tw-text-opacity: 1;color:rgb(107 166 38 / var(--tw-text-opacity, 1))}.text-brand-500\/10{color:#6ba6261a}.text-brand-600{--tw-text-opacity: 1;color:rgb(88 137 31 / var(--tw-text-opacity, 1))}.text-brand-700{--tw-text-opacity: 1;color:rgb(72 112 26 / var(--tw-text-opacity, 1))}.text-brand-800{--tw-text-opacity: 1;color:rgb(59 91 21 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-neutral-100{--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.text-neutral-200{--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.text-neutral-300{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.text-neutral-800{--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity, 1))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-neutral-950{--tw-text-opacity: 1;color:rgb(10 10 10 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\/70{color:#ffffffb3}.text-white\/80{color:#fffc}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.accent-brand-500{accent-color:#6ba626}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_-8px_24px_rgba\(0\,0\,0\,0\.08\)\]{--tw-shadow: 0 -8px 24px rgba(0,0,0,.08);--tw-shadow-colored: 0 -8px 24px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_10px_rgba\(107\,166\,38\,0\.7\)\]{--tw-shadow: 0 0 10px rgba(107,166,38,.7);--tw-shadow-colored: 0 0 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_24px_60px_rgba\(0\,0\,0\,0\.55\)\]{--tw-shadow: 0 24px 60px rgba(0,0,0,.55);--tw-shadow-colored: 0 24px 60px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-brand-500\/30{--tw-shadow-color: rgb(107 166 38 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-neutral-900\/20{--tw-shadow-color: rgb(23 23 23 / .2);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-brand-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(146 212 68 / var(--tw-ring-opacity, 1))}.ring-brand-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 166 38 / var(--tw-ring-opacity, 1))}.ring-brand-500\/30{--tw-ring-color: rgb(107 166 38 / .3)}.ring-brand-500\/40{--tw-ring-color: rgb(107 166 38 / .4)}.ring-neutral-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(82 82 82 / var(--tw-ring-opacity, 1))}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity, 1))}.ring-white\/50{--tw-ring-color: rgb(255 255 255 / .5)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[border-color\,box-shadow\]{transition-property:border-color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[filter\,box-shadow\]{transition-property:filter,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.will-change-transform{will-change:transform}.\[scrollbar-width\:none\]{scrollbar-width:none}html{scroll-behavior:smooth}.marquee-viewport{-webkit-mask-image:linear-gradient(to right,transparent,black 6%,black 94%,transparent);mask-image:linear-gradient(to right,transparent,black 6%,black 94%,transparent)}.page-texture{background-color:#f6f5f0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:180px 180px}.dark .page-texture{background-color:#0a0b07;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}.kf-page{--kf-pagebg: linear-gradient(120deg, #eef0ea 0%, #f6f8f3 45%, #fbfcf9 100%);--kf-card: #ffffff;--kf-cardbrd: #e4e8dc;--kf-text: #23271d;--kf-text2: #2a2e24;--kf-muted: #6c7360;--kf-label: #5f6650;--kf-field: #fafcf6;--kf-fieldbrd: #dde2d3;--kf-fieldicon: #a7ad9d;--kf-accent: #a4d417;--kf-accent2: #4f7a00;--kf-accentsoft: #f2f8df;--kf-pill: #ffffff;--kf-pillbrd: #dfe4d6;--kf-shadow: 0 24px 60px rgba(60, 70, 40, .08);--kf-shadow2: 0 16px 40px rgba(60, 70, 40, .06);--kf-divider: #e8ecdf;--kf-topo: #d7dccd;--kf-pkgbg: #f4fbe4;--kf-pkgbrd: #cfe89a;--kf-btntext: #1f2417;--kf-scrim: linear-gradient(90deg, rgba(244, 246, 241, .35) 0%, rgba(244, 246, 241, .55) 55%, rgba(246, 248, 243, 1) 100%)}.dark .kf-page{--kf-pagebg: linear-gradient(120deg, #181b0f 0%, #111409 45%, #0a0c06 100%);--kf-card: #14170e;--kf-cardbrd: rgba(168, 225, 12, .16);--kf-text: #f3f6ea;--kf-text2: #e8ece0;--kf-muted: #9aa38c;--kf-label: #8f987f;--kf-field: rgba(0, 0, 0, .35);--kf-fieldbrd: #2c3323;--kf-fieldicon: #5f6852;--kf-accent: #a8e10c;--kf-accent2: #b6e619;--kf-accentsoft: rgba(168, 225, 12, .1);--kf-pill: #14170e;--kf-pillbrd: rgba(168, 225, 12, .28);--kf-shadow: 0 24px 60px rgba(0, 0, 0, .55);--kf-shadow2: 0 16px 40px rgba(0, 0, 0, .45);--kf-divider: rgba(168, 225, 12, .15);--kf-pkgbg: rgba(168, 225, 12, .08);--kf-pkgbrd: rgba(168, 225, 12, .4);--kf-btntext: #0f1208}.kontakt-sektion{background-image:url(/assets/bg-light-CBAG2tPV.webp);background-size:cover;background-position:center}.dark .kontakt-sektion{background-image:url(/assets/bg-dark-B4R1klEI.webp)}.kf-page input::-moz-placeholder,.kf-page textarea::-moz-placeholder{color:var(--kf-fieldicon)}.kf-page input::placeholder,.kf-page textarea::placeholder{color:var(--kf-fieldicon)}.kf-page input:focus,.kf-page textarea:focus{border-color:var(--kf-accent)!important;box-shadow:0 0 0 3px #a4d41733}.grain-band{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");background-size:180px 180px}.dark .grain-band{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix in='noise' type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}html.hifi-cursor-on,html.hifi-cursor-on *{cursor:none!important}html.hifi-cursor-on :is(input,textarea,[contenteditable=true]){cursor:auto!important}.hifi-cursor{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:99999;opacity:1;transition:opacity .2s ease}.hifi-cursor[data-hidden=true]{opacity:0}.hifi-cursor__core{position:fixed;top:0;left:0;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:9999px;background:#7fd44a;box-shadow:0 0 0 1.5px #ffffffe6,0 0 10px #7fd44abf;transition:width .18s ease,height .18s ease,margin .18s ease,background-color .18s ease,opacity .15s ease}.hifi-cursor__orbit{position:fixed;top:0;left:0;opacity:0;transition:opacity .18s ease}.hifi-cursor__ring{position:absolute;width:38px;height:15px;margin:-7.5px 0 0 -19px;border:1px solid rgba(139,234,60,.85);border-radius:50%;transform:rotate(-24deg) scale(.6);transition:transform .22s ease}.hifi-cursor__sat{position:absolute;width:5px;height:5px;margin:-2.5px 0 0 -2.5px;border-radius:9999px;background:#eaffdb;box-shadow:0 0 6px #8bea3ce6}.hifi-cursor[data-state=hover] .hifi-cursor__orbit{opacity:1}.hifi-cursor[data-state=hover] .hifi-cursor__core{width:16px;height:16px;margin:-8px 0 0 -8px;background:#8bea3c;box-shadow:0 0 0 1.5px #fffffff2,0 0 12px #8bea3cd9}.hifi-cursor[data-state=hover] .hifi-cursor__ring{transform:rotate(-24deg) scale(1.45)}.hifi-cursor[data-state=text] .hifi-cursor__core,.hifi-cursor[data-state=text] .hifi-cursor__orbit{opacity:0}.hifi-cursor[data-down=true] .hifi-cursor__core{width:20px;height:20px;margin:-10px 0 0 -10px}.hifi-cursor__pulse{position:fixed;top:0;left:0;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:9999px;border:1.5px solid rgba(139,234,60,.9);opacity:0}.hifi-cursor__pulse.is-live{animation:hifi-cursor-pulse .45s ease-out forwards}@keyframes hifi-cursor-pulse{0%{opacity:.9;transform:scale(1)}to{opacity:0;transform:scale(3.2)}}.rte-content ul{list-style:disc;padding-left:1.5rem}.rte-content ol{list-style:decimal;padding-left:1.5rem}.rte-content a{color:#3b82f6;text-decoration:underline}.rte-content p{margin:.25rem 0}.rte-content h2{font-size:1.125rem;font-weight:700;margin:.75rem 0 .25rem}.rte-content code{font-family:ui-monospace,monospace;background:#7d7d7d26;border-radius:.25rem;padding:.1rem .3rem;font-size:.85em}.legal-content h2{margin:2rem 0 .5rem;font-weight:600;color:#171717}.dark .legal-content h2{color:#fff}.legal-content h2:first-child{margin-top:0}.legal-content p{margin:.5rem 0}.legal-content ul{list-style:disc;padding-left:1.25rem;margin:.5rem 0}.legal-content li{margin:.25rem 0}.legal-content a{color:#6ba626;text-decoration:underline}.legal-content code{font-family:ui-monospace,monospace;background:#7d7d7d26;border-radius:.25rem;padding:.1rem .3rem;font-size:.85em}.live-editable{outline:1px dashed rgba(132,204,22,.75);outline-offset:3px;border-radius:2px;cursor:text;transition:outline-color .15s,background-color .15s}.live-editable-block{cursor:pointer}.live-editable:hover{outline:2px dashed rgb(132,204,22);background-color:#84cc1614}.live-editable:focus{outline:2px solid rgb(132,204,22);background-color:#84cc161a}.live-editable-changed,.live-editable-changed:hover{outline-color:#f59e0b}.live-editable:empty:before{content:attr(data-live-placeholder);opacity:.5;font-style:italic}.vehicle-search-input{box-shadow:inset 0 1px #ffffffe6,inset 0 -2px #0000000d,0 1px 2px #0000000f,0 6px 16px -6px #0000002e}.vehicle-search-input:focus{box-shadow:inset 0 1px #ffffffe6,inset 0 -2px #0000000d,0 2px 4px #00000014,0 12px 24px -8px #00000040}.dark .vehicle-search-input{box-shadow:inset 0 1px #ffffff12,inset 0 -2px #00000059,0 1px 2px #00000080,0 8px 20px -6px #000000b3}.dark .vehicle-search-input:focus{box-shadow:inset 0 1px #ffffff17,inset 0 -2px #00000059,0 2px 4px #00000080,0 14px 28px -8px #000c}.file\:mr-3::file-selector-button{margin-right:.75rem}.file\:rounded-md::file-selector-button{border-radius:.375rem}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-brand-500::file-selector-button{--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.file\:px-3::file-selector-button{padding-left:.75rem;padding-right:.75rem}.file\:py-2::file-selector-button{padding-top:.5rem;padding-bottom:.5rem}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-semibold::file-selector-button{font-weight:600}.file\:text-white::file-selector-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.placeholder\:text-neutral-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.placeholder\:text-neutral-400::placeholder{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.last\:border-b-0:last-child{border-bottom-width:0px}.hover\:-translate-y-0\.5:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-\[var\(--kf-accent\)\]:hover{border-color:var(--kf-accent)}.hover\:border-brand-500:hover{--tw-border-opacity: 1;border-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.hover\:border-neutral-400:hover{--tw-border-opacity: 1;border-color:rgb(163 163 163 / var(--tw-border-opacity, 1))}.hover\:bg-\[var\(--kf-accentsoft\)\]:hover{background-color:var(--kf-accentsoft)}.hover\:bg-amber-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.hover\:bg-brand-400:hover{--tw-bg-opacity: 1;background-color:rgb(146 212 68 / var(--tw-bg-opacity, 1))}.hover\:bg-brand-50:hover{--tw-bg-opacity: 1;background-color:rgb(245 251 238 / var(--tw-bg-opacity, 1))}.hover\:bg-brand-600:hover{--tw-bg-opacity: 1;background-color:rgb(88 137 31 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-50:hover{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.hover\:bg-neutral-800:hover{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.hover\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:bg-white\/15:hover{background-color:#ffffff26}.hover\:bg-white\/20:hover{background-color:#fff3}.hover\:text-brand-200:hover{--tw-text-opacity: 1;color:rgb(211 238 180 / var(--tw-text-opacity, 1))}.hover\:text-brand-500:hover{--tw-text-opacity: 1;color:rgb(107 166 38 / var(--tw-text-opacity, 1))}.hover\:text-brand-600:hover{--tw-text-opacity: 1;color:rgb(88 137 31 / var(--tw-text-opacity, 1))}.hover\:text-brand-700:hover{--tw-text-opacity: 1;color:rgb(72 112 26 / var(--tw-text-opacity, 1))}.hover\:text-neutral-600:hover{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.hover\:text-neutral-700:hover{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-80:hover{opacity:.8}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:brightness-110:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:grayscale-0:hover{--tw-grayscale: grayscale(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:file\:bg-brand-600::file-selector-button:hover{--tw-bg-opacity: 1;background-color:rgb(88 137 31 / var(--tw-bg-opacity, 1))}.focus\:border-brand-500:focus{--tw-border-opacity: 1;border-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-brand-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(107 166 38 / var(--tw-ring-opacity, 1))}.active\:cursor-grabbing:active{cursor:grabbing}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:from-black\/95{--tw-gradient-from: rgb(0 0 0 / .95) var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.peer:checked~.peer-checked\:translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:bg-brand-500{--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.peer:disabled~.peer-disabled\:opacity-60{opacity:.6}.dark\:block:is(.dark *){display:block}.dark\:hidden:is(.dark *){display:none}.dark\:divide-neutral-800:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(38 38 38 / var(--tw-divide-opacity, 1))}.dark\:border-amber-500:is(.dark *){--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity, 1))}.dark\:border-amber-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(180 83 9 / var(--tw-border-opacity, 1))}.dark\:border-amber-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(120 53 15 / var(--tw-border-opacity, 1))}.dark\:border-green-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(20 83 45 / var(--tw-border-opacity, 1))}.dark\:border-neutral-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity, 1))}.dark\:border-neutral-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(38 38 38 / var(--tw-border-opacity, 1))}.dark\:border-red-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(127 29 29 / var(--tw-border-opacity, 1))}.dark\:border-t-brand-500:is(.dark *){--tw-border-opacity: 1;border-top-color:rgb(107 166 38 / var(--tw-border-opacity, 1))}.dark\:bg-amber-900\/20:is(.dark *){background-color:#78350f33}.dark\:bg-amber-900\/30:is(.dark *){background-color:#78350f4d}.dark\:bg-amber-900\/40:is(.dark *){background-color:#78350f66}.dark\:bg-amber-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 26 3 / var(--tw-bg-opacity, 1))}.dark\:bg-amber-950\/40:is(.dark *){background-color:#451a0366}.dark\:bg-brand-500:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(107 166 38 / var(--tw-bg-opacity, 1))}.dark\:bg-brand-900\/20:is(.dark *){background-color:#304b1133}.dark\:bg-brand-900\/40:is(.dark *){background-color:#304b1166}.dark\:bg-green-900\/20:is(.dark *){background-color:#14532d33}.dark\:bg-green-900\/40:is(.dark *){background-color:#14532d66}.dark\:bg-green-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 46 22 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-100:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(82 82 82 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-800\/50:is(.dark *){background-color:#26262680}.dark\:bg-neutral-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-900\/40:is(.dark *){background-color:#17171766}.dark\:bg-neutral-900\/95:is(.dark *){background-color:#171717f2}.dark\:bg-neutral-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(10 10 10 / var(--tw-bg-opacity, 1))}.dark\:bg-neutral-950\/95:is(.dark *){background-color:#0a0a0af2}.dark\:bg-red-900\/10:is(.dark *){background-color:#7f1d1d1a}.dark\:bg-red-900\/20:is(.dark *){background-color:#7f1d1d33}.dark\:bg-red-900\/40:is(.dark *){background-color:#7f1d1d66}.dark\:bg-red-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 10 10 / var(--tw-bg-opacity, 1))}.dark\:bg-slate-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.dark\:bg-white\/10:is(.dark *){background-color:#ffffff1a}.dark\:from-neutral-800:is(.dark *){--tw-gradient-from: #262626 var(--tw-gradient-from-position);--tw-gradient-to: rgb(38 38 38 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-neutral-900:is(.dark *){--tw-gradient-to: #171717 var(--tw-gradient-to-position)}.dark\:text-amber-200:is(.dark *){--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}.dark\:text-amber-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.dark\:text-amber-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.dark\:text-brand-200:is(.dark *){--tw-text-opacity: 1;color:rgb(211 238 180 / var(--tw-text-opacity, 1))}.dark\:text-brand-300:is(.dark *){--tw-text-opacity: 1;color:rgb(182 227 130 / var(--tw-text-opacity, 1))}.dark\:text-brand-400:is(.dark *){--tw-text-opacity: 1;color:rgb(146 212 68 / var(--tw-text-opacity, 1))}.dark\:text-brand-400\/10:is(.dark *){color:#92d4441a}.dark\:text-green-200:is(.dark *){--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}.dark\:text-green-300:is(.dark *){--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark\:text-neutral-100:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.dark\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.dark\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.dark\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.dark\:text-neutral-500:is(.dark *){--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.dark\:text-neutral-600:is(.dark *){--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.dark\:text-neutral-900:is(.dark *){--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.dark\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}.dark\:text-red-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-slate-100:is(.dark *){--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:shadow-black\/40:is(.dark *){--tw-shadow-color: rgb(0 0 0 / .4);--tw-shadow: var(--tw-shadow-colored)}.dark\:ring-neutral-900:is(.dark *){--tw-ring-opacity: 1;--tw-ring-color: rgb(23 23 23 / var(--tw-ring-opacity, 1))}.dark\:placeholder\:text-neutral-500:is(.dark *)::-moz-placeholder{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.dark\:placeholder\:text-neutral-500:is(.dark *)::placeholder{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.dark\:hover\:border-neutral-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(82 82 82 / var(--tw-border-opacity, 1))}.dark\:hover\:bg-brand-900\/20:hover:is(.dark *){background-color:#304b1133}.dark\:hover\:bg-neutral-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-neutral-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-neutral-800\/40:hover:is(.dark *){background-color:#26262666}.dark\:hover\:bg-neutral-800\/50:hover:is(.dark *){background-color:#26262680}.dark\:hover\:bg-neutral-800\/60:hover:is(.dark *){background-color:#26262699}.dark\:hover\:bg-red-900\/20:hover:is(.dark *){background-color:#7f1d1d33}.dark\:hover\:bg-red-900\/30:hover:is(.dark *){background-color:#7f1d1d4d}.dark\:hover\:text-brand-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(146 212 68 / var(--tw-text-opacity, 1))}.dark\:hover\:text-neutral-200:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.dark\:hover\:text-neutral-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}@media (min-width: 400px){.min-\[400px\]\:text-\[26px\]{font-size:26px}}@media (min-width: 640px){.sm\:left-4{left:1rem}.sm\:left-8{left:2rem}.sm\:right-4{right:1rem}.sm\:top-\[65px\]{top:65px}.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\:-mt-\[97px\]{margin-top:-97px}.sm\:block{display:block}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:hidden{display:none}.sm\:h-14{height:3.5rem}.sm\:h-16{height:4rem}.sm\:h-20{height:5rem}.sm\:h-96{height:24rem}.sm\:min-h-\[85vh\]{min-height:85vh}.sm\:w-64{width:16rem}.sm\:w-72{width:18rem}.sm\:w-\[min\(92vw\,520px\)\]{width:min(92vw,520px)}.sm\:w-auto{width:auto}.sm\:flex-none{flex:none}.sm\:shrink-0{flex-shrink:0}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.sm\:grid-cols-\[10rem_1fr\]{grid-template-columns:10rem 1fr}.sm\:grid-cols-\[16rem_1fr\]{grid-template-columns:16rem 1fr}.sm\:grid-cols-\[1fr_120px\]{grid-template-columns:1fr 120px}.sm\:grid-cols-\[1fr_120px_1fr\]{grid-template-columns:1fr 120px 1fr}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:gap-8{gap:2rem}.sm\:p-10{padding:2.5rem}.sm\:p-4{padding:1rem}.sm\:p-5{padding:1.25rem}.sm\:p-6{padding:1.5rem}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-14{padding-top:3.5rem;padding-bottom:3.5rem}.sm\:py-16{padding-top:4rem;padding-bottom:4rem}.sm\:py-7{padding-top:1.75rem;padding-bottom:1.75rem}.sm\:py-\[34px\]{padding-top:34px;padding-bottom:34px}.sm\:pb-10{padding-bottom:2.5rem}.sm\:pb-14{padding-bottom:3.5rem}.sm\:pl-11{padding-left:2.75rem}.sm\:pl-8{padding-left:2rem}.sm\:pt-1{padding-top:.25rem}.sm\:pt-14{padding-top:3.5rem}.sm\:pt-8{padding-top:2rem}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\:text-5xl{font-size:3rem;line-height:1}.sm\:text-\[11px\]{font-size:11px}.sm\:text-\[44px\]{font-size:44px}.sm\:text-\[46px\]{font-size:46px}.sm\:text-\[clamp\(34px\,5vw\,60px\)\]{font-size:clamp(34px,5vw,60px)}.sm\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:tracking-\[3px\]{letter-spacing:3px}}@media (min-width: 641px){.min-\[641px\]\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.min-\[641px\]\:border-b-0{border-bottom-width:0px}.min-\[641px\]\:border-r{border-right-width:1px}.min-\[641px\]\:last\:border-r-0:last-child{border-right-width:0px}}@media (min-width: 768px){.md\:order-1{order:1}.md\:order-2{order:2}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 901px){.min-\[901px\]\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 981px){.min-\[981px\]\:grid-cols-\[minmax\(0\,1\.35fr\)_minmax\(320px\,1fr\)\]{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr)}}@media (min-width: 1024px){.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:w-80{width:20rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:text-\[60px\]{font-size:60px}}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.\[\&\:\:-webkit-search-cancel-button\]\:hidden::-webkit-search-cancel-button{display:none}
diff --git a/hifi/assets/music-Co2R5rSR.js b/hifi/assets/music-CzZVX9lt.js
similarity index 98%
rename from hifi/assets/music-Co2R5rSR.js
rename to hifi/assets/music-CzZVX9lt.js
index 658d521..f57bc55 100644
--- a/hifi/assets/music-Co2R5rSR.js
+++ b/hifi/assets/music-CzZVX9lt.js
@@ -1,4 +1,4 @@
-import{I as a}from"./index-BlspSYV0.js";/**
+import{K as a}from"./index-ByR_n0g5.js";/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
diff --git a/hifi/assets/sortable.esm-D1g5h7xA.js b/hifi/assets/sortable.esm-feaRoI7N.js
similarity index 99%
rename from hifi/assets/sortable.esm-D1g5h7xA.js
rename to hifi/assets/sortable.esm-feaRoI7N.js
index ce29345..8c3c008 100644
--- a/hifi/assets/sortable.esm-D1g5h7xA.js
+++ b/hifi/assets/sortable.esm-feaRoI7N.js
@@ -1,4 +1,4 @@
-import{r as c,y as P,h as Oe}from"./index-BlspSYV0.js";function Rn(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(o=>o(r))},t)}const et=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function me(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function pt(e){return"nodeType"in e}function B(e){var t,n;return e?me(e)?e:pt(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function bt(e){const{Document:t}=B(e);return e instanceof t}function Be(e){return me(e)?!1:e instanceof B(e).HTMLElement}function Ut(e){return e instanceof B(e).SVGElement}function ye(e){return e?me(e)?e.document:pt(e)?bt(e)?e:Be(e)||Ut(e)?e.ownerDocument:document:document:document}const Q=et?c.useLayoutEffect:c.useEffect;function wt(e){const t=c.useRef(e);return Q(()=>{t.current=e}),c.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o{e.current=setInterval(r,o)},[]),n=c.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function ke(e,t){t===void 0&&(t=[e]);const n=c.useRef(e);return Q(()=>{n.current!==e&&(n.current=e)},t),n}function Fe(e,t){const n=c.useRef();return c.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Ge(e){const t=wt(e),n=c.useRef(null),r=c.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function dt(e){const t=c.useRef();return c.useEffect(()=>{t.current=e},[e]),t.current}let at={};function $e(e,t){return c.useMemo(()=>{if(t)return t;const n=at[e]==null?0:at[e]+1;return at[e]=n,e+"-"+n},[e,t])}function Wt(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{const a=Object.entries(s);for(const[l,u]of a){const f=i[l];f!=null&&(i[l]=f+e*u)}return i},{...t})}}const we=Wt(1),ze=Wt(-1);function En(e){return"clientX"in e&&"clientY"in e}function mt(e){if(!e)return!1;const{KeyboardEvent:t}=B(e.target);return t&&e instanceof t}function Mn(e){if(!e)return!1;const{TouchEvent:t}=B(e.target);return t&&e instanceof t}function ft(e){if(Mn(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return En(e)?{x:e.clientX,y:e.clientY}:null}const Je=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Je.Translate.toString(e),Je.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Ot="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function In(e){return e.matches(Ot)?e:e.querySelector(Ot)}const An={display:"none"};function On(e){let{id:t,value:n}=e;return P.createElement("div",{id:t,style:An},n)}function Tn(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return P.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Nn(){const[e,t]=c.useState("");return{announce:c.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Ht=c.createContext(null);function Ln(e){const t=c.useContext(Ht);c.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function kn(){const[e]=c.useState(()=>new Set),t=c.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[c.useCallback(r=>{let{type:o,event:i}=r;e.forEach(s=>{var a;return(a=s[o])==null?void 0:a.call(s,i)})},[e]),t]}const zn={draggable:`
+import{r as c,B as P,h as Oe}from"./index-ByR_n0g5.js";function Rn(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(o=>o(r))},t)}const et=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function me(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function pt(e){return"nodeType"in e}function B(e){var t,n;return e?me(e)?e:pt(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function bt(e){const{Document:t}=B(e);return e instanceof t}function Be(e){return me(e)?!1:e instanceof B(e).HTMLElement}function Ut(e){return e instanceof B(e).SVGElement}function ye(e){return e?me(e)?e.document:pt(e)?bt(e)?e:Be(e)||Ut(e)?e.ownerDocument:document:document:document}const Q=et?c.useLayoutEffect:c.useEffect;function wt(e){const t=c.useRef(e);return Q(()=>{t.current=e}),c.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o{e.current=setInterval(r,o)},[]),n=c.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function ke(e,t){t===void 0&&(t=[e]);const n=c.useRef(e);return Q(()=>{n.current!==e&&(n.current=e)},t),n}function Fe(e,t){const n=c.useRef();return c.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Ge(e){const t=wt(e),n=c.useRef(null),r=c.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function dt(e){const t=c.useRef();return c.useEffect(()=>{t.current=e},[e]),t.current}let at={};function $e(e,t){return c.useMemo(()=>{if(t)return t;const n=at[e]==null?0:at[e]+1;return at[e]=n,e+"-"+n},[e,t])}function Wt(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{const a=Object.entries(s);for(const[l,u]of a){const f=i[l];f!=null&&(i[l]=f+e*u)}return i},{...t})}}const we=Wt(1),ze=Wt(-1);function En(e){return"clientX"in e&&"clientY"in e}function mt(e){if(!e)return!1;const{KeyboardEvent:t}=B(e.target);return t&&e instanceof t}function Mn(e){if(!e)return!1;const{TouchEvent:t}=B(e.target);return t&&e instanceof t}function ft(e){if(Mn(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return En(e)?{x:e.clientX,y:e.clientY}:null}const Je=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Je.Translate.toString(e),Je.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Ot="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function In(e){return e.matches(Ot)?e:e.querySelector(Ot)}const An={display:"none"};function On(e){let{id:t,value:n}=e;return P.createElement("div",{id:t,style:An},n)}function Tn(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return P.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Nn(){const[e,t]=c.useState("");return{announce:c.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Ht=c.createContext(null);function Ln(e){const t=c.useContext(Ht);c.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function kn(){const[e]=c.useState(()=>new Set),t=c.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[c.useCallback(r=>{let{type:o,event:i}=r;e.forEach(s=>{var a;return(a=s[o])==null?void 0:a.call(s,i)})},[e]),t]}const zn={draggable:`
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
diff --git a/hifi/assets/trash-2-BGP0wMN7.js b/hifi/assets/trash-2-CQUo9mrD.js
similarity index 95%
rename from hifi/assets/trash-2-BGP0wMN7.js
rename to hifi/assets/trash-2-CQUo9mrD.js
index a71377b..0cbcca3 100644
--- a/hifi/assets/trash-2-BGP0wMN7.js
+++ b/hifi/assets/trash-2-CQUo9mrD.js
@@ -1,4 +1,4 @@
-import{I as a}from"./index-BlspSYV0.js";/**
+import{K as a}from"./index-ByR_n0g5.js";/**
* @license lucide-react v1.23.0 - ISC
*
* This source code is licensed under the ISC license.
diff --git a/hifi/index.html b/hifi/index.html
index 33b5fb5..7e76f3b 100644
--- a/hifi/index.html
+++ b/hifi/index.html
@@ -49,8 +49,8 @@
"sameAs": ["https://www.youtube.com/@hifiplanet2812"]
}
-
-
+
+