/* Z32 Lupe und Schnellsuche (Manfred 18.11.2026 beauftragt, Entwurf 17.11., Möglichkeit A René 18.11.), Schalter lupe.
   Handy: Lupe im Kopf neben dem Telefon (fehlte dort). Rechner: die vorhandene Lupe oben öffnet ein klares Suchfeld
   statt des kleinen Fensters „Objektnr. z.B. TF29“. Beide Seiten gleich.
   Knöpfe nach der Gestaltungsregel 2.7: „Suchen“ Hauptaktion (gefüllt, 8 px), Lupe wie das Telefon (Stufe 2),
   „Zur ausführlichen Suche“ leise (unterstrichen). Hintergrund wie beim Filterfenster (helles Glas). */

/* bisheriges Fenster der Schnellsuche nicht mehr öffnen */
.neu-lupe-an #quicksearch { display: none !important; }

/* Handy: Telefon und Lupe als Paar rechts neben dem Menü, gleiche Form, 8 px Abstand: [Telefon][Lupe][Menü].
   Bisher steht das Telefon absolut (Bündel: right 70px, ab 400 px calc(50% - 40px) bzw. bei TFH calc(50% - 65px)).
   Ab 400 px rückte es zur Mitte und berührte dann mit der Lupe daneben das TFH-Logo; deshalb jetzt auf allen Breiten
   fest rechts: Lupe dort, wo bisher das Telefon auf kleinen Handys stand, Telefon links daneben (FHC 44 px, TFH 47 px breit). */
.neu-lupe-an .navbar-header .navbar-contact.neu-lupe-knopf { right: 70px; }
.neu-lupe-an .navbar-header .navbar-contact:not(.neu-lupe-knopf) { right: 122px; }
.neu-lupe-an.neu-lupe-tfh .navbar-header .navbar-contact:not(.neu-lupe-knopf) { right: 125px; }

.neu-lupe-glas {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 1045;
	background-color: rgba(236, 244, 250, .35);
	-webkit-backdrop-filter: blur(7px) saturate(1.15);
	backdrop-filter: blur(7px) saturate(1.15);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.neu-lupe-glas { background-color: rgba(236, 244, 250, .82); }
}

.neu-lupe {
	--lupe-haupt: #0b6fa4;
	--lupe-text: #12324a;
	--lupe-leise: #5f6b76;
	position: fixed;
	z-index: 1046;
	top: 0;
	left: 0;
	right: 0;
	padding: 14px 16px 18px;
	background: #fff;
	color: var(--lupe-text);
	border-radius: 0 0 12px 12px;
	box-shadow: 0 18px 50px rgba(16, 42, 67, .28), 0 2px 8px rgba(16, 42, 67, .12);
	font-size: 15px;
	line-height: 1.4;
	text-align: left;
}
@media (min-width: 768px) {
	.neu-lupe {
		right: auto;
		width: 440px;
		padding: 16px 20px 20px;
		border-radius: 12px;
	}
}
.neu-lupe[hidden], .neu-lupe-glas[hidden] { display: none; }

.neu-lupe-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	font-size: 17px;
	font-weight: 600;
}
.neu-lupe-zu {
	width: 40px;
	height: 40px;
	margin: -8px -10px -8px 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--lupe-leise);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.neu-lupe-zu:hover { color: var(--lupe-text); }

.neu-lupe-zeile { display: flex; }
.neu-lupe-feld {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	margin: 0 8px 0 0;
	padding: 0 14px;
	border: 1px solid #b8c4ce;
	border-radius: 8px;
	background: #fff;
	color: var(--lupe-text);
	font-size: 16px; /* ab 16 px vergrößert das iPhone beim Antippen nicht */
	-webkit-appearance: none;
	appearance: none;
}
.neu-lupe-feld::placeholder { color: #7b8794; opacity: 1; }
.neu-lupe-feld:focus {
	border-color: var(--lupe-haupt);
	outline: 2px solid var(--lupe-haupt);
	outline-offset: 0;
}
.neu-lupe-suchen {
	flex: 0 0 auto;
	height: 48px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: var(--lupe-haupt);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}
.neu-lupe-suchen:hover { background: #095a86; }
.neu-lupe-suchen .fa { margin-right: 6px; }

.neu-lupe-hinweis {
	margin: 10px 0 0;
	color: var(--lupe-leise);
	font-size: 14px;
	line-height: 1.45;
}
.neu-lupe-mehr {
	display: inline-block;
	margin-top: 10px;
	color: var(--lupe-text);
	font-size: 14px;
	text-decoration: underline;
}
.neu-lupe-mehr:hover { color: var(--lupe-haupt); }

@media (prefers-reduced-motion: no-preference) {
	.neu-lupe { animation: neu-lupe-ein .16s ease-out; }
	@keyframes neu-lupe-ein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
