/* RMH Schadensfinder, Masse und Zeichnung aus Entwurf B (.finder, .fenster, .schritt).
 * Ohne Skript: alle vier Texte voll lesbar, keine Knoepfe. Das Dimmen der anderen Schritte
 * und die Knoepfe kommen erst mit .rmh-sf--aktiv / .rmh-sf--dimm, die script.js setzt. */
.elementor-widget-rmh-schadensfinder,
.elementor-widget-rmh-schadensfinder > .elementor-widget-container {
	width: 100%;
	max-width: none;
}
.rmh-sf {
	--rmh-sf-nacht: #1c2125;
	--rmh-sf-text: #ebe9e2;
	--rmh-sf-leise: #b0b7bd;
	--rmh-sf-linie: #4a5257;
	--rmh-sf-licht: #f2b544;
	--rmh-sf-licht-tief: #c9861f;
	--rmh-sf-signal: #c9241d;
	--rmh-sf-signal-hell: #dc2f26;
	--rmh-sf-radius: 3px;
	--rmh-sf-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--rmh-sf-ease-io: cubic-bezier(0.77, 0, 0.175, 1);
	--rmh-sf-oben: 100px;
	position: relative;
	box-sizing: border-box;
	width: 100%;
	padding: 96px 0 120px;
	background:
		repeating-linear-gradient(180deg, rgb(255 255 255 / 0.022) 0 1px, transparent 1px 44px),
		var(--rmh-sf-nacht);
	color: var(--rmh-sf-text);
	font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
}
.rmh-sf *,
.rmh-sf *::before,
.rmh-sf *::after {
	box-sizing: border-box;
}
.rmh-sf__innen {
	width: min(100% - 2 * clamp(20px, 5vw, 64px), 1240px);
	margin-inline: auto;
}
.rmh-sf .rmh-sf__titel,
.rmh-sf .rmh-sf__schritt-titel {
	margin: 0;
	font-family: "Saira Condensed", "Arial Narrow", sans-serif;
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.01em;
	text-wrap: balance;
	text-transform: none;
	color: var(--rmh-sf-text);
}
.rmh-sf .rmh-sf__titel {
	font-size: clamp(2.1rem, 4.2vw, 3.6rem);
}
.rmh-sf .rmh-sf__schritt-titel {
	font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.rmh-sf .rmh-sf__einleitung {
	margin: 16px 0 0;
	max-width: 56ch;
	font-size: 1.125rem;
	color: var(--rmh-sf-leise);
	text-wrap: pretty;
}
.rmh-sf__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.rmh-sf__raster {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(32px, 6vw, 96px);
	margin-top: 48px;
}
.rmh-sf__buehne {
	position: sticky;
	top: var(--rmh-sf-oben);
	align-self: start;
}

/* Zeichnung */
.rmh-sf__fenster {
	--lam: 22px;
	--hoehe: 0%;
	--dreh: 0px;
	position: relative;
	margin: 0;
	width: 100%;
	max-width: 400px;
	aspect-ratio: 5 / 6;
}
.rmh-sf__fenster[data-schritt="wickler"] { --hoehe: -24%; --dreh: -40px; }
.rmh-sf__fenster[data-schritt="panzer"]  { --hoehe: -42%; --dreh: -80px; }
.rmh-sf__fenster[data-schritt="motor"]   { --hoehe: -87%; --dreh: -190px; }

.rmh-sf__f-glas,
.rmh-sf__f-panzer {
	position: absolute;
	left: 3.5%;
	right: 21.5%;
	top: 15%;
	bottom: 0;
}
.rmh-sf__f-glas {
	background: radial-gradient(ellipse 90% 70% at 50% 75%, #ffd27a 0%, #f2a63b 34%, #9a6121 72%, #4b3317 100%);
}
.rmh-sf__f-sprosse::before,
.rmh-sf__f-sprosse::after {
	content: "";
	position: absolute;
	background: #e9e5da;
}
.rmh-sf__f-sprosse::before { left: 50%; top: 0; bottom: 0; width: 3%; transform: translateX(-50%); }
.rmh-sf__f-sprosse::after { left: 0; right: 0; top: 38%; height: 2.4%; }
.rmh-sf__f-panzer { overflow: hidden; }
.rmh-sf__f-lamellen {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, #555d62 0%, #41484c 30%, #33393d 78%, #22272a 96%, #15191b 100%) 0 100% / 100% var(--lam) repeat-y;
	transform: translateY(var(--hoehe));
	transition: transform 1100ms var(--rmh-sf-ease-io);
}
.rmh-sf__f-lamellen::before { /* Lichtschlitze im Zeichnungs-Panzer */
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(90deg, #ffc565 0 6px, transparent 6px 13px);
	-webkit-mask: repeating-linear-gradient(180deg, transparent 0 19px, #000 19px 21px, transparent 21px 22px);
	mask: repeating-linear-gradient(180deg, transparent 0 19px, #000 19px 21px, transparent 21px 22px);
	-webkit-mask-position: 0 100%;
	mask-position: 0 100%;
	opacity: 0.85;
}
.rmh-sf__f-lamellen::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 9px;
	background: linear-gradient(180deg, #737b80, #262b2e);
}
.rmh-sf__f-bruch {
	position: absolute;
	left: 26%;
	width: 44%;
	bottom: 44px;
	height: 22px;
	background: linear-gradient(180deg, #ffd27a, var(--rmh-sf-licht) 50%, var(--rmh-sf-licht-tief));
	opacity: 0;
	transform: rotate(0deg);
	transform-origin: left center;
	transition: opacity 400ms ease, transform 600ms var(--rmh-sf-ease-out);
}
.rmh-sf__fenster[data-schritt="panzer"] .rmh-sf__f-bruch { opacity: 1; transform: rotate(-4deg); }

.rmh-sf__f-schiene {
	position: absolute;
	top: 15%;
	bottom: 0;
	width: 3.5%;
	background: linear-gradient(90deg, #5c6469, #3c4347 60%, #2b3033);
}
.rmh-sf__f-schiene-l { left: 0; }
.rmh-sf__f-schiene-r { left: 78.5%; }
.rmh-sf__f-kasten {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 15%;
	background: linear-gradient(180deg, #4a5156, #383e42 70%, #2b3033);
	border-radius: var(--rmh-sf-radius) var(--rmh-sf-radius) 0 0;
	box-shadow: inset 0 -2px 0 #22272a;
}
.rmh-sf__f-welle {
	position: absolute;
	left: 4%;
	right: 30%;
	top: 36%;
	height: 30%;
	border-radius: 999px;
	overflow: hidden;
	background: #6b7378;
}
.rmh-sf__f-welle-dreh {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: -240px;
	background: repeating-linear-gradient(90deg, #a2aaaf 0 5px, #5d656a 5px 14px);
	transform: translateX(var(--dreh));
	transition: transform 1100ms var(--rmh-sf-ease-io);
}
.rmh-sf__f-motor {
	position: absolute;
	left: 71%;
	width: 9%;
	top: 28%;
	height: 46%;
	background: #50585d;
	border-radius: 2px;
}
.rmh-sf__f-motor::after,
.rmh-sf__f-wickler::after,
.rmh-sf__f-gurt::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--rmh-sf-licht);
	box-shadow: 0 0 18px rgb(242 181 68 / 0.55);
	opacity: 0;
	transition: opacity 400ms ease;
}
.rmh-sf__fenster[data-schritt="motor"] .rmh-sf__f-motor::after { opacity: 1; }
.rmh-sf__f-gurt {
	position: absolute;
	left: 87.5%;
	width: 3.4%;
	background: repeating-linear-gradient(90deg, #d8d2c3 0 2px, #b6af9f 2px 4px);
	transition: transform 700ms var(--rmh-sf-ease-out), opacity 500ms ease;
}
.rmh-sf__f-gurt-oben { top: 15%; height: 21%; }
.rmh-sf__f-gurt-unten { top: 36.4%; height: 23.6%; transform-origin: top center; }
.rmh-sf__fenster[data-schritt="gurt"] .rmh-sf__f-gurt::after { opacity: 0.9; }
.rmh-sf__fenster[data-schritt="gurt"] .rmh-sf__f-gurt-unten { transform: translateY(26%) rotate(7deg); }
.rmh-sf__fenster[data-schritt="wickler"] .rmh-sf__f-gurt-unten { transform: translateY(10%) rotate(3deg); }
.rmh-sf__fenster[data-schritt="motor"] .rmh-sf__f-gurt,
.rmh-sf__fenster[data-schritt="motor"] .rmh-sf__f-wickler { opacity: 0.18; }
.rmh-sf__f-wickler {
	position: absolute;
	left: 83.6%;
	width: 11.2%;
	top: 60%;
	height: 13%;
	background: #2d3337;
	border-radius: var(--rmh-sf-radius);
	box-shadow: inset 0 0 0 2px #5a6267;
	transition: opacity 500ms ease;
}
.rmh-sf__fenster[data-schritt="wickler"] .rmh-sf__f-wickler::after { opacity: 1; }

/* Teile-Knoepfe: erst mit Skript sichtbar */
.rmh-sf__teile {
	display: none;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
	max-width: 400px;
}
.rmh-sf--aktiv .rmh-sf__teile {
	display: flex;
}
.rmh-sf .rmh-sf__teil {
	min-height: 44px;
	padding: 9px 14px;
	border: 0;
	border-radius: var(--rmh-sf-radius);
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--rmh-sf-linie);
	color: var(--rmh-sf-text);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
	cursor: pointer;
	transition: transform 140ms var(--rmh-sf-ease-out), box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}
.rmh-sf .rmh-sf__teil:hover {
	background: transparent;
	color: var(--rmh-sf-text);
	box-shadow: inset 0 0 0 1.5px #7d868c;
}
.rmh-sf .rmh-sf__teil:active { transform: scale(0.97); }
.rmh-sf .rmh-sf__teil:focus-visible,
.rmh-sf .rmh-sf__anfrage:focus-visible,
.rmh-sf .rmh-sf__leistungslink:focus-visible {
	outline: 2px solid var(--rmh-sf-licht);
	outline-offset: 3px;
}
.rmh-sf .rmh-sf__teil[aria-pressed="true"] {
	background: var(--rmh-sf-licht);
	color: #1c1608;
	box-shadow: none;
}

/* Schritte */
.rmh-sf__schritt {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	min-height: 64vh;
	scroll-margin-top: 28vh;
}
.rmh-sf__schritt:first-child {
	justify-content: flex-start;
	min-height: 48vh;
	padding-top: 40px;
}
.rmh-sf--dimm .rmh-sf__schritt {
	opacity: 0.8;
	transition: opacity 400ms ease;
}
.rmh-sf--dimm .rmh-sf__schritt.rmh-sf__schritt--aktiv {
	opacity: 1;
}
.rmh-sf .rmh-sf__text {
	margin: 0;
	max-width: 50ch;
	color: #d6d3cb;
	text-wrap: pretty;
}
.rmh-sf .rmh-sf__liste {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rmh-sf .rmh-sf__liste li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--rmh-sf-licht);
	font-weight: 600;
}
.rmh-sf .rmh-sf__symbol {
	flex: none;
}
.rmh-sf__aktionen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin-top: 8px;
}
.rmh-sf .rmh-sf__anfrage {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	border: 0;
	border-radius: var(--rmh-sf-radius);
	background: var(--rmh-sf-signal);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 2px 6px rgb(8 10 12 / 0.4);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
	transition: transform 140ms var(--rmh-sf-ease-out), background-color 180ms ease;
}
.rmh-sf .rmh-sf__anfrage:hover {
	background: var(--rmh-sf-signal-hell);
	color: #fff;
}
.rmh-sf .rmh-sf__anfrage:active { transform: scale(0.97); }
.rmh-sf .rmh-sf__leistungslink {
	color: var(--rmh-sf-text);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
.rmh-sf .rmh-sf__leistungslink:hover {
	color: var(--rmh-sf-licht);
}

@media (max-width: 900px) {
	.rmh-sf__raster {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.rmh-sf__buehne {
		position: static;
	}
	.rmh-sf__fenster {
		max-width: 420px;
		aspect-ratio: 5 / 4;
		margin-inline: auto;
	}
	.rmh-sf__teile {
		max-width: none;
		justify-content: center;
		margin-top: 16px;
	}
	.rmh-sf .rmh-sf__teil {
		padding: 8px 12px;
		font-size: 0.9rem;
	}
	.rmh-sf__schritt,
	.rmh-sf--dimm .rmh-sf__schritt,
	.rmh-sf__schritt:first-child {
		min-height: 52svh;
		padding-top: 0;
		justify-content: center;
		scroll-margin-top: 24px;
	}
}
@media (max-width: 600px) {
	.rmh-sf {
		padding: 64px 0 80px;
		font-size: 1rem;
	}
	.rmh-sf .rmh-sf__anfrage {
		width: 100%;
		justify-content: center;
	}
}
@media (prefers-reduced-motion: reduce) {
	.rmh-sf__f-lamellen,
	.rmh-sf__f-welle-dreh,
	.rmh-sf__f-gurt,
	.rmh-sf__f-bruch,
	.rmh-sf__f-wickler,
	.rmh-sf__f-motor::after,
	.rmh-sf__f-wickler::after,
	.rmh-sf__f-gurt::after,
	.rmh-sf__schritt,
	.rmh-sf--dimm .rmh-sf__schritt,
	.rmh-sf .rmh-sf__teil,
	.rmh-sf .rmh-sf__anfrage {
		transition: none;
	}
}
