/**
 * HPM AI Badge — dezentes „AI"-Badge unten links im Bild.
 * Wrapper übernimmt exakt die Bildmaße, Badge liegt IM Bild → nie abgeschnitten.
 */

.hpm-ai-badge-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
	margin: 0;
	line-height: 0;
}

.hpm-ai-badge-wrap img {
	display: block;
	max-width: 100%;
	height: auto;
}

.hpm-ai-badge {
	position: absolute;
	left: 8px;
	bottom: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #ffffff;
	font-family: Barlow, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
	/* Rein informativ — Klicks gehen ungehindert aufs Bild/den Link darunter. */
	pointer-events: none;
	user-select: none;
}

/* Elementor-HINTERGRUNDBILDER: kein <img> vorhanden, daher Badge als ::after
   direkt auf dem Element (Klasse setzt PHP über elementor/frontend/before_render). */
.hpm-ai-bg {
	position: relative;
}

.hpm-ai-bg::after {
	content: "AI";
	position: absolute;
	left: 8px;
	bottom: 8px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #ffffff;
	font-family: Barlow, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
	pointer-events: none;
	user-select: none;
}

/* Elementor Posts-/Loop-Karten positionieren das Beitragsbild absolut in einer
   Ratio-Box. Der Wrapper muss diese Box füllen, sonst kollabiert er auf 0×0
   und Bild + Badge verschwinden (Übernahme des bewährten Fixes aus EU AI Label). */
.elementor-post__thumbnail > .hpm-ai-badge-wrap {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
}
