{"version":3,"file":"CardHover.95Psu9Hv.mjs","names":[],"sources":["https:/framerusercontent.com/modules/4oyF7UDC0rwsdLMHt8pY/AKkk8u9L9uhS1G7soRPJ/CardHover.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// Hover- und Klick-Effekt für die Beitrags-Karten in der Seitenleiste.\n// Anwenden: im Editor die CardPost-Instanz (Variant 4) in der Liste\n// auswählen und diesen Override zuweisen.\n//\n// Effekt:\n//  - Hover: Karte hebt sich leicht an, dezenter Schatten, Rahmen wird kräftiger\n//  - Klick (active): kurzes Eindrücken\n//  - weicher Übergang\nconst STYLE_ID=\"enno-sidebar-card-hover\";const CSS=`\n.enno-card-hover {\n  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;\n  cursor: pointer;\n}\n.enno-card-hover:hover {\n  transform: translateY(-2px);\n  box-shadow: 0 6px 20px rgba(9, 9, 11, 0.08);\n  border-color: rgb(161, 161, 170) !important;\n}\n.enno-card-hover:active {\n  transform: translateY(0px) scale(0.99);\n  box-shadow: 0 2px 8px rgba(9, 9, 11, 0.06);\n}\n`;export function withCardHover(Component){return props=>{useEffect(()=>{if(typeof document===\"undefined\")return;if(document.getElementById(STYLE_ID))return;const el=document.createElement(\"style\");el.id=STYLE_ID;el.textContent=CSS;document.head.appendChild(el);},[]);const className=props.className?props.className+\" enno-card-hover\":\"enno-card-hover\";return /*#__PURE__*/_jsx(Component,{...props,className:className});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCardHover\":{\"type\":\"reactHoc\",\"name\":\"withCardHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CardHover.map"],"mappings":"kHAsBE,SAAgB,EAAc,EAAU,CAAC,MAAO,IAAO,CAAC,MAAc,CAAyC,GAArC,OAAO,SAAW,KAAsB,SAAS,eAAe,CAAQ,EAAE,OAAO,IAAM,EAAG,SAAS,cAAc,OAAO,EAAE,EAAG,GAAG,EAAS,EAAG,YAAY,EAAI,SAAS,KAAK,YAAY,CAAE,CAAE,EAAE,CAAC,CAAC,EAAE,IAAM,EAAU,EAAM,UAAU,EAAM,UAAU,mBAAmB,kBAAkB,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAgB,WAAS,CAAC,CAAE,CAAE,qBAtB5X,IAA6B,EAQjE,EAAS,0BAAgC,EAAI"}