/**
 * kamér Licht — Reiki, Lichtweg und Raumlicht, Version 1.2.
 * Rein dekorativ, auf das Foto begrenzt. Die bestehenden Bilder bleiben sichtbar.
 */

.kl-leistung > .kl-leistungs-motion-rahmen {
	position: relative;
	isolation: isolate;
}

.kl-leistungs-motion {
	--kl-motiv-gold: #f5dcaa;
	--kl-motiv-creme: #fff4d8;
	--kl-motiv-teal: #b7d6d1;
	position: absolute;
	inset: 0;
	z-index: 2;
	max-width: none;
	margin: 0;
	overflow: hidden;
	opacity: .78;
	pointer-events: none;
	mix-blend-mode: screen;
	transition: opacity .65s ease;
}

.kl-leistungs-motion > svg {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	overflow: hidden;
}

.kl-leistungs-motion :is(path, .kl-leistungs-motion__ring, .kl-leistungs-motion__kreis-basis) {
	fill: none;
	vector-effect: non-scaling-stroke;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.kl-leistung:focus-within .kl-leistungs-motion { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
	.kl-leistung:hover .kl-leistungs-motion { opacity: 1; }
}

/* Reiki: drei weiche Wellen breiten sich über dem Boden des Steinkreises aus. */
.kl-leistungs-motion__atem {
	opacity: .32;
	transform-box: fill-box;
	transform-origin: center;
	animation: kl-motiv-atmen 9s ease-in-out infinite paused;
}

.kl-leistungs-motion__kreis-basis {
	stroke: var(--kl-motiv-gold);
	stroke-width: .75;
	opacity: .23;
}

.kl-leistungs-motion__ring {
	stroke: var(--kl-motiv-creme);
	stroke-width: 1;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
	filter: drop-shadow(0 0 3px rgb(250 211 151 / .55));
	animation: kl-motiv-reiki 9s cubic-bezier(.18, .45, .35, 1) var(--kl-motiv-versatz, 0s) infinite paused;
}

/* Lebensberatung: winzige Lichtimpulse folgen einer eigenen geschwungenen Spur. */
.kl-leistungs-motion__weg {
	stroke: var(--kl-motiv-gold);
	stroke-width: .8;
	opacity: .3;
}

.kl-leistungs-motion__impuls {
	stroke: var(--kl-motiv-creme);
	stroke-width: 2.1;
	stroke-dasharray: 11 989;
	opacity: 0;
	filter: drop-shadow(0 0 4px rgb(255 221 154 / .85));
	animation: kl-motiv-lichtweg 15s linear var(--kl-motiv-versatz, 0s) infinite paused;
}

/* Raumgestaltung: ein langsamer warmer Lichthauch und filigrane Raumkonturen. */
.kl-leistungs-motion__lichthauch {
	opacity: .55;
	transform-box: fill-box;
	transform-origin: center;
	animation: kl-motiv-raumlicht 16s ease-in-out infinite paused;
}

.kl-leistungs-motion__raumglut {
	opacity: .4;
	transform-box: fill-box;
	transform-origin: center;
	animation: kl-motiv-atmen 11s ease-in-out -3s infinite paused;
}

.kl-leistungs-motion__kontur {
	stroke: var(--kl-motiv-gold);
	stroke-width: .65;
	opacity: .27;
}

.kl-leistungs-motion__kontur--teal {
	stroke: var(--kl-motiv-teal);
	opacity: .2;
}

.kl-leistungs-motion__konturlicht {
	stroke: var(--kl-motiv-creme);
	stroke-width: 1;
	stroke-dasharray: 90 910;
	opacity: 0;
	filter: drop-shadow(0 0 3px rgb(252 220 163 / .55));
	animation: kl-motiv-kontur 22s linear -4s infinite paused;
}

.kl-leistungs-motion__funke {
	fill: var(--kl-motiv-creme);
	opacity: .22;
	transform-box: fill-box;
	transform-origin: center;
	filter: drop-shadow(0 0 4px rgb(255 231 187 / .75));
	animation: kl-motiv-funken 12s ease-in-out var(--kl-motiv-versatz, 0s) infinite paused;
}

.kl-leistungs-motion.ist-motion-aktiv * { animation-play-state: running; }
.kl-leistungs-motion.ist-motion-ruhig * { animation: none !important; }
.kl-leistungs-motion.ist-motion-ruhig { opacity: .5; }

@keyframes kl-motiv-atmen {
	0%, 100% { opacity: .28; transform: scale(.91); }
	50% { opacity: .7; transform: scale(1.06); }
}

@keyframes kl-motiv-reiki {
	0% { opacity: 0; transform: scale(.3); }
	14% { opacity: .67; }
	66% { opacity: .34; }
	100% { opacity: 0; transform: scale(1.15); }
}

@keyframes kl-motiv-lichtweg {
	0% { stroke-dashoffset: 0; opacity: 0; }
	8%, 79% { opacity: .94; }
	96%, 100% { stroke-dashoffset: -1000; opacity: 0; }
}

@keyframes kl-motiv-raumlicht {
	0%, 100% { opacity: .42; transform: translate(-100px, 16px) scale(.92); }
	50% { opacity: .85; transform: translate(95px, -25px) scale(1.12); }
}

@keyframes kl-motiv-kontur {
	0% { stroke-dashoffset: 0; opacity: 0; }
	12%, 78% { opacity: .55; }
	100% { stroke-dashoffset: -1000; opacity: 0; }
}

@keyframes kl-motiv-funken {
	0%, 25%, 55%, 100% { opacity: .12; transform: scale(.7); }
	37% { opacity: .9; transform: scale(1.4); }
	44% { opacity: .34; transform: scale(.9); }
}

/* Auf kleinen Bildflächen bleiben weniger Akzente und eine langsamere Grundstimmung. */
@media (max-width: 699.98px), (pointer: coarse) {
	.kl-leistungs-motion { opacity: .64; }
	.kl-leistungs-motion__ring { animation-duration: 12s; }
	.kl-leistungs-motion__impuls { animation-duration: 19s; }
	.kl-leistungs-motion__funke:last-child,
	.kl-leistungs-motion__ring:nth-of-type(5),
	.kl-leistungs-motion__impuls:nth-of-type(4),
	.kl-leistungs-motion__konturlicht { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.kl-leistungs-motion { opacity: .5; transition: none; }
	.kl-leistungs-motion * { animation: none !important; }
}

@media (forced-colors: active), print {
	.kl-leistungs-motion { display: none !important; }
}
