/* ============================================================================
   conf.css — ADAC Maut-Konfigurator (lokaler Nachbau)
   Scope: alles unter #afh-conf-root / .afhc  — kein globaler Reset.

   Alle Zahlen/ Farben sind am LIVE-Konfigurator gemessen
   (www.adac.de/fahrzeugwelt/maut-vignette/buchung/one-cart/configure/,
    2026-11-23, 1440x900 und 390x844, Chromium 156 — getComputedStyle +
    getBoundingClientRect):

     Fläche            #f1f3f4         (body live: rgb(241,243,244))
     Primär            #ffcc00         (Button-Fläche live: rgb(255,204,0))
     Text stark        #121212         (gray-100: Überschriften, Buttons, Preise)
     Text mittel       #3d3d3d         (gray-200: Label, Fließtext)
     Text leise        #707070         (gray-300: Erläuterungen unter Kacheln)
     Text schwach      #a6a6a6         (gray-400)
     Linie             #ebebeb         (gray-600: Karten-Divider)
     Linie stark       #8d8d8d         (gray-350: Radio-/Checkbox-Rahmen)
     Info-Blau         #ecf9fd         (lightBlue, Notiz-Box)
     Rot               #dd3131         (ungültiges Feld)
     Grün              #008035
     Radius            8px  (rounded) · 4px (rounded-sm) · 32px (rounded-lg)

     Raster live: Inhaltsspalte 1256px @1440 (x 85..1341, Vorschau-Breite 1425),
     Kacheln 4 Spalten a 290px, gap 32px; Länder 3 Spalten a 327,5px (10/12),
     Produkte/Felder 628px (6/12); mobile 2 Spalten, gap 8/16px,
     Überschriften mobile 24px / desktop 42px.
   ========================================================================== */

@font-face {
  font-family: "ADACSans";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("/mirror_assets/assets.adac.de/raw/upload/fonts/variable/ADAC-Sans-Variable.woff2") format("woff2");
}
@font-face {
  font-family: "ADACSans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/mirror_assets/assets.adac.de/raw/upload/fonts/static/ADACSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "ADACSans";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/mirror_assets/assets.adac.de/raw/upload/fonts/static/ADACSans-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "ADACSlab";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("/mirror_assets/assets.adac.de/raw/upload/fonts/variable/ADAC-Slab-Variable.woff2") format("woff2");
}

/* ------------------------------------------------------------------ root -- */
.afhc,
.afhc *,
.afhc *::before,
.afhc *::after { box-sizing: border-box; }

.afhc {
  --afhc-yellow: #ffcc00;
  --afhc-yellow-dark: #f2c200;   /* live: 5% Schwarz über der Fläche */
  --afhc-ink: #121212;
  --afhc-ink-soft: #3d3d3d;
  --afhc-gray: #707070;
  --afhc-gray-light: #a6a6a6;
  --afhc-line: #ebebeb;
  --afhc-line-strong: #8d8d8d;
  --afhc-white: #fff;
  --afhc-bg: #f1f3f4;
  --afhc-bg-alt: #f9f9f9;
  --afhc-blue: #ecf9fd;
  --afhc-red: #dd3131;
  --afhc-green: #008035;
  --afhc-radius: 8px;
  --afhc-radius-sm: 4px;
  --afhc-radius-btn: 8px;
  --afhc-radius-note: 32px;
  --afhc-shadow: 0 1px 2px rgba(18, 18, 18, .06);
  --afhc-col: 1256px;          /* live Inhaltsspalte bei 1440 */
  --afhc-col-half: 628px;      /* live 6/12 — Produkte, Felder */

  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--afhc-bg);
  color: var(--afhc-ink);
  font-family: "ADACSans", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* versteckt die Original-SPA-Sektionen, wenn unser Konfigurator mounted */
.afhc-hide-original { display: none !important; }

.afhc * { min-width: 0; }

.afhc-wrap {
  width: 100%;
  max-width: calc(var(--afhc-col) + 24px);
  margin: 0 auto;
  padding: 0 12px;
}

.afhc-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =====================================================================
   Fortschrittsleiste: entfernt. Der Live-Konfigurator ist ein Akkordeon ohne
   Schrittanzeige (0 Treffer für progress|stepper|chip in allen Live-Dumps),
   unser Akkordeon rendert die Abschnitte direkt (siehe .afhc-sec unten).
   ================================================================== */

/* =====================================================================
   Schritt-Rahmen
   ================================================================== */
.afhc-steps { display: flex; flex-direction: column; }

/* Live: Kolonnen-Polster der aktiven Stufe — 64px oben, 8px seitlich (mobil 72px).
   Feinschliff zuletzt im Akkordeon-Block (unten), damit es die Media-Queries schlägt. */
.afhc [data-cy="conf-main"] { padding: 64px 8px 0; }
.afhc-h1, .afhc-h2 {
  font-family: "ADACSlab", "ADACSans", Georgia, serif;
  font-size: 42px; line-height: 1.2; font-weight: 700;
  margin: 0; color: var(--afhc-ink);
}
.afhc-h3 {
  font-family: "ADACSlab", "ADACSans", Georgia, serif;
  font-size: 28px; line-height: 1.2; font-weight: 700;
  margin: 0; color: var(--afhc-ink);
}
/* Live: Fließtext unter der Überschrift 20px/#3d3d3d, zentriert, halbe Spalte. */
.afhc-sub {
  margin: 16px auto 0;
  max-width: var(--afhc-col-half);
  color: var(--afhc-ink-soft);
  font-size: 20px; line-height: 1.4;
}
.afhc-note { color: var(--afhc-gray); font-size: 16px; margin: 8px 0 0; }
/* Produkt-/Feldspalte: live 6/12 der 1256px-Spalte = 628px, zentriert.
   Mobil begrenzt die 628px nicht (Viewport = 359px nutzbar). */
.afhc-col {
  width: 100%;
  max-width: var(--afhc-col-half);
  margin: 0 auto;
}
/* Live: Abschnittsüberschrift im Produktblock = dieselbe 42px-Slab-Zeile. */
.afhc-block-title {
  font-family: "ADACSlab", "ADACSans", Georgia, serif;
  font-size: 42px; line-height: 1.2; font-weight: 700;
  margin: 0 0 24px; text-align: center; color: var(--afhc-ink);
}

/* =====================================================================
   Schritt 1 — Fahrzeugklassen-Kacheln
   Live: grid 4×290px, gap 32px, Karte weiß, radius 8, padding 20/12/32/12,
   flex column-reverse, gap 24, kein Rahmen, kein Schatten.
   ================================================================== */
.afhc-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 8px;
  margin: 0 0 24px;
}
.afhc-tile {
  position: relative;
  display: flex; flex-direction: column-reverse;
  justify-content: space-between; align-items: center;
  gap: 24px;
  padding: 20px 12px 32px;
  background: var(--afhc-white);
  border: 0;
  border-radius: var(--afhc-radius);
  cursor: pointer;
  text-align: center;
}
.afhc-tile-body {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; width: 100%;
  padding: 0 12px;
}
/* Live: 106×106 (auch mobil — die Kachel ist dort 176px breit). */
.afhc-tile-icon { display: block; width: 106px; max-width: 100%; height: auto; }
.afhc-tile-icon svg { display: block; width: 100%; height: auto; }
.afhc-tile-label { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--afhc-ink); }
.afhc-tile-note { font-size: 16px; line-height: 1.4; color: var(--afhc-gray); }

/* Live: „Mehr Informationen …“ 16px/700 #3d3d3d, 24px-Pfeil, zentriert. */
.afhc-info-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  margin: 0; padding: 0; border: 0; background: none;
  color: var(--afhc-ink-soft); font: inherit; font-weight: 700; font-size: 16px;
  cursor: pointer;
}
.afhc-info-link:hover { color: var(--afhc-ink); }
.afhc-info-link svg { flex: 0 0 auto; }
.afhc-info-panel {
  margin: 16px auto 0; padding: 24px;
  max-width: var(--afhc-col-half);
  background: var(--afhc-white);
  border-radius: var(--afhc-radius);
}
.afhc-info-panel dl { margin: 0; display: grid; gap: 16px; }
.afhc-info-panel dt { font-weight: 700; font-size: 18px; }
.afhc-info-panel dd { margin: 4px 0 0; color: var(--afhc-gray); font-size: 16px; line-height: 1.4; }

/* =====================================================================
   Schritt 1 — Länderkarten
   Live: grid 3 Spalten (10/12 der Spalte), gap 32px; Karte weiß, radius 8,
   padding 32/24/32/24, flex column-reverse, gap 24, zentriert;
   Flagge 96×64 (radius 8, Haarlinie #ebebeb), Name 20/700, Erläuterung 16/#707070,
   Kontrollkästchen 24×24 radius 4 unten mittig.
   ================================================================== */
.afhc-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 8px;
  margin: 0 auto;
  width: 100%;
}
.afhc-card {
  display: flex; flex-direction: column-reverse;
  justify-content: space-between; align-items: center;
  gap: 12px;
  min-height: 318px;
  padding: 32px 24px;
  background: var(--afhc-white);
  border: 0;
  border-radius: var(--afhc-radius);
  cursor: pointer;
  text-align: center;
}
.afhc-card > span:not(.afhc-box):not(.afhc-card-flag) {
  display: block; width: 100%;
}
.afhc-card-title { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--afhc-ink); }
.afhc-card-note { color: var(--afhc-gray); font-size: 16px; line-height: 1.4; margin: 12px 0 0; }
.afhc-card-flag {
  display: flex; align-items: center; justify-content: center;
  width: 96px; height: 64px; flex: 0 0 auto;
  border-radius: var(--afhc-radius);
  border: 1px solid var(--afhc-line);
  overflow: hidden;
  font-size: 40px; line-height: 1;
}
.afhc-card-flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.afhc-card-flag .afhc-flag-emoji { border: 0; }

/* Textpaare (Titel + Erläuterung) stapeln — spans sind sonst inline */
.afhc-tile-label, .afhc-tile-note,
.afhc-card-title, .afhc-card-note,
.afhc-product-title, .afhc-product-sub,
.afhc-validity-label, .afhc-validity-note,
.afhc-sum-title, .afhc-sum-meta { display: block; }

.afhc-sep { border: 0; margin: 40px 0 0; }
.afhc-btn.afhc-btn--small { width: auto; padding: 12px 24px; font-size: 16px; min-width: 0; }

/* ---- Kontrollkästchen / Radioknopf (rein visuell) ----
   Live: 24×24, Radius 50% (Radio) / 4px (Kästchen), Rahmen 1px #8d8d8d;
   gewählt: Radio-Rahmen #3d3d3d + Punkt 14×14 #3d3d3d,
            Kästchen Fläche #3d3d3d ohne Rahmen + weißes Häkchen 20×20. */
.afhc-box {
  flex: 0 0 auto;
  position: relative;
  width: 24px; height: 24px;
  margin: 0;
  background: var(--afhc-white);
  border: 1px solid var(--afhc-line-strong);
  border-radius: var(--afhc-radius-sm);
}
.afhc-box[data-kind="radio"] { border-radius: 50%; }

[aria-checked="true"] > .afhc-box,
.afhc-card[aria-checked="true"] .afhc-box,
.afhc-product[aria-checked="true"] .afhc-box,
.afhc-validity[aria-checked="true"] .afhc-box {
  border-color: var(--afhc-ink-soft);
}
/* Kästchen (Länder): Fläche füllen + Häkchen */
.afhc-card[aria-checked="true"] .afhc-box:not([data-kind="radio"]),
[aria-checked="true"] > .afhc-box:not([data-kind="radio"]) {
  background: var(--afhc-ink-soft);
  border-color: var(--afhc-ink-soft);
}
.afhc-card[aria-checked="true"] .afhc-box:not([data-kind="radio"])::after,
[aria-checked="true"] > .afhc-box:not([data-kind="radio"])::after {
  content: ""; position: absolute; inset: 0;
  background: url("/conf-assets/check-white.svg") no-repeat center/20px;
}
/* Radio: Ring dunkler + Punkt */
[aria-checked="true"] > .afhc-box[data-kind="radio"]::after,
.afhc-card[aria-checked="true"] .afhc-box[data-kind="radio"]::after,
.afhc-product[aria-checked="true"] .afhc-box[data-kind="radio"]::after,
.afhc-validity[aria-checked="true"] .afhc-box[data-kind="radio"]::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%; background: var(--afhc-ink-soft);
}

/* =====================================================================
   Schritt 2 — Produkte
   Live: Gruppe = weiße Zeile (radius 8, padding 16/24, mb 8px) mit Titel 20/700
   links und „ab 9,60€“ 20/700 rechts; darunter EINE weiße Liste (radius 8),
   deren Zeilen 60px hoch sind, 16/24 gepolstert und durch 1px #ebebeb getrennt.
   ================================================================== */
.afhc-group { margin: 0 0 9px; }
.afhc-group-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin: 0 0 9px;
  padding: 16px 24px;
  background: var(--afhc-white);
  border-radius: var(--afhc-radius);
}
.afhc-group-title { font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--afhc-ink); }
.afhc-group-icon { display: inline-flex; flex: 0 0 auto; }
.afhc-group-icon img, .afhc-product-icon img { display: block; }
.afhc-product-icon { display: inline-flex; flex: 0 0 auto; align-self: flex-start; }
.afhc-group-from {
  margin-left: auto;
  background: none; color: var(--afhc-ink);
  border-radius: 0; padding: 0;
  font-size: 20px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.afhc-group-sub { color: var(--afhc-gray); font-size: 16px; }

.afhc-products {
  display: block;
  background: var(--afhc-white);
  border-radius: var(--afhc-radius);
  overflow: hidden;
}
.afhc-product {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 24px;
  background: var(--afhc-white);
  border: 0;
  border-bottom: 1px solid var(--afhc-line);
  cursor: pointer;
  text-align: left;
}
.afhc-product:last-child { border-bottom: 0; }
.afhc-product > span:not(.afhc-box):not(.afhc-product-icon) { flex: 1 1 auto; min-width: 0; }
.afhc-product-title { font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--afhc-ink); }
.afhc-product-sub { color: var(--afhc-gray); font-size: 16px; line-height: 1.4; margin: 2px 0 0; }
.afhc-product-price {
  font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--afhc-ink);
  white-space: nowrap; margin-left: auto; padding-top: 2px;
}
.afhc-product-price small { display: block; font-weight: 400; color: var(--afhc-gray); font-size: 14px; }

.afhc-error img { flex: 0 0 auto; }

/* =====================================================================
   Schritt 3 — Felder
   Live: Feld 60px hoch, weiß, ohne Rahmen, radius 8, Text 20/700,
   Innenabstand 16/24 (mit Symbol links 60), Beschriftung liegt im Feld
   (20/700 #707070) und verschwindet, sobald ein Wert steht;
   Fokus = Innenring 2px #ffcc00, ungültig = 2px #dd3131 (conf-anim.css).
   ================================================================== */
.afhc-field { margin: 0 0 16px; }
.afhc-field:last-child { margin-bottom: 0; }
.afhc-label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.afhc-hint { color: var(--afhc-gray); font-size: 16px; line-height: 1.4; margin: 8px 0 0; }

.afhc-float { position: relative; }
.afhc-input,
.afhc-select {
  width: 100%;
  height: 60px;
  padding: 16px 24px;
  font: inherit;
  font-size: 20px; font-weight: 700; line-height: 1.4;
  color: var(--afhc-ink);
  background: var(--afhc-white);
  border: 0;
  border-radius: var(--afhc-radius);
  appearance: none;
}
.afhc-input::placeholder { color: transparent; }
.afhc-float-label {
  position: absolute; left: 24px; top: 50%;
  transform: translateY(-50%);
  color: var(--afhc-gray);
  font-size: 20px; font-weight: 700;
  pointer-events: none;
  transition: opacity .3s ease;
}
.afhc-float-icon {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  display: inline-flex; pointer-events: none;
}
.afhc-float-has-icon .afhc-input,
.afhc-float-has-icon .afhc-select { padding-left: 60px; }
.afhc-float-has-icon .afhc-float-label { left: 60px; }
/* Live: Sobald ein Wert steht bzw. das Feld den Fokus hat, tritt die
   Beschriftung zurück (Opacity-Übergang 0.3s). */
.afhc-input:focus + .afhc-float-label,
.afhc-input:not(:placeholder-shown) + .afhc-float-label,
.afhc-select + .afhc-float-label,
.afhc-float.is-filled .afhc-float-label { opacity: 0; }
.afhc-select {
  padding-right: 60px;
  background-image: url("/conf-assets/sprite-chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 24px center;
  background-size: 16px auto;
}
.afhc-input[aria-invalid="true"] { }
.afhc-error img { flex: 0 0 auto; }
/* Живое предупреждение шага продуктов (ConfRecon): фон rgb(248,214,214),
   радиус 32, отступ 20/24, без рамки и без иконки. */
.afhc-error {
  display: block;
  margin: 20px 0 0; padding: 20px 24px;
  background: rgb(248, 214, 214); border: 0;
  color: var(--afhc-ink); border-radius: 32px; font-size: 16px; line-height: 1.4;
}
.afhc-error > span:first-child { display: none; }

/* =====================================================================
   Schritt 4 — Zusammenfassung
   Live-Muster „Name 700 links · Preis 700 rechts“, darunter die
   Zeitraum-Zeile in 16px #707070; Notiz-Box hellblau (#ecf9fd, radius 32,
   padding 20/24, 2px Rahmen rgba(0,0,0,.04)).
   ================================================================== */
.afhc-summary {
  display: block;
  background: var(--afhc-white);
  border-radius: var(--afhc-radius);
  overflow: hidden;
}
.afhc-sum-item {
  display: block;
  padding: 16px 24px;
  border-bottom: 1px solid var(--afhc-line);
}
.afhc-sum-item:last-child { border-bottom: 0; }
.afhc-sum-head {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: baseline;
}
.afhc-sum-title { font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--afhc-ink); }
.afhc-sum-price { font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--afhc-ink); white-space: nowrap; }
.afhc-sum-meta { color: var(--afhc-gray); font-size: 16px; line-height: 1.4; margin: 4px 0 0; }
.afhc-sum-meta b { color: var(--afhc-ink); font-weight: 700; }
.afhc-sum-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 16px 0 0; padding: 24px;
  background: var(--afhc-white);
  border-radius: var(--afhc-radius);
}
.afhc-sum-total .lbl { font-weight: 700; font-size: 20px; line-height: 1.4; }
.afhc-sum-total .val {
  font-family: "ADACSlab", "ADACSans", serif;
  font-weight: 700; font-size: 32px; line-height: 1.2;
}
/* Notiz-Box (z. B. Nichtmitgliederpreis) — live: role=note, hellblau */
.afhc-note-box {
  margin: 16px 0 0; padding: 20px 24px;
  background: var(--afhc-blue);
  border: 2px solid rgba(0, 0, 0, .04);
  border-radius: var(--afhc-radius-note);
  font-size: 18px; line-height: 1.4; color: var(--afhc-ink);
}
.afhc-note-box b { font-weight: 700; }
.afhc-fee-note { color: var(--afhc-gray); font-size: 16px; line-height: 1.4; margin: 4px 0 0; }

.afhc-success {
  margin: 16px 0 0; padding: 24px;
  background: var(--afhc-white);
  border: 0; border-left: 6px solid var(--afhc-green);
  border-radius: var(--afhc-radius);
}
.afhc-success b { display: block; font-size: 20px; margin-bottom: 4px; }

/* =====================================================================
   Fußleiste
   Live: mobil `sticky bottom-0` auf weißer Fläche (8px Polster, 8px Abstand,
   Buttons volle Breite); ab 768px statisch, transparent, mittig,
   padding-top 48px / padding-bottom 96px, Abstand 24px.
   Button: 2px Rahmen #121212, Fläche #ffcc00, 18px/700, Innenabstand 12px,
   Radius 8, Höhe 53px, Breite 310px.
   ================================================================== */
.afhc-footer {
  position: sticky; bottom: 0; z-index: 20;
  margin: 40px 0 0;
  background: var(--afhc-white);
  padding: 8px 0;
}
.afhc-footer-inner {
  width: 100%; max-width: calc(var(--afhc-col) + 24px); margin: 0 auto;
  padding: 0 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.afhc-footer-actions { display: flex; flex-direction: column; gap: 8px; }
.afhc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  min-height: 53px;
  padding: 12px;
  font: inherit; font-size: 18px; font-weight: 700; line-height: 1.4;
  border: 2px solid transparent; border-radius: var(--afhc-radius-btn);
  cursor: pointer; text-decoration: none;
}
.afhc-btn--primary { background: var(--afhc-yellow); color: var(--afhc-ink); border-color: var(--afhc-ink); }
.afhc-btn--primary:hover:not([disabled]) { background: var(--afhc-yellow-dark); }
.afhc-btn--ghost { background: transparent; color: var(--afhc-ink-soft); border-color: transparent; }
.afhc-btn--ghost:hover:not([disabled]) { color: var(--afhc-ink); }
.afhc-btn[disabled] { background: var(--afhc-line); color: var(--afhc-gray-light); border-color: var(--afhc-line); cursor: not-allowed; }
.afhc-footer-hint { color: var(--afhc-gray); font-size: 16px; text-align: center; }

/* ------------------------------------------------------------ responsive -- */
@media (min-width: 768px) {
  .afhc-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }
  .afhc-tile { padding: 20px 12px 32px; min-height: 370px; }
  .afhc-tile-label { font-size: 18px; line-height: 1.4; }
  .afhc-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    width: calc(100% * 10 / 12);
  }
  .afhc-card-title { font-size: 20px; }
  .afhc-card-note { font-size: 16px; }
  /* Live: Leiste steht direkt nach dem Inhalt, Abstand nur als padding-top 48 /
     padding-bottom 96 (gemessen: Wrapper 1256x197). */
  .afhc-footer {
    position: static;
    margin-top: 0;
    padding: 48px 0 96px;
    background: transparent;
  }
  .afhc-footer-inner { padding: 0 12px; }
  .afhc-footer-actions { flex-direction: row-reverse; justify-content: center; align-items: center; gap: 24px; }
  .afhc-btn { width: auto; min-width: 310px; }
}

@media (max-width: 767px) {
  .afhc-h1, .afhc-h2 { font-size: 24px; line-height: 1.2; }
  .afhc-sec-head .afhc-h1 { font-size: 32px; }
  .afhc-block-title { font-size: 24px; }
  .afhc-sub { font-size: 18px; }
  .afhc-sum-total .val { font-size: 24px; }
  .afhc-sum-total { padding: 16px 24px; }
  .afhc-card { min-height: 0; }
}

/* 390px: garantiert kein horizontaler Scroll */
@media (max-width: 430px) {
  .afhc-wrap, .afhc-footer-inner { padding-left: 8px; padding-right: 8px; }
  .afhc-note-box { border-radius: 24px; }
  .afhc-float--select { max-width: none; }
}

/* =====================================================================
   Akkordeon der Live-Struktur
   Live: alle besuchten Stufen stehen gestapelt in einem Dokument, die aktive
   ist im Blick; es gibt kein «Zurück». Unsere Abschnitte tragen deshalb die
   h2 als Umschalter (Klick klappt auf/zu), der Rumpf bleibt im DOM.
   ================================================================== */
.afhc [data-cy="conf-main"] { padding: 64px 8px 0; }
.afhc-sec { padding: 0; }
.afhc-sec + .afhc-sec { margin-top: 72px; }
.afhc-sec-head { margin: 0 0 32px; text-align: center; }
.afhc-sec-head .afhc-h1, .afhc-sec-head .afhc-h2 { margin: 0; }
.afhc-sec-head .afhc-h1 { font-size: 48px; line-height: 1.2; }
.afhc-sec-toggle {
  appearance: none; -webkit-appearance: none;
  display: inline-block;
  margin: 0; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: inherit; cursor: pointer;
}
.afhc-sec-toggle:focus-visible { outline: 3px solid var(--afhc-ink); outline-offset: 2px; }
.afhc-sec-title { display: inline-block; }
.afhc-sec.is-collapsed .afhc-sec-head { margin-bottom: 0; }
.afhc-sec-body-inner { display: flex; flex-direction: column; align-items: stretch; }

/* --- Länder: drei wählbare Karten (24×24-Kästchen, gewählt gefüllt) --- */
/* (Das Kästchen bleibt `position: relative` aus conf.css — sein Häkchen ist ein
   absolut gesetztes ::after mit inset 0 und würde sonst die ganze Seite füllen.) */

/* --- Produkte: Sektion als Zeile mit «ab»-Preis, darunter EINE weiße Liste --- */
.afhc-group-title { font-weight: 400; }
.afhc-group-head .afhc-box { border-radius: var(--afhc-radius-sm); }
.afhc-products { margin: 8px 0 0; }
.afhc-product {
  background: transparent;
  border-radius: 0;
  min-height: 61px;
  padding: 16px 24px;
}
.afhc-product-title { font-size: 18px; font-weight: 400; }
.afhc-zzgl { display: block; font-weight: 400; color: var(--afhc-gray); font-size: 14px; }

/* --- Kennzeichen: Land-Dropdown 231px, drei Segmente à 129px, Wiederholung --- */
.afhc-float--select { max-width: 231px; }
.afhc-parts { display: flex; gap: 8px; }
.afhc-float--part { flex: 0 0 129px; max-width: 129px; }
.afhc-float--part .afhc-input { text-align: center; padding: 16px 12px; }
.afhc-check-row {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 16px 0 0; cursor: pointer;
  font-size: 18px; line-height: 1.4;
}
.afhc-check-row > span:not(.afhc-box) { flex: 1 1 auto; }

/* --- Datums-Modal (live: react-datepicker, zwei Monate) --- */
.afhc-cal-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 96px 16px 16px;
  background: rgba(18, 18, 18, .5);
}
.afhc-cal-modal {
  width: 100%; max-width: 800px;
  background: var(--afhc-white);
  border-radius: var(--afhc-radius);
  padding: 24px;
}
.afhc-cal-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.afhc-cal-title { text-align: center; font-size: 20px; font-weight: 400; margin: 0 0 12px; }
.afhc-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.afhc-cal-wd { text-align: center; font-size: 13px; color: var(--afhc-gray); padding: 4px 0; }
.afhc-cal-day {
  appearance: none; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; line-height: 1.2;
  padding: 8px 0; border-radius: 999px; color: var(--afhc-ink);
}
.afhc-cal-day:disabled { color: var(--afhc-gray-light); cursor: default; }
.afhc-cal-day.is-selected { background: var(--afhc-yellow); font-weight: 700; }
.afhc-cal-day--empty { visibility: hidden; }
.afhc-cal-price { text-align: right; font-size: 14px; color: var(--afhc-gray); margin: 16px 0 0; }
.afhc-cal-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 0; }
.afhc-cal-actions .afhc-btn { width: auto; min-width: 0; }
.afhc-cal-actions .afhc-btn--ghost { font-weight: 700; }
.afhc-cal-actions .afhc-btn--primary { min-width: 120px; }

/* --- Warenkorb: Artikel, Zwischensumme, zwei Knöpfe, Cross-Sell, Seitenkorb --- */
.afhc-add-row { display: flex; justify-content: center; gap: 24px; margin: 24px 0 0; }
.afhc-add-row .afhc-btn { width: 100%; max-width: 500px; }
.afhc-crosssell { margin: 64px auto 0; width: 100%; text-align: center; }
.afhc-crosssell .afhc-block-title { font-size: 36px; }
.afhc-sidecart {
  width: 100%; max-width: 516px; margin: 32px auto 0;
  padding: 8px; background: var(--afhc-white); border-radius: var(--afhc-radius);
}
.afhc-sidecart-title { display: block; padding: 8px; font-size: 20px; }
.afhc-sidecart-line {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px; border-bottom: 1px solid var(--afhc-line);
  font-size: 16px; line-height: 1.4;
}
.afhc-sidecart .afhc-sum-total { margin: 8px 0 0; padding: 8px; background: none; }
.afhc-sidecart .afhc-hint { padding: 0 8px; }

/* --- Checkout: zwei Spalten (Formular | Positionskarte + Gesamtpreis) --- */
.afhc-checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.afhc-checkout-block { margin: 0 0 32px; }
.afhc-checkout-block:last-child { margin-bottom: 0; }
.afhc-checkout .afhc-block-title {
  font-size: 28px; text-align: left; margin: 0 0 16px;
}
.afhc-order-item {
  background: var(--afhc-white);
  border-radius: var(--afhc-radius);
  transition: box-shadow .5s ease;
}
.afhc-order-line {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--afhc-line);
}
.afhc-order-line:last-child { border-bottom: 0; }
.afhc-order-line > span:first-child { flex: 1 1 auto; min-width: 0; }
.afhc-order-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 16px 0 0; padding: 24px;
  background: var(--afhc-bg-alt);
  border-radius: var(--afhc-radius);
  font-weight: 700; font-size: 20px;
}
.afhc-order-total .val {
  font-family: "ADACSlab", "ADACSans", serif;
  font-size: 32px; line-height: 1.2;
}
/* Live: der Bestellknopf ist breiter und höher als «Weiter» (483×64, 20px/700) */
.afhc-footer [data-cy="order-submit"] { min-width: 483px; min-height: 64px; font-size: 20px; }

/* Live: der Primärknopf dunkelt beim Überfahren nicht nach (nur :active legt
   5 % Schwarz darüber — das macht conf-anim.css). */
.afhc-btn--primary:hover:not([disabled]) { background: var(--afhc-yellow); }

/* Notizblock der Schritte 4/6: Artikel mit Preis, darunter Zeitraum */
.afhc-note-period {
  display: block;
  margin: 4px 0 12px;
  color: var(--afhc-ink-soft);
  font-size: 16px; line-height: 1.4;
}
.afhc-note-box .afhc-sum-head { gap: 12px; }
.afhc-note-box .afhc-sum-title,
.afhc-note-box .afhc-sum-price { font-size: 18px; line-height: 1.4; }
.afhc-note-box .afhc-note { margin: 0; }

/* „Weitere Produkte hinzufügen“ (Schritt 6) */
.afhc-add-row { display: flex; justify-content: center; margin: 16px 0 0; }

/* Live zeigt unter der Fußleiste keinen Hilfetext; der Grund für ein
   gesperrtes „Weiter“ steht im title des Knopfes (siehe conf.js). */
.afhc-footer-hint { display: none; }

/* =====================================================================
   Mobil-Feinschliff des Akkordeons — steht bewusst am Dateiende, damit es die
   Basisregeln oben und die älteren Media-Queries schlägt.
   ================================================================== */
@media (max-width: 767px) {
  /* Live mobil: Kolonnen-Polster 72px oben (Desktop 64px). */
  .afhc [data-cy="conf-main"] { padding: 72px 8px 0; }
  .afhc-sec + .afhc-sec { margin-top: 40px; }
  .afhc-parts { flex-wrap: wrap; }
  .afhc-float--part { flex: 1 1 72px; max-width: none; }
  .afhc-cal-months { grid-template-columns: minmax(0, 1fr); }
  .afhc-cal-overlay { padding: 24px 8px; }
  .afhc-checkout { grid-template-columns: minmax(0, 1fr); }
  .afhc-footer [data-cy="order-submit"] { min-width: 0; width: 100%; min-height: 53px; font-size: 18px; }
  .afhc-add-row { flex-direction: column; gap: 8px; }
  .afhc-crosssell .afhc-block-title { font-size: 24px; }
}

/* =====================================================================
   Desktop-Feinschliff: Checkout zweispaltig mit 500px-Seitenleiste (live:
   Positionszeile 500×126, «Zur Kasse» 500 breit, h1 linksbündig mit 24px).
   ================================================================== */
@media (min-width: 768px) {
  .afhc-checkout { grid-template-columns: minmax(0, 1fr) 500px; align-items: start; }
  .afhc-checkout-side { width: 500px; }
  .afhc-sec[data-sid="bestellung"] .afhc-sec-head { text-align: left; padding-left: 24px; }
}

/* =====================================================================
   Panel-Animation ohne Geometrie (UX-Fix).
   conf-anim.css bläst die Länderkarten mit `afhc-panel-in` über `max-height
   0 → 1200` auf. Das treibt die ganze Sektion und damit die «Weiter»-Taste
   nach unten: ein Klick in der ersten Sekunde nach dem Aufklappen traf nicht
   die Taste, sondern die darunter wachsende Länderkarte. Deshalb animieren wir
   nur die Deckkraft — die Höhe steht sofort, die Taste bleibt an ihrem Platz.
   Gespielt wird die Animation nur, wenn die Sektion frisch dazukam
   (conf.js setzt sonst `afhc-sec--nofx`), genau wie live.
   ================================================================== */
@keyframes afhc-sec-panel-fade { from { opacity: 0; } to { opacity: 1; } }

#afh-conf-root .afhc-sec .afhc-cards,
#afh-conf-root .afhc-sec .afhc-info-panel { overflow: visible; }

#afh-conf-root .afhc-sec:not(.afhc-sec--nofx) .afhc-cards,
#afh-conf-root .afhc-sec:not(.afhc-sec--nofx) .afhc-info-panel {
  animation: afhc-sec-panel-fade 1s ease forwards;
}
#afh-conf-root .afhc-sec.afhc-sec--nofx .afhc-cards,
#afh-conf-root .afhc-sec.afhc-sec--nofx .afhc-info-panel { animation: none; }

/* ==================================================================
   1:1 с живым — замеры 2026-11-23 по кадрам conf/steps/*.png (1440).
   Ширины колонок: страны 1046 (3×328 + 2×33), продукты и дата 628,
   номер 792. Карточка продукта: 628×86, белая, радиус 12; название
   20/700, сбор 15px серым под названием, цена 20/700 справа.
   Врезка: радиус 16, отступ 24, текст 15px.
   ================================================================== */
#afh-conf-root .afhc-sec-body-inner { margin: 0 auto; }
#afh-conf-root .afhc-sec[data-sid="laender"] .afhc-sec-body-inner { max-width: 1046px; }
#afh-conf-root .afhc-sec[data-sid^="produkt-"] .afhc-sec-body-inner,
#afh-conf-root .afhc-sec[data-sid="datum"] .afhc-sec-body-inner { max-width: 628px; }
/* Замер живого (live-plate.png, без модалки): полоса номера 592px по центру,
   внутри «Land» 201 + три сегмента 129/129/131. */
#afh-conf-root .afhc-sec[data-sid="kennzeichen"] .afhc-sec-body-inner { max-width: 592px; }

/* Заголовок: живой 42px/700 (замер: текст «Was benötigen Sie für Schweiz?» = 585px),
   i-кнопка 22px с отступом 16px. */
#afh-conf-root .afhc-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0; }
#afh-conf-root .afhc-h1, #afh-conf-root .afhc-h2 { display: inline-flex; align-items: center; gap: 16px; justify-content: center; width: 100%; font-size: 42px; line-height: 1.2; }
#afh-conf-root .afhc-info-btn { width: 32px; height: 32px; align-self: flex-end; margin-bottom: 3px; }
#afh-conf-root .afhc-h1, #afh-conf-root .afhc-h2 { gap: 8px; }
#afh-conf-root .afhc-info-btn {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
#afh-conf-root .afhc-info-ico { display: inline-flex; }
#afh-conf-root .afhc-info-panel {
  flex: 1 1 100%; max-width: 628px; margin: 16px auto 0;
  background: var(--afhc-blue-soft, #ECF9FD); border-radius: 16px; padding: 24px;
}
#afh-conf-root .afhc-info-panel .afhc-note { font-size: 15px; line-height: 1.7; margin: 0; }

/* Product card: белая карточка 628×86 как на живом. */
#afh-conf-root .afhc-product {
  background: var(--afhc-white);
  border-radius: 8px;
  min-height: 86px;
  padding: 16px 24px;
  align-items: center;
  gap: 16px;
  border-bottom: 0;
}
#afh-conf-root .afhc-product + .afhc-product { margin-top: 8px; }
#afh-conf-root .afhc-product-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
#afh-conf-root .afhc-zzgl { font-size: 15px; line-height: 1.4; color: var(--afhc-gray); margin-top: 2px; }
#afh-conf-root .afhc-product-price { font-size: 20px; font-weight: 700; }
#afh-conf-root .afhc-product .afhc-box { width: 20px; height: 20px; flex: 0 0 20px; }
#afh-conf-root .afhc-product-icon { align-self: center; }
#afh-conf-root .afhc-product-icon img { width: 26px; height: 26px; }

/* Врезка-примечание: радиус 16, отступ 24, текст 15px. */
/* Замер живого (ConfRecon, шаг продуктов CH): радиус 32, отступ 20/24,
   рамка 2px rgba(0,0,0,.04), внешние отступы 24/12, текст 16px. */
#afh-conf-root .afhc-note-box {
  border-radius: 32px; padding: 20px 24px; font-size: 16px;
  border: 2px solid rgba(0, 0, 0, .04); margin: 24px 0 12px;
}
#afh-conf-root .afhc-note-box .afhc-note { font-size: 16px; line-height: 1.4; margin: 0; color: var(--afhc-ink); }

/* Вводный абзац шага продуктов и ссылки. */
#afh-conf-root .afhc-sub { max-width: 560px; margin: 0 auto 32px; font-size: 18px; line-height: 1.6; text-align: center; }
#afh-conf-root .afhc-link { color: var(--afhc-ink); font-size: 18px; }
#afh-conf-root .afhc-link--arrow::before {
  content: ''; display: inline-block; width: 24px; height: 24px; margin-right: 8px;
  vertical-align: middle; background: no-repeat center/24px url('/conf-assets/arrow-circle-right.svg');
}
#afh-conf-root .afhc-group-label { font-size: 16px; color: var(--afhc-gray); margin: 24px 0 8px; }

/* Плитки классов и страны: карточка 328×318, отступ между 33. */
#afh-conf-root .afhc-cards { gap: 33px; justify-content: center; }
#afh-conf-root .afhc-card { width: 328px; min-height: 318px; }

/* Галочка «Ich habe ein Sonderkennzeichen»: подпись с серым пояснением. */
#afh-conf-root .afhc-check-note { color: var(--afhc-gray); font-size: 15px; }

/* Поле страны номера: флаг + «Land» + значение. */
#afh-conf-root .afhc-float--country { max-width: 231px; }
#afh-conf-root .afhc-float-flag { display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }

/* Шаг номера: колонка живой — 792px, содержимое прижато к левому краю
   (замер step_at_05.png: поля идут от x=317). */
#afh-conf-root .afhc-sec[data-sid="kennzeichen"] .afhc-col { max-width: none; }
#afh-conf-root .afhc-plate-land { flex: 0 0 201px; max-width: 201px; }
/* Подпись «Land» у живого всегда видна (флаг «D» + Land + значение). */
#afh-conf-root .afhc-float--country .afhc-float-label {
  opacity: 1; transform: none; font-size: 13px; line-height: 1.2; top: 8px;
}
#afh-conf-root .afhc-float--country #afhc-plate-country { padding: 22px 12px 8px 44px; font-weight: 700; }
#afh-conf-root .afhc-float-flag { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
#afh-conf-root .afhc-float--country { position: relative; }

/* Вступительный абзац шага продуктов: живой печатает его на ширине колонки
   (628), поэтому переносы строк совпадают с живым. */
#afh-conf-root .afhc-sec[data-sid^="produkt-"] .afhc-sub { max-width: 628px; }
/* Карточка группы у живого ниже карточки продукта (замер step_at_03.png: 66). */
#afh-conf-root .afhc-group-head { min-height: 66px; }
#afh-conf-root .afhc-group-label { margin: 24px 0 12px; }

/* Страны: три карточки ровно 328px с промежутком 33 (живой: 189..1235 = 1046).
   Иначе 1fr-колонки сжимают карточки и они сливаются в один белый блок. */
#afh-conf-root .afhc-sec[data-sid="laender"] .afhc-cards {
  grid-template-columns: repeat(3, 328px);
  gap: 33px;
  width: auto;
  justify-content: center;
}
#afh-conf-root .afhc-sec[data-sid="laender"] .afhc-card { width: 328px; }

/* Список продуктов — ОДНА белая карточка с разделителями, как на живом
   (ConfRecon: Словения 399×628×171 = две строки 86+85 в одном контейнере). */
#afh-conf-root .afhc-products {
  background: var(--afhc-white);
  border-radius: 8px;
  margin: 8px 0 0;
  overflow: hidden;
}
#afh-conf-root .afhc-group--flat .afhc-products { margin-top: 0; }
#afh-conf-root .afhc-product {
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
#afh-conf-root .afhc-product:last-child { border-bottom: 0; }
#afh-conf-root .afhc-product + .afhc-product { margin-top: 0; }

/* Правая i-панель живого (ReconAt: container fixed right 712.5px, z 4000;
   backdrop rgba(0,0,0,.36) z 3000; шапка sticky 20/28 с крестиком; тело 20/32). */
.afhc-drawer-wrap { position: fixed; inset: 0; z-index: 3000; pointer-events: none; }
.afhc-drawer-backdrop, .afhc-drawer { pointer-events: auto; }
.afhc-drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .36); }
.afhc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 712.5px; max-width: 100%;
  background: var(--afhc-white); z-index: 4000;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.afhc-drawer-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px;
  background: var(--afhc-white);
  border-bottom: 1px solid var(--afhc-line);
}
.afhc-drawer-title { font-size: 20px; font-weight: 700; margin: 0; color: var(--afhc-ink); }
.afhc-drawer-close {
  appearance: none; border: 0; background: none; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: .8;
}
.afhc-drawer-close:hover { opacity: 1; }
.afhc-drawer-body { padding: 20px 32px 40px; }
.afhc-drawer-h3 { font-size: 20px; font-weight: 700; margin: 20px 0 8px; color: var(--afhc-ink); }
.afhc-drawer-p { font-size: 16px; line-height: 1.6; margin: 0 0 12px; color: var(--afhc-ink); }
.afhc-drawer-li { font-size: 16px; line-height: 1.6; margin: 0 0 8px; padding-left: 16px; position: relative; color: var(--afhc-ink); }
.afhc-drawer-li::before { content: '•'; position: absolute; left: 0; }
@media (max-width: 760px) {
  .afhc-drawer { width: 100%; left: 0; }
  .afhc-drawer-body { padding: 16px 20px 32px; }
}

/* Полоска страны у поля номера (живой: EU-плашка 28×52 слева, шеврон 24×24 справа,
   значение 20/700). */
#afh-conf-root .afhc-country-strip { display: block; border-radius: 4px; }
#afh-conf-root .afhc-float--country { padding-left: 44px; }
#afh-conf-root .afhc-float--country #afhc-plate-country { appearance: none; border: 0; background: none; width: 100%; padding: 22px 28px 8px 0; font-size: 20px; font-weight: 700; color: var(--afhc-ink); }
#afh-conf-root .afhc-country-chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: inline-flex; pointer-events: none; }

/* Поле «Land»: подпись сверху (13px), значение 20/700 под ней — как на живом
   (кнопка 231×60, плашка 28×52 слева, шеврон 24×24 справа). */
/* Замер живого: белая кнопка 231×60, радиус 8, отступы 24/24/8/60
   (плашка страны в левых 60px), значение 20/700 на x=462.5. */
#afh-conf-root .afhc-float--country { position: relative; height: 60px; background: var(--afhc-white); border-radius: 8px; }
#afh-conf-root .afhc-float--country .afhc-float-label {
  position: absolute; left: 60px; top: 4px; font-size: 13px; line-height: 1.4;
  opacity: 1; transform: none; color: var(--afhc-gray); font-weight: 400;
}
#afh-conf-root .afhc-float--country #afhc-plate-country { padding: 24px 24px 8px 60px; }
#afh-conf-root .afhc-float--country .afhc-float-flag { left: 20px; }

/* Выезжающая мини-корзина (живой: fixed right 516px, top 96, bg #F4F4F2,
   тень rgba(0,0,0,.1) -4px 0 24px, z 50). */
.afhc-drawer--cart {
  width: 516px; max-width: 100%; top: 96px; bottom: 0;
  background: rgb(244, 244, 242);
  box-shadow: rgba(0, 0, 0, .1) -4px 0 24px;
  background-image: none;
}
.afhc-drawer--cart .afhc-drawer-head { background: var(--afhc-white); border-bottom: 1px solid var(--afhc-line); }
.afhc-drawer--cart .afhc-drawer-body { display: flex; flex-direction: column; gap: 12px; }
.afhc-cart-count { font-size: 16px; color: var(--afhc-gray); margin: 0; }
.afhc-cart-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px;
  background: var(--afhc-white); border-radius: 8px; padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.afhc-cart-group { grid-column: 1 / -1; font-size: 16px; color: var(--afhc-gray); }
.afhc-cart-name { font-size: 20px; font-weight: 700; }
.afhc-cart-class { font-size: 16px; color: var(--afhc-gray); }
.afhc-cart-price { font-size: 20px; font-weight: 700; text-align: right; }
.afhc-cart-foot { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 8px 0 0; }
.afhc-cart-foot .lbl { font-size: 16px; }
.afhc-cart-foot .val { font-size: 20px; font-weight: 700; text-align: right; }

/* Кнопка «Preisdetails» в позиции заказа (живой: 24×24, инфо-иконка). */
#afh-conf-root .afhc-price-info {
  appearance: none; border: 0; background: none; padding: 0; margin-left: 8px;
  display: inline-flex; align-items: center; cursor: pointer; opacity: .8;
}
#afh-conf-root .afhc-price-info:hover { opacity: 1; }

/* Панели живут в body: фиксированная высота от вьюпорта (иначе контейнер
   анимации в #afh-conf-root задаёт свою систему координат). */
.afhc-drawer, body > .afhc-drawer-wrap .afhc-drawer { height: 100vh; bottom: auto; }
body > .afhc-drawer-wrap .afhc-drawer--cart { height: calc(100vh - 96px); }

/* Строка позиции в корзине — как на живом: подпись группы, белая карточка
   с бейджем, названием, ценой и шевроном, ниже «PKW» с иконкой. */
.afhc-cart-group { font-size: 16px; color: var(--afhc-gray); margin: 8px 0 0; }
.afhc-cart-row {
  display: grid; grid-template-columns: 48px 1fr auto 24px; grid-template-rows: auto auto;
  align-items: center; gap: 4px 12px;
  background: var(--afhc-white); border-radius: 8px; padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.afhc-cart-icon { grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center; }
.afhc-cart-icon img { width: 34px; height: 34px; }
.afhc-cart-name { font-size: 18px; font-weight: 700; line-height: 1.3; }
.afhc-cart-price { font-size: 18px; font-weight: 700; text-align: right; white-space: nowrap; }
.afhc-cart-chevron { display: inline-flex; }
.afhc-cart-class { grid-column: 2 / 4; font-size: 15px; color: var(--afhc-gray); }

/* Кнопки и подписи внутри панелей рендерятся вне #afh-conf-root, поэтому
   дублируем ключевые стили в общей области. */
.afhc-drawer-head-title { display: flex; align-items: center; gap: 8px; }
.afhc-drawer-count { font-size: 16px; color: var(--afhc-gray); }
.afhc-drawer .afhc-btn {
  appearance: none; cursor: pointer; border-radius: 4px; font-size: 18px; font-weight: 700;
  line-height: 1.4; min-height: 53px; padding: 12px 24px; border: 2px solid var(--afhc-ink);
}
.afhc-drawer .afhc-btn--primary { background: var(--afhc-yellow); color: var(--afhc-ink); }
.afhc-drawer .afhc-btn--wide { width: 100%; }
.afhc-cart-foot { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 16px 0 12px; }
.afhc-cart-foot .lbl { font-size: 20px; font-weight: 700; }
.afhc-cart-foot .lbl + .val { font-size: 20px; font-weight: 700; text-align: right; }
.afhc-cart-foot .lbl ~ .lbl { font-size: 14px; font-weight: 400; color: var(--afhc-gray); }

/* Кросс-селл живого: белая карточка, сверху бейдж + название + цена + шеврон,
   ниже класс с иконкой и три строки метаданных, снизу справа — кнопка добавления. */
/* Замер живого: две колонки по 428px с зазором 20, иконка 72×72 радиус 6. */
#afh-conf-root .afhc-cards--upsell { display: grid; grid-template-columns: repeat(2, 428px); gap: 20px; justify-content: center; width: auto; }
#afh-conf-root .afhc-upsell { background: var(--afhc-white); border-radius: 8px; padding: 20px 24px; text-align: left; }
#afh-conf-root .afhc-upsell-head { display: grid; grid-template-columns: 72px 1fr auto 24px; align-items: center; gap: 16px; }
#afh-conf-root .afhc-upsell-head .afhc-product-icon img { width: 72px; height: 72px; border-radius: 6px; }
#afh-conf-root .afhc-upsell-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
#afh-conf-root .afhc-upsell-price { font-size: 20px; font-weight: 700; white-space: nowrap; }
#afh-conf-root .afhc-upsell-chevron { display: inline-flex; }
#afh-conf-root .afhc-upsell-class { display: block; font-size: 16px; color: var(--afhc-gray); margin: 4px 0 0 88px; }
#afh-conf-root .afhc-upsell-meta { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 12px; }
#afh-conf-root .afhc-upsell-meta span { font-size: 16px; color: var(--afhc-gray); }
#afh-conf-root .afhc-upsell > .afhc-btn { display: block; width: auto; margin: 0 0 0 auto; border: 0; background: none; padding: 0; font-size: 16px; font-weight: 700; color: var(--afhc-ink); min-height: 0; }

/* Кнопки в панелях рендерятся вне #afh-conf-root — цвета задаём литералами. */
.afhc-drawer .afhc-btn { border: 2px solid #121212; background: none; color: #121212; }
.afhc-drawer .afhc-btn--primary { background: #ffcc00; color: #121212; }

/* Полоса номера как на живом (замер live-plate.png): одна белая плашка 60px,
   слева блок «Land» шириной 201, дальше сегменты через тонкие разделители.
   Первая строка без подписи; подпись «Wiederholung des Kennzeichens» — над второй. */
#afh-conf-root .afhc-plate-bar {
  display: flex; align-items: stretch;
  height: 60px; background: var(--afhc-white); border-radius: 8px;
  overflow: hidden; margin: 0 0 16px;
}
#afh-conf-root .afhc-label--legend { display: block; font-weight: 700; font-size: 16px; margin: 0 0 8px; }
#afh-conf-root .afhc-plate-land { position: relative; flex: 0 0 201px; max-width: 201px; }
#afh-conf-root .afhc-plate-land .afhc-select {
  appearance: none; border: 0; background: none; width: 100%; height: 100%;
  padding: 24px 28px 8px 60px; font-size: 20px; font-weight: 700; color: var(--afhc-ink);
  cursor: pointer;
}
#afh-conf-root .afhc-plate-land .afhc-float-label {
  position: absolute; left: 60px; top: 6px; font-size: 13px; line-height: 1.3;
  opacity: 1; transform: none; color: var(--afhc-gray); font-weight: 400; pointer-events: none;
}
#afh-conf-root .afhc-plate-land .afhc-country-strip,
#afh-conf-root .afhc-plate-land .afhc-country-flag {
  position: absolute; left: 20px; top: 4px; width: 28px; height: 52px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 4px;
}
#afh-conf-root .afhc-plate-land .afhc-country-flag.is-image img { width: 28px; height: 52px; object-fit: cover; }
#afh-conf-root .afhc-plate-land .afhc-country-flag:not(.is-image) { font-size: 22px; }
#afh-conf-root .afhc-plate-div { flex: 0 0 1px; background: rgba(0, 0, 0, .12); margin: 8px 0; }
#afh-conf-root .afhc-plate-seg { flex: 1 1 0; display: flex; align-items: center; }
#afh-conf-root .afhc-plate-seg .afhc-input {
  border: 0; background: none; width: 100%; height: 100%; text-align: center;
  font-size: 20px; font-weight: 400; letter-spacing: .06em; color: var(--afhc-ink);
}
#afh-conf-root .afhc-plate-seg .afhc-input::placeholder { color: #A3A3A3; font-weight: 400; }

/* ==================================================================
   МОБИЛЬНАЯ ВЁРСТКА — замеры живого 390px (conf/steps/step_ch390_02.png,
   step_at390_05.png): боковые отступы 8, карточки стран 2 в ряд по ~176
   с зазором 8, заголовок 28, главная кнопка — закреплённая жёлтая панель
   внизу на всю ширину, полоса номера — во всю ширину с узким блоком «Land».
   ================================================================== */
@media (max-width: 767px) {
  /* Никаких фиксированных ширин: колонки растягиваются по экрану. */
  #afh-conf-root .afhc-sec-body-inner { max-width: 100%; }
  #afh-conf-root .afhc-sec[data-sid="laender"] .afhc-sec-body-inner,
  #afh-conf-root .afhc-sec[data-sid^="produkt-"] .afhc-sec-body-inner,
  #afh-conf-root .afhc-sec[data-sid="datum"] .afhc-sec-body-inner,
  #afh-conf-root .afhc-sec[data-sid="kennzeichen"] .afhc-sec-body-inner { max-width: 100%; }

  /* Страны: две карточки в ряд, как на живом (176 + 8 + 176 при 390). */
  #afh-conf-root .afhc-sec[data-sid="laender"] .afhc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; width: auto;
  }
  #afh-conf-root .afhc-sec[data-sid="laender"] .afhc-card { width: auto; min-height: 358px; padding: 24px 8px; }
  #afh-conf-root .afhc-sec[data-sid="laender"] .afhc-card-flag { width: 96px; height: 64px; }
  #afh-conf-root .afhc-sec[data-sid="laender"] .afhc-card-title { font-size: 18px; }
  #afh-conf-root .afhc-sec[data-sid="laender"] .afhc-card-note { font-size: 15px; }

  /* Заголовок абзацев живого: 28px, слева. */
  #afh-conf-root .afhc-h1, #afh-conf-root .afhc-h2 { font-size: 28px; line-height: 1.2; justify-content: flex-start; }
  #afh-conf-root .afhc-info-btn { width: 28px; height: 28px; }
  #afh-conf-root .afhc-info-btn svg, #afh-conf-root .afhc-info-btn img { width: 24px; height: 24px; }
  #afh-conf-root .afhc-sub { max-width: none; font-size: 16px; text-align: left; }

  /* Продукты и врезки: во всю ширину, карточка ниже. */
  #afh-conf-root .afhc-product { padding: 12px 12px; gap: 8px; min-height: 0; }
  #afh-conf-root .afhc-product-title { font-size: 17px; }
  #afh-conf-root .afhc-product-price { font-size: 17px; }
  #afh-conf-root .afhc-zzgl { font-size: 14px; }
  #afh-conf-root .afhc-note-box { border-radius: 24px; padding: 16px 16px; }
  #afh-conf-root .afhc-group-label { margin: 16px 0 8px; }
  #afh-conf-root .afhc-group-head { min-height: 56px; padding: 12px; }

  /* Кросс-селл: одна колонка. */
  #afh-conf-root .afhc-cards--upsell { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  /* Полоса номера: узкий блок «Land» (код страны), сегменты делят остаток. */
  #afh-conf-root .afhc-plate-bar { height: 56px; width: 100%; }
  #afh-conf-root .afhc-plate-land { flex: 0 0 96px; max-width: 96px; }
  #afh-conf-root .afhc-plate-land .afhc-select { padding: 20px 4px 6px 44px; font-size: 16px; }
  #afh-conf-root .afhc-plate-land .afhc-float-label { left: 44px; top: 5px; font-size: 11px; }
  #afh-conf-root .afhc-plate-land .afhc-country-strip,
  #afh-conf-root .afhc-plate-land .afhc-country-flag { left: 8px; top: 6px; width: 28px; height: 44px; }
  #afh-conf-root .afhc-plate-land .afhc-country-chevron { right: 0; }
  #afh-conf-root .afhc-plate-seg .afhc-input { font-size: 17px; letter-spacing: 0; }
  #afh-conf-root .afhc-label--legend { font-size: 15px; }

  /* Главная кнопка — закреплённая панель внизу, как у живого. */
  #afh-conf-root .afhc-footer,
  .afhc-footer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    margin: 0; padding: 8px;
    background: var(--afhc-white);
  }
  #afh-conf-root .afhc-footer-inner, .afhc-footer-inner { max-width: 100%; padding: 0; }
  #afh-conf-root .afhc-btn, .afhc-btn { width: 100%; min-width: 0; }

  /* Место под закреплённой кнопкой, чтобы она не закрывала контент. */
  #afh-conf-root .afhc-wrap, .afhc-wrap { padding-bottom: 96px; }

  /* Панели (инфо/корзина/состав цены) — во всю ширину. */
  /* Живой на мобильном: панель прижата справа, но с отступом 20 слева
     (`left-5 right-0 bottom-0 top-0`), т.е. ширина 100% − 20px. */
  .afhc-drawer { left: 20px; right: 0; top: 0; width: auto; height: 100vh; }
  .afhc-drawer--cart { left: 20px; right: 0; top: 0; width: auto; height: 100vh; }
  .afhc-drawer-body { padding: 16px 16px 32px; }
}

/* Мобильные боковые отступы живого — 8px (замер 390). */
@media (max-width: 767px) {
  #afh-conf-root .afhc [data-cy="conf-main"], .afhc [data-cy="conf-main"] { padding: 64px 8px 0; }
  #afh-conf-root .afhc-wrap, .afhc-wrap { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 767px) {
  #afh-conf-root .afhc-wrap, .afhc-wrap { padding-left: 0; padding-right: 0; }
  #afh-conf-root .afhc-sec-body-inner, .afhc-sec-body-inner { padding-left: 0; padding-right: 0; }
}

/* ==================================================================
   Правки по аудиту мобильной вёрстки (MobileAuditA, замеры 390/440/768/1024):
   1) планшет 768–1066 тоже переполнялся — три карточки стран 328px не влезали;
   2) вертикальный зазор карточек стран у живого 16, горизонтальный 8;
   3) внутренние отступы карточки 32/8/30 и пояснение 16px (как живой);
   4) кросс-селл 2×428 влезает только от 900px;
   5) заголовок продукта и врезка на мобильном — как у живого (19px / 1.3).
   ================================================================== */
@media (max-width: 1066px) {
  #afh-conf-root .afhc-sec[data-sid="laender"] .afhc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 8px; width: auto;
  }
  #afh-conf-root .afhc-sec[data-sid="laender"] .afhc-card { width: auto; }
}
@media (max-width: 899px) {
  #afh-conf-root .afhc-cards--upsell { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 767px) {
  #afh-conf-root .afhc-sec[data-sid="laender"] .afhc-cards { gap: 16px 8px; }
  #afh-conf-root .afhc-sec[data-sid="laender"] .afhc-card { padding: 32px 8px 30px; min-height: 360px; }
  #afh-conf-root .afhc-sec[data-sid="laender"] .afhc-card-note { font-size: 16px; }
  #afh-conf-root .afhc-product-title { font-size: 19px; }
  #afh-conf-root .afhc-note-box .afhc-note { line-height: 1.3; }
}

/* Точные мобильные числа живого (LiveMobileD, computed styles 390/440):
   заголовок 24px/28.8, колонка x=8 w=374, карточки стран gap 12/6,
   полоса номера 53px, кнопка 374×53 радиус 8. */
@media (max-width: 767px) {
  #afh-conf-root .afhc-h1, #afh-conf-root .afhc-h2 { font-size: 24px; line-height: 28.8px; }
  #afh-conf-root .afhc-sec[data-sid="laender"] .afhc-cards { gap: 12px 6px; }
  #afh-conf-root .afhc-sec[data-sid="laender"] .afhc-card { min-height: 337px; padding: 32px 8px 24px; }
  #afh-conf-root .afhc-plate-bar { height: 53px; }
  #afh-conf-root .afhc-plate-seg .afhc-input, #afh-conf-root .afhc-plate-land .afhc-select { font-size: 16px; }
  #afh-conf-root .afhc-plate-land .afhc-select { padding: 18px 4px 4px 44px; }
  #afh-conf-root .afhc-footer, .afhc-footer { padding: 8px; }
  #afh-conf-root .afhc-btn, .afhc-btn { min-height: 53px; border-radius: 8px; font-size: 18px; }
}

/* ==================================================================
   Правки по аудиту MobileAuditB (замеры 390/440):
   1) заголовок шага прятался под закреплённой шапкой клона (fixed 56px, z 3000) —
      клик по i-кнопке перехватывался шапкой → scroll-margin;
   2) CTA-полоса не прилипала к низу: предок с transform делает containing block
      для fixed → используем sticky (от transform не зависит);
   3) поле «Land» на мобильном: 114px и код страны (как живой);
   4) мини-корзина клона закреплена справа сверху;
   5) мини-корзина шага 6 на мобильном: top 56 (как живой), а не 0/96.
   ================================================================== */
#afh-conf-root .afhc-sec { scroll-margin-top: 72px; }
@media (max-width: 767px) {
  /* Клонированный предок с единичным transform нейтрализован выше
     (`transform: none`), поэтому fixed снова считается от вьюпорта. */
  #afh-conf-root .afhc-footer, .afhc-footer {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto; z-index: 30;
    margin: 0; padding: 8px; background: var(--afhc-white);
  }
  #afh-conf-root .afhc-plate-land { flex: 0 0 114px; max-width: 114px; }
  #afh-conf-root .afhc-plate-land .afhc-select { font-size: 15px; padding: 18px 2px 4px 44px; }
  #afh-conf-root .afhc-plate-seg .afhc-input { font-size: 15px; }
  .afhc-minicart-host { position: fixed !important; top: 8px; right: 8px; left: auto !important; z-index: 25; }
  .afhc-drawer--cart { top: 56px; bottom: 0; height: auto; }
}

/* Клонированная обёртка #afh-conf-root несёт единичный transform
   (matrix(1,0,0,1,0,0)) и из-за этого становится containing block для
   position: fixed — наша закреплённая CTA-полоса и панели считали «низ» от неё.
   Преобразование единичное, визуально его снятие ничего не меняет. */
#fahrzeugplattform .transition-translate { transform: none !important; }

/* Точные мобильные числа живого по DOM-замерам (LiveMobileD, 390/440):
   карточки стран column-gap 8 / row-gap 16; карточка продукта padding 12/24,
   название 18/700; врезка radius 32 padding 20/24; полоса номера — «Land» 71,
   плашка 24×44, «Land» 12px, значение 18px; CTA 8px от низа. */
@media (max-width: 767px) {
  #afh-conf-root .afhc-sec[data-sid="laender"] .afhc-cards { gap: 16px 8px; }
  #afh-conf-root .afhc-product { padding: 12px 24px; }
  #afh-conf-root .afhc-product-title { font-size: 18px; }
  #afh-conf-root .afhc-product-price { font-size: 18px; }
  #afh-conf-root .afhc-zzgl { font-size: 16px; }
  #afh-conf-root .afhc-note-box { border-radius: 32px; padding: 20px 24px; }
  #afh-conf-root .afhc-plate-land { flex: 0 0 71px; max-width: 71px; }
  #afh-conf-root .afhc-plate-land .afhc-select { font-size: 18px; padding: 16px 2px 4px 40px; }
  #afh-conf-root .afhc-plate-land .afhc-float-label { left: 40px; top: 4px; font-size: 12px; }
  #afh-conf-root .afhc-plate-land .afhc-country-strip,
  #afh-conf-root .afhc-plate-land .afhc-country-flag { left: 6px; top: 4px; width: 24px; height: 44px; }
  #afh-conf-root .afhc-plate-land .afhc-country-chevron { display: none; }
  #afh-conf-root .afhc-plate-seg .afhc-input { font-size: 16px; }
}

/* Правки по последнему списку MobileAuditB (ревизия 49a7de74):
   1) мини-корзина на мобильном: правило поднято до той же специфичности, что
      базовое (`body > .afhc-drawer-wrap …`), иначе высота calc(100vh - 96px)
      побеждала и панель обрывалась в 40px над низом;
   2) поле «Land» на телефоне — 115px, как у живого (замер по разделителям). */
@media (max-width: 767px) {
  body > .afhc-drawer-wrap .afhc-drawer--cart { top: 56px; bottom: 0; height: auto; }
  #afh-conf-root .afhc-plate-land { flex: 0 0 115px; max-width: 115px; }
  #afh-conf-root .afhc-plate-land .afhc-select { padding: 18px 2px 4px 40px; }
  #afh-conf-root .afhc-plate-land .afhc-float-label { left: 40px; }
}
