/**
 * Frontend-Styles für den Widerrufsbutton.
 * Bewusst zurückhaltend; übernimmt Theme-Farben wo möglich. Kontraste WCAG AA.
 */

.wdb-container {
	margin: 1.5rem 0;
	max-width: 640px;
}

/* Honeypot: für Menschen unsichtbar, für Screenreader via aria-hidden ausgeblendet. */
.wdb-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Buttons (Stufe 1 = summary, Stufe 2 = submit). */
.wdb-button {
	display: inline-block;
	padding: 0.7em 1.4em;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	color: #ffffff;
	background-color: #000000;
	border: 2px solid #000000;
	border-radius: 4px;
	cursor: pointer;
	text-align: center;
}

.wdb-button:hover,
.wdb-button:focus {
	background-color: #333333;
	border-color: #333333;
	color: #ffffff;
}

/* Sichtbarer Fokus (Tastaturbedienung). */
.wdb-button:focus-visible,
.wdb-form :focus-visible {
	outline: 3px solid #ffbf47;
	outline-offset: 2px;
}

/* Disclosure (details/summary) als Stufe-1-Button. */
.wdb-disclosure {
	border: none;
}

.wdb-disclosure > summary {
	list-style: none;
	display: inline-block;
}

.wdb-disclosure > summary::-webkit-details-marker {
	display: none;
}

.wdb-disclosure[open] > summary {
	margin-bottom: 1.25rem;
}

/* Formular. */
.wdb-form-wrap {
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	padding: 1.25rem 1.5rem 1.5rem;
	background: #fff;
}

.wdb-form__heading {
	margin-top: 0;
	font-size: 1.25rem;
}

.wdb-form__intro {
	margin-top: 0;
	color: #333;
}

.wdb-field {
	margin-bottom: 1rem;
}

.wdb-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

.wdb-field input[type="text"],
.wdb-field input[type="email"],
.wdb-field input[type="date"],
.wdb-field textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.6em 0.7em;
	font-size: 1rem;
	border: 1px solid #6b7280;
	border-radius: 4px;
	box-sizing: border-box;
}

.wdb-required {
	color: #b32d2e;
}

.wdb-hint {
	display: block;
	font-weight: 400;
	font-size: 0.875rem;
	color: #555;
	margin-bottom: 0.3rem;
}

/* Fehler. */
.wdb-errors {
	border: 1px solid #b32d2e;
	background: #fcf0f1;
	color: #8a1f20;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	margin-bottom: 1.25rem;
}

.wdb-errors ul {
	margin: 0;
	padding-left: 1.25rem;
}

.wdb-field--error input,
.wdb-field--error textarea {
	border-color: #b32d2e;
}

.wdb-field-error {
	display: block;
	color: #8a1f20;
	font-size: 0.875rem;
	margin-top: 0.3rem;
}

.wdb-policy {
	margin: 0.5rem 0 1rem;
}

/* Erfolgsmeldung. */
.wdb-success {
	border: 1px solid #1a7f37;
	background: #eef7f0;
	color: #14532d;
	padding: 1.25rem 1.5rem;
	border-radius: 6px;
}

.wdb-success__heading {
	margin-top: 0;
}

/* Footer-Link. */
.wdb-footer-link {
	text-align: center;
	padding: 0.75rem 0;
}
