/* =========================================================
   TreeQuest Baumarten-Profil
   Datei: assets/css/tq-species-page.css
   ========================================================= */

html {
	scroll-behavior: smooth;
}

body.tq-species-page {
	background: #f4f8ef;
}

.tq-species-single {
	--tq-species-wide-width: 1380px;
	--tq-species-content-width: 1380px;

	background:
		radial-gradient(circle at top left, rgba(122, 184, 108, 0.16), transparent 34%),
		linear-gradient(180deg, #f7fbf3 0%, #eef6ea 100%);
	color: #17351f;
	padding: 28px 20px 72px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tq-species-single * {
	box-sizing: border-box;
}

.tq-species-single a {
	text-decoration: none;
}

/* =========================================================
   Galerie
   ========================================================= */

.tq-species-gallery {
	width: 100%;
	max-width: var(--tq-species-wide-width);
	margin: 0 auto 18px;
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
	gap: 12px;
	align-items: stretch;
}

.tq-gallery-main,
.tq-gallery-thumb {
	position: relative;
	overflow: hidden;
	display: block;
	background: #dfeee1;
	border-radius: 24px;
	box-shadow: 0 18px 42px rgba(22, 58, 39, 0.12);
	cursor: zoom-in;
}

.tq-gallery-main {
	height: clamp(360px, 36vw, 500px);
	min-height: 0;
}

.tq-gallery-main-full {
	height: clamp(390px, 38vw, 540px);
	min-height: 0;
}

.tq-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 12px;
	height: clamp(360px, 36vw, 500px);
	min-height: 0;
}

.tq-gallery-thumb {
	min-height: 0;
}

.tq-gallery-main img,
.tq-gallery-thumb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.35s ease, filter 0.35s ease;
}

.tq-gallery-main:hover img,
.tq-gallery-thumb:hover img {
	transform: scale(1.035);
	filter: brightness(0.94);
}

.tq-gallery-zoom {
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #17351f;
	font-size: 16px;
	box-shadow: 0 10px 24px rgba(22, 58, 39, 0.18);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.tq-gallery-main:hover .tq-gallery-zoom,
.tq-gallery-thumb:hover .tq-gallery-zoom {
	opacity: 1;
	transform: translateY(0);
}

/* =========================================================
   Galerie Lightbox
   ========================================================= */

body.tq-lightbox-open {
	overflow: hidden;
}

.tq-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 34px;
	background: rgba(8, 22, 12, 0.86);
	backdrop-filter: blur(8px);
}

.tq-lightbox.is-open {
	display: flex;
}

.tq-lightbox-stage {
	position: relative;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: calc(100vw - 140px);
}

.tq-lightbox-stage img {
	width: auto;
	height: auto;
	max-width: calc(100vw - 140px);
	max-height: calc(100vh - 120px);
	object-fit: contain;
	display: block;
	margin: 0 auto;
	border-radius: 24px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
	background: transparent;
}

.tq-lightbox-stage figcaption {
	width: 100%;
	max-width: calc(100vw - 140px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 12px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
}

.tq-lightbox-title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tq-lightbox-counter {
	opacity: 0.82;
}

.tq-lightbox-close,
.tq-lightbox-prev,
.tq-lightbox-next {
	position: fixed;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: #14351d;
	cursor: pointer;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 700;
	text-align: center;
}

.tq-lightbox-close {
	top: 22px;
	right: 22px;
	width: 46px;
	height: 46px;
	font-size: 34px;
	line-height: 1;
}

.tq-lightbox-prev,
.tq-lightbox-next {
	top: 50%;
	width: 68px;
	height: 68px;
	transform: translateY(-50%);
	font-size: 0;
	line-height: 1;
}

.tq-lightbox-prev::before,
.tq-lightbox-next::before {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	color: #14351d;
	text-align: center;
}

.tq-lightbox-prev::before {
	content: "‹";
	transform: translateX(-1px);
}

.tq-lightbox-next::before {
	content: "›";
	transform: translateX(1px);
}

.tq-lightbox-prev {
	left: 24px;
}

.tq-lightbox-next {
	right: 24px;
}

.tq-lightbox-close:hover,
.tq-lightbox-prev:hover,
.tq-lightbox-next:hover {
	background: #ffffff;
	color: #236b3a;
}

.tq-lightbox-prev:hover::before,
.tq-lightbox-next:hover::before {
	color: #236b3a;
}

/* =========================================================
   Baumkopf
   ========================================================= */

.tq-species-header {
	width: 100%;
	max-width: var(--tq-species-wide-width);
	margin: 0 auto 24px;
	padding: 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(42, 92, 55, 0.08);
	border-radius: 30px;
	box-shadow: 0 18px 50px rgba(22, 58, 39, 0.10);
	backdrop-filter: blur(12px);
}

.tq-species-header-main {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	min-width: 0;
}

.tq-species-icon {
	width: 68px;
	height: 68px;
	flex: 0 0 68px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 24px;
	background: linear-gradient(145deg, #e6f6df, #fff4fa);
	font-size: 34px;
	box-shadow: inset 0 0 0 1px rgba(55, 127, 73, 0.10);
}

.tq-species-kicker,
.tq-section-kicker {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #2f7d4b;
}

.tq-species-header h1 {
	margin: 0;
	font-size: clamp(34px, 5vw, 50px);
	line-height: 1.02;
	color: #14351d;
	letter-spacing: -0.045em;
}

.tq-species-latin {
	margin: 8px 0 12px;
	font-size: 22px;
	font-style: italic;
	color: #607263;
}

.tq-species-tagline {
	max-width: 760px;
	margin: 0 0 16px;
	font-size: 18px;
	line-height: 1.55;
	color: #3f513f;
	padding-top: 10px;
}

.tq-tagline-more {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	color: #236b3a;
	font-weight: 900;
	text-decoration: none;
	white-space: nowrap;
}

.tq-tagline-more::after {
	content: " ↓";
	font-weight: 900;
}

.tq-tagline-more:hover {
	color: #0f5f2f;
	text-decoration: underline;
}

.tq-species-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tq-species-chips span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #edf7e9;
	color: #25492d;
	font-size: 13px;
	font-weight: 750;
	border: 1px solid rgba(47, 125, 75, 0.12);
}

.tq-species-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 210px;
}

.tq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 850;
	border: 1px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tq-btn:hover {
	transform: translateY(-1px);
}

.tq-btn-primary {
	background: #236b3a;
	color: #ffffff;
	box-shadow: 0 12px 22px rgba(35, 107, 58, 0.24);
}

.tq-btn-soft {
	background: #dff1d8;
	color: #214b2c;
}

.tq-btn-outline {
	background: #ffffff;
	color: #214b2c;
	border-color: rgba(35, 107, 58, 0.22);
}

/* =========================================================
   Kartenbereich
   ========================================================= */

.tq-map-section {
	width: 100%;
	max-width: var(--tq-species-wide-width);
	margin: 0 auto 28px;
	padding: 28px;
	background: #ffffff;
	border-radius: 32px;
	border: 1px solid rgba(42, 92, 55, 0.08);
	box-shadow: 0 18px 50px rgba(22, 58, 39, 0.10);
}

.tq-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}

.tq-section-heading h2 {
	margin: 0;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.08;
	letter-spacing: -0.035em;
	color: #14351d;
}

.tq-section-heading p {
	max-width: 760px;
	margin: 8px 0 0;
	font-size: 16px;
	line-height: 1.55;
	color: #596a5b;
}

.tq-map-count {
	min-width: 96px;
	padding: 12px 16px;
	border-radius: 22px;
	background: #f0f8ec;
	text-align: center;
	border: 1px solid rgba(47, 125, 75, 0.12);
}

.tq-map-count span {
	display: block;
	font-size: 28px;
	font-weight: 900;
	color: #236b3a;
	line-height: 1;
}

.tq-map-count small {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 800;
	color: #607263;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.tq-map-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.tq-filter-btn {
	appearance: none;
	border: 1px solid rgba(47, 125, 75, 0.16);
	background: #f7fbf3;
	color: #25492d;
	padding: 10px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tq-filter-btn:hover {
	transform: translateY(-1px);
	background: #edf7e9;
}

.tq-filter-btn.is-active {
	background: #236b3a;
	color: #ffffff;
	border-color: #236b3a;
}

/* =========================================================
   Map Shell + Fly-in
   ========================================================= */

.tq-map-shell {
	position: relative;
	display: grid;
	grid-template-columns: 0 minmax(0, 1fr);
	gap: 0;
	min-height: 820px !important;
	overflow: hidden;
	border-radius: 28px;
	background: #e7efe5;
	border: 1px solid rgba(42, 92, 55, 0.10);
	transition: grid-template-columns 0.28s ease, gap 0.28s ease;
}

.tq-map-shell[data-flyin-open="true"] {
	grid-template-columns: 430px minmax(0, 1fr);
	gap: 14px;
	padding: 14px;
}

.tq-tree-flyin {
	position: relative;
	z-index: 20;
	min-width: 0;
	height: 100%;
	max-height: 792px;
	overflow: auto;
	padding: 18px;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 24px;
	box-shadow: 0 18px 50px rgba(22, 58, 39, 0.18);
	transform: translateX(-105%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.28s ease, opacity 0.18s ease;
}

.tq-map-shell[data-flyin-open="true"] .tq-tree-flyin {
	transform: translateX(0);
	opacity: 1;
	pointer-events: auto;
}

.tq-flyin-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: #edf3ea;
	color: #23472c;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.tq-flyin-kicker {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #2f7d4b;
}

.tq-flyin-head h3 {
	margin: 0;
	padding-right: 42px;
	font-size: 28px;
	line-height: 1.1;
	color: #14351d;
	letter-spacing: -0.03em;
}

.tq-flyin-code {
	margin: 6px 0 10px;
	color: #667366;
	font-size: 13px;
	font-weight: 800;
}

.tq-flyin-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.tq-flyin-badges span {
	display: inline-flex;
	padding: 7px 10px;
	border-radius: 999px;
	background: #f2f6ef;
	color: #28492f;
	font-size: 12px;
	font-weight: 850;
	border: 1px solid rgba(47, 125, 75, 0.12);
}

.tq-flyin-location {
	margin: 0 0 14px;
	color: #415441;
	font-size: 14px;
	font-weight: 750;
}

.tq-flyin-card {
	margin-top: 12px;
	padding: 15px;
	border-radius: 20px;
	background: #f8fbf6;
	border: 1px solid rgba(47, 125, 75, 0.10);
}

.tq-card-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	font-weight: 900;
	color: #17351f;
}

.tq-card-title small {
	color: #6c7a6c;
	font-size: 12px;
	font-weight: 800;
}

.tq-weather-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: 10px 0;
}

.tq-weather-grid span {
	padding: 8px;
	text-align: center;
	background: #ffffff;
	border-radius: 14px;
	font-size: 12px;
	font-weight: 800;
	color: #2d4f34;
}

.tq-weather-card p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #4a5b4d;
}

/* =========================================================
   Klima im Fly-in
   ========================================================= */

.tq-accordion-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #17351f;
	font-size: 15px;
	font-weight: 900;
	cursor: pointer;
}

.tq-accordion-icon {
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #e8f2e3;
	color: #236b3a;
	font-weight: 900;
}

.tq-accordion-content {
	display: none;
	padding-top: 12px;
}

.tq-climate-card.is-open .tq-accordion-content {
	display: block;
}

.tq-year-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.tq-year-tabs span,
.tq-year-tabs button {
	appearance: none;
	border: 1px solid rgba(47, 125, 75, 0.14);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 7px 12px;
	border-radius: 999px;
	background: #ffffff;
	color: #36563b;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(22, 58, 39, 0.04);
}

.tq-year-tabs span.is-active,
.tq-year-tabs button.is-active {
	background: #236b3a;
	color: #ffffff;
	border-color: #236b3a;
}

.tq-climate-loading {
	padding: 12px;
	border-radius: 16px;
	background: #ffffff;
	color: #536353;
	font-size: 13px;
	line-height: 1.5;
	border: 1px solid rgba(47, 125, 75, 0.10);
}

.tq-climate-error {
	color: #7a2e2e;
	background: #fff5f1;
	border-color: rgba(180, 65, 40, 0.18);
}

.tq-climate-location {
	margin: 0 0 10px;
	color: #35543b;
	font-size: 13px;
	font-weight: 800;
}

.tq-climate-location small {
	display: block;
	margin-top: 3px;
	color: #6f7b70;
	font-size: 11px;
	font-weight: 700;
}

.tq-climate-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 8px;
	color: #607263;
	font-size: 11px;
	font-weight: 850;
}

.tq-climate-legend span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.tq-climate-legend i {
	width: 10px;
	height: 10px;
	display: inline-block;
	border-radius: 999px;
}

.tq-legend-temp {
	background: #2f7d4b;
}

.tq-legend-sun {
	background: #ee8f25;
}

.tq-mini-chart {
	height: 112px;
	display: flex;
	align-items: flex-end;
	gap: 6px;
	padding: 12px;
	border-radius: 16px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.48)),
		repeating-linear-gradient(0deg, rgba(35, 107, 58, 0.07) 0, rgba(35, 107, 58, 0.07) 1px, transparent 1px, transparent 24px);
	border: 1px solid rgba(47, 125, 75, 0.08);
}

.tq-mini-chart > span {
	flex: 1;
	min-width: 8px;
	border-radius: 999px 999px 4px 4px;
	background: linear-gradient(180deg, #84b86f, #2f7d4b);
}

.tq-mini-chart-split {
	height: 122px;
	align-items: stretch;
	gap: 6px;
	padding: 12px 10px 8px;
}

.tq-climate-month {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	gap: 4px;
}

.tq-climate-month-bars {
	flex: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 2px;
	min-height: 76px;
}

.tq-climate-bar {
	display: block;
	width: 9px;
	min-height: 4px;
	border-radius: 999px 999px 4px 4px;
}

.tq-climate-bar-temp {
	background: linear-gradient(180deg, #82b96f, #2f7d4b);
}

.tq-climate-bar-sun {
	background: linear-gradient(180deg, #ffc56b, #ee8f25);
}

.tq-climate-month small {
	display: block;
	text-align: center;
	font-size: 10px;
	font-weight: 800;
	color: #6f7b70;
	line-height: 1;
}

.tq-climate-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 10px;
}

.tq-climate-stats div {
	padding: 10px;
	border-radius: 14px;
	background: #ffffff;
	text-align: center;
}

.tq-climate-stats strong {
	display: block;
	color: #17351f;
	font-size: 15px;
	line-height: 1.1;
}

.tq-climate-stats small {
	display: block;
	margin-top: 4px;
	color: #6a776a;
	font-size: 10px;
	font-weight: 800;
}

.tq-climate-source {
	margin-top: 9px;
	color: #607263;
	font-size: 11px;
	font-weight: 750;
}

/* =========================================================
   Route / Navigation im Fly-in
   ========================================================= */

.tq-route-card {
	transition: background 0.2s ease, border-color 0.2s ease;
}

.tq-route-modes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 10px;
}

.tq-route-modes button,
.tq-route-start {
	appearance: none;
	border: 1px solid rgba(47, 125, 75, 0.14);
	border-radius: 999px;
	padding: 9px 10px;
	background: #ffffff;
	color: #25492d;
	font-size: 12px;
	font-weight: 850;
	cursor: pointer;
}

.tq-route-modes button.is-active {
	background: #236b3a;
	color: #ffffff;
	border-color: #236b3a;
}

.tq-route-start {
	width: 100%;
	min-height: 42px;
	background: #2563eb;
	color: #ffffff;
	border-color: #2563eb;
	font-size: 14px;
	box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.tq-map-shell[data-route-mode="true"] .tq-weather-card,
.tq-map-shell[data-route-mode="true"] .tq-climate-card,
.tq-map-shell[data-route-mode="true"] .tq-flyin-actions {
	display: none;
}

.tq-map-shell[data-route-mode="true"] .tq-route-card {
	background: #ffffff;
	border-color: rgba(37, 99, 235, 0.16);
	box-shadow: 0 18px 44px rgba(37, 99, 235, 0.10);
}

.tq-inline-route-panel {
	margin-top: 12px;
}

.tq-route-nav-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.tq-route-nav-head strong {
	display: block;
	color: #14351d;
	font-size: 18px;
	line-height: 1.15;
}

.tq-route-nav-kicker {
	display: block;
	margin-bottom: 4px;
	color: #2563eb;
	font-size: 11px;
	font-weight: 950;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.tq-route-close {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 8px 12px;
	background: #eef3ff;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
	white-space: nowrap;
}

.tq-route-loading {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border-radius: 18px;
	background: #f5f8ff;
	color: #2b3f68;
	font-size: 13px;
	font-weight: 800;
	border: 1px solid rgba(37, 99, 235, 0.12);
}

.tq-route-loading p {
	margin: 0;
	line-height: 1.45;
}

.tq-route-loading small {
	color: #667699;
	font-weight: 750;
}

.tq-route-spinner {
	width: 22px;
	height: 22px;
	display: inline-block;
	border-radius: 999px;
	border: 3px solid rgba(37, 99, 235, 0.18);
	border-top-color: #2563eb;
	animation: tqRouteSpin 0.8s linear infinite;
}

@keyframes tqRouteSpin {
	to {
		transform: rotate(360deg);
	}
}

.tq-route-error {
	padding: 13px;
	border-radius: 16px;
	background: #fff5f1;
	color: #7a2e2e;
	border: 1px solid rgba(180, 65, 40, 0.18);
	font-size: 13px;
	line-height: 1.5;
	font-weight: 800;
}

.tq-route-summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 10px;
}

.tq-route-summary div {
	padding: 11px 8px;
	border-radius: 16px;
	background: #f5f8ff;
	text-align: center;
	border: 1px solid rgba(37, 99, 235, 0.08);
}

.tq-route-summary strong {
	display: block;
	color: #14351d;
	font-size: 14px;
	line-height: 1.1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tq-route-summary small {
	display: block;
	margin-top: 4px;
	color: #667699;
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.tq-route-demo-note {
	margin-bottom: 10px;
	padding: 10px 12px;
	border-radius: 14px;
	background: #fff7ed;
	color: #9a4d11;
	font-size: 12px;
	font-weight: 850;
	border: 1px solid rgba(234, 139, 45, 0.18);
}

.tq-route-current {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border-radius: 18px;
	background: #153e75;
	color: #ffffff;
	box-shadow: 0 14px 28px rgba(21, 62, 117, 0.18);
	margin-bottom: 10px;
}

.tq-route-current > span {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	font-size: 18px;
	font-weight: 900;
}

.tq-route-current small {
	display: block;
	color: rgba(255, 255, 255, 0.72);
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 3px;
}

.tq-route-current strong {
	display: block;
	font-size: 15px;
	line-height: 1.35;
}

.tq-route-nav-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 12px;
}

.tq-route-nav-actions button {
	appearance: none;
	border: 1px solid rgba(37, 99, 235, 0.14);
	border-radius: 999px;
	padding: 10px 12px;
	background: #f5f8ff;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.tq-route-steps {
	display: grid;
	gap: 8px;
	max-height: 280px;
	overflow: auto;
	padding-right: 2px;
}

.tq-route-steps h4 {
	margin: 0 0 2px;
	color: #14351d;
	font-size: 14px;
	font-weight: 950;
}

.tq-route-step {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 9px;
	padding: 10px;
	border-radius: 15px;
	background: #f8fbff;
	border: 1px solid rgba(37, 99, 235, 0.08);
}

.tq-route-step-icon {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #eaf0ff;
	color: #1d4ed8;
	font-size: 15px;
	font-weight: 900;
}

.tq-route-step strong {
	display: block;
	color: #23324a;
	font-size: 12px;
	line-height: 1.35;
}

.tq-route-step small {
	display: block;
	margin-top: 3px;
	color: #70809f;
	font-size: 11px;
	font-weight: 800;
}

.tq-route-empty {
	margin: 0;
	padding: 10px;
	border-radius: 14px;
	background: #f8fbff;
	color: #667699;
	font-size: 12px;
	font-weight: 800;
}

/* Route-Linie in Leaflet erzwingen */
.tq-map-canvas .tq-route-line,
.tq-leaflet-map .tq-route-line {
	stroke: #2563eb !important;
	stroke-width: 7px !important;
	stroke-opacity: 0.96 !important;
	fill: none !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
	filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.28));
}

.tq-map-canvas .tq-route-line-foot {
	stroke: #2563eb !important;
}

.tq-map-canvas .tq-route-line-bike {
	stroke: #0f8a45 !important;
}

.tq-map-canvas .tq-route-line-car {
	stroke: #e24b3b !important;
}

/* =========================================================
   Fly-in Aktionen
   ========================================================= */

.tq-flyin-actions {
	display: grid;
	gap: 8px;
	margin-top: 12px;
}

.tq-flyin-actions a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-radius: 16px;
	background: #eef7ea;
	color: #214b2c;
	font-size: 13px;
	font-weight: 900;
	border: 1px solid rgba(47, 125, 75, 0.10);
}

.tq-flyin-actions a::after {
	content: "›";
	font-size: 20px;
}

/* =========================================================
   Leaflet / OpenStreetMap
   ========================================================= */

.tq-map-canvas {
	position: relative !important;
	width: 100% !important;
	height: 792px !important;
	min-height: 792px !important;
	overflow: hidden !important;
	background: #dfeadb !important;
	border-radius: 28px !important;
}

.tq-leaflet-map {
	position: relative !important;
	width: 100% !important;
	height: 792px !important;
	min-height: 792px !important;
	display: block !important;
	z-index: 2 !important;
	background: #dfeadb !important;
}

.tq-leaflet-map.leaflet-container {
	width: 100% !important;
	height: 792px !important;
	min-height: 792px !important;
	display: block !important;
	background: #dfeadb !important;
}

.tq-map-shell[data-flyin-open="true"] .tq-map-canvas,
.tq-map-shell[data-flyin-open="true"] .tq-leaflet-map,
.tq-map-shell[data-flyin-open="true"] .tq-leaflet-map.leaflet-container {
	height: 792px !important;
	min-height: 792px !important;
}

.tq-map-shell[data-flyin-open="false"] .tq-map-canvas,
.tq-map-shell[data-flyin-open="false"] .tq-leaflet-map,
.tq-map-shell[data-flyin-open="false"] .tq-leaflet-map.leaflet-container {
	border-radius: 28px !important;
}

.tq-map-shell[data-flyin-open="true"] .tq-map-canvas,
.tq-map-shell[data-flyin-open="true"] .tq-leaflet-map,
.tq-map-shell[data-flyin-open="true"] .tq-leaflet-map.leaflet-container {
	border-radius: 22px !important;
}

.tq-map-canvas .leaflet-control-zoom {
	border: 0;
	box-shadow: 0 10px 28px rgba(22, 58, 39, 0.16);
}

.tq-map-canvas .leaflet-control-zoom a {
	width: 38px;
	height: 38px;
	line-height: 38px;
	border: 0;
	color: #17351f;
	font-weight: 900;
}

.tq-map-canvas .leaflet-control-attribution {
	font-size: 10px;
	background: rgba(255, 255, 255, 0.82);
}

.tq-leaflet-div-icon {
	background: transparent !important;
	border: 0 !important;
}

.tq-leaflet-tree-marker {
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #236b3a;
	color: #ffffff;
	font-size: 22px;
	box-shadow: 0 12px 28px rgba(35, 107, 58, 0.32);
	border: 4px solid #ffffff;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tq-leaflet-tree-marker.is-selected {
	background: #0f5f2f;
	box-shadow: 0 18px 36px rgba(15, 95, 47, 0.38);
	transform: scale(1.08);
}

.tq-leaflet-user-marker {
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: #2563eb;
	border: 4px solid #ffffff;
	box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

.tq-map-layer {
	position: absolute;
	z-index: 999 !important;
	right: 16px;
	top: 16px;
}

.tq-map-layer button {
	min-width: 74px;
	height: 38px;
	border: 0;
	border-radius: 12px;
	background: #ffffff;
	color: #17351f;
	font-size: 13px;
	font-weight: 900;
	box-shadow: 0 8px 22px rgba(22, 58, 39, 0.12);
	cursor: pointer;
}

.tq-map-hint {
	position: absolute;
	z-index: 999 !important;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	max-width: calc(100% - 36px);
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: #33513a;
	font-size: 13px;
	font-weight: 850;
	box-shadow: 0 10px 28px rgba(22, 58, 39, 0.12);
}

/* =========================================================
   Content unten
   ========================================================= */

.tq-content-grid {
	max-width: var(--tq-species-content-width);
	margin: 0 auto 24px;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 18px;
}

.tq-content-card {
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(42, 92, 55, 0.08);
	border-radius: 28px;
	padding: 28px;
	box-shadow: 0 16px 42px rgba(22, 58, 39, 0.08);
}

.tq-content-card-large {
	grid-row: span 2;
}

.tq-content-card h2,
.tq-bottom-card h2 {
	margin: 0 0 14px;
	font-size: 28px;
	line-height: 1.12;
	color: #14351d;
	letter-spacing: -0.025em;
}

.tq-entry-content {
	color: #3f513f;
	font-size: 16px;
	line-height: 1.72;
}

.tq-entry-content p:first-child {
	margin-top: 0;
}

.tq-entry-content p:last-child {
	margin-bottom: 0;
}

.tq-facts-card {
	align-self: start;
}

.tq-fact-accordion {
	display: grid;
	gap: 10px;
}

.tq-fact-group {
	overflow: hidden;
	border-radius: 18px;
	background: #f7fbf3;
	border: 1px solid rgba(47, 125, 75, 0.10);
}

.tq-fact-group-toggle {
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto 28px;
	align-items: center;
	gap: 10px;
	padding: 13px 14px;
	border: 0;
	background: transparent;
	color: #17351f;
	text-align: left;
	cursor: pointer;
}

.tq-fact-group-toggle span {
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tq-fact-group-toggle small {
	color: #6a776a;
	font-size: 11px;
	font-weight: 850;
	white-space: nowrap;
}

.tq-fact-group-toggle i {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #e5f1df;
	color: #236b3a;
	font-style: normal;
	font-weight: 900;
}

.tq-fact-group-toggle i::before {
	content: "+";
}

.tq-fact-group.is-open .tq-fact-group-toggle i::before {
	content: "−";
}

.tq-fact-group-content {
	display: none;
	padding: 0 12px 12px;
}

.tq-fact-group.is-open .tq-fact-group-content {
	display: block;
}

.tq-fact-list {
	display: grid;
	gap: 10px;
}

.tq-fact-list div {
	padding: 13px 14px;
	border-radius: 18px;
	background: #f7fbf3;
	border: 1px solid rgba(47, 125, 75, 0.08);
}

.tq-fact-group .tq-fact-list {
	gap: 8px;
}

.tq-fact-group .tq-fact-list div {
	background: #ffffff;
}

.tq-fact-list span {
	display: block;
	margin-bottom: 4px;
	color: #718071;
	font-size: 12px;
	font-weight: 850;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.tq-fact-list strong {
	display: block;
	color: #17351f;
	font-size: 15px;
}

.tq-check-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.tq-check-list li {
	position: relative;
	padding: 12px 12px 12px 42px;
	border-radius: 18px;
	background: #f7fbf3;
	color: #3f513f;
	line-height: 1.48;
	border: 1px solid rgba(47, 125, 75, 0.08);
}

.tq-check-list li::before {
	content: "✓";
	position: absolute;
	left: 14px;
	top: 12px;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #236b3a;
	color: #ffffff;
	font-size: 12px;
	font-weight: 900;
}

.tq-bottom-section {
	max-width: var(--tq-species-content-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.tq-bottom-card {
	padding: 26px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(42, 92, 55, 0.08);
	box-shadow: 0 16px 42px rgba(22, 58, 39, 0.08);
}

.tq-bottom-card p:last-child {
	margin-bottom: 0;
	color: #4a5b4d;
	line-height: 1.6;
}

/* =========================================================
   Responsiv
   ========================================================= */

@media (max-width: 1080px) {
	.tq-species-gallery {
		grid-template-columns: 1fr;
	}

	.tq-gallery-main,
	.tq-gallery-main-full {
		height: 380px;
		min-height: 0;
	}

	.tq-gallery-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-rows: 1fr;
		height: 140px;
		min-height: 0;
	}

	.tq-gallery-thumb {
		min-height: 0;
	}

	.tq-species-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.tq-species-actions {
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.tq-species-actions .tq-btn {
		flex: 1 1 180px;
	}

	.tq-map-shell[data-flyin-open="true"] {
		grid-template-columns: 360px minmax(0, 1fr);
	}
}

@media (max-width: 860px) {
	.tq-species-single {
		padding: 18px 12px 56px;
	}

	.tq-gallery-main,
	.tq-gallery-main-full {
		height: 300px;
		min-height: 0;
		border-radius: 22px;
	}

	.tq-gallery-grid {
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: 1fr;
		height: 92px;
		min-height: 0;
	}

	.tq-gallery-thumb {
		min-height: 0;
		border-radius: 18px;
	}

	.tq-lightbox {
		padding: 18px;
	}

	.tq-lightbox-stage {
		max-width: calc(100vw - 90px);
	}

	.tq-lightbox-stage img {
		max-width: calc(100vw - 90px);
		max-height: calc(100vh - 110px);
		border-radius: 18px;
	}

	.tq-lightbox-stage figcaption {
		max-width: calc(100vw - 90px);
	}

	.tq-lightbox-prev,
	.tq-lightbox-next {
		width: 54px;
		height: 54px;
		font-size: 0;
	}

	.tq-lightbox-prev::before,
	.tq-lightbox-next::before {
		font-size: 34px;
	}

	.tq-lightbox-prev {
		left: 12px;
	}

	.tq-lightbox-next {
		right: 12px;
	}

	.tq-species-header,
	.tq-map-section,
	.tq-content-card,
	.tq-bottom-card {
		border-radius: 24px;
		padding: 22px;
	}

	.tq-species-header-main {
		flex-direction: column;
	}

	.tq-section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.tq-map-shell,
	.tq-map-shell[data-flyin-open="true"] {
		display: block;
		min-height: 680px !important;
		padding: 0;
	}

	.tq-map-canvas,
	.tq-leaflet-map,
	.tq-leaflet-map.leaflet-container {
		height: 680px !important;
		min-height: 680px !important;
		border-radius: 24px !important;
	}

	.tq-tree-flyin {
		position: fixed;
		left: 10px;
		right: 10px;
		bottom: 10px;
		top: auto;
		z-index: 99999;
		max-height: 76vh;
		border-radius: 26px;
		transform: translateY(110%);
		opacity: 0;
	}

	.tq-map-shell[data-flyin-open="true"] .tq-tree-flyin {
		transform: translateY(0);
		opacity: 1;
	}

	.tq-content-grid,
	.tq-bottom-section {
		grid-template-columns: 1fr;
	}

	.tq-content-card-large {
		grid-row: auto;
	}

	.tq-route-summary,
	.tq-route-nav-actions {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.tq-species-header h1 {
		font-size: 38px;
	}

	.tq-species-latin {
		font-size: 18px;
	}

	.tq-species-tagline {
		font-size: 16px;
	}

	.tq-species-actions {
		flex-direction: column;
	}

	.tq-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(2, minmax(0, 1fr));
		height: 240px;
		min-height: 0;
	}

	.tq-gallery-thumb {
		min-height: 0;
	}

	.tq-lightbox {
		padding: 14px;
	}

	.tq-lightbox-stage {
		max-width: calc(100vw - 70px);
	}

	.tq-lightbox-stage img {
		max-width: calc(100vw - 70px);
		max-height: calc(100vh - 110px);
	}

	.tq-lightbox-stage figcaption {
		max-width: calc(100vw - 70px);
		font-size: 12px;
	}

	.tq-lightbox-close {
		top: 14px;
		right: 14px;
		width: 42px;
		height: 42px;
		font-size: 30px;
	}

	.tq-lightbox-prev,
	.tq-lightbox-next {
		width: 50px;
		height: 50px;
		font-size: 0;
	}

	.tq-lightbox-prev::before,
	.tq-lightbox-next::before {
		font-size: 32px;
	}

	.tq-map-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.tq-filter-btn {
		white-space: nowrap;
	}

	.tq-weather-grid,
	.tq-climate-stats,
	.tq-route-modes {
		grid-template-columns: 1fr;
	}

	.tq-map-hint {
		width: calc(100% - 28px);
		text-align: center;
		border-radius: 18px;
	}

	.tq-map-canvas,
	.tq-leaflet-map,
	.tq-leaflet-map.leaflet-container {
		height: 620px !important;
		min-height: 620px !important;
	}

	.tq-mini-chart-split {
		gap: 4px;
		padding-left: 8px;
		padding-right: 8px;
	}

	.tq-climate-bar {
		width: 7px;
	}
}

/* =========================================================
   Leaflet Zoom + Marker Fix
   ========================================================= */

.tq-map-canvas .leaflet-top.leaflet-left {
	top: 16px !important;
	left: 16px !important;
}

.tq-map-canvas .leaflet-control-zoom {
	border: 0 !important;
	border-radius: 14px !important;
	overflow: hidden !important;
	box-shadow: 0 10px 28px rgba(22, 58, 39, 0.16) !important;
}

.tq-map-canvas .leaflet-control-zoom a {
	width: 42px !important;
	height: 42px !important;
	line-height: 42px !important;
	border: 0 !important;
	background: #ffffff !important;
	color: #17351f !important;
	font-size: 22px !important;
	font-weight: 900 !important;
	text-align: center !important;
}

.tq-map-canvas .leaflet-control-zoom a:first-child {
	border-bottom: 1px solid rgba(42, 92, 55, 0.12) !important;
}

.tq-leaflet-div-icon,
.tq-leaflet-tree-marker,
.leaflet-marker-icon {
	pointer-events: auto !important;
	cursor: pointer !important;
}

.tq-leaflet-tree-marker {
	user-select: none;
}

/* =========================================================
   Leaflet Zoom-Zeichen erzwingen
   ========================================================= */

.tq-map-canvas .leaflet-control-zoom {
	display: block !important;
	width: 42px !important;
	border: 0 !important;
	border-radius: 14px !important;
	overflow: hidden !important;
	background: #ffffff !important;
	box-shadow: 0 10px 28px rgba(22, 58, 39, 0.16) !important;
}

.tq-map-canvas .leaflet-control-zoom a,
.tq-map-canvas .leaflet-control-zoom-in,
.tq-map-canvas .leaflet-control-zoom-out {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 42px !important;
	height: 42px !important;
	line-height: 42px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: #ffffff !important;
	color: transparent !important;
	font-size: 0 !important;
	font-weight: 900 !important;
	text-indent: 0 !important;
	text-shadow: none !important;
	overflow: hidden !important;
}

.tq-map-canvas .leaflet-control-zoom-in {
	border-bottom: 1px solid rgba(42, 92, 55, 0.12) !important;
}

.tq-map-canvas .leaflet-control-zoom-in::before,
.tq-map-canvas .leaflet-control-zoom-out::before {
	position: absolute !important;
	inset: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #17351f !important;
	font-size: 26px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	text-indent: 0 !important;
	font-family: Arial, Helvetica, sans-serif !important;
}

.tq-map-canvas .leaflet-control-zoom-in::before {
	content: "+" !important;
}

.tq-map-canvas .leaflet-control-zoom-out::before {
	content: "−" !important;
}

.tq-map-canvas .leaflet-control-zoom a:hover::before {
	color: #236b3a !important;
}

/* =========================================================
   OSRM Route sichtbar erzwingen
   ========================================================= */

.tq-map-canvas .leaflet-pane.tq-route-pane,
.tq-leaflet-map .leaflet-pane.tq-route-pane {
	z-index: 750 !important;
	pointer-events: none !important;
}

.tq-map-canvas .leaflet-pane.tq-route-pane svg,
.tq-leaflet-map .leaflet-pane.tq-route-pane svg {
	z-index: 750 !important;
	pointer-events: none !important;
	overflow: visible !important;
}

.tq-map-canvas .leaflet-pane.tq-route-pane path,
.tq-leaflet-map .leaflet-pane.tq-route-pane path,
.tq-map-canvas path.tq-route-line,
.tq-leaflet-map path.tq-route-line {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	fill: none !important;
	stroke-width: 8px !important;
	stroke-opacity: 1 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
	filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.35)) !important;
}

.tq-map-canvas path.tq-route-line-foot,
.tq-leaflet-map path.tq-route-line-foot {
	stroke: #2563eb !important;
}

.tq-map-canvas path.tq-route-line-bike,
.tq-leaflet-map path.tq-route-line-bike {
	stroke: #0f8a45 !important;
}

.tq-map-canvas path.tq-route-line-car,
.tq-leaflet-map path.tq-route-line-car {
	stroke: #e24b3b !important;
}


/* =========================================================
   TreeQuest Routing / OSRM im Baumarten-Fly-in
   Ergänzung für assets/css/tq-species-page.css
   ========================================================= */

/* Leaflet-Panes für Route sichtbar erzwingen */
.tq-map-canvas .leaflet-overlay-pane,
.tq-map-canvas .leaflet-pane.leaflet-overlay-pane {
	z-index: 650 !important;
}

.tq-map-canvas .leaflet-marker-pane,
.tq-map-canvas .leaflet-pane.leaflet-marker-pane {
	z-index: 700 !important;
}

.tq-map-canvas .leaflet-pane {
	pointer-events: auto;
}

.tq-map-canvas .leaflet-pane.tqRoutePane,
.tq-map-canvas .leaflet-pane.leaflet-tq-route-pane {
	z-index: 650 !important;
	pointer-events: none !important;
}

/* Route-Linie */
.tq-map-canvas .tq-route-line {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	stroke-width: 8px !important;
	stroke-opacity: 1 !important;
	fill: none !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
	pointer-events: none !important;
	filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.22));
}

.tq-map-canvas .tq-route-line-foot {
	stroke: #2563eb !important;
}

.tq-map-canvas .tq-route-line-bike {
	stroke: #15803d !important;
}

.tq-map-canvas .tq-route-line-car {
	stroke: #dc2626 !important;
}

/* Wenn Routing aktiv ist, wird der linke Fly-in fokussiert */
.tq-map-shell[data-routing-active="true"] .tq-weather-card,
.tq-map-shell[data-routing-active="true"] .tq-climate-card,
.tq-map-shell[data-routing-active="true"] .tq-flyin-actions {
	display: none !important;
}

.tq-map-shell[data-routing-active="true"] .tq-tree-flyin {
	background: #ffffff;
}

/* Routing-Karte links */
.tq-route-loading,
.tq-route-error {
	display: grid;
	gap: 8px;
	padding: 18px;
	border-radius: 18px;
	background: #f8fbf6;
	border: 1px solid rgba(47, 125, 75, 0.12);
	color: #17351f;
}

.tq-route-loading strong,
.tq-route-error strong {
	font-size: 16px;
	font-weight: 900;
}

.tq-route-loading small,
.tq-route-error small {
	font-size: 12px;
	font-weight: 750;
	color: #647067;
	line-height: 1.5;
}

.tq-route-nav {
	display: grid;
	gap: 14px;
}

.tq-route-nav-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tq-route-nav-kicker {
	margin: 0;
	color: #2563eb;
	font-size: 11px;
	font-weight: 950;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tq-route-close {
	appearance: none;
	border: 1px solid rgba(37, 99, 235, 0.12);
	border-radius: 999px;
	padding: 8px 12px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.tq-route-close:hover {
	background: #dbeafe;
}

.tq-route-nav-modes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.tq-route-nav-mode {
	appearance: none;
	min-height: 42px;
	border: 1px solid rgba(47, 125, 75, 0.14);
	border-radius: 999px;
	background: #ffffff;
	color: #214b2c;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.tq-route-nav-mode.is-active {
	background: #236b3a;
	border-color: #236b3a;
	color: #ffffff;
	box-shadow: 0 10px 22px rgba(35, 107, 58, 0.22);
}

.tq-route-summary-panel {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.tq-route-summary-panel div {
	padding: 13px 8px;
	border-radius: 16px;
	background: #f4f8ef;
	border: 1px solid rgba(47, 125, 75, 0.10);
	text-align: center;
}

.tq-route-summary-panel strong {
	display: block;
	color: #17351f;
	font-size: 15px;
	font-weight: 950;
	line-height: 1.1;
}

.tq-route-summary-panel small {
	display: block;
	margin-top: 5px;
	color: #647067;
	font-size: 10px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.tq-route-demo-note {
	padding: 11px 12px;
	border-radius: 14px;
	background: #fff7ed;
	border: 1px solid rgba(234, 88, 12, 0.16);
	color: #9a3412;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.45;
}

.tq-route-current {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 14px;
	border-radius: 18px;
	background: #173f7a;
	color: #ffffff;
	box-shadow: 0 12px 28px rgba(23, 63, 122, 0.24);
}

.tq-route-current > span {
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font-size: 20px;
}

.tq-route-current small {
	display: block;
	margin-bottom: 3px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 10px;
	font-weight: 950;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.tq-route-current strong {
	display: block;
	color: #ffffff;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.35;
}

.tq-route-actions-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.tq-route-actions-row button {
	appearance: none;
	border: 1px solid rgba(37, 99, 235, 0.16);
	border-radius: 999px;
	padding: 11px 12px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.tq-route-actions-row button:hover {
	background: #dbeafe;
}

.tq-route-steps {
	display: grid;
	gap: 8px;
	max-height: 320px;
	overflow: auto;
	padding-right: 4px;
}

.tq-route-steps h4 {
	margin: 2px 0 4px;
	color: #17351f;
	font-size: 15px;
	font-weight: 950;
}

.tq-route-step {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 11px 12px;
	border-radius: 16px;
	background: #f8fbf6;
	border: 1px solid rgba(47, 125, 75, 0.10);
}

.tq-route-step > span {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #e8f2e3;
	color: #236b3a;
	font-size: 15px;
	font-weight: 950;
}

.tq-route-step strong {
	display: block;
	color: #17351f;
	font-size: 13px;
	font-weight: 850;
	line-height: 1.35;
}

.tq-route-step small {
	display: block;
	margin-top: 3px;
	color: #647067;
	font-size: 11px;
	font-weight: 850;
}

.tq-route-more {
	padding: 10px 12px;
	border-radius: 14px;
	background: #f1f5f9;
	color: #475569;
	font-size: 12px;
	font-weight: 850;
	text-align: center;
}

/* Route-Hinweis auf Karte */
.tq-map-shell[data-routing-active="true"] .tq-map-hint {
	background: rgba(255, 255, 255, 0.96);
	color: #17351f;
	border: 1px solid rgba(37, 99, 235, 0.16);
	box-shadow: 0 12px 30px rgba(37, 99, 235, 0.16);
}

/* Klima-Jahresbuttons optisch angleichen */
.tq-year-tabs-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.tq-year-tabs-buttons button {
	appearance: none;
	border: 1px solid rgba(47, 125, 75, 0.14);
	border-radius: 999px;
	background: #ffffff;
	color: #28492f;
	padding: 8px 11px;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.tq-year-tabs-buttons button.is-active {
	background: #236b3a;
	border-color: #236b3a;
	color: #ffffff;
	box-shadow: 0 8px 18px rgba(35, 107, 58, 0.18);
}

/* Klima Split-Chart Temperatur + Sonne */
.tq-climate-location {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-bottom: 10px;
	color: #28492f;
	font-size: 13px;
	font-weight: 850;
}

.tq-climate-location small {
	color: #6a776a;
	font-size: 11px;
	font-weight: 750;
}

.tq-climate-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 8px;
	color: #607263;
	font-size: 11px;
	font-weight: 850;
}

.tq-climate-legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tq-climate-legend i {
	width: 10px;
	height: 10px;
	display: inline-block;
	border-radius: 999px;
}

.tq-legend-temp {
	background: #2f7d4b;
}

.tq-legend-sun {
	background: #ee8f25;
}

.tq-mini-chart-split {
	height: 120px;
	display: flex;
	align-items: flex-end;
	gap: 7px;
	padding: 12px;
	border-radius: 18px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.46)),
		repeating-linear-gradient(0deg, rgba(35, 107, 58, 0.06) 0, rgba(35, 107, 58, 0.06) 1px, transparent 1px, transparent 24px);
	border: 1px solid rgba(47, 125, 75, 0.10);
}

.tq-climate-month {
	flex: 1;
	min-width: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	gap: 5px;
}

.tq-climate-month-bars {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3px;
	align-items: end;
}

.tq-climate-bar {
	display: block;
	min-height: 8px;
	border-radius: 999px 999px 4px 4px;
}

.tq-climate-bar-temp {
	background: linear-gradient(180deg, #82b96f, #2f7d4b);
}

.tq-climate-bar-sun {
	background: linear-gradient(180deg, #ffc56b, #ee8f25);
}

.tq-climate-month small {
	color: #667366;
	font-size: 9px;
	font-weight: 850;
	text-align: center;
}

.tq-climate-source {
	margin-top: 10px;
	color: #607263;
	font-size: 11px;
	font-weight: 800;
}

.tq-climate-loading,
.tq-climate-error {
	padding: 12px;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid rgba(47, 125, 75, 0.10);
	color: #4a5b4d;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.45;
}

.tq-climate-error {
	background: #fff7ed;
	border-color: rgba(234, 88, 12, 0.16);
	color: #9a3412;
}

@media (max-width: 560px) {
	.tq-route-summary-panel,
	.tq-route-nav-modes,
	.tq-route-actions-row {
		grid-template-columns: 1fr;
	}

	.tq-route-steps {
		max-height: 260px;
	}
}

/* =========================================================
   TreeQuest Bottom Cards: Missionen / Beobachtungen / FAQ
   Ergänzung für assets/css/tq-species-page.css
   ========================================================= */

.tq-bottom-card {
	position: relative;
	overflow: hidden;
}

.tq-bottom-note {
	display: block;
	margin-top: 12px;
	color: #5d6b5e;
	font-size: 13px;
	line-height: 1.5;
}

.tq-empty-state {
	display: grid;
	gap: 6px;
	margin-top: 12px;
	padding: 14px 16px;
	border-radius: 18px;
	background: #f3f8ef;
	border: 1px solid rgba(47, 125, 75, 0.12);
	color: #405342;
}

.tq-empty-state strong {
	color: #17351f;
	font-size: 14px;
	font-weight: 900;
}

.tq-empty-state span {
	color: #5f6f61;
	font-size: 13px;
	line-height: 1.5;
}

/* =========================================================
   Missionen unten
   ========================================================= */

.tq-species-mission-list {
	display: grid;
	gap: 10px;
	margin-top: 14px;
}

.tq-species-mission-item {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 18px;
	background: #f5faf1;
	border: 1px solid rgba(47, 125, 75, 0.12);
	color: #17351f;
	transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.tq-species-mission-item:hover {
	transform: translateY(-1px);
	background: #edf7e9;
	box-shadow: 0 10px 24px rgba(22, 58, 39, 0.08);
}

.tq-species-mission-icon {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #e7f3e2;
	color: #236b3a;
	font-size: 16px;
}

.tq-species-mission-item strong {
	display: block;
	color: #17351f;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.25;
}

.tq-species-mission-item small {
	display: block;
	margin-top: 4px;
	color: #6b786b;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.35;
}

/* =========================================================
   Beobachtungs-Ticker unten
   ========================================================= */

.tq-observation-ticker {
	position: relative;
	margin-top: 14px;
	max-height: 174px;
	overflow: hidden;
	border-radius: 20px;
	background: #f5faf1;
	border: 1px solid rgba(47, 125, 75, 0.12);
}

.tq-observation-ticker::before,
.tq-observation-ticker::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	z-index: 2;
	height: 24px;
	pointer-events: none;
}

.tq-observation-ticker::before {
	top: 0;
	background: linear-gradient(180deg, #f5faf1, rgba(245, 250, 241, 0));
}

.tq-observation-ticker::after {
	bottom: 0;
	background: linear-gradient(0deg, #f5faf1, rgba(245, 250, 241, 0));
}

.tq-observation-ticker-track {
	display: grid;
	gap: 8px;
	padding: 14px;
	animation: tqObservationTicker 18s linear infinite;
}

.tq-observation-ticker:hover .tq-observation-ticker-track {
	animation-play-state: paused;
}

.tq-observation-item {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 11px 12px;
	border-radius: 16px;
	background: #ffffff;
	border: 1px solid rgba(47, 125, 75, 0.08);
	box-shadow: 0 8px 18px rgba(22, 58, 39, 0.05);
}

.tq-observation-item > span {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #e7f3e2;
	font-size: 14px;
}

.tq-observation-item strong {
	display: block;
	color: #17351f;
	font-size: 13px;
	font-weight: 850;
	line-height: 1.35;
}

.tq-observation-item small {
	display: block;
	margin-top: 4px;
	color: #7a887a;
	font-size: 11px;
	font-weight: 800;
}

@keyframes tqObservationTicker {
	0% {
		transform: translateY(0);
	}
	45% {
		transform: translateY(0);
	}
	100% {
		transform: translateY(-38%);
	}
}

/* =========================================================
   FAQ unten
   ========================================================= */

.tq-faq-open-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	margin-top: 14px;
	padding: 9px 15px;
	border: 0;
	border-radius: 999px;
	background: #236b3a;
	color: #ffffff;
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(35, 107, 58, 0.18);
	transition: transform 0.18s ease, background 0.18s ease;
}

.tq-faq-open-btn:hover {
	transform: translateY(-1px);
	background: #174f2a;
}

/* =========================================================
   FAQ Modal / Popup
   ========================================================= */

body.tq-faq-modal-open {
	overflow: hidden;
}

.tq-faq-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 28px;
}

.tq-faq-modal.is-open {
	display: flex;
}

.tq-faq-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 20, 10, 0.72);
	backdrop-filter: blur(8px);
}

.tq-faq-modal-dialog {
	position: relative;
	z-index: 2;
	width: min(860px, calc(100vw - 34px));
	max-height: min(760px, calc(100vh - 34px));
	overflow: auto;
	padding: 30px;
	border-radius: 30px;
	background:
		radial-gradient(circle at top left, rgba(122, 184, 108, 0.16), transparent 36%),
		#ffffff;
	border: 1px solid rgba(47, 125, 75, 0.12);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
	color: #17351f;
}

.tq-faq-modal-dialog h2 {
	margin: 0 0 18px;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.1;
	letter-spacing: -0.035em;
	color: #14351d;
}

.tq-faq-modal-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #edf3ea;
	color: #23472c;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.tq-faq-modal-close:hover {
	background: #dfeede;
	color: #14351d;
}

.tq-faq-list {
	display: grid;
	gap: 10px;
}

.tq-faq-item {
	overflow: hidden;
	border-radius: 20px;
	background: #f7fbf3;
	border: 1px solid rgba(47, 125, 75, 0.12);
}

.tq-faq-question {
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 32px;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border: 0;
	background: transparent;
	color: #17351f;
	text-align: left;
	cursor: pointer;
}

.tq-faq-question span {
	font-size: 15px;
	font-weight: 900;
	line-height: 1.35;
}

.tq-faq-question i {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #e5f1df;
	color: #236b3a;
	font-style: normal;
	font-weight: 900;
}

.tq-faq-question i::before {
	content: "+";
}

.tq-faq-item.is-open .tq-faq-question i::before {
	content: "−";
}

.tq-faq-answer {
	display: none;
	padding: 0 18px 18px;
	color: #3f513f;
	font-size: 15px;
	line-height: 1.68;
}

.tq-faq-item.is-open .tq-faq-answer {
	display: block;
}

.tq-faq-answer p:first-child {
	margin-top: 0;
}

.tq-faq-answer p:last-child {
	margin-bottom: 0;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 860px) {
	.tq-faq-modal {
		padding: 12px;
		align-items: flex-end;
	}

	.tq-faq-modal-dialog {
		width: 100%;
		max-height: 86vh;
		padding: 24px;
		border-radius: 28px 28px 18px 18px;
	}

	.tq-faq-modal-close {
		top: 14px;
		right: 14px;
	}

	.tq-observation-ticker {
		max-height: 220px;
	}

	.tq-observation-ticker-track {
		animation: none;
	}
}

/* =========================================================
   Mobile Fix: Baumarten-Actions kompakt
   Zweck:
   - verhindert riesige Pillen-Buttons auf Mobile
   - entfernt Mission/Beobachtung aus dem Kopfbereich
   ========================================================= */

@media (max-width: 767px) {
	.tq-species-actions {
		width: 100% !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 10px !important;
		margin-top: 16px !important;
		min-width: 0 !important;
	}

	.tq-species-actions a[href="#tq-missionen"],
	.tq-species-actions a[href="#tq-beobachtung"] {
		display: none !important;
	}

	.tq-species-actions .tq-btn {
		flex: 0 0 auto !important;
		width: 100% !important;
		min-height: 52px !important;
		height: auto !important;
		padding: 14px 20px !important;
		border-radius: 18px !important;
		font-size: 1rem !important;
		line-height: 1.2 !important;
	}

	.tq-species-actions .tq-btn-primary {
		box-shadow: 0 10px 22px rgba(35, 107, 58, 0.20) !important;
	}
}

@media (max-width: 560px) {
	.tq-species-actions .tq-btn {
		flex: 0 0 auto !important;
		min-height: 50px !important;
		padding: 13px 18px !important;
		border-radius: 16px !important;
	}
}

/* =========================================================
   Button-Position: Standorte anzeigen auf Überschriftshöhe
   Zweck:
   - rechter Header-Button steht nicht mehr mittig im Baumkopf
   - auf Mobile bleibt er kompakt und sitzt auf Höhe des Titels
   ========================================================= */

.tq-species-header {
	position: relative;
}

.tq-species-actions,
.tq-species-actions-compact {
	align-self: flex-start !important;
	margin-top: 34px !important;
}

@media (max-width: 1080px) {
	.tq-species-actions,
	.tq-species-actions-compact {
		align-self: flex-start !important;
		justify-content: flex-start !important;
		margin-top: 0 !important;
	}
}

@media (max-width: 767px) {
	.tq-species-header {
		position: relative !important;
		padding-bottom: 22px !important;
	}

	.tq-species-header h1 {
		padding-right: 160px !important;
	}

	.tq-species-actions,
	.tq-species-actions-compact {
		position: absolute !important;
		top: 116px !important;
		right: 22px !important;
		z-index: 5 !important;
		width: auto !important;
		min-width: 0 !important;
		margin: 0 !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-end !important;
		gap: 8px !important;
	}

	.tq-species-actions a[href="#tq-missionen"],
	.tq-species-actions a[href="#tq-beobachtung"] {
		display: none !important;
	}

	.tq-species-actions .tq-btn,
	.tq-species-actions-compact .tq-btn {
		flex: 0 0 auto !important;
		width: auto !important;
		min-width: 0 !important;
		min-height: 40px !important;
		height: auto !important;
		padding: 10px 14px !important;
		border-radius: 999px !important;
		font-size: 0.86rem !important;
		line-height: 1.15 !important;
		white-space: nowrap !important;
		box-shadow: 0 8px 18px rgba(35, 107, 58, 0.18) !important;
	}
}

@media (max-width: 460px) {
	.tq-species-header h1 {
		padding-right: 0 !important;
	}

	.tq-species-actions,
	.tq-species-actions-compact {
		position: static !important;
		width: auto !important;
		align-self: flex-start !important;
		align-items: flex-start !important;
		margin-top: 14px !important;
	}

	.tq-species-actions .tq-btn,
	.tq-species-actions-compact .tq-btn {
		width: auto !important;
		min-height: 40px !important;
		padding: 10px 14px !important;
		font-size: 0.86rem !important;
	}
}
