/* =========================================================
   Aubacke Blog Filter Widget
   Alle Regeln strikt unter .aub-bf gescopet –
   keine globalen Tag-Overrides, kein Bleed in BeTheme/Elementor.
   ========================================================= */

.aub-bf {
	--aub-bf-accent: #0495DD;
	--aub-bf-title:  #091F55;
	--aub-bf-text:   #42526B;
	--aub-bf-rule:   #D6E8F7;

	font-family: inherit;
	color: var(--aub-bf-text);
	line-height: 1.6;
}

.aub-bf *,
.aub-bf *::before,
.aub-bf *::after {
	box-sizing: border-box;
}

/* ---------- Filter-Chips ---------- */

.aub-bf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 40px;
}

.aub-bf-chip {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent;
	color: var(--aub-bf-title);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 9px 15px;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}

.aub-bf-chip:hover {
	background: var(--aub-bf-rule);
}

.aub-bf-chip.is-active {
	background: var(--aub-bf-accent);
	color: #fff;
}

.aub-bf-chip:focus-visible {
	outline: 2px solid var(--aub-bf-accent);
	outline-offset: 2px;
}

/* ---------- Liste ---------- */

.aub-bf-list {
	display: flex;
	flex-direction: column;
}

.aub-bf-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 24px 48px;
	padding: 40px 0;
	border-top: 1px solid var(--aub-bf-rule);
}

.aub-bf-item:first-child {
	border-top: 0;
	padding-top: 0;
}

.aub-bf-item.aub-bf-hidden {
	display: none;
}

/* sanftes Einblenden nach dem Filtern */
.aub-bf-item.aub-bf-reveal {
	animation: aub-bf-fade .28s ease both;
}

@keyframes aub-bf-fade {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.aub-bf-item.aub-bf-reveal {
		animation: none;
	}
	.aub-bf-chip {
		transition: none;
	}
}

/* ---------- Linke Spalte: Inhalt ---------- */

.aub-bf-eyebrow {
	display: inline-block;
	color: var(--aub-bf-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	border-left: 2px solid var(--aub-bf-accent);
	padding-left: 10px;
	margin-bottom: 14px;
}

.aub-bf-title {
	margin: 0 0 14px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--aub-bf-title);
}

.aub-bf-title a {
	color: inherit;
	text-decoration: none;
	border-bottom: 0;
}

.aub-bf-title a:hover {
	color: var(--aub-bf-accent);
}

.aub-bf-excerpt {
	margin: 0 0 18px;
	font-size: 15px;
	color: var(--aub-bf-text);
	max-width: 62ch;
}

.aub-bf-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--aub-bf-title);
	text-decoration: none;
	border-bottom: 0;
}

.aub-bf-more:hover {
	color: var(--aub-bf-accent);
}

.aub-bf-chevron {
	transition: transform .18s ease;
}

.aub-bf-more:hover .aub-bf-chevron {
	transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
	.aub-bf-chevron,
	.aub-bf-more:hover .aub-bf-chevron {
		transition: none;
		transform: none;
	}
}

/* ---------- Rechte Spalte: Meta ---------- */

.aub-bf-meta {
	display: flex;
	flex-direction: column;
	gap: 16px;
	border-left: 1px solid var(--aub-bf-rule);
	padding-left: 20px;
}

.aub-bf-date {
	font-size: 13px;
	color: var(--aub-bf-text);
}

.aub-bf-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.aub-bf .aub-bf-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.aub-bf-author-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--aub-bf-title);
	line-height: 1.35;
}

/* ---------- Leer / keine Treffer ---------- */

.aub-bf-empty,
.aub-bf-noresults {
	padding: 24px 0;
	font-size: 15px;
	color: var(--aub-bf-text);
}

/* ---------- Responsiv ---------- */

@media (max-width: 767px) {
	.aub-bf-item {
		grid-template-columns: minmax(0, 1fr);
		padding: 28px 0;
	}

	.aub-bf-meta {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		border-left: 0;
		padding-left: 0;
		border-top: 1px dashed var(--aub-bf-rule);
		padding-top: 14px;
	}

	.aub-bf-title {
		font-size: 21px;
	}

	.aub-bf-chips {
		margin-bottom: 28px;
	}
}
