/*
 * Mitgliedsantrag (inc/antrag.php): Stile des abgelösten Plugins «Frontend Post Submission Manager»,
 * nur die Regeln, die das Formular trifft, in derselben Reihenfolge. Die Anpassungen des Themes
 * (Spalten, Zwischentitel, Knopf) stehen weiter in style.css; diese Datei lädt danach, wie bisher
 * die Plugin-Datei. Wird nur auf der Seite mit dem Formular geladen.
 *
 * Schrift Nunito Sans (SIL Open Font License), drei Schnitte aus dem Plugin übernommen.
 *
 *   1. Schrift
 *   2. Regeln des Plugins (Vorlage «template-1», Alias «mitglieder»)
 *   3. Ergänzungen des Themes: Sendestatus, Honigtopf
 */

/* 1. Schrift --------------------------------------------------------------------------------- */

@font-face {
	font-family: 'Nunito Sans';
	src: url('../fonts/nunito-sans-regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Nunito Sans';
	src: url('../fonts/nunito-sans-bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Nunito Sans';
	src: url('../fonts/nunito-sans-extrabold.woff2') format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* 2. Regeln des Plugins ------------------------------------------------------------------------ */

.fpsm-front-form *,
.fpsm-front-form ::before,
.fpsm-front-form ::after {
	box-sizing: border-box;
}

.fpsm-front-form .fpsm-has-submit-btn .fpsm-field input[type="submit"] {
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	margin-right: 10px;
}

.fpsm-field-wrap select[multiple="multiple"] {
	padding: 15px;
	min-height: 80px;
}

.fpsm-multiple-select {
	padding: 10px 0;
	height: auto !important;
}

.fpsm-multiple-select::before {
	display: none;
}

.fpsm-display-none {
	display: none;
}

.fpsm-front-form {
	font-family: "Nunito Sans", sans-serif;
}

.fpsm-front-form .fpsm-field-note {
	color: inherit;
	opacity: 0.58;
}

.fpsm-field-wrap {
	margin-bottom: 24px;
}

.fpsm-field-note {
	font-size: 13px;
	font-style: italic;
	color: rgba(0, 0, 0, 0.58);
	margin-top: 5px;
}

.fpsm-select-field {
	height: 42px;
	position: relative;
	cursor: pointer;
}

.fpsm-select-field::before {
	content: "";
	position: absolute;
	top: 18px;
	right: 13px;
	border-style: solid;
	border-width: 6px;
	border-color: rgba(0, 0, 0, 0.68) transparent transparent;
}

.fpsm-select-field select {
	background-color: transparent;
	border-radius: 0;
	padding: 0 10px;
	line-height: 40px;
	font-size: 14px;
	width: 100%;
	height: 100%;
	appearance: none;
	cursor: pointer;
	border: none;
	font-family: inherit;
}

.fpsm-field input[type="submit"] {
	background-color: rgba(0, 0, 0, 0.48);
	padding: 5px 38px;
	color: white;
	border-radius: 2px;
	line-height: 42px;
	transition: 0.3s;
}

.fpsm-front-form {
	background-color: rgb(255, 255, 255);
	padding: 35px;
}

.fpsm-front-form .fpsm-field-wrap label {
	font-size: 15px;
	font-weight: 800;
	display: block;
	margin-bottom: 8px;
}

.fpsm-has-submit-btn .fpsm-field {
	display: flex;
	align-items: center;
}

.fpsm-front-form input[type="text"],
.fpsm-front-form input[type="email"],
.fpsm-front-form input[type="tel"],
.fpsm-front-form input[type="url"],
.fpsm-front-form textarea {
	border-radius: 2px;
	background-color: rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.08);
	padding: 0 15px;
	line-height: 40px;
	font-size: 14px;
	width: 100%;
}

.fpsm-front-form select {
	color: inherit;
}

.fpsm-front-form textarea {
	line-height: 1.4;
	padding: 15px;
	height: 80px;
	resize: none;
}

.fpsm-front-form input[type="text"]:focus,
.fpsm-front-form input[type="email"]:focus,
.fpsm-front-form textarea:focus {
	border-color: rgba(0, 0, 0, 0.14);
}

.fpsm-field input[type="submit"] {
	cursor: pointer !important;
}

.fpsm-front-form .fpsm-custom-field-select .fpsm-field .fpsm-select-field,
.fpsm-front-form .fpsm-taxonomy-select .fpsm-field .fpsm-select-field {
	border-radius: 2px;
	background-color: rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.fpsm-front-form .fpsm-taxonomy-select .fpsm-field .fpsm-select-field select,
.fpsm-front-form .fpsm-custom-field-select .fpsm-field .fpsm-select-field select {
	position: relative;
	z-index: 4;
}

.fpsm-front-form .fpsm-field input[type="submit"] {
	background-color: rgb(0, 131, 248);
	border: none;
}

.fpsm-form-message {
	font-size: 16px;
	padding: 8px 15px;
	background-color: rgb(247, 247, 247);
	border: 1px solid rgba(0, 0, 0, 0.08);
	font-weight: bold;
}

.fpsm-template-1 {
	background-color: rgb(255, 255, 255);
	padding: 35px;
}

.fpsm-template-1 .fpsm-field-wrap label {
	font-weight: 800;
}

.fpsm-template-1 input[type="text"],
.fpsm-template-1 input[type="email"],
.fpsm-template-1 input[type="tel"],
.fpsm-template-1 input[type="url"],
.fpsm-template-1 textarea {
	border-radius: 2px;
	background-color: rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.08);
	padding: 0 15px;
	line-height: 40px;
	font-size: 14px;
}

.fpsm-template-1 textarea {
	line-height: 1.4;
	padding: 15px;
	height: 80px;
	resize: none;
}

.fpsm-template-1 input[type="text"]:focus,
.fpsm-template-1 input[type="email"]:focus,
.fpsm-template-1 textarea:focus {
	border: 1px solid rgba(0, 0, 0, 0.14);
}

.fpsm-template-1 .fpsm-custom-field-select .fpsm-field .fpsm-select-field,
.fpsm-template-1 .fpsm-taxonomy-select .fpsm-field .fpsm-select-field {
	border-radius: 2px;
	background-color: rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.fpsm-template-1 .fpsm-field input[type="submit"] {
	background-color: rgb(0, 131, 248);
}

@media (max-width: 1023px) {
	.fpsm-front-form {
		box-shadow: rgba(0, 0, 0, 0.24) 0 0 24px;
		padding: 25px !important;
	}
}

@media (max-width: 767px) {
	.fpsm-front-form {
		box-shadow: rgba(0, 0, 0, 0.24) 0 0 24px;
		padding: 20px !important;
	}
}

.fpsm-error {
	margin-top: 4px;
	background-color: rgba(255, 105, 105, 0.157);
	color: rgb(255, 105, 105);
	padding: 0 5px;
	font-size: 12px;
	line-height: 18px;
	font-weight: 700;
}

@media only screen and (max-width: 600px) {
	.fpsm-has-submit-btn .fpsm-field {
		display: block;
	}

	.fpsm-has-submit-btn .fpsm-field input[type="submit"] {
		width: 100%;
		margin-bottom: 10px;
	}
}

/* Farben aus den Einstellungen des Formulars «mitglieder» */
.fpsm-alias-mitglieder .fpsm-field input[type="submit"] {
	background-color: rgb(221, 53, 33);
}

.fpsm-alias-mitglieder.fpsm-front-form input[type="text"],
.fpsm-alias-mitglieder.fpsm-front-form input[type="email"],
.fpsm-alias-mitglieder.fpsm-front-form input[type="tel"],
.fpsm-alias-mitglieder.fpsm-front-form textarea,
.fpsm-alias-mitglieder.fpsm-front-form .fpsm-taxonomy-select .fpsm-field .fpsm-select-field,
.fpsm-front-form .fpsm-custom-field-select .fpsm-field .fpsm-select-field {
	background-color: rgb(240, 240, 240);
	border-color: rgb(240, 240, 240);
}

/* Hover der Plugin-Regeln (style.css überschreibt den Knopf ohnehin mit !important) */
@media (hover: hover) and (pointer: fine) {
	.fpsm-field input[type="submit"]:hover {
		background-color: rgba(0, 0, 0, 0.8);
		text-decoration: none;
	}

	.fpsm-front-form .fpsm-field input[type="submit"]:hover,
	.fpsm-template-1 .fpsm-field input[type="submit"]:hover {
		background-color: rgba(0, 0, 0, 0.8);
	}

	.fpsm-alias-mitglieder .fpsm-field input[type="submit"]:hover {
		background-color: rgb(240, 240, 240);
	}
}

/* 3. Ergänzungen des Themes ------------------------------------------------------------------ */

/* Sendestatus links neben dem Knopf (an der Stelle des früheren Ladesymbols) */
.fpsm-front-form .kmu-sende-status {
	display: none;
	order: 1;
	margin-right: 16px;
	font-family: 'open_sansregular';
	font-size: 14px;
	line-height: 21px;
	color: #000;
}

.fpsm-front-form .kmu-sende-status.kmu-aktiv {
	display: inline-block;
}

.fpsm-front-form.kmu-sendet input[type="submit"] {
	opacity: 0.6;
	cursor: default !important;
	pointer-events: none;
}

.fpsm-front-form .fpsm-form-message:not(.fpsm-display-none) {
	overflow-wrap: anywhere;
}

/* Gesamtmeldung unter dem Formular wie bei den Kontaktformularen (style.css, .wpcf7-response-output):
   rot bei Fehlern, grün bei Erfolg (kurz vor der Weiterleitung auf die Dankeseite) */
.fpsm-front-form .fpsm-form-message.fpsm-form-error,
.fpsm-front-form .fpsm-form-message.kmu-ok {
	box-sizing: border-box;
	width: 100%;
	margin: 2em 0 1em;
	padding: 22px 26px;
	font-family: 'open_sansbold';
	font-weight: normal;
	font-size: 14px;
	line-height: 21px;
	text-align: center;
	background-color: #fff;
	border: 2px solid #dd3521;
	color: #dd3521;
}

.fpsm-front-form .fpsm-form-message.kmu-ok {
	border-color: #398f14;
	color: #398f14;
}

/* Honigtopf (Spamschutz): für Menschen unsichtbar, bleibt aber im Formular */
.fpsm-front-form .kmu-form-zusatz {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
}

/* Branchenwahl (js/kmu-branchenwahl.js): Suchfeld mit Liste nach Bereichen und entfernbaren Chips.
   Die Mehrfachauswahl bleibt darunter für das Absenden und erscheint nur ohne JavaScript. */
.fpsm-front-form .kmu-bw-aus {
	display: none !important;
}

.kmu-bw {
	position: relative;
}

/* :is(#content, body) schlägt «#content ul» aus style.css (Einzug und Abstand der Textlisten) */
:is(#content, body) .kmu-bw-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

:is(#content, body) .kmu-bw-chips[hidden] {
	display: none;
}

.kmu-bw-chip {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0 0 0 12px;
	min-height: 36px;
	border-radius: 2px;
	background: rgba(221, 53, 33, 0.08);
	color: #000;
	font-size: 14px;
	line-height: 20px;
}

.kmu-bw-chip-zusatz {
	color: #5e5e5e;
	font-size: 12px;
}

.kmu-bw-chip button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: none;
	color: #dd3521;
	cursor: pointer;
	outline: none;
}

.kmu-bw-chip button:focus-visible {
	background: rgba(221, 53, 33, 0.16);
}

.kmu-bw-feld {
	position: relative;
}

.fpsm-front-form .kmu-bw-feld input.kmu-bw-suche {
	padding-left: 42px;
	outline: none;
}

.kmu-bw-suche::placeholder {
	color: #767676;
	opacity: 1;
}

.kmu-bw-lupe {
	position: absolute;
	top: 50%;
	left: 15px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	color: #5e5e5e;
	pointer-events: none;
}

.kmu-bw-liste {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 320px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px 0 8px;
	border: 1px solid #e3e3e3;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.kmu-bw-liste[hidden] {
	display: none;
}

.kmu-bw-kopf {
	padding: 12px 15px 4px;
	color: #5e5e5e;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
}

.kmu-bw-opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 15px;
	font-size: 14px;
	line-height: 20px;
	cursor: pointer;
}

.kmu-bw-opt strong {
	font-weight: 700;
}

.kmu-bw-opt.kmu-akt {
	background: #f0f0f0;
}

.kmu-bw-opt[aria-selected="true"] {
	color: #dd3521;
}

.kmu-bw-opt[aria-disabled="true"] {
	color: #9a9a9a;
	cursor: default;
}

.kmu-bw-haken {
	flex: none;
	width: 16px;
	height: 16px;
}

.kmu-bw-leer {
	padding: 12px 15px;
	color: #444;
	font-size: 14px;
	line-height: 20px;
}

.kmu-bw-live {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
	.kmu-bw-opt:not([aria-disabled="true"]):hover {
		background: #f0f0f0;
	}

	.kmu-bw-chip button:hover {
		background: rgba(221, 53, 33, 0.12);
	}
}

@media (max-width: 767px) {
	.kmu-bw-liste {
		max-height: 260px;
	}
}
