/* =========================================================================
   nl-core · Formulare (Fluent Forms) – inc/formulare.php

   Herkunft: Die Formsprache stammt aus der Vorlage eines Kollegen
   (calendar_style.css, 15.9.2026): Felder als Linie statt Kasten, ruhige
   Beschriftung, kantige Kästchen, Knopf mit Pfeil. Übernommen wurde die
   Idee, nicht der Code: Farben kommen aus Design → Domains (--nl-*),
   Schrift ist Satoshi (erbt von der Seite), keine Rundungen (Hausregel),
   Auswahlfelder ohne Chrome-only-API (appearance: base-select) – der
   Pfeil ist ein eingebettetes SVG, das überall geht.
   ====================================================================== */

.fluentform {
	--nlf-linie: var(--nl-linie, #cfd4d8);
	--nlf-tinte: var(--nl-tinte, #161616);
	--nlf-grau: var(--nl-grau, #6b7075);
	--nlf-marke: var(--nl-marke, #ff194e);
	--nlf-auf-marke: var(--nl-auf-marke, #fff);
	--nlf-fehler: #b00020;
	font-family: inherit;
	color: var(--nlf-tinte);
}

/* ------------------------------------------------------------ Gruppen */
.fluentform .ff-el-group { margin-bottom: 26px; }
.fluentform .ff-el-input--label { padding-bottom: 6px; }
.fluentform .ff-el-input--label label {
	font-size: .92rem; font-weight: 600; letter-spacing: .01em;
	color: var(--nlf-grau);
}
.fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label::after { color: var(--nlf-marke); }

/* ---------------------------------------------- Felder: Linie, kein Kasten */
.fluentform .ff-el-form-control,
.fluentform input[type="text"].ff-el-form-control,
.fluentform input[type="email"].ff-el-form-control,
.fluentform input[type="tel"].ff-el-form-control,
.fluentform input[type="number"].ff-el-form-control,
.fluentform input[type="date"].ff-el-form-control,
.fluentform textarea.ff-el-form-control,
.fluentform select.ff-el-form-control {
	width: 100%;
	border: 0; border-bottom: 1px solid var(--nlf-linie); border-radius: 0;
	background: transparent;
	padding: 10px 0; font-size: 1.05rem; line-height: 1.4; color: var(--nlf-tinte);
	box-shadow: none; outline: 0;
	transition: border-color .2s ease;
}
.fluentform .ff-el-form-control:focus { border-bottom: 2px solid var(--nlf-marke); padding-bottom: 9px; }
.fluentform .ff-el-form-control::placeholder { color: var(--nlf-grau); opacity: 1; }
.fluentform textarea.ff-el-form-control { min-height: 120px; resize: vertical; }

/* Auswahlfeld: eigener Pfeil, sonst wie ein Textfeld */
.fluentform select.ff-el-form-control {
	appearance: none; -webkit-appearance: none;
	padding-right: 34px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 4px center; background-size: 18px;
}
.fluentform select.ff-el-form-control:focus { background-color: transparent; }

/* ---------------------------------------- Kästchen und Optionsfelder */
.fluentform .ff-el-form-check { margin-bottom: 10px; }
.fluentform .ff-el-form-check-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 1rem; line-height: 1.5; }
.fluentform .ff-el-form-check-input,
.fluentform input[type="checkbox"].ff-el-form-check-input,
.fluentform input[type="radio"].ff-el-form-check-input {
	appearance: none; -webkit-appearance: none;
	flex: 0 0 auto; width: 20px; height: 20px; margin: 3px 0 0;
	border: 1px solid var(--nlf-tinte); border-radius: 0; background: #fff;
	position: relative; cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.fluentform input[type="radio"].ff-el-form-check-input { border-radius: 0; } /* auch rund wäre hier falsch – Hausregel */
.fluentform .ff-el-form-check-input:checked { background: var(--nlf-marke); border-color: var(--nlf-marke); }
.fluentform input[type="checkbox"].ff-el-form-check-input::after {
	content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
	border: solid var(--nlf-auf-marke); border-width: 0 2px 2px 0; transform: rotate(45deg);
	opacity: 0; transition: opacity .15s ease;
}
.fluentform input[type="radio"].ff-el-form-check-input::after {
	content: ""; position: absolute; inset: 5px; background: var(--nlf-auf-marke); opacity: 0; transition: opacity .15s ease;
}
.fluentform .ff-el-form-check-input:checked::after { opacity: 1; }
.fluentform .ff-el-form-check-input:focus-visible { outline: 2px solid var(--nlf-marke); outline-offset: 2px; }

/* -------------------------------------------------------------- Knopf */
.fluentform .ff-btn-submit,
.fluentform button.ff-btn {
	display: inline-flex; align-items: center; gap: 10px;
	border: 2px solid var(--nlf-marke); border-radius: 0;
	background: var(--nlf-marke); color: var(--nlf-auf-marke);
	font-family: inherit; font-weight: 700; font-size: 1rem; letter-spacing: .01em;
	padding: 12px 22px; cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.fluentform .ff-btn-submit::after {
	content: ""; display: inline-block; width: 1em; height: 1em; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") no-repeat center / contain;
}
.fluentform .ff-btn-submit:hover,
.fluentform button.ff-btn:hover { background: transparent; color: var(--nlf-marke); }
.fluentform .ff-btn-submit:focus-visible { outline: 2px solid var(--nlf-tinte); outline-offset: 3px; }

/* ------------------------------------------------ Fehler und Hinweise */
.fluentform .ff-el-is-error .ff-el-form-control { border-bottom-color: var(--nlf-fehler); }
.fluentform .error, .fluentform .ff-el-is-error .error, .fluentform .text-danger { color: var(--nlf-fehler); font-size: .85rem; margin-top: 6px; }
.fluentform .ff-el-help-message { color: var(--nlf-grau); font-size: .85rem; margin-top: 6px; }
.fluentform .ff-message-success {
	border: 0; border-left: 4px solid var(--nlf-marke); border-radius: 0; background: var(--nl-hell, #f3f4f5);
	padding: 18px 22px; color: var(--nlf-tinte);
}

/* ----------------------------------------------------------- Abstände */
.fluentform .ff-el-section-break .ff-el-section-title { font-size: 1.35rem; font-weight: 700; margin: 0 0 4px; }
.fluentform .ff-el-section-break hr { display: none; }
.fluentform .ff-el-progress { border-radius: 0; }
.fluentform .ff-el-progress-bar { border-radius: 0; background: var(--nlf-marke); }

@media (max-width: 640px) {
	.fluentform .ff-el-group { margin-bottom: 20px; }
	.fluentform .ff-btn-submit, .fluentform button.ff-btn { width: 100%; justify-content: center; }
}
