/* Standard template: modern, friendly, color-coded medical assistant UI */

.faqbot--tpl-template-1 {
  --faqbot-radius: 22px;
  --faqbot-border: 1px solid rgba(21, 83, 138, 0.18);
  --faqbot-shadow: 0 20px 45px rgba(17, 42, 73, 0.2);
  --faqbot-font: "Nunito Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: #15385b;
}

.faqbot--tpl-template-1 .faqbot__panel {
  background:
    radial-gradient(circle at 0% 0%, rgba(22, 141, 255, 0.14), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(27, 195, 136, 0.12), transparent 38%),
    #f5f9ff;
}

.faqbot--tpl-template-1 .faqbot__header {
  background: linear-gradient(145deg, #17548c 0%, #1c6bab 50%, #1a806f 100%);
  border-bottom-color: rgba(11, 41, 70, 0.24);
  color: #ffffff;
}

.faqbot--tpl-template-1 .faqbot__title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.faqbot--tpl-template-1 .faqbot__subtitle {
  opacity: 0.9;
  font-weight: 600;
}

.faqbot--tpl-template-1 .faqbot__close {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.faqbot--tpl-template-1 .faqbot__close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(10deg);
}

.faqbot--tpl-template-1 .faqbot__fab {
  background: linear-gradient(145deg, #1c6bab 0%, #1a806f 100%);
  border-color: rgba(23, 76, 126, 0.55);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(12, 45, 79, 0.32);
}

.faqbot--tpl-template-1 .faqbot__fabIcon {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.15);
}

.faqbot--tpl-template-1 .faqbot__fabLabel {
  font-weight: 700;
}

.faqbot--tpl-template-1 .faqbot__body {
  padding: 10px;
  gap: 9px;
}

.faqbot--tpl-template-1 .faqbot__card,
.faqbot--tpl-template-1 .faqbot__topicDetail,
.faqbot--tpl-template-1 .faqbot__loading,
.faqbot--tpl-template-1 .faqbot__stream {
  border-color: rgba(21, 83, 138, 0.16);
}

.faqbot--tpl-template-1 .faqbot__card--welcome {
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(20, 65, 108, 0.09);
}

.faqbot--tpl-template-1 .faqbot__welcomeText {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.faqbot--tpl-template-1 .faqbot__hint {
  font-size: 11px;
  margin-bottom: 5px;
}

.faqbot--tpl-template-1 .faqbot__hint--emergency {
  background: #fff0f1;
  border: 1px solid #ffd4d8;
  border-left: 4px solid #df3448;
  border-radius: 10px;
  color: #8f1f2f;
  margin-top: 8px;
  padding: 8px 10px;
}

.faqbot--tpl-template-1 .faqbot__sectionTitle {
  margin: 8px 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 1;
  color: #356a95;
}

.faqbot--tpl-template-1 .faqbot__chipsGrid {
  gap: 8px;
}

.faqbot--tpl-template-1 .faqbot__topicsLauncher {
  margin-top: 8px;
}

.faqbot--tpl-template-1 .faqbot__topicsOpen,
.faqbot--tpl-template-1 .faqbot__topicsBack,
.faqbot--tpl-template-1 .faqbot__reset {
  min-height: 38px;
  border-radius: 11px;
  background: #ffffff;
  border-color: rgba(39, 104, 156, 0.24);
  font-size: 12px;
  font-weight: 700;
  color: #1f5f97;
  transition: transform 0.16s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.faqbot--tpl-template-1 .faqbot__topicsOpen:hover,
.faqbot--tpl-template-1 .faqbot__topicsBack:hover,
.faqbot--tpl-template-1 .faqbot__reset:hover {
  background: #f0f7ff;
  box-shadow: 0 3px 10px rgba(20, 78, 128, 0.14);
  transform: translateY(-1px);
}

.faqbot--tpl-template-1 .faqbot__topicGroupButton,
.faqbot--tpl-template-1 .faqbot__chip {
  --faqbot-cat-bg: #eff5ff;
  --faqbot-cat-border: #c9dffc;
  --faqbot-cat-fg: #1c5b93;

  border-color: var(--faqbot-cat-border);
  background: linear-gradient(180deg, #ffffff 0%, var(--faqbot-cat-bg) 100%);
  color: var(--faqbot-cat-fg);
}

.faqbot--tpl-template-1 .faqbot__topicGroupButton[data-category="notfall"],
.faqbot--tpl-template-1 .faqbot__chip[data-category="notfall"] {
  --faqbot-cat-bg: #ffeff2;
  --faqbot-cat-border: #ffc9d1;
  --faqbot-cat-fg: #b11f36;
}

.faqbot--tpl-template-1 .faqbot__topicGroupButton[data-category="termine"],
.faqbot--tpl-template-1 .faqbot__chip[data-category="termine"] {
  --faqbot-cat-bg: #ebfaef;
  --faqbot-cat-border: #bde9c8;
  --faqbot-cat-fg: #1e7f46;
}

.faqbot--tpl-template-1 .faqbot__topicGroupButton[data-category="rezepte"],
.faqbot--tpl-template-1 .faqbot__chip[data-category="rezepte"] {
  --faqbot-cat-bg: #f2efff;
  --faqbot-cat-border: #d5cbff;
  --faqbot-cat-fg: #5f40b3;
}

.faqbot--tpl-template-1 .faqbot__topicGroupButton[data-category="kontakt"],
.faqbot--tpl-template-1 .faqbot__chip[data-category="kontakt"] {
  --faqbot-cat-bg: #eaf7fd;
  --faqbot-cat-border: #bee4f4;
  --faqbot-cat-fg: #14658d;
}

.faqbot--tpl-template-1 .faqbot__topicGroupButton[data-category="anfahrt"],
.faqbot--tpl-template-1 .faqbot__chip[data-category="anfahrt"] {
  --faqbot-cat-bg: #fff6e9;
  --faqbot-cat-border: #f4dbb4;
  --faqbot-cat-fg: #9d5e11;
}

.faqbot--tpl-template-1 .faqbot__topicGroupButton[data-category="barrierefrei"],
.faqbot--tpl-template-1 .faqbot__chip[data-category="barrierefrei"] {
  --faqbot-cat-bg: #eefaf8;
  --faqbot-cat-border: #beeae3;
  --faqbot-cat-fg: #167d6f;
}

.faqbot--tpl-template-1 .faqbot__chip {
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 12px;
  text-align: left;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  transition: transform 0.16s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.faqbot--tpl-template-1 .faqbot__chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 75, 120, 0.13);
  filter: saturate(1.05);
}

.faqbot--tpl-template-1 .faqbot__chip--full {
  border-radius: 11px;
}

.faqbot--tpl-template-1 .faqbot__chipIcon,
.faqbot--tpl-template-1 .faqbot__topicGroupIcon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--faqbot-cat-border);
  font-size: 14px;
}

.faqbot--tpl-template-1 .faqbot__chipText {
  font-weight: 700;
  line-height: 1.2;
}

.faqbot--tpl-template-1 .faqbot__topicGroupButton {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.faqbot--tpl-template-1 .faqbot__topicGroupButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(20, 75, 120, 0.14);
  filter: saturate(1.04);
}

.faqbot--tpl-template-1 .faqbot__topicGroupLabel {
  font-size: 13px;
  font-weight: 800;
}

.faqbot--tpl-template-1 .faqbot__topicGroupCount {
  font-size: 11px;
  opacity: 0.95;
  font-weight: 700;
}

.faqbot--tpl-template-1 .faqbot__topicDetail {
  padding: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.faqbot--tpl-template-1 .faqbot__topicsList--questions {
  gap: 8px;
}

.faqbot--tpl-template-1 .faqbot__stream {
  gap: 8px;
}

.faqbot--tpl-template-1 .faqbot__msg {
  animation: faqbot-template-1-msg-in 0.22s ease both;
}

.faqbot--tpl-template-1 .faqbot__bubble {
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
  padding: 9px 11px;
  box-shadow: 0 3px 8px rgba(18, 61, 100, 0.06);
}

.faqbot--tpl-template-1 .faqbot__msg--bot .faqbot__bubble {
  background: #ffffff;
  border-color: rgba(27, 96, 154, 0.16);
}

.faqbot--tpl-template-1 .faqbot__msg--user .faqbot__bubble {
  background: linear-gradient(180deg, #deefff 0%, #d3e7ff 100%);
  border-color: rgba(24, 95, 156, 0.3);
}

.faqbot--tpl-template-1 .faqbot__msgTitle {
  color: #1a5488;
  font-size: 13px;
}

.faqbot--tpl-template-1 .faqbot__btn {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  border-color: rgba(32, 101, 157, 0.24);
  color: #1f5f97;
  background: #ffffff;
  transition: transform 0.16s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.faqbot--tpl-template-1 .faqbot__btn:hover {
  background: #f0f7ff;
  box-shadow: 0 3px 10px rgba(20, 78, 128, 0.14);
  transform: translateY(-1px);
}

.faqbot--tpl-template-1 .faqbot__btn--primary {
  background: linear-gradient(145deg, #1c6bab 0%, #1d7d7f 100%);
  color: #ffffff;
  border-color: #1c6bab;
}

.faqbot--tpl-template-1 .faqbot__loading {
  border-radius: 12px;
  padding: 8px 10px;
  background: #f2f8ff;
  border-color: rgba(29, 103, 163, 0.2);
}

.faqbot--tpl-template-1 .faqbot__loadingText {
  font-size: 12px;
  font-weight: 700;
  color: #1e669f;
}

.faqbot--tpl-template-1 .faqbot__loadingDot {
  background: #1c6bab;
}

.faqbot--tpl-template-1.faqbot--busy .faqbot__panel {
  box-shadow: 0 22px 50px rgba(17, 72, 120, 0.3);
}

.faqbot--tpl-template-1.faqbot--busy .faqbot__header {
  animation: faqbot-template-1-header-busy 1.4s ease-in-out infinite;
}

.faqbot--tpl-template-1 .faqbot__composer {
  border-top-color: rgba(32, 99, 150, 0.22);
  background: linear-gradient(180deg, #fbfdff 0%, #f0f7ff 100%);
  padding: 8px 10px 10px;
}

.faqbot--tpl-template-1 .faqbot__inputLabel {
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #2f648f;
}

.faqbot--tpl-template-1 .faqbot__input {
  min-height: 38px;
  border-radius: 11px;
  border-color: rgba(33, 105, 160, 0.23);
  font-size: 13px;
}

.faqbot--tpl-template-1 .faqbot__input::placeholder {
  color: #6793b8;
}

.faqbot--tpl-template-1 .faqbot__send {
  min-height: 38px;
  width: 40px;
  min-width: 40px;
  border-radius: 11px;
  border-color: #1c6bab;
  background: linear-gradient(145deg, #1c6bab 0%, #1d7d7f 100%);
  transition: transform 0.15s ease, filter 0.18s ease;
}

.faqbot--tpl-template-1 .faqbot__send:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.faqbot--tpl-template-1 .faqbot__composerHint {
  margin-top: 6px;
  font-size: 11px;
  color: #4c789d;
  opacity: 1;
}

.faqbot--tpl-template-1 .faqbot__topicsView,
.faqbot--tpl-template-1 .faqbot__start,
.faqbot--tpl-template-1 .faqbot__stream {
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 108, 167, 0.35) rgba(255, 255, 255, 0.25);
}

.faqbot--tpl-template-1 .faqbot__topicsView::-webkit-scrollbar,
.faqbot--tpl-template-1 .faqbot__start::-webkit-scrollbar,
.faqbot--tpl-template-1 .faqbot__stream::-webkit-scrollbar {
  width: 8px;
}

.faqbot--tpl-template-1 .faqbot__topicsView::-webkit-scrollbar-thumb,
.faqbot--tpl-template-1 .faqbot__start::-webkit-scrollbar-thumb,
.faqbot--tpl-template-1 .faqbot__stream::-webkit-scrollbar-thumb {
  background: rgba(34, 108, 167, 0.38);
  border-radius: 999px;
}

@keyframes faqbot-template-1-msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes faqbot-template-1-header-busy {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.22);
  }
}

@media (max-width: 640px) {
  .faqbot--tpl-template-1 .faqbot__body {
    padding: 9px;
  }

  .faqbot--tpl-template-1 .faqbot__chipsGrid {
    grid-template-columns: 1fr;
  }

  .faqbot--tpl-template-1 .faqbot__topicGroupButton {
    grid-template-columns: auto 1fr;
  }

  .faqbot--tpl-template-1 .faqbot__topicGroupCount {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faqbot--tpl-template-1 .faqbot__msg,
  .faqbot--tpl-template-1 .faqbot__header,
  .faqbot--tpl-template-1 .faqbot__chip,
  .faqbot--tpl-template-1 .faqbot__topicGroupButton,
  .faqbot--tpl-template-1 .faqbot__btn,
  .faqbot--tpl-template-1 .faqbot__topicsOpen,
  .faqbot--tpl-template-1 .faqbot__topicsBack,
  .faqbot--tpl-template-1 .faqbot__reset,
  .faqbot--tpl-template-1 .faqbot__send,
  .faqbot--tpl-template-1 .faqbot__close {
    animation: none;
    transition: none;
  }
}
