/* OPUS Cockpit – Glossar + Info-Button Tooltip-System (V0.0.54) */

.gloss-term {
  border-bottom: 1.5px dotted var(--brand-tuerkis, #008b8b);
  cursor: help;
  position: relative;
  font-weight: 600;
  color: inherit;
  transition: color 0.15s;
}
.gloss-term:hover { color: var(--brand-tuerkis, #008b8b); }
.gloss-term::after {
  content: "ⓘ";
  font-size: 0.75em;
  margin-left: 2px;
  opacity: 0.5;
  vertical-align: super;
}
.gloss-term:hover::after { opacity: 1; }

.gloss-term.gloss-unknown {
  border-bottom: 1.5px dotted #ca8a04;
  color: #92400e;
}
.gloss-term.gloss-unknown::after { content: "?"; }

/* Tooltip-Popup */
.gloss-tooltip {
  position: absolute;
  z-index: 9999;
  background: #1a2027;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  max-width: 320px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  pointer-events: auto;
  animation: gloss-fadein 0.12s ease;
}
@keyframes gloss-fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gloss-tooltip-term {
  font-weight: 700;
  color: var(--brand-gruen-hell, #d4eac8);
  font-size: 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gloss-tooltip-kat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  padding: 2px 7px;
  border-radius: 8px;
  color: white;
}
.gloss-tooltip-def {
  color: rgba(255,255,255,0.94);
}
.gloss-tooltip-more {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--brand-gruen-hell, #d4eac8);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.gloss-tooltip-empty {
  color: #fcd34d;
  font-style: italic;
}

/* Info-Button bei Formularfeldern */
.info-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #6b7280;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  line-height: 1;
  padding: 0;
  margin-left: 6px;
  cursor: help;
  font-weight: 700;
  vertical-align: middle;
  transition: all 0.15s;
}
.info-btn:hover {
  background: var(--brand-tuerkis, #008b8b);
  color: white;
  border-color: var(--brand-tuerkis, #008b8b);
}

/* Modal für Langdefinition */
.gloss-modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; padding: 20px;
}
.gloss-modal {
  background: white; border-radius: 12px; max-width: 560px; width: 100%;
  max-height: 80vh; overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.gloss-modal-head {
  padding: 18px 22px; background: var(--brand-tuerkis, #008b8b); color: white;
  border-radius: 12px 12px 0 0; display: flex; justify-content: space-between; align-items: center;
}
.gloss-modal-head h3 { margin: 0; font-size: 18px; }
.gloss-modal-close {
  background: rgba(255,255,255,0.2); border: none; color: white;
  width: 28px; height: 28px; border-radius: 50%; font-size: 16px; cursor: pointer;
}
.gloss-modal-body {
  padding: 20px 22px;
}
.gloss-modal-kurz {
  font-weight: 600; color: #1a2027; margin-bottom: 12px; font-size: 14px;
}
.gloss-modal-lang {
  color: #4b5563; line-height: 1.6; font-size: 13px;
}
.gloss-modal-foot {
  padding: 12px 22px; border-top: 1px solid #e5e7eb; font-size: 11px; color: #6b7280;
}
