/*
 * Ergänzende Styles für die von Carrd exportierten Seiten:
 * Cookie-Banner, Kontaktformular-Erweiterungen (reCAPTCHA, Einwilligung,
 * Statusmeldungen) und Honeypot. Farbwelt wie die Hauptseite:
 * Hintergrund #F7F4EE, Grün #4B6B3C, Gold #C9A66B, Text #222222, Inter.
 */

/* ---------- Cookie-Banner ---------- */

.cookie-banner {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 10000;
	padding: 1rem;
	background: rgba(34, 34, 34, 0.45);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__box {
	max-width: 40rem;
	margin: 0 auto;
	background: #F7F4EE;
	border: solid 1px #222222;
	border-radius: 1.5rem;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
	padding: 1.5rem 1.75rem;
}

.cookie-banner__text {
	font-family: 'Inter', sans-serif;
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.6;
	color: #222222;
	margin: 0 0 1.25rem 0;
}

.cookie-banner__text strong { font-weight: 700; }

.cookie-banner__text a {
	color: #4B6B3C;
	text-decoration: underline;
}

.cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-end;
}

.cookie-btn {
	font-family: 'Inter', sans-serif;
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1;
	padding: 0.85rem 1.6rem;
	border-radius: 2.5rem;
	border: solid 1px #4B6B3C;
	background-color: #4B6B3C;
	color: #FFFFFF;
	cursor: pointer;
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.cookie-btn:hover { background-color: #C9A66B; border-color: #C9A66B; }

.cookie-btn--ghost {
	background-color: transparent;
	color: #4B6B3C;
}

.cookie-btn--ghost:hover {
	background-color: transparent;
	color: #C9A66B;
	border-color: #C9A66B;
}

/* Inline-Button in der Datenschutzerklärung, der wie ein Link aussieht */
.linklike-inline {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- Kontaktformular-Erweiterungen ---------- */

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.form-component .hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	margin: 0 !important;
}

/* Die Checkbox selbst nutzt Carrds natives Muster (verstecktes Input +
   Label mit ::before-Box); hier nur kleine Anpassungen für den langen
   Einwilligungstext. */
.form-component .consent-field input[type="checkbox"] + label {
	align-items: flex-start;
	font-size: 0.85em;
	line-height: 1.6;
	cursor: pointer;
	text-align: left;
}

.form-component .consent-field input[type="checkbox"] + label > span {
	display: block;
	min-width: 0;
}

.form-component .consent-field a {
	color: #4B6B3C;
	text-decoration: underline;
}

/* Erst sichtbar, sobald das Widget tatsächlich gerendert wurde */
.form-component .recaptcha-field { display: none; }
.form-component .recaptcha-field.is-active { display: block; }

.form-component .recaptcha-field .g-recaptcha,
.form-component .recaptcha-field iframe {
	max-width: 100%;
}

.form-status {
	display: none;
	font-family: 'Inter', sans-serif;
	font-size: 0.88rem;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	border-radius: 1rem;
	padding: 0.85rem 1.1rem;
}

.form-status.is-success {
	display: block;
	background-color: rgba(75, 107, 60, 0.12);
	border: solid 1px #4B6B3C;
	color: #35502A;
}

.form-status.is-error {
	display: block;
	background-color: rgba(176, 83, 44, 0.10);
	border: solid 1px #B0532C;
	color: #8F3F1F;
}
