        /* --- CSS für den Chatbot --- */


        /* --- Chatbot-Container (Standardmäßig versteckt und unten rechts positioniert) --- */
        #chatbot-container {
            width: 100%;
            max-width: 400px; /* Standard-Maximalbreite für Desktops */
            background-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            min-height: 500px;
            max-height: 80vh;

            /* Feste Positionierung unten rechts */
            position: fixed;
            bottom: 20px; /* Abstand vom unteren Rand */
            right: 20px; /* Abstand vom rechten Rand */
            z-index: 1000; /* Stellt sicher, dass der Chatbot über anderen Elementen liegt */

            /* Startzustand: Versteckt */
            transform: scale(0);
            transform-origin: bottom right;
            opacity: 0;
            transition: transform 0.3s ease-out, opacity 0.3s ease-out;
        }

        /* Zustand wenn der Chatbot geöffnet ist */
        #chatbot-container.open {
            transform: scale(1);
            opacity: 1;
        }

        /* --- Chatbot-Öffnungsbutton (bleibt außen, für das erste Öffnen) --- */
        #chatbot-open-button {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1001;
            background-color: #18206c;
            color: white;
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            font-size: 2em;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            transition: background-color 0.2s, transform 0.2s;
        }

        #chatbot-open-button:hover {
            background-color: #0056b3;
            transform: scale(1.05);
        }

        /* --- Bestehende CSS-Regeln für Header, Nachrichten, Input etc. --- */
        #chatbot-header {
            background-color: #18206c;
            color: white;
            padding: 15px;
            font-size: 1.1em;
            font-weight: bold;
            text-align: center;
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
            position: relative;
        }

        /* --- Neuer Schließen-Button im Header --- */
        #chatbot-close-button {
            position: absolute;
            top: 5px;
            right: 10px;
            background: none;
            border: none;
            color: white;
            font-size: 1.5em;
            cursor: pointer;
            padding: 5px;
            line-height: 1;
        }

        #chatbot-close-button:hover {
            color: #ccc;
        }

        #chatbot-messages {
            flex-grow: 1;
            padding: 15px;
            overflow-y: auto;
            background-color: #e9f2f7;
            border-bottom: 1px solid #ddd;
        }

        .message {
            margin-bottom: 10px;
            padding: 8px 12px;
            border-radius: 15px;
            max-width: 80%;
            word-wrap: break-word;
            line-height: 1.4;
        }

        .bot-message {
            background-color: #d1e7dd;
            align-self: flex-start;
            margin-right: auto;
            border-bottom-left-radius: 2px;
        }

        .user-message {
            background-color: #007bff;
            color: white;
            align-self: flex-end;
            margin-left: auto;
            border-bottom-right-radius: 2px;
        }

        #chatbot-input {
            padding: 15px;
            background-color: #f8f9fa;
            display: flex;
            flex-direction: column;
            gap: 10px;
            border-top: 1px solid #eee;
        }

        #user-input {
            width: calc(100% - 20px);
            padding: 10px;
            border: 1px solid #ced4da;
            border-radius: 5px;
            font-size: 1em;
            box-sizing: border-box;
        }

        #send-button {
            background-color: #007bff;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
            transition: background-color 0.2s;
        }

        #send-button:hover {
            background-color: #0056b3;
        }

        #quick-reply-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 5px;
            justify-content: flex-start;
        }

        #quick-reply-buttons button {
            background-color: #6c757d;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.9em;
            transition: background-color 0.2s;
            flex-grow: 0;
            min-width: fit-content;
            white-space: nowrap;
        }

        #quick-reply-buttons button:hover {
            background-color: #5a6268;
        }

        .phone-number {
            font-weight: bold;
            color: #d9534f;
        }

        .link-button {
            background-color: #28a745 !important;
        }

        .link-button:hover {
            background-color: #218838 !important;
        }

        /* --- Responsive Anpassungen für kleinere Bildschirme --- */
        @media (max-width: 768px) {
            #chatbot-container {
                max-width: 90%;
                right: 5%;
                left: 5%;
                bottom: 10px;
                min-height: 70vh;
                max-height: 90vh;
                border-radius: 10px;
            }

            #chatbot-open-button {
                bottom: 10px;
                right: 10px;
                width: 50px;
                height: 50px;
                font-size: 1.8em;
            }

            #chatbot-header {
                padding: 12px;
                font-size: 1em;
            }

            #chatbot-close-button {
                font-size: 1.3em;
                top: 8px;
                right: 8px;
            }

            .message {
                padding: 7px 10px;
                font-size: 0.9em;
            }

            #chatbot-input {
                padding: 10px;
            }

            #user-input, #send-button {
                padding: 8px;
                font-size: 0.9em;
            }

            #quick-reply-buttons button {
                padding: 7px 12px;
                font-size: 0.85em;
                flex-grow: 1;
                white-space: normal;
            }
        }

        /* Weitere Optimierung für sehr kleine Bildschirme (z.B. iPhone SE) */
        @media (max-width: 480px) {
            #chatbot-container {
                max-width: 85%;
                right: 2.5%;
                left: 2.5%;
                bottom: 100px;
                min-height: 75vh;
                max-height: 85vh;
                border-radius: 8px;
            }

            #chatbot-open-button {
                bottom: 100px;
                right: 5px;
                width: 45px;
                height: 45px;
                font-size: 1.6em;
            }

            #chatbot-header {
                padding: 10px;
            }

            #chatbot-close-button {
                font-size: 1.2em;
                top: 6px;
                right: 6px;
            }

            #user-input, #send-button, #quick-reply-buttons button {
                font-size: 0.8em;
            }
        }