/* Stil für das Popup-Fenster */
#popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border: 1px solid black;
}

/* Stil für das Einkaufslisten-Auswahlmenü */
form {
  display: inline-block;
  margin: 20px;
}

select {
  font-size: 16px;
  padding: 5px;
}

input[type="submit"],
input[type="button"] {
  font-size: 16px;
  padding: 5px 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
}

input[type="submit"]:hover,
input[type="button"]:hover {
  background-color: #3e8e41;
}

input[type="submit"]:focus,
input[type="button"]:focus {
  outline: none;
}

/* Stil für das Popup-Formular */
label {
  display: inline-block;
  width: 100px;
  font-size: 16px;
  margin-bottom: 5px;
}

input[type="text"],
input[type="date"] {
  font-size: 16px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 250px;
}

input[type="text"]:focus,
input[type="date"]:focus {
  outline: none;
  border: 1px solid #4CAF50;
}

input[type="submit"][name="submit"] {
  background-color: #008CBA;
}

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

/* Neue Stile für die Hauptseite-Buttons */
button {
  font-size: 16px;
  padding: 5px 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
}

button:hover {
  background-color: #3e8e41;
}

button:focus {
  outline: none;
}
table {
border-collapse: collapse;
}

th, td {
text-align: center;
padding: 8px;
border: 1px solid black;
}

th {
background-color: #4CAF50;
color: white;
}
/* Neue Stile für mobile Geräte */
@media only screen and (max-width: 600px) {
  /* Zentrieren der Formularelemente */
  form,
  #popup form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  /* Vergrößern der Schriftgröße */
  label,
  input,
  select,
  button {
    font-size: 18px;
  }

  /* Vergrößern der Abstände */
  form,
  #popup form {
    margin: 10px;
  }
  
  input,
  select,
  button {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  /* Verkleinern der Breite der Formularelemente */
  input[type="text"],
  input[type="date"],
  select {
    width: 200px;
  }
/* Zentrieren des Popup-Fensters */
#popup {
top: 40%;
}
}
