.hpi-hist { position: relative; padding-top: 50px; margin-bottom: 30px; }
.hpi-hist__track {
	position: relative;
	display: flex;
	align-items: stretch; /* alle Karten so hoch wie die höchste */
	gap: 50px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	overscroll-behavior-x: contain;
	cursor: grab;
	outline: none;
}
.hpi-hist__track::-webkit-scrollbar { display: none; }
.hpi-hist__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.hpi-hist__track:focus-visible .hpi-hist__item.is-active { box-shadow: 0 0 0 3px var(--e-global-color-primary, #e30612); }
.hpi-hist__item {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-start;
	min-height: 400px;
	box-sizing: border-box;
	border-radius: 20px;
	outline: 2px solid #272727;
	outline-offset: -2px;
	scroll-snap-align: center;
	color: inherit;
}
.hpi-hist__item--dark { background: #272727; color: #fff; outline: none; }
.hpi-hist__text {
	flex: 0 0 400px;
	width: 400px;
	box-sizing: border-box;
	padding: 20px 0 20px 40px;
	margin-right: 50px;
	text-align: center;
	font-family: Mulish, sans-serif;
}
.hpi-hist__text p, .hpi-hist__text strong { color: inherit; }
.hpi-hist .hpi-hist__year {
	font-family: Mulish, sans-serif;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 8px 0 16px;
	color: inherit;
}
.hpi-hist__img { flex: 0 0 auto; align-self: stretch; min-height: 400px; max-width: 500px; overflow: hidden; border-radius: 0 20px 20px 0; }
.hpi-hist .hpi-hist__img img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 400px;
	max-width: none;
	object-fit: cover;
	object-position: center;
	border-radius: 0 20px 20px 0;
	-webkit-user-drag: none;
	user-select: none;
}
.hpi-hist__dots { display: flex; justify-content: center; gap: 10px; margin: 39px 0 20px; padding: 0; line-height: 0; }
.hpi-hist .hpi-hist__dots button,
.hpi-hist .hpi-hist__dots button:hover,
.hpi-hist .hpi-hist__dots button:focus {
	width: 12px;
	height: 12px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .3);
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s ease;
}
.hpi-hist .hpi-hist__dots button[aria-current="true"] { background: rgba(0, 0, 0, .6); }
.hpi-hist .hpi-hist__dots button:focus-visible { outline: 2px solid var(--e-global-color-primary, #e30612); outline-offset: 3px; }
@media (max-width: 767px) {
	.hpi-hist__item, .hpi-hist__item--noimg { width: 94vw; max-width: 100%; }
	.hpi-hist__text { flex: 1 1 auto; width: auto; padding: 25px; margin-right: 0; }
	.hpi-hist__img { display: none; }
}
