/* Benölken Kontaktformular – Basis-Styles (Theme-unabhängig, mit CSS-Variablen anpassbar) */
.bnk-form {
	--bnk-form-accent: #8e0c0f;
	--bnk-form-line: #dcd6cc;
	--bnk-form-text: #182127;
	--bnk-form-muted: #56626b;
	--bnk-form-bg: #ffffff;
	--bnk-form-soft: #f5f3ef;
	--bnk-form-error: #b3261e;
	color: var(--bnk-form-text);
	font-size: 1rem;
}

.bnk-form *,
.bnk-form *::before,
.bnk-form *::after {
	box-sizing: border-box;
}

.bnk-form__title {
	margin: 0 0 1rem;
}

.bnk-form__required-note {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	color: var(--bnk-form-muted);
}

.bnk-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem 1.25rem;
}

.bnk-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
	margin: 0;
}

.bnk-field--full {
	grid-column: 1 / -1;
}

.bnk-field > label,
.bnk-choices legend {
	font-weight: 700;
	font-size: 0.95rem;
}

.bnk-req {
	color: var(--bnk-form-accent);
}

.bnk-opt {
	font-weight: 400;
	color: var(--bnk-form-muted);
	font-size: 0.88em;
}

.bnk-form input[type="text"],
.bnk-form input[type="email"],
.bnk-form input[type="tel"],
.bnk-form select,
.bnk-form textarea {
	width: 100%;
	font: inherit;
	color: inherit;
	background: var(--bnk-form-bg);
	border: 1.5px solid var(--bnk-form-line);
	border-radius: 10px;
	padding: 0.8rem 0.95rem;
	line-height: 1.4;
	transition: border-color 0.15s, box-shadow 0.15s;
	-webkit-appearance: none;
	appearance: none;
}

.bnk-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%2356626b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.8rem center;
	background-size: 1.1rem;
	padding-right: 2.5rem;
}

.bnk-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.bnk-form input:hover,
.bnk-form select:hover,
.bnk-form textarea:hover {
	border-color: #b9b1a4;
}

.bnk-form input:focus,
.bnk-form select:focus,
.bnk-form textarea:focus {
	outline: none;
	border-color: var(--bnk-form-accent);
	box-shadow: 0 0 0 4px rgba(142, 12, 15, 0.15);
}

.bnk-field__hint {
	font-size: 0.85rem;
	color: var(--bnk-form-muted);
}

.bnk-field__error {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--bnk-form-error);
}

.bnk-field.has-error input,
.bnk-field.has-error textarea {
	border-color: var(--bnk-form-error);
}

/* Auswahl-Chips */
.bnk-choices {
	border: 0;
	padding: 0;
}

.bnk-choices legend {
	padding: 0;
	margin-bottom: 0.55rem;
}

.bnk-choices__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.bnk-chip {
	position: relative;
	cursor: pointer;
	margin: 0;
}

.bnk-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.bnk-chip span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.95rem;
	border: 1.5px solid var(--bnk-form-line);
	border-radius: 999px;
	background: var(--bnk-form-bg);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	user-select: none;
}

.bnk-chip:hover span {
	border-color: var(--bnk-form-accent);
}

.bnk-chip input:checked + span {
	background: var(--bnk-form-accent);
	border-color: var(--bnk-form-accent);
	color: #fff;
}

.bnk-chip input:checked + span::before {
	content: "✓";
	font-weight: 800;
}

.bnk-chip input:focus-visible + span {
	outline: 3px solid var(--bnk-form-accent);
	outline-offset: 2px;
}

/* Einwilligung */
.bnk-consent__label {
	display: flex !important;
	gap: 0.75rem;
	align-items: flex-start;
	font-weight: 400 !important;
	font-size: 0.9rem !important;
	line-height: 1.55;
	color: var(--bnk-form-muted);
	background: var(--bnk-form-soft);
	border-radius: 10px;
	padding: 0.9rem 1rem;
	cursor: pointer;
}

.bnk-consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.15rem 0 0;
	accent-color: var(--bnk-form-accent);
}

.bnk-consent a {
	color: var(--bnk-form-accent);
}

.bnk-consent.has-error .bnk-consent__label {
	box-shadow: inset 0 0 0 1.5px var(--bnk-form-error);
}

/* Honeypot */
.bnk-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Absenden */
.bnk-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: 1.5rem;
}

.bnk-form__submit {
	font: inherit;
	font-weight: 700;
	font-size: 1.02rem;
	color: #fff;
	background: var(--bnk-form-accent);
	border: 0;
	border-radius: 999px;
	padding: 0.95rem 2rem;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.bnk-form__submit:hover {
	background: #6d090c;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(142, 12, 15, 0.28);
}

.bnk-form__privacy-note {
	margin: 0;
	font-size: 0.85rem;
	color: var(--bnk-form-muted);
	flex: 1 1 14rem;
}

/* Fehlerbox */
.bnk-form__alert {
	border-left: 4px solid var(--bnk-form-error);
	background: #fdf0ef;
	color: #5b1712;
	border-radius: 8px;
	padding: 0.9rem 1.1rem;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
}

.bnk-form__alert:focus {
	outline: 3px solid var(--bnk-form-error);
	outline-offset: 2px;
}

.bnk-form__alert ul {
	margin: 0.4rem 0 0;
	padding-left: 1.2rem;
}

.bnk-form__alert a {
	color: inherit;
}

/* Erfolgsmeldung */
.bnk-form-success {
	text-align: center;
	padding: 2rem 1rem;
}

.bnk-form-success__icon {
	display: inline-grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: #e7f3e9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231e6b2d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 2rem no-repeat;
	margin-bottom: 1rem;
}

.bnk-form-success__title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
}

.bnk-form-success p {
	color: #56626b;
	max-width: 32rem;
	margin: 0.5rem auto;
}

@media (max-width: 640px) {
	.bnk-form__grid {
		grid-template-columns: 1fr;
	}
	.bnk-form__submit {
		width: 100%;
	}
}
