/* Formulare „Mitglied werden“ und Kontakt (Shortcodes [foev_mitglied_werden], [foev_kontakt]).
   Styling aus dem Mockup. Alle Regeln unter .foev-fm, damit Theme-/Oxygen-Formularstile nicht greifen.
   Schriften aus dem Theme (Roboto / Roboto Slab) mit Fallbacks. */
.foev-fm{
	--fg:#228541;--fgd:#1a6a33;--fsoft:#e3ece2;--fink:#141413;--ftext:#3b3c3a;--fmut:#74756f;
	--fpaper:#f6f4ef;--fline:rgba(20,20,19,.08);--ferr:#b42318;
	--fhead:"Roboto Slab",Georgia,serif;
	--fbody:"Roboto",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
	--fease:cubic-bezier(.2,.7,.3,1);--fease-out:cubic-bezier(.16,1,.3,1);
	position:relative;border-radius:16px;background:#fff;color:var(--ftext);
	box-shadow:0 1px 2px rgba(20,20,19,.05),0 12px 32px -14px rgba(20,20,19,.18);
	font:400 1.0625rem/1.65 var(--fbody)
}
.foev-fm *,.foev-fm *::before,.foev-fm *::after{box-sizing:border-box}
.foev-fm .foev-fm__form{padding:clamp(24px,3.4vw,44px);margin:0}
.foev-fm .foev-fm__title{margin:0;font:700 clamp(1.15rem,1.07rem + .35vw,1.3rem)/1.3 var(--fhead);color:var(--fink)}
.foev-fm .foev-fm__title--spaced{margin-bottom:24px}
.foev-fm .foev-fm__note{margin:8px 0 0;font-size:.92rem;color:var(--fmut)}
.foev-fm i{font-style:normal;color:var(--fg)}

.foev-fm .foev-fm__set{border:0;padding:0;margin:32px 0 0;min-width:0}
.foev-fm .foev-fm__set legend{padding:0;margin-bottom:16px;font:700 1.05rem/1.3 var(--fhead);color:var(--fink)}

/* Privatperson / Betrieb */
.foev-fm .foev-fm__type{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.foev-fm .foev-fm__type label{position:relative;display:flex;align-items:center;gap:12px;margin:0;padding:16px 18px;border-radius:12px;
	background:var(--fpaper);cursor:pointer;box-shadow:inset 0 0 0 1.5px transparent;
	transition:box-shadow .2s var(--fease),background-color .2s var(--fease)}
.foev-fm .foev-fm__type input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.foev-fm .foev-fm__type span{display:grid;place-items:center;flex:none;width:20px;height:20px;border-radius:50%;
	box-shadow:inset 0 0 0 2px #b9bbb5;transition:box-shadow .2s var(--fease)}
.foev-fm .foev-fm__type span::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--fg);
	transform:scale(0);transition:transform .25s var(--fease-out)}
.foev-fm .foev-fm__type input:checked+span{box-shadow:inset 0 0 0 2px var(--fg)}
.foev-fm .foev-fm__type input:checked+span::after{transform:scale(1)}
.foev-fm .foev-fm__type label:has(input:checked){background:var(--fsoft);box-shadow:inset 0 0 0 1.5px var(--fg)}
.foev-fm .foev-fm__type input:focus-visible+span{outline:2px solid var(--fg);outline-offset:3px}
.foev-fm .foev-fm__type b{display:block;font-weight:500;color:var(--fink);line-height:1.3}
.foev-fm .foev-fm__type small{display:block;font-size:.85rem;color:var(--fmut);line-height:1.3}

/* Raster */
.foev-fm .foev-fm__grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.foev-fm .foev-fm__f6{grid-column:span 6}
.foev-fm .foev-fm__f4{grid-column:span 4}
.foev-fm .foev-fm__f3{grid-column:span 3}
.foev-fm .foev-fm__f2{grid-column:span 2}

/* Firmenfelder klappen bei „Betrieb“ auf */
.foev-fm .foev-fm__company{display:grid;grid-template-rows:1fr;transition:grid-template-rows .5s var(--fease-out),opacity .3s}
.foev-fm .foev-fm__company>div{overflow:hidden}
.foev-fm .foev-fm__company.is-hidden{grid-template-rows:0fr;opacity:0}
.foev-fm .foev-fm__company .foev-fm__grid{padding-bottom:16px}

/* Felder */
.foev-fm .foev-fm__field label{display:block;margin:0 0 6px;font-size:.88rem;font-weight:500;color:var(--fink)}
.foev-fm .foev-fm__field input,
.foev-fm .foev-fm__field textarea{display:block;width:100%;height:50px;margin:0;padding:0 16px;border:0;border-radius:12px;
	background:var(--fpaper);box-shadow:inset 0 0 0 1.5px transparent;font:inherit;font-size:1rem;color:var(--fink);
	transition:box-shadow .2s var(--fease),background-color .2s var(--fease)}
.foev-fm .foev-fm__field textarea{height:auto;min-height:170px;padding:14px 16px;line-height:1.6;resize:vertical}
.foev-fm .foev-fm__field input:hover,
.foev-fm .foev-fm__field textarea:hover{background:#f0ede6}
.foev-fm .foev-fm__field input:focus,
.foev-fm .foev-fm__field textarea:focus{outline:0;background:#fff;box-shadow:inset 0 0 0 1.5px var(--fg)}
.foev-fm .foev-fm__field input::placeholder,
.foev-fm .foev-fm__field textarea::placeholder{color:#a3a49e}
.foev-fm .foev-fm__err{display:none;margin:6px 0 0;font-size:.82rem;color:var(--ferr)}
.foev-fm .foev-fm__field.is-invalid input,
.foev-fm .foev-fm__field.is-invalid textarea{background:#fdf3f2;box-shadow:inset 0 0 0 1.5px var(--ferr)}
.foev-fm .foev-fm__field.is-invalid .foev-fm__err{display:block}

/* Einwilligung / Datenschutzhinweis */
.foev-fm .foev-fm__consent{display:flex;gap:12px;align-items:flex-start;margin:28px 0 0;font-size:.92rem;line-height:1.5;cursor:pointer}
.foev-fm .foev-fm__consent input{flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:var(--fg)}
.foev-fm .foev-fm__consent a,
.foev-fm .foev-fm__privacy a{color:var(--fgd);text-decoration:underline;text-underline-offset:3px}
.foev-fm .foev-fm__consent.is-invalid{color:var(--ferr)}
.foev-fm .foev-fm__privacy{margin:20px 0 0;font-size:.88rem;color:var(--fmut)}

/* Fangfeld für Bots: für Menschen unsichtbar */
.foev-fm .foev-fm__hp{position:absolute!important;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

/* Fehler vom Server */
.foev-fm .foev-fm__error{margin:20px 0 0;padding:12px 16px;border-radius:12px;background:#fdf3f2;color:var(--ferr);font-size:.92rem}
.foev-fm .foev-fm__error[hidden]{display:none}

/* Fußzeile mit Button */
.foev-fm .foev-fm__foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;
	margin-top:28px;padding-top:24px;border-top:1px solid var(--fline)}
.foev-fm .foev-fm__foot--end{justify-content:flex-end}
.foev-fm .foev-fm__foot p{margin:0;font-size:.88rem;color:var(--fmut)}
.foev-fm .foev-fm__btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin:0;padding:0 24px;
	border:0;border-radius:999px;background:var(--fg);color:#fff;cursor:pointer;font:500 .975rem/1 var(--fbody);
	white-space:nowrap;text-decoration:none;transition:background-color .2s var(--fease),color .2s var(--fease),box-shadow .2s var(--fease)}
.foev-fm .foev-fm__btn:hover{background:var(--fgd);color:#fff}
.foev-fm .foev-fm__btn svg{width:17px;height:17px;flex:none;transition:transform .2s var(--fease)}
.foev-fm .foev-fm__btn:hover svg{transform:translateX(4px)}
.foev-fm .foev-fm__btn[disabled]{opacity:.7;cursor:progress}
.foev-fm .foev-fm__btn--outline{background:transparent;color:var(--fgd);box-shadow:inset 0 0 0 1.5px var(--fg)}
.foev-fm .foev-fm__btn--outline:hover{background:var(--fg);color:#fff}

/* Senden */
.foev-fm .foev-fm__spinner{display:none;width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.4);
	border-top-color:#fff;animation:foev-fm-spin .8s linear infinite}
.foev-fm .is-sending .foev-fm__spinner{display:block}
.foev-fm .is-sending .foev-fm__btn svg{display:none}
@keyframes foev-fm-spin{to{transform:rotate(360deg)}}

/* Erfolg */
.foev-fm .foev-fm__success{display:none;padding:clamp(32px,5vw,64px);text-align:center;outline:0}
.foev-fm .foev-fm__success-icon{display:grid;place-items:center;width:72px;height:72px;margin:0 auto 24px;border-radius:50%;
	background:var(--fsoft);color:var(--fg)}
.foev-fm .foev-fm__success-icon svg{width:34px;height:34px;stroke-dasharray:30;stroke-dashoffset:30;
	animation:foev-fm-draw .6s var(--fease-out) .2s forwards}
@keyframes foev-fm-draw{to{stroke-dashoffset:0}}
.foev-fm .foev-fm__success h3{margin:0;font:700 clamp(1.15rem,1.07rem + .35vw,1.3rem)/1.3 var(--fhead);color:var(--fink)}
.foev-fm .foev-fm__success p{max-width:28rem;margin:12px auto 0;color:var(--fmut)}
.foev-fm .foev-fm__success .foev-fm__btn{margin-top:28px}
.foev-fm.is-sent .foev-fm__form{display:none}
.foev-fm.is-sent .foev-fm__success{display:block}

@media (max-width:560px){
	.foev-fm .foev-fm__type,
	.foev-fm .foev-fm__grid{grid-template-columns:1fr}
	.foev-fm .foev-fm__f6,.foev-fm .foev-fm__f4,.foev-fm .foev-fm__f3,.foev-fm .foev-fm__f2{grid-column:1/-1}
	.foev-fm .foev-fm__foot .foev-fm__btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
	.foev-fm *,.foev-fm *::before,.foev-fm *::after{transition:none!important;animation:none!important}
	.foev-fm .foev-fm__success-icon svg{stroke-dashoffset:0}
}
