@charset "UTF-8";
:root {
  --ib-chatbot-fab-background: #DB7C00;
  --ib-chatbot-fab-color: #ffffff;
}

/* IB colors */
/*$ib-lightblue: #97d2f0;*/
[data-chatbot] .ib-chatbot-ki {
  border: 1px solid #595959;
  padding: 0.5em;
  margin-left: -0.5em;
  margin-right: -0.5em;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 2px hsla(0, 0%, 4%, 0.1);
  position: relative;
}
[data-chatbot] #loading-indicator {
  position: absolute;
  top: calc(50% - 1.5rem);
  left: 50%;
  transform: translate(-50%, -50%);
}
[data-chatbot] #loading-indicator.hidden {
  display: none;
}
[data-chatbot] #answer {
  min-height: 4rem;
  max-height: 18rem;
  overflow-y: auto;
}
[data-chatbot].boxed .ib-chatbot-ki {
  max-height: 20rem;
  position: relative;
}
[data-chatbot] .input-group.inline {
  border-top: 1px solid #b1b1b1;
  position: relative;
  margin: 0;
}
[data-chatbot] .input-group.inline.hidden {
  display: block !important;
  border-top: 0;
  padding-top: 0;
}
[data-chatbot] .input-group.inline [data-chatbot-question] {
  border: 0;
  box-shadow: none;
  background: none;
  margin: 0;
  font-size: 1em;
  padding-left: 0;
}
[data-chatbot] .input-group.inline .input-group-button {
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}
[data-chatbot] .input-group.inline button {
  background: none;
  color: #005590;
  border: 0;
  padding: 0.7rem 1rem;
  font-size: 1rem;
}

/* -------------------------------------------------------------------------------------------------
 * Chat-Dialog (IBChatbotModal): Kopfzeile, ein Scrollbereich, feste Eingabezeile
 * ---------------------------------------------------------------------------------------------- */
#chatbot-modal.ib-chatbot-modal {
  padding: 0;
  overflow: hidden;
}

.ib-chatbot-modal__inner {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.ib-chatbot-modal__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.25rem 0.25rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  color: #005590;
  font-weight: 600;
}
.ib-chatbot-modal__header .fas {
  margin-right: 0.35rem;
}

.ib-chatbot-modal__actions {
  display: flex;
  align-items: center;
}

.ib-chatbot-modal__reset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #005590;
  cursor: pointer;
}
.ib-chatbot-modal__reset:hover, .ib-chatbot-modal__reset:focus-visible {
  text-decoration: underline;
}
.ib-chatbot-modal__reset.hide {
  display: none;
}

.ib-chatbot-modal__close {
  padding: 0.25rem 0.75rem;
  font-size: 2rem;
  line-height: 1;
  color: #454545;
  cursor: pointer;
}
.ib-chatbot-modal__close:hover, .ib-chatbot-modal__close:focus-visible {
  color: #DB7C00;
}

#chatbot-modal .ib-chatbot-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
}
#chatbot-modal .ib-chatbot-modal__body .ib-services,
#chatbot-modal .ib-chatbot-modal__body .ib-content-module {
  padding-top: 0;
  padding-bottom: 0;
}
#chatbot-modal .ib-chatbot-modal__body .grid-container {
  padding-left: 0;
  padding-right: 0;
}
#chatbot-modal .ib-chatbot-modal__body .cell {
  width: 100%;
  margin-left: 0;
}
#chatbot-modal .ib-chatbot-modal__body .hidden {
  display: none;
}
#chatbot-modal .ib-chatbot-modal__body [data-chatbot] h3.hidden_until_stream_starts {
  display: none;
}
#chatbot-modal .ib-chatbot-modal__body [data-chatbot] .ib-chatbot-ki {
  min-height: 3rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 4px 16px 16px 16px;
  box-shadow: none;
  background: #f3f6f8;
}
#chatbot-modal .ib-chatbot-modal__body [data-chatbot] #answer {
  min-height: 0;
  max-height: none;
  overflow: visible;
}
#chatbot-modal .ib-chatbot-modal__body [data-chatbot] .ib-chatbot-question.hide + .ib-chatbot-ki {
  display: none;
}
#chatbot-modal .ib-chatbot-modal__body .source-documents-container .h4 {
  display: none;
}
#chatbot-modal .ib-chatbot-modal__body .source-documents-container .mt-4 {
  margin-top: 0;
}
#chatbot-modal .ib-chatbot-modal__body [data-chatbot-source] .result-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.875rem;
}
#chatbot-modal .ib-chatbot-modal__body.is-loading {
  position: relative;
  min-height: 6rem;
}
#chatbot-modal .ib-chatbot-modal__body.is-loading > * {
  visibility: hidden;
}
#chatbot-modal .ib-chatbot-modal__body.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin: -1.25rem 0 0 -1.25rem;
  border: 4px solid #f3f6f8;
  border-top-color: #005590;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.ib-chatbot-sources {
  margin: 0 0 1rem;
}

.ib-chatbot-sources__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ib-chatbot-sources__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
  font-size: 0.8125rem;
  color: #6b6b6b;
  cursor: pointer;
}
.ib-chatbot-sources__summary .fas {
  font-size: 0.8em;
}
.ib-chatbot-sources__summary:hover, .ib-chatbot-sources__summary:focus-visible {
  color: #005590;
  text-decoration: underline;
}

.ib-chatbot-sources:not(.is-collapsed) .ib-chatbot-sources__summary {
  margin-bottom: 0.25rem;
}

.ib-chatbot-sources.is-collapsed {
  margin-bottom: 0.5rem;
}
.ib-chatbot-sources.is-collapsed .ib-chatbot-sources__row {
  display: none;
}

.ib-chatbot-sources__label {
  position: relative;
  flex: 0 0 auto;
  font-size: 0.875rem;
  color: #6b6b6b;
}

#chatbot-modal .ib-chatbot-sources__chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
  padding: 0 0 2px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, #000 85%, transparent);
}
#chatbot-modal .ib-chatbot-sources__chips::-webkit-scrollbar {
  display: none;
}
#chatbot-modal .ib-chatbot-sources__chips li {
  flex: 0 0 auto;
  max-width: 15rem;
  margin: 0;
  scroll-snap-align: start;
}
@media (hover: hover) and (pointer: fine) {
  #chatbot-modal .ib-chatbot-sources__chips {
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: #b1b1b1 transparent;
  }
  #chatbot-modal .ib-chatbot-sources__chips::-webkit-scrollbar {
    display: block;
    height: 6px;
  }
  #chatbot-modal .ib-chatbot-sources__chips::-webkit-scrollbar-thumb {
    background: #b1b1b1;
    border-radius: 3px;
  }
}

#chatbot-modal .ib-chatbot-source-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  min-height: 2rem;
  margin: 0;
  padding: 0 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: #005590 !important;
  text-decoration: none !important;
  background: #f3f6f9;
  border: 1px solid #dfe6ee;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
#chatbot-modal .ib-chatbot-source-chip span:not(.show-for-sr) {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#chatbot-modal .ib-chatbot-source-chip .fas {
  flex: 0 0 auto;
  font-size: 0.8em;
  opacity: 0.7;
}
#chatbot-modal .ib-chatbot-source-chip:hover, #chatbot-modal .ib-chatbot-source-chip:focus-visible {
  background: #fff;
  border-color: #005590;
}

.ib-chatbot-sources__details {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 0.8125rem;
  color: #6b6b6b;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.ib-chatbot-sources__details .fas {
  transition: transform 0.2s;
}
.ib-chatbot-sources__details[aria-expanded=true] .fas {
  transform: rotate(180deg);
}
.ib-chatbot-sources__details:hover, .ib-chatbot-sources__details:focus-visible {
  color: #005590;
  background: #f3f6f9;
}

.ib-chatbot-question {
  width: fit-content;
  max-width: 85%;
  margin: 0 0 0.75rem auto;
  padding: 0.6rem 1rem;
  color: #fff;
  background: #005590;
  border-radius: 16px 16px 4px 16px;
}

.ib-chatbot-turn {
  margin-bottom: 1.5rem;
}
.ib-chatbot-turn > :last-child {
  margin-bottom: 0;
}

.ib-chatbot-intro {
  margin-bottom: 1rem;
}
.ib-chatbot-intro .ib-chatbot-intro__content {
  font-size: 0.9375rem;
}
.ib-chatbot-intro .ib-chatbot-intro__content h1, .ib-chatbot-intro .ib-chatbot-intro__content h2, .ib-chatbot-intro .ib-chatbot-intro__content h3, .ib-chatbot-intro .ib-chatbot-intro__content h4 {
  font-size: 1.25rem;
}
.ib-chatbot-intro.is-teaser .ib-chatbot-intro__content {
  max-height: 9rem;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.ib-chatbot-intro.is-collapsed .ib-chatbot-intro__content {
  display: none;
}

.ib-chatbot-intro__toggle {
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: #005590;
  text-decoration: underline;
  cursor: pointer;
}
.ib-chatbot-intro__toggle:hover, .ib-chatbot-intro__toggle:focus-visible {
  color: #DB7C00;
}

#chatbot-modal .ib-chatbot-modal__footer {
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e0e0e0;
}
#chatbot-modal .ib-chatbot-modal__footer #ai-search-form {
  margin: 0;
}
#chatbot-modal .ib-chatbot-modal__footer .input-group.inline {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}
#chatbot-modal .ib-chatbot-modal__footer [data-chatbot-question] {
  flex: 1 1 auto;
  height: 2.75rem;
  margin: 0;
  padding: 0 1rem;
  font-size: 16px;
  border: 1px solid #b1b1b1;
  border-radius: 999px;
  box-shadow: none;
}
#chatbot-modal .ib-chatbot-modal__footer [data-chatbot-question]:focus {
  border-color: #005590;
  box-shadow: none;
}
#chatbot-modal .ib-chatbot-modal__footer .input-group-button {
  flex: 0 0 auto;
  width: auto;
}
#chatbot-modal .ib-chatbot-modal__footer [data-chatbot-button] {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: #fff;
  background: #005590;
  border-radius: 50%;
  cursor: pointer;
}
#chatbot-modal .ib-chatbot-modal__footer [data-chatbot-button]:hover, #chatbot-modal .ib-chatbot-modal__footer [data-chatbot-button]:focus-visible {
  background: #DB7C00;
}

@media print, screen and (min-width: 40em) {
  #chatbot-modal.ib-chatbot-modal {
    position: fixed;
    top: auto !important;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: auto !important;
    width: min(30rem, 100vw - 40px);
    max-width: none;
    height: min(100vh - 40px, 44rem);
    margin: 0;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transform-origin: bottom right;
    animation: ib-chatbot-pop 0.2s ease-out;
  }
}
@media print and (prefers-reduced-motion: reduce), screen and (min-width: 40em) and (prefers-reduced-motion: reduce) {
  #chatbot-modal.ib-chatbot-modal {
    animation: none;
  }
}
@media print, screen and (min-width: 40em) {
  .ib-chatbot-modal__inner {
    height: 100%;
    max-height: none;
  }
  .reveal-overlay:has(> #chatbot-modal) {
    background-color: rgba(0, 0, 0, 0.15);
  }
}
@keyframes ib-chatbot-pop {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
html.ib-chatbot-open #search-fab {
  display: none !important;
}

@media print, screen and (max-width: 39.99875em) {
  #chatbot-modal.ib-chatbot-modal {
    top: var(--ib-chatbot-top, 0) !important;
    height: var(--ib-chatbot-height, 100dvh) !important;
    min-height: 0 !important;
  }
  .ib-chatbot-modal__inner {
    height: 100%;
    max-height: none;
  }
  html.ib-chatbot-open #eyeAble_container_ID {
    display: none !important;
  }
}
/* Such-Button (FAB): öffnet den Dialog, beim Scrollen nach unten nur das Icon (IBChatbotModal) */
#search-fab {
  position: fixed;
  bottom: calc(25px + env(safe-area-inset-bottom));
  right: 20px;
  height: 60px;
  background: var(--ib-chatbot-fab-background);
  color: var(--ib-chatbot-fab-color);
  font-weight: 600;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  z-index: 1005;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
  overflow: hidden;
}
#search-fab .fab-icon {
  font-size: 1.25rem;
}
#search-fab:hover, #search-fab:focus-visible {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
#search-fab:focus-visible {
  outline: 3px solid #005590;
  outline-offset: 2px;
}
#search-fab.fab-expanded {
  max-width: 240px;
}
#search-fab.fab-expanded .fab-text {
  margin-left: 8px;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}
#search-fab.fab-collapsed {
  width: 60px;
  padding: 0;
}
#search-fab.fab-collapsed .fab-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Header & Footer fixieren, Body scrollbar machen */
.modal-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  -webkit-overflow-scrolling: touch; /* Flüssiges Scrollen auf iOS */
}

.modal-footer {
  padding: 15px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
}

#chat-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 16px; /* Wichtig: Mindestens 16px, um Auto-Zoom auf iPhones zu verhindern! */
}

.rms_ai_search_container #answer h3,
.rms_ai_search_container #answer p,
.rms_ai_search_container #answer strong {
  font-size: 1em !important;
}

[data-chatbot-sourcelist] {
  margin: 1rem -0.5em;
}

[data-chatbot-source] {
  margin-left: 0;
  list-style: none;
  margin: 0.5rem 0;
  padding: 0.5em;
}
[data-chatbot-source]:hover {
  background: #f3f6f8;
}
[data-chatbot-source] .result-item-link {
  margin-bottom: 0.5em;
  display: block;
}
[data-chatbot-source] .result-item-more {
  margin-top: 0.5em;
}

.spinner {
  position: relative;
  overflow: hidden;
}
.spinner.is-adding {
  border-radius: 25px;
  max-width: 50px;
  max-height: 50px;
  cursor: default;
}
.spinner.is-adding::after {
  animation: fadeIn 0.3s ease-in, spin 1.3s infinite ease-in-out;
  animation-fill-mode: forwards;
}
.spinner.is-adding span {
  opacity: 0;
}
.spinner::after {
  content: " ";
  border-top: solid 4px #DB7C00;
  border-right: solid 4px #DB7C00;
  border-bottom: solid 4px #DB7C00;
  border-left: solid 4px transparent;
  border-radius: 50px;
  position: absolute;
  top: 7px;
  right: 7px;
  bottom: 7px;
  left: 7px;
  margin: auto;
  max-width: 30px;
  max-height: 30px;
  opacity: 0;
  z-index: 1;
}

@keyframes spin {
  0%, 5% {
    transform: rotate(0deg);
  }
  95%, 100% {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
