/* totfunde_lesen.css: Liste der Totfunde mit Foto-Vollbild (nur Tokens und Bausteine) */

.page {
  max-width: 900px;
}

.page__header {
  justify-content: space-between;
  flex-wrap: wrap;
}

.page__header-left {
  display: flex;
  align-items: flex-start;
  gap: var(--abstand-md);
}

.toolbar {
  display: flex;
  gap: var(--abstand-md);
  margin-bottom: var(--abstand-lg);
  flex-wrap: wrap;
}

.toolbar input {
  flex: 1;
  min-width: 180px;
}

.badge--zaehler {
  align-self: center;
}

/* Sortierkopf: Knöpfe in der Tabellenkopfzeile */
.tabelle thead th[data-col] {
  padding: 0;
}

.tabelle thead th .sort-icon {
  margin-left: var(--abstand-xs);
  opacity: 0.6;
  font-style: normal;
}

.tabelle thead th .sort-btn {
  display: block;
  width: 100%;
  min-height: var(--tippflaeche);
  padding: var(--abstand-sm) var(--abstand-md);
  background: none;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.tabelle thead th .sort-btn:hover {
  background: var(--farbe-neutral-bg);
}

.nowrap {
  white-space: nowrap;
}

/* Foto in der Liste: Knopf mit Vorschaubild, Tippfläche mindestens 44 px */
.thumb-knopf {
  display: inline-block;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius-feld);
  cursor: pointer;
  line-height: 0;
}

.thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-feld);
  border: 1px solid var(--border);
  transition: transform var(--dauer-druck) var(--kurve);
}

.thumb-knopf:hover .thumb {
  transform: scale(1.08);
}

/* Vollbild im Dialog-Baustein */
.dialog--bild {
  max-inline-size: 60rem;
  justify-items: center;
}

.dialog--bild img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-feld);
  object-fit: contain;
}

.liste-mehr {
  display: flex;
  justify-content: center;
  padding: var(--abstand-md) 0 0;
}

.liste-mehr .btn {
  font-size: var(--schrift-text);
}

.sort-auswahl {
  display: none;
  margin-bottom: var(--abstand-lg);
}

.sort-auswahl select {
  font-family: inherit;
  min-height: var(--tippflaeche);
}

@media (max-width: 599.98px) {
  .sort-auswahl {
    display: block;
  }
}

/* Zustandszeile (Laden, leer, Fehler) über die ganze Tabellenbreite */
.tabelle td[colspan] {
  padding: 0;
}

@media (max-width: 599.98px) {
  .tabelle td[colspan] {
    display: block;
  }

  .tabelle td[colspan]::before {
    content: none;
  }
}

footer {
  max-width: 900px;
}
