From 79f03d429d5e07023efcae766430c20363d6cb60 Mon Sep 17 00:00:00 2001
From: Athena
Date: Tue, 5 May 2026 10:37:50 +0200
Subject: [PATCH] fix: mobile mountain animation + white text on dark
backgrounds
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- MountainClimb: mobile SVG viewport now follows the person (pan/zoom)
- MountainClimb: restored desktop SVG, removed card-only mobile fallback
- page.tsx: inline styles for all text in mc-dark-bg sections (white)
- page.tsx: remove "Nur noch 8 frei" badge
- page.tsx: fix negative copy ("kein neues Wissen") → positive umsetzungsfokus
Co-Authored-By: Claude Sonnet 4.6
---
src/app/components/MountainClimb.tsx | 132 ++++++++++++++++++++++++---
src/app/page.tsx | 18 ++--
2 files changed, 128 insertions(+), 22 deletions(-)
diff --git a/src/app/components/MountainClimb.tsx b/src/app/components/MountainClimb.tsx
index 5bc22c6..7122095 100644
--- a/src/app/components/MountainClimb.tsx
+++ b/src/app/components/MountainClimb.tsx
@@ -98,6 +98,11 @@ export default function MountainClimb() {
const summitCardX = Math.min(Math.max(summitRawCX, 8), VW - SUMMIT_W - 8);
const summitCardY = Math.max(wp.y - SUMMIT_H - 120, 4);
+ // Mobile pan: viewport 380×440 follows the person
+ const MOB_W = 380, MOB_H = 440;
+ const mobPanX = Math.min(0, Math.max(-(VW - MOB_W), -(wp.x - MOB_W / 2)));
+ const mobPanY = Math.min(0, Math.max(-(VH - MOB_H), -(wp.y - Math.round(MOB_H * 0.68))));
+
const replay = () => {
started.current = true;
setStep(0);
@@ -117,7 +122,7 @@ export default function MountainClimb() {
- {/* ── Mountain animation (md+) ── */}
+ {/* ── Mountain animation (desktop only) ── */}
!atSummit && setPaused((p) => !p)}
@@ -315,20 +320,121 @@ export default function MountainClimb() {
)}
- {/* ── Mobile fallback: numbered list ── */}
-
- {STEPS.map((s, i) => (
-
-
- {i + 1}
-
-
+ {/* ── Mobile: same SVG, viewport follows the person ── */}
+
!atSummit && setPaused((p) => !p)}
+ style={{ cursor: atSummit ? "default" : "pointer" }}
+ >
+
+
+
+
+
+
+
+
+ {/* Pan group — smoothly follows the person */}
+
+
+ {/* Mountain */}
+
+
+
+ {/* Dots */}
+ {WP.map((w, i) => (
+ = 0 && i <= step ? 5.5 : 3.5}
+ fill={step >= 0 && i <= step ? "#6366f1" : "#c7d2fe"}
+ style={{ transition: "r 0.3s, fill 0.3s" }}
+ />
+ ))}
+
+ {/* Stick figure */}
+ {step >= 0 && (
+
+
+
+
+
+
+
+
+ {atSummit && (
+
+
+
+
+ )}
+
+
+ )}
+
+ {/* Step card */}
+ {step >= 0 && !atSummit && (
+ <>
+
+
+
+
+ Schritt {step + 1} / {STEPS.length}
+
+
+ {STEPS[step].title}
+
+
+ {STEPS[step].sub}
+
+
+
+ >
+ )}
+
+ {/* Summit card */}
+ {atSummit && (
+ <>
+
+
+
+
+ Ich habe jetzt ein Kundengewinnungssystem
+
+
+
+ >
+ )}
+
+
+
+
+ {/* Hints */}
+ {step >= 0 && !atSummit && (
+
+ {paused ? "▶ Tippen zum Fortsetzen" : "⏸ Tippen zum Pausieren"}
+
+ )}
+ {atSummit && (
+
+
+ Nochmal ansehen ↺
+
- ))}
+ )}
+
);
diff --git a/src/app/page.tsx b/src/app/page.tsx
index b17c217..f95158d 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -82,7 +82,7 @@ export default function Home() {
Meinen Platz sichern →
- Exklusive Kleingruppe · Maximal 10 Plätze · Nur noch 8 frei
+ Exklusive Kleingruppe · Maximal 10 Plätze
@@ -157,7 +157,7 @@ export default function Home() {
Das 8-Wochen Kundengewinnungs-System macht genau das: Marketing, Vertrieb und Social Media — in einem System, das Woche für Woche aufgebaut wird.
- Du baust kein neues Wissen auf. Du nimmst alles was du hast — und bringst es in eine Struktur, die planbar die richtigen Kunden anzieht.
+ Kein Theorie-Overload. Du nimmst alles was du hast — und setzt es endlich in eine Struktur um, die planbar die richtigen Kunden anzieht.
@@ -167,10 +167,10 @@ export default function Home() {
══════════════════════════════════════════ */}
-
- Nur noch 8 Plätze verfügbar.
+
+ Sichere dir jetzt deinen Platz.
- Start: 1. Juli 2027 · Pilotpreis: 500 € (statt 3.000 €)
+
Start: 1. Juli 2027 · Pilotpreis: 500 € (statt 3.000 €)
Meinen Platz sichern →
@@ -410,20 +410,20 @@ export default function Home() {
══════════════════════════════════════════ */}
-
+
Dein Wissen ist da.{" "}
Jetzt bekommt es die Struktur die Kunden bringt.
- Maximal 10 Plätze · Start: 1. Juli 2027
+
Maximal 10 Plätze · Start: 1. Juli 2027
Meinen Platz sichern →
-
Ein kurzes Gespräch — du entscheidest danach.
+
Ein kurzes Gespräch — du entscheidest danach.
{/* FOOTER */}
-
+
© 2026 Market Compass · Katja Pestereva