.hero {
  text-align: center;
}

label {
  margin-top: 30px;
  display: inline-block;
}

.personen-input {
  width: 45px; /* kleiner Kasten */
  padding: 4px 6px; /* optional: weniger Innenabstand */
  font-size: 14px;
  height: auto;
}

button.Berechnung {
  font-size: 14px;
  padding: 4px 8px;
  width: auto;
  height: auto;
}

.btn-info {
  background-color: #d17a00ab;
  margin: 15px;
  width: 100px;
  height: 30px;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid #000;
  color: #f9f9f9;
  font-size: 14px;
  font-weight: bold;

  display: inline-flex;
  justify-content: center; /* horizontal zentriert */
  align-items: center;
}

.back {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  font-size: 1rm;
  width: 35%;
  color: white;
  margin: 50px auto 0 auto; /* oben 50px Abstand, horizontal zentriert */
  line-height: 1.2;
  cursor: pointer; /* Mauszeiger bei Hover */
  border: none;
  background-color: #7777775e;
}

.back-container {
  text-align: center; /* zentriert den Link horizontal */
}

.button-container {
  text-align: center;
}

button.Einkaufsliste {
  margin-top: 20px;
  background-color: #d17a00d2;
  color: white;
  padding: 5px 5px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#liste {
  margin: 0;
  padding-left: 0;
  list-style: none; /* Optional: entfernt die Standard-Bulletpoints */
}

#liste li {
  margin: 2px 0; /* Abstand oben und unten, kannst du kleiner machen */
  padding: 0;
  line-height: 1.2; /* Zeilenhöhe enger machen */
}

#liste li input[type="checkbox"] {
  margin: 0 5px 0 0; /* Abstand rechts von der Checkbox */
  vertical-align: middle; /* Checkbox schön ausrichten */
}

#liste li label {
  vertical-align: middle; /* Label mittig ausrichten */
  margin: 0;
  padding: 0;
}

#liste li {
  margin: 2px 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #fffaf3;
  margin: 0;
  padding: 40px;
}

h1 {
  text-align: center;
  color: #d17b00;
  margin-bottom: 30px;
}

h3 {
  text-align: center;
  color: #000;
  margin-bottom: 30px;
}

.Spaghetti {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto; /* zentriert horizontal */
  border-radius: 90%; /* rund */
  display: block; /* damit margin auto wirkt */
  object-fit: cover; /* zuschneiden bei Verzerrung */
}

.Curry {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  border-radius: 90%;
  display: block;
  object-fit: cover;
}

.Kuchen {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  border-radius: 90%;
  display: block;
  object-fit: cover;
}

#ergebnis {
  max-width: 400px;
  margin: 20px auto;
  text-align: center;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.container {
  max-width: 600px;
  margin: 30px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
  line-height: 1.6;
}

.recipe-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 220px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.card-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.card-content h3 {
  font-size: 1.1em;
  margin: 0 0 8px;
  color: #b85d00;
}

.card-content p {
  font-size: 0.9em;
  color: #444;
  margin: 0 0 10px;
}

.ingredients {
  font-size: 0.85em;
  color: #777;
}

footer {
  font-size: 10px;
  text-align: center;
  margin-top: 40px;
}
@media (max-width: 600px) {
  .card {
    width: 100%;
  }
  .container {
    padding: 15px;
    margin: 20px;
  }

  .back {
    display: inline-flex;
    text-align: center;
    height: 40px;
    font-size: 12px;
    line-height: 1.2;
    max-width: 50%;
    padding: 10px;
  }

  button.Einkaufsliste {
    height: 40px;
    font-size: 12px;
    padding: 5px;
  }
}
