/* Suchformular (Shortcode [eb_suche], Menue-Overlay, 404, Suchergebnisse) */
.eb-search { width: 100%; max-width: 640px; margin: 0; text-shadow: none; }
.eb-search * { text-shadow: none; }
.eb-search__label {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.eb-search__field {
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	padding: 6px 6px 6px 16px;
	border: 1px solid #C9DCE5;
	border-radius: 14px;
	background: #FFFFFF;
	color: #0B1F33;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.eb-search__field:focus-within { border-color: #1D5E8A; box-shadow: 0 0 0 3px rgba(29, 94, 138, 0.22); }
.eb-search .eb-search__icon { flex: 0 0 auto; width: 20px; height: 20px; color: #1D5E8A; }
.eb-search .eb-search__input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 4px;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	outline: none;
	color: inherit;
	font-family: var(--eb-font-body, Inter, system-ui, sans-serif);
	font-size: 1rem;
	line-height: 1.3;
	-webkit-appearance: none;
	appearance: none;
}
.eb-search .eb-search__input::placeholder { color: #5A7385; opacity: 1; }
.eb-search .eb-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.eb-search .eb-search__btn {
	flex: 0 0 auto;
	margin: 0;
	padding: 11px 20px;
	border: 0;
	border-radius: 10px;
	background: #1D5E8A;
	color: #FFFFFF;
	font-family: var(--eb-font-body, Inter, system-ui, sans-serif);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.eb-search .eb-search__btn:hover,
.eb-search .eb-search__btn:focus-visible { background: #0B1F33; color: #FFFFFF; }
.eb-search .eb-search__btn:focus-visible { outline: 2px solid #1D5E8A; outline-offset: 2px; }

/* dunkle Flaechen */
.eb-search--dark .eb-search__field {
	border-color: rgba(63, 209, 199, 0.4);
	background: rgba(247, 251, 252, 0.06);
	color: #F7FBFC;
}
.eb-search--dark .eb-search__field:focus-within { border-color: #3FD1C7; box-shadow: 0 0 0 3px rgba(63, 209, 199, 0.25); }
.eb-search--dark .eb-search__icon { color: #3FD1C7; }
.eb-search--dark .eb-search__input::placeholder { color: rgba(247, 251, 252, 0.6); }
.eb-search--dark .eb-search__btn { background: #3FD1C7; color: #0B1F33; }
.eb-search--dark .eb-search__btn:hover,
.eb-search--dark .eb-search__btn:focus-visible { background: #F7FBFC; color: #0B1F33; }
.eb-search--dark .eb-search__btn:focus-visible { outline-color: #3FD1C7; }

/* Seitenvariante: groesser */
.eb-search--page { max-width: 720px; }
.eb-search--page .eb-search__field { padding: 8px 8px 8px 20px; border-radius: 16px; }
.eb-search--page .eb-search__input { font-size: 1.1rem; padding: 12px 4px; }
.eb-search--page .eb-search__btn { padding: 14px 26px; font-size: 0.98rem; }

/* im Menue-Overlay: in der Kopfzeile zwischen Marke und Schliessen-Taste */
.eb-oc__top .eb-search--oc { flex: 1 1 340px; max-width: 460px; margin: 0 auto; }
.eb-oc__top .eb-search--oc .eb-search__field { padding: 4px 4px 4px 14px; }
.eb-oc__top .eb-search--oc .eb-search__input { padding: 8px 4px; font-size: 0.95rem; }
.eb-oc__top .eb-search--oc .eb-search__btn { padding: 9px 16px; font-size: 0.85rem; }
/* Bis 900 px: Marke | Sprachschalter | Schliessen-Taste in einer Zeile (Schliessen immer oben rechts), Suche darunter.
   Wird es zu schmal (bis 520 px), wandert der Sprachschalter neben die Suche in die zweite Zeile. */
@media (max-width: 900px) {
	.eb-overlay .eb-oc__top {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto auto;
		grid-template-areas: "brand lang close" "search search search";
		align-items: center;
		column-gap: 12px;
		row-gap: 18px;
	}
	.eb-overlay .eb-oc__top .eb-oc__brand { grid-area: brand; justify-self: start; min-width: 0; }
	.eb-overlay .eb-oc__top .eb-lang--oc { grid-area: lang; justify-self: end; margin: 0; }
	.eb-overlay .eb-oc__top .eb-oc__close { grid-area: close; justify-self: end; }
	.eb-overlay .eb-oc__top .eb-search--oc { grid-area: search; width: auto; max-width: none; margin: 0; order: 0; }
}
@media (max-width: 520px) {
	.eb-overlay .eb-oc__top {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "brand close" "search lang";
	}
}
/* Sehr schmale Handys: Marke etwas kleiner (damit die Schliessen-Taste nichts ueberdeckt), Sprachschalter in eigener Zeile */
@media (max-width: 380px) {
	.eb-overlay .eb-oc__top {
		grid-template-areas: "brand close" "search search" "lang lang";
		row-gap: 14px;
	}
	.eb-overlay .eb-oc__top .eb-lang--oc { justify-self: start; }
	.eb-overlay .eb-oc__top .eb-oc__brand { gap: 0.4rem; }
	.eb-overlay .eb-oc__top .eb-oc__brand-text { font-size: 1.1rem; }
	.eb-overlay .eb-oc__top .eb-oc__brand svg { width: 34px; height: 34px; flex: 0 0 auto; }
}

/* Desktop: Suchfeld oben ueber den beiden Themenspalten rechts (gleiche Spaltenaufteilung wie .eb-oc__nav), Schliessen-Taste ganz rechts */
@media (min-width: 1025px) {
	.eb-oc__top {
		display: grid;
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		column-gap: clamp(72px, 8vw, 128px);
		align-items: center;
	}
	.eb-oc__top .eb-oc__brand { grid-area: 1 / 1; justify-self: start; }
	.eb-oc__top .eb-search--oc { grid-area: 1 / 2; width: auto; max-width: none; margin: 0 84px 0 0; }
	.eb-oc__top .eb-oc__close { grid-area: 1 / 2; justify-self: end; }
}

/* Trefferseite */
.eb-search-meta { margin: 0 0 4px; }
.eb-search-hit-url { word-break: break-all; }

@media (prefers-reduced-motion: reduce) {
	.eb-search__field, .eb-search .eb-search__btn { transition: none; }
}

/* Suchergebnisse: Blaettern nur zeigen, wenn es die jeweilige Richtung gibt (keine "Vorherige" auf Seite 1, kein "Weitere Treffer" auf der letzten Seite) */
nav.e-pagination-base .e-pagination-prev-base.e--disabled,
nav.e-pagination-base .e-pagination-next-base.e--disabled { display: none !important; }
nav.e-pagination-base .e-pagination-next-base { margin-inline-start: auto; }
nav.e-pagination-base:not(:has(a:not(.e--disabled))) { display: none; }