/* BRD Help Widget CSS — Overlay + Voice-Bereich */
#brd-help-overlay {
  position: fixed; inset: 0; background: rgba(15, 12, 41, 0.6);
  display: none; z-index: 9999; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
}
#brd-help-overlay.active { display: flex; }
.brd-help-panel {
  background: #fff; border-radius: 12px; max-width: 720px; width: 100%;
  padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.brd-help-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 28px; cursor: pointer; color: #888; line-height: 1; padding: 4px 8px;
}
.brd-help-close:hover { color: #7c3aed; }
.brd-help-title { font-size: 20px; font-weight: 700; color: #1e1b4b; margin-bottom: 4px; }
.brd-help-source { font-size: 12px; color: #7c3aed; margin-bottom: 16px; }
.brd-help-loading { text-align: center; padding: 40px 0; color: #888; }
.brd-spinner { display: inline-block; width: 28px; height: 28px; border: 3px solid #ede9fe;
  border-top-color: #7c3aed; border-radius: 50%; animation: brd-spin 0.8s linear infinite; margin-bottom: 12px; }
@keyframes brd-spin { to { transform: rotate(360deg); } }
.brd-help-error { color: #dc2626; padding: 20px; background: #fee2e2; border-radius: 6px; }

.brd-voice-area { background: linear-gradient(135deg, #ede9fe, #fef3c7); padding: 16px;
  border-radius: 8px; margin: 12px 0 16px; }
.brd-voice-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.brd-voice-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e;
  animation: brd-pulse 1.4s ease-in-out infinite; }
@keyframes brd-pulse { 0%,100%{opacity:.4} 50%{opacity:1} }
.brd-voice-lbl { font-size: 13px; font-weight: 600; color: #1e1b4b; }
.brd-voice-status { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.brd-voice-text { font-size: 14px; color: #1e1b4b; line-height: 1.5; min-height: 40px;
  max-height: 120px; overflow-y: auto; font-style: italic; }

.brd-help-rag { background: #f5f3ff; border-left: 4px solid #7c3aed; padding: 14px 18px;
  border-radius: 6px; margin-bottom: 14px; font-size: 14px; line-height: 1.6; }
.brd-help-rag-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: #7c3aed; font-weight: 700; margin-bottom: 6px; }
.brd-help-rag h4 { margin: 8px 0 4px; color: #5b21b6; font-size: 14px; }
.brd-help-rag p { margin: 6px 0; }
.brd-help-rag strong { color: #1e1b4b; }

.brd-help-akademie { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-left: 4px solid #d97706;
  padding: 14px 18px; border-radius: 6px; margin-bottom: 14px; }
.brd-help-akademie-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: #d97706; font-weight: 700; margin-bottom: 8px; }
.brd-akademie-item { margin-bottom: 10px; }
.brd-akademie-item:last-child { margin-bottom: 0; }
.brd-akademie-link { color: #92400e; text-decoration: none; font-size: 14px; }
.brd-akademie-link:hover { text-decoration: underline; }
.brd-akademie-link strong { font-weight: 700; }
audio { width: 100%; height: 32px; }

.brd-help-related { font-size: 13px; }
.brd-help-related-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: #6b7280; font-weight: 700; margin-bottom: 8px; }
.brd-help-related ul { margin: 0; padding-left: 20px; }
.brd-help-related li { margin-bottom: 8px; line-height: 1.4; }

[data-help] {
  cursor: help; border-bottom: 1px dotted #7c3aed; position: relative;
}
[data-help]:hover { background: #ede9fe; }
[data-help]:hover::after {
  content: attr(data-help-hint);
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: #1e1b4b; color: #fff; padding: 6px 10px; border-radius: 4px;
  font-size: 11px; white-space: nowrap; z-index: 100; margin-bottom: 4px;
  pointer-events: none;
}
