Initial commit: Kofferraum 3D Explorer
3D-Konfigurator, der aus Marke/Modell oder VIN eine parametrische Kofferraum-Näherung generiert (Three.js). Enthält Subwoofer-Box-Platzierung mit Passform-Check, animierte Heckklappe und Zwischenboden, Lackfarbwahl, gerundete Formen und Bloom-Postprocessing.
This commit is contained in:
commit
40a309df9b
5 changed files with 2029 additions and 0 deletions
380
data/cars.json
Normal file
380
data/cars.json
Normal file
|
|
@ -0,0 +1,380 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "vw-golf8",
|
||||||
|
"brand": "Volkswagen",
|
||||||
|
"model": "Golf",
|
||||||
|
"bodyType": "Kompaktklasse (Schrägheck)",
|
||||||
|
"cargoLiters": 381,
|
||||||
|
"cargoLitersMax": 1237,
|
||||||
|
"length_mm": 750,
|
||||||
|
"widthFloor_mm": 1000,
|
||||||
|
"widthShoulder_mm": 1300,
|
||||||
|
"height_mm": 500,
|
||||||
|
"sillHeight_mm": 700,
|
||||||
|
"underFloorDepth_mm": 130
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "vw-golf-variant",
|
||||||
|
"brand": "Volkswagen",
|
||||||
|
"model": "Golf Variant",
|
||||||
|
"bodyType": "Kombi",
|
||||||
|
"cargoLiters": 611,
|
||||||
|
"cargoLitersMax": 1642,
|
||||||
|
"length_mm": 1050,
|
||||||
|
"widthFloor_mm": 1050,
|
||||||
|
"widthShoulder_mm": 1320,
|
||||||
|
"height_mm": 550,
|
||||||
|
"sillHeight_mm": 690,
|
||||||
|
"underFloorDepth_mm": 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "vw-passat-variant",
|
||||||
|
"brand": "Volkswagen",
|
||||||
|
"model": "Passat Variant",
|
||||||
|
"bodyType": "Kombi",
|
||||||
|
"cargoLiters": 650,
|
||||||
|
"cargoLitersMax": 1780,
|
||||||
|
"length_mm": 1100,
|
||||||
|
"widthFloor_mm": 1100,
|
||||||
|
"widthShoulder_mm": 1380,
|
||||||
|
"height_mm": 600,
|
||||||
|
"sillHeight_mm": 680,
|
||||||
|
"underFloorDepth_mm": 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "vw-tiguan",
|
||||||
|
"brand": "Volkswagen",
|
||||||
|
"model": "Tiguan",
|
||||||
|
"bodyType": "Kompakt-SUV",
|
||||||
|
"cargoLiters": 615,
|
||||||
|
"cargoLitersMax": 1655,
|
||||||
|
"length_mm": 900,
|
||||||
|
"widthFloor_mm": 1050,
|
||||||
|
"widthShoulder_mm": 1350,
|
||||||
|
"height_mm": 750,
|
||||||
|
"sillHeight_mm": 750,
|
||||||
|
"underFloorDepth_mm": 190
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "vw-id4",
|
||||||
|
"brand": "Volkswagen",
|
||||||
|
"model": "ID.4",
|
||||||
|
"bodyType": "Elektro-SUV",
|
||||||
|
"cargoLiters": 543,
|
||||||
|
"cargoLitersMax": 1575,
|
||||||
|
"length_mm": 950,
|
||||||
|
"widthFloor_mm": 1000,
|
||||||
|
"widthShoulder_mm": 1330,
|
||||||
|
"height_mm": 700,
|
||||||
|
"sillHeight_mm": 720,
|
||||||
|
"underFloorDepth_mm": 180
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "bmw-3er",
|
||||||
|
"brand": "BMW",
|
||||||
|
"model": "3er Limousine",
|
||||||
|
"bodyType": "Limousine",
|
||||||
|
"cargoLiters": 480,
|
||||||
|
"cargoLitersMax": null,
|
||||||
|
"length_mm": 850,
|
||||||
|
"widthFloor_mm": 1000,
|
||||||
|
"widthShoulder_mm": 1320,
|
||||||
|
"height_mm": 550,
|
||||||
|
"sillHeight_mm": 770,
|
||||||
|
"underFloorDepth_mm": 150
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "bmw-x3",
|
||||||
|
"brand": "BMW",
|
||||||
|
"model": "X3",
|
||||||
|
"bodyType": "Mittelklasse-SUV",
|
||||||
|
"cargoLiters": 550,
|
||||||
|
"cargoLitersMax": 1600,
|
||||||
|
"length_mm": 900,
|
||||||
|
"widthFloor_mm": 1030,
|
||||||
|
"widthShoulder_mm": 1360,
|
||||||
|
"height_mm": 750,
|
||||||
|
"sillHeight_mm": 760,
|
||||||
|
"underFloorDepth_mm": 210
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "audi-a4-avant",
|
||||||
|
"brand": "Audi",
|
||||||
|
"model": "A4 Avant",
|
||||||
|
"bodyType": "Kombi",
|
||||||
|
"cargoLiters": 495,
|
||||||
|
"cargoLitersMax": 1495,
|
||||||
|
"length_mm": 1000,
|
||||||
|
"widthFloor_mm": 1050,
|
||||||
|
"widthShoulder_mm": 1330,
|
||||||
|
"height_mm": 550,
|
||||||
|
"sillHeight_mm": 700,
|
||||||
|
"underFloorDepth_mm": 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "audi-q5",
|
||||||
|
"brand": "Audi",
|
||||||
|
"model": "Q5",
|
||||||
|
"bodyType": "Mittelklasse-SUV",
|
||||||
|
"cargoLiters": 550,
|
||||||
|
"cargoLitersMax": 1520,
|
||||||
|
"length_mm": 950,
|
||||||
|
"widthFloor_mm": 1050,
|
||||||
|
"widthShoulder_mm": 1370,
|
||||||
|
"height_mm": 750,
|
||||||
|
"sillHeight_mm": 770,
|
||||||
|
"underFloorDepth_mm": 210
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "mb-c-tmodell",
|
||||||
|
"brand": "Mercedes-Benz",
|
||||||
|
"model": "C-Klasse T-Modell",
|
||||||
|
"bodyType": "Kombi",
|
||||||
|
"cargoLiters": 490,
|
||||||
|
"cargoLitersMax": 1510,
|
||||||
|
"length_mm": 1000,
|
||||||
|
"widthFloor_mm": 1000,
|
||||||
|
"widthShoulder_mm": 1310,
|
||||||
|
"height_mm": 550,
|
||||||
|
"sillHeight_mm": 710,
|
||||||
|
"underFloorDepth_mm": 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "mb-glc",
|
||||||
|
"brand": "Mercedes-Benz",
|
||||||
|
"model": "GLC",
|
||||||
|
"bodyType": "Mittelklasse-SUV",
|
||||||
|
"cargoLiters": 550,
|
||||||
|
"cargoLitersMax": 1620,
|
||||||
|
"length_mm": 950,
|
||||||
|
"widthFloor_mm": 1040,
|
||||||
|
"widthShoulder_mm": 1360,
|
||||||
|
"height_mm": 750,
|
||||||
|
"sillHeight_mm": 780,
|
||||||
|
"underFloorDepth_mm": 210
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "skoda-octavia-combi",
|
||||||
|
"brand": "Skoda",
|
||||||
|
"model": "Octavia Combi",
|
||||||
|
"bodyType": "Kombi",
|
||||||
|
"cargoLiters": 640,
|
||||||
|
"cargoLitersMax": 1700,
|
||||||
|
"length_mm": 1080,
|
||||||
|
"widthFloor_mm": 1050,
|
||||||
|
"widthShoulder_mm": 1340,
|
||||||
|
"height_mm": 580,
|
||||||
|
"sillHeight_mm": 680,
|
||||||
|
"underFloorDepth_mm": 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "skoda-superb-combi",
|
||||||
|
"brand": "Skoda",
|
||||||
|
"model": "Superb Combi",
|
||||||
|
"bodyType": "Kombi",
|
||||||
|
"cargoLiters": 660,
|
||||||
|
"cargoLitersMax": 1950,
|
||||||
|
"length_mm": 1100,
|
||||||
|
"widthFloor_mm": 1100,
|
||||||
|
"widthShoulder_mm": 1380,
|
||||||
|
"height_mm": 600,
|
||||||
|
"sillHeight_mm": 680,
|
||||||
|
"underFloorDepth_mm": 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "ford-focus-turnier",
|
||||||
|
"brand": "Ford",
|
||||||
|
"model": "Focus Turnier",
|
||||||
|
"bodyType": "Kombi",
|
||||||
|
"cargoLiters": 575,
|
||||||
|
"cargoLitersMax": 1620,
|
||||||
|
"length_mm": 1000,
|
||||||
|
"widthFloor_mm": 1000,
|
||||||
|
"widthShoulder_mm": 1300,
|
||||||
|
"height_mm": 550,
|
||||||
|
"sillHeight_mm": 690,
|
||||||
|
"underFloorDepth_mm": 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "opel-astra-st",
|
||||||
|
"brand": "Opel",
|
||||||
|
"model": "Astra Sports Tourer",
|
||||||
|
"bodyType": "Kombi",
|
||||||
|
"cargoLiters": 597,
|
||||||
|
"cargoLitersMax": 1634,
|
||||||
|
"length_mm": 1030,
|
||||||
|
"widthFloor_mm": 1030,
|
||||||
|
"widthShoulder_mm": 1310,
|
||||||
|
"height_mm": 560,
|
||||||
|
"sillHeight_mm": 680,
|
||||||
|
"underFloorDepth_mm": 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "toyota-corolla-ts",
|
||||||
|
"brand": "Toyota",
|
||||||
|
"model": "Corolla Touring Sports",
|
||||||
|
"bodyType": "Kombi",
|
||||||
|
"cargoLiters": 596,
|
||||||
|
"cargoLitersMax": 1606,
|
||||||
|
"length_mm": 1000,
|
||||||
|
"widthFloor_mm": 1000,
|
||||||
|
"widthShoulder_mm": 1310,
|
||||||
|
"height_mm": 550,
|
||||||
|
"sillHeight_mm": 700,
|
||||||
|
"underFloorDepth_mm": 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "toyota-rav4",
|
||||||
|
"brand": "Toyota",
|
||||||
|
"model": "RAV4",
|
||||||
|
"bodyType": "Mittelklasse-SUV",
|
||||||
|
"cargoLiters": 580,
|
||||||
|
"cargoLitersMax": 1690,
|
||||||
|
"length_mm": 950,
|
||||||
|
"widthFloor_mm": 1030,
|
||||||
|
"widthShoulder_mm": 1350,
|
||||||
|
"height_mm": 750,
|
||||||
|
"sillHeight_mm": 750,
|
||||||
|
"underFloorDepth_mm": 210
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "renault-clio",
|
||||||
|
"brand": "Renault",
|
||||||
|
"model": "Clio",
|
||||||
|
"bodyType": "Kleinwagen",
|
||||||
|
"cargoLiters": 391,
|
||||||
|
"cargoLitersMax": 1069,
|
||||||
|
"length_mm": 750,
|
||||||
|
"widthFloor_mm": 950,
|
||||||
|
"widthShoulder_mm": 1230,
|
||||||
|
"height_mm": 500,
|
||||||
|
"sillHeight_mm": 680,
|
||||||
|
"underFloorDepth_mm": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "peugeot-308-sw",
|
||||||
|
"brand": "Peugeot",
|
||||||
|
"model": "308 SW",
|
||||||
|
"bodyType": "Kombi",
|
||||||
|
"cargoLiters": 608,
|
||||||
|
"cargoLitersMax": 1634,
|
||||||
|
"length_mm": 1050,
|
||||||
|
"widthFloor_mm": 1000,
|
||||||
|
"widthShoulder_mm": 1300,
|
||||||
|
"height_mm": 560,
|
||||||
|
"sillHeight_mm": 690,
|
||||||
|
"underFloorDepth_mm": 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "fiat-500",
|
||||||
|
"brand": "Fiat",
|
||||||
|
"model": "500",
|
||||||
|
"bodyType": "Kleinstwagen",
|
||||||
|
"cargoLiters": 185,
|
||||||
|
"cargoLitersMax": 550,
|
||||||
|
"length_mm": 550,
|
||||||
|
"widthFloor_mm": 850,
|
||||||
|
"widthShoulder_mm": 1050,
|
||||||
|
"height_mm": 450,
|
||||||
|
"sillHeight_mm": 720,
|
||||||
|
"underFloorDepth_mm": 70
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "hyundai-tucson",
|
||||||
|
"brand": "Hyundai",
|
||||||
|
"model": "Tucson",
|
||||||
|
"bodyType": "Kompakt-SUV",
|
||||||
|
"cargoLiters": 620,
|
||||||
|
"cargoLitersMax": 1799,
|
||||||
|
"length_mm": 930,
|
||||||
|
"widthFloor_mm": 1050,
|
||||||
|
"widthShoulder_mm": 1360,
|
||||||
|
"height_mm": 760,
|
||||||
|
"sillHeight_mm": 740,
|
||||||
|
"underFloorDepth_mm": 190
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "kia-sportage",
|
||||||
|
"brand": "Kia",
|
||||||
|
"model": "Sportage",
|
||||||
|
"bodyType": "Kompakt-SUV",
|
||||||
|
"cargoLiters": 587,
|
||||||
|
"cargoLitersMax": 1715,
|
||||||
|
"length_mm": 920,
|
||||||
|
"widthFloor_mm": 1040,
|
||||||
|
"widthShoulder_mm": 1350,
|
||||||
|
"height_mm": 750,
|
||||||
|
"sillHeight_mm": 740,
|
||||||
|
"underFloorDepth_mm": 190
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "mazda-cx5",
|
||||||
|
"brand": "Mazda",
|
||||||
|
"model": "CX-5",
|
||||||
|
"bodyType": "Kompakt-SUV",
|
||||||
|
"cargoLiters": 522,
|
||||||
|
"cargoLitersMax": 1638,
|
||||||
|
"length_mm": 900,
|
||||||
|
"widthFloor_mm": 1030,
|
||||||
|
"widthShoulder_mm": 1340,
|
||||||
|
"height_mm": 730,
|
||||||
|
"sillHeight_mm": 750,
|
||||||
|
"underFloorDepth_mm": 190
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "volvo-v60",
|
||||||
|
"brand": "Volvo",
|
||||||
|
"model": "V60",
|
||||||
|
"bodyType": "Kombi",
|
||||||
|
"cargoLiters": 529,
|
||||||
|
"cargoLitersMax": 1441,
|
||||||
|
"length_mm": 1020,
|
||||||
|
"widthFloor_mm": 1030,
|
||||||
|
"widthShoulder_mm": 1330,
|
||||||
|
"height_mm": 560,
|
||||||
|
"sillHeight_mm": 700,
|
||||||
|
"underFloorDepth_mm": 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "mini-cooper-3d",
|
||||||
|
"brand": "Mini",
|
||||||
|
"model": "Cooper 3-Türer",
|
||||||
|
"bodyType": "Kleinwagen",
|
||||||
|
"cargoLiters": 211,
|
||||||
|
"cargoLitersMax": 731,
|
||||||
|
"length_mm": 650,
|
||||||
|
"widthFloor_mm": 900,
|
||||||
|
"widthShoulder_mm": 1150,
|
||||||
|
"height_mm": 480,
|
||||||
|
"sillHeight_mm": 700,
|
||||||
|
"underFloorDepth_mm": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "porsche-911-frunk",
|
||||||
|
"brand": "Porsche",
|
||||||
|
"model": "911 (Frunk)",
|
||||||
|
"bodyType": "Sportwagen – Fronthaube",
|
||||||
|
"cargoLiters": 132,
|
||||||
|
"cargoLitersMax": null,
|
||||||
|
"length_mm": 500,
|
||||||
|
"widthFloor_mm": 750,
|
||||||
|
"widthShoulder_mm": 950,
|
||||||
|
"height_mm": 350,
|
||||||
|
"sillHeight_mm": 600,
|
||||||
|
"underFloorDepth_mm": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tesla-model3",
|
||||||
|
"brand": "Tesla",
|
||||||
|
"model": "Model 3",
|
||||||
|
"bodyType": "Limousine (Elektro)",
|
||||||
|
"cargoLiters": 561,
|
||||||
|
"cargoLitersMax": null,
|
||||||
|
"length_mm": 900,
|
||||||
|
"widthFloor_mm": 1050,
|
||||||
|
"widthShoulder_mm": 1350,
|
||||||
|
"height_mm": 600,
|
||||||
|
"sillHeight_mm": 720,
|
||||||
|
"underFloorDepth_mm": 210
|
||||||
|
}
|
||||||
|
]
|
||||||
20
data/wmi.json
Normal file
20
data/wmi.json
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"WVW": "Volkswagen", "WV1": "Volkswagen", "WV2": "Volkswagen", "WV3": "Volkswagen",
|
||||||
|
"WBA": "BMW", "WBS": "BMW", "WBY": "BMW", "4US": "BMW",
|
||||||
|
"WAU": "Audi", "WA1": "Audi", "TRU": "Audi",
|
||||||
|
"WDB": "Mercedes-Benz", "WDD": "Mercedes-Benz", "WDC": "Mercedes-Benz", "WDF": "Mercedes-Benz",
|
||||||
|
"TMB": "Skoda",
|
||||||
|
"WF0": "Ford", "1FA": "Ford", "1FT": "Ford",
|
||||||
|
"W0L": "Opel",
|
||||||
|
"JTD": "Toyota", "JTN": "Toyota", "JTM": "Toyota", "SB1": "Toyota",
|
||||||
|
"VF1": "Renault",
|
||||||
|
"VF3": "Peugeot",
|
||||||
|
"ZFA": "Fiat",
|
||||||
|
"KMH": "Hyundai",
|
||||||
|
"KNA": "Kia", "KND": "Kia",
|
||||||
|
"JM1": "Mazda", "JMZ": "Mazda",
|
||||||
|
"YV1": "Volvo", "YV4": "Volvo",
|
||||||
|
"WMW": "Mini",
|
||||||
|
"WP0": "Porsche", "WP1": "Porsche",
|
||||||
|
"5YJ": "Tesla"
|
||||||
|
}
|
||||||
99
index.html
Normal file
99
index.html
Normal file
|
|
@ -0,0 +1,99 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Kofferraum 3D Explorer</title>
|
||||||
|
<link rel="stylesheet" href="style.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<header class="top">
|
||||||
|
<h1>Kofferraum 3D Explorer</h1>
|
||||||
|
<p class="subtitle">Automarke, Modell oder Fahrgestellnummer (VIN) eingeben — der Kofferraum wird als 3D-Näherung generiert.</p>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<section class="search-panel">
|
||||||
|
<div class="search-box">
|
||||||
|
<input id="searchInput" type="text" autocomplete="off" spellcheck="false"
|
||||||
|
placeholder="z. B. „VW Golf“, „Tiguan“ oder eine 17-stellige VIN …">
|
||||||
|
<button id="randomBtn" title="Zufälliges Modell">Zufall</button>
|
||||||
|
</div>
|
||||||
|
<div id="suggestions" class="suggestions" hidden></div>
|
||||||
|
<div id="hintBox" class="hint-box" hidden></div>
|
||||||
|
<div id="chips" class="chips"></div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="content" id="content" hidden>
|
||||||
|
<div class="side-col">
|
||||||
|
<div class="info-panel" id="infoPanel"></div>
|
||||||
|
|
||||||
|
<div class="sub-panel">
|
||||||
|
<h3>Subwoofer-Box platzieren</h3>
|
||||||
|
<div class="sub-presets" id="subPresets"></div>
|
||||||
|
<div class="sub-custom">
|
||||||
|
<label>B<input id="subW" type="number" min="10" max="150" value="40"><span>cm</span></label>
|
||||||
|
<label>H<input id="subH" type="number" min="10" max="100" value="35"><span>cm</span></label>
|
||||||
|
<label>T<input id="subD" type="number" min="10" max="100" value="40"><span>cm</span></label>
|
||||||
|
</div>
|
||||||
|
<div class="sub-actions">
|
||||||
|
<button id="subApply">Box einsetzen</button>
|
||||||
|
<button id="subRemove" class="ghost" hidden>Entfernen</button>
|
||||||
|
</div>
|
||||||
|
<div id="subStatus" class="sub-status" hidden></div>
|
||||||
|
<p class="sub-hint">Box mit der Maus im Kofferraum verschieben, um Passform zu testen.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="viewer-wrap">
|
||||||
|
<div id="viewer" class="viewer"></div>
|
||||||
|
<div class="viewer-toolbar">
|
||||||
|
<label class="switch-toggle">
|
||||||
|
<input type="checkbox" id="toggleLid" checked>
|
||||||
|
<span class="switch-track"><span class="switch-knob"></span></span>
|
||||||
|
<span class="switch-label">Heckklappe <strong id="lidStateLabel">offen</strong></span>
|
||||||
|
</label>
|
||||||
|
<label class="switch-toggle" id="floorToggleRow">
|
||||||
|
<input type="checkbox" id="toggleFloor">
|
||||||
|
<span class="switch-track"><span class="switch-knob"></span></span>
|
||||||
|
<span class="switch-label">Zwischenboden <strong id="floorStateLabel">unten</strong></span>
|
||||||
|
</label>
|
||||||
|
<label class="viewer-toggle">
|
||||||
|
<input type="checkbox" id="toggleCase">
|
||||||
|
Referenz-Koffer (55×40×20 cm) einblenden
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="paint-picker">
|
||||||
|
<span class="paint-label">Lackfarbe</span>
|
||||||
|
<div class="swatches" id="paintSwatches"></div>
|
||||||
|
</div>
|
||||||
|
<div class="viewer-hint">Ziehen (Hintergrund) zum Drehen · Ziehen (Box) zum Verschieben · Scrollen zum Zoomen</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="empty-state" id="emptyState">
|
||||||
|
<p>Noch kein Fahrzeug ausgewählt — probiere z. B. eines der Modelle oben, oder tippe eine Marke/ein Modell ein.</p>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<p>
|
||||||
|
Hinweis: Die Kofferraumvolumina (Liter) entsprechen öffentlich bekannten, nach VDA-Norm ermittelten
|
||||||
|
Herstellerangaben. Innenmaße, Radkastenform und die 3D-Geometrie sind gerundete,
|
||||||
|
<strong>parametrische Näherungen zur Veranschaulichung</strong> — keine exakten CAD-Daten der Hersteller.
|
||||||
|
Die VIN-Erkennung liest nur das Herstellerkürzel (WMI, erste 3 Zeichen) aus einer kleinen Demo-Tabelle.
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<script type="importmap">
|
||||||
|
{
|
||||||
|
"imports": {
|
||||||
|
"three": "https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js",
|
||||||
|
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script type="module" src="app.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
510
style.css
Normal file
510
style.css
Normal file
|
|
@ -0,0 +1,510 @@
|
||||||
|
:root {
|
||||||
|
--bg: #12151a;
|
||||||
|
--bg-panel: #1a1e25;
|
||||||
|
--bg-panel-2: #20252e;
|
||||||
|
--border: #2b323d;
|
||||||
|
--text: #e8eaed;
|
||||||
|
--text-dim: #9aa4b2;
|
||||||
|
--accent: #ff8a3d;
|
||||||
|
--accent-2: #4fc3f7;
|
||||||
|
font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
* { box-sizing: border-box; }
|
||||||
|
[hidden] { display: none !important; }
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
background: var(--bg);
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
header.top {
|
||||||
|
padding: 32px 20px 12px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
header.top h1 {
|
||||||
|
margin: 0 0 6px;
|
||||||
|
font-size: 1.7rem;
|
||||||
|
letter-spacing: -0.01em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subtitle {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--text-dim);
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
max-width: 1100px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-panel {
|
||||||
|
position: relative;
|
||||||
|
max-width: 640px;
|
||||||
|
margin: 0 auto 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-box {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#searchInput {
|
||||||
|
flex: 1;
|
||||||
|
padding: 14px 16px;
|
||||||
|
font-size: 1rem;
|
||||||
|
background: var(--bg-panel);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 10px;
|
||||||
|
color: var(--text);
|
||||||
|
outline: none;
|
||||||
|
transition: border-color 0.15s;
|
||||||
|
}
|
||||||
|
|
||||||
|
#searchInput:focus {
|
||||||
|
border-color: var(--accent-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
#randomBtn {
|
||||||
|
padding: 0 18px;
|
||||||
|
background: var(--bg-panel-2);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 10px;
|
||||||
|
color: var(--text);
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#randomBtn:hover {
|
||||||
|
border-color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.suggestions {
|
||||||
|
position: absolute;
|
||||||
|
top: calc(100% + 6px);
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
background: var(--bg-panel);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 10px;
|
||||||
|
overflow: hidden;
|
||||||
|
z-index: 20;
|
||||||
|
box-shadow: 0 12px 28px rgba(0,0,0,0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.suggestion-item {
|
||||||
|
padding: 10px 16px;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 12px;
|
||||||
|
font-size: 0.92rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.suggestion-item:hover, .suggestion-item.active {
|
||||||
|
background: var(--bg-panel-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.suggestion-item .s-name { color: var(--text); }
|
||||||
|
.suggestion-item .s-meta { color: var(--text-dim); font-size: 0.82rem; }
|
||||||
|
|
||||||
|
.hint-box {
|
||||||
|
margin-top: 10px;
|
||||||
|
padding: 10px 14px;
|
||||||
|
background: rgba(79,195,247,0.08);
|
||||||
|
border: 1px solid rgba(79,195,247,0.35);
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 0.88rem;
|
||||||
|
color: var(--accent-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.chips {
|
||||||
|
margin-top: 14px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 8px;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chip {
|
||||||
|
padding: 6px 12px;
|
||||||
|
background: var(--bg-panel);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 999px;
|
||||||
|
font-size: 0.82rem;
|
||||||
|
color: var(--text-dim);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chip:hover {
|
||||||
|
color: var(--text);
|
||||||
|
border-color: var(--accent-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 280px 1fr;
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 760px) {
|
||||||
|
.content { grid-template-columns: 1fr; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.side-col {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-panel, .sub-panel {
|
||||||
|
background: var(--bg-panel);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 14px;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-panel h3 {
|
||||||
|
margin: 0 0 12px;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-presets {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 6px;
|
||||||
|
margin-bottom: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-presets .chip.active {
|
||||||
|
color: var(--text);
|
||||||
|
border-color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-custom {
|
||||||
|
display: flex;
|
||||||
|
gap: 10px;
|
||||||
|
margin-bottom: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-custom label {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 4px;
|
||||||
|
font-size: 0.72rem;
|
||||||
|
color: var(--text-dim);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-custom input {
|
||||||
|
width: 100%;
|
||||||
|
padding: 8px;
|
||||||
|
background: var(--bg-panel-2);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 8px;
|
||||||
|
color: var(--text);
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-custom span {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-actions button {
|
||||||
|
flex: 1;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
background: var(--accent);
|
||||||
|
color: #1a1206;
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-actions button.ghost {
|
||||||
|
background: transparent;
|
||||||
|
color: var(--text-dim);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-actions button.ghost:hover {
|
||||||
|
color: var(--text);
|
||||||
|
border-color: var(--accent-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-status {
|
||||||
|
padding: 10px 12px;
|
||||||
|
border-radius: 8px;
|
||||||
|
font-size: 0.82rem;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-status.ok {
|
||||||
|
background: rgba(91,214,138,0.1);
|
||||||
|
border: 1px solid rgba(91,214,138,0.4);
|
||||||
|
color: #5bd68a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-status.bad {
|
||||||
|
background: rgba(255,90,90,0.1);
|
||||||
|
border: 1px solid rgba(255,90,90,0.4);
|
||||||
|
color: #ff7a7a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub-hint {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
color: var(--text-dim);
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-panel h2 {
|
||||||
|
margin: 0 0 2px;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-panel .body-type {
|
||||||
|
color: var(--text-dim);
|
||||||
|
font-size: 0.85rem;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.spec-row {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 8px 0;
|
||||||
|
border-top: 1px solid var(--border);
|
||||||
|
font-size: 0.88rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.spec-row .label { color: var(--text-dim); }
|
||||||
|
.spec-row .value { font-weight: 600; }
|
||||||
|
|
||||||
|
.legend {
|
||||||
|
margin-top: 14px;
|
||||||
|
padding-top: 12px;
|
||||||
|
border-top: 1px solid var(--border);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 6px;
|
||||||
|
font-size: 0.78rem;
|
||||||
|
color: var(--text-dim);
|
||||||
|
}
|
||||||
|
|
||||||
|
.legend .dot {
|
||||||
|
display: inline-block;
|
||||||
|
width: 9px;
|
||||||
|
height: 9px;
|
||||||
|
border-radius: 3px;
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dot-arch { background: #ff8a3d; }
|
||||||
|
.dot-case { background: #5bd68a; }
|
||||||
|
|
||||||
|
.legend-note {
|
||||||
|
margin: 14px 0 0;
|
||||||
|
padding-top: 12px;
|
||||||
|
border-top: 1px solid var(--border);
|
||||||
|
font-size: 0.78rem;
|
||||||
|
color: var(--text-dim);
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.spec-highlight {
|
||||||
|
background: var(--bg-panel-2);
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 14px;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.spec-highlight .num {
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.spec-highlight .unit {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: var(--text-dim);
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewer-wrap {
|
||||||
|
position: relative;
|
||||||
|
background: radial-gradient(circle at 50% 30%, #232935, #12151a 75%);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 14px;
|
||||||
|
overflow: hidden;
|
||||||
|
min-height: 420px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewer {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
min-height: 420px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paint-picker {
|
||||||
|
position: absolute;
|
||||||
|
top: 12px;
|
||||||
|
right: 14px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 9px;
|
||||||
|
background: rgba(0,0,0,0.4);
|
||||||
|
padding: 7px 12px;
|
||||||
|
border-radius: 999px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paint-label {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
color: var(--text-dim);
|
||||||
|
}
|
||||||
|
|
||||||
|
.swatches {
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.swatch {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
border-radius: 50%;
|
||||||
|
border: 2px solid rgba(255,255,255,0.15);
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.swatch:hover {
|
||||||
|
border-color: rgba(255,255,255,0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.swatch.active {
|
||||||
|
border-color: var(--accent);
|
||||||
|
box-shadow: 0 0 0 2px rgba(255,138,61,0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewer-hint {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 14px;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
color: var(--text-dim);
|
||||||
|
background: rgba(0,0,0,0.35);
|
||||||
|
padding: 4px 10px;
|
||||||
|
border-radius: 999px;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewer-toolbar {
|
||||||
|
position: absolute;
|
||||||
|
top: 12px;
|
||||||
|
left: 14px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewer-toggle {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 7px;
|
||||||
|
font-size: 0.78rem;
|
||||||
|
color: var(--text-dim);
|
||||||
|
background: rgba(0,0,0,0.35);
|
||||||
|
padding: 6px 12px;
|
||||||
|
border-radius: 999px;
|
||||||
|
cursor: pointer;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewer-toggle:hover {
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewer-toggle input {
|
||||||
|
accent-color: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.switch-toggle {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 9px;
|
||||||
|
font-size: 0.78rem;
|
||||||
|
color: var(--text);
|
||||||
|
background: rgba(0,0,0,0.4);
|
||||||
|
padding: 6px 12px 6px 8px;
|
||||||
|
border-radius: 999px;
|
||||||
|
cursor: pointer;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.switch-toggle input {
|
||||||
|
position: absolute;
|
||||||
|
opacity: 0;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.switch-track {
|
||||||
|
position: relative;
|
||||||
|
width: 34px;
|
||||||
|
height: 19px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: #4a4f58;
|
||||||
|
transition: background 0.2s;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.switch-knob {
|
||||||
|
position: absolute;
|
||||||
|
top: 2px;
|
||||||
|
left: 2px;
|
||||||
|
width: 15px;
|
||||||
|
height: 15px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: #fff;
|
||||||
|
transition: transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.switch-toggle input:checked ~ .switch-track {
|
||||||
|
background: var(--accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.switch-toggle input:checked ~ .switch-track .switch-knob {
|
||||||
|
transform: translateX(15px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.switch-label strong {
|
||||||
|
color: var(--accent);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-state {
|
||||||
|
text-align: center;
|
||||||
|
color: var(--text-dim);
|
||||||
|
padding: 60px 20px;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
max-width: 1100px;
|
||||||
|
margin: 20px auto 60px;
|
||||||
|
padding: 0 20px;
|
||||||
|
color: var(--text-dim);
|
||||||
|
font-size: 0.78rem;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue