/* Zwischenring-Auswahl (ivm-zwischenringe.php) – Farben nach IVM-Branding, Filter in der Knopf-Optik der übrigen Filter */
.ivm-zr { --zr-dunkel: #2b3540; --zr-blau: #0066cc; --zr-rand: #d8dee6; --zr-grau: #f0f2f5; --zr-text: #1a1a1a; --zr-leise: #5b6672; font-family: Inter, sans-serif; color: var(--zr-text); }
.ivm-zr .zr-filter { display: grid; gap: 14px; margin: 0 0 24px; padding: 18px 20px; background: #fff; border: 1px solid var(--zr-rand); border-radius: 14px; }
.ivm-zr .zr-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ivm-zr .zr-titel, .ivm-zr .zr-felder label > span:first-child { font-size: 14px; font-weight: 700; color: var(--zr-dunkel); }
.ivm-zr .zr-titel { min-width: 76px; margin-right: 4px; }
.ivm-zr .zr-filter button[data-filter] { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1.2 Inter, sans-serif; padding: 8px 14px; border: 1px solid var(--zr-rand); border-radius: 999px; background: #fff; color: var(--zr-dunkel); cursor: pointer; transition: background .2s, border-color .2s; }
.ivm-zr .zr-filter button[data-filter] small { font-weight: 400; font-size: 12px; opacity: .8; }
.ivm-zr .zr-filter button[data-filter]:hover { border-color: var(--zr-blau); color: var(--zr-blau); }
.ivm-zr .zr-filter button[aria-pressed="true"], .ivm-zr .zr-filter button[aria-pressed="true"]:hover { background: var(--zr-dunkel); border-color: var(--zr-dunkel); color: #fff; }
.ivm-zr .zr-filter button:focus-visible, .ivm-zr .zr-filter input:focus-visible, .ivm-zr .zr-filter select:focus-visible, .ivm-zr a:focus-visible { outline: 2px solid var(--zr-blau); outline-offset: 2px; }
.ivm-zr .zr-punkt { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); }
.ivm-zr button[aria-pressed="true"] .zr-punkt { border-color: #fff; }
.ivm-zr .zr-felder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; padding-top: 14px; border-top: 1px solid var(--zr-grau); }
.ivm-zr .zr-felder label { display: grid; gap: 6px; margin: 0; }
.ivm-zr .zr-felder select, .ivm-zr .zr-felder input { width: 100%; min-width: 0; height: 42px; padding: 8px 12px; font: 400 15px Inter, sans-serif; color: var(--zr-text); background: #fff; border: 1px solid var(--zr-rand); border-radius: 8px; }
.ivm-zr .zr-einheit { position: relative; display: block; }
.ivm-zr .zr-einheit input { padding-right: 44px; }
.ivm-zr .zr-einheit i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 14px; color: var(--zr-leise); pointer-events: none; }
.ivm-zr .zr-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--zr-leise); }
.ivm-zr .zr-zurueck { padding: 0; border: 0; background: none; font: 600 14px Inter, sans-serif; color: var(--zr-blau); text-decoration: underline; cursor: pointer; }
.ivm-zr .zr-zurueck[hidden], .ivm-zr .zr-leer[hidden] { display: none !important; }

/* Rahmen ohne overflow (sonst greift position: sticky am Tabellenkopf nicht); die runden Ecken tragen daher die Eckzellen selbst –
   dafür border-collapse: separate (bei collapse ignoriert der Browser border-radius an Zellen) */
.ivm-zr .zr-tabelle-rahmen { border: 1px solid var(--zr-rand); border-radius: 14px; background: #fff; }
.ivm-zr .zr-tabelle { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 15px; }
/* Kopf zweizeilig (Umbruch per <br>), Maßspalten enger; bleibt beim Scrollen unter dem Seitenkopf stehen (Wünsche Frank 05.11.2026).
   --zr-kopf-top = Höhe des festen Seitenkopfs, gesetzt von auswahl.js. Sticky ist der ganze <thead>, nicht jede <th>: einzeln
   gerundete sticky-Zellen ließen 1-px-Lücken zum weißen Rahmen (waagerecht und senkrecht, Screenshots Frank 05.11.2026) */
.ivm-zr .zr-tabelle thead { position: sticky; top: var(--zr-kopf-top, 76px); z-index: 3; }
.ivm-zr .zr-tabelle thead th { background: var(--zr-dunkel); box-shadow: 0 1px 0 var(--zr-dunkel); color: #fff; text-align: left; font-weight: 600; font-size: 14px; line-height: 18px; padding: 10px 8px; border: 0; white-space: nowrap; vertical-align: bottom; }
.ivm-zr .zr-tabelle thead th:first-child { border-top-left-radius: 13px; }
.ivm-zr .zr-tabelle thead th:last-child { border-top-right-radius: 13px; }
.ivm-zr .zr-tabelle tbody tr:nth-last-child(1 of :not([hidden])) > :first-child { border-bottom-left-radius: 13px; }
.ivm-zr .zr-tabelle tbody tr:nth-last-child(1 of :not([hidden])) > :last-child { border-bottom-right-radius: 13px; }
.ivm-zr .zr-tabelle td, .ivm-zr .zr-tabelle tbody th { padding: 12px 8px; border: 0; border-top: 1px solid var(--zr-rand); vertical-align: top; text-align: left; font-weight: 400; background: #fff; white-space: nowrap; }
.ivm-zr .zr-tabelle tr > :first-child { padding-left: 16px; padding-right: 12px; }
.ivm-zr .zr-tabelle tr > :last-child { padding-left: 12px; padding-right: 16px; }
.ivm-zr .zr-tabelle tbody tr:nth-child(even of :not([hidden])) > * { background: #f7f8fa; }
.ivm-zr .zr-tabelle tbody th b { display: block; font-size: 16px; color: var(--zr-dunkel); }
.ivm-zr .zr-tabelle small { display: block; font-size: 12px; color: var(--zr-leise); }
.ivm-zr .zr-tabelle tr[hidden] { display: none; }
.ivm-zr .zr-lbl { display: none; }
.ivm-zr .zr-haerten { width: 100%; white-space: normal !important; }
.ivm-zr .zr-haerten ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
/* Raster der Härte-Zeilen; der Spaltenkopf (.zr-kopf-raster) nutzt dieselben Spalten, damit Härte, T_N und Artikelnummer genau darüber stehen */
.ivm-zr .zr-haerten li, .ivm-zr .zr-kopf-raster { display: grid; grid-template-columns: 12px 58px 84px 1fr 84px; align-items: center; gap: 8px; margin: 0; }
.ivm-zr .zr-kopf-raster { align-items: end; white-space: nowrap; }
.ivm-zr .zr-haerten li[hidden] { display: none; }
.ivm-zr .zr-h-name { font-weight: 600; color: var(--zr-dunkel); }
.ivm-zr .zr-h-tkn { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ivm-zr .zr-h-art { display: grid; gap: 1px; font-size: 13px; color: var(--zr-leise); font-variant-numeric: tabular-nums; }
.ivm-zr .zr-h-art > span { display: flex; gap: 6px; align-items: baseline; white-space: nowrap; }
.ivm-zr .zr-h-art small { display: inline-block; min-width: 70px; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; color: #8a949e; }
.ivm-zr .zr-h-anfrage { justify-self: end; padding: 5px 12px; border: 1px solid var(--zr-blau); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--zr-blau) !important; text-decoration: none; white-space: nowrap; }
.ivm-zr .zr-h-anfrage:hover { background: var(--zr-blau); color: #fff !important; }
.ivm-zr .zr-leer { margin-top: 16px; padding: 18px 20px; background: var(--zr-grau); border-radius: 14px; }
.ivm-zr .zr-leer p { margin: 0; }
.ivm-zr .zr-leer a, .ivm-zr .zr-hinweis a { color: var(--zr-blau); }
.ivm-zr .zr-hinweis { margin: 12px 0 0; font-size: 13px; color: var(--zr-leise); }

@media (max-width: 1100px) {
  .ivm-zr .zr-felder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Schmal: jede Zeile als Karte, Beschriftung aus span.zr-lbl. Grenze 1150 px: darunter ist die Tabelle (mind. ca. 1.070 px)
   breiter als ihr Rahmen – ein Scroll-Rahmen ginge nicht, weil der Tabellenkopf sonst nicht mehr sticky wäre */
@media (max-width: 1150px) {
  .ivm-zr .zr-tabelle-rahmen { border: 0; border-radius: 0; background: none; overflow: visible; }
  .ivm-zr .zr-tabelle, .ivm-zr .zr-tabelle tbody { display: block; }
  .ivm-zr .zr-tabelle thead { display: none; }
  .ivm-zr .zr-tabelle tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 12px; border: 1px solid var(--zr-rand); border-radius: 14px; overflow: hidden; background: #fff; }
  .ivm-zr .zr-tabelle tbody tr > * { background: #fff !important; border: 0; padding: 8px 14px; white-space: normal; }
  .ivm-zr .zr-tabelle tbody th { grid-column: 1 / -1; padding: 12px 14px 6px; background: var(--zr-grau) !important; }
  .ivm-zr .zr-lbl { display: block; font-size: 12px; color: var(--zr-leise); }
  .ivm-zr .zr-was { display: none !important; }
  .ivm-zr .zr-tabelle td.zr-haerten { grid-column: 1 / -1; padding-bottom: 14px; border-top: 1px solid var(--zr-rand); }
  .ivm-zr .zr-haerten ul { gap: 12px; }
  .ivm-zr .zr-haerten li { grid-template-columns: 12px 60px 1fr auto; row-gap: 4px; }
  /* Nummern unter Härte und Drehmoment über die volle Breite, „Anfragen“ rechts in der ersten Zeile */
  .ivm-zr .zr-h-art { grid-column: 2 / -1; grid-row: 2; }
  .ivm-zr .zr-h-art > span { white-space: normal; }
  .ivm-zr .zr-h-anfrage { grid-column: 4; grid-row: 1; }
}
@media (max-width: 767px) {
  .ivm-zr .zr-filter { padding: 14px 16px; }
  .ivm-zr .zr-reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ivm-zr .zr-titel { grid-column: 1 / -1; }
  .ivm-zr .zr-filter button[data-filter] { width: 100%; height: 100%; min-width: 0; justify-content: center; text-align: center; white-space: normal; flex-wrap: wrap; padding: 8px 10px; }
  .ivm-zr .zr-felder { grid-template-columns: 1fr 1fr; }
  .ivm-zr .zr-tabelle tbody tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ivm-zr .zr-filter button[data-filter]:disabled { opacity: .4; cursor: not-allowed; border-color: var(--zr-rand); color: var(--zr-dunkel); }
/* Eine Baureihe gewählt: Spaltenkopf sagt schon D_i bzw. d_p, der kleine Zusatz unter dem Wert entfällt */
.ivm-zr.zr-eine-baureihe .zr-was { display: none; }
