/* Fassmalerzeichen – Frontend
   Alle Gestaltungswerte laufen über CSS-Variablen; das Elementor-Widget setzt sie pro Widget. */
.fmz {
	--fmz-farbe: var(--fmz-farbe-global, var(--e-global-color-accent, currentColor));
	--fmz-hoehe: 80px;
	--fmz-min: 140px;
	--fmz-abstand: 16px;
	--fmz-karte-bg: transparent;
	--fmz-rahmen: rgba(127, 127, 127, .25);
	--fmz-radius: 4px;
	--fmz-innen: 16px;
}

.fmz-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Suche */
.fmz-suche {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 var(--fmz-abstand);
}
.fmz-suchfeld {
	flex: 1 1 260px;
	max-width: 420px;
}
/* Grundstil für Felder – das Theme (Hello/Elementor) darf überschreiben */
.fmz-suchfeld,
.fmz-formular input[type="text"],
.fmz-formular input[type="email"],
.fmz-formular select,
.fmz-formular textarea {
	font: inherit;
	padding: .55em .75em;
	border: 1px solid rgba(127, 127, 127, .5);
	border-radius: var(--fmz-radius);
	background-color: transparent;
	color: inherit;
}
.fmz-formular select option,
.fmz-formular select optgroup {
	color: #1d2327;
}
.fmz-button {
	font: inherit;
	cursor: pointer;
	padding: .6em 1.4em;
	border: 1px solid var(--fmz-farbe);
	border-radius: var(--fmz-radius);
	background-color: var(--fmz-farbe);
	color: #fff;
}
.fmz-button[disabled] {
	opacity: .6;
	cursor: wait;
}
.fmz-treffer {
	font-size: .875em;
	opacity: .75;
}

/* Raster */
.fmz-raster {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(var(--fmz-min), 100%), 1fr));
	gap: var(--fmz-abstand);
}
.fmz-raster + .fmz-gruppe {
	margin-top: calc(var(--fmz-abstand) * 2.5);
}
.fmz-karte {
	margin: 0;
	padding: var(--fmz-innen);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	background: var(--fmz-karte-bg);
	border: 1px solid var(--fmz-rahmen);
	border-radius: var(--fmz-radius);
}
.fmz-karte[hidden] {
	display: none;
}

/* Zeichen */
.fmz-zeichenfeld {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	width: 100%;
	min-height: var(--fmz-hoehe);
	color: var(--fmz-farbe);
}
.fmz-zeichen {
	display: flex;
	justify-content: center;
	max-width: 100%;
}
.fmz-zeichen svg {
	display: block;
	height: var(--fmz-hoehe);
	width: auto;
	max-width: 100%;
	fill: currentColor;
}
/* Mehrere Zeichen nebeneinander; zu breite Zeichen werden proportional kleiner */
.fmz-zeichenfeld--mehrere {
	flex-wrap: nowrap;
}
.fmz-zeichenfeld--mehrere .fmz-zeichen {
	flex: 0 1 auto;
	min-width: 0;
}
.fmz-zeichenfeld--mehrere .fmz-zeichen svg {
	height: calc(var(--fmz-hoehe) * .8);
}

/* Text */
.fmz-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.fmz-name {
	margin: 0;
	font-weight: 600;
	line-height: 1.3;
}
.fmz-zusatz {
	margin: 0;
	font-size: .875em;
	opacity: .8;
}
.fmz-hinweis-link {
	margin-top: auto;
	font-size: .875em;
}
.fmz-leer {
	margin: var(--fmz-abstand) 0 0;
}
.fmz-leer[hidden] {
	display: none;
}

/* Hinweis-Formular */
.fmz-hinweis {
	margin-top: calc(var(--fmz-abstand) * 2);
	border: 1px solid var(--fmz-rahmen);
	border-radius: var(--fmz-radius);
	background: var(--fmz-karte-bg);
}
.fmz-hinweis > summary {
	cursor: pointer;
	padding: 14px 18px;
	font-weight: 600;
}
.fmz-formular {
	display: grid;
	gap: 14px;
	max-width: 640px;
	padding: 0 18px 18px;
}
.fmz-formular p {
	margin: 0;
}
.fmz-formular label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}
.fmz-formular input[type="text"],
.fmz-formular input[type="email"],
.fmz-formular select,
.fmz-formular textarea {
	width: 100%;
	box-sizing: border-box;
}
.fmz-check label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
}
.fmz-check input {
	margin-top: .3em;
}
.fmz-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.fmz-meldung:empty {
	display: none;
}
.fmz-meldung--ok {
	color: #2e7d32;
}
.fmz-meldung--fehler {
	color: #c62828;
}
.fmz-karte--markiert {
	outline: 2px solid var(--fmz-farbe);
	outline-offset: 2px;
}
