--- interface Props { label: string; /** Ein Zeilenumbruch ("\n") setzt eine feste Zeile, z. B. bei zwei Sätzen. */ title: string; lede?: string; /** Optional photo used as a full-bleed backdrop instead of the textured * cream ground. */ image?: string; imageAlt?: string; /** Optionales Foto rechts neben dem Text, auf hellem Grund (ab lg). */ sideImage?: string; sideImageAlt?: string; } const { label, title, lede, image, imageAlt = "", sideImage, sideImageAlt = "" } = Astro.props; const dark = Boolean(image); // Mit festen Zeilen bestimmt der Text die Breite, nicht die 16ch-Grenze — // sonst bricht jede Zeile noch einmal mittendrin um. const titleLines = title.split("\n"); ---
{image ? ( {imageAlt} ) : null} {image ? ( ) : null}
{label}

1 ? "max-w-full" : "max-w-[16ch]", dark ? "text-white" : "text-brand-ink", ]} style="--delay: 0.08s" > {titleLines.length > 1 ? titleLines.map((zeile) => {zeile}) : title}

{lede && (

{lede}

)}
{sideImage && ( {sideImageAlt} )}