/* ModulHub Tooltip — shared glossar-komponent */

[data-tooltip] {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted var(--muted);
}

[data-tooltip]:hover::after,
[data-tooltip]:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: #1a1a1a;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  border-radius: 6px;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  z-index: 9000;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-tooltip]:hover::before,
[data-tooltip]:focus::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1a1a1a;
  z-index: 9001;
  pointer-events: none;
}
