/* ── hero.css — Systembild-Hero (Startseite Variante A) ──────────────────────
   Positionierung links, Sichtbarkeits-Diagramm rechts. Übersetzt die laufende
   Betreuung als verbundenes System, statt die alte Text-/Headline-Wand zu bauen.
   Typo bleibt CI-nah (live-system.css); kein überdimensioniertes Display mehr.
   ──────────────────────────────────────────────────────────────────────────── */

.hero {
	background: var(--c-bg);
	/* Mehr vertikale Präsenz (min-height) — Inhalt wird darin zentriert.
	   Headline bleibt bewusst diszipliniert (siehe Kommentar oben). */
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: clamp(32rem, 68vh, 44rem);
	padding-block: clamp(3.25rem, 6vw, 6rem);
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
	align-items: center;
	gap: clamp(2rem, 5.5vw, 6rem);
}

.hero__content {
	max-width: 40rem;
	min-width: 0;
}

.hero__kicker {
	margin: 0 0 1rem;
	font-family: var(--font-head);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--c-link);
}

/* Hero-H1: kräftiger als generisches h1, aber weit unter dem alten 5.25rem. */
.variant-a main .hero__title {
	margin: 0 0 1.25rem;
	font-size: clamp(2.125rem, 1.6rem + 2vw, 3.25rem);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.hero__title strong {
	font-weight: 700;
}

.hero__title em {
	color: var(--c-accent);
	font-style: normal;
}

.hero__subline {
	max-width: 38rem;
	margin: 0;
	font-size: 1.1875rem;
	line-height: 1.55;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.25rem;
	margin-top: 2rem;
}

/* Sekundärer Pfad als schlichter Text-Link (kein zweiter Button-Block). */
.hero__textlink {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	padding-block: 0.5rem;
	border-bottom: 0.0625rem solid currentColor;
	color: var(--c-primary);
	font-family: var(--font-body);
	font-size: 1.0125rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.hero__textlink:hover,
.hero__textlink:focus-visible {
	color: var(--c-primary);
}

.hero__textlink-arrow {
	font-size: 1.05em;
	line-height: 1;
	transition: transform 0.2s ease;
}

.hero__textlink:hover .hero__textlink-arrow,
.hero__textlink:focus-visible .hero__textlink-arrow {
	transform: translateY(0.1875rem);
}

@media (prefers-reduced-motion: reduce) {
	.hero__textlink-arrow {
		transition: none;
	}
}

/* ── Sichtbarkeits-Diagramm ─────────────────────────────────────────────────── */

.hero__visual {
	min-width: 0;
}

.system-map {
	position: relative;
	width: min(100%, 33rem);
	aspect-ratio: 6 / 5;
	margin: 0 auto;
}

.system-map__paths {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.system-map__paths line,
.system-map__paths circle {
	fill: none;
	stroke: var(--c-accent);
	stroke-width: 1.5;
	stroke-dasharray: 5 7;
}

.system-map__line {
	transition: stroke-width 0.2s ease;
}

/* Satelliten-Hover/-Fokus hebt seine Linie zum Kern hervor — macht sichtbar, dass
   die Disziplin auf die Marke einzahlt. Reines CSS via :has(), kein JS. */
.system-map:has(.system-map__node--search:is(:hover, :focus-visible)) .system-map__line--search,
.system-map:has(.system-map__node--ai:is(:hover, :focus-visible)) .system-map__line--ai,
.system-map:has(.system-map__node--content:is(:hover, :focus-visible)) .system-map__line--content,
.system-map:has(.system-map__node--pr:is(:hover, :focus-visible)) .system-map__line--pr {
	stroke-width: 2.75;
	stroke-dasharray: none;
}

/* ── Hintergrund-Flächen (weiche Tiefe) + Partikel ──────────────────────────── */

.system-map__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

/* Zwei weich ausgeblendete Flächen (Surface-Grau + Oliv-Tint) — geben Tiefe,
   ohne als harte Form zu lesen. Keine bunten Töne, keine Gradient-Fläche. */
.system-map__blob--grey {
	fill: var(--c-surface);
}

.system-map__blob--olive {
	fill: var(--c-surface-olive);
	opacity: 0.9;
}

/* Mini-Partikel um die Umlaufbahn — entsättigt (kein Oliv, der Akzent bleibt
   den Linien + dem KI-Knoten vorbehalten). */
.system-map__particle {
	fill: rgba(33, 37, 41, 0.26);
}

.system-map__particle--ring {
	fill: none;
	stroke: rgba(33, 37, 41, 0.24);
	stroke-width: 1.25;
}

.system-map__core,
.system-map__node {
	position: absolute;
	display: grid;
	place-items: center;
	border-radius: 50%;
	font-family: var(--font-head);
	text-align: center;
}

.system-map__core {
	top: 50%;
	left: 50%;
	width: 11rem;
	aspect-ratio: 1;
	padding: 1rem;
	background: var(--c-primary);
	color: var(--c-white);
	transform: translate(-50%, -50%);
	/* Zarter Ruhe-Schatten: hebt den Kern über die Fläche. */
	box-shadow: 0 0.25rem 1.25rem rgba(33, 37, 41, 0.14);
}

.system-map__core small {
	align-self: end;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-accent);
}

/* „Live"-Puls: macht das laufend gesteuerte System spürbar (Herzschlag statt Klick).
   Bewusst immer aktiv — konsistent mit der Always-on-Bewegung der system-map. */
.system-map__core small::before {
	content: "";
	flex-shrink: 0;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: var(--c-accent);
	animation: system-map-live 2.4s ease-out infinite;
}

@keyframes system-map-live {
	0% { box-shadow: 0 0 0 0 rgb(var(--c-accent-rgb) / 0.55); }
	70% { box-shadow: 0 0 0 0.5rem rgb(var(--c-accent-rgb) / 0); }
	100% { box-shadow: 0 0 0 0 rgb(var(--c-accent-rgb) / 0); }
}

.system-map__core strong {
	align-self: start;
	font-size: 1.25rem;
	font-weight: 700;
}

.system-map__node {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 7rem;
	aspect-ratio: 1;
	padding: 0.75rem;
	border: 0.0625rem solid var(--c-primary);
	background: var(--c-bg);
	color: var(--c-primary);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	/* --node-* werden von hero.js gefüttert (Feder-Offset, Pop-Scale, Nähe). */
	transform: translate(var(--node-x, 0), var(--node-y, 0)) scale(var(--node-scale, 1));
	/* Erste Lage = Ruhe-Schatten (schwebt über der Fläche); zweite Lage = Pop bei Nähe. */
	box-shadow:
		0 0.125rem 0.5rem rgba(33, 37, 41, 0.1),
		0 calc(0.55rem * var(--node-pop, 0)) calc(1.5rem * var(--node-pop, 0))
		rgba(33, 37, 41, calc(0.18 * var(--node-pop, 0)));
	will-change: transform;
}

/* Knoten sind Links auf die vier Disziplinen — Diagramm-Element, kein Button.
   Ehrliche Affordance: das Label unterstreicht bei Hover/Fokus, statt dass nur
   die Magnet-Physik Klickbarkeit vortäuscht. Fokus-Outline kommt global. */
a.system-map__node {
	text-decoration: none;
	color: var(--c-primary);
}

a.system-map__node:hover .system-map__label,
a.system-map__node:focus-visible .system-map__label {
	text-decoration: underline;
	text-underline-offset: 0.15rem;
}

.system-map__icon {
	width: 1.375rem;
	height: 1.375rem;
	color: var(--c-primary);
}

.system-map__node--search { top: 1%; left: 8%; }
.system-map__node--ai { top: 1%; right: 6%; background: var(--c-accent); }
.system-map__node--content { right: 2%; bottom: 0; }
.system-map__node--pr { left: 5%; bottom: 0; }

/* ── Gestaffelter Load-Auftritt (nur bei erlaubter Bewegung) ─────────────────── */

@media (prefers-reduced-motion: no-preference) {
	.hero__kicker,
	.hero__title,
	.hero__subline,
	.hero__actions,
	.system-map {
		animation: hero-enter 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
	}

	.hero__title { animation-delay: 70ms; }
	.system-map { animation-delay: 130ms; }
	.hero__subline { animation-delay: 150ms; }
	.hero__actions { animation-delay: 230ms; }
}

@keyframes hero-enter {
	from { opacity: 0; transform: translateY(1rem); }
	to { opacity: 1; transform: none; }
}

/* ── Ambient-Motion: Fluss nach innen + driftende Partikel ──────────────────────
   Visualisiert „laufend gesteuert": die gestrichelten Linien fließen langsam zum
   Kern. Bewusst zurückhaltend und — anders als die Magnet-Feder — respektiert es
   prefers-reduced-motion (dauerhafte Eigenbewegung ohne Nutzerabsicht). */

@media (prefers-reduced-motion: no-preference) {
	.system-map__line {
		animation: system-map-flow 2.6s linear infinite;
	}

	.system-map__particle {
		animation: system-map-drift 9s ease-in-out infinite;
	}

	.system-map__particle:nth-of-type(even) {
		animation-duration: 12s;
		animation-direction: alternate;
	}
}

@keyframes system-map-flow {
	to { stroke-dashoffset: -12; }
}

@keyframes system-map-drift {
	50% { transform: translate(0.35rem, -0.3rem); }
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 60rem) {
	.hero__inner {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.hero__content {
		max-width: none;
	}

	.system-map {
		width: min(100%, 28rem);
	}
}

@media (max-width: 40rem) {
	.hero {
		min-height: auto;
		padding-block: clamp(2.5rem, 9vw, 3.5rem);
	}

	.hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero__actions .btn {
		width: 100%;
		text-align: center;
	}

	.hero__textlink {
		align-self: start;
	}

	.system-map {
		width: min(100%, 20rem);
	}

	.system-map__core {
		width: 8rem;
	}

	.system-map__node {
		width: 5.25rem;
		gap: 0.2rem;
		font-size: 0.6875rem;
	}

	.system-map__icon {
		width: 1.125rem;
		height: 1.125rem;
	}

	.system-map__node--search { left: 2%; }
	.system-map__node--ai { right: 0; }
	.system-map__node--content { right: 0; }
	.system-map__node--pr { left: 0; }
}
