.main-container {
  display: flex;
  justify-content: center; /* Zentriert den Content horizontal */
  min-height: 100vh; /* Minimale Höhe auf 100% des Viewport setzen */
}

.content {
  width: 80%; /* Breite des Hauptinhalts auf 80% des Elternelements setzen */
  max-width: 1200px; /* Maximale Breite des Inhalts festlegen, um zu große Breiten zu vermeiden */
  text-align: center;
  margin-top: 30px;
}

.text-pictures {
  margin-top: 50px;
}

form {
  margin-top: 50px;
}

.drop-zone {
  border: 2px dashed #ccc;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background-color: #f9f9f9;
  margin-bottom: 10px;
}

.drop-zone.drag-over {
  background-color: #e6f7ff;
  border-color: #3399ff;
}

#imagePreviewContainer {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(98, 118, 80);
}

#imagePreviewContainer img {
  margin: 10px;
}

.text {
  line-height: 1.8;
}

#text_unten {
  margin-top: 20px;
}

#uploadStatus {
  margin-top: 20px;
  margin-bottom: 20px;
}

#line-content {
  height: 2px;
  width: 100%;
  background-color: rgba(255, 215, 0);
  margin-bottom: 30px;
  margin-top: 30px;
  border-radius: 2px;
}

.pictures {
  display: flex; /* Verwendet Flexbox, um die Kinder nebeneinander anzuordnen */
  flex-wrap: wrap; /* Erlaubt das Umbruch der Bilder auf die nächste Zeile, falls nötig */
  justify-content: center; /* Zentriert die Bilder horizontal im Container */
  align-items: center; /* Zentriert die Bilder vertikal im Container */
  gap: 10px; /* Gibt einen Abstand zwischen den Bildern an */
}
.pictures li {
  position: relative;
}

.item-list {
  list-style-type: none; /* Entfernt die Listensymbole */
  padding: 0; /* Entfernt das Padding der Liste */
  margin: 0; /* Entfernt den Außenabstand der Liste */
  display: flex; /* Aktiviert Flexbox */
  flex-wrap: wrap; /* Erlaubt das Umbruch auf die nächste Zeile */
  gap: 10px; /* Gibt einen Abstand zwischen den Listenelementen an */
}

.item-list li {
  box-sizing: border-box; /* Sorgt dafür, dass Padding und Border in der Breite enthalten sind */
  list-style-type: none;
  position: relative; /* Wichtig für die Positionierung der Checkbox */
}

.item-list img {
  width: 100%; /* Setzt die Bildbreite auf die Breite des umschließenden Elements (Listenelement li) */
  height: auto; /* Stellt sicher, dass das Seitenverhältnis des Bildes beibehalten wird */
  object-fit: cover; /* Sorgt dafür, dass das Bild den Container ausfüllt, ohne verzerrt zu werden */
  max-height: 280px;
}

input[type="checkbox"].image-checkbox {
  position: absolute;
  top: 15px; /* Abstand vom oberen Rand des Bildes */
  left: 15px; /* Abstand vom linken Rand des Bildes */
  width: 20px; /* Breite der Checkbox */
  height: 20px; /* Höhe der Checkbox */
  z-index: 2; /* Stellen Sie sicher, dass die Checkbox über dem Bild liegt */
  opacity: 1; /* Sichtbarkeit der Checkbox */
  cursor: pointer; /* Cursor auf Hand ändern */
  /*display: none;*/
}

.image-checkbox-label {
  position: relative;
  cursor: pointer;
  display: block;
}

.image-preview {
  position: relative;
  cursor: pointer;
}

#imagePreviewContainer .image-preview {
  max-width: 300px;
  max-height: auto;
}

.image-preview img {
  max-width: 150px;
  max-height: 150px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.remove-image {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

.image-item {
  position: relative;
  display: inline-block; /* oder 'block', je nach Ihrem Layout */
  margin: 10px; /* Abstand um das Bild herum */
}

/* Optional: Hover-Effekt, um die Checkbox besser sichtbar zu machen */
.image-item:hover .image-checkbox {
  opacity: 0.8; /* Sichtbarkeit der Checkbox erhöhen, wenn das Bild gehovt wird */
}

input[type="file"],
input[type="text"] {
  padding: 10px;
  margin-bottom: 15px;
  box-sizing: border-box;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

#image {
  margin-right: 30px;
}

input[type="submit"],
input[type="button"] {
  background-color: rgba(98, 118, 80);
  color: rgba(255, 215, 0);
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type="submit"]:hover,
input[type="button"]:hover {
  background-color: rgba(255, 215, 0); /* Gold */
  color: rgba(98, 118, 80); /* Grün */
}

.image-actions {
  margin-top: 50px;
}
.image-actions input[type="button"] {
  display: inline-block; /* oder block */
  cursor: pointer;
}

@media only screen and (max-width: 600px) {
  .main-container {
    display: flex;
    justify-content: center; /* Zentriert den Content horizontal */
    min-height: 100vh; /* Minimale Höhe auf 100% des Viewport setzen */
  }

  .content {
    width: 80%; /* Breite des Hauptinhalts auf 80% des Elternelements setzen */
    max-width: 1200px; /* Maximale Breite des Inhalts festlegen, um zu große Breiten zu vermeiden */
    text-align: center;
    margin-top: 30px;
  }

  .text-pictures {
    margin-top: 50px;
  }

  form {
    margin-top: 50px;
  }

  #imagePreviewContainer {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(98, 118, 80);
  }

  #imagePreviewContainer img {
    margin: 10px;
  }

  #uploadStatus {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  #line-content {
    height: 2px;
    width: 100%;
    background-color: rgba(255, 215, 0);
    margin-bottom: 30px;
    margin-top: 30px;
    border-radius: 2px;
  }

  .pictures {
    display: flex; /* Verwendet Flexbox, um die Kinder nebeneinander anzuordnen */
    flex-wrap: wrap; /* Erlaubt das Umbruch der Bilder auf die nächste Zeile, falls nötig */
    justify-content: center; /* Zentriert die Bilder horizontal im Container */
    align-items: center; /* Zentriert die Bilder vertikal im Container */
    gap: 10px; /* Gibt einen Abstand zwischen den Bildern an */
  }

  .item-list {
    list-style-type: none; /* Entfernt die Listensymbole */
    padding: 0; /* Entfernt das Padding der Liste */
    margin: 0; /* Entfernt den Außenabstand der Liste */
    display: flex; /* Aktiviert Flexbox */
    flex-wrap: wrap; /* Erlaubt das Umbruch auf die nächste Zeile */
    gap: 10px; /* Gibt einen Abstand zwischen den Listenelementen an */
  }

  .item-list li {
    min-width: 150px; /* Minimale Breite jedes Listenelements */
    max-width: calc(
      100% - 10px
    ); /* Maximale Breite jedes Listenelements, 33.333% für 3 Elemente pro Reihe, minus der Abstand */
    box-sizing: border-box; /* Sorgt dafür, dass Padding und Border in der Breite enthalten sind */
    list-style-type: none;
    margin: auto;
  }

  .item-list img {
    width: 100%; /* Setzt die Bildbreite auf die Breite des umschließenden Elements (Listenelement li) */
    height: auto; /* Stellt sicher, dass das Seitenverhältnis des Bildes beibehalten wird */
    object-fit: cover; /* Sorgt dafür, dass das Bild den Container ausfüllt, ohne verzerrt zu werden */
  }

  .image-container {
    position: relative;
    display: inline-block;
    margin: 10px;
  }

  .image-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    opacity: 0; /* Kann geändert werden, um die Checkbox sichtbar zu machen */
    width: 20px;
    height: 20px;
  }
  input[type="file"],
  input[type="text"] {
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
  }

  #image {
    margin-right: 30px;
  }

  input[type="submit"],
  input[type="button"] {
    background-color: rgba(98, 118, 80);
    color: rgba(255, 215, 0);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  #deleteSelected {
    display: none;
  }

  input[type="submit"]:hover {
    background-color: #0056b3;
  }

  .image-actions {
    margin-top: 50px;
  }
}

/* Anpassungen für Tablets, mittelgroße Bildschirme */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
  .main-container {
    display: flex;
    justify-content: center; /* Zentriert den Content horizontal */
    min-height: 100vh; /* Minimale Höhe auf 100% des Viewport setzen */
  }

  .content {
    width: 80%; /* Breite des Hauptinhalts auf 80% des Elternelements setzen */
    max-width: 1200px; /* Maximale Breite des Inhalts festlegen, um zu große Breiten zu vermeiden */
    text-align: center;
    margin-top: 30px;
  }

  .text-pictures {
    margin-top: 50px;
  }

  form {
    margin-top: 50px;
  }

  #imagePreviewContainer {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(98, 118, 80);
  }

  #imagePreviewContainer img {
    margin: 10px;
  }

  #uploadStatus {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  #line-content {
    height: 2px;
    width: 100%;
    background-color: rgba(255, 215, 0);
    margin-bottom: 30px;
    margin-top: 30px;
    border-radius: 2px;
  }

  .pictures {
    display: flex; /* Verwendet Flexbox, um die Kinder nebeneinander anzuordnen */
    flex-wrap: wrap; /* Erlaubt das Umbruch der Bilder auf die nächste Zeile, falls nötig */
    justify-content: center; /* Zentriert die Bilder horizontal im Container */
    align-items: center; /* Zentriert die Bilder vertikal im Container */
    gap: 10px; /* Gibt einen Abstand zwischen den Bildern an */
  }

  .pictures li {
    max-width: calc(50% - 10px);
  }

  .item-list {
    list-style-type: none; /* Entfernt die Listensymbole */
    padding: 0; /* Entfernt das Padding der Liste */
    margin: 0; /* Entfernt den Außenabstand der Liste */
    display: flex; /* Aktiviert Flexbox */
    flex-wrap: wrap; /* Erlaubt das Umbruch auf die nächste Zeile */
    gap: 10px; /* Gibt einen Abstand zwischen den Listenelementen an */
  }

  .item-list li {
    min-width: 150px; /* Minimale Breite jedes Listenelements */
    max-width: calc(
      50% - 10px
    ); /* Maximale Breite jedes Listenelements, 33.333% für 3 Elemente pro Reihe, minus der Abstand */
    box-sizing: border-box; /* Sorgt dafür, dass Padding und Border in der Breite enthalten sind */
    list-style-type: none;
    margin: auto;
  }

  .item-list img {
    width: 100%; /* Setzt die Bildbreite auf die Breite des umschließenden Elements (Listenelement li) */
    height: auto; /* Stellt sicher, dass das Seitenverhältnis des Bildes beibehalten wird */
    object-fit: cover; /* Sorgt dafür, dass das Bild den Container ausfüllt, ohne verzerrt zu werden */
  }

  .image-container {
    position: relative;
    display: inline-block;
    margin: 10px;
  }

  .image-checkbox {
    position: absolute;
    top: 10px; /* Adjust as needed */
    left: 10px; /* Adjust as needed */
    /*display: none;*/
  }

  input[type="file"],
  input[type="text"] {
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
  }

  #image {
    margin-right: 30px;
  }

  input[type="submit"],
  input[type="button"] {
    background-color: rgba(98, 118, 80);
    color: rgba(255, 215, 0);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  #deleteSelected {
    display: none;
  }

  input[type="submit"]:hover {
    background-color: #0056b3;
  }

  .image-actions {
    margin-top: 50px;
  }
}

/* Anpassungen für Tablets, mittelgroße Bildschirme */
@media only screen and (min-width: 1024px) and (max-width: 1489px) {
  .main-container {
    display: flex;
    justify-content: center; /* Zentriert den Content horizontal */
    min-height: 100vh; /* Minimale Höhe auf 100% des Viewport setzen */
    width: 70%;
  }

  .content {
    width: 100%; /* Breite des Hauptinhalts auf 80% des Elternelements setzen */
    max-width: 1200px; /* Maximale Breite des Inhalts festlegen, um zu große Breiten zu vermeiden */
    text-align: center;
    margin-top: 30px;
  }

  .text-pictures {
    margin-top: 50px;
  }

  form {
    margin-top: 50px;
  }

  #imagePreviewContainer {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(98, 118, 80);
  }

  #imagePreviewContainer img {
    margin: 10px;
  }

  #uploadStatus {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  #line-content {
    height: 2px;
    width: 100%;
    background-color: rgba(255, 215, 0);
    margin-bottom: 30px;
    margin-top: 30px;
    border-radius: 2px;
  }

  .pictures {
    display: flex; /* Verwendet Flexbox, um die Kinder nebeneinander anzuordnen */
    flex-wrap: wrap; /* Erlaubt das Umbruch der Bilder auf die nächste Zeile, falls nötig */
    justify-content: center; /* Zentriert die Bilder horizontal im Container */
    align-items: center; /* Zentriert die Bilder vertikal im Container */
    gap: 10px; /* Gibt einen Abstand zwischen den Bildern an */
  }

  .item-list {
    list-style-type: none; /* Entfernt die Listensymbole */
    padding: 0; /* Entfernt das Padding der Liste */
    margin: 0; /* Entfernt den Außenabstand der Liste */
    display: flex; /* Aktiviert Flexbox */
    flex-wrap: wrap; /* Erlaubt das Umbruch auf die nächste Zeile */
    gap: 10px; /* Gibt einen Abstand zwischen den Listenelementen an */
  }

  .item-list li {
    min-width: 150px; /* Minimale Breite jedes Listenelements */
    max-width: calc(
      25% - 10px
    ); /* Maximale Breite jedes Listenelements, 33.333% für 3 Elemente pro Reihe, minus der Abstand */
    box-sizing: border-box; /* Sorgt dafür, dass Padding und Border in der Breite enthalten sind */
    list-style-type: none;
    margin: 2rem;
  }

  .item-list img {
    width: 100%; /* Setzt die Bildbreite auf die Breite des umschließenden Elements (Listenelement li) */
    height: auto; /* Stellt sicher, dass das Seitenverhältnis des Bildes beibehalten wird */
    object-fit: cover; /* Sorgt dafür, dass das Bild den Container ausfüllt, ohne verzerrt zu werden */
  }

  .image-container {
    position: relative;
    display: inline-block;
    margin: 10px;
  }

  .image-checkbox {
    position: absolute;
    top: 10px; /* Adjust as needed */
    left: 10px; /* Adjust as needed */
    /*display: none;*/
  }

  input[type="file"],
  input[type="text"] {
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
  }

  #image {
    margin-right: 30px;
  }

  input[type="submit"],
  input[type="button"] {
    background-color: rgba(98, 118, 80);
    color: rgba(255, 215, 0);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  #deleteSelected {
    display: none;
  }

  input[type="submit"]:hover {
    background-color: #0056b3;
  }

  .image-actions {
    margin-top: 50px;
  }
}
