/* ---------------------------------- Anleitung zum Jobwechsel (Jobquest) */

/*
  ZWEI SPALTEN (Renés Wunsch 27.09.2026): Über die volle Breite blieb zu viel
  Luft zwischen den Teilen eines Schritts, *"sieht dadurch auch einfach
  hässlich aus"*. Jetzt Schritt 1 und 2 nebeneinander, 3 und 4 darunter,
  enger zusammen. Die Kästen einer Reihe sind gleich hoch, damit die Reihen
  ruhig stehen. Ein Abschnitt ohne Überschrift (Einleitung) nimmt die ganze
  Breite. Schmale Fenster bekommen eine Spalte.
*/
.sb-info__guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sb-info__guideTeil:not(:has(> .sb-info__zwischen)) {
  grid-column: 1 / -1;
}

@media (width <= 900px) {
  .sb-info__guide {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sb-info__bild {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 4px 16px 8px 0;
  vertical-align: top;
}

.sb-info__bild img {
  max-width: 100%;
  border-radius: 6px;
}

.sb-info__bild--npc img,
.sb-info__bild--item img {
  image-rendering: pixelated;
}

.sb-info__bild figcaption {
  color: var(--ink-dim);
  font-size: 0.76rem;
}

.sb-info__tabelle {
  width: 100%;
  margin: 4px 0 8px;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.sb-info__tabelle th,
.sb-info__tabelle td {
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 7%);
  color: var(--ink);
  text-align: left;
  vertical-align: top;
}

.sb-info__tabelle th {
  color: var(--gold);
  font-weight: normal;
}

.sb-info__zelle {
  display: block;
}

.sb-info__quelle {
  margin: 4px 0 0;
  color: var(--ink-dim);
  font-size: 0.76rem;
}

.sb-info__quelle a {
  color: var(--gold);
}

.sb-info__wegReihe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sb-info__wegKnopf {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(0 0 0 / 30%);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.sb-info__wegKnopf:hover,
.sb-info__wegKnopf:focus-visible {
  outline: none;
  border-color: var(--gold-deep);
  color: var(--gold-bright);
}

/* ------------------------------------------------------------- Waffen */

.sb-info__arten {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: none;
}

.sb-info__art {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(0 0 0 / 30%);
  color: var(--ink-dim);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.sb-info__art:hover,
.sb-info__art:focus-visible {
  outline: none;
  color: var(--gold-bright);
  border-color: var(--gold-deep);
}

.sb-info__art.is-an {
  color: var(--gold-bright);
  border-color: var(--gold-deep);
  background: rgb(232 195 122 / 14%);
}

.sb-info__artZahl {
  color: var(--ink-dim);
  font-size: 0.72rem;
}

.sb-info__waffen {
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(232 195 122 / 45%) transparent;
}

/* Der feste Zeilentakt, den `W_ZEILE` in `stammbaum-info.js` kennt. */
.sb-info__waffe {
  height: 44px;
}

.sb-info__abstand {
  list-style: none;
}

.sb-info__waffeKnopf {
  display: grid;
  grid-template-columns: 32px 1fr 9rem 7rem;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.sb-info__waffeKnopf:hover,
.sb-info__waffeKnopf:focus-visible {
  outline: none;
  border-color: var(--hairline);
  background: rgb(232 195 122 / 6%);
}

.sb-info__waffeBild {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.sb-info__waffeBild img {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
}

.sb-info__waffeName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-info__waffeArt,
.sb-info__waffeStufe {
  color: var(--ink-dim);
  font-size: 0.78rem;
}

/* Das Feld "Aussehen" steht seit dem 29.09.2026 in features/classes/appearance-panel.css. */

/* Beim Wechsel des Aussehens blenden alle Figuren weich aus und wieder ein. */
.sb-baum .sb-figur {
  transition: opacity 0.25s ease;
}

.sb-baum.is-wechsel .sb-figur {
  opacity: 0;
}
