1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,48926,58249,e=>{"use strict";var t=e.i(43476),r=e.i(71645),a=e.i(18566),s=e.i(48148),i=e.i(43432),n=e.i(63488),l=e.i(46897),o=e.i(15057),c=e.i(53145),d=e.i(94814),m=e.i(88653),u=e.i(46932),p=e.i(72328),h=e.i(93862),x=e.i(8803);function f(e,t={}){let r,a=Object.fromEntries(Object.entries({device:(r=window.innerWidth)>=1440?"desktop-xl":r>=1024?"desktop":r>=768?"tablet":"mobile",locale:document.documentElement.lang||"de",...t}).filter(e=>void 0!==e[1])),s={event:e,timestamp:new Date().toISOString(),path:window.location.pathname,...a},i=function(){if("function"==typeof window.plausible)return window.plausible;let e=(t,r)=>{e.q=e.q??[],e.q.push([t,r])};return e.q=e.q??[],window.plausible=e,e}();i&&i(e,Object.keys(a).length>0?{props:a}:void 0),window.dispatchEvent(new CustomEvent("hk:analytics",{detail:s}))}e.s(["trackEvent",0,f],58249);var g=e.i(75254);let y=(0,g.default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var b=e.i(71689),v=e.i(7486);let j=(0,g.default)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]),k=(0,g.default)("gavel",[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]]),N=(0,g.default)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]),w=(0,g.default)("door-open",[["path",{d:"M11 20H2",key:"nlcfvz"}],["path",{d:"M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z",key:"au4z13"}],["path",{d:"M11 4H8a2 2 0 0 0-2 2v14",key:"74r1mk"}],["path",{d:"M14 12h.01",key:"1jfl7z"}],["path",{d:"M22 20h-3",key:"vhrsz"}]]),S=(0,g.default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]),T=(0,g.default)("building",[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]]),C=(0,g.default)("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]),E=(0,g.default)("store",[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]]);var _=e.i(74875);let M=(0,g.default)("gift",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]]),$=(0,g.default)("calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]),z={0:"situation",1:"purpose",2:"property",3:"contact",4:"review"},A=[{key:"erbschaft",icon:j},{key:"schenkung",icon:M},{key:"kauf",icon:v.Building2},{key:"kaufpreisaufteilung",icon:$},{key:"trennung",icon:k},{key:"sonstiges",icon:N}],P={kauf:null,erbschaft:"erbschaft-direkt",schenkung:"schenkung-direkt",kaufpreisaufteilung:"kpa-direkt",trennung:null,sonstiges:null},R={kauf:[{key:"kauf-verkauf",apiValue:"Kauf oder Verkauf"},{key:"finanzierung",apiValue:"Finanzierung oder Beleihung"},{key:"kauf-sonstiges",apiValue:"Sonstiges"}],erbschaft:[{key:"erbschaft-direkt",apiValue:"Erbschaft"}],schenkung:[{key:"schenkung-direkt",apiValue:"Schenkung"}],kaufpreisaufteilung:[{key:"kpa-direkt",apiValue:"Beratungsleistung"}],trennung:[{key:"scheidung",apiValue:"Trennung oder Scheidung"},{key:"gericht",apiValue:"Gerichtliches Verfahren"},{key:"trennung-sonstiges",apiValue:"Sonstiges"}],sonstiges:[{key:"niessbrauch",apiValue:"Beratungsleistung"},{key:"mietwert",apiValue:"Beratungsleistung"},{key:"streit",apiValue:"Beratungsleistung"}
1,{key:"vermoegen",apiValue:"Beratungsleistung"},{key:"steuer",apiValue:"Steuerlicher Nachweis"},{key:"beratung",apiValue:"Beratungsleistung"},{key:"sonst-sonstiges",apiValue:"Sonstiges"}]},V=[{key:"etw",icon:w,apiValue:"Eigentumswohnung"},{key:"efh",icon:S,apiValue:"Einfamilienhaus"},{key:"mfh",icon:T,apiValue:"Mehrfamilienhaus"},{key:"grund",icon:C,apiValue:"Grundstück"},{key:"gewerbe",icon:E,apiValue:"Gewerbeimmobilie"},{key:"sonst",icon:_.HelpCircle,apiValue:"Sonstiges"}];function O({currentStep:e,completedUpTo:r,onGoToStep:a,skippedSteps:i=[],compact:n=!1}){let l=(0,s.useTranslations)("contact"),o=e=>l(`steps.labels.${z[e]}`);return(0,t.jsxs)("div",{className:n?"-mt-5 mb-3":"mb-6",children:[(0,t.jsx)("div",{className:"flex gap-1.5",children:Array.from({length:5},(s,c)=>{let d=i.includes(c),m=c<e&&!d,u=c===e,p=!d&&(m||c<=r&&c!==e);return(0,t.jsx)("button",{type:"button",disabled:!p,onClick:()=>p&&a(c),"aria-label":l("progress.goToStepAria",{number:c+1,label:o(c)}),className:`mobile-tap-target relative flex h-11 flex-1 justify-center rounded-[0.45rem] transition-opacity duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30 ${n?"items-start pt-1.5":"items-center"} ${p?"cursor-pointer hover:opacity-75":"cursor-default"}`,children:(0,t.jsx)("span",{"aria-hidden":"true",className:`h-1.5 w-full rounded-full transition-colors duration-300 ${d&&c<e||m?"bg-accent":u?"bg-primary":"bg-border"}`})},c)})}),(0,t.jsx)("p",{className:"meta-xs mt-2.5 text-grey",children:l("progress.stepLabel",{current:e+1,total:5,label:o(e)})})]})}var L=e.i(76525),K=e.i(72520);let B=(0,g.default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);function D({step:e,canAdvance:r,isSubmitting:a=!1,onBack:i,onNext:n,onSubmit:l,onInvalidAttempt:o,isLastStep:c=!1}){let d=(0,s.useTranslations)("contact.nav");return(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[e>0?(0,t.jsxs)(L.Button,{type:"button",variant:"secondary",onClick:i,className:"px-5",children:[(0,t.jsx)(b.ArrowLeft,{className:"h-3.5 w-3.5"}),d("back")]}):(0,t.jsx)("div",{}),c?(0,t.jsx)(L.Button,{type:"button",variant:"primary",disabled:!r||a,onClick:l,children:a?d("submitting"):(0,t.jsxs)(t.Fragment,{children:[d("submit"),(0,t.jsx)(B,{className:"h-3.5 w-3.5"})]})}):(0,t.jsxs)(L.Button,{type:"button",variant:"primary",onClick:()=>r?n():o?.(),children:[d("next"),(0,t.jsx)(K.ArrowRight,{className:"h-3.5 w-3.5"})]})]})}var F=e.i(43531);function H({label:e,description:r,icon:a,selected:s,onClick:i,compact:n=!1}){return(0,t.jsxs)("button",{type:"button",onClick:i,"aria-pressed":s,className:`group relative flex w-full cursor-pointer rounded-xl border text-left transition-all duration-300 ${n?"h-[5.5rem] items-center gap-3 p-3.5":"min-h-[4.35rem] gap-2.5 p-3 sm:min-h-0 sm:gap-3.5 sm:p-4"} ${s?"border-primary bg-primary/[0.06]":"border-border bg-surface-0 hover:border-ink/20 hover:shadow-[0_2px_12px_rgba(0,0,0,0.04)]"}`,children:[s&&(0,t.jsx)(u.motion.span,{initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:25},className:`absolute flex h-5 w-5 items-center justify-center rounded-full bg-primary text-text-inverse ${n?"right-2.5 top-2.5":"right-3 top-1/2 -translate-y-1/2"}`,children:(0,t.jsx)(F.Check,{className:"h-3 w-3",strokeWidth:3})}),a&&(0,t.jsx)("span",{className:`flex shrink-0 items-center justify-center rounded-lg transition-colors duration-300 ${s?"bg-primary/15 text-primary":"bg-surface-1 text-grey group-hover:text-ink"} ${n?"h-8 w-8":"h-7 w-7 sm:h-8 sm:w-8"}`,children:(0,t.jsx)(a,{className:`${n?"h-4 w-4":"h-4.5 w-4.5 sm:h-4 sm:w-4"}`})}),(0,t.jsxs)("div",{className:`min-w-0 ${n?"pr-7":"pr-6"}`,children:[(0,t.jsx)("span",{className:`block font-heading leading-snug ${n?"text-[0.82rem]":"text-[0.78rem] sm:text-[0.88rem]"} text-ink`,children:e}),r&&(0,t.jsx)("span",{className:"mt-0.5 hidden text-[0.72rem] leading-snug text-grey sm:block",children:r})]})]})}function I({selected:e,onSelect:r,compact:a=!1}){let i=(0,s.useTranslations)("contact.steps.situation");return(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:`font-heading text-ink ${a?"text-lg":"text-xl md:text-2xl"}`,children:i("heading")}),(0,t.jsx)("p",{className:`mt-1.5 text-grey ${a?"text-sm":"text-[0.82rem]"}`,children:i("subheading")}),(0,t.jsx)("div",{className:`mt-4 grid gap-2.5 ${a?"grid-cols-2":"grid-cols-2 sm:grid-cols-2 lg:grid-cols-3"}`,children:A.map(s=>(0,t.jsx)(H,{label:i(`options.${s.key}.label`),description:i(`options.${s.key}.description`),icon:s.icon,selected:e===s.key,onClick:()=>r(s.key),compact:a},s.key))})]})}function q({label:e,selected:r,onClick:a}){return(0,t.jsx)("button",{type:"button",onClick:a,"aria-pressed":r,className:`curs
1or-pointer rounded-full border px-5 py-2.5 text-sm font-medium transition-all duration-300 ${r?"border-primary bg-primary text-text-inverse":"border-border bg-surface-0 text-grey hover:border-ink/30 hover:text-ink"}`,children:e})}function G({situationKey:e,selected:r,onSelect:a,compact:i=!1}){let n=(0,s.useTranslations)("contact.steps.purpose"),l=R[e];return(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:`font-heading text-ink ${i?"text-lg":"text-xl md:text-2xl"}`,children:n(`headlines.${e}`)}),(0,t.jsx)("p",{className:`mt-1.5 text-grey ${i?"text-sm":"text-[0.82rem]"}`,children:n("subheading")}),(0,t.jsx)("div",{className:"mt-4 flex flex-wrap gap-2",children:l.map(e=>(0,t.jsx)(q,{label:n(`options.${e.key}`),selected:r===e.key,onClick:()=>a(e.key)},e.key))})]})}function U({selected:e,onSelect:r,compact:a=!1}){let i=(0,s.useTranslations)("contact.steps.property");return(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:`font-heading text-ink ${a?"text-lg":"text-xl md:text-2xl"}`,children:i("heading")}),(0,t.jsx)("p",{className:`mt-1.5 text-grey ${a?"text-sm":"text-[0.82rem]"}`,children:i("subheading")}),(0,t.jsx)("div",{className:`mt-4 grid gap-2 ${a?"grid-cols-2":"grid-cols-2 sm:grid-cols-3"}`,children:V.map(s=>(0,t.jsx)(H,{label:i(`options.${s.key}`),icon:s.icon,selected:e===s.key,onClick:()=>r(s.key),compact:a},s.key))})]})}var W=e.i(71829);let X=(0,g.default)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]);var Y=e.i(78583),Z=e.i(37727);function J({form:e,files:a,onFilesChange:i,invalidAttemptCount:n=0,compact:l=!1}){let o=(0,s.useTranslations)("contact.steps.contact"),{register:c,watch:d,formState:{errors:m}}=e,[u,p]=(0,r.useState)(!1),[x,f]=(0,r.useState)({firstName:!1,lastName:!1,email:!1,phone:!1}),g=(0,r.useRef)(null),y=d("message")?.length??0,b="wiz-contact-hint",v=a.reduce((e,t)=>e+t.size,0),j=v>0x1900000;function k(e){if(!e)return;let t=[...a,...Array.from(e).filter(e=>"application/pdf"===e.type)].slice(0,5);t.reduce((e,t)=>e+t.size,0),i(t)}let N=W.FORM_INPUT_CLASS;return(0,r.useEffect)(()=>{if(n<=0)return;let e={firstName:!!m.firstName,lastName:!!m.lastName,email:!!m.email,phone:!!m.phone};if(!e.firstName&&!e.lastName&&!e.email&&!e.phone)return;f(e);let t=window.setTimeout(()=>{f({firstName:!1,lastName:!1,email:!1,phone:!1})},700);return()=>window.clearTimeout(t)},[n,m.firstName,m.lastName,m.email,m.phone]),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:`font-heading text-ink ${l?"text-lg":"text-xl md:text-2xl"}`,children:o("heading")}),(0,t.jsx)("p",{className:`mt-1.5 text-grey ${l?"body-sm":"body-md"}`,children:o("subheading")}),(0,t.jsxs)("div",{className:"mt-4 space-y-4",children:[(0,t.jsxs)("div",{className:"grid gap-5 sm:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"wiz-firstName",className:"meta-xs mb-1.5 block text-grey",children:o("firstName")}),(0,t.jsx)("input",{id:"wiz-firstName",type:"text",autoComplete:"given-name",...c("firstName"),"aria-invalid":!!m.firstName,className:`${N}
1 ${x.firstName?"field-invalid-flash":""}`})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"wiz-lastName",className:"meta-xs mb-1.5 block text-grey",children:o("lastName")}),(0,t.jsx)("input",{id:"wiz-lastName",type:"text",autoComplete:"family-name",...c("lastName"),"aria-invalid":!!m.lastName,className:`${N} ${x.lastName?"field-invalid-flash":""}`})]})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-[1fr_auto_1fr] sm:items-start",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"wiz-email",className:"meta-xs mb-1.5 block text-grey",children:o("email")}),(0,t.jsx)("input",{id:"wiz-email",type:"email",autoComplete:"email",...c("email"),"aria-invalid":!!m.email,"aria-describedby":b,className:`${N} ${x.email?"field-invalid-flash":""}`}),m.email&&(0,t.jsx)("p",{className:"mt-1.5 text-xs text-red-700",role:"alert",children:m.email.message})]}),(0,t.jsx)("div",{className:"flex min-h-10 translate-y-3 items-center justify-center sm:min-h-0 sm:translate-y-0 sm:pt-8",children:(0,t.jsxs)("div",{className:"inline-flex items-center gap-2",children:[(0,t.jsx)("span",{className:"h-px w-7 bg-border/90","aria-hidden":"true"}),(0,t.jsx)("span",{className:"meta-xs rounded-full border border-border bg-surface-0 px-2.5 py-1 text-grey",children:o("or")}),(0,t.jsx)("span",{className:"h-px w-7 bg-border/90","aria-hidden":"true"})]})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"wiz-phone",className:"meta-xs mb-1.5 block text-grey",children:o("phone")}),(0,t.jsx)("input",{id:"wiz-phone",type:"tel",autoComplete:"tel",...c("phone"),"aria-invalid":!!m.phone,"aria-describedby":b,className:`${N} ${x.phone?"field-invalid-flash":""}`}),m.phone&&(0,t.jsx)("p",{className:"mt-1.5 text-xs text-red-700",role:"alert",children:m.phone.message})]}),(0,t.jsx)("p",{id:b,className:"body-sm text-grey sm:col-span-3",children:o("contactRequired")})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-[2fr_1fr]",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"wiz-message",className:"meta-xs mb-1.5 block text-grey",children:o("messageLabel")}),(0,t.jsxs)("div",{className:`relative rounded-lg border bg-surface-0 transition-colors focus-within:ring-2 ${m.message?"border-red-300 focus-within:border-red-500 focus-within:ring-red-100":"border-border focus-within:border-ink focus-within:ring-ink/10"}`,children:[(0,t.jsx)("textarea",{id:"wiz-message",rows:3,placeholder:o("messagePlaceholder"),...c("message"),maxLength:h.CONTACT_MESSAGE_MAX_LENGTH,"aria-invalid":!!m.message,className:"h-28 w-full resize-none overflow-y-auto rounded-lg bg-transparent px-3.5 pb-6 pt-2.5 text-base sm:text-sm text-ink placeholder:text-grey/50 focus:outline-none"}),(0,t.jsx)("div",{className:"absolute bottom-2 right-3",children:(0,t.jsxs)("span",{className:"meta-xs text-grey/55",children:[y,"/",h.CONTACT_MESSAGE_MAX_LENGTH]})})]}),m.message&&(0,t.jsx)("p",{className:"mt-1.5 text-xs text-red-700",role:"alert",children:m.message.message})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"meta-xs mb-1.5 block text-grey",children:o("uploadLabel")}),(0,t.jsx)("div",{className:`flex h-[calc(100%-1.375rem)] cursor-pointer flex-col rounded-lg border border-dashed px-4 py-4 transition-colors ${u?"border-primary bg-primary/[0.04]":"border-border bg-surface-0 hover:border-ink/25"} ${0===a.length?"items-center justify-center text-center":"items-stretch justify-start"}`,onClick:()=>a.length<5&&g.current?.click(),onDragOver:e=>{e.preventDefault(),p(!0)},onDragLeave:()=>p(!1),onDrop:e=>{e.preventDefault(),p(!1),k(e.dataTransfer.files)},children:0===a.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(X,{className:"h-4 w-4 text-grey"}),(0,t.jsx)("p",{className:"body-sm mt-1.5 font-medium text-ink",children:o("uploadCta")}),(0,t.jsx)("p",{className:"mt-0.5 text-[0.65rem] font-semibold tracking-[0.08em] text-grey",children:o("uploadHint")})]}):(0,t.jsxs)("div",{className:"w-full space-y-2",children:[a.map((e,r)=>(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-md border border-border bg-surface-1 px-3 py-2 text-[0.78rem] text-ink",children:[(0,t.jsx)(Y.FileText,{className:"h-3.5 w-3.5 shrink-0 text-grey"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name}),(0,t.jsxs)("span",{className:"shrink-0 text-[0.68rem] text-grey",children:[(e.size/1048576).toFixed(1)," MB"]}),(0,t.jsx)("button",{type:"button","aria-label":o("removeFileAria",{name:e.name}),onClick:e=>{e.stopPropagation(),i(a.filter((e,t)=>
1t!==r))},className:"mobile-tap-target inline-flex h-7 w-7 items-center justify-center rounded-md text-grey transition-colors hover:bg-surface-0 hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",children:(0,t.jsx)(Z.X,{className:"h-3 w-3"})})]},r)),j&&(0,t.jsx)("p",{className:"text-xs text-red-700",role:"alert",children:o("filesOverLimit",{size:(v/1048576).toFixed(1)})}),!j&&a.length<5&&(0,t.jsxs)("div",{className:"inline-flex w-full items-center gap-2 rounded-md border border-dashed border-border/90 bg-surface-0 px-3 py-2 text-[0.74rem] text-grey",children:[(0,t.jsx)(X,{className:"h-3.5 w-3.5 shrink-0"}),(0,t.jsx)("span",{children:o("uploadMore")})]})]})}),(0,t.jsx)("input",{ref:g,type:"file",accept:"application/pdf",multiple:!0,className:"hidden",onChange:e=>{k(e.target.files),e.target.value=""}})]})]})]})]})}var Q=e.i(22016);let ee=(0,g.default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);var et=e.i(64659);let er=(0,g.default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);function ea({label:e,value:r,step:a,onEdit:s,editAriaLabel:i}){return(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4 py-3",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"meta-xs text-grey",children:e}),(0,t.jsx)("p",{className:"mt-0.5 text-sm text-ink",children:r})]}),(0,t.jsx)("button",{type:"button",onClick:()=>s(a),"aria-label":i,className:"mobile-tap-target mt-1 flex h-11 w-11 shrink-0 cursor-pointer items-center justify-center rounded-md border border-border text-grey transition-colors hover:border-ink/30 hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",children:(0,t.jsx)(ee,{className:"h-3 w-3"})})]})}function es({form:e,situationKey:a,purposeKey:l,propertyKey:o,files:c,onGoToStep:d,compact:m=!1,sendCopy:u,onSendCopyChange:p}){let h=(0,s.useTranslations)("contact.steps.review"),f=(0,s.useTranslations)("contact.steps.purpose"),g=(0,s.useTranslations)("contact.steps.situation"),y=(0,s.useTranslations)("contact.steps.property"),{watch:b}=e,v=b("firstName")||"",j=b("lastName")||"",k=b("email")||"",N=b("phone")||"",w=b("message")||"",[S,T]=(0,r.useState)(!1),C=v&&j?`${v} ${j}`:"â",E=k||"â";return(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:`font-heading text-ink ${m?"text-lg":"text-xl md:text-2xl"}`,children:h("heading")}),(0,t.jsx)("p",{className:`mt-1.5 text-grey ${m?"text-sm":"text-[0.82rem]"}`,children:h("subheading")}),(0,t.jsxs)("div",{className:"mt-4 divide-y divide-border rounded-xl border border-border bg-surface-1 px-5",children:[(0,t.jsx)(ea,{label:h("labelSituation"),value:g(`options.${a}.label`),step:0,onEdit:d,editAriaLabel:h("editAria",{label:h("labelSituation")})}),(0,t.jsx)(ea,{label:h("labelPurpose"),value:f(`options.${l}`),step:+!P[a],onEdit:d,editAriaLabel:h("editAria",{label:h("labelPurpose")})}),(0,t.jsx)(ea,{label:h("labelProperty"),value:y(`options.${o}`),step:2,onEdit:d,editAriaLabel:h("editAria",{label:h("labelProperty")})}),(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4 py-3",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"meta-xs text-grey",children:h("labelContact")}),(0,t.jsxs)("ul",{className:"mt-1.5 space-y-1.5 text-sm text-ink",children:[(0,t.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-surface-0 text-grey",children:(0,t.jsx)(er,{className:"h-3.5 w-3.5"})}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:C})]}),(0,t.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-surface-0 text-grey",children:(0,t.jsx)(n.Mail,{className:"h-3.5 w-3.5"})}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:E})]}),(0,t.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-surface-0 text-grey",children:(0,t.jsx)(i.Phone,{className:"h-3.5 w-3.5"})}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:N||"â"})]})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>
1d(3),"aria-label":h("editContactAria"),className:"mobile-tap-target mt-1 flex h-11 w-11 shrink-0 cursor-pointer items-center justify-center rounded-md border border-border text-grey transition-colors hover:border-ink/30 hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",children:(0,t.jsx)(ee,{className:"h-3 w-3"})})]}),w&&(0,t.jsx)(ea,{label:h("labelMessage"),value:w.length>80?`${w.slice(0,80)}â¦`:w,step:3,onEdit:d,editAriaLabel:h("editAria",{label:h("labelMessage")})}),c.length>0&&(0,t.jsxs)("div",{className:"py-3",children:[(0,t.jsx)("p",{className:"meta-xs text-grey",children:h("labelAttachments")}),(0,t.jsx)("p",{className:"mt-0.5 text-sm text-ink",children:c.map(e=>e.name).join(", ")})]})]}),k&&(0,t.jsx)("div",{className:"mt-5 rounded-xl border border-border bg-surface-1 px-5 py-4",children:(0,t.jsxs)("label",{className:"flex cursor-pointer items-start gap-3",children:[(0,t.jsx)("input",{type:"checkbox",checked:u,onChange:e=>p(e.target.checked),className:"mt-0.5 h-4 w-4 shrink-0 cursor-pointer rounded border-border accent-primary"}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"text-sm text-ink",children:h("sendCopyLabel")}),(0,t.jsx)("p",{className:"mt-0.5 text-xs text-grey",children:h.rich("sendCopyHint",{email:k,strong:e=>(0,t.jsx)("span",{className:"text-ink",children:e})})})]})]})}),(0,t.jsxs)("div",{className:"mt-5",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>T(e=>!e),"aria-expanded":S,className:"flex items-center gap-1.5 text-[0.68rem] text-grey/70 transition-colors hover:text-grey focus-visible:outline-none",children:[(0,t.jsx)(et.ChevronDown,{className:`h-3 w-3 shrink-0 transition-transform duration-200 ${S?"rotate-180":""}`}),h("privacyToggle")]}),(0,t.jsx)("div",{className:`grid transition-[grid-template-rows] duration-300 ease-[var(--ease-smooth)] motion-reduce:transition-none ${S?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("p",{className:`mt-2 max-w-3xl text-[0.68rem] leading-relaxed text-grey/70 transition-all duration-300 ease-[var(--ease-smooth)] motion-reduce:transform-none motion-reduce:transition-none ${S?"translate-y-0 opacity-100":"translate-y-1 opacity-0"}`,children:h.rich("privacyText",{name:x.siteConfig.name,street:x.siteConfig.address.street,zip:x.siteConfig.address.zip,city:x.siteConfig.address.city,emailLink:()=>(0,t.jsx)("a",{href:`mailto:${x.siteConfig.email}`,className:"underline underline-offset-2 hover:text-ink",children:x.siteConfig.email}),privacyLink:e=>(0,t.jsx)(Q.default,{href:"/datenschutz",className:"underline underline-offset-2 hover:text-ink",children:e})})})})})]})]})}var ei=e.i(17521),ei=ei;let en=(0,r.forwardRef)(function({reduceMotion:e},r){let a=(0,s.useTranslations)("contact.sending");return(0,t.jsx)(u.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:e?.01:.24,ease:"easeOut"},className:"fixed inset-0 z-[200] flex items-center justify-center bg-surface-0/90 p-4 backdrop-blur-sm md:p-6",children:(0,t.jsxs)(u.motion.div,{ref:r,tabIndex:-1,role:"status","aria-live":"polite","aria-label":a("ariaLabel"),initial:{opacity:0,y:12,scale:.985},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:8,scale:.99},transition:{duration:e?.01:.28,ease:[.22,1,.36,1]},className:"flex w-full max-w-[37rem] flex-col items-center gap-3 rounded-xl border border-border/85 bg-surface-1/95 px-6 py-8 shadow-[0_16px_42px_rgba(16,42,48,0.16)] outline-none",children:[(0,t.jsx)("div",{className:"flex size-10 items-center justify-center rounded-full bg-primary text-white",children:(0,t.jsx)(ei.default,{className:"size-5 animate-spin"})}),(0,t.jsx)("p",{className:"text-sm font-medium text-ink",children:a("title")}),(0,t.jsx)("p",{className:"text-center text-[0.78rem] leading-relaxed text-grey",children:a("body")})]})},"sending-overlay")});var el=e.i(95468);function eo({compact:e,phoneHref:r,onClose:a}){let i=(0,s.useTranslations)("contact.success");return e?(0,t.jsxs)("div",{className:"flex flex-col items-center py-10 text-center",role:"status","aria-live":"polite",children:[(0,t.jsx)("span",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-primary/10",children:(0,t.jsx)(el.CheckCircle2,{className:"h-7 w-7 text-primary","aria-hidden":"true"})}),(0,t.jsx)("h3",{className:"mt-5 font-heading text-xl text-ink",children:i("compactHeading")}),(0,t.jsx)("p",{className:"mt-2 max-w-xs text-sm leading-relaxed text-grey",children:i("compactBody")}),a&&(0,t.jsx)("button",{type:"button",onClick:()=>{f("cta_click",{placement:"wizard_success",target:"close_drawer"}),a()},className:"mt-7 inline-flex h-11 w-11 items-center justify-center rounded-[0.4rem] border border-primary bg-primary text-white transition-colors hover:bg-primary-dark hover:border-primary-dark","aria-label":i("closeAria"),children:(0,t.jsx)(Z.X,{className:"h-4 w-4"})})]}):(0,t.jsxs)("div",{className:"rounded-xl border border-primary/25 bg-primary-dark p-8 text-center text-white",role:"status","aria-live":"polite",children:[(0,t.jsx)(el.CheckCircle2,{className:"mx-auto h-10 w-10","aria-hidden":"true"}),(0,t.jsx)("p",{className:"mt-4 text-base leading-relaxed text-white/80",children:i("body")}),(0,t.jsxs)("div",{className:"mt-7 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[(0,t.jsx)(L.Button,{type:"button",variant:"primary",className:"border-white/35 bg-surface-0 text-ink",onClick:()=>{f("cta_click",{placement:"wizard_success",target:"new_request"}),window.location.reload()},children:i("newRequest")}),(0,t.jsx)("a",{href:r,className:"inline-flex h-12 items-center gap-2 rounded-full border border-white/35 px-5 text-sm text-white/70 transition-colors hover:bg-surface-0 hover:text-ink",children:i("call")})]})]})}function ec(e,t){switch(t.type){case"SET_SITUATION":{let r=e.situation!==t.payload;return{...e,situation:t.payload,purposeKey:r?null:e.purposeKey}}case"SET_PURPOSE":return{...e,purposeKey:t.payload};case"SET_PROPERTY":return{...e,propertyKey:t.payload};case"NEXT_STEP":{let t=Math.min(e.currentStep+1,3);if(t===e.currentStep)return e;return{...e,currentStep:t,direction:1,maxStepReached:Math.max(e.maxStepReached,t)}}case"ADVANCE_TO_REVIEW":if(3!==e.currentStep)return e;return{...e,currentStep:4,direction:1,maxStepReached:Math.max(e.maxStepReached,4)};case"PREV_STEP":return{...e,currentStep:Math.max(e.currentStep-1,0),direction:-1};case"GO_TO_STEP":{let r=4===t.payload?3:t.payload;return{...e,currentStep:r,direction:r<e.currentStep?-1:1}}default:return e}}let ed={currentStep:0,direction:1,situation:null,purposeKey:null,propertyKey:null,maxStepReached:0},em={enter:e=>({x:e>0?24:-24,opacity:0}),center:{x:0,opacity:1},exit:e=>({x:e>0?-24:24,opacity:0})};function eu({variant:e="page",onClose:a}){let i=(0,s.useTranslations)("contact"),n="drawer"===e,l=(0,p.useReducedMotion)(),o=(0,r.useRef)(null),g=(0,r.useRef)(null),v=(0,r.useRef)(!1),[j,k]=(0,r.useReducer)(ec,ed),[N,w]=(0,r.useState)("idle"),[S,T]=(0,r.useState)(""),[C,E]=(0,r.useState)(!1),_=(0,r.useRef)(void 0),M=(0,r.useRef)(void 0),$=(0,r.useRef)(null),z=(0,r.useRef)(null),[A,L]=(0,r.useState)([]),[K,B]=(0,r.useState)(0),[F,H]=(0,r.useState)(!1),q=(0,r.useRef)(!1),W=function(){let[e]=(0,r.useState)(()=>{let e=new URLSearchParams(window.location.search);return{sourcePage:window.location.pathname,userAgent:window.navigator.userAgent,utm:{utm_source:e.get("utm_source")||void 0,utm_medium:e.get("utm_medium")||void 0,utm_campaign:e.get("utm_campaign")||void 0,utm_term:e.get("utm_term")||void 0,utm_c
1ontent:e.get("utm_content")||void 0,gclid:e.get("gclid")||void 0,fbclid:e.get("fbclid")||void 0}}});return e}(),X=(0,c.useForm)({resolver:(0,d.zodResolver)(h.contactSchema)}),Y=X.watch(["firstName","lastName","email","phone"]),Z=(0,r.useMemo)(()=>{switch(j.currentStep){case 0:return null!==j.situation;case 1:return null!==j.purposeKey;case 2:return null!==j.propertyKey;case 3:{let[e,t,r,a]=Y,s=(e?.trim().length??0)>=2&&(t?.trim().length??0)>=2,i=(r?.trim().length??0)>0||(a?.trim().length??0)>0,n=A.reduce((e,t)=>e+t.size,0);return s&&i&&n<=0x1900000}case 4:return!0;default:return!1}},[j.currentStep,j.situation,j.purposeKey,j.propertyKey,Y,A]),Q=(0,r.useRef)(void 0),ee=(0,r.useRef)(void 0),et=(0,r.useRef)(!1),er=(0,r.useCallback)(()=>{clearTimeout(Q.current),clearTimeout(ee.current),et.current=!1},[]),ea=(0,r.useCallback)(async()=>{if(clearTimeout(_.current),E(!0),_.current=setTimeout(()=>E(!1),3e3),3===j.currentStep){await X.trigger(["firstName","lastName"]);let e=X.getValues(),t=e.email?.trim()??"",r=e.phone?.trim()??"";if(X.clearErrors("email"),X.clearErrors("phone"),t||r)t&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)&&X.setError("email",{message:i("validation.emailInvalid")}),r&&r.length<6&&X.setError("phone",{message:i("validation.phoneInvalid")});else{let e=i("validation.emailOrPhone");X.setError("email",{message:e}),X.setError("phone",{message:e})}B(e=>e+1)}},[X,j.currentStep,i]),ei=(0,r.useCallback)(async()=>{if(Z&&!et.current){if(er(),3===j.currentStep){let e=await X.trigger(["firstName","lastName"]),t=X.getValues(),r=t.email?.trim()??"",a=t.phone?.trim()??"",s=!0;if(X.clearErrors("email"),X.clearErrors("phone"),r||a)r&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)&&(X.setError("email",{message:i("validation.emailInvalid")}),s=!1),a&&a.length<6&&(X.setError("phone",{message:i("validation.phoneInvalid")}),s=!1);else{let e=i("validation.emailOrPhone");X.setError("email",{message:e}),X.setError("phone",{message:e}),s=!1}if(!e||!s)return}f("cta_click",{placement:"wizard",target:`step_${j.currentStep}_complete`}),k({type:3===j.currentStep?"ADVANCE_TO_REVIEW":"NEXT_STEP"})}},[Z,j.currentStep,X,er,i]),el=(0,r.useCallback)(()=>{er(),et.current=!0,Q.current=setTimeout(()=>{et.current=!1,k({type:"NEXT_STEP"})},l?50:350)},[l,er]),ep=(0,r.useCallback)(()=>{er(),et.current=!0,Q.current=setTimeout(()=>{k({type:"NEXT_STEP"}),ee.current=setTimeout(()=>{et.current=!1,k({type:"NEXT_STEP"})},50)},l?50:350)},[l,er]),eh=(0,r.useCallback)(()=>{er(),2===j.currentStep&&j.situation&&P[j.situation]?k({type:"GO_TO_STEP",payload:0}):k({type:"PREV_STEP"})},[j.currentStep,j.situation,er]),ex=(0,r.useCallback)(e=>{er(),k({type:"GO_TO_STEP",payload:e})},[er]),ef=`tel:${x.siteConfig.phone.replace(/\s/g,"")}`;async function eg(e){var t,r,a;clearTimeout(M.current),z.current=Date.now(),w("sending"),T(""),f("contact_submit",{step:"attempt",source:"wizard"});let s=e.message?.trim()||"",n=j.purposeKey?({niessbrauch:"NieÃbrauch/Wohnrecht",mietwert:"Mietwertgutachten",streit:"Streitschlichtung",vermoegen:"Vermögensübertragung","kpa-direkt":"Kaufpreisaufteilung"})[j.purposeKey]??null:null;n&&s?s=`[${n}] ${s}`:n&&(s=`[${n}]`);let o=new FormData;for(let i of(o.append("firstName",e.firstName),o.append("lastName",e.lastName),e.email&&o.append("email",e.email),e.phone&&o.append("phone",e.phone),o.append("objectType",j.propertyKey?(t=j.propertyKey,V.find(e=>e.key===t)?.apiValue??"Sonstiges"):"Sonstiges"),o.append("valuationPurpose",j.situation&&j.purposeKey?(r=j.situation,a=j.purposeKey,R[r]?.f
1ind(e=>e.key===a)?.apiValue??"Sonstiges"):"Sonstiges"),s&&o.append("message",s),o.append("website",""),W&&o.append("meta",JSON.stringify(W)),q.current&&e.email&&o.append("sendCopy","true"),A))o.append("files",i,i.name);try{let e=await fetch("/api/contact",{method:"POST",body:o}),t=await e.json();if(!e.ok||!t.success){if(t.fieldErrors){for(let[e,r]of Object.entries(t.fieldErrors))r?.length&&X.setError(e,{type:"server",message:r[0]});k({type:"GO_TO_STEP",payload:3})}clearTimeout(M.current),z.current=null,w("error"),T(t.message||i("error.generic")),f("contact_error",{step:"server",code:t.code,status:e.status});return}let r=z.current?Date.now()-z.current:0,a=l?40:1200,s=Math.max(0,a-r);clearTimeout(M.current),M.current=setTimeout(()=>{w("success"),z.current=null,X.reset(),f("contact_success",{source:"wizard"})},s)}catch{clearTimeout(M.current),z.current=null,w("error"),T(i("error.network")),f("contact_error",{step:"network"})}}let ey=(0,r.useCallback)(()=>{"sending"!==N&&X.handleSubmit(eg)()},[X,N,j.situation,j.purposeKey,j.propertyKey,A,W,l]),eb=l?.01:.3;(0,r.useEffect)(()=>()=>{clearTimeout(M.current),clearTimeout(Q.current),clearTimeout(ee.current),clearTimeout(_.current)},[]),(0,r.useEffect)(()=>{if("sending"!==N)return;let e=window.requestAnimationFrame(()=>{try{$.current?.focus({preventScroll:!0})}catch{$.current?.focus()}});return()=>window.cancelAnimationFrame(e)},[N]),(0,r.useEffect)(()=>{if(n)return;if(!v.current){v.current=!0;return}let e=g.current;if(!e)return;let t=window.setTimeout(()=>{let t=function(e){let t=e?.parentElement??null;for(;t;){let e=window.getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e.overflowY)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return window}(e),r=(o.current?.getBoundingClientRect().height??0)+18;if(t===window){let t=e.getBoundingClientRect(),a=window.scrollY+t.top-r;window.scrollTo({top:Math.max(0,a),behavior:l?"auto":"smooth"});return}let a=t.getBoundingClientRect(),s=e.getBoundingClientRect(),i=t.scrollTop+(s.top-a.top)-r;t.scrollTo({top:Math.max(0,i),behavior:l?"auto":"smooth"})},l?40:220);return()=>{window.clearTimeout(t)}},[n,l,j.currentStep]);let ev=l?{duration:.01,ease:"linear"}:{duration:.42,ease:[.22,1,.36,1]};return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(m.AnimatePresence,{mode:"wait",initial:!1,children:(0,t.jsxs)(u.motion.form,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:ev,onSubmit:e=>e.preventDefault(),noValidate:!0,"aria-describedby":"wizard-status",className:"relative",children:[(0,t.jsx)(m.AnimatePresence,{children:C&&(0,t.jsx)(u.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:.2,ease:"easeOut"},role:"alert","aria-live":"assertive",className:"fixed bottom-[7.5rem] left-1/2 z-[200] -translate-x-1/2 whitespace-nowrap rounded-full border border-border bg-ink px-4 py-2 text-[0.78rem] font-medium text-surface-0 shadow-lg lg:absolute lg:bottom-14 lg:left-auto lg:right-0 lg:translate-x-0",children:i("validation.allRequired")})}),(0,t.jsx)("input",{type:"text",tabIndex:-1,autoComplete:"off",className:"hidden","aria-hidden":"true",...X.register("website")}),(0,t.jsx)("div",{id:"wizard-status",className:"sr-only","aria-live":"polite","aria-atomic":"true",children:"sending"===N?i("sending.statusLive"):""}),"error"===N&&(0,t.jsxs)("div",{className:"mb-6 space-y-3 rounded-[0.55rem] border border-red-300 bg-red-50 px-4 py-3",role:"alert","aria-live":"assertive",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(y,{className:"mt-0.5 h-4 w-4 shrink-0 text-red-700"}),(0,t.jsx)("p",{className:"whitespace-pre-line text-sm leading-relaxed text-red-800",children:S})]}),(0,t.jsx)("div",{className:"pl-7",children:(0,t.jsx)("button",{type:"button",className:"inline-flex h-9 items-center rounded-[0.4rem] border border-red-300 px-3 text-[0.63rem] font-semibold uppercase tracking-[0.1em] text-red-800 transition-colors hover:bg-red-100",onClick:()=>{w("idle"),T("")},children:i("error.retry")})})]}),(0,t.jsx)("div",{ref:o,children:(0,t.jsx)(O,{currentStep:j.currentStep,completedUpTo:j.maxStepReached,onGoToStep:ex,skippedSteps:j.situation&&P[j.situation]?[1]:[],compact:n})}),(0,t.jsx)("div",{className:"min-h-0",children:(0,t.jsx)(m.AnimatePresence,{mode:"wait",custom:j.direction,initial:!n,children:(0,t.jsxs)(u.motion.div,{ref:g,custom:j.direction,variants:em,initial:"enter",animate:"center",exit:"exit",transition:{duration:eb,ease:[.4,0,.2,1]},children:[0===j.currentStep&&(0,t.jsx)(I,{selected:j.situation,onSelect:e=>{k({type:"SET_SITUATION",payload:e});let t=P[e];t?(k({type:"SET_PURPOSE",payload:t}),ep()):el()},compact:n}),1===j.currentStep&&j.situation&&(0,t.jsx)(G,{situationKey:j.situation,selected:j.purposeKey,onSelect:e=>{k({type:"SET_PURPOSE",payload:e}),el()},compact:n}),2===j.currentStep&&(0,t.jsx)(U,{selected:j.propertyKey,onSelect:e=>{k({type:"SET_PROPERTY",payload:e}),el()},compact:n}),3===j.currentStep&&(0,t.jsx)(J,{form:X,files:A,onFilesChange:L,invalidAttemptCount:K,compact:n}),4===j.currentStep&&j.situation&&j.purposeKey&&j.propertyKey&&(0,t.jsx)(es,{form:X,situationKey:j.situation,purposeKey:j.purposeKey,propertyKey:j.propertyKey,files:A,onGoToStep:ex,compact:n,sendCopy:F,onSendCopyChange:e=>{H(e),q.current=e}})]},j.currentStep)})}),(0,t.jsx)("div",{className:`mt-8 border-t border-border pt-5 ${n?"mt-6 pt-4":""} ${j.currentStep>=3?"sticky bottom-0 z-10 -mx-px bg-surface-floating px-px pb-1 backdrop-blur-md md:static md:bg-transparent md:pb-0 md:backdrop-blur-none":""}`,children:j.currentStep<=2?j.currentStep>0?(0,t.jsxs)("button",{type:"button",onClick:eh,className:"inline-flex h-10 cursor-pointer items-center gap-2 rounded-[0.4rem] border border-border bg-surface-0 px-4 text-[0.65rem] font-medium uppercase tracking-[0.12em] text-grey transition-colors hover:border-ink/30 hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/35",children:[(0,t.jsx)(b.ArrowLeft,{className:"h-3.5 w-3.5"}),"Zurück"]}):(0,t.jsx)("div",{className:"h-10"}):(0,t.jsx)(D,{step:j.currentStep,canAdvance:Z,isSubmitting:"sending"===N,onBack:eh,onNext:ei,onSubmit:ey,onInvalidAttempt:ea,isLastStep:4===j.currentStep})}),(0,t.jsx)(m.AnimatePresence,{initial:!1,children:"sending"===N&&(0,t.jsx)(en,{ref:$,reduceMotion:l})})]},"wizard-form")}),(0,t.jsx)(m.AnimatePresence,{children:"success"===N&&(0,t.jsx)(u.motion.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:l?.01:.3,ease:"easeOut"},className:"fixed inset-0 z-[200] flex items-center justify-center bg-surface-0/90 backdrop-blur-sm",children:(0,t.jsx)(u.motion.div,{initial:{opacity:0,y:24,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:12,scale:.98},transition:{duration:l?.01:.42,ease:[.22,1,.36,1]},children:(0,t.jsx)(eo,{compact:n,phoneHref:ef,onClose:a})})},"wizard-success-overlay")})]})}let ep=(0,g.default)("navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);function eh({mapsLink:e}){let r=(0,s.useTranslations)("contact.mobilePanel"),a=`mailto:${x.siteConfig.email}?subject=${encodeURIComponent(r("mailSubject"))}`;return(0,t.jsxs)("div",{className:"lg:hidden",children:[(0,t.jsx)("div",{className:"pointer-events-none h-20","aria-hidden":"true"}),(0,t.jsx)("section",{className:"fixed inset-x-0 bottom-0 z-[170] px-3 pb-[calc(env(safe-area-inset-bottom)+0.5rem)]",children:(0,t.jsx)("div",{className:"mx-auto w-full max-w-[40rem] rounded-[0.85rem] border border-border bg-surface-1/96 px-3 py-2.5 shadow-[0_18px_40px_rgba(16,42,48,0.16)] backdrop-blur-sm",children:(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,t.jsxs)("a",{href:`tel:${x.siteConfig.phone.replace(/\s/g,"")}`,className:"mobile-tap-target flex min-h-11 flex-col items-center justify-center gap-1.5 rounded-[0.7rem] border border-primary bg-primary px-2 py-2.5 text-center text-text-inverse shadow-[inset_0_1px_0_rgba(255,255,255,0.06)] transition-colors hover:bg-primary-dark",children:[(0,t.jsx)("span",{className:"flex h-8 w-8 items-center justify-center rounded-full border border-white/10 bg-white/12",children:(0,t.jsx)(i.Phone,{className:"h-3.5 w-3.5 text-white",strokeWidth:1.9})}),(0,t.jsx)("span",{className:"meta-xs text-white",children:r("call")})]}),(0,t.jsxs)("a",{href:a,className:"mobile-tap-target flex min-h-11 flex-col items-center justify-center gap-1.5 rounded-[0.7rem] border border-border bg-surface-0 px-2 py-2.5 text-center text-ink transition-colors hover:border-primary hover:text-primary",children:[(0,t.jsx)("span",{className:"flex h-8 w-8 items-center justify-center rounded-full border border-border/70 bg-surface-1",children:(0,t.jsx)(n.Mail,{className:"h-3.5 w-3.5 text-grey",strokeWidth:1.9})}),(0,t.jsx)("span",{className:"meta-xs text-grey",children:r("email")})]}),(0,t.jsxs)("a",{href:e,target:"_blank",rel:"noreferrer",className:"mobile-tap-target flex min-h-11 flex-col items-center justify-center gap-1.5 rounded-[0.7rem] border border-border bg-surface-0 px-2 py-2.5 text-center text-ink transition-colors hover:border-primary hover:text-primary",children:[(0,t.jsx)("span",{className:"flex h-8 w-8 items-center justify-center rounded-full border border-border/70 bg-surface-1",children:(0,t.jsx)(ep,{className:"h-3.5 w-3.5 text-grey",strokeWidth:1.9})}),(0,t.jsx)("span",{className:"meta-xs text-grey",children:r("route")})]})]})})})]})}function ex({lat:a,lng:i,title:n}){let o=(0,s.useTranslations)("contact.officeMap"),[c,d]=(0,r.useState)(!1),[m,u]=(0,r.useState)(null),[p,h]=(0,r.useState)(null),[x,f]=(0,r.useState)(!1);if((0,r.useEffect)(()=>{if(!c)return;let t=!0;return async function(){let[r,a]=await Promise.all([e.A(492),e.A(71400)]);if(!t)return;let s=a.divIcon({className:"office-pin-icon",html:"<span class='office-pin-dot' />",iconSize:[24,24],iconAnchor:[12,12]});h(r),u(s)}(),()=>{t=!1}},[c]),(0,r.useEffect)(()=>{let e=window.matchMedia("(prefers-color-scheme: dark)"),t=()=>f(e.matches);return(t(),"function"==typeof e.addEventListener)?(e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}):(e.addListener(t),()=>{e.removeListener(t)})},[]),!c)return(0,t.jsxs)("div",{className:"flex h-[220px] w-full flex-col items-center justify-center gap-3 bg-surface-1 px-6 text-center sm:h-[300px]",children:[(0,t.jsx)(l.MapPin,{className:"h-6 w-6 text-grey","aria-hidden":!0}),(0,t.jsx)("button",{type:"button",onClick:()=>d(!0),className:"inline-flex items-center rounded-md border border-border bg-surface-0 px-3 py-2 text-[0.65rem] font-semibold uppercase tracking-[0.1em] text-primary transition-colors hover:border-primary hover:text-primary-dark",children:o("loadButton")}),(0,t.jsx)("p",{className:"max-w-[36ch] text-xs leading-relaxed text-grey",children:o("loadHint")})]});if(!p||!m)return(0,t.jsx)("div",{className:"h-[220px] w-full animate-pulse bg-surface-2 sm:h-[300px]",role:"status","aria-label":o("loadingLabel")});let{MapContainer:g,Marker:y,TileLayer:b}=p;return(0,t.jsxs)(g,{center:[a,i],zoom:16,scrollWheelZoom:!1,dragging:!0,className:"h-[220px] w-full sm:h-[300px]","aria-label":n,children:[(0,t.jsx)(b,{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="https://carto.com/attributions">CARTO</a>',url:`https://{s}.basemaps.cartocdn.com/${x?"dark_all":"light_all"}/{z}/{x}/{y}{r}.png`}),(0,t.jsx)(y,{position:[a,i],icon:m})]})}let ef=(0,r.createContext)(null);function eg(e){if(e)try{e.focus({preventScroll:!0})}catch{e.focus()}}function ey({open:e,onClose:a,wizardKey:c}){let d=(0,s.useTranslations)("contact.drawer"),m=(0,s.useTranslations)("contact.officeMap"),u=(0,r.useRef)(null);(0,r.useEffect)(()=>
1{if(!e)return;let t=e=>{if("Escape"===e.key){e.preventDefault(),a();return}if("Tab"!==e.key||!u.current)return;let t=u.current.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])');if(0===t.length)return;let r=t[0],s=t[t.length-1],i=document.activeElement;if(e.shiftKey&&i===r){e.preventDefault(),s.focus();return}e.shiftKey||i!==s||(e.preventDefault(),r.focus())};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[a,e]),(0,r.useEffect)(()=>{if(!e||!u.current)return;let t=window.requestAnimationFrame(()=>{eg(u.current?.querySelector('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')??null)});return()=>{window.cancelAnimationFrame(t)}},[e]);let p=`${x.siteConfig.address.street}, ${x.siteConfig.address.zip} ${x.siteConfig.address.city}`,h=`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(p)}`;return(0,t.jsxs)("div",{"aria-hidden":!e,className:`fixed inset-x-0 top-[4.9rem] bottom-0 z-[180] transition-[display] duration-[690ms] transition-discrete ${e?"pointer-events-auto":"pointer-events-none hidden"}`,children:[(0,t.jsx)("div",{className:`absolute inset-0 bg-black/48 transition-opacity ${e?"duration-380 opacity-100 starting:opacity-0":"duration-380 opacity-0"}`,onClick:a}),(0,t.jsx)("aside",{role:"dialog","aria-modal":"true","aria-label":d("ariaLabel"),"data-lenis-prevent":!0,className:`absolute inset-0 origin-top overflow-y-auto overscroll-none touch-pan-y bg-surface-floating transition-[clip-path,opacity] ease-[cubic-bezier(0.2,0.95,0.3,1)] ${e?"opacity-100 duration-[690ms] [clip-path:inset(0_0_0_0)] starting:opacity-0 starting:[clip-path:inset(0_0_100%_0)]":"opacity-0 duration-[690ms] [clip-path:inset(0_0_100%_0)]"}`,children:(0,t.jsx)("div",{ref:u,className:"bg-surface-floating pt-6 pb-[calc(6rem+env(safe-area-inset-bottom,0px))] md:pb-10 md:pt-8",children:(0,t.jsxs)("div",{className:"site-max",children:[(0,t.jsx)("div",{className:"mb-6 border-b border-border pb-5",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"type-meta text-[0.62rem] text-grey",children:d("eyebrow")}),(0,t.jsx)("h2",{className:"mt-2 font-heading text-3xl text-ink md:text-4xl",children:d("heading")})]})}),(0,t.jsxs)("div",{className:"grid gap-8 lg:grid-cols-12",children:[(0,t.jsx)("div",{className:"lg:col-span-7",children:(0,t.jsxs)("div",{className:"mt-3 space-y-5 lg:mt-5",children:[(0,t.jsx)(eu,{variant:"drawer",onClose:a},c),(0,t.jsx)("div",{className:"lg:hidden",children:(0,t.jsx)(eh,{mapsLink:h})})]})}),(0,t.jsxs)("div",{className:"space-y-4 lg:col-span-5",children:[(0,t.jsxs)("div",{className:"hidden rounded-xl border border-border bg-surface-1 p-6 lg:block",children:[(0,t.jsx)("h3",{className:"font-heading text-2xl text-ink",children:d("contactDataHeading")}),(0,t.jsxs)("div",{className:"mt-5 space-y-4 text-sm",children:[(0,t.jsxs)("a",{href:`tel:${x.siteConfig.phone.replace(/\s/g,"")}`,className:"flex items-center gap-3 text-ink transition-colors hover:text-accent",children:[(0,t.jsx)(i.Phone,{className:"h-4 w-4 text-grey"}),x.siteConfig.phone]}),(0,t.jsxs)("a",{href:`mailto:${x.siteConfig.email}`,className:"flex items-center gap-3 text-ink transition-colors hover:text-accent",children:[(0,t.jsx)(n.Mail,{className:"h-4 w-4 text-grey"}),x.siteConfig.email]}),(0,t.jsxs)("div",{className:"flex items-start gap-3 text-grey",children:[(0,t.jsx)(l.MapPin,{className:"mt-0.5 h-4 w-4 shrink-0"}),(0,t.jsx)("span",{children:p})]})]}),(0,t.jsx)("p",{className:"mt-4 pt-1 text-sm text-grey",children:d("availability")})]}),(0,t.jsxs)("div",{className:"relative z-0 hidden overflow-hidden rounded-xl border border-border bg-surface-1 p-4 lg:block",children:[(0,t.jsxs)("div",{className:"mb-3 flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"type-meta text-[0.62rem] text-grey",children:d("locationEyebrow")}),(0,t.jsx)("h3",{className:"mt-2 font-heading text-2xl text-ink",children:d("locationHeading")})]}),(0,t.jsxs)("a",{href:h,target:"_blank",rel:"noreferrer",className:"inline-flex shrink-0 items-center gap-1.5 rounded-md border border-border bg-surface-0 px-3 py-2 text-[0.65rem] font-semibold uppercase tracking-[0.1em] text-primary transition-colors hover:border-primary hover:text-primary-dark",children:[d("route"),(0,t.jsx)(o.ArrowUpRight,{className:"h-3.5 w-3.5"})]})]}),(0,t.jsx)("div",{className:"overflow-hidden rounded-lg border border-border/80 bg-surface-0 shadow-[0_14px_36px_rgba(16,42,48,0.12)]",children:(0,t.jsx)(ex,{lat:53.5769958,lng:9.9805403,title:m("title")})})]})]})]})]})})})]})}e.s(["ContactDrawerProvider",0,function({children:e}){let[s,i]=(0,r.useState)(!1),[n,l]=(0,r.useState)(0),o=(0,a.usePathname)(),c=(0,r.useRef)(null),d=(0,r.useCallback)(()=>{i(!1)},[]),m=(0,r.useCallback)(()=>{l(e=>e+1),i(!0)},[]);(0,r.useEffect)(()=>{i(!1)},[o]),(0,r.useEffect)(()=>
1{if(!s){document.body.classList.remove("contact-drawer-open"),c.current&&eg(c.current);return}c.current=document.activeElement,document.body.classList.add("contact-drawer-open")},[s]);let u=(0,r.useMemo)(()=>({isOpen:s,openDrawer:m,closeDrawer:d}),[d,s,m]);return(0,t.jsxs)(ef.Provider,{value:u,children:[(0,t.jsx)("div",{className:"app-shell",children:e}),(0,t.jsx)(ey,{open:s,onClose:d,wizardKey:n})]})},"useContactDrawer",0,function(){let e=(0,r.useContext)(ef);if(!e)throw Error("useContactDrawer must be used within ContactDrawerProvider");return e}],48926)},43432,e=>{"use strict";let t=(0,e.i(75254).default)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);e.s(["Phone",0,t],43432)}]);
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.