/* CA Widerrufsformular – Floating-Label-Stil
 * Technik & Werte übernommen aus dem CA-Login/Registrierungs-CSS
 * (myCA-LoginHeader.css): Unterstrich-Felder, placeholder=" " + nachfolgendes
 * <label>, das per :not(:placeholder-shown)~label nach oben wandert.
 */
.ca-widerruf {
	/*max-width: 600px;*/
	font-family: inherit;
}

/* --- Kopfbereich --- */
.ca-widerruf .form-header {
	margin-bottom: 12px;
	padding-right: 20px;
}
.ca-widerruf .form-header-headline {
	font-size: 14px;
	font-weight: 600;
}
.ca-widerruf .form-header-text {
	font-size: 12px;
	line-height: 20px;
}

/* --- Floating-Label-Feld --- */
.ca-widerruf .caw-field {
	position: relative;
	margin-bottom: 18px;
}
.ca-widerruf .caw-input,
.ca-widerruf .caw-input:empty {
	width: 100%;
	border: 1px solid #cccccc;
	outline: none;
	border-radius: 0;
	padding: 20px 10px 6px 10px; /* viel Platz oben für das hochgewanderte Label */
	font-weight: bold;
	font-size: 15px;
	color: #000;
	background: #fff;
	box-sizing: border-box;
	transition: all .2s ease;
	font-family: inherit;
}
.ca-widerruf .caw-input:focus {
	border-color: #666;
}

/* Label: im leeren Feld vertikal zentriert, kursiv (CA-Stil) */
.ca-widerruf .caw-field label {
	position: absolute;
	top: 50%;
	left: 11px;
	font-size: 13px;
	color: #666;
	font-style: italic;
	transform: translateY(-50%);
	transition: all .2s ease;
	pointer-events: none;
}
/* Bei Fokus oder befülltem Feld wandert das Label nach oben an den Rand */
.ca-widerruf .caw-input:focus ~ label,
.ca-widerruf .caw-input:not(:placeholder-shown) ~ label {
	top: 5px;
	font-size: 10px;
	color: #333;
	font-style: normal;
	transform: none;
}

/* --- Textarea-Variante: Label oben statt vertikal zentriert --- */
.ca-widerruf .caw-input--textarea {
	resize: vertical;
	min-height: 90px;
	line-height: 20px;
	padding-top: 22px;
}
.ca-widerruf .caw-field--textarea label {
	top: 16px;
	transform: none;
}
.ca-widerruf .caw-field--textarea .caw-input:focus ~ label,
.ca-widerruf .caw-field--textarea .caw-input:not(:placeholder-shown) ~ label {
	top: 5px;
}

/* --- Fehlerzustand --- */
.ca-widerruf .caw-input.has-error {
	border-color: #e22118;
}
.ca-widerruf .caw-input.has-error ~ label {
	color: #e22118;
}
.ca-widerruf .ca-widerruf-formerror {
	clear: both;
	color: #e22118;
	font-size: 13px;
	padding: 4px 0;
}

/* --- Überschrift „Widerrufserklärung" (fett, wie in der Vorgabe) --- */
.ca-widerruf .caw-consent-heading {
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 6px;
}

/* --- Pflicht-Checkbox (Box links, Text rechts) --- */
.ca-widerruf .popup-form-wrapper {
	width: 100%;
	float: left;
	margin-bottom: 10px;
}
.ca-widerruf .popup-form-wrapper::after {
	content: "";
	display: table;
	clear: both;
}
.ca-widerruf .form-wrapper-dsgvo { margin-top: 5px; }
.ca-widerruf .dsgvo-check { float: left; }
.ca-widerruf .dsgvo-check input { margin-top: 2px; }
.ca-widerruf .dsgvo-check input.has-error { outline: 2px solid #e22118; }
.ca-widerruf .dsgvo-text {
	font-size: 10px;
	float: left;
	line-height: 14px;
	width: 92%;
	padding-left: 10px;
	box-sizing: border-box;
}
.ca-widerruf .dsgvo-text a { text-decoration: underline !important; }

/* --- Roter Button (exakt wie .formular-button-inline) --- */
.ca-widerruf .element { clear: both; padding-top: 8px; }
.ca-widerruf .formular-button-inline {
	background-color: #e22118;
	border-style: solid;
	border-color: #e22118;
	color: #ffffff;
	height: 40px;
	width: 100%;
	font-size: 16px;
	font-weight: 700;
	text-shadow: 0 0px 0 rgba(255, 255, 255, 0.8);
	cursor: pointer;
}
.ca-widerruf .formular-button-inline:hover {
	background-color: #a60000;
	border-color: #a60000;
}
.ca-widerruf .formular-disabled,
.ca-widerruf .formular-disabled:hover {
	background-color: #9c6a67;
	border-color: #9c6a67;
	cursor: default;
}

/* --- Honeypot --- */
.ca-widerruf-hp {
	position: absolute !important;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}

/* --- Bestätigungs-Popup (Modal) --- */
.ca-widerruf .hidden { display: none; }
.ca-widerruf .caw-modal[hidden] { display: none; }
.ca-widerruf .caw-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.ca-widerruf .caw-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 22, 38, 0.55);
}
.ca-widerruf .caw-modal__box {
	position: relative;
	background: #fff;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px 34px 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	animation: caw-pop 0.18s ease-out;
}
@keyframes caw-pop {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to   { opacity: 1; transform: none; }
}
.ca-widerruf .caw-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e22118;
	color: #fff;
	border: none;
	font-size: 20px;
	line-height: 28px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.ca-widerruf .caw-modal__close:hover { background: #a60000; color: #fff; }
.ca-widerruf .caw-modal__box .form-ok {
	border-bottom: 3px solid #e11e00;
	padding-bottom: 10px;
	margin-top: 0;
	font-size: 18px;
	font-weight: 600;
}
.ca-widerruf .caw-modal__box ul { padding-left: 18px; }
.ca-widerruf .caw-modal__box li { margin-bottom: 8px; line-height: 1.5; }
