/* klima.css – /klimawandel, /nachhaltigkeit, /naturschutz und Startseiten-Baustein (05.12.2026). Baut auf natur.css auf. */
.kl-hero { background: linear-gradient(160deg, #1d3a4a 0%, #2f5d4a 100%); position: relative; overflow: hidden; }
.kl-hero--nh { background: linear-gradient(160deg, #23472f 0%, #3c6b45 100%); }
.kl-hero--ns { background: linear-gradient(160deg, #2b3d27 0%, #4d6a3a 100%); }
.kl-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 1.4rem; align-items: center; }
.kl-hero__scene { width: 100%; max-width: 240px; justify-self: end; }
.kl-stripes { display: block; width: 100%; height: 64px; border-radius: 10px; clip-path: inset(0 100% 0 0); animation: klReveal 2.4s cubic-bezier(.2,.7,.2,1) .3s forwards; }
.kl-stripes--big { height: 96px; }
@keyframes klReveal { to { clip-path: inset(0 0 0 0); } }
.kl-stripes-cap { display: flex; justify-content: space-between; font-size: .78rem; opacity: .8; margin-top: .25rem; }
.kl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: .8rem; }
.kl-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.1rem; display: grid; gap: .25rem; text-decoration: none; color: var(--ink); }
a.kl-kpi:hover { border-color: var(--moss); box-shadow: var(--shadow-md); color: var(--ink); }
.kl-kpi__ic { font-size: 1.4rem; line-height: 1; }
.kl-kpi b { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.15; color: #b03a2e; }
.kl-kpi b.kl-good { color: var(--moss-dark); }
.kl-kpi span { font-size: .88rem; color: var(--ink-soft); line-height: 1.4; }
.kl-chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .9rem 1rem .7rem; }
.kl-chart h3 { margin: 0 0 .2rem; font-size: 1.02rem; color: var(--ink); }
.kl-chart p { margin: .3rem 0 0; font-size: .86rem; color: var(--ink-soft); }
.kl-line, .kl-bars { width: 100%; height: auto; display: block; margin-top: .3rem; }
.kl-grid { stroke: var(--line); stroke-width: 1; }
.kl-ref { stroke: #7a8a80; stroke-width: 1.2; stroke-dasharray: 4 4; }
.kl-ax { font-size: 11px; fill: var(--ink-soft); }
.kl-ax--ref { fill: #5b6b60; }
.kl-year { fill: none; stroke-width: 1; opacity: .35; }
.kl-mean { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: klDraw 2s ease-out .4s forwards; }
@keyframes klDraw { to { stroke-dashoffset: 0; } }
.kl-val { font-size: 12px; font-weight: 700; fill: var(--ink); }
.kl-bar { transform-box: fill-box; transform-origin: bottom; animation: klGrow .7s cubic-bezier(.3,1.3,.5,1) both; animation-delay: calc(var(--i) * 90ms + .2s); }
@keyframes klGrow { from { transform: scaleY(0); } }
.kl-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .9rem; }
.kl-more { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.kl-more > summary { cursor: pointer; padding: .85rem 1.05rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: .6rem; }
.kl-more > summary::after { content: '＋'; color: var(--moss); } .kl-more[open] > summary::after { content: '－'; }
.kl-more > div { padding: 0 1.05rem 1rem; display: grid; gap: .9rem; }
.kl-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.kl-table th, .kl-table td { padding: .4rem .5rem; border-bottom: 1px solid var(--line); text-align: right; }
.kl-table th:first-child, .kl-table td:first-child { text-align: left; }
.kl-table td.kl-up { color: #b03a2e; font-weight: 700; } .kl-table td.kl-down { color: #2166ac; font-weight: 700; }
.kl-src { font-size: .8rem; color: var(--ink-soft); line-height: 1.5; }
.kl-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; counter-reset: r; list-style: none; padding: 0; margin: 0; }
.kl-rules li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .9rem 1rem; display: grid; gap: .25rem; }
.kl-rules li strong::before { counter-increment: r; content: counter(r) '. '; color: var(--moss); }
.kl-rules li span { font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }
.kl-cal { width: 100%; max-width: 640px; display: block; }
.kl-cal .kl-now { stroke: #b03a2e; stroke-width: 2; }
/* Szenen */
.kl-train { animation: klTrain 3.2s cubic-bezier(.4,0,.2,1) .4s both; } @keyframes klTrain { from { transform: translateX(-180px); } }
.kl-deer-ear { transform-box: fill-box; transform-origin: bottom center; animation: klEar .6s ease-in-out 1.6s 2; } @keyframes klEar { 50% { transform: rotate(-18deg); } }
.kl-sun { animation: klSun 2.4s ease-out .2s both; } @keyframes klSun { from { transform: translateY(30px); opacity: 0; } }
.kl-flake { animation: klMelt 3s ease-in 1s both; } @keyframes klMelt { to { opacity: .15; transform: translateY(6px) scale(.6); } }
@media (prefers-reduced-motion: reduce) { .kl-stripes, .kl-mean, .kl-bar, .kl-train, .kl-deer-ear, .kl-sun, .kl-flake { animation: none !important; clip-path: none !important; stroke-dashoffset: 0 !important; opacity: 1; } }
@media (max-width: 720px) { .kl-hero__in { grid-template-columns: 1fr; } .kl-hero__scene { max-width: 170px; justify-self: center; } .kl-kpi b { font-size: 1.35rem; } }
/* Startseite */
.kl-home { display: grid; gap: .7rem; }
.kl-home__links { display: flex; flex-wrap: wrap; gap: .5rem; }
/* Sammelregeln (Baustein aus inc/rk_sammelrecht.php) */
.kl .rk-note-recht { background: var(--paper-2, #f6f3ea); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .75rem .95rem; font-size: .92rem; line-height: 1.5; }
.kl .rk-note-recht p { margin: 0; } .kl .rk-note-recht details { margin-top: .35rem; } .kl .rk-note-recht summary { cursor: pointer; font-weight: 700; color: var(--moss-dark); }
.kl .rk-note-recht ul { margin: .4rem 0 .3rem 1.1rem; padding: 0; } .kl .rk-note-recht li { margin: .15rem 0; } .kl .rk-note-recht__hint { font-size: .8rem; color: var(--ink-soft); }
