/* Leistungsseite Eco-Tuning. Lädt nach unterseiten.css.
   Eigenes: Schema "Gleiche Steigung, anderer Gang" und die Beispielrechnung (leistung-eco-tuning.js). */

.eco-buehne { position: relative; display: grid; gap: var(--r4); padding: var(--r5); background:
  radial-gradient(ellipse 60% 60% at 0% 0%, rgba(var(--dritt-rgb), .08), transparent 70%),
  linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); }
.eco-buehne::before, .eco-rechner::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 2px; background: var(--akz-hell); box-shadow: 0 0 14px rgba(var(--akz-rgb), .6); }
.eco-steuer { display: flex; flex-wrap: wrap; gap: var(--r4); align-items: end; justify-content: space-between; }
.eco-schalter button { min-height: 44px; }
.eco-schalter button[aria-pressed="true"] { background: var(--akz); border-color: var(--akz); color: #fff; }
.eco-schalter button:focus-visible { outline: 2px solid var(--akz-hell); outline-offset: 3px; }
/* Runde 25: "Fahrt abspielen" zeigt die Vorführung (Ebene, Steigung, Anhänger, Eco) noch einmal */
.eco-steuer__links { display: flex; flex-wrap: wrap; gap: var(--r3); align-items: center; }
.eco-abspielen { display: inline-flex; align-items: center; justify-content: center; gap: var(--r2); min-height: 44px; padding: 0 var(--r3); cursor: pointer; color: var(--text);
  background: rgba(255, 255, 255, .05); border: 0; border-bottom: 2px solid rgba(var(--dritt-rgb), .6); font: 600 .9rem/1 var(--schrift); transition: background .2s; }
.eco-abspielen:hover { background: rgba(255, 255, 255, .1); }
.eco-abspielen svg { color: var(--akz-hell); flex: none; }
.eco-abspielen:focus-visible { outline: 2px solid var(--akz-hell); outline-offset: 3px; }
.eco-last { display: grid; gap: var(--r2); flex: 1 1 280px; max-width: 460px; }
.eco-last__marken { display: flex; justify-content: space-between; font-size: .76rem; color: var(--ruhig); }

.eco-buehne input[type="range"], .eco-rechner input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
.eco-buehne input[type="range"]::-webkit-slider-runnable-track, .eco-rechner input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--akz-hell) var(--anteil, 50%), rgba(255, 255, 255, .14) var(--anteil, 50%)); }
.eco-buehne input[type="range"]::-moz-range-track, .eco-rechner input[type="range"]::-moz-range-track { height: 4px; background: rgba(255, 255, 255, .14); }
.eco-buehne input[type="range"]::-moz-range-progress, .eco-rechner input[type="range"]::-moz-range-progress { height: 4px; background: var(--akz-hell); }
.eco-buehne input[type="range"]::-webkit-slider-thumb, .eco-rechner input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; background: #fff; border: 3px solid var(--akz); border-radius: 50%; box-shadow: 0 0 12px rgba(var(--akz-rgb), .7); }
.eco-buehne input[type="range"]::-moz-range-thumb, .eco-rechner input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; background: #fff; border: 3px solid var(--akz); border-radius: 50%; }
.eco-buehne input[type="range"]:focus-visible, .eco-rechner input:focus-visible { outline: 2px solid var(--akz-hell); outline-offset: 4px; }

.eco-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--r4); }
.eco-feld { margin: 0; display: grid; gap: var(--r2); align-content: start; min-width: 0; }
.eco-feld--strasse { align-content: stretch; }
.eco-feld__titel { font: 600 .74rem/1.2 var(--schrift); letter-spacing: .16em; text-transform: uppercase; color: var(--dritt); }
.eco-svg { display: block; width: 100%; height: auto; background: rgba(6, 8, 11, .55); }
.eco-svg text { font-family: var(--schrift); }
.eco-legende { margin: 0; display: flex; flex-wrap: wrap; gap: var(--r1) var(--r3); font-size: .8rem; color: var(--ruhig); }
.eco-l { display: inline-flex; align-items: center; gap: var(--r2); }
.eco-l::before { content: ""; width: 22px; border-top: 2px solid var(--stahl); }
.eco-l--eco::before { border-top: 3px solid var(--akz-hell); box-shadow: 0 0 6px rgba(var(--akz-rgb), .8); }
.eco-l--bedarf::before { border-top: 2px dashed var(--dritt); }
.eco-status { margin: 0; min-height: 3.2em; color: var(--text); font-weight: 600; max-width: 80ch; }
.eco-status b { color: var(--akz-hell); }
.eco-fuss { margin: 0; font-size: .82rem; color: var(--ruhig); max-width: 80ch; }

/* Elemente im Schema (von JS erzeugt) */
.eco-erde { fill: #0B0F14; }
.eco-strasse { fill: #18202A; }
.eco-rand { stroke: rgba(234, 219, 192, .55); stroke-width: 1.6; }
.eco-rand--fern { stroke: rgba(234, 219, 192, .28); stroke-width: 1; }
.eco-strich { stroke: rgba(234, 219, 192, .75); stroke-width: 2.4; }
.eco-pfosten__stab { fill: #D5DBE1; }
.eco-pfosten__band { fill: #10151B; }
.eco-pfosten__reflektor { fill: #F2A33A; }
.eco-gang { fill: #fff; font-size: 64px; font-weight: 800; font-style: italic; }
.eco-gang.ist-runter { fill: var(--dritt); }
.eco-gang.blitz { animation: eco-blitz 1.1s ease-out; }
@keyframes eco-blitz { 0%, 35% { fill: var(--akz-hell); filter: drop-shadow(0 0 10px rgba(var(--akz-rgb), .9)); } 100% { filter: none; } }
.eco-vorher { fill: var(--dritt); font-size: 14px; font-weight: 600; opacity: 0; }
.eco-vorher.zeig { animation: eco-kurz 3.2s ease-out forwards; }
.eco-alt { stroke: #fff; stroke-width: 2; opacity: 0; }
.eco-alt.zeig { animation: eco-kurz 2.4s ease-out forwards; }
@keyframes eco-kurz { 0%, 65% { opacity: .95; } 100% { opacity: 0; } }
.eco-klein { fill: var(--ruhig); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.eco-klein--hell { fill: var(--dritt); }
.eco-zeile { fill: var(--ruhig); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: fill .3s; }
.eco-zeile.ist-an { fill: #fff; }
.eco-spur { fill: rgba(255, 255, 255, .08); }
.eco-balken { transition: opacity .3s; opacity: .4; }
.eco-balken--serie { fill: var(--stahl); }
.eco-balken--eco { fill: var(--akz-hell); }
.eco-balken.ist-an { opacity: 1; }
.eco-balken--eco.ist-an { filter: drop-shadow(0 0 5px rgba(var(--akz-rgb), .8)); }

.eco-achse { stroke: rgba(182, 191, 201, .35); stroke-width: 1; }
.eco-gitter { stroke: rgba(182, 191, 201, .08); stroke-width: 1; }
.eco-gangline { stroke: rgba(182, 191, 201, .22); stroke-width: 1; stroke-dasharray: 3 4; }
.eco-ganglabel { fill: var(--ruhig); font-size: 12px; text-anchor: middle; font-weight: 600; }
.eco-k-serie { fill: none; stroke: var(--stahl); stroke-width: 2.2; opacity: .75; }
.eco-k-eco { fill: none; stroke: var(--akz-hell); stroke-width: 3; filter: drop-shadow(0 0 5px rgba(var(--akz-rgb), .7)); }
.eco-plus { fill: rgba(var(--akz-rgb), .14); }
.eco-bedarf { stroke: var(--dritt); stroke-width: 2; stroke-dasharray: 7 5; }
.eco-punkt { fill: #fff; stroke: var(--akz-hell); stroke-width: 3; }
.eco-punkt--serie { fill: #fff; stroke: var(--stahl); }
.eco-punkt--blass { opacity: .35; }

/* Beispielrechnung */
.eco-rechner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--r5); padding: var(--r5);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); }
.eco-eingabe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--r3); align-content: start; }
.eco-eingabe input[type="number"] { width: 100%; min-width: 0; background: #0A0E13; color: var(--text); border: 1px solid var(--linie); border-radius: 0; padding: 12px 13px;
  font: 600 1rem/1.3 var(--schrift); letter-spacing: 0; text-transform: none; }
.eco-eingabe input[type="number"]:focus { border-color: var(--stahl); }
.eco-fe { display: grid; gap: 6px; align-content: end; min-width: 0; }
.eco-fe__kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--r2); min-height: 24px; }
.eco-fe__kopf label { display: block; line-height: 1.35; }
.eco-annahme .eco-fe__kopf { justify-content: flex-start; align-items: center; }
.eco-fe__kopf .info-knopf, .eco-fe__kopf .info-knopf i { font-style: normal; font-weight: 700; }
.eco-annahme { grid-column: 1 / -1; display: grid; gap: var(--r2); padding: var(--r3); background: rgba(var(--akz-rgb), .07); border-left: 2px solid var(--akz-hell); }
.eco-annahme__zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--r3); align-items: center; }
.eco-annahme output { font: italic 800 1.6rem/1 var(--schrift); color: var(--akz-hell); min-width: 4.2ch; text-align: right; text-shadow: 0 0 14px rgba(var(--akz-rgb), .5); }
.eco-annahme__hinweis { margin: 0; font-size: .8rem; color: var(--ruhig); }
.eco-ergebnis { display: grid; gap: var(--r3); align-content: start; }
.eco-ergebnis > * { margin: 0; }
.eco-ergebnis__kopf { font: 600 .74rem/1.2 var(--schrift); letter-spacing: .16em; text-transform: uppercase; color: var(--dritt); }
.eco-werte { display: grid; gap: var(--r2); margin: 0; }
.eco-werte > div { display: flex; justify-content: space-between; gap: var(--r3); align-items: baseline; padding-bottom: var(--r2); border-bottom: 1px solid var(--linie); }
.eco-werte dt { color: var(--hell); font-size: .92rem; }
.eco-werte dd { margin: 0; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.eco-werte__gross dd { font: italic 800 1.7rem/1 var(--schrift); color: var(--akz-hell); text-shadow: 0 0 16px rgba(var(--akz-rgb), .5); }
.eco-werte__gross.ist-leer dd { color: var(--ruhig); text-shadow: none; }
.eco-ergebnis__text { color: var(--ruhig); font-size: .9rem; }

.eco-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--r3); counter-reset: eco; }
.eco-schritte li { position: relative; padding-left: 52px; color: var(--hell); counter-increment: eco; min-height: 36px; }
.eco-schritte li::before { content: counter(eco, decimal-leading-zero); position: absolute; left: 0; top: -2px; font: italic 800 1.5rem/1 var(--schrift); color: var(--akz-hell); text-shadow: 0 0 14px rgba(var(--akz-rgb), .5); }
.eco-schritte b { color: var(--text); }

@media (max-width: 1080px) {
  .eco-rechner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .eco-felder { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .eco-buehne, .eco-rechner { padding: var(--r4) var(--r3); }
  .eco-steuer { flex-direction: column; align-items: stretch; }
  .eco-last { flex: none; max-width: none; }
  .eco-schalter { display: grid; grid-template-columns: 1fr 1fr; }
  .eco-steuer__links { flex-direction: column; align-items: stretch; }
  .eco-eingabe { grid-template-columns: 1fr; }
  .eco-werte > div { flex-direction: column; gap: var(--r1); }
  .eco-werte dd { text-align: left; }
}
@media (max-width: 560px) {
  .eco-klein, .eco-ganglabel, .eco-zeile, .eco-vorher { font-size: 15px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  .eco-gang.blitz { animation: none; }
  .eco-vorher.zeig { animation: none; opacity: .9; }
  .eco-alt.zeig { animation: none; opacity: 0; }
  .eco-zeile, .eco-balken { transition: none; }
}
