/* Web-widget overrides — copied on top of ui/style.css in the container */

#bar {
  justify-content: center;
}

.brand-center {
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  letter-spacing: .01em;
}

/* hide desktop-only elements */
.brand, .dot, #status, .settings-btn,
#tabs, #toolsView, #drawer { display: none !important; }

/* Markdown-Feinschliff in Antwort-Blasen */
.msg.bot .bubble ul { margin: 6px 0; padding-left: 20px; }
.msg.bot .bubble li { margin: 2px 0; }
.msg.bot .bubble code { background: rgba(127,127,127,.16);
  padding: 1px 5px; border-radius: 5px; font-size: .92em; }
.msg.bot .bubble a { color: var(--accent, #4c8bf5); }
.msg.bot .bubble strong { font-weight: 700; }

/* „tippt…"-Cursor während des Streamings */
.typing::after {
  content: "▋"; margin-left: 2px; opacity: .6;
  animation: msgi-blink 1s steps(2, start) infinite;
}
@keyframes msgi-blink { to { visibility: hidden; } }

/* Lead-Formular (erscheint bei Wissenslücke) */
.lead {
  margin: 4px 4px 10px; padding: 14px; border-radius: 12px;
  background: var(--panel-2, #f0f2f6); border: 1px solid var(--border, #e2e6ee);
  display: flex; flex-direction: column; gap: 8px;
}
/* Gestalt: Titel abgesetzt, Felder als enge Gruppe, Button abgetrennt. */
.lead-title { font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.lead input, .lead textarea {
  border: 1px solid var(--border, #d4ddf0); border-radius: 8px;
  padding: 9px 11px; font-size: 14px; font-family: inherit; width: 100%;
}
.lead-send {
  border: 0; border-radius: 8px; background: var(--accent, #4c8bf5);
  color: #f6f9ff; font-weight: 600; padding: 9px 14px; cursor: pointer;
  margin-top: 16px;
}
.lead-send:disabled { opacity: .5; cursor: default; }
.lead-status { font-size: 12.5px; color: var(--muted, #667085); }

/* KI-Kennzeichnung — Art. 50 Abs. 5 KI-VO verlangt „klar und eindeutig" und
   die Einhaltung der geltenden Barrierefreiheitsanforderungen. Konkrete
   Kontrastwerte (4,5:1) stehen dort NICHT, die kommen aus WCAG 2.1 AA.
   Bewusst NICHT die frühere Darstellung (0.72rem bei 75 % Deckkraft):
   ein Hinweis, den man kaum lesen kann, erfüllt seinen Zweck nicht. */
#aiNotice {
  margin: 0;
  padding: 9px 14px;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  color: var(--muted, #4a5264);
  background: var(--notice-bg, rgba(127, 127, 127, .07));
  border-top: 1px solid rgba(127, 127, 127, .28);
}
#aiNotice b { color: inherit; }
#aiNotice a { color: inherit; text-decoration: underline; }
[data-theme="dark"] #aiNotice { color: #c3cbd9; }

/* Startfragen — anklickbare Vorschläge unter der Begrüßung.
   Bewusst als Umriss statt als gefüllte Fläche: sie sind ein Angebot, keine
   Hauptaktion. Gefüllt konkurrierten sie mit dem Senden-Knopf. */
.starters {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 2px 4px 8px 4px;
}
.starter {
  border: 1px solid var(--border, #d4ddf0);
  background: var(--panel, #fdfdff);
  color: var(--text, #1a1d24);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13.5px; font-family: inherit; line-height: 1.25;
  text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.starter:hover {
  border-color: var(--accent, #4c8bf5);
  background: var(--panel-2, #f0f2f6);
}
.starter:focus-visible {
  outline: 2px solid var(--accent, #4c8bf5); outline-offset: 2px;
}

/* Quellenbelege unter einer Antwort. Klein und zurückhaltend — sie sollen
   belegen, nicht die Antwort überstrahlen. */
.quellen {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 7px; font-size: .74rem;
}
.quellen-titel { color: var(--muted, #667085); }
.quelle {
  display: inline-block; max-width: 100%;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(127, 127, 127, .14);
  color: var(--muted, #667085);
  text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.quelle:hover { color: var(--accent, #4c8bf5); text-decoration: underline; }
/* Web-Treffer sichtbar von hinterlegtem Wissen unterscheiden: der Besucher
   soll erkennen, was aus den Unterlagen des Betreibers stammt und was nicht. */
.quelle-web::before { content: "🌐 "; }
