/* Tabs für Inventar Detailansicht */
.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

.tab-button {
  padding: 8px 12px;
  border: none;
  background: #ddd;
  cursor: pointer;
  border-radius: 5px;
}

.tab-button.active {
  background: #6b4f2b;
  color: white;
}

.tab-content {
  display: none;
  padding: 10px 0;
}

.tab-content.active {
  display: block;
}

/* Tabelle für Inventarliste */
.inventory-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.inventory-table th,
.inventory-table td {
  padding: 8px;
  border: 1px solid #ccc;
}

.inventory-table th a {
  color: inherit;
  text-decoration: none;
}
.inventory-table img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  border: 1px solid #ccc;
  border-radius: 4px;
}
/* Bild-Vollbild Overlay */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  border: 4px solid white;
  border-radius: 8px;
}
.image-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2em;
  color: white;
  cursor: pointer;
}

/* Responsive Tabelle */
.table-wrapper {
  overflow-x: auto;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.inventory-table th,
.inventory-table td {
  padding: 8px;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: middle; /* 🔄 Vertikal zentrieren */
}
.inventory-table td.name-cell {
  font-weight: bold; /* 💪 Name fett */
}
.inventory-table td.name-cell a {
  font-weight: bold; /* 💪 Name fett */
  text-decoration: none;
  color: black;
}
.inventory-table img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .inventory-table thead {
    display: none;
  }

  .inventory-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    padding: 10px;
  }

  .inventory-table td {
    display: block;
    width: 100%;
    padding: 5px 0;
  }

  .inventory-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: inline-block;
    width: 120px;
    color: #555;
  }
}
