/* ═══════════════════════════════════════════════════════════════════
   ARTFORM — WooCommerce
   ═══════════════════════════════════════════════════════════════════
   Reines Aufsatz-CSS für die von WooCommerce erzeugte Auszeichnung.
   Kein PHP, keine Templates — WooCommerce liefert seine eigenen Klassen,
   wir übernehmen nur die Optik aus design.css: heller, ruhiger Grund,
   ein gedämpftes Petrol als einziger Akzent, Karten mit dünner Linie
   statt Schatten-Overkill.

   Quelle der Klassennamen: Live-Abgleich mit https://artform.weareweblabs.com
   (Produktliste, Produktseite, Konto-Login). Warenkorb und Kasse liefern
   im leeren Zustand kein HTML mit echten Positionen — dort wird nach den
   Standardklassen von WooCommerce 11 gestaltet. Diese Version nutzt für
   Warenkorb/Kasse den Block-Editor (wp-block-woocommerce-*), deshalb wird
   zusätzlich zur klassischen Tabellen-Auszeichnung (shop_table, form-row)
   auch die Block-Auszeichnung (wc-block-*) bedient — beide zusammen decken
   ab, was WooCommerce 11 je nach Konfiguration ausliefert.

   Nur --wlf-* und --af-*-Tokens, keine festen Farbwerte außer bei
   Zustandsfarben ohne eigenes Token (Sternebewertung, Rabatt-Streichpreis).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Grundrahmen ─────────────────────────────────────────────────────
   WooCommerce bringt seinen Inhalt in .wlf-woocommerce (Theme-Wrapper).
   Die Breite kommt vom Theme, hier nur Lesefluss und Linkfarbe, damit
   WooCommerce-eigene Links (Warenkorb-Meldung, "Zurück zum Shop" etc.)
   nicht in Browser-Blau auftauchen. */
.woocommerce, .woocommerce-page {
  color: var(--wlf-color-ink);
}
/* Gold als Schrift immer in der abgedunkelten Fassung: #bfa774 auf Weiß
   ist als Text nicht lesbar genug. Als Fläche bleibt es die Markenfarbe. */
body.woocommerce .wlf-site-main a:not(.button):not(.af-btn) {
  color: var(--af-gold-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
body.woocommerce .wlf-site-main a:not(.button):not(.af-btn):hover { color: var(--wlf-color-ink); }

/* ── Brotkrumen ──────────────────────────────────────────────────────
   Dezent und klein — sie sind Orientierung, kein Gestaltungselement. */
.woocommerce-breadcrumb {
  font-size: var(--wlf-text-sm);
  color: var(--wlf-color-ink-muted);
  margin: 0 0 var(--wlf-space-5);
  padding-top: var(--wlf-space-5);
}
.woocommerce-breadcrumb a { color: var(--wlf-color-ink-muted); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--wlf-color-ink); text-decoration: underline; }

/* ── Meldungen ───────────────────────────────────────────────────────
   Bewusst KEIN knalliger Flächen-Hintergrund: eine farbige Kante links
   auf ruhiger Fläche reicht, um Erfolg/Info/Fehler zu unterscheiden,
   ohne die helle Seite zu stören. Zustandsfarben stehen als Token
   bereit (--wlf-color-success/-warning/-danger), Info bekommt den
   Marken-Akzent, weil es dafür kein eigenes Token gibt. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--wlf-space-3);
  list-style: none; margin: 0 0 var(--wlf-space-5); padding: var(--wlf-space-4) var(--wlf-space-5);
  background: var(--wlf-color-surface);
  border: 1px solid var(--wlf-color-line);
  border-left: 3px solid var(--wlf-color-accent);
  border-radius: var(--wlf-radius-md);
  font-size: var(--wlf-text-sm);
}
.woocommerce-message { border-left-color: var(--wlf-color-success); }
.woocommerce-error { border-left-color: var(--wlf-color-danger); }
/* Fehlerliste kommt manchmal als <ul> mit mehreren <li>-Meldungen daher. */
.woocommerce-error li { margin: 0; }
.woocommerce-message a.button,
.woocommerce-error a.button {
  margin-left: auto;
}

/* ── Ergebniszähler & Sortierung ────────────────────────────────────
   Eine Zeile über dem Raster: links Anzahl, rechts Sortierung. Auf
   Mobil untereinander, damit das Dropdown nicht gequetscht wird. */
.woocommerce > form.woocommerce-ordering,
.woocommerce-ordering { display: inline-block; }
.woocommerce-result-count,
.woocommerce-ordering {
  margin: 0 0 var(--wlf-space-5);
}

/* Die beiden Elemente stehen im Markup ohne gemeinsamen Wrapper direkt
   nacheinander — mit Flex auf dem darüberliegenden Container ließen sie
   sich sauber in eine Zeile bringen, doch der Wrapper ist WooCommerce-
   eigen und hier nicht greifbar. Also über die Geschwister-Beziehung. */
.woocommerce-result-count {
  display: inline-block;
  color: var(--wlf-color-ink-muted);
  font-size: var(--wlf-text-sm);
}
.woocommerce-result-count + form.woocommerce-ordering {
  float: right;
}
@media (max-width: 640px) {
  .woocommerce-result-count + form.woocommerce-ordering { float: none; display: block; margin-top: var(--wlf-space-2); }
}

.orderby {
  appearance: none;
  background: var(--wlf-color-bg);
  border: 1px solid var(--wlf-color-line);
  border-radius: var(--wlf-radius-md);
  padding: .55rem 2.2rem .55rem .9rem;
  font-family: inherit; font-size: var(--wlf-text-sm); color: var(--wlf-color-ink);
  cursor: pointer;
  /* Eigener Pfeil statt System-Pfeil, damit er zur schlichten Optik passt. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236a716d' stroke-width='1.6'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 16px;
  transition: border-color var(--wlf-transition);
}
.orderby:hover { border-color: var(--wlf-color-ink); }
.orderby:focus-visible { outline: 2px solid var(--wlf-color-accent); outline-offset: 2px; }

/* ═══════════════════════════════════════════════════════════════════
   PRODUKTLISTE  (.woocommerce ul.products)
   ═══════════════════════════════════════════════════════════════════ */
.woocommerce ul.products {
  display: grid;
  /* Feste Spalten — auto-fill ließ ungerade Restzeilen stehen. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  list-style: none;
  margin: 0 0 var(--wlf-space-7);
  padding: 0;
  clear: both; /* wegen des float bei der Sortierzeile */
}
@media (max-width: 980px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
}

.woocommerce ul.products li.product {
  background: var(--wlf-color-bg);
  border: 1px solid var(--wlf-color-line);
  border-radius: var(--wlf-radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--wlf-transition), box-shadow var(--wlf-transition), transform var(--wlf-transition);
}
/* Dezenter Hover: Linie dunkler, leichtes Anheben — kein Schatten-Drama,
   die Felge soll wirken, nicht die Karte. */
.woocommerce ul.products li.product:hover {
  border-color: var(--wlf-color-ink);
  box-shadow: var(--wlf-shadow-md);
  transform: translateY(-2px);
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
}

/* Produktbild: auf Surface-Fläche mit Innenabstand, damit freigestellte
   Felgen "schweben" statt am Kartenrand zu kleben — object-fit: contain,
   weil beschnittene Felgenbilder Kunden beim Passform-Vergleich stören. */
.woocommerce ul.products li.product img {
  display: block;
  width: 100%; aspect-ratio: 1 / 1;
  background: var(--wlf-color-surface);
  object-fit: contain;
  padding: var(--wlf-space-4);
  box-sizing: border-box;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: var(--wlf-space-4) var(--wlf-space-4) 0;
  font-size: var(--wlf-text-base);
  font-weight: var(--wlf-weight-bold);
  letter-spacing: -.02em;
  line-height: var(--wlf-leading-tight);
  color: var(--wlf-color-ink);
}

.woocommerce ul.products li.product .price {
  margin: .35rem var(--wlf-space-4) var(--wlf-space-4);
  margin-top: auto; /* schiebt Preis + Button ans Kartenende, egal wie lang der Titel ist */
}
/* Streichpreis bei reduzierten Produkten — WooCommerce liefert <del>/<ins>. */
.woocommerce ul.products li.product .price del {
  color: var(--wlf-color-ink-muted);
  font-weight: var(--wlf-weight-normal);
  margin-right: .4em;
  text-decoration-thickness: 1px;
}
.woocommerce ul.products li.product .price ins {
  text-decoration: none;
}

/* "In den Warenkorb"-Button im Raster: volle Kartenbreite, damit die
   Zeile mit dem Bild abschließt, wie bei den Modellkarten der Startseite. */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.add_to_cart_button {
  display: block;
  margin: 0 var(--wlf-space-4) var(--wlf-space-4);
  padding: .7rem 1.2rem;
  border-radius: var(--wlf-radius-pill);
  border: 1px solid var(--wlf-color-ink);
  background: var(--wlf-color-ink);
  color: var(--af-on-dark);
  font-size: var(--wlf-text-sm); font-weight: var(--wlf-weight-bold);
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background var(--wlf-transition), border-color var(--wlf-transition);
}
.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
  background: var(--wlf-color-accent);
  border-color: var(--wlf-color-accent);
  color: var(--wlf-color-accent-ink);
}
/* WooCommerce fügt "hinzugefügt" per AJAX-Klasse hinzu — sichtbar machen,
   damit der Kunde die Bestätigung ohne Seitenwechsel sieht. */
.woocommerce ul.products li.product a.added_to_cart {
  display: block;
  margin: 0 var(--wlf-space-4) var(--wlf-space-4);
  text-align: center; font-size: var(--wlf-text-xs);
  color: var(--af-gold-text); text-decoration: underline;
}

/* ── Blätterung ──────────────────────────────────────────────────── */
.woocommerce-pagination { margin-top: var(--wlf-space-6); }
.woocommerce-pagination ul.page-numbers {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; margin: 0; padding: 0;
}
.woocommerce-pagination .page-numbers li { display: contents; }
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4rem; height: 2.4rem; padding-inline: .5rem;
  border-radius: var(--wlf-radius-pill);
  border: 1px solid var(--wlf-color-line);
  font-size: var(--wlf-text-sm); font-weight: var(--wlf-weight-medium);
  color: var(--wlf-color-ink); text-decoration: none;
  transition: border-color var(--wlf-transition), background var(--wlf-transition), color var(--wlf-transition);
}
.woocommerce-pagination .page-numbers a:hover {
  border-color: var(--wlf-color-ink);
  background: var(--wlf-color-surface);
}
.woocommerce-pagination .page-numbers .current {
  background: var(--wlf-color-accent);
  border-color: var(--wlf-color-accent);
  color: var(--wlf-color-accent-ink);
}
.woocommerce-pagination .page-numbers .dots {
  border-color: transparent; color: var(--wlf-color-ink-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUKTSEITE
   ═══════════════════════════════════════════════════════════════════ */
.single-product .product {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--af-section);
}
@media (min-width: 860px) {
  .single-product .product { grid-template-columns: 1.05fr .95fr; align-items: start; }
}

/* Galerie: gleiche Fläche wie in der Produktliste, damit Bild und Karte
   optisch zur selben Familie gehören. Dieser Shop zeigt aktuell ein
   einzelnes Bild ohne Vorschau-Miniaturen (--without-images-Variante
   greift nicht, es ist einfach kein Thumbnail-Streifen vorhanden). */
.woocommerce-product-gallery {
  background: var(--wlf-color-surface);
  border-radius: var(--wlf-radius-lg);
  overflow: hidden;
}
.woocommerce-product-gallery__wrapper { margin: 0; padding: 0; list-style: none; }
.woocommerce-product-gallery__image { display: block; }
.woocommerce-product-gallery img,
.woocommerce-product-gallery__image img {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-sizing: border-box;
  display: block;
}

.summary.entry-summary { display: flex; flex-direction: column; }
.summary.entry-summary .product_title.entry-title {
  font-size: clamp(1.625rem, 4.5vw + .5rem, var(--wlf-text-3xl));
  line-height: var(--wlf-leading-tight);
  letter-spacing: -.03em;
  margin: 0 0 var(--wlf-space-3);
}
.summary.entry-summary > .price {
  font-size: var(--wlf-text-2xl);
  font-weight: var(--wlf-weight-bold);
  font-variant-numeric: tabular-nums;
  color: var(--wlf-color-ink);
  margin: 0 0 var(--wlf-space-5);
}

.woocommerce-product-details__short-description {
  color: var(--wlf-color-ink-muted);
  font-size: var(--wlf-text-base);
  line-height: var(--wlf-leading-base);
  margin: 0 0 var(--wlf-space-5);
}
.woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* Kaufzeile: Mengenfeld + Button nebeneinander, auf Mobil volle Breite. */
.summary.entry-summary form.cart {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--wlf-space-3);
  margin: 0 0 var(--wlf-space-5);
}
.summary.entry-summary .quantity { display: flex; }
.summary.entry-summary .quantity .qty,
input.qty {
  width: 4.5rem; height: 100%;
  border: 1px solid var(--wlf-color-line);
  border-radius: var(--wlf-radius-md);
  padding: 0 .7rem;
  font-family: inherit; font-size: var(--wlf-text-base); font-weight: var(--wlf-weight-medium);
  text-align: center; color: var(--wlf-color-ink);
  background: var(--wlf-color-bg);
  transition: border-color var(--wlf-transition);
}
.summary.entry-summary .quantity .qty:focus-visible { border-color: var(--wlf-color-accent); }

/* Kauf-Button im Stil von .af-btn --accent — der Petrol-Akzent ist der
   einzige Ort auf der Seite, an dem er als Fläche auftaucht (Kaufabsicht
   verdient die stärkste Farbe im System). */
.single_add_to_cart_button.button,
.single_add_to_cart_button.button.alt {
  flex: 1 1 12rem;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem;
  border-radius: var(--wlf-radius-pill);
  border: 1px solid var(--wlf-color-accent);
  background: var(--wlf-color-accent);
  color: var(--wlf-color-accent-ink);
  font-size: var(--wlf-text-base); font-weight: var(--wlf-weight-bold);
  cursor: pointer;
  transition: background var(--wlf-transition), border-color var(--wlf-transition);
}
.single_add_to_cart_button.button:hover {
  background: var(--wlf-color-accent-hover);
  border-color: var(--wlf-color-accent-hover);
}
.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
  opacity: .5; cursor: not-allowed;
}

/* Meta: SKU/Kategorie — kleine, ruhige Zeile, keine Konkurrenz zum Button. */
.product_meta {
  font-size: var(--wlf-text-sm);
  color: var(--wlf-color-ink-muted);
  padding-top: var(--wlf-space-4);
  border-top: 1px solid var(--wlf-color-line-soft);
  display: flex; flex-direction: column; gap: .3rem;
}
.product_meta > span { display: block; }
.product_meta a { color: var(--wlf-color-ink-muted); }
.product_meta a:hover { color: var(--af-gold-text); }
.product_meta .sku { color: var(--wlf-color-ink); font-weight: var(--wlf-weight-medium); }

/* ── Reiter (Zusätzliche Informationen etc.) ────────────────────────
   Schlichte Unterstreich-Tabs statt Karteikarten-Optik — passt zur
   sonst kargen Linienführung des Shops. */
.woocommerce-tabs.wc-tabs-wrapper {
  margin-top: var(--af-section);
  border-top: 1px solid var(--wlf-color-line);
}
ul.tabs.wc-tabs {
  display: flex; flex-wrap: wrap; gap: var(--wlf-space-2);
  list-style: none; margin: 0; padding: var(--wlf-space-5) 0 0;
}
ul.tabs.wc-tabs li {
  margin: 0;
}
/* Woos Karteikarten-Optik (Rahmen, Hintergrund, Eck-Ausschnitte per
   ::before/::after) abschalten — gleiche Selektoren wie Woo, damit sie greifen. */
.woocommerce div.product .woocommerce-tabs ul.tabs { padding-left: 0; overflow: visible; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border: 0; background: none; padding: 0; margin: 0; border-radius: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: .6rem 1.1rem; color: var(--wlf-color-ink-muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--af-on-dark); }
ul.tabs.wc-tabs li a {
  display: inline-block;
  padding: .6rem 1.1rem;
  border-radius: var(--wlf-radius-pill);
  font-size: var(--wlf-text-sm); font-weight: var(--wlf-weight-medium);
  color: var(--wlf-color-ink-muted); text-decoration: none;
  transition: background var(--wlf-transition), color var(--wlf-transition);
}
ul.tabs.wc-tabs li a:hover { background: var(--wlf-color-surface); color: var(--wlf-color-ink); }
ul.tabs.wc-tabs li.active a {
  background: var(--wlf-color-ink); color: var(--af-on-dark);
}
.woocommerce-tabs .woocommerce-Tabs-panel {
  padding-top: var(--wlf-space-6);
  max-width: 62ch;
  line-height: var(--wlf-leading-base);
  color: var(--wlf-color-ink-muted);
}
.woocommerce-tabs .woocommerce-Tabs-panel h2 {
  /* WooCommerce setzt hier eine <h2>, die im Fließtext optisch zu groß wäre. */
  font-size: var(--wlf-text-lg); color: var(--wlf-color-ink); margin: 0 0 var(--wlf-space-4);
}

/* Attribut-Tabelle (Größe, Lochkreis, ET, Nabenbohrung …) — für Felgen
   die wichtigste Tabelle im ganzen Shop, deshalb ruhig und gut lesbar. */
table.woocommerce-product-attributes {
  width: 100%; max-width: 62ch;
  border-collapse: collapse;
}
table.woocommerce-product-attributes tr { border-bottom: 1px solid var(--wlf-color-line-soft); }
table.woocommerce-product-attributes tr:last-child { border-bottom: 0; }
.woocommerce-product-attributes-item__label,
.woocommerce-product-attributes-item__value {
  padding: .6rem 0; text-align: left; font-size: var(--wlf-text-sm); font-weight: var(--wlf-weight-normal);
}
.woocommerce-product-attributes-item__label {
  width: 40%; color: var(--wlf-color-ink-muted); font-weight: var(--wlf-weight-medium);
}
.woocommerce-product-attributes-item__value { color: var(--wlf-color-ink); }
.woocommerce-product-attributes-item__value p { margin: 0; }

/* ── Verwandte Produkte ──────────────────────────────────────────── */
.related.products {
  margin-top: var(--af-section);
  padding-top: var(--af-section);
  border-top: 1px solid var(--wlf-color-line);
}
.related.products h2 {
  font-size: var(--wlf-text-2xl);
  margin: 0 0 var(--wlf-space-6);
}
/* Das Produktraster darunter erbt automatisch die Regeln von oben
   (.woocommerce ul.products), eigene Anpassungen sind nicht nötig. */

/* ═══════════════════════════════════════════════════════════════════
   WARENKORB — klassische Tabellen-Auszeichnung (shop_table)
   ═══════════════════════════════════════════════════════════════════ */
table.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--wlf-space-6);
}
table.shop_table th {
  text-align: left;
  padding: var(--wlf-space-3) var(--wlf-space-3);
  font-size: var(--wlf-text-xs); font-weight: var(--wlf-weight-bold);
  letter-spacing: var(--wlf-tracking-wide); text-transform: uppercase;
  color: var(--wlf-color-ink-muted);
  border-bottom: 1px solid var(--wlf-color-line);
}
table.shop_table td {
  padding: var(--wlf-space-4) var(--wlf-space-3);
  border-bottom: 1px solid var(--wlf-color-line-soft);
  vertical-align: middle;
  font-size: var(--wlf-text-sm);
}
table.shop_table td.product-name a { color: var(--wlf-color-ink); font-weight: var(--wlf-weight-medium); text-decoration: none; }
table.shop_table td.product-name a:hover { color: var(--af-gold-text); }
table.shop_table td.product-thumbnail img {
  width: 4.5rem; aspect-ratio: 1 / 1; object-fit: contain;
  background: var(--wlf-color-surface); border-radius: var(--wlf-radius-md);
  padding: .4rem;
}
table.shop_table td.product-price,
table.shop_table td.product-subtotal {
  font-weight: var(--wlf-weight-bold); font-variant-numeric: tabular-nums;
}
table.shop_table td.product-remove a.remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  color: var(--wlf-color-ink-muted); text-decoration: none; font-size: 1.1rem; line-height: 1;
  transition: background var(--wlf-transition), color var(--wlf-transition);
}
table.shop_table td.product-remove a.remove:hover {
  background: var(--wlf-color-surface); color: var(--wlf-color-danger);
}
table.shop_table .product-quantity input.qty { width: 3.6rem; height: 2.5rem; }

/* Coupon-Zeile + Warenkorb aktualisieren */
.woocommerce-cart-form .coupon {
  display: flex; flex-wrap: wrap; gap: var(--wlf-space-2); align-items: center;
}
.woocommerce-cart-form .coupon input#coupon_code {
  flex: 1 1 12rem;
  border: 1px solid var(--wlf-color-line); border-radius: var(--wlf-radius-md);
  padding: .65rem .85rem; font-family: inherit; font-size: var(--wlf-text-sm);
}
.woocommerce-cart-form .coupon input#coupon_code:focus-visible { border-color: var(--wlf-color-accent); }

/* Summen-Box: eigene Fläche, damit sie sich vom Positionslisting abhebt. */
.cart_totals, .cart-collaterals .cart_totals {
  background: var(--wlf-color-surface);
  border: 1px solid var(--wlf-color-line);
  border-radius: var(--wlf-radius-lg);
  padding: var(--wlf-space-5) var(--wlf-space-6);
  max-width: 26rem; margin-left: auto;
}
.cart_totals h2 { font-size: var(--wlf-text-lg); margin: 0 0 var(--wlf-space-4); }
.cart_totals table.shop_table { margin-bottom: var(--wlf-space-5); }
.cart_totals table.shop_table td,
.cart_totals table.shop_table th { padding: var(--wlf-space-2) 0; border-color: var(--wlf-color-line-soft); }
.cart_totals .order-total .amount { font-size: var(--wlf-text-lg); font-weight: var(--wlf-weight-bold); }

/* Buttons in Warenkorb/Kasse einheitlich im .af-btn-Stil: Pille, 1px
   Rahmen, klarer Hover. "Warenkorb aktualisieren" ist zweitrangig →
   Ghost-Stil; "Zur Kasse" ist die Hauptaktion → Akzentfläche. */
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.wc-proceed-to-checkout a.checkout-button,
a.checkout-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: var(--wlf-radius-pill);
  border: 1px solid var(--wlf-color-line);
  background: transparent; color: var(--wlf-color-ink);
  font-size: var(--wlf-text-sm); font-weight: var(--wlf-weight-bold);
  text-decoration: none; cursor: pointer;
  transition: background var(--wlf-transition), border-color var(--wlf-transition), color var(--wlf-transition);
}
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
  border-color: var(--wlf-color-ink); background: var(--wlf-color-bg);
}
/* Hauptaktionen (Zur Kasse, Bestellen) heben sich mit dem Akzent ab. */
.wc-proceed-to-checkout a.checkout-button,
a.checkout-button,
#place_order {
  border-color: var(--wlf-color-accent);
  background: var(--wlf-color-accent);
  color: var(--wlf-color-accent-ink);
  width: 100%;
}
.wc-proceed-to-checkout a.checkout-button:hover,
a.checkout-button:hover,
#place_order:hover {
  background: var(--wlf-color-accent-hover); border-color: var(--wlf-color-accent-hover);
}

/* Warenkorb-Tabelle auf Mobil als Karten stapeln: WooCommerce liefert
   dafür bereits data-title-Attribute auf den <td>-Zellen mit; die
   ::before-Beschriftung ist Standard-WooCommerce-Praxis und braucht
   keine eigenen Templates. */
@media (max-width: 640px) {
  table.shop_table thead { display: none; }
  table.shop_table, table.shop_table tbody, table.shop_table tr, table.shop_table td {
    display: block; width: 100%;
  }
  table.shop_table tr {
    border: 1px solid var(--wlf-color-line);
    border-radius: var(--wlf-radius-md);
    margin-bottom: var(--wlf-space-4);
    padding: var(--wlf-space-2) var(--wlf-space-4);
  }
  table.shop_table td {
    display: flex; align-items: center; justify-content: space-between; gap: var(--wlf-space-3);
    border-bottom: 1px solid var(--wlf-color-line-soft);
    text-align: right;
  }
  table.shop_table td:last-child { border-bottom: 0; }
  table.shop_table td.product-remove { justify-content: flex-end; }
  table.shop_table td::before {
    content: attr(data-title);
    font-size: var(--wlf-text-xs); font-weight: var(--wlf-weight-bold);
    text-transform: uppercase; letter-spacing: var(--wlf-tracking-wide);
    color: var(--wlf-color-ink-muted);
  }
  .cart_totals, .cart-collaterals .cart_totals { max-width: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   WARENKORB & KASSE — WooCommerce-Blocks (dieser Shop verwendet den
   Block-Editor für /cart/ und /checkout/, die Klassen tragen daher das
   Präfix wc-block-* statt der klassischen shop_table-Auszeichnung).
   ═══════════════════════════════════════════════════════════════════ */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 860px) {
  .wp-block-woocommerce-cart,
  .wp-block-woocommerce-checkout {
    grid-template-columns: 1.5fr 1fr; align-items: start;
  }
}

/* Positionszeilen im Block-Warenkorb: gleiche Kartenoptik wie sonst im
   Shop, statt der WooCommerce-eigenen Fließtabelle. */
.wc-block-cart-items, .wc-block-components-order-summary {
  background: var(--wlf-color-bg);
  border: 1px solid var(--wlf-color-line);
  border-radius: var(--wlf-radius-lg);
  overflow: hidden;
}
.wc-block-cart-item, .wc-block-components-totals-item {
  padding: var(--wlf-space-4) var(--wlf-space-5);
  border-bottom: 1px solid var(--wlf-color-line-soft);
}
.wc-block-cart-item:last-child { border-bottom: 0; }
.wc-block-components-product-image img,
.wc-block-cart-item__image img {
  background: var(--wlf-color-surface);
  border-radius: var(--wlf-radius-md);
  object-fit: contain;
  padding: .5rem;
}
.wc-block-components-product-name { color: var(--wlf-color-ink); font-weight: var(--wlf-weight-medium); text-decoration: none; }
.wc-block-components-formatted-money-amount { font-variant-numeric: tabular-nums; font-weight: var(--wlf-weight-bold); }

/* Mengenfeld im Block-Warenkorb: Stepper mit +/- statt reinem Zahlenfeld —
   optisch an das übrige Formularmuster angleichen (Rahmen, Radius, Akzent
   bei Fokus), Feinheiten der internen Struktur bleiben WooCommerce-Sache. */
.wc-block-components-quantity-selector {
  border: 1px solid var(--wlf-color-line); border-radius: var(--wlf-radius-md);
  overflow: hidden;
}
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  border: 0; font-family: inherit; text-align: center;
}
.wc-block-components-quantity-selector__button {
  background: var(--wlf-color-surface); border: 0; color: var(--wlf-color-ink);
  cursor: pointer; transition: background var(--wlf-transition);
}
.wc-block-components-quantity-selector__button:hover { background: var(--wlf-color-surface-alt); }

/* Formularfelder in Adress-/Zahlungsschritten des Block-Checkouts */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-address-form input,
.wc-block-checkout__form input[type="text"],
.wc-block-checkout__form input[type="email"],
.wc-block-checkout__form input[type="tel"] {
  border: 1px solid var(--wlf-color-line); border-radius: var(--wlf-radius-md);
  padding: .75rem .9rem; font-family: inherit; font-size: var(--wlf-text-base);
  background: var(--wlf-color-bg); color: var(--wlf-color-ink);
  transition: border-color var(--wlf-transition);
}
.wc-block-components-text-input input:focus-visible,
.wc-block-checkout__form input:focus-visible {
  border-color: var(--wlf-color-accent);
}
.wc-block-components-radio-control__option {
  border: 1px solid var(--wlf-color-line); border-radius: var(--wlf-radius-md);
  padding: var(--wlf-space-3) var(--wlf-space-4);
  transition: border-color var(--wlf-transition), background var(--wlf-transition);
}
.wc-block-components-radio-control__option:hover { border-color: var(--wlf-color-ink); }
.wc-block-components-radio-control__input:checked + .wc-block-components-radio-control__label-group,
.wc-block-components-radio-control__option:has(:checked) {
  border-color: var(--wlf-color-accent);
}

/* Bestellen-Button des Block-Checkouts — gleiche Hauptaktion-Optik wie
   der klassische Checkout-Button oben. */
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
  width: 100%;
  border-radius: var(--wlf-radius-pill);
  background: var(--wlf-color-accent); border-color: var(--wlf-color-accent);
  color: var(--wlf-color-accent-ink); font-weight: var(--wlf-weight-bold);
  transition: background var(--wlf-transition), border-color var(--wlf-transition);
}
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover {
  background: var(--wlf-color-accent-hover); border-color: var(--wlf-color-accent-hover);
}

/* ═══════════════════════════════════════════════════════════════════
   KONTO-SEITEN
   ═══════════════════════════════════════════════════════════════════ */
/* Navigation und Aufbau: siehe Abschnitt KONTO am Dateiende. */

/* Formulare: Login, Registrierung, Adressen, Passwort ändern — alle
   teilen sich .woocommerce-form-row / .woocommerce-Input. */
.woocommerce-form-row { margin: 0 0 var(--wlf-space-4); }
.woocommerce-form-row label {
  display: block; margin-bottom: .35rem;
  font-size: var(--wlf-text-sm); font-weight: var(--wlf-weight-medium); color: var(--wlf-color-ink);
}
.woocommerce-Input.woocommerce-Input--text,
.woocommerce-form-row select,
.woocommerce-form-row textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--wlf-color-line); border-radius: var(--wlf-radius-md);
  padding: .7rem .9rem; font-family: inherit; font-size: var(--wlf-text-base);
  color: var(--wlf-color-ink); background: var(--wlf-color-bg);
  transition: border-color var(--wlf-transition);
}
.woocommerce-Input.woocommerce-Input--text:focus-visible { border-color: var(--wlf-color-accent); }
.woocommerce-form__label-for-checkbox {
  display: flex; align-items: center; gap: .5rem;
  font-size: var(--wlf-text-sm); color: var(--wlf-color-ink-muted); font-weight: var(--wlf-weight-normal);
}
.woocommerce-form-row .required { color: var(--wlf-color-danger); text-decoration: none; }

/* Login-/Bestellformular-Button im Haupt-Button-Stil (dunkel, wie
   .af-btn) statt Akzentfarbe — Login ist keine Kaufhandlung. */
.woocommerce-button.button,
.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
  border-radius: var(--wlf-radius-pill);
  background: var(--wlf-color-ink); border-color: var(--wlf-color-ink); color: var(--af-on-dark);
}
.woocommerce-button.button:hover,
.woocommerce-form-login__submit:hover {
  background: color-mix(in srgb, var(--wlf-color-ink) 82%, var(--wlf-color-accent));
  border-color: color-mix(in srgb, var(--wlf-color-ink) 82%, var(--wlf-color-accent));
}

/* Bestellübersicht-Tabellen auf den Konto-Seiten nutzen dieselbe
   shop_table-Optik wie der Warenkorb — keine doppelte Definition nötig. */

/* ═══════════════════════════════════════════════════════════════════
   FEINSCHLIFF: STERNEBEWERTUNG
   Für den Stern selbst gibt es kein Marken-Token (weder Gold noch
   Petrol passen als Bewertungsfarbe) — ein warmes Gelb ist hier die
   allgemein verständliche Ausnahme von der Token-Pflicht.
   ═══════════════════════════════════════════════════════════════════ */
.star-rating { color: #e0a336; font-size: var(--wlf-text-sm); }
.star-rating span::before { color: #e0a336; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVES FEINTUNING < 640px
   Das meiste regelt der Grid-Autofill der Produktkarten und die
   Karten-Umwandlung der Warenkorb-Tabelle bereits selbst — hier nur,
   was sonst noch aus dem Ruder läuft.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: var(--wlf-space-3); }
  .single-product .woocommerce-product-details__short-description,
  .woocommerce-tabs .woocommerce-Tabs-panel { max-width: none; }
  .summary.entry-summary form.cart { flex-direction: column; }
  /* Im senkrechten Formular wäre flex-basis 12rem die HÖHE → runder 192-px-Knopf. */
  .summary.entry-summary form.cart .single_add_to_cart_button { flex: 0 0 auto; width: 100%; }
  .summary.entry-summary .quantity { width: 100%; }
  .summary.entry-summary .quantity .qty { width: 100%; }
  .cart_totals, .cart-collaterals .cart_totals { padding: var(--wlf-space-5); }
}

/* Ganz schmale Geräte: Produktraster einspaltig, damit Titel/Preis
   nicht auf zwei Wörter pro Zeile umbrechen. */
@media (max-width: 420px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   BEWEGUNG REDUZIEREN
   design.css setzt --wlf-transition bereits global auf 0ms; das allein
   stoppt aber keine transform-Animation wie das Karten-Anheben beim
   Hover — die muss hier zusätzlich ausgeschaltet werden.
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .woocommerce ul.products li.product:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   NACHTRAG — zwei Kollisionen mit WooCommerce' eigenen Stylesheets
   ═══════════════════════════════════════════════════════════════════
   1. woocommerce-layout.css setzt auf die Produktkarten `width: 22.05%`
      und `float: left`. Solange das Raster ein Flexbox-/Float-Layout war,
      passte das. In einem CSS-Grid bezieht sich die Prozentbreite aber auf
      die SPALTE, nicht auf die Zeile — aus 263px Spalte wurden 58px Karte.
      Deshalb muss die Breite hier ausdrücklich zurückgenommen werden.
   2. Die Marken-/Logo-Verlinkung im Kopfbereich liegt außerhalb von
      WooCommerce und darf die Akzentfarbe nicht erben.
   ─────────────────────────────────────────────────────────────────── */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
/* woocommerce-smallscreen.css (< 768 px) setzt 48 % mit [class*=columns-] —
   ohne diese Zeilen wäre jede Karte auf dem Handy halb so breit wie ihre Spalte. */
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
	width: auto;
	float: none;
	margin: 0;
	clear: none;
}

/* WooCommerce raeumt jeder 4. Karte `clear: both` ein — im Grid stiftet das
   nur Unordnung. */
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last { clear: none; margin: 0; }

/* Bild darf die Karte fuellen; Woo gibt ihm sonst eine feste Hoehe. */
.woocommerce ul.products li.product a img {
	width: 100%;
	height: auto;
	display: block;
	margin: 0;
	box-shadow: none;
}

/* WooCommerce raeumt dem Produktraster einen Clearfix ein
   (ul.products::before/::after mit display:table). In einem CSS-Grid werden
   daraus zwei LEERE Rasterzellen — die erste Karte rutscht in Spalte 2. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after { content: none; display: none; }

/* ═══════════════════════════════════════════════════════════════════
   Produktseite: Passform und Varianten
   ═══════════════════════════════════════════════════════════════════ */

.af-passform {
	margin: 1.5rem 0;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--wlf-color-line);
	border-radius: var(--wlf-radius-lg);
	background: var(--wlf-color-surface);
}
.af-passform__zeile { margin: 0; font-size: .97rem; line-height: 1.55; }
.af-passform__zeile strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.af-passform__zeile--ja strong    { color: #1f6152; }
.af-passform__zeile--teils strong { color: #8a5a1e; }
.af-passform__zeile--nein strong  { color: #8d3128; }
.af-passform__wechsel { margin: .7rem 0 0; font-size: .85rem; }
.af-passform__wechsel a { color: var(--wlf-color-ink-muted); }
/* Die Suche in der Passform-Box ist kompakter als die auf der Startseite. */
.af-passform .wlf-fitment-search { background: none; border: 0; padding: 0; margin-top: .9rem; }
.af-passform .wlf-fitment-search__intro { display: none; }
.af-passform .wlf-fitment-search__fields { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .7rem; }
.af-passform .wlf-field { display: flex; flex-direction: column; gap: .25rem; }
.af-passform .wlf-field__label { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wlf-color-ink-muted); }
.af-passform .wlf-field__input {
	width: 100%; box-sizing: border-box; padding: .55rem .7rem;
	border: 1px solid var(--wlf-color-line); border-radius: var(--wlf-radius-md);
	font-family: inherit; font-size: .98rem; font-weight: 600; background: var(--wlf-color-bg);
}
.af-passform .wlf-btn, .af-passform button[type="submit"] {
	width: 100%; padding: .6rem 1.2rem; border: 0; border-radius: var(--wlf-radius-pill, 999px);
	background: var(--wlf-color-ink); color: var(--af-on-dark); font-family: inherit; font-weight: 600; cursor: pointer;
}

.af-varianten { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 1.15rem; }
.af-varianten__titel {
	display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
	text-transform: uppercase; color: var(--wlf-color-ink-muted); margin-bottom: .55rem;
}
.af-varianten__farben { display: flex; flex-wrap: wrap; gap: .6rem; }
.af-farbe {
	display: flex; flex-direction: column; align-items: center; gap: .3rem;
	width: 72px; text-decoration: none; color: var(--wlf-color-ink-muted);
	font-size: .68rem; line-height: 1.25; text-align: center;
}
.af-farbe img {
	width: 64px; height: 64px; object-fit: contain; padding: 4px;
	background: var(--wlf-color-surface); border: 2px solid transparent;
	border-radius: var(--wlf-radius-md); transition: border-color var(--wlf-transition);
}
/* Rückfall, wenn das Katalogbild fehlt (shop.js ersetzt das <img>). */
.af-farbe__leer {
	display: block; width: 64px; height: 64px;
	background: var(--wlf-color-bg); border: 2px solid var(--wlf-color-line-soft);
	border-radius: var(--wlf-radius-md);
}
.af-farbe:hover .af-farbe__leer { border-color: var(--wlf-color-line); }
.af-farbe:hover img { border-color: var(--wlf-color-line); }
.af-farbe.is-aktuell img { border-color: var(--wlf-color-ink); }
.af-farbe.is-aktuell { color: var(--wlf-color-ink); font-weight: 600; }

.af-varianten__groessen { display: flex; flex-wrap: wrap; gap: .45rem; }
.af-groesse {
	padding: .45rem .85rem; border: 1px solid var(--wlf-color-line);
	border-radius: var(--wlf-radius-pill, 999px); font-size: .88rem; font-weight: 600;
	text-decoration: none; color: var(--wlf-color-ink); background: var(--wlf-color-bg);
	transition: border-color var(--wlf-transition), background var(--wlf-transition);
}
.af-groesse:hover { border-color: var(--wlf-color-ink); }
.af-groesse.is-aktuell { background: var(--wlf-color-ink); border-color: var(--wlf-color-ink); color: var(--af-on-dark); }

@media (max-width: 520px) {
	.af-passform .wlf-fitment-search__fields { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   WooCommerce' eigenes Farbschema auf unsere Tokens umstellen
   ═══════════════════════════════════════════════════════════════════
   WooCommerce 11 faerbt Kaufen-Knopf und Preis ueber eigene Variablen
   (--wc-primary violett, --wc-highlight oliv). Die einzeln per Selektor
   zu ueberschreiben ist ein Wettruesten — an den Variablen anzusetzen
   erledigt es an einer Stelle und wirkt auch dort, wo wir gar nicht
   hinsehen (Block-Warenkorb, Konto, Meldungen).
   ─────────────────────────────────────────────────────────────────── */
:root,
.woocommerce,
.wc-block-components-notice-banner {
	--wc-green:       var(--wlf-color-accent);
	--wc-red:         #a3342a;
	--wc-orange:      #a9682f;
	--wc-blue:        var(--wlf-color-accent);
	--wc-primary:     var(--wlf-color-ink);
	--wc-primary-text: var(--wlf-color-accent-ink);
	--wc-secondary:   var(--wlf-color-surface);
	--wc-secondary-text: var(--wlf-color-ink);
	--wc-highlight:   var(--wlf-color-ink);
	--wc-highlight-text: var(--wlf-color-accent-ink);
	--wc-content-bg:  var(--wlf-color-bg);
	--wc-subtext:     var(--wlf-color-ink-muted);
	--wc-form-border-color: var(--wlf-color-line);
	--wc-form-color-background: var(--wlf-color-bg);
}

/* Preis: WooCommerce nimmt --wc-highlight, wir wollen die Textfarbe. */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
	color: var(--wlf-color-ink);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Kaufen-Knopf in der Pillenform des uebrigen Shops. */
.woocommerce div.product form.cart .button,
.woocommerce .single_add_to_cart_button {
	background: var(--wlf-color-ink);
	color: var(--af-on-dark);
	border: 1px solid var(--wlf-color-ink);
	border-radius: var(--wlf-radius-pill, 999px);
	padding: .85rem 1.8rem;
	font-weight: 600;
	font-size: .98rem;
	transition: background var(--wlf-transition), border-color var(--wlf-transition);
}
.woocommerce div.product form.cart .button:hover,
.woocommerce .single_add_to_cart_button:hover { background: color-mix(in srgb, var(--wlf-color-ink) 82%, var(--wlf-color-accent));
  border-color: color-mix(in srgb, var(--wlf-color-ink) 82%, var(--wlf-color-accent)); }

/* Mengenfeld neben dem Knopf statt darueber. */
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1.5rem 0; }
.woocommerce div.product form.cart .quantity { margin: 0; }
.woocommerce div.product form.cart .quantity .qty {
	width: 5rem; padding: .8rem .6rem; text-align: center;
	border: 1px solid var(--wlf-color-line); border-radius: var(--wlf-radius-md);
	font-family: inherit; font-size: 1rem; font-weight: 600; background: var(--wlf-color-bg);
}

/* Produktseite breiter aufteilen: Bild links gross, Angaben rechts. */
@media (min-width: 900px) {
	.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
	/* div.-Selektoren, weil woocommerce-layout.css mit `div.product div.images`
	   / `div.summary` (48 %, float) sonst gewinnt — im Raster wären das 48 % der Spalte. */
	.woocommerce div.product div.woocommerce-product-gallery { width: auto; float: none; margin: 0; grid-column: 1; }
	.woocommerce div.product div.summary { width: auto; float: none; margin: 0; grid-column: 2; }
	.woocommerce div.product .woocommerce-tabs,
	.woocommerce div.product .related,
	.woocommerce div.product .up-sells { grid-column: 1 / -1; }
}
.woocommerce div.product .woocommerce-product-gallery__image img {
	width: 100%; height: auto; border-radius: var(--wlf-radius-lg);
	background: var(--wlf-color-surface);
}
.woocommerce div.product .product_title { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.03em; margin-bottom: .5rem; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--wlf-color-ink-muted); font-size: .95rem; line-height: 1.6; }

/* Fahrzeugbalken und Suchhinweis über der Artikelliste */
.woocommerce .wlf-vehicle-banner,
.woocommerce .af-felgen-suche { margin-bottom: 1.25rem; }
.af-felgen-suche,
.af-felgen-suche--schmal {
  max-width: none !important;
  width: 100%;
  box-sizing: border-box;
}
.af-suche-frage {
  margin: 0 0 .75rem;
  font-size: .95rem;
  color: var(--wlf-color-ink);
  font-weight: 600;
}

/* Cascade-Fitment im Shop-Suchkasten */
.af-felgen-suche .af-fitment {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.af-felgen-suche .af-fitment__tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: max-content;
  max-width: 100%;
  flex: none;
  gap: 0;
  padding: 3px;
  margin: 0 0 .9rem;
  background: color-mix(in srgb, var(--wlf-color-ink) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--wlf-color-ink) 10%, transparent);
  border-radius: var(--wlf-radius-pill);
  box-sizing: border-box;
}
.af-felgen-suche .af-fitment__tab {
  border: 0;
  background: transparent;
  color: #6f6e69;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .55rem 1.05rem;
  border-radius: var(--wlf-radius-pill);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  transition: background .15s ease, color .15s ease;
}
.af-felgen-suche .af-fitment__tab:hover:not(.is-active) {
  color: var(--wlf-color-ink);
  background: color-mix(in srgb, var(--wlf-color-ink) 5%, transparent);
}
.af-felgen-suche .af-fitment__tab.is-active {
  background: var(--wlf-color-ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.af-felgen-suche .af-fitment__panel {
  display: none;
  width: 100%;
}
.af-felgen-suche .af-fitment__panel.is-active { display: block; }
.af-felgen-suche .af-fitment__cascade {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: .75rem;
  align-items: end;
  margin: 0;
  width: 100%;
}
.af-felgen-suche .af-fitment__action {
  display: flex;
  align-items: flex-end;
  min-height: 100%;
}
.af-felgen-suche .af-fitment__action .wlf-fitment-search__submit {
  white-space: nowrap;
  width: auto;
  flex: none;
}
.af-felgen-suche .af-sel {
  width: 100%;
  box-sizing: border-box;
  padding: .85rem 1rem;
  font-family: var(--wlf-font-body);
  font-size: .95rem;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--wlf-color-ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236f6e69' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
.af-felgen-suche .af-sel:disabled { opacity: .55; }
.af-felgen-suche .af-fitment__hsn-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .75rem;
  align-items: end;
}
.af-felgen-suche .af-fitment__schein-hint {
  margin: .7rem 0 0;
  font-size: .78rem;
  color: #8b8a84;
  line-height: 1.45;
}
.af-felgen-suche .wlf-fitment-search__submit[disabled] {
  opacity: .45;
  cursor: not-allowed;
}
@media (max-width: 1100px) {
  .af-felgen-suche .af-fitment__cascade {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .af-felgen-suche .af-fitment__action {
    grid-column: 1 / -1;
  }
  .af-felgen-suche .af-fitment__action .wlf-fitment-search__submit {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 720px) {
  .af-felgen-suche .af-fitment__cascade,
  .af-felgen-suche .af-fitment__hsn-row { grid-template-columns: 1fr; }
  .af-felgen-suche .wlf-fitment-search__submit { width: 100%; justify-content: center; }
}

/* ── Shop-Schale: gleiche Außenkante wie Header ───────────────────── */
body.woocommerce-shop .wlf-site-main,
body.post-type-archive-product .wlf-site-main,
body.tax-product_cat .wlf-site-main,
body.tax-product_tag .wlf-site-main {
  padding: var(--af-shell-gap);
  padding-top: var(--af-shell-gap);
  box-sizing: border-box;
}
body.woocommerce-shop .wlf-container.wlf-woocommerce,
body.post-type-archive-product .wlf-container.wlf-woocommerce,
body.tax-product_cat .wlf-container.wlf-woocommerce,
body.tax-product_tag .wlf-container.wlf-woocommerce {
  max-width: var(--wlf-container);
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 44px);
  background: #fff;
  border-radius: var(--af-shell-radius, 28px);
  box-sizing: border-box;
}
body.woocommerce-shop .page-title,
body.post-type-archive-product .page-title,
body.tax-product_cat .page-title {
  margin: 0 0 .45rem;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.1;
}
body.woocommerce-shop .af-shop-lead,
body.post-type-archive-product .af-shop-lead {
  margin: 0 0 1.25rem;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--wlf-color-ink-muted);
  font-weight: 400;
}

/* Ergebniszeile: eine Linie, volle Content-Breite */
body.woocommerce-shop .woocommerce-result-count,
body.post-type-archive-product .woocommerce-result-count,
body.woocommerce-shop .woocommerce-ordering,
body.post-type-archive-product .woocommerce-ordering {
  margin: 0;
}
body.woocommerce-shop .woocommerce-notices-wrapper + .woocommerce-result-count,
body.post-type-archive-product .woocommerce-notices-wrapper + .woocommerce-result-count,
body.woocommerce-shop .af-felgen-suche + .woocommerce-notices-wrapper + .woocommerce-result-count,
body.woocommerce-shop .af-felgen-suche + .woocommerce-result-count {
  display: block;
}
/* Clearfix + Flex-Zeile für Count/Sort */
body.woocommerce-shop .wlf-woocommerce::after,
body.post-type-archive-product .wlf-woocommerce::after {
  content: "";
  display: table;
  clear: both;
}
body.woocommerce-shop .woocommerce-result-count {
  float: left;
  margin: 0 0 1.15rem !important;
  padding-top: .35rem;
}
body.woocommerce-shop .woocommerce-result-count + form.woocommerce-ordering {
  float: right;
  margin: 0 0 1.15rem !important;
}
body.woocommerce-shop ul.products,
body.post-type-archive-product ul.products {
  clear: both;
  margin-top: 0;
}

/* Keine Haarlinie unter dem Sticky-Header auf Shop-Seiten */
body.woocommerce-shop .wlf-site-header.af-header,
body.post-type-archive-product .wlf-site-header.af-header {
  border: 0 !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   DER KAUFMOMENT
   ═══════════════════════════════════════════════════════════════════ */

/* ── Zusagen unter dem Kaufknopf ─────────────────────────────────── */
.af-promises {
  list-style: none; margin: 1.4rem 0 0; padding: 1.1rem 1.2rem;
  display: grid; gap: .85rem;
  background: var(--wlf-color-surface);
  border: 1px solid var(--wlf-color-line);
  border-radius: var(--wlf-radius-md);
}
.af-promises__item { display: flex; align-items: flex-start; gap: .7rem; margin: 0; }
.af-promises__item .af-ikon { width: 20px; height: 20px; margin-top: 1px; color: var(--wlf-color-accent); }
.af-promises__item span { display: flex; flex-direction: column; gap: .1rem; }
.af-promises__item strong { font-size: .92rem; font-weight: 700; }
.af-promises__item em { font-style: normal; font-size: .86rem; color: var(--wlf-color-ink-muted); }

/* ── Mengenschritte ──────────────────────────────────────────────── */
.woocommerce div.product form.cart .quantity {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--wlf-color-line); border-radius: var(--wlf-radius-pill);
  overflow: hidden; background: var(--wlf-color-bg);
}
.af-qty-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; padding: 0; flex: none;
  background: none; border: 0; cursor: pointer; color: var(--wlf-color-ink);
}
.af-qty-step:hover { background: var(--wlf-color-surface); }
.af-qty-step .af-ikon { width: 17px; height: 17px; }
.woocommerce div.product form.cart .quantity input.qty {
  width: 46px; height: 46px; padding: 0; margin: 0;
  border: 0; background: none; text-align: center;
  font-size: 1rem; font-weight: 600; color: var(--wlf-color-ink);
  /* Die Pfeilchen des Browsers stünden neben unseren eigenen Knöpfen. */
  -moz-appearance: textfield; appearance: textfield;
}
.woocommerce div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

/* ── Klebrige Kaufleiste ─────────────────────────────────────────── */
.af-stickybuy {
  position: fixed; inset: auto 0 0 0; z-index: 120;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 1.5rem);
  padding-bottom: calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--wlf-color-bg) 96%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--wlf-color-line);
  transform: translateY(110%);
  transition: transform .22s ease;
}
.af-stickybuy.is-visible { transform: translateY(0); }
.af-stickybuy__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.af-stickybuy__info strong {
  font-size: .88rem; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.af-stickybuy__info span { font-size: .92rem; color: var(--wlf-color-ink-muted); }
.af-stickybuy__info span .amount { color: var(--wlf-color-ink); font-weight: 700; }
.af-stickybuy .af-btn { flex: none; padding-inline: 1.3rem; }

/* Auf breiten Geräten steht der echte Kaufknopf ohnehin im Bild. */
@media (min-width: 900px) { .af-stickybuy { display: none; } }
@media (prefers-reduced-motion: reduce) { .af-stickybuy { transition: none; } }

/* ── Die Produktkarte im Raster ──────────────────────────────────── */
.af-specs {
  list-style: none; margin: .5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.af-specs li {
  padding: .28rem .72rem; margin: 0;
  background: var(--wlf-color-surface); border: 1px solid var(--wlf-color-line);
  border-radius: var(--wlf-radius-pill);
  font-size: .74rem; font-weight: 600; line-height: 1.25;
  color: var(--wlf-color-ink-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.af-pricenote {
  display: block; margin-top: .1rem;
  font-size: .72rem; color: var(--wlf-color-ink-muted);
}
/* In der Karte auf dieselbe Innenkante wie Preis und Knopf. */
.woocommerce ul.products li.product .af-pricenote { margin-inline: var(--wlf-space-4); }

/* Die Marke sitzt über dem Bild, nicht darunter — dort wird zuerst
   hingesehen, und dort verdrängt sie keinen Text. */
.woocommerce ul.products li.product { position: relative; }
.af-fitmark {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .6rem; border-radius: var(--wlf-radius-pill);
  font-size: .72rem; font-weight: 700;
  background: var(--wlf-color-bg); border: 1px solid var(--wlf-color-line);
}
.af-fitmark .af-ikon { width: 14px; height: 14px; }
.af-fitmark--ok {  border-color: color-mix(in srgb, var(--wlf-color-success) 40%, transparent); }
.af-fitmark--pruefen {  border-color: color-mix(in srgb, var(--wlf-color-warning) 40%, transparent); }

.af-cardlink {
  display: inline-flex; align-items: center; gap: .25rem;
  margin-top: .55rem;
  font-size: .82rem; font-weight: 600; text-decoration: none;
  color: var(--wlf-color-ink-muted);
}
.af-cardlink:hover { color: var(--af-gold-text); }
.af-cardlink .af-ikon { width: 15px; height: 15px; }

/* ═══════════════════════════════════════════════════════════════════
   DIE KARTE, NACH DEM VORBILD VON FF-WHEELS UND FELGENFORUM
   ═══════════════════════════════════════════════════════════════════
   Übernommen ist der Aufbau und die Bewegung, nicht die Farbwelt: Beide
   Vorbilder sind dunkle Shops mit Weiß als einziger Primärfarbe. Der
   Artform muss in jeder Vorlage funktionieren, also kommt hier keine
   Farbe vor, die nicht aus einem Token stammt.
   ═══════════════════════════════════════════════════════════════════ */

/* Der eingerückte Bildrahmen. Die 4 px Radiusdifferenz bei 8 px Abstand
   ergeben konzentrische Ecken — mit gleichem Radius sähe es falsch aus. */
.woocommerce ul.products li.product .af-card-media {
  position: relative;
  margin: .5rem;
  border: 1px solid var(--wlf-color-line-soft);
  border-radius: calc(var(--wlf-radius-lg) - 4px);
  overflow: hidden;
  background: var(--wlf-color-surface);
  transition: border-color var(--wlf-transition);
}
.woocommerce ul.products li.product:hover .af-card-media { border-color: var(--wlf-color-line); }

.woocommerce ul.products li.product .af-card-media img {
  padding: var(--wlf-space-4);
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  /* Deutlich langsamer als alles andere an der Karte. Der schwere Zoom
     gegen die schnellen Rahmen lässt die Bewegung ruhig wirken statt
     zappelig — bei gleicher Dauer sieht es nach Sprung aus. */
  transition: transform .7s cubic-bezier(.2, .6, .2, 1);
}

/* Die Passform-Marke liegt jetzt im Bildrahmen, nicht auf der Karte. */
.woocommerce ul.products li.product .af-card-media .af-fitmark { top: .55rem; left: .55rem; }

/* Gleiche Grundlinie über die ganze Zeile: Zwei Zeilen Titel sind
   reserviert, der Preisblock wird nach unten geschoben. Ohne das tanzen
   die Preise benachbarter Karten je nach Titellänge. */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.woocommerce ul.products li.product .price {
  border-top: 1px solid var(--wlf-color-line-soft);
  padding-top: .6rem;
  font-size: 1.12rem;
  /* Enges Tracking auf Zahlen, weites auf Kleinschrift — dieser Kontrast
     ist das, was beide Vorbilder wertig aussehen lässt. */
  letter-spacing: -.02em;
}

/* Kleinschrift bekommt Sperrung, nicht Fettung. */
.af-pricenote { letter-spacing: .02em; }

/* Der Hinweis, dass vier Stück voreingestellt sind. Er steht neben dem
   Feld, nicht darunter: Eine Vorgabe, die man erst nach dem Scrollen
   bemerkt, ist keine Vorgabe, sondern eine Falle. */
.af-satz {
  align-self: center; margin-left: .75rem;
  font-size: .82rem; font-weight: 600; color: var(--wlf-color-ink-muted);
  white-space: nowrap;
}

/* Die Galerie läuft mit, solange rechts noch Angaben kommen. Ohne das
   sieht man beim Lesen der technischen Daten die Felge nicht mehr, um
   die es geht. */
@media (min-width: 993px) {
  /* Doppelklasse: Woos eigenes Stylesheet setzt position: relative mit
     gleicher Spezifität und lädt später — dann blieb nur `top` übrig und
     schob das Bild 96 px nach unten. */
  .woocommerce div.product div.images.woocommerce-product-gallery {
    position: sticky;
    top: calc(72px + 1.5rem);
    align-self: start;
  }
}

/* Statusfarben nach einer Formel statt nach Gefühl: Fläche 8 %, Rahmen
   30 %, Text voll. Beide Vorbildshops halten das für jeden Zustand durch —
   dadurch sprechen Passform-Marken, Lagerampel und Meldungen dieselbe
   Sprache, auch wenn die Vorlage die Farbe wechselt. */
.af-fitmark--ok {
  background: color-mix(in srgb, var(--wlf-color-success) 8%, var(--wlf-color-bg));
  border-color: color-mix(in srgb, var(--wlf-color-success) 30%, transparent);
  color: var(--wlf-color-success);
}
.af-fitmark--pruefen {
  background: color-mix(in srgb, var(--wlf-color-warning) 8%, var(--wlf-color-bg));
  border-color: color-mix(in srgb, var(--wlf-color-warning) 30%, transparent);
  color: var(--wlf-color-warning);
}

/* FEHLER: Der Details-Link hing mit 1 px Abstand am Kartenrand — er wird
   über woocommerce_after_shop_loop_item ausgegeben und liegt damit
   ausserhalb des Innenabstands, den der Kartenkörper setzt. */
.woocommerce ul.products li.product .af-cardlink {
  margin: 0 var(--wlf-space-4) var(--wlf-space-4);
  padding-top: .1rem;
}

/* Produktseite: Abstand unter der schwebenden Kopfzeile — sonst klebt der
   Titel direkt an ihrer Unterkante. */
body.single-product .wlf-container.wlf-woocommerce { padding-top: clamp(1.25rem, 3vw, 2.5rem); }

/* ═══════════════════════════════════════════════════════════════════
   KONTO — Mein Konto nach Damina/FF-Aufbau, im artform-Schalenstil
   Links Profil + Navigation, rechts der Inhalt; beides weiße Schalen
   auf dem warmgrauen Grund. Felder wie in der Fahrzeugsuche.
   ═══════════════════════════════════════════════════════════════════ */

.af-konto-seite { padding-bottom: var(--af-section); }

/* WooCommerce floatet Navigation (30 %) und Inhalt (68 %) — hier Raster. */
.logged-in .af-konto-seite > .woocommerce {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: var(--af-shell-gap);
  align-items: start;
}
.woocommerce-account .af-konto-seite .woocommerce-MyAccount-navigation,
.woocommerce-account .af-konto-seite .woocommerce-MyAccount-content {
  float: none; width: auto; margin: 0;
}
/* Spalten fest zuweisen: Woo setzt davor noch einen (meist leeren)
   Hinweis-Container, der sonst die erste Zelle belegt. */
.logged-in .af-konto-seite > .woocommerce > * { grid-column: 1 / -1; }
.logged-in .af-konto-seite > .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; }
.logged-in .af-konto-seite > .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; }
.logged-in .af-konto-seite > .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-account .af-konto-seite .woocommerce-MyAccount-content {
  background: var(--wlf-color-bg);
  border-radius: var(--af-shell-radius);
  padding: var(--af-shell-pad);
  min-width: 0;
}
.woocommerce-account .af-konto-seite .woocommerce-MyAccount-content > :first-child { margin-top: 0; }

/* ── Navigation ─────────────────────────────────────────────────── */
.af-konto-nav {
  position: sticky; top: calc(72px + 1.5rem);
  background: var(--wlf-color-bg);
  border-radius: var(--af-shell-radius);
  padding: 14px;
}
.af-konto-nav__profil {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 16px; margin-bottom: 8px;
  border-bottom: var(--af-hairline);
}
.af-konto-nav__avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wlf-color-ink); color: var(--wlf-color-accent);
  font-family: var(--wlf-font-display); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
}
.af-konto-nav__wer { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.af-konto-nav__wer strong { font-size: .95rem; font-weight: 600; }
.af-konto-nav__wer span {
  font-size: .78rem; color: var(--wlf-color-ink-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.af-konto-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.af-konto-nav li a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 14px;
  font-size: .92rem; font-weight: 500; color: var(--wlf-color-ink-muted); text-decoration: none;
  transition: background var(--wlf-transition), color var(--wlf-transition);
}
.af-konto-nav li a .af-ikon { width: 20px; height: 20px; flex: none; }
.af-konto-nav li a:hover { background: var(--wlf-color-ground); color: var(--wlf-color-ink); }
.af-konto-nav li.is-active a { background: var(--wlf-color-ink); color: var(--af-on-dark); }
.af-konto-nav li.is-active a .af-ikon { color: var(--wlf-color-accent); }
.af-konto-nav li.woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 6px; padding-top: 6px; border-top: var(--af-hairline);
}

/* ── Übersicht ──────────────────────────────────────────────────── */
.af-konto-start { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.25rem); }
.af-konto-start__gruss {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.af-konto-start__gruss h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 .35rem; }
.af-konto-start__gruss p { margin: 0; color: var(--wlf-color-ink-muted); }

.af-konto-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.af-konto-kachel {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: var(--wlf-radius-md);
  background: var(--wlf-color-ground); color: var(--wlf-color-ink); text-decoration: none;
  border: 1px solid transparent;
  transition: border-color var(--wlf-transition), background var(--wlf-transition);
}
.af-konto-kachel:hover { background: var(--wlf-color-bg); border-color: var(--wlf-color-line); color: var(--wlf-color-ink); }
.af-konto-kachel__ikon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wlf-color-bg); color: var(--af-gold-text);
}
.af-konto-kachel:hover .af-konto-kachel__ikon { background: var(--wlf-color-ink); color: var(--wlf-color-accent); }
.af-konto-kachel__ikon .af-ikon { width: 22px; height: 22px; }
.af-konto-kachel__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.af-konto-kachel__text strong { font-size: .98rem; font-weight: 600; }
.af-konto-kachel__text span { font-size: .84rem; line-height: 1.45; color: var(--wlf-color-ink-muted); }
.af-konto-kachel__pfeil { color: var(--wlf-color-ink-muted); transition: transform var(--wlf-transition); }
.af-konto-kachel__pfeil .af-ikon { width: 18px; height: 18px; }
.af-konto-kachel:hover .af-konto-kachel__pfeil { transform: translateX(3px); color: var(--wlf-color-ink); }

.af-konto-block__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.af-konto-block__kopf h3 { margin: 0; font-size: 1.1rem; }
.af-konto-block__kopf a { font-size: .88rem; font-weight: 500; color: var(--af-gold-text); }

.af-konto-bestellungen { list-style: none; margin: 0; padding: 0; border-top: var(--af-hairline); }
.af-konto-bestellungen li { border-bottom: var(--af-hairline); }
.af-konto-bestellungen a {
  display: grid; grid-template-columns: 5rem 1fr auto auto 20px; align-items: center; gap: 1rem;
  padding: 14px 6px; color: var(--wlf-color-ink); text-decoration: none;
  transition: background var(--wlf-transition);
}
.af-konto-bestellungen a:hover { background: var(--wlf-color-ground); }
.af-konto-bestellungen__nr { font-weight: 600; font-variant-numeric: tabular-nums; }
.af-konto-bestellungen__datum { color: var(--wlf-color-ink-muted); font-size: .9rem; }
.af-konto-bestellungen__summe { font-weight: 600; font-variant-numeric: tabular-nums; }
.af-konto-bestellungen__pfeil { color: var(--wlf-color-ink-muted); }
.af-konto-bestellungen__pfeil .af-ikon { width: 16px; height: 16px; }

/* Statusmarke: Fläche 8 %, Rahmen 30 %, Text voll — wie die Passform-Marken. */
.af-status {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .3rem .7rem; border-radius: var(--wlf-radius-pill);
  font-size: .78rem; font-weight: 600; line-height: 1.2;
  --af-status: var(--wlf-color-ink-muted);
  color: var(--af-status);
  background: color-mix(in srgb, var(--af-status) 8%, var(--wlf-color-bg));
  border: 1px solid color-mix(in srgb, var(--af-status) 30%, transparent);
}
.af-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.af-status--fertig { --af-status: var(--wlf-color-success); }
.af-status--laeuft { --af-status: var(--af-gold-text); }
.af-status--aus    { --af-status: var(--wlf-color-danger); }

/* ── Bestelltabelle (Bestellungen) ──────────────────────────────── */
.woocommerce-account table.woocommerce-orders-table {
  width: 100%; border-collapse: collapse; border: 0; margin: 0 0 1.5rem;
}
.woocommerce-account table.woocommerce-orders-table th {
  text-align: left; padding: 0 12px 10px; border: 0; border-bottom: var(--af-hairline);
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--wlf-color-ink-muted);
}
.woocommerce-account table.woocommerce-orders-table tbody th,
.woocommerce-account table.woocommerce-orders-table td {
  text-align: left; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--wlf-color-ink);
  padding: 16px 12px; border: 0; border-bottom: var(--af-hairline); vertical-align: middle;
  font-size: .92rem; background: none;
}
.woocommerce-account table.woocommerce-orders-table tbody tr:hover td { background: var(--wlf-color-ground); }
.woocommerce-account .woocommerce-orders-table__cell-order-number a { font-weight: 600; color: var(--wlf-color-ink); }
.woocommerce-account .woocommerce-orders-table__cell-order-actions { text-align: right; }
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
  padding: .5rem 1rem; font-size: .82rem; margin: 0 0 0 .35rem;
  background: var(--wlf-color-bg); color: var(--wlf-color-ink); border: 1px solid var(--wlf-color-line);
}
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button:hover {
  background: var(--wlf-color-ink); color: var(--af-on-dark); border-color: var(--wlf-color-ink);
}

/* ── Bestellung ansehen ─────────────────────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-content > p:first-child mark,
.woocommerce-account .woocommerce-MyAccount-content mark {
  background: none; color: var(--wlf-color-ink); font-weight: 600;
}
.woocommerce-account .woocommerce-order-details,
.woocommerce-account .woocommerce-customer-details { margin-top: 2rem; }
.woocommerce-account .woocommerce-order-details__title,
.woocommerce-account .woocommerce-column__title { font-size: 1.1rem; margin: 0 0 .9rem; }
.woocommerce-account table.woocommerce-table--order-details {
  width: 100%; border: 1px solid var(--wlf-color-line); border-radius: var(--wlf-radius-md);
  border-collapse: separate; border-spacing: 0; overflow: hidden;
}
.woocommerce-account table.woocommerce-table--order-details th,
.woocommerce-account table.woocommerce-table--order-details td {
  padding: 14px 16px; border: 0; border-top: var(--af-hairline); text-align: left; font-size: .92rem;
}
.woocommerce-account table.woocommerce-table--order-details thead th {
  border-top: 0; background: var(--wlf-color-ground);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wlf-color-ink-muted);
}
.woocommerce-account table.woocommerce-table--order-details td:last-child,
.woocommerce-account table.woocommerce-table--order-details th:last-child { text-align: right; }
.woocommerce-account table.woocommerce-table--order-details tfoot th { font-weight: 500; color: var(--wlf-color-ink-muted); }
.woocommerce-account table.woocommerce-table--order-details tfoot tr:last-child td,
.woocommerce-account table.woocommerce-table--order-details tfoot tr:last-child th { font-weight: 700; color: var(--wlf-color-ink); }
.woocommerce-account .woocommerce-table--order-details .product-name a { color: var(--wlf-color-ink); font-weight: 600; text-decoration: none; }
.woocommerce-account .woocommerce-OrderUpdates { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-OrderUpdate { padding: 12px 16px; border-radius: var(--wlf-radius-md); background: var(--wlf-color-ground); margin-bottom: 8px; }

/* ── Adressen ───────────────────────────────────────────────────── */
.woocommerce-account .woocommerce-Addresses {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 1.25rem;
}
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after { content: none; }
.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
  float: none; width: auto; margin: 0;
  padding: 20px; border-radius: var(--wlf-radius-md); background: var(--wlf-color-ground);
}
.woocommerce-account .woocommerce-Address-title {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem;
}
.woocommerce-account .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-Address-title::after { content: none; }
.woocommerce-account .woocommerce-Address-title h2 { font-size: 1.05rem; margin: 0; }
.woocommerce-account .woocommerce-Address-title .edit {
  float: none; font-size: .82rem; font-weight: 500; color: var(--af-gold-text);
}
.woocommerce-account .woocommerce-Address address,
.woocommerce-account .woocommerce-customer-details address {
  font-style: normal; line-height: 1.6; color: var(--wlf-color-ink);
  border: 0; padding: 0;
}
.woocommerce-account .woocommerce-customer-details address {
  padding: 18px 20px; border-radius: var(--wlf-radius-md); background: var(--wlf-color-ground);
}

/* ── Formulare im Konto: Felder wie in der Fahrzeugsuche ────────── */
.woocommerce-account .af-konto-seite .woocommerce-Input,
.woocommerce-account .af-konto-seite .input-text,
.woocommerce-account .af-konto-seite .form-row select,
.woocommerce-account .af-konto-seite .select2-container--default .select2-selection--single {
  width: 100%; box-sizing: border-box; min-height: 50px;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid transparent; background: var(--wlf-color-ground);
  font-family: var(--wlf-font-body); font-size: .95rem; color: var(--wlf-color-ink);
  transition: border-color var(--wlf-transition), background var(--wlf-transition);
}
.woocommerce-account .af-konto-seite .select2-container--default .select2-selection--single { padding: 0 16px; display: flex; align-items: center; }
.woocommerce-account .af-konto-seite .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; color: var(--wlf-color-ink); }
.woocommerce-account .af-konto-seite .select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); right: 10px; }
.woocommerce-account .af-konto-seite .woocommerce-Input:focus,
.woocommerce-account .af-konto-seite .input-text:focus,
.woocommerce-account .af-konto-seite .form-row select:focus {
  outline: none; border-color: var(--wlf-color-ink); background: var(--wlf-color-bg);
}
.woocommerce-account .af-konto-seite .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce-account .af-konto-seite .form-row label {
  display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 500; color: var(--wlf-color-ink);
}
.woocommerce-account .af-konto-seite .form-row label.woocommerce-form__label-for-checkbox { display: flex; font-weight: 400; color: var(--wlf-color-ink-muted); }
.woocommerce-account .af-konto-seite .form-row .required { color: var(--wlf-color-danger); text-decoration: none; }
.woocommerce-account .af-konto-seite .form-row em { display: block; margin-top: 6px; font-style: normal; font-size: .78rem; color: var(--wlf-color-ink-muted); }
.woocommerce-account .af-konto-seite .woocommerce-address-fields__field-wrapper,
.woocommerce-account .af-konto-seite form.woocommerce-EditAccountForm {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px;
}
.woocommerce-account .af-konto-seite .woocommerce-address-fields__field-wrapper > .form-row,
.woocommerce-account .af-konto-seite form.woocommerce-EditAccountForm > * { grid-column: 1 / -1; float: none; width: auto; }
.woocommerce-account .af-konto-seite .woocommerce-address-fields__field-wrapper > .form-row-first,
.woocommerce-account .af-konto-seite form.woocommerce-EditAccountForm > .form-row-first { grid-column: 1; }
.woocommerce-account .af-konto-seite .woocommerce-address-fields__field-wrapper > .form-row-last,
.woocommerce-account .af-konto-seite form.woocommerce-EditAccountForm > .form-row-last { grid-column: 2; }
.woocommerce-account .af-konto-seite form.woocommerce-EditAccountForm > .clear { display: none; }
.woocommerce-account .af-konto-seite fieldset {
  margin: 10px 0 18px; padding: 20px; border: 0; border-radius: var(--wlf-radius-md); background: var(--wlf-color-ground);
}
.woocommerce-account .af-konto-seite fieldset legend {
  float: left; width: 100%; margin: 0 0 12px; padding: 0;
  font-family: var(--wlf-font-display); font-size: 1rem; font-weight: 600; color: var(--wlf-color-ink);
}
.woocommerce-account .af-konto-seite fieldset legend + * { clear: both; }
.woocommerce-account .af-konto-seite fieldset .woocommerce-Input,
.woocommerce-account .af-konto-seite fieldset .input-text { background: var(--wlf-color-bg); }
.woocommerce-account .af-konto-seite .password-input { display: block; position: relative; }
.woocommerce-account .af-konto-seite .show-password-input { top: 50%; transform: translateY(-50%); right: 12px; }
.woocommerce-account .af-konto-seite .woocommerce-MyAccount-content h2,
.woocommerce-account .af-konto-seite .woocommerce-MyAccount-content h3 { font-size: 1.15rem; }
.woocommerce-account .af-konto-seite .woocommerce-MyAccount-content form .button,
.woocommerce-account .af-konto-seite .woocommerce-ResetPassword .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.6rem; border: 0; border-radius: var(--wlf-radius-pill);
  background: var(--wlf-color-ink); color: var(--af-on-dark); font-weight: 600; font-size: .92rem;
}
.woocommerce-account .af-konto-seite .woocommerce-MyAccount-content form .button:hover,
.woocommerce-account .af-konto-seite .woocommerce-ResetPassword .button:hover { background: #2b2a27; color: var(--af-on-dark); }

/* Hinweise (z. B. "E-Mail bestätigen") im Konto ruhiger */
.woocommerce-account .af-konto-seite .woocommerce-info,
.woocommerce-account .af-konto-seite .woocommerce-message,
.woocommerce-account .af-konto-seite .woocommerce-error { border-radius: var(--wlf-radius-md); }

/* ── Anmelden / Registrieren ────────────────────────────────────── */
.af-auth {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: var(--af-shell-gap); align-items: stretch;
}
.af-auth__formulare {
  background: var(--wlf-color-bg); border-radius: var(--af-shell-radius); padding: var(--af-shell-pad);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.af-auth--reiter .af-auth__panel h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.af-auth__panel h2 { font-size: 1.4rem; margin: 0 0 .35rem; }
.af-auth__panel + .af-auth__panel { border-top: var(--af-hairline); padding-top: 1.5rem; }
.af-auth--reiter .af-auth__panel + .af-auth__panel { border-top: 0; padding-top: 0; }
.af-auth__lead { margin: 0 0 1.25rem; color: var(--wlf-color-ink-muted); font-size: .95rem; }
.af-auth__reiter {
  display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  border-radius: var(--wlf-radius-pill); background: var(--wlf-color-ground); align-self: flex-start;
}
.af-auth__reiter[hidden] { display: none; }
.af-auth__reiter button {
  border: 0; background: none; cursor: pointer; white-space: nowrap;
  padding: .7rem 1.4rem; border-radius: var(--wlf-radius-pill);
  font-family: var(--wlf-font-body); font-size: .9rem; font-weight: 600; color: var(--wlf-color-ink-muted);
  transition: background var(--wlf-transition), color var(--wlf-transition);
}
.af-auth__reiter button:hover { color: var(--wlf-color-ink); }
.af-auth__reiter button.is-active { background: var(--wlf-color-ink); color: var(--af-on-dark); }
.woocommerce .af-auth form.login,
.woocommerce .af-auth form.register { border: 0; padding: 0; margin: 0; border-radius: 0; }
.af-auth .form-row { margin: 0 0 14px; padding: 0; }
.af-auth .form-row label { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 500; color: var(--wlf-color-ink); }
.af-auth .woocommerce-Input,
.af-auth .input-text {
  width: 100%; box-sizing: border-box; min-height: 50px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid transparent; background: var(--wlf-color-ground);
  font-family: var(--wlf-font-body); font-size: .95rem; color: var(--wlf-color-ink);
}
.af-auth .woocommerce-Input:focus,
.af-auth .input-text:focus { outline: none; border-color: var(--wlf-color-ink); background: var(--wlf-color-bg); }
.af-auth .password-input { display: block; position: relative; }
.af-auth .show-password-input { top: 50%; transform: translateY(-50%); right: 12px; }
.af-auth__zeile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 4px 0 18px; }
.af-auth__zeile .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: .88rem; color: var(--wlf-color-ink-muted); }
.af-auth__link { font-size: .88rem; font-weight: 500; color: var(--af-gold-text); }
.woocommerce .af-auth button.af-auth__senden {
  width: 100%; min-height: 52px; border: 0; border-radius: var(--wlf-radius-pill);
  background: var(--wlf-color-ink); color: var(--af-on-dark);
  font-family: var(--wlf-font-body); font-size: .95rem; font-weight: 600; cursor: pointer;
}
.woocommerce .af-auth button.af-auth__senden:hover { background: #2b2a27; color: var(--af-on-dark); }
.af-auth__hinweis {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: 12px 14px; border-radius: 14px; background: var(--wlf-color-ground);
  font-size: .86rem; color: var(--wlf-color-ink-muted); margin: 0 0 14px;
}
.af-auth__hinweis .af-ikon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--af-gold-text); }
.af-auth .woocommerce-privacy-policy-text { font-size: .8rem; color: var(--wlf-color-ink-muted); margin-bottom: 14px; }
.af-auth .woocommerce-privacy-policy-text a { color: var(--af-gold-text); }
.af-auth__wechsel { margin: 1rem 0 0; font-size: .9rem; color: var(--wlf-color-ink-muted); text-align: center; }
.af-auth__wechsel button {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--af-gold-text); text-decoration: underline; text-underline-offset: .2em;
}

.af-auth__vorteile {
  background: var(--wlf-color-ink); color: var(--af-on-dark);
  border-radius: var(--af-shell-radius); padding: var(--af-shell-pad);
  display: flex; flex-direction: column;
}
.af-auth__vorteile .af-eyebrow { color: var(--wlf-color-accent); }
.af-auth__vorteile h3 { color: #fff; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; margin: 0 0 1.5rem; }
.af-auth__vorteile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.af-auth__vorteile li { display: flex; gap: 14px; align-items: flex-start; }
.af-auth__vorteile li .af-ikon {
  flex: none; width: 40px; height: 40px; padding: 9px; box-sizing: border-box;
  border-radius: 12px; background: var(--af-on-dark-fill); color: var(--wlf-color-accent);
}
.af-auth__vorteile li span { display: flex; flex-direction: column; gap: 3px; font-size: .88rem; line-height: 1.5; color: var(--af-on-dark-mute); }
.af-auth__vorteile li strong { color: #fff; font-size: .95rem; font-weight: 600; }
.af-auth__kontakt { margin: auto 0 0; padding-top: 1.75rem; font-size: .88rem; color: var(--af-on-dark-mute); }
.af-auth__kontakt a { color: var(--wlf-color-accent); font-weight: 600; }

/* Passwort vergessen / zurücksetzen: eine schmale Schale */
.woocommerce-account:not(.logged-in) .af-konto-seite form.woocommerce-ResetPassword {
  max-width: 560px; background: var(--wlf-color-bg); border-radius: var(--af-shell-radius); padding: var(--af-shell-pad);
}
.woocommerce-account .af-konto-seite form.woocommerce-ResetPassword > p:first-child { margin-top: 0; color: var(--wlf-color-ink-muted); }
.woocommerce-account .af-konto-seite form.woocommerce-ResetPassword .form-row { width: 100%; float: none; }

/* ── Schmal ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .logged-in .af-konto-seite > .woocommerce { grid-template-columns: minmax(0, 1fr); }
  .logged-in .af-konto-seite > .woocommerce > .woocommerce-MyAccount-navigation,
  .logged-in .af-konto-seite > .woocommerce > .woocommerce-MyAccount-content { grid-column: 1; }
  .af-konto-nav { position: static; padding: 10px; }
  .af-konto-nav__profil { padding: 6px 6px 12px; }
  /* Menü als waagerechte Leiste zum Wischen */
  .af-konto-nav ul { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .af-konto-nav ul::-webkit-scrollbar { display: none; }
  .af-konto-nav li a { white-space: nowrap; padding: 9px 12px; }
  .af-konto-nav li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
  .af-auth { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .af-konto-kacheln,
  .woocommerce-account .woocommerce-Addresses { grid-template-columns: minmax(0, 1fr); }
  .af-konto-bestellungen a { grid-template-columns: auto 1fr auto; row-gap: 4px; }
  .af-konto-bestellungen__datum { grid-column: 1 / 3; grid-row: 2; }
  .af-konto-bestellungen .af-status { grid-column: 3; grid-row: 2; justify-self: end; }
  .af-konto-bestellungen__pfeil { display: none; }
  .woocommerce-account .af-konto-seite .woocommerce-address-fields__field-wrapper,
  .woocommerce-account .af-konto-seite form.woocommerce-EditAccountForm { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-account .af-konto-seite .woocommerce-address-fields__field-wrapper > .form-row-last,
  .woocommerce-account .af-konto-seite form.woocommerce-EditAccountForm > .form-row-last { grid-column: 1; }
  .af-auth__reiter { align-self: stretch; }
  /* Bestelltabelle: Woo macht daraus auf dem Handy Karten (shop_table_responsive) */
  .woocommerce-account table.woocommerce-orders-table tr { display: block; padding: 12px 0; border-bottom: var(--af-hairline); }
  .woocommerce-account table.woocommerce-orders-table tbody th,
  .woocommerce-account table.woocommerce-orders-table td { display: flex; justify-content: space-between; border: 0; padding: 4px 0; }
  .woocommerce-account table.woocommerce-orders-table tbody th::before,
  .woocommerce-account table.woocommerce-orders-table td::before { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wlf-color-ink-muted); }
  .woocommerce-account .woocommerce-orders-table__cell-order-actions { text-align: left; }
  .woocommerce-account .woocommerce-orders-table__cell-order-actions .button { margin: 6px .35rem 0 0; }
}

/* Woos `.woocommerce form .form-row .input-text` (0,3,1) schlägt die Feldregeln
   oben — hier dieselbe Optik mit ausreichender Spezifität. */
.af-konto-seite .woocommerce form .form-row .input-text,
.af-konto-seite .woocommerce form .form-row select,
.woocommerce .af-auth form .form-row .input-text {
  min-height: 50px; padding: 14px 16px; border-radius: 14px; line-height: 1.4;
  border: 1px solid transparent; background: var(--wlf-color-ground);
  font-family: var(--wlf-font-body); font-size: .95rem; color: var(--wlf-color-ink);
}
.af-konto-seite .woocommerce form fieldset .form-row .input-text { background: var(--wlf-color-bg); }
.af-konto-seite .woocommerce form .form-row .input-text:focus,
.af-konto-seite .woocommerce form .form-row select:focus,
.woocommerce .af-auth form .form-row .input-text:focus {
  outline: none; border-color: var(--wlf-color-ink); background: var(--wlf-color-bg);
}
.woocommerce-account table.woocommerce-table--order-details tfoot th { text-transform: none; letter-spacing: 0; font-size: .92rem; }

/* Registrierung: Privat / Firma */
.af-auth__art { display: flex; gap: 8px; margin: 0 0 18px; padding: 4px; border: 0; background: rgba(10, 10, 10, .06); border-radius: 999px; }
.af-auth__art label { flex: 1; position: relative; margin: 0; cursor: pointer; }
.af-auth__art input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.af-auth__art span { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #555; transition: background .15s, color .15s; }
.af-auth__art input:checked + span { background: #fff; color: #0a0a0a; box-shadow: 0 1px 4px rgba(10, 10, 10, .18); }
.af-auth__art input:focus-visible + span { outline: 2px solid #0a0a0a; outline-offset: 2px; }
.af-auth__firma[hidden] { display: none; }
.af-konto-hinweis { margin: 0 0 18px; }

/* Lieferung: Versand / Abholung als Auswahlkarten */
.af-liefer-zeile > td { padding: 18px 0 6px !important; border: 0 !important; }
.af-liefer__titel { margin: 0 0 10px; font-family: var(--af-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6b6b6b; }
.af-liefer { list-style: none; margin: 0; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: rgba(10, 10, 10, .06); border-radius: 22px; }
.af-liefer li { margin: 0; padding: 0; position: relative; }
.af-liefer input[type=radio], .af-liefer input.shipping_method { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.af-liefer__karte { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: transparent; cursor: pointer; transition: background .15s, box-shadow .15s; min-height: 76px; }
.af-liefer__ikon { grid-row: 1 / span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.af-liefer__ikon .af-ikon { width: 18px; height: 18px; }
.af-liefer__text { display: grid; gap: 2px; min-width: 0; }
.af-liefer__text strong { font-size: 15px; font-weight: 600; }
.af-liefer__text small { font-size: 12px; color: #666; line-height: 1.3; }
.af-liefer__preis { grid-column: 2; font-family: var(--af-mono, ui-monospace, monospace); font-size: 12.5px; color: #0a0a0a; }
.af-liefer input:checked + .af-liefer__karte { background: #fff; box-shadow: 0 1px 6px rgba(10, 10, 10, .2), inset 0 0 0 1.5px #0a0a0a; }
.af-liefer input:focus-visible + .af-liefer__karte { outline: 2px solid #0a0a0a; outline-offset: 2px; }
@media (max-width: 520px) { .af-liefer { grid-template-columns: 1fr; border-radius: 22px; } }

/* Lieferung: einspaltig, Radiofeld der Karte unsichtbar über der ganzen Karte */
.woocommerce-checkout-review-order-table .af-liefer { grid-template-columns: 1fr; gap: 8px; padding: 0; background: none; border-radius: 0; }
.af-liefer input[type=radio], .af-liefer input.shipping_method { -webkit-appearance: none !important; appearance: none !important; position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; opacity: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.af-liefer__karte { background: #fff; box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .14); grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; padding: 14px 16px; min-height: 0; }
.af-liefer__ikon { grid-row: auto; background: rgba(10, 10, 10, .06); }
.af-liefer__preis { grid-column: 3; white-space: nowrap; align-self: center; }
.af-liefer input:checked + .af-liefer__karte { box-shadow: inset 0 0 0 2px #0a0a0a; }
.af-liefer-zeile > td { padding-top: 14px !important; }
.woocommerce-checkout-review-order-table tr.af-liefer-zeile > td { display: table-cell; text-align: left; }
.woocommerce-checkout-review-order-table .af-liefer { width: 100%; text-align: left; }
.woocommerce-checkout-review-order-table .af-liefer li > label.af-liefer__karte { display: grid !important; width: 100%; box-sizing: border-box; text-align: left; }
.woocommerce-checkout-review-order-table .af-liefer__titel { text-align: left; }
.woocommerce-checkout-review-order-table .af-liefer__text, .woocommerce-checkout-review-order-table .af-liefer__text small { text-align: left; }
.af-cart-hinweis { margin: 0 0 12px; font-size: 13px; color: #666; text-align: center; }

/* ── Responsive-Durchgang 10.11.2026 ── */
.woocommerce-ordering select { max-width: 100%; box-sizing: border-box; }
@media (max-width: 640px) {
  .woocommerce-ordering, .woocommerce-result-count + form.woocommerce-ordering { display: block; width: 100%; margin-left: 0; }
  .woocommerce-ordering select { width: 100%; }
}
.af-stickybuy .af-btn { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
@media (max-width: 380px) {
  .af-stickybuy { gap: .6rem; padding-inline: .75rem; }
  .af-stickybuy .af-btn { padding-inline: 14px; }
  .af-stickybuy__info span small { display: none; }
}
