body {
  font-family: Century Gothic, system-ui;
  font-size: 0.9rem;
  font-style: normal;
  background-color: #f9f9f9;
  padding: 2rem;
  max-width: 800px;
  margin: auto;
  color: #333;
}

h1 {
  color: #000000;
  font-family: Bungee Inline, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 3rem; /* sehr groß */
}

h2 {
  color: #2e3033;
  font-family: Bungee Inline, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

h3 {
  color: #2e3033;
  font-family: Century Gothic;
  font-weight: 300;
  font-size: 14px;
  margin-top: 0rem;
  margin-bottom: 0rem;
}

input, textarea {
  font-family: Century Gothic, system-ui;
  width: 93%;
  height: auto;
  padding: 0.6rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}

button {
  padding: 0.7rem 1.2rem;
  font-family: Century Gothic;
  font-size: 0.9rem;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.5rem;
}

.standard-button {
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.5rem;
  min-width: 120px;
  height: 40px;
  max-width: 300px;
  width: auto;
}

@media (max-width: 600px) {
  #rezeptDetails .standard-button {
    width: 100% !important;  /* volle Breite */
    font-size: 1.2rem !important;
    padding: 1rem 1.5rem !important;
    min-width: 140px !important;
    height: 50px !important;
    box-sizing: border-box;  /* falls nicht schon gesetzt */
  }
}



/* SEITE: STARTSEITE */

/* Startseite: Rezept hinzufügen */
.rezept-hinzufuegen-button {
  background-color: #dd2a56;
  margin-left: 355px;
}
@media (max-width: 600px) {
.rezept-hinzufuegen-button {
  margin-left: 0;
  width: 100%;
  display: block;
  text-align: center;
 }
}

.rezept-hinzufuegen-button:hover {
  background-color: #9b1a3a;
}





/*Startseite: To Dos */
.todo-button {
  background-color: #dd2a56;
}



/*Startseite: Zeitfilter anpassen*/
/*Zeitfilter in eine Reihe bringen, und die Höhe gleich haben egal wie lang der Text ist */
#zeitFilter {
  display: flex;
  flex-wrap: wrap;
}

.zeitfilter-button {
  background-color: #33719b !important;
  width: 118px;
  height: 60px;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.9rem;
  margin: 5px;
  cursor: pointer;
  font-family: Century Gothic, sans-serif;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Startseite: Zeitfilter farblich ändern, wenn betätigt */
.zeitfilter-button.selected {
  background-color: #0f2c3f !important;
  color: white;
}

/*Startseite: Zeitfilter in eine Reihe bringen, und die Höhe gleich haben egal wie lang der Text ist */
#zeitFilter_back {
  display: flex;
  flex-wrap: wrap;
}

.zeitfilter_back-button {
  background-color: #4ca0d8 !important;
  width: 118px;
  height: 60px;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.9rem;
  margin: 5px;
  cursor: pointer;
  font-family: Century Gothic, sans-serif;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Startseite: Zeitfilter farblich ändern, wenn betätigt */
.zeitfilter_back-button.selected {
  background-color: #256c9b !important;
  color: white;
}

/* Startseite: Kategorie farblich ändern, wenn betätigt */
.kategorie-filter.selected {
  background-color: #19693b !important;
  color: white;
}



/* Startseite: gelistete Rezepte */
#rezeptListe {
  font-family: Bebas Neue, sans-serif;
  list-style-type: none; /*ohne Strichpunkte */
  padding: 0;
  font-size: 20px;
}

/* Startseite: Rezept (mit Link) ohne Unterstrich und Farbewechsel */
a {
  text-decoration: none;      /* entfernt Unterstrich */
  color: inherit;             /* übernimmt die Textfarbe vom Elternelement */
}

a:visited,
a:hover,
a:focus,
a:active {
  text-decoration: none;      /* auch im Besuchs- oder Hover-Zustand keine Unterstreichung */
  color: inherit;             /* keine Farbänderung bei Klick oder Hover */
}








/* SEITE: REZEPT HINZUFÜGEN */

/* Rezept hinzufügen: Kategorien */
.kategorie-button {
  background-color: #26ad5f52;
  border: 1px solid #26ad5e2d;
  padding: 10px 16px;
  margin: 5px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.kategorie-button.selected {
  background-color: #2ecc71;
  color: white;
}

.kategorie-button.hover {
 background-color: #f0f0f0; 
}

.kategorie-filter.active {
  background-color: #2ecc71;
  color: white;
  border-color: #27ae60;
}

.kategorieBtn {
  margin: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #eee;
  cursor: pointer;
}

.kategorieBtn.activeKategorie {
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
}

/*Rezept hinzufügen: Abbrechen Button farblich ändern */
#cancelButton {
  background-color: grey !important;
}







/* SEITE: REZEPTDETAILS */
ul {
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-top: 0 !important;
}

strong {
  font-family: Bebas Neue, sans-serif;
  font-size: 22px;
}

.ueberschrift_aendern {
  font-family: Bebas Neue, sans-serif !important;
}

.textarea_hoehe {
  height: 250px !important;
}

#backButton {
background-color: grey !important;
}

.standard-button-delete {
  background-color: #e74c3c;
}

#rezeptDetails div {
  margin-bottom: 0.4rem;
}


/* SEITE: STARTSEITE & REZEPTDETAILS: Button "Einkaufen" */
#einkaufenButton, #wochenplanButton {
  border-color: #145f33;
  background-color: transparent;
  font-family: Bungee Inline, sans-serif;
  font-weight: 100;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: #145f33;
  border-radius: 6px;
  border: 1.8px solid #145f33;
}

#vorratButton {
  border-color: #700f36;
  background-color: #dd2a56;
  font-family: Bungee Inline, sans-serif;
  font-weight: 100;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: white;
  border-radius: 6px;
  border: 1.8px solid #700f36;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
}

.modal.show {
  display: flex; /* An welcher Stelle wird das Modal angezeigt? --> hier: Mittig im Bildschirm */
}

.modal-close { /* Schließen-Button im Modal */
  float: right;
  font-size: 20px;
  cursor: pointer;
  color: white;
  background-color: #691919;
  padding: 5px;
}

h4 { /* Überschrift im Modal */
  color: #2e3033;
  font-family: Bungee Inline, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

/* Für die Zutatenliste IM MODAL */
.modal-zutat {
  display: flex;
  align-items: center;
  gap: 0rem; /* Abstand zwischen Checkbox, Menge und Zutat */
  text-align: left;
  margin-bottom: 0rem;
  justify-content: flex-start; /* explizit linksbündig */
}

.modal-zutat input[type="checkbox"] {
  margin-right: 0.rem;
  
}

.modal-zutat .menge,
.modal-zutat .zutat-name {
  color: #555;
  min-width: 20px; /* optional: sorgt für gleichmäßige Ausrichtung */
  display: inline-block;
}

#modalZutatenListe {
  text-align: left; /* Wichtig: verhindert zentrierten Text */
}





/* SEITE: EINKAUFSLISTE */
.kategorieTitel {
  color: #2e3033;
  font-family: Bungee Inline, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  margin-top: 3rem;
}

.einkaufsliste-zeile {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 6px;
  background-color: #f9f9f9; /* Heller Hintergrund ähnlich wie todoListe */
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  gap: 12px; /* Abstand zwischen Checkbox, Text und Button */
}

.einkaufsliste-zeile input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.zutatText {
  flex-grow: 1;      /* Text nimmt den verfügbaren Platz ein */
  font-family: 'Urbanist', sans-serif; /* Beispiel-Schriftart */
  font-size: 1rem;
  color: #333;
  user-select: none;
}

.einkaufen-delete {
  background: transparent;
  border: none;
  color: #c00;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s ease;
}

.einkaufen-delete:hover {
  color: #f33;
}

#kategorieSelect {
  padding: 0.7rem 1.2rem; /* Höhe und Breite */
  border: 1.8px solid #239954;
  border-radius: 6px;
  background-color: white;
  color: #333;
  font-size: 0.9rem;
  font-family: 'Urbanist', sans-serif;
  appearance: none; /* entfernt Standardpfeil */
  background-image: url("data:image/svg+xml,%3Csvg fill='%23239954' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  cursor: pointer;
  transition: border-color 0.3s ease;
  
  
}

#kategorieSelect:hover {
  border-color: #239954;

}
#kategorieSelect:focus {
  outline: none;
  border-color: #239954;
  box-shadow: 0 0 5px #239954;
}

/* Unsichtbare native Checkbox */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid black;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background-color: white;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Wenn Checkbox angehakt ist */
input[type="checkbox"]:checked {
  background-color: #239954;
  border-color: #239954;
}

/* Weißer Haken mit Pseudoelement */
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}






/* TO DO LIST */
#todoListe {
  list-style: none;          /* Keine Standard-Punkte */
  padding: 0;
  margin: 20px 0;
  max-width: 500px;          /* Breite begrenzen */
  background: #f9f9f9;       /* Heller Hintergrund */
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#todoListe li {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  font-family: 'Urbanist', sans-serif;
  font-size: 1rem;
  color: #333;
  transition: background-color 0.2s ease;
}

#todoListe li:last-child {
  border-bottom: none;
}

#todoListe li:hover {
  background-color: #e0f7fa;  /* Helles Türkis beim Hover */
  cursor: pointer;
}

#todoListe li input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #00796b; /* Schöne Akzentfarbe für Checkbox */
  margin-right: 12px;
  flex-shrink: 0;
}

#todoListe li span {
  flex-grow: 1;
  user-select: none; /* Verhindert Textauswahl beim Klick auf Label */
}

#todoListe li span.completed {
  text-decoration: line-through;
  color: #999;
}





/* VORRATSKAMMER */
.kamerabutton {
  padding: 1rem 1rem;
  font-size: 1.2rem;
  background-color: white;
  color: white;
  border: 1px solid #535353;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.5rem;
}