/* KB Handbuch-Download – Frontend. Keine externen Schriften oder Ressourcen. */
.kbhd {
	--kbhd-gap: 20px;
	--kbhd-accent: #5555c8;
	--kbhd-error: #b00020;
	display: flex;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
}
.kbhd *, .kbhd *::before, .kbhd *::after { box-sizing: border-box; }
.kbhd--notice { display: block; padding: 12px 16px; border: 1px dashed #999; }

.kbhd__media { flex: 0 0 40%; max-width: 40%; margin: 0; overflow: hidden; }
.kbhd__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.kbhd__body { flex: 1 1 0; min-width: 0; padding: 40px; }

.kbhd__title { margin: 0 0 .5em; }
.kbhd__description { margin: 0 0 1.5em; }

.kbhd__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--kbhd-gap); }
.kbhd__field { margin: 0; min-width: 0; }
.kbhd__field--wide { grid-column: 1 / -1; }
.kbhd__required-note { font-size: .9em; }
.kbhd__notice { margin: 0; line-height: 1.6; }

.kbhd__label { display: block; margin: 0 0 6px; }
.kbhd__sr {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.kbhd__control {
	display: block; width: 100%; margin: 0; padding: 14px 16px;
	border: 1px solid #444; border-radius: 0; background: #fff; color: #111;
	font: inherit; line-height: 1.4; box-shadow: none;
}
.kbhd__control::placeholder { color: #595959; opacity: 1; }
textarea.kbhd__control { resize: vertical; min-height: 120px; }
.kbhd__control:focus, .kbhd__checkbox:focus-visible, .kbhd__button:focus-visible, .kbhd__fallback:focus-visible, .kbhd__privacy-link:focus-visible {
	outline: 3px solid var(--kbhd-accent); outline-offset: 2px;
}
.kbhd__control:focus { border-color: var(--kbhd-accent); }
.kbhd__control[aria-invalid="true"] { border-color: var(--kbhd-error); border-width: 2px; }

.kbhd__error { margin: 6px 0 0; color: var(--kbhd-error); font-size: .9em; }
.kbhd__alert { margin: 0 0 var(--kbhd-gap); color: var(--kbhd-error); }
.kbhd__alert:empty { display: none; }

.kbhd__consent { display: flex; align-items: flex-start; gap: 10px; }
.kbhd__checkbox { flex: 0 0 auto; width: 20px; height: 20px; margin: .25em 0 0; }
.kbhd__consent-label { line-height: 1.6; cursor: pointer; }

.kbhd__button {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	width: 100%; margin: var(--kbhd-gap) 0 0; padding: 16px 24px;
	border: 1px solid var(--kbhd-accent); border-radius: 0;
	background: var(--kbhd-accent); color: #fff; font: inherit; line-height: 1.2; cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.kbhd__button:hover { background: #3d3da6; border-color: #3d3da6; color: #fff; }
.kbhd__button[disabled] { opacity: .7; cursor: progress; }
.kbhd__arrow { flex: 0 0 auto; }

/* Honigtopf: aus dem Sichtbereich, aber nicht display:none. */
.kbhd__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kbhd__success { padding: 8px 0; }
.kbhd__success:focus { outline: none; }
.kbhd__fallback { text-decoration: underline; }

/* Titelbild auf Tablet und Handy ausblenden (Elementor-Standard: Tablet bis 1024 px). */
@media (max-width: 1024px) {
	.kbhd--has-image .kbhd__media { display: none !important; }
}
@media (max-width: 767px) {
	.kbhd { flex-direction: column; }
	.kbhd--has-image .kbhd__media { flex: 0 0 auto !important; max-width: none !important; max-height: 320px; }
	.kbhd__body { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.kbhd__button { transition: none; }
}
