/* Suchseite (Child-Theme Setwood). Lädt nur auf der Suchseite.
   Mobile-first: Grundwerte gelten fürs Handy, ab 768 px kommen die Desktop-Ergänzungen dazu. */

/* ── Grundwerte (Handy) ─────────────────────────────────────────────────── */

.kwm-suche { padding-left: 16px; padding-right: 16px; }

.kwm-suche-kopf { text-align: center; margin: 0 0 1.5em; }
.kwm-suche-kopf .page-title { margin: 0 0 .2em; }
.kwm-suche-sub { margin: 0; color: #777; font-size: .95em; }
.kwm-suche-sub a { text-decoration: none; }

.kwm-suche-feld { margin: 1em auto 0; }
.kwm-suche-feld form { display: flex; gap: .5em; }
.kwm-suche-feld label, .kwm-suche-feld .search-field, .kwm-suche-feld input[type="search"] { flex: 1; min-width: 0; }
.kwm-suche-feld input[type="search"] { width: 100%; }

.kwm-suche-hinweis { background: #f6f6f6; padding: .8em 1em; font-size: .9em; margin: 0 0 1.5em; }

.kwm-suche-gruppe { margin: 0 0 1.6em; }
.kwm-suche-gkopf { display: flex; align-items: baseline; gap: .6em; border-bottom: 2px solid #2b2b2b; padding-bottom: .35em; margin: 0 0 .25em; }
.kwm-suche-gkopf h2 { font-size: 1.1em; margin: 0; }
.kwm-suche-anzahl { color: #777; font-size: .9em; }
.kwm-suche-alle { margin-left: auto; font-size: .8em; font-weight: 600; white-space: nowrap; text-decoration: none; }

.kwm-suche-zeile { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; padding: 9px 0; margin: 0; border-bottom: 1px solid #e6e6e6; }
.kwm-suche-zeile:last-of-type { border-bottom: 0; }
.kwm-suche-bild, .kwm-suche-bild img, .kwm-suche-bild-leer { display: block; width: 58px; height: 58px; }
.kwm-suche-bild img { object-fit: cover; border-radius: 3px; }
.kwm-suche-bild-leer { background: #eee; border-radius: 3px; }
.kwm-suche-text { min-width: 0; }
.kwm-suche-h3 { font-size: .98em; line-height: 1.3; margin: 0; }
.kwm-suche-h3 a { text-decoration: none; }
.kwm-suche-auszug { margin: .15em 0 0; color: #555; font-size: .85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwm-suche-meta { font-size: .78em; color: #777; }

.kwm-suche-restzeile { margin: .6em 0 0; font-size: .95em; line-height: 1.9; }
.kwm-suche-restzeile a { white-space: nowrap; text-decoration: none; }

.kwm-suche-seiten { margin: 1.5em 0 0; text-align: center; }
.kwm-suche-seiten .page-numbers { display: inline-block; min-width: 2.2em; padding: .3em .5em; margin: 0 .15em; border: 1px solid #d5d5d5; text-decoration: none; }
.kwm-suche-seiten .page-numbers.current { background: #2b2b2b; color: #fff; border-color: #2b2b2b; }

/* „alle x zeigen“ unter einem Länderblock */
.kwm-suche-mehr { text-align: center; margin: .7em 0 0; font-size: .9em; }
.kwm-suche-mehr a { text-decoration: none; font-weight: 600; }

/* ── Ab Tablet/Desktop ──────────────────────────────────────────────────── */

@media (min-width: 768px) {
	.kwm-suche { max-width: 900px; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; }
	.kwm-suche-kopf { margin-bottom: 2em; }
	.kwm-suche-feld { max-width: 520px; }
	.kwm-suche-gruppe { margin-bottom: 2em; }
	.kwm-suche-gkopf h2 { font-size: 1.25em; }
	.kwm-suche-alle { font-size: .85em; }
	.kwm-suche-zeile { grid-template-columns: 70px 1fr; gap: 14px; padding: 10px 0; }
	.kwm-suche-bild, .kwm-suche-bild img, .kwm-suche-bild-leer { width: 70px; height: 70px; }
	.kwm-suche-h3 { font-size: 1.05em; }
	.kwm-suche-auszug { font-size: .9em; }
}

/* „Meintest du …?“ bei Tippfehlern */
.kwm-suche-meintest { font-size: 1.05em; }
.kwm-suche-meintest a { font-weight: 600; }
