-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
822 lines (765 loc) · 36.1 KB
/
index.html
File metadata and controls
822 lines (765 loc) · 36.1 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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wettbewerb Cockpit – Strukturierte Bewertung für Architekturwettbewerbe</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<!-- Material Symbols -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<!-- Mapbox -->
<link href="https://api.mapbox.com/mapbox-gl-js/v3.3.0/mapbox-gl.css" rel="stylesheet">
<script src="https://api.mapbox.com/mapbox-gl-js/v3.3.0/mapbox-gl.js"></script>
<!-- Shared Styles -->
<link rel="stylesheet" href="styles/main.css">
<!-- Page-specific styles -->
<style>
/* Hero background (main.css uses relative path from styles/) */
.hero {
background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.65) 100%),
url('assets/images/Hero.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
/* Framework cards mini variant for this page */
.frameworks-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: var(--space-5);
}
.framework-card {
background: var(--color-bg-page);
padding: var(--space-6);
text-align: center;
text-decoration: none;
color: inherit;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.framework-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.framework-card__logo {
font-size: var(--text-2xl);
margin-bottom: var(--space-2);
}
.framework-card__name {
margin-bottom: 0;
}
/* Section intro title spacing */
.section-intro__title {
margin-bottom: var(--space-8);
}
/* Frameworks section link */
.frameworks-section__link {
margin-top: var(--space-16);
}
</style>
</head>
<body>
<!-- Header -->
<header class="header">
<div class="container header__inner">
<a href="#" class="header__logo">
<span class="material-symbols-outlined">analytics</span>
Wettbewerb Cockpit
</a>
<nav class="header__nav">
<a href="#how-it-works">So funktioniert's</a>
<a href="#frameworks">Standards</a>
<a href="#showcase">Referenzen</a>
<a href="#pricing">Preise</a>
<a href="app/index.html" class="btn btn--primary btn--sm">Demo starten</a>
</nav>
<button class="header__menu-toggle" aria-label="Menü öffnen" aria-expanded="false" aria-controls="mobile-nav">
<span class="material-symbols-outlined" id="menu-icon">menu</span>
</button>
</div>
</header>
<!-- Mobile Navigation -->
<nav class="mobile-nav" id="mobile-nav" aria-hidden="true">
<div class="mobile-nav__links">
<a href="#how-it-works">So funktioniert's</a>
<a href="#frameworks">Standards</a>
<a href="#showcase">Referenzen</a>
<a href="#pricing">Preise</a>
</div>
<div class="mobile-nav__cta">
<a href="app/index.html" class="btn btn--primary">Demo starten</a>
</div>
</nav>
<!-- Hero -->
<section class="hero">
<div class="container">
<div class="hero__content">
<h1 class="heading-1 hero__title">Strukturierte Bewertung für Architekturwettbewerbe</h1>
<p class="hero__subtitle">
Vergleichen Sie Projektvarianten objektiv anhand bewährter Nachhaltigkeitsstandards.
Von SNBS bis LEED – nutzen Sie etablierte Frameworks oder erstellen Sie Ihre eigenen.
</p>
<div class="hero__actions">
<a href="app/index.html" class="btn btn--primary btn--lg">
<span class="material-symbols-outlined">play_arrow</span>
Demo ansehen
</a>
<a href="#showcase" class="btn btn--secondary btn--lg">
Abgeschlossene Projekte
</a>
</div>
</div>
</div>
</section>
<!-- Value Proposition -->
<section class="section">
<div class="container">
<div class="value-grid">
<div class="value-card">
<div class="value-card__icon">
<span class="material-symbols-outlined">checklist</span>
</div>
<h3 class="heading-3 value-card__title">Strukturierte Erfassung</h3>
<p class="value-card__desc">
Formulare zur systematischen Datenerfassung. Experten bewerten Entwürfe nach definierten Kriterien.
</p>
</div>
<div class="value-card">
<div class="value-card__icon">
<span class="material-symbols-outlined">library_books</span>
</div>
<h3 class="heading-3 value-card__title">Framework-Katalog</h3>
<p class="value-card__desc">
Fertige Bewertungsrahmen: SNBS, DGNB, LEED, WELL, Levels und mehr. Sofort einsatzbereit.
</p>
</div>
<div class="value-card">
<div class="value-card__icon">
<span class="material-symbols-outlined">compare</span>
</div>
<h3 class="heading-3 value-card__title">Transparenter Vergleich</h3>
<p class="value-card__desc">
Varianten nebeneinander vergleichen. Entscheidungen dokumentieren und nachvollziehbar machen.
</p>
</div>
</div>
</div>
</section>
<!-- How It Works -->
<section class="section section--alt" id="how-it-works">
<div class="container">
<div class="section-intro text-center">
<h2 class="heading-2">So funktioniert's</h2>
<p class="subheading">
Strukturierte Datenerfassung mit quantitativen Messungen und qualitativen Expertenbewertungen.
</p>
</div>
<!-- Quantitative vs Qualitative -->
<div class="concept-grid">
<div class="concept-card">
<div class="concept-card__icon concept-card__icon--quantitative">
<span class="material-symbols-outlined">straighten</span>
</div>
<h3 class="concept-card__title">Quantitative KPIs</h3>
<p class="concept-card__desc">
Messbare Kennzahlen mit definierten Einheiten. Diese Werte können objektiv erfasst und verglichen werden.
</p>
<div class="concept-card__examples">
<span class="example-tag">Geschossfläche (m²)</span>
<span class="example-tag">Baukosten (CHF)</span>
<span class="example-tag">Energiebedarf (kWh/m²)</span>
<span class="example-tag">CO₂-Emissionen (kg/m²)</span>
</div>
</div>
<div class="concept-card">
<div class="concept-card__icon concept-card__icon--qualitative">
<span class="material-symbols-outlined">psychology</span>
</div>
<h3 class="concept-card__title">Qualitative KPIs</h3>
<p class="concept-card__desc">
Experteneinschätzungen auf einer definierten Bewertungsskala. Diese erfassen Aspekte, die nicht direkt messbar sind.
</p>
<div class="concept-card__examples">
<span class="example-tag">Architektonische Qualität</span>
<span class="example-tag">Nutzungsflexibilität</span>
<span class="example-tag">Städtebauliche Einbindung</span>
<span class="example-tag">Aufenthaltsqualität</span>
</div>
</div>
</div>
<!-- Process Steps -->
<h3 class="heading-3 text-center section-intro__title">Der Bewertungsprozess</h3>
<div class="steps">
<div class="step">
<div class="step__number">1</div>
<h3 class="step__title">Projekt anlegen</h3>
<p class="step__desc">Wettbewerb erstellen und Grunddaten erfassen</p>
</div>
<div class="step">
<div class="step__number">2</div>
<h3 class="step__title">Frameworks wählen</h3>
<p class="step__desc">Standards und Anwendungsfälle kombinieren</p>
</div>
<div class="step">
<div class="step__number">3</div>
<h3 class="step__title">Daten erfassen</h3>
<p class="step__desc">Varianten anlegen, Experten bewerten</p>
</div>
<div class="step">
<div class="step__number">4</div>
<h3 class="step__title">Vergleichen</h3>
<p class="step__desc">Ergebnisse analysieren und entscheiden</p>
</div>
</div>
</div>
</section>
<!-- Frameworks -->
<section class="section" id="frameworks">
<div class="container">
<div class="section-intro text-center">
<h2 class="heading-2">Bewährte Standards nutzen</h2>
<p class="subheading">
Wählen Sie aus etablierten Zertifizierungssystemen oder erstellen Sie eigene Bewertungsrahmen.
</p>
</div>
<div class="frameworks-grid">
<a href="frameworks.html" class="framework-card">
<div class="framework-card__logo">SNBS</div>
<div class="framework-card__name">Standard Nachhaltiges Bauen Schweiz</div>
</a>
<a href="frameworks.html" class="framework-card">
<div class="framework-card__logo">DGNB</div>
<div class="framework-card__name">Deutsche Gesellschaft für Nachhaltiges Bauen</div>
</a>
<a href="frameworks.html" class="framework-card">
<div class="framework-card__logo">LEED</div>
<div class="framework-card__name">Leadership in Energy and Environmental Design</div>
</a>
<a href="frameworks.html" class="framework-card">
<div class="framework-card__logo">WELL</div>
<div class="framework-card__name">WELL Building Standard</div>
</a>
<a href="frameworks.html" class="framework-card">
<div class="framework-card__logo">Level(s)</div>
<div class="framework-card__name">EU Framework for Sustainable Buildings</div>
</a>
<a href="frameworks.html" class="framework-card framework-card--custom">
<div class="framework-card__logo">
<span class="material-symbols-outlined">add_circle</span>
</div>
<div class="framework-card__name">Eigenes Framework erstellen</div>
</a>
</div>
<div class="text-center frameworks-section__link">
<a href="frameworks.html" class="btn btn--secondary">
Alle Frameworks vergleichen und Details ansehen
<span class="material-symbols-outlined">arrow_forward</span>
</a>
</div>
</div>
</section>
<!-- Showcase -->
<section class="section section--alt" id="showcase">
<div class="container">
<div class="showcase__header">
<div>
<h2 class="heading-2">Abgeschlossene Wettbewerbe</h2>
<p class="subheading">
Projekte, die mit dem Wettbewerb Cockpit bewertet wurden.
</p>
</div>
<div class="view-toggle">
<button class="view-toggle__btn active" data-view="gallery">
<span class="material-symbols-outlined">grid_view</span>
Galerie
</button>
<button class="view-toggle__btn" data-view="list">
<span class="material-symbols-outlined">view_list</span>
Liste
</button>
<button class="view-toggle__btn" data-view="map">
<span class="material-symbols-outlined">map</span>
Karte
</button>
</div>
</div>
<!-- Gallery View -->
<div class="showcase__gallery" id="gallery-view">
<!-- Project cards will be generated by JS -->
</div>
<!-- List View -->
<div class="showcase__list" id="list-view">
<!-- Project rows will be generated by JS -->
</div>
<!-- Map View -->
<div class="showcase__map" id="map-view">
<div id="map"></div>
</div>
</div>
</section>
<!-- Features -->
<section class="section">
<div class="container">
<div class="section-intro text-center">
<h2 class="heading-2">Funktionen</h2>
</div>
<div class="features-grid">
<div class="feature">
<div class="feature__icon">
<span class="material-symbols-outlined">api</span>
</div>
<div>
<h3 class="feature__title">API & Datenintegration</h3>
<p class="feature__desc">Alle Daten per API abrufbar. Nahtlose Integration in bestehende Systeme und Workflows.</p>
</div>
</div>
<div class="feature">
<div class="feature__icon">
<span class="material-symbols-outlined">view_in_ar</span>
</div>
<div>
<h3 class="feature__title">BIM & 3D-Viewer</h3>
<p class="feature__desc">Integrierter 3D-Viewer und IFC-Checker. Optional – funktioniert auch mit Grundrissen und Excel.</p>
</div>
</div>
<div class="feature">
<div class="feature__icon">
<span class="material-symbols-outlined">shield_lock</span>
</div>
<div>
<h3 class="feature__title">Datenschutz & Sicherheit</h3>
<p class="feature__desc">On-Premise oder SaaS. IAM-Integration (SSO, LDAP). Ihre Daten bleiben unter Ihrer Kontrolle.</p>
</div>
</div>
<div class="feature">
<div class="feature__icon">
<span class="material-symbols-outlined">library_books</span>
</div>
<div>
<h3 class="feature__title">Bewährte Standards</h3>
<p class="feature__desc">SNBS, DGNB, LEED, WELL und mehr. Sofort einsatzbereit oder eigene Frameworks erstellen.</p>
</div>
</div>
<div class="feature">
<div class="feature__icon">
<span class="material-symbols-outlined">compare_arrows</span>
</div>
<div>
<h3 class="feature__title">Transparenter Vergleich</h3>
<p class="feature__desc">Varianten nebeneinander bewerten. Entscheidungen dokumentiert und nachvollziehbar.</p>
</div>
</div>
<div class="feature">
<div class="feature__icon">
<span class="material-symbols-outlined">groups</span>
</div>
<div>
<h3 class="feature__title">Team-Zusammenarbeit</h3>
<p class="feature__desc">Jurymitglieder einladen, Rollen vergeben, Bewertungen koordinieren.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Pricing -->
<section class="section section--alt" id="pricing">
<div class="container">
<div class="section-intro text-center">
<h2 class="heading-2">Preise</h2>
<p class="subheading">
Flexible Modelle für jede Projektgrösse. Starten Sie kostenlos und skalieren Sie nach Bedarf.
</p>
</div>
<div class="pricing-grid">
<div class="pricing-card">
<div class="pricing-card__name">Starter</div>
<p class="pricing-card__desc">Für kleine Wettbewerbe und erste Erfahrungen</p>
<div class="pricing-card__price">
<span class="pricing-card__amount">Kostenlos</span>
</div>
<ul class="pricing-card__features">
<li>
<span class="material-symbols-outlined">check</span>
1 aktives Projekt
</li>
<li>
<span class="material-symbols-outlined">check</span>
Bis zu 3 Varianten
</li>
<li>
<span class="material-symbols-outlined">check</span>
Basis-Kriterien (Flächen, Volumen)
</li>
<li>
<span class="material-symbols-outlined">check</span>
3D-Viewer & Dokumente
</li>
<li>
<span class="material-symbols-outlined">check</span>
Export als PDF
</li>
</ul>
<a href="app/index.html" class="btn btn--secondary">Kostenlos starten</a>
</div>
<div class="pricing-card pricing-card--featured">
<span class="pricing-card__badge">Empfohlen</span>
<div class="pricing-card__name">Professional</div>
<p class="pricing-card__desc">Für mittlere bis grosse Wettbewerbe</p>
<div class="pricing-card__price">
<span class="pricing-card__amount">CHF 490</span>
<span class="pricing-card__period">/ Projekt</span>
</div>
<ul class="pricing-card__features">
<li>
<span class="material-symbols-outlined">check</span>
Unbegrenzte Varianten
</li>
<li>
<span class="material-symbols-outlined">check</span>
Alle Standards (SNBS, DGNB, LEED, ...)
</li>
<li>
<span class="material-symbols-outlined">check</span>
Alle Anwendungsfälle (Kosten, Energie, LCA, ...)
</li>
<li>
<span class="material-symbols-outlined">check</span>
IFC-Modelchecker mit Prüfregeln
</li>
<li>
<span class="material-symbols-outlined">check</span>
Team-Zusammenarbeit (5 Nutzer)
</li>
<li>
<span class="material-symbols-outlined">check</span>
Export als PDF, Excel
</li>
</ul>
<a href="app/index.html" class="btn btn--primary">Projekt starten</a>
</div>
<div class="pricing-card">
<div class="pricing-card__name">Enterprise</div>
<p class="pricing-card__desc">Für Organisationen mit mehreren Projekten</p>
<div class="pricing-card__price">
<span class="pricing-card__amount">Auf Anfrage</span>
</div>
<ul class="pricing-card__features">
<li>
<span class="material-symbols-outlined">check</span>
Unbegrenzte Projekte
</li>
<li>
<span class="material-symbols-outlined">check</span>
Eigene Frameworks erstellen
</li>
<li>
<span class="material-symbols-outlined">check</span>
Eigene Prüfregeln konfigurieren
</li>
<li>
<span class="material-symbols-outlined">check</span>
Unbegrenzte Nutzer
</li>
<li>
<span class="material-symbols-outlined">check</span>
API-Zugang
</li>
<li>
<span class="material-symbols-outlined">check</span>
Single Sign-On (SSO)
</li>
<li>
<span class="material-symbols-outlined">check</span>
Experten-Support (Begleitung im Wettbewerb)
</li>
</ul>
<button class="btn btn--secondary">Kontakt aufnehmen</button>
</div>
</div>
</div>
</section>
<!-- CTA -->
<section class="section cta">
<div class="container text-center">
<h2 class="heading-2">Bereit für strukturierte Wettbewerbsbewertung?</h2>
<p class="subheading">Starten Sie jetzt mit der Demo oder kontaktieren Sie uns für eine Einführung.</p>
<div class="cta__actions">
<a href="app/index.html" class="btn btn--primary btn--lg">
<span class="material-symbols-outlined">play_arrow</span>
Demo starten
</a>
<a href="#" class="btn btn--secondary btn--lg">
<span class="material-symbols-outlined">mail</span>
Kontakt
</a>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<div class="footer__grid">
<div>
<div class="footer__brand">
<span class="material-symbols-outlined">analytics</span>
Wettbewerb Cockpit
</div>
<p class="footer__desc">
Strukturierte Bewertung für Architekturwettbewerbe.
Vergleichen Sie Projektvarianten objektiv anhand etablierter Nachhaltigkeitsstandards.
</p>
</div>
<div>
<h4 class="footer__title">Produkt</h4>
<ul class="footer__links">
<li><a href="#">Funktionen</a></li>
<li><a href="frameworks.html">Standards</a></li>
<li><a href="#">Preise</a></li>
<li><a href="#">Demo</a></li>
</ul>
</div>
<div>
<h4 class="footer__title">Ressourcen</h4>
<ul class="footer__links">
<li><a href="#">Dokumentation</a></li>
<li><a href="#">API</a></li>
<li><a href="#">Support</a></li>
<li><a href="https://github.com/davras5/competition-immo" target="_blank">Quellencode</a></li>
</ul>
</div>
<div>
<h4 class="footer__title">Rechtliches</h4>
<ul class="footer__links">
<li><a href="#">Impressum</a></li>
<li><a href="#">Datenschutz</a></li>
<li><a href="#">AGB</a></li>
</ul>
</div>
</div>
<div class="footer__bottom">
<div>© 2025 Wettbewerb Cockpit. Alle Rechte vorbehalten.</div>
<div>Made with care in Switzerland</div>
</div>
</div>
</footer>
<script>
// Mobile Navigation Toggle
const menuToggle = document.querySelector('.header__menu-toggle');
const mobileNav = document.getElementById('mobile-nav');
const menuIcon = document.getElementById('menu-icon');
if (menuToggle && mobileNav) {
menuToggle.addEventListener('click', () => {
const isOpen = mobileNav.classList.contains('active');
mobileNav.classList.toggle('active');
document.body.classList.toggle('mobile-nav-open');
// Update ARIA attributes
menuToggle.setAttribute('aria-expanded', !isOpen);
mobileNav.setAttribute('aria-hidden', isOpen);
menuToggle.setAttribute('aria-label', isOpen ? 'Menü öffnen' : 'Menü schliessen');
// Toggle icon
menuIcon.textContent = isOpen ? 'menu' : 'close';
});
// Close menu when clicking a link
mobileNav.querySelectorAll('a').forEach(link => {
link.addEventListener('click', () => {
mobileNav.classList.remove('active');
document.body.classList.remove('mobile-nav-open');
menuToggle.setAttribute('aria-expanded', 'false');
mobileNav.setAttribute('aria-hidden', 'true');
menuToggle.setAttribute('aria-label', 'Menü öffnen');
menuIcon.textContent = 'menu';
});
});
}
// Sample project data
const projects = [
{
id: 1,
title: 'Neubau Verwaltungsgebäude Bern',
location: 'Bern',
lat: 46.9480,
lng: 7.4474,
status: 'completed',
frameworks: ['SNBS', 'Minergie-P'],
image: 'https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=600&h=400&fit=crop'
},
{
id: 2,
title: 'Erweiterung Kantonsspital Zürich',
location: 'Zürich',
lat: 47.3769,
lng: 8.5417,
status: 'completed',
frameworks: ['DGNB', 'WELL'],
image: 'https://images.unsplash.com/photo-1587351021759-3e566b6af7cc?w=600&h=400&fit=crop'
},
{
id: 3,
title: 'Campus Hochschule Luzern',
location: 'Luzern',
lat: 47.0502,
lng: 8.3093,
status: 'completed',
frameworks: ['SNBS', 'Level(s)'],
image: 'https://images.unsplash.com/photo-1562516155-e0c1ee44059b?w=600&h=400&fit=crop'
},
{
id: 4,
title: 'Wohnüberbauung Glattpark',
location: 'Opfikon',
lat: 47.4319,
lng: 8.5686,
status: 'in-progress',
frameworks: ['SNBS', 'Basis-KPIs'],
image: 'https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=600&h=400&fit=crop'
},
{
id: 5,
title: 'Schulhaus Grossmatt',
location: 'Baar',
lat: 47.1966,
lng: 8.5294,
status: 'completed',
frameworks: ['Minergie-ECO'],
image: 'https://images.unsplash.com/photo-1580587771525-78b9dba3b914?w=600&h=400&fit=crop'
},
{
id: 6,
title: 'Bürogebäude Hardbrücke',
location: 'Zürich',
lat: 47.3856,
lng: 8.5187,
status: 'completed',
frameworks: ['LEED', 'WELL'],
image: 'https://images.unsplash.com/photo-1497366216548-37526070297c?w=600&h=400&fit=crop'
}
];
// Render gallery view
function renderGallery() {
const container = document.getElementById('gallery-view');
container.innerHTML = projects.map(p => `
<div class="project-card">
<div class="project-card__image">
${p.image
? `<img src="${p.image}" alt="${p.title}">`
: `<div class="project-card__placeholder"><span class="material-symbols-outlined">apartment</span></div>`
}
<span class="project-card__status ${p.status === 'in-progress' ? 'project-card__status--in-progress' : ''}">
${p.status === 'completed' ? 'Abgeschlossen' : 'In Bearbeitung'}
</span>
</div>
<div class="project-card__body">
<h3 class="project-card__title">${p.title}</h3>
<div class="project-card__location">
<span class="material-symbols-outlined">location_on</span>
${p.location}
</div>
<div class="project-card__frameworks">
${p.frameworks.map(f => `<span class="framework-badge">${f}</span>`).join('')}
</div>
</div>
</div>
`).join('');
}
// Render list view
function renderList() {
const container = document.getElementById('list-view');
container.innerHTML = projects.map(p => `
<div class="project-row">
<div class="project-row__image">
${p.image
? `<img src="${p.image}" alt="${p.title}">`
: `<div class="project-card__placeholder" style="height:100%;"><span class="material-symbols-outlined">apartment</span></div>`
}
</div>
<div class="project-row__info">
<div class="project-row__title">${p.title}</div>
<div class="project-row__location">
<span class="material-symbols-outlined" style="font-size:14px;">location_on</span>
${p.location}
</div>
</div>
<div class="project-row__frameworks">
${p.frameworks.map(f => `<span class="framework-badge">${f}</span>`).join('')}
</div>
<span class="project-row__status" style="${p.status === 'in-progress' ? 'background: var(--color-amber-100); color: var(--color-amber-700);' : ''}">
${p.status === 'completed' ? 'Abgeschlossen' : 'In Bearbeitung'}
</span>
</div>
`).join('');
}
// Initialize map
let map = null;
function initMap() {
if (map) return;
mapboxgl.accessToken = 'pk.eyJ1IjoiZGF2aWRyYXNuZXI1IiwiYSI6ImNtMm5yamVkdjA5MDcycXMyZ2I2MHRhamgifQ.m651j7WIX7MyxNh8KIQ1Gg';
map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/light-v11',
center: [8.2275, 46.8182],
zoom: 7
});
map.addControl(new mapboxgl.NavigationControl(), 'top-right');
// Add markers
projects.forEach(p => {
const el = document.createElement('div');
el.className = 'map-marker';
const popup = new mapboxgl.Popup({ offset: 25 })
.setHTML(`
<strong>${p.title}</strong><br>
<span style="color: var(--color-slate-500); font-size: 13px;">${p.location}</span><br>
<span style="font-size: 12px; color: var(--color-slate-600);">${p.frameworks.join(', ')}</span>
`);
new mapboxgl.Marker(el)
.setLngLat([p.lng, p.lat])
.setPopup(popup)
.addTo(map);
});
}
// View toggle
const viewButtons = document.querySelectorAll('.view-toggle__btn');
const galleryView = document.getElementById('gallery-view');
const listView = document.getElementById('list-view');
const mapView = document.getElementById('map-view');
viewButtons.forEach(btn => {
btn.addEventListener('click', () => {
const view = btn.dataset.view;
// Update active button
viewButtons.forEach(b => b.classList.remove('active'));
btn.classList.add('active');
// Show correct view
galleryView.style.display = view === 'gallery' ? 'grid' : 'none';
listView.style.display = view === 'list' ? 'flex' : 'none';
mapView.style.display = view === 'map' ? 'block' : 'none';
// Initialize map on first show
if (view === 'map') {
setTimeout(() => {
initMap();
map.resize();
}, 100);
}
});
});
// Initial render
renderGallery();
renderList();
// Pricing card selection
const pricingGrid = document.querySelector('.pricing-grid');
const pricingCards = document.querySelectorAll('.pricing-card');
pricingCards.forEach(card => {
card.addEventListener('click', (e) => {
// Don't toggle selection if clicking on a button or link
if (e.target.closest('.btn')) return;
// Remove selection from all cards
pricingCards.forEach(c => c.classList.remove('pricing-card--selected'));
// Add selection to clicked card
card.classList.add('pricing-card--selected');
// Mark grid as having a selection (to reset featured card styling)
pricingGrid.classList.add('pricing-grid--has-selection');
});
});
</script>
</body>
</html>