{"version":3,"file":"V2FAQ.CuTja289.mjs","names":["useId","useRef","__esmMin","init_npm_react_18_3_1","de","p","c","init_jsx_runtime","ie","addPropertyControls","init_framer_DxfB3JJo","ControlType","V2FAQ","props","items","n","i","uid","listRef","onToggle","el","d","jsonLd","css","dividerColor","rowPadding","iconColor","style","firstOpen","questionFont","questionColor","item","answerFont","answerColor","schema","init_V2FAQ"],"sources":["https:/framerusercontent.com/modules/VL6SKUrAHkbuarg6WVG9/ppfFuEk1rwoVVqEx9HuD/V2FAQ.js"],"sourcesContent":["// HORUS V2 FAQ · 03.11.2026\n// Aufklappbare Fragen mit echtem <details>/<summary>: Antworten stehen immer im HTML (Google, KI-Suche),\n// Screenreader melden aufgeklappt/zugeklappt, Tastatur (Tab, Enter, Leertaste) funktioniert ohne Zusatzcode.\n// Optional strukturierte Daten (FAQPage, JSON-LD) für Suchmaschinen.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useId,useRef}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function V2FAQ(props){const{questionFont,answerFont,questionColor=\"#FFFFFF\",answerColor=\"#9A9AA0\",dividerColor=\"#232327\",iconColor=\"#FFFFFF\",rowPadding=26,firstOpen=false,schema=true,style}=props;const items=[1,2,3,4,5,6,7,8].map(n=>({question:(props[\"q\"+n]||\"\").trim(),answer:(props[\"a\"+n]||\"\").trim()})).filter(i=>i.question&&i.answer);const uid=\"faq\"+useId().replace(/[^a-zA-Z0-9]/g,\"\");// Immer nur eine Frage offen: name-Attribut (Browser) plus Rückfall für ältere Browser, nur in der eigenen Liste\nconst listRef=useRef(null);const onToggle=e=>{const el=e.currentTarget;if(!el.open||!listRef.current)return;listRef.current.querySelectorAll(\"details\").forEach(d=>{if(d!==el&&d.open)d.open=false;});};const jsonLd={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:items.filter(i=>i.question&&i.answer).map(i=>({\"@type\":\"Question\",name:i.question,acceptedAnswer:{\"@type\":\"Answer\",text:i.answer}}))};const css=`\n.${uid}{border-bottom:1px solid ${dividerColor}}\n.${uid} details{border-top:1px solid ${dividerColor}}\n.${uid} summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:${rowPadding}px 0;outline:none}\n.${uid} summary::-webkit-details-marker{display:none}\n.${uid} summary:focus-visible{outline:2px solid ${iconColor};outline-offset:4px;border-radius:6px}\n.${uid} .q{margin:0}\n.${uid} .ic{flex:0 0 auto;width:28px;height:28px;border-radius:14px;border:1px solid ${dividerColor};display:flex;align-items:center;justify-content:center;transition:transform .35s cubic-bezier(.22,1,.36,1),background-color .25s}\n.${uid} details[open] .ic{transform:rotate(45deg)}\n.${uid} summary:hover .ic{background:rgba(255,255,255,.08)}\n.${uid} .a{margin:0;padding:0 52px ${rowPadding}px 0}\n.${uid} details::details-content{block-size:0;overflow-y:clip;transition:block-size .4s cubic-bezier(.22,1,.36,1),content-visibility .4s allow-discrete}\n.${uid} details[open]::details-content{block-size:auto}\n@supports not (interpolate-size: allow-keywords){.${uid} details::details-content{transition:none}}\n.${uid}{interpolate-size:allow-keywords}\n@media (prefers-reduced-motion: reduce){.${uid} details::details-content,.${uid} .ic{transition:none}}\n`;return /*#__PURE__*/_jsxs(\"div\",{ref:listRef,className:uid,style:{...style,position:\"relative\",width:\"100%\",userSelect:\"none\",WebkitUserSelect:\"none\"},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),items.map((item,i)=>/*#__PURE__*/_jsxs(\"details\",{name:uid,open:firstOpen&&i===0,onToggle:onToggle,children:[/*#__PURE__*/_jsxs(\"summary\",{children:[/*#__PURE__*/_jsx(\"h3\",{className:\"q\",style:{...questionFont,color:questionColor},children:item.question}),/*#__PURE__*/_jsx(\"span\",{className:\"ic\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"14\",height:\"14\",viewBox:\"0 0 14 14\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M7 1v12M1 7h12\",stroke:iconColor,strokeWidth:\"1.6\",strokeLinecap:\"round\"})})})]}),/*#__PURE__*/_jsx(\"p\",{className:\"a\",style:{...answerFont,color:answerColor},children:item.answer})]},i)),schema&&jsonLd.mainEntity.length>0&&/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(jsonLd)}})]});}addPropertyControls(V2FAQ,{q1:{type:ControlType.String,title:\"Frage 1\",defaultValue:\"Was kostet eine Website?\"},a1:{type:ControlType.String,title:\"Antwort 1\",displayTextArea:true,defaultValue:\"Ab 7.000 €.\"},q2:{type:ControlType.String,title:\"Frage 2\",defaultValue:\"\"},a2:{type:ControlType.String,title:\"Antwort 2\",displayTextArea:true,defaultValue:\"\"},q3:{type:ControlType.String,title:\"Frage 3\",defaultValue:\"\"},a3:{type:ControlType.String,title:\"Antwort 3\",displayTextArea:true,defaultValue:\"\"},q4:{type:ControlType.String,title:\"Frage 4\",defaultValue:\"\"},a4:{type:ControlType.String,title:\"Antwort 4\",displayTextArea:true,defaultValue:\"\"},q5:{type:ControlType.String,title:\"Frage 5\",defaultValue:\"\"},a5:{type:ControlType.String,title:\"Antwort 5\",displayTextArea:true,defaultValue:\"\"},q6:{type:ControlType.String,title:\"Frage 6\",defaultValue:\"\"},a6:{type:ControlType.String,title:\"Antwort 6\",displayTextArea:true,defaultValue:\"\"},q7:{type:ControlType.String,title:\"Frage 7\",defaultValue:\"\"},a7:{type:ControlType.String,title:\"Antwort 7\",displayTextArea:true,defaultValue:\"\"},q8:{type:ControlType.String,title:\"Frage 8\",defaultValue:\"\"},a8:{type:ControlType.String,title:\"Antwort 8\",displayTextArea:true,defaultValue:\"\"},questionFont:{type:ControlType.Font,title:\"Frage Schrift\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"24px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1.2em\"}},answerFont:{type:ControlType.Font,title:\"Antwort Schrift\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"17px\",variant:\"Medium\",letterSpacing:\"0em\",lineHeight:\"1.5em\"}},questionColor:{type:ControlType.Color,title:\"Frage Farbe\",defaultValue:\"#FFFFFF\"},answerColor:{type:ControlType.Color,title:\"Antwort Farbe\",defaultValue:\"#9A9AA0\"},dividerColor:{type:ControlType.Color,title:\"Linie\",defaultValue:\"#232327\"},iconColor:{type:ControlType.Color,title:\"Icon\",defaultValue:\"#FFFFFF\"},rowPadding:{type:ControlType.Number,title:\"Abstand\",defaultValue:26,min:8,max:60,unit:\"px\"},firstOpen:{type:ControlType.Boolean,title:\"Erste offen\",defaultValue:false},schema:{type:ControlType.Boolean,title:\"FAQ-Schema\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"V2FAQ\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./V2FAQ.map"],"mappings":"A,wLAOG,SAAwBY,EAAM,EAAM,CAAC,GAAK,CAAC,eAAa,aAAW,gBAAc,UAAU,cAAY,UAAU,eAAa,UAAU,YAAU,UAAU,aAAW,GAAG,YAAU,GAAM,SAAO,GAAK,SAAOC,EAAYC,EAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,UAAUD,EAAM,IAAIE,IAAI,GAAA,CAAI,KAAK,EAAE,QAAQF,EAAM,IAAIE,IAAI,GAAA,CAAI,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,GAAGC,EAAE,UAAUA,EAAE,MAAM,EAAQC,EAAI,MAAMjB,EAAM,CAAC,CAAC,QAAQ,gBAAgB,EAAE,EAChZkB,EAAQjB,EAAO,IA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