
ol.custom-list {
	list-style: none;
	counter-reset: list;
	padding: 0 1rem;
}

ol.custom-list li {
	--stop: calc(100% / var(--length) * var(--i));
	--l: 62%;
	--l2: 88%;
	--h: calc((var(--i) - 1) * (180 / var(--length)));
	--c1: hsl(var(--h), 71%, var(--l));
	--c2: hsl(var(--h), 71%, var(--l2));
	
	position: relative;
	counter-increment: list;
	max-width: 45rem;
	/*margin: 2rem auto;*/
	padding: 2rem 1rem 1rem;
	box-shadow: 0.1rem 0.1rem 1.5rem rgba(0, 0, 0, 0.3);
	border-radius: 0.25rem;
	overflow: hidden;
	background-color: white;
}

ol.custom-list li::before {
	content: '';
	display: block;
	width: 100%;
	height: 1rem;
	position: absolute;
	top: 0;
	left: 0;
	background: linear-gradient(to right, var(--c1) var(--stop), var(--c2) var(--stop));
}

ol.custom-list h3 {
	display: flex;
	align-items: baseline;
	margin: 0 0 1rem;
	color: rgb(70 70 70);
}

ol.custom-list h3::before {
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 0 0 auto;
	margin-right: 1rem;
	width: 3rem;
	height: 3rem;
	content: counter(list);
	padding: 1rem;
	border-radius: 50%;
	background-color: var(--c1);
	color: white;
}

@media (min-width: 40em) {
	ol.custom-list li {
		/*margin: 3rem auto;
		padding: 3rem 2rem 2rem;*/
	}
	
	ol.custom-list h3 {
		font-size: 2.25rem;
		margin: 0 0 2rem;
	}
	
	ol.custom-list h3::before {
		margin-right: 1.5rem;
	}
}



.list-leistung {
  position: relative;
}
.list-leistung h2 {
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.list-leistung ul {
  position: relative;
}
.list-leistung ul {
  padding: 0;
  margin: 0;
}

.list-leistung ul li {
  position: relative;
  left: 0;
  list-style: none;
  margin: 4px 0;
  border-left: 2px solid #3b3b3b;
  transition: 0.5s;
  cursor: pointer;
  overflow: hidden; /* wichtig: damit das :before nicht „rausblutet“ */
}

.list-leistung ul li:hover {
  left: 10px;
}

/* Pseudo-Element: Hintergrund */
.list-leistung ul li::before {
  content: "";
  position: absolute;
  inset: 0;              /* statt width/height: 100% */
  background: #3b3b3b;
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.5s;
  z-index: 0;            /* Hintergrund bleibt hinten */
}

.list-leistung ul li:hover::before {
  transform: scaleX(1);
}

/* a ist die komplette Klickfläche */
.list-leistung ul li a {
  position: relative;    /* damit z-index greift */
  z-index: 1;            /* über dem Hintergrund */
  display: block;
  width: 100%;
  padding: 8px 8px 8px 12px; /* Padding hierhin verschieben */
  text-decoration: none;
  color: inherit;
}

/* Textfarbe beim Hover */
.list-leistung ul li:hover a {
  color: #fff;
}

/* span optional: dann bitte ohne padding/inline-block */
.list-leistung ul li a span {
  display: inline; /* oder komplett weglassen */
}