.elementor-kit-9{--e-global-color-primary:#FFFFFF;--e-global-color-secondary:#33673B;--e-global-color-text:#FFFFFF;--e-global-color-accent:#A00215;--e-global-color-7d49f23:#282828;--e-global-color-271408a:#A00215;--e-global-color-936d917:#E1EFE6;--e-global-color-520b8e6:#A6A6A6;--e-global-color-00d87a6:#FFFFFF00;--e-global-color-c77949d:#7F7FA0;--e-global-color-c6c79da:#0D0D4F9C;--e-global-color-512f377:#33673B;--e-global-color-ba8e2b0:#247BA0;--e-global-color-27607c0:#3E6259;--e-global-typography-primary-font-family:"Montserrat";--e-global-typography-primary-font-size:2vw;--e-global-typography-primary-font-weight:600;--e-global-typography-primary-text-transform:none;--e-global-typography-primary-font-style:normal;--e-global-typography-primary-line-height:1em;--e-global-typography-primary-letter-spacing:0px;--e-global-typography-secondary-font-family:"Montserrat";--e-global-typography-secondary-font-size:1vw;--e-global-typography-secondary-font-weight:700;--e-global-typography-secondary-text-transform:none;--e-global-typography-secondary-line-height:1em;--e-global-typography-secondary-letter-spacing:0px;--e-global-typography-text-font-family:"Montserrat";--e-global-typography-text-font-size:18px;--e-global-typography-text-font-weight:400;--e-global-typography-text-text-transform:none;--e-global-typography-text-font-style:normal;--e-global-typography-text-line-height:24px;--e-global-typography-text-letter-spacing:0px;--e-global-typography-accent-font-family:"Montserrat";--e-global-typography-accent-font-size:14px;--e-global-typography-accent-font-weight:400;--e-global-typography-accent-text-transform:none;--e-global-typography-accent-font-style:normal;--e-global-typography-accent-line-height:14px;--e-global-typography-accent-letter-spacing:0.88px;--e-global-typography-71e5b3e-font-family:"Montserrat";--e-global-typography-71e5b3e-font-size:60px;--e-global-typography-71e5b3e-font-weight:900;--e-global-typography-71e5b3e-text-transform:none;--e-global-typography-71e5b3e-font-style:italic;--e-global-typography-71e5b3e-line-height:65px;--e-global-typography-71e5b3e-letter-spacing:1.27px;--e-global-typography-153615e-font-family:"Montserrat";--e-global-typography-153615e-font-size:20px;--e-global-typography-153615e-font-weight:400;--e-global-typography-153615e-text-transform:uppercase;--e-global-typography-153615e-font-style:normal;--e-global-typography-153615e-line-height:21px;--e-global-typography-153615e-letter-spacing:0px;--e-global-typography-46ff117-font-family:"Montserrat";--e-global-typography-46ff117-font-size:20px;--e-global-typography-46ff117-font-weight:400;--e-global-typography-46ff117-text-transform:uppercase;--e-global-typography-46ff117-line-height:25px;--e-global-typography-46ff117-letter-spacing:0px;--e-global-typography-680f3c9-font-family:"Montserrat";--e-global-typography-680f3c9-font-size:20px;--e-global-typography-680f3c9-font-weight:400;--e-global-typography-680f3c9-text-transform:none;--e-global-typography-680f3c9-line-height:25px;--e-global-typography-680f3c9-letter-spacing:0px;--e-global-typography-4cef07b-font-family:"Montserrat";--e-global-typography-4cef07b-font-size:16px;--e-global-typography-4cef07b-font-weight:400;--e-global-typography-4cef07b-text-transform:none;--e-global-typography-4cef07b-font-style:normal;--e-global-typography-4cef07b-text-decoration:underline;--e-global-typography-4cef07b-line-height:16px;--e-global-typography-4cef07b-letter-spacing:0.88px;--e-global-typography-150cba4-font-family:"Montserrat";--e-global-typography-150cba4-font-size:4.5vw;--e-global-typography-150cba4-font-weight:900;--e-global-typography-150cba4-text-transform:none;--e-global-typography-150cba4-font-style:italic;--e-global-typography-150cba4-line-height:1em;--e-global-typography-0cebb1a-font-family:"Montserrat";--e-global-typography-0cebb1a-font-size:1.1em;--e-global-typography-0cebb1a-font-weight:900;--e-global-typography-0cebb1a-text-transform:uppercase;--e-global-typography-0cebb1a-line-height:1px;--e-global-typography-0cebb1a-letter-spacing:0em;--e-global-typography-b2c9df5-font-family:"Montserrat";--e-global-typography-b2c9df5-font-size:1em;background-color:var(--e-global-color-00d87a6)}.elementor-kit-9 button,.elementor-kit-9 input[type="button"],.elementor-kit-9 input[type="submit"],.elementor-kit-9 .elementor-button{background-color:var(--e-global-color-accent);color:var(--e-global-color-text)}.elementor-kit-9 button:hover,.elementor-kit-9 button:focus,.elementor-kit-9 input[type="button"]:hover,.elementor-kit-9 input[type="button"]:focus,.elementor-kit-9 input[type="submit"]:hover,.elementor-kit-9 input[type="submit"]:focus,.elementor-kit-9 .elementor-button:hover,.elementor-kit-9 .elementor-button:focus{background-color:var(--e-global-color-text);color:var(--e-global-color-accent)}.elementor-kit-9 e-page-transition{background-color:#FFBC7D}.elementor-kit-9 a{color:var(--e-global-color-accent)}.elementor-kit-9 a:hover{color:var(--e-global-color-secondary)}.elementor-kit-9 h1{font-family:"Oberfranken",Sans-serif}.elementor-kit-9 h2{color:var(--e-global-color-accent);font-family:"Oberfranken",Sans-serif}.elementor-kit-9 h3{color:var(--e-global-color-accent);font-family:var(--e-global-typography-153615e-font-family),Sans-serif;font-size:var(--e-global-typography-153615e-font-size);font-weight:var(--e-global-typography-153615e-font-weight);text-transform:var(--e-global-typography-153615e-text-transform);font-style:var(--e-global-typography-153615e-font-style);line-height:var(--e-global-typography-153615e-line-height);letter-spacing:var(--e-global-typography-153615e-letter-spacing)}.elementor-kit-9 h4{color:var(--e-global-color-accent);font-family:"Questrial",Sans-serif;font-size:20px;font-weight:400;text-transform:none;line-height:25px;letter-spacing:0}.elementor-section.elementor-section-boxed>.elementor-container{max-width:1440px}.e-con{--container-max-width:1440px}.elementor-widget:not(:last-child){margin-block-end:20px}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px}{}h1.entry-title{display:var(--page-title-display)}@media(max-width:1200px){.elementor-kit-9{--e-global-typography-primary-font-size:2vw;--e-global-typography-secondary-font-size:1.3vw;--e-global-typography-0cebb1a-font-size:1em;--e-global-typography-0cebb1a-line-height:2.5em}}@media(max-width:1024px){.elementor-kit-9{--e-global-typography-primary-font-size:3vw;--e-global-typography-primary-line-height:24px;--e-global-typography-secondary-font-size:2.5vw;--e-global-typography-secondary-line-height:1.2em;--e-global-typography-text-font-size:16px;--e-global-typography-71e5b3e-font-size:50px;--e-global-typography-71e5b3e-line-height:55px;--e-global-typography-153615e-font-size:14px;--e-global-typography-46ff117-font-size:18px;--e-global-typography-46ff117-line-height:23px;--e-global-typography-680f3c9-font-size:18px;--e-global-typography-680f3c9-line-height:23px;--e-global-typography-4cef07b-font-size:14px;--e-global-typography-150cba4-font-size:9vw}.elementor-kit-9 h3{font-size:var(--e-global-typography-153615e-font-size);line-height:var(--e-global-typography-153615e-line-height);letter-spacing:var(--e-global-typography-153615e-letter-spacing)}.elementor-kit-9 h4{font-size:18px;line-height:23px}.elementor-section.elementor-section-boxed>.elementor-container{max-width:1024px}.e-con{--container-max-width:1024px}}@media(max-width:767px){.elementor-kit-9{--e-global-typography-primary-font-size:5vw;--e-global-typography-secondary-font-size:4.5vw;--e-global-typography-secondary-line-height:21px;--e-global-typography-71e5b3e-font-size:40px;--e-global-typography-71e5b3e-line-height:45px;--e-global-typography-46ff117-font-size:16px;--e-global-typography-46ff117-line-height:21px;--e-global-typography-680f3c9-font-size:16px;--e-global-typography-680f3c9-line-height:21px;--e-global-typography-150cba4-font-size:9vw;--e-global-typography-150cba4-line-height:1em;--e-global-typography-0cebb1a-font-size:1em}.elementor-kit-9 h3{font-size:var(--e-global-typography-153615e-font-size);line-height:var(--e-global-typography-153615e-line-height);letter-spacing:var(--e-global-typography-153615e-letter-spacing)}.elementor-kit-9 h4{font-size:16px;line-height:21px}.elementor-section.elementor-section-boxed>.elementor-container{max-width:760px}.e-con{--container-max-width:760px}}add_action('wp_footer','br_chat_render_widget');function br_chat_render_widget(){$bot_id='asst_0UrdbB9jGsPlewgx5P5oezDG';wp_enqueue_script('marked','https://cdn.jsdelivr.net/npm/marked/marked.min.js',[],null,true);?><style>#br-chat-trigger{position:fixed;bottom:20px;right:20px;width:60px;height:60px;background:#CC071E;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 12px rgb(0 0 0 / .25);z-index:999999}#br-chat-trigger svg{width:28px;fill:#fff}#br-chat-window{position:fixed;bottom:90px;right:20px;width:360px;height:520px;max-height:80vh;background:#fff;border-radius:8px;box-shadow:0 5px 25px rgb(0 0 0 / .15);display:none;flex-direction:column;overflow:hidden;font-family:"Century Gothic",sans-serif;z-index:999999}.br-chat-header{background:#CC071E;color:#fff;padding:15px;display:flex;justify-content:space-between;align-items:center}#br-chat-messages{flex:1;padding:15px;overflow-y:auto;background:#fafafa;display:flex;flex-direction:column;gap:12px}.br-msg{max-width:85%;padding:10px 14px;border-radius:8px;font-size:14px;line-height:1.5}.br-msg.user{align-self:flex-end;background:#CC071E;color:#fff}.br-msg.bot{align-self:flex-start;background:#f0f0f0;border:1px solid #eee}.br-chat-input{display:flex;padding:12px;border-top:1px solid #ddd;gap:10px}#br-chat-input{flex:1;padding:10px;border:1px solid #ccc;border-radius:4px}#br-chat-send{background:#CC071E;border:none;color:#fff;width:40px;border-radius:4px;cursor:pointer}.br-source-pill{display:inline-block;background:#BBBBB0;color:#000;border-radius:12px;padding:2px 8px;font-size:12px;text-decoration:none;margin-left:4px}</style><div id="br-chat-trigger" onclick="toggleBrChat()"><svg viewBox="0 0 24 24"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/></svg></div><div id="br-chat-window"><div class="br-chat-header"><strong>KARRIEREZIEL</strong><span style="cursor:pointer" onclick="toggleBrChat()">&times;</span></div><div id="br-chat-messages"></div><div class="br-chat-input"><input type="text" id="br-chat-input" placeholder="Deine Nachricht..." onkeypress="if(event.key==='Enter') sendBrMessage();"><button id="br-chat-send" onclick="sendBrMessage()">➤</button></div></div><script>const API_URL='https://qr.better-reply.de/chatbot/ask';const CHATBOT_ID='<?php echo esc_js($bot_id); ?>';let threadId=sessionStorage.getItem('br_thread_id');let msgContainer;let inputField;document.addEventListener('DOMContentLoaded',()=>{msgContainer=document.getElementById('br-chat-messages');inputField=document.getElementById('br-chat-input');loadHistory()});function toggleBrChat(){const win=document.getElementById('br-chat-window');win.style.display=(win.style.display==='flex') ? 'none':'flex'}function appendMsg(text,sender,html=false){const d=document.createElement('div');d.className='br-msg '+sender;html ? d.innerHTML=text:d.innerText=text;msgContainer.appendChild(d);msgContainer.scrollTop=msgContainer.scrollHeight;saveHistory()}function formatText(text,sources){const regex=/【(\d+)(?::\d+)?†(.*?)】/g;return text.replace(regex,function(match,indexStr,filename){const idx=parseInt(indexStr,10);let sourceObj=sources?.[idx];if(!sourceObj) return '';let url=sourceObj.sourceUrl?.url || sourceObj.url || '';let label=filename || url;return `<a href="${url}" target="_blank" class="br-source-pill">${label}</a>`})}async function sendBrMessage(){const txt=inputField.value.trim();if(!txt) return;inputField.value='';appendMsg(txt,'user');const botDiv=document.createElement('div');botDiv.className='br-msg bot';botDiv.innerHTML='...';msgContainer.appendChild(botDiv);let fullText='';let foundSources=[];try{const response=await fetch(API_URL,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({question:txt,threadId:threadId || undefined,chatBotId:CHATBOT_ID})});const reader=response.body.getReader();const decoder=new TextDecoder();let buffer='';botDiv.innerHTML='';while(true){const{done,value}=await reader.read();if(done) break;buffer+=decoder.decode(value,{stream:true});const lines=buffer.split('\n');buffer=lines.pop();for(const line of lines){if(!line.trim()) continue;const json=JSON.parse(line);if(json.type==='meta' && json.threadId){threadId=json.threadId;sessionStorage.setItem('br_thread_id',threadId)}if(json.type==='answer' && json.chunk){fullText+=json.chunk;botDiv.innerHTML=formatText(marked.parse(fullText),foundSources);msgContainer.scrollTop=msgContainer.scrollHeight}if(json.type==='sources'){foundSources=json.sources}}}saveHistory()}catch(err){botDiv.innerText='Fehler: '+err.message}}function saveHistory(){sessionStorage.setItem('br_chat_html',msgContainer.innerHTML)}function loadHistory(){const hist=sessionStorage.getItem('br_chat_html');if(hist) msgContainer.innerHTML=hist}</script>