/* =========================================================================
   DER PETS-BEREICH (05.10.2026), nachgebaut nach dem Launcher
   =========================================================================
   Werte aus `launcher/src/styles/pets.css` (`.asg-pt-*`) und den Teilen aus
   `anprobe.css`, die der Pet-Bereich dort mitbenutzt (`.asg-ap-trefferknopf`,
   `.asg-ap-teilname`, `.asg-ap-leise`), dazu die Suchzeile aus
   `datenbank.css` (`.asg-db-suchzeile`). Nicht angenähert.
   Code: assets/js/features/pets/
   ========================================================================= */

/* Links 340 Punkte Bühne und Tafel, rechts Suche und Liste. Der Rumpf ist
   zugleich der Bezugskasten der schwebenden Kästen. */
.pt__rumpf {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

.pt__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  padding-right: 4px;
}

/* Die Bühne bleibt stehen, nur der Unterbau rollt (Aufgabe 182). */
.pt__unten {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.pt__rechts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.pt__rechts > .gf-kats {
  margin-top: 0;
}

/* --- Suche ------------------------------------------------------------------ */

.pt__suchzeile {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
}

.pt__suchfeld {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 26px 7px 9px;
  background: rgb(0 0 0 / 28%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 7px;
  color: rgb(238 228 208 / 92%);
  font: inherit;
  font-size: 0.75rem;
}

.pt__suchfeld:focus {
  border-color: rgb(214 176 106 / 55%);
  outline: none;
}

.pt__suchfeld::-webkit-search-cancel-button {
  display: none;
}

.pt__leeren {
  position: absolute;
  right: 5px;
  padding: 0 4px;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: rgb(210 190 150 / 60%);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1;
}

.pt__leeren:hover {
  color: rgb(238 228 208 / 95%);
}

.pt__leeren[hidden],
.pt__tipp[hidden],
.pt__arttipp[hidden] {
  display: none;
}

/* --- Die gefensterte Liste: Zeilentakt 34, steht auch in pets-catalog.js -- */

.pt__liste {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.pt__liste > li {
  flex: none;
}

.pt__zeile {
  box-sizing: border-box;
  height: 34px;
  overflow: hidden;
}

.pt__abstand {
  display: block;
}

.pt__treffer {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  height: 28px;
  box-sizing: border-box;
  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: rgb(238 228 208 / 88%);
  font: inherit;
}

.pt__treffer:hover {
  background: rgb(214 176 106 / 12%);
  border-color: rgb(214 176 106 / 35%);
}

.pt__treffer.is-active {
  background: rgb(214 176 106 / 16%);
  border-color: rgb(214 176 106 / 45%);
  color: var(--gold);
}

.pt__eizelle {
  display: flex;
  flex: none;
  align-items: center;
}

.pt__teilname {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: rgb(238 228 208 / 90%);
  font-size: 0.6875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt__leise {
  margin: 0;
  color: rgb(210 190 150 / 55%);
  font-size: 0.625rem;
  line-height: 1.4;
}

.pt__leer {
  padding: 4px 2px;
}

.pt__stern {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 6px;
  color: rgb(210 190 150 / 45%);
  font-size: 0.8125rem;
  line-height: 1;
  cursor: pointer;
}

.pt__stern:hover,
.pt__stern.is-active {
  color: var(--gold);
}

/* --- Fakten und Steckbrief unter der Bühne --------------------------------- */

.pt__fakten {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt__fakt {
  display: flex;
  flex: none;
  gap: 6px;
  align-items: center;
  min-height: 30px;
  box-sizing: border-box;
  padding: 3px 8px;
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 7px;
}

.pt__fakt--tipp:hover {
  background: rgb(214 176 106 / 10%);
  border-color: rgb(214 176 106 / 30%);
}

.pt__faktname {
  flex: 0 0 92px;
  color: rgb(210 190 150 / 62%);
  font-size: 0.625rem;
}

.pt__tafel {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px 9px;
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 7px;
}

.pt__titel {
  margin: 0;
  color: var(--gold);
  font-size: 0.8125rem;
}

.pt__werte {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.pt__wert {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
}

.pt__wert + .pt__wert {
  padding-top: 4px;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.pt__wert > dt {
  color: rgb(210 190 150 / 62%);
  font-size: 0.625rem;
}

.pt__wert > dd {
  margin: 0;
  overflow: hidden;
  color: rgb(238 228 208 / 90%);
  font-size: 0.6875rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pt__wirkung {
  max-height: 200px;
  margin: 0;
  padding: 6px 8px;
  overflow: auto;
  color: rgb(210 190 150 / 78%);
  font-family: Consolas, 'Cascadia Mono', monospace;
  font-size: 0.625rem;
  line-height: 1.4;
  white-space: pre-wrap;
  background: rgb(0 0 0 / 25%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 6px;
}
