/* =========================================================
   BASIS: Reset & allgemeine Einstellungen
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html, body {
  height: 100%;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  background-color: #fff;
  color: #000;
}

body {
  margin: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out, opacity 0.5s ease-in-out;
  opacity: 1;
  overflow-x: hidden;
}

/* Einheitliches Erscheinungsbild für Formelemente */
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* =========================================================
   PAGE CONTAINER (äußerer Rahmen)
   ========================================================= */
.clPageContainer {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================================
   HAUPT-, DETAIL- und EDIT-CONTAINER (Grundlayout)
   ========================================================= */
.clMainContainer,
.clDetailContainer,
.clEditContainer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 80vw;
  height: 80vh;
  margin: auto;
  gap: 0;
  transition: all 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
}

.clMainContainer {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(3px);
}

.clDetailContainer,
.clEditContainer {
  display: none;             /* Anfangszustand: ausgeblendet */
  background-color: #ffffff; /* Voll deckend, kein Durchscheinen */
  backdrop-filter: none;
}

.clDetailContainer.is-visible,
.clEditContainer.is-visible {
  display: flex;
}

/* =========================================================
   MAIN CONTAINER (Suchbereich & Liste)
   ========================================================= */
.clTopContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f2f2f2;
	 margin-bottom: 0.75rem;   /* NEU: Abstand zwischen Suchfeld und Rezeptliste */

}

/* =========================================================
   LOGO – kompakt, unaufdringlich
   ========================================================= */
.clLogoBar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4rem 0.5rem 0.25rem;
}

.clLogoImage {
  height: 75px;          /* ← FIXE HÖHE, Schluss mit Raten */
  width: auto;           /* Seitenverhältnis bleibt korrekt */
  max-width: 100%;
  display: block;
}

/* Smartphone: volle Breite des Views */
@media (max-width: 600px) {
  .clLogoImage {
    height: 60px;        /* bewusst niedrig */
  }
}




.clSearchArea {
  display: flex;
  width: 100%;
  height: 2.5rem;
	border-radius: 4px;
}

.clSearchArea:focus-within {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.clSearchInput {
  flex: 1;
  border: 1px solid #ccc;
  border-right: none;
  padding: 0 0.75rem;
  font-size: 1rem;
  height: 100%;
}

.clSearchInput:focus {
  outline: none;
  box-shadow: none;
}

.clSearchIconButton:focus,
.clSearchIconButton:focus-visible {
  outline: none;
  box-shadow: none;
}

/* .clSearchButton {
  width: 2.5rem;
  background-color: #4CAF50;
  color: white;
  border: 1px solid #4CAF50;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.clSearchButton:hover { background-color: #43a047; } */

.clSearchButtons {
  display: flex;
  height: 100%;
  border: 1px solid #ccc;
  border-left: none;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.clSearchIconButton {
  width: 2.25rem;
  height: 100%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
}

.clSearchIconButton + .clSearchIconButton {
  border-left: 1px solid #eee;
}

.clSearchIconButton:hover {
  background: #f2f2f2;
  color: #000;
}

.clBottomContainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.clListContainer {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.clListItem {
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ddd;
  border-top: none;
  padding: 1rem;
  font-size: 1rem;
}
.clListItemActive {
  background-color: #e6f4ea;
  border-left: 4px solid #4CAF50;
}

/* Rechte Seite (Zeit + Aktionen) */
.clListRight {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;               /* Abstand zwischen Zeit und Buttons */
}

/* Button-Gruppe */
.clListActions {
  display: flex;
  gap: 0.35rem;              /* Abstand zwischen Buttons */
}

/* Einheitliche Icon-Buttons */
.clListActionButton {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 8px;
  background: #fff;
  color: rgba(0,0,0,0.70);

  cursor: pointer;
  padding: 0;
}

.clListActionButton i {
  font-size: 0.95rem;
}

/* Deaktiviert */
.clListActionButton:disabled {
  opacity: 0.35;
  cursor: default;
}

.clTaglineButton.clListActionButton:disabled {
  opacity: 1; /* überschreibt bewusst */
  background-color: rgba(0, 0, 0, 0.18);
  color: rgba(0, 0, 0, 0.45);
}


/* Delete rot (auch wenn disabled sichtbar rot) */
.clListActionDelete {
  color: #d32f2f;
  border-color: rgba(211, 47, 47, 0.35);
}

/* Optional: Hover nur für aktive Buttons */
.clListActionButton:not(:disabled):hover {
  border-color: rgba(0,0,0,0.35);
}


/* .clRecipeOwner { */
  /* flex: 0 0 auto; */
  /* width: 32px; */
  /* height: 32px; */
  /* border-radius: 50%; */
  /* background-color: #4CAF50; */
  /* color: #fff; */
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
  /* font-weight: bold; */
/* } */

.clOwnerCircle {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #4CAF50;  /* wird im JS dynamisch überschrieben */
}

.clRecipeOwner {
  color: #fff;                /* weiße Schrift */
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: none !important; /* kein eigener Hintergrund */
}

.clRecipeTitle {
  flex: 1;
  padding-left: 0.5rem;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clRecipeTime {
  flex: 0 0 auto;
  min-width: 3.5rem;
  text-align: right;
  color: #666;
  font-size: 0.9rem;
}

/* =========================================================
   DETAIL CONTAINER (Header – Content – Footer)
   ========================================================= */
.clDetailHeader {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;   /* <<< neu */
  align-items: center;
  background-color: #4CAF50;
  color: white;
  padding: 0.75rem 1rem;
  font-size: 1.2rem;
  font-weight: 500;
  gap: 1rem;                        /* etwas mehr Luft */
  z-index: 2;
}

/* Titel links, darf lang sein, aber nicht den Portions-Teil wegdrücken */
.clDetailTitle,
#idDetailTitle {
  flex: 1 1 auto;
  min-width: 0;                     /* wichtig für Ellipsis */
  text-align: left;                 /* <<< neu */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Portionen rechts, nie umbrechen */
.clDetailPortions {
  flex: 0 0 auto;
  white-space: nowrap;
}


.clDetailHeaderButton {
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}
.clDetailHeaderButton:hover { color: #c8e6c9; }

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

.clIngredientList li {
  margin: 0.15rem 0;
}

/* Inhalt */
.clDetailContent {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
  background-color: #fafafa;
  color: #333;
}

/* Footer (Teil des Flexlayouts, kein fixed) */
.clDetailFooter {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  border-top: 1px solid #ddd;
  background-color: #fff;
  padding: 1rem 0;
	z-index: 2;
}

/* OK-Button */
.clDetailButton {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  /* font-size: 1rem; */
	font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.clDetailButton:hover { background-color: #43a047; }

/* =========================================================
   EDIT CONTAINER
   ========================================================= */
.clEditTabs {
  display: flex;
  justify-content: space-evenly;
  background-color: #4CAF50;
  color: white;
}

.clEditTab {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0;
  cursor: pointer;
  font-weight: 500;
  background-color: #4CAF50;   /* Basiston */
  color: white;
	line-height: 1.4; 	
	font-size: 1.1rem;
  transition: background-color 0.2s ease;
}
.clEditTab:hover { background-color: #43a047; }
.clEditTabActive { background-color: #388e3c; }

.clEditContent {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.clEditTextarea {
  resize: none;                 /* kein manuelles Ziehen */
  overflow: hidden;             /* keine internen Scrollbalken */
  min-height: 2.5rem;           /* Grundhöhe */
  transition: height 0.15s ease-out;
}

.clEditLabel {
  display: block;
  font-weight: 500;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: #333;
}

.clEditInput,
.clEditTextarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.clEditInput:focus,
.clEditTextarea:focus {
  border-color: #4CAF50;
  outline: none;
  box-shadow: 0 0 2px rgba(76, 175, 80, 0.6);
}

.clFieldRow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem; /* Abstand zur vorherigen Gruppe */
}

/* Label in der Zeile ohne zusätzlichen Außenabstand */
.clFieldRow .clEditLabel {
  margin: 0;
  white-space: nowrap;
}

.clInputSmall {
  width: 6ch;
  text-align: right;
  padding: 0.25rem 0.4rem;  /* nur leichtes Padding */
  line-height: 1.2;
  box-sizing: content-box;
  position: relative;
}

/* Einheit „min“ dezenter */
.clUnit {
	margin-left: 0.25rem;
  color: #666;
}

/* Abstand zwischen Zeile (Spinner) und dem Textbereich darunter */
.clFieldGroup .clEditTextarea {
  margin-top: 0.5rem;
}

.clEditButton {
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  cursor: pointer;
}
.clEditButtonCancel {
  background-color: #ccc;
  color: #333;
}
.clEditButtonCancel:hover { background-color: #b3b3b3; }
.clEditButtonSave {
  background-color: #4CAF50;
  color: white;
}
.clEditButtonSave:hover { background-color: #43a047; }

/* =========================================================
   RESPONSIVE: Smartphone (<= 600px)
   ========================================================= */
@media (max-width: 600px) {

  html, body {
    height: 100%;
    min-height: 100vh;
  }

  .clPageContainer {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Alle Haupt-Container auf volle Viewportgröße */
  .clMainContainer,
  .clDetailContainer,
  .clEditContainer {
    width: 100vw;
    height: 100vh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  /* Hauptcontainer ohne Innenabstand */
  .clMainContainer {
    padding: 0;
  }

  /* Detailcontainer: Footer unten durch Flex-Verteilung */
  .clDetailContainer {
    justify-content: space-between;
  }

  /* Footer bündig unten, Button volle Breite */
  /* .clDetailFooter { */
    /* display: flex !important; */
		/* padding: 0; */
  /* } */
	
	.clDetailFooter {
		display: flex;
		align-items: stretch;         /* Button füllt Footer vertikal aus */
		justify-content: center;
		padding: 0;                   /* kein eigenes Padding */
		background-color: #4CAF50;   /* optional: gleiche Farbe wie Header */
		border-top: none;            /* keine helle Linie mehr */
	}
	
  /* .clDetailButton { */
    /* width: 100%; */
    /* border-radius: 0; */
    /* padding: 1rem 0; */
    /* font-size: 1.1rem; */
  /* } */

	.clDetailButton {
		flex: 1;
		border: none;
		border-radius: 0;
		padding: 0.75rem 0;           /* gleiches vertikales Padding */
		font-size: 1.1rem;
		background-color: transparent; /* kein zusätzliches Grün-Layer */
		color: white;
		text-align: center;
	}

	.clDetailButton:hover {
		background-color: #43a047;
	}
  /* Header-Button (Pfeil) auf Mobile ausblenden */
  .clDetailHeaderButton {
    display: none;
  }

	/* .clEditFooter { */
		/* padding: 0; */
		/* gap: 0; */
		/* display: flex;            /* sicherstellen */ */
	/* } */
	
	/* .clEditFooter .clEditButton { */
		/* flex: 1 0 50%; */
		/* width: auto;              /* Flex regelt die Breite */ */
		/* border-radius: 0; */
		/* padding: 0.75rem 0; */
		/* font-size: 1.1rem; */
	/* }	 */
}

.clDetailBlock {
  margin-top: 1rem;        /* Abstand zum vorherigen Abschnitt */
}

.clDetailBlock:first-child {
  margin-top: 0;           /* oberster Block kein zusätzlicher Abstand */
}

.clDetailBlock h3 {
  margin-bottom: 0.5rem;   /* Luft zwischen Überschrift und Text */
  font-size: 1.1rem;
  font-weight: 600;
}

.clDetailBlock p,
.clDetailBlock ul {
  margin-top: 0;           /* Text schließt sauber an Überschrift an */
}

  .clEditContent {
    min-height: 0; /* erlaubt dynamisches Wachsen/Shrinken innerhalb des Flexcontainers */
  }
	
.clSystemToast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(76, 175, 80, 0.9); /* Standard: Erfolg (grün) */
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.clSystemToast.is-visible {
  opacity: 1;
}

/* Variante: Fehlermeldung */
.clSystemToastError {
  background-color: rgba(220, 53, 69, 0.9); /* rot */
}

/* =========================================================
   ZUTATEN-EINGABE (Edit-Tab)
   ========================================================= */
.clIngredientContainer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.5rem;
}

.clIngredientRow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clIngredientRow input,
.clIngredientRow select {
  padding: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.clIngredientQty {
  width: 6ch;
  text-align: right;
}

.clIngredientUnit {
  width: 6rem;
}

.clIngredientName {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding-right: 0.25rem;	
}

.clIngredientDelete {
  background: none;
  border: none;
  color: #c00;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 6px;
  transition: color 0.2s;
}

.clIngredientDelete:hover {
  color: #f33;
}

	/* =========================================================
		 TAGS: Kategorien-Layout (Container, Titel, Zeilen)
		 ========================================================= */

	.clTagsContainer {
		display: flex;
		flex-direction: column;
		gap: 0.9rem;
	}

	/* einzelner Kategorie-Block */
	.clTagsCategory {
		border: 1px solid #e1e3e6;
		background: #fafafa;
		border-radius: 8px;
		padding: 0.6rem 0.6rem 0.75rem 0.6rem;

		/* Neu: Mobile → jede Kategorie volle Breite (eigene Zeile) */
		width: 100%;
		box-sizing: border-box;
		flex: 0 0 auto; /* nicht schrumpfen */
	}

	/* Kopfzeile der Kategorie */
	.clTagsCategoryTitle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: .5rem;
		margin-bottom: 0.5rem;
	}

	.clTagsCategoryName {
		font-weight: 600;
		color: #333;
	}

	/* Zeilen-Container: wrappt automatisch in neue Zeilen */
	.clTagsRow {
		display: flex;
		flex-wrap: wrap;
		gap: 0.6rem;
	}

	/* Dichte auf Mobil etwas erhöhen */
	@media (max-width: 600px) {
		.clTagsContainer { gap: 0.75rem; }
		.clTagsCategory  { padding: 0.5rem; }
		.clTagsRow       { gap: 0.5rem; }
	}

	/* Desktop: Kategorien nebeneinander; umbrechen, wenn keine ganze Kategorie mehr reinpasst */
	@media (min-width: 900px) {
		.clTagsContainer {
			flex-direction: row;  /* horizontal anordnen */
			flex-wrap: wrap;      /* in neue Zeile umbrechen, wenn voll */
			align-items: flex-start;
		}

		.clTagsCategory {
			width: auto;          /* so breit wie Inhalt + Padding/Rand */
			max-width: 100%;      /* trotzdem nie über Container hinaus */
			/* Abstand zwischen Kategorien kommt über das gap des Containers */
		}
	}
	
/* =========================================================
   TAG-BUTTONS (Power-Button-Optik - klassische Schreibweise)
   ========================================================= */

.clTag {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.15;
  padding: 0.6rem;
  color: #8b8f94; /* blasse graue Schrift für AUS */
  background: radial-gradient(120% 120% at 30% 25%, #efefef, #dedfe1 36%, #d2d4d6 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.75),
    0 2px 6px rgba(0,0,0,0.12);
  cursor: pointer;
  user-select: none;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: none;
  transition: color 0.15s ease, text-shadow 0.15s ease, box-shadow 0.2s ease;
}

/* hauchdünner Innenkreis - AUS (mittelgrau) */
.clTag::after {
  content: "";
  position: absolute;
  inset: 8px; /* Abstand zum Außenrand */
  border: 1.5px solid #9fa4aa; /* mittleres Grau */
  border-radius: 50%;
  pointer-events: none;
}

/* Fokusrahmen für Tastatursteuerung */
.clTag:focus-visible {
  outline: 2px solid rgba(0,0,0,0.15);
  outline-offset: 2px;
}

/* ---------------------------------------------------------
   EIN-Zustand: leicht versenkt + Text/Innenkreis leuchten
   --------------------------------------------------------- */
.clTag.is-active {
  box-shadow:
    inset 0 3px 8px rgba(0,0,0,0.22),
    0 0 0 rgba(0,0,0,0);
  color: #2fbf49; /* aktives Grün */
  text-shadow:
    0 0 2px rgba(47,191,73,0.55),
    0 0 6px rgba(47,191,73,0.40),
    0 0 12px rgba(47,191,73,0.30);
}

/* Innenkreis leuchtet grün */
.clTag.is-active::after {
  border-color: #2fbf49;
  box-shadow:
    0 0 4px rgba(47,191,73,0.45),
    0 0 10px rgba(47,191,73,0.30);
}

/* kleiner Klick-Feedback */
.clTag:active {
  transform: translateY(0.5px);
}

/* =========================================================
   TAGS im DETAIL-CONTAINER – kompakt, runde Optik
   ========================================================= */
.clDetailTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;           /* Abstand zwischen den Knöpfen */
  margin-top: 0.6rem;
}

.clDetailTags .clTag {
  width: 70px;           /* kleiner als im Edit-Tab */
  height: 70px;
  border-radius: 50%;
  padding: 0.4rem;
  font-size: 0.9rem;
  color: #2fbf49;        /* aktives Grün */
  background: radial-gradient(120% 120% at 30% 25%, #f4f4f4, #e2e3e4 36%, #d2d4d6 100%);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.15),
    0 1px 2px rgba(255,255,255,0.5);
  text-shadow:
    0 0 2px rgba(47,191,73,0.55),
    0 0 6px rgba(47,191,73,0.4);
  cursor: default;
  pointer-events: none;
  user-select: none;
  line-height: 1.2;
}

/* dünner grüner Innenring */
.clDetailTags .clTag::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px solid #2fbf49;
  border-radius: 50%;
  box-shadow:
    0 0 4px rgba(47,191,73,0.35),
    0 0 8px rgba(47,191,73,0.25);
}

/* =========================================================
   TAGLINE (Vergleichstext zwischen Logo und Suche)
   ========================================================= */
.clTaglineBar {
  width: 100%;
  display: flex;
  justify-content: center;     /* Desktop: zentriert */
  min-height: 44px;
  align-items: center;		
}

.clTaglineInner {
  width: 100%;
  max-width: none;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 0.55rem;

  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.68);
	  height: 100%;
}


.clTaglineRight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;       /* Buttons werden nie gequetscht */
}




.clTagWord {
	display: inline-flex;
  align-items: center;
  white-space: nowrap;
  
}

.clTagInitial {
  font-size: 1.55em;         /* wie bisher „großer erster Buchstabe“ */
  font-weight: 500;          /* NICHT zu fett */
  color: rgba(56, 142, 60, 0.92);
  cursor: pointer;           /* zeigt: hier kann man drücken */
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.clTagRest {
  font-weight: 600;          /* Rest normal */
  color: rgba(0,0,0,0.70);
}

.clTagInitial,
.clTagRest {
  line-height: 1;
  display: inline-block;
}

/* Smartphone: volle Breite */
@media (max-width: 600px) {
  .clTaglineBar {
    padding: 0 8px;       /* <-- neu: seitlicher Abstand im Smartphone-Mode */
		margin: 0;
  }

  .clTaglineInner {
    max-width: none;
    width: 100%;
    justify-content: space-between; /* wirkt „breiter“ auf mobile */
    text-align: left;
		align-items: center;   /* falls noch nicht explizit gesetzt */
    padding-left: 0;
    padding-right: 0;		
  }

	/* >>> HIER NEU EINFÜGEN <<< */
	.clListItem {
		padding-left: 8px;
		padding-right: 8px;
	}
}	
	
}

/* =========================================================
   EDIT: Delete-Button
   ========================================================= */
.clEditButtonDelete {
  background-color: #e53935;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.clEditButtonDelete:hover { background-color: #d32f2f; }

/* Basis: Footer */
.clEditFooter {
  display: flex;
  align-items: stretch;
  border-top: 1px solid #ddd;
  background-color: #fff;
}

/* Desktop: Abbrechen – Löschen – Speichern zentriert */
@media (min-width: 601px) {
  .clEditFooter {
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
  }
}

  .clEditFooter .clEditButton {
    flex: 0 0 200px;
    width: 200px;
    text-align: center;
  }

/* Mobile: über volle Breite verteilt, Delete klein */
@media (max-width: 600px) {
  .clEditFooter {
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .clEditFooter .clEditButton {
    flex: 0 0 auto;
    width: auto;
    border-radius: 0;
    padding: 0.75rem 0;
    font-size: 1.1rem;
  }

  #idEditCancel,
  #idEditSave {
    flex: 1 1 0;
  }

  #idEditDelete {
    flex: 0 0 auto;
    width: 52px;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Einheitliche Icon-Buttons – klarer Button-Look */
.clListActionButton {
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;
  border: 1px solid #cfcfcf;
  background-color: #f3f3f3;

  color: #333;
  padding: 0;
  cursor: pointer;
}

/* Icon etwas ruhiger */
.clListActionButton i {
  font-size: 0.95rem;
}

/* Hover nur für aktive Buttons */
.clListActionButton:not(:disabled):hover {
  background-color: #e6e6e6;
}

/* Disabled-Buttons klar erkennbar */
.clListActionButton:disabled {
  opacity: 0.45;
  cursor: default;
}

/* DELETE: aktiv */
.clListActionDelete {
  background-color: #e53935;
  border-color: #e53935;
  color: #ffffff;     /* Icon weiß */
}

/* DELETE: deaktiviert → blasser */
.clListActionDelete:disabled {
  background-color: #f2a6a4;   /* blasses Rot */
  border-color: #f2a6a4;
  color: #ffffff;
  opacity: 0.7;                /* zusätzlich etwas zurückgenommen */
  cursor: default;
}

/* DELETE: Hover nur wenn aktiv */
.clListActionDelete:not(:disabled):hover {
  background-color: #d32f2f;
}

/* =========================================================
   AUTH DIALOG
   ========================================================= */

.clAuthDialog {
  border: none;
  padding: 0;
  border-radius: 10px;

  width: min(560px, 92vw);
  max-height: 80vh;

  /* zentrieren */
  margin: auto;

  /* wirkt wie eure Container */
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.clAuthDialog::backdrop {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.clAuthDialogInner {
  padding: 1.25rem 1.25rem 1rem;
}

.clAuthTitle {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
}

/* mehr Luft zwischen den Feldern (eure .clEditLabel hat schon margin-top) */
.clAuthDialog .clEditLabel {
  margin-top: 0.9rem;
}

.clAuthError {
  margin-top: 0.9rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(211, 47, 47, 0.35);
  background: rgba(211, 47, 47, 0.08);
  color: #b71c1c;
}

.clAuthButtons {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

/* mobile: Buttons wie bei euch oft "breiter" */
@media (max-width: 600px) {
  .clAuthDialog {
    width: min(520px, 96vw);
  }

  .clAuthButtons {
    justify-content: space-between;
  }

  .clAuthButtons .clEditButton {
    flex: 1 1 auto;
  }
}

/* .clEditTabContent#idEditTabIngredients > .clEditLabel { */
	/* margin-top: 0; */
/* } */

/* .clEditTabContent#idEditTabIngredients > #idRecipeTitle { */
	/* margin-bottom: 1.5rem; */
/* } */

/* Detail-Header Meta (View) */
/* .clDetailHeaderMeta { */
  /* margin-top: 0.35rem; */
  /* font-size: 0.95rem; */
  /* opacity: 0.9; */
/* } */

.clDetailMetaLabel {
  margin-right: 0.35rem;
  font-weight: 600;
}

.clDetailMetaValue {
  font-weight: 600;
}

/* =========================================================
   REZEPTTITEL + PORTIONEN (Edit-Ansicht)
   ========================================================= */

.clRecipeTitleRow {
	display: flex;
	align-items: flex-end;
	gap: 1rem;
	margin-bottom: 1.2rem;
}

.clRecipeTitleMain {
	flex: 1 1 auto;
}

.clRecipePortions {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
}

.clPortionsInput {
	width: 4.5rem;        /* reicht für zweistellig + Spinner */
	padding-right: 0.2rem;
	text-align: center;
}