* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: sans-serif;
  background: #f1f5f8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.section-center {
  background: #fff;
  width: 90vw;
  max-width: 400px;
  border-radius: 0.25rem;
  padding: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
h3 {
  text-align: center;
  margin-bottom: 1rem;
}
.form-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
input[type="text"] {
  flex: 1;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
}
.submit-btn {
  background: #2980b9;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1rem;
}
.submit-btn:hover {
  background: #1f6690;
}

/* Liste und Buttons */
.grocery-container {
  margin-top: 1rem;
  visibility: hidden;
}
.show-container {
    visibility: visible;
  }
.grocery-list {
  list-style-type: none;
  margin-bottom: 1rem;
}
.grocery-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 2px solid #bdd2e2;
}
.title {
  font-size: 1rem;
  color: #333;
}
.btn-container {
  display: flex;
  gap: 0.5rem;
}
.edit-btn,
.delete-btn {
  background: transparent;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  color: #2980b9;
}
.delete-btn {
  color: #c0392b;
}
.clear-btn {
  width: 100%;
  background: #c0392b;
  border: none;
  color: #fff;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 0.25rem;
}
.clear-btn:hover {
  background: #a52a1a;
}
.alert {
    margin: 10px 0;
    color: #fff;
    padding: 5px 10px;
  }
  .alert-success { background: green; }
  .alert-danger { background: red; }
 
 