/*
 * App-Look der Bieter-Seiten und der Anmeldung (13.10.2026, Nutzerwunsch:
 * "hochwertig, sportlich elegant, ähnlich wie bei Apple").
 *
 * Eine Stelle für das gemeinsame Erscheinungsbild: großer Titel, Reiter als
 * Segment-Umschalter, gefüllte Eingabefelder, weiche Karten mit Hub beim
 * Darüberfahren, ruhige Knöpfe. Die neue Auktionsliste (AuctionListing.html)
 * ist das Vorbild.
 *
 * Die Seiten setzen ihre Stile innerhalb der React-Komponente -- diese Datei
 * wird vorher geladen. Deshalb tragen die Regeln "html body" vorne und gewinnen
 * über die höhere Spezifität, nicht über die Reihenfolge.
 */

:root {
  --look-fill: color-mix(in srgb, var(--ink) 7%, transparent);
  --look-fill-hover: color-mix(in srgb, var(--ink) 11%, transparent);
  --look-ring: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent);
  --look-card-shadow: 0 1px 2px rgba(36, 30, 26, .05), 0 6px 22px rgba(36, 30, 26, .06);
  --look-card-shadow-hover: 0 2px 4px rgba(36, 30, 26, .06), 0 18px 40px rgba(36, 30, 26, .12);
  --look-radius: 20px;
  --look-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------------------------------------------------------- Titel */
html body .bd-h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 6px; }
html body .bd-sub { font-size: 14px; }

/* ---------------------------------------------------------- Reiter als Segment */
html body .bd-tabs, html body .lh-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 0; border-radius: 12px;
  background: var(--look-fill); margin-bottom: 22px; max-width: 100%;
}
html body .bd-tab, html body .lh-tab {
  border: 0; margin: 0; padding: 8px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-muted); white-space: nowrap; transition: background-color .2s, box-shadow .2s, color .2s;
}
html body .bd-tab.active, html body .lh-tab.active {
  color: var(--ink); background: var(--surface-card);
  box-shadow: 0 1px 3px rgba(36, 30, 26, .12), 0 1px 1px rgba(36, 30, 26, .06);
}
html body .lh-tabs { display: flex; }
html body .lh-tab { flex: 1; text-align: center; }

/* ---------------------------------------------------------- Kennzahlen */
html body .bd-stat { border-top: 0; border-radius: var(--look-radius); box-shadow: var(--look-card-shadow); padding: 18px 20px; }
html body .bd-stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
html body .bd-stat-label { font-size: 13px; }

/* ---------------------------------------------------------- Karten */
html body .bd-card, html body .bd-fee-card, html body .bd-mandate, html body .bd-note, html body .lh {
  border-radius: var(--look-radius); box-shadow: var(--look-card-shadow);
}
html body .bd-card { transition: transform .25s var(--look-ease), box-shadow .25s var(--look-ease); }
html body .bd-card:hover { transform: translateY(-2px); box-shadow: var(--look-card-shadow-hover); }
html body .bd-mandate.missing { box-shadow: 0 0 0 1.5px var(--brand), var(--look-card-shadow); }
html body .bd-thumb { border-radius: var(--look-radius) 0 0 var(--look-radius); }
html body .bd-card-title { font-size: 16px; letter-spacing: -0.01em; }
html body .bd-card-price { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
html body .bd-badge { border: 0 !important; background: var(--look-fill); }
html body .bd-card-rest { background: var(--look-fill); }
@media (max-width: 640px) {
  html body .bd-thumb { border-radius: 0; }
  html body .bd-card:has(> .bd-thumb) .bd-card-price { font-size: 26px; line-height: 30px; }
}

/* ---------------------------------------------------------- Felder */
html body .bd-field input, html body .bd-select, html body .lh-input,
html body .bd input[type="text"], html body .bd input[type="email"], html body .bd input[type="tel"],
html body .bd input[type="number"], html body .bd textarea, html body .bd select {
  background-color: var(--look-fill); border: 0; border-radius: 12px; color: var(--ink);
  font-family: inherit; transition: box-shadow .2s, background-color .2s;
}
html body .lh-input { padding: 12px 14px; font-size: 15px; }
html body .bd-field input:focus, html body .bd-select:focus, html body .lh-input:focus,
html body .bd input:focus, html body .bd textarea:focus, html body .bd select:focus {
  outline: none; box-shadow: var(--look-ring); background-color: var(--surface-card);
}
html body .bd-field { font-size: 13px; }

/* ---------------------------------------------------------- Knöpfe */
html body .bd-btn, html body .lh-btn {
  border-radius: 999px; font-weight: 600; font-size: 14px; padding: 11px 20px;
  transition: transform .15s var(--look-ease), filter .2s, background-color .2s;
}
html body .bd-btn:hover:not(:disabled), html body .lh-btn.primary:hover:not(:disabled) { filter: brightness(1.06); }
html body .bd-btn:active:not(:disabled), html body .lh-btn:active:not(:disabled) { transform: scale(.98); }
html body .bd-btn.ghost, html body .lh-btn.secondary { border: 0; background: var(--look-fill); color: var(--ink); }
html body .bd-btn.ghost:hover:not(:disabled), html body .lh-btn.secondary:hover:not(:disabled) { background: var(--look-fill-hover); }
html body .bd-pdf-btn { background: var(--look-fill); color: var(--ink); }

/* ---------------------------------------------------------- Anmeldung */
html body .lh { padding: 32px; }
html body .lh-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
html body .lh-info, html body .lh-kyc-box, html body .lh-role-card, html body .lh-launch-card { background: var(--look-fill); border-radius: 14px; }
html body .lh-role-card, html body .lh-launch-card { transition: transform .2s var(--look-ease), background-color .2s; }
html body .lh-role-card:hover, html body .lh-launch-card:hover { border-color: transparent; background: var(--look-fill-hover); transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  html body .bd-card, html body .bd-card:hover, html body .bd-btn, html body .lh-btn,
  html body .lh-role-card, html body .lh-launch-card { transition: none; transform: none; }
}

/* ---------------------------------------------------------- Fahrzeugseite (AuctionBidderDashboard) */
html body .hg-price { font-size: clamp(32px, 6vw, 40px); font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
html body .hg-spec-chip { background: var(--look-fill); color: var(--ink); font-size: 13px; font-weight: 600; padding: 5px 11px; }
html body .hg-input { background: var(--look-fill); border: 0; border-radius: 14px; font-size: 18px; padding: 13px 16px; transition: box-shadow .2s, background-color .2s; }
html body .hg-input:focus { outline: none; box-shadow: var(--look-ring); background: var(--surface-card); }
html body .hg-btn { border-radius: 14px; padding: 13px 22px; font-size: 15px; transition: transform .15s var(--look-ease), filter .2s; }
html body .hg-btn:hover:not(:disabled) { filter: brightness(1.06); }
html body .hg-btn:active:not(:disabled) { transform: scale(.98); }
html body .hg-quickbid-btn, html body .hg-bid-agent-btn, html body .hg-bid-agent-cancel {
  border: 0; background: var(--look-fill); color: var(--ink); border-radius: 12px; transition: background-color .2s, transform .15s var(--look-ease);
}
html body .hg-quickbid-btn:hover:not(:disabled), html body .hg-bid-agent-btn:hover:not(:disabled), html body .hg-bid-agent-cancel:hover:not(:disabled) { background: var(--look-fill-hover); }
html body .hg-quickbid-btn:active:not(:disabled) { transform: scale(.97); }
html body .hg-bid-agent { background: var(--look-fill); border-radius: 16px; }
@media (prefers-reduced-motion: reduce) {
  html body .hg-btn, html body .hg-quickbid-btn { transition: none; transform: none; }
}

/* ========================================================== Autohaus-Seiten (14.10.2026)
   Übersicht (DealerDashboard), Verkaufsberater-Konsole (SalesAdvisorConsole),
   Fahrzeugaufnahme (VehicleIntakeWizard) -- derselbe Look wie die Bieter-Seiten. */

/* ---- Titel */
html body .dd-h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 6px; }
html body .dd-sub { font-size: 14px; }
html body .viw-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

/* ---- Reiter als Segment */
html body .dd-tabs { display: flex; width: fit-content; max-width: 100%; gap: 2px; padding: 3px; border-radius: 12px; box-shadow: none;
  background: var(--look-fill); margin-bottom: 22px; }
html body .dd-tab { border: 0; margin: 0; padding: 8px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-muted);
  white-space: nowrap; background: transparent; transition: background-color .2s, box-shadow .2s, color .2s; }
html body .dd-tab.active { color: var(--ink); background: var(--surface-card); border-bottom-color: transparent;
  box-shadow: 0 1px 3px rgba(36, 30, 26, .12), 0 1px 1px rgba(36, 30, 26, .06); }
html body .dd-meine { border: 0; background: var(--look-fill); border-radius: 12px; padding: 3px; }
html body .dd-meine button { border-radius: 9px; font-weight: 600; }
html body .dd-meine button.active { background: var(--surface-card); box-shadow: 0 1px 3px rgba(36, 30, 26, .12); }
html body .dd-view { border: 0; background: var(--look-fill); color: var(--ink); font-weight: 600; }
html body .dd-view.active { background: var(--ink); color: var(--surface-card); }

/* ---- Kennzahlen und Karten */
html body .dd-stat { border-top: 0; border-radius: var(--look-radius); box-shadow: var(--look-card-shadow); padding: 18px 20px; }
html body .dd-stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
html body .dd-card, html body .dd-stripe-banner, html body .dd-tb-invite-result {
  border-radius: var(--look-radius); box-shadow: var(--look-card-shadow); }
html body .dd-card { transition: transform .25s var(--look-ease), box-shadow .25s var(--look-ease); }
html body .dd-card:not(.static):hover { transform: translateY(-2px); box-shadow: var(--look-card-shadow-hover); }
html body .dd-thumb { border-radius: var(--look-radius) 0 0 var(--look-radius); }
html body .dd-card-title { letter-spacing: -0.01em; }
html body .dd-card-price { font-weight: 800; letter-spacing: -0.02em; }
html body .dd-badge { border: 0 !important; background: var(--look-fill); }
html body .dd-card-rest { background: var(--look-fill); }
html body .sac-action-card, html body .sac-floor-card, html body .viw-card { background: var(--look-fill); border-radius: 16px; }
html body .sac-price { font-size: clamp(30px, 6vw, 40px); font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
html body .sac-floor-amount { font-weight: 800; letter-spacing: -0.03em; }
@media (max-width: 640px) { html body .dd-thumb { border-radius: 0; } }

/* ---- Felder */
html body .dd-input, html body .dd-select, html body .dd-search, html body .dd-tb-search,
html body .sac-input, html body .viw-input, html body .dd-fs-block select, html body .dd-fs-block input {
  background-color: var(--look-fill); border: 0; border-radius: 12px; color: var(--ink); transition: box-shadow .2s, background-color .2s; }
html body .dd-input:focus, html body .dd-select:focus, html body .sac-input:focus, html body .viw-input:focus,
html body .dd-fs-block select:focus, html body .dd-fs-block input:focus { outline: none; box-shadow: var(--look-ring); background-color: var(--surface-card); }
html body .dd-search:focus-within, html body .dd-tb-search:focus-within { outline: none; box-shadow: var(--look-ring); }

/* ---- Knöpfe */
html body .dd-btn-new, html body .sac-btn, html body .viw-btn {
  border-radius: 14px; font-weight: 600; transition: transform .15s var(--look-ease), filter .2s, background-color .2s; }
html body .dd-btn-new:hover:not(:disabled), html body .sac-btn:hover:not(:disabled), html body .viw-btn.primary:hover:not(:disabled) { filter: brightness(1.06); }
html body .dd-btn-new:active:not(:disabled), html body .sac-btn:active:not(:disabled), html body .viw-btn:active:not(:disabled) { transform: scale(.98); }
html body .viw-btn.secondary { border: 0; background: var(--look-fill); color: var(--ink); }
html body .viw-btn.secondary:hover:not(:disabled) { background: var(--look-fill-hover); }
html body .dd-zust-btn, html body .dd-vehicle-action-btn { border: 0; background: var(--look-fill); border-radius: 10px; }

/* ---- Aufnahme: Fortschritt und Foto-Kacheln */
html body .viw-step-bar { height: 4px; border-radius: 4px; }
html body .viw-photo-tile { border-radius: 16px; background: var(--look-fill); border-color: transparent; }
html body .viw-photo-tile.required { border: 1.5px dashed var(--brand); }
html body .viw-photo-tile.has-photo { border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  html body .dd-card, html body .dd-card:hover, html body .dd-btn-new, html body .sac-btn, html body .viw-btn { transition: none; transform: none; }
}

/* ========================================================== Plattform-Cockpit (14.10.2026)
   AdminDashboard -- derselbe Look wie Bieter- und Autohaus-Seiten: großer
   Titel, Bereiche und Unterreiter als Segment, gefüllte Felder, weiche Karten. */

/* ---- Titel */
html body .ad-h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 6px; }
html body .ad-sub { font-size: 14px; }
html body .ad-section-title { font-size: 17px; font-weight: 800; letter-spacing: -0.015em; }

/* ---- Bereiche und Unterreiter als Segment */
html body .ad-tabs { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; gap: 2px; padding: 3px;
  border-radius: 14px; background: var(--look-fill); margin-bottom: 18px; }
html body .ad-tab { border: 0; background: transparent; min-height: 38px; padding: 8px 14px; border-radius: 11px;
  font-size: 13.5px; color: var(--ink-muted); transition: background-color .2s, box-shadow .2s, color .2s; }
html body .ad-tab:hover { color: var(--ink); border-color: transparent; }
html body .ad-tab.active { color: var(--ink); background: var(--surface-card); border-color: transparent;
  box-shadow: 0 1px 3px rgba(36, 30, 26, .12), 0 1px 1px rgba(36, 30, 26, .06); }
html body .ad-tab.active .ad-tab-badge { background: var(--brand); color: #fff; }
html body .ad-subtabs { border: 0; background: var(--look-fill); border-radius: 12px; padding: 3px; gap: 2px; margin: 0 0 20px; }
html body .ad-subtab { border-radius: 9px; font-weight: 600; transition: background-color .2s, box-shadow .2s, color .2s; }
html body .ad-subtab.active { background: var(--surface-card); box-shadow: 0 1px 3px rgba(36, 30, 26, .12); }

/* ---- Suche, Felder, Auswahl */
html body .ad-search, html body .ad-select, html body .ad-input {
  background-color: var(--look-fill); border: 0; color: var(--ink); transition: box-shadow .2s, background-color .2s; }
html body .ad-search { border-radius: 12px; }
html body .ad-select { border-radius: 10px; }
html body .ad-input { border-radius: 10px; }
html body .ad-global-feld { border-radius: 14px; padding: 12px 16px; }
html body .ad-search:focus-within, html body .ad-select:focus, html body .ad-input:focus {
  outline: none; box-shadow: var(--look-ring); background-color: var(--surface-card); }
html body .ad-global-liste { border: 0; border-radius: 18px; box-shadow: 0 12px 40px rgba(36, 30, 26, .2); padding: 6px; }
html body .ad-global-treffer { border-radius: 10px; }
html body .ad-global-treffer:hover, html body .ad-global-treffer:focus-visible { background: var(--look-fill); }

/* ---- Karten, Kennzahlen */
html body .ad-card, html body .ad-kpi { border-radius: var(--look-radius); box-shadow: var(--look-card-shadow); }
html body .ad-card:not(.ad-ak):not(.ad-mk) { padding: 18px 20px; }
html body .ad-card-title { letter-spacing: -0.01em; }
html body .ad-todo-info { transition: transform .25s var(--look-ease), box-shadow .25s var(--look-ease); }
html body .ad-todo-info:hover { transform: translateY(-2px); box-shadow: var(--look-card-shadow-hover); }
html body .ad-todo-zahl { font-size: 28px; letter-spacing: -0.03em; }
html body .ad-stat { border-top: 0; border-radius: var(--look-radius); box-shadow: var(--look-card-shadow); padding: 18px 20px; }
html body .ad-stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
html body .ad-stat.link { transition: transform .25s var(--look-ease), box-shadow .25s var(--look-ease); }
html body .ad-stat.link:hover { transform: translateY(-2px); box-shadow: var(--look-card-shadow-hover); }
html body .ad-kpi-value { font-weight: 800; letter-spacing: -0.02em; }
html body .ad-sub-row, html body .ad-filter-chip { background: var(--look-fill); }
html body .ad-badge { border-color: transparent !important; background: var(--look-fill); }

/* ---- Knöpfe */
html body .ad-btn, html body .ad-btn-primary { border-radius: 999px; transition: transform .15s var(--look-ease), filter .2s, background-color .2s; }
html body .ad-btn:hover:not(:disabled), html body .ad-btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
html body .ad-btn:active:not(:disabled), html body .ad-btn-primary:active:not(:disabled) { transform: scale(.98); }
html body .ad-btn.ghost, html body .ad-btn.reject, html body .ad-btn.danger { border: 0; background: var(--look-fill); }
/* Knöpfe ohne Variante hatten bisher das graue Browser-Standardaussehen */
html body .ad-btn:not(.approve):not(.reject):not(.ghost):not(.danger) { border: 0; background: var(--look-fill); }
html body .ad-btn:not(.approve):not(.reject):not(.ghost):not(.danger):not(.ad-btn-live) { color: var(--ink); }
html body .ad-btn:not(.approve):not(.reject):not(.ghost):not(.danger):hover:not(:disabled) { filter: none; background: var(--look-fill-hover); }
html body .ad-btn.ghost:hover:not(:disabled), html body .ad-btn.reject:hover:not(:disabled),
html body .ad-btn.danger:hover:not(:disabled) { filter: none; background: var(--look-fill-hover); }

@media (prefers-reduced-motion: reduce) {
  html body .ad-todo-info, html body .ad-todo-info:hover, html body .ad-stat.link, html body .ad-stat.link:hover,
  html body .ad-btn, html body .ad-btn-primary { transition: none; transform: none; }
}

/* ---------------------------------------------------------- Kopfzeile am Handy */
/* "aktualisiert alle 15s" brach neben dem Logo um und machte die Kopfzeile doppelt so hoch. */
html body .hg-refresh { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 480px) { html body .hg-refresh-lang { display: none; } }

/* ---------------------------------------------------------- Gemeinsame Bausteine */
/* UX-Plan Stufe 3 (12.11.2026). Vorher hatte jede Seite ihre eigene Knopfform: Eckenradius 10,
   12, 14 px oder Pille, 36 bis 47 px hoch, Schrift 13 bis 15 px in drei Stärken. Hier steht
   EINE Form. Farben und Zustände (rot, leise, gesperrt, Hover) bleiben bei den Seiten -- dieser
   Abschnitt legt nur Form, Höhe und Schrift fest. Neue Knopf-, Reiter- oder Filterklassen
   bitte in die passende Liste eintragen statt eigene Maße zu vergeben.

   Dieser Abschnitt muss VOR den Tippflächen stehen: dort werden die Höhen für Touch-Geräte
   auf 44 px angehoben. */

/* Knopf, normale Größe */
html body :is(.dd-btn-new, .md-btn, .dd-pv-leise, .dd-pv-ja, .dd-vk-btn, .dd-zust-btn,
              .sac-btn, .sac-verf-btn, .fq-btn,
              .al-bieten-knopf, .al-voll-knopf,
              .hg-nav-btn, .hg-merken, .hg-report-pdf-btn, .hg-buehne-btn, .hg-buy-now-btn,
              .hg-vorschlag-leise, .hg-ms-toggle, .hg-market-search-btn, .hg-bid-agent-btn,
              .hg-payment-gate-btn, .as-btn, .bd-btn, .bd-pdf-btn, .ek-btn, .ad-btn, .lh-btn, .zc-btn) {
  box-sizing: border-box; height: auto; min-height: var(--knopf-hoehe);
  padding-block: 9px; padding-inline: 18px;
  border-radius: var(--knopf-radius);
  font-size: var(--text-normal); line-height: 20px; font-weight: 700;
}

/* Knopf, groß: die eine Hauptaktion eines Bildschirms (Bieten, Weiter, Scannen) */
html body :is(.hg-btn, .viw-btn, .jd-btn) {
  box-sizing: border-box; height: auto; min-height: var(--knopf-hoehe-gross);
  padding-block: 11px; padding-inline: 22px;
  border-radius: var(--knopf-radius);
  font-size: var(--text-mittel); line-height: 22px; font-weight: 700;
}

/* Reiter und Umschalter (Segment in einer gemeinsamen Schale) */
html body :is(.dd-tab, .bd-tab, .ad-tab, .dd-meine button, .al-segment button, .al-mini-segment button,
              .hg-galerie-reiter button, .hg-reiter button) {
  box-sizing: border-box; min-height: var(--reiter-hoehe);
  border-radius: var(--reiter-radius);
  font-size: var(--text-klein); font-weight: 600;
}

/* Filter-Pillen über einer Liste (Zu tun, Laufend, Verkauft ...) */
html body :is(.dd-view, .ek-sch) {
  box-sizing: border-box; min-height: var(--reiter-hoehe);
  padding: 7px 16px; border-radius: 999px; border: 1px solid transparent;
  font-size: var(--text-klein); font-weight: 600;
}
html body .ek-sch:not(.aktiv) { background: var(--look-fill); }

/* Auswahl-Pillen mit eigener Farbgebung (Karosserieform in der Aufnahme): nur die Höhe */
html body .viw-guide-bodytype-btn { box-sizing: border-box; min-height: var(--reiter-hoehe); }

/* ---------------------------------------------------------- Tippflächen auf Touch-Geräten */
/* UX-Plan Stufe 2 (12.11.2026): am Handy und auf dem Tablet waren Reiter 30–35 px und viele
   Knöpfe 36–38 px hoch. Hier bekommen sie mindestens 44 px (--tippflaeche). Am Schreibtisch
   mit Maus bleibt alles, wie es war. Die Bietleiter (.hg-leiter-stufe) ist bewusst ausgenommen:
   ihre Zeilen sind ein Maßstab, keine Knopfreihe. Die großen Knöpfe (.hg-btn, .viw-btn, .jd-btn)
   stehen nicht in der Liste, weil sie mit 46 px ohnehin darüber liegen. */
@media (max-width: 640px), (pointer: coarse) {
  /* Gefüllte und umrandete Knöpfe */
  html body :is(.dd-btn-new, .dd-vk-btn, .dd-zust-btn, .dd-pv-leise, .dd-pv-ja, .md-btn,
                .sac-btn, .sac-verf-btn, .fq-btn, .vg-zurueck,
                .al-bieten-knopf, .al-voll-knopf, .al-filter-knopf,
                .hg-nav-btn, .hg-merken, .hg-report-pdf-btn, .hg-buehne-btn, .hg-buy-now-btn,
                .hg-vorschlag-leise, .hg-ms-toggle, .hg-market-search-btn, .hg-bid-agent-btn,
                .hg-payment-gate-btn, .hg-quickbid-btn, .hg-bietleiste-bieten, .hg-bietleiste-info, .as-btn,
                .bd-btn, .bd-pdf-btn, .ek-btn, .ad-btn, .lh-btn, .zc-btn) {
    min-height: var(--tippflaeche);
  }
  /* Links als Knopf rechnen ihre Höhe ohne Innenabstand -- sonst würden aus 44 px 64 px. */
  html body :is(a.dd-btn-new, a.ek-btn, a.vg-zurueck) { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }

  /* Reiter und Umschalter */
  html body :is(.dd-tab, .dd-view, .dd-meine button, .bd-tab, .ek-sch, .ad-tab, .al-segment button, .al-mini-segment button,
                .hg-galerie-reiter button, .hg-reiter button, .viw-guide-bodytype-btn) {
    min-height: var(--tippflaeche);
  }

  /* Suchfelder und Auswahlfelder */
  html body :is(.dd-search, .al-suche, .ad-search, .al-auswahl, .dd-zust-select) { min-height: var(--tippflaeche); box-sizing: border-box; }

  /* Runder Merken-Knopf auf der Auktionskarte */
  html body .al-merken { width: var(--tippflaeche); height: var(--tippflaeche); }

  /* Textlinks als Knopf: die Zeile bleibt so hoch wie bisher, nur die Fläche, die auf den Finger
     reagiert, wächst nach oben und unten. */
  html body :is(.dd-vehicle-action-btn, .dd-vk-zweit, .md-btn-leise, .dd-team-link,
                .sac-verf-link, .vg-link, .vg-leise, .viw-link-btn, .al-text-knopf,
                .jd-leise, .as-link, .ek-leise, .tm-leise, .bd-link, .lh-link, .zc-link, .zc-leise) {
    position: relative;
  }
  html body :is(.dd-vehicle-action-btn, .dd-vk-zweit, .md-btn-leise, .dd-team-link,
                .sac-verf-link, .vg-link, .vg-leise, .viw-link-btn, .al-text-knopf,
                .jd-leise, .as-link, .ek-leise, .tm-leise, .bd-link, .lh-link, .zc-link, .zc-leise)::after {
    content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: var(--tippflaeche);
    min-height: 100%; transform: translateY(-50%);
  }
}

/* Schrittnamen der Kaufleiste ("Entscheidung") sind bei 12 px breiter als ihre Spalte am Handy. */
@media (max-width: 420px) { html body .jd-name { letter-spacing: -0.02em; } }

/* Vorgangsseite: Uhr und Höchstgebot bleiben am Handy nebeneinander; die Unterzeile darf umbrechen. */
@media (max-width: 640px) {
  html body .sac-ticker:has(> :nth-child(2):last-child) { flex-wrap: nowrap; }
  html body .sac-ticker:has(> :nth-child(2):last-child) > * { min-width: 0; }
}

/* ---------------------------------------------------------- Autohaus-Übersicht am Handy straffen */
/* UX-Plan Stufe 5 (12.11.2026): das erste Fahrzeug begann erst bei rund 1.200 px, also nach
   anderthalb Bildschirmen. Kennzahlen werden zu einer flachen Dreierreihe, die Filter-Pillen zu
   einer Zeile zum Wischen, und der Knopf "Fahrzeug aufnehmen" entfällt in der Werkzeugzeile --
   die untere Leiste hat ihn fest als "Aufnehmen". */
@media (max-width: 640px) {
  html body .dd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
  html body .dd-stat { padding: 10px 12px; border-radius: 14px; }
  html body .dd-stat-value { font-size: 22px; line-height: 26px; }
  html body .dd-stat-label { font-size: var(--text-etikett); line-height: 15px; margin-top: 2px; }

  html body .dd-views { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  html body .dd-views::-webkit-scrollbar { display: none; }
  html body .dd-view { flex: none; }
  html body .dd-view-zutun { margin-right: 4px; }

  html body .dd-toolbar a.dd-btn-new { display: none; }
}

/* ---------------------------------------------------------- Zugänglichkeit */
/* UX-Plan Stufe 6 (13.11.2026). */

/* Grundschrift: bisher setzte jede Seite die Schrift erst an ihrem Wurzel-Element. Alles, was
   direkt am <body> hängt (Bietleiste, Dialoge, Meldungen), fiel sonst auf die Serifenschrift
   des Browsers zurück, sobald eine eigene Angabe fehlte. */
html body { font-family: var(--font-sans); }

/* Wer im Betriebssystem "Bewegung reduzieren" gewählt hat, bekommt keine Einblend- und
   Schiebe-Effekte mehr. Zustände wechseln sofort; nichts bleibt halb eingeblendet stehen,
   weil die Animationen nur verkürzt und nicht abgeschaltet werden. */
@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* Tastatur: ein sichtbarer Fokusrahmen als Auffangnetz. :where() hat kein Gewicht -- jede Seite,
   die ihren eigenen Rahmen setzt, behält ihn. */
:where(a, button, select, summary, [role="tab"], [role="button"]):focus-visible {
  outline: 2px solid var(--brand-text); outline-offset: 2px;
}
