{"version":3,"file":"ResponsiveNavbar.BCopv4O8.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/9gppfUELIecqRVdSgxcA/Bdvp8qBp1jN003O8umH6/ResponsiveNavbar.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect}from\"react\";const translations={en:{start:\"Start\",media:\"Media\",blog:\"Blog\",documents:\"Documents\",contact:\"Contact Us\"},de:{start:\"Start\",media:\"Medien\",blog:\"Blog\",documents:\"Dokumente\",contact:\"Kontakt\"}};export function ResponsiveNavbar(props){const{logoUrl=\"https://framerusercontent.com/images/ImyFohyohykjtN5ON0s2U1zdW4.png\",logoWidth=200,logoHeight=40,bgColor=\"rgba(17, 17, 17, 1)\",accentColor=\"rgba(20, 175, 225, 1)\",textColor=\"rgba(255, 255, 255, 1)\",breakpoint=810,style}=props;const[menuOpen,setMenuOpen]=useState(false);const[lang,setLang]=useState(\"en\");useEffect(()=>{if(typeof window!==\"undefined\"){const path=window.location.pathname;if(path.startsWith(\"/de/\")||path===\"/de\"){setLang(\"de\");}}},[]);const t=translations[lang]||translations.en;const getLocalizedHref=(path,targetLang)=>{if(targetLang===\"de\"){return\"/de\"+path;}return path;};const navItems=[{label:t.start,href:getLocalizedHref(\"/\",lang)},{label:t.media,href:getLocalizedHref(\"/media\",lang)},{label:t.blog,href:getLocalizedHref(\"/blog\",lang)},{label:t.documents,href:getLocalizedHref(\"/documents\",lang)}];const switchLang=targetLang=>{if(typeof window!==\"undefined\"){let path=window.location.pathname;if(path.startsWith(\"/de/\")){path=path.slice(3);}else if(path===\"/de\"){path=\"/\";}if(targetLang===\"de\"){path=\"/de\"+path;}window.location.href=path;}};return /*#__PURE__*/_jsxs(\"nav\",{style:{...style,width:\"100%\",backgroundColor:bgColor,fontFamily:\"Manrope, sans-serif\",position:\"relative\",zIndex:100},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:\"8px 24px\",maxWidth:\"100%\"},children:[/*#__PURE__*/_jsx(\"a\",{href:getLocalizedHref(\"/\",lang),style:{textDecoration:\"none\",flexShrink:0},children:/*#__PURE__*/_jsx(\"div\",{style:{width:logoWidth,height:logoHeight,backgroundImage:`url(${logoUrl})`,backgroundSize:\"contain\",backgroundRepeat:\"no-repeat\",backgroundPosition:\"left center\"}})}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:16},className:\"desktop-nav\",children:navItems.map((item,i)=>/*#__PURE__*/_jsx(\"a\",{href:item.href,style:{color:textColor,textDecoration:\"none\",fontSize:16,fontWeight:400,padding:\"10px\",cursor:\"pointer\"},children:item.label},i))}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:16},className:\"desktop-right\",children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:4},children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>switchLang(\"de\"),style:{color:lang===\"de\"?accentColor:textColor,background:\"none\",border:\"none\",cursor:\"pointer\",fontSize:14,fontWeight:lang===\"de\"?600:400,padding:\"8px 12px\",borderRadius:32,fontFamily:\"Manrope, sans-serif\"},children:\"DE\"}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>switchLang(\"en\"),style:{color:lang===\"en\"?accentColor:textColor,background:\"none\",border:\"none\",cursor:\"pointer\",fontSize:14,fontWeight:lang===\"en\"?600:400,padding:\"8px 12px\",borderRadius:32,fontFamily:\"Manrope, sans-serif\"},children:\"EN\"})]}),/*#__PURE__*/_jsx(\"a\",{href:getLocalizedHref(\"/contact\",lang),style:{backgroundColor:accentColor,color:\"#fff\",textDecoration:\"none\",fontSize:16,fontWeight:600,padding:\"12px 20px\",borderRadius:8,whiteSpace:\"nowrap\",fontFamily:\"Manrope, sans-serif\",cursor:\"pointer\"},children:t.contact})]}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>setMenuOpen(!menuOpen),className:\"burger-btn\",style:{display:\"none\",background:\"none\",border:\"none\",cursor:\"pointer\",padding:8,zIndex:101},children:/*#__PURE__*/_jsx(\"svg\",{width:\"28\",height:\"28\",viewBox:\"0 0 28 28\",fill:\"none\",children:menuOpen?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"line\",{x1:\"6\",y1:\"6\",x2:\"22\",y2:\"22\",stroke:accentColor,strokeWidth:\"2\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"22\",y1:\"6\",x2:\"6\",y2:\"22\",stroke:accentColor,strokeWidth:\"2\",strokeLinecap:\"round\"})]}):/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"line\",{x1:\"4\",y1:\"8\",x2:\"24\",y2:\"8\",stroke:textColor,strokeWidth:\"2\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"4\",y1:\"14\",x2:\"24\",y2:\"14\",stroke:textColor,strokeWidth:\"2\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"4\",y1:\"20\",x2:\"24\",y2:\"20\",stroke:textColor,strokeWidth:\"2\",strokeLinecap:\"round\"})]})})})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"mobile-menu\",style:{display:menuOpen?\"flex\":\"none\",flexDirection:\"column\",gap:0,backgroundColor:bgColor,padding:\"16px 24px 32px\",borderTop:\"1px solid rgba(255,255,255,0.1)\"},children:[navItems.map((item,i)=>/*#__PURE__*/_jsx(\"a\",{href:item.href,style:{color:textColor,textDecoration:\"none\",fontSize:18,fontWeight:500,padding:\"16px 0\",borderBottom:\"1px solid rgba(255,255,255,0.08)\",fontFamily:\"Manrope, sans-serif\",cursor:\"pointer\"},children:item.label},i)),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:16,marginTop:16},children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>switchLang(\"de\"),style:{color:lang===\"de\"?accentColor:textColor,background:\"none\",cursor:\"pointer\",fontSize:16,fontWeight:lang===\"de\"?600:400,padding:\"8px 16px\",border:\"none\",borderRadius:32,fontFamily:\"Manrope, sans-serif\"},children:\"DE\"}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>switchLang(\"en\"),style:{color:lang===\"en\"?accentColor:textColor,background:\"none\",cursor:\"pointer\",fontSize:16,fontWeight:lang===\"en\"?600:400,padding:\"8px 16px\",border:\"none\",borderRadius:32,fontFamily:\"Manrope, sans-serif\"},children:\"EN\"})]}),/*#__PURE__*/_jsx(\"a\",{href:getLocalizedHref(\"/contact\",lang),style:{backgroundColor:accentColor,color:\"#fff\",textDecoration:\"none\",fontSize:16,fontWeight:600,padding:\"14px 24px\",borderRadius:8,textAlign:\"center\",marginTop:16,fontFamily:\"Manrope, sans-serif\",cursor:\"pointer\"},children:t.contact})]}),/*#__PURE__*/_jsx(\"style\",{children:`\n                    @media (max-width: ${breakpoint}px) {\n                        .desktop-nav { display: none !important; }\n                        .desktop-right { display: none !important; }\n                        .burger-btn { display: block !important; }\n                    }\n                    @media (min-width: ${breakpoint+1}px) {\n                        .mobile-menu { display: none !important; }\n                    }\n                `})]});}addPropertyControls(ResponsiveNavbar,{logoUrl:{type:ControlType.String,title:\"Logo URL\",defaultValue:\"https://framerusercontent.com/images/ImyFohyohykjtN5ON0s2U1zdW4.png\"},logoWidth:{type:ControlType.Number,title:\"Logo Width\",defaultValue:200,min:50,max:500,unit:\"px\"},logoHeight:{type:ControlType.Number,title:\"Logo Height\",defaultValue:40,min:20,max:100,unit:\"px\"},bgColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(17, 17, 17, 1)\"},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"rgba(20, 175, 225, 1)\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"rgba(255, 255, 255, 1)\"},breakpoint:{type:ControlType.Number,title:\"Breakpoint\",defaultValue:810,min:480,max:1200,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"ResponsiveNavbar\":{\"type\":\"reactComponent\",\"name\":\"ResponsiveNavbar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ResponsiveNavbar.map"],"mappings":"wMAA4W,SAAgB,EAAiB,EAAM,CAAC,GAAK,CAAC,UAAQ,sEAAsE,YAAU,IAAI,aAAW,GAAG,UAAQ,sBAAsB,cAAY,wBAAwB,YAAU,yBAAyB,aAAW,IAAI,SAAO,EAAW,CAAC,EAAS,GAAaA,EAAS,GAAM,CAAM,CAAC,EAAK,GAASA,EAAS,KAAK,CAAC,MAAc,CAAC,GAAU,IAAS,OAAY,CAAC,IAAM,EAAK,EAAO,SAAS,UAAY,EAAK,WAAW,OAAO,EAAE,IAAO,QAAO,EAAQ,KAAK,GAAK,EAAE,CAAC,CAAC,IAAM,EAAE,EAAa,IAAO,EAAa,GAAS,GAAkB,EAAK,IAAiB,IAAa,KAAY,MAAM,EAAa,EAAa,EAAS,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,EAAiB,IAAI,EAAK,CAAC,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,EAAiB,SAAS,EAAK,CAAC,CAAC,CAAC,MAAM,EAAE,KAAK,KAAK,EAAiB,QAAQ,EAAK,CAAC,CAAC,CAAC,MAAM,EAAE,UAAU,KAAK,EAAiB,aAAa,EAAK,CAAC,CAAC,CAAO,EAAW,GAAY,CAAC,GAAU,IAAS,OAAY,CAAC,IAAI,EAAK,EAAO,SAAS,SAAY,EAAK,WAAW,OAAO,CAAE,EAAK,EAAK,MAAM,EAAE,CAAU,IAAO,QAAO,EAAK,KAAQ,IAAa,OAAM,EAAK,MAAM,GAAM,EAAO,SAAS,KAAK,IAAQ,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,gBAAgB,EAAQ,WAAW,sBAAsB,S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