/* =========================================================================
   HOMUNCULI: Entwicklungswege und der schwebende Formkasten (05.10.2026)
   =========================================================================
   Werte aus `launcher/src/styles/homunculi.css` (`.asg-homun-wege`,
   `.asg-homun-kette`, `.asg-homun-zierkopf`, `.asg-homun-tipp`).
   ========================================================================= */

.hm__wege {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding-right: 4px;
  overflow-y: auto;
}

.hm__abschnitt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hm__abschnitt > .hm__leise {
  margin: 0;
  line-height: 1.45;
}

.hm__wegekopf {
  display: flex;
  gap: 10px;
  align-items: baseline;
  white-space: nowrap;
}

.hm__wegekopf > .hm__titel {
  flex: none;
}

/*
  Der Goldschriftzug samt Schimmer, dasselbe Rezept wie die Wortmarke oben
  links (`.brand__mark`, `brand-shimmer` in core/topbar.css): Gold, Schimmer und
  Takt sind im Launcher ein und dieselbe Animation.
*/
.hm__zierkopf {
  background:
    linear-gradient(100deg, transparent 40%, rgb(255 255 255 / 92%) 50%, transparent 60%) 100% 0 / 300% 100% no-repeat,
    linear-gradient(176deg, var(--gold-bright) 8%, var(--gold) 48%, #a8742a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  animation: brand-shimmer 10s linear infinite;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 60%)) drop-shadow(0 0 14px rgb(232 195 122 / 22%));
}

@media (prefers-reduced-motion: reduce) {
  .hm__zierkopf {
    animation: none;
  }
}

.hm__wegekennung {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-dim);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.6875rem;
  text-overflow: ellipsis;
}

.hm__kettenliste {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm__kette {
  display: flex;
  flex: none;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: rgb(255 255 255 / 3%);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.hm__ketteninhalt {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.hm__kettenzeile {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.hm__formbild {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
}

.hm__formbildcanvas {
  display: block;
  width: 64px;
  height: 64px;
}

.hm__formknopf {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 2px 8px;
  text-align: left;
  cursor: pointer;
  background: rgb(214 176 106 / 8%);
  border: 1px solid rgb(214 176 106 / 25%);
  border-radius: 6px;
  color: var(--gold);
  font: inherit;
}

.hm__formknopf:hover {
  background: rgb(214 176 106 / 16%);
  border-color: rgb(214 176 106 / 45%);
}

.hm__formknopf.is-active {
  background: rgb(214 176 106 / 22%);
  border-color: rgb(214 176 106 / 60%);
}

.hm__gliedname {
  font-size: 0.8125rem;
  font-weight: 600;
}

.hm__pfeil {
  padding-right: 4px;
  color: var(--gold);
}

.hm__stufe {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 6px;
  border-left: 2px solid rgb(214 176 106 / 25%);
}

.hm__stufenname {
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Der schwebende Formkasten, nur zum Ansehen (300 x 214, auch im JS) --- */

.hm__tipp {
  position: absolute;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 300px;
  overflow: hidden;
  pointer-events: none;
  background: rgb(0 0 0 / 90%);
  border: 1px solid rgb(0 0 0);
  text-shadow: none;
}

.hm__tippkopf {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 8px;
}

.hm__tippname,
.hm__tippkennung {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm__tippname {
  height: 18px;
  color: var(--gold);
  font-size: 0.75rem;
  line-height: 18px;
}

.hm__tippkennung {
  height: 14px;
  color: rgb(255 255 255 / 60%);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.6rem;
  line-height: 14px;
}

.hm__tippwerte {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 6px 8px;
  background: rgb(255 255 255 / 4%);
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.hm__tippwert {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 6px;
  height: 18px;
  overflow: hidden;
}

.hm__tippwert--bild {
  align-items: center;
  height: 24px;
}

.hm__tippwert > dt,
.hm__tippwert > dd {
  overflow: hidden;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm__tippwert > dt {
  color: rgb(255 255 255 / 60%);
  font-size: 0.6rem;
}

.hm__tippwert > dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.66rem;
}

.hm__tippfutter {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
