/* Rezeptsuche (lcb-rezeptsuche). Handy zuerst. Farben aus dem Theme (Astra global color 0 = #ca5d2b), für Text und Flächen mit Schrift
   abgedunkelt auf #a84a1f (Kontrast 5,7:1 auf Weiß). Schrift erbt vom Theme. */
.rs {
	--rs-akzent: #a84a1f;
	--rs-akzent-hell: #fbeee6;
	--rs-text: #3d3936;
	--rs-text-2: #6b6461;
	--rs-linie: #e4ddd8;
	--rs-flaeche: #ffffff;
	--rs-grund: #f8f5f4;
	--rs-fokus: #1f5fbf;
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 16px 40px;
	color: var(--rs-text);
	box-sizing: border-box;
}
.rs *, .rs *::before, .rs *::after { box-sizing: border-box; }
.rs-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rs-nurjs { display: none !important; }
.rs-js .rs-nurjs { display: flex !important; }
.rs-js .rs-nurjs[hidden], .rs [hidden] { display: none !important; }
.rs-js .rs-ohnejs { display: none; }
/* Index konnte nicht geladen werden: zurück auf den Weg ohne JavaScript (Formular mit ?q=, A-Z-Liste), Knöpfe ohne Wirkung ausblenden. */
.rs-js .rs--ohne-index .rs-nurjs { display: none !important; }
.rs-js .rs--ohne-index .rs-ohnejs { display: block; }
/* Das Theme setzt Knöpfe in Großbuchstaben mit Sperrung; in der Suche normale Schreibweise. */
.rs button, .rs select, .rs input { text-transform: none; letter-spacing: normal; font-family: inherit; }

.rs-h1 { font-size: 22px; line-height: 1.2; margin: 0 0 10px; color: var(--rs-text); font-weight: 700; }

/* Suchfeld */
.rs-form { position: relative; margin: 0 0 10px; }
.rs-feld { display: flex; align-items: center; gap: 0; background: var(--rs-flaeche); border: 2px solid var(--rs-linie); border-radius: 12px; padding: 0 4px 0 12px; min-height: 52px; }
.rs-feld:focus-within { border-color: var(--rs-akzent); }
.rs-feld__lupe { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--rs-text-2); stroke-width: 2.2; stroke-linecap: round; }
.rs .rs-feld input[type="search"] {
	flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; box-shadow: none;
	font-size: 16px; line-height: 1.3; padding: 12px 8px; margin: 0; color: var(--rs-text); height: auto; border-radius: 0;
	-webkit-appearance: none; appearance: none;
}
.rs .rs-feld input::placeholder { color: var(--rs-text-2); opacity: 1; } /* #6b6461 = 5,8:1 auf Weiß */
.rs .rs-feld input::-webkit-search-cancel-button { -webkit-appearance: none; }
.rs .rs-los {
	flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--rs-akzent); color: #fff;
	font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; margin: 0;
}
.rs .rs-los:hover { background: #8f3e19; }

/* Zutat-Vorschläge unter dem Feld */
.rs-vorschlaege { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rs .rs-vorschlag {
	min-height: 44px; padding: 0 14px; border: 1px dashed var(--rs-akzent); border-radius: 22px; background: var(--rs-flaeche);
	color: var(--rs-akzent); font-size: 15px; font-weight: 600; cursor: pointer; margin: 0;
}
.rs-vorschlag__art { font-weight: 400; color: var(--rs-text-2); font-size: 13px; }

/* Chips */
.rs-filter { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 8px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rs-filter::-webkit-scrollbar { display: none; }
.rs .rs-chip {
	flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; margin: 0;
	border: 1px solid var(--rs-linie); border-radius: 22px; background: var(--rs-flaeche); color: var(--rs-text);
	font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer;
}
.rs .rs-chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.rs .rs-chip:hover { border-color: var(--rs-akzent); color: var(--rs-text); background: var(--rs-flaeche); }
.rs .rs-chip[aria-pressed="true"], .rs .rs-chip[aria-expanded="true"] { background: var(--rs-akzent); border-color: var(--rs-akzent); color: #fff; }
.rs .rs-chip--zutaten { border-color: var(--rs-akzent); color: var(--rs-akzent); font-weight: 600; }
.rs .rs-chip--zutat { background: var(--rs-akzent-hell); border-color: var(--rs-akzent); color: var(--rs-text); font-weight: 600; }
.rs .rs-chip--zutat span { font-size: 20px; line-height: 1; color: var(--rs-akzent); }
.rs .rs-chip--klein { min-height: 44px; font-size: 14px; padding: 0 12px; }
.rs-zutaten { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.rs-panel { flex-direction: column; background: var(--rs-grund); border-radius: 12px; padding: 12px; margin: 0 0 10px; }
.rs-panel__text { margin: 0 0 8px; font-size: 14px; color: var(--rs-text-2); }
.rs-panel__chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Leiste: Anzahl, Sortierung, Zurücksetzen */
.rs-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 2px 0 10px; }
.rs-zahl { margin: 0; font-size: 15px; font-weight: 600; flex: 1 1 auto; }
.rs-sortierung { align-items: center; gap: 6px; font-size: 14px; color: var(--rs-text-2); }
.rs-sortierung label { margin: 0; }
.rs .rs-sortierung select {
	font-size: 16px; min-height: 44px; padding: 0 30px 0 10px; border: 1px solid var(--rs-linie); border-radius: 10px; color: var(--rs-text);
	background: var(--rs-flaeche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b6461' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center / 12px 8px;
	-webkit-appearance: none; appearance: none; width: auto; margin: 0; line-height: 1.2;
}
.rs .rs-linkknopf {
	background: none; border: 0; padding: 0 2px; margin: 0; min-height: 44px; font: inherit; font-size: 15px; color: var(--rs-akzent);
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center;
}
.rs-hinweis { margin: 0 0 10px; font-size: 15px; }
.rs .rs-hinweis .rs-linkknopf { font-weight: 700; min-height: 44px; display: inline-flex; vertical-align: middle; } /* Tippziel 44 px */
.rs-ratgeber { background: var(--rs-grund); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; }
.rs-ratgeber__titel { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; color: var(--rs-text-2); }
.rs-ratgeber ul { list-style: none; margin: 0; padding: 0; }
.rs-ratgeber a { display: block; padding: 10px 0; color: var(--rs-akzent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Karten */
.rs-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 12px; align-content: start; } /* Mindesthöhe (rs.js) streckt die Zeilen nicht */
.rs--raster .rs-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-karte { margin: 0; min-width: 0; }
.rs .rs-karte__link { display: flex; flex-direction: column; height: 100%; color: var(--rs-text); text-decoration: none; border-radius: 12px; }
.rs-karte__bild { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #ece6e2; }
.rs-karte__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rs-karte__zt { position: absolute; left: 6px; bottom: 6px; background: rgba(255, 255, 255, .94); color: var(--rs-text); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 10px; }
.rs-karte__text { display: flex; flex-direction: column; gap: 4px; padding: 7px 2px 0; }
.rs-karte__titel {
	font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--rs-text);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal;
}
.rs .rs-karte__link:hover .rs-karte__titel { color: var(--rs-akzent); text-decoration: underline; text-underline-offset: 2px; }
.rs-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; line-height: 1.35; color: var(--rs-text-2); }
.rs-meta > span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.rs-meta svg { width: 14px; height: 14px; flex: none; }
.rs-meta__zeit svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.rs-meta__sterne svg { fill: #c98a12; }
.rs-meta__kh { font-weight: 600; color: var(--rs-text); }
.rs-meta__anzahl { color: var(--rs-text-2); }
.rs-liste--ersatz { opacity: .96; }

/* Listenform: Bild links */
.rs--liste .rs-liste { grid-template-columns: 1fr; gap: 10px; }
.rs--liste .rs-karte__link { flex-direction: row; gap: 12px; align-items: flex-start; }
.rs--liste .rs-karte__bild { flex: none; width: 116px; }
.rs--liste .rs-karte__text { padding: 2px 0 0; flex: 1 1 auto; min-width: 0; }
.rs--liste .rs-karte__titel { font-size: 16px; }

.rs .rs-mehr {
	margin: 20px auto 0; min-height: 48px; padding: 0 22px; border: 2px solid var(--rs-akzent); border-radius: 24px;
	background: var(--rs-flaeche); color: var(--rs-akzent); font-size: 16px; font-weight: 700; cursor: pointer; justify-content: center; align-items: center;
}
.rs .rs-mehr:hover { background: var(--rs-akzent); color: #fff; }
.rs-ohnejs { text-align: center; margin: 20px 0 0; }
.rs-ohnejs a { color: var(--rs-akzent); font-weight: 600; }

/* Fokus sichtbar (Tastatur) */
.rs a:focus-visible, .rs button:focus-visible, .rs select:focus-visible, .rs input:focus-visible {
	outline: 3px solid var(--rs-fokus); outline-offset: 2px;
}
.rs .rs-feld input:focus-visible { outline: 0; }
.rs .rs-feld:has(input:focus-visible) { outline: 3px solid var(--rs-fokus); outline-offset: 2px; }

@media (min-width: 600px) {
	.rs { padding-top: 20px; }
	.rs-h1 { font-size: 28px; }
	.rs--raster .rs-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
	.rs--liste .rs-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
	.rs-filter { flex-wrap: wrap; overflow: visible; margin: 0 0 10px; padding: 2px 0 0; }
}
@media (min-width: 1000px) {
	.rs--raster .rs-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.rs--liste .rs-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rs-form { max-width: 720px; }
}
@media (prefers-reduced-motion: no-preference) {
	.rs .rs-chip, .rs .rs-mehr, .rs-karte__titel { transition: background-color .15s, color .15s, border-color .15s; }
}
