/* Wiederhergestellt am 21.09.2026: Diese Regel setzt einen Modus um, den der
   Kunde ausdruecklich gewaehlt hat. Der zugehoerige Elementor-Regler schreibt
   dieselbe Eigenschaft bei (0,4,0) und wuerde den Modus sonst aushebeln. */
/* ═══════════════════════════════════════════════════════════════════════════
   Ohne !important — nachgemessen, nicht geraten

   Beide Fassungen wurden bei 1440, 1024, 767 und 390 Pixeln Element für
   Element verglichen, über 37 Eigenschaften je Element.
   Wirksam war nur die Regel am Medienrahmen — zwei von neun.
   ═══════════════════════════════════════════════════════════════════════════ */

/* =============================================================================
   HDM Leistung Header — dynamischer Split-Hero pro Leistungs-Unterseite
   ============================================================================= */

.hdm-lh-section {
	--hdm-lh-accent: #0067ff;
	--hdm-lh-title:  #06162f;
	--hdm-lh-text:   #3f5069;
	--hdm-lh-chip-bg:rgba(0, 103, 255, 0.08);
	--hdm-lh-chip-tx:#0a3fb0;
	--hdm-lh-card:   #f7f9fc;
	position: relative;
	background: #ffffff;
	overflow: hidden;
}

/* Dark scheme */
.hdm-lh-scheme-dark {
	--hdm-lh-title:  #ffffff;
	--hdm-lh-text:   rgba(255, 255, 255, 0.72);
	--hdm-lh-chip-bg:rgba(255, 255, 255, 0.08);
	--hdm-lh-chip-tx:rgba(255, 255, 255, 0.9);
	--hdm-lh-card:   rgba(255, 255, 255, 0.05);
	background: #06162f;
}

.hdm-lh-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 40px;
}

.hdm-lh-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 64px;
	align-items: center;
}
.hdm-lh-media-left .hdm-lh-text  { order: 2; }
.hdm-lh-media-left .hdm-lh-media-wrap { order: 1; }

/* ── Eyebrow ── */
.hdm-lh-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hdm-lh-accent);
	margin-bottom: 22px;
}
.hdm-lh-eyebrow::before {
	content: '';
	width: 22px; height: 2px;
	background: currentColor;
	border-radius: 2px;
	flex-shrink: 0;
}

/* ── Title ── */
.hdm-lh-title {
	font-size: 58px;
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.04em;
	color: var(--hdm-lh-title);
	margin: 0 0 24px;
}
.hdm-lh-line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.03em;
}
.hdm-lh-line-inner { display: block; will-change: transform; }
/* Theme-Überschriften-Farbe (oft weiß) überschreiben → Headline immer sichtbar */
.hdm-lh-section .hdm-lh-title,
.hdm-lh-section .hdm-lh-title .hdm-lh-line-inner {
	color: var(--hdm-lh-title);
}
.hdm-lh-section .hdm-lh-title .hdm-lh-hl {
	color: var(--hdm-lh-accent);
}

/* ── Description ── */
.hdm-lh-desc {
	font-size: 18px;
	line-height: 1.72;
	color: var(--hdm-lh-text);
	max-width: 540px;
	margin: 0 0 28px;
}

/* ── Chips ── */
.hdm-lh-chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 34px;
	padding: 0;
}
.hdm-lh-chip {
	font-size: 13px;
	font-weight: 600;
	color: var(--hdm-lh-chip-tx);
	background: var(--hdm-lh-chip-bg);
	border: 1px solid color-mix(in srgb, var(--hdm-lh-accent) 18%, transparent);
	padding: 7px 15px;
	border-radius: 100px;
}

/* ── Buttons ── */
.hdm-lh-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.hdm-lh-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 15px 26px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 100px;
	transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
	cursor: pointer;
}
.hdm-lh-btn-primary {
	background: var(--hdm-lh-accent);
	color: #fff;
	box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--hdm-lh-accent) 65%, transparent);
}
.hdm-lh-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px -10px color-mix(in srgb, var(--hdm-lh-accent) 75%, transparent);
	color: #fff;
}
.hdm-lh-btn-primary svg { transition: transform 0.25s ease; }
.hdm-lh-btn-primary:hover svg { transform: translateX(4px); }

.hdm-lh-btn-ghost {
	background: transparent;
	color: var(--hdm-lh-title);
	border: 1.5px solid color-mix(in srgb, var(--hdm-lh-title) 22%, transparent);
}
.hdm-lh-btn-ghost:hover {
	transform: translateY(-2px);
	border-color: var(--hdm-lh-accent);
	color: var(--hdm-lh-accent);
}

/* ── Media ── */
.hdm-lh-media-wrap {
	position: relative;
}
.hdm-lh-media {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--hdm-lh-card);
	box-shadow: 0 40px 80px -40px rgba(6, 22, 47, 0.5);
	z-index: 1;
}
/* !important, weil praktisch jedes Theme `img { height: auto !important }`
   mitbringt. Ohne das rendert das Bild im Eigenformat und lässt unten im
   Rahmen einen weißen Streifen stehen — object-fit hat dann nichts mehr zu tun. */
/* Der Vorfahre ersetzt zwei !important: `img { max-width: 100% }` und
   `.elementor img` des Themes würden das Motiv sonst auf die Rahmenbreite
   stauchen, statt es die Fläche füllen zu lassen. Mit `.hdm-lh-media-wrap`
   steht die Regel auf (0,2,1) und gewinnt. */
.hdm-lh-media-wrap .hdm-lh-img,
.hdm-lh-media-wrap .hdm-lh-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── „Bild ganz zeigen": nichts wird beschnitten ──
   Der freie Rand nimmt die Rahmenfarbe an, deshalb ist unten „Format folgt
   dem Bild" die randlose Variante. */
.hdm-lh-media.is-contain .hdm-lh-img,
.hdm-lh-media.is-contain .hdm-lh-video {
	object-fit: contain;
}

/* ── „Format folgt dem Bild": kein Rand und kein Beschnitt ──
   Der Rahmen gibt seine feste Ratio auf und übernimmt die Bildhöhe. */
.hdm-lh-media.is-auto {
	aspect-ratio: auto !important;
}
.hdm-lh-media.is-auto .hdm-lh-img,
.hdm-lh-media.is-auto .hdm-lh-video {
	height: auto;
	object-fit: contain;
}

/* Schwebendes Badge */
.hdm-lh-badge {
	position: absolute;
	left: 18px;
	bottom: 18px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 15px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 100px;
	font-size: 13px;
	font-weight: 700;
	color: #0a7a35;
	box-shadow: 0 8px 24px rgba(6, 22, 47, 0.18);
	z-index: 2;
	animation: hdmLhFloat 4s ease-in-out infinite;
}
@keyframes hdmLhFloat {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-7px); }
}

/* ── 3D-Schwebe-Effekt ── */
.hdm-lh-3d .hdm-lh-media-wrap { perspective: 1100px; }
.hdm-lh-3d .hdm-lh-media {
	transform: rotateY(-7deg) rotateX(3deg);
	transform-style: preserve-3d;
	transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.45s ease;
	will-change: transform;
}
.hdm-lh-media-left.hdm-lh-3d .hdm-lh-media {
	transform: rotateY(7deg) rotateX(3deg);
}
.hdm-lh-3d .hdm-lh-media-wrap:hover .hdm-lh-media {
	box-shadow: 0 60px 110px -40px rgba(6, 22, 47, 0.6);
}

/* Glow hinter dem Medium */
.hdm-lh-glow {
	position: absolute;
	inset: 12% -6% -12% 10%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--hdm-lh-accent) 40%, transparent), transparent);
	filter: blur(40px);
	opacity: 0.5;
	z-index: 0;
	pointer-events: none;
}

/* ══════════════════════ ANIMATIONEN ══════════════════════════════════════ */
.hdm-lh-anim-on .hdm-lh-line-inner {
	transform: translateY(108%);
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: var(--hdm-d, 0ms);
}
.hdm-lh-anim-on.is-in .hdm-lh-line-inner { transform: translateY(0); }

.hdm-lh-anim-on .hdm-lh-el {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: var(--hdm-d, 0ms);
}
.hdm-lh-anim-on.is-in .hdm-lh-el {
	opacity: 1;
	transform: translateY(0);
}
/* Media zusätzlich leicht skalieren */
.hdm-lh-anim-on .hdm-lh-media-wrap { transform: translateY(24px) scale(0.97); }
.hdm-lh-anim-on.is-in .hdm-lh-media-wrap { transform: translateY(0) scale(1); }

/* Im Elementor-Editor immer sichtbar (Animation würde sonst nur Weiß zeigen) */
body.elementor-editor-active .hdm-lh-line-inner,
body.elementor-editor-active .hdm-lh-el,
body.elementor-editor-active .hdm-lh-media-wrap {
	opacity: 1;
}
body.elementor-editor-active .hdm-lh-line-inner,
body.elementor-editor-active .hdm-lh-el {
	transform: none;
}
body.elementor-editor-active .hdm-lh-media-wrap { transform: none; }

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
	.hdm-lh-container { padding: 0 32px; }
	.hdm-lh-grid { gap: 44px; }
	.hdm-lh-title { font-size: 46px; }
}

/* ── Responsive: unter 860px → stapeln, Medium zuerst ── */
@media (max-width: 860px) {
	.hdm-lh-grid { grid-template-columns: 1fr; gap: 36px; }
	.hdm-lh-media-left .hdm-lh-text,
	.hdm-lh-text  { order: 2; }
	.hdm-lh-media-left .hdm-lh-media-wrap,
	.hdm-lh-media-wrap { order: 1; }
	.hdm-lh-desc { max-width: none; }
	.hdm-lh-media { aspect-ratio: 16 / 10; }
}

/* ── Responsive: Mobile ── */
@media (max-width: 600px) {
	.hdm-lh-container { padding: 0 20px; }
	.hdm-lh-title { font-size: 34px; }
	.hdm-lh-desc { font-size: 16px; }
	.hdm-lh-actions { flex-direction: column; align-items: stretch; }
	.hdm-lh-btn { justify-content: center; width: 100%; }
	.hdm-lh-media { aspect-ratio: 4 / 3; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
	.hdm-lh-line-inner,
	.hdm-lh-el,
	.hdm-lh-media-wrap { transition: none !important; transform: none !important; opacity: 1 !important; }
	.hdm-lh-badge { animation: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Das Kit setzt `.elementor-kit-24 h1..h4 { text-transform: capitalize }` —
   (0,1,1), geladen vor uns. Im Deutschen wird daraus Title Case: aus
   „Sichtbar werden bei Google" wird „Sichtbar Werden Bei Google".
   Mit dem Vorfahren steht die Regel auf (0,2,0) und gewinnt. NUR diese eine
   Eigenschaft wird verstaerkt — Groesse, Gewicht und Farbe bleiben beim Kit
   bzw. beim Elementor-Regler, damit sich sonst nichts verschiebt.
   Setzt jemand den Schriftregler bewusst auf Grossschreibung, schreibt
   Elementor (0,4,0) und gewinnt weiterhin.
   ══════════════════════════════════════════════════════════════════════════ */
.hdm-lh-section .hdm-lh-title { text-transform: none; }
