.chat-messages li {
    margin-bottom: 10px;
    line-height: 1.4;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  }
  
  /* Zusätzliche Styles für Listen und fettgedruckten Text */
  li ul, li ol {
    margin-top: 0;
    margin-bottom: 0;
  }
  
  strong {
    font-weight: bold;
  }
  
  .user-message {
    background-color: #dcf8c6; /* Helles Grün */
    align-self: flex-end;
    border-bottom-right-radius: 0;
  }
  
  .response-message {
    background-color: #e6e8e7;
    align-self: flex-start;
    border-bottom-left-radius: 0;
  }
  
  .response-alert-message {
    background-color: #fccbc2; /* Helles Grün */
    align-self: flex-end;
    border-bottom-right-radius: 0;
  }
  
  .helpCanvas_firstView {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 50%;
    text-align: center;
    padding: 20px;
    background: #d4e7de;
    margin: 45px;
    border-radius: 10px;
  }

  .chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .chat-messages {
    list-style: none;
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.9em;
  }
  
  .message-input {
    display: flex;
    padding: 10px;
  }
  
  .message-input input {
    flex-grow: 1;
    margin-right: 5px;
  }
  
  .message-input button {
    white-space: nowrap;
  }
  
.message-input textarea {
  width: 100%;
  min-height: 38px;  /* Minimale Höhe für leere Textarea */
  max-height: 60px;  /* Maximale Höhe vor dem Scrollen (3 Zeilen à 20px) */
  height: auto;
  resize: none;
  overflow-y: hidden;  /* Versteckt den Scrollbalken, bis max-height erreicht ist */
}

.message-input textarea:focus {
  overflow-y: auto;  /* Ermöglicht das Scrollen, wenn fokussiert */
}
  @media (max-width: 768px) {
    .message-input button {
      width: 100%;
      margin-top: 5px;
    }
  
    .message-input {
      flex-direction: column;
    }
  }
  .helpCanvas_overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1051; /* Über dem Offcanvas-Inhalt */
  }
  
  .helpCanvas_spinner {
      text-align: center;
  }
  
  .helpCanvas_spinner .dot {
      height: 20px;
      width: 20px;
      background-color: #fff;
      border-radius: 50%;
      display: inline-block;
      animation: dotFlashing 1.0s infinite linear alternate;
      animation-delay: 0.5s;
  }
  
  .helpCanvas_spinner .dot:nth-child(2) {
      animation-delay: 0.6s;
  }
  
  .helpCanvas_spinner .dot:nth-child(3) {
      animation-delay: 0.7s;
  }
  
  .helpCanvas_firstView {
    height: 100%;
  }
  @keyframes dotFlashing {
      0% {
          background-color: #000;
      }
      50%, 100% {
          background-color: #fff;
      }
  }