/* zollsoft.Media KI-Kennzeichnung – Frontend-Styles */

.zsmkik-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0;
}

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

.zsmkik-badge {
	position: absolute;
	display: inline-flex;
	align-items: center;
	z-index: 10;
	text-decoration: none;
	cursor: pointer;
	line-height: normal;
}

.zsmkik-badge:focus {
	outline: 2px solid var(--zsmkik-text, #fff);
	outline-offset: 2px;
}

.zsmkik-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	min-width: 22px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--zsmkik-bg, #1e1e1e);
	color: var(--zsmkik-text, #ffffff);
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: 700;
	font-size: 13px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.zsmkik-tooltip {
	display: inline-block;
	max-width: 0;
	overflow: hidden;
	white-space: nowrap;
	opacity: 0;
	padding: 0;
	border-radius: 4px;
	background: var(--zsmkik-bg, #1e1e1e);
	color: var(--zsmkik-text, #ffffff);
	font-size: 12px;
	line-height: 22px;
	transition: max-width 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}

.zsmkik-badge:hover .zsmkik-tooltip,
.zsmkik-badge:focus .zsmkik-tooltip,
.zsmkik-badge:focus-within .zsmkik-tooltip {
	max-width: 260px;
	opacity: 1;
	padding: 0 10px;
}

/* Positionierung */
.zsmkik-pos-top-left {
	top: 8px;
	left: 8px;
}
.zsmkik-pos-top-left .zsmkik-tooltip {
	margin-left: 6px;
}

.zsmkik-pos-top-right {
	top: 8px;
	right: 8px;
	flex-direction: row-reverse;
}
.zsmkik-pos-top-right .zsmkik-tooltip {
	margin-right: 6px;
}

.zsmkik-pos-bottom-left {
	bottom: 8px;
	left: 8px;
}
.zsmkik-pos-bottom-left .zsmkik-tooltip {
	margin-left: 6px;
}

.zsmkik-pos-bottom-right {
	bottom: 8px;
	right: 8px;
	flex-direction: row-reverse;
}
.zsmkik-pos-bottom-right .zsmkik-tooltip {
	margin-right: 6px;
}

.zsmkik-pos-middle-left {
	top: 50%;
	left: 8px;
	transform: translateY(-50%);
}
.zsmkik-pos-middle-left .zsmkik-tooltip {
	margin-left: 6px;
}

.zsmkik-pos-middle-right {
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	flex-direction: row-reverse;
}
.zsmkik-pos-middle-right .zsmkik-tooltip {
	margin-right: 6px;
}

@media (prefers-reduced-motion: reduce) {
	.zsmkik-tooltip {
		transition: none;
	}
}
