body {
  margin: 0;
  font-family: Arial, sans-serif;
  text-align: center;
  color: rgb(0, 0, 0);
}

/* Hintergrundbild */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: url("background.jpeg") no-repeat center center/cover;
  
  opacity: 0.3;

  z-index: -1;
}

/* Inhalt */
h1 {
  margin-top: 50px;
  font-size: 2em;
  text-align: center;
  width: 100%;
}

form {
  margin-top: 20px;
}

input, button {
  padding: 10px;
  font-size: 16px;
  margin: 5px;
}

/* Bingo Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;

  width: 95vw;
  max-width: 700px;

  margin: auto;
}

/* Bingo Feld */
.cell {
  background: #729d84;
  border-radius: 14px;
  padding: 6px;

  box-shadow: 0 6px 16px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;
  gap: 6px;

  aspect-ratio: 1 / 1;
}

.task {
  font-size: clamp(8px, 2.2vw, 13px);
  font-weight: 600;
  text-align: center;
}

.placeholder {
  flex: 1;
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #64748b;
}

.upload-hint {
  text-align: center;
  font-size: 10px;
  color: #94a3b8;
}

.image-preview {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 5px;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
}

.file-input {
  width: 100%;
  font-size: 11px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding: 20px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  cursor: pointer;
}

.custom-upload {
  display: inline-block;
  background-color: #000;
  color: white;
  padding: 6px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}

.custom-upload:hover {
  background-color: #00eeff;
}

/* echtes File-Input verstecken */
.custom-upload input[type="file"] {
  display: none;
}