/**
 * Hundekrankheiten-Lexikon
 *
 * Ausschließlich für category-hundekrankheiten.php.
 */


/* =========================================================
   GRUNDLAGEN
   ========================================================= */

.ha-disease-library {
	--ha-disease-dark: #2f4032;
	--ha-disease-accent: #5c704a;
	--ha-disease-accent-hover: #435638;
	--ha-disease-soft: #edf2e8;
	--ha-disease-soft-strong: #e2eadc;
	--ha-disease-border: #d8e0d2;
	--ha-disease-muted: #687165;
	--ha-disease-white: #ffffff;
	--ha-disease-shadow: 0 8px 24px rgba(43, 56, 37, 0.08);
	--ha-disease-shadow-hover: 0 14px 30px rgba(43, 56, 37, 0.14);

	width: 100%;
	color: var(--ha-disease-dark);
}


/* =========================================================
   EINLEITUNG
   ========================================================= */

.ha-disease-intro {
	margin: 0 0 28px;
	padding: 28px 30px;
	border: 1px solid var(--ha-disease-border);
	border-radius: 20px;
	background:
		linear-gradient(
			135deg,
			#f3f7ef 0%,
			#ffffff 62%,
			#f7f9f5 100%
		);
}

.ha-disease-intro__eyebrow {
	margin: 0 0 8px;
	color: var(--ha-disease-accent);
	font-size: 0.76rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.085em;
	text-transform: uppercase;
}

.ha-disease-intro__title {
	max-width: 840px;
	margin: 0 0 12px;
	color: var(--ha-disease-dark);
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.ha-disease-intro__description {
	max-width: 820px;
	margin: 0;
	color: var(--ha-disease-muted);
	font-size: 1.04rem;
	line-height: 1.65;
}


/* =========================================================
   SUCHBEREICH
   ========================================================= */

.ha-disease-search-panel {
	margin: 0 0 22px;
	padding: 22px;
	border: 1px solid var(--ha-disease-border);
	border-radius: 18px;
	background: var(--ha-disease-white);
	box-shadow: var(--ha-disease-shadow);
}

.ha-disease-search-panel__label {
	display: block;
	margin: 0 0 9px;
	color: var(--ha-disease-dark);
	font-size: 1rem;
	font-weight: 750;
	line-height: 1.4;
}

.ha-disease-search-panel__hint {
	margin: 0 0 14px;
	color: var(--ha-disease-muted);
	font-size: 0.91rem;
	line-height: 1.55;
}

.ha-disease-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.ha-disease-search::before {
	position: absolute;
	top: 50%;
	left: 17px;
	z-index: 2;
	width: 18px;
	height: 18px;
	border: 2px solid var(--ha-disease-accent);
	border-radius: 50%;
	content: "";
	transform: translateY(-55%);
	pointer-events: none;
}

.ha-disease-search::after {
	position: absolute;
	top: calc(50% + 6px);
	left: 31px;
	z-index: 2;
	width: 8px;
	height: 2px;
	border-radius: 999px;
	background: var(--ha-disease-accent);
	content: "";
	transform: rotate(45deg);
	transform-origin: left center;
	pointer-events: none;
}

.ha-disease-search__input {
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 13px 112px 13px 50px;
	border: 2px solid var(--ha-disease-border);
	border-radius: 13px;
	background: #ffffff;
	color: var(--ha-disease-dark);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease;
}

.ha-disease-search__input::placeholder {
	color: #8a9286;
	opacity: 1;
}

.ha-disease-search__input:hover {
	border-color: #b8c5af;
}

.ha-disease-search__input:focus {
	border-color: var(--ha-disease-accent);
	outline: 0;
	box-shadow: 0 0 0 4px rgba(92, 112, 74, 0.14);
}

.ha-disease-search__clear {
	position: absolute;
	top: 50%;
	right: 8px;
	z-index: 3;
	min-height: 40px;
	margin: 0;
	padding: 8px 13px;
	border: 0;
	border-radius: 9px;
	background: var(--ha-disease-soft);
	color: var(--ha-disease-accent-hover);
	font: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transform: translateY(-50%);
	transition:
		background-color 160ms ease,
		color 160ms ease;
}

.ha-disease-search__clear:hover {
	background: var(--ha-disease-soft-strong);
	color: var(--ha-disease-dark);
}

.ha-disease-search__clear:focus-visible {
	outline: 3px solid rgba(92, 112, 74, 0.28);
	outline-offset: 2px;
}

.ha-disease-search__clear[hidden] {
	display: none;
}


/* =========================================================
   A–Z-NAVIGATION
   ========================================================= */

.ha-disease-alphabet-section {
	margin: 0 0 22px;
	padding: 19px 20px 20px;
	border: 1px solid var(--ha-disease-border);
	border-radius: 17px;
	background: var(--ha-disease-soft);
}

.ha-disease-alphabet-section__title {
	margin: 0 0 12px;
	color: var(--ha-disease-dark);
	font-size: 0.88rem;
	font-weight: 750;
	line-height: 1.4;
}

.ha-disease-alphabet {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.ha-disease-letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	margin: 0;
	padding: 7px 9px;
	border: 1px solid #cdd8c6;
	border-radius: 10px;
	background: #ffffff;
	color: var(--ha-disease-dark);
	font: inherit;
	font-size: 0.86rem;
	font-weight: 750;
	line-height: 1;
	cursor: pointer;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.ha-disease-letter:hover:not(:disabled) {
	border-color: var(--ha-disease-accent);
	background: #f8faf6;
	color: var(--ha-disease-accent-hover);
	transform: translateY(-1px);
}

.ha-disease-letter:focus-visible {
	outline: 3px solid rgba(92, 112, 74, 0.25);
	outline-offset: 2px;
}

.ha-disease-letter.is-active {
	border-color: var(--ha-disease-accent);
	background: var(--ha-disease-accent);
	color: #ffffff;
}

.ha-disease-letter:disabled {
	border-color: #dde3d9;
	background: rgba(255, 255, 255, 0.55);
	color: #abb1a7;
	cursor: default;
	opacity: 0.72;
}


/* =========================================================
   TREFFERZAHL
   ========================================================= */

.ha-disease-results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 15px;
}

.ha-disease-result-count {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	margin: 0;
	padding: 6px 11px;
	border-radius: 999px;
	background: var(--ha-disease-soft);
	color: var(--ha-disease-accent-hover);
	font-size: 0.83rem;
	font-weight: 750;
	line-height: 1.3;
}


/* =========================================================
   LEXIKONRASTER
   ========================================================= */

.ha-disease-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	width: 100%;
}

.ha-disease-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 100%;
	overflow: hidden;
	border: 1px solid var(--ha-disease-border);
	border-radius: 15px;
	background: var(--ha-disease-white);
	box-shadow: var(--ha-disease-shadow);
	transition:
		border-color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}

.ha-disease-card:hover {
	border-color: #aebca4;
	box-shadow: var(--ha-disease-shadow-hover);
	transform: translateY(-3px);
}

.ha-disease-card[hidden] {
	display: none !important;
}

.ha-disease-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 19px 19px 20px;
}

.ha-disease-card__letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-width: 30px;
	height: 30px;
	margin: 0 0 13px;
	padding: 0 8px;
	border-radius: 9px;
	background: var(--ha-disease-soft);
	color: var(--ha-disease-accent-hover);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
}

.ha-disease-card__title {
	margin: 0 0 10px;
	color: var(--ha-disease-dark);
	font-size: 1.08rem;
	font-weight: 720;
	line-height: 1.32;
	overflow-wrap: anywhere;
}

.ha-disease-card__title a {
	color: inherit;
	text-decoration: none;
}

.ha-disease-card__title a:hover {
	color: var(--ha-disease-accent-hover);
}

.ha-disease-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 16px;
	color: var(--ha-disease-muted);
	font-size: 0.9rem;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

.ha-disease-card__excerpt p {
	margin: 0;
}

.ha-disease-card__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-top: auto;
	color: var(--ha-disease-accent-hover);
	font-size: 0.86rem;
	font-weight: 750;
	line-height: 1.3;
	text-decoration: none;
}

.ha-disease-card__more::after {
	margin-left: 6px;
	content: "→";
	transition: transform 160ms ease;
}

.ha-disease-card__more:hover::after {
	transform: translateX(3px);
}

.ha-disease-card__more:focus-visible {
	outline: 3px solid rgba(92, 112, 74, 0.25);
	outline-offset: 3px;
	border-radius: 3px;
}


/* =========================================================
   KEINE TREFFER
   ========================================================= */

.ha-disease-empty {
	margin: 22px 0 0;
	padding: 28px 24px;
	border: 1px dashed #b8c5af;
	border-radius: 16px;
	background: #f7f9f5;
	text-align: center;
}

.ha-disease-empty[hidden] {
	display: none;
}

.ha-disease-empty__title {
	margin: 0 0 7px;
	color: var(--ha-disease-dark);
	font-size: 1.2rem;
	font-weight: 720;
	line-height: 1.35;
}

.ha-disease-empty__text {
	margin: 0;
	color: var(--ha-disease-muted);
	font-size: 0.94rem;
	line-height: 1.55;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

	.ha-disease-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 680px) {

	.ha-disease-intro {
		padding: 23px 20px 24px;
		border-radius: 16px;
	}

	.ha-disease-intro__title {
		font-size: 2rem;
	}

	.ha-disease-search-panel {
		padding: 18px;
		border-radius: 15px;
	}

	.ha-disease-search__input {
		min-height: 54px;
		padding-right: 48px;
	}

	.ha-disease-search__clear {
		width: 38px;
		min-width: 38px;
		padding: 0;
		overflow: hidden;
		color: transparent;
	}

	.ha-disease-search__clear::before,
	.ha-disease-search__clear::after {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 15px;
		height: 2px;
		border-radius: 999px;
		background: var(--ha-disease-accent-hover);
		content: "";
	}

	.ha-disease-search__clear::before {
		transform: translate(-50%, -50%) rotate(45deg);
	}

	.ha-disease-search__clear::after {
		transform: translate(-50%, -50%) rotate(-45deg);
	}

	.ha-disease-alphabet-section {
		padding: 16px;
	}

	.ha-disease-alphabet {
		flex-wrap: nowrap;
		margin-right: -16px;
		padding-right: 16px;
		padding-bottom: 5px;
		overflow-x: auto;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.ha-disease-letter {
		flex: 0 0 auto;
	}

	.ha-disease-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 15px;
	}

	.ha-disease-card:hover {
		transform: none;
	}

}


/* =========================================================
   REDUZIERTE BEWEGUNG
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	.ha-disease-card,
	.ha-disease-letter,
	.ha-disease-card__more::after {
		transition: none;
	}

	.ha-disease-card:hover,
	.ha-disease-letter:hover {
		transform: none;
	}

}
