body {
  font-family: sans-serif;
  padding: 20px;
  background-color: #f9f9f9;
}
.darkmode body {
  background-color: #121212;
  color: #ddd;
}
.tab-bar {
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.rezept-header .button-link {
  text-decoration: none;
  background: #eee;
  padding: 8px 12px;
  border-radius: 6px;
  color: #333;
  border: 1px solid #ccc;
}
.rezept-header .button-link:hover {
  background: #ddd;
}
.rezept-header .zuruecksetzen-link {
  margin-left: 10px;
  font-size: 0.9em;
  color: #666;
  text-decoration: underline;
}
.rezept-header input[type="text"] {
  padding: 14px 20px;
  font-size: 1.1rem;
  border-radius: 8px;
  width: 300px;
}
.rezept-header h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-top: 0px;
  margin-bottom: 10px;
}
.rezept-header {
  margin-top: 0;
  padding-top: 5px;
}
/* Trennzeichen Karte */
.trenner {
  color: #555;
  margin: 0 0px;
  font-weight: bold;
  font-size: 1.2em;
}
.such-button {
  padding: 14px 24px;
  font-size: 1.1rem;
  border-radius: 8px;
  background-color: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}
.such-button:hover {
  background-color: #3e9141;
}
.such-button.reset {
  background-color: #999;
}
.such-button.reset:hover {
  background-color: #777;
}
.such-button:hover {
  background-color: #3e9141;
}

.such-button.reset {
  background-color: #999;
}
.such-button.reset:hover {
  background-color: #777;
}
.tab-bar button {
  display: inline-block;
  background: #eee;
  border: none;
  padding: 10px 15px;
  margin-right: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}
.tab-bar button.active {
  background: #4caf50;
  color: white;
}
.rezepte {
  display: none;
}
.rezepte.active {
  display: block;
}
.rezept {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
}
.rezept img {
  max-width: 150px;
  float: right;
  margin-left: 10px;
}
form a {
  background: #ccc;
  color: #000;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 4px;
}
form a:hover {
  background: #aaa;
}
a.zurueck {
  display: inline-block;
  background: #eee;
  color: #333;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 5px;
  margin-bottom: 20px;
}
a.zurueck:hover {
  background: #ddd;
}
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.rezept-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
  max-width: 1600px;
}
.rezept-karte {
  width: 250px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.rezept-karte:hover {
  transform: scale(1.02);
}
.rezept-bild img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.rezept-info {
  padding: 15px;
}
.rezept-info h3 {
  margin-top: 0;
}
.zeit {
  font-size: 0.9em;
  color: #666;
  margin: 5px 0;
}
.kategorien {
  margin: 5px 0 15px;
}
.kat {
  display: inline-block;
  background: #e7f1ff;
  color: #2a72b5;
  padding: 2px 8px;
  margin: 2px;
  border-radius: 5px;
  font-size: 0.8em;
}
.button {
  display: inline-block;
  padding: 8px 12px;
  background: #2a72b5;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
}
.button:hover {
  background: #1d518a;
}
.rezept-bild img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.pagination {
  text-align: center;
  margin-top: 30px;
}
.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  background: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
}
.pagination a.active {
  background: #2a72b5;
  color: white;
  font-weight: bold;
}
.pagination a:hover {
  background: #ccc;
}
.tab-bar {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tab {
  padding: 8px 16px;
  background-color: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s;
}
.tab:hover {
  background-color: #ddd;
}
.tab.active {
  background-color: #333;
  color: #fff;
  font-weight: bold;
}
.kat,
.schwierigkeit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  margin: 3px 5px 3px 0;
  border-radius: 6px;
  font-size: 0.8em;
  line-height: 1;
  min-height: 10px;
  font-weight: bold;
}
/* Lightmode */
.kat {
  background-color: #e1ecf4;
  color: #0366d6;
}
.schwierigkeit {
  background-color: #ffe7e7;
  color: #b52a2a;
}
/* Darkmode */
.darkmode .kat {
  background-color: #264d73;
  color: #cde;
  border: 1px solid #456789;
}
.rezept-einzeln {
  max-width: 700px;
  margin: auto;
  padding: 20px;
  background: #fffdf9;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.rezept-einzeln h2 {
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}
.bild-wrap {
  text-align: center;
  margin: 15px 0;
}
.bild-wrap img {
  max-width: 100%;
  border-radius: 8px;
}
.infozeile {
  display: flex;
  gap: 20px;
  font-size: 1.1em;
  margin-bottom: 10px;
}
.kategorien .kat {
  background: #e1ecf4;
  color: #0366d6;
  padding: 3px 8px;
  margin-right: 5px;
  border-radius: 4px;
  font-size: 0.9em;
}
.zeittext {
  font-style: italic;
  color: #666;
}
.rezept-bereich h3 {
  margin-top: 20px;
  color: #444;
}
.button-zurueck {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 16px;
  background: #eee;
  color: #333;
  border-radius: 5px;
  text-decoration: none;
}
.button-zurueck:hover {
  background: #ddd;
}
.rezept-formular {
  max-width: 600px;
  margin: auto;
  background: #fdfdfd;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.rezept-formular label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}
.rezept-formular input[type="text"],
.rezept-formular input[type="number"],
.rezept-formular textarea,
.rezept-formular select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}
.kategorien-check {
  margin-top: 10px;
}
.kategorien-check label {
  display: block;
  margin-bottom: 5px;
}
.speichern-button {
  margin-top: 20px;
  padding: 10px 15px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
}
.speichern-button:hover {
  background: #45a049;
}
.kategorien-accordion {
  margin-top: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
}
.accordion-header {
  background: #f0f0f0;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
}
.accordion-content {
  display: none;
  padding: 10px;
  background: #fafafa;
}
/* Wenn aufgeklappt */
.accordion-header.open::before {
  content: "▾ ";
}
/* Wenn zu */
.accordion-header::before {
  content: "▸ ";
  margin-right: 5px;
}
.accordion-header.open + .accordion-content {
  display: block;
}
.rezept-stich {
  font-size: 0.9em;
  color: #666;
  margin-top: -10px;
  margin-bottom: 20px;
}
.rezept-box {
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  background: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  position: relative;
}
.rezept-box h2 {
  margin-top: 0;
}
.rezept-stich {
  font-size: 0.9em;
  color: #666;
  margin-top: -10px;
  margin-bottom: 20px;
}
.toggle-header {
  cursor: pointer;
  position: relative;
  padding-left: 1.2em;
}
.toggle-header::before {
  content: '▾';
  position: absolute;
  left: 0;
  top: 0;
}
.toggle-header.collapsed::before {
  content: '▸';
}
.rezept-buttons {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}
.loeschen-button {
  background: #ffdddd;
  border: 1px solid #ff9999;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  color: #a00;
}
.loeschen-button:hover {
  background: #ffcccc;
}
.abbrechen-button {
  background: #eee;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s ease;
}
.abbrechen-button:hover {
  background: #ddd;
}
.bild-wrap img {
  max-height: 250px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.logout-button {
  background: transparent;
  color: #888;
  border: 1px solid #888;
  padding: 8px 14px;
  border-radius: 5px;
  font-weight: bold;
}
.logout-button:hover {
  background: #eee;
  color: #000;
}
/* Basis */
body {
  background-color: #fff;
  color: #000;
  transition: background 0.3s, color 0.3s;
}

.darkmode body {
  background-color: #121212;
  color: #ddd;
}
/* Toggle-Styling */
.darkmode-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  content: "";
  position: absolute;
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #4caf50;
}
input:checked + .slider:before {
  transform: translateX(24px);
}
.darkmode .rezept-box {
  background-color: #1e1e1e;
  color: #eee;
  border-color: #333;
}
.darkmode textarea,
.darkmode input {
  background-color: #2a2a2a;
  color: #fff;
  border-color: #444;
}
.rezept {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: background-color 0.3s, color 0.3s;
}

.rezept h3 {
  color: #333;
}

.darkmode .rezept {
  background-color: #1f1f1f;
  border-color: #333;
}

.darkmode .rezept h3 {
  color: #eee;
}
.darkmode .rezept span,
.darkmode .rezept p {
  color: #ccc;
}

.darkmode .rezept .kat {
  background-color: #333;
  color: #eee;
  border: 1px solid #444;
}

.darkmode .rezept a.button {
  background-color: #2e6da4;
  color: #fff;
  border: none;
}
.darkmode .rezept a.button:hover {
  background-color: #204d74;
}
.rezept-karte h3 {
  margin-top: 0;
  color: #333;
}

.darkmode .rezept-karte {
  background: #1f1f1f;
  border-color: #333;
}
.darkmode .rezept-karte h3,
.darkmode .rezept-karte .zeit,
.darkmode .rezept-karte .kategorien {
  color: #ddd;
}

.darkmode .kat {
  background-color: #2a4d6f;
  color: #cde;
  border: 1px solid #456789;
}

.darkmode .schwierigkeit {
  background-color: #6f2a2a;
  color: #fdd;
  border: 1px solid #a44;
}
.darkmode .rezept-karte .button {
  background-color: #2e6da4;
  color: #fff;
  border: none;
}
.darkmode .rezept-karte .button:hover {
  background-color: #204d74;
}
.rezept-karte {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  margin: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: background-color 0.3s, color 0.3s;
}
.rezept-karte h3 {
  margin-top: 0;
  color: #333;
}
/* Rezept-Einzelseite */
.rezept-einzeln {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 30px auto;
  max-width: 800px;
}
.rezept-einzeln h2,
.rezept-einzeln h3,
.rezept-einzeln .infozeile,
.rezept-einzeln .kategorien,
.rezept-einzeln .zeittext,
.rezept-einzeln .rezept-buttons,
.rezept-einzeln .kommentar-liste,
.rezept-einzeln .rezept-bereich p {
  color: #333;
}
.rezept-bereich {
  background: #fffdf9;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
/* =============== Darkmode Ergänzungen =============== */
.darkmode body {
  background-color: #121212;
  color: #ddd;
}
.darkmode .rezept-karte,
.darkmode .rezept-box,
.darkmode .rezept-formular,
.darkmode .rezept-einzeln {
  background-color: #1f1f1f;
  border-color: #333;
  color: #eee;
}

.darkmode .rezept-karte h3,
.darkmode .rezept-box h2,
.darkmode .rezept-einzeln h2,
.darkmode .rezept-einzeln h3,
.darkmode .rezept-formular label {
  color: #fff;
}

.darkmode input,
.darkmode select,
.darkmode textarea {
  background-color: #2a2a2a;
  color: #eee;
  border: 1px solid #555;
}

.darkmode .button,
.darkmode .logout-button,
.darkmode .abbrechen-button,
.darkmode .loeschen-button {
  background-color: #333;
  color: #eee;
  border: 1px solid #555;
}

.darkmode .button:hover,
.darkmode .logout-button:hover,
.darkmode .abbrechen-button:hover,
.darkmode .loeschen-button:hover {
  background-color: #444;
}
.darkmode a {
  color: #7fcaff; /* normale Links im Darkmode */
}

.darkmode a:visited {
  color: #a8c0ff; /* besuchte Links im Darkmode */
}
.darkmode .rezept-bereich {
  background: #2a2a2a;
  border-color: #444;
}

.rezept-bereich h3.toggle-header {
  cursor: pointer;
  margin-top: 20px;
  font-size: 1.2em;
  color: #333;
}

.darkmode .rezept-bereich h3.toggle-header {
  color: #ddd;
}

.darkmode .accordion-header {
  background-color: #333;
  color: #eee;
  cursor: pointer;
  padding: 0.5rem;
}

.darkmode .accordion-content {
  background-color: #222;  /* dunkler Hintergrund */
  color: #eee;             /* helle Schrift */
  border-radius: 0.5rem;   /* optional hübscher */
  padding: 0.5rem;
}

.darkmode .accordion-content label {
  color: #eee; /* falls vom Browser hell gemacht */
}

.darkmode .accordion-content input[type="checkbox"] {
  accent-color: #888; /* macht Checkboxen sichtbar im Darkmode */
}

.darkmode .infozeile {
  color: #ccc;
}

.darkmode .zeittext {
  color: #ccc;
}
.darkmode .toggle-header {
  background-color: #222;
  color: #eee;
}

.darkmode .toggle-content p {
  color: #eee;
}
.darkmode .kommentar-liste,
.darkmode .kommentar-liste li,
.darkmode .kommentar-liste li strong,
.darkmode .kommentar-liste li small,
.darkmode p {
  color: #eee;
}
.darkmode .kommentar-liste li {
  background-color: #2a2a2a;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}
.darkmode .loeschen-button {	
  background: #4b1c1c;          /* dunkles Rotbraun */
  border: 1px solid #cc4444;    /* kräftiger Rotton */
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
  color: #ff9999;               /* helles Rot für Text */ 
}

.darkmode .loeschen-button:hover {
  background: #661f1f;          /* leicht heller beim Hover */
  color: #ffcccc;
}
.darkmode .rezept-stich {
  font-size: 1.2em;
  color: #eee;
  margin-top: -10px;
  margin-bottom: 20px;
}
.darkmode .tab-bar {
  border-bottom: 2px solid #444;
}

.darkmode .tab {
  background-color: #2a2a2a;
  color: #eee;
}

.darkmode .tab:hover {
  background-color: #444;
}

.darkmode .tab.active {
  background-color: #555;
  color: #fff;
}

/* 🍽️ Neues Rezept */
.darkmode .rezept-header .button-link {
  background-color: #0066cc;
  color: #fff;
  border: none;
}
.darkmode .rezept-header .button-link:hover {
  background-color: #005bb5;
}

/* 🔍 Suchen */
.darkmode .such-button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1.4;
}

.darkmode .such-button:hover {
  background-color: #3c8d3c;
}

.darkmode .such-button.reset {
  background-color: #777;
}

.darkmode .such-button.reset:hover {
  background-color: #666;
}
.darkmode a.such-button,
.darkmode a.such-button:visited,
.darkmode a.such-button:hover,
.darkmode a.such-button:active {
  color: white !important;
}
<div class="darkmode-toggle">
  <span class="darkmode-icon">🌙</span>
  <label class="switch">
    <input type="checkbox" id="darkToggle">
    <span class="slider"></span>
  </label>
</div>
.admin-link {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  font-size: 0.9rem;
}

.admin-link a {
  background: #444;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.admin-link a:hover {
  background: #666;
}

.darkmode .admin-link a {
  background: #0066cc;
  color: #fff;
}

.darkmode .admin-link a:hover {
  background: #005bb5;
}
.top-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px; /* Abstand zwischen Elementen */  
  top: 10px;
}
/* Position entfernen, damit nichts doppelt ist */
.admin-link,
.darkmode-toggle {
  position: static;
}
/* Allgemeiner Kommentarbereich */
.darkmode .kommentar-hinweis,
.darkmode .rezept-einzeln p,
.darkmode .rezept-einzeln small {
  color: #ccc;
}

/* Speziell für leeren Kommentarbereich */
.darkmode .kommentar-liste,
.darkmode .rezept-einzeln p:nth-of-type(1) {
  color: #ccc;
}

/* Optional: Für Links im Kommentarbereich */
.darkmode .rezept-einzeln a {
  color: #7dbbff;
}
.darkmode .rezept-einzeln a:hover {
  color: #aee0ff;
}
.kommentar-box {
  border: 1px solid #ccc;
  padding: 16px;
  margin: 30px 0;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.darkmode .kommentar-box {
  border-color: #444;
  background-color: #1e1e1e;
}

.kommentar-hinweis {
  color: #333;
}

.darkmode .kommentar-hinweis {
  color: #ccc;
}
.kommentar-box {
  border: 1px solid #ccc;
  padding: 16px;
  margin: 30px 0;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.darkmode .kommentar-box {
  border-color: #444;
  background-color: #1e1e1e;
}

.kommentar-hinweis {
  color: #333;
  font-size: 0.95em;
}

.darkmode .kommentar-hinweis {
  color: #ccc;
}

.kommentar-liste {
  list-style: none;
  padding-left: 0;
}

.kommentar-liste li {
  margin-bottom: 20px;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 10px;
}

.darkmode .kommentar-liste li {
  border-color: #555;
}

.zutaten-liste {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.zutaten-liste li {
  margin: 4px 0;
}

.zutaten-liste input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
  accent-color: #28a745; /* optional grün */
}

.footer {
  margin-top: 40px;
  padding: 20px 10px;
  text-align: center; /* <--- sorgt für Mitte */
  font-size: 0.85em;
  color: #666;
}

.footer p {
  margin: 5px 0;
}

.footer a {
  color: #666;
  text-decoration: none;
  margin: 0 5px;
}

.footer a:hover {
  text-decoration: underline;
}
.cookie-bar {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: #333;
  color: #fff;
  padding: 15px 20px;
  text-align: center;
  font-size: 0.9em;
  z-index: 9999;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  transition: bottom 0.5s ease;
}

.cookie-bar.show {
  bottom: 0;
}

.cookie-bar p {
  margin: 0;
  display: inline;
}

.cookie-bar a {
  color: #fff;
  text-decoration: underline;
  margin-left: 8px;
}

.cookie-bar button {
  background: #4caf50;
  border: none;
  color: white;
  margin-left: 15px;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.cookie-bar button:hover {
  background: #45a049;
}
.switch-dark {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

.switch-dark input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-dark {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 32px;
}

.slider-dark::before {
  position: absolute;
  content: "🌞";
  height: 26px; width: 26px;
  left: 4px; bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  font-size: 18px;
  line-height: 26px;
  text-align: center;
}

input:checked + .slider-dark {
  background-color: #444;
}

input:checked + .slider-dark::before {
  transform: translateX(28px);
  content: "🌙";
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 20px; /* vorher z. B. 12px */
  margin-top: -8px; /* hebt die Leiste insgesamt ein bisschen an */
  gap: 20px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info {
  font-size: 0.9em;
  color: #666;
}

.suchformular {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 15px auto 30px;
  max-width: 500px;
}

.suchfeld {
  padding: 6px 10px;
  font-size: 0.95rem;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 240px;
  box-sizing: border-box;
}

.such-button,
.reset-button {
  height: 32px;
  font-size: 0.95rem;
  padding: 0 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.such-button {
  background-color: #4caf50;
  color: white;
}

.such-button:hover {
  background-color: #3e9141;
}

.reset-button {
  background-color: #bbb;
  color: #222;
}

.reset-button:hover {
  background-color: #999;
}
.darkmode .suchfeld {
  background-color: #2a2a2a;
  color: #eee;
  border: 1px solid #555;
}

.darkmode .such-button {
  background-color: #66bb6a;
  color: #fff;
}

.darkmode .such-button:hover {
  background-color: #57a05b;
}

.darkmode .reset-button {
  background-color: #555;
  color: #eee;
}

.darkmode .reset-button:hover {
  background-color: #666;
}
/* 🔧 Finale Anpassung für Darkmode-Buttons */
.darkmode .such-button,
.darkmode .reset-button {
  height: 32px;
  padding: 0 14px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 6px;
  border: none;
  box-sizing: border-box;
}

/* 🟩 Such-Button-Stil im Darkmode */
.darkmode .such-button {
  background-color: #66bb6a;
  color: white;
}

.darkmode .such-button:hover {
  background-color: #57a05b;
}

/* 🟪 Zurücksetzen-Button im Darkmode */
.darkmode .reset-button {
  background-color: #555;
  color: #eee;
}

.darkmode .reset-button:hover {
  background-color: #666;
}
/* Container nebeneinander anzeigen */
.suchformular {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

/* Suchfeld verkleinern */
.suchformular .suchfeld {
  flex: 1 1 250px;
  max-width: 300px;
  height: 32px;
  padding: 0 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* Buttons in Linie */
.such-buttons {
  display: flex;
  gap: 10px;
}
.anzahl {
  font-size: 0.9em;
  color: #666;
  margin-left: 10px;
}
.darkmode .anzahl {
  color: #ccc;
}
.rezept-anzahl {
  font-size: 1rem;
  margin: 10px 0 20px;
  color: #444;
  text-align: center;
}

.darkmode .rezept-anzahl {
  color: #ccc;
}
.rezept-anzahl.info-box {
  text-align: center;
  font-size: 0.95rem;
  max-width: 600px;
  margin: 15px auto;
}
.rezept-info h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.rezept-info h3 a:hover {
  color: #ff5722; /* oder eine andere Akzentfarbe */
  text-decoration: underline;
}
/* === Zoom-Effekt für Bild === */
.rezept-karte img {
  transition: transform 0.3s ease;
}

.rezept-karte:hover img {
  transform: scale(1.05);
}

/* === Rezepttitel klickbar, zentriert aber linksbündig bei mehreren Zeilen === */
.rezept-info h3 {
  text-align: center;
  margin: 0.5em 0;
}

.rezept-info h3 a.rezept-titel-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  padding: 4px 8px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-radius: 6px;
  max-width: 100%;
  word-break: break-word;
  text-align: left; /* wichtig bei mehrzeiligen Titeln */
}

.rezept-info h3 a.rezept-titel-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(1.02);
}

/* Darkmode Hover */
.darkmode .rezept-info h3 a.rezept-titel-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.zeittext-box {
  border: 2px dashed #aaa;
  background-color: #f9f9f9;
  padding: 10px 15px;
  margin: 15px 0;
  border-radius: 8px;
  font-style: italic;
}
.darkmode .zeittext-box {
  background-color: #222;
  border-color: #555;
  color: #eee;
}
.portionen-rechner {
  margin: 10px 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portionen-rechner button {
  font-size: 20px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  border-radius: 4px;
  border: none;
  background: #eee;
}

.darkmode .portionen-rechner button {
  background: #444;
  color: #fff;
}
.rezept-block {
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  background-color: #fefefe;
}

.darkmode .rezept-block {
  border-color: #444;
  background-color: #1e1e1e;
}
.merkliste-link {
  font-weight: bold;
  color: #d12e6a;
  margin-left: 10px;
}

.merkliste-link:hover {
  text-decoration: underline;
  color: #b81e55;
}
.darkmode .merkliste-link {
  color: #ff7ca3;
}
#merkliste-button.aktiv {
  color: #e91e63; /* schickes Pink/Rot */
  font-weight: bold;
}

.darkmode #merkliste-button.aktiv {
  color: #ff85a2;
}
.merkliste-box {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 12px;
  background-color: #fff;
}

.darkmode .merkliste-box {
  border-color: #444;
  background-color: #1e1e1e;
}

.merk-rezept {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 10px;
}

.darkmode .merk-rezept {
  border-color: #555;
}

.merk-rezept img {
  max-width: 100px;
  border-radius: 8px;
}

.merk-text h3 {
  margin: 0 0 5px;
}

.merk-text button {
  background-color: #eee;
  border: 1px solid #ccc;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.darkmode .merk-text button {
  background-color: #333;
  color: #fff;
  border-color: #555;
}
.druck-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.druck-button:hover {
  background-color: #45a049;
}

@media print {
  body * {
    visibility: hidden;
  }
  .rezept-einzeln, .rezept-einzeln * {
    visibility: visible;
  }
  .rezept-einzeln {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .druck-button-wrap {
    display: none;
  }
}
.rezept-block-tools {
  text-align: right;
  margin-bottom: -10px;
}

.rezept-action-buttons {
  text-align: right;
  margin: 10px 0 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.rezept-action-buttons button {
  background-color: #eee;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.rezept-action-buttons button:hover {
  background-color: #ddd;
}

.darkmode .rezept-action-buttons button {
  background-color: #2b2b2b;
  border-color: #444;
  color: #eee;
}

.darkmode .rezept-action-buttons button:hover {
  background-color: #3a3a3a;
}
.rezept-infozeile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 15px 0 25px;
}

.infozeile {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.rezept-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rezept-action-buttons button {
  background-color: #eee;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.rezept-action-buttons button:hover {
  background-color: #ddd;
}

.darkmode .rezept-action-buttons button {
  background-color: #2b2b2b;
  border-color: #444;
  color: #eee;
}

.darkmode .rezept-action-buttons button:hover {
  background-color: #3a3a3a;
}

.rezept-einzeln .kategorien {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 10px !important;
}
.rezept-infozeile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 5px;
}

.infozeile {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.rezept-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap; /* wichtig: keine Umbrüche */
}
.infozeile {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.kategorien {
  margin-top: 2px !important;
  padding-top: 0 !important;
}

.rezept-infozeile {
  margin-bottom: 5px !important;
}

.rezept-einzeln h2 {
  margin-bottom: 8px !important;
}
.darkmode .pagination a {
  background: #2a2a2a;
  color: #eee;
}

.darkmode .pagination a.active {
  background: #4caf50;
  color: #fff;
}

/*
  © 2025 Maik Nohl
  Designed with ❤️ by Maiki
  www.deine-gravur.de
*/
