/* Infografik „Tropische Regenwälder in der weltweiten CO₂-Bilanz".
   Nutzt die gemeinsamen Basis-Tokens (assets/basis.css) und die Export-Leiste
   (assets/export.css). Eigene Klassen tragen das Präfix .rwif-rwco2-. */

.rwif-grafik.rwif-rwco2 { gap: 18px; }

/* — Große Kennzahl (Hero) — */
.rwif-rwco2-hero {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: -4px 0 -2px;
}
.rwif-rwco2-hero-num {
	font-family: var(--rwif-display);
	font-weight: 700;
	font-size: clamp(40px, 7.5vw, 64px);
	line-height: 1;
	color: var(--rwif-alert);
	letter-spacing: -.01em;
}
.rwif-rwco2-hero-txt {
	font-family: var(--rwif-body);
	font-size: 18px;
	color: var(--rwif-ink-soft);
}

/* — Umschalter (wie co2-konzentration) — */
.rwif-rwco2-ctrl {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-family: var(--rwif-ui);
	margin-top: 16px;
}
.rwif-rwco2-ctrl-lbl {
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--rwif-ink-faint);
}
.rwif-rwco2-toggle {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.rwif-rwco2-toggle button {
	font-family: var(--rwif-ui);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	padding: 8px 14px;
	border-radius: 9px;
	border: 1px solid var(--rwif-line);
	background: var(--rwif-paper-2);
	color: var(--rwif-ink-soft);
	transition: border-color .15s, color .15s, background .15s;
}
.rwif-rwco2-toggle button:hover { border-color: var(--rwif-leaf); color: var(--rwif-forest); }
.rwif-rwco2-toggle button.on {
	background: var(--rwif-forest);
	border-color: var(--rwif-forest);
	color: #fff;
}

/* — Diagrammbereich — */
.rwif-rwco2-chartsection {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.rwif-rwco2-chartwrap { position: relative; }
.rwif-rwco2-chart {
	display: block;
	width: 100%;
	height: auto;
	background: var(--rwif-paper);
	border-radius: 10px;
}

/* SVG-Textstile (werden vom Export mit eingebrannt). */
.rwif-rwco2-axis      { fill: var(--rwif-ink-faint); font-family: var(--rwif-ui); font-size: 11px; }
.rwif-rwco2-axistitle { fill: var(--rwif-ink-soft); font-family: var(--rwif-ui); font-size: 12px; font-weight: 600; }
.rwif-rwco2-cat       { fill: var(--rwif-ink); font-family: var(--rwif-ui); font-size: 13.5px; font-weight: 700; }
.rwif-rwco2-sum       { font-family: var(--rwif-ui); font-size: 14px; font-weight: 700; }
.rwif-rwco2-val       { fill: #fff; font-family: var(--rwif-ui); font-size: 15px; font-weight: 700; }
.rwif-rwco2-callout   { font-family: var(--rwif-ui); font-size: 12px; font-weight: 700; }
.rwif-rwco2-badge-t   { fill: #fff; font-family: var(--rwif-ui); font-size: 13px; font-weight: 700; }

/* — Chart-Überschrift je Ansicht (Stil wie Landwirtschaft) — */
.rwif-rwco2-charttitle {
	font-family: var(--rwif-ui);
	font-size: 16px;
	font-weight: 700;
	color: var(--rwif-titel);
	margin-bottom: 8px;
}

/* — Hinweiszeile — */
.rwif-rwco2-hint {
	font-family: var(--rwif-body);
	font-size: 15.5px;
	color: var(--rwif-ink-soft);
	margin: 0;
}

/* — Legende — */
.rwif-rwco2-legend {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	font-family: var(--rwif-ui);
	font-size: 12.5px;
	color: var(--rwif-ink-soft);
}
.rwif-rwco2-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rwif-rwco2-legend i {
	display: inline-block;
	width: 13px;
	height: 13px;
	border-radius: 3px;
}

/* — Aufklappbare Infobox „Brutto/Netto" — */
.rwif-rwco2-info {
	border: 1px solid var(--rwif-line);
	border-radius: 10px;
	background: var(--rwif-paper-2);
	padding: 0 14px;
}
.rwif-rwco2-info > summary {
	cursor: pointer;
	padding: 11px 0;
	font-family: var(--rwif-ui);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--rwif-forest);
	list-style: none;
}
.rwif-rwco2-info > summary::-webkit-details-marker { display: none; }
.rwif-rwco2-info > summary::before {
	content: "＋";
	display: inline-block;
	width: 1.1em;
	font-weight: 700;
}
.rwif-rwco2-info[open] > summary::before { content: "－"; }
.rwif-rwco2-info[open] > summary {
	border-bottom: 1px solid var(--rwif-line);
	margin-bottom: 10px;
}
.rwif-rwco2-info-body {
	font-family: var(--rwif-body);
	font-size: 15px;
	line-height: 1.62;
	color: var(--rwif-ink-soft);
	padding-bottom: 13px;
}
.rwif-rwco2-info-body strong { color: var(--rwif-ink); font-weight: 600; }

/* — Rohdaten-Tabelle — */
.rwif-rwco2-datatable { overflow: auto; }
.rwif-rwco2-datatable[hidden] { display: none; }
.rwif-rwco2-datatable table { border-collapse: collapse; font-family: var(--rwif-ui); font-size: 13px; width: 100%; }
.rwif-rwco2-datatable th, .rwif-rwco2-datatable td { border: 1px solid var(--rwif-line); padding: 5px 10px; text-align: right; white-space: nowrap; }
.rwif-rwco2-datatable th:first-child, .rwif-rwco2-datatable td:first-child { text-align: left; }
.rwif-rwco2-datatable thead th { background: var(--rwif-paper-2); color: var(--rwif-ink); font-weight: 700; }

/* — Quellenzeilen — */
.rwif-rwco2-note {
	font-family: var(--rwif-ui);
	font-size: 12px;
	color: var(--rwif-ink-faint);
	margin: 0;
}
