1import{j as e}from"./motion-CYtLXFWR.js";import{r as n}from"./react-K42mtkE4.js";import{C as u,B as b,F as f}from"./index-Btmdk_Xg.js";import{L as j}from"./LogoHeader-C3Un9YA1.js";import"./query-B5cHxYmX.js";import"./supabase-XOXmZWMk.js";const t="w-full bg-surface border border-border/60 rounded-sm px-4 py-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary/50 transition-colors",E=()=>{n.useEffect(()=>{let r=document.querySelector('meta[name="robots"]');r||(r=document.createElement("meta"),r.name="robots",document.head.appendChild(r)),r.content="noindex, nofollow"},[]);const[s,x]=n.useState({vorname:"",nachname:"",alter:"",handynummer:"",email:"",strasse:"",plz:"",ort:""}),[l,h]=n.useState(!1),[d,i]=n.useState("idle"),[p,o]=n.useState(""),a=(r,m)=>x(c=>({...c,[r]:m})),g=async r=>{r.preventDefault(),i("loading"),o("");try{const c=await(await fetch("https://api.web3forms.com/submit",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({access_key:"9eb8f7d5-7ddc-449a-b392-61598c81531c",subject:"Neue Anmeldung: Endlich Ansprechen Praxistag",vorname:s.vorname,nachname:s.nachname,alter:s.alter,handynummer:s.handynummer,email:s.email,rechnungsadresse:`${s.strasse}, ${s.plz} ${s.ort}`})})).json();c.success?i("success"):(o(c.message||"Etwas ist schiefgelaufen. Bitte versuche es erneut."),i("error"))}catch{o("Verbindungsfehler. Bitte versuche es erneut."),i("error")}};return e.jsxs("div",{className:"min-h-screen bg-background text-foreground flex flex-col",children:[e.jsx(j,{}),e.jsx("main",{className:"flex-1 pt-14 pb-20",children:e.jsx("div",{className:"container-tight",children:e.jsxs("div",{className:"max-w-lg mx-auto",children:[e.jsxs("div",{className:"mb-10",children:[e.jsx("div",{className:"eyebrow mb-5",children:"22.08.2026 · Berlin"}),e.jsxs("h1",{className:"font-serif font-semibold text-[1.75rem] md:text-[2.375rem] leading-[1.15] tracking-tight mb-4",children:["Melde dich verbindlich zum",e.jsx("br",{}),e.jsx("span",{className:"italic gradient-text-gold",children:"Endlich Ansprechen Praxistag"})," an"]}),e.jsx("p",{className:"text-sm font-medium",style:{color:"hsl(var(--primary))"},children:"Achtung! Nur 5 Plätze verfügbar."})]}),d==="success"?e.jsxs("div",{className:"rounded-sm border border-primary/30 bg-primary/5 px-8 py-12 text-center",children:[e.jsx("div",{className:"mx-auto mb-5 flex h-12 w-12 items-center justify-center rounded-full",style:{border:"1px solid hsl(var(--primary) / 0.5)",background:"hsl(var(--primary) / 0.1)"},children:e.jsx(u,{className:"h-5 w-5",style:{color:"hsl(var(--primary))"}})}),e.jsx("p",{className:"font-serif text-xl mb-3 text-foreground",children:"Danke für deine Anmeldung!"}),e.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Du erhältst in Kürze eine Rechnung sowie alle weiteren Infos per E-Mail von uns."})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"glass-card rounded-sm px-7 py-6 md:px-10 md:py-8 mb-6",children:[e.jsxs("div",{className:"flex items-baseline gap-3 flex-wrap",children:[e.jsx("span",{className:"font-serif text-3xl md:text-4xl font-semibold",style:{color:"hsl(var(--primary))"},children:"450 â¬"}),e.jsxs("span",{className:"text-muted-foreground",children:["Einführungspreis · statt"," ",e.jsx("span",{className:"line-through",children:"750 â¬"})]})]}),e.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"Coaching-Klient? Melde dich direkt bei mir für deinen persönlichen Rabatt."})]}),e.jsxs("form",{onSubmit:g,className:"glass-card rounded-sm p-7 md:p-10 space-y-4",children:[e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wide",children:"Vorname"}),e.jsx("input",{type:"text",value:s.vorname,onChange:r=>a("vorname",r.target.value),placeholder:"Max",required:!0,className:t})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wide",children:"Nachname"}),e.jsx("input",{type:"text",value:s.nachname,onChange:r=>a("nachname",r.target.value),placeholder:"Mustermann",required:!0,className:t})]})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wide",children:"Alter"}),e.jsx("input",{type:"text",value:s.alter,onChange:r=>a("alter",r.target.value),placeholder:"28",required:!0,className:t})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wide",children:"Handynummer"}),e.jsx("input",{type:"tel",value:s.handynummer,onChange:r=>a("handynummer",r.target.value),placeholder:"+49 170 1234567",required:!0,className:t})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs text-muted-foreground mb-1.5 uppercase tracking-wide",children:"E-Mail-Adresse"}),e.jsx("input",{type:"email",value:s.email,onChange:r=>a("email",r.target.value),placeholder:"[email protected]",required:!0,className:t})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs text-muted-foreground mb-3 uppercase tracking-wide",children:"Rechnungsadresse"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("input",{type:"text",value:s.strasse,onChange:r=>a("strasse",r.target.value),placeholder:"StraÃe & Hausnummer",required:!0,className:t}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsx("input",{type:"text",value:s.plz,onChange:r=>a("plz",r.target.value),placeholder:"PLZ",required:!0,className:t}
1),e.jsx("input",{type:"text",value:s.ort,onChange:r=>a("ort",r.target.value),placeholder:"Ort",required:!0,className:t})]})]})]}),e.jsxs("label",{className:"flex items-start gap-3 pt-2 cursor-pointer group",children:[e.jsx("button",{type:"button",role:"checkbox","aria-checked":l,onClick:()=>h(r=>!r),className:`mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-sm border transition-all duration-200 ${l?"border-primary bg-primary":"border-border/60 bg-surface group-hover:border-primary/50"}`,children:l&&e.jsx(u,{className:"h-3 w-3 text-primary-foreground"})}),e.jsxs("span",{className:"text-xs text-muted-foreground leading-relaxed",children:["Ich habe die"," ",e.jsx("a",{href:"/datenschutz",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 hover:text-foreground transition-colors",onClick:r=>r.stopPropagation(),children:"Datenschutzerklärung"})," ","gelesen und bin mit der Verarbeitung meiner Daten einverstanden."]})]}),d==="error"&&e.jsx("p",{className:"text-sm text-destructive",children:p}),e.jsx(b,{type:"submit",disabled:d==="loading"||!l,className:"w-full bg-gradient-gold text-primary-foreground hover:opacity-90 rounded-sm h-12 text-base shadow-gold disabled:opacity-40 disabled:cursor-not-allowed",children:d==="loading"?"Wird gesendetâ¦":"Verbindlich anmelden"})]})]})]})})}),e.jsx(f,{})]})};export{E as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.