import type { Metadata } from "next"; import Link from "next/link"; import Image from "next/image"; import { draftMode } from "next/headers"; import { Footer } from "../components/Footer"; import { Reveal, RevealGroup, RevealItem } from "../components/Reveal"; import { TestimonialsGrid } from "../components/TestimonialsGrid"; import { LiveTestimonialsGrid } from "../components/LiveTestimonialsGrid"; import { getTestimonials } from "../lib/payload"; const title = "7-Tage-Challenge – Mehr Klarheit in 7 Tagen"; const description = "Die 7-Tage-Challenge für deinen klaren Kopf und mehr Struktur im Alltag: 7 kurze, praktische Impulse direkt ins Postfach – für mehr Fokus, Ruhe und Klarheit."; export const metadata: Metadata = { title, description, alternates: { canonical: "/challenge", }, openGraph: { title, description, url: "/challenge", images: ["/blog-featured.jpg"], }, twitter: { title, description, images: ["/blog-featured.jpg"], }, }; function IconEnvelope() { return ( ); } function IconMailLines() { return ( ); } function IconNotepad() { return ( ); } function IconCheckCircle() { return ( ); } function Check() { return ( ); } function LockIcon() { return ( ); } const steps = [ { icon: , title: "1. Anmelden", desc: "Trage dich mit deiner E-Mail-Adresse ein und starte sofort.", }, { icon: , title: "2. E-Mail erhalten", desc: "Du bekommst 7 Tage lang jeweils einen Impuls direkt in dein Postfach.", }, { icon: , title: "3. Umsetzen", desc: "Setze die einfache Aufgabe in wenigen Minuten um – für mehr Klarheit und Fokus.", }, { icon: , title: "4. Dranbleiben", desc: "Kleine Schritte führen zu großen Veränderungen – Tag für Tag.", }, ]; const benefits = [ { title: "Klarheit gewinnen", desc: "Sortiere deine Gedanken und erkenne, was wirklich zählt." }, { title: "Fokus stärken", desc: "Richte deine Aufmerksamkeit auf das Wesentliche." }, { title: "Struktur schaffen", desc: "Einfache Methoden für mehr Ordnung im Alltag." }, { title: "Gewohnheiten aufbauen", desc: "Kleine Schritte, die langfristig Wirkung zeigen." }, { title: "Gelassener leben", desc: "Weniger Stress, mehr Zeit für die Dinge, die dir wichtig sind." }, ]; function EmailCapture({ buttonLabel = "Challenge starten" }: { buttonLabel?: string }) { return (
{/* Consent checkbox — this signup's legal basis is consent (email marketing), same wording as the other newsletter forms; colors match this page's own hardcoded palette instead of the shared design tokens, consistent with the rest of the page. */}

Keine Werbung. Jederzeit abbestellbar.

); } export default async function ChallengePage() { const { isEnabled: isPreview } = await draftMode(); const testimonials = await getTestimonials("challenge", { draft: isPreview }); return ( <>
{/* ── Hero ── */}
{/* Left: text + form. justify-center removed from here — the outer section's items-stretch already makes this column full height, but centering its whole content (breadcrumb included) made the breadcrumb's Y position drift depending on this page's content length vs. /todo-cards's and /newsletter's own (different) content lengths. Same fix as both of those. */} {/* pt-10 md:pt-12 (not the original py-10 lg:py-14's top value) — matches /todo-cards's and /newsletter's breadcrumb top offset exactly; pb-10 lg:pb-14 keeps this page's original bottom spacing, which was never the inconsistent part. */} {/* Breadcrumb — 3 levels (Startseite › Werkzeuge › 7-Tage-Challenge), matching /todo-cards's and /newsletter's pattern; was missing "Werkzeuge" in the middle. Also switched from this page's hardcoded hex colors to the shared text-body-sm/text-text-muted/ text-text-primary tokens the other two breadcrumbs use — text-body-sm is 0.875rem, identical to the old literal value, so this is a pure consistency fix, not a visual change. Deliberately NOT part of the centered block below. */}

Startseite Werkzeuge 7-Tage-Challenge

{/* Everything else — centered in the remaining vertical space, same fix as /todo-cards's and /newsletter's Hero sections. */}
{/* Headline */}

7 Tage.
Mehr Klarheit.
Weniger Stress.

{/* Subtitle */}

Die 7-Tage-Challenge für deinen klaren Kopf und mehr Struktur im Alltag.

{/* Checklist */}
    {[ "7 kurze Impulse – direkt in dein Postfach", "Praktisch, umsetzbar und alltagstauglich", "Für mehr Fokus, Ruhe und Klarheit", ].map((item) => (
  • {item}
  • ))}
{/* Email form */}
{/* Right: hero image with badge — group + scale-105 on hover, same restrained "photo feels alive" treatment as the Home/ todo-cards hero images; delay={0.15} mirrors their text→image stagger. */} 7-Tage-Challenge {/* Badge */}

Jeden Tag ein neuer Impuls in deinem Postfach.

{/* ── So funktioniert die Challenge ── */}

So funktioniert die Challenge

Jeden Tag ein Impuls. In nur wenigen Minuten.

{steps.flatMap((step, i) => [
{step.icon}

{step.title}

{step.desc}

, i < steps.length - 1 ? ( // Same /icon-arrow-connector.svg asset and rotate-on-stack // pattern as todo-cards/newsletter's HowItWorks — this // used to be its own hand-drawn SVG arrow, inconsistent // with those two. Always visible (rotated 90° while // stacked below lg, this page's own structural // breakpoint) rather than hidden below lg like before.
) : null, ])}
{/* ── Das erwartet dich ── */}

Das erwartet dich

7 Tage. 7 Impulse. Für mehr Klarheit in deinem Alltag.

{/* Image */} Notizbuch {/* Checklist */}
    {benefits.map((b) => (
  • {b.title}

    {b.desc}

  • ))}
{/* ── Was andere sagen ── */} {isPreview ? ( ) : ( )} {/* ── Bottom CTA ── */}
{/* Left: icon + copy */}

Starte jetzt deine 7-Tage-Challenge

Trage dich ein und erhalte ab sofort täglich einen Impuls für mehr Klarheit und Fokus.

{/* Right: form */}