/*
 * Seitenspezifische Ergänzungen der Baumarten-Übersicht (archive-baumart.php)
 * und -Detailseite (single-baumart.php) – nur dort geladen (siehe
 * functions.php). Die eigentlichen Komponenten (Baumart-Kachel,
 * Zeichenerklärung) stehen in components/baumart-card.css.
 */

.baumarten-intro {
	margin-top: 0;
	font-size: 14px;
	color: var(--ink);
	max-width: 640px;
}

/* "Schon gewusst?" - dekoratives großes Blatt unten rechts. */
.baumarten-fact {
	position: relative;
	overflow: hidden;
	padding: 26px 26px 60px;
	min-height: 220px;
}

.baumarten-fact p {
	margin-top: 16px;
	font-size: 14px;
	color: var(--ink);
	max-width: 260px;
	position: relative;
	z-index: 1;
}

.baumarten-fact-deco {
	position: absolute;
	right: -14px;
	bottom: -18px;
	color: var(--green3);
	opacity: .55;
	transform: rotate(-25deg);
}

.baumarten-fact-deco svg {
	width: 130px;
	height: 130px;
}

/* Überschrift links, Filter-Tabs rechts in einer Zeile. */
.baumarten-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}

.baumarten-head .filter-tabs {
	margin: 0;
}

.baumarten-head .headline-forest {
	margin: 0;
}

/* Zwei .newsletter-banner nebeneinander ("Warum Vielfalt" + "Mitmachen").
   Statt Icon+Text+Foto stehen hier nur zwei Spalten: Text + Foto bzw.
   Text + Icon-Kreis. */
.baumarten-teasers {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 18px;
}

.baumarten-teasers .newsletter-banner {
	grid-template-columns: 1fr auto;
	background: var(--cream);
}

.baumarten-teasers .newsletter-banner-photo {
	width: 190px;
}

.baumarten-teasers .newsletter-banner-text p {
	font-size: 13px;
}

/* Detailseite */
.baumart-detail {
	gap: 28px;
	align-items: stretch;
}

.baumart-detail-title {
	font-family: var(--font-serif);
	font-size: 28px;
	margin: 0;
}

.baumart-detail .baumart-latein {
	font-size: 14px;
	margin-top: 4px;
}

.baumart-detail-teaser {
	margin-top: 16px;
	font-size: 15px;
	color: var(--ink);
}

/* Steckbrief (Art/Wurzelsystem/Lichtbedarf/Herkunft) als zweispaltige
   Label-Wert-Liste. */
.baumart-steckbrief {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 18px;
	margin: 0;
	font-size: 14px;
}

.baumart-steckbrief dt {
	color: var(--muted);
}

.baumart-steckbrief dd {
	margin: 0;
	font-weight: 600;
	color: var(--ink);
}

/* Bilder-Spalte: Karussell (.photo-gallery) + Bildnachweise darunter. */
.baumart-bilder {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.baumart-bilder .photo-gallery {
	flex: 1;
	min-height: 380px;
}

.baumart-bildnachweis {
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--muted);
}

.baumart-bildnachweis a {
	color: inherit;
	text-decoration: underline;
}

/* Langtext + Infobox "So erkennst du …" */
.baumart-detail-unten {
	margin-top: 36px;
}

.baumart-erkennen .panel-head h2 {
	font-size: 20px;
}

.baumart-merkmale {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
	color: var(--ink);
}

.baumart-merkmale li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	line-height: 1.5;
}

.baumart-merkmale svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 3px;
	color: var(--green);
}

.baumart-verwechslung {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.baumart-verwechslung dt {
	font-weight: 700;
	color: var(--ink);
}

.baumart-verwechslung dd {
	margin: 2px 0 12px;
	color: var(--ink);
}

.baumart-verwechslung dd:last-child {
	margin-bottom: 0;
}

/* Breakpoint 900px – siehe CLAUDE.md Abschnitt 11.3 */
@media (max-width: 900px) {
	.baumarten-teasers {
		grid-template-columns: 1fr;
	}

	.baumarten-teasers .newsletter-banner {
		grid-template-columns: 1fr;
	}

	.baumarten-teasers .newsletter-banner-photo {
		width: 100%;
	}

	.baumarten-teasers .newsletter-banner-icon {
		order: -1;
	}

	.baumart-detail {
		grid-template-columns: 1fr;
	}

	.baumart-bilder .photo-gallery {
		min-height: 300px;
	}
}
