/**
 * SponsorSpot – Gestaltung nach CI-Handbuch 1.0.
 *
 * Navy trägt Struktur und Text, Rot setzt Akzente und markiert wichtige
 * Aktionen. 8-px-Raster, Radien 8–12 px, Open Sans 400/600/700.
 * Rot und Navy werden nicht als Text-Hintergrund-Paar verwendet.
 *
 * @package HM_Sponsoring
 */

:root {
	--hmsp-navy: var(--wp--preset--color--navy, #142b4a);
	--hmsp-red: var(--wp--preset--color--red, #a51c23);
	--hmsp-white: var(--wp--preset--color--white, #fff);
	--hmsp-canvas: var(--wp--preset--color--canvas, #f4f6f9);
	--hmsp-muted: var(--wp--preset--color--muted, #5d6b7d);
	--hmsp-line: var(--wp--preset--color--line, #dce3ec);
	--hmsp-navy-soft: var(--wp--preset--color--navy-soft, #e8eef5);
	--hmsp-red-soft: var(--wp--preset--color--red-soft, #f9edee);
	--hmsp-on-navy: rgba(255, 255, 255, 0.78);
	--hmsp-on-navy-soft: rgba(255, 255, 255, 0.6);
	--hmsp-line-on-navy: rgba(255, 255, 255, 0.14);
	--hmsp-radius: 12px;
	--hmsp-radius-sm: 8px;
	--hmsp-shadow-sm: 0 1px 2px rgba(20, 43, 74, 0.06), 0 4px 12px -4px rgba(20, 43, 74, 0.08);
	--hmsp-shadow: 0 2px 4px rgba(20, 43, 74, 0.04), 0 24px 48px -20px rgba(20, 43, 74, 0.22);
	--hmsp-shadow-xl: 0 4px 8px rgba(5, 14, 28, 0.12), 0 48px 96px -32px rgba(5, 14, 28, 0.55);
	--hmsp-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--hmsp-space: clamp(5rem, 11vw, 10rem);
	--hmsp-header-h: 88px;
	--hmsp-gutter: clamp(1.25rem, 5vw, 3rem);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--hmsp-header-h) + 8px);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body.hmsp {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "kern", "liga";
}

::selection {
	background: var(--hmsp-navy);
	color: var(--hmsp-white);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--hmsp-red);
	outline-offset: 3px;
}

.is-navy :where(a, button, [tabindex]):focus-visible,
.hmsp-hero :where(a, button, [tabindex]):focus-visible {
	outline-color: var(--hmsp-white);
}

.hmsp-form :where(a, button, input, select, textarea):focus-visible {
	outline-color: var(--hmsp-red);
}

.hmsp-main,
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* =========================================================
   Kopfbereich
   ========================================================= */

.hmsp-header-wrap {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
}

.admin-bar .hmsp-header-wrap {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .hmsp-header-wrap {
		top: 46px;
	}
}

body:not(.home) .hmsp-main {
	padding-top: var(--hmsp-header-h);
}

.hmsp-header {
	padding-block: 22px;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.35s var(--hmsp-ease), border-color 0.35s var(--hmsp-ease), padding 0.35s var(--hmsp-ease), box-shadow 0.35s var(--hmsp-ease);
}

.hmsp-header.is-scrolled,
body:not(.home) .hmsp-header {
	padding-block: 14px;
	background: var(--hmsp-white);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	backdrop-filter: saturate(180%) blur(16px);
	border-bottom-color: var(--hmsp-line);
	box-shadow: 0 10px 30px -20px rgba(20, 43, 74, 0.35);
}

.hmsp-header__inner {
	gap: 2rem;
}

.hmsp-header__nav {
	gap: 2.25rem;
}

.hmsp-logo {
	position: relative;
	display: inline-flex;
	line-height: 0;
}

.hmsp-logo img {
	display: block;
	width: auto;
	height: 40px;
	min-width: 213px;
	transition: opacity 0.35s var(--hmsp-ease);
}

.hmsp-logo .hmsp-logo__light {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.home .hmsp-header:not(.is-scrolled) .hmsp-logo__primary {
	opacity: 0;
}

.home .hmsp-header:not(.is-scrolled) .hmsp-logo__light {
	opacity: 1;
}

.hmsp-nav .wp-block-navigation__container {
	gap: 2.25rem;
}

.hmsp-nav .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--hmsp-navy);
	text-decoration: none;
	transition: color 0.25s var(--hmsp-ease);
}

.home .hmsp-header:not(.is-scrolled) .hmsp-nav .wp-block-navigation-item__content {
	color: var(--hmsp-on-navy);
}

.home .hmsp-header:not(.is-scrolled) .hmsp-nav .wp-block-navigation-item__content:hover {
	color: var(--hmsp-white);
}

.hmsp-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--hmsp-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--hmsp-ease);
}

.hmsp-nav .wp-block-navigation-item__content:hover::after {
	transform: scaleX(1);
}

.home .hmsp-header:not(.is-scrolled) .hmsp-nav .wp-block-navigation__responsive-container-open {
	color: var(--hmsp-white);
}

.hmsp-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem var(--hmsp-gutter);
	background: var(--hmsp-white);
	color: var(--hmsp-navy);
}

.hmsp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--hmsp-navy) !important;
}

.hmsp-nav .wp-block-navigation__responsive-container-close {
	color: var(--hmsp-navy);
}

@media (min-width: 600px) and (max-width: 1023px) {
	.hmsp-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.hmsp-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.hmsp-header__cta .wp-block-button__link {
	padding: 0.8125rem 1.375rem;
	white-space: nowrap;
}

@media (max-width: 599px) {
	.hmsp-header .hmsp-header__cta.wp-block-buttons {
		display: none;
	}

	.hmsp-logo img {
		height: 38px;
		min-width: 202px;
	}
}

/* =========================================================
   Schaltflächen
   ========================================================= */

.wp-element-button,
.wp-block-button__link {
	letter-spacing: 0.005em;
	transition: background-color 0.25s var(--hmsp-ease), color 0.25s var(--hmsp-ease), box-shadow 0.25s var(--hmsp-ease), transform 0.25s var(--hmsp-ease);
}

.wp-block-button:not(.is-style-hmsp-ghost) .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px -14px rgba(165, 28, 35, 0.6);
}

.wp-block-button.is-style-hmsp-outline .wp-block-button__link {
	background: var(--hmsp-navy);
	color: var(--hmsp-white);
}

.wp-block-button.is-style-hmsp-ghost .wp-block-button__link {
	background: transparent;
	color: var(--hmsp-navy);
	box-shadow: inset 0 0 0 1.5px var(--hmsp-line);
}

.wp-block-button.is-style-hmsp-ghost .wp-block-button__link:hover {
	box-shadow: inset 0 0 0 1.5px var(--hmsp-navy);
}

.hmsp-hero .wp-block-button.is-style-hmsp-ghost .wp-block-button__link {
	color: var(--hmsp-white);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}

.hmsp-hero .wp-block-button.is-style-hmsp-ghost .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 0 0 1.5px var(--hmsp-white);
}

/* =========================================================
   Typografie & Abschnittsköpfe
   ========================================================= */

.hmsp-section {
	position: relative;
	margin-block: 0;
	padding-block: var(--hmsp-space);
}

.hmsp-section.is-white {
	background: var(--hmsp-white);
}

.hmsp-section.is-canvas {
	background: var(--hmsp-canvas);
}

.hmsp-section.is-navy {
	background: var(--hmsp-navy);
	color: var(--hmsp-white);
}

.is-navy h2,
.is-navy h3,
.is-navy h4 {
	color: var(--hmsp-white);
}

.hmsp-head {
	margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.hmsp-head > * {
	margin-block-start: 0 !important;
}

.hmsp-head__title {
	max-width: 22ch;
	margin: 0;
	font-size: clamp(2.25rem, 4.6vw, 3.875rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.035em;
}

.hmsp-head.is-split {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	column-gap: clamp(2rem, 7vw, 7rem);
	align-items: end;
}

.hmsp-head__text {
	max-width: 30rem;
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--hmsp-muted);
}

.is-navy .hmsp-head__text {
	color: var(--hmsp-on-navy);
}

@media (max-width: 900px) {
	.hmsp-head.is-split {
		grid-template-columns: 1fr;
		row-gap: 1.5rem;
	}
}

.hmsp-note {
	max-width: 52rem;
	margin: clamp(2.5rem, 5vw, 4rem) 0 0;
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--hmsp-muted);
}

.is-navy .hmsp-note {
	color: var(--hmsp-on-navy-soft);
}

.hmsp-tag {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
	background: var(--hmsp-navy-soft);
	color: var(--hmsp-navy);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.hmsp-ticks {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hmsp-ticks li {
	position: relative;
	padding: 0.875rem 0 0.875rem 2rem;
	border-top: 1px solid var(--hmsp-line);
	font-size: 1rem;
	line-height: 1.5;
}

.hmsp-ticks li::before {
	content: "";
	position: absolute;
	left: 0.125rem;
	top: 1.25rem;
	width: 0.75rem;
	height: 0.375rem;
	border-left: 2px solid var(--hmsp-red);
	border-bottom: 2px solid var(--hmsp-red);
	transform: rotate(-45deg);
}

/* =========================================================
   Hero mit räumlicher Halle
   ========================================================= */

.hmsp-hero {
	position: relative;
	overflow: hidden;
	margin-block: 0;
	padding-top: calc(var(--hmsp-header-h) + clamp(2.5rem, 6vw, 5rem));
	padding-bottom: 0;
	background: var(--hmsp-navy);
	color: var(--hmsp-white);
	isolation: isolate;
}

.hmsp-hero::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -10%;
	z-index: -1;
	width: 120%;
	height: 70%;
	transform: translateX(-50%);
	background: radial-gradient(50% 50% at 50% 50%, rgba(232, 238, 245, 0.16), transparent 70%);
	pointer-events: none;
}

.hmsp-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	height: 38%;
	background: linear-gradient(to bottom, rgba(20, 43, 74, 0), var(--hmsp-navy) 92%);
	pointer-events: none;
}

.hmsp-hero__copy > * {
	margin-block-start: 0 !important;
}

.hmsp-hero__title {
	max-width: 19ch;
	margin: 0;
	color: var(--hmsp-white);
	font-size: clamp(2.75rem, 7vw, 6.25rem);
	font-weight: 700;
	line-height: 0.96;
	letter-spacing: -0.045em;
}

.hmsp-hero__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem 4rem;
	margin-top: clamp(2rem, 4vw, 3rem) !important;
}

.hmsp-hero__lead {
	max-width: 36rem;
	margin: 0;
	font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
	line-height: 1.6;
	color: var(--hmsp-on-navy);
}

.hmsp-hero__actions {
	flex: none;
	gap: 0.75rem;
	margin: 0 !important;
}

.hmsp-hero__actions .wp-block-button__link {
	padding: 1.125rem 1.875rem;
	font-size: 1rem;
}

/* Räumliche Halle */

.hmsp-arena3d {
	position: relative;
	height: clamp(280px, 40vw, 560px);
	margin-top: clamp(2rem, 4vw, 3.5rem) !important;
	perspective: 2400px;
	perspective-origin: 50% -40%;
	--hmsp-tilt: 60deg;
}

.hmsp-arena3d__scene {
	position: absolute;
	top: 0;
	left: 50%;
	width: min(1120px, 92vw);
	transform: translateX(-50%);
	transform-style: preserve-3d;
}

.hmsp-arena3d__floor {
	position: relative;
	transform: rotateX(var(--hmsp-tilt));
	transform-origin: 50% 0;
	transform-style: preserve-3d;
}

.hmsp-arena3d__floor .hmsp-court {
	position: relative;
	border-radius: 10px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 60px 140px rgba(0, 0, 0, 0.45);
}

.hmsp-arena3d__floor .hmsp-space.is-selected rect {
	animation: hmsp-tile-glow 2.4s ease-in-out infinite;
}

@keyframes hmsp-tile-glow {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.6;
	}
}

.hmsp-arena3d__boards {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	pointer-events: none;
}

.hmsp-led {
	position: absolute;
	top: 3.5%;
	width: 28.6%;
	height: 10.5%;
	transform: rotateX(-90deg);
	transform-origin: 50% 100%;
}

.hmsp-led:nth-child(1) {
	left: 5.85%;
}

.hmsp-led:nth-child(2) {
	left: 36.77%;
}

.hmsp-led:nth-child(3) {
	left: 67.69%;
}

.hmsp-led__screen {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	height: 100%;
	border-radius: 4px;
	background:
		radial-gradient(1.5px 1.5px at 2px 2px, rgba(255, 255, 255, 0.12) 50%, transparent 52%) 0 0 / 4px 4px,
		linear-gradient(180deg, #1d3a60, #0f223b);
	box-shadow: 0 0 0 2px #0b1a2e, 0 0 40px rgba(232, 238, 245, 0.18);
}

.hmsp-led.is-active .hmsp-led__screen {
	background:
		radial-gradient(1.5px 1.5px at 2px 2px, rgba(255, 255, 255, 0.14) 50%, transparent 52%) 0 0 / 4px 4px,
		linear-gradient(180deg, #b8222a, var(--hmsp-red));
	box-shadow: 0 0 0 2px #7d151b, 0 0 60px rgba(165, 28, 35, 0.55);
}

.hmsp-led__track {
	display: flex;
	flex: none;
	white-space: nowrap;
	animation: hmsp-ticker 22s linear infinite;
}

.hmsp-led.is-active .hmsp-led__track {
	animation-duration: 16s;
}

.hmsp-led__track span {
	padding-right: 2.5em;
	font-size: clamp(0.5625rem, 1.15vw, 0.9375rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--hmsp-white);
}

@keyframes hmsp-ticker {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-25%);
	}
}

.hmsp-arena3d__note {
	position: absolute;
	top: 10%;
	left: calc(50% + clamp(8rem, 18vw, 17rem));
	display: grid;
	gap: 0.125rem;
	padding: 0.875rem 1.125rem 0.875rem 1.375rem;
	border-radius: var(--hmsp-radius-sm);
	background: var(--hmsp-white);
	color: var(--hmsp-navy);
	box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.45);
	font-size: 0.875rem;
}

.hmsp-arena3d__note::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.75rem;
	bottom: 0.75rem;
	width: 3px;
	border-radius: 0 2px 2px 0;
	background: var(--hmsp-red);
}

.hmsp-arena3d__note-title {
	font-weight: 700;
}

.hmsp-arena3d__note-text {
	color: var(--hmsp-muted);
}

@media (prefers-reduced-motion: reduce) {
	.hmsp-led__track,
	.hmsp-arena3d__floor .hmsp-space.is-selected rect {
		animation: none;
	}
}

@media (max-width: 781px) {
	.hmsp-hero__row {
		flex-direction: column;
		align-items: flex-start;
	}

	.hmsp-arena3d {
		height: 62vw;
		perspective: 900px;
	}

	.hmsp-arena3d__scene {
		width: 150vw;
	}

	.hmsp-arena3d__note {
		display: none;
	}
}

/* =========================================================
   Farbfelder
   ========================================================= */

.hmsp-swatch {
	display: inline-block;
	flex: none;
	width: 0.875rem;
	height: 0.625rem;
	border-radius: 3px;
	background: var(--hmsp-white);
	box-shadow: inset 0 0 0 1.5px rgba(20, 43, 74, 0.4);
}

.hmsp-swatch.is-booked {
	background: repeating-linear-gradient(45deg, #dce3ec 0 2px, #c5d0dd 2px 4px);
	box-shadow: none;
}

.hmsp-swatch.is-led {
	background: var(--hmsp-navy);
	box-shadow: none;
}

.hmsp-swatch.is-selected {
	background: var(--hmsp-red);
	box-shadow: none;
}

/* =========================================================
   Ablauf mit mitlaufendem Hallenplan
   ========================================================= */

.hmsp-story {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 7vw, 7rem);
	margin: 0 auto;
}

.hmsp-story__visual {
	position: sticky;
	top: calc(var(--hmsp-header-h) + 8vh);
	align-self: start;
}

.hmsp-story__frame {
	position: relative;
	padding: clamp(1.25rem, 2.5vw, 2rem);
	border-radius: var(--hmsp-radius);
	background: var(--hmsp-white);
	box-shadow: var(--hmsp-shadow);
}

.hmsp-story .hmsp-space rect,
.hmsp-story .hmsp-space text {
	transition: fill 0.4s var(--hmsp-ease), stroke 0.4s var(--hmsp-ease);
}

.hmsp-story[data-step="1"] .hmsp-space.is-free.is-floor rect {
	stroke: var(--hmsp-navy);
	stroke-width: 2;
}

.hmsp-story[data-step="1"] .hmsp-space.is-selected rect {
	fill: var(--hmsp-white);
	stroke: var(--hmsp-navy);
	filter: none;
}

.hmsp-story[data-step="1"] .hmsp-space.is-selected text {
	fill: var(--hmsp-navy);
}

.hmsp-story[data-step="1"] .hmsp-space.is-led rect {
	stroke: var(--hmsp-red);
	stroke-width: 2;
}

.hmsp-story[data-step="4"] .hmsp-space.is-selected rect {
	fill: var(--hmsp-navy);
	stroke: var(--hmsp-navy);
	filter: none;
}

.hmsp-story__card {
	position: absolute;
	right: clamp(-1.5rem, -2vw, -0.5rem);
	bottom: clamp(-1.5rem, -2vw, -0.5rem);
	display: grid;
	gap: 0.25rem;
	min-width: 15rem;
	padding: 1.125rem 1.25rem;
	border-radius: var(--hmsp-radius);
	background: var(--hmsp-white);
	color: var(--hmsp-navy);
	box-shadow: var(--hmsp-shadow-xl);
	font-size: 0.875rem;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.45s var(--hmsp-ease), transform 0.45s var(--hmsp-ease);
	pointer-events: none;
}

.hmsp-story[data-step="1"] .hmsp-story__card.is-step-1,
.hmsp-story[data-step="2"] .hmsp-story__card.is-step-2,
.hmsp-story[data-step="3"] .hmsp-story__card.is-step-3,
.hmsp-story[data-step="4"] .hmsp-story__card.is-step-4 {
	opacity: 1;
	transform: none;
}

.hmsp-story__card strong {
	font-size: 1rem;
	font-weight: 700;
}

.hmsp-story__card > span {
	color: var(--hmsp-muted);
}

.hmsp-story__card dl {
	margin: 0.5rem 0 0;
}

.hmsp-story__card dl div {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.5rem 0;
	border-top: 1px solid var(--hmsp-line);
}

.hmsp-story__card dt {
	color: var(--hmsp-muted);
}

.hmsp-story__card dd {
	margin: 0;
	font-weight: 700;
}

.hmsp-story__field {
	display: block;
	min-height: 2.125rem;
	margin-top: 0.375rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--hmsp-line);
	border-radius: 6px;
	background: var(--hmsp-canvas);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--hmsp-navy) !important;
}

.hmsp-story__button {
	display: block;
	margin-top: 0.625rem;
	padding: 0.625rem;
	border-radius: 6px;
	background: var(--hmsp-red);
	color: var(--hmsp-white) !important;
	font-weight: 600;
	text-align: center;
}

.hmsp-story__check {
	position: relative;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: 0.375rem;
	border-radius: 50%;
	background: var(--hmsp-navy);
}

.hmsp-story__check::after {
	content: "";
	position: absolute;
	left: 0.7rem;
	top: 0.75rem;
	width: 0.875rem;
	height: 0.4375rem;
	border-left: 2px solid var(--hmsp-white);
	border-bottom: 2px solid var(--hmsp-white);
	transform: rotate(-45deg);
}

.hmsp-story__steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hmsp-story__step {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 62vh;
	opacity: 0.32;
	transition: opacity 0.5s var(--hmsp-ease);
}

.hmsp-story__step:first-child {
	min-height: 42vh;
	justify-content: flex-start;
}

.hmsp-story__step.is-active {
	opacity: 1;
}

.hmsp-story__num {
	margin-bottom: 1rem;
	font-size: 0.9375rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--hmsp-red);
}

.hmsp-story__step h3 {
	margin: 0 0 1rem;
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.hmsp-story__step p {
	max-width: 28rem;
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--hmsp-muted);
}

@media (max-width: 900px) {
	.hmsp-story {
		grid-template-columns: 1fr;
	}

	.hmsp-story__visual {
		position: relative;
		top: auto;
	}

	.hmsp-story__card {
		display: none;
	}

	.hmsp-story__step,
	.hmsp-story__step:first-child {
		min-height: 0;
		padding: 2rem 0;
		border-top: 1px solid var(--hmsp-line);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hmsp-story__step {
		opacity: 1;
	}
}

/* =========================================================
   Verwaltung als Übersicht
   ========================================================= */

.hmsp-bento {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-areas:
		"gantt gantt inbox"
		"fields roles inbox";
	gap: 1.25rem;
}

.hmsp-tile {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	padding: clamp(1.5rem, 2.6vw, 2.25rem);
	border: 1px solid var(--hmsp-line-on-navy);
	border-radius: var(--hmsp-radius);
	background: rgba(255, 255, 255, 0.035);
}

.hmsp-tile:nth-child(1) {
	grid-area: gantt;
}

.hmsp-tile:nth-child(2) {
	grid-area: inbox;
}

.hmsp-tile:nth-child(3) {
	grid-area: fields;
}

.hmsp-tile:nth-child(4) {
	grid-area: roles;
}

.hmsp-tile h3 {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	letter-spacing: -0.015em;
}

.hmsp-tile header p {
	max-width: 34rem;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--hmsp-on-navy);
}

.hmsp-gantt {
	display: grid;
	gap: 0.625rem;
	margin-top: auto;
	font-size: 0.8125rem;
}

.hmsp-gantt__head,
.hmsp-gantt__row {
	display: grid;
	grid-template-columns: 8.5rem 1fr 1fr 1fr;
	align-items: center;
	gap: 0;
}

.hmsp-gantt__head span {
	padding-left: 0.5rem;
	border-left: 1px solid var(--hmsp-line-on-navy);
	color: var(--hmsp-on-navy-soft);
	font-weight: 600;
}

.hmsp-gantt__head span:first-child {
	border-left: 0;
}

.hmsp-gantt__label {
	font-weight: 600;
	color: var(--hmsp-white);
}

.hmsp-gantt__track {
	position: relative;
	grid-column: 2 / span 3;
	height: 2rem;
	border-radius: 6px;
	background:
		linear-gradient(90deg, transparent calc(33.333% - 1px), var(--hmsp-line-on-navy) calc(33.333% - 1px), var(--hmsp-line-on-navy) 33.333%, transparent 33.333%, transparent calc(66.666% - 1px), var(--hmsp-line-on-navy) calc(66.666% - 1px), var(--hmsp-line-on-navy) 66.666%, transparent 66.666%),
		rgba(255, 255, 255, 0.04);
}

.hmsp-gantt__track i {
	position: absolute;
	top: 5px;
	bottom: 5px;
	left: calc(var(--start) / 3 * 100% + 4px);
	width: calc(var(--span) / 3 * 100% - 8px);
	border-radius: 4px;
}

.hmsp-gantt i.is-booked {
	background: var(--hmsp-navy-soft);
}

.hmsp-gantt i.is-request {
	background: var(--hmsp-red);
}

.hmsp-gantt i.is-conflict {
	top: 2px;
	bottom: 2px;
	border: 2px dashed var(--hmsp-red);
	background: repeating-linear-gradient(45deg, rgba(165, 28, 35, 0.35) 0 4px, transparent 4px 8px);
}

.hmsp-gantt__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-top: 0.5rem;
	color: var(--hmsp-on-navy);
}

.hmsp-gantt__legend span {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.hmsp-gantt__legend i {
	position: static;
	display: inline-block;
	width: 1.25rem;
	height: 0.625rem;
	border-radius: 3px;
}

.hmsp-gantt__legend i.is-conflict {
	border-width: 1.5px;
}

.hmsp-inbox {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hmsp-inbox li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.875rem 1rem;
	border-radius: var(--hmsp-radius-sm);
	background: rgba(255, 255, 255, 0.06);
	font-size: 0.9375rem;
	font-weight: 600;
}

.hmsp-inbox small {
	display: block;
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--hmsp-on-navy);
}

.hmsp-inbox b {
	flex: none;
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 0.75rem;
	font-weight: 700;
}

.hmsp-inbox b.is-new {
	background: var(--hmsp-red);
	color: var(--hmsp-white);
}

.hmsp-inbox b.is-done {
	background: var(--hmsp-navy-soft);
	color: var(--hmsp-navy);
}

.hmsp-fields {
	display: grid;
	gap: 0.5rem;
	margin-top: auto;
}

.hmsp-fields span {
	display: grid;
	gap: 0.125rem;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--hmsp-line-on-navy);
	border-radius: var(--hmsp-radius-sm);
	font-size: 0.9375rem;
	font-weight: 600;
}

.hmsp-fields small {
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--hmsp-on-navy-soft);
}

.hmsp-roles {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto;
}

.hmsp-roles span {
	padding: 0.5rem 0.875rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 0.875rem;
	font-weight: 600;
}

.hmsp-roles span:first-child {
	background: var(--hmsp-white);
	color: var(--hmsp-navy);
}

@media (max-width: 1000px) {
	.hmsp-bento {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"gantt gantt"
			"inbox fields"
			"inbox roles";
	}
}

@media (max-width: 640px) {
	.hmsp-bento {
		grid-template-columns: 1fr;
		grid-template-areas:
			"gantt"
			"inbox"
			"fields"
			"roles";
	}

	.hmsp-gantt__head,
	.hmsp-gantt__row {
		grid-template-columns: 6.5rem 1fr 1fr 1fr;
	}
}

/* =========================================================
   Module
   ========================================================= */

.hmsp-modules {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 7vw, 7rem);
	align-items: start;
}

.hmsp-modules__feature h3 {
	margin: 2rem 0 0.75rem;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	letter-spacing: -0.025em;
}

.hmsp-modules__feature p {
	max-width: 32rem;
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--hmsp-muted);
}

.hmsp-jersey {
	padding: clamp(2rem, 4vw, 3rem) 1.5rem;
	border-radius: var(--hmsp-radius);
	background: var(--hmsp-white);
	box-shadow: var(--hmsp-shadow-sm);
}

.hmsp-jersey svg {
	display: block;
	width: 100%;
	max-width: 420px;
	height: auto;
	margin-inline: auto;
}

.hmsp-modules__list {
	margin: 0;
}

.hmsp-modules__list > div {
	padding: 1.5rem 0;
	border-top: 1px solid var(--hmsp-line);
}

.hmsp-modules__list > div:last-child {
	border-bottom: 1px solid var(--hmsp-line);
}

.hmsp-modules__list dt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.5rem;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.hmsp-modules__list dd {
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--hmsp-muted);
}

@media (max-width: 900px) {
	.hmsp-modules {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Aufwand
   ========================================================= */

.hmsp-effort__total {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.5rem 2rem;
	margin: 0;
}

.hmsp-effort__number {
	font-size: clamp(4.5rem, 13vw, 11rem);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.06em;
	font-variant-numeric: tabular-nums;
	color: var(--hmsp-navy);
}

.hmsp-effort__unit {
	max-width: 16rem;
	padding-bottom: 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--hmsp-navy);
}

.hmsp-effort__bar {
	display: flex;
	gap: 3px;
	height: 16px;
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	overflow: hidden;
	border-radius: 8px;
}

.hmsp-effort__bar span {
	flex-basis: 0;
	min-width: 0;
}

.hmsp-effort .is-1 {
	background: #142b4a;
}

.hmsp-effort .is-2 {
	background: #2e4767;
}

.hmsp-effort .is-3 {
	background: var(--hmsp-red);
}

.hmsp-effort .is-4 {
	background: #4a6283;
}

.hmsp-effort .is-5 {
	background: #6b819e;
}

.hmsp-effort .is-6 {
	background: #91a2b8;
}

.hmsp-effort .is-7 {
	background: #b9c6d6;
}

.hmsp-effort__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 7vw, 7rem);
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.hmsp-effort__table {
	width: 100%;
	border-collapse: collapse;
}

.hmsp-effort__table th,
.hmsp-effort__table td {
	padding: 0.875rem 0;
	border-top: 1px solid var(--hmsp-line);
	font-size: 1rem;
	text-align: left;
	vertical-align: top;
}

.hmsp-effort__table tr:last-child th,
.hmsp-effort__table tr:last-child td {
	border-bottom: 1px solid var(--hmsp-line);
}

.hmsp-effort__table th {
	padding-right: 1.5rem;
	font-weight: 400;
	color: var(--hmsp-navy);
}

.hmsp-effort__table th i {
	display: inline-block;
	width: 0.75rem;
	height: 0.75rem;
	margin-right: 0.75rem;
	border-radius: 3px;
	vertical-align: -1px;
}

.hmsp-effort__table td {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.hmsp-effort__scope h3 {
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

@media (max-width: 900px) {
	.hmsp-effort__grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Projektablauf
   ========================================================= */

.hmsp-phases {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2rem, 5vw, 4rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hmsp-phases__item {
	position: relative;
}

.hmsp-phases__item::before {
	content: "";
	position: absolute;
	top: 1.5rem;
	left: 3rem;
	right: calc(-1 * clamp(2rem, 5vw, 4rem));
	height: 1px;
	background: var(--hmsp-line);
}

.hmsp-phases__item:last-child::before {
	display: none;
}

.hmsp-phases__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--hmsp-navy);
	color: var(--hmsp-white);
	font-size: 1.125rem;
	font-weight: 700;
}

.hmsp-phases__item:first-child .hmsp-phases__num {
	background: var(--hmsp-red);
}

.hmsp-phases__item h3 {
	margin: 1.75rem 0 0.75rem;
	font-size: clamp(1.375rem, 2vw, 1.625rem);
	letter-spacing: -0.02em;
}

.hmsp-phases__item p {
	max-width: 30rem;
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--hmsp-muted);
}

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

	.hmsp-phases__item::before {
		display: none;
	}
}

/* =========================================================
   Abschluss
   ========================================================= */

.hmsp-final__title {
	max-width: 14ch;
	margin: 0;
	font-size: clamp(2.25rem, 4.6vw, 3.875rem);
	line-height: 1.04;
	letter-spacing: -0.035em;
}

.hmsp-final__text {
	max-width: 26rem;
	margin: 1.5rem 0 0;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--hmsp-on-navy);
}

/* =========================================================
   Mehrwert: Vorher-nachher und Perspektiven
   ========================================================= */

.hmsp-compare {
	position: relative;
	height: clamp(400px, 44vw, 560px);
	overflow: hidden;
	border-radius: var(--hmsp-radius);
	box-shadow: var(--hmsp-shadow);
	isolation: isolate;
	--pos: 50%;
	user-select: none;
	-webkit-user-select: none;
}

.hmsp-compare__pane {
	position: absolute;
	inset: 0;
}

.hmsp-compare__pane.is-before {
	background:
		radial-gradient(circle at 1px 1px, rgba(20, 43, 74, 0.1) 1px, transparent 0) 0 0 / 18px 18px,
		var(--hmsp-canvas);
}

.hmsp-compare__pane.is-after {
	clip-path: inset(0 0 0 var(--pos));
	background:
		radial-gradient(60% 80% at 70% 40%, rgba(232, 238, 245, 0.14), transparent 70%),
		var(--hmsp-navy);
}

.hmsp-compare__label {
	position: absolute;
	top: 1.25rem;
	z-index: 3;
	padding: 0.375rem 0.75rem;
	border-radius: 6px;
	font-size: 0.8125rem;
	font-weight: 700;
}

.is-before .hmsp-compare__label {
	left: 1.25rem;
	background: var(--hmsp-white);
	color: var(--hmsp-navy);
	box-shadow: var(--hmsp-shadow-sm);
}

.is-after .hmsp-compare__label {
	right: 1.25rem;
	background: var(--hmsp-red);
	color: var(--hmsp-white);
}

/* Durcheinander */

.hmsp-mess {
	position: absolute;
	border-radius: 8px;
	background: var(--hmsp-white);
	color: var(--hmsp-navy);
	box-shadow: 0 2px 4px rgba(20, 43, 74, 0.06), 0 16px 32px -12px rgba(20, 43, 74, 0.25);
	font-size: 0.8125rem;
}

.hmsp-mess--sheet {
	top: 15%;
	left: 4%;
	width: min(400px, 46%);
	overflow: hidden;
	transform: rotate(-2.5deg);
}

.hmsp-mess__bar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: var(--hmsp-navy-soft);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--hmsp-muted);
}

.hmsp-mess__bar i {
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 2px;
	background: var(--hmsp-muted);
}

.hmsp-mess table {
	width: 100%;
	border-collapse: collapse;
}

.hmsp-mess th,
.hmsp-mess td {
	padding: 0.4rem 0.6rem;
	border: 1px solid var(--hmsp-line);
	text-align: left;
	white-space: nowrap;
}

.hmsp-mess th {
	background: var(--hmsp-canvas);
	font-weight: 600;
	color: var(--hmsp-muted);
}

.hmsp-mess td.is-conflict {
	outline: 2px solid var(--hmsp-red);
	outline-offset: -2px;
	background: var(--hmsp-red-soft);
	color: var(--hmsp-red);
	font-weight: 700;
}

.hmsp-mess--mail {
	top: 56%;
	left: 22%;
	display: grid;
	gap: 0.25rem;
	width: min(330px, 40%);
	padding: 0.875rem 1rem;
	border-left: 3px solid var(--hmsp-muted);
	transform: rotate(1.8deg);
}

.hmsp-mess--mail span {
	color: var(--hmsp-muted);
	line-height: 1.45;
}

.hmsp-mess--note {
	top: 63%;
	left: 3%;
	width: 9.5rem;
	padding: 1.25rem 1rem 1rem;
	background: #fff;
	font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
	font-size: 0.9375rem;
	line-height: 1.35;
	color: var(--hmsp-navy);
	transform: rotate(-7deg);
}

.hmsp-mess--note::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 50%;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--hmsp-red);
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
	transform: translateX(-50%);
}

.hmsp-mess--call {
	top: 8%;
	left: 31%;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.875rem 0.5rem 0.5rem;
	border-radius: 999px;
	font-weight: 600;
	transform: rotate(3deg);
}

.hmsp-mess--call b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--hmsp-red);
	color: var(--hmsp-white);
	font-size: 0.75rem;
}

/* Aufgeräumt */

.hmsp-calm {
	position: absolute;
	inset: 0;
}

.hmsp-calm__plan {
	position: absolute;
	top: 50%;
	right: 5%;
	width: min(560px, 52%);
	padding: 1.25rem;
	border-radius: var(--hmsp-radius);
	background: var(--hmsp-white);
	box-shadow: var(--hmsp-shadow-xl);
	transform: translateY(-50%);
}

.hmsp-calm__card {
	position: absolute;
	top: 14%;
	right: calc(5% + min(560px, 52%) - 3rem);
	display: grid;
	gap: 0.125rem;
	min-width: 13rem;
	padding: 0.875rem 1.125rem;
	border-top: 3px solid var(--hmsp-red);
	border-radius: var(--hmsp-radius-sm);
	background: var(--hmsp-white);
	color: var(--hmsp-navy);
	box-shadow: var(--hmsp-shadow-xl);
	font-size: 0.8125rem;
}

.hmsp-calm__card small {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--hmsp-red);
}

.hmsp-calm__card strong {
	font-size: 1rem;
}

.hmsp-calm__card span {
	color: var(--hmsp-muted);
}

.hmsp-calm__toast {
	position: absolute;
	bottom: 9%;
	right: 8%;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: var(--hmsp-radius-sm);
	background: var(--hmsp-white);
	color: var(--hmsp-navy);
	box-shadow: var(--hmsp-shadow-xl);
	font-size: 0.8125rem;
}

.hmsp-calm__toast i {
	position: relative;
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--hmsp-navy);
}

.hmsp-calm__toast i::after {
	content: "";
	position: absolute;
	left: 0.55rem;
	top: 0.58rem;
	width: 0.6875rem;
	height: 0.34rem;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg);
}

.hmsp-calm__toast span {
	display: grid;
	color: var(--hmsp-muted);
}

.hmsp-calm__toast strong {
	color: var(--hmsp-navy);
}

/* Regler */

.hmsp-compare__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	z-index: 4;
	width: 2px;
	margin-left: -1px;
	background: var(--hmsp-white);
	box-shadow: 0 0 0 1px rgba(20, 43, 74, 0.15);
	pointer-events: none;
}

.hmsp-compare__handle span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: var(--hmsp-white);
	box-shadow: 0 8px 24px rgba(20, 43, 74, 0.35);
	transform: translate(-50%, -50%);
}

.hmsp-compare__handle span::before,
.hmsp-compare__handle span::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 0.5rem;
	height: 0.5rem;
	border-top: 2px solid var(--hmsp-navy);
	border-left: 2px solid var(--hmsp-navy);
}

.hmsp-compare__handle span::before {
	left: 0.95rem;
	transform: translateY(-50%) rotate(-45deg);
}

.hmsp-compare__handle span::after {
	right: 0.95rem;
	transform: translateY(-50%) rotate(135deg);
}

.hmsp-compare:has(.hmsp-compare__range:focus-visible) .hmsp-compare__handle span {
	outline: 3px solid var(--hmsp-red);
	outline-offset: 3px;
}

.hmsp-compare__range {
	position: absolute;
	inset: 0;
	z-index: 5;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
	touch-action: pan-y;
}

.hmsp-compare__range::-webkit-slider-thumb {
	width: 3.25rem;
	height: 100%;
	-webkit-appearance: none;
	appearance: none;
	cursor: ew-resize;
}

@media (max-width: 781px) {
	.hmsp-compare {
		height: 520px;
	}

	.hmsp-mess--sheet {
		width: 78%;
		top: 13%;
	}

	.hmsp-mess--mail {
		top: 50%;
		left: 8%;
		width: 74%;
	}

	.hmsp-mess--note {
		top: 75%;
		left: 10%;
	}

	.hmsp-mess--call {
		top: 4%;
		left: auto;
		right: 6%;
	}

	.hmsp-calm__plan {
		right: 4%;
		width: 88%;
	}

	.hmsp-calm__card {
		top: 10%;
		right: 4%;
	}

	.hmsp-calm__toast {
		right: 4%;
		bottom: 6%;
	}
}

/* Perspektiven */

.hmsp-persp {
	margin-top: clamp(4rem, 8vw, 7rem);
}

.hmsp-persp__tabs {
	position: relative;
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	padding: 5px;
	border-radius: 12px;
	background: var(--hmsp-navy-soft);
	--tab: 0;
}

.hmsp-persp__tab {
	position: relative;
	z-index: 1;
	appearance: none;
	padding: 0.875rem 1.75rem;
	border: 0;
	background: transparent;
	color: var(--hmsp-navy);
	font: 600 1rem / 1.2 var(--wp--preset--font-family--open-sans);
	cursor: pointer;
	transition: color 0.3s var(--hmsp-ease);
}

.hmsp-persp__tab[aria-selected="true"] {
	color: var(--hmsp-white);
}

.hmsp-persp__glider {
	position: absolute;
	top: 5px;
	bottom: 5px;
	left: 5px;
	width: calc(50% - 5px);
	border-radius: var(--hmsp-radius-sm);
	background: var(--hmsp-navy);
	box-shadow: 0 6px 16px -6px rgba(20, 43, 74, 0.6);
	transform: translateX(calc(var(--tab) * 100%));
	transition: transform 0.45s var(--hmsp-ease);
}

.hmsp-persp__panel {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 6vw, 6rem);
	margin-top: clamp(2rem, 4vw, 3rem);
	animation: hmsp-panel-in 0.5s var(--hmsp-ease) both;
}

.hmsp-persp__panel[hidden] {
	display: none;
}

.hmsp-persp__intro h3 {
	max-width: 16ch;
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.hmsp-persp__intro p {
	max-width: 26rem;
	margin: 1.25rem 0 0;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--hmsp-muted);
}

.hmsp-persp__items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.5rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hmsp-persp__items li {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 1rem;
	row-gap: 0.25rem;
}

.hmsp-persp__icon {
	grid-row: span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--hmsp-radius);
	background: var(--hmsp-navy);
	color: var(--hmsp-white);
}

.hmsp-persp__items li:first-child .hmsp-persp__icon {
	background: var(--hmsp-red);
}

.hmsp-persp__icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

.hmsp-persp__items strong {
	font-size: 1.0625rem;
	line-height: 1.35;
}

.hmsp-persp__items li > span:last-child {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--hmsp-muted);
}

@media (max-width: 900px) {
	.hmsp-persp__panel {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.hmsp-persp__tabs {
		display: grid;
		width: 100%;
	}

	.hmsp-persp__tab {
		padding-inline: 0.75rem;
		font-size: 0.9375rem;
	}

	.hmsp-persp__items {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hmsp-persp__panel {
		animation: none;
	}

	.hmsp-persp__glider {
		transition: none;
	}
}

/* =========================================================
   Hallenplan (Demo)
   ========================================================= */

.hmsp-arena__frame {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background:
		radial-gradient(70% 60% at 38% 45%, rgba(232, 238, 245, 0.13), transparent 70%),
		linear-gradient(180deg, #18325a 0%, var(--hmsp-navy) 60%, #0f223b 100%);
	color: var(--hmsp-white);
	box-shadow: var(--hmsp-shadow-xl);
}

.hmsp-arena__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	padding: 1.25rem clamp(1.25rem, 2.5vw, 2rem);
	border-bottom: 1px solid var(--hmsp-line-on-navy);
}

.hmsp-arena__heading {
	display: grid;
	margin-right: auto;
}

.hmsp-arena__heading strong {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--hmsp-white);
}

.hmsp-arena__heading span {
	font-size: 0.875rem;
	color: var(--hmsp-on-navy);
}

/* Segmentierte Schalter */

.hmsp-seg {
	display: inline-flex;
	gap: 2px;
	padding: 4px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.07);
	box-shadow: inset 0 0 0 1px var(--hmsp-line-on-navy);
}

.hmsp-seg button {
	appearance: none;
	padding: 0.5625rem 0.875rem;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--hmsp-on-navy);
	font: 600 0.875rem / 1.2 var(--wp--preset--font-family--open-sans);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s var(--hmsp-ease), color 0.25s var(--hmsp-ease);
}

.hmsp-seg button:hover {
	color: var(--hmsp-white);
}

.hmsp-seg button[aria-pressed="true"] {
	background: var(--hmsp-white);
	color: var(--hmsp-navy);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hmsp-seg.is-block {
	display: flex;
	background: var(--hmsp-navy-soft);
	box-shadow: none;
}

.hmsp-seg.is-block button {
	flex: 1;
	color: var(--hmsp-navy);
}

.hmsp-seg.is-block button[aria-pressed="true"] {
	background: var(--hmsp-navy);
	color: var(--hmsp-white);
}

/* Bühne */

.hmsp-arena__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: stretch;
}

.hmsp-arena__stage {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.5rem;
	padding: clamp(1.5rem, 3.5vw, 3rem);
	min-width: 0;
}

.hmsp-arena__viewport {
	position: relative;
}

.hmsp-arena__venue {
	perspective: 1100px;
	perspective-origin: 50% 10%;
}

.hmsp-arena__venue[hidden] {
	display: none;
}

.hmsp-arena__plane {
	pointer-events: none;
	transform-origin: 50% 70%;
	transition: transform 0.9s var(--hmsp-ease);
}

.hmsp-arena[data-view="stand"] .hmsp-arena__plane {
	transform: rotateX(54deg) scale(0.96);
}

.hmsp-court {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	font-family: var(--wp--preset--font-family--open-sans);
}

.hmsp-arena .hmsp-court {
	filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
}

.hmsp-court > g[aria-hidden="true"] {
	pointer-events: none;
}

.hmsp-court text {
	font-size: 12px;
	font-weight: 700;
	fill: var(--hmsp-navy);
	pointer-events: none;
}

.hmsp-space rect {
	stroke: rgba(20, 43, 74, 0.35);
	stroke-width: 1.2;
	transition: fill 0.25s var(--hmsp-ease), stroke 0.25s var(--hmsp-ease), stroke-width 0.25s var(--hmsp-ease), opacity 0.3s var(--hmsp-ease);
}

.hmsp-space.is-booked rect {
	stroke: rgba(20, 43, 74, 0.18);
}

.hmsp-space.is-booked text {
	fill: var(--hmsp-muted);
}

.hmsp-space.is-led rect {
	stroke: #0b1a2e;
}

.hmsp-space.is-led text {
	fill: var(--hmsp-white);
	font-size: 11px;
	letter-spacing: 0.08em;
}

.hmsp-arena .hmsp-space.is-led:not(.is-selected) rect {
	animation: hmsp-led-glow 3.2s ease-in-out infinite;
}

@keyframes hmsp-led-glow {
	0%,
	100% {
		filter: drop-shadow(0 0 0 rgba(232, 238, 245, 0));
	}
	50% {
		filter: drop-shadow(0 0 6px rgba(232, 238, 245, 0.55));
	}
}

.hmsp-space[data-space] {
	outline: none;
}

.hmsp-arena__viewport.is-pointing {
	cursor: pointer;
}

.hmsp-space.is-hover rect {
	stroke: var(--hmsp-navy);
	stroke-width: 2.5;
}

.hmsp-space[data-space]:focus-visible rect {
	stroke: var(--hmsp-red);
	stroke-width: 3.5;
}

.hmsp-space.is-picked rect {
	fill: var(--hmsp-red-soft);
	stroke: var(--hmsp-red);
	stroke-width: 2.5;
}

.hmsp-space.is-picked text {
	fill: var(--hmsp-red);
}

.hmsp-space.is-selected rect {
	fill: var(--hmsp-red);
	stroke: var(--hmsp-red);
	filter: drop-shadow(0 6px 10px rgba(165, 28, 35, 0.45));
}

.hmsp-space.is-selected.is-picked rect {
	stroke: var(--hmsp-white);
	stroke-width: 2.5;
}

.hmsp-space.is-selected text {
	fill: var(--hmsp-white);
}

.hmsp-space.is-dimmed rect,
.hmsp-space.is-dimmed text {
	opacity: 0.18;
}

/* Tooltip */

.hmsp-arena__tip {
	position: absolute;
	z-index: 5;
	display: grid;
	gap: 0.125rem;
	min-width: 11rem;
	padding: 0.625rem 0.875rem;
	border-radius: var(--hmsp-radius-sm);
	background: var(--hmsp-white);
	color: var(--hmsp-navy);
	box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.45);
	font-size: 0.8125rem;
	pointer-events: none;
	transform: translate(-50%, calc(-100% - 12px));
}

.hmsp-arena__tip[hidden] {
	display: none;
}

.hmsp-arena__tip::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 10px;
	height: 10px;
	background: var(--hmsp-white);
	transform: translateX(-50%) rotate(45deg);
}

.hmsp-arena__tip strong {
	font-weight: 700;
}

.hmsp-arena__tip span {
	color: var(--hmsp-muted);
}

.hmsp-arena__tip em {
	font-style: normal;
	font-weight: 700;
	color: var(--hmsp-navy);
}

.hmsp-arena__tip.is-booked em {
	color: var(--hmsp-muted);
}

/* Legende */

.hmsp-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--hmsp-on-navy);
}

.hmsp-legend li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.hmsp-arena .hmsp-swatch.is-led {
	background: #0b1a2e;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.hmsp-swatch.is-picked {
	background: var(--hmsp-red-soft);
	box-shadow: inset 0 0 0 2px var(--hmsp-red);
}

/* Detailbereich */

.hmsp-arena__panel {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin: 1rem 1rem 1rem 0;
	padding: 1.75rem;
	border-radius: var(--hmsp-radius);
	background: var(--hmsp-white);
	color: var(--hmsp-navy);
	box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
}

.hmsp-arena__panel-body.is-updated > * {
	animation: hmsp-panel-in 0.35s var(--hmsp-ease) both;
}

@keyframes hmsp-panel-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.hmsp-arena__eyebrow {
	margin: 0 0 0.375rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--hmsp-red);
}

.hmsp-arena__title {
	margin: 0;
	font-size: 1.625rem;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.hmsp-arena__status {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0.3125rem 0.625rem;
	border-radius: 6px;
	font-size: 0.8125rem;
	font-weight: 700;
}

.hmsp-arena__status::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 2px;
	background: currentColor;
}

.hmsp-arena__status.is-free {
	background: var(--hmsp-navy-soft);
	color: var(--hmsp-navy);
}

.hmsp-arena__status.is-booked {
	background: var(--hmsp-canvas);
	color: var(--hmsp-muted);
}

/* Vorschau */

.hmsp-preview[hidden] {
	display: none;
}

.hmsp-preview.is-floor {
	display: grid;
	gap: 0.5rem;
}

.hmsp-preview__floor {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 7.5rem;
	overflow: hidden;
	border-radius: var(--hmsp-radius-sm);
	background:
		repeating-linear-gradient(90deg, rgba(20, 43, 74, 0.05) 0 1px, transparent 1px 22px),
		linear-gradient(180deg, #e8eef5, #f4f6f9);
	perspective: 420px;
}

.hmsp-preview__decal {
	padding: 1rem 1.75rem;
	border-radius: 8px;
	background: var(--hmsp-red);
	color: var(--hmsp-white);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	box-shadow: 0 10px 20px -8px rgba(165, 28, 35, 0.6);
	transform: rotateX(48deg);
}

.hmsp-preview__caption,
.hmsp-preview__label {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--hmsp-muted);
}

.hmsp-preview.is-led {
	display: grid;
	gap: 0.5rem;
}

.hmsp-preview.is-led[hidden] {
	display: none;
}

.hmsp-preview__screen {
	display: flex;
	align-items: center;
	height: 4.5rem;
	overflow: hidden;
	border-radius: 6px;
	background:
		radial-gradient(1.6px 1.6px at 2px 2px, rgba(255, 255, 255, 0.16) 50%, transparent 52%) 0 0 / 4px 4px,
		linear-gradient(180deg, #b8222a, var(--hmsp-red));
	box-shadow: 0 0 0 3px #0b1a2e, 0 10px 30px -6px rgba(165, 28, 35, 0.6);
}

.hmsp-preview__ticker {
	display: flex;
	flex: none;
	white-space: nowrap;
	animation: hmsp-ticker 12s linear infinite;
}

.hmsp-preview__ticker span {
	padding-right: 2.25rem;
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--hmsp-white);
}

.hmsp-preview__progress {
	height: 4px;
	overflow: hidden;
	border-radius: 2px;
	background: var(--hmsp-navy-soft);
}

.hmsp-preview__progress i {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--hmsp-navy);
	transform-origin: left;
	animation: hmsp-progress 10s linear infinite;
}

@keyframes hmsp-progress {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

.hmsp-preview__label {
	margin-top: 0.5rem;
	font-weight: 600;
	color: var(--hmsp-navy);
}

/* Fakten */

.hmsp-arena__facts {
	margin: 0;
}

.hmsp-arena__facts > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0;
	border-top: 1px solid var(--hmsp-line);
}

.hmsp-arena__facts dt {
	font-size: 0.875rem;
	color: var(--hmsp-muted);
}

.hmsp-arena__facts dd {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	text-align: right;
}

.hmsp-arena__actions {
	margin-top: auto;
}

.hmsp-arena__pick {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	width: 100%;
	padding: 1rem 1.25rem;
	border: 0;
	border-radius: var(--hmsp-radius-sm);
	background: var(--hmsp-navy);
	color: var(--hmsp-white);
	font: 600 0.9375rem / 1.2 var(--wp--preset--font-family--open-sans);
	cursor: pointer;
	transition: background-color 0.25s var(--hmsp-ease);
}

.hmsp-arena__pick::before {
	content: "";
	width: 0.75rem;
	height: 0.75rem;
	background:
		linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
		linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}

.hmsp-arena__pick:hover {
	background: #0b1a2e;
}

.hmsp-arena__pick[aria-pressed="true"] {
	background: var(--hmsp-red-soft);
	color: var(--hmsp-red);
}

.hmsp-arena__pick[aria-pressed="true"]::before {
	background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

/* Auswahl */

.hmsp-tray {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	padding: 1.125rem clamp(1.25rem, 2.5vw, 2rem);
	border-top: 1px solid var(--hmsp-line-on-navy);
	background: rgba(0, 0, 0, 0.18);
}

.hmsp-tray__info {
	display: grid;
	gap: 0.125rem;
	min-width: 12rem;
}

.hmsp-tray__count {
	font-size: 1rem;
	font-weight: 700;
}

.hmsp-tray__hint {
	font-size: 0.8125rem;
	color: var(--hmsp-on-navy);
}

.hmsp-tray[data-empty="false"] .hmsp-tray__hint {
	display: none;
}

.hmsp-tray__chips {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hmsp-tray__chips li {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.375rem 0.375rem 0.375rem 0.75rem;
	border-radius: 999px;
	background: var(--hmsp-white);
	color: var(--hmsp-navy);
	font-size: 0.8125rem;
	font-weight: 700;
	animation: hmsp-chip-in 0.35s var(--hmsp-ease) both;
}

@keyframes hmsp-chip-in {
	from {
		opacity: 0;
		transform: scale(0.85);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.hmsp-tray__remove {
	position: relative;
	width: 1.5rem;
	height: 1.5rem;
	border: 0;
	border-radius: 50%;
	background: var(--hmsp-canvas);
	cursor: pointer;
}

.hmsp-tray__remove::before,
.hmsp-tray__remove::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.625rem;
	height: 1.5px;
	background: var(--hmsp-navy);
	transform: translate(-50%, -50%) rotate(45deg);
}

.hmsp-tray__remove::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.hmsp-tray__remove:hover {
	background: var(--hmsp-red-soft);
}

.hmsp-tray__cta {
	margin-left: auto;
	padding: 0.9375rem 1.5rem;
	border-radius: var(--hmsp-radius-sm);
	background: var(--hmsp-red);
	color: var(--hmsp-white);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.25s var(--hmsp-ease), opacity 0.25s var(--hmsp-ease);
}

.hmsp-tray__cta:hover,
.hmsp-tray__cta:focus {
	background: #8a161c;
	color: var(--hmsp-white);
}

.hmsp-tray[data-empty="true"] .hmsp-tray__cta {
	background: rgba(255, 255, 255, 0.1);
	color: var(--hmsp-on-navy);
}

/* Fußnote und Liste */

.hmsp-arena__foot {
	margin: 1.25rem 0 0;
	font-size: 0.875rem;
	text-align: center;
	color: var(--hmsp-muted);
}

.hmsp-arena__list {
	margin-top: 1.25rem;
	border-radius: var(--hmsp-radius);
	background: var(--hmsp-white);
	box-shadow: inset 0 0 0 1px var(--hmsp-line);
}

.hmsp-arena__list summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.125rem 1.75rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--hmsp-navy);
	list-style: none;
	cursor: pointer;
}

.hmsp-arena__list summary::-webkit-details-marker {
	display: none;
}

.hmsp-arena__list summary::after {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid var(--hmsp-red);
	border-bottom: 2px solid var(--hmsp-red);
	transform: rotate(45deg);
	transition: transform 0.25s var(--hmsp-ease);
}

.hmsp-arena__list[open] summary::after {
	transform: rotate(-135deg);
}

.hmsp-arena__list-venue {
	padding: 0 1.75rem 1.75rem;
}

.hmsp-arena__list-venue ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hmsp-arena__list-item {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 0.125rem 0.75rem;
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--hmsp-line);
	border-radius: var(--hmsp-radius-sm);
	background: var(--hmsp-white);
	color: var(--hmsp-navy);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.hmsp-arena__list-item:hover {
	border-color: var(--hmsp-navy);
}

.hmsp-arena__list-label {
	font-size: 0.9375rem;
	font-weight: 700;
}

.hmsp-arena__list-meta {
	grid-column: 2;
	font-size: 0.8125rem;
	color: var(--hmsp-muted);
}

@media (max-width: 1100px) {
	.hmsp-arena__layout {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

@media (max-width: 960px) {
	.hmsp-arena__layout {
		grid-template-columns: 1fr;
	}

	.hmsp-arena__panel {
		margin: 0 1rem 1rem;
	}
}

@media (max-width: 600px) {
	.hmsp-arena__toolbar {
		padding-inline: 1rem;
	}

	.hmsp-seg {
		width: 100%;
	}

	.hmsp-seg button {
		flex: 1;
		padding-inline: 0.5rem;
		font-size: 0.8125rem;
	}

	.hmsp-arena__stage {
		padding: 1.25rem 1rem;
	}

	.hmsp-court text {
		font-size: 14px;
	}

	.hmsp-tray__cta {
		width: 100%;
		margin-left: 0;
		text-align: center;
	}

	.hmsp-arena__list summary {
		padding-inline: 1.25rem;
	}

	.hmsp-arena__list-venue {
		padding: 0 1.25rem 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hmsp-arena__plane,
	.hmsp-arena .hmsp-space.is-led:not(.is-selected) rect,
	.hmsp-preview__ticker,
	.hmsp-preview__progress i,
	.hmsp-arena__panel-body.is-updated > *,
	.hmsp-tray__chips li {
		animation: none;
		transition: none;
	}
}

/* =========================================================
   Technisches Konzept: Ebenenstapel
   ========================================================= */

.hmsp-stack {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}

.hmsp-stack__list {
	display: grid;
	gap: 0.5rem;
}

.hmsp-stack__tab {
	display: grid;
	gap: 0.25rem;
	width: 100%;
	padding: 1.375rem 1.5rem 1.375rem 1.75rem;
	border: 0;
	border-left: 3px solid var(--hmsp-line);
	border-radius: 0 var(--hmsp-radius) var(--hmsp-radius) 0;
	background: transparent;
	color: var(--hmsp-navy);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.35s var(--hmsp-ease), border-color 0.35s var(--hmsp-ease);
}

.hmsp-stack__tab:hover {
	border-left-color: var(--hmsp-navy);
}

.hmsp-stack__tab[aria-pressed="true"] {
	border-left-color: var(--hmsp-red);
	background: var(--hmsp-canvas);
}

.hmsp-stack__short {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hmsp-muted);
}

.hmsp-stack__title {
	font-size: clamp(1.25rem, 1.8vw, 1.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.hmsp-stack__text {
	display: block;
	max-height: 0;
	overflow: hidden;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--hmsp-muted);
	opacity: 0;
	transition: max-height 0.5s var(--hmsp-ease), opacity 0.4s var(--hmsp-ease), margin 0.4s var(--hmsp-ease);
}

.hmsp-stack__tab[aria-pressed="true"] .hmsp-stack__text {
	max-height: 14rem;
	margin-top: 0.625rem;
	opacity: 1;
}

.hmsp-stack__visual {
	position: relative;
	height: clamp(420px, 44vw, 580px);
	border-radius: var(--hmsp-radius);
	background:
		radial-gradient(60% 60% at 50% 45%, #ffffff 0%, var(--hmsp-canvas) 70%);
	overflow: hidden;
}

.hmsp-stack__iso {
	position: absolute;
	top: 66%;
	left: 50%;
	width: 380px;
	height: 300px;
	margin: -150px 0 0 -190px;
	transform: rotateX(58deg) rotateZ(-38deg);
	transform-style: preserve-3d;
}

.hmsp-layer {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transition: transform 0.7s var(--hmsp-ease), opacity 0.5s var(--hmsp-ease), filter 0.5s var(--hmsp-ease);
}

.hmsp-layer.is-base {
	transform: translateZ(0);
}

.hmsp-layer.is-logic {
	transform: translateZ(80px);
}

.hmsp-layer.is-view {
	transform: translateZ(160px);
}

.hmsp-layer::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 18px;
	background: #c5d0dd;
	transform: translateZ(-12px);
}

.hmsp-layer.is-base::before {
	background: #0b1a2e;
}

.hmsp-layer__face {
	position: absolute;
	inset: 0;
	overflow: hidden;
	padding: 1.5rem;
	border-radius: 18px;
	background: var(--hmsp-white);
	box-shadow: 0 0 0 1px var(--hmsp-line), 0 40px 60px rgba(20, 43, 74, 0.18);
	transition: box-shadow 0.5s var(--hmsp-ease);
}

.hmsp-layer.is-base .hmsp-layer__face {
	background: var(--hmsp-navy);
	box-shadow: 0 0 0 1px #0b1a2e, 0 40px 60px rgba(20, 43, 74, 0.25);
}

.hmsp-layer__name {
	position: absolute;
	left: 1.5rem;
	bottom: 1.125rem;
	z-index: 2;
	font-size: 1rem;
	font-weight: 700;
	color: var(--hmsp-navy);
}

.hmsp-layer.is-base .hmsp-layer__name {
	color: var(--hmsp-white);
}

.hmsp-layer__court {
	position: absolute;
	top: 1.25rem;
	left: 1.25rem;
	right: 1.25rem;
}

.hmsp-layer__rows {
	display: grid;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.hmsp-layer__rows span {
	position: relative;
	height: 1.75rem;
	border-radius: 6px;
	background: var(--hmsp-canvas);
}

.hmsp-layer__rows i {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: calc(var(--s) / 3 * 100% + 4px);
	width: calc(var(--w) / 3 * 100% - 8px);
	border-radius: 4px;
	background: var(--hmsp-navy);
}

.hmsp-layer__rows i.is-red {
	background: repeating-linear-gradient(45deg, var(--hmsp-red) 0 5px, #c84a50 5px 10px);
}

.hmsp-layer__base-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
}

.hmsp-layer__base-grid i {
	height: 3.5rem;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hmsp-layer__shield {
	position: absolute;
	right: 1.5rem;
	bottom: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--hmsp-red);
	color: var(--hmsp-white);
}

.hmsp-layer__shield svg {
	width: 1.5rem;
	height: 1.5rem;
}

/* Hervorhebung der gewählten Ebene */

.hmsp-stack .hmsp-layer {
	filter: saturate(0.5) brightness(0.97);
}

.hmsp-stack[data-active="view"] .hmsp-layer.is-view,
.hmsp-stack[data-active="logic"] .hmsp-layer.is-logic,
.hmsp-stack[data-active="base"] .hmsp-layer.is-base {
	filter: none;
}

.hmsp-stack[data-active="view"] .hmsp-layer.is-view .hmsp-layer__face,
.hmsp-stack[data-active="logic"] .hmsp-layer.is-logic .hmsp-layer__face,
.hmsp-stack[data-active="base"] .hmsp-layer.is-base .hmsp-layer__face {
	box-shadow: 0 0 0 3px var(--hmsp-red), 0 50px 80px rgba(20, 43, 74, 0.3);
}

.hmsp-stack[data-active="view"] .hmsp-layer.is-view {
	transform: translateZ(200px);
}

.hmsp-stack[data-active="logic"] .hmsp-layer.is-view,
.hmsp-stack[data-active="base"] .hmsp-layer.is-view {
	transform: translate3d(100px, -125px, 205px);
}

.hmsp-stack[data-active="logic"] .hmsp-layer.is-logic {
	transform: translateZ(110px);
}

.hmsp-stack[data-active="base"] .hmsp-layer.is-logic {
	transform: translate3d(60px, -75px, 120px);
}

@media (max-width: 900px) {
	.hmsp-stack {
		grid-template-columns: 1fr;
	}

	.hmsp-stack__visual {
		order: -1;
		height: 380px;
	}

	.hmsp-stack__iso {
		transform: scale(0.72) rotateX(58deg) rotateZ(-38deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hmsp-layer,
	.hmsp-stack__text {
		transition: none;
	}
}

/* =========================================================
   Abschluss & Formular
   ========================================================= */

.hmsp-final {
	background:
		radial-gradient(50% 70% at 100% 0%, rgba(255, 255, 255, 0.08), transparent 70%),
		var(--hmsp-navy) !important;
}

.hmsp-final__grid {
	gap: clamp(3rem, 7vw, 6rem);
}

.hmsp-form {
	padding: clamp(1.75rem, 3.5vw, 2.75rem);
	border-radius: var(--hmsp-radius);
	background: var(--hmsp-white);
	color: var(--hmsp-navy);
	box-shadow: var(--hmsp-shadow-xl);
}

.hmsp-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.hmsp-form__field {
	display: grid;
	gap: 0.5rem;
	margin: 0;
}

.hmsp-form__field.is-full {
	grid-column: 1 / -1;
}

.hmsp-form label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hmsp-navy);
}

.hmsp-form__consent label {
	font-weight: 400;
	line-height: 1.55;
	color: var(--hmsp-muted);
}

.hmsp-form__req {
	color: var(--hmsp-red);
}

.hmsp-form input[type="text"],
.hmsp-form input[type="email"],
.hmsp-form input[type="tel"],
.hmsp-form select,
.hmsp-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.9375rem 1rem;
	border: 1px solid var(--hmsp-line);
	border-radius: var(--hmsp-radius-sm);
	background: var(--hmsp-canvas);
	color: var(--hmsp-navy);
	font: 400 1rem / 1.4 var(--wp--preset--font-family--open-sans);
	transition: border-color 0.2s var(--hmsp-ease), box-shadow 0.2s var(--hmsp-ease), background-color 0.2s var(--hmsp-ease);
}

.hmsp-form select {
	appearance: none;
	padding-right: 2.75rem;
	background-image: linear-gradient(45deg, transparent 50%, var(--hmsp-navy) 50%), linear-gradient(135deg, var(--hmsp-navy) 50%, transparent 50%);
	background-position: calc(100% - 1.35rem) 55%, calc(100% - 1rem) 55%;
	background-size: 0.35rem 0.35rem;
	background-repeat: no-repeat;
}

.hmsp-form textarea {
	min-height: 8.5rem;
	resize: vertical;
}

.hmsp-form input::placeholder,
.hmsp-form textarea::placeholder {
	color: var(--hmsp-muted);
	opacity: 0.75;
}

.hmsp-form input:focus,
.hmsp-form select:focus,
.hmsp-form textarea:focus {
	outline: none;
	border-color: var(--hmsp-navy);
	background-color: var(--hmsp-white);
	box-shadow: 0 0 0 3px var(--hmsp-navy-soft);
}

.hmsp-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 1.5rem 0 0;
}

.hmsp-form__consent input {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.15rem;
	accent-color: var(--hmsp-red);
}

.hmsp-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.75rem;
}

.hmsp-form__submit {
	padding: 1.0625rem 2rem;
	border: 0;
	border-radius: var(--hmsp-radius-sm);
	background: var(--hmsp-red);
	color: var(--hmsp-white);
	font: 600 1rem / 1.2 var(--wp--preset--font-family--open-sans);
	cursor: pointer;
}

.hmsp-form__submit:hover {
	background: var(--hmsp-navy);
}

.hmsp-form__legend {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--hmsp-muted);
}

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

.hmsp-form__notice {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: var(--hmsp-radius-sm);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.55;
}

.hmsp-form__notice.is-success {
	background: var(--hmsp-navy-soft);
	color: var(--hmsp-navy);
}

.hmsp-form__notice.is-error {
	background: var(--hmsp-red-soft);
	color: var(--hmsp-red);
}

@media (max-width: 600px) {
	.hmsp-form__grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   Fußbereich
   ========================================================= */

.hmsp-footer {
	margin-block-start: 0;
	padding-block: 3.5rem;
	border-top: 1px solid var(--hmsp-line-on-navy);
	background: var(--hmsp-navy);
	color: var(--hmsp-white);
}

.hmsp-footer__inner {
	gap: 1.5rem;
}

.hmsp-footer__brand {
	gap: 1rem;
}

.hmsp-footer .hmsp-logo img {
	height: 36px;
	min-width: 200px;
}

.hmsp-footer__claim {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hmsp-on-navy-soft);
}

.hmsp-footer__nav .wp-block-navigation__container {
	gap: 2rem;
}

.hmsp-footer__nav .wp-block-navigation-item__content {
	font-size: 0.9375rem;
	color: var(--hmsp-on-navy);
	text-decoration: none;
}

.hmsp-footer__nav .wp-block-navigation-item__content:hover {
	color: var(--hmsp-white);
}

/* =========================================================
   Unterseiten
   ========================================================= */

.hmsp-page {
	min-height: 60vh;
	padding-top: 4rem;
	padding-bottom: 6rem;
}

/* =========================================================
   Einblenden
   ========================================================= */

.hmsp-js-reveal .hmsp-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.8s var(--hmsp-ease), transform 0.8s var(--hmsp-ease);
}

.hmsp-js-reveal .hmsp-reveal.is-visible {
	opacity: 1;
	transform: none;
}

.hmsp-js-reveal .hmsp-steps .hmsp-reveal:nth-child(2),
.hmsp-js-reveal .hmsp-pillars .hmsp-reveal:nth-child(2),
.hmsp-js-reveal .hmsp-timeline .hmsp-reveal:nth-child(2) {
	transition-delay: 0.08s;
}

.hmsp-js-reveal .hmsp-steps .hmsp-reveal:nth-child(3),
.hmsp-js-reveal .hmsp-pillars .hmsp-reveal:nth-child(3),
.hmsp-js-reveal .hmsp-timeline .hmsp-reveal:nth-child(3) {
	transition-delay: 0.16s;
}

.hmsp-js-reveal .hmsp-steps .hmsp-reveal:nth-child(4) {
	transition-delay: 0.24s;
}

.editor-styles-wrapper .hmsp-reveal {
	opacity: 1 !important;
	transform: none !important;
}

.editor-styles-wrapper .hmsp-header-wrap {
	position: relative;
}
