@bytebrand/fe-ui-core-autobahn 1.0.217 → 1.0.219

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/theme/md3.css CHANGED
@@ -55,9 +55,31 @@
55
55
  --md-secondary-container: #e7e9f1;
56
56
  --md-on-secondary-container: #3a4150;
57
57
 
58
- /* price-rating + deal accent (green) — same "good" tier green (TIER_COLORS[0], #168A45) and
59
- 16%-tint background as .fin-eval-pill--good (FinanceCalculator/VdpModules), so the
60
- search-list/VDP-header StatChip and the finance-card rating pill read as the same color. */
58
+ /* price-rating badges, the same on every page (Figma 474sauvNgCYK2mEq5iks9e 142:3643 "Die
59
+ auto.de Bewertungskategorien"): text (fg) on background (bg) per tier, and the bar segment
60
+ colour (bar). constants/autobahn.ts holds the same values (TIER_TEXT_COLORS,
61
+ TIER_BACKGROUNDS, TIER_COLORS, NO_RATING_*) for the inline-styled pills; fe-main's
62
+ ratingPalette test keeps the two in step. */
63
+ --rating-top-fg: #168a45;
64
+ --rating-top-bg: #dff3e5;
65
+ --rating-top-bar: #168a45;
66
+ --rating-good-fg: #66b84d;
67
+ --rating-good-bg: #e4f3df;
68
+ --rating-good-bar: #66b84d;
69
+ --rating-fair-fg: #ffb800;
70
+ --rating-fair-bg: #fff6db;
71
+ --rating-fair-bar: #f7c544;
72
+ --rating-raised-fg: #f26b43;
73
+ --rating-raised-bg: #ffefd5;
74
+ --rating-raised-bar: #f26b43;
75
+ --rating-high-fg: #e60000;
76
+ --rating-high-bg: #ffd3d3;
77
+ --rating-high-bar: #e60000;
78
+ --rating-none-fg: #5b6b7f;
79
+ --rating-none-bg: #c8d1de;
80
+
81
+ /* deal accent (green) — generic "good" chips (e.g. the price-drop chip); the price-rating
82
+ badges use the --rating-* colours above. */
61
83
  --md-good: #0f7b43;
62
84
  --md-good-container: color-mix(in srgb, #168a45 16%, transparent);
63
85
  --md-on-good-container: #168a45;
@@ -468,6 +490,32 @@ line-height: 31px;
468
490
  background: var(--md-warn-container);
469
491
  color: var(--md-on-warn-container);
470
492
  }
493
+ /* "Keine Bewertung" as a plain tone */
494
+ .md3 .statchip--neutral {
495
+ color: var(--rating-none-fg);
496
+ background: var(--rating-none-bg);
497
+ }
498
+ /* the price-rating chip (StatChip `rating`, VDP header + search list row): each tier its own
499
+ badge colours, the same as every other rating badge (--rating-*). */
500
+ .md3 .statchip--rating-top { color: var(--rating-top-fg); background: var(--rating-top-bg); }
501
+ .md3 .statchip--rating-good { color: var(--rating-good-fg); background: var(--rating-good-bg); }
502
+ .md3 .statchip--rating-fair { color: var(--rating-fair-fg); background: var(--rating-fair-bg); }
503
+ .md3 .statchip--rating-raised { color: var(--rating-raised-fg); background: var(--rating-raised-bg); }
504
+ .md3 .statchip--rating-high { color: var(--rating-high-fg); background: var(--rating-high-bg); }
505
+ .md3 .statchip--rating-none { color: var(--rating-none-fg); background: var(--rating-none-bg); }
506
+ /* a price-rating badge (with its bar) that opens the car's "Preis & Marktwert" section
507
+ (ui/ratingLink.ts ratingLinkProps): pointer cursor, and a focus ring for the keyboard */
508
+ .md3 .rating-link {
509
+ cursor: pointer;
510
+ }
511
+ .md3 span.rating-link {
512
+ display: inline-flex;
513
+ }
514
+ .md3 .rating-link:focus-visible {
515
+ outline: 2px solid var(--md-primary);
516
+ outline-offset: 3px;
517
+ border-radius: 12px;
518
+ }
471
519
  /* "4" footnote (VDP header's "Guter Preis" chip) — .statchip is a flex container like
472
520
  .fin-eval-pill, so the same position:relative/top lift technique applies, just re-tuned for
473
521
  this chip's smaller 12px text. */
@@ -511,15 +559,6 @@ line-height: 31px;
511
559
  font-size: 9px;
512
560
  line-height: 9px;
513
561
  }
514
- /* 'good' tone here is specifically the "Guter Preis" rating (same canonical green as the
515
- fin-eval-pill "good" tier elsewhere on this page) — literal color, not the --md-good-container
516
- token, matching that other pill's own literal-color treatment. --warn (Fairer Preis) is
517
- untouched, still tokenized. */
518
- .md3 .vdp-headrow .statchip--good,
519
- .md3 .listcard-price .statchip--good {
520
- color: rgb(22, 138, 69);
521
- background: color-mix(in srgb, rgb(22, 138, 69) 16%, transparent);
522
- }
523
562
 
524
563
  /* small image label (views, photo count) */
525
564
  .md3 .imglabel {
@@ -2078,10 +2117,10 @@ line-height: 31px;
2078
2117
  gap: 8px;
2079
2118
  flex: none;
2080
2119
  align-items: stretch;
2081
- /* Figma 64860-62117: fixed 106px column so the pill (below, display:flex + align-items:
2082
- stretch cascading down) and the bar (already width:100%) both span the same width instead
2083
- of shrink-wrapping to whichever tier label happens to be widest. */
2084
- width: 106px;
2120
+ /* Figma 64860-62117: fixed column so the pill and the bar (width:100%) span the same width
2121
+ instead of shrink-wrapping to whichever tier label happens to be widest. 108 (not the frame's
2122
+ 106) since the pill is now 108×28 everywhere (EvalPill). */
2123
+ width: 108px;
2085
2124
  }
2086
2125
  @media (max-width: 600px) {
2087
2126
  .md3 .cf-panel .fin-eval-col {
@@ -8813,7 +8852,6 @@ line-height: 31px;
8813
8852
  price row alone); now applied at every width on request, so mobile CarCard matches too. */
8814
8853
  .md3 .cc-price .pp-eyebrow,
8815
8854
  .md3 .fin-calc-card .pp-eyebrow,
8816
- .md3 .vdp-bottom-bar .pp-eyebrow,
8817
8855
  .md3 .fin-modal .pp-eyebrow {
8818
8856
  position: relative;
8819
8857
  font-family: Arial, Helvetica, Arimo, sans-serif;
@@ -8839,7 +8877,6 @@ line-height: 31px;
8839
8877
  CarRow's desktop stacked Kaufen row (.listcard-price .pp-old, PpRow's "2" badge). */
8840
8878
  .md3 .cc-price .pp-eyebrow-badge,
8841
8879
  .md3 .fin-calc-card .pp-eyebrow-badge,
8842
- .md3 .vdp-bottom-bar .pp-eyebrow-badge,
8843
8880
  .md3 .fin-modal .pp-eyebrow-badge,
8844
8881
  .md3 .listcard-price .pp-old .pp-eyebrow-badge {
8845
8882
  display: inline-flex;
@@ -8870,7 +8907,6 @@ line-height: 31px;
8870
8907
  /* mobile-only nudge: same badge, tucked slightly closer to the eyebrow text on narrow cards. */
8871
8908
  @media (max-width: 1024px) {
8872
8909
  .md3 .cc-price .pp-eyebrow-badge,
8873
- .md3 .vdp-bottom-bar .pp-eyebrow-badge,
8874
8910
  .md3 .fin-modal .pp-eyebrow-badge {
8875
8911
  top: -5px;
8876
8912
  right: -5px;
@@ -8880,7 +8916,6 @@ line-height: 31px;
8880
8916
  figure than the "3" badge's own offsets above. */
8881
8917
  .md3 .cc-price .pp-hero-old .pp-eyebrow-badge,
8882
8918
  .md3 .fin-calc-card .pp-hero-old .pp-eyebrow-badge,
8883
- .md3 .vdp-bottom-bar .fin-rate-old-bb .pp-eyebrow-badge,
8884
8919
  .md3 .fin-modal .fin-rate-old-list .pp-eyebrow-badge {
8885
8920
  top: -7px;
8886
8921
  right: -12px;
@@ -8890,7 +8925,6 @@ line-height: 31px;
8890
8925
  badge) — same popover, reused rather than re-styled. */
8891
8926
  .md3 .cc-price .pp-uvp-tooltip,
8892
8927
  .md3 .fin-calc-card .pp-uvp-tooltip,
8893
- .md3 .vdp-bottom-bar .pp-uvp-tooltip,
8894
8928
  .md3 .fin-modal .pp-uvp-tooltip,
8895
8929
  .md3 .listcard-price .pp-old .pp-uvp-tooltip {
8896
8930
  position: absolute;
@@ -8905,12 +8939,6 @@ line-height: 31px;
8905
8939
  white-space: normal;
8906
8940
  cursor: default;
8907
8941
  }
8908
- /* the bottom bar spans nearly the full phone width, so the shared -84px offset (tuned for
8909
- the narrower .cc-price card / .fin-calc-card sheet) leaves the popover sitting too far left. */
8910
- .md3 .vdp-bottom-bar .pp-uvp-tooltip {
8911
- top: -20px;
8912
- right: -110px;
8913
- }
8914
8942
  /* CarRow's desktop stacked Kaufen row is narrower still (.pp-old sits inline in the price
8915
8943
  row, not a full-width card), so the shared -84px offset overhangs it — pull it in closer. */
8916
8944
  .md3 .listcard-price .pp-old .pp-uvp-tooltip {
@@ -8944,7 +8972,6 @@ line-height: 31px;
8944
8972
  same "glass circle" convention as VdpViewer's close/back/next overlay buttons. */
8945
8973
  .md3 .cc-price .pp-uvp-tooltip-close,
8946
8974
  .md3 .fin-calc-card .pp-uvp-tooltip-close,
8947
- .md3 .vdp-bottom-bar .pp-uvp-tooltip-close,
8948
8975
  .md3 .fin-modal .pp-uvp-tooltip-close,
8949
8976
  .md3 .listcard-price .pp-old .pp-uvp-tooltip-close {
8950
8977
  position: absolute;
@@ -8963,7 +8990,6 @@ line-height: 31px;
8963
8990
  }
8964
8991
  .md3 .cc-price .pp-uvp-tooltip-body,
8965
8992
  .md3 .fin-calc-card .pp-uvp-tooltip-body,
8966
- .md3 .vdp-bottom-bar .pp-uvp-tooltip-body,
8967
8993
  .md3 .fin-modal .pp-uvp-tooltip-body,
8968
8994
  .md3 .listcard-price .pp-old .pp-uvp-tooltip-body {
8969
8995
  font-family: Arial, Helvetica, Arimo, sans-serif;
@@ -9120,7 +9146,7 @@ line-height: 31px;
9120
9146
  .md3 .cc-price .fin-eval-col {
9121
9147
  display: flex;
9122
9148
  flex-direction: column;
9123
- gap: 16px;
9149
+ gap: 13px; /* pill → bar, Figma */
9124
9150
  width: 112px;
9125
9151
  flex: none;
9126
9152
  }
@@ -9128,8 +9154,8 @@ line-height: 31px;
9128
9154
  .cc-price, incl. the VDP "Ähnliche Fahrzeuge" rail; .fin-calc-card; .fin-modal) — one shared
9129
9155
  rule instead of three copies. `background`/`color` are deliberately NOT set here: they stay
9130
9156
  driven by the tier-color inline style each render site sets (see PriceEvalCol in
9131
- cardParts.tsx / FinanceCalculator.tsx / VdpModules.tsx, all of which already resolve to the
9132
- canonical rgb(22,138,69) for the 'good' tier) — a `!important` used to hardcode this pill's
9157
+ cardParts.tsx / FinanceCalculator.tsx / VdpModules.tsx: evalPillOf, the --rating-* badge
9158
+ colours) — a `!important` used to hardcode this pill's
9133
9159
  background to a fixed #dff3e5 here, silently overriding that inline value regardless of tier. */
9134
9160
  .md3 .cc-price .fin-eval-pill,
9135
9161
  .md3 .fin-calc-card .fin-eval-pill,
@@ -9165,9 +9191,9 @@ line-height: 31px;
9165
9191
  line-height: 9px;
9166
9192
  }
9167
9193
  .md3 .cc-price .fin-eval-bar {
9168
- /* matches the pill's own fixed 108px right above (both sit in the same 112px .fin-eval-col),
9169
- so the two stay visually aligned instead of the bar stretching to the full column width. */
9170
- width: 108px;
9194
+ /* the full 112px .fin-eval-col, exactly as wide as the pill right above it (which fills the
9195
+ column too, .fin-eval-pill--fit) */
9196
+ width: 100%;
9171
9197
  height: 7px;
9172
9198
  }
9173
9199
  .md3 .cc-price .fin-eval-seg:first-child {
@@ -9176,15 +9202,13 @@ line-height: 31px;
9176
9202
  .md3 .cc-price .fin-eval-seg:last-of-type {
9177
9203
  border-radius: 0 4px 4px 0;
9178
9204
  }
9205
+ /* the ring takes its segment's colour (EvalBar's inline TIER_COLORS), Guter Preis included */
9179
9206
  .md3 .cc-price .fin-eval-thumb {
9180
9207
  width: 18px;
9181
9208
  height: 18px;
9182
9209
  border-width: 2px;
9183
9210
  border-radius: 9px;
9184
9211
  }
9185
- .md3 .cc-price .fin-eval-thumb--good {
9186
- border-color: #168a45 !important;
9187
- }
9188
9212
  /* financing/leasing terms line + "Finanzierungsdetails"/"Leasingdetails" link (PriceTerms in
9189
9213
  cardParts.tsx), full-width under the price/rating row. Same quiet typography as .pp-hero-terms
9190
9214
  (PricePaths); the link resets button chrome and reuses the primary color so it reads as tappable. */
@@ -9455,7 +9479,7 @@ line-height: 31px;
9455
9479
  .md3 .fin-calc-card .fin-eval-col {
9456
9480
  display: flex;
9457
9481
  flex-direction: column;
9458
- gap: 16px;
9482
+ gap: 13px; /* pill → bar, Figma */
9459
9483
  grid-area: evalcol;
9460
9484
  width: 112px;
9461
9485
  justify-self: end;
@@ -9471,7 +9495,7 @@ line-height: 31px;
9471
9495
  .md3 .fin-modal .fin-eval-col {
9472
9496
  display: flex;
9473
9497
  flex-direction: column;
9474
- gap: 16px;
9498
+ gap: 13px; /* pill → bar, Figma */
9475
9499
  grid-area: evalcol;
9476
9500
  width: 112px;
9477
9501
  justify-self: end;
@@ -9504,6 +9528,40 @@ line-height: 31px;
9504
9528
  .md3 .fin-eval-pill .lucide {
9505
9529
  flex: none;
9506
9530
  }
9531
+ /* EvalPill (FinanceCalculator.tsx): the price-rating pill is always 108×28 whatever the rating
9532
+ (Figma "Guter-Preis⁴", 108 Fill × 28 Hug), in the offer card, the finance sheet, the car cards
9533
+ and the checkout. The label keeps 20px either side; EvalPill steps the font size down from this
9534
+ 12px until a long label ("Keine Bewertung⁴", "Erhöhter Preis⁴") fits. Later in the file and as
9535
+ specific as the per-location .fin-eval-pill / --good rules above, so it wins over them. */
9536
+ /* "Fill": exactly as wide as the bar below it (PM 2026-11-20) — the column's width (112 in the offer
9537
+ card, the finance sheet and the car cards, 108 in the checkout), the pill-cell stretching to it */
9538
+ .md3 .fin-eval-pill-cell .fin-eval-pill--fit {
9539
+ flex: none;
9540
+ width: 100%;
9541
+ height: 28px;
9542
+ box-sizing: border-box;
9543
+ padding: 0 20px;
9544
+ display: flex;
9545
+ align-items: center;
9546
+ justify-content: center;
9547
+ gap: 0;
9548
+ border-radius: 16px;
9549
+ font-family: 'Arial', 'Arimo', sans-serif;
9550
+ font-weight: 700;
9551
+ font-size: 12px;
9552
+ line-height: 14px;
9553
+ white-space: nowrap;
9554
+ }
9555
+ /* the "4" scales with the fitted label: 9px at the full 12px, raised to the cap height */
9556
+ .md3 .fin-eval-pill-cell .fin-eval-pill--fit .fin-eval-pill-text sup {
9557
+ position: relative;
9558
+ top: -0.3em;
9559
+ left: 0;
9560
+ margin-left: 0.1em;
9561
+ font-size: 0.75em;
9562
+ line-height: 0;
9563
+ vertical-align: baseline;
9564
+ }
9507
9565
  /* gradient spectrum bar + circle thumb — replaces opacity-segment design */
9508
9566
  /* segmented evaluation bar (Figma round 12/13: discrete tier segments, CONTINUOUS —
9509
9567
  no gaps; only the outer corners are rounded so the thumb can overflow) */
@@ -9636,41 +9694,6 @@ line-height: 31px;
9636
9694
  transform: rotate(12.53deg);
9637
9695
  transform-origin: center;
9638
9696
  }
9639
- /* sticky bottom bar struck old rate — diagonal red strike (Figma), replacing the shared
9640
- .fin-rate-old's native horizontal line-through for this instance only. */
9641
- .md3 .bb-price-row .fin-rate-old.fin-rate-old-bb {
9642
- position: relative;
9643
- display: inline-block;
9644
- font-family: Arial, Helvetica, Arimo, sans-serif;
9645
- font-style: normal;
9646
- font-weight: 400;
9647
- font-size: 17px;
9648
- line-height: 20px;
9649
- color: #111820;
9650
- text-decoration: none;
9651
- padding-bottom: 4px;
9652
- }
9653
- .md3 .bb-price-row .fin-rate-old.fin-rate-old-bb::after {
9654
- content: "";
9655
- position: absolute;
9656
- left: -2px;
9657
- right: 0px;
9658
- top: 42%;
9659
- border-top: 2px solid #E60000;
9660
- transform: rotate(12.53deg);
9661
- transform-origin: center;
9662
- }
9663
- .md3 .bb-price-row .fin-rate-old.fin-rate-old-bb sup {
9664
- position: relative;
9665
- top: -5px;
9666
- vertical-align: super;
9667
- font-family: Arial, Helvetica, Arimo, sans-serif;
9668
- font-style: normal;
9669
- font-weight: 400;
9670
- font-size: 8px;
9671
- line-height: 9px;
9672
- color: #111820;
9673
- }
9674
9697
  /* stacked unit column beside the hero rate (Figma: struck old rate ABOVE "/mtl.") */
9675
9698
  .md3 .fin-rate-unit {
9676
9699
  display: flex;
@@ -9984,9 +10007,9 @@ line-height: 31px;
9984
10007
  }
9985
10008
  }
9986
10009
 
9987
- /* sticky mobile bar (VDP) — Figma "Sticky Footer": mode tabs + rate/eval row + CTA row.
9988
- Hidden (slid off-screen) until the page scrolls past the main offer card, matching the
9989
- desktop VdpStickyBar's show/scroll-gated behavior. */
10010
+ /* sticky mobile bar (VDP) — Figma "Sticky Footer": mode tabs + CTA row (ADV-436: nothing else, so
10011
+ the bar is as tall as its content). Hidden (slid off-screen) until the page scrolls past the
10012
+ main offer card, matching the desktop VdpStickyBar's show/scroll-gated behavior. */
9990
10013
  .md3 .vdp-bottom-bar {
9991
10014
  position: fixed;
9992
10015
  left: 0;
@@ -9994,7 +10017,7 @@ line-height: 31px;
9994
10017
  bottom: 0;
9995
10018
  z-index: 60;
9996
10019
  width: auto;
9997
- height: 196px;
10020
+ height: auto;
9998
10021
  background: rgba(244, 243, 243, 0.95);
9999
10022
  border: 1px solid #D4DDE7;
10000
10023
  border-radius: 16px 16px 0 0;
@@ -10033,53 +10056,12 @@ line-height: 31px;
10033
10056
  line-height: 16px;
10034
10057
  color: #005CFF;
10035
10058
  }
10036
- .md3 .bb-price-row .num.num--len5 {
10037
- font-size: 42px;
10038
- line-height: 47px;
10039
- }
10040
- .md3 .bb-price-row .num.num--len6 {
10041
- font-size: 38px;
10042
- line-height: 42px;
10043
- }
10044
- .md3 .bb-price-row {
10045
- display: flex;
10046
- align-items: center;
10047
- gap: 30px;
10048
- padding-top: 10px;
10049
- }
10050
- .md3 .vdp-bottom-bar .fin-cond {
10051
- margin-top: 4px;
10052
- }
10053
- .md3 .bb-price-row .bb-price-cash-sup {
10054
- position: relative;
10055
- top: -15px;
10056
- left: 2px;
10057
- vertical-align: super;
10058
- font-family: Arial, Helvetica, Arimo, sans-serif;
10059
- font-style: normal;
10060
- font-weight: 400;
10061
- font-size: 10px;
10062
- line-height: 11px;
10063
- color: #111820;
10064
- }
10065
- .md3 .bb-eval {
10066
- display: flex;
10067
- flex-direction: column;
10068
- align-items: flex-end;
10069
- align-self: flex-start;
10070
- gap: 5px;
10071
- flex: none;
10072
- width: 135px;
10073
- }
10074
- .md3 .bb-eval .fin-eval-pill {
10075
- padding: 4px 10px;
10076
- font-size: 11.5px;
10077
- }
10059
+ /* the space under the tabs (the bar's 15px bottom padding mirrors it) */
10078
10060
  .md3 .bb-cta-row {
10079
10061
  display: flex;
10080
10062
  gap: 3px;
10081
10063
  align-items: center;
10082
- margin-top: auto;
10064
+ margin-top: 15px;
10083
10065
  }
10084
10066
  .md3 .bb-adjust {
10085
10067
  color: var(--md-on-surface);
@@ -12237,7 +12219,6 @@ color: #005CFF;
12237
12219
  .md3 .hiw-section,
12238
12220
  .md3 #vdp-kontakt,
12239
12221
  .md3 #vdp-bewertungen,
12240
- .md3 #vdp-preis,
12241
12222
  .md3 .vdp-similar {
12242
12223
  margin-top: 14px !important;
12243
12224
  }
@@ -12250,187 +12231,6 @@ color: #005CFF;
12250
12231
  border: 1px solid #D4DDE7;
12251
12232
  box-shadow: none;
12252
12233
  }
12253
- .md3 #vdp-preis {
12254
- padding: 0 !important;
12255
- border: 1px solid #D4DDE7;
12256
- box-shadow: none;
12257
- }
12258
- .md3 #vdp-preis h2 {
12259
- padding: 22px 22px 0 !important;
12260
- margin-top: 0;
12261
- margin-bottom: 11px !important;
12262
- font-family: Arial, Helvetica, Arimo, sans-serif;
12263
- font-style: normal;
12264
- font-weight: 700;
12265
- font-size: 24px;
12266
- line-height: 29px;
12267
- color: #1d2a38;
12268
- }
12269
- .md3 #vdp-preis .fin-eval-bar {
12270
- height: 9px;
12271
- }
12272
- .md3 #vdp-preis .fin-eval-seg:first-child {
12273
- border-radius: 4px 0 0 4px;
12274
- }
12275
- .md3 #vdp-preis .fin-eval-seg:last-of-type {
12276
- border-radius: 0 4px 4px 0;
12277
- }
12278
- .md3 #vdp-preis > div:first-of-type {
12279
- padding-left: 22px;
12280
- padding-right: 22px;
12281
- }
12282
- .md3 #vdp-preis > div:last-child {
12283
- margin-top: 24px !important;
12284
- }
12285
- .md3 .fin-criteria-card {
12286
- padding: 0 !important;
12287
- margin: 0 10px;
12288
- }
12289
- .md3 .fin-criteria-card > button {
12290
- padding: 13px 13px 25px 13px !important;
12291
- }
12292
- .md3 #vdp-preis .fin-criteria-card > button .md-title-sm {
12293
- font-family: Arial, Helvetica, Arimo, sans-serif;
12294
- font-style: normal;
12295
- font-weight: 700;
12296
- font-size: 13px !important;
12297
- line-height: 18px;
12298
- color: #1d2a38;
12299
- }
12300
- .md3 .fin-criteria-card > button > svg:last-child {
12301
- stroke-width: 2.6px !important;
12302
- }
12303
- .md3 .fin-criteria-card > button > svg:last-child path {
12304
- stroke-width: 2.6px !important;
12305
- }
12306
- .md3 .fin-criteria-card .fin-criteria-grid {
12307
- padding: 0 10px 20px 13px !important;
12308
- column-gap: 10px !important;
12309
- row-gap: 14px !important;
12310
- }
12311
- .md3 .fin-criteria-card .fin-criteria-icon-grid {
12312
- padding-top: 13px !important;
12313
- }
12314
- .md3 .fin-criteria-card .fin-criteria-grid svg {
12315
- width: 28px;
12316
- height: 28px;
12317
- }
12318
- .md3 .fin-criteria-card .fin-criteria-grid > div {
12319
- gap: 3px !important;
12320
- }
12321
- .md3 .fin-criteria-card .fin-criteria-grid > div.fin-criteria-tier-row {
12322
- gap: 12px !important;
12323
- }
12324
- .md3 .fin-criteria-card .fin-criteria-grid svg[viewBox="0 0 21 21"] {
12325
- width: 21px;
12326
- height: 21px;
12327
- }
12328
- .md3 #vdp-preis .fin-criteria-card .md-label-sm {
12329
- font-family: Arial, Helvetica, Arimo, sans-serif;
12330
- font-style: normal;
12331
- font-weight: 400;
12332
- font-size: 10.3px;
12333
- line-height: 14px;
12334
- color: #5b6b7f;
12335
- }
12336
- .md3 #vdp-preis .fin-criteria-card .md-title-sm {
12337
- font-family: Arial, Helvetica, Arimo, sans-serif;
12338
- font-style: normal;
12339
- font-weight: 700;
12340
- font-size: 10.3px !important;
12341
- line-height: 14px;
12342
- color: #1d2a38;
12343
- }
12344
- .md3 .fin-criteria-note {
12345
- margin: 0;
12346
- padding: 0 13px 20px;
12347
- font-family: Arial, Helvetica, Arimo, sans-serif;
12348
- font-style: normal;
12349
- font-weight: 400;
12350
- font-size: 10px;
12351
- line-height: 14px;
12352
- color: #5b6b7f;
12353
- }
12354
- .md3 .fin-criteria-divider {
12355
- width: 310px;
12356
- height: 1px;
12357
- background: #e6ecf3;
12358
- margin: 0 auto;
12359
- }
12360
- .md3 #vdp-preis > div:last-child > button {
12361
- font-family: Arial, Helvetica, Arimo, sans-serif;
12362
- font-style: normal;
12363
- font-weight: 700 !important;
12364
- font-size: 13px !important;
12365
- line-height: 18px;
12366
- color: #005cff !important;
12367
- padding-left: 22px !important;
12368
- padding-right: 22px !important;
12369
- }
12370
- .md3 #vdp-preis > div:last-child > button .lucide {
12371
- width: 18px;
12372
- height: 18px;
12373
- margin-left: auto;
12374
- stroke-width: 2.6px !important;
12375
- }
12376
- .md3 #vdp-preis > div:last-child > button .lucide path {
12377
- stroke-width: 2.6px !important;
12378
- }
12379
- .md3 #vdp-preis .fin-eval-thumb {
12380
- width: 26px;
12381
- height: 26px;
12382
- background: #ffffff;
12383
- border-width: 2px;
12384
- border-radius: 13px;
12385
- }
12386
- .md3 #vdp-preis .fin-eval-thumb--good {
12387
- border-color: #66b84d !important;
12388
- }
12389
- .md3 #vdp-preis .md-label-sm {
12390
- font-family: Arial, Helvetica, Arimo, sans-serif;
12391
- font-style: normal;
12392
- font-weight: 400;
12393
- font-size: 11.5px;
12394
- line-height: 15px;
12395
- color: #5b6b7f;
12396
- }
12397
- .md3 .fin-eval-good-badge {
12398
- margin-top: 25px !important;
12399
- height: 56px;
12400
- width: 100%;
12401
- box-sizing: border-box;
12402
- background: #dff3e5 !important;
12403
- border: 1px solid #a9e0b9;
12404
- border-radius: 12px !important;
12405
- padding-left: 22px !important;
12406
- padding-right: 22px !important;
12407
- }
12408
- .md3 .fin-eval-good-badge svg {
12409
- width: 18px;
12410
- height: 18px;
12411
- stroke: #66b84d;
12412
- }
12413
- .md3 .fin-eval-good-badge span {
12414
- font-family: Arial, Helvetica, Arimo, sans-serif;
12415
- font-style: normal;
12416
- font-weight: 700 !important;
12417
- font-size: 13px !important;
12418
- line-height: 18px;
12419
- color: #66b84d !important;
12420
- }
12421
- .md3 #vdp-preis > p {
12422
- margin-top: 0;
12423
- padding-top: 0;
12424
- padding-left: 22px;
12425
- padding-right: 22px;
12426
- margin-bottom: 10px !important;
12427
- font-family: Arial, Helvetica, Arimo, sans-serif;
12428
- font-style: normal;
12429
- font-weight: 400;
12430
- font-size: 13px;
12431
- line-height: 18px;
12432
- color: #5b6b7f;
12433
- }
12434
12234
  .md3 #vdp-bewertungen > div:first-child {
12435
12235
  gap: 26px !important;
12436
12236
  margin-bottom: 28px !important;
@@ -13139,7 +12939,7 @@ color: #005CFF;
13139
12939
  }
13140
12940
  /* narrower rating column (figma bar is 115px) frees room for the bigger rate; let the
13141
12941
  € /mtl. suffix wrap under the number instead of pushing the grid wide on 4-digit rates.
13142
- fin-eval-col becomes a real flex column here (pill above bar, fixed 16px gap — see the
12942
+ fin-eval-col becomes a real flex column here (pill above bar, fixed 13px gap — see the
13143
12943
  shared .fin-eval-col rule below), spanning both grid rows on the right. */
13144
12944
  .md3 .fin-price-grid {
13145
12945
  grid-template-columns: minmax(0, 1fr) 112px;
@@ -13175,13 +12975,13 @@ color: #005CFF;
13175
12975
  .md3 .fin-eval-col {
13176
12976
  display: flex;
13177
12977
  flex-direction: column;
13178
- gap: 16px;
12978
+ gap: 13px; /* pill → bar, Figma */
13179
12979
  grid-area: evalcol;
13180
12980
  }
13181
12981
  /* box sizing for this pill (all three of its locations) lives in the shared, higher-specificity
13182
12982
  .cc-price/.fin-calc-card/.fin-modal rule near the top of this file — this generic, unscoped
13183
12983
  copy used to ALSO force `background: #dff3e5 !important`, silently overriding every tier's
13184
- real inline color (the 'good' tier's canonical rgb(22,138,69) included) at this breakpoint. */
12984
+ real inline color at this breakpoint. */
13185
12985
  .md3 .fin-eval-bar {
13186
12986
  height: 7px;
13187
12987
  }
@@ -13197,9 +12997,6 @@ color: #005CFF;
13197
12997
  border-width: 2px;
13198
12998
  border-radius: 9px;
13199
12999
  }
13200
- .md3 .fin-eval-thumb--good {
13201
- border-color: #168a45 !important;
13202
- }
13203
13000
  .md3 .fin-cond {
13204
13001
  font-family: Arial, Helvetica, Arimo, sans-serif;
13205
13002
  font-style: normal;
@@ -15612,17 +15409,6 @@ color: #005CFF;
15612
15409
  margin-top: 14px;
15613
15410
  }
15614
15411
 
15615
- /* ADV-406 Sticky Footer (mobile only) — below .fin-cond (its 12px margin-bottom gives the gap
15616
- above), 4px to the CTA row. The bar's fixed height grows by the warning (34px + 4px). */
15617
- .md3 .bb-ccn {
15618
- --ccn-fs: 13px;
15619
- --ccn-color: #111820;
15620
- margin: 0 0 4px;
15621
- }
15622
- .md3 .vdp-bottom-bar {
15623
- height: 234px;
15624
- }
15625
-
15626
15412
  /* ADV-406/410 layers (FinanceDetailsModal, CDP + Checkout) — no conditions line there, so the
15627
15413
  Figma master colour; 13px per ADV-406 AC. */
15628
15414
  .md3 .fin-modal-ccn {
@@ -15731,11 +15517,6 @@ color: #005CFF;
15731
15517
  .md3 .fin-calc-card .show-mobile .pp-uvp-label {
15732
15518
  margin-right: 0;
15733
15519
  }
15734
- /* mobile sticky bar: the struck .fin-rate-old-bb carries an inline font-size of 15px (line 20px) */
15735
- .md3 .vdp-bottom-bar .pp-uvp-label {
15736
- font-size: 15px;
15737
- line-height: 20px;
15738
- }
15739
15520
  /* checkout step 3 (.cf-rate-old--buy 15px; the label is desktop-only there) */
15740
15521
  .md3 .cf-panel .pp-uvp-label {
15741
15522
  font-size: 15px;
@@ -15823,14 +15604,6 @@ color: #005CFF;
15823
15604
  color: inherit;
15824
15605
  }
15825
15606
 
15826
- /* ADV-405 follow-up — mobile sticky footer (VdpBottomBar) of a car WITH financing key figures
15827
- (.vdp-bottom-bar--kf, set on every tab so the tab row never moves when switching): the key figures
15828
- always take exactly 2 lines (CreditKeyFigures fits its font), measured bar 251px; Leasing/Kaufen
15829
- keep the same height (empty space instead of a jump). Cars without key figures keep the 234px. */
15830
- .md3 .vdp-bottom-bar.vdp-bottom-bar--kf {
15831
- height: 252px;
15832
- }
15833
-
15834
15607
  /* ADV-405 (PM 19.11): the key figures always take exactly two lines — each line unbroken, the
15835
15608
  block's font size steps down in CreditKeyFigures until both fit. The trailing "Details"
15836
15609
  link follows that size (its own fixed size would keep the line too wide). */
package/ui/StatChip.tsx CHANGED
@@ -2,17 +2,22 @@ import React from 'react';
2
2
 
3
3
  import Icon from './Icon';
4
4
 
5
- export type StatChipTone = 'good' | 'warn';
5
+ /** 'neutral' (grey) is for "Keine Bewertung", which is neither a good nor a warn rating. */
6
+ export type StatChipTone = 'good' | 'warn' | 'neutral';
6
7
 
7
8
  export interface StatChipProps {
8
9
  tone?: StatChipTone;
10
+ /** A price-rating chip: the mapRating() `rating` key ('top' … 'high', 'none'). It paints the chip
11
+ * in that tier's badge colours (md3.css .statchip--rating-<key>, the --rating-* palette)
12
+ * instead of the `tone`. */
13
+ rating?: string;
9
14
  /** kebab-case lucide icon name rendered before the content. */
10
15
  icon?: string;
11
16
  children?: React.ReactNode;
12
17
  }
13
18
 
14
- const StatChip: React.FunctionComponent<StatChipProps> = ({ tone = 'good', icon, children }) => (
15
- <span className={`statchip statchip--${tone}`}>
19
+ const StatChip: React.FunctionComponent<StatChipProps> = ({ tone = 'good', rating, icon, children }) => (
20
+ <span className={rating ? `statchip statchip--rating statchip--rating-${rating}` : `statchip statchip--${tone}`}>
16
21
  {icon && <Icon name={icon} size={14} />}
17
22
  {children}
18
23
  </span>
package/ui/index.ts CHANGED
@@ -29,6 +29,7 @@ export type { ChipProps } from './Chip';
29
29
 
30
30
  export { default as StatChip } from './StatChip';
31
31
  export type { StatChipProps, StatChipTone } from './StatChip';
32
+ export { ratingLinkProps, PRICE_SECTION_ID, PRICE_SECTION_HASH } from './ratingLink';
32
33
 
33
34
  export { default as CreditCostNotice, CREDIT_COST_WARNING_DE } from './CreditCostNotice';
34
35
  export type { CreditCostNoticeProps, CreditCostNoticeTone, CreditCostNoticeSize } from './CreditCostNotice';