/* Energivalget core – theme-neutral, overridable via the custom properties below. */
.ev-calc {
  --ev-accent: #2e7d28;      /* Markengrün, abgedunkelt für Kontrast (AA 5,1:1 mit Weiß) */
  --ev-accent-ink: #ffffff;
  --ev-gas: #122b44;         /* Marken-Navy */
  --ev-hp: #3b9b34;          /* Markengrün aus dem Logo */
  --ev-bg: #ffffff;
  --ev-soft: #f3f7f2;
  --ev-line: #dde6dc;
  --ev-ink: #122b44;          /* Marken-Navy */
  --ev-muted: #52606e;
  --ev-radius: 12px;
  color: var(--ev-ink);
  margin: 1.5rem 0;
  font-variant-numeric: tabular-nums;
}
.ev-calc *, .ev-calc *::before, .ev-calc *::after { box-sizing: border-box; }

.ev-input { background: var(--ev-soft); border: 1px solid var(--ev-line); border-radius: var(--ev-radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.ev-label { display: block; font-weight: 700; margin-bottom: .5rem; }
.ev-input-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.ev-input-row input[type=range] { flex: 1 1 220px; accent-color: var(--ev-accent); min-height: 32px; }
.ev-number { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; white-space: nowrap; }
.ev-number input, .ev-calc select { width: 7.5rem; padding: .5rem .6rem; border: 1px solid var(--ev-line); border-radius: 8px; font: inherit; background: var(--ev-bg); color: var(--ev-ink); }
.ev-calc select { width: auto; min-width: 10rem; }
.ev-hint { font-size: .875rem; color: var(--ev-muted); margin: .5rem 0 0; }

.ev-recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1rem 0; }
.ev-card { background: var(--ev-bg); border: 1px solid var(--ev-line); border-radius: var(--ev-radius); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.ev-card--best { border: 2px solid var(--ev-accent); box-shadow: 0 6px 20px rgba(46, 125, 40, .14); }
.ev-card__tag { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ev-accent); }
.ev-card__name { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.ev-card__name span { display: block; font-weight: 400; font-size: .95rem; color: var(--ev-muted); }
.ev-card__price { margin: .25rem 0 0; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.ev-card__price small { font-size: .85rem; font-weight: 500; color: var(--ev-muted); }
.ev-card__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.ev-card__facts li { font-size: .8rem; background: var(--ev-soft); border-radius: 999px; padding: .2rem .6rem; }
.ev-card__why { margin: 0; font-size: .9rem; line-height: 1.5; flex: 1; }
.ev-btn { display: inline-block; text-align: center; background: var(--ev-accent); color: var(--ev-accent-ink) !important; text-decoration: none !important; font-weight: 700; padding: .65rem 1rem; border-radius: 8px; min-height: 44px; }
.ev-btn:hover, .ev-btn:focus-visible { filter: brightness(1.1); }
.ev-btn--lead { font-size: 1.05rem; }
.ev-ad { font-size: .75rem; color: var(--ev-muted); border: 1px solid var(--ev-line); border-radius: 4px; padding: .1rem .35rem; margin-left: .4rem; }

.ev-all, .ev-assumptions { border: 1px solid var(--ev-line); border-radius: var(--ev-radius); padding: .75rem 1rem; margin: 1rem 0; }
.ev-all summary, .ev-assumptions summary { cursor: pointer; font-weight: 600; }
.ev-table-wrap { overflow-x: auto; margin-top: .75rem; }
.ev-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ev-table th, .ev-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--ev-line); text-align: left; vertical-align: top; }
.ev-table th { font-size: .8rem; color: var(--ev-muted); font-weight: 600; }
.ev-table tbody tr:first-child td { background: rgba(59, 155, 52, .08); }
.ev-r { text-align: right !important; white-space: nowrap; }
.ev-muted { color: var(--ev-muted); font-size: .85em; }

.ev-stand, .ev-neutral, .ev-note { font-size: .85rem; color: var(--ev-muted); margin: .5rem 0; }
.ev-neutral { font-weight: 600; }
.ev-answer { font-size: 1.05rem; line-height: 1.55; background: var(--ev-soft); border-left: 4px solid var(--ev-accent); padding: .8rem 1rem; border-radius: 0 8px 8px 0; margin: 1rem 0; }

.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.ev-grid > .ev-input { margin-bottom: 0; }
.ev-assumptions label { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; }

.ev-hp { margin-top: 1rem; }
.ev-bars { display: flex; flex-direction: column; gap: .9rem; }
.ev-bar { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label val" "track track"; gap: .3rem .75rem; }
.ev-bar__label { grid-area: label; font-size: .9rem; }
.ev-bar__val { grid-area: val; font-weight: 800; }
.ev-bar__track { grid-area: track; height: 14px; background: var(--ev-soft); border-radius: 999px; overflow: hidden; }
.ev-bar__fill { display: block; height: 100%; border-radius: 999px; transition: width .25s ease; }
.ev-bar__fill--gas { background: var(--ev-gas); }
.ev-bar__fill--hp { background: var(--ev-hp); }
.ev-cta { margin: 1rem 0; }

@media (prefers-color-scheme: dark) {
  .ev-calc.ev-auto-dark { --ev-bg: #111816; --ev-soft: #1a2321; --ev-line: #2c3a37; --ev-ink: #e8efed; --ev-muted: #9fb0ab; }
}
@media (prefers-reduced-motion: reduce) { .ev-bar__fill { transition: none; } }
