/**
 * AESUB Produktvergleich v1.4.1
 * Gestaltung nach der AESUB-Website, gleiche Bauweise wie die Händlersuche:
 *   – Farben und Schriften aus den CSS-Variablen der Website, mit Ersatzwerten.
 *   – Knöpfe tragen die Website-Klasse .ar-knopf (blau · Hover · dunkelblau = ausgewählt).
 *     Die Ersatzregeln stehen in :where() und haben Spezifität 0 – die Website gewinnt immer.
 *   – Überschriften über .articulat-head-72-black / -36-black, gleiche Regel.
 *   – Haltestellen wie auf der Website: 1119 · 1023 · 767 · 479.
 */

/* ═══ Grundwerte ═══════════════════════════════════════════════ */
.aesub-pv,
.aesub-pv-dialoghuelle {
    --pv-blau:        var(--primary, #006aff);
    --pv-blau-hover:  var(--hover-primary, #005ad9);
    --pv-dunkel:      var(--secondary, #19355b);
    --pv-hell:        var(--base-tertiary, #d0e4ff);
    --pv-tinte:       var(--ar-ink, #252525);
    --pv-tinte-stark: var(--ar-ink-strong, #101010);
    --pv-grau:        var(--ar-surface, #f1f1f1);
    --pv-linie:       #e2e2e2;
    --pv-leise:       #606060;
    --pv-papier:      var(--ar-paper, #ffffff);
    --pv-schrift:     var(--ar-font-body, proxima-nova), "Helvetica Neue", Arial, sans-serif;
    --pv-schrift-kopf: var(--ar-font-display, articulat-cf), "Helvetica Neue", Arial, sans-serif;
    --pv-feld-h:      48px;

    font-family: var(--pv-schrift);
    font-size: 16px;
    line-height: 1.4;
    color: var(--pv-tinte);
    box-sizing: border-box;
}
.aesub-pv { width: 100%; min-width: 0; }
.aesub-pv *, .aesub-pv *::before, .aesub-pv *::after,
.aesub-pv-dialoghuelle *, .aesub-pv-dialoghuelle *::before, .aesub-pv-dialoghuelle *::after { box-sizing: border-box; }
.aesub-pv [hidden], .aesub-pv-dialoghuelle [hidden] { display: none !important; }
.aesub-pv button, .aesub-pv-dialoghuelle button { font-family: var(--pv-schrift); }

/* ═══ Ersatz für die Website-Klassen (Spezifität 0) ════════════ */
:where(.aesub-pv, .aesub-pv-dialoghuelle) :where(.ar-knopf) {
    display: inline-flex; justify-content: center; align-items: center; gap: 8px;
    margin: 0; padding: 6px 14px;
    font-family: var(--pv-schrift); font-weight: 600; font-size: 16px; line-height: 1.2;
    color: #fff; text-align: center; text-decoration: none; white-space: nowrap;
    background: var(--pv-blau); border: 2px solid var(--pv-blau); border-radius: 200px;
    cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
:where(.aesub-pv, .aesub-pv-dialoghuelle) :where(.ar-knopf:hover, .ar-knopf:focus-visible) {
    color: #fff; background: var(--pv-blau-hover); border-color: var(--pv-blau-hover);
}
:where(.aesub-pv, .aesub-pv-dialoghuelle) :where(.ar-knopf:active, .ar-knopf.is-aktiv) {
    color: #fff; background: var(--pv-dunkel); border-color: var(--pv-dunkel);
}
:where(.aesub-pv) :where(.ar-knopf.ar-knopf-dunkel) {
    color: var(--pv-tinte-stark); background: transparent; border-color: var(--pv-tinte-stark);
}
:where(.aesub-pv) :where(.ar-knopf.ar-knopf-dunkel:hover, .ar-knopf.ar-knopf-dunkel:focus-visible, .ar-knopf.ar-knopf-dunkel:active) {
    color: #fff; background: var(--pv-dunkel); border-color: var(--pv-dunkel);
}
:where(.aesub-pv) :where(.articulat-head-72-black) {
    color: var(--pv-tinte); font-family: var(--pv-schrift-kopf); font-weight: 400;
    font-size: clamp(40px, 4.76vw, 72px); line-height: 1; letter-spacing: -0.02em;
}
:where(.aesub-pv-dialoghuelle) :where(.articulat-head-36-black) {
    color: var(--pv-tinte); font-family: var(--pv-schrift-kopf); font-weight: 400;
    font-size: clamp(24px, 2.38vw, 36px); line-height: 1.15; letter-spacing: -0.02em;
}

/* Gedrückter Reiter: aria-pressed bekommt dieselben Werte wie .is-aktiv der Website */
.aesub-pv .ar-knopf[aria-pressed="true"] {
    color: #fff;
    background-color: var(--pv-dunkel);
    border-top: 2px solid var(--pv-dunkel);
    border-right: 2px solid var(--pv-dunkel);
    border-bottom: 2px solid var(--pv-dunkel);
    border-left: 2px solid var(--pv-dunkel);
}
.aesub-pv .ar-knopf svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ═══ Kopf und Steuerung ═══════════════════════════════════════ */
.aesub-pv .aesub-pv-titel { margin: 0 0 40px; }

.aesub-pv .aesub-pv-zeile {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px;
}
.aesub-pv .aesub-pv-fg { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.aesub-pv .aesub-pv-fg-suche { flex: 1 1 280px; }
.aesub-pv .aesub-pv-fg-aktionen {
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px;
    min-height: var(--pv-feld-h);
}
.aesub-pv .aesub-pv-flabel,
.aesub-pv-dialoghuelle .aesub-pv-flabel {
    display: block; margin: 0;
    font-family: var(--pv-schrift); font-size: 12px; font-weight: 600; line-height: 1.2;
    letter-spacing: .04em; text-transform: uppercase; color: var(--pv-leise);
}

/* Felder: graue Fläche ohne Rand, eckig – wie in der Händlersuche und im Kontaktformular */
.aesub-pv .aesub-pv-suchfeld,
.aesub-pv .aesub-pv-auswahl { position: relative; display: block; }
.aesub-pv .aesub-pv-eingabe {
    display: block; width: 100%; height: var(--pv-feld-h); margin: 0;
    padding: 0 44px 0 46px;
    font-family: var(--pv-schrift); font-size: 16px; font-weight: 400; line-height: 1.2;
    color: var(--pv-tinte); background: var(--pv-grau);
    border: 0; border-radius: 0; box-shadow: none; outline: 0;
    -webkit-appearance: none; appearance: none;
    transition: box-shadow .15s ease, background-color .15s ease;
}
.aesub-pv .aesub-pv-eingabe::placeholder { color: #8a8a8a; opacity: 1; }
.aesub-pv .aesub-pv-eingabe::-webkit-search-cancel-button { display: none; }
.aesub-pv .aesub-pv-eingabe:hover { background-color: #ebebeb; }
.aesub-pv .aesub-pv-eingabe:focus { background-color: var(--pv-papier); box-shadow: inset 0 0 0 2px var(--pv-blau); }
.aesub-pv .aesub-pv-lupe {
    position: absolute; top: 50%; left: 16px; width: 18px; height: 18px;
    transform: translateY(-50%); pointer-events: none; color: var(--pv-leise);
}
.aesub-pv .aesub-pv-leeren {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    width: 32px; height: 32px; padding: 0; margin: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--pv-leise); background: transparent; border: 0; border-radius: 50%; cursor: pointer;
}
.aesub-pv .aesub-pv-leeren svg { width: 16px; height: 16px; }
.aesub-pv .aesub-pv-leeren:hover { color: var(--pv-tinte-stark); background: rgba(0, 0, 0, .06); }

.aesub-pv .aesub-pv-badge,
.aesub-pv-dialoghuelle .aesub-pv-badge {
    display: inline-block; padding: 2px 8px;
    font-size: 12px; font-weight: 600; line-height: 1.2;
    background: rgba(255, 255, 255, .22); border-radius: 200px;
}

.aesub-pv .aesub-pv-kurz { display: none; }

/* Filter: drei gleich breite Gruppen über die volle Breite, die Reiter füllen ihre Gruppe
   (wie die Unterstrich-Reiter im Prototyp, aber mit den Website-Knöpfen) */
.aesub-pv .aesub-pv-filterknopf { display: none; }
.aesub-pv .aesub-pv-filter {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px;
    margin-top: 32px;
}
.aesub-pv .aesub-pv-reiter { display: flex; flex-wrap: wrap; gap: 12px; }
.aesub-pv .aesub-pv-reiter .ar-knopf { flex: 1 1 0; min-width: 0; }

/* Ergebniszeile */
.aesub-pv .aesub-pv-status {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px;
    margin: 40px 0 16px;
}
.aesub-pv .aesub-pv-statustext { margin: 0; font-size: 14px; line-height: 1.3; color: var(--pv-leise); }
.aesub-pv .aesub-pv-statustext strong { font-weight: 600; color: var(--pv-tinte); }
.aesub-pv .aesub-pv-trenner { margin: 0 10px; }
.aesub-pv .aesub-pv-textknopf,
.aesub-pv-dialoghuelle .aesub-pv-textknopf {
    margin: 0; padding: 0;
    font-size: 14px; font-weight: 600; line-height: 1.3;
    color: var(--pv-blau); background: none; border: 0; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
}
.aesub-pv .aesub-pv-textknopf:hover,
.aesub-pv-dialoghuelle .aesub-pv-textknopf:hover { color: var(--pv-dunkel); }

/* ═══ Tabelle ══════════════════════════════════════════════════ */
.aesub-pv .aesub-pv-tabellenhuelle {
    width: 100%; overflow-x: auto;
    background: var(--pv-papier);
    border: 1px solid var(--pv-linie);
}
.aesub-pv .aesub-pv-tabelle {
    width: 100%; min-width: 860px; margin: 0;
    border-collapse: separate; border-spacing: 0;
    table-layout: auto; background: var(--pv-papier);
    font-size: 15px; line-height: 1.35;
}
.aesub-pv .aesub-pv-tabelle th,
.aesub-pv .aesub-pv-tabelle td {
    margin: 0; padding: 18px 16px;
    text-align: left; vertical-align: middle;
    border: 0; border-bottom: 1px solid var(--pv-linie);
    background: var(--pv-papier);
}
.aesub-pv .aesub-pv-tabelle tbody tr:last-child > * { border-bottom: 0; }

/* Kopfzeile dunkelblau, Schrift weiß */
.aesub-pv .aesub-pv-tabelle thead th {
    padding: 0 16px; height: 56px;
    font-size: 12px; font-weight: 600; line-height: 1.2;
    letter-spacing: .04em; text-transform: uppercase;
    color: #fff; background: var(--pv-dunkel);
    border-bottom: 0; white-space: nowrap;
}
.aesub-pv .aesub-pv-sortknopf {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0; padding: 6px 0;
    font: inherit; letter-spacing: inherit; text-transform: inherit;
    color: inherit; background: none; border: 0; cursor: pointer;
    text-align: left;
}
.aesub-pv .aesub-pv-sortknopf span { white-space: normal; }
.aesub-pv .aesub-pv-sortknopf svg { flex-shrink: 0; opacity: .55; transition: opacity .15s ease; }
.aesub-pv .aesub-pv-sortknopf:hover svg,
.aesub-pv th.ist-sortiert .aesub-pv-sortknopf svg { opacity: 1; }
.aesub-pv .aesub-pv-sortknopf:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.aesub-pv .aesub-pv-tabelle thead th.ist-sortiert { background: var(--pv-blau); }

/* Sortierte Spalte leicht hellblau hinterlegt */
.aesub-pv .aesub-pv-tabelle td.ist-sortiert { background: #f0f6ff; font-weight: 600; color: var(--pv-tinte-stark); }

/* Produktspalte bleibt beim seitlichen Scrollen stehen */
.aesub-pv .aesub-pv-spalte-produkt {
    position: sticky; left: 0; z-index: 2;
    width: 28%; min-width: 280px;
    box-shadow: 1px 0 0 var(--pv-linie);
}
.aesub-pv .aesub-pv-tabelle thead .aesub-pv-spalte-produkt { z-index: 3; box-shadow: none; }
.aesub-pv .aesub-pv-tabelle tbody th.aesub-pv-spalte-produkt { padding: 14px 16px 14px 0; font-weight: 400; }
.aesub-pv .aesub-pv-spalte-link { width: 64px; text-align: right; }

.aesub-pv .aesub-pv-tabelle tbody tr { animation: aesub-pv-ein .35s ease both; animation-delay: calc(var(--aesub-pv-i, 0) * 35ms); }
.aesub-pv .aesub-pv-tabelle tbody tr:hover > * { background: #f7faff; }
.aesub-pv .aesub-pv-tabelle tbody tr:hover > td.ist-sortiert { background: #e8f1ff; }
@keyframes aesub-pv-ein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Produktkopf (Tabelle und Karten) */
.aesub-pv .aesub-pv-produkt { position: relative; display: flex; align-items: center; gap: 16px; padding-left: 20px; }
.aesub-pv .aesub-pv-akzent { position: absolute; left: 0; top: -14px; bottom: -14px; width: 4px; }
.aesub-pv .aesub-pv-bild {
    flex: 0 0 88px; width: 88px; height: 120px;
    display: flex; align-items: center; justify-content: center;
}
/* Hover: Sprühdosen wachsen leicht und werden kurz geschüttelt, Bulk-Flaschen und Kanister kippen
   und schwappen zurück. Die Vergrößerung sitzt auf dem Link (gleitet auch beim Verlassen zurück),
   die Bewegung auf dem Bild. Auslöser ist der ganze Produktkopf – Bild oder Name. */
.aesub-pv a.aesub-pv-bild {
    text-decoration: none;
    transform: scale(1) translate3d(0, 0, 0);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
    backface-visibility: hidden;
}
.aesub-pv .aesub-pv-produkt:hover a.aesub-pv-bild { transform: scale(1.1) translate3d(0, 0, 0); }
.aesub-pv a.aesub-pv-bild img { will-change: transform; }
.aesub-pv a.aesub-pv-bild.ist-dose img { transform-origin: 50% 55%; }
.aesub-pv a.aesub-pv-bild.ist-flasche img { transform-origin: 50% 100%; }
.aesub-pv .aesub-pv-produkt:hover a.ist-dose img { animation: aesub-pv-schuetteln .7s ease-in-out .05s 1 both; }
.aesub-pv .aesub-pv-produkt:hover a.ist-flasche img { animation: aesub-pv-schwappen .85s ease-in-out .05s 1 both; }
@keyframes aesub-pv-schuetteln {
    /* 1.5.2: zackiger, ZWEIMAL hin und her (Mats 21.10.2026: 1.5.1 war zu träge) */
    0%   { transform: rotate(0); }
    18%  { transform: rotate(-5deg); }
    40%  { transform: rotate(5deg); }
    62%  { transform: rotate(-4deg); }
    82%  { transform: rotate(2.5deg); }
    100% { transform: rotate(0); }
}
@keyframes aesub-pv-schwappen {
    0%   { transform: rotate(0); }
    18%  { transform: rotate(-4deg); }
    40%  { transform: rotate(3.5deg); }
    62%  { transform: rotate(-2.5deg); }
    82%  { transform: rotate(1.5deg); }
    100% { transform: rotate(0); }
}
.aesub-pv .aesub-pv-bild img { display: block; width: 100%; height: 100%; padding: 0; object-fit: contain; }
.aesub-pv .aesub-pv-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aesub-pv .aesub-pv-name a {
    font-family: var(--pv-schrift); font-size: 18px; font-weight: 600; line-height: 1.2;
    color: var(--pv-tinte-stark); text-decoration: none;
}
.aesub-pv .aesub-pv-name a:hover { color: var(--pv-blau); }
.aesub-pv .aesub-pv-unter { font-size: 13px; line-height: 1.3; color: var(--pv-leise); }

/* Hinweis an einzelnen Produkten (z. B. AESUB violet bulk ≠ AESUB violet Sprühdose) */
.aesub-pv .aesub-pv-hinweis {
    display: inline-flex; align-items: flex-start; gap: 6px;
    margin-top: 4px; padding: 6px 10px;
    font-size: 13px; font-weight: 600; line-height: 1.3;
    color: var(--pv-dunkel); background: var(--pv-hell);
}
.aesub-pv .aesub-pv-hinweis svg { flex-shrink: 0; margin-top: 1px; color: var(--pv-blau); }

/* Werte */
.aesub-pv .aesub-pv-anwendung { display: inline-flex; align-items: center; gap: 10px; }
.aesub-pv .aesub-pv-anwendung img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.aesub-pv .aesub-pv-janein { display: inline-flex; align-items: center; gap: 8px; }
.aesub-pv .aesub-pv-punkt { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--pv-blau); }
.aesub-pv .ist-ja .aesub-pv-punkt { background: var(--pv-blau); }
.aesub-pv .ist-nein { color: var(--pv-leise); }
.aesub-pv .ist-nein .aesub-pv-punkt { border-color: #b5b5b5; }

/* Runder Pfeil zur Produktseite */
.aesub-pv .aesub-pv-pfeil {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0;
    color: #fff; background: var(--pv-blau); border-radius: 50%;
    text-decoration: none; transition: background-color .2s ease;
}
.aesub-pv .aesub-pv-pfeil:hover,
.aesub-pv .aesub-pv-pfeil:focus-visible { color: #fff; background: var(--pv-blau-hover); }
.aesub-pv .aesub-pv-pfeil:active { background: var(--pv-dunkel); }

.aesub-pv .aesub-pv-unsichtbar {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Leerzustand */
.aesub-pv .aesub-pv-leerzustand {
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 48px; background: var(--pv-grau);
}
.aesub-pv .aesub-pv-leerzustand p { margin: 0; color: var(--pv-leise); }
.aesub-pv .aesub-pv-leerzustand .aesub-pv-leertitel {
    font-family: var(--pv-schrift-kopf); font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; color: var(--pv-tinte);
}

/* Handyfassung erst ab 767 */
.aesub-pv .aesub-pv-mobil { display: none; }

/* ═══ Dialog „Spezifikationen wählen" ══════════════════════════ */
html.aesub-pv-gesperrt, html.aesub-pv-gesperrt body { overflow: hidden; }
.aesub-pv-dialoghuelle {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: rgba(16, 16, 16, .55);
    animation: aesub-pv-blende .2s ease both;
}
@keyframes aesub-pv-blende { from { opacity: 0; } to { opacity: 1; } }
.aesub-pv-dialoghuelle .aesub-pv-dialog {
    display: flex; flex-direction: column;
    width: 100%; max-width: 760px; max-height: calc(100vh - 48px);
    overflow: auto; outline: 0;
    background: var(--pv-papier);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.aesub-pv-dialoghuelle .aesub-pv-dialogkopf {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
    padding: 32px 32px 20px;
}
.aesub-pv-dialoghuelle .aesub-pv-dialogtitel { margin: 0 0 8px; }
.aesub-pv-dialoghuelle .aesub-pv-dialogkopf p { margin: 0; font-size: 15px; color: var(--pv-leise); }
.aesub-pv-dialoghuelle .aesub-pv-schliessen {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0; margin: 0; padding: 0;
    color: var(--pv-tinte-stark); background: var(--pv-grau); border: 0; border-radius: 50%; cursor: pointer;
}
.aesub-pv-dialoghuelle .aesub-pv-schliessen:hover { color: #fff; background: var(--pv-dunkel); }

.aesub-pv-dialoghuelle .aesub-pv-messleiste {
    display: flex; align-items: center; gap: 16px; padding: 0 32px 24px;
}
.aesub-pv-dialoghuelle .aesub-pv-messleiste > div { display: flex; flex: 1; gap: 6px; }
.aesub-pv-dialoghuelle .aesub-pv-messleiste span { flex: 1; height: 6px; background: var(--pv-grau); }
.aesub-pv-dialoghuelle .aesub-pv-messleiste span.ist-voll { background: var(--pv-blau); }
.aesub-pv-dialoghuelle .aesub-pv-messleiste strong { font-size: 14px; font-weight: 600; color: var(--pv-tinte); }

.aesub-pv-dialoghuelle .aesub-pv-gruppen {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px;
    padding: 0 32px 28px;
}
.aesub-pv-dialoghuelle .aesub-pv-gruppen section { display: flex; flex-direction: column; gap: 10px; }
.aesub-pv-dialoghuelle .aesub-pv-optionen { display: flex; flex-direction: column; gap: 6px; }
.aesub-pv-dialoghuelle .aesub-pv-option {
    display: flex; align-items: center; gap: 12px;
    width: 100%; margin: 0; padding: 10px 12px;
    font-size: 15px; font-weight: 400; line-height: 1.25; text-align: left;
    color: var(--pv-tinte); background: var(--pv-grau);
    border: 0; border-radius: 0; cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.aesub-pv-dialoghuelle .aesub-pv-option:hover { background: #e6e6e6; }
.aesub-pv-dialoghuelle .aesub-pv-option.ist-gewaehlt { color: #fff; background: var(--pv-dunkel); font-weight: 600; }
.aesub-pv-dialoghuelle .aesub-pv-optionstext { flex: 1; }
.aesub-pv-dialoghuelle .aesub-pv-haken {
    display: flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; flex-shrink: 0;
    background: var(--pv-papier); border: 2px solid #b5b5b5;
}
.aesub-pv-dialoghuelle .ist-gewaehlt .aesub-pv-haken { color: var(--pv-dunkel); border-color: #fff; }
.aesub-pv-dialoghuelle .aesub-pv-option small {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 6px;
    font-size: 12px; font-weight: 600; color: var(--pv-dunkel); background: #fff; border-radius: 200px;
}

.aesub-pv-dialoghuelle .aesub-pv-ersetzen { display: flex; flex-direction: column; gap: 20px; padding: 0 32px 28px; }
.aesub-pv-dialoghuelle .aesub-pv-ersetzen-kopf {
    display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--pv-hell); color: var(--pv-dunkel);
}
.aesub-pv-dialoghuelle .aesub-pv-ersetzen-kopf svg { flex-shrink: 0; color: var(--pv-blau); }
.aesub-pv-dialoghuelle .aesub-pv-ersetzen-kopf p { margin: 0; font-size: 15px; line-height: 1.4; }
.aesub-pv-dialoghuelle .aesub-pv-ersetzen-titel { margin-bottom: 4px !important; font-weight: 600; font-size: 17px !important; }
.aesub-pv-dialoghuelle .aesub-pv-ersetzen-liste { display: flex; flex-direction: column; gap: 6px; }
.aesub-pv-dialoghuelle .aesub-pv-ersetzen-liste button {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0; padding: 12px 14px;
    font-size: 15px; text-align: left; color: var(--pv-tinte);
    background: var(--pv-grau); border: 0; cursor: pointer;
}
.aesub-pv-dialoghuelle .aesub-pv-ersetzen-liste button:hover { color: #fff; background: var(--pv-dunkel); }
.aesub-pv-dialoghuelle .aesub-pv-ersetzen > .aesub-pv-textknopf { align-self: flex-start; }

.aesub-pv-dialoghuelle .aesub-pv-dialogfuss {
    position: sticky; bottom: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: auto; padding: 18px 32px;
    font-size: 14px; color: var(--pv-leise);
    background: var(--pv-papier); border-top: 1px solid var(--pv-linie);
}

/* ═══ Referenzpunkte-Matrix [aesub_referenzpunkte] (seit 1.6.1) ═══ */
.aesub-pv.aesub-rp .aesub-rp-fg-technik { flex: 0 1 300px; min-width: 220px; }
.aesub-pv.aesub-rp .aesub-pv-auswahl { position: relative; display: block; }
.aesub-pv.aesub-rp .aesub-rp-technik { padding: 0 44px 0 16px; cursor: pointer; }
.aesub-pv.aesub-rp .aesub-pv-auswahl svg {
    position: absolute; top: 50%; right: 16px; width: 18px; height: 18px;
    transform: translateY(-50%); pointer-events: none; color: var(--pv-tinte);
}
/* Hersteller: eine Knopfreihe über die volle Breite, Knöpfe so breit wie ihr Text */
.aesub-pv.aesub-rp .aesub-pv-filter { display: block; }
/* 1.6.3 (Mats): Hersteller-Knöpfe mittig */
.aesub-pv.aesub-rp .aesub-rp-hersteller .aesub-pv-fg { align-items: center; }
.aesub-pv.aesub-rp .aesub-pv-reiter { gap: 10px; justify-content: center; }
.aesub-pv.aesub-rp .aesub-pv-reiter .ar-knopf { flex: 0 0 auto; }

/* Tabelle */
.aesub-pv.aesub-rp .aesub-rp-tabelle { min-width: 0; }
.aesub-pv.aesub-rp .aesub-rp-tabelle td { vertical-align: top; }
.aesub-pv.aesub-rp .aesub-rp-tabelle tbody th.aesub-pv-spalte-produkt { vertical-align: top; }
.aesub-pv.aesub-rp .aesub-pv-spalte-produkt { width: 26%; min-width: 260px; }
.aesub-pv.aesub-rp .aesub-rp-spalte-durchmesser { width: 1%; white-space: nowrap; }
.aesub-pv.aesub-rp .aesub-rp-spalte-technik { width: 22%; }
@media (max-width: 1365px) {
    /* Unter 1366 px reicht der Platz nicht für den Durchmesser in einer Zeile – sonst wird „Suitable for" zu schmal */
    .aesub-pv.aesub-rp .aesub-rp-spalte-durchmesser { width: 12%; white-space: normal; }
    .aesub-pv.aesub-rp .aesub-rp-spalte-technik { width: 19%; }
}
.aesub-pv.aesub-rp .aesub-rp-tabelle tbody tr:hover > * { background: var(--pv-papier); }
.aesub-pv.aesub-rp .aesub-pv-bild { flex-basis: 120px; width: 120px; height: 88px; }
.aesub-pv.aesub-rp .aesub-pv-produkt { align-items: center; }

/* Scannerliste: Hersteller fett, Modelle mit Punkt getrennt */
.aesub-pv.aesub-rp .aesub-rp-scanner { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.aesub-pv.aesub-rp .aesub-rp-scanner li { margin: 0; padding: 0; font-size: 15px; line-height: 1.4; }
.aesub-pv.aesub-rp .aesub-rp-scanner li strong { display: block; font-weight: 600; color: var(--pv-tinte-stark); }
.aesub-pv.aesub-rp .aesub-rp-scanner li > span { color: var(--pv-tinte); }
.aesub-pv.aesub-rp .aesub-rp-trenner { color: #b5b5b5; }
.aesub-pv.aesub-rp mark { padding: 0 2px; color: inherit; background: var(--pv-hell); }
.aesub-pv.aesub-rp .aesub-rp-mehr { margin-top: 10px; }

/* Technologien als kleine Etiketten */
.aesub-pv.aesub-rp .aesub-rp-technik-wert {
    /* 1.6.3: untereinander statt nebeneinander */
    display: table; margin: 0 0 6px; padding: 4px 10px;
    font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--pv-dunkel);
    background: var(--pv-grau); border-radius: 200px;
}
.aesub-pv.aesub-rp .aesub-rp-technik-wert.ist-gewaehlt { color: #fff; background: var(--pv-dunkel); }

/* Hinweis für Scanner ohne Empfehlung */
.aesub-pv.aesub-rp .aesub-rp-ohne { display: flex; margin: 0 0 16px; padding: 12px 16px; font-size: 15px; }
.aesub-pv.aesub-rp .aesub-rp-ohne a { color: var(--pv-blau); text-decoration: underline; text-underline-offset: 3px; }

/* Hover: Dots werden nur etwas größer, ohne Drehen (Mats, 02.11.2026) –
   die Vergrößerung kommt aus der gemeinsamen Regel für a.aesub-pv-bild */

/* Karten (≤1023): Durchmesser und Technologie neben dem Kopf, Scanner darunter über die volle Breite */
.aesub-pv.aesub-rp .aesub-rp-karte-scanner { grid-column: 1 / -1; padding: 14px 20px 16px; border-top: 1px solid var(--pv-linie); }
.aesub-pv.aesub-rp .aesub-rp-karte-scanner .aesub-pv-flabel { margin-bottom: 10px; }
.aesub-pv.aesub-rp .aesub-rp-karte dl { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; }
.aesub-pv.aesub-rp .aesub-rp-technik-liste { line-height: 1; }
@media (max-width: 1023px) {
    /* 1.6.5 (Mats): ab Tablet hochkant immer untereinander – Kopf, dann Durchmesser + Technologie, dann Scanner.
       Nebeneinander wurde der Name bei mittleren Breiten zu schmal. Technologien hier nebeneinander, damit die Karte kurz bleibt. */
    .aesub-pv.aesub-rp .aesub-pv-karte { grid-template-columns: minmax(0, 1fr); }
    .aesub-pv.aesub-rp .aesub-pv-karte header { border-right: 0; border-bottom: 1px solid var(--pv-linie); }
    .aesub-pv.aesub-rp .aesub-rp-karte dl { padding: 14px 20px; gap: 12px; }
    .aesub-pv.aesub-rp .aesub-rp-technik-liste .aesub-rp-technik-wert { display: inline-block; margin: 0 6px 6px 0; }
}
@media (max-width: 767px) {
    /* Hersteller-Knöpfe auf dem Handy hinter „Manufacturer" eingeklappt, wie die Filter des Sprayvergleichs */
    .aesub-pv.aesub-rp .aesub-pv-filter { display: none; }
    .aesub-pv.aesub-rp .aesub-pv-filter.ist-offen { display: block; }
    .aesub-pv.aesub-rp .aesub-rp-fg-technik { flex: 1 1 100%; }
    .aesub-pv.aesub-rp .aesub-pv-bild { flex-basis: 96px; width: 96px; height: 72px; }
}

/* ═══ Haltestellen ═════════════════════════════════════════════
   ≥1024: Tabelle · ≤1023: eine Karte pro Zeile (Kopf links, Werte rechts in 2 Spalten) · ≤767: Filter einklappbar · ≤599: Kopf über den Werten */
@media (max-width: 1119px) {
    .aesub-pv .aesub-pv-titel { margin-bottom: 32px; }
    .aesub-pv .aesub-pv-filter { gap: 20px 32px; }
    .aesub-pv .aesub-pv-reiter { gap: 8px; }
    .aesub-pv .aesub-pv-reiter .ar-knopf { flex: 1 1 auto; }
    .aesub-pv .aesub-pv-spalte-produkt { min-width: 260px; }
    .aesub-pv .aesub-pv-tabelle th,
    .aesub-pv .aesub-pv-tabelle td { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 1023px) {
    .aesub-pv .aesub-pv-fg-suche { flex-basis: 100%; }
    .aesub-pv .aesub-pv-filter { display: flex; flex-wrap: wrap; gap: 20px 32px; }
    .aesub-pv .aesub-pv-reiter .ar-knopf { flex: 0 0 auto; }

    /* Tabelle → Karten: auf dem Tablet hochkant müsste man sonst seitlich scrollen */
    .aesub-pv .aesub-pv-tabellenhuelle { display: none; }
    .aesub-pv .aesub-pv-mobil { display: block; }
    .aesub-pv .aesub-pv-status .aesub-pv-sortinfo { display: none; }
    .aesub-pv .aesub-pv-mobilsort { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; max-width: 520px; }
    .aesub-pv .aesub-pv-mobilsort label { display: flex; flex-direction: column; gap: 8px; flex: 1; margin: 0; }
    .aesub-pv .aesub-pv-mobilsort .aesub-pv-eingabe { padding: 0 44px 0 16px; cursor: pointer; }
    .aesub-pv .aesub-pv-auswahl svg {
        position: absolute; top: 50%; right: 16px; transform: translateY(-50%) rotate(90deg); pointer-events: none;
    }
    .aesub-pv .aesub-pv-richtung { width: var(--pv-feld-h); height: var(--pv-feld-h); padding: 0; }

    /* Eine Karte pro Zeile: links Produktkopf, rechts die Werte in zwei Spalten */
    .aesub-pv .aesub-pv-karten { display: flex; flex-direction: column; gap: 12px; }
    .aesub-pv .aesub-pv-karte {
        display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        background: var(--pv-papier); border: 1px solid var(--pv-linie);
        animation: aesub-pv-ein .35s ease both; animation-delay: calc(var(--aesub-pv-i, 0) * 35ms);
    }
    .aesub-pv .aesub-pv-karte header {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 14px 16px 14px 0; border-right: 1px solid var(--pv-linie);
    }
    .aesub-pv .aesub-pv-karte .aesub-pv-produkt { flex: 1; min-width: 0; }
    .aesub-pv .aesub-pv-karte dl {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(var(--aesub-pv-zeilen, 2), auto); grid-auto-flow: column;
        align-content: center; gap: 14px 24px;
        margin: 0; padding: 16px 20px;
    }
    .aesub-pv .aesub-pv-karte dl:empty { display: none; }
    .aesub-pv .aesub-pv-karte .aesub-pv-kartenhinweis {
        grid-column: 1 / -1; display: flex; margin: 0; padding: 10px 16px 10px 20px;
        border-top: 1px solid var(--pv-linie);
    }
    .aesub-pv .aesub-pv-karte dl > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .aesub-pv .aesub-pv-karte dt { margin: 0; font-size: 13px; line-height: 1.3; color: var(--pv-leise); }
    .aesub-pv .aesub-pv-karte dd { margin: 0; font-size: 15px; line-height: 1.3; color: var(--pv-tinte); }
    .aesub-pv .aesub-pv-karte dl > div.ist-sortiert dd { font-weight: 600; color: var(--pv-tinte-stark); }
    .aesub-pv .aesub-pv-karte dl > div.ist-sortiert dt { color: var(--pv-blau); font-weight: 600; }
    .aesub-pv .aesub-pv-karte.ist-lieferform-sortiert .aesub-pv-unter { color: var(--pv-blau); font-weight: 600; }
    .aesub-pv .aesub-pv-karte .aesub-pv-anwendung img { width: 28px; height: 28px; }
}

@media (max-width: 767px) {
    .aesub-pv .aesub-pv-titel { margin-bottom: 24px; }
    .aesub-pv .aesub-pv-filterknopf { display: inline-flex; }
    .aesub-pv .aesub-pv-filter { display: none; flex-direction: column; gap: 20px; margin-top: 20px; padding: 20px; background: var(--pv-grau); }
    .aesub-pv .aesub-pv-filter.ist-offen { display: flex; }
    .aesub-pv .aesub-pv-status { margin: 28px 0 12px; }
    .aesub-pv .aesub-pv-karten { gap: 12px; }
    .aesub-pv .aesub-pv-bild { flex-basis: 64px; width: 64px; height: 96px; }
    .aesub-pv .aesub-pv-name a { font-size: 17px; }

    .aesub-pv-dialoghuelle { align-items: flex-end; padding: 0; }
    .aesub-pv-dialoghuelle .aesub-pv-dialog { max-height: 92vh; }
    .aesub-pv-dialoghuelle .aesub-pv-dialogkopf { padding: 24px 20px 16px; }
    .aesub-pv-dialoghuelle .aesub-pv-messleiste { padding: 0 20px 20px; }
    .aesub-pv-dialoghuelle .aesub-pv-gruppen { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0 20px 24px; }
    .aesub-pv-dialoghuelle .aesub-pv-ersetzen { padding: 0 20px 24px; }
    .aesub-pv-dialoghuelle .aesub-pv-dialogfuss { padding: 14px 20px; }
}

@media (max-width: 599px) {
    .aesub-pv .aesub-pv-karte { grid-template-columns: minmax(0, 1fr); }
    .aesub-pv .aesub-pv-karte header { border-right: 0; border-bottom: 1px solid var(--pv-linie); }
    .aesub-pv .aesub-pv-karte dl { padding: 14px 16px; gap: 12px 16px; }
}

@media (max-width: 479px) {
    .aesub-pv .aesub-pv-fg-aktionen { gap: 8px; }
    .aesub-pv .aesub-pv-lang { display: none; }
    .aesub-pv .aesub-pv-kurz { display: inline; }
    .aesub-pv .aesub-pv-fg-aktionen .ar-knopf { font-size: 15px; }
    /* Werte als 2er-Raster (Bezeichnung über dem Wert) – halbiert die Kartenhöhe */
}

@media (prefers-reduced-motion: reduce) {
    .aesub-pv .aesub-pv-tabelle tbody tr,
    .aesub-pv .aesub-pv-karte,
    .aesub-pv-dialoghuelle { animation: none; }
    .aesub-pv .aesub-pv-produkt:hover a.aesub-pv-bild img { animation: none; }
}
