/* =========================================================================
   DER HOMUNCULI-BEREICH (05.10.2026), nachgebaut nach dem Launcher
   =========================================================================
   Werte aus `launcher/src/styles/homunculi.css` (`.asg-homun-*`), nicht
   angenähert. Die Bühne steht in companions.css, die Wege und der Kasten in
   homunculi-wege.css. Code: assets/js/features/homunculi/
   ========================================================================= */

.hm__rumpf {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

.hm__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
  padding-right: 4px;
}

.hm__rechts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.hm__rechts > .gf-kats {
  margin-top: 0;
}

.hm__tafelplatz {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

/* --- Die Tafel unter der Bühne -------------------------------------------- */

.hm__tafel {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding: 12px;
  overflow-y: auto;
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(214 176 106 / 45%);
  border-radius: 9px;
}

.hm__tafelkopf {
  flex: none;
  height: 20px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--gold);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm__titel {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.hm__leise {
  color: var(--ink-dim);
  font-size: 0.75rem;
}

.hm__werte {
  display: flex;
  flex: none;
  flex-direction: column;
  margin: 0;
}

.hm__wert {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
  height: 17px;
  overflow: hidden;
}

.hm__wert + .hm__wert {
  height: 21px;
  padding-top: 3px;
  border-top: 1px solid rgb(214 176 106 / 25%);
}

.hm__wert > dt,
.hm__wert > dd {
  overflow: hidden;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm__wert > dt {
  color: var(--ink-dim);
  font-size: 0.75rem;
}

.hm__wert > dd {
  margin: 0;
  font-size: 0.8125rem;
}

.hm__trennpunkt {
  padding: 0 5px;
  color: var(--gold);
}

.hm__block {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
  padding: 8px 10px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.hm__tafelkopf + .hm__block {
  margin-top: 0;
}

.hm__blockkopf {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hm__satz {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.75rem;
  line-height: 1.5;
}

.hm__gegenstand {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 24px;
}

.hm__gegenstandmarke {
  flex: 0 0 92px;
  color: var(--ink-dim);
  font-size: 0.625rem;
}

.hm__gegenstandname {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  color: rgb(238 228 208 / 90%);
  font: inherit;
  font-size: 0.6875rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 1px dotted rgb(214 176 106 / 45%);
}

.hm__gegenstandname:hover {
  color: var(--gold);
}

.hm__baum {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm__fertigkeit {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  padding: 2px 0 4px 8px;
  border-left: 2px solid var(--line);
}

.hm__fertigkeit + .hm__fertigkeit {
  padding-top: 6px;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.hm__fertigname {
  font-size: 0.8125rem;
  font-weight: 600;
}

.hm__maxstufe {
  font-size: 0.75rem;
}

.hm__bedingungen {
  flex-basis: 100%;
  color: var(--ink-dim);
  font-size: 0.6875rem;
}

/* --- Suche und Liste --------------------------------------------------------- */

.hm__suchzeile {
  display: flex;
  flex: none;
  gap: 6px;
}

.hm__suchfeld {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  background: rgb(0 0 0 / 22%);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
}

.hm__suchfeld:focus {
  border-color: rgb(214 176 106 / 55%);
  outline: none;
}

.hm__leeren {
  padding: 0 10px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-dim);
  font: inherit;
}

.hm__leeren:hover {
  color: var(--ink);
}

.hm__leeren[hidden],
.hm__tipp[hidden] {
  display: none;
}

.hm__liste {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.hm__liste > li {
  flex: none;
}

.hm__zeileFest {
  height: 34px;
}

.hm__zeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 110px 52px 24px;
  gap: 8px;
  align-items: center;
  width: 100%;
  height: 28px;
  padding: 0 8px;
  text-align: left;
  cursor: pointer;
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
}

.hm__zeile:hover {
  background: rgb(214 176 106 / 12%);
  border-color: rgb(214 176 106 / 35%);
}

.hm__zeile.is-active {
  background: rgb(214 176 106 / 16%);
  border-color: rgb(214 176 106 / 45%);
}

.hm__zeile--mein {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 110px;
}

.hm__zeilenname {
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Die zweite Stufe golden, die erste weiß (Renés Auftrag 31.08.2026). */
.hm__zeilenname--gold {
  color: var(--gold);
}

.hm__kennung,
.hm__nummer {
  overflow: hidden;
  color: var(--ink-dim);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.6875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm__nummer {
  text-align: right;
}

.hm__zeile .hm__leise {
  overflow: hidden;
  font-size: 0.6875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm__stern {
  padding: 0 2px;
  color: rgb(210 190 150 / 45%);
  font-size: 0.8125rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.hm__stern:hover,
.hm__stern.is-active {
  color: var(--gold);
}

.hm__meinlage {
  flex: none;
  margin: 0;
  overflow: hidden;
  color: var(--ink-dim);
  font-size: 0.6875rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Ein Satz in der Tafel ("umbenannt", "derselbe Baum wie ...") ohne Absatzluft. */
.hm__tafel > p.hm__leise {
  margin: 0;
}
