/* Grundlegende Styles */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f2f2f2;
  color: #333;
}

/* Dummy-Seite */
.main-content {
  text-align: center;
  padding: 50px;
  font-size: 24px;
  font-weight: bold;
  background-color: #f2f2f2;
}

/* Chat-Button (eingeklappt) */
.chat-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #C20045;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 1000;
}

.chat-icon-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: white;
  border-radius: 50%;
  z-index: 1;
}

.chat-icon-svg {
  position: absolute;
  top: calc(60% - 3px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 50%;
  z-index: 2;
}

.chat-icon-text {
  position: absolute;
  top: calc(60% - 7px);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  color: white;
}

/* Chat-Container */
.chat-container {
  position: fixed;
  top: 15vh;
  bottom: 30px;
  right: 30px;
  width: 360px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.chat-container.active {
  opacity: 1;
  visibility: visible;
}

/* Chat-Header */
.chat-header {
  background-color: #C20045;
  color: white;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.header-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: bold;
}

.header-subtitle {
  font-size: 12px;
  font-weight: normal;
  border: 1px solid white;
  border-radius: 15px;
  padding: 2px 8px;
}

.legal-link {
  font-size: 10px;
  font-weight: normal;
  color: white !important;
  text-decoration: underline !important;
}

.legal-link a {
  color: white !important;
  text-decoration: underline !important;
}

.collapse-chat {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Chat-Messages */
.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: white;
  display: flex;
  flex-direction: column;
}

.message {
  margin-bottom: 15px;
  max-width: 80%;
  padding: 10px 15px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-line;
}

.bot-message {
  background-color: #f0f0f0;
  color: #333;
  text-align: left;
  align-self: flex-start;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 0;
}

.user-message {
  background-color: #C20045;
  color: white;
  text-align: right;
  align-self: flex-end;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 0;
}

/* Chat Input */
.chat-input {
  background-color: #f0f0f0;
  padding: 10px;
  display: flex;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  background-color: white;
}

.chat-input button {
  background-color: #C20045;
  color: white;
  border: none;
  padding: 0 15px;
  margin-left: 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
}

/* Ladeanimation */
.loading {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 5px 0;
}

.loading-bar {
  width: 6px;
  height: 10px;
  background-color: #C20045;
  border-radius: 3px;
  animation: jump 1s infinite;
}

.loading-bar:nth-child(1) { animation-delay: 0s; }
.loading-bar:nth-child(2) { animation-delay: 0.2s; }
.loading-bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes jump {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
