"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1936],{2854:function(e,t,r){r.d(t,{CategoryProductCard:function(){return c},CategoryProductCardSkeleton:function(){return d}});var i=r(3890),n=r(8496),a=r(6788),o=r(8113),s=r(4551),l=r(1354);function c(e){var t,r;let{product:c,index:d=0}=e,{addItem:p}=(0,l.j)(),[m,u]=(0,n.useState)(!1),f=(0,s.W)(c.slug),g=c.on_sale&&c.sale_price&&parseFloat(c.sale_price)>0,h=g?c.sale_price:c.price,y=(0,o.b6)(c)||(null===(r=c.images)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.src)||"";console.log("DEBUG:",c.slug,y);let x="/produkt/".concat(c.slug),v=parseFloat(c.average_rating||"0"),b=c.rating_count||0,j=Math.floor(v),k=v-j>=.5;return(0,i.jsxs)("div",{className:"ppc-card",style:{animation:"fadeInUp 0.35s ease ".concat(Math.min(.04*d,.5),"s forwards"),opacity:0},children:[(0,i.jsx)(a.default,{href:x,style:{textDecoration:"none",display:"block"},children:(0,i.jsx)("div",{className:"ppc-image-wrap",children:y?(0,i.jsx)("img",{src:y,alt:c.name,className:"ppc-image",width:"400",height:"400",loading:d<4?"eager":"lazy",decoding:"async"}):(0,i.jsx)("div",{className:"ppc-image-placeholder"})})}),(0,i.jsxs)("div",{className:"ppc-body",children:[(0,i.jsx)("div",{className:"ppc-name-block",children:(0,i.jsx)(a.default,{href:x,style:{textDecoration:"none"},children:(0,i.jsx)("h3",{className:"ppc-name",children:c.name})})}),(0,i.jsx)("div",{className:"ppc-divider"}),(0,i.jsx)("ul",{className:"ppc-benefits",children:f.benefits.map((e,t)=>(0,i.jsx)("li",{className:"ppc-benefit",children:e},t))}),(0,i.jsx)("div",{className:"ppc-divider"}),v>0&&b>0&&(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.35rem",marginBottom:"0.5rem"},children:[(0,i.jsxs)("span",{style:{color:"#f59e0b",fontSize:"0.8rem",letterSpacing:"0.5px",lineHeight:1},children:["★".repeat(j),k?"\xbd":"","☆".repeat(5-j-(k?1:0))]}),(0,i.jsxs)("span",{style:{fontFamily:"var(--font)",fontSize:"0.72rem",color:"var(--color-text-muted)",fontWeight:500},children:[v.toFixed(1).replace(".",",")," (",b,")"]})]}),(0,i.jsxs)("div",{className:"ppc-price-block",children:[(0,i.jsxs)("div",{className:"ppc-price-row",children:[(0,i.jsxs)("span",{className:"ppc-price",children:[(0,o.T4)(h),(0,i.jsx)("sup",{style:{fontSize:"0.6em",verticalAlign:"super",marginLeft:"1px"},children:"*"})]}),g&&(0,i.jsx)("span",{className:"ppc-price-original",children:(0,o.T4)(c.regular_price)})]}),(0,i.jsxs)("p",{className:"ppc-price-per-day",children:["/ ",f.pricePerDay," € pro Tag"]})]}),(0,i.jsxs)("div",{className:"ppc-btn-group",children:[(0,i.jsx)(a.default,{href:x,style:{textDecoration:"none"},children:(0,i.jsx)("button",{className:"ppc-cta",children:"Produkt anzeigen"})}),(0,i.jsx)("button",{className:"ppc-cart-text",onClick:e=>{e.preventDefault(),e.stopPropagation(),p(c),u(!0),setTimeout(()=>u(!1),2e3)},children:m?"✓ Hinzugef\xfcgt":"In den Warenkorb →"})]})]})]})}function d(){return(0,i.jsxs)("div",{className:"ppc-card",style:{animation:"none",opacity:1},children:[(0,i.jsx)("div",{className:"ppc-image-wrap",style:{background:"#ffffff"}}),(0,i.jsxs)("div",{className:"ppc-body",children:[(0,i.jsx)("div",{style:{height:15,background:"#f0f0f0",borderRadius:4,marginBottom:5}}),(0,i.jsx)("div",{style:{height:13,background:"#f0f0f0",borderRadius:4,width:"60%",marginBottom:12}}),(0,i.jsx)("div",{style:{height:1,background:"#F4F4F4",marginBottom:12}}),(0,i.jsx)("div",{style:{height:12,background:"#f0f0f0",borderRadius:4,marginBottom:5}}),(0,i.jsx)("div",{style:{height:12,background:"#f0f0f0",borderRadius:4,width:"80%",marginBottom:5}}),(0,i.jsx)("div",{style:{height:12,background:"#f0f0f0",borderRadius:4,width:"65%",marginBottom:12}}),(0,i.jsx)("div",{style:{height:1,background:"#F4F4F4",marginBottom:12}}),(0,i.jsx)("div",{style:{height:20,background:"#f0f0f0",borderRadius:4,width:"50%",marginBottom:4}}),(0,i.jsx)("div",{style:{height:13,background:"#f0f0f0",borderRadius:4,width:"40%",marginBottom:14}}),(0,i.jsx)("div",{style:{height:36,background:"#f0f0f0",borderRadius:9999}}),(0,i.jsx)("div",{style:{height:14,background:"#f0f0f0",borderRadius:4,width:"70%",marginTop:8}})]})]})}},1254:function(e,t,r){r.d(t,{CategorySEOSection:function(){return s}});var i=r(3890),n=r(8496),a=r(6788);function o(e){return e.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'$1')}function s(e){let{title:t,paragraphs:r,faqs:s=[],internalLinks:l=[],bg:c="#f8f7f4"}=e,[d,p]=(0,n.useState)(null);return(0,i.jsx)("section",{style:{padding:"clamp(3rem, 6vw, 5rem) 0",background:c},children:(0,i.jsxs)("div",{style:{maxWidth:"860px",margin:"0 auto",padding:"0 1.25rem"},children:[(0,i.jsx)("h2",{style:{fontFamily:"var(--font)",fontSize:"clamp(1.35rem, 2.5vw, 1.9rem)",fontWeight:600,color:"#0d0d0d",letterSpacing:"-0.02em",lineHeight:1.15,marginBottom:"1.5rem",marginTop:0},children:t}),r.map((e,t)=>(0,i.jsx)("p",{style:{fontFamily:"var(--font)",fontSize:"0.9rem",color:"#444",lineHeight:1.85,marginBottom:"1.1rem",marginTop:0},dangerouslySetInnerHTML:{__html:o(e)}},t)),l.length>0&&(0,i.jsxs)("div",{style:{marginTop:"2rem",marginBottom:s.length>0?"3rem":"0"},children:[(0,i.jsx)("p",{style:{fontFamily:"var(--font)",fontSize:"0.7rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"var(--color-primary)",marginBottom:"0.75rem",marginTop:0},children:"Weitere Kategorien entdecken"}),(0,i.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.5rem"},children:l.map(e=>(0,i.jsx)(a.default,{href:e.href,style:{display:"inline-block",padding:"0.45rem 1rem",borderRadius:"100px",border:"1.5px solid var(--color-primary)",color:"var(--color-primary)",fontFamily:"var(--font)",fontSize:"0.8rem",fontWeight:600,textDecoration:"none",transition:"background 0.2s, color 0.2s"},onMouseEnter:e=>{e.currentTarget.style.background="var(--color-primary)",e.currentTarget.style.color="#fff"},onMouseLeave:e=>{e.currentTarget.style.background="transparent",e.currentTarget.style.color="var(--color-primary)"},children:e.label},e.href))})]}),s.length>0&&(0,i.jsxs)("div",{style:{marginTop:l.length>0?"0":"2.5rem"},children:[(0,i.jsx)("h3",{style:{fontFamily:"var(--font)",fontSize:"clamp(1.1rem, 2vw, 1.4rem)",fontWeight:600,color:"#0d0d0d",letterSpacing:"-0.025em",marginBottom:"1.25rem",marginTop:0},children:"H\xe4ufig gestellte Fragen"}),(0,i.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:s.map((e,t)=>(0,i.jsxs)("div",{style:{border:"1.5px solid ".concat(d===t?"var(--color-primary)":"#e8e5e0"),borderRadius:"10px",overflow:"hidden",background:"#fff",transition:"border-color 0.2s"},children:[(0,i.jsxs)("button",{onClick:()=>p(d===t?null:t),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"1rem",padding:"1rem 1.25rem",background:"none",border:"none",cursor:"pointer",textAlign:"left"},children:[(0,i.jsx)("span",{style:{fontFamily:"var(--font)",fontSize:"0.9rem",fontWeight:700,color:"#0d0d0d",lineHeight:1.4},children:e.q}),(0,i.jsx)("span",{style:{flexShrink:0,width:"22px",height:"22px",borderRadius:"50%",background:d===t?"var(--color-primary)":"#f0ede8",color:d===t?"#fff":"#555",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1rem",fontWeight:400,lineHeight:1,transition:"background 0.2s, color 0.2s"},children:d===t?"−":"+"})]}),d===t&&(0,i.jsx)("div",{style:{padding:"0 1.25rem 1rem",borderTop:"1px solid #f0ede8"},children:(0,i.jsx)("p",{style:{fontFamily:"var(--font)",fontSize:"0.875rem",color:"#555",lineHeight:1.8,margin:"0.75rem 0 0"},dangerouslySetInnerHTML:{__html:o(e.a)}})})]},t))})]})]})})}},1354:function(e,t,r){r.d(t,{Z:function(){return d},j:function(){return p}});var i=r(3890),n=r(8496),a=r(8113);function o(e,t){switch(t.type){case"ADD_ITEM":if(e.items.find(e=>e.product.id===t.product.id))return{...e,isOpen:!0,items:e.items.map(e=>e.product.id===t.product.id?{...e,quantity:e.quantity+(t.quantity||1)}:e)};return{...e,isOpen:!0,items:[...e.items,{product:t.product,quantity:t.quantity||1}]};case"REMOVE_ITEM":return{...e,items:e.items.filter(e=>e.product.id!==t.productId)};case"UPDATE_QUANTITY":if(t.quantity<=0)return{...e,items:e.items.filter(e=>e.product.id!==t.productId)};return{...e,items:e.items.map(e=>e.product.id===t.productId?{...e,quantity:t.quantity}:e)};case"CLEAR_CART":return{...e,items:[]};case"OPEN_CART":return{...e,isOpen:!0};case"CLOSE_CART":return{...e,isOpen:!1};case"LOAD_CART":return{...e,items:t.items};default:return e}}let s=(0,n.createContext)(null),l="ypf-cart",c="ypf-coupon";function d(e){let{children:t}=e,[r,d]=(0,n.useReducer)(o,{items:[],isOpen:!1}),[p,m]=(0,n.useState)(!1),[u,f]=(0,n.useState)(null);(0,n.useEffect)(()=>{try{let e=localStorage.getItem(l);if(e){let t=JSON.parse(e);d({type:"LOAD_CART",items:t})}let t=localStorage.getItem(c);t&&f(JSON.parse(t))}catch(e){}finally{m(!0)}},[]),(0,n.useEffect)(()=>{if(p)try{localStorage.setItem(l,JSON.stringify(r.items))}catch(e){}},[r.items,p]);let g=r.items.reduce((e,t)=>e+t.quantity,0),h=r.items.reduce((e,t)=>e+parseFloat(t.product.on_sale?t.product.sale_price:t.product.price||t.product.regular_price||"0")*t.quantity,0),y=(0,a.T4)(h),x=(0,n.useCallback)((e,t)=>d({type:"ADD_ITEM",product:e,quantity:t}),[]),v=(0,n.useCallback)(e=>d({type:"REMOVE_ITEM",productId:e}),[]),b=(0,n.useCallback)((e,t)=>d({type:"UPDATE_QUANTITY",productId:e,quantity:t}),[]),j=(0,n.useCallback)(()=>d({type:"CLEAR_CART"}),[]),k=(0,n.useCallback)(()=>d({type:"OPEN_CART"}),[]),T=(0,n.useCallback)(()=>d({type:"CLOSE_CART"}),[]);return(0,i.jsx)(s.Provider,{value:{state:r,addItem:x,removeItem:v,updateQuantity:b,clearCart:j,openCart:k,closeCart:T,totalItems:g,totalPrice:y,subtotal:h,isLoaded:p,appliedCoupon:u,setAppliedCoupon:e=>{f(e);try{e?localStorage.setItem(c,JSON.stringify(e)):localStorage.removeItem(c)}catch(e){}}},children:t})}function p(){let e=(0,n.useContext)(s);if(!e)throw Error("useCart must be used within CartProvider");return e}},6788:function(e,t,r){r.d(t,{default:function(){return n.a}});var i=r(9498),n=r.n(i)}}]);