Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
2021 lines (1895 loc) · 142 KB
/
Copy pathindex.html
File metadata and controls
2021 lines (1895 loc) · 142 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<!-- Primary Meta Tags -->
<title>MeshDoc – 3D-Modelle & STL prüfen und reparieren | Online & Kostenlos</title>
<meta name="title" content="MeshDoc – 3D-Modelle & STL prüfen und reparieren | Online & Kostenlos">
<meta name="description" content="3D-Modelle vor dem Slicen prüfen & reparieren: Behebt Non-Manifold-Kanten, offene Löcher & invertierte Normalen für STL, 3MF & OBJ. 100% lokal im Browser (Zero-Upload).">
<meta name="keywords" content="stl reparieren, stl datei reparieren, stl prüfen, stl checker, 3d modell reparieren, mesh repair, non manifold stl, 3d druck stl reparieren, invertierte normalen, stl löcher schließen, orca slicer stl fix, bambu studio non manifold, 3mf reparieren, obj mesh repair">
<meta name="author" content="Svender3D">
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
<link rel="canonical" href="https://www.meshdoc.de/">
<link rel="alternate" hreflang="en" href="https://www.meshdoc.de/">
<link rel="alternate" hreflang="en-US" href="https://www.meshdoc.de/">
<link rel="alternate" hreflang="de" href="https://www.meshdoc.de/?lang=de">
<link rel="alternate" hreflang="de-DE" href="https://www.meshdoc.de/?lang=de">
<link rel="alternate" hreflang="x-default" href="https://www.meshdoc.de/">
<!-- Core Web Vitals: Preload Critical Local Regular Font Only -->
<link rel="preload" href="assets/fonts/inter-regular.woff2" as="font" type="font/woff2" crossorigin>
<!-- Agentic Browsing & AI Discovery (WebMCP & llms.txt) -->
<meta name="ai-agent" content="enabled">
<meta name="ai-tools" content="diagnose_mesh, auto_repair_mesh, scale_mesh, smooth_mesh, decimate_mesh, analyze_overhangs, export_mesh">
<link rel="help" type="text/plain" title="LLMs Info" href="/llms.txt">
<link rel="model-context" href="/llms.txt">
<!-- Favicon, Theme & Machine-Readable Discovery -->
<meta name="theme-color" content="#1a1a1a">
<link rel="icon" type="image/svg+xml" href="assets/images/favicon.svg">
<link rel="alternate icon" type="image/x-icon" href="favicon.ico">
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">
<!-- Open Graph / Facebook / Discord -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://www.meshdoc.de/">
<meta property="og:site_name" content="MeshDoc by Svender3D">
<meta property="og:locale" content="de_DE">
<meta property="og:locale:alternate" content="en_US">
<meta property="og:title" content="MeshDoc – 3D-Modelle & STL prüfen und reparieren | Online & Kostenlos">
<meta property="og:description" content="3D-Modelle vor dem Slicen prüfen & reparieren: Behebt Non-Manifold-Kanten, offene Löcher & invertierte Normalen für STL, 3MF & OBJ. 100% lokal im Browser (Zero-Upload).">
<meta property="og:image" content="https://www.meshdoc.de/og-image.jpg">
<meta property="og:image:secure_url" content="https://www.meshdoc.de/og-image.jpg">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="MeshDoc – 3D-Modelle & STL prüfen und reparieren vor dem Slicen">
<!-- Twitter / X Card -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://www.meshdoc.de/">
<meta property="twitter:title" content="MeshDoc – 3D-Modelle & STL prüfen und reparieren | Online & Kostenlos">
<meta property="twitter:description" content="3D-Modelle vor dem Slicen prüfen & reparieren: Behebt Non-Manifold-Kanten, offene Löcher & invertierte Normalen für STL, 3MF & OBJ. 100% lokal im Browser (Zero-Upload).">
<meta property="twitter:image" content="https://www.meshdoc.de/og-image.jpg">
<!-- Schema.org JSON-LD Structured Data (WebApplication + HowTo + FAQPage) -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebSite",
"@id": "https://www.meshdoc.de/#website",
"url": "https://www.meshdoc.de/",
"name": "MeshDoc",
"description": "Die Qualitätskontrolle für 3D-Modelle vor dem Slicen – STL, 3MF & OBJ prüfen und reparieren.",
"inLanguage": ["de", "en"],
"publisher": {
"@type": "Organization",
"name": "Svender3D",
"url": "https://svender3d.de"
}
},
{
"@type": ["SoftwareApplication", "WebApplication"],
"@id": "https://www.meshdoc.de/#webapp",
"name": "MeshDoc",
"url": "https://www.meshdoc.de/",
"applicationCategory": "DesignApplication",
"operatingSystem": "All",
"softwareVersion": "1.7.1",
"browserRequirements": "Requires JavaScript. Requires HTML5 Canvas / WebGL.",
"inLanguage": ["de", "en"],
"isAccessibleForFree": true,
"screenshot": "https://www.meshdoc.de/og-image.jpg",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.9",
"reviewCount": "142",
"bestRating": "5",
"worstRating": "1"
},
"creator": {
"@type": "Organization",
"name": "Svender3D",
"url": "https://svender3d.de"
},
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "EUR"
},
"description": "MeshDoc ist die 100% lokale Qualitätskontrolle zwischen 3D-Modell und Slicer. Es analysiert und repariert STL-, 3MF- und OBJ-Dateien direkt im Browser: Automatisches Schließen offener Löcher per Ear-Clipping, Behebung von Non-Manifold-Kanten, Ausrichten invertierter Normalen, volumenerhaltende Taubin-Glättung, adaptive Polygon-Dezimierung und Multi-Format-Export.",
"featureList": [
"100% Zero-Upload: Vollständige lokale Geometrieverarbeitung im Browser",
"Erkennung und automatisches Schließen offener Netzkanten und Löcher (Ear-Clipping)",
"Behebung ungültiger Non-Manifold-Kanten und T-Junctions",
"Automatische Normalenausrichtung nach außen basierend auf Vorzeichenvolumen",
"Filterung degenerierter Null-Flächen und doppelter Dreiecke",
"Dynamische 3D-Überhang-Analyse mit Ampel-Heatmap (Grün/Gelb/Rot) und Schwellenwert-Regler",
"Volumenerhaltende Taubin-Oberflächenglättung mit Sagitta-Subdivision für perfekte Rundungen im Slicer",
"Adaptive Grid-Cluster Polygon-Dezimierung zur Dateigrößenreduktion",
"1-Klick Druckbett-Ausrichtung (Drop to Bed, Center on Bed, 90°-Drehung)",
"Automatische Einheiten-Skalierung (Zoll zu mm / mm zu Zoll)",
"Multi-Format-Export: Binary STL, ASCII STL, OBJ und 3MF-Pakete"
]
},
{
"@type": "HowTo",
"@id": "https://www.meshdoc.de/#howto",
"name": "3D-Modelle und STL-Dateien für den 3D-Druck prüfen und reparieren",
"description": "Schritt-für-Schritt-Anleitung zur lokalen Fehlerbehebung von Non-Manifold-Kanten, offenen Löchern und invertierten Normalen mit MeshDoc.",
"totalTime": "PT1M",
"step": [
{
"@type": "HowToStep",
"name": "3D-Datei ablegen",
"text": "Ziehe deine STL-, OBJ- oder 3MF-Datei per Drag & Drop direkt in den Browser. Die Datei wird zu 100% lokal ohne Server-Upload geladen.",
"url": "https://www.meshdoc.de/#upload-section"
},
{
"@type": "HowToStep",
"name": "Automatische Diagnose einsehen",
"text": "MeshDoc prüft die Topologie in Echtzeit auf offene Kanten, Non-Manifold-Stellen, invertierte Normalen, Überhangwinkel und Skalierungsanomalien.",
"url": "https://www.meshdoc.de/#diagnostics-section"
},
{
"@type": "HowToStep",
"name": "1-Klick Auto-Reparatur ausführen",
"text": "Klicke auf 'Auto-Reparatur starten', um Lücken wasserdicht zu schließen, Normalen auszurichten und T-Junctions zu verschweißen.",
"url": "https://www.meshdoc.de/#tools-section"
},
{
"@type": "HowToStep",
"name": "Slicer-bereite Datei herunterladen",
"text": "Exportiere das geprüfte wasserdichte Modell als Binary STL, 3MF-Paket oder OBJ für Bambu Studio, OrcaSlicer, PrusaSlicer oder Cura.",
"url": "https://www.meshdoc.de/#tools-section"
}
]
},
{
"@type": "FAQPage",
"@id": "https://www.meshdoc.de/#faq",
"mainEntity": [
{
"@type": "Question",
"name": "Was bedeutet Non-Manifold bei einer STL-Datei?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Ein Non-Manifold-Fehler beschreibt eine geometrisch ungültige oder nicht wasserdichte Mesh-Struktur (z. B. Kanten, an denen drei oder mehr Dreiecke anliegen, oder sich selbst schneidende Wände). Slicer können daraus kein eindeutiges Innen- und Außenvolumen berechnen, was zu fehlenden Schichten, Wandfehlern oder Druckabbrüchen führt."
}
},
{
"@type": "Question",
"name": "Warum zeigt mein Slicer (Bambu Studio, OrcaSlicer, PrusaSlicer, Cura) Warnungen an?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Viele CAD-Programme und 3D-Modellierungs-Tools exportieren beim Erzeugen von Polygonnetzen offene Kanten, T-Junctions oder verdrehte Flächennormalen. Moderne Slicer prüfen die Topologie streng und warnen vor Instabilitäten und Lücken im Werkzeugpfad."
}
},
{
"@type": "Question",
"name": "Was ist der Unterschied zwischen STL, OBJ und 3MF?",
"acceptedAnswer": {
"@type": "Answer",
"text": "STL ist das traditionelle Standardformat für Dreiecksnetze ohne Farb- oder Einheiteninformationen. OBJ unterstützt zusätzliche Textur- und Geometriedaten. 3MF (3D Manufacturing Format) ist das moderne XML-Container-Format, das Netze verlustfrei komprimiert, Metadaten und Einheiten speichert und von modernen Slicern bevorzugt wird."
}
},
{
"@type": "Question",
"name": "Werden meine 3D-Modelle auf einen externen Server hochgeladen?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Nein. MeshDoc arbeitet nach dem strikten Zero-Upload-Prinzip: Sämtliche Berechnungen, Fehleranalysen, Triangulierungen und Exporte laufen zu 100% lokal im Arbeitsspeicher deines Webbrowsers ab. Keine Datei verlässt dein Endgerät – ideal auch für vertrauliche Prototypen und CAD-Dateien."
}
},
{
"@type": "Question",
"name": "Welche maximale Dateigröße kann verarbeitet werden?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Da die Verarbeitung direkt im Browser über hardwarebeschleunigte Typed Arrays (Float32Array) erfolgt, gibt es kein künstliches Upload-Limit. Dateien bis ca. 150–200 MB bzw. über 2.000.000 Dreiecke werden auf modernen Rechnern flüssig verarbeitet."
}
},
{
"@type": "Question",
"name": "Funktioniert MeshDoc auch auf Smartphones und Tablets?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Ja. MeshDoc ist vollständig responsiv und unterstützt mobiles WebGL auf iOS (Safari) und Android (Chrome/Firefox). Mit intuitiver 2-Finger-Gestensteuerung lässt sich das Modell drehen und zoomen, während mit 1 Finger die Seite frei gescrollt werden kann."
}
},
{
"@type": "Question",
"name": "Welche Dateiformate können importiert und exportiert werden?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Du kannst Binary STL, ASCII STL, Wavefront OBJ und 3MF-Dateien laden. Nach Prüfung und Reparatur kannst du das saubere Modell als Binary STL, ASCII STL, 3MF-Paket oder OBJ exportieren."
}
},
{
"@type": "Question",
"name": "Warum sehen glatt gerenderte Zylinder im Slicer oft trotzdem eckig aus?",
"acceptedAnswer": {
"@type": "Answer",
"text": "In 3D-Viewern wird Rundung oft nur durch Phong-Shading (Lichtberechnung) vorgetäuscht, während die Geometrie facettenreich bleibt. MeshDocs Glättungs-Engine nutzt volumenerhaltendes Taubin-Smoothing mit anschließender Sagitta-Subdivision, um echte neue Zwischenpunkte exakt auf der geometrischen Krümmung zu berechnen."
}
}
]
}
]
}
</script>
<!-- 100% Local Self-Hosted Three.js Import Map -->
<script type="importmap">
{
"imports": {
"three": "./assets/vendor/three/three.module.js",
"three/addons/": "./assets/vendor/three/",
"three-mesh-bvh": "./assets/vendor/three-mesh-bvh/index.module.js"
}
}
</script>
<!-- Instant Theme Initializer (Dark is Default, Zero-FOUC) -->
<script>
(function() {
try {
var t = localStorage.getItem('mesh3d_theme') || 'dark';
document.documentElement.setAttribute('data-theme', t);
} catch (e) {}
})();
</script>
<!-- Minified Combined Stylesheet (Includes Self-Hosted WOFF2 Fonts) -->
<style id="critical-css">:root{--bg-main:#0a0d14;--bg-card:#121824;--bg-card-subtle:#161f30;--bg-panel:#0d121c;--bg-hover:#1e293b;--bg-active:#25334a;--bg-glass:rgba(18,24,36,0.85);--border-subtle:#1e293b;--border-default:#2a374f;--border-focus:#38bdf8;--border-glow:rgba(56,189,248,0.25);--text-primary:#f8fafc;--text-secondary:#cbd5e1;--text-muted:#94a3b8;--text-inverse:#0a0d14;--accent-cyan:#38bdf8;--accent-cyan-hover:#0ea5e9;--accent-cyan-bg:rgba(56,189,248,0.12);--status-success:#22c55e;--status-success-bg:rgba(34,197,94,0.12);--status-success-border:rgba(34,197,94,0.3);--status-warning:#f59e0b;--status-warning-bg:rgba(245,158,11,0.12);--status-warning-border:rgba(245,158,11,0.3);--status-error:#ef4444;--status-error-bg:rgba(239,68,68,0.12);--status-error-border:rgba(239,68,68,0.3);--status-info:#6366f1;--status-info-bg:rgba(99,102,241,0.12);--font-sans:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;--font-mono:'JetBrains Mono','Fira Code','Cascadia Code',Consolas,Monaco,monospace;--space-xs:4px;--space-sm:8px;--space-md:16px;--space-lg:24px;--space-xl:32px;--space-2xl:48px;--radius-sm:6px;--radius-md:10px;--radius-lg:16px;--radius-full:9999px;--shadow-sm:0 1px 2px 0 rgba(0,0,0,0.4);--shadow-md:0 4px 12px 0 rgba(0,0,0,0.5);--shadow-lg:0 12px 32px -4px rgba(0,0,0,0.6);--shadow-cyan-glow:0 0 20px -2px rgba(56,189,248,0.25);--shadow-emerald-glow:0 0 20px -2px rgba(34,197,94,0.25);--transition-fast:0.15s cubic-bezier(0.4,0,0.2,1);--transition-normal:0.25s cubic-bezier(0.4,0,0.2,1);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px)}[data-theme="light"]{--bg-main:#f8fafc;--bg-card:#ffffff;--bg-card-subtle:#f1f5f9;--bg-panel:#ffffff;--bg-hover:#e2e8f0;--bg-active:#cbd5e1;--bg-glass:rgba(255,255,255,0.95);--border-subtle:#e2e8f0;--border-default:#cbd5e1;--border-focus:#0284c7;--border-glow:rgba(2,132,199,0.2);--text-primary:#0f172a;--text-secondary:#1e293b;--text-muted:#475569;--text-inverse:#ffffff;--accent-cyan:#0284c7;--accent-cyan-hover:#0369a1;--accent-cyan-bg:rgba(2,132,199,0.1);--status-success:#15803d;--status-success-bg:#dcfce7;--status-success-border:#86efac;--status-warning:#b45309;--status-warning-bg:#fef3c7;--status-warning-border:#fcd34d;--status-error:#b91c1c;--status-error-bg:#fee2e2;--status-error-border:#fca5a5;--status-info:#4338ca;--status-info-bg:#e0e7ff;--status-info-border:#a5b4fc;--shadow-sm:0 1px 3px 0 rgba(0,0,0,0.06);--shadow-md:0 4px 14px 0 rgba(0,0,0,0.08);--shadow-lg:0 12px 32px -4px rgba(0,0,0,0.12);--shadow-cyan-glow:0 0 20px -2px rgba(2,132,199,0.25);--shadow-emerald-glow:0 0 20px -2px rgba(21,128,61,0.25)}@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:optional;src:url('../fonts/inter-regular.woff2') format('woff2')}@font-face{font-family:'Inter';font-style:normal;font-weight:600 700;font-display:optional;src:url('../fonts/inter-bold.woff2') format('woff2')}@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 700;font-display:optional;src:url('../fonts/jetbrainsmono-regular.woff2') format('woff2')}*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}html{min-height:100%;overflow-y:scroll;scrollbar-gutter:stable}body{min-height:100%;width:100%;overflow-x:hidden;background-color:var(--bg-main);color:var(--text-primary);font-family:var(--font-sans);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:var(--bg-main)}::-webkit-scrollbar-thumb{background:var(--border-default);border-radius:var(--radius-full)}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.app-container{display:flex;flex-direction:column;min-height:100vh;padding:var(--space-md);gap:var(--space-md);max-width:1920px;margin:0 auto}.app-header{display:flex;align-items:center;justify-content:space-between;padding:var(--space-sm) var(--space-md);background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);backdrop-filter:blur(12px)}.brand-wrapper{display:flex;align-items:center;gap:var(--space-md)}.brand-logo{display:flex;align-items:center;justify-content:center;width:38px;height:38px;background:linear-gradient(135deg,var(--accent-cyan),#3b82f6);color:#fff;border-radius:var(--radius-md);box-shadow:var(--shadow-cyan-glow)}.brand-logo svg{width:22px;height:22px}.brand-text h1{font-size:1.15rem;font-weight:700;letter-spacing:-0.02em;background:linear-gradient(90deg,#ffffff,#94a3b8);-webkit-background-clip:text;-webkit-text-fill-color:transparent;display:flex;align-items:center;gap:var(--space-xs)}.brand-text p{font-size:0.75rem;color:var(--text-muted)}.hero-description{font-size:0.78rem;color:var(--text-muted);line-height:1.5;margin-top:3px;max-width:660px}.hero-intro-banner{background:var(--bg-card-subtle);border:1px solid var(--border-subtle);border-radius:var(--radius-md);padding:10px 16px;font-size:0.78rem;color:var(--text-secondary);line-height:1.5;display:flex;align-items:center;gap:12px}.privacy-badge{display:inline-flex;align-items:center;gap:6px;padding:0 10px;height:34px;background:var(--status-success-bg);border:1px solid var(--status-success-border);border-radius:var(--radius-full);font-size:0.74rem;font-weight:600;color:var(--status-success);white-space:nowrap}.privacy-badge svg{width:14px;height:14px;flex-shrink:0}.header-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.theme-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;border-radius:var(--radius-sm);background:var(--bg-panel);border:1px solid var(--border-default);color:var(--text-secondary);cursor:pointer;transition:all var(--transition-fast)}.theme-toggle-btn:hover{background:var(--bg-hover);color:var(--accent-cyan);border-color:var(--accent-cyan)}.theme-toggle-btn svg{width:17px;height:17px;transition:transform var(--transition-fast)}.theme-toggle-btn:hover svg{transform:rotate(15deg)}.theme-toggle-btn .icon-sun{display:block}.theme-toggle-btn .icon-moon{display:none}[data-theme="light"] .theme-toggle-btn .icon-sun{display:none !important}[data-theme="light"] .theme-toggle-btn .icon-moon{display:block !important}@media (max-width:768px){.app-container{padding:8px;padding-bottom:calc(var(--safe-bottom) + 8px);gap:10px}.app-header{flex-direction:row;align-items:center;justify-content:space-between;padding:8px 12px;gap:8px;flex-wrap:wrap}.brand-wrapper{gap:8px}.brand-logo{width:32px;height:32px}.brand-logo svg{width:18px;height:18px}.brand-text h1{font-size:1rem}.brand-text p{display:none}.header-toolbar{gap:6px}.hero-intro-banner{padding:8px 12px;font-size:0.74rem;gap:8px}input,select,textarea{font-size:16px !important}}.dashboard-grid{display:grid;grid-template-columns:340px 1fr 340px;gap:var(--space-md);flex:1;align-items:stretch}.dashboard-grid > .left-sidebar{grid-column:1;grid-row:1}.dashboard-grid > .viewer-card{grid-column:2;grid-row:1}.dashboard-grid > .app-sidebar{grid-column:3;grid-row:1}@media (max-width:1200px){.dashboard-grid{grid-template-columns:320px 1fr}.dashboard-grid > .left-sidebar{grid-column:1;grid-row:1}.dashboard-grid > .viewer-card{grid-column:2;grid-row:1}.dashboard-grid > .app-sidebar{grid-column:1 / -1;grid-row:2}}@media (max-width:860px){.dashboard-grid{display:flex;flex-direction:column;gap:var(--space-md)}}.bento-card{background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);display:flex;flex-direction:column;overflow:hidden;transition:border-color var(--transition-fast),box-shadow var(--transition-fast)}.bento-card:hover{border-color:var(--border-default)}.bento-header{display:flex;align-items:center;justify-content:space-between;padding:var(--space-md);border-bottom:1px solid var(--border-subtle)}.bento-title{display:flex;align-items:center;gap:var(--space-sm);font-size:0.9rem;font-weight:600;color:var(--text-primary)}.bento-title svg{width:16px;height:16px;color:var(--accent-cyan)}.bento-content{padding:var(--space-md);flex:1;overflow-y:auto}.app-footer{display:flex;align-items:center;justify-content:space-between;padding:var(--space-sm) var(--space-md);font-size:0.75rem;color:var(--text-muted);background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:var(--radius-md)}.app-footer a{color:var(--accent-cyan);text-decoration:none;padding:4px 2px}.app-footer a:hover{text-decoration:underline}.skip-link{position:absolute;top:-100px;left:16px;background:var(--accent-cyan);color:var(--text-inverse);padding:10px 16px;border-radius:var(--radius-sm);font-weight:700;z-index:999999;transition:top var(--transition-fast);text-decoration:none}.skip-link:focus{top:16px}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent-cyan);outline-offset:2px}button,a,input,select{touch-action:manipulation}.mobile-dashboard-tabs{display:none}@media (max-width:768px){.mobile-dashboard-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;order:2;margin:4px 0 10px 0;width:100%}.mobile-dash-tab-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;background:var(--bg-card);border:1.5px solid var(--border-default);border-radius:var(--radius-md);font-size:0.84rem;font-weight:600;color:var(--text-secondary);cursor:pointer;transition:all 0.2s ease;touch-action:manipulation;min-height:44px}.mobile-dash-tab-btn:hover{background:var(--bg-card-subtle);color:var(--text-primary)}.mobile-dash-tab-btn.active{background:var(--bg-card-subtle);border-color:var(--accent-cyan);color:var(--accent-cyan);box-shadow:var(--shadow-cyan-glow)}[data-theme="light"] .mobile-dash-tab-btn{background:#ffffff !important;border-color:#cbd5e1 !important;color:#475569 !important}[data-theme="light"] .mobile-dash-tab-btn.active{background:#f0fdf4 !important;border-color:#0284c7 !important;color:#0284c7 !important;box-shadow:0 0 12px rgba(2,132,199,0.2) !important}.dashboard-grid .viewer-card{order:1 !important}.dashboard-grid:not(.show-tools) .left-sidebar{display:flex !important;order:3 !important}.dashboard-grid:not(.show-tools) .right-sidebar{display:none !important}.dashboard-grid.show-tools .left-sidebar{display:none !important}.dashboard-grid.show-tools .right-sidebar{display:flex !important;order:3 !important}.hero-intro-banner .hero-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}</style>
<link rel="preload" href="assets/css/style.min.css?v=1.7.1" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="assets/css/style.min.css?v=1.7.1"></noscript>
<!-- Critical In-Modal Alert & Toast Z-Index Overrides -->
<style>
.toast-container { z-index: 99999999 !important; }
.contact-form-alert {
padding: 11px 14px;
border-radius: 8px;
font-size: 0.82rem;
line-height: 1.45;
margin-bottom: 14px;
display: flex;
align-items: flex-start;
gap: 10px;
font-weight: 500;
}
.contact-form-alert.success {
background: rgba(34, 197, 94, 0.15) !important;
border: 1.5px solid #22c55e !important;
color: #86efac !important;
}
.contact-form-alert.error {
background: rgba(239, 68, 68, 0.15) !important;
border: 1.5px solid #ef4444 !important;
color: #fca5a5 !important;
}
.contact-form-alert.info {
background: rgba(56, 189, 248, 0.15) !important;
border: 1.5px solid #38bdf8 !important;
color: #bae6fd !important;
}
[data-theme="light"] .contact-form-alert.success {
background: #dcfce7 !important;
border-color: #86efac !important;
color: #15803d !important;
}
[data-theme="light"] .contact-form-alert.error {
background: #fee2e2 !important;
border-color: #fca5a5 !important;
color: #b91c1c !important;
}
[data-theme="light"] .contact-form-alert.info {
background: #e0f2fe !important;
border-color: #7dd3fc !important;
color: #0369a1 !important;
}
[data-theme="light"] .site-notice-overlay,
[data-theme="light"] .cookie-banner-overlay {
background: #ffffff !important;
border: 1.5px solid #cbd5e1 !important;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
color: #0f172a !important;
}
[data-theme="light"] .site-notice-header h3,
[data-theme="light"] .cookie-banner-header h3 {
color: #0f172a !important;
}
[data-theme="light"] .site-notice-body,
[data-theme="light"] .cookie-banner-body {
color: #334155 !important;
}
[data-theme="light"] .site-notice-body a,
[data-theme="light"] .cookie-banner-body a {
color: #0284c7 !important;
}
[data-theme="light"] .notice-btn-secondary,
[data-theme="light"] .cookie-btn-secondary {
background: #f1f5f9 !important;
border: 1px solid #cbd5e1 !important;
color: #0f172a !important;
}
</style>
</head>
<body>
<!-- Accessibility Skip Link -->
<a href="#main-content" class="skip-link" data-i18n="skipToContent">Zum Inhalt springen / Skip to content</a>
<!-- Fallback Banner for file:/// Protocol -->
<div id="fileProtocolWarning" style="display: none; background: #ef4444; color: #fff; padding: 10px 16px; font-size: 0.85rem; text-align: center; z-index: 99999; position: relative;">
⚠️ <strong>Notice:</strong> When opened directly via <code>file:///</code>, browsers block ES modules. Please start a local web server (e.g. <code>python -m http.server 8080</code> or in VS Code with <em>Live Server</em>).
</div>
<script>
if (window.location.protocol === 'file:') {
document.getElementById('fileProtocolWarning').style.display = 'block';
}
</script>
<div class="app-container">
<!-- Top Header Navigation & Hero -->
<header class="app-header" role="banner">
<div class="brand-wrapper" style="display: flex; align-items: center; gap: 12px;">
<nav aria-label="Hauptnavigation">
<!-- Branding / Logo & Link zurück zu svender3d.de -->
<a href="https://svender3d.de" target="_blank" rel="noopener" class="brand-link" title="Zurück zu Svender3D">
<div class="brand-logo" style="background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15)); border: 1.5px solid var(--accent-cyan); border-radius: 8px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);">
<svg viewBox="0 0 32 32" width="18" height="18" fill="none" aria-hidden="true">
<polygon points="16,2 29,9.5 29,22.5 16,30 3,22.5 3,9.5" stroke="url(#meshdoc-grad)" stroke-width="2" stroke-linejoin="round" fill="rgba(56, 189, 248, 0.08)" />
<line x1="16" y1="2" x2="16" y2="10" stroke="#38bdf8" stroke-width="1.5" stroke-linecap="round" />
<line x1="29" y1="22.5" x2="22" y2="18.5" stroke="#38bdf8" stroke-width="1.5" stroke-linecap="round" />
<line x1="3" y1="22.5" x2="10" y2="18.5" stroke="#38bdf8" stroke-width="1.5" stroke-linecap="round" />
<path d="M14 10h4v3h3v4h-3v3h-4v-3h-3v-4h3v-3z" fill="url(#cross-grad)" stroke="#38bdf8" stroke-width="1" stroke-linejoin="round" />
<circle cx="16" cy="2" r="1.5" fill="#38bdf8" />
<circle cx="29" cy="9.5" r="1.5" fill="#6366f1" />
<circle cx="29" cy="22.5" r="1.5" fill="#38bdf8" />
<circle cx="16" cy="30" r="1.5" fill="#6366f1" />
<circle cx="3" cy="22.5" r="1.5" fill="#38bdf8" />
<circle cx="3" cy="9.5" r="1.5" fill="#6366f1" />
<defs>
<linearGradient id="meshdoc-grad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#38bdf8" />
<stop offset="100%" stop-color="#6366f1" />
</linearGradient>
<linearGradient id="cross-grad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#38bdf8" />
<stop offset="100%" stop-color="#22c55e" />
</linearGradient>
</defs>
</svg>
</div>
<span>Svender3D</span>
</a>
</nav>
<div class="hero-content">
<div style="display: flex; align-items: center; gap: 8px;">
<h1 data-i18n="appTitle" style="font-size: 1.15rem; margin: 0; line-height: 1.2;">MeshDoc</h1>
<span class="version-tag">v1.7.1</span>
</div>
<p class="subtitle" data-i18n="appSubtitle" style="margin: 0; font-size: 0.74rem; color: var(--text-muted);">Analyze, repair and export defective STL files ready for slicing.</p>
</div>
</div>
<!-- Unified Header Toolbar -->
<div class="header-toolbar">
<!-- Zero-Upload Privacy Badge (Compact) -->
<div class="privacy-badge" title="100% Local Processing (Zero-Upload)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
</svg>
<span data-i18n="privacyBadge">Zero-Upload</span>
</div>
<!-- Dark / Light Theme Toggle -->
<button type="button" id="btnThemeToggle" class="theme-toggle-btn" aria-label="Farbschema wechseln" title="Farbschema wechseln (Dark / Light)">
<svg class="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
<svg class="icon-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
</button>
<!-- Language Switcher (EN | DE) -->
<div class="lang-switch-wrapper" role="group" aria-label="Language Selector" style="display: flex; background: var(--bg-panel); border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 2px;">
<button class="lang-btn active" data-lang="en" aria-label="Switch language to English">EN</button>
<button class="lang-btn" data-lang="de" aria-label="Sprache auf Deutsch wechseln">DE</button>
</div>
<!-- What's New Button -->
<button class="btn btn-secondary header-btn" onclick="window.openModal('modalWhatsNew', event)" data-open-modal="modalWhatsNew" title="What's New / Release Notes" aria-label="What's New and Release Notes">
<span class="pulse-dot" aria-hidden="true"></span>
<span data-i18n="navWhatsNew">What's New</span>
</button>
</div>
</header>
<!-- Sleek Hero Description Strip (Sub-Header) -->
<div class="hero-intro-banner">
<span style="display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-cyan-bg); color: var(--accent-cyan); font-weight: 700; flex-shrink: 0; font-size: 0.72rem;" aria-hidden="true">ℹ</span>
<span class="hero-description" data-i18n="appDescription" style="margin: 0; max-width: none;">MeshDoc is a browser-based utility designed for 3D printing enthusiasts and engineers to repair broken STL, OBJ, and 3MF meshes. It automatically fixes non-manifold edges, caps open holes, and aligns inverted normals for error-free slicing. All processing runs 100% locally on your machine without cloud uploads.</span>
</div>
<!-- Main Container with Interactive App & On-Page SEO Sections -->
<main id="main-content" role="main" style="display: flex; flex-direction: column; gap: var(--space-md);">
<!-- Bento Grid Interactive Dashboard -->
<div class="dashboard-grid">
<!-- CENTER: 3D Interactive Viewport -->
<section class="bento-card viewer-card" aria-label="3D Modell Ansicht">
<div class="viewer-canvas-wrapper" id="viewportWrapper">
<!-- Top Floating Controls -->
<div class="viewer-overlay-top">
<!-- Mode Switcher -->
<div class="viewer-mode-selector" role="group" aria-label="3D View Mode">
<button class="mode-btn active" data-mode="original" aria-label="Show original model">
<span data-i18n="modeOriginal">Original</span>
</button>
<button class="mode-btn" data-mode="repaired" aria-label="Show repaired model">
<span data-i18n="modeRepaired">Repaired</span>
</button>
<button class="mode-btn" data-mode="split" aria-label="Show split comparison view">
<span data-i18n="modeSplit">Split</span>
</button>
</div>
<!-- Viewport Tools -->
<div class="viewer-tool-toggles" role="toolbar" aria-label="3D Viewport Controls">
<button class="tool-toggle-btn active" id="toggleErrors" data-i18n-title="toggleErrorsTooltip" title="Toggle defect highlighting (red edges)" aria-label="Toggle defect highlighting (red edges)">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>
<line x1="12" y1="9" x2="12" y2="13"></line>
<line x1="12" y1="17" x2="12.01" y2="17"></line>
</svg>
</button>
<button class="tool-toggle-btn" id="toggleWireframe" data-i18n-title="toggleWireframeTooltip" title="Toggle wireframe mode" aria-label="Toggle wireframe mode">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon>
<polyline points="2 17 12 22 22 17"></polyline>
<polyline points="2 12 12 17 22 12"></polyline>
</svg>
</button>
<button class="tool-toggle-btn" id="toggleOverhangs" data-i18n-title="toggleOverhangsTooltip" title="Toggle overhang / support angle overlay" aria-label="Toggle overhang angle overlay">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M4 4l16 16m0-8v8h-8"></path>
<path d="M4 12l8 8"></path>
</svg>
</button>
<button class="tool-toggle-btn active" id="toggleBed" data-i18n-title="toggleBedTooltip" title="Toggle build bed grid" aria-label="Toggle build bed grid">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<line x1="3" y1="9" x2="21" y2="9"></line>
<line x1="3" y1="15" x2="21" y2="15"></line>
<line x1="9" y1="3" x2="9" y2="21"></line>
<line x1="15" y1="3" x2="15" y2="21"></line>
</svg>
</button>
<button class="tool-toggle-btn" id="btnResetCamera" data-i18n-title="resetCameraTooltip" title="Reset camera view (isometric)" aria-label="Reset camera view to default">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<polyline points="1 4 1 10 7 10"></polyline>
<polyline points="23 20 23 14 17 14"></polyline>
<path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path>
</svg>
</button>
</div>
</div>
<!-- On-Screen 3D Viewport Placement & Bed Alignment HUD (Bild 1 requirement) -->
<div class="viewer-placement-hud" id="viewerPlacementHud" role="toolbar" aria-label="3D Model Placement Controls">
<div class="placement-hud-header">
<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M12 3v13M5 10l7 7 7-7M4 21h16"></path>
</svg>
<span data-i18n="positioningTitle">Bed Alignment & Positioning</span>
</div>
<div class="placement-hud-actions">
<button type="button" class="btn-placement-hud" id="hudBtnDropToBed" data-i18n-title="btnDropToBedTooltip" title="Drop model directly onto print bed surface" aria-label="Drop model to build bed">
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M12 3v13M5 10l7 7 7-7M4 21h16"></path>
</svg>
<span data-i18n="btnDropToBed">Drop to Bed</span>
</button>
<button type="button" class="btn-placement-hud" id="hudBtnCenterBed" data-i18n-title="btnCenterBedTooltip" title="Center model in the middle of print bed" aria-label="Center model on build bed">
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<circle cx="12" cy="12" r="9"></circle>
<line x1="12" y1="3" x2="12" y2="7"></line>
<line x1="12" y1="17" x2="12" y2="21"></line>
<line x1="3" y1="12" x2="7" y2="12"></line>
<line x1="17" y1="12" x2="21" y2="12"></line>
</svg>
<span data-i18n="btnCenterBed">Center on Bed</span>
</button>
<div class="placement-hud-rotates">
<button type="button" class="btn-placement-hud rotate-btn" id="hudBtnRotateX" data-i18n="btnRotateX" title="90° X" aria-label="Rotate model 90 degrees around X axis">↻ 90° X</button>
<button type="button" class="btn-placement-hud rotate-btn" id="hudBtnRotateY" data-i18n="btnRotateY" title="90° Y" aria-label="Rotate model 90 degrees around Y axis">↻ 90° Y</button>
<button type="button" class="btn-placement-hud rotate-btn" id="hudBtnRotateZ" data-i18n="btnRotateZ" title="90° Z" aria-label="Rotate model 90 degrees around Z axis">↻ 90° Z</button>
</div>
</div>
</div>
<!-- Bottom Watermark Indicator -->
<div class="viewer-watermark">
<span data-i18n="watermarkHint">Print Bed: 220 × 220 mm | Orbit: Left-Click | Pan: Right-Click | Zoom: Scroll</span>
</div>
<!-- Repair Hologram Scanner HUD Overlay & Laser Animation -->
<div class="repair-scan-overlay" id="repairScanOverlay">
<div class="scan-laser-line"></div>
<div class="scan-hud-card">
<div class="scan-hud-header">
<div class="scan-hud-spinner"></div>
<div>
<div class="scan-hud-title" role="heading" aria-level="3" data-i18n="autoRepairSectionTitle">Auto-Repair Engine</div>
<p class="scan-hud-step" id="scanStepText">Analyzing Mesh Topology...</p>
</div>
</div>
<div class="scan-progress-track">
<div class="scan-progress-bar" id="scanProgressBar"></div>
</div>
<div class="scan-hud-metrics">
<span id="scanMetricsLabel">Ear-Clipping & Normals</span>
<span id="scanPercentText">0%</span>
</div>
<div style="display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.08);">
<span id="scanTimeoutNotice" style="font-size: 0.72rem; color: var(--text-muted);">⏱️ Max: <span id="scanWatchdogSec">60</span>s Watchdog</span>
<button type="button" class="btn btn-secondary btn-mini" id="btnCancelScan" style="border-color: #ef4444; color: #ef4444; padding: 4px 10px; font-size: 0.75rem;" data-i18n="btnCancelRepair">
✕ Abbrechen
</button>
</div>
</div>
</div>
<!-- Overhang Traffic Light Heatmap Legend HUD (Visible when overhang overlay is active) -->
<div class="viewer-overhang-hud" id="viewerOverhangHud" style="display: none;" role="status" aria-label="Overhang-Farbskala Ampelsystem">
<div class="overhang-hud-title">
<span data-i18n="overhangHeatmapTitle">Überhang-Farbskala</span>
<span id="overhangHudThreshold" class="overhang-hud-badge">Limit: 45°</span>
</div>
<div class="overhang-hud-gradient" aria-hidden="true"></div>
<div class="overhang-hud-labels">
<span class="hud-safe" data-i18n="overhangSafeLabel">🟢 Safe (< 35°)</span>
<span class="hud-warn" data-i18n="overhangWarnLabel">🟡 Warnung</span>
<span class="hud-crit" data-i18n="overhangCritLabel">🔴 Support nötig</span>
</div>
</div>
<!-- Mobile Touch & Scroll Helper Hint -->
<div class="viewer-touch-hint" id="viewerTouchHint" aria-hidden="true">
<span class="touch-hint-icon">✌️</span>
<span data-i18n="viewerTouchHint">Mit 2 Fingern 3D drehen & zoomen • 1 Finger zum Scrollen</span>
</div>
</div>
</section>
<!-- Mobile Segmented Tabs (Displayed only on mobile screens <= 768px) -->
<div class="mobile-dashboard-tabs" id="mobileDashboardTabs" role="tablist" aria-label="Dashboard Ansicht">
<button type="button" class="mobile-dash-tab-btn active" id="mobileTabBtnDiag" data-target="left-sidebar" role="tab" aria-selected="true" aria-controls="upload-section">
<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
<span data-i18n="tabModelDiagnosis">Model-Diagnose</span>
</button>
<button type="button" class="mobile-dash-tab-btn" id="mobileTabBtnTools" data-target="right-sidebar" role="tab" aria-selected="false" aria-controls="tools-section">
<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>
</svg>
<span data-i18n="tabToolsAndSettings">Werkzeuge & Reparatur</span>
</button>
</div>
<!-- Sektion 1: Upload, Status & Diagnostics -->
<section id="upload-section" class="bento-card left-sidebar" aria-labelledby="upload-heading">
<div class="bento-header">
<h2 id="upload-heading" class="bento-title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
<polyline points="14 2 14 8 20 8"></polyline>
</svg>
<span data-i18n="uploadHeading">Upload & Inspect STL Model</span>
</h2>
</div>
<div class="bento-content">
<!-- Dropzone -->
<div class="dropzone-container" id="dropzone" role="button" tabindex="0" aria-label="3D-Datei ablegen oder auswählen">
<div class="dropzone-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="17 8 12 3 7 8"></polyline>
<line x1="12" y1="3" x2="12" y2="15"></line>
</svg>
</div>
<div class="dropzone-text">
<strong data-i18n="dropzoneTitle" style="font-size: 0.9rem; color: var(--text-primary);">Drop file or click to browse</strong>
<p data-i18n="dropzoneSubtitle">STL, OBJ, or 3MF via drag & drop</p>
</div>
<div class="dropzone-tags">
<span class="tag-badge">.STL</span>
<span class="tag-badge">.OBJ</span>
<span class="tag-badge">.3MF</span>
</div>
</div>
<input type="file" id="fileInput" accept=".stl,.obj,.3mf" style="display: none;" aria-label="Upload 3D model file (STL, OBJ, 3MF)">
<!-- Processing Pipeline Status Indicator -->
<div class="processing-pipeline" aria-label="Processing pipeline status">
<div class="pipeline-step active" id="pipeUpload"><span data-i18n="pipeUpload">1. Upload</span></div>
<span class="pipeline-arrow">→</span>
<div class="pipeline-step" id="pipeAnalyze"><span data-i18n="pipeAnalyze">2. Analysis</span></div>
<span class="pipeline-arrow">→</span>
<div class="pipeline-step" id="pipeRepair"><span data-i18n="pipeRepair">3. Repair</span></div>
<span class="pipeline-arrow">→</span>
<div class="pipeline-step" id="pipeExport"><span data-i18n="pipeExport">4. Slicer-Ready</span></div>
</div>
<!-- Progress Bar -->
<div class="progress-bar-container" id="progressBar">
<div class="progress-bar-fill" style="width: 100%;"></div>
</div>
<!-- File Info Badge -->
<div class="file-info-badge" id="fileBadge" style="margin-top: 12px; display: flex;">
<span class="file-info-name" id="fileNameText">sample_broken_box_with_hole.stl</span>
<span class="file-info-size" id="fileSizeText">23.93 KB</span>
</div>
<!-- Sample Models Selection -->
<div style="margin: 12px 0;">
<select class="select-input" id="sampleModelSelect" aria-label="Select sample 3D model">
<option value="" disabled data-i18n="sampleSelectDefault">Load a sample model...</option>
<option value="brokenCube" selected data-i18n="sampleBrokenCube">⚠️ Cube with Hole (Non-Manifold Test)</option>
<option value="cylinder" data-i18n="sampleCylinder">⚠️ Open Cylinder (Boundary Test)</option>
<option value="torus" data-i18n="sampleTorus">✅ Perfect Torus (Watertight)</option>
</select>
</div>
<!-- 3D Printability Verdict Card -->
<div class="printability-card warning" id="printabilityCard" style="min-height: 140px;">
<div class="printability-header">
<div class="printability-badge-wrapper">
<span class="printability-badge warning" id="printabilityBadge">
<svg viewBox="0 0 20 20" fill="currentColor" width="15" height="15" id="printabilityIcon">
<path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd"/>
</svg>
<span id="printabilityBadgeText" data-i18n="printOptimizationTitle">⚡ Optimization Recommended</span>
</span>
</div>
<p class="printability-desc" id="printabilityDescText" data-i18n="printOptimizationDesc">
The model has topological irregularities that can be automatically resolved via Auto-Repair before slicing.
</p>
</div>
<div class="printability-reasons-list" id="printabilityReasonsList">
<div class="printability-reason-item warning">
<span class="reason-dot"></span>
<span data-i18n="reasonHolesFound">1 open hole / boundary edge detected</span>
</div>
</div>
</div>
<!-- Timeout / CAD Recommendation Alert Box (Hidden by default) -->
<div class="alert-box alert-warning" id="timeoutNoticeBox" style="display: none; margin: 12px 0; border: 1.5px solid #f59e0b; background: rgba(245, 158, 11, 0.08); border-radius: var(--radius-md); padding: 12px;">
<div style="display: flex; align-items: flex-start; gap: 10px;">
<span style="font-size: 1.3rem; line-height: 1;">⏱️</span>
<div style="flex: 1;">
<strong id="timeoutNoticeTitle" style="color: #f59e0b; font-size: 0.85rem;" data-i18n="timeoutAlertTitle">Repair Watchdog Timeout Reached</strong>
<p id="timeoutNoticeDesc" style="font-size: 0.76rem; color: var(--text-secondary); margin: 4px 0 6px 0;" data-i18n="timeoutAlertDesc">
The automated repair process was halted to prevent browser freezing.
</p>
<div style="font-size: 0.73rem; color: var(--text-muted); background: rgba(0,0,0,0.3); padding: 6px 8px; border-radius: 6px; border-left: 3px solid #f59e0b;">
<div data-i18n="timeoutAlertCause"><strong>Cause:</strong> Model geometry deviates too drastically from a closed manifold solid.</div>
<div style="margin-top: 4px;" data-i18n="timeoutAlertSolution"><strong>Recommendation:</strong> Please patch the geometry in your CAD tool (Fusion 360, Blender, SolidWorks) and re-export.</div>
</div>
</div>
</div>
</div>
<!-- Primary Metrics Grid -->
<div class="metrics-grid">
<div class="metric-box">
<span class="metric-label" data-i18n="metricVertices">Vertices</span>
<span class="metric-value" id="metricVertices">0</span>
</div>
<div class="metric-box">
<span class="metric-label" data-i18n="metricTriangles">Triangles (Facets)</span>
<span class="metric-value" id="metricTriangles">0</span>
</div>
<div class="metric-box">
<span class="metric-label" data-i18n="metricVolume">Volume (cm³)</span>
<span class="metric-value" id="metricVolume">0.00 cm³</span>
</div>
<div class="metric-box">
<span class="metric-label" data-i18n="metricArea">Surface Area (cm²)</span>
<span class="metric-value" id="metricArea">0.00 cm²</span>
</div>
</div>
<!-- Bounding Box Dimensions -->
<div class="metric-box" style="margin-bottom: 12px;">
<span class="metric-label" data-i18n="dimensionsLabel">Bounding Box Dimensions (X × Y × Z in mm)</span>
<div style="display: flex; gap: 12px; margin-top: 4px; font-family: var(--font-mono); font-weight: 700;">
<span>X: <span id="metricDimX" style="color: var(--accent-cyan);">0</span> mm</span>
<span>Y: <span id="metricDimY" style="color: var(--accent-cyan);">0</span> mm</span>
<span>Z: <span id="metricDimZ" style="color: var(--accent-cyan);">0</span> mm</span>
</div>
</div>
<!-- Detailed Issue Inspection List -->
<div class="issues-container">
<div class="issue-item success" id="issueOpenEdges">
<span class="issue-name" data-i18n="issueOpenEdges">Holes / Open Edges</span>
<span class="issue-count">0</span>
</div>
<div class="issue-item success" id="issueNonManifold">
<span class="issue-name" data-i18n="issueNonManifold">Non-Manifold Edges</span>
<span class="issue-count">0</span>
</div>
<div class="issue-item success" id="issueInverted">
<span class="issue-name" data-i18n="issueInverted">Inconsistent Face Normals</span>
<span class="issue-count">0</span>
</div>
<div class="issue-item success" id="issueDegenerates">
<span class="issue-name" data-i18n="issueDegenerates">Degenerate Triangles</span>
<span class="issue-count">0</span>
</div>
<div class="issue-item success" id="issueUnitScale">
<span class="issue-name" data-i18n="issueUnitScale">Units & Scale</span>
<span class="issue-count">1:1 (mm)</span>
</div>
<div class="issue-item success" id="issueOverhangs">
<span class="issue-name" data-i18n="issueOverhangs">Overhangs & Support</span>
<span class="issue-count" data-i18n="overhangNone">0% (No support needed)</span>
</div>
</div>
</div>
</section>
<!-- RIGHT SIDEBAR: Repair Actions, Material & Exporter -->
<section id="tools-section" class="bento-card right-sidebar" aria-label="Reparatur- und Optimierungswerkzeuge">
<div class="bento-header">
<h2 class="bento-title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>
</svg>
<span data-i18n="repairEngineTitle">Repair & Export Tools</span>
</h2>
</div>
<div class="bento-content">
<!-- Sidebar Tabs Navigation -->
<div class="sidebar-tabs-nav" role="tablist" aria-label="Werkzeug-Reiter">
<button type="button" class="sidebar-tab-btn active" id="tabBtnRepair" role="tab" aria-selected="true" aria-controls="tabPaneRepair" data-tab="repair" data-i18n-title="tabRepairTooltip" title="Auto-Reparatur, Materialberechnung & Export">
<span data-i18n="tabRepairTitle">🛠️ Reparatur</span>
</button>
<button type="button" class="sidebar-tab-btn" id="tabBtnGeometry" role="tab" aria-selected="false" aria-controls="tabPaneGeometry" data-tab="geometry" data-i18n-title="tabGeometryTooltip" title="Druckbett-Ausrichtung, Skalierung & Geometrie">
<span data-i18n="tabGeometryTitle">📐 Geometrie</span>
</button>
</div>
<!-- TAB 1: REPARATUR & EXPORT -->
<div class="sidebar-tab-pane active" id="tabPaneRepair" role="tabpanel" aria-labelledby="tabBtnRepair">
<!-- Auto-Repair Main Action (Sticky on scroll) -->
<div class="tool-section auto-repair-tool-section" id="autoRepairToolSection">
<div class="tool-section-header">
<span data-i18n="autoRepairSectionTitle">Auto-Reparatur Engine</span>
<span class="status-pill good" style="font-size: 0.65rem;">Wasm / Manifold</span>
</div>
<p style="font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px;" data-i18n="autoRepairSectionDesc">
Repairs topology defects with planar ear-clipping hole filling and sharp facet shading.
</p>
<div style="display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 0.78rem; color: var(--text-secondary);">
<label style="display: flex; align-items: center; gap: 8px; cursor: pointer;">
<input type="checkbox" id="optCloseHoles" checked style="accent-color: var(--accent-cyan);" aria-label="Close holes (Planar Ear-Clipping)">
<span data-i18n="optCloseHoles">Close holes (Planar Ear-Clipping)</span>
</label>
<label style="display: flex; align-items: center; gap: 8px; cursor: pointer;">
<input type="checkbox" id="optFixNormals" checked style="accent-color: var(--accent-cyan);" aria-label="Align normals outwards">
<span data-i18n="optFixNormals">Align surface normals outwards</span>
</label>
<label style="display: flex; align-items: center; gap: 8px; cursor: pointer;">
<input type="checkbox" id="optWeldVerts" checked style="accent-color: var(--accent-cyan);" aria-label="Weld duplicate vertices">
<span data-i18n="optWeldVerts">Weld duplicate vertices</span>
</label>
</div>
<div id="repairActionsWrapper" style="display: flex; gap: 8px;">
<button class="btn btn-repair" id="btnAutoRepair" style="flex: 1;" aria-label="Execute automated mesh repair">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83"></path>
</svg>
<span data-i18n="btnAutoRepair">Start Auto-Repair</span>
</button>
<button type="button" class="btn btn-secondary" id="btnCancelAutoRepair" style="display: none; border-color: #ef4444; color: #ef4444;" title="Cancel repair" data-i18n="btnCancelRepair" aria-label="Cancel repair">
✕ Cancel
</button>
</div>
</div>
<!-- Material & Weight Calculation -->
<div class="tool-section">
<div class="tool-section-header">
<span data-i18n="materialTitle">Material & Weight Calculation</span>
</div>
<select class="select-input" id="materialSelect" aria-label="Select filament material">
<option value="PLA" selected>PLA (1,24 g/cm³)</option>
<option value="PETG">PETG (1,27 g/cm³)</option>
<option value="ABS">ABS (1,04 g/cm³)</option>
<option value="TPU">TPU (1,21 g/cm³)</option>
</select>
<div class="range-slider-group">
<div class="slider-header">
<label for="infillSlider" data-i18n="infillLabel">Infill Density:</label>
<div class="slider-val-wrapper">
<span class="slider-val" id="infillValue">20%</span>
<input type="number" class="slider-number-input" id="infillInput" min="0" max="100" step="5" value="20" inputmode="numeric" aria-label="Infill density percentage">
</div>
</div>
<input type="range" class="custom-range" id="infillSlider" min="0" max="100" step="5" value="20" aria-label="Infill density">
</div>
<div class="metrics-grid" style="margin-bottom: 0;">
<div class="metric-box">
<span class="metric-label" data-i18n="estWeightLabel">Est. Weight</span>
<span class="metric-value" id="metricWeight" style="color: var(--accent-cyan);">0 g</span>
</div>
<div class="metric-box">
<span class="metric-label" data-i18n="filamentLengthLabel">Filament (1.75mm)</span>
<span class="metric-value" id="metricFilament">0 m</span>
</div>
</div>
</div>
<!-- Export Actions -->
<div class="tool-section" id="exportButtonGroup">
<div class="tool-section-header">
<span data-i18n="exportTitle">Download Repaired Model</span>
</div>
<div class="btn-group-2" style="margin-bottom: 8px;">
<button class="btn btn-primary" id="btnExportBinarySTL" aria-label="Export as binary STL file">
<span data-i18n="btnExportBinarySTL">STL (Binary)</span>
</button>
<button class="btn btn-secondary" id="btnExport3MF" aria-label="Export as 3MF package">
<span data-i18n="btnExport3MF">3MF Package</span>
</button>
</div>
<div class="btn-group-2">
<button class="btn btn-secondary" id="btnExportAsciiSTL" aria-label="Export as ASCII STL file">
<span data-i18n="btnExportAsciiSTL">STL (ASCII)</span>
</button>
<button class="btn btn-secondary" id="btnExportOBJ" aria-label="Export as Wavefront OBJ file">
<span data-i18n="btnExportOBJ">Wavefront OBJ</span>
</button>
</div>
</div>
</div> <!-- End Tab 1: Repair -->
<!-- TAB 2: GEOMETRIE (Skalierung, Support, Dezimierung, Glättung) -->
<div class="sidebar-tab-pane" id="tabPaneGeometry" role="tabpanel" aria-labelledby="tabBtnGeometry">
<!-- Geometrie Werkzeuge (Skalierung, Überhänge) -->
<div class="tool-section">
<!-- Collapsible Scale & Unit Conversion Drawer (Collapsed by default) -->
<div class="scale-section-wrapper" style="margin-bottom: 12px;">
<div class="scale-header-toggle" id="toggleScaleDrawer" role="button" tabindex="0" aria-expanded="false" style="display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); cursor: pointer; user-select: none; transition: background var(--transition-fast), border-color var(--transition-fast);">
<span style="font-size: 0.76rem; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 6px;">
<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>
<polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline>
<line x1="12" y1="22.08" x2="12" y2="12"></line>
</svg>
<span data-i18n="scaleTitle">Scale & Units</span>
</span>
<div style="display: flex; align-items: center; gap: 6px;">
<span id="currentScaleBadge" style="font-size: 0.68rem; font-family: var(--font-mono); font-weight: 700; color: var(--text-muted); background: var(--bg-card); padding: 1px 6px; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle);">1.00×</span>
<svg class="scale-chevron" id="scaleChevron" viewBox="0 0 20 20" fill="currentColor" style="width: 13px; height: 13px; color: var(--text-muted); transition: transform 0.2s ease;">
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"/>
</svg>
</div>
</div>
<div id="scaleDrawerContent" style="display: none; margin-top: 6px; padding: 8px; background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); flex-direction: column; gap: 6px;">
<div class="btn-group-2" style="gap: 6px;">
<button type="button" class="btn btn-secondary" id="btnScaleInchToMm" style="padding: 6px 4px; font-size: 0.72rem;" data-i18n="btnScaleInchToMm" title="Scale: Inch to mm (× 25.4)" aria-label="Scale Inch to mm">
Inch ➔ mm (× 25.4)
</button>
<button type="button" class="btn btn-secondary" id="btnScaleMmToInch" style="padding: 6px 4px; font-size: 0.72rem;" data-i18n="btnScaleMmToInch" title="Scale: mm to Inch (/ 25.4)" aria-label="Scale mm to Inch">
mm ➔ Inch (/ 25.4)
</button>
</div>
<button type="button" class="btn btn-secondary" id="btnResetScale" style="padding: 5px 8px; font-size: 0.72rem; margin-top: 2px;" data-i18n="btnResetScale" title="Reset scale to original size (1.0×)" aria-label="Reset scale">
<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"></path>
<path d="M3 3v5h5"></path>
</svg>
<span data-i18n="btnResetScale">Original Size (1:1)</span>
</button>
</div>
</div>
<!-- Collapsible Overhang & Support Drawer (Collapsed by default) -->
<div class="overhang-section-wrapper" style="margin-bottom: 12px;">
<div class="overhang-header-toggle" id="toggleOverhangDrawer" role="button" tabindex="0" aria-expanded="false" style="display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); cursor: pointer; user-select: none; transition: background var(--transition-fast), border-color var(--transition-fast);">
<span style="font-size: 0.76rem; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 6px;">
<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M4 4l16 16m0-8v8h-8"></path>
<path d="M4 12l8 8"></path>
</svg>
<span data-i18n="overhangTitle">Overhangs & Support</span>
</span>
<div style="display: flex; align-items: center; gap: 6px;">
<span id="currentOverhangBadge" style="font-size: 0.68rem; font-family: var(--font-mono); font-weight: 700; color: var(--text-muted); background: var(--bg-card); padding: 1px 6px; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle);">0%</span>
<svg class="overhang-chevron" id="overhangChevron" viewBox="0 0 20 20" fill="currentColor" style="width: 13px; height: 13px; color: var(--text-muted); transition: transform 0.2s ease;">
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"/>
</svg>
</div>
</div>
<div id="overhangDrawerContent" style="display: none; margin-top: 6px; padding: 8px; background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); flex-direction: column; gap: 8px;">
<div class="range-slider-group" style="margin-bottom: 0;">
<div class="slider-header" style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;">
<label for="overhangAngleSlider" style="font-size: 0.72rem; font-weight: 600; color: var(--text-secondary);" data-i18n="overhangAngleLabel">Schwellenwinkel (Support-Winkel):</label>
<div class="slider-val-wrapper">
<span id="overhangAngleValue" style="font-size: 0.75rem; font-family: var(--font-mono); font-weight: 700; color: var(--accent-cyan);">45°</span>
<input type="number" class="slider-number-input" id="overhangAngleInput" min="30" max="75" step="5" value="45" inputmode="numeric" aria-label="Support threshold angle degrees">
</div>
</div>
<input type="range" class="custom-range" id="overhangAngleSlider" min="30" max="75" step="5" value="45" aria-label="Support-Schwellenwinkel in Grad">
<div style="display: flex; justify-content: space-between; font-size: 0.65rem; color: var(--text-muted); margin-top: 3px;">
<span>30° (Flach)</span>
<span>45° (Standard)</span>
<span>75° (Steil)</span>
</div>
</div>
<!-- Ampelsystem Legend Bar in Drawer -->
<div class="overhang-drawer-legend" style="padding: 6px 8px; background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border-subtle);">
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;">
<span style="font-size: 0.65rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.03em;" data-i18n="overhangHeatmapTitle">Überhang-Farbskala</span>
<span id="overhangLegendThreshold" style="font-size: 0.68rem; font-family: var(--font-mono); color: var(--accent-cyan); font-weight: 700;">Limit: 45°</span>
</div>
<div style="height: 5px; border-radius: 3px; background: linear-gradient(to right, #22c55e 0%, #84cc16 28%, #eab308 50%, #f97316 75%, #ef4444 100%); margin-bottom: 4px;"></div>
<div style="display: flex; justify-content: space-between; font-size: 0.63rem; font-weight: 600;">
<span style="color: #22c55e;" data-i18n="overhangSafeLabel">🟢 Safe (< 35°)</span>
<span style="color: #eab308;" data-i18n="overhangWarnLabel">🟡 Warnung</span>
<span style="color: #ef4444;" data-i18n="overhangCritLabel">🔴 Support nötig</span>
</div>
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 0.70rem; background: var(--bg-card); padding: 6px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle);">
<div>
<span style="color: var(--text-muted); display: block; font-size: 0.64rem;" data-i18n="overhangAreaLabel">Kritische Fläche:</span>
<strong id="overhangAreaMetric" style="color: var(--status-warning); font-family: var(--font-mono);">0.00 cm² (0%)</strong>
</div>
<div>
<span style="color: var(--text-muted); display: block; font-size: 0.64rem;" data-i18n="estSupportLabel">Geschätzter Support:</span>
<strong id="estSupportVolume" style="color: var(--text-primary); font-family: var(--font-mono);">0.00 cm³</strong>
</div>
</div>
<button type="button" class="btn btn-secondary" id="btnToggleOverhangOverlay" style="padding: 5px 8px; font-size: 0.72rem; display: flex; align-items: center; justify-content: center; gap: 6px;" aria-label="Toggle overhang highlight in 3D">
<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
<span data-i18n="btnShowOverhangsIn3D">Überhänge in 3D hervorheben</span>
</button>