/* Olial Feedback – nutzt die Blocksy-Palette (color1 = Olial-Orange #d45533, color2 = Hover). */
.olial-fb {
	--ofb-accent: var(--theme-palette-color-1, #d45533);
	--ofb-accent-dark: var(--theme-palette-color-2, #b84728);
	--ofb-text: var(--theme-palette-color-3, #222222);
	--ofb-border: var(--theme-palette-color-5, #e1e8ed);
	--ofb-soft: var(--theme-palette-color-6, #f2f5f7);
	--ofb-error: #b3261e;
	color: var(--ofb-text);
}
/* Breite übernimmt das Theme (bündig mit der Seitenüberschrift), Inhalt lesefreundlich schmal */
.olial-fb > * { max-width: 680px; }
.olial-fb__intro {
	font-size: 1.05em;
	line-height: 1.6;
	margin: 0 0 1.75em;
}
.olial-fb__form { margin: 0; }
.olial-fb__field {
	border: 0;
	margin: 0 0 1.75em;
	padding: 0;
	min-width: 0;
}
.olial-fb__label {
	display: block;
	font-weight: 700;
	font-size: 1.05em;
	line-height: 1.4;
	margin: 0 0 .6em;
	padding: 0;
}
.olial-fb__req,
.olial-fb__opt {
	font-weight: 400;
	font-size: .85em;
	color: #5f6b76;
}
.olial-fb__hint {
	font-size: .9em;
	color: #5f6b76;
	margin: -.3em 0 .5em;
}
.olial-fb__error {
	color: var(--ofb-error);
	font-weight: 600;
	font-size: .95em;
	margin: 0 0 .5em;
}
.olial-fb__field.has-error textarea,
.olial-fb__field.has-error .olial-fb__rate-box { border-color: var(--ofb-error); }

/* Bewertung 1–5 */
.olial-fb__rating {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}
.olial-fb__rate { position: relative; margin: 0; cursor: pointer; }
.olial-fb__rate input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.olial-fb__rate-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	height: 100%;
	min-height: 64px;
	padding: 10px 4px;
	border: 2px solid var(--ofb-border);
	border-radius: 8px;
	background: #fff;
	text-align: center;
	transition: border-color .15s, background-color .15s;
}
.olial-fb__rate-num { font-size: 1.35em; font-weight: 700; line-height: 1; }
.olial-fb__rate-text { font-size: .78em; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; }
.olial-fb__rate:hover .olial-fb__rate-box { border-color: var(--ofb-accent); }
.olial-fb__rate input:focus-visible + .olial-fb__rate-box {
	outline: 3px solid var(--ofb-accent);
	outline-offset: 2px;
}
.olial-fb__rate input:checked + .olial-fb__rate-box {
	border-color: var(--ofb-accent);
	background: var(--ofb-accent);
	color: #fff;
}

/* Mehrfachauswahl */
.olial-fb__checks { display: grid; gap: 8px; }
.olial-fb__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--ofb-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	line-height: 1.4;
}
.olial-fb__check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--ofb-accent);
}
.olial-fb__check:has(input:checked) { border-color: var(--ofb-accent); background: var(--ofb-soft); }

/* Freitext */
.olial-fb textarea {
	display: block;
	width: 100%;
	min-height: 110px;
	padding: 10px 12px;
	border: 1px solid var(--ofb-border);
	border-radius: 8px;
	font: inherit;
	font-size: 16px; /* verhindert Zoom unter iOS */
	resize: vertical;
	box-sizing: border-box;
}
.olial-fb textarea:focus { border-color: var(--ofb-accent); outline: none; box-shadow: 0 0 0 2px rgba(212, 85, 51, .2); }
.olial-fb__count { font-size: .8em; color: #5f6b76; text-align: right; margin: .3em 0 0; }

/* Button */
.olial-fb__actions { margin: 0; }
.olial-fb__privacy { font-size: .85em; color: #5f6b76; margin: 1em 0 0; }
.olial-fb__privacy a { color: inherit; text-decoration: underline; }
.olial-fb__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	border: 0;
	border-radius: 6px;
	background: var(--ofb-accent);
	color: #fff !important;
	font-size: 1em;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}
.olial-fb__button:hover,
.olial-fb__button:focus-visible { background: var(--ofb-accent-dark); }
.olial-fb__button[disabled] { opacity: .65; cursor: wait; }
.olial-fb__button--secondary { background: var(--ofb-text); }

/* Meldungen */
.olial-fb__alert {
	border-left: 4px solid var(--ofb-error);
	background: #fdecea;
	padding: 12px 16px;
	border-radius: 4px;
	margin: 0 0 1.5em;
}
.olial-fb__alert p { margin: 0; }
.olial-fb__alert p + p { margin-top: .4em; }
.olial-fb__thanks {
	border-left: 4px solid var(--ofb-accent);
	background: var(--ofb-soft);
	padding: 24px;
	border-radius: 6px;
}
.olial-fb__thanks-title { font-size: 1.3em; font-weight: 700; margin: 0 0 .4em; }
.olial-fb__thanks p:last-child { margin-bottom: 0; }

/* Honeypot – für Menschen unsichtbar */
.olial-fb__hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Handy: Bewertung als Liste untereinander (große Tippflächen, keine Wortumbrüche) */
@media (max-width: 600px) {
	.olial-fb__rating { grid-template-columns: 1fr; gap: 8px; }
	.olial-fb__rate-box {
		flex-direction: row;
		align-items: center;
		gap: 14px;
		min-height: 52px;
		padding: 10px 14px;
		text-align: left;
	}
	.olial-fb__rate-num {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: none;
		width: 32px;
		height: 32px;
		border-radius: 50%;
		background: var(--ofb-soft);
		font-size: 1.05em;
	}
	.olial-fb__rate input:checked + .olial-fb__rate-box .olial-fb__rate-num { background: rgba(255, 255, 255, .25); }
	.olial-fb__rate-text { font-size: 1em; }
	.olial-fb__button { width: 100%; }
}
