/*
 * en2x Inhaltsanker („Auf einen Blick") – structural, instance-independent
 * styles.
 *
 * Light box: title on top, then a bullet-less list of in-page jump links with
 * subtle dividers and an arrow icon on the right. No instance colours (uses the
 * design tokens). The side gutter is the shared token so it aligns to the
 * hero/container edge like the sibling article modules and works in any column.
 * Font inherited (Rubik).
 */

.en2x-inhaltsanker {
	/* Self-brought side gutter (same mechanism as the sibling modules) + bottom
	 * rhythm. Fluid width, so it fills any column correctly. The background colour
	 * is applied inline per instance (scoped to the unique id). */
	margin: 0 var(--en2x-side-gutter, 20px) 32px;
	padding: 32px;
	font-family: inherit;
}

.en2x-inhaltsanker__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--en2x-color-headline, #250F51);
}

/* Bullet-less list (also neutralise a theme-injected <li> ::before bullet). */
.en2x-inhaltsanker__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.en2x-inhaltsanker__item {
	list-style: none;
}

.en2x-inhaltsanker__item::before {
	display: none;
	content: none;
}

/* Each entry: a flex row with the label left and the arrow right, divider on top
 * (incl. under the title); the last entry closes with a bottom divider. */
.en2x-inhaltsanker__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid rgba(37, 15, 81, 0.12);
	color: var(--en2x-color-headline, #250F51);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: color 0.15s ease;
}

.en2x-inhaltsanker__item:last-child .en2x-inhaltsanker__link {
	border-bottom: 1px solid rgba(37, 15, 81, 0.12);
}

.en2x-inhaltsanker__link:hover,
.en2x-inhaltsanker__link:focus {
	color: var(--en2x-color-primary, #221182);
}

.en2x-inhaltsanker__link-text {
	min-width: 0;
}

/* Arrow icon in en2x primary; nudges right on hover. */
.en2x-inhaltsanker__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--en2x-color-primary, #221182);
	transition: transform 0.15s ease;
}

.en2x-inhaltsanker__link:hover .en2x-inhaltsanker__icon,
.en2x-inhaltsanker__link:focus .en2x-inhaltsanker__icon {
	transform: translateX(3px);
}

.en2x-inhaltsanker__icon svg {
	display: block;
}
