/**
 * Widerrufsformular (§ 13a FAGG) — ruhige, gut lesbare Eingabemaske im CD.
 * Wird nur auf der Seite mit dem Shortcode geladen.
 */

.ebs-widerruf {
	max-width: 560px;
}

/* --- Formular ----------------------------------------------------------- */
.ebs-widerruf__feld {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	margin: 0 0 var(--wp--preset--spacing--md, 24px);
}
.ebs-widerruf__feld label {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small, 0.9rem);
	color: var(--wp--preset--color--ink, #2c2823);
}
.ebs-widerruf__optional {
	font-weight: 400;
	color: var(--wp--preset--color--ink-soft, #615b52);
}
.ebs-widerruf__feld input,
.ebs-widerruf__feld textarea {
	width: 100%;
	box-sizing: border-box; /* sonst sprengen Innenabstand + Rahmen die Zeile (Overflow mobil) */
	padding: 0.7em 0.9em;
	border: 1px solid var(--wp--preset--color--line, #d9d3ca);
	border-radius: 10px;
	background: var(--wp--preset--color--card, #fcfaf7);
	color: var(--wp--preset--color--ink, #2c2823);
	font: inherit;
	font-size: 1rem; /* verhindert das Zoomen von iOS-Safari beim Fokus */
}
.ebs-widerruf__feld textarea {
	resize: vertical;
	min-height: 6em;
}
.ebs-widerruf__feld input:focus-visible,
.ebs-widerruf__feld textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-deep, #6a4d33);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--accent, #a6794e);
}
.ebs-widerruf__hilfe {
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--wp--preset--color--ink-soft, #615b52);
}
.ebs-widerruf__pflicht {
	font-size: 0.85rem;
	color: var(--wp--preset--color--ink-soft, #615b52);
	margin: 0 0 var(--wp--preset--spacing--md, 24px);
}

/* Honeypot: für Menschen unsichtbar, für Bots im Markup sichtbar.
   Nicht display:none — manche Bots überspringen versteckte Felder. */
.ebs-widerruf__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Absenden ----------------------------------------------------------- */
.ebs-widerruf__submit {
	display: inline-block;
	padding: 0.9em 1.8em;
	border: 1px solid var(--wp--preset--color--ink, #2c2823);
	border-radius: var(--wp--custom--radius--btn, 999px);
	background: var(--wp--preset--color--ink, #2c2823);
	color: var(--wp--preset--color--paper, #f6f2ec);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}
.ebs-widerruf__submit:hover,
.ebs-widerruf__submit:focus-visible {
	background: var(--wp--preset--color--accent-deep, #6a4d33);
	border-color: var(--wp--preset--color--accent-deep, #6a4d33);
}

/* --- Rückmeldungen ------------------------------------------------------ */
.ebs-widerruf__fehler {
	margin: 0 0 var(--wp--preset--spacing--md, 24px);
	padding: 0.9em 1.1em;
	border: 1px solid var(--wp--preset--color--accent, #a6794e);
	border-left-width: 4px;
	border-radius: 10px;
	background: var(--wp--preset--color--accent-soft, #efe6d8);
	color: var(--wp--preset--color--ink, #2c2823);
}

.ebs-widerruf--ok {
	padding: var(--wp--preset--spacing--lg, 44px);
	border: 1px solid var(--wp--preset--color--line, #d9d3ca);
	border-radius: var(--wp--custom--radius--card, 18px);
	background: var(--wp--preset--color--card, #fcfaf7);
}
.ebs-widerruf__eyebrow {
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: var(--wp--preset--font-size--eyebrow, 0.72rem);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-soft, #615b52);
	margin: 0 0 0.7em;
}
.ebs-widerruf__title {
	font-size: var(--wp--preset--font-size--large, 1.6rem);
	line-height: 1.15;
	margin: 0 0 0.6em;
}
.ebs-widerruf--ok p {
	line-height: 1.6;
}
