* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	background-color: #ffc655;
	color: #fff;
	line-height: 1.6;
	padding: 20px;
}

.form-container {
	max-width: 800px;
	margin: 0 auto;
	background: #ffc655;
	color: #02142f;
	font-weight: bold;
	border: 1px solid #dddddd;
	padding: 0px 30px;
	border-radius: 8px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	position: relative;
	font-size: calc(12px + (14 - 12) * ((100vw - 320px) / (2560 - 320)));
}

.cf {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
	color: #02142f;
	font-size: calc(18px + (18 - 16) * ((100vw - 320px) / (2560 - 320)));
}


.form-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;


}


.formbox-1 {
	grid-column: 1 / 2;
	grid-row: 1;
	margin-right: 15px;

}

.formbox-2 {
	grid-column: 2 /3;
	grid-row: 1;

}

.formbox-3 {
	grid-column: 1 / 2;
	grid-row: 2;
	margin-right: 15px;

}

.formbox-4 {
	grid-column: 2 /3;
	grid-row: 2;

}



.form-group {
	margin-bottom: 20px;
}

#contactForm label {
	display: block;
	margin-bottom: 5px;
	color: #02142f;
	font-size: calc(16px + (14 - 12) * ((100vw - 320px) / (2560 - 320)));
}

#contactForm input[type="text"],
input[type="email"],
textarea {
	width: 100%;
	padding: 6px;
	background: #FFF;
	color: #000;
	border: 1px solid #fff;
	border-radius: 4px;
	font-size: calc(14px + (14 - 12) * ((100vw - 320px) / (2560 - 320)));
	transition: border 0.3s;
}

#contactForm input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
	border-color: #fff;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
	outline: none;
}

#contactForm textarea {
	min-height: 150px;
	resize: vertical;
}

.honeypot {
	position: absolute;
	left: -9999px;
}

.math-question {
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;

}


#contactForm button[type="submit"] {
	color: #000;
	background: #fff;
	border: 1px solid #fff;
	height: 74px;
	margin-top: 15px;
	width: 300px;
	padding: 10px;
	float: right;
	font-size: calc(12px + (14 - 12) * ((100vw - 320px) / (2560 - 320)));
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: ease-in-out 0.25s;
}

#contactForm button[type="submit"]:hover {
	background-color: #333333;
	color: #fff;
}


#contactForm input[type="checkbox"]+label {
	display: inline;
}


#contactForm input[type="checkbox"] {
	width: 17px;
	height: 17px;
	appearance: none;
	background-color: lightgray;/ border: 2px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	margin-right: 3px;
}

#contactForm input[type="checkbox"]:checked {
	background-color: green;
	/* Farbe bei aktiviertem Zustand */
}

#contactForm input[type="checkbox"]:checked::after {
	content: "✔";
	position: absolute;
	left: 3px;
	top: -2.5px;
	font-size: 14px;
	color: white;
}

a.dsgvo-link {
	text-decoration: none;
	color: #fff;
	border-bottom: 1px solid #ccc;
}

a.dsgvo-link::after {
	content: url(../img/open-in-new.svg);
	margin-left: 2px;
	height: 5px;
}

.progress-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 1001;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.progress-container {
	width: 80%;
	max-width: 500px;
	height: 30px;
	background-color: #333;
	border-radius: 15px;
	overflow: hidden;
	margin: 20px 0;
}

.progress-bar {
	height: 100%;
	width: 0%;
	background-color: #4CAF50;
	transition: width 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 14px;
}

.progress-text {
	color: white;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
}


.error {
	color: red;
	font-size: 14px;
	margin-top: 5px;
	display: none;
}

.success-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.success-message {
	background-color: green;
	border: 1px solid #fff;
	padding: 30px;
	border-radius: 8px;
	text-align: center;
	max-width: 500px;
	width: 90%;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.success-message h2 {
	font-size: calc(14px + (17 - 14) * ((100vw - 320px) / (2560 - 320)));
	color: #fff;
	margin-bottom: 15px;
	letter-spacing: 1px;
}

.success-message p {
	margin-bottom: 20px;
	color: #fff;
}

.close-overlay {
	background-color: #fff;
	color: #000;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
}


@media screen and (max-width: 992px) {
	.form-container {
		border: none;
	
	}

	.form-wrapper {
		grid-template-rows: 1fr;
	}

	.formbox-1 {
		grid-column: 1 / 3;
		grid-row: 1;
		margin-right: 0px;
	}

    .formbox-2 {
		grid-column: 1 / 3;
		grid-row: 2;
	}


	.formbox-3 {
		grid-column: 1 / 3;
		grid-row: 3;
		margin-right: 0px;

	}

	.formbox-4 {
		grid-column: 1 /3;
		grid-row: 4;

	}


	@media (max-width: 600px) {
		.form-container {
			padding: 20px;
		}

		input[type="text"],
		input[type="email"],
		textarea {
			padding: 10px;
		}
	}