/* energie.css — Ergänzungen für „Das Gebäude schläft. Der Zähler nicht.“ (nur diese Seite). */

.e-hinweis { margin: -16px 0 24px; font-size: 14px; color: var(--text-2); max-width: 90ch; }

/* Eingabefelder für Preis und Fläche */
.e-felder { gap: 10px 18px; }
.e-feld { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.e-feld input {
  width: 78px; min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--linie);
  background: var(--flaeche-1); color: var(--text-1); font: inherit; font-size: 14px; text-align: right;
}
.e-feld input:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.wahl button:disabled { opacity: .4; cursor: not-allowed; }

/* Lastgang-Karte (Canvas): baut sich beim Hereinscrollen von links nach rechts auf */
.e-karte canvas { display: block; width: 100%; clip-path: inset(0 100% 0 0); transition: clip-path 1.6s cubic-bezier(.3,.6,.2,1); }
.dia.sichtbar canvas { clip-path: inset(0 0 0 0); }
.e-karte canvas { cursor: crosshair; touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) { .e-karte canvas { clip-path: none; transition: none; } }

.e-skala { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 10px; font-size: 12px; color: var(--text-3); }
.e-skala i { display: block; width: 140px; height: 10px; border-radius: 3px;
  background: linear-gradient(90deg, var(--q1), var(--q2), var(--q3), var(--q4), var(--q5), var(--q6), var(--q7)); }

/* große Zahl im Grundlast-Kasten */
.e-gross { margin: 2px 0 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; font-stretch: 90%; letter-spacing: -.01em; line-height: 1.1; }
.e-gross small { font-size: .42em; font-weight: 550; color: var(--text-2); margin-left: 4px; }
.e-gross-neben { margin: 2px 0 14px; font-size: 14px; color: var(--text-2); }

/* abgelesene Werte der Energiesignatur */
.e-werte { display: grid; gap: 12px; margin: 6px 0 0; }
.e-werte div { border-bottom: 1px solid var(--raster); padding-bottom: 10px; }
.e-werte div:last-child { border-bottom: 0; }
.e-werte dt { font-size: 13px; color: var(--text-2); }
.e-werte dd { margin: 2px 0 0; font-size: 24px; font-weight: 680; font-stretch: 90%; line-height: 1.2; }
.e-werte dd small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 4px; }
.e-werte p { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }

/* Auffälligkeiten */
.e-liste { list-style: none; margin: 0; padding: 0; }
.e-liste li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 6px 20px; padding: 16px 2px; border-top: 1px solid var(--raster); align-items: start; }
.e-liste li:first-child { border-top: 0; padding-top: 4px; }
.e-liste .status { margin-top: 3px; }
.e-liste b { display: block; font-weight: 650; }
.e-liste p { margin: 3px 0 0; color: var(--text-2); font-size: 14px; max-width: 78ch; }
.e-spar { text-align: right; font-weight: 680; font-size: 18px; white-space: nowrap; }
.e-spar small { display: block; font-weight: 500; font-size: 12px; color: var(--text-3); white-space: normal; max-width: 180px; margin-left: auto; }
@media (max-width: 640px) {
  .e-liste li { grid-template-columns: minmax(0, 1fr); }
  .e-spar { text-align: left; }
  .e-spar small { margin-left: 0; }
}

/* Tastatur: sichtbarer Rahmen, kein seitliches Verrutschen */
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
html, body { overflow-x: clip; }

/* Verweis auf „Datei erkennen lassen“ */
.erkennen-satz { display: block; margin-top: 6px; font-size: 14px; color: var(--text-2); }
.erkennen-satz a { color: var(--akzent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
