{"version":3,"file":"FinalCTA.JKIvAzjP.mjs","names":["useState","startTransition","useCallback","useRef"],"sources":["https:/framerusercontent.com/modules/WBcvsV0GE1FTjPbzNzYP/i5pIyiZHBxLWtheLPyxC/FinalCTA.js"],"sourcesContent":["// academy4.ai — FinalCTA Code Component\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{startTransition,useEffect,useRef,useState,useCallback}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";if(typeof document!==\"undefined\"&&!document.getElementById(\"a4-gf\")){const l=Object.assign(document.createElement(\"link\"),{id:\"a4-gf\",rel:\"stylesheet\",crossOrigin:\"anonymous\",href:\"https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:wght@100..800&family=Space+Grotesk:wght@300..700&display=swap\"});document.head.appendChild(l);}const C={purple:\"#980EDC\",purple700:\"#7A0BB0\",fDisplay:\"'Space Grotesk', system-ui, sans-serif\",fBody:\"'Inter', system-ui, sans-serif\",fHand:\"'Caveat', cursive\",fMono:\"'JetBrains Mono', ui-monospace, monospace\"};const URL_BERATUNG=\"https://9ou4yw7umry.typeform.com/to/cipZossa?typeform-source=academy4.ai\";// Works on both homepage (scrolls to #pricing) and /vision (navigates to /#pricing)\nfunction scrollToPricing(){const el=document.getElementById(\"pricing\");if(el){el.scrollIntoView({behavior:\"smooth\",block:\"start\"});}else{window.location.href=\"/#pricing\";}}function useIsMobile(){const[m,setM]=useState(false);useEffect(()=>{const c=()=>setM(window.innerWidth<=809);c();window.addEventListener(\"resize\",c);return()=>window.removeEventListener(\"resize\",c);},[]);return m;}function parseMsLeft(targetIso){return Math.max(0,new Date(targetIso).getTime()-Date.now());}function breakDown(ms){return{d:Math.floor(ms/864e5),h:Math.floor(ms%864e5/36e5),m:Math.floor(ms%36e5/6e4)};}function Cell({v,label}){return /*#__PURE__*/_jsxs(\"div\",{\"data-resp\":\"countdown-cell\",style:{minWidth:56,padding:\"10px 14px\",background:\"rgba(255,255,255,0.14)\",borderRadius:14,border:\"1px solid rgba(255,255,255,0.30)\",backdropFilter:\"blur(10px)\",WebkitBackdropFilter:\"blur(10px)\",textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:C.fMono,fontWeight:700,fontSize:28,color:\"#fff\",lineHeight:1},children:String(v).padStart(2,\"0\")}),/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:C.fBody,fontSize:11,fontWeight:600,color:\"rgba(255,255,255,0.85)\",letterSpacing:\".10em\",textTransform:\"uppercase\",marginTop:4},children:label})]});}/**\n * academy4.ai — Final CTA\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function FinalCTA({targetDate=\"2026-06-18T22:00:00Z\",headline=\"Bereit f\\xfcr deinen Aufstieg?\",subline=\"Die n\\xe4chste Expedition startet bald. Pl\\xe4tze sind begrenzt (max. 6–7 pro Seilschaft). Werde Gipfelst\\xfcrmer.\",ctaLabel=\"Jetzt Expedition starten →\",mountainSrc=\"\",onCta,style}){const isStatic=useIsStaticRenderer();const isMobile=useIsMobile();const[msLeft,setMsLeft]=useState(()=>parseMsLeft(targetDate));useEffect(()=>{startTransition(()=>setMsLeft(parseMsLeft(targetDate)));},[targetDate]);useEffect(()=>{if(isStatic)return;const id=setInterval(()=>startTransition(()=>setMsLeft(parseMsLeft(targetDate))),3e4);return()=>clearInterval(id);},[isStatic,targetDate]);const{d,h,m}=breakDown(msLeft);const handleCtaPrimary=useCallback(()=>{scrollToPricing();onCta?.();},[onCta]);const injectedRef=useRef(false);useEffect(()=>{if(injectedRef.current||typeof document===\"undefined\")return;injectedRef.current=true;const s=document.createElement(\"style\");s.textContent=`@keyframes a4Pulse2{0%,100%{box-shadow:0 14px 34px -8px rgba(0,0,0,.30),0 0 0 0 rgba(255,255,255,.4)}50%{box-shadow:0 14px 34px -8px rgba(0,0,0,.30),0 0 0 12px rgba(255,255,255,0)}}`;document.head.appendChild(s);},[]);const h2Style={fontFamily:C.fDisplay,fontWeight:700,fontSize:\"clamp(36px, 4.6vw, 64px)\",lineHeight:1.05,letterSpacing:\"-0.025em\",color:\"#fff\",margin:\"0 0 18px\",textWrap:\"balance\"};const sublineStyle={fontFamily:C.fBody,fontSize:isMobile?15:18,lineHeight:1.6,color:\"rgba(255,255,255,0.90)\",margin:\"0 auto 28px\",maxWidth:600,textWrap:\"balance\"};const btnLayout={width:\"auto\",maxWidth:\"100%\",whiteSpace:\"nowrap\",textAlign:\"center\"};return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",...style},children:/*#__PURE__*/_jsx(\"section\",{style:{padding:isMobile?\"64px 20px\":\"24px\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:1200,margin:\"0 auto\",position:\"relative\",overflow:\"hidden\",background:\"linear-gradient(135deg, #980EDC 0%, #7A0BB0 60%, #5A0985 100%)\",borderRadius:32,padding:isMobile?\"64px 16px\":\"88px 48px\",textAlign:\"center\",boxShadow:\"0 24px 64px -16px rgba(152,14,220,0.50)\"},children:[mountainSrc&&/*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",inset:0,opacity:.22,pointerEvents:\"none\",backgroundImage:`url(${mountainSrc})`,backgroundSize:\"cover\",backgroundPosition:\"center 30%\",mixBlendMode:\"screen\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:C.fHand,fontWeight:700,fontSize:30,color:\"#FFD700\",marginBottom:8,display:\"inline-block\",transform:\"rotate(-1.5deg)\"},children:\"Master AI. Remain Human.\"}),/*#__PURE__*/_jsx(\"h2\",{style:h2Style,children:headline}),/*#__PURE__*/_jsx(\"p\",{style:sublineStyle,children:subline}),/*#__PURE__*/_jsxs(\"div\",{\"data-resp\":\"countdown\",style:{display:isMobile?\"flex\":\"inline-flex\",flexDirection:isMobile?\"column\":\"row\",gap:isMobile?12:10,alignItems:\"center\",marginBottom:32,padding:isMobile?\"14px 16px\":\"14px 18px\",borderRadius:20,background:\"rgba(0,0,0,0.18)\",width:isMobile?\"100%\":undefined,maxWidth:isMobile?320:undefined,marginInline:isMobile?\"auto\":undefined,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:C.fBody,fontSize:isMobile?11:13,fontWeight:600,letterSpacing:\".10em\",textTransform:\"uppercase\",color:\"rgba(255,255,255,0.85)\",marginRight:isMobile?0:8,whiteSpace:\"nowrap\",textAlign:isMobile?\"center\":undefined,width:isMobile?\"100%\":undefined},children:\"N\\xe4chste Seilschaft startet in\"}),/*#__PURE__*/_jsxs(\"div\",{\"data-resp\":\"countdown-cells\",style:{display:\"flex\",gap:isMobile?8:10,justifyContent:isMobile?\"center\":undefined,width:isMobile?\"100%\":undefined},children:[/*#__PURE__*/_jsx(Cell,{v:d,label:\"Tage\"}),/*#__PURE__*/_jsx(Cell,{v:h,label:\"Std.\"}),/*#__PURE__*/_jsx(Cell,{v:m,label:\"Min.\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:isMobile?\"column\":\"row\",gap:14,alignItems:\"center\",justifyContent:\"center\"},children:[/*#__PURE__*/_jsx(\"button\",{onClick:handleCtaPrimary,style:{...btnLayout,fontFamily:C.fDisplay,fontWeight:700,fontSize:17,background:\"#fff\",color:C.purple,padding:\"16px 30px\",border:0,borderRadius:999,cursor:\"pointer\",boxShadow:\"0 14px 34px -8px rgba(0,0,0,0.30)\",animation:\"a4Pulse2 2.4s ease-in-out infinite\"},children:ctaLabel}),/*#__PURE__*/_jsx(\"a\",{href:URL_BERATUNG,target:\"_blank\",rel:\"noopener noreferrer\",style:{...btnLayout,fontFamily:C.fDisplay,fontWeight:700,fontSize:17,background:\"transparent\",color:\"#fff\",padding:\"14px 26px\",border:\"2px solid #fff\",borderRadius:999,cursor:\"pointer\",textDecoration:\"none\",display:\"inline-block\",transition:\"all 200ms cubic-bezier(.22,1,.36,1)\"},onMouseEnter:e=>{e.currentTarget.style.background=\"rgba(255,255,255,0.12)\";},onMouseLeave:e=>{e.currentTarget.style.background=\"transparent\";},children:\"Kostenlose Routenberatung\"})]})]})]})})});}addPropertyControls(FinalCTA,{targetDate:{type:ControlType.String,title:\"Zieldatum (ISO)\",defaultValue:\"2026-06-18T22:00:00Z\"},headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"Bereit f\\xfcr deinen Aufstieg?\"},subline:{type:ControlType.String,title:\"Subline\",displayTextArea:true,defaultValue:\"Die n\\xe4chste Expedition startet bald. Pl\\xe4tze sind begrenzt (max. 6–7 pro Seilschaft). Werde Gipfelst\\xfcrmer.\"},ctaLabel:{type:ControlType.String,title:\"CTA Text\",defaultValue:\"Jetzt Expedition starten →\"},mountainSrc:{type:ControlType.File,title:\"Berg-Bild\",allowedFileTypes:[\"png\",\"jpg\",\"jpeg\",\"webp\"]},onCta:{type:ControlType.EventHandler,title:\"CTA Klick\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FinalCTA\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FinalCTA.map"],"mappings":"mOAEA,SAAS,GAAiB,CAAC,IAAM,EAAG,SAAS,eAAe,UAAU,CAAI,EAAI,EAAG,eAAe,CAAC,SAAS,SAAS,MAAM,QAAQ,CAAC,CAAO,EAAO,SAAS,KAAK,YAAc,SAAS,GAAa,CAAC,GAAK,CAAC,EAAE,GAAMA,EAAS,GAAM,CAAwJ,OAAvJ,MAAc,CAAC,IAAM,MAAM,EAAK,EAAO,YAAY,IAAI,CAAyC,OAAxC,GAAG,CAAC,EAAO,iBAAiB,SAAS,EAAE,KAAW,EAAO,oBAAoB,SAAS,EAAE,EAAG,EAAE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