
  #jk-chatbot-root *, #jk-chatbot-root *::before, #jk-chatbot-root *::after {
    box-sizing: border-box; margin: 0; padding: 0;
  }
  :root {
    --jk-pink: #e71183;
    --jk-pink-dark: #b80d68;
    --jk-pink-glow: rgba(231,17,131,0.35);
    --jk-pink-light: rgba(231,17,131,0.1);
    --jk-dark: #1a1a1a;
    --jk-dark2: #222;
    --jk-dark3: #2a2a2a;
    --jk-grey: #444;
    --jk-grey-light: #999;
    --jk-text: #ddd;
    --jk-white: #fff;
    --jk-radius: 16px;
    --jk-radius-sm: 12px;
    --jk-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 20px rgba(231,17,131,0.1);
    --jk-transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .jk-chat-toggle {
    position: fixed; bottom: 24px; right: 24px;
    width: 62px; height: 62px; border-radius: 50%;
    background: linear-gradient(135deg, var(--jk-pink), var(--jk-pink-dark));
    border: none; cursor: pointer; z-index: 99998;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px var(--jk-pink-glow), 0 2px 10px rgba(0,0,0,0.3);
    transition: all var(--jk-transition);
    animation: jk-pulse 2.5s infinite;
  }
  .jk-chat-toggle:hover { transform: scale(1.08); }
  .jk-chat-toggle svg { width: 28px; height: 28px; fill: var(--jk-white); transition: transform var(--jk-transition); }
  .jk-chat-toggle.open svg { transform: rotate(90deg); }
  @keyframes jk-pulse {
    0%,100% { box-shadow: 0 4px 20px var(--jk-pink-glow), 0 2px 10px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 4px 30px rgba(231,17,131,0.5), 0 2px 15px rgba(0,0,0,0.4); }
  }
  .jk-chat-badge {
    position: absolute; top: -4px; right: -4px;
    width: 20px; height: 20px; background: #ff3b3b; border-radius: 50%;
    font-size: 11px; font-weight: 700; color: var(--jk-white);
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--jk-dark);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  }
  .jk-chat-window {
    position: fixed; bottom: 100px; right: 24px;
    width: 380px; max-height: 580px;
    background: var(--jk-dark); border-radius: var(--jk-radius);
    box-shadow: var(--jk-shadow); z-index: 99999;
    display: flex; flex-direction: column; overflow: hidden;
    opacity: 0; transform: translateY(20px) scale(0.95);
    pointer-events: none; transition: all var(--jk-transition);
    border: 1px solid rgba(231,17,131,0.2);
  }
  .jk-chat-window.open {
    opacity: 1; transform: translateY(0) scale(1); pointer-events: all;
  }
  .jk-chat-header {
    background: linear-gradient(135deg, var(--jk-pink), var(--jk-pink-dark));
    padding: 18px 20px; display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  }
  .jk-chat-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
  }
  .jk-chat-header-text h3 {
    color: var(--jk-white); font-size: 1rem; font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  }
  .jk-chat-header-text p {
    color: rgba(255,255,255,0.8); font-size: 0.78rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  }
  .jk-online-dot {
    width: 8px; height: 8px; background: #4cdb6a; border-radius: 50%;
    display: inline-block; margin-right: 4px; animation: jk-blink 2s infinite;
  }
  @keyframes jk-blink { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
  .jk-chat-close {
    margin-left: auto; background: rgba(255,255,255,0.2); border: none;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--jk-transition); flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .jk-chat-close:hover { background: rgba(255,255,255,0.35); }
  .jk-chat-close svg { width: 18px; height: 18px; fill: var(--jk-white); }
  .jk-chat-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
    min-height: 280px; max-height: 360px;
    scrollbar-width: thin; scrollbar-color: var(--jk-grey) transparent;
  }
  .jk-chat-messages::-webkit-scrollbar { width: 5px; }
  .jk-chat-messages::-webkit-scrollbar-track { background: transparent; }
  .jk-chat-messages::-webkit-scrollbar-thumb { background: var(--jk-grey); border-radius: 10px; }
  .jk-msg {
    max-width: 85%; padding: 12px 16px; border-radius: var(--jk-radius-sm);
    font-size: 0.9rem; line-height: 1.55;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    animation: jk-msgIn 0.3s ease both;
  }
  @keyframes jk-msgIn { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }
  .jk-msg-bot {
    background: var(--jk-dark2); color: var(--jk-text); align-self: flex-start;
    border-bottom-left-radius: 4px; border: 1px solid rgba(255,255,255,0.06);
  }
  .jk-msg-user {
    background: var(--jk-pink); color: var(--jk-white); align-self: flex-end;
    border-bottom-right-radius: 4px;
  }
  .jk-msg-bot a { color: var(--jk-pink); text-decoration: none; font-weight: 600; }
  .jk-msg-bot a:hover { text-decoration: underline; }
  .jk-msg-bot strong { color: var(--jk-white); }
  .jk-typing {
    display: flex; gap: 5px; padding: 12px 16px;
    background: var(--jk-dark2); border-radius: var(--jk-radius-sm);
    border-bottom-left-radius: 4px; align-self: flex-start;
    border: 1px solid rgba(255,255,255,0.06);
  }
  .jk-typing span {
    width: 8px; height: 8px; background: var(--jk-grey-light);
    border-radius: 50%; animation: jk-typingDot 1.4s infinite;
  }
  .jk-typing span:nth-child(2) { animation-delay: 0.2s; }
  .jk-typing span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes jk-typingDot {
    0%,60%,100%{transform:translateY(0);opacity:0.4;} 30%{transform:translateY(-6px);opacity:1;}
  }
  .jk-quick-replies {
    display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0;
    align-self: flex-start; max-width: 100%; animation: jk-msgIn 0.3s ease both;
  }
  .jk-quick-btn {
    background: var(--jk-pink-light); color: var(--jk-pink);
    border: 1px solid rgba(231,17,131,0.3); padding: 7px 14px;
    border-radius: 9999px; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: all var(--jk-transition);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    white-space: nowrap;
  }
  .jk-quick-btn:hover { background: var(--jk-pink); color: var(--jk-white); transform: translateY(-1px); }
  .jk-chat-input-area {
    padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; gap: 10px; align-items: center;
    background: var(--jk-dark2); flex-shrink: 0;
  }
  .jk-chat-input {
    flex: 1; background: var(--jk-dark3); border: 1px solid var(--jk-grey);
    border-radius: 9999px; padding: 10px 18px; color: var(--jk-text);
    font-size: 0.9rem; outline: none; transition: border-color var(--jk-transition);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  }
  .jk-chat-input::placeholder { color: var(--jk-grey-light); }
  .jk-chat-input:focus { border-color: var(--jk-pink); }
  .jk-chat-send {
    width: 40px; height: 40px; border-radius: 50%; background: var(--jk-pink);
    border: none; cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: all var(--jk-transition); flex-shrink: 0;
  }
  .jk-chat-send:hover { background: var(--jk-pink-dark); transform: scale(1.05); }
  .jk-chat-send svg { width: 18px; height: 18px; fill: var(--jk-white); }
  .jk-wa-link {
    display: inline-flex; align-items: center; gap: 6px;
    background: #25D366; color: #fff !important; padding: 6px 14px;
    border-radius: 9999px; font-size: 0.82rem; font-weight: 600;
    margin-top: 8px; text-decoration: none !important; transition: opacity 0.2s;
  }
  .jk-wa-link:hover { opacity: 0.85; }
  .jk-mail-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--jk-pink); color: #fff !important; padding: 8px 16px;
    border-radius: 9999px; font-size: 0.82rem; font-weight: 600;
    margin-top: 8px; border: none; cursor: pointer; transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  }
  .jk-mail-btn:hover { background: var(--jk-pink-dark); transform: scale(1.03); }
  .jk-mail-form {
    background: var(--jk-dark3); border-radius: 12px; padding: 16px;
    margin-top: 10px; border: 1px solid rgba(231,17,131,0.2);
  }
  .jk-mail-form label {
    display: block; font-size: 0.8rem; color: var(--jk-grey-light);
    margin-bottom: 4px; margin-top: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  }
  .jk-mail-form label:first-child { margin-top: 0; }
  .jk-mail-form input, .jk-mail-form select {
    width: 100%; padding: 8px 12px; border-radius: 8px;
    border: 1px solid var(--jk-grey); background: var(--jk-dark2);
    color: var(--jk-text); font-size: 0.88rem; outline: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  }
  .jk-mail-form input:focus, .jk-mail-form select:focus { border-color: var(--jk-pink); }
  .jk-mail-success {
    background: rgba(76,219,106,0.1); border: 1px solid rgba(76,219,106,0.3);
    border-radius: 12px; padding: 14px; margin-top: 10px; text-align: center;
    color: #4cdb6a; font-weight: 600; font-size: 0.9rem;
  }
  @media (max-width: 768px) {
    .jk-chat-window { width: calc(100vw - 32px); right: 16px; bottom: 96px; max-height: calc(100vh - 130px); }
    .jk-chat-messages { max-height: calc(100vh - 320px); }
  }
  @media (max-width: 480px) {
    .jk-chat-window { width: calc(100vw - 16px); right: 8px; bottom: 80px; max-height: calc(100vh - 100px); border-radius: var(--jk-radius-sm); }
    .jk-chat-toggle { bottom: 16px; right: 16px; width: 56px; height: 56px; }
    .jk-chat-messages { max-height: calc(100vh - 280px); min-height: 200px; }
  }
  @media (max-width: 360px) {
    .jk-chat-window { width: calc(100vw - 8px); right: 4px; }
  }

  /* --- Vorschau-Layout: Chat-Button neben Dock --- */
  .jk-chat-toggle{bottom:22px;right:max(24px,calc(var(--gutter,24px) - 8px));width:56px;height:56px;animation:none;transform:translateY(120px);transition:transform .6s cubic-bezier(.32,.72,0,1),box-shadow .3s}
  body.ready .jk-chat-toggle,body.sub .jk-chat-toggle{transform:none}
  body.menu-open .jk-chat-toggle{transform:translateY(120px)}
  .jk-chat-toggle:hover{transform:scale(1.06)}
  .jk-chat-window{bottom:92px;z-index:99999}
  @media (max-width:760px){.jk-chat-toggle{bottom:78px;right:12px;width:52px;height:52px}.jk-chat-window{bottom:140px;max-height:calc(100vh - 160px)}}
