/* -----------------------------------------------------------------------------
   „Was suchst du?“ (inc/entdecken.php, K8) – schwebender Knopf unten links,
   Overlay mit dem Auswahl-Satz, dieselbe Auswahl oben auf /entdecken/.
   Kantig, Satoshi, Farben aus Design → Domains (--nl-*). Kein Rahmen rund.
   -------------------------------------------------------------------------- */

/* --- Der Knopf unten links (schwarz; der Spendenknopf sitzt rechts) -------- */
.nl-finden,
.nl-finden.nl-finden {
	position: fixed;
	left: var(--nl-schwebt-rand, 16px);
	bottom: var(--nl-schwebt-rand, 16px);
	z-index: 9000;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 18px;
	border: 0;
	border-radius: 0;
	background: var(--nl-tinte, #161616);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 16px rgba(0, 0, 0, .22);
	transition: background-color .15s ease, transform .15s ease;
}
.nl-finden.nl-finden:hover,
.nl-finden.nl-finden:focus-visible { background: #000; transform: translateY(-2px); }
.nl-finden:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.nl-finden__lupe { flex: 0 0 auto; }
/* Fußzeile im Bild → weicht nach unten aus, wie der Spendenknopf. */
.nl-finden.nl-finden.nl-finden--weg { transform: translateY(calc(100% + var(--nl-schwebt-rand, 16px) + 8px)); box-shadow: none; }
@media (max-width: 575.98px) {
	.nl-finden { padding: 13px; gap: 0; }
	.nl-finden__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* --- Das Overlay ---------------------------------------------------------- */
.nl-ent {
	position: fixed; inset: 0; z-index: 10000;
	display: flex; align-items: center; justify-content: center;
	padding: 24px;
}
.nl-ent[hidden] { display: none; }
.nl-ent__hinter { position: absolute; inset: 0; background: rgba(22, 22, 22, .72); }
.nl-ent__box {
	position: relative;
	width: min(760px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: #fff;
	color: var(--nl-tinte, #161616);
	padding: 48px 56px 44px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
/* Drei Klassen: das Kit färbt jeden <button> in Markenfarbe (.elementor-kit-X button). */
.nl-ent .nl-ent__box .nl-ent__zu {
	position: absolute; top: 12px; right: 12px;
	width: 44px; height: 44px; padding: 0; margin: 0;
	border: 0; border-radius: 0; background: transparent; color: var(--nl-tinte, #161616);
	font-size: 34px; font-weight: 400; line-height: 1; cursor: pointer; box-shadow: none;
}
.nl-ent .nl-ent__box .nl-ent__zu:hover, .nl-ent .nl-ent__box .nl-ent__zu:focus-visible { background: transparent; color: var(--nl-akzent); }
.nl-ent__rubrik { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--nl-akzent); }
.nl-ent__titel { margin: 0 0 10px; font-size: 44px; line-height: 1.05; letter-spacing: -.5px; font-weight: 700; color: var(--nl-tinte, #161616); }
.nl-ent__einleitung { margin: 0 0 28px; font-size: 18px; line-height: 1.5; color: var(--nl-grau); }
.nl-ent-offen, .nl-ent-offen body { overflow: hidden; }

/* --- Der Satz mit den drei Auswahlfeldern --------------------------------- */
.nl-ent__form { margin: 0; }
.nl-ent__satz {
	display: flex; flex-wrap: wrap; align-items: center;
	gap: 12px 14px;
	font-size: 26px; font-weight: 700; line-height: 1.2;
}
/* Wort und Feld bleiben zusammen, wenn der Satz umbricht („für“ nie allein am Zeilenende). */
.nl-ent__teil { display: inline-flex; align-items: center; gap: 12px 14px; max-width: 100%; }
.nl-ent__teil--weg { display: none; }
.nl-ent__wort { white-space: nowrap; }
.nl-ent__feld { position: relative; display: inline-block; max-width: 100%; vertical-align: middle; }
/* Das native <select>: 1 px Linie wie auf neues-leben.de (René: „Rahmen viel zu dick“),
   Text in Tinte, Spitze rechts. Am Desktop ersetzt entdecken.js es durch eine eigene
   Liste (unten); auf Touch-Geräten bleibt es – dort ist das Systemrad das bessere Menü. */
.nl-ent__select {
	appearance: none; -webkit-appearance: none;
	margin: 0;
	padding: 9px 44px 9px 16px;
	border: 1px solid var(--nl-linie, #d9d9d9);
	border-radius: 0;
	background: #fff;
	color: var(--nl-tinte, #161616);
	font: inherit;
	font-size: inherit; font-weight: 500; line-height: 1.25;
	max-width: 100%;
	cursor: pointer;
	transition: border-color .15s ease;
}
.nl-ent__select:hover { border-color: var(--nl-tinte, #161616); }
.nl-ent__select:focus-visible { outline: 2px solid var(--nl-akzent); outline-offset: 1px; }
.nl-ent__select option { font-weight: 500; color: var(--nl-tinte, #161616); }
.nl-ent__select option:disabled { color: #9a9a9a; }
.nl-ent__pfeil { position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); color: var(--nl-tinte, #161616); pointer-events: none; }
/* Ist die eigene Liste da, verschwindet das native Feld (bleibt für das Formular). */
.nl-ent__feld--eigen .nl-ent__select, .nl-ent__feld--eigen .nl-ent__pfeil { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* --- Die eigene Liste (Desktop): wie das Auswahlfeld der alten Website ---------
   Spitze links, Text daneben, 1 px Rahmen; die Liste öffnet als weißes Blatt mit
   dünnen Linien zwischen den Einträgen, beim Überfahren wird der Eintrag akzentfarben. */
.nl-ent__dd { position: relative; display: inline-block; max-width: 100%; }
.nl-ent__dd-knopf,
.nl-ent .nl-ent__dd-knopf {
	display: inline-flex; align-items: center; gap: 14px;
	margin: 0; padding: 9px 20px 9px 16px;
	border: 1px solid var(--nl-linie, #d9d9d9); border-radius: 0;
	background: #fff; color: var(--nl-tinte, #161616);
	font: inherit; font-size: inherit; font-weight: 500; line-height: 1.25; text-align: left;
	cursor: pointer; box-shadow: none; max-width: 100%;
	transition: border-color .15s ease;
}
.nl-ent .nl-ent__dd-knopf:hover, .nl-ent .nl-ent__dd-knopf[aria-expanded="true"] { border-color: var(--nl-tinte, #161616); background: #fff; color: var(--nl-tinte, #161616); }
.nl-ent .nl-ent__dd-knopf:focus-visible { outline: 2px solid var(--nl-akzent); outline-offset: 1px; }
.nl-ent__dd--gewaehlt .nl-ent__dd-knopf, .nl-ent .nl-ent__dd--gewaehlt .nl-ent__dd-knopf { font-weight: 700; }
.nl-ent__dd-spitze { flex: 0 0 auto; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.nl-ent__dd-knopf[aria-expanded="true"] .nl-ent__dd-spitze { transform: translateY(2px) rotate(225deg); }
.nl-ent__dd-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-ent__dd-liste {
	position: absolute; left: 0; top: calc(100% - 1px); z-index: 5;
	min-width: 100%; width: max-content; max-width: min(420px, 90vw); max-height: 60vh; overflow: auto;
	margin: 0; padding: 6px 0; list-style: none;
	background: #fff; border: 1px solid var(--nl-linie, #d9d9d9); box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
	font-size: 19px; font-weight: 400; line-height: 1.3;
}
.nl-ent__dd-liste[hidden] { display: none; }
.nl-ent__dd-eintrag { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin: 0 20px; padding: 13px 0; border-bottom: 1px solid var(--nl-linie, #d9d9d9); color: var(--nl-tinte, #161616); cursor: pointer; white-space: nowrap; }
.nl-ent__dd-eintrag:last-child { border-bottom: 0; }
.nl-ent__dd-eintrag:hover, .nl-ent__dd-eintrag:focus, .nl-ent__dd-eintrag.nl-ent__dd-eintrag--aktiv { color: var(--nl-akzent); outline: none; }
.nl-ent__dd-eintrag[aria-selected="true"] { font-weight: 700; }
.nl-ent__dd-eintrag[aria-disabled="true"] { color: #b0b0b0; cursor: default; }
.nl-ent__dd-zahl { font-size: 15px; color: var(--nl-grau); font-weight: 400; }
.nl-ent__dd-eintrag[aria-disabled="true"] .nl-ent__dd-zahl { color: #c4c4c4; }

/* --- Stichwort, Knopf, Zurücksetzen ---------------------------------------- */
.nl-ent__zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.nl-ent__stichwort { flex: 1 1 220px; display: block; }
.nl-ent__stichwort input {
	width: 100%; margin: 0;
	padding: 13px 16px;
	border: 1px solid var(--nl-linie, #d9d9d9); border-radius: 0;
	background: #fff; color: var(--nl-tinte, #161616);
	font: inherit; font-size: 17px; line-height: 1.2;
}
.nl-ent__stichwort input:focus-visible { outline: none; border-color: var(--nl-tinte, #161616); }
.nl-ent__stichwort input::-webkit-search-cancel-button { -webkit-appearance: none; }
.nl-ent__knopf,
.nl-ent__knopf.nl-ent__knopf {
	flex: 0 0 auto;
	margin: 0;
	padding: 15px 26px;
	border: 1px solid var(--nl-marke); border-radius: 0;
	background: var(--nl-marke); color: var(--nl-auf-marke, #fff);
	font: inherit; font-size: 17px; font-weight: 700; line-height: 1.2;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.nl-ent__knopf.nl-ent__knopf:hover, .nl-ent__knopf.nl-ent__knopf:focus-visible { background: var(--nl-marke-dunkel); border-color: var(--nl-marke-dunkel); color: var(--nl-auf-marke, #fff); }
.nl-ent__knopf.nl-ent__knopf:disabled { background: #f1f1f1; border-color: #f1f1f1; color: #8a8a8a; cursor: default; }
.nl-ent__reset,
.nl-ent__reset.nl-ent__reset { font-size: 15px; font-weight: 500; color: var(--nl-grau); text-decoration: underline; text-underline-offset: 3px; }
.nl-ent__reset.nl-ent__reset:hover { color: var(--nl-akzent); }
.nl-ent__reset[hidden] { display: none; }
.nl-ent__hinweis { margin: 14px 0 0; font-size: 16px; color: var(--nl-grau); }
.nl-ent__hinweis[hidden] { display: none; }
.nl-ent__hinweis a { color: var(--nl-akzent); }

/* --- Auf /entdecken/: die Auswahl oben, dann die Zahl, dann die Liste -------- */
.nl-ent__form--seite { padding: 0; }
.nl-ent__form--seite .nl-ent__satz { font-size: 24px; }
.nl-ent__anzahl { margin: 0 0 18px; font-size: 17px; color: var(--nl-grau); }
.nl-ent__anzahl strong { color: var(--nl-tinte, #161616); }

/* --- Handy: ein Blatt, ein Daumen ------------------------------------------ */
@media (max-width: 767px) {
	.nl-ent { padding: 0; align-items: stretch; }
	.nl-ent__box { width: 100%; max-height: none; padding: 64px 22px 32px; padding-top: calc(64px + env(safe-area-inset-top, 0px)); }
	.nl-ent__titel { font-size: 32px; }
	.nl-ent__einleitung { font-size: 16px; margin-bottom: 22px; }
	.nl-ent__satz, .nl-ent__form--seite .nl-ent__satz { font-size: 20px; gap: 10px; }
	.nl-ent__teil { display: block; width: 100%; }
	.nl-ent__feld { display: block; width: 100%; }
	.nl-ent__select { width: 100%; }
	.nl-ent__dd, .nl-ent__dd-knopf, .nl-ent .nl-ent__dd-knopf { width: 100%; }
	.nl-ent__knopf, .nl-ent__knopf.nl-ent__knopf { width: 100%; }
	.nl-ent__stichwort { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.nl-finden, .nl-ent__select, .nl-ent__knopf, .nl-ent__dd-knopf, .nl-ent__dd-spitze { transition: none; }
}
@media print { .nl-finden, .nl-ent { display: none !important; } }
.nl-ent__form--zaehlt .nl-ent__knopf { opacity: .75; }
