/* =========================================================
FORM
========================================================= */

.form-widget {
	width: 100%;
}

.form-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
}

#template-contactform-service,
.form-col,
.form-col-100,
.form-widget {
	margin: 0.5rem 0;
}

.form-col-100:nth-child(8) {
	margin-bottom: 1rem;
}

.form-col {
	display: inline-block;
	width: 32%;
}

@media (max-width: 991.98px) {
	
	.form-col {
		width: 49%;
	}
}

.form-process {
	display: none;
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	margin: 0;
	z-index: 10000;
}

.form-process::before {
	content: '';
	position: absolute;
	inset: 0;
	background-color: rgba(21,49,53,1);
	opacity: 0.82;
}

.form-process .css3-spinner {
	position: fixed;
	inset: 0;
	display: flex;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.form-process .css3-spinner-scaler {
	width: 96px;
	height: 96px;
	background: transparent;
	border: 10px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: form-spinner-rotate 0.8s linear infinite;
}

@keyframes form-spinner-rotate {
	to {
		transform: rotate(360deg);
	}
}

/* Customize the label (the container) */

.form-check {
	display: block;
	position: relative;
	padding-left: 35px;
	margin-bottom: 12px;
	cursor: pointer;
	user-select: none;
}

select {
	visibility: hidden;
}

.form-check a {
	text-decoration: underline;
}

/* Hide the browser's default checkbox */

.form-check input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 25px;
	width: 25px;
	left: 0;
	top: 0;
}

.form-check input:focus-visible ~ .checkmark {
	outline: none;
	outline-offset: 0;
}

/* Create a custom checkbox */

.checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 25px;
	width: 25px;
	background-color: #eee;
}

/* On mouse-over, add a grey background color */

.form-check:hover input ~ .checkmark {
	background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */

.form-check input:checked ~ .checkmark {
	background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */

.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}

/* Show the checkmark when checked */

.form-check input:checked ~ .checkmark:after {
	display: block;
}

/* Style the checkmark/indicator */

.form-check .checkmark:after {
	left: 9px;
	top: 5px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.sm-form-control {
	display: block;
	width: 100%;
	height: auto;
	padding: 8px 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	font-size: inherit;
	background-color: #eee;
	background-image: none;
	border: 1px solid transparent;
	border-radius: 0 !important;
	transition: border-color ease-in-out .15s;
}

.sm-form-control:focus {
	outline: 0;
	box-shadow: none;
}

.sm-form-control:focus-visible {
	outline: none;
	outline-offset: 0;
}

.sm-form-control::placeholder {
	color: #999;
	opacity: 1;
	font-family: inherit;
	line-height: 1.3;
}

.sm-form-control[disabled],
.sm-form-control[readonly],
fieldset[disabled] .sm-form-control {
	cursor: not-allowed;
	background-color: #eeeeee;
	opacity: 1;
}

.form-control.error,
.sm-form-control.error { 
	border-color: #E42C3E;
}

#feedback-form-botcheck {
	display: none;
}

form .btn {
	background-color: rgba(137,198,176,0);
	color: #3f7868;
	border: 2px solid #3f7868;
	width: 100%;
	margin: 0;
	transition: all 650ms ease;
}

form .btn:hover {
	background-color: rgba(137,198,176,1);
	color: #fff;
	border: 2px solid #3f7868;
}

@media screen and (min-width: 992px) {
	
	.form-widget {
		margin-right: 3rem;
	}
}

/* =========================================================
FORMULARSTATUS / MODAL
========================================================= */

.form-widget {
	position: relative;
}

.form-widget.is-submitting .form-process {
	display: block;
}

.form-widget.is-submitting form > *:not(.form-process) {
	pointer-events: none;
}

.form-status {
	display: none;
	margin: 1rem 0;
	padding: 0.9rem 1rem;
	border: 1px solid #c94444;
	background-color: #fff4f4;
	color: #8c2525;
	line-height: 1.5;
}

.form-status.is-visible {
	display: block;
}

/* Verhindert Scrollen der Seite, solange das Modal geöffnet ist. */

body.success-modal-open {
	overflow: hidden;
}

.success-modal {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	border: 0;
	padding: 2rem;
	overflow: auto;
	background: rgba(255, 255, 255, 0.98);
}
.success-modal:not([open]) { display: none; }
.success-modal[open] { display: block; }
.success-modal::backdrop { background: rgba(0, 0, 0, 0.25); }

.success-modal__inner {
	position: relative;
	width: min(100%, 720px);
	padding: 4rem 2rem 3rem;
	box-sizing: border-box;
	text-align: center;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	background-color: #fff;
	margin: auto;
	transition: transform 250ms ease;
}

.success-modal[open] .success-modal__inner {
	transform: translateY(0) scale(1);
}

.success-modal__close {
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	background-color: transparent;
	color: #555;
	font: inherit;
	font-size: 2.4rem;
	line-height: 1;
	cursor: pointer;
}

.success-modal h3 {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.15;
}

.success-modal p {
	margin: 0;
	font-size: clamp(1.05rem, 2.4vw, 1.35rem);
	line-height: 1.6;
}

.success-modal__button {
	display: inline-block;
	min-width: 12rem;
	margin-top: 2.25rem;
	padding: 0.9rem 1.5rem;
	border: 2px solid #3f7868;
	border-radius: 3rem;
	background-color: transparent;
	color: #3f7868;
	font: inherit;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12rem;
	cursor: pointer;
	transition: background-color 250ms ease, color 250ms ease;
}

/*

.success-modal__button:hover,
.success-modal__button:focus-visible {
	background-color: rgba(137,198,176,1);
	color: #153135;
	outline: none;
	outline-offset: 0;
}

*/

@media screen and (max-width: 767.98px) {
	.success-modal {
		padding: 1rem;
	}

	.success-modal__inner {
		padding: 3.5rem 1rem 2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.success-modal,
	.success-modal__inner,
	.success-modal__button {
		transition: none;
	}
}

/* Datenschutz-Pflichtfeld: nach fehlgeschlagenem Absendeversuch rot markieren */

.form-check.is-invalid,
.form-check.is-invalid a,
.form-check.is-invalid strong {
	color: #E42C3E;
}

.form-check.is-invalid .checkmark {
	box-shadow: 0 0 0 2px #E42C3E;
}

@keyframes scaleout {
	from { transform: scale(0); opacity: 1; }
	to { transform: scale(1); opacity: 0; }
}
@keyframes bouncedelay {
	0%, 80%, 100% { transform: scale(0); }
	40% { transform: scale(1); }
}
input[type="file"] { max-width: 100%; }
.success-modal__icon { max-width: min(280px, 40vh); }
