/* =========================================================
   Shiplink Holding – Styles für Frontend und Editor
   Scroll-Effekte greifen nur, wenn <html> die Klasse .shl-fx hat
   (JavaScript aktiv und keine reduzierte Bewegung gewünscht).
   ========================================================= */

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 4rem;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--preset--color--accent);
	color: #fff;
}

:where(a, button, input, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

:where(.wp-site-blocks) a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wp-site-blocks > * { margin-block-start: 0; }

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	opacity: 1;
}

/* ---------- Kopfzeile: schwebend, durchscheinend ---------- */

.wp-site-blocks > .wp-block-template-part:first-child {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

.shl-header {
	background: var(--wp--preset--color--deep, var(--wp--preset--color--contrast));
	color: var(--wp--preset--color--base);
	-webkit-backdrop-filter: saturate(140%) blur(18px);
	backdrop-filter: saturate(140%) blur(18px);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 8%, transparent);
}

.shl-header .wp-block-site-title a { color: var(--wp--preset--color--base); }

.shl-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--deep, var(--wp--preset--color--contrast)) !important;
	color: var(--wp--preset--color--base) !important;
}

.shl-header {
	transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}



.shl-header .wp-block-navigation a {
	color: color-mix(in srgb, var(--wp--preset--color--base) 68%, transparent);
}

.shl-header .wp-block-navigation a:hover,
.shl-header .wp-block-navigation a:focus-visible {
	color: var(--wp--preset--color--base);
}

/* ---------- Allgemeine Hilfsklassen ---------- */

.shl-lede {
	max-width: 36rem;
	margin-inline: auto !important;
	line-height: 1.45;
}

.shl-coords { font-variant-numeric: tabular-nums; }

/* Bühne eines Scroll-Kapitels */
.shl-stage { position: relative; }

/* =========================================================
   1. Globus (is-style-scroll-globe)
   ========================================================= */

.is-style-scroll-globe {
	position: relative;
	isolation: isolate;
}

.is-style-scroll-globe .shl-phase { text-align: center; }

.is-style-scroll-globe .shl-phase + .shl-phase {
	margin-top: var(--wp--preset--spacing--70);
}

.shl-globe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
	display: block;
	max-width: none !important;
	margin: 0 !important;
}

.shl-fx .is-style-scroll-globe { height: 320vh; }

.shl-fx .is-style-scroll-globe > .shl-stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	display: grid;
	place-items: center;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.shl-fx .is-style-scroll-globe .shl-phase {
	grid-area: 1 / 1;
	margin: 0 !important;
	will-change: opacity, transform;
}

.shl-fx .is-style-scroll-globe .shl-phase ~ .shl-phase {
	align-self: end;
	padding-bottom: 9vh;
	opacity: 0;
}

/* =========================================================
   2. Wort für Wort (is-style-scroll-words)
   ========================================================= */

.shl-fx .is-style-scroll-words { height: 200vh; }

.shl-fx .is-style-scroll-words > .shl-stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.shl-w { transition: opacity 0.15s linear; }

.shl-fx .shl-w { opacity: 0.16; }

/* =========================================================
   3. Horizontale Reihe (is-style-scroll-x)
   ========================================================= */

.shl-track {
	gap: clamp(1rem, 2vw, 1.5rem) !important;
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 0.5rem;
}

.shl-track::-webkit-scrollbar { display: none; }

.shl-panel {
	flex: 0 0 auto;
	width: min(86vw, 50rem);
	min-height: min(68vh, 40rem);
	border-radius: 32px;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	scroll-snap-align: start;
	display: flex !important;
	flex-direction: column;
	transform-origin: center center;
}

.shl-panel > * { margin: 0 !important; }

.shl-panel h3 {
	font-size: clamp(1.7rem, 5vw, 4.75rem) !important;
	word-break: break-word;
	letter-spacing: -0.045em !important;
	overflow-wrap: anywhere;
	hyphens: auto;
	margin-top: auto !important;
	padding-top: var(--wp--preset--spacing--60);
}

.shl-panel h3 + p {
	margin-top: 1rem !important;
	max-width: 30rem;
	opacity: 0.82;
}

.shl-panel h3 a:hover,
.shl-panel p a:hover { color: inherit; }

/* Lichtschein und feine Route auf jeder Karte */
.shl-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.1), transparent 55%),
		radial-gradient(80% 60% at 0% 100%, rgba(0, 0, 0, 0.22), transparent 60%);
	pointer-events: none;
}

.shl-panel-route {
	position: absolute;
	right: -4%;
	top: 7%;
	width: 72%;
	height: auto;
	z-index: -1;
	overflow: visible;
	pointer-events: none;
	margin: 0 !important;
}

.shl-panel-route path {
	fill: none;
	stroke: currentColor;
	stroke-opacity: 0.4;
	stroke-width: 1;
	stroke-linecap: round;
}

.shl-panel-route circle {
	fill: var(--wp--preset--color--amber, currentColor);
	filter: drop-shadow(0 0 6px var(--wp--preset--color--amber, currentColor));
	transition: opacity 0.3s ease;
}

.shl-panel h3 { will-change: transform; }

.shl-panel h3 a,
.shl-panel p a { text-decoration: none; }

.shl-panel p a:hover { text-decoration: underline; }

/* Im Editor umbrechen statt seitlich zu scrollen */
.editor-styles-wrapper .shl-track {
	flex-wrap: wrap !important;
	overflow: visible;
}

.shl-fx .is-style-scroll-x { height: 300vh; }

.shl-fx .is-style-scroll-x > .shl-stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 3.5rem !important;
	padding-bottom: 0 !important;
}

.shl-fx .is-style-scroll-x .shl-track {
	overflow: visible;
	scroll-snap-type: none;
	will-change: transform;
}

.shl-fx .is-style-scroll-x .shl-panel { will-change: transform; }

.shl-progress {
	height: 2px;
	width: min(16rem, 40vw);
	background: var(--wp--preset--color--line);
	border-radius: 2px;
	overflow: hidden;
	margin-top: var(--wp--preset--spacing--50) !important;
}

.shl-progress > span {
	display: block;
	height: 100%;
	background: var(--wp--preset--color--contrast);
	transform-origin: left center;
	transform: scaleX(0);
}

/* =========================================================
   4. Nacheinander (is-style-scroll-steps)
   ========================================================= */

.shl-steps > * + * {
	margin-top: var(--wp--preset--spacing--60) !important;
}

.shl-fx .is-style-scroll-steps { height: 360vh; }

.shl-fx .is-style-scroll-steps > .shl-stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 3.5rem !important;
	padding-bottom: 0 !important;
}

.shl-fx .shl-steps {
	display: grid;
	position: relative;
}

.shl-fx .shl-steps > * {
	grid-area: 1 / 1;
	margin: 0 !important;
	opacity: 0;
	will-change: opacity, transform;
}

.shl-ticks {
	display: flex;
	gap: 0.5rem;
	margin-top: var(--wp--preset--spacing--50) !important;
}

.shl-ticks span {
	width: 1.75rem;
	height: 2px;
	border-radius: 2px;
	background: var(--wp--preset--color--line);
	transition: background-color 0.35s ease, width 0.35s ease;
}

.shl-ticks span.is-active {
	background: var(--wp--preset--color--accent);
	width: 3rem;
}

/* =========================================================
   5. Routenlinie (is-style-scroll-line)
   ========================================================= */

.is-style-scroll-line {
	position: relative;
	isolation: isolate;
	overflow: clip;
}

.shl-line {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
	overflow: visible;
	max-width: none !important;
	margin: 0 !important;
}

.shl-line path {
	fill: none;
	stroke-width: 2;
	opacity: 0.95;
	vector-effect: non-scaling-stroke;
}

.shl-line-dot {
	position: absolute;
	top: 0;
	left: 0;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px !important;
	max-width: none !important;
	border-radius: 50%;
	background: var(--wp--preset--color--amber, currentColor);
	box-shadow: 0 0 0 8px color-mix(in srgb, var(--wp--preset--color--amber, currentColor) 22%, transparent), 0 0 30px var(--wp--preset--color--amber, currentColor);
	pointer-events: none;
	z-index: -1;
	opacity: 0;
}

.shl-fx .is-style-scroll-line { height: 240vh; }

.shl-fx .is-style-scroll-line > .shl-stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.shl-fx .is-style-scroll-line .shl-stage > :not(.shl-line):not(.shl-line-dot) {
	opacity: 0;
	will-change: opacity, transform;
}

/* =========================================================
   6. Einblenden (is-style-fade-in)
   ========================================================= */

.shl-fx .is-style-fade-in > * {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}

.shl-fx .is-style-fade-in.is-in > * {
	opacity: 1;
	transform: none;
}

.shl-fx .is-style-fade-in.is-in > :nth-child(2) { transition-delay: 0.08s; }
.shl-fx .is-style-fade-in.is-in > :nth-child(3) { transition-delay: 0.16s; }
.shl-fx .is-style-fade-in.is-in > :nth-child(4) { transition-delay: 0.24s; }

/* ---------- Kontakt ---------- */

.shl-mail a {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.5s cubic-bezier(.2,.7,.2,1), color 0.2s ease;
}

.shl-mail a:hover,
.shl-mail a:focus-visible {
	background-size: 100% 2px;
}

/* ---------- Fußzeile ---------- */

.shl-footer a {
	color: color-mix(in srgb, currentColor 70%, transparent);
	text-decoration: none;
}

.shl-footer a:hover,
.shl-footer a:focus-visible {
	color: currentColor;
}

.shl-footer .shl-footer-meta p { opacity: 0.7; }

.shl-footer .shl-footer-meta {
	border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	padding-top: var(--wp--preset--spacing--40);
}

.shl-wordmark {
	font-size: clamp(2.5rem, 13.4vw, 15rem) !important;
	white-space: nowrap;
	margin-bottom: 0 !important;
	color: var(--wp--preset--color--base);
}



/* ---------- Rechtstexte / einfache Seiten ---------- */

.shl-prose h2 {
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: -0.015em;
	margin-top: var(--wp--preset--spacing--50);
}

.shl-prose h3 {
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: 0;
	margin-top: var(--wp--preset--spacing--40);
}

@media (prefers-reduced-motion: reduce) {
	* { transition-duration: 0.01ms !important; }
}

.shl-intro { max-width: 26rem; }

.shl-lede-left { max-width: 36rem; line-height: 1.45; }

/* In Flex-Bühnen volle Breite statt Schrumpfen auf den Inhalt */
.shl-fx .is-style-scroll-words > .shl-stage > *,
.shl-fx .is-style-scroll-x > .shl-stage > *,
.shl-fx .is-style-scroll-steps > .shl-stage > *,
.shl-fx .is-style-scroll-line > .shl-stage > *:not(.shl-line):not(.shl-line-dot) {
	width: 100%;
}

.shl-big-text {
	font-size: clamp(1.75rem, 3.6vw, 3.25rem) !important;
}

/* ---------- Farbe ---------- */

.shl-gradient-text {
	background: linear-gradient(115deg, var(--wp--preset--color--accent) 10%, var(--wp--preset--color--lagoon, var(--wp--preset--color--accent)) 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-variant-numeric: tabular-nums;
}

.shl-stats .shl-count {
	white-space: nowrap;
	font-size: clamp(2.75rem, 6vw, 6rem) !important;
}

@media (max-width: 781px) {
	.shl-stats { display: grid !important; grid-template-columns: 1fr 1fr; }
	.shl-stats .shl-count { font-size: clamp(2.5rem, 12vw, 4rem) !important; }
}

/* Haltung: Hintergrund wechselt sanft je Aussage */
.is-style-scroll-steps {
	transition: background-color 0.9s ease;
}

.shl-fx .is-style-scroll-steps.shl-tint-0 { background-color: color-mix(in srgb, var(--wp--preset--color--accent) 6%, var(--wp--preset--color--base)); }
.shl-fx .is-style-scroll-steps.shl-tint-1 { background-color: color-mix(in srgb, var(--wp--preset--color--kelp, var(--wp--preset--color--accent)) 7%, var(--wp--preset--color--base)); }
.shl-fx .is-style-scroll-steps.shl-tint-2 { background-color: color-mix(in srgb, var(--wp--preset--color--amber, var(--wp--preset--color--accent)) 12%, var(--wp--preset--color--base)); }
.shl-fx .is-style-scroll-steps.shl-tint-3 { background-color: color-mix(in srgb, var(--wp--preset--color--wine, var(--wp--preset--color--accent)) 6%, var(--wp--preset--color--base)); }

/* Hero: zarter Farbschimmer hinter dem Globus */
.is-style-scroll-globe {
	background-image: radial-gradient(70% 55% at 50% 100%, color-mix(in srgb, var(--wp--preset--color--lagoon, var(--wp--preset--color--accent)) 12%, transparent), transparent 70%);
}

/* ---------- Text aus der Maske ---------- */

.shl-split .shl-mw {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding-bottom: 0.14em;
	margin-bottom: -0.14em;
}

.shl-split .shl-mi { display: inline-block; }

.shl-fx .shl-split .shl-mi {
	transform: translate3d(0, 112%, 0);
	transition: transform 1.15s cubic-bezier(.16, 1, .3, 1);
	transition-delay: calc(var(--i, 0) * 55ms);
}

.shl-fx .shl-wordmark.shl-split .shl-mi { transition-delay: calc(var(--i, 0) * 32ms); }

.shl-fx .shl-split.is-revealed .shl-mi { transform: none; }

/* Zahlen: feine Linie wächst mit */
.shl-stats .wp-block-column {
	position: relative;
	padding-top: 1.25rem;
}

.shl-stats .wp-block-column::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--accent), var(--wp--preset--color--lagoon, var(--wp--preset--color--accent)));
	transform-origin: left center;
}

.shl-fx .shl-stats .wp-block-column::before {
	transform: scaleX(0);
	transition: transform 1.6s cubic-bezier(.16, 1, .3, 1);
}

.shl-fx .shl-stats .wp-block-column.is-in::before { transform: scaleX(1); }

/* ---------- Laufband ---------- */

.is-style-scroll-marquee {
	overflow: hidden;
}

.shl-marquee-row {
	display: flex;
	flex-wrap: wrap;
	column-gap: 0.6em;
	row-gap: 0;
	font-size: clamp(2.5rem, 7.2vw, 7rem);
	font-weight: 600;
	letter-spacing: -0.045em;
	line-height: 1.08;
	white-space: nowrap;
	will-change: transform;
}

.shl-marquee-row > * {
	margin: 0 !important;
	white-space: nowrap !important;
	flex: 0 0 auto;
	max-width: none !important;
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
}

.shl-marquee-row > *::after {
	content: "";
	width: 0.16em;
	height: 0.16em;
	border-radius: 50%;
	background: var(--wp--preset--color--amber, currentColor);
	flex: 0 0 auto;
}

.shl-marquee-row.is-outline {
	color: transparent;
	-webkit-text-stroke: 1.5px var(--wp--preset--color--accent);
}

.shl-marquee-row.is-outline > *::after {
	background: var(--wp--preset--color--lagoon, currentColor);
}

.shl-fx .shl-marquee-row { flex-wrap: nowrap; }

.editor-styles-wrapper .shl-marquee-row.is-outline {
	color: var(--wp--preset--color--accent);
	-webkit-text-stroke: 0;
}

/* ---------- Dunkle Flächen ---------- */

/* Grauer Nebentext wird auf dunklem Grund zu gedämpftem Hell */
:is(.has-deep-background-color, .has-contrast-background-color, .has-accent-background-color, .has-wine-background-color, .has-kelp-background-color) .has-muted-color {
	color: color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent) !important;
}

.has-deep-background-color ::selection {
	background: var(--wp--preset--color--lagoon, var(--wp--preset--color--accent));
	color: var(--wp--preset--color--deep, #000);
}

/* ---------- Was wir machen ---------- */

.shl-pillar {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: var(--wp--preset--spacing--40);
}

.shl-pillar h3 { margin-bottom: 0.6rem; }

/* =========================================================
   Sternbild (is-style-scroll-constellation)
   ========================================================= */

.is-style-scroll-constellation {
	position: relative;
	background-image: radial-gradient(60% 50% at 70% 45%, color-mix(in srgb, var(--wp--preset--color--lagoon, #74A9B5) 14%, transparent), transparent 70%);
}

.shl-stars > * + * { margin-top: var(--wp--preset--spacing--50) !important; }

.shl-star-kicker { color: var(--wp--preset--color--lagoon, currentColor); }

.shl-star h3 { letter-spacing: -0.03em !important; }

.shl-fx .is-style-scroll-constellation { height: 740vh; }

.shl-fx .is-style-scroll-constellation > .shl-stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	grid-template-rows: auto 1fr auto;
	column-gap: var(--wp--preset--spacing--50);
	align-content: center;
	padding-top: 5rem !important;
	padding-bottom: 2.5rem !important;
}

.shl-fx .is-style-scroll-constellation > .shl-stage > * {
	max-width: none !important;
	width: 100%;
	margin: 0 !important;
}

.shl-fx .shl-const-intro { grid-column: 1; grid-row: 1; align-self: end; }

.shl-fx .shl-stars {
	grid-column: 1;
	grid-row: 2;
	display: grid;
	align-self: center;
	align-items: center;
}

.shl-fx .shl-stars > * {
	grid-area: 1 / 1;
	margin: 0 !important;
	opacity: 0;
	will-change: opacity, transform;
}

.shl-fx .shl-const-count {
	grid-column: 1;
	grid-row: 3;
	align-self: start;
	font-size: var(--wp--preset--font-size--small);
	font-variant-numeric: tabular-nums;
	color: color-mix(in srgb, var(--wp--preset--color--base) 55%, transparent);
}

.shl-fx .shl-const-foot { display: none; }

.shl-const-map {
	grid-column: 2;
	grid-row: 1 / 4;
	position: relative;
	height: 100%;
	min-height: 0;
}

.shl-const-map svg {
	width: 100%;
	height: 100%;
	overflow: visible;
	display: block;
}

.shl-tw {
	fill: var(--wp--preset--color--base);
	opacity: 0.3;
	animation: shl-twinkle 4s ease-in-out infinite;
}

@keyframes shl-twinkle {
	0%, 100% { opacity: 0.12; }
	50% { opacity: 0.55; }
}

.shl-cl {
	fill: none;
	stroke: var(--wp--preset--color--lagoon, currentColor);
	stroke-width: 1.3;
	stroke-linecap: round;
	opacity: 0.85;
}

.shl-cl.is-cross { opacity: 0.4; stroke-dasharray: 2 6; }

.shl-core {
	fill: var(--wp--preset--color--base);
	opacity: 0.28;
	transition: opacity 0.5s ease, r 0.5s ease;
}

.shl-halo {
	fill: var(--wp--preset--color--lagoon, currentColor);
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
	transition: opacity 0.5s ease;
}

.shl-lbl {
	fill: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.08em;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.shl-st.is-lit .shl-core { opacity: 0.95; }
.shl-st.is-lit .shl-lbl { opacity: 0.4; }
.shl-st.is-active .shl-core { r: 6.5; opacity: 1; }
.shl-st.is-active .shl-lbl { opacity: 1; }
.shl-st.is-active .shl-halo {
	opacity: 0.22;
	animation: shl-halo 2.6s ease-in-out infinite;
}

@keyframes shl-halo {
	0%, 100% { transform: scale(0.8); opacity: 0.28; }
	50% { transform: scale(1.25); opacity: 0.1; }
}

@media (max-width: 781px) {
	.shl-fx .is-style-scroll-constellation > .shl-stage {
		grid-template-columns: 1fr;
		grid-template-rows: auto 34vh auto auto;
		row-gap: var(--wp--preset--spacing--30);
		padding-top: 4.5rem !important;
	}
	.shl-fx .shl-const-intro { grid-row: 1; }
	.shl-fx .shl-const-intro p { display: none; }
	.shl-const-map { grid-column: 1; grid-row: 2; }
	.shl-fx .shl-stars { grid-row: 3; align-self: start; }
	.shl-fx .shl-const-count { grid-row: 4; }
	.shl-fx .shl-star h3 { font-size: clamp(2rem, 9vw, 2.6rem) !important; }
	.shl-fx .shl-star p.has-large-font-size { font-size: 1.05rem !important; }
}

/* ---------- Sternbild: Hover-Kärtchen ---------- */

.shl-hit {
	fill: transparent;
	cursor: pointer;
	pointer-events: all;
}

.shl-st { cursor: pointer; }

.shl-st.is-hover .shl-core { r: 7.5; opacity: 1; }
.shl-st.is-hover .shl-lbl { opacity: 1; }
.shl-st.is-hover .shl-halo {
	opacity: 0.35;
	animation: shl-halo 1.6s ease-in-out infinite;
}

.shl-const-map.has-hover .shl-cl { opacity: 0.35; transition: opacity 0.3s ease; }
.shl-const-map.has-hover .shl-cl.is-near { opacity: 1; stroke-width: 2; }

/* Leiser Hinweis, dass man die Sterne berühren kann */
.shl-const-map::after {
	content: "Sterne berühren für mehr";
	position: absolute;
	right: 0;
	bottom: 0;
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	color: color-mix(in srgb, var(--wp--preset--color--base) 45%, transparent);
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.shl-const-map.has-hover::after { opacity: 0; }

.shl-tip {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	width: min(20rem, 100%);
	padding: 1.1rem 1.2rem 1.15rem;
	border-radius: 18px;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	color: var(--wp--preset--color--base);
	background:
		radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--wp--preset--color--lagoon, #74A9B5) 26%, transparent), transparent 60%),
		color-mix(in srgb, var(--wp--preset--color--deep, #10273A) 72%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--lagoon, #74A9B5) 35%, transparent);
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
}

.shl-tip > * {
	opacity: 0;
	translate: 0 6px;
	transition: opacity 0.45s cubic-bezier(.16, 1, .3, 1), translate 0.45s cubic-bezier(.16, 1, .3, 1);
}

.shl-tip.is-on {
	opacity: 1;
	visibility: visible;
	animation: shl-tip-in 0.45s cubic-bezier(.16, 1, .3, 1);
}

.shl-tip.is-on > * { opacity: 1; translate: 0 0; }
.shl-tip.is-on > :nth-child(2) { transition-delay: 0.05s; }
.shl-tip.is-on > :nth-child(3) { transition-delay: 0.1s; }
.shl-tip.is-on > :nth-child(4) { transition-delay: 0.15s; }

@keyframes shl-tip-in {
	from { opacity: 0; filter: blur(6px); clip-path: inset(0 0 100% 0 round 18px); }
	to { opacity: 1; filter: blur(0); clip-path: inset(0 0 0 0 round 18px); }
}

.shl-tip-kicker {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--wp--preset--color--lagoon, currentColor);
}

.shl-tip-name {
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.shl-tip-line {
	font-size: 1.05rem;
	line-height: 1.35;
	color: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
}

.shl-tip-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.45rem;
}

.shl-tip-facts:empty { display: none; }

.shl-tip-facts span {
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 18%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--base) 6%, transparent);
	opacity: 0;
	translate: 0 4px;
	transition: opacity 0.4s ease, translate 0.4s ease;
	transition-delay: calc(0.18s + var(--i, 0) * 0.06s);
}

.shl-tip.is-on .shl-tip-facts span { opacity: 1; translate: 0 0; }

/* Kurzzeile und Stichpunkte: im Editor und ohne Bewegung als Text sichtbar */
.shl-star-tip { font-weight: 600; }
.shl-star-facts { opacity: 0.7; }
.shl-fx .shl-star .shl-star-tip,
.shl-fx .shl-star .shl-star-facts { display: none; }

@media (hover: none) {
	.shl-const-map::after { content: "Sterne antippen für mehr"; }
}

@media (max-width: 781px) {
	.shl-tip {
		padding: 0.85rem 0.95rem;
		left: 0;
		right: 0;
		top: calc(100% + 0.5rem);
		width: auto;
		transform: none !important;
		background:
			radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--wp--preset--color--lagoon, #74A9B5) 22%, transparent), transparent 60%),
			color-mix(in srgb, var(--wp--preset--color--deep, #10273A) 95%, transparent);
	}
	.shl-tip-name { font-size: 1.2rem; }
	.shl-tip-line { font-size: 0.95rem; }
}

/* ---------- Kein Aufblitzen beim Laden ----------
   Der Starttitel bleibt unsichtbar, bis das Script ihn in Wörter zerlegt hat
   und sie aus der Maske steigen. Sicherheitsnetz: nach 3 s ist er in jedem Fall da. */
.shl-fx .is-style-scroll-globe .shl-phase:first-of-type :is(h1, h2):not(.shl-split) {
	opacity: 0;
	animation: shl-failsafe 0s linear 3s forwards;
}

@keyframes shl-failsafe {
	to { opacity: 1; }
}

/* =========================================================
   Logo (Paketform, einfarbig)
   ========================================================= */

:root {
	--shl-logo: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='%23000' stroke='%23000' stroke-width='3.09' stroke-linejoin='round'><path d='M49.87 2.39 L86.03 23.74 L49.78 45.65 L13.95 23.79 Z'/><path d='M8.68 32.67 L45.36 53.76 L45.36 96.36 L8.68 75.11 Z'/><path d='M91.32 32.67 L91.32 75.11 L54.68 96.36 L54.68 53.76 Z'/></g></svg>");
}

.shl-logo-mark,
.shl-header .wp-block-site-title a::before {
	content: "";
	display: inline-block;
	flex: 0 0 auto;
	width: 1.35em;
	height: 1.35em;
	background-color: currentColor;
	-webkit-mask: var(--shl-logo) center / contain no-repeat;
	mask: var(--shl-logo) center / contain no-repeat;
}

.shl-header .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.shl-header .wp-block-site-title a::before {
	width: 1.45em;
	height: 1.45em;
	transition: transform 0.6s cubic-bezier(.16, 1, .3, 1);
}

.shl-header .wp-block-site-title a:hover::before {
	transform: rotate(-8deg) scale(1.06);
}

/* ---------- Logo-Würfel (Was wir machen) ---------- */

.shl-pillars-head { gap: var(--wp--preset--spacing--40); }

.shl-cube {
	width: clamp(4.5rem, 9vw, 8.5rem);
	aspect-ratio: 1;
	flex: 0 0 auto;
	color: var(--wp--preset--color--deep, var(--wp--preset--color--contrast));
}

.shl-cube-svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.shl-face {
	fill: currentColor;
	stroke: currentColor;
	transform-box: view-box;
	transform-origin: 50% 50%;
	/* kurze Glättung, damit einzelne Mausrad-Schritte weich ineinander übergehen */
	transition:
		transform 0.28s ease-out,
		opacity 0.28s ease-out,
		fill 0.35s ease,
		stroke 0.35s ease;
}

/* Zusammensetzen beim Scrollen: --pt, --pl, --pr laufen von 0 bis 1 (ohne JavaScript: fertig) */
.shl-fx .shl-cube .shl-face-top {
	opacity: calc(var(--pt, 1) * 1.25);
	transform: translate(0, calc((1 - var(--pt, 1)) * -22px)) rotate(calc((1 - var(--pt, 1)) * -10deg));
}
.shl-fx .shl-cube .shl-face-left {
	opacity: calc(var(--pl, 1) * 1.25);
	transform: translate(calc((1 - var(--pl, 1)) * -20px), calc((1 - var(--pl, 1)) * 12px)) rotate(calc((1 - var(--pl, 1)) * 8deg));
}
.shl-fx .shl-cube .shl-face-right {
	opacity: calc(var(--pr, 1) * 1.25);
	transform: translate(calc((1 - var(--pr, 1)) * 20px), calc((1 - var(--pr, 1)) * 12px)) rotate(calc((1 - var(--pr, 1)) * -8deg));
}

/* Säule überfahren: passende Fläche hebt sich ab, die anderen treten zurück */
.shl-cube[data-face] .shl-face { opacity: 0.16; }
.shl-cube[data-face="top"] .shl-face-top,
.shl-cube[data-face="left"] .shl-face-left,
.shl-cube[data-face="right"] .shl-face-right {
	opacity: 1;
	fill: var(--wp--preset--color--accent);
	stroke: var(--wp--preset--color--accent);
}
.shl-cube[data-face="top"] .shl-face-top { transform: translate(0, -5px); }
.shl-cube[data-face="left"] .shl-face-left { transform: translate(-4px, 3px); }
.shl-cube[data-face="right"] .shl-face-right { transform: translate(4px, 3px); }

.shl-pillar {
	position: relative;
	transition: border-color 0.4s ease;
}

.shl-pillar::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: 1px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.7s cubic-bezier(.16, 1, .3, 1);
}

.shl-pillar.is-hot::before { transform: scaleX(1); }

/* =========================================================
   Fußzeile
   ========================================================= */

.shl-footer { position: relative; }

.shl-footer .wp-block-site-title {
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0;
}

.shl-footer .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.shl-footer .wp-block-site-title a::before {
	content: "";
	width: 1.75em;
	height: 1.75em;
	background-color: currentColor;
	-webkit-mask: var(--shl-logo) center / contain no-repeat;
	mask: var(--shl-logo) center / contain no-repeat;
}

.shl-footer-claim {
	max-width: 22rem;
	margin-top: 1rem !important;
	line-height: 1.55;
	color: color-mix(in srgb, var(--wp--preset--color--base) 62%, transparent);
}

.shl-footer-head {
	font-weight: 600;
	margin-bottom: 0.9rem !important;
	color: var(--wp--preset--color--base);
}

.shl-footer-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.shl-footer-list li {
	margin: 0 0 0.55rem;
	color: color-mix(in srgb, var(--wp--preset--color--base) 62%, transparent);
}

.shl-footer-list a {
	text-decoration: none;
	color: color-mix(in srgb, var(--wp--preset--color--base) 70%, transparent) !important;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: color 0.25s ease, background-size 0.4s cubic-bezier(.16, 1, .3, 1);
}

.shl-footer-list a:hover,
.shl-footer-list a:focus-visible {
	color: var(--wp--preset--color--base) !important;
	background-size: 100% 1px;
}

.shl-footer .shl-footer-meta {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 12%, transparent);
	padding-top: var(--wp--preset--spacing--40);
	font-size: 0.8125rem;
}

.shl-footer .shl-footer-meta p { opacity: 0.6; margin: 0; }
.shl-footer .shl-footer-meta a { text-decoration: none; }
.shl-footer .shl-footer-meta a:hover { opacity: 1; }

@media (max-width: 781px) {
	.shl-footer-cols { gap: 2rem !important; }
	.shl-footer-cols > .wp-block-column:not(.shl-footer-brand) { flex-basis: calc(50% - 1rem) !important; }
	.shl-footer-cols { flex-wrap: wrap !important; }
}

/* =========================================================
   Menü: Kontakt als dezente Schaltfläche
   ========================================================= */

.shl-header .wp-block-navigation .shl-nav-cta > a {
	padding: 0.45rem 1rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 28%, transparent);
	color: var(--wp--preset--color--base) !important;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.shl-header .wp-block-navigation .shl-nav-cta > a:hover,
.shl-header .wp-block-navigation .shl-nav-cta > a:focus-visible {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--deep, var(--wp--preset--color--contrast)) !important;
}

@media (max-width: 480px) {
	.shl-header .wp-block-navigation { gap: 1rem !important; }
	.shl-header .wp-block-site-title { font-size: 0.95rem; }
}

/* =========================================================
   Kontaktformular
   ========================================================= */

.shl-contact-intro h2 { margin-top: 0.5rem; }

.shl-kontakt { position: relative; }

.shl-form {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
	transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.16, 1, .3, 1), filter 0.45s ease;
}

.shl-form.is-leaving {
	opacity: 0;
	transform: translateY(-12px);
	filter: blur(6px);
}

.shl-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Anliegen als Chips */
.shl-topics {
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}

.shl-topics legend {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.75rem;
	padding: 0;
}

.shl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.shl-chip { position: relative; cursor: pointer; }

.shl-chip input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.shl-chip span {
	display: inline-block;
	padding: 0.55rem 1.05rem;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--line);
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.shl-chip:hover span { border-color: color-mix(in srgb, var(--wp--preset--color--contrast) 40%, transparent); }

.shl-chip input:checked + span {
	background: var(--wp--preset--color--deep, var(--wp--preset--color--contrast));
	border-color: var(--wp--preset--color--deep, var(--wp--preset--color--contrast));
	color: var(--wp--preset--color--base);
}

.shl-chip input:focus-visible + span {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

.shl-chip input:active + span { transform: scale(0.97); }

/* Felder mit schwebender Beschriftung */
.shl-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.4rem 1.5rem;
}

.shl-field {
	position: relative;
	padding-top: 1.1rem;
}

.shl-field.is-wide { grid-column: 1 / -1; }

.shl-field input,
.shl-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
	border-radius: 0;
	background: transparent;
	padding: 0.55rem 0 0.6rem;
	font: inherit;
	font-size: 1.0625rem;
	color: var(--wp--preset--color--contrast);
	outline: none;
	transition: border-color 0.3s ease;
	resize: none;
	-webkit-appearance: none;
	appearance: none;
}

.shl-field textarea { min-height: 2.6rem; line-height: 1.5; }

.shl-field label {
	position: absolute;
	left: 0;
	top: 1.65rem;
	font-size: 1.0625rem;
	color: var(--wp--preset--color--muted);
	pointer-events: none;
	transform-origin: left top;
	transition: transform 0.35s cubic-bezier(.16, 1, .3, 1), color 0.3s ease;
}

.shl-field label em { font-style: normal; opacity: 0.7; }

.shl-field :is(input, textarea):focus + label,
.shl-field :is(input, textarea):not(:placeholder-shown) + label {
	transform: translateY(-1.45rem) scale(0.8);
}

.shl-field :is(input, textarea):focus + label { color: var(--wp--preset--color--accent); }

/* Unterstrich, der sich beim Fokus ausbreitet */
.shl-field::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.5s cubic-bezier(.16, 1, .3, 1);
}

.shl-field:focus-within::after { transform: scaleX(1); }

.shl-field .shl-err { position: absolute; left: 0; top: calc(100% + 0.3rem); }

.shl-field.has-error input,
.shl-field.has-error textarea { border-bottom-color: var(--wp--preset--color--wine, #8a2d3b); }

.shl-err {
	display: block;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--wine, #8a2d3b);
	min-height: 0;
}

.shl-err:empty { display: none; }

/* Zustimmung */
.shl-consent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.75rem;
	align-items: start;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
	margin-top: 0.4rem;
}

.shl-consent input {
	-webkit-appearance: none;
	appearance: none;
	width: 1.15rem;
	height: 1.15rem;
	margin: 0.12rem 0 0;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 35%, transparent);
	border-radius: 5px;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.shl-consent input::after {
	content: "";
	width: 0.55rem;
	height: 0.3rem;
	border-left: 2px solid var(--wp--preset--color--base);
	border-bottom: 2px solid var(--wp--preset--color--base);
	transform: translateY(-1px) rotate(-45deg) scale(0);
	transition: transform 0.25s cubic-bezier(.16, 1, .3, 1);
}

.shl-consent input:checked {
	background: var(--wp--preset--color--deep, var(--wp--preset--color--contrast));
	border-color: var(--wp--preset--color--deep, var(--wp--preset--color--contrast));
}

.shl-consent input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }

.shl-consent.has-error input { border-color: var(--wp--preset--color--wine, #8a2d3b); }

.shl-consent a { color: inherit; }

/* Absenden */
.shl-form-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-top: 0.4rem;
}

.shl-submit {
	position: relative;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	padding: 0.95rem 1.7rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--deep, var(--wp--preset--color--contrast));
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.35s ease;
	isolation: isolate;
}

.shl-submit::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--preset--color--accent);
	transform: translateY(101%);
	transition: transform 0.45s cubic-bezier(.16, 1, .3, 1);
}

.shl-submit:hover::before,
.shl-submit:focus-visible::before { transform: none; }

.shl-submit:hover { box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--wp--preset--color--accent) 70%, transparent); }
.shl-submit:active { transform: scale(0.98); }
.shl-submit:disabled { cursor: progress; }

.shl-form.is-sending .shl-submit-label::after {
	content: "";
	display: inline-block;
	width: 0.85em;
	height: 0.85em;
	margin-left: 0.6em;
	vertical-align: -0.1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: shl-spin 0.8s linear infinite;
}

@keyframes shl-spin { to { transform: rotate(360deg); } }

.shl-form-status {
	margin: 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--wine, #8a2d3b);
}

.shl-form-status:empty { display: none; }

/* Danke-Zustand mit Logo-Würfel */
.shl-form-done {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	padding: var(--wp--preset--spacing--40) 0;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.7s ease, transform 0.9s cubic-bezier(.16, 1, .3, 1);
}

.shl-kontakt.is-done .shl-form-done { opacity: 1; transform: none; }

.shl-form-done .shl-cube {
	width: 4.5rem;
	margin-bottom: 0.75rem;
}

.shl-done-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.shl-done-text {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--muted);
}

@media (max-width: 781px) {
	.shl-fields { grid-template-columns: 1fr; }
}

.shl-form[hidden],
.shl-form-done[hidden] { display: none !important; }

.shl-form-done .shl-cube { margin-left: 0 !important; margin-right: 0 !important; }
.shl-consent + .shl-err { margin-top: -0.9rem; }
.shl-field.is-wide:has(textarea) { margin-bottom: 0.4rem; }

/* ---------- Hero: Unterzeile folgt der Überschrift, Linie lädt zum Scrollen ein ---------- */

.is-style-scroll-globe .shl-phase:first-of-type .shl-lede {
	max-width: 40rem;
	text-wrap: initial;
	text-wrap: balance;
}

.is-style-scroll-globe .shl-phase:first-of-type::after {
	content: "";
	display: block;
	width: 1.5px;
	height: 4.5rem;
	margin: var(--wp--preset--spacing--50) auto 0;
	background:
		linear-gradient(to bottom, transparent, var(--wp--preset--color--base) 55%, transparent) 0 -4.5rem / 1.5px 4.5rem no-repeat,
		color-mix(in srgb, currentColor 24%, transparent);
	box-shadow: 0 0 12px color-mix(in srgb, var(--wp--preset--color--lagoon, currentColor) 35%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
	.shl-fx .is-style-scroll-globe .shl-phase:first-of-type .shl-lede {
		opacity: 0;
		transform: translateY(12px);
		animation: shl-lede-in 1.2s cubic-bezier(.16, 1, .3, 1) 1.1s forwards;
	}

	.shl-fx .is-style-scroll-globe .shl-phase:first-of-type::after {
		opacity: 0;
		animation:
			shl-lede-in 1s ease 1.8s forwards,
			shl-cue 2.4s cubic-bezier(.65, 0, .35, 1) 2.4s infinite;
	}
}

@keyframes shl-lede-in {
	to { opacity: 1; transform: none; }
}

@keyframes shl-cue {
	0% { background-position: 0 -4.5rem, 0 0; }
	100% { background-position: 0 4.5rem, 0 0; }
}

@media (max-width: 781px) {
	.is-style-scroll-globe .shl-phase:first-of-type .shl-lede br { display: none; }
	.is-style-scroll-globe .shl-phase:first-of-type .shl-lede { text-wrap: balance; }
}

/* =========================================================
   Unternehmenskarten mit Illustration
   ========================================================= */

.shl-panel { width: min(86vw, 44rem); }

.shl-panel .shl-panel-kicker { opacity: 0.75; }

.shl-panel .shl-panel-art {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0.5rem calc(var(--wp--preset--spacing--40) * -0.5) 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	will-change: transform, opacity;
	transform-origin: center center;
}

.shl-panel .shl-panel-art img {
	width: 100%;
	height: 100%;
	max-height: 22rem;
	object-fit: contain;
	display: block;
}

.shl-panel h3 {
	margin-top: 0.5rem !important;
	padding-top: 0 !important;
}

.shl-panel .shl-panel-text {
	max-width: 32rem;
	opacity: 0.82;
	margin-top: 0.75rem !important;
	/* Immer mindestens drei Zeilen hoch, damit Titel und Links aller Karten auf einer Linie stehen */
	min-height: calc(1.4em * 3);
}

.shl-panel .shl-panel-link { margin-top: var(--wp--preset--spacing--40) !important; }

.shl-panel .shl-panel-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.6rem 1.1rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
	color: inherit;
	text-decoration: none !important;
	font-weight: 600;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.shl-panel .shl-panel-link a::after {
	content: "";
	width: 0.7em;
	height: 0.7em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 2h7v7M10 2 2 10' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 2h7v7M10 2 2 10' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.3s ease;
}

.shl-panel .shl-panel-link a:hover,
.shl-panel .shl-panel-link a:focus-visible {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--deep, #10273A);
}

.shl-panel .shl-panel-link a:hover::after { transform: translate(2px, -2px); }

@media (max-width: 781px) {
	.shl-panel .shl-panel-art img { max-height: 13rem; }
	.shl-panel .shl-panel-text { font-size: 1.05rem !important; }
}

/* =========================================================
   Plugins und Schnittstellen
   ========================================================= */

.shl-text-link a {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 100% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	padding-bottom: 2px;
	transition: background-size 0.4s ease, color 0.2s ease;
}

.shl-text-link a:hover { background-size: 0% 1px; color: var(--wp--preset--color--accent); }

.shl-hub {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
}

.shl-hub > .shl-hub-item {
	margin: 0 !important;
	padding: 0.6rem 1.1rem;
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: -0.01em;
	white-space: nowrap;
	box-shadow: 0 10px 24px -18px rgba(16, 39, 58, 0.5);
	transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.shl-hub > .shl-hub-item.is-api {
	background: var(--wp--preset--color--deep, var(--wp--preset--color--contrast));
	border-color: var(--wp--preset--color--deep, var(--wp--preset--color--contrast));
	color: var(--wp--preset--color--base);
}

.shl-hub > .shl-hub-core {
	width: 4rem;
	aspect-ratio: 1;
	margin: 0 0.5rem 0 0 !important;
}

.shl-hub-lines { display: none; }

/* Kreis-Anordnung (ab Tablet, per Script aktiviert) */
.shl-hub.is-hub {
	display: block;
	height: clamp(26rem, 38vw, 34rem);
}

.shl-hub.is-hub > .shl-hub-item {
	position: absolute;
	transform: translate(-50%, -50%);
	z-index: 2;
}

.shl-hub.is-hub > .shl-hub-core {
	position: absolute;
	left: 50%;
	top: 50%;
	width: clamp(6rem, 9vw, 8rem);
	margin: 0 !important;
	transform: translate(-50%, -50%);
	z-index: 2;
}

.shl-hub.is-hub > .shl-hub-core::before {
	content: "";
	position: absolute;
	inset: -38%;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--lagoon, #74A9B5) 28%, transparent), transparent 70%);
	z-index: -1;
	animation: shl-breathe 4s ease-in-out infinite;
}

@keyframes shl-breathe {
	0%, 100% { transform: scale(0.92); opacity: 0.7; }
	50% { transform: scale(1.08); opacity: 1; }
}

.shl-hub.is-hub .shl-hub-lines {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	z-index: 1;
	pointer-events: none;
}

.shl-hub-lines path {
	fill: none;
	stroke: var(--wp--preset--color--accent);
	stroke-width: 1.2;
	stroke-opacity: 0.35;
	stroke-dasharray: 0.02 0.03;
	animation: shl-hub-flow 2.4s linear infinite;
	animation-delay: calc(var(--i, 0) * -0.2s);
	transition: stroke-opacity 0.3s ease, stroke-width 0.3s ease;
}

@keyframes shl-hub-flow { to { stroke-dashoffset: -0.1; } }

.shl-hub.has-hot .shl-hub-lines path { stroke-opacity: 0.12; }
.shl-hub .shl-hub-lines path.is-hot { stroke-opacity: 0.9; stroke-width: 2; }
.shl-hub > .shl-hub-item.is-hot {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--wp--preset--color--accent) 70%, transparent);
}
.shl-hub > .shl-hub-item.is-api.is-hot { color: var(--wp--preset--color--base); background: var(--wp--preset--color--accent); }

/* Einblenden: Einträge fliegen von der Mitte nach außen */
.shl-fx .shl-hub.is-hub:not(.is-in) > .shl-hub-item {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.6);
}

.shl-fx .shl-hub.is-hub > .shl-hub-item {
	transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.16, 1, .3, 1), border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
	transition-delay: calc(var(--i, 0) * 0.06s), calc(var(--i, 0) * 0.06s), 0s, 0s, 0s, 0s;
}

.shl-fx .shl-hub.is-hub:not(.is-in) .shl-hub-lines { opacity: 0; }
.shl-hub.is-hub .shl-hub-lines { transition: opacity 1s ease 0.5s; }

.editor-styles-wrapper .shl-hub > .shl-hub-core { width: 3rem; }

/* Feinschliff Kennzahlen und Kartenhöhe */
.shl-stats .shl-count { font-size: clamp(2.4rem, 4.4vw, 4.6rem) !important; }

@media (max-width: 781px) {
	.shl-stats .shl-count { font-size: clamp(1.9rem, 8.5vw, 2.8rem) !important; }
}

.shl-panel { min-height: min(58vh, 34rem); }
.shl-panel .shl-panel-art img { max-height: 15rem; }

.shl-fx .is-style-scroll-x > .shl-stage { padding-top: 5.5rem !important; }

@media (max-height: 820px) and (min-width: 782px) {
	.shl-panel .shl-panel-art img { max-height: 11rem; }
	.shl-panel h3 { font-size: clamp(1.9rem, 3.6vw, 3.2rem) !important; }
}

/* =========================================================
   Plugins auf dunkler Fläche
   ========================================================= */

.shl-plugins {
	position: relative;
	overflow: hidden;
	background-image:
		radial-gradient(55% 60% at 72% 50%, color-mix(in srgb, var(--wp--preset--color--lagoon, #74A9B5) 16%, transparent), transparent 70%);
}

.shl-plugins .shl-cube { color: var(--wp--preset--color--base); }

.shl-checks {
	list-style: none;
	padding: 0;
	margin: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--40) !important;
	display: grid;
	gap: 0.9rem;
}

.shl-checks li {
	position: relative;
	padding-left: 2rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--wp--preset--color--base) 66%, transparent);
}

.shl-checks li strong { color: var(--wp--preset--color--base); font-weight: 600; }

.shl-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--lagoon, #74A9B5) 22%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--lagoon, #74A9B5) 55%, transparent);
}

.shl-checks li::after {
	content: "";
	position: absolute;
	left: 0.38rem;
	top: calc(0.2em + 0.36rem);
	width: 0.45rem;
	height: 0.24rem;
	border-left: 1.6px solid var(--wp--preset--color--base);
	border-bottom: 1.6px solid var(--wp--preset--color--base);
	transform: rotate(-45deg);
}

.shl-plugins .shl-text-link a { color: var(--wp--preset--color--base); }
.shl-plugins .shl-text-link a:hover { color: var(--wp--preset--color--lagoon, #74A9B5); }

/* Kategoriefarben */
.shl-plugins { --cat-shop: var(--wp--preset--color--lagoon, #74A9B5); --cat-market: var(--wp--preset--color--amber, #C7A97B); --cat-erp: #B9A3D6; --cat-api: var(--wp--preset--color--base); }

.shl-plugins .shl-hub > .shl-hub-item {
	background: color-mix(in srgb, var(--wp--preset--color--base) 7%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--base) 16%, transparent);
	color: var(--wp--preset--color--base);
	box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.shl-plugins .shl-hub > .shl-hub-item::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--cat, var(--cat-shop));
	box-shadow: 0 0 10px var(--cat, var(--cat-shop));
}

.shl-plugins .shl-cat-shop { --cat: var(--cat-shop); }
.shl-plugins .shl-cat-market { --cat: var(--cat-market); }
.shl-plugins .shl-cat-erp { --cat: var(--cat-erp); }
.shl-plugins .shl-cat-api { --cat: var(--cat-api); }

.shl-plugins .shl-hub > .shl-hub-item.is-api {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--deep, #10273A);
}

.shl-plugins .shl-hub > .shl-hub-item.is-api::before { background: var(--wp--preset--color--deep, #10273A); box-shadow: none; }

.shl-plugins .shl-hub > .shl-hub-item.is-hot {
	border-color: var(--cat, var(--wp--preset--color--base));
	color: var(--wp--preset--color--base);
	box-shadow: 0 0 0 1px var(--cat, transparent), 0 16px 34px -14px var(--cat, transparent);
}

.shl-plugins .shl-hub-lines path {
	stroke: var(--cat, var(--wp--preset--color--base));
	stroke-opacity: 0.32;
}

.shl-plugins .shl-hub-lines path.shl-cat-shop { --cat: var(--cat-shop); }
.shl-plugins .shl-hub-lines path.shl-cat-market { --cat: var(--cat-market); }
.shl-plugins .shl-hub-lines path.shl-cat-erp { --cat: var(--cat-erp); }
.shl-plugins .shl-hub-lines path.shl-cat-api { --cat: var(--cat-api); }
.shl-plugins .shl-hub.has-hot .shl-hub-lines path { stroke-opacity: 0.1; }
.shl-plugins .shl-hub .shl-hub-lines path.is-hot { stroke-opacity: 1; stroke-width: 2; }

.shl-orbit {
	fill: none;
	stroke: var(--wp--preset--color--base);
	stroke-opacity: 0.12;
	stroke-width: 1;
	stroke-dasharray: 0.004 0.012;
	animation: shl-orbit 60s linear infinite;
}

.shl-orbit.is-inner { stroke-opacity: 0.08; animation-duration: 40s; animation-direction: reverse; }

@keyframes shl-orbit { to { stroke-dashoffset: -1; } }

.shl-packet.is-in { fill: var(--wp--preset--color--amber, #C7A97B); filter: drop-shadow(0 0 5px var(--wp--preset--color--amber, #C7A97B)); }
.shl-packet.is-out { fill: var(--wp--preset--color--lagoon, #74A9B5); filter: drop-shadow(0 0 5px var(--wp--preset--color--lagoon, #74A9B5)); }



.shl-hub-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.4rem;
	margin-top: 1rem;
	font-size: 0.8125rem;
	color: color-mix(in srgb, var(--wp--preset--color--base) 62%, transparent);
}

.shl-hub-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }

.shl-hub-legend span::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--cat);
}

.shl-plugins .shl-hub-legend .shl-cat-shop { --cat: var(--cat-shop); }
.shl-plugins .shl-hub-legend .shl-cat-market { --cat: var(--cat-market); }
.shl-plugins .shl-hub-legend .shl-cat-erp { --cat: var(--cat-erp); }
.shl-plugins .shl-hub-legend .shl-cat-api { --cat: var(--cat-api); }

.shl-plugins .shl-hub.is-hub > .shl-hub-core::before {
	background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--lagoon, #74A9B5) 40%, transparent), transparent 70%);
}

/* ---------- Constellation als Kern des Plugin-Knotens ---------- */

.shl-text-link { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }

.shl-const-kicker { color: var(--wp--preset--color--lagoon, #74A9B5); margin-bottom: 0.4rem !important; }



/* =========================================================
   Sprachwahl DE | EN
   ========================================================= */

.shl-header-right {
	gap: 1.5rem;
	align-items: center;
}

.shl-lang {
	display: inline-flex;
	align-items: center;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1;
}

.shl-lang a {
	position: relative;
	padding: 0.4rem 0.45rem;
	color: color-mix(in srgb, var(--wp--preset--color--base) 50%, transparent);
	text-decoration: none;
	transition: color 0.25s ease;
}

.shl-lang a + a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1px;
	height: 0.8em;
	background: currentColor;
	opacity: 0.45;
	transform: translateY(-50%);
}

.shl-lang a:hover,
.shl-lang a:focus-visible,
.shl-lang a.is-active {
	color: var(--wp--preset--color--base);
}

.editor-styles-wrapper .shl-lang span { padding: 0.4rem 0.45rem; opacity: 0.6; }
.editor-styles-wrapper .shl-lang .is-active { opacity: 1; }

@media (max-width: 781px) {
	.shl-header-right { gap: 0.6rem; }
	.shl-lang { font-size: 0.72rem; }
	.shl-lang a { padding: 0.4rem 0.3rem; }
}

@media (hover: none) {
	:lang(en) .shl-const-map::after { content: "Tap the stars for more"; }
}

/* Kopf auf dem Handy: eine Zeile mit Logo, Kontakt und Sprachwahl */
@media (max-width: 600px) {
	.shl-header .wp-block-site-title { white-space: nowrap; }
	.shl-header .wp-block-navigation,
	.shl-header .wp-block-navigation__container { flex-wrap: nowrap !important; }
	.shl-header .wp-block-navigation-item:not(.shl-nav-cta) { display: none; }
	.shl-header .wp-block-navigation .shl-nav-cta > a { padding: 0.4rem 0.85rem; }
}

/* „Was wir machen“ rückt näher an den Satz davor: weniger Leerraum nach oben */
.shl-pillars-wrap { padding-top: var(--wp--preset--spacing--50) !important; }
.shl-fx .shl-pillars-wrap {
	position: relative;
	z-index: 1;
	margin-top: -22vh !important;
	background: var(--wp--preset--color--base);
}
