/* Grundlayout */
body {
  font-family: sans-serif;
  background: #cecece;
  color: #C0C0C0;
  margin: 0;
  padding: 20px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h1 { margin: 0;
color: #000000; }
a.btn-logout {
  background: #c0392b;
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 4px;
}

/* Grid: 3 Spalten, beliebig viele Reihen */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

/* Kachel mit Rahmen */
.product-tile {
  background: #DCDCDC;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: calc(33.333% - 13.33px);
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

/* Thumbnail */
.thumbnail {
  width: 200px;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  margin: 10px auto 0;
  display: block;
}

/* Text unter dem Bild */
.text {
  padding: 10px;
  color: #000000;
}
.text p {
  margin: 8px 0;
  max-height: 3.6em;  /* ca. 3 Zeilen */
  line-height: 1.2em;
  overflow: hidden;
  color: #000000;
}

/* Löschen-Button */
.btn-del {
  display: inline-block;
  margin-top: 10px;
  color: #c0392b;
  text-decoration: none;
}

/* Upload-Form */
.upload-form {
  background: #fff;
  padding: 20px;
  margin-top: 40px;
  border-radius: 6px;
}
.upload-form input,
.upload-form textarea,
.upload-form button {
  width: 100%;
  margin: 8px 0;
  padding: 8px;
}
.upload-form button {
  background: #27ae60;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* Popup-Fenster */
#popup {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 600px;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#popup-img {
  max-width: 100%;
  max-height: 100%;
}
