/*
Dittmar Dacheindeckungen GmbH
creation Date: 2026-08-12
Author: Sebastian Osinski
http://www.sebbi.net
https://ddm-friends.de

mod_ddm_formular - Kontaktformular.
Farben kommen aus colors.css des Templates, Buttons aus .ddm_btn.
Nur was das Formular selbst braucht, steht hier.
*/

.ddm_formular_wrap{
	position: relative;
	display: block;
	width: 100%;
}

.ddm_formular_headline{
	font-family: 'Avenir-Light', sans-serif;
	font-size: 34px;
	line-height: 44px;
	letter-spacing: 0.5px;
}

/* Doppelrolle: stehender Hinweis, Fehlermeldung nach einem abgelehnten POST
   und Live-Status aus ddm_formular.js. */
p.ddm_formular_note{
	margin-top: 10px;
	margin-bottom: 30px;
	font-family: 'Avenir-Medium', sans-serif;
	font-size: 17px;
	line-height: 26px;
}
.ddm_formular_note._err{
	color: #b3323f;
}

.ddm_formular_result p{
	max-width: 620px;
}


/* FELDER */
.ddm_formular_field{
	position: relative;
	display: block;
	margin-bottom: 14px;
}

/* Sichtbar ist der Platzhalter, das Label bleibt fuer Screenreader stehen. */
.ddm_formular_srlabel{
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0px;
	border: 0px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.ddm_formular_input{
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 62px;
	padding: 0px 26px;
	border: 2px solid transparent;
	border-radius: 16px;
	background-color: #ffffff;
	font-family: 'Avenir-Book', sans-serif;
	font-size: 18px;
	line-height: 58px;
	color: #002643;
	-webkit-appearance: none;
	appearance: none;
	-webkit-transition: border-color 250ms ease, box-shadow 250ms ease;
	transition: border-color 250ms ease, box-shadow 250ms ease;
}
.ddm_formular_input::placeholder{
	color: #a7a9b4;
	opacity: 1;
}
.ddm_formular_input:focus{
	outline: none;
	border-color: #d97680;
	-webkit-box-shadow: 0px 6px 20px rgba(0, 38, 67, 0.10);
	box-shadow: 0px 6px 20px rgba(0, 38, 67, 0.10);
}
.ddm_formular_input._err{
	border-color: #b3323f;
	background-color: #fdf3f4;
}

.ddm_formular_textarea{
	height: 260px;
	padding: 22px 26px;
	line-height: 30px;
	resize: vertical;
}


/* INTERESSE AN - Beschriftung links, dunkelblaue Pille rechts */
.ddm_formular_select_row{
	display: flex;
	align-items: center;
	gap: 22px;
	margin-top: 26px;
	margin-bottom: 26px;
}
.ddm_formular_label{
	flex: 0 0 auto;
	font-size: 17px;
	line-height: 26px;
	color: #002643;
}
.ddm_formular_select_wrap{
	position: relative;
	flex: 1 1 auto;
	/* Nicht unter die Zeilenbreite wachsen, egal wie lang die laengste Option ist. */
	min-width: 0px;
	border: 2px solid transparent;
	border-radius: 16px;
	overflow: hidden;
}
.ddm_formular_select_wrap._err{
	border-color: #b3323f;
}
.ddm_formular_select{
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 62px;
	padding: 0px 54px 0px 26px;
	border: none;
	background: transparent;
	font-family: 'Avenir-Medium', sans-serif;
	font-size: 18px;
	line-height: 62px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.ddm_formular_select:focus{
	outline: none;
}
.ddm_formular_select_wrap:focus-within{
	border-color: #d97680;
}
/* Die Optionsliste zeichnet das Betriebssystem - dort gilt die Systemfarbe,
   nicht das Rose der geschlossenen Pille. */
.ddm_formular_select option{
	color: #002643;
	background-color: #ffffff;
}
.ddm_formular_select_arrow{
	position: absolute;
	top: 50%;
	right: 24px;
	font-family: 'Avenir-Medium', sans-serif;
	font-size: 24px;
	line-height: 24px;
	color: #d97680;
	transform: translateY(-50%) rotate(90deg);
	pointer-events: none;
}


/* HONEYPOT - nie sichtbar, nie fokussierbar */
.ddm_formular_hp{
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}


/* DATENSCHUTZ */
.ddm_formular_consent{
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-top: 30px;
	padding: 18px 20px;
	border: 2px solid transparent;
	border-radius: 16px;
}
.ddm_formular_consent._err{
	border-color: #b3323f;
	background-color: #fdf3f4;
}
.ddm_formular_checkbox{
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	margin-top: 2px;
	border: 2px solid #c9cbd6;
	border-radius: 6px;
	background-color: #ffffff;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 74%;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-transition: border-color 250ms ease;
	transition: border-color 250ms ease;
}
/* Haken als Data-URI, damit das Modul ohne zusaetzliche Bilddatei auskommt */
.ddm_formular_checkbox:checked{
	border-color: #002643;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23002643' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5 L9.5 18 L20 6'/%3E%3C/svg%3E");
}
.ddm_formular_checkbox:focus-visible{
	outline: 2px solid #d97680;
	outline-offset: 2px;
}
.ddm_formular_consent_text{
	cursor: pointer;
	margin: 0px;
}
.ddm_formular_req{
	color: #d97680;
	font-family: 'Avenir-Medium', sans-serif;
}


/* DDM CAPTCHA */
.ddm_formular_captcha_row{
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 26px;
	padding: 8px 20px;
	border: 2px solid transparent;
	border-radius: 16px;
}
.ddm_formular_captcha_row._err{
	border-color: #b3323f;
	background-color: #fdf3f4;
}
.ddm_formular_captcha_hint{
	color: #6b6d78;
}

.ddm_captcha_validator{
	position: relative;
	flex: 0 0 auto;
	display: block;
	box-sizing: border-box;
	width: 210px;
	height: 56px;
	padding: 0px;
	border: 2px solid;
	border-radius: 40px;
	overflow: hidden;
	background-color: #ffffff;
	color: #002643;
	font-family: 'Avenir-Book', sans-serif;
	cursor: pointer;
	-webkit-transition: box-shadow 300ms ease, opacity 300ms ease;
	transition: box-shadow 300ms ease, opacity 300ms ease;
}
.ddm_captcha_validator:hover{
	-webkit-box-shadow: 0px 6px 18px rgba(0, 38, 67, 0.18);
	box-shadow: 0px 6px 18px rgba(0, 38, 67, 0.18);
}
.ddm_captcha_validator:focus-visible{
	outline: 2px solid #d97680;
	outline-offset: 3px;
}
.ddm_captcha_validator[disabled]{
	cursor: default;
	pointer-events: none;
}

/* Fuellbalken laeuft waehrend der Verifikation durch */
.ddm_captcha_validator ._bar{
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: 0;
	width: 0%;
	height: 100%;
	background-color: #d97680;
	-webkit-transition: width 1000ms linear;
	transition: width 1000ms linear;
}
.ddm_captcha_validator.holding ._bar,
.ddm_captcha_validator.validated ._bar{
	width: 100%;
}
.ddm_captcha_validator.validated ._bar{
	background-color: #002643;
}

.ddm_captcha_validator ._txt{
	position: absolute;
	top: 50%;
	left: 0px;
	z-index: 1;
	width: 100%;
	text-align: center;
	line-height: 20px;
	transform: translateY(-50%);
}
.ddm_captcha_validator.holding ._txt,
.ddm_captcha_validator.validated ._txt{
	color: #ffffff;
}
.ddm_captcha_validator ._txt ._top{
	display: block;
	font-size: 14px;
	line-height: 18px;
}
.ddm_captcha_validator ._txt ._bot{
	display: block;
	font-family: 'Avenir-Medium', sans-serif;
	font-size: 16px;
	line-height: 22px;
}
.ddm_captcha_validator ._txt ._res,
.ddm_captcha_validator ._txt ._hold{
	display: block;
	font-family: 'Avenir-Medium', sans-serif;
	font-size: 16px;
	line-height: 22px;
}


/* ABSENDEN */
.ddm_formular_submit_row{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 34px;
}
.ddm_formular_required{
	color: #6b6d78;
}
.ddm_formular_submit{
	flex: 0 0 auto;
	border: none;
	cursor: pointer;
	font-family: 'Avenir-Medium', sans-serif;
}
/* Gesperrt, solange Pflichtfelder fehlen - sichtbar unbedienbar, nicht versteckt */
.ddm_formular_submit._inact,
.ddm_formular_submit[disabled]{
	background-color: #c9cbd6;
	cursor: not-allowed;
	pointer-events: none;
	transform: none;
	box-shadow: none;
}


@media (prefers-reduced-motion: reduce){
	.ddm_formular_input,
	.ddm_captcha_validator,
	.ddm_captcha_validator ._bar,
	.ddm_formular_checkbox{
		transition: none;
	}
}


/* RESPONSIVE */
@media (max-width: 1320px){
	.ddm_formular_headline{
		font-size: 28px;
		line-height: 38px;
	}
}

@media (max-width: 860px){
	.ddm_formular_headline{
		font-size: 24px;
		line-height: 34px;
	}
	.ddm_formular_input{
		height: 56px;
		padding: 0px 20px;
		font-size: 17px;
		line-height: 52px;
	}
	.ddm_formular_textarea{
		height: 200px;
		padding: 18px 20px;
		line-height: 28px;
	}
	/* Beschriftung ueber die Auswahl, sonst bleibt fuer die Pille nichts uebrig */
	.ddm_formular_select_row{
		display: block;
	}
	.ddm_formular_label{
		display: block;
		margin-bottom: 10px;
	}
	.ddm_formular_select{
		height: 56px;
		padding: 0px 46px 0px 20px;
		font-size: 17px;
		line-height: 56px;
	}
	.ddm_formular_captcha_row{
		display: block;
		padding: 8px 0px;
	}
	.ddm_formular_captcha_hint{
		margin-top: 12px !important;
	}
	.ddm_formular_consent{
		padding: 16px 0px;
	}
	.ddm_formular_submit_row{
		display: block;
	}
	.ddm_formular_submit{
		display: block;
		width: 100%;
		margin-top: 20px;
		text-align: center;
	}
}
