/* ============================================================
   DUSAG — Schadenrechner
   Wird nur auf Seiten geladen, die den Rechner einbinden.
   ============================================================ */

.calc {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(192, 22, 29, .18), transparent 58%),
    linear-gradient(170deg, var(--surface-2), var(--ink-2) 62%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ---------- Kopf mit Fortschritt ---------- */
.calc-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(20px, 1.7vw, 32px) clamp(22px, 2vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 11, .38);
}
.calc-hd-l { display: flex; align-items: center; gap: 13px; min-width: 0; }
.calc-hd .ico { width: 38px; height: 38px; border-radius: 11px; }
.calc-hd b { display: block; font-size: var(--fs-small); font-weight: 600; letter-spacing: -.014em; }
.calc-hd-l > span:last-child > span { display: block; font-size: var(--fs-micro); color: var(--tx-3); }
.calc-badge {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 7px 13px; border-radius: 100px; border: 1px solid rgba(53, 208, 127, .3);
  background: rgba(53, 208, 127, .08); color: #7BE0AC; font-size: var(--fs-micro); white-space: nowrap;
}
.calc-badge svg { width: 15px; height: 15px; }

.calc-prog { height: 3px; background: rgba(255, 255, 255, .07); position: relative; overflow: hidden; }
.calc-prog i {
  position: absolute; inset: 0 auto 0 0; display: block; width: 0;
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
  transition: width .65s var(--ease-out);
  box-shadow: 0 0 16px rgba(255, 61, 69, .55);
}

/* ---------- Bühne ---------- */
.calc-body { padding: clamp(26px, 2.6vw, 54px) clamp(22px, 2.4vw, 54px); }
.calc-step { display: none; }
.calc-step.on { display: block; animation: stepin .55s var(--ease-out) both; }
@keyframes stepin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.calc-q {
  font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.024em; line-height: 1.16;
  margin-bottom: 8px;
}
.calc-sub { font-size: var(--fs-small); color: var(--tx-2); margin-bottom: clamp(22px, 2vw, 36px); max-width: 62ch; }

/* ---------- Auswahlkacheln ---------- */
.opts { display: grid; gap: 12px; }
.opts.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opts.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .opts.c5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .opts.c3, .opts.c4, .opts.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .opts.c2, .opts.c3, .opts.c4, .opts.c5 { grid-template-columns: 1fr; } }

.opt {
  position: relative; cursor: pointer;
  display: flex; flex-direction: column; gap: 11px;
  padding: clamp(16px, 1.3vw, 24px);
  border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(255, 255, 255, .028);
  transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .4s var(--ease-out);
}
.opt:hover { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .055); transform: translateY(-2px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-ic {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  color: var(--tx-2);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.opt-ic svg { width: 22px; height: 22px; }
.opt b { font-size: var(--fs-small); font-weight: 550; letter-spacing: -.012em; line-height: 1.25; }
.opt small { font-size: var(--fs-micro); color: var(--tx-3); line-height: 1.4; display: block; margin-top: 3px; }
.opt-check {
  position: absolute; top: 14px; right: 14px;
  width: 21px; height: 21px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  transition: .35s var(--ease);
}
.opt-check svg { width: 11px; height: 11px; color: #fff; opacity: 0; transform: scale(.5); transition: .3s var(--ease-out); }

.opt:has(input:checked) {
  border-color: var(--red-bright);
  background: linear-gradient(160deg, rgba(192, 22, 29, .22), rgba(192, 22, 29, .06));
}
.opt:has(input:checked) .opt-ic { background: var(--red); border-color: var(--red); color: #fff; }
.opt:has(input:checked) .opt-check { background: var(--red); border-color: var(--red); }
.opt:has(input:checked) .opt-check svg { opacity: 1; transform: none; }
.opt input:focus-visible ~ .opt-check { outline: 2px solid var(--red-bright); outline-offset: 2px; }

/* kompakte Variante für Bauteile */
.opts.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.opts.chips .opt {
  flex-direction: row; align-items: center; gap: 11px;
  padding: 12px 19px 12px 15px; border-radius: 100px; width: auto;
}
.opts.chips .opt-ic { width: 28px; height: 28px; border-radius: 8px; }
.opts.chips .opt-ic svg { width: 16px; height: 16px; }
.opts.chips .opt-check { display: none; }
.opts.chips .opt b { font-size: var(--fs-micro); }

/* ---------- Navigation ---------- */
.calc-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative; z-index: 2;
  margin-top: clamp(26px, 2.4vw, 44px);
  padding-top: clamp(20px, 1.8vw, 30px);
  border-top: 1px solid var(--line);
}
.calc-back {
  background: none; border: 0; cursor: pointer; padding: 10px 0;
  font-size: var(--fs-small); color: var(--tx-3);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .3s var(--ease), gap .3s var(--ease-out);
}
.calc-back:hover { color: var(--tx); gap: 12px; }
.calc-back svg { width: 15px; height: 15px; }
.calc-back[hidden] { visibility: hidden; }
.calc-hint { font-size: var(--fs-micro); color: var(--tx-3); }

.btn[disabled] { opacity: .38; pointer-events: none; }

/* ---------- Rechenanimation ---------- */
.calc-load { display: grid; place-items: center; gap: 22px; padding: clamp(44px, 5vw, 96px) 0; text-align: center; }
.calc-load b { font-size: var(--fs-h4); font-weight: 550; letter-spacing: -.018em; }
.calc-load span { font-size: var(--fs-small); color: var(--tx-3); min-height: 1.6em; }
.scan {
  width: clamp(150px, 15vw, 220px); height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, .08); overflow: hidden; position: relative;
}
.scan::after {
  content: ''; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  animation: scan 1.15s var(--ease) infinite;
}
@keyframes scan { from { transform: translateX(-110%); } to { transform: translateX(360%); } }

/* ============================================================
   Ergebnis — als Dokument gestaltet
   ============================================================ */
.res { animation: stepin .6s var(--ease-out) both; }
.res-doc {
  background: var(--paper); color: var(--tx-d);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 34px 80px -30px rgba(0, 0, 0, .8);
}
.res-doc-hd {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: clamp(22px, 2vw, 38px) clamp(22px, 2.2vw, 44px);
  border-bottom: 1px solid var(--paper-line);
  background: #fff;
}
.res-doc-hd img { height: 34px; width: auto; }
.res-doc-hd .meta { text-align: right; font-size: var(--fs-micro); color: var(--tx-d2); line-height: 1.55; }
.res-doc-hd .meta b { display: block; color: var(--tx-d); font-weight: 600; }

.res-total {
  padding: clamp(26px, 2.6vw, 50px) clamp(22px, 2.2vw, 44px);
  background: linear-gradient(160deg, #fff, var(--paper-2));
  border-bottom: 1px solid var(--paper-line);
  text-align: center;
}
.res-total .lbl { display: block; margin-bottom: 12px; }
.res-total .amt {
  font-size: clamp(34px, 4.6vw, 78px); font-weight: 600; letter-spacing: -.042em; line-height: 1;
  color: var(--tx-d); font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; justify-content: center; gap: .28em; flex-wrap: wrap;
}
.res-total .amt .dash { color: var(--red-deep); font-weight: 400; }
.res-total .amt .cur { font-size: .52em; color: var(--tx-d2); font-weight: 500; }
.res-total .note { font-size: var(--fs-micro); color: var(--tx-d2); margin-top: 14px; }

/* Aufstellung */
.res-rows { padding: clamp(8px, .8vw, 14px) clamp(22px, 2.2vw, 44px) clamp(20px, 1.8vw, 32px); }
.res-row {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: baseline;
  padding: clamp(15px, 1.2vw, 22px) 0;
  border-bottom: 1px solid var(--paper-line);
}
.res-row:last-child { border-bottom: 0; }
.res-row b { font-size: var(--fs-small); font-weight: 550; }
.res-row .val { font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-row small { grid-column: 1 / -1; font-size: var(--fs-micro); color: var(--tx-d2); line-height: 1.45; }
.res-bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--paper-2); overflow: hidden; margin-top: 9px; }
.res-bar i {
  display: block; height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  transition: width 1.1s var(--ease-out);
}
.res-row.muted .val { color: var(--tx-d2); }
.res-row.free .val { color: #17794A; }

/* Warnhinweise */
.res-flags { display: grid; gap: 10px; padding: 0 clamp(22px, 2.2vw, 44px) clamp(22px, 2vw, 36px); }
.res-flag {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 14px 17px; border-radius: 12px;
  font-size: var(--fs-micro); line-height: 1.5;
  background: rgba(168, 24, 24, .06); border: 1px solid rgba(168, 24, 24, .16); color: var(--tx-d);
}
.res-flag.info { background: rgba(48, 64, 72, .07); border-color: rgba(48, 64, 72, .18); }
.res-flag.good { background: rgba(23, 121, 74, .07); border-color: rgba(23, 121, 74, .2); }
.res-flag svg { width: 19px; height: 19px; flex: none; margin-top: 1px; color: var(--red-deep); }
.res-flag.good svg { color: #17794A; }
.res-flag.info svg { color: var(--slate); }
.res-flag b { font-weight: 600; }

.res-disc {
  padding: clamp(16px, 1.4vw, 24px) clamp(22px, 2.2vw, 44px);
  background: var(--paper-2); border-top: 1px solid var(--paper-line);
  font-size: var(--fs-micro); color: var(--tx-d2); line-height: 1.55;
}

/* Lead-Übergabe */
.res-lead { padding: clamp(26px, 2.4vw, 48px) clamp(22px, 2.4vw, 54px); }
.res-lead h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.res-lead { display: grid; gap: clamp(18px, 1.6vw, 28px); }
.res-lead-tx p { color: var(--tx-2); font-size: var(--fs-small); max-width: 62ch; }
.res-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.res-acts .btn svg { width: 19px; height: 19px; }

/* Erneut rechnen */
.calc-restart {
  background: none; border: 0; cursor: pointer; color: var(--tx-3);
  font-size: var(--fs-micro); display: inline-flex; align-items: center; gap: 8px;
  transition: color .3s var(--ease);
}
.calc-restart:hover { color: var(--tx); }
.calc-restart svg { width: 14px; height: 14px; }

/* Sicherheitsnetz, falls :has() fehlt */
.opt.is-checked {
  border-color: var(--red-bright);
  background: linear-gradient(160deg, rgba(192, 22, 29, .22), rgba(192, 22, 29, .06));
}
.opt.is-checked .opt-ic { background: var(--red); border-color: var(--red); color: #fff; }
.opt.is-checked .opt-check { background: var(--red); border-color: var(--red); }
.opt.is-checked .opt-check svg { opacity: 1; transform: none; }

/* ============================================================
   Schrittleiste
   ============================================================ */
.calc-steps {
  list-style: none; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 0 clamp(14px, 1.6vw, 36px); border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 9, 11, .22);
}
.calc-steps button {
  width: 100%; background: none; border: 0; cursor: pointer; color: var(--tx-3);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 6px; font: inherit; font-size: var(--fs-micro); transition: color .3s var(--ease);
}
.calc-steps button:disabled { cursor: default; }
.calc-steps i {
  font-style: normal; width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); transition: .35s var(--ease);
}
.calc-steps .done button { color: var(--tx-2); }
.calc-steps .done button:not(:disabled):hover { color: var(--tx); }
.calc-steps .done i { background: rgba(255, 61, 69, .14); border-color: rgba(255, 61, 69, .45); color: var(--red-bright); }
.calc-steps .cur button { color: var(--tx); font-weight: 550; }
.calc-steps .cur i { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 5px rgba(192, 22, 29, .18); }
@media (max-width: 700px) {
  .calc-steps button span { display: none; }
  .calc-steps button { padding: 12px 4px; }
  .calc-badge { display: none; }
}
.calc-hd .ico { flex: none; }

/* ============================================================
   Fahrzeugauswahl
   ============================================================ */
.veh { display: grid; gap: clamp(18px, 1.6vw, 28px); }
.veh-lbl { display: block; font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); font-weight: 550; margin-bottom: 10px; }
.veh-q { position: relative; }
.veh-q > svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--tx-3); pointer-events: none; }
.veh-q .inp { padding-left: 50px; font-size: var(--fs-body); min-height: 58px; }
.veh-sugg {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--surface-2); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 6px; max-height: 360px; overflow: auto;
}
.veh-sg {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border: 0; border-radius: 10px; background: none; color: var(--tx);
  font: inherit; font-size: var(--fs-small); text-align: left; cursor: pointer;
}
.veh-sg span { font-size: var(--fs-micro); color: var(--tx-3); white-space: nowrap; }
.veh-sg:hover, .veh-sg.on { background: rgba(255, 61, 69, .14); }
.veh-none { padding: 14px; font-size: var(--fs-micro); color: var(--tx-3); }
.veh-brands { display: flex; flex-wrap: wrap; gap: 8px; }
.veh-brand {
  padding: 9px 15px; border-radius: 100px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  color: var(--tx-2); font: inherit; font-size: var(--fs-micro); cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.veh-brand:hover { border-color: rgba(255, 255, 255, .26); color: var(--tx); }
.veh-brand.on { border-color: var(--red-bright); background: rgba(192, 22, 29, .2); color: #fff; }
.veh-grid { display: grid; gap: 16px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.veh-grid .veh-free { grid-column: 1 / -1; }
@media (max-width: 640px) { .veh-grid { grid-template-columns: 1fr; } }
select.inp:disabled { opacity: .5; cursor: not-allowed; }

/* Segmentschalter */
.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.seg .seg-o { flex: 1 1 auto; position: relative; cursor: pointer; margin: 0; }
.seg .seg-o input { position: absolute; opacity: 0; pointer-events: none; }
.seg .seg-o span {
  display: block; text-align: center; padding: 10px 12px; border-radius: 10px; white-space: nowrap;
  font-size: var(--fs-micro); color: var(--tx-2); transition: background-color .3s var(--ease), color .3s var(--ease);
}
.seg .seg-o:hover span { color: var(--tx); background: rgba(255, 255, 255, .05); }
.seg .seg-o input:checked + span { background: var(--red); color: #fff; box-shadow: 0 8px 22px -10px rgba(192, 22, 29, .9); }
.seg .seg-o input:focus-visible + span { outline: 2px solid var(--red-bright); outline-offset: 2px; }

.veh-card {
  display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: center;
  padding: clamp(16px, 1.4vw, 24px); border-radius: var(--r);
  border: 1px solid rgba(255, 61, 69, .35);
  background: linear-gradient(150deg, rgba(192, 22, 29, .16), rgba(255, 255, 255, .02) 70%);
  animation: stepin .45s var(--ease-out) both;
}
.veh-card.need { border-color: rgba(255, 196, 0, .45); background: linear-gradient(150deg, rgba(255, 196, 0, .1), rgba(255, 255, 255, .02) 70%); }
.veh-card-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--red); color: #fff; }
.veh-card-ic svg { width: 30px; height: 30px; }
.veh-card-tx b { display: block; font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.veh-card-tx span { font-size: var(--fs-micro); color: var(--tx-3); }
.veh-card-kl { grid-column: 1 / -1; }
.veh-card-kl .veh-lbl { margin-bottom: 8px; }

/* ============================================================
   Schadenbereiche – klickbare Fahrzeugskizze
   ============================================================ */
.dmg { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(24px, 3vw, 64px); align-items: start; }
@media (max-width: 760px) { .dmg { grid-template-columns: 1fr; } }
.dmg-car {
  position: relative; display: grid; justify-items: center; gap: 12px;
  padding: 18px 14px 14px; border-radius: var(--r-lg); border: 1px solid var(--line-soft);
  background: radial-gradient(80% 60% at 50% 40%, rgba(255, 255, 255, .05), transparent 70%);
}
.car { width: 100%; max-width: 250px; height: auto; overflow: visible; user-select: none; -webkit-tap-highlight-color: transparent; }
@media (max-width: 760px) { .car { max-width: 210px; } }
.car-t { fill: var(--tx-3); font-size: 11px; letter-spacing: .22em; text-anchor: middle; font-weight: 600; }
.car-body { fill: #10161D; }
.car-line { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 1.6; pointer-events: none; }
.z {
  fill: rgba(255, 255, 255, .035); stroke: rgba(255, 255, 255, .17); stroke-width: 1;
  cursor: pointer; transition: fill .25s var(--ease), stroke .25s var(--ease), opacity .25s var(--ease);
  transform-box: fill-box; transform-origin: center;
}
.z-rad { fill: #0A0E12; stroke: rgba(255, 255, 255, .3); }
.z-glas { fill: rgba(140, 180, 210, .12); }
.z-licht { fill: rgba(255, 255, 255, .22); }
.z-spiegel { fill: #141B23; stroke: rgba(255, 255, 255, .34); }
.z.hov { fill: rgba(255, 255, 255, .14); stroke: rgba(255, 255, 255, .5); }
.z.on { fill: rgba(255, 61, 69, .58); stroke: #FF6B72; }
.z.on.hov { fill: rgba(255, 61, 69, .72); }
.z.off { opacity: .22; pointer-events: none; }
.z.pop { animation: zpop .5s var(--ease-out); }
@keyframes zpop { 0% { transform: scale(.94); filter: brightness(1.8); } 100% { transform: none; filter: none; } }
.dmg-tip { min-height: 1.5em; font-size: var(--fs-micro); color: var(--tx-3); text-align: center; }
.dmg-tip b { color: var(--tx); font-weight: 550; }
.dmg-side .opts.chips { margin-bottom: clamp(18px, 1.6vw, 28px); }

.live {
  display: grid; gap: 4px; padding: clamp(16px, 1.3vw, 22px) clamp(18px, 1.5vw, 26px);
  border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}
.live > span { font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); font-weight: 550; }
.live b { font-size: clamp(24px, 2vw, 38px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.live small { font-size: var(--fs-micro); color: var(--tx-3); }

/* ============================================================
   Details – Wertregler
   ============================================================ */
.det { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 2vw, 40px); align-items: start; margin-bottom: clamp(26px, 2.4vw, 42px); }
@media (max-width: 760px) { .det { grid-template-columns: 1fr; } }
.det-wert { display: grid; gap: 12px; }
.det-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.det-hd label { font-size: var(--fs-small); color: var(--tx-2); }
.det-hd output { font-size: clamp(22px, 1.8vw, 34px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.det-wert small { font-size: var(--fs-micro); color: var(--tx-3); }
.det-scale { position: relative; height: 1.4em; margin: 0 11px; font-size: 12px; color: var(--tx-3); }
.det-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.det-scale span:first-child { transform: none; margin-left: -11px; }
.det-scale span:last-child { transform: translateX(-100%); margin-left: 11px; }
.det-lbl { margin-bottom: 14px; }

.range {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; margin: 0;
}
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright)) 0 / var(--p) 100% no-repeat, rgba(255, 255, 255, .1);
}
.range::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--red-deep), var(--red-bright)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 4px solid var(--red); box-shadow: 0 4px 14px rgba(0, 0, 0, .5), 0 0 0 6px rgba(192, 22, 29, .18);
}
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--red); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(255, 61, 69, .35); }

/* ============================================================
   E-Mail-Popup
   ============================================================ */
html.mm-lock { overflow: hidden; }
.mm { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.mm[hidden] { display: none; }
.mm-bg { position: absolute; inset: 0; background: rgba(4, 6, 8, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s var(--ease); }
.mm-box {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto;
  border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(170deg, var(--surface-2), var(--ink-2) 70%);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
  opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
  overscroll-behavior: contain;
}
.mm.on .mm-bg { opacity: 1; }
.mm.on .mm-box { opacity: 1; transform: none; }
.mm-hd {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px;
  padding: 18px clamp(18px, 2vw, 28px); border-bottom: 1px solid var(--line);
  background: rgba(17, 22, 28, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mm-hd > div { flex: 1; min-width: 0; }
.mm-hd b { display: block; font-size: var(--fs-small); font-weight: 600; }
.mm-hd > div > span { display: block; font-size: var(--fs-micro); color: var(--tx-3); }
.mm-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; }
.mm-ic svg { width: 21px; height: 21px; }
.mm-x { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--tx-2); cursor: pointer; display: grid; place-items: center; transition: .3s var(--ease); }
.mm-x:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.mm-x svg { width: 18px; height: 18px; }
.mm-form { padding: clamp(18px, 2vw, 28px); display: grid; gap: 18px; }
.mm-mail { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .025); }
.mm-line { display: flex; align-items: center; gap: 14px; padding: 0 16px; min-height: 50px; font-size: var(--fs-micro); }
.mm-line + .mm-line { border-top: 1px solid var(--line); }
.mm-line > span, .mm-line > label { width: 58px; flex: none; color: var(--tx-3); }
.mm-line b { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 9px; border-radius: 100px; background: rgba(255, 61, 69, .14); border: 1px solid rgba(255, 61, 69, .35); color: #fff; font-weight: 550; }
.mm-line b svg { width: 15px; height: 15px; }
.mm-line input { flex: 1; min-width: 0; background: none; border: 0; color: var(--tx); font: inherit; padding: 14px 0; outline: none; }
.mm-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mm-f { display: grid; gap: 7px; align-content: start; }
.mm-f.full { grid-column: 1 / -1; }
@media (max-width: 600px) { .mm-grid { grid-template-columns: 1fr; } }
.mm-f > label { font-size: var(--fs-micro); color: var(--tx-2); font-weight: 500; }
.mm-f > label i { color: var(--red-bright); font-style: normal; }
.mm-opt { color: var(--tx-3); font-weight: 400; }
.mm-ta { min-height: 200px; font-size: var(--fs-micro); line-height: 1.55; resize: vertical; font-variant-numeric: tabular-nums; }
.mm-err { display: none; font-size: 13px; color: #FF8A8F; }
.mm-f.bad .mm-err { display: block; }
.mm-f.bad .inp { border-color: rgba(255, 61, 69, .75); box-shadow: 0 0 0 4px rgba(255, 61, 69, .12); }
.mm-f.bad .check input { border-color: rgba(255, 61, 69, .75); }
.mm-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.mm-acts .btn svg { width: 18px; height: 18px; }
.mm-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--tx-3); line-height: 1.5; }
.mm-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.mm-done { padding: clamp(34px, 4vw, 60px) clamp(22px, 3vw, 48px); display: grid; justify-items: center; text-align: center; gap: 14px; }
.mm-done b { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.02em; max-width: 28ch; }
.mm-done p { color: var(--tx-2); font-size: var(--fs-small); max-width: 52ch; margin-bottom: 8px; }
.mm-ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(53, 208, 127, .14); border: 1px solid rgba(53, 208, 127, .45); color: #7BE0AC; }
.mm-ok svg { width: 28px; height: 28px; }
@media (max-width: 600px) {
  .mm { padding: 0; align-items: end; }
  .mm-box { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; transform: translateY(40px); }
  .mm-acts .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .mm-bg, .mm-box, .z, .calc-steps i { transition: none; }
  .z.pop, .veh-card { animation: none; }
}

/* [hidden] muss gegen display:grid/flex der Komponenten gewinnen */
.calc [hidden]:not(.calc-back), .mm [hidden] { display: none !important; }
.calc .btn svg, .mm .btn svg { width: 18px; height: 18px; }
