1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{1888:(e,t,a)=>{"use strict";a.d(t,{default:()=>d});var l=a(5155);a(2115);var s=a(4486),r=a(1873),n=a(6561),i=a(9141),o=a(6983),c=a(7768);let d=()=>{let{t:e}=(0,c.ok)(),t=[{day:e.location.days.monday,hours:"08:00 - 18:00",kitchen:"09:00 - 17:00"},{day:e.location.days.tuesday,hours:"08:00 - 18:00",kitchen:"09:00 - 17:00"},{day:e.location.days.wednesday,hours:"08:00 - 18:00",kitchen:"09:00 - 17:00"},{day:e.location.days.thursday,hours:"08:00 - 18:00",kitchen:"09:00 - 17:00"},{day:e.location.days.friday,hours:"08:00 - 18:00",kitchen:"09:00 - 17:00"},{day:e.location.days.saturday,hours:"10:00 - 18:00",kitchen:"10:00 - 17:00"},{day:e.location.days.sunday,hours:"10:00 - 18:00",kitchen:"10:00 - 17:00"}];return(0,l.jsx)("section",{id:"location",className:"py-20 bg-gradient-to-br from-cafe-warm to-cafe-light-purple/20",children:(0,l.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,l.jsxs)(s.P.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[(0,l.jsxs)("h2",{className:"text-4xl md:text-5xl font-merriweather font-bold text-cafe-dark mb-4",children:[e.location.title.split(" ").slice(0,-1).join(" ")," ",(0,l.jsx)("span",{className:"gradient-text",children:e.location.title.split(" ").slice(-1)[0]})]}),(0,l.jsx)("p",{className:"text-lg text-cafe-dark/70 font-source max-w-3xl mx-auto",children:e.location.description})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 gap-12 lg:items-start",children:[(0,l.jsxs)(s.P.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"bg-white/80 backdrop-blur-sm rounded-3xl p-8 shadow-xl",children:[(0,l.jsxs)("div",{className:"text-center mb-6",children:[(0,l.jsx)("h3",{className:"text-2xl font-merriweather font-bold text-cafe-dark mb-2",children:e.location.findUs}),(0,l.jsxs)("div",{className:"flex items-center justify-center space-x-2 text-cafe-dark/70",children:[(0,l.jsx)(r.A,{className:"w-5 h-5 text-cafe-purple"}),(0,l.jsx)("span",{className:"font-source",children:"Revaler Str. 9, 10245 Berlin, Deutschland"})]})]}),(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)("iframe",{src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2427.691808967781!2d13.458037676843!3d52.51667647203749!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47a84e3db719b2c5%3A0xc9e97e0e3e1d537d!2sRevaler%20Str.%209%2C%2010245%20Berlin!5e0!3m2!1sde!2sde!4v1702053924521!5m2!1sde!2sde",width:"100%",height:"300",style:{border:0},allowFullScreen:!1,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",className:"rounded-xl",title:"Stilbruch Kaffee Location"})}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,l.jsxs)(s.P.a,{href:"https://www.google.com/maps/dir//Revaler+Str.+9,+10245+Berlin",target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.02},whileTap:{scale:.98},className:"bg-cafe-light-purple/30 p-4 rounded-xl text-center hover:bg-cafe-light-purple/50 transition-colors duration-200",children:[(0,l.jsx)(n.A,{className:"w-6 h-6 text-cafe-purple mx-auto mb-2"}),(0,l.jsx)("p",{className:"text-sm font-source font-medium text-cafe-dark",children:e.location.planRoute})]}),(0,l.jsxs)(s.P.a,{href:"tel:+493025204080",whileHover:{scale:1.02},whileTap:{scale:.98},className:"bg-cafe-light-purple/30 p-4 rounded-xl text-center hover:bg-cafe-light-purple/50 transition-colors duration-200",children:[(0,l.jsx)(i.A,{className:"w-6 h-6 text-cafe-purple mx-auto mb-2"}),(0,l.jsx)("p",{className:"text-sm font-source font-medium text-cafe-dark",children:e.location.call})]})]})]}),(0,l.jsxs)(s.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.3},className:"bg-gradient-to-r from-cafe-purple/10 to-cafe-light-purple/20 rounded-2xl p-6 shadow-lg mt-6",children:[(0,l.jsx)("h3",{className:"text-xl font-merriweather font-bold text-cafe-dark mb-4",children:e.location.contactAddress}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,l.jsx)(r.A,{className:"w-5 h-5 text-cafe-purple mt-1 flex-shrink-0"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-source font-medium text-cafe-dark",children:"Revaler Str. 9"}),(0,l.jsx)("p",{className:"font-source text-cafe-dark/70",children:"10245 Berlin, Deutschland"})]})]}),(0,l.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,l.jsx)(i.A,{className:"w-5 h-5 text-cafe-purple"}),(0,l.jsx)("a",{href:"tel:+493025204080",className:"font-source text-cafe-dark hover:text-cafe-purple transition-colors",children:"+49 (30) 25204080"})]})]})]})]}),(0,l.jsx)(s.P.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"space-y-8",children:(0,l.jsxs)("div",{className:"bg-white/80 backdrop-blur-sm rounded-2xl p-6 shadow-lg",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-3 mb-6",children:[(0,l.jsx)(o.A,{className:"w-6 h-6 text-cafe-purple"}),(0,l.jsx)("h3",{className:"text-xl font-merriweather font-bold text-cafe-dark",children:e.location.openingHours})]}),(0,l.jsx)("div",{className:"space-y-3",children:t.map((t,a)=>(0,l.jsxs)(s.P.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:.1*a},className:"py-2 border-b border-cafe-dark/10 last:border-b-0",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("span",{className:"font-source font-medium text-cafe-dark",children:t.day}),(0,l.jsx)("span",{className:"font-source text-cafe-dark/70",children:t.hours})]}),(0,l.jsxs)("div",{className:"flex justify-between items-center mt-1",children:[(0,l.jsx)("span",{className:"font-source text-sm text-cafe-dark/60 pl-4",children:e.location.kitchen}),(0,l.jsx)("span",{className:"font-source text-sm text-cafe-dark/60",children:t.kitchen})]})]},t.day))}),(0,l.jsx)("div",{className:"mt-4 p-3 bg-cafe-light-purple/30 rounded-xl",children:(0,l.jsxs)("p",{className:"text-sm text-cafe-dark font-source",children:[(0,l.jsx)("strong",{children:e.location.note})," ",e.location.holidayNotice]})})]})})]})]})})}},2025:(e,t,a)=>{"use strict";a.d(t,{RestaurantProvider:()=>i,p:()=>n});var l=a(5155),s=a(2115);let r=(0,s.createContext)(void 0),n=()=>{let e=(0,s.useContext)(r);if(void 0===e)throw Error("useRestaurant must be used within a RestaurantProvider");return e},i=e=>{let{children:t}
1=e,[a,n]=(0,s.useState)(null),[i,o]=(0,s.useState)(!0),[c,d]=(0,s.useState)(null),u=async()=>{try{o(!0),d(null);let e=await fetch("/api/restaurant/settings?restaurantId=kgW9DFvbmCO1DgKiHkoThscZ7Er1");if(!e.ok)throw Error("Failed to fetch restaurant settings");let t=await e.json();if(t.success&&t.data)n(t.data);else throw Error(t.error||"Invalid response format")}catch(e){console.error("Error fetching restaurant settings:",e),d(e instanceof Error?e.message:"Unknown error")}finally{o(!1)}};(0,s.useEffect)(()=>{u()},[]);let m=async()=>{await u()};return(0,l.jsx)(r.Provider,{value:{settings:a,loading:i,error:c,refreshSettings:m},children:t})}},2051:(e,t,a)=>{"use strict";a.d(t,{default:()=>x});var l=a(5155),s=a(2115),r=a(4486),n=a(9141),i=a(3664),o=a(1873),c=a(8707),d=a(6983),u=a(5937),m=a(2529),h=a(8085),p=a(7768);let x=()=>{let{t:e}=(0,p.ok)(),[t,a]=(0,s.useState)({name:"",email:"",phone:"",subject:"",message:""}),[x,f]=(0,s.useState)(!1),[g,v]=(0,s.useState)(!1),[b,j]=(0,s.useState)({phone:"+49 (30) 25204080",email:"[email protected]",address:["Revaler Str. 9","10245 Berlin, Deutschland"]});(0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/site-config");if(e.ok){let t=await e.json();j(t.contact)}}catch(e){console.error("Error loading contact data:",e)}})()},[]);let w=e=>{a({...t,[e.target.name]:e.target.value})},y=async l=>{l.preventDefault(),f(!0);try{let l=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),s=await l.json();l.ok&&s.success?(v(!0),a({name:"",email:"",phone:"",subject:"",message:""})):alert(e.contact.errorMessage)}catch(t){console.error("Error submitting form:",t),alert(e.contact.errorMessage)}finally{f(!1)}},N=[{icon:n.A,title:e.contact.phone,details:[b.phone],action:"tel:".concat(b.phone.replace(/\s/g,"")),actionText:e.contact.callNow,actionIcon:n.A},{icon:i.A,title:e.contact.email,details:[b.email,e.contact.emailResponse.split(": ")[1]],action:"mailto:".concat(b.email),actionText:e.contact.sendEmail,actionIcon:i.A},{icon:o.A,title:e.contact.address,details:b.address,action:"https://maps.google.com/maps?daddr=".concat(b.address.join(", ")),actionText:e.contact.showMap,actionIcon:c.A}],k=[e.contact.subjects.general,e.contact.subjects.reservation,e.contact.subjects.catering,e.contact.subjects.event,e.contact.subjects.feedback,e.contact.subjects.application,e.contact.subjects.other];return(0,l.jsx)("section",{id:"contact",className:"py-20 bg-gradient-to-br from-cafe-warm to-cafe-light-purple/30",children:(0,l.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,l.jsxs)(r.P.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[(0,l.jsxs)("h2",{className:"text-4xl md:text-5xl font-merriweather font-bold text-cafe-dark mb-4",children:[e.contact.title.split(" ").slice(0,-1).join(" ")," ",(0,l.jsx)("span",{className:"gradient-text",children:e.contact.title.split(" ").slice(-1)[0]})]}),(0,l.jsx)("p",{className:"text-lg text-cafe-dark/70 font-source max-w-3xl mx-auto",children:e.contact.description})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-3 gap-12",children:[(0,l.jsxs)(r.P.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"lg:col-span-1 space-y-8",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"text-2xl font-merriweather font-bold text-cafe-dark mb-6",children:e.contact.speakToUs}),(0,l.jsx)("div",{className:"space-y-6",children:N.map((e,t)=>{let a=e.icon;return(0,l.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1*t},className:"bg-white/80 backdrop-blur-sm rounded-2xl p-6 hover:shadow-lg transition-all duration-300",children:(0,l.jsxs)("div",{className:"flex items-start space-x-4",children:[(0,l.jsx)("div",{className:"w-12 h-12 bg-cafe-light-purple rounded-xl flex items-center justify-center flex-shrink-0",children:(0,l.jsx)(a,{className:"w-6 h-6 text-cafe-purple"})}),(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)("h4",{className:"font-merriweather font-bold text-cafe-dark mb-2",children:e.title}),(0,l.jsx)("div",{className:"space-y-1",children:e.details.map((e,t)=>(0,l.jsx)("p",{className:"text-cafe-dark/70 font-source text-sm",children:e},t))}),e.action&&(0,l.jsxs)(r.P.a,{href:e.action,target:e.action.startsWith("http")?"_blank":void 0,rel:e.action.startsWith("http")?"noopener noreferrer":void 0,whileHover:{scale:1.05},whileTap:{scale:.95},className:"inline-flex items-center space-x-2 mt-3 text-cafe-purple hover:text-cafe-purple/80 transition-colors font-source font-medium text-sm",children:[(0,l.jsx)("span",{children:e.actionText}),(0,l.jsx)(e.actionIcon,{className:"w-4 h-4"})]})]})]})}
1,e.title)})})]}),(0,l.jsxs)("div",{className:"bg-gradient-to-r from-cafe-purple/10 to-cafe-light-purple/20 rounded-2xl p-6",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-3 mb-4",children:[(0,l.jsx)(d.A,{className:"w-6 h-6 text-cafe-purple"}),(0,l.jsx)("h4",{className:"font-merriweather font-bold text-cafe-dark",children:e.contact.quickResponse})]}),(0,l.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(u.A,{className:"w-4 h-4 text-cafe-purple"}),(0,l.jsx)("span",{className:"font-source text-cafe-dark",children:e.contact.emailResponse})]}),(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(n.A,{className:"w-4 h-4 text-cafe-purple"}),(0,l.jsx)("span",{className:"font-source text-cafe-dark",children:e.contact.phoneResponse})]})]})]})]}),(0,l.jsx)(r.P.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"lg:col-span-2",children:(0,l.jsxs)("div",{className:"bg-white/80 backdrop-blur-sm rounded-3xl p-8 shadow-xl",children:[(0,l.jsx)("h3",{className:"text-2xl font-merriweather font-bold text-cafe-dark mb-6",children:e.contact.sendMessage}),g?(0,l.jsxs)(r.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"text-center py-12",children:[(0,l.jsx)("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,l.jsx)(m.A,{className:"w-8 h-8 text-green-600"})}),(0,l.jsx)("h4",{className:"text-xl font-merriweather font-bold text-cafe-dark mb-2",children:e.contact.messageSent}),(0,l.jsx)("p",{className:"text-cafe-dark/70 font-source",children:e.contact.thankYou}),(0,l.jsx)(r.P.button,{onClick:()=>v(!1),whileHover:{scale:1.05},whileTap:{scale:.95},className:"mt-4 text-cafe-purple hover:text-cafe-purple/80 transition-colors font-source font-medium",children:e.contact.sendAnother})]}):(0,l.jsxs)("form",{onSubmit:y,className:"space-y-6",children:[(0,l.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-cafe-dark font-source font-medium mb-2",children:[e.contact.name," *"]}),(0,l.jsx)("input",{type:"text",name:"name",value:t.name,onChange:w,required:!0,className:"w-full px-4 py-3 bg-cafe-light-purple/20 border border-cafe-light-purple/30 rounded-xl focus:outline-none focus:ring-2 focus:ring-cafe-purple focus:border-transparent transition-colors font-source",placeholder:e.contact.namePlaceholder})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-cafe-dark font-source font-medium mb-2",children:[e.contact.emailLabel," *"]}),(0,l.jsx)("input",{type:"email",name:"email",value:t.email,onChange:w,required:!0,className:"w-full px-4 py-3 bg-cafe-light-purple/20 border border-cafe-light-purple/30 rounded-xl focus:outline-none focus:ring-2 focus:ring-cafe-purple focus:border-transparent transition-colors font-source",placeholder:e.contact.emailPlaceholder})]})]}),(0,l.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-cafe-dark font-source font-medium mb-2",children:e.contact.phoneLabel}),(0,l.jsx)("input",{type:"tel",name:"phone",value:t.phone,onChange:w,className:"w-full px-4 py-3 bg-cafe-light-purple/20 border border-cafe-light-purple/30 rounded-xl focus:outline-none focus:ring-2 focus:ring-cafe-purple focus:border-transparent transition-colors font-source",placeholder:e.contact.phonePlaceholder})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-cafe-dark font-source font-medium mb-2",children:[e.contact.subject," *"]}),(0,l.jsxs)("select",{name:"subject",value:t.subject,onChange:w,required:!0,className:"w-full px-4 py-3 bg-cafe-light-purple/20 border border-cafe-light-purple/30 rounded-xl focus:outline-none focus:ring-2 focus:ring-cafe-purple focus:border-transparent transition-colors font-source",children:[(0,l.jsx)("option",{value:"",children:e.contact.subjectPlaceholder}),k.map(e=>(0,l.jsx)("option",{value:e,children:e},e))]})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-cafe-dark font-source font-medium mb-2",children:[e.contact.message," *"]}),(0,l.jsx)("textarea",{name:"message",value:t.message,onChange:w,required:!0,rows:6,className:"w-full px-4 py-3 bg-cafe-light-purple/20 border border-cafe-light-purple/30 rounded-xl focus:outline-none focus:ring-2 focus:ring-cafe-purple focus:border-transparent transition-colors font-source resize-none",placeholder:e.contact.messagePlaceholder})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("p",{className:"text-sm text-cafe-dark/60 font-source",children:["* ",e.contact.required]}),(0,l.jsx)(r.P.button,{type:"submit",disabled:x,whileHover:{scale:1.05},whileTap:{scale:.95},className:"bg-cafe-purple text-white px-8 py-3 rounded-full font-source font-semibold hover:bg-cafe-purple/90 transition-colors duration-200 flex items-center space-x-2 disabled:opacity-50 disabled:cursor-not-allowed",children:x?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.P.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"w-5 h-5 border-2 border-white border-t-transparent roun
1ded-full"}),(0,l.jsx)("span",{children:e.contact.sending})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.A,{className:"w-5 h-5"}),(0,l.jsx)("span",{children:e.contact.sendButton})]})})]})]})]})})]})]})})}},2525:(e,t,a)=>{"use strict";a.d(t,{default:()=>k});var l=a(5155),s=a(2115),r=a(4486),n=a(1408),i=a(9587),o=a(6341),c=a(9474),d=a(6154),u=a(1503),m=a(9592),h=a(9347),p=a(6983),x=a(5229),f=a(9708),g=a(7768),v=a(2078);let b=(0,v.Dk)().length?(0,v.Dk)()[0]:(0,v.Wp)({apiKey:"AIzaSyCpa6cb0MgcjN6uzF_hlZrH4q0vXfs18EE",authDomain:"gastro-projekt.firebaseapp.com",projectId:"gastro-projekt",storageBucket:"gastro-projekt.firebasestorage.app",messagingSenderId:"1056129152265",appId:"1:1056129152265:web:eff01102246fe2de330fd8",measurementId:"G-CL87K7J7YR"}),j=(0,f.aU)(b),w="kgW9DFvbmCO1DgKiHkoThscZ7Er1",y={DE:"de",EN:"en",FR:"fr",ES:"es",IT:"it"},N=async()=>{let e=(0,f.rJ)(j,"users",w,"menus"),t=await (0,f.GG)(e);if(!t.empty){let e=t.docs[0].data();if(e&&e.isPublic)return e}let a=(0,f.P)((0,f.rJ)(j,"menus"),(0,f._M)("userId","==",w)),l=await (0,f.GG)(a);if(!l.empty){let e=l.docs[0].data();if(e&&e.isPublic)return e}throw Error("No public menu found")},k=()=>{var e,t,a,v,b,k,S,P;let{t:I,currentLanguage:A}
1=(0,g.ok)(),[D,E]=(0,s.useState)(""),[C,F]=(0,s.useState)({}),[_,T]=(0,s.useState)([]),[O,z]=(0,s.useState)({symbol:"â¬",position:"before"}),[B,R]=(0,s.useState)(!0),[M,H]=(0,s.useState)(null),[L,V]=(0,s.useState)(null),[G,Z]=(0,s.useState)(null),[q,W]=(0,s.useState)({}),K=(0,s.useRef)({}),U=(0,s.useRef)([]),J=(0,s.useRef)(!1),Q=(0,s.useRef)(0),Y=e=>{if(null==e||""===e)return"";let t="number"==typeof e?e:parseFloat(String(e).replace(",","."));if(!Number.isFinite(t))return String(e);let a=t.toFixed(2).replace(".",",");return"before"===O.position?"".concat(O.symbol).concat(a):"".concat(a).concat(O.symbol)};(0,s.useEffect)(()=>{K.current=q},[q]),(0,s.useEffect)(()=>{try{let e=localStorage.getItem("menuTranslations");if(e){let t=JSON.parse(e);K.current=t,W(t)}}catch(e){console.warn("Failed to load translation cache:",e)}},[]);let X=e=>{W(t=>{let a={...t,...e};K.current=a;try{"undefined"!=typeof localStorage&&localStorage.setItem("menuTranslations",JSON.stringify(a))}catch(e){console.warn("Failed to store translation cache:",e)}return a})},$=async(e,t,a)=>{if(!e||!e.trim()||"de"===t)return e;let l=e.trim(),s="".concat(l,"_").concat(t),r=K.current[s];if(r)return r;try{let e=await fetch("https://translate.googleapis.com/translate_a/single?client=gtx&sl=de&tl=".concat(t,"&dt=t&q=").concat(encodeURIComponent(l)));if(!e.ok)throw Error("HTTP ".concat(e.status));let a=await e.json(),s=l;return a&&a[0]&&a[0][0]&&a[0][0][0]?s=a[0][0][0]:a&&a[0]&&Array.isArray(a[0])&&(s=a[0].map(e=>e[0]).join("")),((e,t)=>e&&t?e===e.toUpperCase()&&e!==e.toLowerCase()?t.toUpperCase():e===e.toLowerCase()&&e!==e.toUpperCase()?t.toLowerCase():e[0]===e[0].toUpperCase()&&e.slice(1)===e.slice(1).toLowerCase()?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t:t)(l,s)}catch(r){let s=[800,1600,2400];if(a<s.length)return await new Promise(e=>setTimeout(e,s[a])),$(e,t,a+1);return console.warn("Translation failed:",r),l}},ee=async()=>{if(!J.current&&0!==U.current.length){for(J.current=!0;U.current.length>0;){let e=U.current.shift();if(!e)continue;let t=Date.now()-Q.current;t<120&&await new Promise(e=>setTimeout(e,120-t));try{let t=await $(e.text,e.targetLang,0);e.resolve(t),Q.current=Date.now()}catch(t){e.reject(t)}}J.current=!1}},et=async(e,t)=>new Promise((a,l)=>{U.current.push({text:e,targetLang:t,resolve:a,reject:l}),ee()}),ea=e=>{if(!e||"DE"===A)return e;let t=y[A]||"de";if("de"===t)return e;let a="".concat(e.trim(),"_").concat(t);return K.current[a]||e};(0,s.useEffect)(()=>{let e=!1,t=t=>{if(e)return;let a=(e=>{var t;let a=(e.categories||[]).filter(e=>!1!==e.isActive).sort((e,t)=>{var a,l;return(null!=(a=e.order)?a:0)-(null!=(l=t.order)?l:0)}),l=(e.items||[]).filter(e=>!1!==e.isAvailable&&!1!==e.showOnWebsite),s={};l.forEach(e=>{var t,a,l;let r=e.categoryId||"uncategorized";s[r]||(s[r]=[]);let n=e.imageUrl||e.image||"",i=(e=>{if(!e)return null;if(Array.isArray(e)){let t=e.map(e=>"string"==typeof e?e:e&&"object"==typeof e&&"name"in e?String(e.name||""):"").filter(Boolean);return t.length?t.join(", "):null}return"string"==typeof e?e:null})(null!=(l=null!=(a=null!=(t=e.ingredients)?t:e.ingredientsText)?a:e.ingredientList)?l:e.ingredient);s[r].push({id:e.id,name:e.name||"Menu Item",description:e.description||"",ingredients:i||void 0,price:e.price,tags:Array.isArray(e.tags)?e.tags:[],image:n||"\uD83C\uDF7Dï¸",isPhoto:!!n,popular:!!(e.popular||e.isPopular||e.isFeatured)})});let r=a.map(e=>({id:e.id,name:e.name,icon:(e=>{let t=e.toLowerCase();return t.includes("fr\xfch")||t.includes("breakfast")?i.A:t.includes("dessert")||t.includes("kuchen")||t.includes("sweet")?o.A:t.includes("sandwich")||t.includes("wrap")||t.includes("bagel")?c.A:t.includes("power")||t.includes("fitness")||t.includes("protein")?d.A:t.includes("salat")||t.includes("vegan")||t.includes("vegetar")?u.A:t.includes("kaffee")||t.includes("coffee")||t.includes("getr\xe4nk")||t.includes("drink")?i.A:m.A})(e.name||""),order:e.order})).filter(e=>(s[e.id]||[]).length>0),n=(null==(t=e.settings)?void 0:t.currency)||{};return{itemsByCategory:s,categories:r,currency:{symbol:n.symbol||"â¬",position:"after"===n.position?"after":"before"}}})(t);F(a.itemsByCategory),T(a.categories),z(a.currency),E(e=>!a.categories.length||e&&a.categories.some(t=>t.id===e)?e:a.categories[0].id),H(null)};(async()=>{try{R(!0);let e=await N();t(e)}catch(t){e||H(t instanceof Error?t.message:"Menu loading failed")}finally{e||R(!1)}})();let a=(()=>{let e=(0,f.rJ)(j,"users",w,"menus");return(0,f.aQ)(e,e=>{if(e.empty)return;let a=e.docs[0].data();a&&a.isPublic&&t(a)},e=>{console.error("Real-time update error:",e)})})();return()=>{e=!0,a&&a()}},[]);let el=_.map(e=>{var t,a;let l=null==I||null==(a=I.menu)||null==(t=a.categories)?void 0:t[e.id],s=l||e.name;return{...e,name:l?s:ea(s)}}),es=(null==I||null==(e=I.menu)?void 0:e.itemDescriptionFallback)||"Delicious dish from our menu",er=(null==I||null==(t=I.menu)?void 0:t.ingredientsLabel)||"Ingredients",en=D&&C[D]||[],ei=y[A]||"de";return(0,s.useEffect)(()=>{(e=>{document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"),document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=").concat(window.location.hostname)})("googtrans")},[]),(0,s.useEffect)(()=>{let e=()=>{document.querySelectorAll('script[src*="translate.google.com/translate_a/element.js"]').forEach(e
1=>{e.parentNode&&e.parentNode.removeChild(e)}),document.querySelectorAll('iframe[src*="translate.google.com"]').forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),document.querySelectorAll(".goog-te-banner-frame, .goog-te-balloon-frame, #goog-gt-tt, .goog-tooltip").forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),document.body&&(document.body.style.top="0px"),document.documentElement&&(document.documentElement.style.marginTop="0px")};e();let t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0}),()=>t.disconnect()},[]),(0,s.useEffect)(()=>{if(B||!C||"DE"===A||"de"===ei)return;let e=!1,t=new Set;_.forEach(e=>{e.name&&t.add(e.name)}),Object.values(C).forEach(e=>{e.forEach(e=>{e.name&&t.add(e.name),e.description&&t.add(e.description),e.ingredients&&t.add(e.ingredients),e.tags&&e.tags.length>0&&e.tags.forEach(e=>{e&&t.add(e)})})});let a=Array.from(t).map(e=>e.trim()).filter(e=>e.length>0).filter(e=>!K.current["".concat(e,"_").concat(ei)]);if(0!==a.length)return(async()=>{for(let t=0;t<a.length;t+=3){if(e)return;let l=a.slice(t,t+3),s=await Promise.all(l.map(async e=>{try{let t=await et(e,ei);return{original:e,translated:t}}catch(t){return{original:e,translated:e}}})),r={};s.forEach(e=>{let{original:t,translated:a}=e;r["".concat(t,"_").concat(ei)]=a}),X(r),t+3<a.length&&await new Promise(e=>setTimeout(e,200))}})(),()=>{e=!0}},[C,_,A,ei,B]),(0,l.jsxs)("section",{id:"menu",className:"py-20 bg-gradient-to-br from-cafe-warm to-cafe-cream",children:[(0,l.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,l.jsxs)(r.P.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[(0,l.jsx)("h2",{className:"text-4xl md:text-5xl font-merriweather font-bold text-cafe-dark mb-4",children:(null==I||null==(a=I.menu)?void 0:a.title)?(0,l.jsxs)(l.Fragment,{children:[I.menu.title.split(" ").slice(0,-1).join(" ")," ",(0,l.jsx)("span",{className:"gradient-text",children:I.menu.title.split(" ").slice(-1)[0]})]}):(0,l.jsxs)(l.Fragment,{children:["Unsere ",(0,l.jsx)("span",{className:"gradient-text",children:"Speisekarte"})]})}),(0,l.jsxs)("p",{className:"text-lg text-cafe-dark/70 font-source max-w-3xl mx-auto mb-8",children:[(null==I||null==(v=I.menu)?void 0:v.description)||"Entdecken Sie unsere kulinarischen K\xf6stlichkeiten - von herzhaften Fr\xfchst\xfccksgerichten bis hin zu verlockenden Desserts, alles mit frischen, hochwertigen Zutaten zubereitet.",(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),(null==I||null==(b=I.menu)?void 0:b.favoritesText)||"Unten sehen Sie die Favourites unserer G\xe4ste, die wir Ihnen besonders empfehlen m\xf6chten. Die vollst\xe4ndige Speisekarte k\xf6nnen Sie herunterladen oder direkt bei uns im Caf\xe9 einsehen."]}),(0,l.jsx)("div",{className:"flex items-center justify-center gap-4",children:(0,l.jsx)(r.P.a,{href:"https://techkiez.de/menu/kgW9DFvbmCO1DgKiHkoThscZ7Er1",target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.05},whileTap:{scale:.95},className:"inline-flex items-center space-x-2 bg-cafe-purple text-white px-6 py-3 rounded-full font-source font-medium hover:bg-cafe-purple/90 transition-colors duration-200",children:(0,l.jsx)("span",{children:(null==I||null==(k=I.menu)?void 0:k.viewMenu)||"Speisekarte ansehen"})})}),(0,l.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-3 mt-4",children:(0,l.jsxs)("a",{href:"https://techkiez.de",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-full bg-emerald-500/15 text-emerald-700 px-3 py-1 text-xs font-source font-semibold hover:bg-emerald-500/20 transition-colors duration-200",children:[(0,l.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,l.jsx)("span",{className:"absolute inline-flex h-2 w-2 rounded-full bg-emerald-400 opacity-75 animate-ping"}),(0,l.jsx)("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-emerald-500"})]}),"Live-Men\xfc powered by techkiez"]})})]}),!B&&!M&&el.length>0&&(0,l.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"flex flex-wrap justify-center gap-4 mb-12",children:el.map(e=>{let t=e.icon;return(0,l.jsxs)(r.P.button,{onClick:()=>E(e.id),whileHover:{scale:1.05},whileTap:{scale:.95},className:"flex items-center space-x-2 px-6 py-3 rounded-full font-source font-medium transition-all duration-300 ".concat(D===e.id?"bg-cafe-purple text-white shadow-lg":"bg-white/80 text-cafe-dark hover:bg-white hover:shadow-md"),children:[(0,l.jsx)(t,{className:"w-5 h-5"}),(0,l.jsx)("span",{children:e.name})]},e.id)})}),(0,l.jsx)(n.N,{mode:"wait",children:B?(0,l.jsx)(r.P.div,{initial:{opacity:0,y:10}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.4},className:"text-center text-cafe-dark/70 font-source",children:"Speisekarte wird geladen..."},"loading"):M?(0,l.jsx)(r.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.4},className:"text-center text-red-600 font-source",children:"Speisekarte konnte nicht geladen werden."},"error"):(0,l.jsx)(r.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.5},className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:0===en.length?(0,l.jsx)("div",{className:"col-span-1 md:col-span-2 text-center text-cafe-dark/70 font-source",children:"Keine Artikel in dieser Kategorie verf\xfcgbar."}):en.map((e,t)=>{var a;return(0,l.jsxs)(r.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1*t},className:"bg-white/80 backdrop-blur-sm rounded-2xl p-6 hover:shadow-lg transition-all duration-300 hover-lift relative",children:[0===t&&e.isPhoto&&(0,l.jsx)(r.P.div,{initial:{opacity:0,scale:.8,rotate:10},animate:{opacity:1,scale:1,rotate:8},transition:{duration:.8,delay:1.5},className:"absolute -top-12 left-2 z-10 pointer-events-none",children:(0,l.jsxs)(r.P.div,{animate:{rotate:[8,12,6,10,8],y:[0,-2,1,-1,0]},transition:{duration:3,repeat:1/0,ease:"easeInOut"},className:"relative",children:[(0,l.jsx)("div",{className:"text-cafe-dark font-bold text-sm transform -rotate-3 mb-2",style:{fontFamily:"Comic Sans MS, cursive, sans-serif",textShadow:"1px 1px 2px rgba(0,0,0,0.1)",filter:"drop-shadow(0 1px 1px rgba(139, 69, 19, 0.3))"},children:"Click me!"}),(0,l.jsxs)("svg",{width:"60",height:"45",viewBox:"0 0 60 45",className:"absolute top-6 left-2",children:[(0,l.jsx)("path",{d:"M10 8 Q20 15 30 12 Q40 8 45 15 Q48 20 50 28",stroke:"#8B4513",strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeDasharray:"1,1",className:"animate-pulse"}),(0,l.jsx)("path",{d:"M47 25 L50 28 L53 25",stroke:"#8B4513",strokeWidth:"2",fill:"none",strokeLinecap:"round"})]})]})}),(0,l.jsxs)("div",{className:"flex items-start justify-between mb-4 gap-4",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-3 flex-1 min-w-0",children:[(0,l.jsx)("div",{className:"w-16 h-16 rounded-xl overflow-hidden flex-shrink-0",children:e.isPhoto?(0,l.jsx)(r.P.img,{src:e.image,alt:e.name,className:"w-full h-full object-cover cursor-pointer hover:scale-105 transition-transform duration-200",onClick:()=>{V(e.image||""),Z(e)},whileHover:{scale:1.05},whileTap:{scale:.95}}):(0,l.jsx)("div",{className:"w-full h-full flex items-center justify-center text-3xl",children:e.image})}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,l.jsx)("h3",{className:"text-lg sm:text-xl font-merriweather font-bold text-cafe-dark break-words hyphens-auto leading-tight",children:ea(e.name)}),(0,l.jsx)("p",{className:"text-cafe-dark/70 font-source text-sm mt-1",children:ea(e.description||"")}),e.ingredients&&(0,l.jsxs)("p",{className:"text-cafe-dark/60 font-source text-xs mt-2",children:[er,": ",ea(e.ingredients)]})]})]}),(0,l.jsxs)("div",{className:"text-right flex-shrink-0 min-w-fit",children:[(0,l.jsx)("span",{className:"text-xl sm:text-2xl font-merriweather font-bold text-cafe-purple whitespace-nowrap",children:Y(e.price)}),e.popular&&(0,l.jsxs)(r.P.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.5},className:"bg-cafe-purple text-white px-2 py-1 rounded-full text-xs font-source font-medium flex items-center space-x-1 mt-2 justify-center whitespace-nowrap",children:[(0,l.jsx)(h.A,{className:"w-3 h-3"}),(0,l.jsx)("span",{children:(null==I||null==(a=I.menu)?void 0:a.popular)||"Beliebt"})]})]})]}),e.tags.length>0&&(0,l.jsx)("div",{className:"flex flex-wrap gap-2",children:e.tags.map(e=>(0,l.jsxs)("span",{className:"bg-cafe-light-purple/50 text-cafe-dark px-3 py-1 rounded-full text-xs font-source font-medium flex items-center space-x-1",children:[e.includes("Vegan")&&(0,l.jsx)(u.A,{className:"w-3 h-3"}),e.includes("Zeit")&&(0,l.jsx)(p.A,{className:"w-3 h-3"}),(0,l.jsx)("span",{children:ea(e)})]},e))})]},e.id||e.name)})},D||"menu")}),(0,l.jsxs)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.4},className:"mt-16 bg-gradient-to-r from-cafe-purple/10 to-cafe-light-purple/20 rounded-2xl p-8 text-center",children:[(0,l.jsx)("h3",{className:"text-2xl font-merriweather font-bold text-cafe-dark mb-4",children:(null==I||null==(S=I.menu)?void 0:S.specialRequests)||"Besondere W\xfcnsche?"}),(0,l.jsx)("p",{className:"text-cafe-dark/70 font-source max-w-2xl mx-auto",children:(null==I||null==(P=I.menu)?void 0:P.specialRequestsDescription)||"Wir bieten auch glutenfreie, vegane und allergenfreie Gerichte an. Sprechen Sie uns einfach an - wir beraten Sie gerne!"})]})]}),(0,l.jsx)(n.N,{children:L&&(0,l.jsx)(r.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 bg-black/90 flex items-center justify-center p-4",onClick:()=>{V(null),Z(null)},children:(0,l.jsx)(r.P.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},className:"relative max-w-4xl max-h-[90vh] w-full",onClick:e=>e.stopPropagation(),children:(0,l.jsxs)("div",{className:"bg-white rounded-2xl overflow-hidden",children:[(0,l.jsx)("div",{className:"aspect-video relative bg-gray-200",children:(0,l.jsx)("img",{src:L,alt:"Food image",className:"w-full h-full object-cover"})}),(0,l.jsx)("div",{className:"p-6 bg-white",children:(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"text-lg font-body font-bold text-cafe-dark",children:(null==G?void 0:G.name)?ea(G.name):"Menu Item"}),(0,l.jsx)("p",{className:"text-cafe-dark/70 font-body",children:(null==G?void 0:G.description)?ea(G.description):es}),(null==G?void 0:G.ingredients)&&(0,l.jsxs)("p",{className:"text-cafe-dark/60 font-body text-sm mt-2",children:[er,": ",ea(G.ingredients)]}),(null==G?void 0:G.price)!==void 0&&(null==G?void 0:G.price)!==null&&(0,l.jsx)("p",{className:"text-xl font-body font-bold text-cafe-purple mt-2",children:Y(G.price)})]}),(0,l.jsx)("div",{className:"text-right",children:(0,l.jsx)("button",{onClick:()=>{V(null),Z(null)},className:"bg-cafe-light-purple/20 text-cafe-dark p-2 rounded-full hover:bg-cafe-light-purple/40 transition-colors duration-200",children:(0,l.jsx)(x.A,{className:"w-5 h-5"})})})]})})]})})})})]})}},2625:(e,t,a)=>{"use strict";a.d(t,{t:()=>l});let l="https://techkiez.de/gutschein/kgW9DFvbmCO1DgKiHkoThscZ7Er1"},5334:(e,t,a)=>{Promise.resolve().then(a.bind(a,2051)),Promise.resolve().then(a.bind(a,8455)),Promise.resolve().then(a.bind(a,5745)),Promise.resolve().then(a.bind(a,7189)),Promise.resolve().then(a.bind(a,1888)),Promise.resolve().then(a.bind(a,2525)),Promise.resolve().then(a.bind(a,9379)),Promise.resolve().then(a.bind(a,6741))},5745:(e,t,a)=>{"use strict";a.d(t,{default:()=>p});var l=a(5155),s=a(2115),r=a(4486),n=a(1408),i=a(5664),o=a(3457),c=a(9347),d=a(7937),u=a(368),m=a(5229),h=a(7768);let p=()=>{let{t:e,currentLanguage:t}
1=(0,h.ok)(),[a,p]=(0,s.useState)(null),[x,f]=(0,s.useState)({}),[g,v]=(0,s.useState)([]),[b,j]=(0,s.useState)(!0);(0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/site-config?lang=".concat(t));if(e.ok){let t=await e.json();f(t.gallery||{}),v(t.galleryCategories||[])}}catch(e){console.error("Error fetching gallery data:",e)}finally{j(!1)}})()},[t]);let[w,y]=(0,s.useState)("All"),N=s.useMemo(()=>{let e=[],t=0;return g.forEach(a=>{(x[a.id]||[]).forEach(l=>{e.push({...l,category:a.id,categoryName:a.name,id:t++})})}),e},[x,g]),k="All"===w?N:N.filter(e=>e.category===w),S=["All",...g.map(e=>e.id)];return b?(0,l.jsx)("section",{id:"gallery",className:"py-20 bg-gradient-to-br from-cafe-cream to-cafe-light-purple/30",children:(0,l.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)("p",{className:"text-cafe-dark/70 font-source",children:e.gallery.loading})})})}):(0,l.jsxs)("section",{id:"gallery",className:"py-20 bg-gradient-to-br from-cafe-cream to-cafe-light-purple/30",children:[(0,l.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,l.jsxs)(r.P.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[(0,l.jsxs)("h2",{className:"text-4xl md:text-5xl font-merriweather font-bold text-cafe-dark mb-4",children:[e.gallery.title.split(" ").slice(0,-1).join(" ")," ",(0,l.jsx)("span",{className:"gradient-text",children:e.gallery.title.split(" ").slice(-1)[0]})]}),(0,l.jsx)("p",{className:"text-lg text-cafe-dark/70 font-source max-w-3xl mx-auto",children:e.gallery.description})]}),(0,l.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"flex flex-wrap justify-center gap-3 mb-12",children:S.map(t=>(0,l.jsx)(r.P.button,{onClick:()=>y(t),whileHover:{scale:1.05},whileTap:{scale:.95},className:"px-4 py-2 rounded-full font-source font-medium transition-all duration-300 ".concat(w===t?"bg-cafe-purple text-white shadow-lg":"bg-white/80 text-cafe-dark hover:bg-white hover:shadow-md"),children:(t=>{if("All"===t)return e.gallery.all;let a=g.find(e=>e.id===t);return(null==a?void 0:a.name)||t})(t)},t))}),(0,l.jsx)(r.P.div,{layout:!0,className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:(0,l.jsx)(n.N,{children:k.map((t,a)=>(0,l.jsx)(r.P.div,{layout:!0,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.5,delay:.1*a},className:"group cursor-pointer",onClick:()=>p(a),children:(0,l.jsxs)("div",{className:"relative bg-white/80 backdrop-blur-sm rounded-2xl overflow-hidden shadow-lg hover:shadow-xl transition-all duration-300 hover-lift",children:[(0,l.jsxs)("div",{className:"aspect-square relative overflow-hidden bg-gray-200",children:[(0,l.jsx)("img",{src:t.image,alt:t.title,className:"w-full h-full object-cover"}),(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/30 to-transparent"}),(0,l.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,l.jsx)("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:(0,l.jsxs)("div",{className:"text-center text-white",children:[(0,l.jsx)(i.A,{className:"w-8 h-8 mx-auto mb-2"}),(0,l.jsx)("p",{className:"text-sm font-source",children:e.gallery.clickToEnlarge})]})})}),(0,l.jsx)("div",{className:"absolute inset-0 bg-cafe-purple/20 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,l.jsx)("div",{className:"absolute top-4 left-4 bg-white/90 backdrop-blur-sm px-3 py-1 rounded-full",children:(0,l.jsx)("span",{className:"text-xs font-source font-medium text-cafe-dark",children:t.categoryName})})]}),(0,l.jsxs)("div",{className:"p-6",children:[(0,l.jsx)("h3",{className:"text-lg font-merriweather font-bold text-cafe-dark mb-2",children:t.title}),(0,l.jsx)("p",{className:"text-cafe-dark/70 font-source text-sm",children:t.description}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-4",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(r.P.button,{whileHover:{scale:1.1},whileTap:{scale:.9},className:"w-8 h-8 bg-cafe-light-purple/30 rounded-full flex items-center justify-center hover:bg-cafe-light-purple/50 transition-colors",children:(0,l.jsx)(o.A,{className:"w-4 h-4 text-cafe-purple"})}),(0,l.jsx)(r.P.button,{whileHover:{scale:1.1},whileTap:{scale:.9},className:"w-8 h-8 bg-cafe-light-purple/30 rounded-full flex items-center justify-center hover:bg-cafe-light-purple/50 transition-colors",children:(0,l.jsx)(c.A,{className:"w-4 h-4 text-cafe-purple"})})]}),(0,l.jsxs)("span",{className:"text-xs text-cafe-dark/50 font-source",children:[e.gallery.imageOf," ",a+1," / ",k.length]})]})]})]})},t.id))})}),(0,l.jsx)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.4},className:"mt-16 text-center",children:(0,l.jsxs)("div",{className:"bg-gradient-to-r from-cafe-purple/10 to-cafe-light-purple/20 rounded-2xl p-8",children:[(0,l.jsx)("h3",{className:"text-2xl font-merriweather font-bold text-cafe-dark mb-4",children:e.gallery.experienceYourself}),(0,l.jsx)("p",{className:"text-cafe-dark/70 font-source mb-6 max-w-2xl mx-auto",children:e.gallery.visitUs}),(0,l.jsxs)(r.P.a,{href:"#reservation",whileHover:{scale:1.05},whileTap:{scale:.95},className:"bg-cafe-purple text-white px-8 py-4 rounded-full font-source font-semibold hover:bg-cafe-purple/90 transition-colors duration-200 inline-flex items-center space-x-2",children:[(0,l.jsx)("span",{children:e.gallery.reserveNow}),(0,l.jsx)(d.A,{className:"w-5 h-5"})]})]})})]}),(0,l.jsx)(n.N,{children:null!==a&&(0,l.jsx)(r.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 bg-black/90 flex items-center justify-center p-4",onClick:()=>p(null),children:(0,l.jsxs)(r.P.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},className:"relative max-w-4xl max-h-[90vh] w-full",onClick:e=>e.stopPropagation(),children:[(0,l.jsxs)("div",{className:"bg-white rounded-2xl overflow-hidden",children:[(0,l.jsx)("div",{className:"aspect-video relative bg-gray-200",children:(0,l.jsx)("img",{src:k[a].image,alt:k[a].title,className:"w-full h-full object-cover"})}),(0,l.jsx)("div",{className:"p-6 bg-white",children:(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"text-lg font-merriweather font-bold text-cafe-dark",children:k[a].title}),(0,l.jsx)("p",{className:"text-cafe-dark/70 font-source",children:k[a].description})]}),(0,l.jsx)("div",{className:"text-right",children:(0,l.jsxs)("span",{className:"text-sm text-cafe-dark/50 font-source",children:[a+1," / ",k.length]})})]})})]}),(0,l.jsx)("button",{onClick:()=>{null!==a&&p(0===a?k.length-1:a-1)},className:"absolute left-4 top-1/2 -translate-y-1/2 w-12 h-12 bg-white/20 backdrop-blur-sm rounded-full flex items-center justify-center hover:bg-white/30 transition-colors",children:(0,l.jsx)(u.A,{className:"w-6 h-6 text-white"})}),(0,l.jsx)("button",{onClick:()=>{null!==a&&p((a+1)%k.length)},className:"absolute right-4 top-1/2 -translate-y-1/2 w-12 h-12 bg-white/20 backdrop-blur-sm rounded-full flex items-center justify-center hover:bg-white/30 transition-colors",children:(0,l.jsx)(d.A,{className:"w-6 h-6 text-white"})}),(0,l.jsx)("button",{onClick:()=>p(null),className:"absolute top-4 right-4 w-12 h-12 bg-white/20 backdrop-blur-sm rounded-full flex items-center justify-center hover:bg-white/30 transition-colors",children:(0,l.jsx)(m.A,{className:"w-6 h-6 text-white"})})]})})})]})}},6741:(e,t,a)=>{"use strict";a.d(t,{default:()=>P});var l=a(5155),s=a(2115),r=a(4486),n=a(6485),i=a(6983),o=a(1169),c=a(2529),d=a(508),u=a(3664),m=a(9141),h=a(7586),p=a(709),x=a(2987),f=a(7768),g=a(2625),v=a(2025),b=a(740);a(9157);var j=a(2953),w=a(8574),y=a(7251),N=a(5056),k=a(569);(0,b.E)("de",j.de),(0,b.E)("en",w.c),(0,b.E)("fr",y.fr),(0,b.E)("es",N.es),(0,b.E)("it",k.it);let S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"eur",a=(Number(e)||0)/100;return new Intl.NumberFormat("de-DE",{style:"currency",currency:t.toUpperCase()}).format(a)},P=()=>{var e,t,a,j,w,y,N,k,P,I,A,D,E,C,F,_,T,O,z,B,R,M,H,L,V,G,Z,q,W,K,U,J,Q,Y,X,$,ee,et,ea,el,es,er,en,ei,eo,ec,ed,eu,em,eh,ep,ex,ef,eg,ev,eb,ej,ew,ey,eN,ek,eS,eP,eI,eA,eD,eE,eC,eF,e_,eT,eO,ez,eB,eR,eM,eH,eL,eV,eG,eZ,eq,eW,eK,eU,eJ,eQ,eY,eX,e$,e0,e1,e2,e5,e4,e6,e8,e3,e7,e9,te,tt,ta,tl,ts,tr,tn,ti,to,tc,td,tu,tm,th,tp,tx,tf,tg,tv,tb,tj;let{t:tw,currentLanguage:ty}=(0,f.ok)(),{settings:tN,loading:tk}=(0,v.p)(),[tS,tP]=(0,s.useState)(!1),[tI,tA]=(0,s.useState)({date:"",time:"",guests:"2",name:"",email:"",phone:"",message:"",confirmationStatus:void 0}),[tD,tE]=(0,s.useState)(!1),[tC,tF]=(0,s.useState)(!1),[t_,tT]=(0,s.useState)(null),[tO,tz]=(0,s.useState)([]),[tB,tR]=(0,s.use
1State)(!1),[tM,tH]=(0,s.useState)(!1),[tL,tV]=(0,s.useState)(!1),tG=parseInt(tI.guests,10)||1,tZ=null==tN?void 0:tN.noShowFee,tq=(0,s.useMemo)(()=>{if(!(null==tZ?void 0:tZ.enabled))return!1;if("all"===tZ.appliesTo)return!0;let e=Number(null==tN?void 0:tN.maxOnlinePartySize)||8;return tG>=Math.max(e,Number(tZ.largeGroupThreshold)||e)},[tZ,null==tN?void 0:tN.maxOnlinePartySize,tG]),tW=(null==tZ?void 0:tZ.paymentModel)==="deposit_voucher"?"deposit_voucher":"no_show_fee",tK=(0,s.useMemo)(()=>{if(!tq)return 0;let e=Number(null==tZ?void 0:tZ.amountCents)||0;return Math.min(1e5,(null==tZ?void 0:tZ.amountType)==="per_guest"?e*tG:e)},[tZ,tq,tG]);(0,s.useEffect)(()=>{tq||tV(!1)},[tq]);let tU=(0,s.useMemo)(()=>{let e=new Date(new Date().toLocaleString("en-US",{timeZone:"Europe/Berlin"})),t=new Date(e.getFullYear(),e.getMonth(),e.getDate());if(console.log("Berlin today:",t),console.log("Berlin today string:",t.toLocaleDateString("de-DE")),!tN)return t;if(!tN.allowSameDayReservations){let e=new Date(t);return e.setDate(e.getDate()+1),console.log("Berlin tomorrow:",e),console.log("Berlin tomorrow string:",e.toLocaleDateString("de-DE")),e}return t},[tN]),tJ=(0,s.useMemo)(()=>{if(!tN){let e=new Date(new Date(new Date().toLocaleString("en-US",{timeZone:"Europe/Berlin"})));return e.setDate(e.getDate()+365),e}let e=new Date(new Date(new Date().toLocaleString("en-US",{timeZone:"Europe/Berlin"})));return e.setDate(e.getDate()+tN.maxAdvanceBookingDays),e},[tN]),tQ=(0,s.useMemo)(()=>tN?Array.from({length:tN.maxCapacity},(e,t)=>(t+1).toString()):["1","2","3","4","5","6","7","8"],[tN]),tY=async(e,t)=>{if(e&&t){tR(!0),tH(!1),tz([]);try{let a=await fetch("/api/reservations/check-availability",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({restaurantId:"kgW9DFvbmCO1DgKiHkoThscZ7Er1",date:e,partySize:parseInt(t)})});if(a.ok){let e=await a.json();e.success&&e.data&&(tz(e.data),tH(!0))}}catch(e){console.error("Availability check error:",e)}finally{tR(!1)}}},tX=e=>{let{name:t,value:a}=e.target;if("date"!==t){tA({...tI,[t]:a}),t_&&tT(null),"guests"===t&&(tA(e=>({...e,[t]:a,time:""})),tH(!1),tz([]),tI.date&&a&&tY(tI.date,a));return}},t$=async e=>{var t,a,l,s,r,n,i,o,c,d,u;e.preventDefault(),tE(!0),tT(null);try{if(tq&&!tL){tE(!1),tT("Bitte akzeptieren Sie die Reservierungs- und Zahlungsbedingungen.");return}let e={restaurantId:"kgW9DFvbmCO1DgKiHkoThscZ7Er1",date:tI.date,time:tI.time,partySize:parseInt(tI.guests),customerName:tI.name,customerEmail:tI.email,customerPhone:tI.phone,notes:tI.message||"",language:"DE"===ty?"de":ty.toLowerCase(),reservationPaymentTermsAccepted:tq?tL:void 0,reservationPaymentTermsVersion:tq?"reservation-payment-terms-2026-05":void 0},d=await fetch("/api/reservations/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),u=await d.json();if(d.ok&&!1!==u.success){if(u.requiresPayment){let e=null==(t=u.paymentSetup)?void 0:t.paymentUrl;if(e){window.location.href=e;return}throw Error("Der Zahlungslink konnte nicht erstellt werden.")}tE(!1),tF(!0);let e=parseInt(tI.guests)>((null==tN?void 0:tN.maxOnlinePartySize)||6),a=!!((null==tN?void 0:tN.autoConfirmReservations)&&!e);tA(t=>({...t,confirmationStatus:{isConfirmed:a,isLargeGroup:e,message:a?"Ihre Reservierung wurde best\xe4tigt!":"Ihre Anfrage wurde erhalten und wird gepr\xfcft!"}})),setTimeout(()=>{tF(!1),tA({date:"",time:"",guests:"2",name:"",email:"",phone:"",message:"",confirmationStatus:void 0}),tV(!1)},7e3)}else{tE(!1);let e="1"===tI.guests?(null==tw||null==(l=tw.reservation)||null==(a=l.form)?void 0:a.person)||"Person":(null==tw||null==(r=tw.reservation)||null==(s=r.form)?void 0:s.people)||"Personen",t=((null==tw||null==(i=tw.reservation)||null==(n=i.errors)?void 0:n.noAvailabilityFor)||"F\xfcr die gew\xe4hlte Zeit ist kein Platz f\xfcr")+" "+tI.guests+" "+e+" "+((null==tw||null==(c=tw.reservation)||null==(o=c.errors)?void 0:o.selectDifferentTime)||"verf\xfcgbar. Bitte w\xe4hlen Sie eine andere Zeit.");tT((null==u?void 0:u.error)||(null==u?void 0:u.details)||t)}}catch(e){console.error("Reservation error:",e),tE(!1),tT((null==tw||null==(u=tw.reservation)||null==(d=u.errors)?void 0:d.reservationFailed)||"Es gab ein Problem bei der Reservierung. Bitte versuchen Sie es erneut oder rufen Sie uns an.")}},t0=[{icon:n.A,title:(null==tw||null==(a=tw.reservation)||null==(t=a.features)||null==(e=t.flexible)?void 0:e.title)||"Flexible Terminwahl",description:(null==tw||null==(y=tw.reservation)||null==(w=y.features)||null==(j=w.flexible)?void 0:j.description)||"W\xe4hlen Sie Ihren Wunschtermin aus verf\xfcgbaren Zeiten"},{icon:i.A,title:(null==tw||null==(P=tw.reservation)||null==(k=P.features)||null==(N=k.confirmation)?void 0:N.title)||"Schnelle Best\xe4tigung",description:(null==tw||null==(D=tw.reservation)||null==(A=D.features)||null==(I=A.confirmation)?void 0:I.description)||"Sofortige Best\xe4tigung Ihrer Reservierung"},{icon:o.A,title:(null==tw||null==(F=tw.reservation)||null==(C=F.features)||null==(E=C.groupSize)?void 0:E.title)||"F\xfcr jede Gruppengr\xf6\xdfe",description:(null==tw||null==(O=tw.reservation)||null==(T=O.features)||null==(_=T.groupSize)?void 0:_.description)||"Von romantischen Dinner zu zweit bis zur Familienfeier"},{icon:i.A,title:(null==tw||null==(R=tw.reservation)||null==(B=R.features)||null==(z=B.timeslots)?void 0:z.title)||"2-Stunden Zeitfenster",description:(null==tw||null==(L=tw.reservation)||null==(H=L.features)||null==(M=H.timeslots)?void 0:M.description)||"Jede Reservierung gilt f\xfcr 2 Stunden"}],t1=[{label:(null==tw||null==(G=tw.reservation)||null==(V=G.info)?void 0:V.openingHours)||"\xd6ffnungszeiten",value:(null==tw||null==(q=tw.reservation)||null==(Z=q.info)?void 0:Z.openingHoursValue)||"Mo-Fr: 08:00 - 18:00, Sa-So: 10:00 - 18:00"},{label:(null==tw||null==(K=tw.reservation)||null==(W=K.info)?void 0:W.phoneRecommended)||"Reservierung empfohlen",value:(null==tw||null==(J=tw.reservation)||null==(U=J.info)?void 0:U.phoneRecommendedValue)||"Besonders am Wochenende"}];return(0,l.jsx)("section",{id:"reservation",className:"py-20 bg-gradient-to-br from-cafe-light-purple/30 to-cafe-cream",children:(0,l.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,l.jsxs)(r.P.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-16",children:[(0,l.jsx)("h2",{className:"text-4xl md:text-5xl font-merriweather font-bold text-cafe-dark mb-4",children:(null==tw||null==(Q=tw.reservation)?void 0:Q.title)?(0,l.jsxs)(l.Fragment,{children:[tw.reservation.title.split(" ").slice(0,-1).join(" ")," ",(0,l.jsx)("span",{className:"gradient-text",children:tw.reservation.title.split(" ").slice(-1)[0]})]}):(0,l.jsxs)(l.Fragment,{children:["Tisch ",(0,l.jsx)("span",{className:"gradient-text",children:"Reservieren"})]})}),(0,l.jsx)("p",{className:"text-lg text-cafe-dark/70 font-source max-w-3xl mx-auto",children:(null==tw||null==(Y=tw.reservation)?void 0:Y.subtitle)||"Sichern Sie sich Ihren Platz bei uns! Reservieren Sie ganz einfach online oder rufen Sie uns an. Wir freuen uns auf Ihren Besuch."})]}),(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 gap-12 items-start",children:[(0,l.jsxs)(r.P.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},className:"bg-white/80 backdrop-blur-sm rounded-3xl p-8 shadow-xl",children:[(0,l.jsxs)("div",{className:"text-center mb-8",children:[(0,l.jsx)("h3",{className:"text-2xl font-merriweather font-bold text-cafe-dark mb-2",children:(null==tw||null==(X=tw.reservation)?void 0:X.onlineReservation)||"Online Reservierung"}),(0,l.jsx)("p",{className:"text-cafe-dark/70 font-source",children:(null==tw||null==($=tw.reservation)?void 0:$.quickDescription)||"Schnell, einfach und sicher reservieren"})]}),(0,l.jsx)("div",{children:tk?(0,l.jsxs)("div",{className:"text-center py-12",children:[(0,l.jsx)(r.P.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"w-8 h-8 border-2 border-cafe-purple border-t-transparent roun
1ded-full mx-auto mb-4"}),(0,l.jsx)("p",{className:"text-cafe-dark/70 font-source",children:(null==tw||null==(et=tw.reservation)||null==(ee=et.form)?void 0:ee.submitting)||"Restaurant-Einstellungen werden geladen..."})]}):tC?(0,l.jsxs)(r.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"text-center py-12",children:[(0,l.jsx)("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6",children:(0,l.jsx)(c.A,{className:"w-10 h-10 text-green-600"})}),(0,l.jsx)("h4",{className:"text-2xl font-merriweather font-bold text-cafe-dark mb-4",children:(null==(ea=tI.confirmationStatus)?void 0:ea.message)||(null==tw||null==(es=tw.reservation)||null==(el=es.success)?void 0:el.title)||"Reservierung erfolgreich!"}),(0,l.jsx)("p",{className:"text-cafe-dark/70 font-source mb-6 max-w-md mx-auto",children:(null==(er=tI.confirmationStatus)?void 0:er.isConfirmed)?(null==tw||null==(ei=tw.reservation)||null==(en=ei.success)?void 0:en.confirmed)||"Vielen Dank! Ihre Reservierung wurde best\xe4tigt. Sie erhalten in K\xfcrze eine Best\xe4tigungs-E-Mail mit allen Details.":(null==(eo=tI.confirmationStatus)?void 0:eo.isLargeGroup)?(null==tw||null==(ed=tw.reservation)||null==(ec=ed.success)?void 0:ec.largeGroup)||"Da es sich um eine gr\xf6\xdfere Gruppe handelt, wird Ihre Anfrage manuell gepr\xfcft. Sie erhalten in K\xfcrze eine R\xfcckmeldung.":(null==tw||null==(em=tw.reservation)||null==(eu=em.success)?void 0:eu.pending)||"Ihre Reservierungsanfrage wird gepr\xfcft. Sie erhalten in K\xfcrze eine R\xfcckmeldung per E-Mail."}),(0,l.jsxs)("div",{className:"space-y-2 text-sm text-cafe-dark/60",children:[(0,l.jsxs)("p",{children:["\uD83D\uDCE7 ",(null==tw||null==(ep=tw.reservation)||null==(eh=ep.success)?void 0:eh.confirmationSent)||"Best\xe4tigung wird an"," ",tI.email," ",(null==tw||null==(ef=tw.reservation)||null==(ex=ef.success)?void 0:ex.confirmationSent)?"sent":"gesendet"]}),(0,l.jsxs)("p",{children:["\uD83D\uDCF1 ",(null==tw||null==(ev=tw.reservation)||null==(eg=ev.success)?void 0:eg.questionsPhone)||"Bei Fragen:"," +49 (30) 25204080"]})]})]}):(0,l.jsxs)("form",{onSubmit:t$,className:"space-y-6",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-cafe-dark font-source font-medium mb-2",children:[(0,l.jsx)(o.A,{className:"w-4 h-4 inline mr-2"}),(null==tw||null==(ej=tw.reservation)||null==(eb=ej.form)?void 0:eb.guests)||"Anzahl Personen"," * (",(null==tw||null==(ey=tw.reservation)||null==(ew=ey.form)?void 0:ew.guestsStep)||"Schritt 1",")"]}),(0,l.jsx)("select",{name:"guests",value:tI.guests,onChange:tX,required:!0,disabled:tk,className:"w-full px-4 py-3 bg-cafe-light-purple/20 border border-cafe-light-purple/30 rounded-xl focus:outline-none focus:ring-2 focus:ring-cafe-purple focus:border-transparent transition-colors font-source disabled:opacity-50 disabled:cursor-not-allowed",children:tQ.map(e=>{var t,a,s,r;return(0,l.jsxs)("option",{value:e,children:[e," ","1"===e?(null==tw||null==(a=tw.reservation)||null==(t=a.form)?void 0:t.person)||"Person":(null==tw||null==(r=tw.reservation)||null==(s=r.form)?void 0:s.people)||"Personen"]},e)})})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-cafe-dark font-source font-medium mb-2",children:[(0,l.jsx)(n.A,{className:"w-4 h-4 inline mr-2"}),(null==tw||null==(ek=tw.reservation)||null==(eN=ek.form)?void 0:eN.date)||"Datum"," * (",(null==tw||null==(eP=tw.reservation)||null==(eS=eP.form)?void 0:eS.dateStep)||"Schritt 2",")"]}),(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(b.Ay,{selected:tI.date?new Date(tI.date+"T00:00:00"):null,onChange:e=>{if(!e)return;let t=e.toLocaleDateString("sv-SE",{timeZone:"Europe/Berlin"});tA(e=>({...e,date:t,time:""})),t_&&tT(null),tH(!1),tz([]),t&&tI.guests&&tY(t,tI.guests)},minDate:tU,maxDate:tJ,disabled:tk,dateFormat:"dd.MM.yyyy",placeholderText:(null==tw||null==(eA=tw.reservation)||null==(eI=eA.form)?void 0:eI.selectDate)||"Datum ausw\xe4hlen",className:"w-full px-4 py-3 bg-cafe-light-purple/20 border border-cafe-light-purple/30 rounded-xl focus:outline-none focus:ring-2 focus:ring-cafe-purple focus:border-transparent transition-colors font-source disabled:opacity-50 disabled:cursor-not-allowed",wrapperClassName:"w-full",calendarClassName:"shadow-xl border border-cafe-light-purple/30 rounded-xl",dayClassName:e=>e<tU||e>tJ?"text-gray-300 cursor-not-allowed":"text-cafe-dark hover:bg-cafe-purple hover:text-white",f
1ilterDate:e=>e>=tU&&e<=tJ,locale:(()=>{switch(ty){case"EN":return"en";case"FR":return"fr";case"ES":return"es";case"IT":return"it";default:return"de"}})(),required:!0})})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-cafe-dark font-source font-medium mb-2",children:[(0,l.jsx)(i.A,{className:"w-4 h-4 inline mr-2"}),(null==tw||null==(eE=tw.reservation)||null==(eD=eE.form)?void 0:eD.time)||"Uhrzeit"," * (",(null==tw||null==(eF=tw.reservation)||null==(eC=eF.form)?void 0:eC.timeStep)||"Schritt 3",")"]}),!tI.date&&(0,l.jsx)("div",{className:"w-full px-4 py-3 bg-cafe-light-purple/10 border border-cafe-light-purple/30 rounded-xl text-cafe-dark/40 font-source cursor-not-allowed",children:(null==tw||null==(eT=tw.reservation)||null==(e_=eT.form)?void 0:e_.selectDate)||"Bitte w\xe4hlen Sie zuerst ein Datum"}),tI.date&&!tB&&!tM&&(0,l.jsx)("div",{className:"w-full px-4 py-3 bg-cafe-light-purple/10 border border-cafe-light-purple/30 rounded-xl text-cafe-dark/60 font-source",children:(null==tw||null==(ez=tw.reservation)||null==(eO=ez.form)?void 0:eO.checkingAvailability)||"Verf\xfcgbarkeit wird automatisch gepr\xfcft..."}),tB&&(0,l.jsxs)("div",{className:"w-full px-4 py-3 bg-cafe-light-purple/10 border border-cafe-light-purple/30 rounded-xl text-cafe-dark/60 font-source flex items-center space-x-2",children:[(0,l.jsx)(r.P.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"w-4 h-4 border-2 border-cafe-purple border-t-transparent rounded-full"}),(0,l.jsx)("span",{children:(null==tw||null==(eR=tw.reservation)||null==(eB=eR.form)?void 0:eB.loadingTimes)||"Verf\xfcgbare Zeiten werden geladen..."})]}),tM&&tI.date&&(0,l.jsx)(l.Fragment,{children:tO.filter(e=>e.available).length>0?(0,l.jsxs)("select",{name:"time",value:tI.time,onChange:tX,required:!0,className:"w-full px-4 py-3 bg-cafe-light-purple/20 border border-cafe-light-purple/30 rounded-xl focus:outline-none focus:ring-2 focus:ring-cafe-purple focus:border-transparent transition-colors font-source",children:[(0,l.jsxs)("option",{value:"",children:[(null==tw||null==(eH=tw.reservation)||null==(eM=eH.form)?void 0:eM.selectTime)||"Verf\xfcgbare Zeit w\xe4hlen"," (",tO.filter(e=>e.available).length," ",(null==tw||null==(eV=tw.reservation)||null==(eL=eV.form)?void 0:eL.available)||"verf\xfcgbar",")"]}),tO.filter(e=>e.available).map(e=>(0,l.jsx)("option",{value:e.time,children:e.time},e.time))]}):(0,l.jsxs)("div",{className:"w-full px-4 py-3 bg-red-50 border border-red-200 rounded-xl text-red-600 font-source",children:["â ",(null==tw||null==(eZ=tw.reservation)||null==(eG=eZ.form)?void 0:eG.noAvailability)||"Keine Verf\xfcgbarkeit f\xfcr"," ",tI.guests," ","1"===tI.guests?(null==tw||null==(eW=tw.reservation)||null==(eq=eW.form)?void 0:eq.person)||"Person":(null==tw||null==(eU=tw.reservation)||null==(eK=eU.form)?void 0:eK.people)||"Personen"," am ",new Date(tI.date).toLocaleDateString("DE"===ty?"de-DE":"EN"===ty?"en-US":"FR"===ty?"fr-FR":"ES"===ty?"es-ES":"IT"===ty?"it-IT":"de-DE")]})})]}),(0,l.jsxs)("div",{className:"grid md:grid-cols-2 gap-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-cafe-dark font-source font-medium mb-2",children:[(0,l.jsx)(d.A,{className:"w-4 h-4 inline mr-2"}),(null==tw||null==(eQ=tw.reservation)||null==(eJ=eQ.form)?void 0:eJ.name)||"Name"," *"]}),(0,l.jsx)("input",{type:"text",name:"name",value:tI.name,onChange:tX,required:!0,placeholder:(null==tw||null==(eX=tw.reservation)||null==(eY=eX.form)?void 0:eY.namePlaceholder)||"Ihr vollst\xe4ndiger Name",className:"w-full px-4 py-3 bg-cafe-light-purple/20 border border-cafe-light-purple/30 rounded-xl focus:outline-none focus:ring-2 focus:ring-cafe-purple focus:border-transparent transition-colors font-source"})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-cafe-dark font-source font-medium mb-2",children:[(0,l.jsx)(u.A,{className:"w-4 h-4 inline mr-2"}),(null==tw||null==(e0=tw.reservation)||null==(e$=e0.form)?void 0:e$.email)||"E-Mail"," *"]}),(0,l.jsx)("input",{type:"email",name:"email",value:tI.email,onChange:tX,required:!0,placeholder:(null==tw||null==(e2=tw.reservation)||null==(e1=e2.form)?void 0:e1.emailPlaceholder)||"[email protected]",className:"w-full px-4 py-3 bg-cafe-light-purple/20 border border-cafe-light-purple/30 rounded-xl focus:outline-none focus:ring-2 focus:ring-cafe-purple focus:border-transparent transition-colors font-source"})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-cafe-dark font-source font-medium mb-2",children:[(0,l.jsx)(m.A,{className:"w-4 h-4 inline mr-2"}),(null==tw||null==(e4=tw.reservation)||null==(e5=e4.form)?void 0:e5.phone)||"Telefonnummer"," *"]}),(0,l.jsx)("input",{type:"tel",name:"phone",value:tI.phone,onChange:tX,required:!0,placeholder:(null==tw||null==(e8=tw.reservation)||null==(e6=e8.form)?void 0:e6.phonePlaceholder)||"+49 123 456 789",className:"w-full px-4 py-3 bg-cafe-light-purple/20 border border-cafe-light-purple/30 rounded-xl focus:outline-none focus:ring-2 focus:ring-cafe-purple focus:border-transparent transition-colors font-source"})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-cafe-dark font-source font-medium mb-2",children:[(0,l.jsx)(h.A,{className:"w-4 h-4 inline mr-2"}),(null==tw||null==(e7=tw.reservation)||null==(e3=e7.form)?void 0:e3.message)||"Besondere W\xfcnsche"]}),(0,l.jsx)("textarea",{name:"message",value:tI.message,onChange:tX,rows:3,placeholder:(null==tw||null==(te=tw.reservation)||null==(e9=te.form)?void 0:e9.messagePlaceholder)||"Allergien, besondere Anl\xe4sse, W\xfcnsche...",className:"w-full px-4 py-3 bg-cafe-light-purple/20 border border-cafe-light-purple/30 rounded-xl focus:outline-none focus:ring-2 focus:ring-cafe-purple focus:border-transparent transition-colors font-source resize-none"})]}),tq&&(0,l.jsxs)("div",{className:"rounded-xl border border-cafe-purple/25 bg-cafe-light-purple/15 p-4 text-sm text-cafe-dark/80 font-source space-y-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-semibold text-cafe-dark mb-1",children:"deposit_voucher"===tW?"Online-Anzahlung":"Kartengarantie"}),(0,l.jsx)("p",{children:"deposit_voucher"===tW?"F\xfcr diese Reservierung wird eine Anzahlung von ".concat(S(tK,null==tZ?void 0:tZ.currency)," online bezahlt."):"Es wird jetzt nichts abgebucht. Die Karte wird nur f\xfcr die Reservierung hinterlegt."})]}),(0,l.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:["deposit_voucher"===tW?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("li",{children:"Die Anzahlung wird im Restaurant manuell mit Ihrer Rechnung verrechnet."}),(0,l.jsx)("li",{children:"Bei rechtzeitiger Stornierung wird die Anzahlung erstattet."})]}):(0,l.jsxs)(l.Fragment,{children:[(null==tZ?void 0:tZ.noShowEnabled)!==!1&&(0,l.jsxs)("li",{children:["Bei Nichterscheinen kann das Restaurant ",S(tK,null==tZ?void 0:tZ.currency)," berechnen."]}),(null==tZ?void 0:tZ.lateCancellationEnabled)!==!1&&(0,l.jsxs)("li",{children:["Bei Stornierung weniger als ",(null==tZ?void 0:tZ.freeCancellationUntilHoursBefore)||0," Stunden vorher kann dieselbe Geb\xfchr anfallen."]})]}),(0,l.jsx)("li",{children:"Ihnen bleibt der Nachweis vorbehalten, dass kein oder ein wesentlich niedrigerer Schaden entstanden ist."})]}),(0,l.jsxs)("label",{className:"flex gap-3 items-start",children:[(0,l.jsx)("input",{type:"checkbox",checked:tL,onChange:e=>tV(e.target.checked),required:!0,className:"mt-1 h-4 w-4 accent-cafe-purple"}),(0,l.jsx)("span",{children:"Ich akzeptiere die oben genannten Reservierungs- und Zahlungsbedingungen f\xfcr diese Reservierung."})]})]}),t_&&(0,l.jsx)(r.P.div,{initial:{opacity:0,y:-10}
1,animate:{opacity:1,y:0},className:"w-full p-4 bg-red-50 border border-red-200 rounded-xl text-red-700 font-source text-sm",children:(0,l.jsxs)("div",{className:"flex items-start space-x-2",children:[(0,l.jsx)("span",{className:"text-red-500 text-lg flex-shrink-0",children:"â ï¸"}),(0,l.jsx)("span",{children:t_})]})}),(0,l.jsx)(r.P.button,{type:"submit",disabled:tD||tq&&!tL,whileHover:{scale:1.02},whileTap:{scale:.98},className:"w-full bg-cafe-purple text-white py-4 rounded-2xl font-source font-semibold text-lg hover:bg-cafe-purple/90 transition-colors duration-200 flex items-center justify-center space-x-2 disabled:opacity-50 disabled:cursor-not-allowed",children:tD?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.P.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full"}),(0,l.jsx)("span",{children:(null==tw||null==(ta=tw.reservation)||null==(tt=ta.form)?void 0:tt.submitting)||"Reservierung wird erstellt..."})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.A,{className:"w-5 h-5"}),(0,l.jsx)("span",{children:(null==tw||null==(ts=tw.reservation)||null==(tl=ts.form)?void 0:tl.submit)||"Jetzt Reservieren"})]})}),(0,l.jsxs)("div",{className:"text-center space-y-3",children:[(0,l.jsx)("p",{className:"text-xs text-cafe-dark/60 font-source",children:(null==tw||null==(tn=tw.reservation)||null==(tr=tn.form)?void 0:tr.requiredFields)||"* Pflichtfelder - Ihre Daten werden sicher \xfcbertragen"}),(0,l.jsxs)("div",{className:"pt-2 border-t border-cafe-light-purple/30",children:[(0,l.jsx)("p",{className:"text-sm text-cafe-dark/70 font-source mb-2",children:(null==tw||null==(to=tw.reservation)||null==(ti=to.form)?void 0:ti.phoneReservation)||"Lieber telefonisch reservieren?"}),(0,l.jsxs)("a",{href:"tel:+493025204080",className:"inline-flex items-center space-x-2 text-cafe-purple hover:text-cafe-purple/80 transition-colors font-medium",children:[(0,l.jsx)(m.A,{className:"w-4 h-4"}),(0,l.jsx)("span",{children:"+49 (30) 25204080"})]})]}),(0,l.jsx)("div",{className:"pt-4 mt-4 border-t border-cafe-light-purple/30",children:(0,l.jsxs)("p",{className:"text-xs text-cafe-dark/50 font-source text-center",children:[(null==tw||null==(td=tw.reservation)||null==(tc=td.form)?void 0:tc.poweredBy)||"Reservierungssystem bereitgestellt von"," ",(0,l.jsx)("a",{href:"https://techkiez.de",target:"_blank",rel:"noopener noreferrer",className:"text-cafe-purple hover:text-cafe-purple/80 transition-colors font-medium",children:"Techkiez.de"})]})})]})]})})]}),(0,l.jsxs)(r.P.div,{initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.2},className:"space-y-8",children:[(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"grid gap-4",children:t0.map((e,t)=>{let a=e.icon;return(0,l.jsxs)(r.P.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1*t},className:"bg-white/60 backdrop-blur-sm rounded-xl p-4 flex items-start space-x-4 hover:bg-white/80 transition-colors duration-200",children:[(0,l.jsx)("div",{className:"w-12 h-12 bg-cafe-light-purple rounded-xl flex items-center justify-center flex-shrink-0",children:(0,l.jsx)(a,{className:"w-6 h-6 text-cafe-purple"})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-source font-semibold text-cafe-dark mb-1",children:e.title}),(0,l.jsx)("p",{className:"text-cafe-dark/70 font-source text-sm",children:e.description})]})]},e.title)})})}),(0,l.jsxs)("div",{className:"bg-gradient-to-r from-cafe-purple/10 to-cafe-light-purple/20 rounded-2xl p-6",children:[(0,l.jsx)("h3",{className:"text-xl font-merriweather font-bold text-cafe-dark mb-4",children:(null==tw||null==(tm=tw.reservation)||null==(tu=tm.info)?void 0:tu.importantInfo)||"Wichtige Informationen"}),(0,l.jsx)("div",{className:"space-y-3",children:t1.map((e,t)=>(0,l.jsxs)(r.P.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.5,delay:.1*t},className:"py-2 border-b border-cafe-dark/10 last:border-b-0",children:[(0,l.jsx)("span",{className:"font-source font-medium text-cafe-dark text-sm block mb-1",children:e.label}),(0,l.jsx)("span",{className:"font-source text-cafe-dark/70 text-sm block",children:e.value})]},e.label))})]}),(0,l.jsxs)("a",{href:g.t,target:"_blank",rel:"noopener noreferrer",className:"group flex items-center gap-4 roun
1ded-2xl border border-cafe-purple/20 bg-white/60 p-4 backdrop-blur-sm transition-colors duration-200 hover:bg-white/80",children:[(0,l.jsx)("div",{className:"w-10 h-10 bg-cafe-light-purple rounded-xl flex items-center justify-center flex-shrink-0",children:(0,l.jsx)(p.A,{className:"w-5 h-5 text-cafe-purple"})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("p",{className:"font-source font-semibold text-cafe-dark text-sm",children:(null==tw||null==(tp=tw.reservation)||null==(th=tp.info)?void 0:th.voucherTitle)||"Gutscheine verschenken"}),(0,l.jsx)("p",{className:"font-source text-cafe-dark/70 text-sm",children:(null==tw||null==(tf=tw.reservation)||null==(tx=tf.info)?void 0:tx.voucherText)||"Verschenken Sie Genuss â unsere Gutscheine gibt es auch online."})]}),(0,l.jsxs)("span",{className:"hidden sm:flex items-center gap-1 font-source font-semibold text-cafe-purple text-sm whitespace-nowrap",children:[(null==tw||null==(tv=tw.reservation)||null==(tg=tv.info)?void 0:tg.voucherCta)||"Zum Gutschein",(0,l.jsx)(x.A,{className:"w-4 h-4 transition-transform duration-200 group-hover:translate-x-0.5"})]}),(0,l.jsx)(x.A,{className:"sm:hidden w-4 h-4 text-cafe-purple flex-shrink-0"})]}),(0,l.jsxs)("div",{className:"bg-cafe-purple/10 rounded-2xl p-6",children:[(0,l.jsx)("h3",{className:"text-lg font-merriweather font-bold text-cafe-dark mb-3",children:(null==tw||null==(tj=tw.reservation)||null==(tb=tj.info)?void 0:tb.contactQuestions)||"Kontakt f\xfcr Fragen"}),(0,l.jsx)("div",{className:"space-y-2",children:(0,l.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,l.jsx)(m.A,{className:"w-5 h-5 text-cafe-purple"}),(0,l.jsx)("a",{href:"tel:+493025204080",className:"font-source text-cafe-dark hover:text-cafe-purple transition-colors",children:"+49 (30) 25204080"})]})})]})]})]})]})})}},7189:(e,t,a)=>{"use strict";a.d(t,{default:()=>g});var l=a(5155),s=a(2115),r=a(1408),n=a(4486),i=a(6485),o=a(1896),c=a(2196),d=a(709),u=a(8803),m=a(6983),h=a(9347),p=a(7768),x=a(2625),f=a(5239);let g=()=>{var e,t,a,g,v,b,j,w,y,N,k,S,P,I,A,D,E,C,F,_,T,O;let{t:z,currentLanguage:B}=(0,p.ok)(),[R,M]=(0,s.useState)(0),[H,L]=(0,s.useState)([0,1,2,3,4]),V=()=>{var e,t,a,l,s,r;return[{src:"/images/beautiful_breakfast.webp",title:(null==z||null==(t=z.hero)||null==(e=t.carousel)?void 0:e.breakfast)||"Traumhaftes Fr\xfchst\xfcck",description:"Ein perfekter Start in den Tag",floatingIcon:"\uD83C\uDF05",floatingColor:"from-yellow-300 to-orange-400"},{src:"/images/Dragon-Fruit.webp",title:(null==z||null==(l=z.hero)||null==(a=l.carousel)?void 0:a.lunch)||"Leckere Bowls",description:"Gesunde und frische Zutaten",floatingIcon:"\uD83C\uDF53",floatingColor:"from-pink-300 to-red-400"},{src:"/images/coffee_pastry.webp",title:(null==z||null==(r=z.hero)||null==(s=r.carousel)?void 0:s.coffee)||"Kaffee & Geb\xe4ck",description:"Perfekte Begleitung f\xfcr zwischendurch",floatingIcon:"â",floatingColor:"from-amber-400 to-orange-500"},{src:"/images/cozy_cafe_sitting.webp",title:"Gem\xfctliche Atmosph\xe4re",description:"Entspannen in unserem Caf\xe9",floatingIcon:"\uD83E\uDE91",floatingColor:"from-purple-400 to-pink-400"}]},[G,Z]=(0,s.useState)(V());(0,s.useEffect)(()=>{(async()=>{try{let t=await fetch("/api/site-config?lang=".concat(B));if(t.ok){var e;let a=await t.json();(null==(e=a.hero)?void 0:e.images)?Z(a.hero.images):Z(V())}else Z(V())}catch(e){console.error("Error loading hero images:",e),Z(V())}})()},[B]);let q=["/images/beautiful_breakfast.webp","/images/Dragon-Fruit.webp","/images/coffee_pastry.webp","/images/cozy_cafe_sitting.webp","/images/Tomate_Zwiebel_Feta.webp","/images/Red_Shakshuka.jpg","/images/Shakshuka_Burrata.jpeg","/images/Englisches_Fruehstueck.webp","/images/Vegetarische_Platte.webp","/images/Platte_fuer_zwei.jpeg","/images/Chicken_Poke.jpeg","/images/Zen_Garden_Bowl.jpeg","/images/Avocado_Bowl.jpeg","/images/Basis_Bowl.jpeg","/images/Bluetenfall.jpeg","/images/Fruity_Matcha_Dream.jpeg","/images/Pancake_Nutella_Banane.jpeg","/images/Cinnamon_French_Toast.webp","/images/Dropped_Bacon.webp","/images/Dropped_Salmon.jpeg","/images/Very_Be
1nedict_Eggs.jpeg","/images/eggs_on_bread.webp","/images/Acai_Bowl_Mango.webp","/images/Dragon_Fruit_Bowl.webp","/images/Blue_Spirulina_Bowl.webp","/images/Hausgemachtes_Granola.webp","/images/Pancakes_Blauberre.webp","/images/Cilbir_und_weiteres.jpg","/images/Shakshuka_kaffee.webp","/images/Greenshak_Bowl_Cinnamon.webp","/images/Bowls_coffee.webp","/images/Matcha_Latte.jpg","/images/Rote_Beete_Latte.webp","/images/bunte_drinks.webp","/images/Blossom_Matcha.jpg","/images/Cinnamon_coffee.webp","/images/Fruity-Matcha-Dream.webp"];return(0,s.useEffect)(()=>{let e=setInterval(()=>{M(e=>(e+1)%G.length)},5e3);return()=>clearInterval(e)},[]),(0,s.useEffect)(()=>{let e=[];for(let t=0;t<5;t++){let a=setInterval(()=>{L(e=>{let a,l=[...e],s=new Set(l);s.delete(l[t]);do a=Math.floor(Math.random()*q.length);while(s.has(a));return l[t]=a,l})},17e3*Math.random()+8e3);e.push(a)}return()=>{e.forEach(e=>clearInterval(e))}},[q.length]),(0,l.jsxs)("section",{id:"home",className:"relative min-h-screen overflow-hidden pb-16 md:pb-0",children:[(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-cafe-warm via-cafe-cream to-cafe-light-purple",children:(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-cafe-purple/10 to-transparent"})}),(0,l.jsxs)("div",{className:"absolute inset-0 pointer-events-none",children:[(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsx)(n.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:.25,scale:1,y:[0,-25,10,-15,0],x:[0,15,-10,20,0],rotate:[0,8,-5,12,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:1.5},scale:{duration:1.5},y:{duration:15,repeat:1/0,ease:"easeInOut"},x:{duration:15,repeat:1/0,ease:"easeInOut"},rotate:{duration:15,repeat:1/0,ease:"easeInOut"}},className:"absolute top-48 left-8 w-14 h-14 rounded-full overflow-hidden shadow-lg",children:(0,l.jsx)(f.default,{src:q[H[0]],alt:"Floating food",width:56,height:56,className:"w-full h-full object-cover",priority:!0})},"floating-1-".concat(H[0]))}),(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsx)(n.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:.25,scale:1,y:[0,-20,15,-10,0],x:[0,-12,18,-8,0],rotate:[0,-6,10,-4,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:1.5},scale:{duration:1.5},y:{duration:18,repeat:1/0,ease:"easeInOut"},x:{duration:18,repeat:1/0,ease:"easeInOut"},rotate:{duration:18,repeat:1/0,ease:"easeInOut"}},className:"absolute top-52 left-80 w-14 h-14 rounded-full overflow-hidden shadow-lg",children:(0,l.jsx)(f.default,{src:q[H[1]],alt:"Floating food",width:56,height:56,className:"w-full h-full object-cover",priority:!0})},"floating-2-".concat(H[1]))}),(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsx)(n.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:.25,scale:1,y:[0,-30,20,-12,0],x:[0,25,-15,22,0],rotate:[0,15,-8,12,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:1.5},scale:{duration:1.5},y:{duration:20,repeat:1/0,ease:"easeInOut"},x:{duration:20,repeat:1/0,ease:"easeInOut"},rotate:{duration:20,repeat:1/0,ease:"easeInOut"}},className:"absolute top-80 left-40 w-14 h-14 rounded-full overflow-hidden shadow-lg",children:(0,l.jsx)("img",{src:q[H[2]],alt:"Floating food",className:"w-full h-full object-cover",loading:"eager"})},"floating-3-".concat(H[2]))}),(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsx)(n.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:.25,scale:1,y:[0,-22,12,-18,0],x:[0,14,-8,16,0],rotate:[0,-12,8,-6,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:1.5},scale:{duration:1.5},y:{duration:16,repeat:1/0,ease:"easeInOut"},x:{duration:16,repeat:1/0,ease:"easeInOut"},rotate:{duration:16,repeat:1/0,ease:"easeInOut"}},className:"absolute top-64 left-60 w-14 h-14 rounded-full overflow-hidden shadow-lg",children:(0,l.jsx)("img",{src:q[H[3]],alt:"Floating food",className:"w-full h-full object-cover"})},"floating-4-".concat(H[3]))}),(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsx)(n.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:.25,scale:1,y:[0,-18,8,-12,0],x:[0,-12,16,-6,0],rotate:[0,10,-8,6,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:1.5},scale:{duration:1.5},y:{duration:17,repeat:1/0,ease:"easeInOut"},x:{duration:17,repeat:1/0,ease:"easeInOut"},rotate:{duration:17,repeat:1/0,ease:"easeInOut"}}
1,className:"absolute top-76 left-32 w-14 h-14 rounded-full overflow-hidden shadow-lg",children:(0,l.jsx)("img",{src:q[H[4]],alt:"Floating food",className:"w-full h-full object-cover"})},"floating-5-".concat(H[4]))}),(0,l.jsxs)("div",{className:"hidden lg:block",children:[(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsx)(n.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:.2,scale:1,y:[0,-20,12,-8,0],x:[0,18,-14,22,0],rotate:[0,-12,8,-6,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:1.5},scale:{duration:1.5},y:{duration:19,repeat:1/0,ease:"easeInOut"},x:{duration:19,repeat:1/0,ease:"easeInOut"},rotate:{duration:19,repeat:1/0,ease:"easeInOut"}},className:"absolute bottom-20 left-1/3 w-14 h-14 rounded-full overflow-hidden shadow-lg",children:(0,l.jsx)("img",{src:q[(H[3]+30)%q.length],alt:"Floating food",className:"w-full h-full object-cover"})},"scroll-left-".concat(H[3]))}),(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsx)(n.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:.2,scale:1,y:[0,-25,15,-18,0],x:[0,-15,20,-10,0],rotate:[0,14,-10,8,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:1.5},scale:{duration:1.5},y:{duration:21,repeat:1/0,ease:"easeInOut"},x:{duration:21,repeat:1/0,ease:"easeInOut"},rotate:{duration:21,repeat:1/0,ease:"easeInOut"}},className:"absolute bottom-24 right-1/3 w-14 h-14 rounded-full overflow-hidden shadow-lg",children:(0,l.jsx)("img",{src:q[(H[4]+35)%q.length],alt:"Floating food",className:"w-full h-full object-cover"})},"scroll-right-".concat(H[4]))})]})]}),(0,l.jsx)("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",style:{paddingTop:"80px"},children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 gap-12",children:[(0,l.jsxs)(n.P.div,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:.8},className:"text-center lg:text-left px-2 sm:px-0",children:[(0,l.jsxs)(n.P.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.3},children:[(0,l.jsx)("h1",{className:"text-5xl sm:text-6xl md:text-6xl lg:text-7xl font-body font-bold text-cafe-dark mb-8 text-hero break-words",children:(null==z||null==(e=z.hero)?void 0:e.title)?(0,l.jsxs)(l.Fragment,{children:[z.hero.title.split(" ").slice(0,-1).join(" ")," ",(0,l.jsx)("span",{className:"gradient-text",children:z.hero.title.split(" ").slice(-1)[0]})]}):(0,l.jsxs)(l.Fragment,{children:["STILBRUCH ",(0,l.jsx)("span",{className:"gradient-text",children:"KAFFEE"})]})}),(0,l.jsx)("h2",{className:"text-3xl sm:text-4xl md:text-4xl font-body font-bold text-cafe-purple mb-10",children:(null==z||null==(t=z.hero)?void 0:t.subtitle)||"Herzlich Willkommen"})]}),(0,l.jsx)(n.P.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.5},className:"text-lg sm:text-xl md:text-xl text-cafe-dark/80 font-body font-bold mb-10 max-w-2xl mx-auto lg:mx-0 px-2 sm:px-0",children:(null==z||null==(a=z.hero)?void 0:a.description)||"Genie\xdfen Sie unsere authentische mediterrane K\xfcche in gem\xfctlicher Atmosph\xe4re. Frische Zutaten, liebevolle Zubereitung und ein Ambiente zum Wohlf\xfchlen."}),(0,l.jsxs)(n.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.7},className:"flex flex-col gap-4 justify-center lg:justify-start px-2 sm:px-0",children:[(0,l.jsxs)(n.P.a,{href:"#reservation",whileHover:{scale:1.05},whileTap:{scale:.95},className:"bg-cafe-purple text-white px-6 sm:px-8 py-4 rounded-full font-body font-semibold text-base sm:text-lg hover:bg-cafe-purple/90 transition-all duration-300 flex items-center justify-center space-x-2 hover-lift w-full",children:[(0,l.jsx)(i.A,{className:"w-5 h-5 flex-shrink-0"}),(0,l.jsx)("span",{className:"truncate",children:(null==z||null==(g=z.hero)?void 0:g.reserveNow)||"Jetzt Reservieren"})]}),(0,l.jsxs)("div",{className:"flex flex-row flex-wrap gap-3 sm:gap-4 justify-center lg:justify-start",children:[(0,l.jsxs)(n.P.a,{href:"#menu",whileHover:{scale:1.05},whileTap:{scale:.95},className:"bg-white/80 backdrop-blur-sm text-cafe-dark px-4 sm:px-6 py-4 rounded-full font-body font-semibold text-sm sm:text-base lg:text-lg hover:bg-white transition-all duration-300 flex items-center justify-center space-x-2 hover-lift flex-1",children:[(0,l.jsx)(o.A,{className:"w-4 h-4 sm:w-5 sm:h-5 flex-shrink-0"}),(0,l.jsx)("span",{className:"truncate",children:(null==z||null==(v=z.hero)?void 0:v.menu)||"Speisekarte"})]}),(0,l.jsxs)(n.P.a,{href:"#gallery",whileHover:{scale:1.05},whileTap:{scale:.95},className:"bg-white/80 backdrop-blur-sm text-cafe-dark px-4 sm:px-6 py-4 rounded-full font-body font-semibold text-sm sm:text-base lg:text-lg hover:bg-white transition-all duration-300 flex items-center justify-center space-x-2 hover-lift flex-1",children:[(0,l.jsx)(c.A,{className:"w-4 h-4 sm:w-5 sm:h-5 flex-shrink-0"}),(0,l.jsx)("span",{className:"truncate",children:(null==z||null==(b=z.hero)?void 0:b.gallery)||"Galer
1ie"})]}),(0,l.jsxs)(n.P.a,{href:x.t,target:"_blank",rel:"noopener noreferrer",whileHover:{scale:1.05},whileTap:{scale:.95},className:"bg-white/80 backdrop-blur-sm text-cafe-dark px-4 sm:px-6 py-4 rounded-full font-body font-semibold text-sm sm:text-base lg:text-lg hover:bg-white transition-all duration-300 flex items-center justify-center space-x-2 hover-lift flex-1",children:[(0,l.jsx)(d.A,{className:"w-4 h-4 sm:w-5 sm:h-5 flex-shrink-0"}),(0,l.jsx)("span",{className:"truncate",children:(null==z||null==(j=z.hero)?void 0:j.voucher)||"Gutschein"})]})]})]}),(0,l.jsx)(n.P.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.6,delay:1.2},className:"md:hidden mt-4 mb-12 flex justify-center",children:(0,l.jsxs)(n.P.div,{animate:{y:[0,10,0]},transition:{duration:2,repeat:1/0},className:"flex flex-col items-center space-y-2",children:[(0,l.jsx)("p",{className:"text-cafe-dark/60 font-body text-sm",children:(null==z||null==(w=z.hero)?void 0:w.scrollDown)||"Scroll down"}),(0,l.jsx)(u.A,{className:"w-6 h-6 text-cafe-purple"})]})}),(0,l.jsxs)(n.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.9},className:"flex flex-col sm:flex-row gap-6 mt-12 items-center sm:items-start justify-center",children:[(0,l.jsxs)("div",{className:"flex flex-col sm:flex-row w-full max-w-xs items-center sm:items-start",children:[(0,l.jsx)("div",{className:"w-12 h-12 bg-cafe-light-purple rounded-full flex items-center justify-center flex-shrink-0 sm:mr-3 mb-2 sm:mb-0 sm:mt-1",children:(0,l.jsx)(m.A,{className:"w-6 h-6 text-cafe-purple"})}),(0,l.jsxs)("div",{className:"flex-1 text-center sm:text-left",children:[(0,l.jsx)("p",{className:"font-body font-semibold text-cafe-dark",children:(null==z||null==(y=z.hero)?void 0:y.openingHours)||"\xd6ffnungszeiten"}),(0,l.jsx)("p",{className:"font-body text-cafe-dark/70 text-sm",children:(null==z||null==(k=z.hero)||null==(N=k.hours)?void 0:N.weekdays)||"Mo-Fr: 08:00 - 18:00"}),(0,l.jsx)("p",{className:"font-body text-cafe-dark/70 text-sm",children:(null==z||null==(P=z.hero)||null==(S=P.hours)?void 0:S.weekends)||"Sa-So: 10:00 - 18:00"}),(0,l.jsx)("p",{className:"font-body text-cafe-dark/60 text-xs mt-1",children:(null==z||null==(A=z.hero)||null==(I=A.hours)?void 0:I.kitchenWeekdays)||"Kitchen: 09:00 - 17:00 (Mon-Fri)"}),(0,l.jsx)("p",{className:"font-body text-cafe-dark/60 text-xs",children:(null==z||null==(E=z.hero)||null==(D=E.hours)?void 0:D.kitchenWeekends)||"Kitchen: 10:00 - 17:00 (Sat-Sun)"})]})]}),(0,l.jsxs)("div",{className:"flex flex-col sm:flex-row w-full max-w-xs items-center sm:items-start",children:[(0,l.jsx)("div",{className:"w-12 h-12 bg-cafe-light-purple rounded-full flex items-center justify-center flex-shrink-0 sm:mr-3 mb-2 sm:mb-0 sm:mt-1",children:(0,l.jsx)(h.A,{className:"w-6 h-6 text-cafe-purple"})}),(0,l.jsxs)("div",{className:"flex-1 text-center sm:text-left",children:[(0,l.jsx)("p",{className:"font-body font-semibold text-cafe-dark",children:(null==z||null==(C=z.hero)?void 0:C.rating)||"Bewertung"}),(0,l.jsx)("p",{className:"font-body text-cafe-dark/70",children:"4.6/5 âââââ"})]})]})]})]}),(0,l.jsx)(n.P.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},transition:{duration:.8,delay:.4},className:"relative",children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("div",{className:"hidden lg:block",children:[(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsx)(n.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:.15,scale:1,y:[0,-15,8,-12,0],x:[0,10,-6,14,0],rotate:[0,8,-4,6,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:1.5},scale:{duration:1.5},y:{duration:14,repeat:1/0,ease:"easeInOut"},x:{duration:14,repeat:1/0,ease:"easeInOut"},rotate:{duration:14,repeat:1/0,ease:"easeInOut"}},className:"absolute -top-16 left-1/2 transform -translate-x-1/2 w-14 h-14 rounded-full overflow-hidden shadow-lg z-10",children:(0,l.jsx)("img",{src:q[(H[0]+3)%q.length],alt:"Floating food",className:"w-full h-full object-cover"})},"carousel-top-center-".concat(H[0]))}),(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsx)(n.P.div,{initial:{opacity:0,scale:.8}
1,animate:{opacity:.15,scale:1,y:[0,-12,6,-9,0],x:[0,8,-4,12,0],rotate:[0,-6,4,-8,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:1.5},scale:{duration:1.5},y:{duration:13,repeat:1/0,ease:"easeInOut"},x:{duration:13,repeat:1/0,ease:"easeInOut"},rotate:{duration:13,repeat:1/0,ease:"easeInOut"}},className:"absolute -top-12 -left-16 w-10 h-10 rounded-full overflow-hidden shadow-lg z-10",children:(0,l.jsx)("img",{src:q[(H[1]+7)%q.length],alt:"Floating food",className:"w-full h-full object-cover"})},"carousel-top-left-far-".concat(H[1]))}),(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsx)(n.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:.15,scale:1,y:[0,-14,7,-11,0],x:[0,-9,5,-13,0],rotate:[0,10,-6,7,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:1.5},scale:{duration:1.5},y:{duration:15,repeat:1/0,ease:"easeInOut"},x:{duration:15,repeat:1/0,ease:"easeInOut"},rotate:{duration:15,repeat:1/0,ease:"easeInOut"}},className:"absolute -top-12 -right-16 w-10 h-10 rounded-full overflow-hidden shadow-lg z-10",children:(0,l.jsx)("img",{src:q[(H[2]+11)%q.length],alt:"Floating food",className:"w-full h-full object-cover"})},"carousel-top-right-far-".concat(H[2]))}),(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsx)(n.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:.2,scale:1,y:[0,-18,10,-14,0],x:[0,12,-8,16,0],rotate:[0,12,-6,9,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:1.5},scale:{duration:1.5},y:{duration:16,repeat:1/0,ease:"easeInOut"},x:{duration:16,repeat:1/0,ease:"easeInOut"},rotate:{duration:16,repeat:1/0,ease:"easeInOut"}},className:"absolute -top-6 -left-6 w-16 h-16 rounded-full overflow-hidden shadow-lg z-10",children:(0,l.jsx)("img",{src:q[(H[0]+5)%q.length],alt:"Floating food",className:"w-full h-full object-cover"})},"carousel-top-left-".concat(H[0]))}),(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsx)(n.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:.2,scale:1,y:[0,-22,14,-16,0],x:[0,-16,12,-10,0],rotate:[0,-10,8,-12,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:1.5},scale:{duration:1.5},y:{duration:18,repeat:1/0,ease:"easeInOut"},x:{duration:18,repeat:1/0,ease:"easeInOut"},rotate:{duration:18,repeat:1/0,ease:"easeInOut"}},className:"absolute -bottom-6 -right-6 w-16 h-16 rounded-full overflow-hidden shadow-lg z-10",children:(0,l.jsx)("img",{src:q[(H[1]+10)%q.length],alt:"Floating food",className:"w-full h-full object-cover"})},"carousel-bottom-right-".concat(H[1]))}),(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsx)(n.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:.2,scale:1,y:[0,-24,16,-12,0],x:[0,14,-18,20,0],rotate:[0,-16,12,-8,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:1.5},scale:{duration:1.5},y:{duration:22,repeat:1/0,ease:"easeInOut"},x:{duration:22,repeat:1/0,ease:"easeInOut"},rotate:{duration:22,repeat:1/0,ease:"easeInOut"}},className:"absolute -top-6 -right-6 w-16 h-16 rounded-full overflow-hidden shadow-lg z-10",children:(0,l.jsx)("img",{src:q[(H[2]+15)%q.length],alt:"Floating food",className:"w-full h-full object-cover"})},"carousel-top-right-".concat(H[2]))}),(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsx)(n.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:.2,scale:1,y:[0,-20,12,-16,0],x:[0,18,-12,14,0],rotate:[0,10,-14,8,0]},exit:{opacity:0,scale:.8},transition:{opacity:{duration:1.5},scale:{duration:1.5},y:{duration:20,repeat:1/0,ease:"easeInOut"},x:{duration:20,repeat:1/0,ease:"easeInOut"},rotate:{duration:20,repeat:1/0,ease:"easeInOut"}},className:"absolute -bottom-6 -left-6 w-16 h-16 rounded-full overflow-hidden shadow-lg z-10",children:(0,l.jsx)("img",{src:q[(H[3]+20)%q.length],alt:"Floating food",className:"w-full h-full object-cover"})},"carousel-bottom-left-".concat(H[3]))})]}),(0,l.jsx)(n.P.div,{animate:{y:[0,-10,0],x:[0,8,0],rotate:[0,5,0]},transition:{duration:8,repeat:1/0,ease:"easeInOut"},className:"absolute -top-6 -left-6 w-24 h-24 bg-white rounded-2xl shadow-xl flex items-center justify-center z-20",children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("span",{className:"text-2xl",children:"â"}),(0,l.jsx)("p",{className:"text-xs font-body font-medium text-cafe-dark",children:(null==z||null==(_=z.hero)||null==(F=_.carousel)?void 0:F.coffee)||"Fresh Coffee"})]})}),(0,l.jsx)(n.P.div,{animate:{y:[0,-15,0],x:[0,-10,0],rotate:[0,-5,0]},transition:{duration:10,repeat:1/0,ease:"easeInOut"},className:"absolute -bottom-4 -right-4 w-20 h-20 bg-cafe-purple roun
1ded-2xl shadow-xl flex items-center justify-center z-20",children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("span",{className:"text-xl",children:"\uD83E\uDD50"}),(0,l.jsx)("p",{className:"text-xs font-body font-medium text-white",children:(null==z||null==(O=z.hero)||null==(T=O.carousel)?void 0:T.pastries)||"Fresh Pastries"})]})}),(0,l.jsxs)("div",{className:"relative w-full h-96 md:h-[500px] lg:h-[600px] bg-gradient-to-br from-cafe-light-purple to-cafe-cream rounded-3xl overflow-hidden shadow-2xl",children:[(0,l.jsx)(r.N,{mode:"wait",children:(0,l.jsxs)(n.P.div,{initial:{opacity:0,scale:1.1},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.7},className:"absolute inset-0",children:[(0,l.jsx)(f.default,{src:G[R].src,alt:G[R].title,fill:!0,className:"object-cover",priority:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 50vw, 600px"}),(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-cafe-purple/40 to-transparent"}),(0,l.jsxs)(n.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.3,duration:.5},className:"absolute bottom-6 left-6 text-white z-10",children:[(0,l.jsx)("h3",{className:"text-xl font-heading font-bold mb-2",children:G[R].title}),(0,l.jsx)("p",{className:"text-sm font-body opacity-90",children:G[R].description})]})]},R)}),(0,l.jsx)("div",{className:"absolute bottom-4 right-4 flex space-x-2 z-10",children:G.map((e,t)=>(0,l.jsx)("button",{onClick:()=>M(t),className:"w-2 h-2 rounded-full transition-colors duration-200 ".concat(t===R?"bg-white":"bg-white/50")},t))})]})]})})]})}),(0,l.jsx)(n.P.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.6,delay:1.2},className:"hidden md:block absolute bottom-8 left-1/2 transform -translate-x-1/2",children:(0,l.jsxs)(n.P.div,{animate:{y:[0,10,0]},transition:{duration:2,repeat:1/0},className:"flex flex-col items-center space-y-2",children:[(0,l.jsx)("p",{className:"text-cafe-dark/60 font-body text-sm",children:"Scroll down"}),(0,l.jsx)(u.A,{className:"w-6 h-6 text-cafe-purple"})]})})]})}}},e=>{e.O(0,[38,545,579,992,379,762,768,824,441,255,358],()=>e(e.s=5334)),_N_E=e.O()}]);
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.