From 0fc0d301918e429b6cba9e07ee5ec7008c80c768 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Sun, 12 Apr 2026 15:57:41 +0200 Subject: [PATCH] refactor: Hero Slide 0 mit Inline-Video statt Fullscreen-Hintergrund Video wird jetzt als Inline-Element unter der Tagline angezeigt (volle Breite, object-fit contain, nichts abgeschnitten). Label und Headline entfernt (redundant mit Tagline). Beispiel-Text und CTA-Button unterhalb des Videos. Co-Authored-By: Claude Opus 4.6 (1M context) --- vorschau/css/style.css | 11 ++++++----- vorschau/index.html | 26 +++++++++++--------------- vorschau/js/app.js | 4 +--- 3 files changed, 18 insertions(+), 23 deletions(-) diff --git a/vorschau/css/style.css b/vorschau/css/style.css index 55b2e4c..d7b8753 100644 --- a/vorschau/css/style.css +++ b/vorschau/css/style.css @@ -66,7 +66,7 @@ a { color:inherit; text-decoration:none; } .hero-overlay { position:absolute; inset:0; background:linear-gradient(135deg,rgba(10,24,50,0.95) 0%,rgba(19,40,68,0.98) 50%,rgba(10,24,50,0.95) 100%); z-index:1; } -.hero-content { position:relative; z-index:3; max-width:700px; padding:80px 24px; color:var(--white); } +.hero-content { position:relative; z-index:2; max-width:700px; padding:80px 24px; color:var(--white); } .hero-title { font-size:3.4rem; font-weight:700; line-height:1.1; margin-bottom:20px; letter-spacing:-0.02em; color:var(--white); } .hero-claim { font-size:1.45rem; font-weight:300; line-height:1.5; margin-bottom:24px; color:rgba(255,255,255,0.9); } .gold { color:var(--gold); font-weight:600; } @@ -104,10 +104,11 @@ a { color:inherit; text-decoration:none; } .hero-arrow { width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,0.3); background:transparent; color:var(--white); font-size:1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.2s; } .hero-arrow:hover { border-color:var(--gold); color:var(--gold); } -/* ==================== HERO FULLSCREEN VIDEO ==================== */ -.hero-fullscreen-video { position:absolute; inset:0; z-index:2; overflow:hidden; opacity:0; transition:opacity 0.8s ease; pointer-events:none; } -.hero-fullscreen-video.visible { opacity:1; } -.hero-fullscreen-video video { width:100%; height:100%; object-fit:cover; } +/* ==================== HERO INLINE VIDEO (Slide 0) ==================== */ +.hero-slide-has-video { display:flex; flex-direction:column; } +.hero-slide-video-inline { width:100%; border-radius:var(--radius-lg); overflow:hidden; } +.hero-slide-video-inline video { display:block; width:100%; height:auto; } +.hero-slide-bottom { margin-top:16px; } /* ==================== BUTTONS ==================== */ .btn { display:inline-flex; align-items:center; justify-content:center; padding:12px 28px; border-radius:var(--radius); font-family:inherit; font-size:0.95rem; font-weight:600; cursor:pointer; transition:all 0.2s; border:2px solid transparent; text-decoration:none; } diff --git a/vorschau/index.html b/vorschau/index.html index 867a235..ab315d8 100644 --- a/vorschau/index.html +++ b/vorschau/index.html @@ -81,11 +81,6 @@
-
- -

AegisSight Monitor

@@ -93,16 +88,17 @@
- -
-
-
- Echtzeit-Monitoring -

Lagebilder in Echtzeit. Vollautomatisch.

-

Live-Beispiel: Der Iran-Konflikt wird mit über 14.900 Artikeln aus 375 Quellen kontinuierlich überwacht.

- + +
+
+ +
+
+

Live-Beispiel: Der Iran-Konflikt wird mit über 14.900 Artikeln aus 375 Quellen kontinuierlich überwacht.

+
diff --git a/vorschau/js/app.js b/vorschau/js/app.js index 7947f20..b570a46 100644 --- a/vorschau/js/app.js +++ b/vorschau/js/app.js @@ -69,9 +69,7 @@ heroSlides[heroCurrentSlide].classList.add('active'); if (heroDots[heroCurrentSlide]) heroDots[heroCurrentSlide].classList.add('active'); heroIsTransitioning = false; - // Fullscreen video only on slide 0 - var vid = document.getElementById('hero-fullscreen-video'); - if (vid) vid.classList.toggle('visible', heroCurrentSlide === 0); + }, 400); }