/* ═══════════════════════════════════════════════════════════════════════════════
     PF_chatbot.css - Chatbot UI Styles
     ═══════════════════════════════════════════════════════════════════════════════
     Pfad: core/function/PF_chatbot/css/PF_chatbot.css
     Version: 1.1.6b
     Autor: Franz PFuisi
     PFWS-System: 1.4.1.3.31
     Updated: 10.04.2026 - Overlay-Layout, Footer und visuelle Konsistenz

     Beschreibung:
     - Styles fuer Standalone-, Dashboard- und Overlay-Ansicht des Chatbots
     - Light-Surface-Design mit Neon-Akzenten, kompaktem Overlay und Mobile-Fokus
     - Konsistente Header-, Content-, Message- und Footer-Gestaltung

     Changelog:
     - 2026-04-10: v1.1.6b - Overlay mittig/kompakter, Footer bereinigt,
         Seitenrahmen auf Content verschoben, Hoehenlogik stabilisiert.
     - 2026-04-09: v1.1.3b - Light Theme, bessere Lesbarkeit,
         Welcome-Panel gestrafft, Bubble-Differenzierung und Mobile-Fixes.
     - 2025-10-10: Basis-Modernisierung des Chatbot-Layouts mit Gradient-
         Header/Footer, Responsive Design und Theme-Support.
     ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   🎨 3-LEVEL CONTAINER STRUCTURE (PF_HAM/userpreferences Standard)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Level 1: Wrapper - Absorbiert Flexbox-Effekte vom Overlay */
.pf-chatbot-layout-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden; /* Verhindert Scroll am Wrapper */
}

/* Standalone Mode - Mit Abstand vom Viewport */
.pf-chatbot-layout-wrapper.pf-chatbot-standalone {
    margin-top: 20px;
    margin-bottom: 20px;
    height: calc(100vh - 40px); /* Abzüglich Margin */
    max-height: calc(100vh - 40px);
}

.pf-chatbot-layout-wrapper.pf-chatbot-dashboard-shell {
    max-width: none;
    margin: 0;
}

/* Overlay Mode - Nutzt 100% des Overlay-Containers */
.pf-chatbot-layout-wrapper.pf-chatbot-overlay {
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: none;
    padding: 16px 20px;
    align-items: center;
    justify-content: center;
}

.pf-chatbot-layout-wrapper.pf-chatbot-overlay.pf-chatbot-overlay-embedded {
    padding: 0;
}

.pf-chatbot-app {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --pf-chatbot-shell-border-left: #28a745;
    --pf-chatbot-shell-border-right: #20c997;
    --pf-chatbot-neon-slate: #1A1F2B;
    --pf-chatbot-neon-mint: #4DFFDF;
    --pf-chatbot-neon-magenta: #FF4FD8;
    --pf-chatbot-neon-text: rgba(244, 249, 255, 0.96);
    --pf-chatbot-neon-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(77, 255, 223, 0.08) 100%);
    --pf-chatbot-text-strong: #172233;
    --pf-chatbot-text-body: #2b3a4f;
    --pf-chatbot-text-muted: #627188;
    --pf-chatbot-text-soft: #7b889c;
    --pf-chatbot-mint-ink: #0f8f87;
    --pf-chatbot-magenta-ink: #bf2f9d;
}

/* Level 2: Box - Definiert Grenzen, Border und Scroll-Container */
.pf-chatbot-box {
    flex: 1; /* Wächst mit Parent */
    min-height: 0; /* Wichtig für Flexbox-Scrolling */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Box selbst hat kein Scroll - verhindert Border-Radius-Bleed */
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.15);
    border-radius: 12px;
}

/* Overlay-spezifische Box-Styles mit Border */
.pf-chatbot-overlay .pf-chatbot-box {
    border-radius: 15px; /* Box-Radius - Header/Footer passen sich an */
    flex: 0 1 auto;
    box-shadow: none;
    border-top: none; /* WICHTIG: Kein Border - nur left/right */
    border-bottom: none; /* WICHTIG: Kein Border - nur left/right */
    overflow: hidden; /* WICHTIG: Schneidet Header/Footer auf Box-Radius */
    width: min(100%, 575px);
    min-width: 0;
    max-width: 575px;
    height: clamp(660px, 86dvh, 820px);
    max-height: calc(100dvh - 32px);
    margin: 0 auto;
}

.pf-chatbot-layout-wrapper.pf-chatbot-overlay.pf-chatbot-overlay-embedded .pf-chatbot-box {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100%;
    border-radius: 12px;
}

/* Widget-Mode: Box wird von JS physisch auf document.body verschoben.
   position/left/top/width/height werden per inline-style gesetzt. */
.pf-chatbot-app.pf-chatbot-widget-mode .pf-chatbot-box {
    min-width: 360px;
    min-height: 420px;
}

.pf-chatbot-resize-handle {
    /* Positioned fixed by JS at box bottom-right corner */
    width: 32px;
    height: 32px;
    border: 0;
    padding: 0;
    border-bottom-right-radius: 12px;
    background:
        linear-gradient(135deg, transparent 0 35%, rgba(77, 255, 223, 0.85) 36% 50%, transparent 51% 100%),
        linear-gradient(135deg, transparent 0 55%, rgba(255, 79, 216, 0.85) 56% 68%, transparent 69% 100%),
        linear-gradient(135deg, transparent 0 72%, rgba(77, 255, 223, 0.5) 73% 82%, transparent 83% 100%);
    opacity: 0.9;
    cursor: nwse-resize;
    transition: opacity 0.15s ease;
}

.pf-chatbot-resize-handle:hover {
    opacity: 1;
    transform: scale(1.08);
}

.pf-chatbot-box.pf-chatbot-widget-resizing {
    user-select: none;
}

.pf-chatbot-box.pf-chatbot-widget-hidden {
    display: none;
}

.pf-chatbot-box.pf-chatbot-widget-dragging {
    user-select: none;
    cursor: move;
}

.pf-chatbot-widget-bubble {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10040;
    border: 0;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #f4f9ff;
    background: linear-gradient(135deg, #1A1F2B 0%, #253149 55%, #0f8f87 100%);
    box-shadow: 0 14px 26px rgba(26, 31, 43, 0.38);
    cursor: grab;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pf-chatbot-widget-bubble.is-dragging {
    cursor: grabbing;
    transition: none;
}

.pf-chatbot-widget-bubble.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.pf-chatbot-widget-bubble-icon {
    font-size: 1.9rem;
    line-height: 1;
}

.pf-chatbot-icon-robot-wrap {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pf-chatbot-icon-robot-svg {
    width: 100%;
    height: 100%;
    display: block;
    transform-origin: center bottom;
    animation: pf-chatbot-robot-float 3s ease-in-out infinite;
}

.pf-chatbot-icon-robot-antenna-left,
.pf-chatbot-icon-robot-antenna-right {
    transform-box: fill-box;
    transform-origin: bottom center;
}

.pf-chatbot-icon-robot-antenna-left {
    animation: pf-chatbot-robot-wiggle-slow 4s ease-in-out infinite;
}

.pf-chatbot-icon-robot-antenna-right {
    animation: pf-chatbot-robot-wiggle-slow 5.5s ease-in-out 1.5s infinite;
}

.pf-chatbot-icon-robot-eyes {
    transform-box: fill-box;
    transform-origin: center center;
    animation: pf-chatbot-robot-blink 5s ease-in-out .5s infinite;
}

.pf-chatbot-icon-robot-pupil-left {
    animation: pf-chatbot-robot-think-left 7s ease-in-out 2s infinite;
}

.pf-chatbot-icon-robot-pupil-right {
    animation: pf-chatbot-robot-think-right 7s ease-in-out 2s infinite;
}

.pf-chatbot-icon-robot-mouth {
    transform-box: fill-box;
    transform-origin: center center;
}

.pf-chatbot-message-typing .pf-chatbot-icon-robot-mouth,
.pf-chatbot-message-speaking .pf-chatbot-icon-robot-mouth {
    animation: pf-chatbot-robot-talk .34s ease-in-out infinite;
}

.pf-chatbot-icon:hover .pf-chatbot-icon-robot-antenna-left {
    animation: pf-chatbot-robot-wiggle-fast .4s ease-in-out infinite;
}

.pf-chatbot-icon:hover .pf-chatbot-icon-robot-antenna-right {
    animation: pf-chatbot-robot-wiggle-fast .5s ease-in-out infinite reverse;
}

.pf-chatbot-icon .pf-chatbot-icon-robot-wrap {
    width: 28px;
    height: 28px;
}

.pf-chatbot-message-avatar .pf-chatbot-icon-robot-wrap {
    width: 29px;
    height: 29px;
}

.pf-chatbot-widget-bubble-icon .pf-chatbot-icon-robot-wrap {
    width: 34px;
    height: 34px;
}

@keyframes pf-chatbot-robot-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes pf-chatbot-robot-wiggle-slow {
    0%, 75%, 100% { transform: rotate(0deg); }
    80% { transform: rotate(-12deg); }
    85% { transform: rotate(8deg); }
    90% { transform: rotate(-4deg); }
    95% { transform: rotate(0deg); }
}

@keyframes pf-chatbot-robot-wiggle-fast {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

@keyframes pf-chatbot-robot-blink {
    0%, 42%, 48%, 100% { transform: scaleY(1); }
    45% { transform: scaleY(.1); }
}

@keyframes pf-chatbot-robot-think-left {
    0%, 30%, 100% { transform: translate(0, 0); }
    35% { transform: translate(3px, -2px); }
    50% { transform: translate(-3px, 0); }
    65% { transform: translate(0, 2px); }
    80% { transform: translate(2px, 0); }
}

@keyframes pf-chatbot-robot-think-right {
    0%, 30%, 100% { transform: translate(0, 0); }
    35% { transform: translate(3px, -2px); }
    50% { transform: translate(-3px, 0); }
    65% { transform: translate(0, 2px); }
    80% { transform: translate(2px, 0); }
}

@keyframes pf-chatbot-robot-talk {
    0%, 100% { transform: scaleY(1); }
    45% { transform: scaleY(1.75); }
    70% { transform: scaleY(0.75); }
}

@media (prefers-reduced-motion: reduce) {
    .pf-chatbot-icon-robot-svg,
    .pf-chatbot-icon-robot-svg * {
        animation: none !important;
        transition: none !important;
    }
}

.pf-chatbot-widget-bubble-label {
    display: none;
}

/* ── Chatbot: Overlay als unsichtbarer Passthrough-Container ─────────────
   backdrop-filter entfernen → kein Containing Block für position:fixed
   pointer-events: none → Dashboard bleibt nutzbar                    ── */
#pf-overlay.pf-overlay-module-pf_chatbot {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

#pf-overlay.pf-overlay-module-pf_chatbot .pf-overlay-inner {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    pointer-events: none !important;
    overflow: visible !important;
}

/* Chatbot-Box selbst ist klickbar */
#pf-overlay.pf-overlay-module-pf_chatbot .pf-chatbot-box {
    pointer-events: auto;
}

/* Standard Overlay-Close-Button für Chatbot verstecken (eigener X-Button) */
#pf-overlay.pf-overlay-module-pf_chatbot #pf-overlay-close-btn {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HEADER - Grün-Türkiser Gradient mit Animation
   ═══════════════════════════════════════════════════════════════════════════════ */

.pf-chatbot-header {
    background: linear-gradient(135deg, var(--pf-chatbot-neon-slate) 0%, #23293a 52%, #161b26 100%);
    color: var(--pf-chatbot-neon-text);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(77, 255, 223, 0.28);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(26, 31, 43, 0.38);
    border-left: none;
    border-right: none;
    border-top: none;
    border-radius: 0; /* WICHTIG: Box übernimmt Radius! */
}

.pf-chatbot-app.pf-chatbot-widget-mode .pf-chatbot-header {
    cursor: grab;
}

.pf-chatbot-header.pf-chatbot-header-draggable-active {
    cursor: grabbing;
}

/* Animierter Glaseffekt im Header */
.pf-chatbot-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 24% 45%, rgba(77, 255, 223, 0.2) 0%, transparent 42%),
        radial-gradient(circle at 78% 25%, rgba(255, 79, 216, 0.18) 0%, transparent 36%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    animation: pf-chatbot-headerShimmer 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pf-chatbot-headerShimmer {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -20px) rotate(180deg); }
}

.pf-chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.pf-chatbot-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(77, 255, 223, 0.16) 0%, rgba(255, 79, 216, 0.12) 100%);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(77, 255, 223, 0.34);
    box-shadow: 0 0 0 1px rgba(255, 79, 216, 0.08) inset, 0 12px 24px rgba(0, 0, 0, 0.18);
}

.pf-chatbot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 24px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.pf-chatbot-icon:hover {
    transform: scale(1.08) rotate(10deg);
    color: var(--pf-chatbot-neon-mint);
}

.pf-chatbot-title-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pf-chatbot-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #f8fcff;
    text-shadow: 0 0 22px rgba(77, 255, 223, 0.14);
}

.pf-chatbot-meta {
    font-size: 13px;
    color: rgba(77, 255, 223, 0.88);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.pf-chatbot-header-right {
    display: flex;
    gap: 16px;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pf-chatbot-user-pill,
.pf-chatbot-dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 4px 12px;
    min-height: 34px;
    color: #f9fcff;
    background: linear-gradient(135deg, rgba(77, 255, 223, 0.16) 0%, rgba(255, 79, 216, 0.12) 100%);
    border: 1px solid rgba(77, 255, 223, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(255, 79, 216, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.pf-chatbot-user-pill {
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
}

.pf-chatbot-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(77, 255, 223, 0.24) 0%, rgba(255, 79, 216, 0.2) 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    overflow: hidden;
}

.pf-chatbot-user-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.pf-chatbot-user-name {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 0.84rem;
    font-weight: 600;
    color: rgba(245, 249, 255, 0.96);
    white-space: nowrap;
}

.pf-chatbot-bubu-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(10, 16, 28, 0.44);
    border: 1px solid rgba(255, 208, 96, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    min-height: 22px;
}

.pf-chatbot-bubu-icon {
    font-size: 0.86rem;
    line-height: 1;
}

.pf-chatbot-bubu-value {
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 700;
    color: rgba(255, 236, 176, 0.98);
    letter-spacing: 0.01em;
}

.pf-chatbot-bubu-pill.is-loading .pf-chatbot-bubu-value {
    opacity: 0.62;
}

.pf-chatbot-dashboard-btn {
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    max-width: min(45vw, 360px);
}

.pf-chatbot-dashboard-btn.pf-chatbot-dashboard-btn-close {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    max-width: none;
}

.pf-chatbot-minimize-btn {
    flex-shrink: 0;
}

.pf-chatbot-minimize-symbol {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    margin-top: -2px;
}

.pf-chatbot-dashboard-btn:hover {
    background: linear-gradient(135deg, rgba(77, 255, 223, 0.24) 0%, rgba(255, 79, 216, 0.2) 100%);
    border-color: rgba(255, 79, 216, 0.32);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(26, 31, 43, 0.22);
}

.pf-chatbot-dash-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.pf-chatbot-dash-logo {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    transform-origin: center;
    animation: pf-chatbot-dashLogoFloat 3.8s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(77, 255, 223, 0.18));
}

.pf-chatbot-dash-label {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pf-chatbot-return-arrow {
    font-size: 1rem;
    line-height: 1;
}

.pf-chatbot-close-symbol {
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 700;
}

.pf-chatbot-toast-stack {
    position: fixed;
    top: 88px;
    right: 18px;
    z-index: 10090;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.pf-chatbot-toast {
    min-width: 240px;
    max-width: min(88vw, 360px);
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f8fcff;
    border: 1px solid rgba(77, 255, 223, 0.44);
    box-shadow: 0 14px 30px rgba(26, 31, 43, 0.35);
    background: linear-gradient(135deg, rgba(16, 26, 40, 0.95) 0%, rgba(24, 35, 58, 0.93) 54%, rgba(53, 22, 63, 0.93) 100%);
    transform: translateY(-10px) scale(0.98);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.pf-chatbot-toast.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.pf-chatbot-toast.is-leaving {
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
}

.pf-chatbot-toast-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.pf-chatbot-toast-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pf-chatbot-toast-copy strong {
    font-size: 0.96rem;
    color: rgba(255, 236, 176, 0.98);
    line-height: 1.2;
}

.pf-chatbot-toast-copy span {
    font-size: 0.82rem;
    color: rgba(244, 249, 255, 0.9);
    line-height: 1.2;
}

.pf-chatbot-dashboard-btn:hover .pf-chatbot-dash-logo {
    animation: pf-chatbot-dashLogoSpin 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}

@keyframes pf-chatbot-dashLogoFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 0 rgba(77, 255, 223, 0));
    }
    50% {
        transform: translateY(-1px) scale(1.06);
        filter: drop-shadow(0 6px 12px rgba(77, 255, 223, 0.28));
    }
}

@keyframes pf-chatbot-dashLogoSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    55% {
        transform: rotate(18deg) scale(1.12);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   📋 INFO SECTION - Togglebar
   ═══════════════════════════════════════════════════════════════════════════════ */

.pf-chatbot-info-section {
    background: linear-gradient(145deg, rgba(12, 19, 34, 0.98) 0%, rgba(18, 27, 44, 0.98) 54%, rgba(27, 33, 52, 0.99) 100%);
    border-bottom: 1px solid rgba(77, 255, 223, 0.24);
    padding: 20px 24px;
    animation: pf-chatbot-slideDown 0.3s ease-out;
    flex-shrink: 0;
    display: block;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

.pf-chatbot-info-section[hidden] {
    display: none !important;
}

@keyframes pf-chatbot-slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pf-chatbot-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.pf-chatbot-info-description {
    max-height: 200px;
    overflow-y: auto;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(8, 14, 26, 0.82) 0%, rgba(12, 18, 32, 0.9) 100%);
    border: 1px solid rgba(102, 224, 255, 0.2);
}

.pf-chatbot-info-description h3 {
    margin: 0 0 12px 0;
    color: var(--pf-chatbot-neon-mint);
    font-size: 16px;
    font-weight: 700;
}

.pf-chatbot-info-description p {
    margin: 0;
    color: rgba(236, 246, 255, 0.96);
    line-height: 1.66;
    font-size: 14px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.pf-chatbot-info-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pf-chatbot-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(45, 66, 92, 0.58) 0%, rgba(41, 55, 82, 0.6) 100%);
    border-radius: 8px;
    border: 1px solid rgba(102, 224, 255, 0.28);
}

.pf-chatbot-info-label {
    font-weight: 600;
    color: rgba(211, 229, 248, 0.9);
    font-size: 13px;
}

.pf-chatbot-info-value {
    font-weight: 700;
    color: rgba(94, 245, 231, 0.98);
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   💬 CHAT MODULE - Main Content Area (Level 3: Scrollbarer Bereich)
   ═══════════════════════════════════════════════════════════════════════════════ */

.pf-chatbot-module {
    flex: 1;
    min-height: 0; /* Wichtig: Erlaubt Flexbox-Scrolling */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Module selbst hat Container-Scroll in Content */
    background:
        radial-gradient(circle at top left, rgba(77, 255, 223, 0.1) 0%, transparent 28%),
        radial-gradient(circle at top right, rgba(255, 79, 216, 0.08) 0%, transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
}

.pf-chatbot-content {
    flex: 1;
    min-height: 0; /* Wichtig für nested Flexbox */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
    gap: 16px; /* Abstand zwischen Sections */
    border-radius: 0; /* KEIN border-radius - Border läuft durch bis Footer */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 245, 251, 0.96) 100%);
}

.pf-chatbot-overlay .pf-chatbot-content {
    border-left: 4px solid var(--pf-chatbot-shell-border-left);
    border-right: 4px solid var(--pf-chatbot-shell-border-right);
    padding: 14px;
    gap: 12px;
}

.pf-chatbot-layout-wrapper.pf-chatbot-overlay.pf-chatbot-overlay-embedded .pf-chatbot-content {
    border-left: 0;
    border-right: 0;
    padding: 10px;
}

.pf-chatbot-overlay .pf-chatbot-header {
    padding: 14px 18px;
}

.pf-chatbot-overlay .pf-chatbot-messages {
    flex: 1 1 auto;
    padding: 16px;
    gap: 16px;
    min-height: 0;
    max-height: none;
}

.pf-chatbot-overlay .pf-chatbot-message {
    gap: 11px;
}

.pf-chatbot-overlay .pf-chatbot-message-content {
    max-width: 80%;
}

.pf-chatbot-overlay .pf-chatbot-message-text {
    padding: 13px 15px;
    font-size: 14px;
    line-height: 1.58;
}

.pf-chatbot-overlay .pf-chatbot-input-wrapper {
    padding: 12px 14px;
}

.pf-chatbot-overlay .pf-chatbot-input {
    min-height: 42px;
    font-size: 14px;
}

.pf-chatbot-overlay .pf-chatbot-input-actions {
    margin-top: 10px;
}

.pf-chatbot-overlay .pf-chatbot-btn {
    padding: 10px 18px;
    font-size: 14px;
}

.pf-chatbot-overlay .pf-chatbot-guest-notice {
    margin-top: 8px;
    padding: 10px 14px;
    gap: 10px;
    font-size: 12px;
}

.pf-chatbot-overlay .pf-chatbot-footer {
    padding: 10px 16px;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   📊 STATUS BAR - User Info & Online Status
   ═══════════════════════════════════════════════════════════════════════════════ */

.pf-chatbot-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28a745;
    animation: pf-chatbot-pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
}

@keyframes pf-chatbot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.pf-chatbot-status-text {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

.pf-chatbot-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.pf-chatbot-user-role {
    color: #6c757d;
    font-size: 12px;
    text-transform: capitalize;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   💬 CHAT MESSAGES - Modern Message Bubbles mit Custom Gradient Scrollbar
   ═══════════════════════════════════════════════════════════════════════════════ */

.pf-chatbot-messages {
    flex: 1; /* Wächst und nimmt verfügbaren Platz */
    min-height: 0; /* KRITISCH für Flexbox-Scrolling! */
    overflow-y: scroll; /* Scrollbar IMMER anzeigen */
    overflow-x: hidden;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 249, 253, 0.98) 100%);
    border-radius: 12px;
    border: 1px solid rgba(77, 255, 223, 0.18);
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 16px 34px rgba(33, 54, 83, 0.08);
}

/* Custom Gradient Scrollbar für Messages */
.pf-chatbot-messages::-webkit-scrollbar {
    width: 12px;
}

.pf-chatbot-messages::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #e8f5e8 0%, #d4edda 100%);
    border-radius: 6px;
    margin: 4px 0;
}

.pf-chatbot-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
    border-radius: 6px;
    border: 2px solid #e8f5e8;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.pf-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 50%, #138496 100%);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   🎨 SCROLLBAR STYLING - Grün-Türkis passend zu Header/Footer/Border
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Scrollbar für Messages */
.pf-chatbot-messages::-webkit-scrollbar {
    width: 10px;
}

.pf-chatbot-messages::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(77, 255, 223, 0.08) 0%, rgba(255, 79, 216, 0.08) 100%);
    border-radius: 5px;
}

.pf-chatbot-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--pf-chatbot-neon-mint) 0%, var(--pf-chatbot-neon-magenta) 100%);
    border-radius: 5px;
    border: 2px solid #f4f9fd;
}

.pf-chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #72ffe8 0%, #ff7ae2 100%);
}

/* Firefox Scrollbar Styling */
.pf-chatbot-messages {
    scrollbar-width: thin;
    scrollbar-color: var(--pf-chatbot-neon-mint) rgba(77, 255, 223, 0.08);
}

/* Scrollbar für Info Description */
.pf-chatbot-info-description::-webkit-scrollbar {
    width: 8px;
}

.pf-chatbot-info-description::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(77, 255, 223, 0.08) 0%, rgba(255, 79, 216, 0.08) 100%);
    border-radius: 4px;
}

.pf-chatbot-info-description::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--pf-chatbot-neon-mint) 0%, var(--pf-chatbot-neon-magenta) 100%);
    border-radius: 4px;
    border: 2px solid rgba(26, 31, 43, 0.96);
}

.pf-chatbot-info-description::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #72ffe8 0%, #ff7ae2 100%);
}

/* Firefox */
.pf-chatbot-info-description {
    scrollbar-width: thin;
    scrollbar-color: var(--pf-chatbot-neon-mint) rgba(77, 255, 223, 0.08);
}

.pf-chatbot-message {
    display: flex;
    gap: 14px;
    animation: pf-chatbot-messageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes pf-chatbot-messageSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.pf-chatbot-message-bot {
    align-self: flex-start;
}

.pf-chatbot-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.pf-chatbot-message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(77, 255, 223, 0.88) 0%, rgba(255, 79, 216, 0.86) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(255, 79, 216, 0.14), 0 0 0 1px rgba(77, 255, 223, 0.18);
    transition: all 0.3s ease;
    overflow: hidden;
}

.pf-chatbot-avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.pf-chatbot-message:hover .pf-chatbot-message-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 26px rgba(77, 255, 223, 0.16), 0 0 24px rgba(255, 79, 216, 0.12);
}

.pf-chatbot-message-user .pf-chatbot-message-avatar {
    background: linear-gradient(135deg, rgba(255, 79, 216, 0.88) 0%, rgba(77, 255, 223, 0.76) 100%);
    box-shadow: 0 10px 20px rgba(77, 255, 223, 0.12), 0 0 0 1px rgba(255, 79, 216, 0.2);
}

.pf-chatbot-message-user:hover .pf-chatbot-message-avatar {
    box-shadow: 0 12px 26px rgba(255, 79, 216, 0.16), 0 0 24px rgba(77, 255, 223, 0.12);
}

.pf-chatbot-avatar-initials {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pf-chatbot-message-content {
    max-width: 75%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pf-chatbot-message-header {
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.pf-chatbot-sender-name {
    font-weight: 700;
    color: var(--pf-chatbot-mint-ink);
    font-size: 14px;
    text-shadow: none;
}

.pf-chatbot-message-user .pf-chatbot-sender-name {
    color: var(--pf-chatbot-magenta-ink);
}

.pf-chatbot-message-time {
    font-size: 12px;
    color: var(--pf-chatbot-text-soft);
    font-weight: 500;
}

.pf-chatbot-look-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.pf-chatbot-look-badge-legend {
    background: rgba(224, 173, 67, 0.16);
    color: #7c5605;
    border-color: rgba(224, 173, 67, 0.36);
}

.pf-chatbot-look-badge-spark {
    background: rgba(72, 154, 240, 0.14);
    color: #1f5392;
    border-color: rgba(72, 154, 240, 0.34);
}

.pf-chatbot-look-badge-plain {
    background: rgba(77, 255, 223, 0.13);
    color: #1c6b67;
    border-color: rgba(77, 255, 223, 0.3);
}

.pf-chatbot-message-text {
    position: relative;
    background: linear-gradient(135deg, rgba(245, 255, 252, 0.98) 0%, rgba(237, 248, 248, 0.98) 100%);
    padding: 16px 18px;
    border-radius: 0 16px 16px 16px; /* BOT: Oben links eckig (0), Rest rund */
    border: 1px solid rgba(77, 255, 223, 0.26);
    color: var(--pf-chatbot-text-body);
    line-height: 1.65;
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(33, 54, 83, 0.08), 
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pf-chatbot-message-text p {
    margin: 0;
}

.pf-chatbot-message-text p + p {
    margin-top: 10px;
}

.pf-chatbot-message-text strong {
    color: var(--pf-chatbot-text-strong);
}

.pf-chatbot-message-text code {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    background: rgba(77, 255, 223, 0.1);
    color: #146f78;
    font-size: 0.92em;
}

.pf-chatbot-rich-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.35rem;
}

.pf-chatbot-rich-list:not(:first-child) {
    margin-top: 10px;
}

/* Module-Links in Bot-Nachrichten */
.pf-chatbot-message-text a.pf-chatbot-module-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(77, 255, 223, 0.18) 0%, rgba(255, 79, 216, 0.18) 100%);
    color: var(--pf-chatbot-text-strong);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid rgba(77, 255, 223, 0.22);
    box-shadow: 0 10px 20px rgba(33, 54, 83, 0.08);
}

.pf-chatbot-message-text a.pf-chatbot-module-link::before {
    content: '🚀';
    font-size: 16px;
}

.pf-chatbot-message-text a.pf-chatbot-module-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 79, 216, 0.12), 0 0 24px rgba(77, 255, 223, 0.12);
    background: linear-gradient(135deg, rgba(77, 255, 223, 0.26) 0%, rgba(255, 79, 216, 0.24) 100%);
    border-color: rgba(255, 79, 216, 0.28);
}

.pf-chatbot-message-text a.pf-chatbot-module-link:active {
    transform: translateY(0);
}

.pf-chatbot-module-results {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.pf-chatbot-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.pf-chatbot-action-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 121, 18, 0.12);
    border: 1px solid rgba(255, 121, 18, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pf-chatbot-action-brand:hover {
    transform: translateY(-1px);
    background: rgba(255, 121, 18, 0.2);
    box-shadow: 0 8px 14px rgba(255, 121, 18, 0.18);
}

.pf-chatbot-action-brand-logo {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    object-fit: cover;
    display: block;
}

.pf-chatbot-action-brand-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b95c0d;
}

.pf-chatbot-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.pf-chatbot-action-btn:hover {
    transform: translateY(-1px);
}

.pf-chatbot-action-btn-primary {
    background: linear-gradient(135deg, rgba(77, 255, 223, 0.22) 0%, rgba(255, 79, 216, 0.22) 100%);
    color: #162131;
    border-color: rgba(77, 255, 223, 0.24);
    box-shadow: 0 10px 20px rgba(255, 79, 216, 0.12);
}

.pf-chatbot-action-btn-secondary {
    background: rgba(77, 255, 223, 0.08);
    color: var(--pf-chatbot-mint-ink);
    border-color: rgba(77, 255, 223, 0.18);
}

.pf-chatbot-action-btn-danger {
    background: rgba(255, 79, 216, 0.1);
    color: #8e1b6e;
    border-color: rgba(255, 79, 216, 0.2);
}

.pf-chatbot-module-card {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(77, 255, 223, 0.14);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 247, 252, 0.98) 100%);
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 14px 28px rgba(33, 54, 83, 0.08);
}

.pf-chatbot-module-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 79, 216, 0.26);
    box-shadow: 0 18px 34px rgba(255, 79, 216, 0.1), 0 0 24px rgba(77, 255, 223, 0.1);
}

.pf-chatbot-module-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pf-chatbot-module-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, rgba(77, 255, 223, 0.18) 0%, rgba(255, 79, 216, 0.18) 100%);
    flex-shrink: 0;
}

.pf-chatbot-module-card-headline {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pf-chatbot-module-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--pf-chatbot-text-strong);
}

.pf-chatbot-module-card-slug {
    font-size: 12px;
    color: var(--pf-chatbot-text-muted);
}

.pf-chatbot-module-card-description {
    margin: 12px 0 0;
    color: var(--pf-chatbot-text-body);
    font-size: 13px;
    line-height: 1.55;
}

.pf-chatbot-module-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.pf-chatbot-module-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(77, 255, 223, 0.1);
    color: var(--pf-chatbot-mint-ink);
    font-size: 11px;
    font-weight: 700;
}

.pf-chatbot-module-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.pf-chatbot-module-card-access {
    margin-top: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    border: 1px solid rgba(98, 113, 136, 0.25);
    background: rgba(98, 113, 136, 0.1);
    color: #33445d;
}

.pf-chatbot-module-card-access.is-allowed {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.12);
    color: #0f7a3b;
}

.pf-chatbot-module-card-access.is-denied {
    border-color: rgba(244, 63, 94, 0.38);
    background: rgba(244, 63, 94, 0.12);
    color: #a11f45;
}

.pf-chatbot-module-card-access.is-unknown {
    border-color: rgba(148, 163, 184, 0.32);
    background: rgba(148, 163, 184, 0.12);
    color: #384a65;
}

.pf-chatbot-module-card-author {
    color: var(--pf-chatbot-text-muted);
    font-size: 11px;
}

.pf-chatbot-module-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pf-chatbot-mint-ink);
    font-size: 12px;
    font-weight: 700;
}

.pf-chatbot-module-card-cta::after {
    content: '→';
    font-size: 14px;
}

/* Dezentes Glassmorphism Highlight */
.pf-chatbot-message-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, transparent 100%);
    border-radius: 0 16px 0 0; /* BOT: Oben links eckig, oben rechts rund */
    pointer-events: none;
}

.pf-chatbot-message-bot .pf-chatbot-message-text::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border-left: 3px solid rgba(77, 255, 223, 0.38);
    pointer-events: none;
}

.pf-chatbot-message-bot.pf-chatbot-message-look-legend .pf-chatbot-message-text {
    background: linear-gradient(135deg, rgba(255, 252, 240, 0.98) 0%, rgba(248, 242, 223, 0.98) 100%);
    border-color: rgba(224, 173, 67, 0.35);
}

.pf-chatbot-message-bot.pf-chatbot-message-look-legend .pf-chatbot-message-text::after {
    border-left-color: rgba(224, 173, 67, 0.46);
}

.pf-chatbot-message-bot.pf-chatbot-message-look-legend .pf-chatbot-message-avatar {
    background: linear-gradient(135deg, rgba(236, 180, 70, 0.92) 0%, rgba(255, 220, 133, 0.9) 100%);
    box-shadow: 0 10px 22px rgba(224, 173, 67, 0.24), 0 0 0 1px rgba(214, 153, 32, 0.28);
}

.pf-chatbot-message-bot.pf-chatbot-message-look-legend .pf-chatbot-message-text a.pf-chatbot-module-link {
    background: linear-gradient(135deg, rgba(255, 227, 160, 0.5) 0%, rgba(243, 196, 84, 0.34) 100%);
    border-color: rgba(214, 153, 32, 0.36);
}

.pf-chatbot-message-bot.pf-chatbot-message-look-spark .pf-chatbot-message-text {
    background: linear-gradient(135deg, rgba(241, 253, 255, 0.98) 0%, rgba(236, 247, 255, 0.98) 100%);
    border-color: rgba(72, 154, 240, 0.3);
}

.pf-chatbot-message-bot.pf-chatbot-message-look-spark .pf-chatbot-message-text::after {
    border-left-color: rgba(72, 154, 240, 0.42);
}

.pf-chatbot-message-bot.pf-chatbot-message-look-spark .pf-chatbot-message-avatar {
    background: linear-gradient(135deg, rgba(72, 154, 240, 0.92) 0%, rgba(118, 199, 255, 0.9) 100%);
    box-shadow: 0 10px 22px rgba(72, 154, 240, 0.2), 0 0 0 1px rgba(72, 154, 240, 0.26);
}

.pf-chatbot-message-bot.pf-chatbot-message-look-spark .pf-chatbot-message-text a.pf-chatbot-module-link {
    background: linear-gradient(135deg, rgba(166, 223, 255, 0.44) 0%, rgba(91, 176, 255, 0.3) 100%);
    border-color: rgba(72, 154, 240, 0.34);
}

.pf-chatbot-message-bot.pf-chatbot-message-look-plain .pf-chatbot-message-text {
    background: linear-gradient(135deg, rgba(245, 255, 252, 0.98) 0%, rgba(237, 248, 248, 0.98) 100%);
}

.pf-chatbot-action-buttons-look-legend .pf-chatbot-action-btn-primary {
    background: linear-gradient(135deg, rgba(255, 225, 150, 0.62) 0%, rgba(240, 187, 65, 0.46) 100%);
    border-color: rgba(214, 153, 32, 0.38);
    color: #553803;
    box-shadow: 0 10px 20px rgba(214, 153, 32, 0.2);
}

.pf-chatbot-action-buttons-look-legend .pf-chatbot-action-btn-secondary {
    background: rgba(255, 233, 176, 0.34);
    border-color: rgba(214, 153, 32, 0.3);
    color: #6c4a09;
}

.pf-chatbot-action-buttons-look-spark .pf-chatbot-action-btn-primary {
    background: linear-gradient(135deg, rgba(159, 219, 255, 0.58) 0%, rgba(77, 164, 249, 0.42) 100%);
    border-color: rgba(72, 154, 240, 0.38);
    color: #0e3d76;
    box-shadow: 0 10px 20px rgba(72, 154, 240, 0.2);
}

.pf-chatbot-action-buttons-look-spark .pf-chatbot-action-btn-secondary {
    background: rgba(181, 228, 255, 0.32);
    border-color: rgba(72, 154, 240, 0.3);
    color: #1b589d;
}

.pf-chatbot-message:hover .pf-chatbot-message-text {
    box-shadow: 0 14px 28px rgba(33, 54, 83, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.94);
    transform: translateY(-1px);
    border-color: rgba(255, 79, 216, 0.18);
}

.pf-chatbot-message-user .pf-chatbot-message-text {
    background: linear-gradient(135deg, rgba(255, 240, 249, 0.98) 0%, rgba(255, 250, 253, 0.98) 100%);
    color: var(--pf-chatbot-text-body);
    border: 1px solid rgba(255, 79, 216, 0.26);
    border-radius: 16px 0 16px 16px; /* USER: Oben rechts eckig (0), Rest rund */
    box-shadow: 0 12px 24px rgba(33, 54, 83, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pf-chatbot-message-user .pf-chatbot-message-text::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, transparent 100%);
    border-radius: 16px 0 0 0; /* USER: Oben rechts eckig, oben links rund */
}

.pf-chatbot-message-user .pf-chatbot-message-text::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border-right: 3px solid rgba(255, 79, 216, 0.3);
    pointer-events: none;
}

.pf-chatbot-message-user:hover .pf-chatbot-message-text {
    box-shadow: 0 16px 30px rgba(255, 79, 216, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.pf-chatbot-message-welcome .pf-chatbot-message-content {
    max-width: min(680px, 100%);
}

.pf-chatbot-welcome-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 252, 0.98) 100%);
    border: 1px solid rgba(77, 255, 223, 0.14);
    border-radius: 0 18px 18px 18px;
    padding: 14px 15px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(33, 54, 83, 0.07);
}

.pf-chatbot-welcome-panel::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
}

.pf-chatbot-welcome-intro {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.pf-chatbot-wave-hand {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(77, 255, 223, 0.16) 0%, rgba(255, 79, 216, 0.14) 100%);
    color: var(--pf-chatbot-neon-mint);
    flex-shrink: 0;
    animation: pf-chatbot-wave 1.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

.pf-chatbot-wave-hand svg {
    width: 18px;
    height: 18px;
}

.pf-chatbot-welcome-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pf-chatbot-welcome-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
    color: var(--pf-chatbot-text-strong);
}

.pf-chatbot-welcome-subtitle {
    margin: 0;
    color: var(--pf-chatbot-text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.pf-chatbot-welcome-features {
    display: grid;
    gap: 8px;
}

.pf-chatbot-feature-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.76);
    border-radius: 0.75rem;
    border: 1px solid rgba(77, 255, 223, 0.12);
    transition: all 0.2s ease;
}

.pf-chatbot-feature-item:hover {
    background: linear-gradient(135deg, rgba(77, 255, 223, 0.08) 0%, rgba(255, 79, 216, 0.08) 100%);
    border-color: rgba(255, 79, 216, 0.16);
    transform: translateX(4px);
}

.pf-chatbot-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pf-chatbot-feature-item:hover .pf-chatbot-feature-icon {
    transform: scale(1.08);
}

.pf-chatbot-feature-icon svg {
    width: 18px;
    height: 18px;
}

.pf-chatbot-feature-icon-books {
    background: rgba(77, 255, 223, 0.16);
    color: var(--pf-chatbot-neon-mint);
}

.pf-chatbot-feature-icon-idea {
    background: rgba(255, 79, 216, 0.14);
    color: var(--pf-chatbot-neon-magenta);
}

.pf-chatbot-feature-icon-tools {
    background: rgba(77, 255, 223, 0.12);
    color: var(--pf-chatbot-neon-mint);
}

.pf-chatbot-feature-icon-chart {
    background: rgba(255, 79, 216, 0.12);
    color: var(--pf-chatbot-neon-magenta);
}

.pf-chatbot-feature-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pf-chatbot-feature-copy strong {
    color: var(--pf-chatbot-text-strong);
    font-size: 13px;
}

.pf-chatbot-feature-copy span {
    color: var(--pf-chatbot-text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.pf-chatbot-welcome-hint {
    margin: 12px 0 0;
    color: var(--pf-chatbot-mint-ink);
    font-weight: 600;
    font-size: 13px;
}

.pf-chatbot-message-streaming .pf-chatbot-message-text {
    min-height: 3.25rem;
}

.pf-chatbot-message-streaming .pf-chatbot-message-text::before {
    opacity: 0.92;
}

.pf-chatbot-stream-cursor::after {
    content: '';
    display: inline-block;
    width: 0.65ch;
    height: 1em;
    margin-left: 2px;
    vertical-align: -0.12em;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.7;
    animation: pf-chatbot-caretBlink 0.9s steps(1) infinite;
}

.pf-chatbot-stream-glow {
    animation: pf-chatbot-streamGlow 1.4s ease-in-out infinite;
}

.pf-chatbot-fade-up {
    opacity: 0;
    transform: translateY(12px);
    animation: pf-chatbot-fadeUp 0.5s ease forwards;
}

.pf-chatbot-delay-1 { animation-delay: 0.1s; }
.pf-chatbot-delay-2 { animation-delay: 0.2s; }
.pf-chatbot-delay-3 { animation-delay: 0.3s; }
.pf-chatbot-delay-4 { animation-delay: 0.4s; }
.pf-chatbot-delay-5 { animation-delay: 0.5s; }

@keyframes pf-chatbot-wave {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
}

@keyframes pf-chatbot-fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pf-chatbot-caretBlink {
    0%, 49% { opacity: 0.7; }
    50%, 100% { opacity: 0; }
}

@keyframes pf-chatbot-streamGlow {
    0%, 100% {
        box-shadow: 0 10px 24px rgba(33, 54, 83, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    50% {
        box-shadow: 0 14px 28px rgba(77, 255, 223, 0.12), 0 0 0 1px rgba(77, 255, 223, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }
}

@media (max-width: 640px) {
    .pf-chatbot-welcome-intro {
        flex-direction: column;
    }

    .pf-chatbot-welcome-panel {
        padding: 16px;
    }

    .pf-chatbot-feature-item {
        padding: 0.75rem 0.875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pf-chatbot-wave-hand,
    .pf-chatbot-fade-up,
    .pf-chatbot-feature-item,
    .pf-chatbot-feature-icon {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transform: none !important;
    }
}

/* 
    QUICK ACTIONS - Schnellzugriff Buttons (VERSTECKT)
    */

.pf-chatbot-quick-actions {
    display: none !important; /* Komplett ausgeblendet */
}

.pf-chatbot-quick-action {
    display: none !important; /* Buttons komplett versteckt */
    pointer-events: none;
}

/* Quick Action Buttons komplett versteckt - keine weiteren Styles nötig */

/* 
    INPUT AREA - Nachrichteneingabe
    */

.pf-chatbot-input-area {
    flex-shrink: 0;
    padding: 0;
}

.pf-chatbot-input-wrapper {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 248, 252, 0.98) 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 14px 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-clip: padding-box;
    box-shadow: 0 14px 28px rgba(33, 54, 83, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.pf-chatbot-input-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--pf-chatbot-neon-mint) 0%, var(--pf-chatbot-neon-magenta) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.3;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.pf-chatbot-input-wrapper:focus-within::before {
    opacity: 1;
}

.pf-chatbot-input-wrapper:focus-within {
    box-shadow: 0 18px 34px rgba(255, 79, 216, 0.1), 0 0 28px rgba(77, 255, 223, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.pf-chatbot-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    line-height: 1.6;
    resize: none;
    min-height: 48px;
    max-height: 140px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--pf-chatbot-text-strong);
    font-weight: 500;
}

.pf-chatbot-input::placeholder {
    color: var(--pf-chatbot-text-soft);
    font-weight: 400;
    transition: color 0.3s ease;
}

.pf-chatbot-input:focus::placeholder {
    color: rgba(123, 136, 156, 0.72);
}

.pf-chatbot-input-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}

.pf-chatbot-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--pf-chatbot-neon-mint) 0%, var(--pf-chatbot-neon-magenta) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(255, 79, 216, 0.16), 0 0 20px rgba(77, 255, 223, 0.12);
}

.pf-chatbot-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.pf-chatbot-btn:hover::before {
    left: 100%;
}

.pf-chatbot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(255, 79, 216, 0.18), 0 0 26px rgba(77, 255, 223, 0.14);
}

.pf-chatbot-btn:active {
    transform: translateY(0);
}

/* 
    GUEST NOTICE - Gast-Modus Hinweis
    */

.pf-chatbot-guest-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    color: #6e5200;
    font-size: 13px;
    margin-top: 12px;
    animation: pf-chatbot-guestNoticeSlideIn 0.5s ease;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.pf-chatbot-guest-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.pf-chatbot-guest-content {
    flex: 1;
    line-height: 1.6;
}

.pf-chatbot-guest-text {
    display: inline;
}

.pf-chatbot-guest-text-mobile {
    display: none;
}

.pf-chatbot-guest-content strong {
    font-weight: 700;
    color: #533f03;
}

/* 
    FOOTER - Stromverbrauchsrechner-Style
    */

.pf-chatbot-footer {
    position: sticky;
    bottom: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--pf-chatbot-neon-slate) 0%, #23293a 52%, #161b26 100%);
    background-size: 400% 400%;
    animation: pf-chatbot-gradientShift 10s ease infinite;
    color: rgba(244, 249, 255, 0.92);
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 -10px 32px rgba(26, 31, 43, 0.38);
    border-radius: 0;
    border-top: 1px solid rgba(77, 255, 223, 0.28);
}

.pf-chatbot-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 22% 52%, rgba(77, 255, 223, 0.18) 0%, transparent 44%),
        radial-gradient(circle at 78% 30%, rgba(255, 79, 216, 0.18) 0%, transparent 38%),
        linear-gradient(135deg, #23293a 0%, #1a1f2b 55%, #131824 100%);
    background-size: 400% 400%;
    animation: pf-chatbot-gradientShift 10s ease infinite;
    z-index: -1;
    pointer-events: none;
}

.pf-chatbot-footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 72% 50%, rgba(77, 255, 223, 0.14) 0%, transparent 65%);
    animation: pf-chatbot-footerShimmer 8s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

.pf-chatbot-footer-content {
    display: contents;
    position: relative;
    z-index: 1;
}

.pf-chatbot-footer-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    font-size: 0.82rem;
    opacity: 1;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-chatbot-footer-right {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.pf-chatbot-footer-render {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-chatbot-footer-version {
    font-size: 0.76rem;
    opacity: 0.78;
    white-space: nowrap;
}

.pf-chatbot-footer-left span,
.pf-chatbot-footer-right span {
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes pf-chatbot-gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 
    ANIMATIONS - Keyframe Definitionen
    */

@keyframes pf-chatbot-guestNoticeSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pf-chatbot-footerShimmer {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(50%, 50%) rotate(180deg); }
}

/* 
    RESPONSIVE DESIGN - Mobile & Tablet Optimierung
    */

@media screen and (max-width: 768px) {
    .pf-chatbot-overlay .pf-chatbot-box {
        width: 96%;
        max-width: 96%;
        min-width: 0;
        height: min(88dvh, 760px);
        max-height: calc(100dvh - 24px);
        margin: 0 auto;
    }

    .pf-chatbot-content {
        padding: 14px;
        gap: 12px;
    }

    .pf-chatbot-header {
        align-items: flex-start;
        padding: 14px 16px;
    }

    .pf-chatbot-info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pf-chatbot-header {
        gap: 10px;
    }

    .pf-chatbot-header-left,
    .pf-chatbot-header-right {
        width: 100%;
    }

    .pf-chatbot-header-right {
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .pf-chatbot-user-name,
    .pf-chatbot-dash-label {
        display: none;
    }

    .pf-chatbot-bubu-pill {
        padding: 3px 7px;
        min-height: 20px;
    }

    .pf-chatbot-bubu-value {
        font-size: 0.74rem;
    }

    .pf-chatbot-user-pill,
    .pf-chatbot-dashboard-btn {
        padding: 4px 8px;
        min-width: 40px;
    }

    .pf-chatbot-dashboard-btn.pf-chatbot-dashboard-btn-close {
        width: 32px;
        min-width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .pf-chatbot-dashboard-btn.pf-chatbot-dashboard-btn-close .pf-chatbot-dash-icon {
        width: 18px;
        height: 18px;
    }

    .pf-chatbot-dashboard-btn.pf-chatbot-dashboard-btn-close .pf-chatbot-close-symbol {
        font-size: 1rem;
    }

    .pf-chatbot-dashboard-btn.pf-chatbot-dashboard-btn-close .pf-chatbot-minimize-symbol {
        font-size: 0.95rem;
        margin-top: -1px;
    }

    .pf-chatbot-title {
        font-size: 16px;
    }

    .pf-chatbot-messages {
        padding: 14px;
        gap: 16px;
    }

    .pf-chatbot-message {
        gap: 10px;
    }

    .pf-chatbot-message-avatar {
        width: 40px;
        height: 40px;
    }

    .pf-chatbot-message-content {
        max-width: 100%;
        min-width: 0;
    }

    .pf-chatbot-message-text {
        padding: 14px 15px;
        font-size: 14px;
        line-height: 1.58;
    }

    .pf-chatbot-message-text p,
    .pf-chatbot-message-text li {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .pf-chatbot-message-header {
        gap: 8px;
    }

    .pf-chatbot-message-time {
        font-size: 11px;
    }

    .pf-chatbot-message-welcome .pf-chatbot-message-content {
        max-width: 100%;
    }

    .pf-chatbot-welcome-panel {
        padding: 12px 13px;
        border-radius: 0 16px 16px 16px;
    }

    .pf-chatbot-welcome-features {
        gap: 6px;
    }

    .pf-chatbot-feature-item {
        align-items: flex-start;
    }

    .pf-chatbot-input-wrapper {
        padding: 12px 13px;
    }

    .pf-chatbot-input {
        min-height: 44px;
        font-size: 14px;
    }

    .pf-chatbot-btn {
        padding: 11px 18px;
        font-size: 14px;
    }

    .pf-chatbot-action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .pf-chatbot-action-btn,
    .pf-chatbot-action-brand {
        width: 100%;
        justify-content: center;
    }

    .pf-chatbot-action-brand {
        margin-right: 0;
    }

    .pf-chatbot-guest-notice {
        padding: 12px 14px;
        font-size: 12px;
        line-height: 1.35;
        gap: 8px;
        border-radius: 10px;
    }

    .pf-chatbot-guest-icon {
        font-size: 18px;
    }

    .pf-chatbot-guest-content {
        line-height: 1.35;
    }

    .pf-chatbot-guest-text-desktop {
        display: none;
    }

    .pf-chatbot-guest-text-mobile {
        display: inline;
    }

    .pf-chatbot-footer-left,
    .pf-chatbot-footer-right {
        width: 100%;
        justify-content: center;
    }

    .pf-chatbot-quick-actions {
        flex-direction: column;
    }

    .pf-chatbot-quick-action {
        width: 100%;
        min-width: auto;
    }

    .pf-chatbot-footer-left,
    .pf-chatbot-footer-right {
        width: 100%;
        justify-content: center;
    }

    .pf-chatbot-footer {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px 16px;
    }

    .pf-chatbot-welcome-panel {
        padding: 12px;
    }

    .pf-chatbot-welcome-features {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .pf-chatbot-overlay .pf-chatbot-box {
        width: 100%;
        height: min(90dvh, 720px);
        max-height: calc(100dvh - 12px);
        min-width: 0;
        margin: 0;
        border-radius: 16px;
        border: none;
    }

    .pf-chatbot-layout-wrapper.pf-chatbot-overlay {
        padding: 6px;
    }

    .pf-chatbot-header {
        padding: 12px 13px;
  
    }

    .pf-chatbot-header-left,
    .pf-chatbot-header-right {
        width: 100%;
    }

    .pf-chatbot-header-right {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .pf-chatbot-user-pill,
    .pf-chatbot-dashboard-btn {
        width: auto;
        min-width: 0;
        padding: 4px 7px;
    }

    .pf-chatbot-bubu-pill {
        padding: 2px 6px;
    }

    .pf-chatbot-dashboard-btn {
        justify-content: center;
    }

    .pf-chatbot-dashboard-btn.pf-chatbot-dashboard-btn-close {
        width: 29px;
        min-width: 29px;
        height: 29px;
        border-radius: 8px;
        padding: 0;
    }

    .pf-chatbot-dashboard-btn.pf-chatbot-dashboard-btn-close .pf-chatbot-dash-icon {
        width: 16px;
        height: 16px;
    }

    .pf-chatbot-dashboard-btn.pf-chatbot-dashboard-btn-close .pf-chatbot-close-symbol {
        font-size: 0.92rem;
    }

    .pf-chatbot-dashboard-btn.pf-chatbot-dashboard-btn-close .pf-chatbot-minimize-symbol {
        font-size: 0.88rem;
        margin-top: -1px;
    }

    .pf-chatbot-icon-wrapper {
        width: 42px;
        height: 42px;
    }

    .pf-chatbot-title-section {
        gap: 2px;
    }

    .pf-chatbot-title {
        font-size: 14px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pf-chatbot-meta {
        font-size: 12px;
    }

    .pf-chatbot-content {
        padding: 8px;
        gap: 10px;
    }

    .pf-chatbot-messages {
        padding: 8px;
        gap: 12px;
    }

    .pf-chatbot-message {
        gap: 8px;
    }

    .pf-chatbot-message-avatar {
        width: 34px;
        height: 34px;
    }

    .pf-chatbot-message-content {
        max-width: calc(100% - 40px);
    }

    .pf-chatbot-message-text {
        padding: 11px 12px;
        font-size: 13px;
        line-height: 1.48;
    }

    .pf-chatbot-message-header {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .pf-chatbot-sender-name {
        font-size: 13px;
    }

    .pf-chatbot-welcome-panel {
        padding: 10px 11px;
        border-radius: 0 14px 14px 14px;
    }

    .pf-chatbot-welcome-intro {
        gap: 10px;
        margin-bottom: 10px;
    }

    .pf-chatbot-wave-hand,
    .pf-chatbot-feature-icon {
        width: 28px;
        height: 28px;
    }

    .pf-chatbot-wave-hand svg,
    .pf-chatbot-feature-icon svg {
        width: 16px;
        height: 16px;
    }

    .pf-chatbot-welcome-title {
        font-size: 14px;
    }

    .pf-chatbot-welcome-subtitle {
        font-size: 12px;
    }

    .pf-chatbot-message-header {
        align-items: flex-start;
    }

    .pf-chatbot-sender-name {
        font-size: 12px;
    }

    .pf-chatbot-message-time {
        font-size: 10px;
    }

    .pf-chatbot-look-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .pf-chatbot-action-brand {
        padding: 3px 7px;
    }

    .pf-chatbot-action-brand-logo {
        width: 12px;
        height: 12px;
    }

    .pf-chatbot-action-brand-label {
        font-size: 9px;
    }

    .pf-chatbot-feature-item {
        padding: 0.55rem 0.7rem;
        gap: 0.65rem;
    }

    .pf-chatbot-feature-copy strong {
        font-size: 12.5px;
    }

    .pf-chatbot-feature-copy span,
    .pf-chatbot-welcome-hint {
        font-size: 11.5px;
    }

    .pf-chatbot-module-card {
        padding: 12px;
    }

    .pf-chatbot-module-card-header {
        gap: 10px;
    }

    .pf-chatbot-module-card-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .pf-chatbot-input-wrapper {
        padding: 10px 12px;
    }

    .pf-chatbot-input-actions {
        margin-top: 10px;
    }

    .pf-chatbot-btn {
        width: 100%;
        min-height: 44px;
    }

    .pf-chatbot-guest-notice {
        gap: 8px;
        padding: 8px 10px;
        margin-top: 10px;
        font-size: 11px;
        line-height: 1.25;
        border-radius: 10px;
    }

    .pf-chatbot-guest-icon {
        font-size: 14px;
    }

    .pf-chatbot-guest-content {
        line-height: 1.15;
    }

    .pf-chatbot-guest-notice .pf-chatbot-guest-title {
        display: block;
        margin-bottom: 1px;
    }

    .pf-chatbot-guest-notice .pf-chatbot-guest-text-mobile {
        display: block;
    }

    .pf-chatbot-footer {
        gap: 6px;
        padding: 10px 12px;
    }

    .pf-chatbot-footer-left,
    .pf-chatbot-footer-right {
        font-size: 0.74rem;
    }

    .pf-chatbot-footer-version,
    .pf-chatbot-footer-render {
        text-align: center;
    }
}

/* 
    THEME SUPPORT - Kompatibilität mit PF Themes
    */

[data-theme="dark"] .pf-chatbot-overlay .pf-chatbot-box {
    background: linear-gradient(180deg, #1a1d29 0%, #252a3a 100%);
    --pf-chatbot-shell-border-left: #20c997;
    --pf-chatbot-shell-border-right: #28a745;
}

[data-theme="dark"] .pf-chatbot-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a7b 50%, #3a7ca5 100%);
}

[data-theme="dark"] .pf-chatbot-message-text {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #e2e8f0;
    border-color: rgba(74, 85, 104, 0.3);
}

[data-theme="dark"] .pf-chatbot-message-user .pf-chatbot-message-text {
    background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
    color: #e2e8f0;
}

[data-theme="dark"] .pf-chatbot-input-wrapper {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

[data-theme="dark"] .pf-chatbot-input {
    color: #e2e8f0;
}

[data-theme="dark"] .pf-chatbot-quick-action {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #e2e8f0;
    border-color: #4a5568;
}

/* 
    ENDE DER CSS-DATEI
    */
