/*
 * Über uns – Hero.
 *
 * Entwurf aus Claude Design (29.09.2026), Maße nach dem Design-System:
 * H1 in der Hero-Größe wie Startseite und Profil (64 statt 104 px), Kicker
 * nach der Label-Norm (sm, 600, Versalien, 0.06em), Kennzahlen in subtitle,
 * Kacheln mit Radius sm, Abstände aus den Spacing-Tokens.
 */

.about-hero {
	--about-ueber: 8rem; /* so weit reicht das Licht über den Hero nach oben */
	position: relative;
	/* Nur seitlich abschneiden (schräges Laufband), nach oben darf das Licht
	   hinter die Kopfzeile. Ohne clip-Unterstützung bleibt es bei hidden. */
	overflow: hidden;
	overflow: clip visible;
	background: var(--wp--preset--color--base-dark);
	color: var(--wp--preset--color--contrast-light);
	padding: calc(var(--wp--preset--spacing--section) * 1.5) 0 var(--wp--preset--spacing--section);
	text-align: center;
}

/* Grünes Licht hinter der Überschrift, über die Kopfzeile hinweg – wie auf
   Startseite und Leistungsseiten (Elias 01.10.). ::before liegt hinter dem
   Inhalt, .about-hero__licht über der Kopfzeile (z-index 101) und zeigt nur
   deren Streifen; die Kopfzeilen-Farbe lässt sich nicht durchsichtig schalten.
   Feste Maße statt Prozent, weil der Hero samt Laufband sehr hoch ist. */
.about-hero::before,
.about-hero__licht {
	content: "";
	position: absolute;
	inset: calc(-1 * var(--about-ueber)) 0 0;
	background: radial-gradient(ellipse 42rem 24rem at 50% calc(var(--about-ueber) + 10rem), color-mix(in srgb, var(--wp--preset--color--primary) 13%, transparent), transparent 70%);
	pointer-events: none;
}

.about-hero::before {
	z-index: 0;
}

.about-hero__licht {
	z-index: 101; /* über der Kopfzeile (100) */
	clip-path: inset(0 0 calc(100% - var(--about-ueber)) 0);
}

body.mnav-open .about-hero__licht {
	display: none;
}

/* Am Handy schmaler, sonst färbt das Licht den ganzen oberen Bereich */
@media (max-width: 767px) {
	.about-hero::before,
	.about-hero__licht {
		background: radial-gradient(ellipse 16rem 18rem at 50% calc(var(--about-ueber) + 12rem), color-mix(in srgb, var(--wp--preset--color--primary) 13%, transparent), transparent 70%);
	}
}

.about-hero__inner,
.about-hero__laufband {
	position: relative;
	z-index: 1;
}

/* Unten weich in den dunklen Seitengrund auslaufen (über dem Laufband) */
.about-hero::after {
	z-index: 2;
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 10rem;
	background: linear-gradient(180deg, transparent, var(--wp--preset--color--base-dark));
	pointer-events: none;
}

.about-hero__inner {
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--gutter);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.about-hero__label {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0 0 var(--wp--preset--spacing--md);
	padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--sm);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast-light) 18%, transparent);
	border-radius: var(--wp--custom--radius--pill);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em; /* Label-Norm (Review-2 M6) */
	color: var(--wp--preset--color--neutral-light);
}

.about-hero__punkt {
	flex: none;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}

.about-hero__title {
	max-width: 62.5rem;
	margin: 0 0 var(--wp--preset--spacing--md);
	font-size: min(var(--wp--preset--font-size--hero), 10vw);
	font-weight: 700;
	line-height: var(--wp--custom--line-height--tight);
	letter-spacing: var(--wp--custom--letter-spacing--hero);
}

/* Wie im Hero der Startseite: grün und kursiv */
.about-hero__title em {
	font-style: italic;
	color: var(--wp--preset--color--accent);
}

.about-hero__text {
	max-width: 40rem;
	margin: 0;
	font-size: var(--wp--preset--font-size--lg);
	line-height: var(--wp--custom--line-height--snug);
	color: var(--wp--preset--color--neutral-light);
	text-wrap: pretty;
}

/* Kennzahlen: Wert über der Beschriftung (im HTML steht die Beschriftung
   zuerst – <dt> vor <dd>, so liest es auch ein Screenreader) */
.about-hero__zahlen {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--xl);
	margin: var(--wp--preset--spacing--xl) 0 0;
}

.about-hero__zahl {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: var(--wp--preset--spacing--xs);
}

.about-hero__zahl-wert {
	margin: 0;
	font-size: var(--wp--preset--font-size--subtitle);
	font-weight: 700;
	line-height: 1;
	letter-spacing: var(--wp--custom--letter-spacing--hero);
	font-variant-numeric: tabular-nums;
}

/* Bewusst ohne Versalien: „op-s Center“ darf nicht zu „OP-S CENTER“ werden */
.about-hero__zahl-label {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--neutral-light);
}

/* Foto-Laufband: zwei Reihen, leicht schräg, gegenläufig */
.about-hero__laufband {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--sm);
	margin-top: var(--wp--preset--spacing--section);
	transform: rotate(-2deg) scale(1.06);
}

.about-hero__reihe {
	overflow: hidden;
}

.about-hero__band {
	display: flex;
	width: max-content;
}

/* Abstand auch hinter der letzten Kachel: dann sind beide Hälften exakt
   gleich breit und −50 % landet nahtlos auf der Kopie */
.about-hero__satz {
	display: flex;
	gap: var(--wp--preset--spacing--sm);
	padding-right: var(--wp--preset--spacing--sm);
}

/* Wiederholte Kacheln (bei wenigen Fotos): Die Hülle trägt nur aria-hidden,
   im Layout zählen ihre Kacheln wie die übrigen. */
.about-hero__wiederholung {
	display: contents;
}

/* Hülle der Northstar Media Suite um gekennzeichnete Bilder (Label) */
.about-hero__satz .ki-bild {
	flex: none;
}

.about-hero__foto {
	flex: none;
	display: block;
	width: 16.25rem; /* 260px */
	height: 11.25rem; /* 180px */
	object-fit: cover;
	border-radius: var(--wp--custom--radius--sm);
}

@media (max-width: 767px) {
	.about-hero__zahlen {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.about-hero__foto {
		width: 11.25rem; /* 180px */
		height: 7.75rem; /* 124px */
	}
}

@media (prefers-reduced-motion: no-preference) {
	/* Ruhiges Tempo: ein Satz mit zwölf Kacheln (3312 px) in 100 s sind rund
	   33 px pro Sekunde, die untere Reihe läuft etwas langsamer. Vorher 46 s
	   und 58 s – mit zwölf statt sechs Kacheln war das doppelt so schnell wie
	   gedacht (Elias 30.09.2026: „recht schnell“). */
	.about-hero__reihe--links .about-hero__band {
		animation: about-hero-links 100s linear infinite;
	}

	.about-hero__reihe--rechts .about-hero__band {
		animation: about-hero-rechts 126s linear infinite;
	}

	.about-hero__punkt {
		animation: about-hero-puls 2s ease-out infinite;
	}
}

@keyframes about-hero-links {
	to {
		transform: translateX(-50%);
	}
}

@keyframes about-hero-rechts {
	from {
		transform: translateX(-50%);
	}

	to {
		transform: translateX(0);
	}
}

@keyframes about-hero-puls {
	0%,
	100% {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--wp--preset--color--accent) 55%, transparent);
	}

	70% {
		box-shadow: 0 0 0 0.625rem transparent;
	}
}
