/**
 * Johnny Depp Kategorie — CTA, Lead-Formular, Combobox.
 */

/* -- Kategorie-Intro (Teaser + Weiterlesen-Accordion) -------------------- */

/* .term-description hat von Enfold eine engere max-width als das Produktgitter. */
.term-description { max-width: none !important; width: 100% !important; }
.bf-jd-intro { margin-bottom: 30px; width: 100%; }
.bf-jd-intro__lead { margin-bottom: 0; }
.bf-jd-intro__lead p { font-size: 1.08em; line-height: 1.55; margin-bottom: 12px; max-width: none !important; }
.bf-jd-intro__lead p:last-child { margin-bottom: 0; }
.bf-jd-intro__toggle {
	display: inline-block !important;
	margin-top: 14px;
	padding: 4px 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid currentColor !important;
	color: var(--enfold-main-color-button-border) !important;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	white-space: nowrap;
}
.bf-jd-intro__toggle:hover,
.bf-jd-intro__toggle:focus { filter: brightness(0.82); outline: none; text-decoration: none !important; }
.bf-jd-intro__toggle-label { display: inline; }
.bf-jd-intro__toggle::after { content: " \203A"; display: inline-block; margin-left: 4px; transition: transform 0.15s ease; }
.bf-jd-intro.is-expanded .bf-jd-intro__toggle::after { transform: rotate(90deg); }
.bf-jd-intro__toggle-label--hide { display: none; }
.bf-jd-intro.is-expanded .bf-jd-intro__toggle-label--show { display: none; }
.bf-jd-intro.is-expanded .bf-jd-intro__toggle-label--hide { display: inline; }
/* Sichtbarkeit per Klasse, nicht via [hidden] — überlebt wp_kses_post. */
.bf-jd-intro__full { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eaeaea; }
.bf-jd-intro.is-expanded .bf-jd-intro__full { display: block; }


/* -- CTA-Banner ----------------------------------------------------------- */

.bf-jd-cta { margin: 40px 0; padding: 35px 20px; }
.bf-jd-cta--top { background: #f7f7f7; border: 1px solid #eaeaea; }
.bf-jd-cta--bottom { border-top: 1px solid #eaeaea; margin-top: 60px; padding-top: 50px; }
.bf-jd-cta__inner { max-width: 920px; margin: 0 auto; text-align: center; }
.bf-jd-cta__heading { margin: 0 0 12px; font-family: 'poppins', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 400; }
.bf-jd-cta__text { max-width: 640px; margin: 0 auto 25px; }
.bf-jd-cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 10px; }
.bf-jd-cta__buttons .avia-button { margin: 0 !important; }
.bf-jd-cta__buttons .avia-button.avia-color-light,
.bf-jd-cta__buttons .avia-button.avia-color-light .avia_iconbox_title {
	color: var(--enfold-main-color-button-border) !important;
	border-color: var(--enfold-main-color-button-border) !important;
}

/* -- Inline Lead-Formular ------------------------------------------------- */

.bf-jd-cta__form { margin-top: 30px; text-align: left; }
.bf-jd-cta__form[hidden] { display: none; }
.bf-jd-form__row { display: flex; gap: 15px; }
.bf-jd-form__row > .bf-jd-form__field { flex: 1 1 0; }
.bf-jd-form__field { display: block; margin-bottom: 15px; }
.bf-jd-form__label { display: block; font-weight: 600; font-size: 0.9em; margin-bottom: 6px; }
.bf-jd-form input[type="text"],
.bf-jd-form input[type="email"],
.bf-jd-form input[type="tel"],
.bf-jd-form select,
.bf-jd-form textarea {
	display: block !important;
	width: 100% !important;
	padding: 10px 12px !important;
	border: 1px solid #d0d0d0 !important;
	background: #fff !important;
	color: inherit !important;
	font: inherit !important;
	box-sizing: border-box !important;
	min-height: 44px;
}
.bf-jd-form textarea { min-height: 120px !important; resize: vertical; }
.bf-jd-form__consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; font-size: 0.9em; }
.bf-jd-form__consent input[type="checkbox"] { margin-top: 4px; flex-shrink: 0; }
.bf-jd-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bf-jd-form button[type="submit"] { margin: 0 !important; }
.bf-jd-form button[type="submit"][disabled] { opacity: 0.5; cursor: not-allowed; }
.bf-jd-form__status { margin-top: 15px; padding: 12px 15px; border-radius: 2px; display: none; text-align: center; }
.bf-jd-form__status.is-visible { display: block; }
.bf-jd-form__status--error { background: #fdecea; color: #8a2a2a; }
.bf-jd-form__status--success { background: #eef7ee; color: #1e5d26; }

/* -- Custom Combobox ------------------------------------------------------ */
/* Native <select> bleibt versteckt im DOM; JS baut die sichtbare Listbox drumherum. */
.bf-jd-form .bf-jd-combobox__native { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; min-height: 0 !important; }
.bf-jd-combobox { position: relative; }
.bf-jd-combobox__button {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 10px 38px 10px 12px;
	border: 1px solid #d0d0d0;
	background: #fff;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	box-sizing: border-box;
	position: relative;
	border-radius: 0;
}
.bf-jd-combobox__button::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 10px;
	height: 6px;
	margin-top: -3px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M5 6L0 0h10z'/%3E%3C/svg%3E") no-repeat center / contain;
	        mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M5 6L0 0h10z'/%3E%3C/svg%3E") no-repeat center / contain;
	opacity: 0.7;
	transition: transform 0.15s ease;
}
.bf-jd-combobox__button[aria-expanded="true"]::after { transform: rotate(180deg); }
.bf-jd-combobox__button:focus { outline: none; border-color: var(--enfold-main-color-button-border); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06); }
.bf-jd-combobox__value.is-placeholder { color: #888; }
.bf-jd-combobox__panel {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 280px;
	overflow-y: auto;
	margin: 0 !important;
	padding: 4px 0 !important;
	list-style: none !important;
	background: #fff;
	border: 1px solid #d0d0d0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	z-index: 50;
}
.bf-jd-combobox__panel[hidden] { display: none; }
.bf-jd-combobox__option {
	padding: 10px 14px !important;
	margin: 0 !important;
	cursor: pointer;
	font: inherit;
	color: inherit;
	line-height: 1.3;
	list-style: none !important;
}
.bf-jd-combobox__option::before,
.bf-jd-combobox__option::marker { content: none !important; display: none !important; }
.bf-jd-combobox__option.is-active { background: #f0f0f0; }
.bf-jd-combobox__option[aria-selected="true"] { background: var(--enfold-main-color-button-border); color: #fff; }
.bf-jd-combobox__option[aria-selected="true"].is-active { filter: brightness(0.92); }

/* -- Responsive ----------------------------------------------------------- */

@media (max-width: 640px) {
	.bf-jd-cta__buttons { flex-direction: column; align-items: stretch; }
	.bf-jd-cta__buttons .avia-button { width: 100%; }
	.bf-jd-form__row { flex-direction: column; gap: 0; }
}
