/* LEGALBOT – minimales, neutrales Frontend-CSS.
   Erbt Typografie/Farben weitestgehend vom Theme. Nur das Nötigste.
   Wird ausschließlich geladen, wenn ein LEGALBOT-Shortcode vorkommt. */

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

/* Widerrufsformular -------------------------------------------------------- */
.legalbot-form .legalbot-field {
	margin: 0 0 1em;
}

.legalbot-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35em;
}

.legalbot-form input[type="text"],
.legalbot-form input[type="email"],
.legalbot-form textarea {
	width: 100%;
	max-width: 32em;
	box-sizing: border-box;
}

.legalbot-required {
	color: #E52336;
}

.legalbot-fieldset {
	border: 1px solid rgba( 22, 22, 24, 0.15 );
	border-radius: 6px;
	padding: 0.6em 0.9em;
}

.legalbot-fieldset legend {
	font-weight: 600;
	padding: 0 0.4em;
}

.legalbot-radio {
	display: block;
	font-weight: 400;
	margin: 0.2em 0;
}

.legalbot-radio input {
	width: auto;
	margin-right: 0.4em;
}

/* CTA-Button (Widerruf). Rot mit weißer, fetter Schrift (WCAG-Kontrast). */
.legalbot-button {
	display: inline-block;
	background: #E52336;
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
	padding: 0.7em 1.4em;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	line-height: 1.2;
}

.legalbot-button:hover,
.legalbot-button:focus {
	background: #C71D2C;
	color: #ffffff;
}

.legalbot-button:focus-visible {
	outline: 3px solid #161618;
	outline-offset: 2px;
}

/* Hinweise (Erfolg/Fehler) ------------------------------------------------- */
.legalbot-notice {
	padding: 1em 1.2em;
	border-radius: 6px;
	margin: 0 0 1.2em;
}

.legalbot-notice--error {
	border: 1px solid #C71D2C;
	background: #fcebed;
}

.legalbot-notice--error ul {
	margin: 0;
	padding-left: 1.2em;
}

.legalbot-notice--success {
	border: 1px solid #2e7d32;
	background: #edf7ed;
}

.legalbot-notice-title {
	margin-top: 0;
}

.legalbot-admin-warning {
	border: 1px dashed #C71D2C;
	background: #fcebed;
	padding: 0.6em 0.9em;
	border-radius: 4px;
}

/* Bildnachweise ------------------------------------------------------------ */
.legalbot-credits-list {
	list-style: none;
	margin: 1.2em 0 0;
	padding: 0;
}

.legalbot-credits-item {
	display: flex;
	gap: 1em;
	align-items: flex-start;
	padding: 0.8em 0;
	border-bottom: 1px solid rgba(22, 22, 24, 0.1);
}

.legalbot-credits-thumb {
	flex: 0 0 auto;
}

.legalbot-credits-thumb img,
.legalbot-thumb {
	display: block;
	max-width: 96px;
	height: auto;
	border-radius: 4px;
}

.legalbot-credits-text {
	flex: 1 1 auto;
}

.legalbot-credits-text p:first-child {
	margin-top: 0;
}

/* Rechtstext --------------------------------------------------------------- */
.legalbot-legal-text--empty,
.legalbot-legal-text--unlicensed {
	color: #6B6664;
	font-style: italic;
}
