{"version":3,"file":"SectionHeader.CPe9Dbew.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Gs1denu46lBx5ILMFVBh/wNK96QHVxHZfnn6vfF3e/SectionHeader.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{COLORS,FONT,useViewport,pick}from\"https://framerusercontent.com/modules/UPgtZ6oOAV4Jj00TQLcz/y32jJSQHYBJ5JamoPj9w/tokens.js\";const DEFAULTS={eyebrow:\"Warum jetzt\",headline:\"Markt-Kontext\",lead:\"Der Finanzsektor in DACH ist hochreguliert und cloud-abh\\xe4ngig zugleich. BaFin-Merkblatt Cloud-Computing, EBA- und EIOPA-Guidelines, DORA ab 2025, EU Data Act, NIS2 und DSGVO geben den Rahmen.\",align:\"left\",theme:\"forest\",maxLeadWidth:880,showEyebrow:true,eyebrowSize:14,headlineSize:45,leadSize:23};const LEAD_COLORS={forest:COLORS.clarity,utopia:COLORS.contrast,neutral:COLORS.forest};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 980\n * @framerIntrinsicHeight 220\n */export function SectionHeader({eyebrow=DEFAULTS.eyebrow,headline=DEFAULTS.headline,lead=DEFAULTS.lead,align=DEFAULTS.align,theme=DEFAULTS.theme,maxLeadWidth=DEFAULTS.maxLeadWidth,showEyebrow=DEFAULTS.showEyebrow,eyebrowSize=DEFAULTS.eyebrowSize,headlineSize=DEFAULTS.headlineSize,leadSize=DEFAULTS.leadSize}){const v=useViewport();const palette={forest:{eyebrow:COLORS.utopia,headline:COLORS.utopia},utopia:{eyebrow:COLORS.forest,headline:COLORS.contrast},neutral:{eyebrow:COLORS.forest,headline:COLORS.contrast}}[theme];// Strip residual HTML tags if an old RichText value is passed in.\n// Guard: lead may arrive as a non-string (React node / object) during SSR.\nconst leadText=typeof lead===\"string\"?lead.replace(/<[^>]*>/g,\"\").trim():lead?String(lead).replace(/<[^>]*>/g,\"\").trim():\"\";// Schriftgrößen aus den exposed Props ableiten. Die clamp()-Struktur\n// bleibt erhalten (flüssige Skalierung + harte Untergrenze), nur das\n// Maximum kommt jetzt aus der Property. Defaults = bisherige Werte.\nconst headlineFont=pick(v,{desktop:`clamp(28px, 4vw, ${headlineSize}px)`,tablet:`clamp(26px, 4vw, ${Math.round(headlineSize*.84)}px)`,mobile:`clamp(22px, 6vw, ${Math.round(headlineSize*.71)}px)`});const leadFont=pick(v,{desktop:`clamp(16px, 1.8vw, ${leadSize}px)`,tablet:`clamp(15px, 2vw, ${Math.round(leadSize*.87)}px)`,mobile:`${Math.max(14,Math.round(leadSize*.7))}px`});// Verhindert, dass lange Wörter / Komposita über den Rand laufen.\nconst wrap={overflowWrap:\"break-word\",wordBreak:\"break-word\",hyphens:\"auto\"};return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",maxWidth:\"100%\",minWidth:0,fontFamily:FONT,display:\"flex\",flexDirection:\"column\",alignItems:align===\"center\"?\"center\":\"flex-start\",textAlign:align,boxSizing:\"border-box\"},children:[showEyebrow&&eyebrow&&/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-block\",fontSize:eyebrowSize,fontWeight:600,letterSpacing:\"0.12em\",textTransform:\"uppercase\",color:palette.eyebrow,marginBottom:24,...wrap},children:eyebrow}),headline&&/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,width:\"100%\",fontSize:headlineFont,fontWeight:300,lineHeight:\"1.1em\",letterSpacing:\"-0.04em\",color:palette.headline,maxWidth:maxLeadWidth?maxLeadWidth+40:\"100%\",...wrap},children:headline}),leadText&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,marginTop:32,width:\"100%\",fontSize:leadFont,fontWeight:300,lineHeight:\"1.4em\",letterSpacing:\"-0.02em\",color:LEAD_COLORS[theme],maxWidth:maxLeadWidth||\"100%\",alignSelf:align===\"center\"?\"center\":undefined,...wrap},children:leadText})]});}addPropertyControls(SectionHeader,{eyebrow:{type:ControlType.String,title:\"Eyebrow\",defaultValue:DEFAULTS.eyebrow},showEyebrow:{type:ControlType.Boolean,title:\"Show Eyebrow\",defaultValue:true,enabledTitle:\"Ein\",disabledTitle:\"Aus\"},headline:{type:ControlType.String,title:\"Headline\",defaultValue:DEFAULTS.headline,displayTextArea:true},lead:{type:ControlType.String,title:\"Lead\",defaultValue:DEFAULTS.lead,displayTextArea:true},theme:{type:ControlType.Enum,title:\"Theme\",options:[\"forest\",\"utopia\",\"neutral\"],optionTitles:[\"Forest dark\",\"Utopia bright\",\"Neutral / White\"],defaultValue:\"forest\"},align:{type:ControlType.Enum,title:\"Alignment\",options:[\"left\",\"center\"],optionTitles:[\"Left\",\"Center\"],defaultValue:\"left\"},maxLeadWidth:{type:ControlType.Number,title:\"Max Lead Width\",defaultValue:880,min:400,max:1200,step:20,unit:\"px\"},eyebrowSize:{type:ControlType.Number,title:\"Eyebrow Gr\\xf6\\xdfe\",defaultValue:DEFAULTS.eyebrowSize,min:10,max:24,step:1,unit:\"px\"},headlineSize:{type:ControlType.Number,title:\"Headline Gr\\xf6\\xdfe\",defaultValue:DEFAULTS.headlineSize,min:18,max:80,step:1,unit:\"px\",description:\"Desktop-Max. Tablet \\xd70.84, Mobile \\xd70.71 (fl\\xfcssig skaliert).\"},leadSize:{type:ControlType.Number,title:\"Lead Gr\\xf6\\xdfe\",defaultValue:DEFAULTS.leadSize,min:12,max:40,step:1,unit:\"px\",description:\"Desktop-Max. Tablet \\xd70.87, Mobile \\xd70.7.\"}});export default SectionHeader;\nexport const __FramerMetadata__ = {\"exports\":{\"SectionHeader\":{\"type\":\"reactComponent\",\"name\":\"SectionHeader\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"980\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicHeight\":\"220\",\"framerSupportedLayoutHeight\":\"any\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"SectionHeader\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"220\",\"framerIntrinsicWidth\":\"980\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SectionHeader.map"],"mappings":"+OAKG,SAAgB,EAAc,CAAC,UAAQ,EAAS,QAAQ,WAAS,EAAS,SAAS,OAAK,EAAS,KAAK,QAAM,EAAS,MAAM,QAAM,EAAS,MAAM,eAAa,EAAS,aAAa,cAAY,EAAS,YAAY,cAAY,EAAS,YAAY,eAAa,EAAS,aAAa,WAAS,EAAS,UAAU,CAAC,IAAM,EAAE,EAAY,EAAQ,EAAQ,CAAC,OAAO,CAAC,QAAQ,EAAO,OAAO,SAAS,EAAO,MAAM,EAAE,OAAO,CAAC,QAAQ,EAAO,OAAO,SAAS,EAAO,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAO,OAAO,SAAS,EAAO,QAAQ,CAAC,EAAE,GAE/f,EAAS,OAAO,GAAO,SAAS,EAAK,QAAQ,WAAW,EAAE,CAAC,CAAC,KAAK,EAAE,EAAK,OAAO,CAAI,CAAC,CAAC,QAAQ,WAAW,EAAE,CAAC,CAAC,KAAK,EAAE,GAGnH,EAAa,EAAK,EAAE,CAAC,QAAQ,oBAAoB,EAAa,KAAK,OAAO,oBAAoB,KAAK,MAAM,EAAa,GAAG,EAAE,KAAK,OAAO,oBAAoB,KAAK,MAAM,EAAa,GAAG,EAAE,IAAI,CAAC,EAAQ,EAAS,EAAK,EAAE,CAAC,QAAQ,sBAAsB,EAAS,KAAK,OAAO,oBAAoB,KAAK,MAAM,EAAS,GAAG,EAAE,KAAK,OAAO,GAAG,KAAK,IAAI,GAAG,KAAK,MAAM,EAAS,EAAE,CAAC,EAAE,GAAG,CAAC,EAC9W,EAAK,CAAC,aAAa,aAAa,UAAU,aAAa,QAAQ,MAAM,EAAE,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,WA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