1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[928],{169:(e,t,r)=>{r.d(t,{ProductCard:()=>d});var n=r(4568),i=r(7620),a=r(4871),o=r(5322),l=r(5795),s=r(4583);let c="var(--color-brand-primary, #688816)";function d(e){let{product:t,variant:r="default",matchReason:d,imageFit:p="cover",attribution:u,location:h="card",ctaStyle:f="cart"}=e,{addItem:g}=(0,a.useCart)(),[x,m]=(0,i.useState)(!1),[y,v]=(0,i.useState)(!1),[b,j]=(0,i.useState)(!1);function k(){return{product_id:t.id,handle:t.handle,slot:u?.slot,context_hash:u?.contextHash,article:(0,s.B)(),location:h}}let w="number"==typeof t.compareAtPriceCents&&null!=t.priceCents&&t.compareAtPriceCents>t.priceCents,S=t.available&&!!t.firstVariantId,C=t.handle?`/shop/${encodeURIComponent(t.handle)}`:null;async function z(e){if(e.preventDefault(),e.stopPropagation(),S&&!x){m(!0);try{(0,s.G)("shop_add_to_cart",k()),await g(t.firstVariantId,1,u),v(!0),setTimeout(()=>v(!1),1500)}catch{}finally{m(!1)}}}return(0,n.jsxs)("article",{"data-shop-product-card":t.id,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),style:{position:"relative",background:"#ffffff",overflow:"hidden",display:"flex",flexDirection:"column",height:"100%",borderRadius:0,cursor:C?"pointer":"default",boxShadow:b?"0 10px 28px rgba(15, 30, 25, 0.10), 0 1px 3px rgba(15, 30, 25, 0.04)":"0 1px 3px rgba(15, 30, 25, 0.05)",transform:b?"translateY(-3px)":"translateY(0)",transition:"box-shadow 220ms ease, transform 220ms ease"},children:[C&&(0,n.jsx)("a",{href:C,"aria-label":t.title,onClick:()=>(0,s.G)("shop_product_click",k()),style:{position:"absolute",inset:0,zIndex:1}}),(0,n.jsxs)("div",{style:{position:"relative",width:"100%",aspectRatio:"4 / 3",background:"#ffffff",overflow:"hidden",padding:"contain"===p?"12px 10px":"18px 14px 22px"},children:[(0,n.jsx)(o.CoverFrame,{src:t.imageUrl||"",alt:t.title,background:"transparent",rotateDeg:-1.5,fit:p}),w&&(0,n.jsx)("span",{style:{position:"absolute",top:"12px",left:"12px",background:"#b32d2e",color:"#ffffff",padding:"4px 10px",fontSize:"11px",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",zIndex:2},children:"Angebot"})]}),(0,n.jsxs)("div",{style:{padding:"slider"===r?"16px 16px 18px":"20px 20px 22px",display:"flex",flexDirection:"column",gap:"6px",flex:1},children:[(0,n.jsx)("h3",{style:{color:"#1a2e22",fontWeight:600,fontSize:"slider"===r?"15px":"17px",lineHeight:1.3,margin:0,letterSpacing:"-0.01em"},children:t.title}),t.productType&&(0,n.jsx)("p",{style:{color:"#4a6a52",fontSize:"13px",lineHeight:1.4,margin:0},children:t.productType}),d&&(0,n.jsx)("p",{style:{color:c,fontSize:"11px",fontStyle:"italic",margin:"8px 0 0",lineHeight:1.4},title:d,children:d}),(0,n.jsxs)("div",{style:{marginTop:"auto",paddingTop:"14px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"10px",flexWrap:"wrap"},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:"8px"},children:[(0,n.jsx)("span",{style:{color:"#1a2e22",fontWeight:700,fontSize:"18px",letterSpacing:"-0.01em"},children:(0,l.q)(t.priceCents,t.currency)}),w&&(0,n.jsxs)("span",{style:{color:"#8a8a7a",fontSize:"12px",textDecoration:"line-through"},children:[t.strikeExplanation?`${t.strikeExplanation} `:"",(0,l.q)(t.compareAtPriceCents,t.currency)]})]}),"pdp"===f&&C?(0,n.jsx)("a",{href:C,"aria-label":`${t.title} â zum Produkt`,onClick:()=>(0,s.G)("shop_product_click",k()),style:{background:c,color:"#ffffff",padding:"10px 16px",fontWeight:600,fontSize:"13px",textDecoration:"none",borderRadius:0,letterSpacing:"0.01em",transition:"filter 180ms ease",whiteSpace:"nowrap",position:"relative",zIndex:2},onMouseEnter:e=>e.currentTarget.style.filter="brightness(1.12)",onMouseLeave:e=>e.currentTarget.style.filter="none",children:"Zum Produkt"}):S?(0,n.jsx)("button",{onClick:z,disabled:y||x,"aria-label":`${t.title} in den Warenkorb`,style:{background:y?"#3a7a3a":c,color:"#ffffff",border:"none",padding:"10px 16px",fontWeight:600,fontSize:"13px",cursor:y||x?"default":"pointer",borderRadius:0,letterSpacing:"0.01em",transition:"background 180ms ease",whiteSpace:"nowrap",position:"relative",zIndex:2},onMouseEnter:e=>{y||x||(e.currentTarget.style.filter="brightness(1.12)")},onMouseLeave:e=>{y||x||(e.currentTarget.style.filter="none")},children:y?"Im Warenkorb":x?"â¦":"In den Warenkorb"}):(0,n.jsx)("span",{style:{color:"#8a8a7a",fontSize:"12px"},children:"Nicht verf\xfcgbar"})]})]})]})}},718:(e,t,r)=>{r.d(t,{RecommendationBlock:()=>s});var n=r(4568),i=r(7620),a=r(169),o=r(4583),l=r(3272);function s(e){let{products:t,title:r="Passend zum Thema",subtitle:s="",overline:c="Shop",limit:d=3,attribution:p}=e,u=(0,i.useRef)(null),h=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{let e=u.current,r=(t??[]).slice(0,d);if(!e||0===r.length||h.current)return;let n=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&!h.current&&(h.current=!0,(0,o.G)("shop_impression",{slot:"recommendation_block",product_ids:r.map(e=>e.id)}),n.disconnect())},{threshold:.4});return n.observe(e),()=>n.disconnect()},[t,d]),!t||0===t.length)return null;let f=t.slice(0,d),g="pdp"===(0,l.IX)("rec_cta")?"pdp":"cart";return(0,n.jsxs)("section",{ref:u,"data-shop-recommendations":!0,style:{margin:"var(--space-48) 0",padding:"var(--space-32) 0",borderTop:"1px solid var(--color-border-light, #e5e5e5)",borderBottom:"1px solid var(--color-border-light, #e5e5e5)"},children:[(0,n.jsxs)("header",{style:{marginBottom:"var(--space-24)"},children:[(0,n.jsx)("p",{className:"t-c-xs",style:{color:"var(--color-brand-primary, #688816)",fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",margin:0,marginBottom:"var(--space-4)"},children:c}),(0,n.jsx)("h2",{className:"t-h-md",style:{margin:0,color:"var(--color-text-primary)"},children:r}),s&&(0,n.jsx)("p",{className:"t-c-sm",style:{color:"var(--color-text-secondary)",margin:"var(--space-4) 0 0"},children:s})]}),(0,n.jsx)("div",{style:{display:"grid",gridAutoFlow:"column",gridAutoColumns:"clamp(200px, 72vw, 300px)",gap:"var(--space-16)",overflowX:"auto",scrollSnapType:"x mandatory",paddingBottom:"var(--space-8)",scrollbarWidth:"thin",WebkitOverflowScrolling:"touch"},children:f.map(e=>(0,n.jsx)("div",{style:{scrollSnapAlign:"start",minWidth:0},children:(0,n.jsx)(a.ProductCard,{product:e,attribution:p,imageFit:"contain",location:"recommendation",ctaStyle:g})},e.id))})]})}},2553:(e,t,r)=>{r.d(t,{ProductGridLazy:()=>o});var n=r(4568),i=r(7620),a=r(169);function o(e){let{initialProducts:t,initialCursor:r,apiPath:o="/api/shop/products",pageSize:l=24,imageFit:s="contain"}=e,[c,d]=(0,i.useState)(t),[p,u]=(0,i.useState)(r),[h,f]=(0,i.useState)(!1),g=(0,i.useRef)(new Set(t.map(e=>e.id))),x=(0,i.useRef)(null),m=(0,i.useCallback)(async()=>
1{if(p&&!h){f(!0);try{let e=new URL(o,window.location.origin);e.searchParams.set("cursor",p),e.searchParams.set("limit",String(l));let t=await fetch(e.toString());if(t.ok){let e=await t.json(),r=(e.products??[]).filter(e=>e&&e.id&&!g.current.has(e.id));r.forEach(e=>g.current.add(e.id)),d(e=>[...e,...r]),u(e.nextCursor??null)}else u(null)}catch{u(null)}finally{f(!1)}}},[p,h,o,l]);return(0,i.useEffect)(()=>{if(!p)return;let e=x.current;if(!e||"undefined"==typeof IntersectionObserver)return;let t=new IntersectionObserver(e=>{e[0]?.isIntersecting&&m()},{rootMargin:"600px"});return t.observe(e),()=>t.disconnect()},[p,m]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",gap:"var(--space-20)"},children:c.map(e=>(0,n.jsx)(a.ProductCard,{product:e,imageFit:s},e.id))}),p&&(0,n.jsx)("div",{ref:x,style:{display:"flex",justifyContent:"center",marginTop:"var(--space-24)"},children:(0,n.jsx)("button",{type:"button",onClick:m,disabled:h,style:{padding:"var(--space-12) var(--space-24)",border:"1px solid var(--color-border, #ddd)",borderRadius:"var(--radius-sm, 4px)",background:"var(--color-bg-white, #fff)",color:"var(--color-text-primary, #222)",cursor:h?"default":"pointer",fontSize:"var(--text-c-sm)"},children:h?"L\xe4dt â¦":"Mehr Produkte laden"})})]})}},2644:(e,t,r)=>{r.d(t,{ProductSlider:()=>a});var n=r(4568),i=r(169);function a(e){let{title:t,subtitle:r,products:a,viewAllHref:o="/shop",imageFit:l="cover"}=e;return a&&0!==a.length?(0,n.jsx)("section",{"data-shop-slider":!0,"aria-label":t,style:{padding:"var(--space-40) 0 var(--space-48)",marginBottom:"var(--space-48)",background:"var(--color-bg-light, #f7f8f3)",borderRadius:0},children:(0,n.jsxs)("div",{className:"container",children:[(0,n.jsxs)("header",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",marginBottom:"var(--space-20)",gap:"var(--space-16)",flexWrap:"wrap"},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"t-h-md",style:{color:"var(--color-text-primary)",margin:0,marginBottom:r?"var(--space-4)":0},children:t}),r&&(0,n.jsx)("p",{className:"t-c-sm",style:{color:"var(--color-text-secondary)",margin:0},children:r})]}),o&&(0,n.jsx)("a",{href:o,className:"t-link t-link--primary",style:{fontSize:"var(--text-c-sm)",fontWeight:600},children:"Alle ansehen â"})]}),(0,n.jsx)("div",{style:{display:"grid",gridAutoFlow:"column",gridAutoColumns:"minmax(260px, 1fr)",gap:"var(--space-16)",overflowX:"auto",scrollSnapType:"x mandatory",scrollPaddingLeft:"var(--gutter)",paddingBottom:"var(--space-12)",scrollbarWidth:"thin"},children:a.slice(0,12).map(e=>(0,n.jsx)("div",{style:{scrollSnapAlign:"start",minWidth:0},children:(0,n.jsx)(i.ProductCard,{product:e,variant:"slider",imageFit:l})},e.id))})]})}):null}},3272:(e,t,r)=>{r.d(t,{IX:()=>o,Nz:()=>l});let n=[{id:"rec_cta",active:!0,variants:[{key:"cart"},{key:"pdp"}]},{id:"rec_position",active:!0,variants:[{key:"inline"},{key:"end"}]}],i="si_exp_uid",a=new Map;function o(e){let t=n.find(t=>t.id===e);if(!t||0===t.variants.length)return"control";if(!1===t.active)return t.variants[0].key;let r=a.get(e);if(r)return r;let o=t.variants.reduce((e,t)=>e+(t.weight??1),0)||1,l=function(e){let t=0x811c9dc5;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=Math.imul(t,0x1000193);return t>>>0}(function(){try{let e=window.localStorage.getItem(i);return e||(e="undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2)+Date.now().toString(36),window.localStorage.setItem(i,e)),e}catch{return"anon"}}()+":"+e)%1e4/1e4*o,s=0,c=t.variants[0].key;for(let e of t.variants)if(l<(s+=e.weight??1)){c=e.key;break}return a.set(e,c),c}function l(){let e={};for(let t of n)!1!==t.active&&(e[t.id]=o(t.id));return e}},3454:(e,t,r)=>{r.d(t,{InArticleProductsLoader:()=>l});var n=r(4568),i=r(7620),a=r(8693),o=r(718);function l(e){let{categorySlug:t,themes:r=[],apiPath:l="/api/shop/recommendations",overline:s,subtitle:c}=e,[d,p]=(0,i.useState)(null),[u,h]=(0,i.useState)(null);if((0,i.useEffect)(()=>{let e=!1,n=new URL(l,window.location.origin);n.searchParams.set("slot","inline-article"),n.searchParams.set("limit","3"),n.searchParams.set("gate","1"),t&&n.searchParams.set("category",t);let i=r.map(e=>
1e.trim()).filter(Boolean);return i.length&&n.searchParams.set("theme",i.slice(0,12).join(",")),fetch(n.toString()).then(e=>e.ok?e.json():{products:[]}).then(t=>{e||(p(t.products??[]),h(t.contextHash??null))}).catch(()=>{e||p([])}),()=>{e=!0}},[t,r.join("|"),l]),!d||0===d.length)return null;let f={slot:"inline-article",contextHash:u??void 0};return 1===d.length?(0,n.jsx)(a.ProductHighlight,{product:d[0],overline:s?`Aus dem ${s}`:void 0,attribution:f}):(0,n.jsx)(o.RecommendationBlock,{products:d,overline:s,subtitle:c,attribution:f})}},4230:(e,t,r)=>{r.d(t,{RecentlyViewedOrRelated:()=>s});var n=r(4568),i=r(7620),a=r(2644),o=r(6449);let l="anjou_recently_viewed_products";function s(e){let{current:t,relatedThemes:r=[],relatedCategory:s,imageFit:c="cover"}=e,[d,p]=(0,i.useState)(null);if((0,i.useEffect)(()=>{let e=[];try{e=JSON.parse(localStorage.getItem(l)||"[]")}catch{e=[]}let r=Array.isArray(e)?e.filter(e=>e&&e.id&&e.id!==t.id):[];p(r.slice(0,12));try{localStorage.setItem(l,JSON.stringify([{id:t.id,handle:t.handle,title:t.title,productType:t.productType,tags:t.tags??[],priceCents:t.priceCents,compareAtPriceCents:t.compareAtPriceCents,strikeExplanation:t.strikeExplanation,currency:t.currency,imageUrl:t.imageUrl,available:t.available,firstVariantId:t.firstVariantId},...r].slice(0,16)))}catch{}},[t.id]),null===d)return null;if(d.length>=2)return(0,n.jsx)(a.ProductSlider,{title:"Zuletzt angesehen",products:d,viewAllHref:"/shop",imageFit:c});let u=r.map(e=>(e||"").trim()).filter(Boolean);return 0!==u.length||s?(0,n.jsx)(o.ProductSliderLoader,{title:"Das k\xf6nnte dich auch interessieren",themes:u,categorySlug:s??void 0,slot:"slider-category",limit:8,viewAllHref:"/shop",imageFit:c}):null}},4282:(e,t,r)=>{r.d(t,{AddToCartButton:()=>o});var n=r(4568),i=r(7620),a=r(4871);function o(e){let{variantId:t,available:r=!0,label:o="In den Warenkorb",block:l=!1}=e,{addItem:s}=(0,a.useCart)(),[c,d]=(0,i.useState)(!1);return r&&t?(0,n.jsx)("button",{type:"button",disabled:c,onClick:async()=>{d(!0);try{await s(t);try{window.SITracking?.track?.("add_to_cart",{variant_id:t})}catch{}}catch{}finally{d(!1)}},style:{display:l?"block":"inline-block",width:l?"100%":void 0,padding:"var(--space-8) var(--space-16)",background:"var(--color-brand-primary, #0a7d3f)",color:"#fff",border:"none",borderRadius:"var(--radius-md, 6px)",fontWeight:600,fontSize:"0.9rem",cursor:c?"wait":"pointer",opacity:c?.7:1},children:c?"Wird hinzugef\xfcgtâ¦":o}):(0,n.jsx)("span",{style:{color:"var(--color-text-tertiary)",fontSize:"0.9rem"},children:"Zurzeit nicht verf\xfcgbar"})}},4583:(e,t,r)=>{r.d(t,{B:()=>a,G:()=>i});var n=r(3272);function i(e,t){try{let r=window.SITracking,i=(0,n.Nz)(),a=Object.keys(i).length?{...t,experiments:i}:t;r?.track?.(e,a)}catch{}}function a(){try{return window.location.pathname.match(/\/artikel\/([^/?#]+)/)?.[1]??null}catch{return null}}},4871:(e,t,r)=>{r.d(t,{CartProvider:()=>s,useCart:()=>l});var n=r(4568),i=r(7620);let a=(0,i.createContext)(null),o={cart:null,loading:!1,error:null,isOpen:!1,itemCount:0,open:()=>{},close:()=>{},addItem:async()=>{},updateQty:async()=>{},removeItem:async()=>{}};function l(){let e=(0,i.useContext)(a);return e||o}function s(e){let{children:t,apiPath:r="/api/cart"}=e,[o,l]=(0,i.useState)(null),[s,c]=(0,i.useState)(!1),[d,p]=(0,i.useState)(null),[u,h]=(0,i.useState)(!1),f=(0,i.useRef)(0),g=(0,i.useCallback)(async(e,t)=>{let n=++f.current;c(!0),p(null);try{let i=await fetch(r,{method:e,headers:t?{"Content-Type":"application/json"}:void 0,body:t?JSON.stringify(t):void 0}),a=await i.json().catch(()=>({}));if(!i.ok)throw Error(a?.error||`Warenkorb-Fehler (${i.status})`);n===f.current&&l(a.cart??null)}catch(e){throw n===f.current&&p(e instanceof Error?e.message:"Warenkorb-Fehler"),e}finally{n===f.current&&c(!1)}},[r]);(0,i.useEffect)(()=>{g("GET").catch(()=>{})},[g]);let x=(0,i.useCallback)(async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0;await g("POST",{variantId:e,quantity:t,attribution:r}),h(!0)},[g]),m=(0,i.useCallback)(async(e,t)=>{await g("PATCH",{lineId:e,quantity:t})},[g]),y=(0,i.useCallback)(async e=>{await g("DELETE",{lineId:e})},[g]),v={cart:o,loading:s,error:d,isOpen:u,itemCount:o?.totalQuantity??0,open:()=>h(!0),close:()=>h(!1),addItem:x,updateQty:m,removeItem:y};return(0,n.jsx)(a.Provider,{value:v,children:t})}},5322:(e,t,r)=>{r.d(t,{CoverFrame:()=>i});var n=r(4568);function i(e){let{src:t,alt:r,height:i="100%",rotateDeg:a=-1.5,background:o="transparent",onClick:l,fit:s="cover"}=e,c="contain"===s;return(0,n.jsx)("div",{style:{position:"relative",width:"100%",height:"number"==typeof i?`${i}px`:i,background:"transparent"===o?"transparent":"white"===o?"#ffffff"
1:o,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:(0,n.jsx)("div",{onClick:l,style:{position:"relative",aspectRatio:c?void 0:"2 / 3",width:c?"100%":void 0,height:c?"100%":"88%",maxHeight:"100%",boxShadow:c?"none":"0 24px 56px -16px rgba(0,0,0,0.35), 0 8px 16px -8px rgba(0,0,0,0.18)",transform:c?"none":`rotate(${a}deg)`,transition:"transform 0.25s ease",cursor:l?"pointer":"default"},onMouseEnter:e=>{c||(e.currentTarget.style.transform="rotate(0deg) scale(1.02)")},onMouseLeave:e=>{c||(e.currentTarget.style.transform=`rotate(${a}deg) scale(1)`)},children:t?(0,n.jsx)("img",{src:t,alt:r,style:{width:"100%",height:"100%",objectFit:c?"contain":"cover",display:"block"},referrerPolicy:"no-referrer",loading:"lazy"}):null})})}},5795:(e,t,r)=>{r.d(t,{q:()=>n});function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EUR";return null==e?"":new Intl.NumberFormat("de-DE",{style:"currency",currency:t||"EUR"}).format(e/100)}},6172:(e,t,r)=>{r.d(t,{CartButton:()=>a});var n=r(4568),i=r(4871);function a(e){let{className:t="link-icon"}=e,{itemCount:r,open:a}=(0,i.useCart)();return(0,n.jsxs)("button",{type:"button",className:t,"aria-label":`Warenkorb${r?`, ${r} Artikel`:""}`,title:"Warenkorb",onClick:a,style:{position:"relative",background:"none",border:"none",cursor:"pointer",color:"inherit"},children:[(0,n.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"9",cy:"21",r:"1"}),(0,n.jsx)("circle",{cx:"20",cy:"21",r:"1"}),(0,n.jsx)("path",{d:"M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"})]}),r>0&&(0,n.jsx)("span",{"aria-hidden":"true",style:{position:"absolute",top:-6,right:-8,minWidth:16,height:16,padding:"0 4px",borderRadius:999,background:"var(--color-brand-primary, #0a7d3f)",color:"#fff",fontSize:11,lineHeight:"16px",textAlign:"center",fontWeight:700},children:r})]})}},6449:(e,t,r)=>{r.d(t,{ProductSliderLoader:()=>o});var n=r(4568),i=r(7620),a=r(2644);function o(e){let{categorySlug:t,themes:r=[],slot:o="slider-category",apiPath:l="/api/shop/recommendations",title:s,subtitle:c,viewAllHref:d="/shop",limit:p=8,imageFit:u="cover"}=e,[h,f]=(0,i.useState)(null),[g,x]=(0,i.useState)(void 0);return((0,i.useEffect)(()=>{let e=!1,n=new URL(l,window.location.origin);n.searchParams.set("slot",o),n.searchParams.set("limit",String(p)),t&&n.searchParams.set("category",t);let i=r.map(e=>e.trim()).filter(Boolean);return i.length&&n.searchParams.set("theme",i.slice(0,8).join(",")),fetch(n.toString()).then(e=>e.ok?e.json():{products:[]}).then(t=>{e||(f(t.products??[]),x("string"==typeof t.viewAllHref&&t.viewAllHref?t.viewAllHref:void 0))}).catch(()=>{e||f([])}),()=>{e=!0}},[t,r.join("|"),o,l,p]),h&&0!==h.length)?(0,n.jsx)(a.ProductSlider,{title:s,subtitle:c,products:h,viewAllHref:"/shop"===d&&g?g:d,imageFit:u}):null}},7304:(e,t,r)=>{r.d(t,{ArticleRecommendations:()=>l});var n=r(4568),i=r(7620),a=r(3454),o=r(3272);function l(e){let{placement:t,...r}=e,[l,s]=(0,i.useState)(null);return((0,i.useEffect)(()=>{s((0,o.IX)("rec_position"))},[]),null===l||l!==t)?null:(0,n.jsx)(a.InArticleProductsLoader,{...r})}},7348:(e,t,r)=>{r.d(t,{ProductDetail:()=>s});var n=r(4568),i=r(7620),a=r(4871),o=r(5795);let l="var(--color-brand-primary, #688816)";function s(e){let{product:t,backHref:r="/shop",trustElements:s}=e,{addItem:c}=(0,a.useCart)(),[d,p]=(0,i.useState)(!1),[u,h]=(0,i.useState)(!1),[f,g]=(0,i.useState)(1),x=t.images.length?t.images:t.imageUrl?[t.imageUrl]:[],[m,y]=(0,i.useState)(0),v="number"==typeof t.compareAtPriceCents&&null!=t.priceCents&&t.compareAtPriceCents>t.priceCents,b=t.available&&!!t.firstVariantId,j="number"==typeof t.totalInventory?t.totalInventory>0:!!t.available||null;async function k(){if(b&&!d){p(!0);try{await c(t.firstVariantId,f),h(!0),setTimeout(()=>h(!1),1600)}catch{}finally{p(!1)}}}return(0,n.jsxs)("div",{className:"container",style:{paddingTop:"var(--space-24)",paddingBottom:"var(--space-64)"},children:[(0,n.jsx)("a",{href:r,className:"t-c-sm",style:{color:l,textDecoration:"none",fontWeight:600},children:"â Zur\xfcck zum Shop"}),(0,n.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr) minmax(0, 1fr)",gap:"var(--space-40)",marginTop:"var(--space-20)",alignItems:"start"},className:"pdp-grid",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{style:{background:"#fff",border:"1px solid var(--color-border-light, #eee)",aspectRatio:"1 / 1",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:x[m]?(0,n.jsx)("img",{src:x[m],alt:t.title,style:{width:"100%",height:"100%",objectFit:"contain",padding:"24px"}}):null}),x.length>1&&(0,n.jsx)("div",{style:{display:"flex",gap:"var(--space-8)",marginTop:"var(--space-12)",flexWrap:"wrap"},children:x.map((e,t)=>(0,n.jsx)("button",{type:"button",onClick:()=>y(t),"aria-label":`Bild ${t+1}`,style:{width:64,height:64,padding:4,background:"#fff",border:t===m?`2px solid ${l}`:"1px solid var(--color-border, #ddd)",cursor:"pointer"},children:(0,n.jsx)("img",{src:e,alt:"",style:{width:"100%",height:"100%",objectFit:"contain"}})}
1,e+t))})]}),(0,n.jsxs)("div",{children:[t.productType&&(0,n.jsx)("div",{className:"overline",style:{color:"var(--color-text-tertiary)",textTransform:"uppercase",letterSpacing:"0.04em",fontSize:12},children:t.productType}),(0,n.jsx)("h1",{className:"t-h-lg",style:{margin:"4px 0 var(--space-12)",color:"var(--color-text-primary)"},children:t.title}),t.bulletPoints.length>0&&(0,n.jsx)("ul",{style:{margin:"0 0 var(--space-20)",paddingLeft:"1.25em",listStyleType:"disc",listStylePosition:"outside",color:"var(--color-text-secondary)",lineHeight:1.6},children:t.bulletPoints.map((e,t)=>(0,n.jsx)("li",{style:{display:"list-item",marginBottom:"4px"},children:e},t))}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:"var(--space-12)",flexWrap:"wrap",marginBottom:"4px"},children:[(0,n.jsx)("span",{style:{fontWeight:700,fontSize:"1.6rem",color:"var(--color-text-primary)"},children:(0,o.q)(t.priceCents,t.currency)}),v&&(0,n.jsxs)("span",{style:{color:"#8a8a7a",fontSize:"1rem",textDecoration:"line-through"},children:[t.strikeExplanation?`${t.strikeExplanation} `:"statt ",(0,o.q)(t.compareAtPriceCents,t.currency)]})]}),(0,n.jsx)("div",{style:{fontSize:"0.8rem",fontStyle:"italic",color:"#8a8a8a",marginBottom:"var(--space-12)"},children:"inkl. MwSt. zzgl. Versandkosten, Versand wird an der Kasse berechnet"}),null!==j&&(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:"var(--space-16)",fontSize:"0.9rem",fontWeight:600},children:[(0,n.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:j?"#3a9a3a":"#e08a1e",display:"inline-block"}}),(0,n.jsx)("span",{style:{color:j?"#2f7d2f":"#c2740f"},children:j?"Auf Lager":"Aktuell nicht auf Lager"})]}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"stretch",gap:"var(--space-12)",flexWrap:"wrap",marginBottom:"var(--space-16)"},children:[b&&(0,n.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",border:"1px solid var(--color-border, #ddd)"},children:[(0,n.jsx)("button",{type:"button","aria-label":"Menge verringern",onClick:()=>g(e=>Math.max(1,e-1)),style:{width:40,height:"100%",minHeight:44,background:"#fff",border:"none",cursor:"pointer",fontSize:"1.1rem",color:"var(--color-text-secondary)"},children:"â"}),(0,n.jsx)("span",{style:{minWidth:32,textAlign:"center",fontWeight:700},children:f}),(0,n.jsx)("button",{type:"button","aria-label":"Menge erh\xf6hen",onClick:()=>g(e=>Math.min(99,e+1)),style:{width:40,height:"100%",minHeight:44,background:"#fff",border:"none",cursor:"pointer",fontSize:"1.1rem",color:"var(--color-text-secondary)"},children:"+"})]}),b?(0,n.jsx)("button",{type:"button",onClick:k,disabled:u||d,style:{flex:"1 1 auto",background:u?"#3a7a3a":l,color:"#fff",border:"none",padding:"var(--space-12) var(--space-24)",fontWeight:700,fontSize:"1rem",cursor:u||d?"default":"pointer",borderRadius:0},children:u?"Im Warenkorb â":d?"Wird hinzugef\xfcgtâ¦":"In den Warenkorb"}):(0,n.jsx)("span",{style:{color:"var(--color-text-tertiary)"},children:"Zurzeit nicht verf\xfcgbar"})]}),s&&s.length>0&&(0,n.jsx)("div",{style:{borderTop:"1px solid var(--color-border-light, #eee)",marginBottom:"var(--space-24)"},children:s.map((e,t)=>(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"var(--space-12) 0",borderBottom:"1px solid var(--color-border-light, #eee)"},children:[(0,n.jsx)("span",{style:{flex:"0 0 auto",color:"var(--color-text-secondary)"},children:function(e){let t={width:22,height:22,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"};return"shipping"===e?(0,n.jsxs)("svg",{...t,children:[(0,n.jsx)("path",{d:"M1 3h15v13H1z"}),(0,n.jsx)("path",{d:"M16 8h4l3 3v5h-7z"}),(0,n.jsx)("circle",{cx:"5.5",cy:"18.5",r:"2"}),(0,n.jsx)("circle",{cx:"18.5",cy:"18.5",r:"2"})]}):"payment"===e?(0,n.jsxs)("svg",{...t,children:[(0,n.jsx)("rect",{x:"1",y:"4",width:"22",height:"16",rx:"2"}),(0,n.jsx)("path",{d:"M1 10h22"})]}):(0,n.jsxs)("svg",{...t,children:[(0,n.jsx)("path",{d:"M3 7v6h6"}),(0,n.jsx)("path",{d:"M3 13a9 9 0 1 0 3-7L3 9"})]})}(e.icon)}),(0,n.jsx)("span",{style:{fontSize:"0.9rem",fontWeight:600,color:"var(--color-text-primary)"},children:e.text})]},t))}),(0,n.jsxs)("details",{style:{borderTop:"1px solid var(--color-border-light, #eee)",borderBottom:"1px solid var(--color-border-light, #eee)",marginBottom:"var(--space-24)"},children:[(0,n.jsx)("summary",{style:{cursor:"pointer",padding:"var(--space-12) 0",fontSize:"0.9rem",fontWeight:600,color:"var(--color-text-primary)"},children:"Gesetzliche Gew\xe4hrleistung"}),(0,n.jsxs)("div",{style:{paddingBottom:"var(--space-16)"},children:[(0,n.jsxs)("p",{style:{fontSize:"0.85rem",color:"var(--color-text-secondary)",lineHeight:1.6,margin:"0 0 var(--space-12)"},children:["Mindestens zwei Jahre gesetzliche Gew\xe4hrleistung der Vertragsm\xe4\xdfigkeit f\xfcr Waren, die in der Europ\xe4ischen Union verkauft werden. Weitere Informationen zu Ihren Rechten:"," ",(0,n.jsx)("a",{href:"https://europa.eu/youreurope/citizens/consumers/shopping/guarantees-returns/index_de.htm",target:"_blank",rel:"noopener noreferrer",style:{color:l},children:"europa.eu/youreurope"}),"."]}),(0,n.jsx)("img",{src:"https://cdn.shopify.com/s/files/1/0839/1560/4263/files/gesetzliche-gewaehleistung.webp?v=1788857012",alt:"Gesetzliche Gew\xe4hrleistung â Verbraucherinformation der Europ\xe4ischen Union",loading:"lazy",style:{width:"100%",maxWidth:460,height:"auto",display:"block",border:"1px solid var(--color-border-light, #eee)"}})]})]}),t.bodyHtml&&(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{style:{fontSize:"1.05rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.03em",color:"var(--color-text-primary)",margin:"0 0 var(--space-12)"},children:"Produktbeschreibung"}),(0,n.jsx)("div",{className:"t-wysiwyg",style:{color:"var(--color-text-secondary)",lineHeight:1.65},dangerouslySetInnerHTML:{__html:t.bodyHtml}})]})]})]}),(0,n.jsx)("style",{children:"@media (max-width: 720px){ .pdp-grid{ grid-template-columns: 1fr !important; } }"})]})}},8693:(e,t,r)=>{r.d(t,{ProductHighlight:()=>d});var n=r(4568),i=r(7620),a=r(4871),o=r(5322),l=r(5795),s=r(4583);let c="var(--color-brand-primary, #688816)";function d(e){let{product:t,overline:r="Aus dem Shop",attribution:d}=e,{addItem:p}=(0,a.useCart)(),[u,h]=(0,i.useState)(!1),[f,g]=(0,i.useState)(!1),x=t.available&&!!t.firstVariantId,m=t.handle?`/shop/${encodeURIComponent(t.handle)}`:null;function y(e){return{product_id:t.id,handle:t.handle,slot:d?.slot,context_hash:d?.contextHash,article:(0,s.B)(),location:e}}async function v(){if(x&&!u){h(!0);try{(0,s.G)("shop_add_to_cart",y("inline-highlight")),await p(t.firstVariantId,1,d),g(!0),setTimeout(()=>g(!1),1500)}catch{}finally{h(!1)}}}return(0,n.jsxs)("aside",{"data-shop-inline-highlight":t.id,style:{position:"relative",margin:"32px 0",background:"#ffffff",borderRadius:0,boxShadow:"0 6px 20px rgba(15, 30, 25, 0.08), 0 1px 3px rgba(15, 30, 25, 0.05)",display:"grid",gridTemplateColumns:"clamp(96px, 30vw, 140px) minmax(0, 1fr)",alignItems:"stretch",overflow:"hidden",cursor:m?"pointer":"default"},children:[m&&(0,n.jsx)("a",{href:m,"aria-label":t.title,onClick:()=>(0,s.G)("shop_product_click",y("inline-highlight")),style:{position:"absolute",inset:0,zIndex:1}}),(0,n.jsx)("div",{style:{position:"relative",background:"#ffffff",aspectRatio:"1 / 1",padding:"18px 14px"},children:(0,n.jsx)(o.CoverFrame,{src:t.imageUrl||"",alt:t.title,background:"transparent",rotateDeg:-1.5})}),(0,n.jsxs)("div",{style:{padding:"18px 22px 20px",display:"flex",flexDirection:"column",gap:"4px",minWidth:0},children:[(0,n.jsx)("span",{style:{color:c,fontWeight:700,letterSpacing:"0.12em",textTransform:"uppercase",fontSize:"10px",marginBottom:"4px"},children:r}),(0,n.jsx)("h4",{style:{margin:0,color:"#1a2e22",fontWeight:600,fontSize:"17px",lineHeight:1.25,letterSpacing:"-0.01em",wordBreak:"break-word"},children:t.title}),t.productType&&(0,n.jsx)("p",{style:{margin:0,color:"#4a6a52",fontSize:"12px",lineHeight:1.4},children:t.productType}),(0,n.jsxs)("div",{style:{marginTop:"auto",paddingTop:"14px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px",flexWrap:"wrap"},children:[(0,n.jsx)("span",{style:{color:"#1a2e22",fontWeight:700,fontSize:"19px",letterSpacing:"-0.01em"},children:(0,l.q)(t.priceCents,t.currency)}),x?(0,n.jsx)("button",{onClick:v,disabled:f||u,style:{background:f?"#3a7a3a":c,color:"#ffffff",border:"none",padding:"10px 18px",fontWeight:600,fontSize:"13px",cursor:f||u?"default":"pointer",borderRadius:0,whiteSpace:"nowrap",transition:"background 180ms ease",position:"relative",zIndex:2},onMouseEnter:e=>{f||u||(e.currentTarget.style.filter="brightness(1.12)")},onMouseLeave:e=>{f||u||(e.currentTarget.style.filter="none")},children:f?"Im Warenkorb":u?"â¦":"In den Warenkorb"}):(0,n.jsx)("span",{style:{color:"#8a8a7a",fontSize:"12px"},children:"Nicht verf\xfcgbar"})]})]})]})}},9115:(e,t,r)=>{r.d(t,{CartDrawer:()=>l});var n=r(4568),i=r(7620),a=r(4871),o=r(5795);function l(){let{cart:e,isOpen:t,close:r,loading:l,error:c,updateQty:d,removeItem:p}=(0,a.useCart)();(0,i.useEffect)(()=>
1{if(!t)return;let e=e=>"Escape"===e.key&&r();document.addEventListener("keydown",e);let n=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=n}},[t,r]);let u=e?.lines??[],h=0===u.length;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{onClick:r,"aria-hidden":!t,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.4)",opacity:+!!t,pointerEvents:t?"auto":"none",transition:"opacity 200ms ease",zIndex:1e3}}),(0,n.jsxs)("aside",{role:"dialog","aria-label":"Warenkorb","aria-hidden":!t,style:{position:"fixed",top:0,right:0,height:"100dvh",width:"min(420px, 100vw)",background:"var(--color-surface, #fff)",boxShadow:"-4px 0 24px rgba(0,0,0,0.15)",transform:t?"translateX(0)":"translateX(100%)",transition:"transform 240ms ease",zIndex:1001,display:"flex",flexDirection:"column"},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"var(--space-16) var(--space-20)",borderBottom:"1px solid var(--color-border, #e5e5e5)"},children:[(0,n.jsxs)("strong",{className:"t-h-xs",style:{fontSize:"1.05rem"},children:["Warenkorb",e?.totalQuantity?` (${e.totalQuantity})`:""]}),(0,n.jsx)("button",{type:"button",onClick:r,"aria-label":"Schlie\xdfen",style:{background:"none",border:"none",cursor:"pointer",color:"inherit",padding:4},children:(0,n.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,n.jsx)("path",{d:"M6 18L18 6M6 6l12 12"})})})]}),(0,n.jsxs)("div",{style:{flex:1,overflowY:"auto",padding:"var(--space-8) var(--space-20)"},children:[c&&(0,n.jsx)("div",{style:{padding:"var(--space-12)",color:"#b00",fontSize:"0.9rem"},children:c}),h&&!l&&(0,n.jsx)("p",{style:{color:"var(--color-text-tertiary)",padding:"var(--space-24) 0",textAlign:"center"},children:"Dein Warenkorb ist leer."}),u.map(e=>(0,n.jsx)(s,{line:e,onUpdate:t=>t<=0?p(e.id):d(e.id,t),onRemove:()=>p(e.id),disabled:l},e.id))]}),!h&&(0,n.jsxs)("div",{style:{borderTop:"1px solid var(--color-border, #e5e5e5)",padding:"var(--space-16) var(--space-20)"},children:[(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"var(--space-8)"},children:[(0,n.jsx)("span",{style:{color:"var(--color-text-secondary)"},children:"Zwischensumme"}),(0,n.jsx)("strong",{children:(0,o.q)(e?.subtotalCents,e?.currency)})]}),(0,n.jsx)("p",{style:{fontSize:"0.8rem",color:"var(--color-text-tertiary)",marginBottom:"var(--space-12)"},children:"Versand & Steuern werden im Checkout berechnet."}),(0,n.jsx)("a",{href:e?.checkoutUrl||"#",style:{display:"block",textAlign:"center",padding:"var(--space-12)",background:"var(--color-brand-primary, #0a7d3f)",color:"#fff",borderRadius:"var(--radius-md, 6px)",fontWeight:700,textDecoration:"none"},children:"Zur Kasse"})]})]})]})}function s(e){let{line:t,onUpdate:r,onRemove:i,disabled:a}=e;return(0,n.jsxs)("div",{style:{display:"flex",gap:"var(--space-12)",padding:"var(--space-12) 0",borderBottom:"1px solid var(--color-border, #eee)"},children:[(0,n.jsx)("div",{style:{width:64,height:64,flexShrink:0,background:"var(--color-surface-2, #f6f6f6)",borderRadius:6,overflow:"hidden"},children:t.imageUrl&&(0,n.jsx)("img",{src:t.imageUrl,alt:t.productTitle,style:{width:"100%",height:"100%",objectFit:"cover"}})}),(0,n.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,n.jsx)("div",{style:{fontWeight:600,fontSize:"0.9rem",lineHeight:1.3},children:t.productTitle}),t.variantTitle&&(0,n.jsx)("div",{style:{fontSize:"0.8rem",color:"var(--color-text-tertiary)"},children:t.variantTitle}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginTop:"var(--space-8)"},children:[(0,n.jsx)(c,{qty:t.quantity,disabled:a,onChange:r}),(0,n.jsx)("strong",{style:{fontSize:"0.9rem"},children:(0,o.q)(t.lineTotalCents,t.currency)})]})]}),(0,n.jsx)("button",{type:"button",onClick:i,disabled:a,"aria-label":"Entfernen",title:"Entfernen",style:{background:"none",border:"none",cursor:"pointer",color:"var(--color-text-tertiary)",alignSelf:"flex-start",padding:2},children:(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,n.jsx)("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m3 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"})})})]})}function c(e){let{qty:t,onChange:r,disabled:i}=e,a={width:26,height:26,border:"1px solid var(--color-border, #ddd)",background:"var(--color-surface, #fff)",borderRadius:4,cursor:i?"default":"pointer",fontSize:"1rem",lineHeight:1,color:"inherit"};return(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,n.jsx)("button",{type:"button",style:a,disabled:i,"aria-label":"Menge verringern",onClick:()=>r(t-1),children:"â"}),(0,n.jsx)("span",{style:{minWidth:20,textAlign:"center",fontSize:"0.9rem"},children:t}),(0,n.jsx)("button",{type:"button",style:a,disabled:i,"aria-label":"Menge erh\xf6hen",onClick:()=>r(t+1),children:"+"})]})}}}]);
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.