import type { ReactNode } from "react";
import { Reveal } from "./Reveal";
type NewsletterProps = {
title?: ReactNode;
description?: string;
};
/**
* Reused as-is (same bordered/muted panel + icon-decoration + form
* pattern) on both Home and /newsletter (the "Impulse & Tipps" page) —
* their Figma frames use the exact same newsletter-inner component
* instance, just with different copy, so title/description are props
* instead of a second near-duplicate component.
*/
export function Newsletter({
title = <>Starte mit einer Woche voller Klarheit.>,
description = "Melde dich zum Newsletter an und erhalte die 7-Tage-Challenge, mit der du durch mehr Struktur weniger Stress spürst.",
}: NewsletterProps = {}) {
return (
{/* Outer section padding — same fluid horizontal padding as all other sections */}
{/* Rounded card: cream bg, stacks below md */}
{/* Left: copy — fixed width from md+ so the form always gets the remaining space */}
{/* Decorative envelope icon, tilted -4° as per design */}
{/* Heading + body */}
{title}
{description}
{/* Right: form — takes remaining space, centered vertically from md+ */}
{/* Input + submit button — stacked below md, side by side from md+ */}
{/* Privacy note */}
Ich achte auf deine Daten. Kein Spam, jederzeit abbestellbar.