/*
Theme Name: Kengeter SmartHome
Theme URI: https://www.kengeter-smarthome.com
Author: Kengeter SmartHome
Description: Schlankes Block-Theme in den Stammfarben (Rosé/Grau aus dem Logo). Farben und Schrift zentral in theme.json, Animationen in assets/ksh.js, abschaltbar über „Bewegung reduzieren".
Version: 1.1.3
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: ksh
*/

/* ==========================================================================
   Grundlagen
   ========================================================================== */

:root {
	--ksh-schatten: 0 1px 2px rgba(43, 43, 43, .04), 0 8px 24px rgba(43, 43, 43, .06);
	--ksh-schatten-hoch: 0 2px 4px rgba(43, 43, 43, .05), 0 18px 40px rgba(175, 81, 98, .14);
	--ksh-radius: 14px;
	--ksh-kopf: 76px;
	--ksh-ease: cubic-bezier(.22, .61, .36, 1);
}

html {
	scroll-behavior: smooth;
}

[id] {
	scroll-margin-top: calc(var(--ksh-kopf) + 16px);
}

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

::selection {
	background: rgba(206, 95, 115, .25);
	color: var(--wp--preset--color--text);
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--rose-dunkel);
	outline-offset: 3px;
	border-radius: 4px;
}

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

/* ==========================================================================
   Kopfzeile
   ========================================================================== */

.ksh-kopf {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .3s var(--ksh-ease), border-color .3s var(--ksh-ease);
}

.admin-bar .ksh-kopf {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .ksh-kopf {
		top: 46px;
	}
}

.ksh-kopf.is-scrolled {
	border-bottom-color: var(--wp--preset--color--linie);
	box-shadow: 0 6px 24px rgba(43, 43, 43, .06);
}

.ksh-kopf .wp-block-site-logo img {
	height: auto;
}

.ksh-nav .wp-block-navigation-item__content {
	position: relative;
	font-weight: 500;
	padding-block: .35em;
}

.ksh-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--wp--preset--color--rose);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--ksh-ease);
}

.ksh-nav .wp-block-navigation-item__content:hover::after,
.ksh-nav .wp-block-navigation-item__content:focus-visible::after {
	transform: scaleX(1);
}

.ksh-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px;
}

.ksh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.1rem;
	font-size: 1.25rem;
}

/* ==========================================================================
   Knöpfe
   ========================================================================== */

.wp-element-button,
.wp-block-button__link {
	transition: background-color .25s var(--ksh-ease), color .25s var(--ksh-ease),
		box-shadow .25s var(--ksh-ease), transform .25s var(--ksh-ease);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(175, 81, 98, .28);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--rose-dunkel);
	color: var(--wp--preset--color--rose-dunkel);
	background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--rose-dunkel);
	color: #fff;
}

.ksh-pfeil::after {
	content: "→";
	display: inline-block;
	margin-left: .45em;
	transition: transform .25s var(--ksh-ease);
}

.wp-block-button__link:hover .ksh-pfeil::after,
.ksh-pfeil:hover::after {
	transform: translateX(4px);
}

/* ==========================================================================
   Abschnitte allgemein
   ========================================================================== */

.ksh-abschnitt {
	position: relative;
}

.ksh-abschnitt--hell {
	background: var(--wp--preset--color--hell);
}

.ksh-eyebrow {
	display: flex;
	align-items: center;
	gap: .6em;
	font-size: .8rem !important;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rose-dunkel);
	margin-bottom: .5rem !important;
}

.ksh-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--wp--preset--color--rose);
	border-radius: 2px;
}

.ksh-titel {
	position: relative;
}

.ksh-lead {
	font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem);
	color: var(--wp--preset--color--text-schwach);
	max-width: 42rem;
}

.has-text-align-center.ksh-lead {
	margin-inline: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.ksh-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(60rem 30rem at 85% -10%, rgba(206, 95, 115, .15), transparent 60%),
		radial-gradient(40rem 26rem at -10% 110%, rgba(206, 95, 115, .12), transparent 60%),
		linear-gradient(180deg, #fff 0%, #FBF6F7 100%);
}

.ksh-hero__deko {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.ksh-hero__deko svg {
	position: absolute;
	right: max(0px, calc(50% - 45rem));
	top: 50%;
	width: min(50rem, 64vw);
	height: auto;
	transform: translateY(-50%);
	opacity: .9;
}

.ksh-dach-linie {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ksh-hero__blase {
	position: absolute;
	border-radius: 50%;
	filter: blur(40px);
	opacity: .55;
}

.ksh-hero__blase--1 {
	width: 22rem;
	height: 22rem;
	right: 8%;
	top: 8%;
	background: rgba(206, 95, 115, .25);
	animation: ksh-schweben 14s ease-in-out infinite;
}

.ksh-hero__blase--2 {
	width: 16rem;
	height: 16rem;
	left: 4%;
	bottom: -4rem;
	background: rgba(203, 204, 204, .5);
	animation: ksh-schweben 18s ease-in-out infinite reverse;
}

@keyframes ksh-schweben {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-2.5rem, 1.5rem) scale(1.08); }
}

.ksh-hero h1 {
	max-width: 14ch;
}

.ksh-hero h1 .ksh-akzent {
	color: var(--wp--preset--color--rose);
	position: relative;
	white-space: nowrap;
}

.ksh-hero .ksh-lead {
	max-width: 36rem;
}

@media (min-width: 782px) and (max-width: 1100px) {
	.ksh-hero__deko svg { opacity: .35; }
}

@media (max-width: 781px) {
	.ksh-hero__deko svg {
		right: -18%;
		top: 14%;
		width: 150vw;
		opacity: .22;
	}
}

/* Vertrauensleiste unter dem Hero */
.ksh-fakten {
	border-top: 1px solid var(--wp--preset--color--linie);
	border-bottom: 1px solid var(--wp--preset--color--linie);
	background: #fff;
}

.ksh-fakten .wp-block-columns {
	align-items: center !important;
}

.ksh-fakt {
	display: flex;
	align-items: center;
	gap: .8rem;
	margin: 0;
	font-weight: 500;
	font-size: .98rem;
}

.ksh-fakt svg {
	flex: none;
	width: 38px;
	height: 38px;
	padding: 8px;
	border-radius: 10px;
	background: var(--wp--preset--color--rose-flaeche);
	stroke: var(--wp--preset--color--rose-dunkel);
}

.ksh-fakt small {
	display: block;
	font-weight: 400;
	font-size: .85rem;
	color: var(--wp--preset--color--text-schwach);
}

.ksh-partnerbadge {
	display: block;
	max-width: 190px;
	line-height: 0;
	margin-inline: auto;
}

.ksh-partnerbadge svg {
	width: 100%;
	height: auto;
	display: block;
}

/* ==========================================================================
   Leistungen
   ========================================================================== */

.ksh-karten {
	gap: clamp(1rem, 2vw, 1.75rem) !important;
}

.ksh-karte {
	position: relative;
	background: #fff;
	border: 1px solid var(--wp--preset--color--linie);
	border-radius: var(--ksh-radius);
	box-shadow: var(--ksh-schatten);
	overflow: hidden;
	transition: transform .35s var(--ksh-ease), box-shadow .35s var(--ksh-ease), border-color .35s var(--ksh-ease);
}

.ksh-karte::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--wp--preset--color--rose-dunkel), var(--wp--preset--color--rose));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .45s var(--ksh-ease);
}

.ksh-karte:hover {
	transform: translateY(-6px);
	box-shadow: var(--ksh-schatten-hoch);
	border-color: rgba(206, 95, 115, .35);
}

.ksh-karte:hover::before {
	transform: scaleX(1);
}

.ksh-karte h3 {
	margin-top: 1.1rem;
}

.ksh-karte p {
	color: var(--wp--preset--color--text-schwach);
	font-size: .98rem;
}

.ksh-symbol {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: var(--wp--preset--color--rose-flaeche);
	transition: background-color .35s var(--ksh-ease), transform .35s var(--ksh-ease);
}

.ksh-symbol svg {
	width: 28px;
	height: 28px;
	stroke: var(--wp--preset--color--rose-dunkel);
	transition: stroke .35s var(--ksh-ease);
}

.ksh-karte:hover .ksh-symbol {
	background: var(--wp--preset--color--rose-dunkel);
	transform: rotate(-6deg) scale(1.05);
}

.ksh-karte:hover .ksh-symbol svg {
	stroke: #fff;
}

.ksh-stichworte {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.ksh-stichworte li {
	font-size: .78rem;
	font-weight: 500;
	padding: .25rem .65rem;
	border-radius: 999px;
	background: var(--wp--preset--color--hell);
	border: 1px solid var(--wp--preset--color--linie);
	color: var(--wp--preset--color--text-schwach);
}

/* ==========================================================================
   Ablauf
   ========================================================================== */

.ksh-schritte {
	counter-reset: ksh-schritt;
	gap: clamp(1rem, 3vw, 2.5rem) !important;
}

.ksh-schritt {
	position: relative;
	padding-top: 3.6rem;
}

.ksh-schritt::before {
	counter-increment: ksh-schritt;
	content: counter(ksh-schritt, decimal-leading-zero);
	position: absolute;
	top: 0;
	left: 0;
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--rose);
	opacity: .9;
}

.ksh-schritt::after {
	content: "";
	position: absolute;
	top: 1.3rem;
	left: 4.2rem;
	right: -1rem;
	height: 2px;
	background: linear-gradient(90deg, rgba(206, 95, 115, .55), transparent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 1s var(--ksh-ease) .3s;
}

.ksh-schritt.is-visible::after,
html:not(.ksh-js) .ksh-schritt::after {
	transform: scaleX(1);
}

.ksh-schritt:last-child::after {
	display: none;
}

.ksh-schritt p {
	color: var(--wp--preset--color--text-schwach);
}

@media (max-width: 781px) {
	.ksh-schritt::after {
		display: none;
	}
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.ksh-kontakt {
	background:
		radial-gradient(36rem 22rem at 100% 0%, rgba(206, 95, 115, .17), transparent 65%),
		var(--wp--preset--color--rose-flaeche);
	overflow: hidden;
}

.ksh-kontakt .wp-block-columns {
	align-items: center !important;
}

.ksh-portraet {
	position: relative;
	margin: 0;
}

.ksh-portraet::before {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 0;
	height: 78%;
	border-radius: 28px 28px 0 0;
	background: linear-gradient(160deg, var(--wp--preset--color--rose), var(--wp--preset--color--rose-dunkel));
	opacity: .9;
	z-index: 0;
}

.ksh-portraet img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	max-width: 380px;
	height: auto;
	margin-inline: auto;
}

.ksh-kontaktwege {
	display: grid;
	gap: .8rem;
	margin: 1.5rem 0;
	padding: 0;
	list-style: none;
}

.ksh-kontaktwege a {
	display: flex;
	align-items: center;
	gap: .9rem;
	padding: .9rem 1.1rem;
	border-radius: 12px;
	background: #fff;
	color: var(--wp--preset--color--text);
	text-decoration: none;
	font-weight: 500;
	box-shadow: var(--ksh-schatten);
	transition: transform .25s var(--ksh-ease), box-shadow .25s var(--ksh-ease);
}

.ksh-kontaktwege a:hover {
	transform: translateX(6px);
	box-shadow: var(--ksh-schatten-hoch);
}

.ksh-kontaktwege svg {
	flex: none;
	width: 22px;
	height: 22px;
	stroke: var(--wp--preset--color--rose-dunkel);
}

.ksh-kontaktwege small {
	display: block;
	font-weight: 400;
	font-size: .8rem;
	color: var(--wp--preset--color--text-schwach);
}

/* ==========================================================================
   Unterseiten (Impressum, Datenschutz, Fragebogen)
   ========================================================================== */

.ksh-seitenkopf {
	background:
		radial-gradient(40rem 16rem at 90% 0%, rgba(206, 95, 115, .14), transparent 70%),
		var(--wp--preset--color--hell);
	border-bottom: 1px solid var(--wp--preset--color--linie);
}

.ksh-seitenkopf .wp-block-post-title {
	margin: 0;
}

.ksh-inhalt h2 {
	font-size: var(--wp--preset--font-size--gross);
	margin-top: 2.2em;
	padding-bottom: .35em;
	border-bottom: 1px solid var(--wp--preset--color--linie);
}

.ksh-inhalt h2:first-child {
	margin-top: 0;
}

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

.ksh-fuss {
	border-top: 3px solid var(--wp--preset--color--rose);
	background: var(--wp--preset--color--hell);
	font-size: .95rem;
}

.ksh-fuss a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.ksh-fuss a:hover {
	color: var(--wp--preset--color--rose-dunkel);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ksh-fuss .ksh-fuss__titel {
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-schwach);
	margin-bottom: .6rem;
}

.ksh-fuss__unten {
	border-top: 1px solid var(--wp--preset--color--linie);
	color: var(--wp--preset--color--text-schwach);
	font-size: .85rem;
}

.ksh-fuss__unten p {
	margin: 0;
}

/* ==========================================================================
   Animation: Einblenden beim Scrollen
   Nur aktiv, wenn JS läuft (Klasse ksh-js am <html>) und der Besucher
   keine reduzierte Bewegung eingestellt hat.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	.ksh-js .ksh-reveal {
		opacity: 0;
		transform: translateY(28px);
		transition: opacity .8s var(--ksh-ease), transform .8s var(--ksh-ease);
		transition-delay: calc(var(--ksh-i, 0) * 110ms);
	}

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

	.ksh-js .ksh-reveal--links {
		transform: translateX(-36px);
	}

	.ksh-js .ksh-reveal--rechts {
		transform: translateX(36px);
	}

	.ksh-js .ksh-reveal--zoom {
		transform: scale(.94);
	}

	/* Hero beim Laden */
	.ksh-hero .ksh-auftritt {
		opacity: 0;
		animation: ksh-auftritt .9s var(--ksh-ease) forwards;
		animation-delay: calc(.1s + var(--ksh-i, 0) * .14s);
	}

	@keyframes ksh-auftritt {
		from { opacity: 0; transform: translateY(22px); }
		to { opacity: 1; transform: none; }
	}

	/* Dachlinie aus dem Logo zeichnet sich */
	.ksh-dach-linie {
		stroke-dasharray: var(--ksh-len, 1600);
		stroke-dashoffset: var(--ksh-len, 1600);
		animation: ksh-zeichnen 2.4s var(--ksh-ease) forwards;
		animation-delay: calc(.35s + var(--ksh-i, 0) * .35s);
	}

	@keyframes ksh-zeichnen {
		to { stroke-dashoffset: 0; }
	}

	.ksh-dach-punkt {
		opacity: 0;
		transform-box: fill-box;
		transform-origin: center;
		animation: ksh-punkt .6s var(--ksh-ease) forwards, ksh-puls 3.2s ease-in-out 3s infinite;
		animation-delay: calc(1.6s + var(--ksh-i, 0) * .2s), calc(3s + var(--ksh-i, 0) * .4s);
	}

	@keyframes ksh-punkt {
		from { opacity: 0; transform: scale(.2); }
		to { opacity: 1; transform: scale(1); }
	}

	@keyframes ksh-puls {
		0%, 100% { transform: scale(1); }
		50% { transform: scale(1.35); }
	}

	/* Hero H3: die drei Pakete im Daten-Bein füllen sich nacheinander (einmal) */
	.ksh-paket {
		transform: none;
		animation: ksh-paket-ein .6s ease-out forwards;
		animation-delay: calc(1.9s + var(--ksh-i, 0) * .22s);
	}

	@keyframes ksh-paket-ein {
		from { opacity: 0; }
		to { opacity: 1; }
	}

	/* Unterstrich unter Abschnittsüberschriften wächst */
	.ksh-titel::after {
		content: "";
		display: block;
		width: 56px;
		height: 3px;
		margin-top: .55em;
		border-radius: 3px;
		background: var(--wp--preset--color--rose);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .9s var(--ksh-ease) .25s;
	}

	.has-text-align-center.ksh-titel::after {
		margin-inline: auto;
		transform-origin: center;
	}

	.ksh-titel.is-visible::after,
	html:not(.ksh-js) .ksh-titel::after {
		transform: scaleX(1);
	}
}

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

	.ksh-hero__blase {
		animation: none;
	}

	.ksh-titel::after {
		content: "";
		display: block;
		width: 56px;
		height: 3px;
		margin-top: .55em;
		border-radius: 3px;
		background: var(--wp--preset--color--rose);
	}

	.has-text-align-center.ksh-titel::after {
		margin-inline: auto;
	}

	*, *::before, *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* ==========================================================================
   Raster, Abstände, Hilfsklassen
   ========================================================================== */

.ksh-pad-hero { padding-block: clamp(4.5rem, 3rem + 7vw, 9rem) clamp(4rem, 2.5rem + 6vw, 8rem); }
.ksh-pad-xl { padding-block: var(--wp--preset--spacing--60); }
.ksh-pad-l { padding-block: var(--wp--preset--spacing--50); }
.ksh-pad-m { padding-block: var(--wp--preset--spacing--40); }

.ksh-i1 { --ksh-i: 1; }
.ksh-i2 { --ksh-i: 2; }
.ksh-i3 { --ksh-i: 3; }

/* Abschnitte der Startseite ohne Lücke untereinander */
.ksh-start > * + * { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

.ksh-hero > .ksh-hero__deko {
	max-width: none !important;
	margin: 0 !important;
}

.ksh-kopf__innen { padding-block: .85rem; }
.ksh-kopf__rechts { gap: 1.75rem; }
.ksh-kopf__knopf .wp-block-button__link { padding: .6rem 1.2rem; font-size: .95rem; }

@media (max-width: 781px) {
	.ksh-kopf__knopf { display: none !important; }
	.ksh-kopf .wp-block-site-logo img { width: 140px !important; }
}

.ksh-faktenraster {
	display: grid;
	grid-template-columns: repeat(3, 1fr) auto;
	align-items: center;
	gap: 1.25rem 2rem;
}

.ksh-faktenraster .ksh-partnerbadge { margin: 0; width: 170px; }

@media (max-width: 960px) {
	.ksh-faktenraster { grid-template-columns: 1fr 1fr; }
	.ksh-faktenraster .ksh-partnerbadge { justify-self: start; }
}

@media (max-width: 560px) {
	.ksh-faktenraster { grid-template-columns: 1fr; }
}

.ksh-karten {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
	margin-top: var(--wp--preset--spacing--50) !important;
}

.ksh-karte { padding: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); }
.ksh-karte h3 { margin-bottom: .5rem; }
.ksh-karte p { margin: 0; }

/* Herstellerlogos unter den Leistungen – rein beschreibend, keine Partnerschaft.
   Logos unverändert: keine Animation, kein Ausgrauen, keine Deckkraft (Vorgaben
   Synology/Ubiquiti). Schutzraum je Logo = Höhe des „S“ im Synology-Logo. */
.ksh-technik {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .25rem 2rem;
	margin-top: clamp(2rem, 1.4rem + 1.6vw, 3rem) !important;
	padding-top: 1rem;
	border-top: 1px solid var(--wp--preset--color--linie);
}

.ksh-technik__titel {
	margin: 0;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-schwach);
}

.ksh-technik__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ksh-technik__logos li {
	padding: 18px;
	line-height: 0;
}

.ksh-technik__logos img {
	display: block;
	width: auto;
	height: 30px;
}

.ksh-technik__marken {
	flex-basis: 100%;
	margin: 0;
	text-align: center;
	font-size: .72rem;
	color: var(--wp--preset--color--text-schwach);
}

.ksh-schritte {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: var(--wp--preset--spacing--40) !important;
}

.ksh-schritt h3 { margin: 0 0 .4rem; }
.ksh-schritt p { margin: 0; }

@media (max-width: 781px) {
	.ksh-schritte { grid-template-columns: 1fr; gap: 2rem !important; }
}

.ksh-fuss .ksh-partnerbadge--links { margin-inline: 0; max-width: 180px; }
.ksh-fuss__unten { padding-block: 1.25rem; }
.ksh-fuss .wp-block-columns { margin-bottom: 0; }

/* Fragebogen-Plugin in die Stammfarben holen (Plugin selbst unverändert) */
body .itf-wrap {
	--itf-akzent: #AF5162;
	--itf-text: #2B2B2B;
	--itf-rahmen: #E3E3E3;
	--itf-flaeche: #FAF7F8;
	font-family: inherit;
}

.has-text-align-center.ksh-eyebrow { justify-content: center; }
.ksh-hero__text > * { max-width: none; }
.ksh-hero__text > .ksh-lead { max-width: 36rem; }
.ksh-hero__text > h1 { max-width: 14ch; }
.ksh-hero__text .wp-block-buttons { margin-top: 2rem; }

/* ==========================================================================
   Logo H3 (Inline-SVG aus assets/marke/logo-quer.svg, siehe functions.php)
   ========================================================================== */

.ksh-logo {
	--ksh-logo-h: 42px;
}

.ksh-logo .custom-logo-link {
	position: relative;
	display: block;
	line-height: 0;
}

.ksh-logo .ksh-logo__bild {
	display: block;
	height: var(--ksh-logo-h);
	width: auto;
	aspect-ratio: 744.09 / 169.18;
}

.ksh-fuss .ksh-logo {
	--ksh-logo-h: 40px;
}

@media (max-width: 781px) {
	.ksh-kopf .ksh-logo {
		--ksh-logo-h: 34px;
	}
}

/* Intro: stehendes Logo ausblenden, solange das animierte darüberliegt.
   Notfall: ohne JavaScript erscheint es nach spätestens 5 s wieder. */
.ksh-intro .ksh-kopf .ksh-logo__bild {
	visibility: hidden;
	animation: ksh-intro-notfall 0s 5s forwards;
}

@keyframes ksh-intro-notfall {
	to { visibility: visible; }
}

/* intro.svg hat ringsum 10 Einheiten Rand (viewBox -10 -10 764.09 189.18).
   Maße fest und mit !important, weil ältere Regeln für .wp-block-site-logo img
   (height: auto, mobil width: 140px !important) sonst greifen. */
.ksh-kopf .ksh-logo img.ksh-logo__intro {
	position: absolute;
	left: calc(var(--ksh-logo-h) * -0.05911);
	top: calc(var(--ksh-logo-h) * -0.05911);
	width: calc(var(--ksh-logo-h) * 4.51646) !important;
	height: calc(var(--ksh-logo-h) * 1.11822) !important;
	max-width: none;
	pointer-events: none;
}

/* Kamera-Szenen (Shortcode ksh_kamera) */
.ksh-kamera-rahmen { margin: 0 auto; width: 100%; }
.ksh-kamera-rahmen img,
.ksh-kamera-rahmen svg { display: block; width: 100%; height: auto; }

/* ==========================================================================
   Hero-Szene H3 (30.09.2026): H3-Linienbild, dazu ein kleiner Tagesablauf in Schleife –
   immer nur eine Sache auf einmal: Licht an/aus, Auto lädt an der Wallbox, Kamera schwenkt.
   Ruhezustand = Endbild (Licht an, Auto lädt, Kamera ruhig) für „Bewegung reduzieren“ und ohne CSS-Animation.
   ========================================================================== */
.ksh-hero-szene .ksh-kam,
.ksh-hero-szene .ksh-kam-maus {
	transform-box: view-box;
	transform-origin: 99px 62px;
}
.ksh-hero-szene .ksh-kam { transform: rotate(25deg); }


@media (prefers-reduced-motion: no-preference) {
	.ksh-hero-szene .ksh-lampe,
	.ksh-hero-szene .ksh-wallbox,
	.ksh-hero-szene .ksh-szene-kamera { opacity: 0; animation: ksh-ein .6s ease-out 2.6s forwards; }
	.ksh-hero-szene .ksh-licht { opacity: 0; animation: ksh-t-licht 18s linear 3.2s infinite; }
	.ksh-hero-szene .ksh-birne { fill: #E3E3E3; animation: ksh-t-birne 18s linear 3.2s infinite; }
	.ksh-hero-szene .ksh-auto { opacity: 0; animation: ksh-t-auto 18s cubic-bezier(.3, .6, .3, 1) 3.2s infinite; }
	.ksh-hero-szene .ksh-rad { transform-box: fill-box; transform-origin: center; animation: ksh-t-rad 18s cubic-bezier(.3, .6, .3, 1) 3.2s infinite; }
	.ksh-hero-szene .ksh-kabel { stroke-dasharray: 1; opacity: 0; animation: ksh-t-kabel 18s linear 3.2s infinite; }
	.ksh-hero-szene .ksh-wb-led { fill: #CBCCCC; animation: ksh-t-wbled 18s linear 3.2s infinite; }
	.ksh-hero-szene .ksh-laden { opacity: 0; animation: ksh-t-laden 18s linear 3.2s infinite; }
	.ksh-hero-szene .ksh-stufe--0 { animation: ksh-t-stufe-0 18s linear 3.2s infinite; }
	.ksh-hero-szene .ksh-stufe--1 { animation: ksh-t-stufe-1 18s linear 3.2s infinite; }
	.ksh-hero-szene .ksh-stufe--2 { animation: ksh-t-stufe-2 18s linear 3.2s infinite; }
	.ksh-hero-szene .ksh-kam { animation: ksh-t-kam 18s ease-in-out 3.2s infinite; }
	.ksh-hero-szene .ksh-kam-led { animation: ksh-t-rec 18s linear 3.2s infinite; }
	@keyframes ksh-ein { to { opacity: 1; } }
	@keyframes ksh-t-licht { 0% { opacity: 0 } 3% { opacity: 1 } 4% { opacity: 0 } 5.5% { opacity: 1 } 27% { opacity: 1 } 30% { opacity: 0 } 100% { opacity: 0 } }
	@keyframes ksh-t-birne { 0% { fill: #E3E3E3 } 3% { fill: #FFE2A0 } 4% { fill: #E3E3E3 } 5.5% { fill: #FFE2A0 } 27% { fill: #FFE2A0 } 30% { fill: #E3E3E3 } 100% { fill: #E3E3E3 } }
	@keyframes ksh-t-auto { 0% { transform: translateX(70px); opacity: 0 } 33% { transform: translateX(70px); opacity: 0 } 35% { transform: translateX(58px); opacity: 1 } 43% { transform: none; opacity: 1 } 62% { transform: none; opacity: 1 } 70% { transform: translateX(70px); opacity: 1 } 72% { transform: translateX(80px); opacity: 0 } 100% { transform: translateX(80px); opacity: 0 } }
	@keyframes ksh-t-rad { 0% { transform: rotate(-1000deg) } 33% { transform: rotate(-1000deg) } 43% { transform: none } 62% { transform: none } 72% { transform: rotate(1100deg) } 100% { transform: rotate(1100deg) } }
	@keyframes ksh-t-kabel { 0% { opacity: 0; stroke-dashoffset: 1 } 43.5% { opacity: 0; stroke-dashoffset: 1 } 43.6% { opacity: 1; stroke-dashoffset: 1 } 46% { opacity: 1; stroke-dashoffset: 0 } 60% { opacity: 1; stroke-dashoffset: 0 } 61.5% { opacity: 0; stroke-dashoffset: 0 } 100% { opacity: 0; stroke-dashoffset: 1 } }
	@keyframes ksh-t-wbled { 0% { fill: #CBCCCC } 46% { fill: #CBCCCC } 47% { fill: #4CAF6A } 52% { fill: #A9DDB8 } 57% { fill: #4CAF6A } 60% { fill: #4CAF6A } 61% { fill: #CBCCCC } 100% { fill: #CBCCCC } }
	@keyframes ksh-t-laden { 0% { opacity: 0 } 46% { opacity: 0 } 47% { opacity: 1 } 60% { opacity: 1 } 62% { opacity: 0 } 100% { opacity: 0 } }
	@keyframes ksh-t-stufe-0 { 0% { opacity: .15 } 48% { opacity: .15 } 49% { opacity: 1 } 60% { opacity: 1 } 62% { opacity: .15 } 100% { opacity: .15 } }
	@keyframes ksh-t-stufe-1 { 0% { opacity: .15 } 51.5% { opacity: .15 } 52.5% { opacity: 1 } 60% { opacity: 1 } 62% { opacity: .15 } 100% { opacity: .15 } }
	@keyframes ksh-t-stufe-2 { 0% { opacity: .15 } 55% { opacity: .15 } 56% { opacity: 1 } 60% { opacity: 1 } 62% { opacity: .15 } 100% { opacity: .15 } }
	@keyframes ksh-t-kam { 0% { transform: rotate(25deg) } 70% { transform: rotate(25deg) } 76% { transform: rotate(-8deg) } 80% { transform: rotate(-8deg) } 88% { transform: rotate(40deg) } 92% { transform: rotate(40deg) } 97% { transform: rotate(25deg) } 100% { transform: rotate(25deg) } }
	@keyframes ksh-t-rec { 0% { fill: #6E6F6E } 70% { fill: #6E6F6E } 70.5% { fill: #E8384F } 71.9% { fill: #6E6F6E } 73.3% { fill: #E8384F } 74.7% { fill: #6E6F6E } 76.1% { fill: #E8384F } 77.5% { fill: #6E6F6E } 78.9% { fill: #E8384F } 80.3% { fill: #6E6F6E } 81.7% { fill: #E8384F } 83.1% { fill: #6E6F6E } 84.5% { fill: #E8384F } 85.9% { fill: #6E6F6E } 87.3% { fill: #E8384F } 88.7% { fill: #6E6F6E } 90.1% { fill: #E8384F } 91.5% { fill: #6E6F6E } 92.9% { fill: #E8384F } 94.3% { fill: #6E6F6E } 95.7% { fill: #E8384F } 97.1% { fill: #6E6F6E } 100% { fill: #6E6F6E } }
}

/* Abschnitt Sicherheit & Video (UniFi Protect mit Loxone, 03.10.2026) */
.ksh-sicherheit .wp-block-columns { gap: clamp(2rem, 5vw, 4.5rem); }
.ksh-punkte { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .8rem; }
.ksh-punkte li { position: relative; padding-left: 1.6rem; line-height: 1.55; }
.ksh-punkte li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: .55rem;
	height: .55rem;
	border-radius: 2px;
	background: var(--wp--preset--color--rose);
	transform: rotate(45deg) skew(-8deg, -8deg);
}
.ksh-sicherheit__marken { margin-top: 1.4rem; font-size: .78rem; color: var(--wp--preset--color--text-schwach); }
.ksh-sicherheit .ksh-kamera-rahmen { max-width: 100% !important; }
