1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{338:(e,t,r)=>{"use strict";r.d(t,{Navbar:()=>k});var a=r(5155),l=r(2619),n=r.n(l),s=r(2115),o=r(9511),i=r(3101),d=r(6615),c=r(4269);let u=o.bL,m=o.l9,h=o.bm,p=o.ZL,f=s.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,a.jsx)(o.hJ,{className:(0,c.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...l,ref:t})});f.displayName=o.hJ.displayName;let x=(0,i.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),g=s.forwardRef((e,t)=>{let{side:r="right",className:l,children:n,...s}=e;return(0,a.jsxs)(p,{children:[(0,a.jsx)(f,{}),(0,a.jsxs)(o.UC,{ref:t,className:(0,c.cn)(x({side:r}),l),...s,children:[(0,a.jsxs)(o.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,a.jsx)(d.A,{className:"h-4 w-4"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]}),n]})]})});g.displayName=o.UC.displayName;let b=s.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,a.jsx)(o.hE,{ref:t,className:(0,c.cn)("text-lg font-semibold text-foreground",r),...l})});b.displayName=o.hE.displayName,s.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,a.jsx)(o.VY,{ref:t,className:(0,c.cn)("text-sm text-muted-foreground",r),...l})}).displayName=o.VY.displayName;var v=r(3998),y=r(2241),j=r(8606),w=r(5695),N=r(3128);function k(e){var t,r,l,o,i,c,p;let{navigation:f,hasProjects:x=!0}=e,{isOpen:k,setIsOpen:A}=(0,w.H)(),{trackClick:C}=(0,N.Y)(),[I,H]=(0,s.useState)([]),[E,P]=(0,s.useState)([]),[S,L]=(0,s.useState)([]),[D]=(0,s.useState)(f),[W,M]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{W&&e();async function e(){try{let[e,t,r]=await Promise.all([fetch("/api/posts"),fetch("/api/pages"),fetch("/api/projekte")]);if(e.ok){let t=await e.json();H(t)}if(t.ok){let e=await t.json();P(e)}if(r.ok){let e=await r.json();L(e)}}catch(e){console.error("Error fetching search data:",e)}}},[W]),(0,a.jsx)("header",{className:"sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:(0,a.jsxs)("div",{className:"container flex h-14 items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-6",children:[(0,a.jsx)(n(),{href:(null==D||null==(t=D.brand)?void 0:t.url)||"/",className:"flex items-center space-x-2",onClick:()=>C("Navbar - Logo/Home"),children:(0,a.jsx)("span",{className:"font-bold",children:(null==D||null==(r=D.brand)?void 0:r.name)||"IngD4C"})}),(0,a.jsx)("nav",{className:"hidden md:flex items-center space-x-6 text-sm font-medium",children:null==D||null==(o=D.navItems)||null==(l=o.filter(e=>"/projekte"!==e.url||!!x))?void 0:l.map(e=>(0,a.jsx)(n(),{href:e.url,className:"px-3 py-2 text-foreground transition-colors duration-300 hover:text-primary",title:e.description,onClick:()=>C("Navbar - Desktop Link",e.label),children:e.label},e.url))})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"hidden md:block",children:(0,a.jsx)(j.s,{posts:I,pages:E,projekte:S,variant:"navbar",onOpenChange:e=>{e&&!W&&M(!0)}})}),(0,a.jsx)("div",{className:"md:hidden",children:(0,a.jsxs)(u,{open:k,onOpenChange:A,children:[(0,a.jsx)(m,{asChild:!0,suppressHydrationWarning:!0,children:(0,a.jsxs)(v.$,{variant:"ghost",size:"default",className:"flex items-center gap-2",onClick:()=>C("Navbar - Mobile Menu Toggle"),children:[k?(0,a.jsx)(d.A,{className:"h-5 w-5"}):(0,a.jsx)(y.A,{className:"h-5 w-5"}),(0,a.jsx)("span",{className:"text-base font-medium",children:"Men\xfc"})]})}),(0,a.jsxs)(g,{side:"right",className:"pr-0 flex flex-col [&>button]:hidden",children:[(0,a.jsxs)("div",{className:"flex-1 overflow-y-auto",children:[(0,a.jsx)(b,{className:"px-7 pt-6 pb-4",children:"Navigationsmen\xfc"}),(0,a.jsxs)("div",{className:"px-7 pb-6",children:[(0,a.jsx)(n(),{href:(null==D||null==(i=D.brand)?void 0:i.url)||"/",className:"flex items-center",onClick:()=>{C("Navbar - Mobile Menu Logo/Home"),A(!1)},children:(0,a.jsx)("span",{className:"font-bold",children:(null==D||null==(c=D.brand)?void 0:c.name)||"IngD4C"})}),(0,a.jsx)("div",{className:"mt-6 flex flex-col space-y-3",children:null==D||null==(p=D.navItems)?void 0:p.map(e=>(0,a.jsx)(n(),{href:e.url,onClick:()=>{C("Navbar - Mobile Menu Link",e.label),A(!1)},className:"text-muted-foreground transition-colors hover:text-foreground",title:e.description,children:e.label},e.url))})]})]}),(0,a.jsx)("div",{className:"flex-shrink-0 p-6 flex justify-end",children:(0,a.jsx)(h,{asChild:!0,children:(0,a.jsx)(v.$,{onClick:()=>{C("Navbar - Mobile Menu Close"),A(!1)},size:"lg",className:"bg-red-600 hover:bg-red-700 text-white h-14 w-14 rounded-xl shadow-lg hover:shadow-xl transition-all duration-200","aria-label":"Men\xfc schlie\xdfen",children:(0,a.jsx)(d.A,{className:"h-6 w-6"})})})})]})]})})]})]})})}},613:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,6795,23)),Promise.resolve().then(r.bind(r,2349)),Promise.resolve().then(r.t.bind(r,3673,23)),Promise.resolve().then(r.bind(r,5209)),Promise.resolve().then(r.bind(r,2415)),Promise.resolve().then(r.bind(r,6225)),Promise.resolve().then(r.bind(r,6352)),Promise.resolve().then(r.bind(r,7778)),Promise.resolve().then(r.bind(r,338)),Promise.resolve().then(r.bind(r,6253)),Promise.resolve().then(r.bind(r,6472)),Promise.resolve().then(r.bind(r,9562))},2349:(e,t,r)=>{"use strict";r.d(t,{FathomAnalytics:()=>d});var a=r(5155),l=r(3943),n=r(2115),s=r(63);function o(){let e=(0,s.usePathname)(),t=(0,n.useRef)(new Set);return(0,n.useEffect)(()=>{t.current.clear();let e=!1,r=()=>{e||(window.requestAnimationFrame(()=>{(()=>{let e=window.innerHeight,r=document.documentElement.scrollHeight,a=window.scrollY||document.documentElement.scrollTop,n=r-e;if(n<=0)return;let s=Math.round(a/n*100);
1[25,50,75,100].forEach(e=>{s>=e&&!t.current.has(e)&&(t.current.add(e),(0,l.sx)("Scroll ".concat(e,"%")))})})(),e=!1}),e=!0)};return window.addEventListener("scroll",r,{passive:!0}),()=>{window.removeEventListener("scroll",r)}},[e]),null}function i(){let e=(0,s.usePathname)(),t=(0,s.useSearchParams)();return(0,n.useEffect)(()=>{let e="BWXYWDBP";e&&(0,l.Hh)(e,{auto:!1})},[]),(0,n.useEffect)(()=>{e&&(0,l.in)({url:e+((null==t?void 0:t.toString())?"?".concat(t.toString()):""),referrer:document.referrer})},[e,t]),null}function d(){return(0,a.jsxs)(n.Suspense,{fallback:null,children:[(0,a.jsx)(i,{}),(0,a.jsx)(o,{})]})}},2415:(e,t,r)=>{"use strict";r.d(t,{FooterLink:()=>i});var a=r(5155),l=r(2619),n=r.n(l),s=r(8647),o=r(4269);function i(e){let{url:t,label:r,isExternal:l}=e,i=(0,o.cn)("inline-flex items-center gap-2","font-medium","transition-colors duration-200","!text-gray-700 hover:!text-gray-900","underline decoration-2 !decoration-red-600/60 hover:!decoration-red-700","underline-offset-4");return l||t.startsWith("http")?(0,a.jsx)(s.ExternalLink,{href:t,context:"Footer",className:i,children:r}):(0,a.jsx)(n(),{href:t,className:i,children:r})}},3128:(e,t,r)=>{"use strict";r.d(t,{Y:()=>l});var a=r(3943);function l(){return{trackClick:(e,t)=>{let r=t?"".concat(e," - ").concat(t):e;try{(0,a.sx)(r)}catch(e){}}}}},3673:()=>{},3998:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>i});
1var a=r(5155),l=r(2115),n=r(2467),s=r(3101),o=r(4269);let i=(0,s.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline decoration-red-600/60 decoration-2 underline-offset-4 hover:decoration-red-700"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3 text-xs",lg:"h-10 px-4",auto:"h-8 px-2 w-auto text-xs",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=l.forwardRef((e,t)=>{let{className:r,variant:l,size:s,asChild:d=!1,...c}=e,u=d?n.DX:"button";return(0,a.jsx)(u,{className:(0,o.cn)(i({variant:l,size:s,className:r})),ref:t,...c})});d.displayName="Button"},4269:(e,t,r)=>{"use strict";r.d(t,{N$:()=>c,Yq:()=>o,_w:()=>s,af:()=>m,cn:()=>n,iH:()=>u,yn:()=>i});var a=r(2821),l=r(5889);function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.QP)((0,a.$)(t))}function s(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(null==e)return t;if("boolean"==typeof e)return e;if("string"==typeof e){let t=e.toLowerCase().trim();if("true"===t||"1"===t)return!0;if("false"===t||"0"===t||""===t)return!1}return t}function o(e){return new Date(e).toLocaleDateString("de-DE",{year:"numeric",month:"long",day:"numeric"})}function i(e,t){let r=d(t);return"/blog/".concat(r)}function d(e){return e.toLowerCase().replace(/ü/g,"ue").replace(/ä/g,"ae").replace(/ö/g,"oe").replace(/Ã/g,"ss").replace(/\s+/g,"-").replace(/_/g,"-").replace(/[.\/&%"?#@!*()[\]{}|\\;:',=+$~`^]/g,"").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}function c(e,t){let r=d(t);return"/projekte/".concat(r)}function u(e){var t;return e?e.carousel&&Array.isArray(e.carousel)?e.carousel.map(e=>({src:e.src,alt:e.alt||"",caption:e.caption})):e.gallery&&Array.isArray(e.gallery)?e.gallery.map(e=>({src:"string"==typeof e?e:e.url||e.src||"",alt:"string"==typeof e?"":e.alt||"",caption:"string"==typeof e?void 0:e.caption||e.title||void 0})):(null==(t=e.heroImage)?void 0:t.url)?[{src:e.heroImage.url,alt:e.heroImage.alt||e.title||"",caption:e.heroImage.caption}]:[]:[]}function m(e){return e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")}},5209:(e,t,r)=>{"use strict";r.r(t),r.d(t,{SocialLink:()=>x});var a=r(5155),l=r(8647),n=r(9931),s=r(2801),o=r(2255),i=r(4492),d=r(7974),c=r(5666),u=r(9906),m=r(8623),h=r(4269);let p={Instagram:n.A,Facebook:s.A,LinkedIn:o.A,Twitter:i.A,X:i.A,Email:d.A,Website:c.A,YouTube:u.A,WhatsApp:m.A,Telegram:m.A},f={Instagram:"text-pink-600 hover:text-pink-700",Facebook:"text-blue-600 hover:text-blue-700",LinkedIn:"text-blue-700 hover:text-blue-800",Twitter:"text-sky-500 hover:text-sky-600",X:"text-gray-900 hover:text-gray-950",Email:"text-gray-700 hover:text-gray-800",Website:"text-gray-700 hover:text-gray-800",YouTube:"text-red-600 hover:text-red-700",WhatsApp:"text-green-600 hover:text-green-700",Telegram:"text-blue-500 hover:text-blue-600"};function x(e){let{platform:t,url:r,label:n,className:s,context:o="Page Content",showIcon:i=!0,showLabel:d=!0}=e,c=p[t],u=f[t],m="Email"!==t||r.startsWith("mailto:")?r:"mailto:".concat(r),x="Footer"===o;return(0,a.jsxs)(l.ExternalLink,{href:m,className:(0,h.cn)("inline-flex items-center gap-2","transition-colors duration-200",x?"":"py-2 px-1",x?x?["font-medium","!text-gray-700 hover:!text-gray-900","underline decoration-2 !decoration-red-600/60 hover:!decoration-red-700","underline-offset-4"]:[]:u,s),context:o,children:[i&&c&&(0,a.jsx)(c,{className:"w-5 h-5 flex-shrink-0","aria-hidden":"true"}),d&&(0,a.jsx)("span",{children:n||t})]})}},5695:(e,t,r)=>{"use strict";r.d(t,{$:()=>s,H:()=>o});
1var a=r(5155),l=r(2115);let n=(0,l.createContext)(void 0);function s(e){let{children:t}=e,[r,s]=(0,l.useState)(!1);return(0,a.jsx)(n.Provider,{value:{isOpen:r,setIsOpen:s},children:t})}function o(){let e=(0,l.useContext)(n);if(void 0===e)throw Error("useMobileMenu must be used within a MobileMenuProvider");return e}},6225:(e,t,r)=>{"use strict";r.d(t,{HeroWrapper:()=>p});var a=r(5155),l=r(2115),n=r(63),s=r(5239),o=r(2619),i=r.n(o),d=r(4269);function c(e){let{post:t,page:r,showOverlay:n=!1,overlayTitle:o,overlaySubtitle:c,overlayOpacity:u=30,blurIntensity:m=0}=e,h=(null==t?void 0:t.featuredImage)||(null==r?void 0:r.heroImage);if(!h)return null;let p=o||(null==t?void 0:t.title)||(null==r?void 0:r.title)||"",f=c||(null==t?void 0:t.subtitle)||(null==r?void 0:r.subtitle)||"",x=(null==t?void 0:t.published_in)||(null==r?void 0:r.published_in),g=(null==t?void 0:t.author)||(null==r?void 0:r.author),b=(null==t?void 0:t.date)||(null==r?void 0:r.date),[v,y]=(0,l.useState)(p),[j,w]=(0,l.useState)(f),[N,k]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(p!==v||f!==j){k(!0);let e=setTimeout(()=>{y(p),w(f),k(!1)},150);return()=>clearTimeout(e)}},[p,f,v,j]),(0,a.jsx)("section",{className:"relative w-full",role:"banner","aria-label":"Hero section",children:(0,a.jsxs)("div",{className:"relative w-full aspect-[2/1] sm:aspect-[4/1] overflow-hidden group",children:[(0,a.jsx)("div",{className:"absolute top-3 right-3 z-20",children:(0,a.jsx)(i(),{href:"/","aria-label":"Zur Startseite",children:(0,a.jsx)(s.default,{src:"/ingd4c-logo-4c.svg",alt:"IngD4C",width:320,height:80,className:"h-16 md:h-20 lg:h-24 w-auto drop-shadow-xl",sizes:"(min-width: 1024px) 320px, (min-width: 768px) 280px, 220px",priority:!0})})}),(0,a.jsx)(s.default,{src:h.url.startsWith("http")||h.url.startsWith("/")?h.url:"/".concat(h.url),alt:h.alt||p||"Hero image",fill:!0,className:"object-cover",style:{filter:m>0?"blur(".concat(m,"px)"):"none"},priority:!0,sizes:"100vw"}),(0,a.jsx)("div",{className:"absolute inset-0",style:{backgroundColor:n&&(v||j)?"rgba(0, 0, 0, ".concat(u/100,")"):"transparent"},role:n&&(v||j)?"img":void 0,"aria-label":n&&(v||j)?"".concat(v).concat(j?" - ".concat(j):""):void 0,"data-hero-overlay":n&&(v||j)?"true":void 0,children:(0,a.jsx)("div",{className:"flex items-end justify-start h-full pb-8",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 text-left text-white max-w-[64rem]",children:[n&&v&&(0,a.jsx)("h1",{className:"text-3xl sm:text-3xl md:text-4xl lg:text-5xl xl:text-6xl font-bold mb-2 sm:mb-3 md:mb-4 drop-shadow-2xl leading-tight transition-opacity duration-150 ".concat(N?"opacity-0":"opacity-100"),children:v}),n&&j&&(0,a.jsx)("p",{className:"text-base sm:text-base md:text-lg lg:text-xl xl:text-2xl font-medium opacity-95 drop-shadow-lg leading-relaxed mb-4 sm:mb-5 transition-opacity duration-150 ".concat(N?"opacity-0":"opacity-100"),children:j}),n&&(x||g||b)&&(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row items-start justify-start gap-2 sm:gap-4 text-sm sm:text-base opacity-90",children:[b&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("svg",{className:"w-3 h-3 sm:w-4 sm:h-4",fill:"currentColor",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"})}),(0,a.jsx)("span",{children:new Date(b).toLocaleDateString("de-DE",{year:"numeric",month:"long",day:"numeric"})})]}),x&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("svg",{className:"w-3 h-3 sm:w-4 sm:h-4",fill:"currentColor",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M4 4a2 2 0 00-2 2v8a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2H4zm2 6a2 2 0 114 0 2 2 0 01-4 0zm8 0a2 2 0 11-4 0 2 2 0 014 0z",clipRule:"evenodd"})}),(0,a.jsx)("span",{children:x})]}),g&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("svg",{className:"w-3 h-3 sm:w-4 sm:h-4",fill:"currentColor",viewBox:"0 0 20 20",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})}),(0,a.jsx)("span",{children:g})]})]})]})})}),h.caption&&""!==h.caption.trim()&&(0,a.jsx)("div",{className:"absolute bottom-0 right-0 bg-[#e3000b]/50 text-white text-right px-2 md:px-4 lg:px-6 py-1.5 md:py-2 lg:py-3 transition-transform duration-300 ease-out caption-overlay ".concat((0,d._w)(h.showCaptionAlways,!0)?"transform translate-y-0":"transform translate-y-full group-hover:translate-y-0"),children:(0,a.jsx)("p",{className:"text-xs sm:text-sm md:text-base font-semibold whitespace-nowrap",children:h.caption.split("|")[0].trim()})})]})})}function u(){return(0,a.jsx)("section",{className:"relative w-full",role:"banner","aria-label":"Hero section loading","aria-busy":"true",children:(0,a.jsxs)("div",{className:"relative w-full aspect-[2/1] sm:aspect-[4/1] overflow-hidden bg-gray-200",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 animate-shimmer bg-[length:200%_100%]"}),(0,a.jsx)("div",{className:"absolute inset-0 flex items-end justify-start pb-8",children:(0,a.jsxs)("div",{className:"container mx-auto px-4 text-left max-w-[64rem]",children:[(0,a.jsx)("div",{className:"h-8 sm:h-10 md:h-12 lg:h-14 xl:h-16 w-3/4 bg-gray-300/50 rounded mb-2 sm:mb-3 md:mb-4"}),(0,a.jsx)("div",{className:"h-4 sm:h-5 md:h-6 lg:h-7 xl:h-8 w-1/2 bg-gray-300/30 rounded"})]})})]})})}var m=r(9562),h=r(6472);function p(){var e,t;let[r,s]=(0,l.useState)(null),[o,i]=(0,l.useState)(null),[p,f]=(0,l.useState)(null),[x,g]=(0,l.useState)(null),b=(0,n.usePathname)(),{setHeroWithOverlay:v}=(0,m.g)(),{currentPost:y}=(0,h.e)();if((0,l.useEffect)(()=>{!async function(){try{var e,t,r,a;
1let l="/"===b,n="/"!==b&&!b.startsWith("/blog")&&!b.startsWith("/projekte")&&!b.startsWith("/admin")&&!b.startsWith("/preview"),o=b.startsWith("/projekte/"),c=[fetch("/api/site-settings").then(e=>e.ok?e.json():null)];if(l&&c.push(fetch("/api/homepage").then(e=>e.ok?e.json():null)),n){let e=b.replace("/","");c.push(fetch("/api/pages?slug=".concat(e)).then(e=>e.ok?e.json():null))}if(o){let e=b.replace("/projekte/","");c.push(fetch("/api/projekte?slug=".concat(e)).then(e=>e.ok?e.json():null))}let u=await Promise.all(c),m=u[0],h=null,p=null,x=null,v=1;if(l&&(h=u[v++]),n&&(p=u[v++]),o&&(x=u[v++]),i(m),m){let e=((e,t)=>{if(!(null==t?void 0:t.defaultHeroImage)||e.startsWith("/admin")||e.startsWith("/preview"))return null;if("/"===e)return{page:{title:"IngD4C",subtitle:"Ingenieurbaukunst â Design for Construction",heroImage:t.defaultHeroImage}};if("/blog"===e)return{page:{title:"Blog",subtitle:"Alle #IngD4C-Beitr\xe4ge",heroImage:t.defaultHeroImage}};if("/projekte"===e)return{page:{title:"Projekte",subtitle:"Alle #IngD4C-Projekte",heroImage:t.defaultHeroImage}};if(e.startsWith("/blog/"))return{post:{title:"",subtitle:"",featuredImage:t.defaultHeroImage}};if(e.startsWith("/projekte/")){let r=e.replace("/projekte/","");return{page:{title:(0,d.af)(r),subtitle:"",heroImage:t.defaultHeroImage}}}else{let r=e.replace("/","");return{page:{title:(0,d.af)(r),subtitle:"",heroImage:t.defaultHeroImage}}}})(b,m);e&&s(e)}if(l&&h&&f(h),n&&p){let e=Array.isArray(p)?p:[p];e.length>0&&g(e[0])}if(b.startsWith("/blog/"))y&&((null==m?void 0:m.defaultHeroImage)?s({post:{...y,featuredImage:m.defaultHeroImage}}):s({post:y}));else if(b.startsWith("/projekte/")&&x){let e=(Array.isArray(x)?x:[x])[0];(null==m?void 0:m.defaultHeroImage)?s({page:{title:e.title||"Projekt",subtitle:e.subtitle||"",heroImage:m.defaultHeroImage,published_in:e.published_in,author:e.author}}):s({page:{title:e.title||"Projekt",subtitle:e.subtitle||"",published_in:e.published_in,author:e.author}})}else if("/blog"===b)(null==m?void 0:m.defaultHeroImage)&&s({page:{title:"Blog",subtitle:"Alle #IngD4C-Beitr\xe4ge",heroImage:m.defaultHeroImage}});else if("/projekte"===b)(null==m?void 0:m.defaultHeroImage)&&s({page:{title:"Projekte",subtitle:"Alle #IngD4C-Projekte",heroImage:m.defaultHeroImage}});else if("/"===b)(null==m?void 0:m.defaultHeroImage)&&s({page:{title:(null==h||null==(e=h.frontmatter)?void 0:e.heroTitle)||"IngD4C",subtitle:(null==h||null==(t=h.frontmatter)?void 0:t.heroSubtitle)||"Ingenieurbaukunst â Design for Construction",heroImage:m.defaultHeroImage}});else if(p){let e=(Array.isArray(p)?p:[p])[0];(null==m?void 0:m.defaultHeroImage)&&e&&s({page:{title:(null==(r=e.frontmatter)?void 0:r.title)||"Page",subtitle:(null==(a=e.frontmatter)?void 0:a.subtitle)||"",heroImage:m.defaultHeroImage}})}}catch(e){console.error("Error fetching hero data:",e)}}()},[b,y]),(0,l.useEffect)(()=>{if(r&&(null==o?void 0:o.heroImageEnabled)){var e,t;if(b.startsWith("/projekte")&&(null==o?void 0:o.projectsHeroDisabled)){document.body.removeAttribute("data-hero-present"),document.body.removeAttribute("data-hero-overlay"),v(!1);return}document.body.setAttribute("data-hero-present","true");let a="/blog"===b||"/projekte"===b||"/"===b||x&&((null==(e=x.frontmatter)?void 0:e.title)||(null==(t=x.frontmatter)?void 0:t.subtitle))||r.post&&(r.post.title||r.post.subtitle)||r.page&&(r.page.title||r.page.subtitle);v(a),a?document.body.setAttribute("data-hero-overlay","true"):document.body.removeAttribute("data-hero-overlay")}else document.body.removeAttribute("data-hero-present"),document.body.removeAttribute("data-hero-overlay"),v(!1);return()=>{document.body.removeAttribute("data-hero-present"),document.body.removeAttribute("data-hero-overlay"),v(!1)}},[r,null==o?void 0:o.heroImageEnabled,null==o?void 0:o.projectsHeroDisabled,b,x,v]),!(null==o?void 0:o.heroImageEnabled))return null;if(!r)return(0,a.jsx)(u,{});if(b.startsWith("/projekte")&&(null==o?void 0:o.projectsHeroDisabled))return null;let j="/blog"===b||"/projekte"===b||"/"===b||x&&((null==(e=x.frontmatter)?void 0:e.title)||(null==(t=x.frontmatter)?void 0:t.subtitle))||r.post&&(r.post.title||r.post.subtitle)||r.page&&(r.page.title||r.page.subtitle);return(0,a.jsx)(c,{...r,showOverlay:j,overlayOpacity:null==o?void 0:o.heroOverlayOpacity,blurIntensity:null==o?void 0:o.heroBlurIntensity},b)}},6253:(e,t,r)=>{"use strict";r.d(t,{PromoBanner:()=>c});var a=r(5155),l=r(6615),n=r(2619),s=r.n(n),o=r(2115),i=r(3128),d=r(63);function c(e){var t;let{banner:r}=e,[n,c]=(0,o.useState)(!1),[u,m]=(0,o.useState)(!1),{trackClick:h}=(0,i.Y)(),p=(0,d.usePathname)();return((0,o.useEffect)(()=>{m(!0),localStorage.getItem("promoBannerDismissed")||c(!0)},[]),u)?r.enabled&&n?(0,a.jsx)("div",{className:"bg-primary text-primary-foreground",children:(0,a.jsxs)("div",{className:"container flex items-center justify-between gap-4 px-4 py-3 text-sm",children:[(0,a.jsxs)("div",{className:"flex flex-1 items-center justify-center gap-4",children:[(0,a.jsx)("p",{className:"font-bold",children:r.text}),r.cta&&r.cta.text&&r.cta.url&&(0,a.jsx)(s(),{href:r.cta.url,className:"underline decoration-red-600/60 decoration-2 underline-offset-4 hover:
1decoration-red-700 font-bold",onClick:()=>{var e,t;(null==(e=r.cta)?void 0:e.url)&&(null==(t=r.cta)?void 0:t.text)&&(r.cta.url.startsWith("http")?h("External Link - CTA PromoBanner","From: ".concat(p||"unknown"," | To: ").concat(r.cta.url," | Button: ").concat(r.cta.text)):h("CTA - PromoBanner",r.cta.text))},...r.cta.url.startsWith("http")&&{target:"_blank",rel:"noopener noreferrer"},children:r.cta.text})]}),(null==(t=r.dismissible)?void 0:t.enabled)&&(0,a.jsx)("button",{onClick:()=>{c(!1),localStorage.setItem("promoBannerDismissed","true")},className:"text-primary-foreground/80 hover:text-primary-foreground","aria-label":"Dismiss banner",children:(0,a.jsx)(l.A,{className:"h-4 w-4"})})]})}):null:r.enabled?(0,a.jsx)("div",{className:"bg-primary text-primary-foreground",style:{minHeight:"48px"},"aria-hidden":"true"}):null}},6352:(e,t,r)=>{"use strict";r.d(t,{FloatingMobileMenuWrapper:()=>l,GlobalTextFormatter:()=>n});var a=r(7909);let l=(0,a.default)(()=>r.e(8820).then(r.bind(r,8820)).then(e=>({default:e.FloatingMobileMenuWrapper})),{loadableGenerated:{webpack:()=>[8820]}}),n=(0,a.default)(()=>r.e(3316).then(r.bind(r,3316)).then(e=>({default:e.GlobalTextFormatter})),{loadableGenerated:{webpack:()=>[3316]}})},6472:(e,t,r)=>{"use strict";r.d(t,{BlogPostProvider:()=>s,e:()=>o});
1var a=r(5155),l=r(2115);let n=(0,l.createContext)(void 0);function s(e){let{children:t}=e,[r,s]=(0,l.useState)(null);return(0,a.jsx)(n.Provider,{value:{currentPost:r,setCurrentPost:s},children:t})}function o(){let e=(0,l.useContext)(n);return void 0===e?{currentPost:null,setCurrentPost:()=>{}}:e}},7778:(e,t,r)=>{"use strict";r.d(t,{MobileMenuProviderWrapper:()=>n});var a=r(5155),l=r(5695);function n(e){let{children:t}=e;return(0,a.jsx)(l.$,{children:t})}},8606:(e,t,r)=>{"use strict";r.d(t,{s:()=>v});var a=r(5155),l=r(2115),n=r(9511),s=r(5225),o=r(8595),i=r(576),d=r(8127),c=r(7314),u=r(109),m=r(6615),h=r(3736),p=r(2619),f=r.n(p),x=r(63),g=r(4269),b=r(3128);function v(e){let{posts:t,pages:r=[],projekte:p=[],homepage:v,promoBanner:y,variant:j="floating",onOpenChange:w}=e,[N,k]=(0,l.useState)(!1),[A,C]=(0,l.useState)(""),[I,H]=(0,l.useState)([]),[E,P]=(0,l.useState)(0),{trackClick:S}=(0,b.Y)(),L=(0,x.useRouter)(),D=(0,l.useMemo)(()=>{let e=[...t.map(e=>({type:"blog",title:e.title,subtitle:e.subtitle,content:e.content,author:e.author,date:e.date,excerpt:e.excerpt,slug:e.slug,url:(0,g.yn)(e.date,e.slug),archive:e.archive,archive_year:e.archive_year})),...Array.isArray(p)?p.map(e=>({type:"projekt",title:e.title,subtitle:e.subtitle,content:e.content,author:e.author,date:e.date,excerpt:e.excerpt,slug:e.slug,url:e.url||(0,g.N$)(e.date,e.slug),archive:e.archive,archive_year:e.archive_year})):[],...Array.isArray(r)?r.map(e=>({type:"page",title:e.frontmatter.title,subtitle:e.frontmatter.subtitle,content:"string"==typeof e.content?e.content:"",author:e.frontmatter.author,date:e.frontmatter.date,excerpt:e.frontmatter.excerpt,slug:e.slug,url:"/".concat(e.slug)})):[]];if((null==v?void 0:v.frontmatter.enabled)&&e.push({type:"homepage",title:v.frontmatter.title,content:v.content,url:"/"}),null==y?void 0:y.enabled){var a;e.push({type:"banner",title:"Promo Banner",content:y.text,url:(null==(a=y.cta)?void 0:a.enabled)?y.cta.url:"/"})}return e},[t,p,r,v,y]),W=(0,l.useMemo)(()=>new h.A(D,{keys:[{name:"title",weight:3},{name:"subtitle",weight:2},{name:"excerpt",weight:1.5},{name:"content",weight:1},{name:"author",weight:.5},{name:"slug",weight:2}],includeMatches:!0,threshold:.6,minMatchCharLength:2,distance:2e3,ignoreLocation:!0}),[D]),M=(0,l.useCallback)(e=>{if(e.length>=2){if(e.toLowerCase().includes("tabellentest")||"tabelle"===e.toLowerCase()){H([{item:{type:"page",title:"Tabellentest",subtitle:"Learn more about our mission and vision",excerpt:"Tabellentest",author:"Redaktion",date:"2024-03-20",slug:"tabelle",url:"/tabelle"},refIndex:0,score:0,matches:[]}]),P(0);return}D.find(e=>e.title.toLowerCase().includes("tabellentest")||"tabelle"===e.slug),H(W.search(e).slice(0,10)),P(0)}else H([]),P(-1)},[W,D]),T=(0,l.useCallback)(e=>{if((e.metaKey||e.ctrlKey)&&"k"===e.key)e.preventDefault(),k(e=>!e);else if("Escape"===e.key&&N)_(!1);else if(N&&I.length>0)switch(e.key){case"ArrowDown":e.preventDefault(),P(e=>(e+1)%I.length);break;case"ArrowUp":e.preventDefault(),P(e=>(e-1+I.length)%I.length);break;case"Enter":if(e.preventDefault(),E>=0){let e=I[E];S("Search - Result Click","".concat(e.item.type,": ").concat(e.item.title)),_(!1),setTimeout(()=>{L.push(e.item.url)},100)}}},[N,I,E]);(0,l.useEffect)(()=>(document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)),[T]),(0,l.useEffect)(()=>{let e=setTimeout(()=>M(A),150);return()=>clearTimeout(e)},[A,M]);let _=(0,l.useCallback)(e=>{if(e)document.body.style.overflow="hidden",k(!0),S("Search - ".concat("navbar"===j?"Navbar":"Floating"," Open"));else{let e=window.scrollY;document.body.style.overflow="",k(!1),C(""),P(-1),requestAnimationFrame(()=>{window.scrollTo(0,e)})}null==w||w(e)},[S,j,w]),z=e=>{let{result:t,isSelected:r}=e;return(0,a.jsxs)(f(),{href:t.item.url,className:"block rounded-lg p-3 transition-colors ".concat(r?"bg-gray-100":"hover:bg-gray-50"),onClick:e=>{e.preventDefault(),S("Search - Result Click","".concat(t.item.type,": ").concat(t.item.title)),_(!1),setTimeout(()=>{L.push(t.item.url)},100)},children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(e=>{switch(e){case"blog":case"page":return(0,a.jsx)(s.A,{className:"h-4 w-4 text-[#e3000b]"});case"projekt":return(0,a.jsx)(s.A,{className:"h-4 w-4 text-blue-600"});case"homepage":return(0,a.jsx)(o.A,{className:"h-4 w-4 text-green-600"});case"banner":return(0,a.jsx)(i.A,{className:"h-4 w-4 text-purple-600"})}})(t.item.type),(0,a.jsx)("h3",{className:"font-medium text-gray-900",children:t.item.title}),t.item.archive&&(0,a.jsxs)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-amber-100 text-amber-800 border border-amber-200",children:["Archiv ",t.item.archive_year]})]}),t.item.subtitle&&(0,a.jsx)("p",{className:"mt-1 text-sm text-gray-700",children:t.item.subtitle}),t.item.excerpt&&(0,a.jsx)("p",{className:"mt-1 text-sm text-gray-500 line-clamp-2",children:t.item.excerpt}),(0,a.jsxs)("div",{className:"mt-2 flex flex-nowrap items-center gap-3 text-xs text-gray-500 overflow-hidden",children:[t.item.date&&(0,a.jsxs)("span",{className:"flex flex-shrink-0 items-center gap-1 whitespace-nowrap",children:[(0,a.jsx)(d.A,{className:"h-3 w-3 text-[#e3000b]"}
1),(0,g.Yq)(t.item.date)]}),t.item.author&&(0,a.jsxs)("span",{className:"flex flex-shrink-0 items-center gap-1 whitespace-nowrap",children:[(0,a.jsx)(c.A,{className:"h-3 w-3 text-[#e3000b]"}),t.item.author]})]})]})};return(0,a.jsxs)(n.bL,{open:N,onOpenChange:_,children:[(0,a.jsx)(n.l9,{asChild:!0,children:(0,a.jsx)("button",{className:"navbar"===j?"h-9 w-9 rounded-md transition-all duration-300 bg-gray-100 hover:bg-gray-200 border border-gray-200 hover:border-gray-300 inline-flex items-center justify-center":"h-14 w-14 rounded-md shadow-lg hover:shadow-xl transition-all duration-300 bg-primary hover:bg-primary/90 inline-flex items-center justify-center","aria-label":"Beitr\xe4ge durchsuchen (âK)",suppressHydrationWarning:!0,onClick:()=>S("Search - ".concat("navbar"===j?"Navbar":"Floating"," Button")),children:(0,a.jsx)(u.A,{className:"navbar"===j?"h-5 w-5 text-gray-600":"h-6 w-6 text-primary-foreground"})})}),(0,a.jsxs)(n.ZL,{children:[(0,a.jsx)(n.hJ,{className:"fixed inset-0 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 z-50",onClick:()=>_(!1)}),(0,a.jsxs)(n.UC,{className:"fixed left-[50%] md:top-[50%] top-4 max-h-[85vh] w-[90vw] max-w-[450px] translate-x-[-50%] md:translate-y-[-50%] rounded-lg bg-white p-4 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] z-[51]",children:[(0,a.jsx)(n.hE,{className:"sr-only",children:"Beitr\xe4ge durchsuchen"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(u.A,{className:"absolute left-3 top-3 h-5 w-5 text-gray-400 pointer-events-none"}),(0,a.jsx)("input",{type:"text",placeholder:"Beitr\xe4ge durchsuchen...",className:"w-full rounded-md border border-gray-300 bg-transparent py-2 pl-10 pr-10 focus:border-[#e3000b] focus:outline-none focus:ring-1 focus:ring-[#e3000b]",value:A,onChange:e=>C(e.target.value),autoComplete:"off",autoFocus:!0}),A&&(0,a.jsx)("button",{onClick:()=>C(""),className:"absolute right-3 top-3 text-gray-400 hover:text-gray-600","aria-label":"Suche l\xf6schen",children:(0,a.jsx)(m.A,{className:"h-4 w-4"})})]}),I.length>0&&(0,a.jsx)("div",{className:"mt-4 max-h-[60vh] space-y-2 overflow-y-auto",children:I.map((e,t)=>(0,a.jsx)(z,{result:e,isSelected:t===E},e.refIndex))}),A.length>=2&&0===I.length&&(0,a.jsx)("p",{className:"mt-4 text-center text-gray-500",children:"Keine Ergebnisse gefunden"}),I.length>0&&(0,a.jsxs)("div",{className:"mt-2 text-xs text-gray-400",children:[(0,a.jsx)("kbd",{className:"px-1 py-0.5 text-xs border rounded",children:"ââ"})," zum Navigieren,"," ",(0,a.jsx)("kbd",{className:"px-1 py-0.5 text-xs border rounded",children:"Enter"})," ","zum Ausw\xe4hlen"]})]})]})]})}},8647:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ExternalLink:()=>o});var a=r(5155),l=r(3128),n=r(4269),s=r(63);function o(e){let{href:t,children:r,className:o,context:i,...d}=e,{trackClick:c}=(0,l.Y)(),u=(0,s.usePathname)();return(0,a.jsx)("a",{href:t,className:(0,n.cn)("inline-flex items-center gap-1",...o?[]:["inline-flex items-center gap-1 font-medium","text-primary decoration-red-600/60 underline decoration-2 underline-offset-4","transition-all duration-200","hover:text-primary hover:decoration-red-700"],o),target:"_blank",rel:"noopener noreferrer",onClick:()=>{let e=(e=>{try{return new URL(e).hostname.replace("www.","")}catch(t){return e}})(t);c("External Link - ".concat(i?"".concat(i," - "):"").concat(e),"From: ".concat(u||"unknown"," | To: ").concat(t))},...d,children:r})}},9562:(e,t,r)=>{"use strict";r.d(t,{HeroProvider:()=>s,g:()=>o});
1var a=r(5155),l=r(2115);let n=(0,l.createContext)(void 0);function s(e){let{children:t}=e,[r,s]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e=()=>{let e=document.body.hasAttribute("data-hero-present"),t=document.body.hasAttribute("data-hero-overlay");s(e&&t)},t=setTimeout(e,100),r=new MutationObserver(e);return r.observe(document.body,{attributes:!0,attributeFilter:["data-hero-present","data-hero-overlay"]}),()=>{clearTimeout(t),r.disconnect()}},[]),(0,a.jsx)(n.Provider,{value:{isHeroWithOverlay:r,setHeroWithOverlay:s},children:t})}function o(){let e=(0,l.useContext)(n);if(void 0===e)throw Error("useHero must be used within a HeroProvider");return e}}},e=>{e.O(0,[4175,2978,2619,1356,7162,9512,3273,2583,8441,1255,7358],()=>e(e.s=613)),_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.