/*
 * Website-Suche: Suchfeld mit Vorschlägen und Ergebnisseite.
 * Kacheln kommen aus eco-werbeartikel/assets/werbeartikel.css (.eco-wa-…), hier nur Feld, Vorschlagsliste und Gruppen.
 * Farben und Schriften aus den globalen Elementor-Werten, Fallbacks = Prototyp-Werte.
 * Ausnahme nach BRIEFING.md 1.5/9: Plugin-Markup braucht eigenes Layout-CSS.
 */
.eco-su {
	--eco-su-gruen: var(--e-global-color-primary, #005035);
	--eco-su-text: var(--e-global-color-text, #333);
	--eco-su-schwarz: var(--e-global-color-accent, #161616);
	--eco-su-papier: var(--e-global-color-81a420d, #F8F3EF);
	--eco-su-kachel: var(--e-global-color-eco0kch, #ECE4DC);
	--eco-su-soft: var(--e-global-color-eco0gsf, #E3ECE4);
	--eco-su-gedaempft: var(--e-global-color-eco0gdm, #6B6560);
	position: relative;
	font-family: var(--e-global-typography-text-font-family, sans-serif);
	color: var(--eco-su-text);
}
.eco-su *, .eco-su *::before, .eco-su *::after { box-sizing: border-box; }
.eco-su :focus-visible { outline: 3px solid var(--eco-su-gruen); outline-offset: 2px; }
.eco-su-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Feld: Aussehen wie die Suche im Stanley/Stella-Katalog (eco-ss-katalog/assets/katalog.css, .eco-ss-filterleiste/.eco-ss-suche):
   weiße Leiste, darin ein Papier-Feld mit grauer Lupe links, grüner Ring beim Fokus. */
.eco-su .eco-su-form { position: relative; display: flex; align-items: stretch; width: 100%; padding: 6px; border-radius: 16px; background: #fff; }
.eco-su .eco-su-form[hidden] { display: none; }
.eco-su .eco-su-form > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--eco-su-gedaempft); pointer-events: none; }
body .eco-su .eco-su-form input.eco-su-eingabe[type="search"] { /* stärker als die Formularfeld-Stile des Kits */
	flex: 1; width: 100%; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 8px 14px 8px 38px;
	border: 0; border-radius: 11px; background: var(--eco-su-papier); color: var(--eco-su-schwarz); box-shadow: none;
	font: inherit; font-size: 1.1rem; line-height: 1.5; -webkit-appearance: none; appearance: none;
}
body .eco-su .eco-su-form input.eco-su-eingabe[type="search"]:focus, body .eco-su .eco-su-form input.eco-su-eingabe[type="search"]:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--eco-su-gruen); }
.eco-su .eco-su-eingabe::placeholder { color: var(--eco-su-gedaempft); opacity: 1; }
.eco-su .eco-su-eingabe::-webkit-search-cancel-button { display: none; }
/* Absenden per Enter, der Button bleibt nur für Screenreader und Tastatur erreichbar */
.eco-su .eco-su-los { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.eco-su .eco-su-los:focus-visible { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: auto; height: auto; margin: 0; padding: 4px 10px; clip: auto; border-radius: 8px; background: var(--eco-su-gruen); color: #fff; }

/* Lupe im Header: wie ein Menüpunkt des Hauptmenüs (Nav-Menü-Widget: 6 px oben/unten, Zeilenhöhe 1,3 bei 17 px,
   26 px Abstand, Zeiger „Unterstreichen“ 2 px grün). Keine Fläche beim Hover, sondern dieselbe Unterstreichung. */
.eco-su-lupe { display: inline-flex; align-items: center; }
body .eco-su .eco-su-auf, body .eco-su .eco-su-auf:hover, body .eco-su .eco-su-auf:focus, body .eco-su .eco-su-auf:active {
	position: relative; display: inline-flex; align-items: center; justify-content: center; width: auto; height: auto; min-height: 0;
	padding: 6px 0; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--eco-su-gruen); box-shadow: none; cursor: pointer; line-height: 1;
}
body .eco-su .eco-su-auf svg { width: 22px; height: 22px; display: block; }
body .eco-su .eco-su-auf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--eco-su-gruen); opacity: 0; transition: opacity .2s; }
body .eco-su .eco-su-auf:hover::after, body .eco-su .eco-su-auf[aria-expanded="true"]::after { opacity: 1; }
body .eco-su .eco-su-auf:focus-visible { outline: 3px solid var(--eco-su-gruen); outline-offset: 4px; }
.eco-su-lupe .eco-su-form { position: absolute; right: 0; top: calc(100% + 10px); width: min(440px, calc(100vw - 32px)); z-index: 1000; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); }

/* Vorschlagsliste */
.eco-su .eco-su-liste {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1001; max-height: min(70vh, 560px); overflow-y: auto;
	padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .16); text-align: left;
}
.eco-su-lupe .eco-su-liste { top: calc(100% + 6px); }
.eco-su .eco-su-liste[hidden] { display: none; }
.eco-su .eco-su-vg { margin: 8px 10px 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--eco-su-gedaempft); }
.eco-su .eco-su-v { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 10px; border-radius: 12px; color: var(--eco-su-schwarz); text-decoration: none; line-height: 1.25; }
.eco-su .eco-su-v[aria-selected="true"], .eco-su .eco-su-v:hover { background: var(--eco-su-soft); color: var(--eco-su-schwarz); }
.eco-su .eco-su-v-bild { width: 48px; height: 48px; border-radius: 10px; background: var(--eco-su-kachel); display: grid; place-items: center; overflow: hidden; }
.eco-su .eco-su-v-bild img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.eco-su .eco-su-v-text { min-width: 0; }
.eco-su .eco-su-v-text b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eco-su .eco-su-v-text span { font-size: .85rem; color: var(--eco-su-gedaempft); }
.eco-su .eco-su-v-alle { display: block; margin-top: 6px; padding: 10px; border-radius: 12px; text-align: center; font-weight: 600; color: var(--eco-su-gruen); text-decoration: none; border-top: 1px solid var(--eco-su-kachel); }
.eco-su .eco-su-v-alle[aria-selected="true"], .eco-su .eco-su-v-alle:hover { background: var(--eco-su-soft); }
.eco-su .eco-su-v-leer { margin: 8px 10px; color: var(--eco-su-gedaempft); }

/* Ergebnisseite */
.eco-su-ergebnisse .eco-su-oben { max-width: 640px; margin: 0 auto; }
.eco-su-ergebnisse .eco-su-zeile { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; align-items: baseline; margin: 18px 0 8px; }
.eco-su-ergebnisse .eco-su-zurueck { color: var(--eco-wa-gruen); }
.eco-su-ergebnisse .eco-su-gruppe { margin-top: 36px; }
.eco-su-ergebnisse .eco-su-gtitel {
	display: flex; gap: 10px; align-items: baseline; margin: 0 0 16px; color: var(--eco-wa-gruen);
	font-family: var(--eco-wa-anzeige); font-size: 1.9rem; font-weight: var(--e-global-typography-eco0rtr-font-weight, 500); line-height: 1.1; text-transform: uppercase;
}
.eco-su-ergebnisse .eco-su-seiten { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.eco-su-ergebnisse .eco-su-seiten a { display: grid; gap: 4px; padding: 14px 18px; border-radius: 16px; background: var(--eco-wa-kachel); color: var(--eco-wa-text); text-decoration: none; }
.eco-su-ergebnisse .eco-su-seiten a:hover { outline: 3px solid var(--eco-wa-linie); outline-offset: -3px; }
.eco-su-ergebnisse .eco-su-seiten b { color: var(--eco-wa-schwarz); font-weight: 600; }
.eco-su-ergebnisse .eco-su-seiten span { color: var(--eco-wa-gedaempft); }
.eco-su-ergebnisse .eco-su-leer { margin-top: 18px; }
.eco-su-ergebnisse .eco-su-leer p { margin: 0 auto; max-width: 560px; }
.eco-su-ergebnisse .eco-su-wege { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px !important; }
