/**
 * Startseite-Glossar (UID 1 only via TypoScript)
 * Dezente gestrichelte Unterlinie + kleiner Hover-Tooltip (weiß, dünner Rand).
 */
.ten-gloss {
	position: relative;
	display: inline;
	border-bottom: 1px dashed rgba(0, 0, 0, 0.42);
	cursor: help;
	text-decoration: none;
	/* keep line-height of surrounding text */
	padding-bottom: 1px;
}

.ten-gloss__tip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 7px);
	transform: translateX(-50%);
	z-index: 80;
	box-sizing: border-box;
	min-width: 0;
	max-width: 260px;
	padding: 5px 9px;
	background: #fff;
	border: 1px solid #111;
	border-radius: 2px;
	color: #111;
	font-family: Arial, Helvetica, "Helvetica Neue", sans-serif;
	font-size: 12px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.35;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	white-space: normal;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.12s ease, visibility 0.12s ease;
}

/* kleiner Pfeil nach unten */
.ten-gloss__tip::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	margin-left: -5px;
	border: 5px solid transparent;
	border-top-color: #111;
}

.ten-gloss:hover .ten-gloss__tip,
.ten-gloss:focus .ten-gloss__tip,
.ten-gloss:focus-within .ten-gloss__tip,
.ten-gloss.is-open .ten-gloss__tip {
	opacity: 1;
	visibility: visible;
}

.ten-gloss:focus {
	outline: 1px dotted rgba(0, 0, 0, 0.45);
	outline-offset: 2px;
}

/* Randfälle: Tooltip nicht links/rechts abschneiden */
.ten-gloss--tip-left .ten-gloss__tip {
	left: 0;
	transform: none;
}
.ten-gloss--tip-left .ten-gloss__tip::after {
	left: 16px;
	margin-left: 0;
}
.ten-gloss--tip-right .ten-gloss__tip {
	left: auto;
	right: 0;
	transform: none;
}
.ten-gloss--tip-right .ten-gloss__tip::after {
	left: auto;
	right: 12px;
	margin-left: 0;
}

@media (max-width: 720px) {
	.ten-gloss__tip {
		max-width: 220px;
		font-size: 11px;
	}
}
