/*
 * STB – Satz-Filter (Shortcode [stb_satzfilter]) · STB Design 4, 06.10.2026
 * Weiße, runde Satzleiste im Hero: Text und Auswahlfelder als Pillen, Knopf daneben. px, weil das Theme 1rem = 10px setzt.
 * Rückbau: siehe stb-satzfilter.php.
 */
.stb-satzfilter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	max-width: 980px;
	margin: 26px auto 0;
	padding: 14px 14px 14px 26px;
	border-radius: 28px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 18px 40px -22px rgba(6, 47, 64, .55);
	color: var(--stb-tiefsee, #062f40);
	text-align: left;
}
.stb-satzfilter p { margin: 0 !important; }
.stb-sf-satz {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	flex: 1 1 520px;
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 19px;
	line-height: 1.3;
	color: var(--stb-tiefsee, #062f40) !important;
}
.stb-sf-wort { white-space: nowrap; }
.stb-sf-feld { display: inline-block; margin: 0; }
.stb-satzfilter select {
	-webkit-appearance: none;
	appearance: none;
	min-height: 44px;
	margin: 0;
	padding: 8px 38px 8px 16px;
	border: 2px solid rgba(10, 75, 100, .18);
	border-radius: 999px;
	background: #f5f2ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a4b64' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--stb-petrol, #0a4b64);
	font: 700 17px/1.2 Montserrat, sans-serif;
	cursor: pointer;
	max-width: 100%;
}
.stb-satzfilter select:hover { border-color: var(--stb-lagune, #1fa3a0); }
.stb-satzfilter select:focus-visible { outline: 3px solid var(--stb-lagune, #1fa3a0); outline-offset: 2px; }
.stb-sf-aktion { flex: 0 0 auto; }
.stb-satzfilter .stb-sf-knopf { min-height: 50px; border: 0; cursor: pointer; white-space: nowrap; }
.stb-satzfilter .stb-sf-knopf:disabled { opacity: .55; cursor: not-allowed; }
.stb-satzfilter .stb-sf-knopf:disabled::after { content: none; }

@media (max-width: 767px) {
	.stb-satzfilter { padding: 18px 16px; border-radius: 22px; gap: 14px; }
	.stb-sf-satz { flex-basis: 100%; font-size: 17px; }
	.stb-sf-feld, .stb-satzfilter select { width: 100%; }
	.stb-sf-aktion, .stb-satzfilter .stb-sf-knopf { width: 100%; }
}

/* Mikrozeile und Privat-Link unter dem Filter (Startseite 2) */
.stb-hero-mikro { margin-top: 18px !important; font-size: 15px; font-weight: 600; color: #fff; }
.stb-hero-privat a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.stb-hero-privat a:hover { color: var(--stb-lagune-hell, #7fd8d3) !important; }

/* Fokus sichtbar (Theme setzt outline:none), Titel im Kopf mit Filter kompakter, damit Mikrozeile und Privat-Link über der festen Hinweisleiste stehen (Test T-D4, 06.10.2026) */
.stb-satzfilter select:focus-visible, .stb-satzfilter .stb-sf-knopf:focus-visible { outline: 3px solid var(--stb-lagune, #1fa3a0) !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px rgba(255,255,255,.9) !important; }
.stb-hero:has(.stb-satzfilter) h1, section:has(.stb-satzfilter) h1 { font-size: clamp(34px, 3.6vw, 54px) !important; line-height: 1.08 !important; }
.stb-hero-mikro { margin-bottom: 4px !important; }

/* P8c (STB Bauplan 18, 07.10.2026, Daniel: „sieht verschoben aus“): Satz mit drei Auswahlfeldern in einer Reihe,
   Filter darf breiter als die Textspalte werden, Knopf mit Trefferzahl darunter, linksbündig.
   Rückbau: diesen Abschnitt löschen (Sicherung stb-satzfilter.css.bak-vor-p8c-20261007). */
@media (min-width: 768px) {
	.stb-satzfilter {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		width: max-content;
		max-width: min(1120px, calc(100vw - 48px));
		margin-left: 0;
		margin-right: 0;
		padding: 18px 24px 20px 26px;
		gap: 16px;
	}
	.stb-sf-satz { flex: 0 1 auto; }
	.stb-sf-aktion { align-self: flex-start; }
}
@media (min-width: 1200px) {
	.stb-sf-satz { flex-wrap: nowrap; }
}
