/* Zeit-/Kostenersparnis-Rechner — Stil gespiegelt an potenzial-check.css */

.er-wrap { max-width: 820px; margin-inline: auto; }

/* JS-/No-JS-Sichtbarkeit (wie potenzial-check) */
.js-only { display: none; }
.js .js-only { display: block; }
.nojs-note { display: block; }
.js .nojs-note { display: none; }

/* Eingabe-Karte */
.er-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(20px, 3.4vw, 32px);
}

.er-field { display: grid; gap: 8px; }
.er-field > label {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ice);
}
.er-field-note {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Input + Einheit */
.er-input-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 320px;
}
.er-input-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ice);
  background: var(--panel-2);
  border: 1px solid var(--line-d);
  border-radius: 12px 0 0 12px;
  padding: 12px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.er-input-row .er-unit {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line-d);
  border-left: none;
  border-radius: 0 12px 12px 0;
}
.er-input-row input:hover { border-color: var(--blue-2); }
.er-input-row input:focus-visible {
  outline: none;
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-2) 28%, transparent);
}
/* Spinner dezent lassen, aber zugänglich */
.er-input-row input::-webkit-outer-spin-button,
.er-input-row input::-webkit-inner-spin-button { margin-left: 4px; }

/* Aktionen / Hinweis (wie potenzial-check) */
.er-actions { margin-top: 4px; }
.er-hint { color: var(--blue-2); font-size: .9rem; margin: 12px 0 0; min-height: 1em; }
.nojs-note { color: var(--muted); font-size: .94rem; line-height: 1.6; }
.nojs-note a { color: var(--blue-2); }

.er-privacy {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .04em;
  line-height: 1.6;
  color: var(--slate-text);
}

/* Dauerhaft sichtbarer Formel-Hinweis ÜBER dem Formular (Transparenz-Auflage) */
.er-method {
  margin: 0 0 22px;
  padding: 16px 20px;
  border: 1px solid var(--line-d-strong);
  border-radius: 14px;
  background: var(--panel-2);
}
.er-method-h {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin: 0 0 8px;
}
.er-method p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .95rem; }
.er-method code {
  font-family: var(--font-mono);
  font-size: .86em;
  color: var(--ice);
  background: color-mix(in srgb, var(--blue-2) 12%, transparent);
  padding: .12em .4em;
  border-radius: 6px;
}

/* Ergebnis */
.er-result { margin-top: 26px; }
.er-result-card {
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-card);
}
.er-result-card .btn { margin-top: 8px; }
.er-result-card .er-reset { margin-left: 12px; }

.er-figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.er-figure b {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--blue-2);
}
.er-figure b:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 6px; border-radius: 6px; }
.er-figure span { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.er-freed { color: var(--ice); line-height: 1.6; margin: 0 0 18px; }
.er-freed b { color: var(--blue-2); }

.er-formula {
  margin: 0 0 6px;
  padding: 14px 18px;
  border: 1px solid var(--line-d);
  border-radius: 12px;
  background: var(--panel-2);
}
.er-formula-h {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin: 0 0 6px;
}
.er-formula-line {
  font-family: var(--font-mono);
  font-size: .92rem;
  color: var(--ice);
  line-height: 1.7;
  margin: 0;
  word-break: break-word;
}
.er-disclaimer { margin-top: 18px; font-size: .8rem; color: var(--slate-text); line-height: 1.6; }

@media (max-width: 560px) {
  .er-result-card .er-reset { margin-left: 0; margin-top: 10px; }
  .er-input-row { max-width: 100%; }
  /* lange CTA-Beschriftung darf auf schmalen Screens umbrechen statt zu überlaufen */
  .er-result-card .btn { width: 100%; justify-content: center; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .er-input-row input { transition: none; }
}
