/*
 * Produktkatalog L&_P
 * Das Türkis der Marke (#008080) erreicht auf Weiß nur 4,77:1 und fällt im
 * Hover-Zustand auf 3,38:1 durch. Hier wird eine abgedunkelte Variante
 * verwendet: #0f6e6e liegt bei 5,9:1 und besteht auch als kleiner Text.
 */

.lp-katalog {
  --lp-akzent: #0f6e6e;
  --lp-akzent-dunkel: #0a5252;
  --lp-ink: #16211f;
  --lp-ink-leise: #55635f;
  --lp-linie: #d8e0de;
  --lp-flaeche: #f4f7f6;

  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  color: var(--lp-ink);
}

.lp-katalog :focus-visible {
  outline: 3px solid var(--lp-akzent);
  outline-offset: 2px;
}

.lp-kopf h1 { margin: 0 0 .4rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.15; }
.lp-kopf p { margin: 0 0 1.6rem; color: var(--lp-ink-leise); max-width: 46rem; }

/* ---------- Filter ---------- */

.lp-filter {
  background: var(--lp-flaeche);
  border: 1px solid var(--lp-linie);
  border-radius: 4px;
  padding: 1.1rem 1.25rem 1.25rem;
  margin-bottom: 1.8rem;
}
.lp-filter fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
.lp-filter legend {
  font-weight: 600; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--lp-ink-leise); padding: 0; margin-bottom: .6rem;
}
.lp-filter-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; }
.lp-filter-feld label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .25rem; }
.lp-spanne { display: flex; align-items: center; gap: .4rem; }
.lp-spanne input { width: 100%; padding: .45rem .5rem; border: 1px solid var(--lp-linie); border-radius: 3px; font: inherit; }
.lp-spanne span { color: var(--lp-ink-leise); font-size: .85rem; }
.lp-filter select { width: 100%; padding: .45rem .5rem; border: 1px solid var(--lp-linie); border-radius: 3px; font: inherit; background: #fff; }
.lp-filter-aktionen { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.lp-knopf {
  display: inline-block; padding: .55rem 1.1rem; border: 1px solid var(--lp-akzent);
  background: var(--lp-akzent); color: #fff; border-radius: 3px; font: inherit;
  font-weight: 600; cursor: pointer; text-decoration: none;
}
.lp-knopf:hover, .lp-knopf:focus { background: var(--lp-akzent-dunkel); border-color: var(--lp-akzent-dunkel); color: #fff; }
.lp-knopf--leise { background: #fff; color: var(--lp-akzent); }
.lp-knopf--leise:hover, .lp-knopf--leise:focus { background: var(--lp-flaeche); color: var(--lp-akzent-dunkel); }

.lp-treffer { margin: 0 0 1rem; color: var(--lp-ink-leise); font-size: .92rem; }
.lp-treffer strong { color: var(--lp-ink); }

/* ---------- Produktraster ---------- */

.lp-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

.lp-karte { border: 1px solid var(--lp-linie); border-radius: 4px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.lp-karte__bild { aspect-ratio: 4 / 3; background: var(--lp-flaeche); display: block; overflow: hidden; }
.lp-karte__bild img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lp-karte__inhalt { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.lp-karte__titel { margin: 0; font-size: 1rem; line-height: 1.3; }
.lp-karte__titel a { color: var(--lp-ink); text-decoration: none; }
.lp-karte__titel a:hover, .lp-karte__titel a:focus { color: var(--lp-akzent); text-decoration: underline; }
.lp-karte__sku { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .78rem; color: var(--lp-ink-leise); }
.lp-karte__daten { margin: .2rem 0 0; font-size: .84rem; color: var(--lp-ink-leise); display: grid; gap: .15rem; }
.lp-karte__daten div { display: flex; justify-content: space-between; gap: .5rem; }
.lp-karte__daten dt { color: var(--lp-ink-leise); }
.lp-karte__daten dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--lp-ink); }

/* ---------- Detailseite ---------- */

.lp-produkt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 52rem) { .lp-produkt { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.lp-produkt__bild { border: 1px solid var(--lp-linie); border-radius: 4px; background: #fff; padding: 1rem; }
.lp-produkt__bild img { width: 100%; height: auto; display: block; }

.lp-datenblatt { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; }
.lp-datenblatt caption { text-align: left; font-weight: 600; margin-bottom: .5rem; }
.lp-datenblatt th, .lp-datenblatt td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--lp-linie); font-size: .92rem; }
.lp-datenblatt th { font-weight: 600; width: 45%; color: var(--lp-ink-leise); }
.lp-datenblatt td { font-variant-numeric: tabular-nums; }

.lp-aktionen { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Produkttabelle (Shortcode) ---------- */

.lp-tabelle {
  --lp-akzent: #0f6e6e;
  --lp-ink: #16211f;
  --lp-ink-leise: #55635f;
  --lp-linie: #d8e0de;
  --lp-flaeche: #f4f7f6;
  margin: 1.5rem 0;
  color: var(--lp-ink);
}

/*
 * Zwei feste Reihen statt eines gemeinsamen Umbruchs: oben die Merkmale,
 * unten die Wertebereiche mit Sortierung. Sonst haengt je nach Zahl der
 * sichtbaren Filter mal ein Bereichsfeld in der oberen Reihe.
 */
.lp-tabelle__filter { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1rem; }
.lp-tabelle__reihe { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: flex-end; }
.lp-tabelle__reihe--werte { padding-top: .2rem; border-top: 1px solid var(--lp-linie); padding-top: .9rem; }
.lp-tabelle__feld { display: flex; flex-direction: column; gap: .2rem; }
.lp-tabelle__feld label { font-size: .78rem; font-weight: 600; color: var(--lp-ink-leise); }
/*
 * Feste Breite statt max-width: Die Auswahlfelder richteten sich sonst nach
 * ihrer laengsten Option, und "Anschlussleitung 300mm mit Sensorstecker M16
 * 5pol. Male (Stift)" zog eines davon auf die doppelte Breite der anderen -
 * dadurch rutschte der letzte Filter in eine zweite Zeile. Aufgeklappt zeigt
 * der Browser die Optionen ohnehin in voller Laenge.
 */
.lp-tabelle__feld select {
  font: inherit; font-size: .88rem; padding: .4rem .5rem;
  border: 1px solid var(--lp-linie); border-radius: 3px; background: #fff;
  width: 9.5rem; max-width: 100%;
}
/* Ein gesetzter Filter faellt auf - wie bei Klappmenues und Wertebereichen. */
.lp-tabelle__feld select.lp-tabelle__select--aktiv {
  border-color: var(--lp-akzent); font-weight: 600;
}
.lp-tabelle__knopf {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: .45rem 1rem; border-radius: 3px;
  background: var(--lp-akzent); color: #fff; border: 1px solid var(--lp-akzent);
}
.lp-tabelle__knopf:hover, .lp-tabelle__knopf:focus { background: #0a5252; border-color: #0a5252; }
/* Sieht aus wie eine Schaltfläche, bleibt aber ein Link - siehe Kommentar im Template. */
.lp-tabelle__zuruecksetzen {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .85rem;
  border: 1px solid var(--lp-linie); border-radius: 3px;
  background: #fff; color: var(--lp-ink-leise);
  font-size: .84rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  align-self: flex-end;
}
.lp-tabelle__zuruecksetzen:hover,
.lp-tabelle__zuruecksetzen:focus {
  border-color: var(--lp-akzent); color: var(--lp-akzent); background: var(--lp-flaeche);
}
.lp-tabelle__zuruecksetzen svg { flex: none; opacity: .75; }
.lp-tabelle__zuruecksetzen:hover svg, .lp-tabelle__zuruecksetzen:focus svg { opacity: 1; }
.lp-tabelle :focus-visible { outline: 3px solid var(--lp-akzent); outline-offset: 2px; }

/* Breite Tabellen rollen in ihrem eigenen Bereich, nicht die ganze Seite. */
.lp-tabelle__rollbereich { overflow-x: auto; border: 1px solid var(--lp-linie); }

.lp-tabelle table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 34rem; background: #fff; }
.lp-tabelle thead th {
  text-align: left; font-weight: 600; font-size: .8rem;
  padding: .6rem .7rem; background: var(--lp-flaeche);
  border-bottom: 1px solid var(--lp-linie); white-space: nowrap;
}
.lp-tabelle tbody th, .lp-tabelle tbody td {
  padding: .5rem .7rem; border-bottom: 1px solid var(--lp-linie);
  text-align: left; font-weight: 400; vertical-align: middle;
}
.lp-tabelle tbody tr:last-child th, .lp-tabelle tbody tr:last-child td { border-bottom: 0; }
.lp-tabelle tbody th a { color: var(--lp-akzent); text-decoration: none; }
.lp-tabelle tbody th a:hover, .lp-tabelle tbody th a:focus { text-decoration: underline; }
.lp-tabelle__sku { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .82rem; white-space: nowrap; }
/*
 * Die Bildspalte hat einen leeren Kopf und kollabiert deshalb auf Minimalbreite.
 * Divi setzt zusätzlich img { max-width: 100% } - zusammen schrumpft das
 * Vorschaubild auf wenige Pixel. Feste Spaltenbreite und max-width: none
 * setzen dem eine klare Vorgabe entgegen.
 */
.lp-tabelle table td.lp-tabelle__bild,
.lp-tabelle table th.lp-tabelle__bild { width: 3.6rem; min-width: 3.6rem; padding-right: .3rem; }

.lp-tabelle table td.lp-tabelle__bild img {
  display: block;
  width: 2.8rem;
  height: 2.8rem;
  max-width: none;
  object-fit: contain;
  background: #fff;
}

.lp-tabelle__blaettern { margin-top: 1rem; }
.lp-tabelle__blaettern .page-numbers {
  display: inline-block; padding: .35rem .7rem; margin-right: .25rem;
  border: 1px solid var(--lp-linie); border-radius: 3px; text-decoration: none; color: var(--lp-akzent);
}
.lp-tabelle__blaettern .page-numbers.current { background: var(--lp-akzent); color: #fff; border-color: var(--lp-akzent); }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* Merkmale ohne Unterscheidungswert: sichtbar, aber nicht wählbar. */
.lp-tabelle__feld--ohne-wirkung label { color: #8a9491; }
.lp-tabelle__feld--ohne-wirkung select {
  background: #f0f3f2; color: #6f7a77; cursor: not-allowed; border-color: #e2e8e6;
}

/* Der Knopf wird zur Nebensache, sobald die Auswahl selbst filtert. */
.lp-tabelle__knopf--nebensache {
  background: #fff; color: var(--lp-akzent); font-weight: 500;
}
.lp-tabelle__knopf--nebensache:hover, .lp-tabelle__knopf--nebensache:focus {
  background: var(--lp-flaeche); color: #0a5252; border-color: #0a5252;
}

.lp-tabelle__zuruecksetzen--aus { display: none; }

.lp-tabelle__treffer { margin: 0 0 .7rem; font-size: .88rem; color: var(--lp-ink-leise); }

/* Während des Nachladens bleibt die alte Tabelle stehen, nur gedämpft. */
.lp-tabelle__inhalt { transition: opacity .15s ease; }
.lp-tabelle--laedt .lp-tabelle__inhalt { opacity: .45; }
@media (prefers-reduced-motion: reduce) {
  .lp-tabelle__inhalt { transition: none; }
}

.lp-tabelle__leer { padding: 1rem; background: var(--lp-flaeche); border: 1px solid var(--lp-linie); }

/* ---------- Mehrfachauswahl mit Farbpunkten ---------- */

.lp-tabelle__gruppe { border: 0; margin: 0; padding: 0; }
.lp-tabelle__gruppe legend {
  padding: 0; margin-bottom: .25rem;
  font-size: .78rem; font-weight: 600; color: var(--lp-ink-leise);
}
.lp-tabelle__kaesten { display: flex; flex-wrap: wrap; gap: .3rem; }
.lp-tabelle__kasten {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .6rem .3rem .45rem;
  border: 1px solid var(--lp-linie); border-radius: 999px;
  background: #fff; font-size: .82rem; cursor: pointer; white-space: nowrap;
}
.lp-tabelle__kasten:hover { border-color: var(--lp-akzent); }
.lp-tabelle__kasten input { margin: 0; }
.lp-tabelle__kasten:has(input:checked) {
  border-color: var(--lp-akzent); background: #eef5f4; font-weight: 600;
}
.lp-tabelle__kasten:has(input:focus-visible) { outline: 3px solid var(--lp-akzent); outline-offset: 2px; }

/* Farbpunkt: heller Rand, damit Weiß auf Weiß sichtbar bleibt. */
.lp-punkt {
  display: inline-block; width: .72rem; height: .72rem; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.28); flex: none; vertical-align: -.08em;
  margin-right: .3rem;
}

/* Symbol-Link: braucht eine ausreichend grosse Klickflaeche, auch am Finger. */
.lp-tabelle table td.lp-tabelle__datenblatt { width: 5rem; text-align: center; }
.lp-tabelle__datenblatt a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 3px;
  color: var(--lp-akzent); text-decoration: none;
}
.lp-tabelle__datenblatt a:hover, .lp-tabelle__datenblatt a:focus { background: var(--lp-flaeche); color: #0a5252; }
.lp-tabelle__datenblatt .lp-symbol { display: block; }

/* ---------- Anfragekorb ---------- */

.lp-korb {
  /*
   * --lp-akzent-dunkel muss hier mitkommen: Fehlt die Variable, ist
   * background: var(--lp-akzent-dunkel) im Hover ungueltig und faellt weg -
   * weisse Schrift auf weissem Grund, der Knopf verschwindet.
   */
  --lp-akzent: #0f6e6e; --lp-akzent-dunkel: #0a5252;
  --lp-ink: #16211f; --lp-ink-leise: #55635f;
  --lp-linie: #d8e0de; --lp-flaeche: #f4f7f6;
  color: var(--lp-ink);
  /* Divi setzt am Inhaltsbereich keinen Abstand, der Footer schliesst sonst buendig an */
  padding-bottom: 7rem;
}
.lp-korb h2 { margin: 2rem 0 1rem; font-size: 1.25rem; }

.lp-korb__hinweis { padding: .9rem 1.1rem; border-radius: 4px; margin-bottom: 1.4rem; border: 1px solid; }
.lp-korb__hinweis--gut { background: #eaf5f0; border-color: #9dc9b4; color: #14503a; }
.lp-korb__hinweis--fehler { background: #fdeeec; border-color: #e3a9a2; color: #8a2018; }
.lp-korb__hinweis ul { margin: .4rem 0 0; padding-left: 1.1rem; }

/* Leere Liste und Abschluss teilen sich die Bühne: mittig, luftig, mit Ausweg. */
.lp-korb__leer,
.lp-korb__abschluss {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--lp-flaeche);
  border: 1px solid var(--lp-linie);
  border-radius: 6px;
}
.lp-korb__leer p,
.lp-korb__abschluss p { margin: 0 0 .6rem; color: var(--lp-ink-leise); }
.lp-korb__leer-titel { font-size: 1.15rem; font-weight: 600; color: var(--lp-ink) !important; }

.lp-korb__abschluss { background: #f2f9f5; border-color: #b9dbc9; }
.lp-korb__abschluss-haken {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin-bottom: .8rem;
  border-radius: 50%; background: #1f7a4d; color: #fff; font-size: 1.5rem; line-height: 1;
}
.lp-korb .lp-korb__abschluss-titel {
  margin: 0 0 .6rem; padding: 0;
  font-size: 1.3rem; color: var(--lp-ink);
}
.lp-korb__leer p:last-child,
.lp-korb__abschluss-wege { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

.lp-korb__menge { width: 5rem; padding: .4rem .5rem; border: 1px solid var(--lp-linie); border-radius: 3px; font: inherit; }

.lp-korb__weg {
  border: 1px solid var(--lp-linie); background: #fff; border-radius: 3px;
  width: 2rem; height: 2rem; line-height: 1; font-size: 1.1rem;
  color: var(--lp-ink-leise); cursor: pointer;
}
.lp-korb__weg:hover, .lp-korb__weg:focus { border-color: #b3261e; color: #b3261e; background: #fdeeec; }

.lp-korb__aktionen { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0 0; }

.lp-korb__raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.lp-korb__feld { margin: 0 0 1rem; }
.lp-korb__feld label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .25rem; }
.lp-korb__feld input, .lp-korb__feld textarea {
  width: 100%; padding: .55rem .65rem; font: inherit;
  border: 1px solid var(--lp-linie); border-radius: 3px; background: #fff;
}
.lp-korb__feld input:focus-visible, .lp-korb__feld textarea:focus-visible,
.lp-korb__menge:focus-visible { outline: 3px solid var(--lp-akzent); outline-offset: 1px; }
.lp-korb__feld input[aria-invalid="true"] { border-color: #b3261e; }
.lp-korb__feldfehler { display: block; margin-top: .25rem; font-size: .84rem; color: #b3261e; }

.lp-korb__pflicht { color: #b3261e; }
.lp-korb__pflichthinweis { font-size: .82rem; color: var(--lp-ink-leise); margin: 0 0 1.2rem; }

.lp-korb__zustimmung { margin: 1rem 0; }
.lp-korb__zustimmung label { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.lp-korb__zustimmung input { margin-top: .25rem; flex: none; }

/* Honigtopf gegen Bots - für Menschen unsichtbar, für Screenreader ausgeblendet. */
.lp-korb__falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lp-korb__senden { font-size: 1rem; padding: .7rem 1.6rem; }

/* Mengeneingabe auf der Produktseite */
.lp-aktionen--anfrage { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; margin: 1.4rem 0 .8rem; }
.lp-aktionen__menge { display: flex; flex-direction: column; gap: .2rem; }
.lp-aktionen__menge label { font-size: .8rem; font-weight: 600; color: var(--lp-ink-leise); }
.lp-aktionen__menge input {
  width: 5rem; padding: .5rem; font: inherit;
  border: 1px solid var(--lp-linie); border-radius: 3px;
}
.lp-knopf--anfrage { font-weight: 600; }

/* Rückmeldung nach dem Hinzufügen */
.lp-korb__bestaetigung {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem;
  padding: .8rem 1rem; margin: 0 0 1rem;
  background: #eaf5f0; border: 1px solid #9dc9b4; border-radius: 4px;
  color: #14503a; font-size: .92rem;
}
.lp-korb__haken {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: #1f7a4d; color: #fff; font-size: .82rem; flex: none;
}
.lp-korb__zaehler { color: #2c6b52; }

/* ---------- Schwebekorb ---------- */

.lp-schwebekorb {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 900;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.15rem;
  background: #0f6e6e; color: #fff;
  border-radius: 999px; text-decoration: none;
  font-size: .92rem; font-weight: 600; line-height: 1;
  box-shadow: 0 3px 14px rgba(0,0,0,.22);
}
.lp-schwebekorb:hover, .lp-schwebekorb:focus { background: #0a5252; color: #fff; }
.lp-schwebekorb:focus-visible { outline: 3px solid #0f6e6e; outline-offset: 3px; }

.lp-schwebekorb__zahl {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem;
  background: #fff; color: #0f6e6e;
  border-radius: 999px; font-size: .82rem; font-variant-numeric: tabular-nums;
}

/* Leerer Korb: nichts anzeigen, aber im Markup lassen - das Skript blendet ihn ein. */
.lp-schwebekorb--leer { display: none; }

@media (max-width: 30rem) {
  .lp-schwebekorb { right: .8rem; bottom: .8rem; padding: .7rem .9rem; }
  .lp-schwebekorb__text { display: none; }
}

/* Nachladen im Archiv: alte Karten bleiben stehen, nur gedämpft. */


/* ---------- Anfrageseite: Feinschliff ---------- */

/*
 * Die Bildregel der Produkttabelle greift hier nicht - dort ist der Vorfahre
 * .lp-tabelle, im Korb .lp-korb. Deshalb eigens gesetzt.
 */
.lp-korb table td.lp-tabelle__bild,
.lp-korb table th.lp-tabelle__bild { width: 4.4rem; min-width: 4.4rem; }
.lp-korb table td.lp-tabelle__bild img {
  display: block; width: 3.4rem; height: 3.4rem;
  max-width: none; object-fit: contain; background: #fff;
}

/* Firma über die volle Breite, darunter Name und E-Mail, darunter Telefon. */
.lp-korb__raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.lp-korb__raster .lp-korb__feld:nth-child(1),
.lp-korb__raster .lp-korb__feld:nth-child(4) { grid-column: 1 / -1; }

@media (max-width: 34rem) {
  .lp-korb__raster { grid-template-columns: minmax(0, 1fr); }
  .lp-korb__raster .lp-korb__feld { grid-column: 1 / -1; }
}

/*
 * Absende-Schaltfläche: Divi setzt eigene Regeln für button-Elemente, die den
 * Hover-Zustand auf weißen Grund mit weißer Schrift ziehen - unsichtbar.
 * Deshalb hier ausdrücklich und mit ausreichender Spezifität.
 */
.lp-korb .lp-korb__senden,
.lp-korb .lp-korb__senden:link,
.lp-korb .lp-korb__senden:visited {
  background: #0f6e6e; color: #fff; border: 1px solid #0f6e6e;
}
.lp-korb .lp-korb__senden:hover,
.lp-korb .lp-korb__senden:focus,
.lp-korb .lp-korb__senden:active {
  background: #0a5252; color: #fff; border-color: #0a5252;
}

/* Gleiches gilt für die Schaltflächen über der Liste. */
.lp-korb .lp-tabelle__knopf:hover,
.lp-korb .lp-tabelle__knopf:focus { background: #0a5252; color: #fff; border-color: #0a5252; }

/* Optionen ohne Treffer bleiben lesbar, sind aber nicht wählbar. */
.lp-filter select option:disabled { color: #a3adaa; }

/* Mehrfachauswahl: Werte ohne Treffer bleiben lesbar, aber unwählbar. */
.lp-tabelle__kasten--aus { opacity: .5; cursor: not-allowed; border-style: dashed; }
.lp-tabelle__kasten--aus:hover { border-color: var(--lp-linie); }

/* ---------- Suchergebnisse ---------- */

.lp-suche__form { max-width: 34rem; margin: 0 0 1.6rem; }
.lp-suche__form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; color: var(--lp-ink-leise); }
.lp-suche__zeile { display: flex; gap: .5rem; }
.lp-suche__zeile input {
  flex: 1; min-width: 0; padding: .55rem .65rem; font: inherit;
  border: 1px solid var(--lp-linie); border-radius: 3px; background: #fff;
}

.lp-suche__block { margin: 0 0 2.5rem; }
.lp-suche__block h2 {
  font-size: 1.15rem; margin: 0 0 1rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--lp-linie);
}
.lp-suche__zahl { color: var(--lp-ink-leise); font-weight: 400; font-size: .92rem; }

.lp-suche__hinweis {
  font-size: .86rem; color: var(--lp-ink-leise);
  margin: -.4rem 0 1rem; padding: .5rem .7rem;
  background: var(--lp-flaeche); border-left: 3px solid var(--lp-linie);
}
.lp-suche__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.lp-suche__eintrag { max-width: 46rem; }
.lp-suche__titel { font-size: 1.02rem; margin: 0 0 .15rem; line-height: 1.35; }
.lp-suche__titel a { color: var(--lp-akzent); text-decoration: none; }
.lp-suche__titel a:hover, .lp-suche__titel a:focus { text-decoration: underline; }
.lp-suche__pfad { font-size: .8rem; color: var(--lp-ink-leise); margin: 0 0 .3rem; }
.lp-suche__anriss { margin: 0; font-size: .9rem; color: var(--lp-ink); }
/* Die Fundstelle wird betont, nicht eingefaerbt - gelb auf weiss faellt beim
   Kontrast durch und stoert Leser mit Sehschwaeche mehr, als es hilft. */
.lp-suche__anriss mark { background: #fff3cd; color: inherit; font-weight: 600; padding: 0 .1em; }

.lp-suche__leer {
  text-align: center; padding: 3rem 1.5rem;
  background: var(--lp-flaeche); border: 1px solid var(--lp-linie); border-radius: 6px;
}
.lp-suche__leer p { margin: 0 0 .6rem; color: var(--lp-ink-leise); }
.lp-suche__leer-titel { font-size: 1.15rem; font-weight: 600; color: var(--lp-ink) !important; }
.lp-suche__leer p:last-child { margin-top: 1.4rem; }

/* ---------- Aufklappbare Mehrfachauswahl ---------- */

/*
 * Aufbau wie bei den Auswahlfeldern: Beschriftung darueber, Wert darunter.
 * Feste, gleiche Breite fuer alle sieben Merkmalsfilter - sonst wuchs der Knopf
 * mit dem gewaehlten Wert und schob beim Filtern den letzten Filter in eine
 * zweite Zeile. Die Leiste sprang bei jeder Auswahl um.
 */
.lp-tabelle__klapp {
  position: relative;
  border: 0;
  background: none;
  width: 9.5rem;
  max-width: 100%;
}
.lp-tabelle__klapp > summary {
  display: flex; align-items: center; gap: .3rem;
  margin-top: 1.05rem;
  padding: .4rem .5rem;
  border: 1px solid var(--lp-linie); border-radius: 3px; background: #fff;
  cursor: pointer; list-style: none;
  font-size: .88rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden;
}
.lp-tabelle__klapp summary::-webkit-details-marker { display: none; }
/* Die Beschriftung sitzt ueber dem Knopf, wie das <label> eines Auswahlfeldes. */
.lp-tabelle__klapp-name {
  position: absolute; top: 0; left: 0;
  font-size: .78rem; font-weight: 600; color: var(--lp-ink-leise); line-height: 1.3;
}
/* Eigenes Dreieck, damit es rechts steht und sich mitdreht. */
.lp-tabelle__klapp summary::after {
  content: ""; flex: none;
  width: 0; height: 0; margin-left: .15rem;
  border: .3rem solid transparent; border-top-color: var(--lp-ink-leise);
  transform: translateY(.15rem);
}
.lp-tabelle__klapp[open] summary::after { transform: translateY(-.15rem) rotate(180deg); }
.lp-tabelle__klapp > summary:hover { background: var(--lp-flaeche); }
.lp-tabelle__klapp summary:focus-visible { outline: 3px solid var(--lp-akzent); outline-offset: 2px; }

/* Ein Menue mit Auswahl faellt auf, damit man gesetzte Filter nicht uebersieht. */
.lp-tabelle__klapp--aktiv > summary,
.lp-tabelle__klapp[open] > summary { border-color: var(--lp-akzent); }
.lp-tabelle__klapp--aktiv .lp-tabelle__klapp-wahl { font-weight: 600; color: var(--lp-akzent); }

/* Langer Wert wird gekuerzt - vollstaendig steht er im title des Knopfes. */
.lp-tabelle__klapp-wahl {
  color: var(--lp-ink);
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.lp-tabelle__klapp fieldset { border: 0; margin: 0; padding: .2rem .7rem .7rem; }
/*
 * Aufgeklappt legt sich die Liste ueber den Inhalt, statt die Filterleiste
 * auseinanderzuschieben - sonst springt die Tabelle beim Oeffnen nach unten.
 */
@media (min-width: 48rem) {
  .lp-tabelle__klapp[open] { z-index: 5; }
  .lp-tabelle__klapp[open] fieldset {
    position: absolute; left: 0; top: 100%;
    min-width: calc(100% + 2px); width: max-content; max-width: 32rem;
    background: #fff; border: 1px solid var(--lp-linie); border-radius: 0 3px 3px 3px;
    box-shadow: 0 6px 18px rgba(0,0,0,.09);
    padding: .7rem;
  }
  .lp-tabelle__klapp[open] .lp-tabelle__kaesten {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .3rem .9rem;
  }
}

/* ---------- Wertebereiche in der Filterleiste ---------- */

/*
 * Eingerahmt, damit erkennbar bleibt, welche beiden Felder zusammengehoeren:
 * In einer Reihe aus acht Eingaben las sich sonst "204 bis 0,08" wie ein Paar.
 * Die Beschriftung sitzt im Rahmen und unterbricht ihn - das ist das
 * gewohnte Bild einer zusammengehoerigen Gruppe.
 */
.lp-tabelle__spanne {
  border: 1px solid var(--lp-linie);
  border-radius: 3px;
  margin: 0;
  padding: .1rem .6rem .5rem;
  background: #fff;
}
.lp-tabelle__spanne legend {
  font-size: .78rem; font-weight: 600; color: var(--lp-ink-leise);
  padding: 0 .3rem; margin: 0 0 0 -.2rem;
}
.lp-tabelle__spanne-zeile { display: flex; align-items: center; gap: .3rem; }
.lp-tabelle__spanne-zeile input {
  width: 4.6rem; padding: .35rem .45rem; font: inherit; font-size: .88rem;
  /* Innen dezenter als der Gruppenrahmen, sonst konkurrieren die Linien. */
  border: 1px solid #e6ecea; border-radius: 2px; background: var(--lp-flaeche);
  text-align: right;
}
.lp-tabelle__spanne-zeile input:focus-visible {
  background: #fff; border-color: var(--lp-akzent);
  outline: 3px solid var(--lp-akzent); outline-offset: 1px;
}
.lp-tabelle__spanne-zeile span { font-size: .82rem; color: var(--lp-ink-leise); }

/* Eine ausgefuellte Gruppe faellt auf - wie bei den Klappmenues. */
.lp-tabelle__spanne:focus-within,
.lp-tabelle__spanne--aktiv { border-color: var(--lp-akzent); }
.lp-tabelle__spanne--aktiv legend { color: var(--lp-akzent); }
.lp-tabelle__spanne--aktiv input:not(:placeholder-shown) { background: #fff; font-weight: 600; }
.lp-tabelle__spanne--aus { opacity: .55; }

/* ---------- Tabelle als Kartenliste auf schmalen Schirmen ---------- */

/*
 * Unterhalb dieser Breite passen sechs Spalten nicht mehr nebeneinander. Statt
 * seitwaerts zu rollen wird jede Zeile zu einer Karte, die Spaltenueberschrift
 * steht als Beschriftung davor (data-spalte). Gleiche Daten, gleiche Filter.
 */
@media (max-width: 48rem) {
  .lp-tabelle__rollbereich { overflow-x: visible; border: 0; }
  .lp-tabelle table { min-width: 0; background: transparent; }
  .lp-tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  .lp-tabelle tbody tr {
    display: grid;
    grid-template-columns: 3.6rem minmax(0, 1fr) auto;
    /*
     * Die vier Textzeilen ausdruecklich benennen. Ohne explizite Zeilen meint
     * "grid-row: 1 / -1" naemlich die erste Zeile - das Bild landete darin
     * allein und zog sie auf seine Hoehe, was die Luecke zwischen
     * Artikelnummer und Namen erzeugte.
     */
    grid-template-rows: repeat(4, auto);
    gap: .05rem .7rem;
    align-items: start;
    align-content: start;
    background: #fff;
    border: 1px solid var(--lp-linie);
    border-radius: 4px;
    padding: .6rem .7rem;
    margin-bottom: .6rem;
  }

  .lp-tabelle tbody td, .lp-tabelle tbody th {
    display: block; border: 0; padding: 0; grid-column: 2;
    font-size: .84rem; line-height: 1.35;
  }

  /* Bild links, über die ganze Kartenhöhe */
  .lp-tabelle tbody td.lp-tabelle__bild {
    grid-column: 1; grid-row: 1 / -1; align-self: start;
    width: 3.6rem; padding: 0;
  }

  /* Nummer klein ueber den Namen, sie steht nicht mehr im Titel. */
  .lp-tabelle tbody td.lp-tabelle__sku {
    grid-row: 1; font-size: .76rem; color: var(--lp-ink-leise);
    line-height: 1.1; margin-bottom: .05rem;
  }
  .lp-tabelle tbody th[scope="row"] {
    grid-row: 2; font-weight: 600; font-size: .92rem;
    line-height: 1.25; margin: 0 0 .15rem;
  }
  /* Der Link fuellt die Zelle, statt als Inline-Kasten eigene Hoehe mitzubringen. */
  .lp-tabelle tbody th[scope="row"] a { display: block; line-height: inherit; }

  /*
   * Datenblatt-Symbol oben rechts statt als eigene beschriftete Zeile.
   * Ueber alle Zeilen gespannt, nicht nur die erste: Sonst zieht das Symbol
   * die Zeile der Artikelnummer auf seine Hoehe und reisst eine Luecke zum
   * Namen darunter.
   */
  .lp-tabelle tbody td.lp-tabelle__datenblatt {
    grid-column: 3; grid-row: 1 / -1; align-self: start; padding: 0;
  }

  .lp-tabelle tbody td[data-spalte]::before {
    content: attr(data-spalte) ": ";
    color: var(--lp-ink-leise); font-size: .78rem;
  }
  /*
   * Die Ausnahmen muessen NACH der allgemeinen Regel stehen: Sie haben
   * dieselbe Spezifitaet, also entscheidet die Reihenfolge.
   * Farbe, Scheibe und Winkel erklaeren sich selbst, das Symbol ohnehin.
   */
  .lp-tabelle tbody td[data-spalte="Ausführung"]::before,
  .lp-tabelle tbody td.lp-tabelle__sku::before,
  .lp-tabelle tbody td.lp-tabelle__datenblatt::before { content: none; }
  .lp-tabelle tbody td:empty { display: none; }
}

/* ---------- Anfragekorb am Handy ---------- */

/*
 * Fünf Spalten passten nicht auf den Bildschirm - Menge und Entfernen lagen
 * rechts außerhalb. Wie im Katalog wird jede Position zur Karte: Bild links,
 * daneben Nummer, Name und Menge, Entfernen oben rechts.
 */
@media (max-width: 48rem) {
  .lp-korb .lp-tabelle__rollbereich { overflow-x: visible; border: 0; }
  /*
   * Divi setzt .entry-content table:not(.variations) und .entry-content tr td
   * mit gleicher Spezifität und später geladen - deshalb hier je eine Stufe mehr.
   */
  .lp-korb .lp-korb__positionen .lp-tabelle__rollbereich table { min-width: 0; width: 100%; background: transparent; border: 0; }
  .lp-korb thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  .lp-korb tbody tr {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr) auto;
    grid-template-rows: repeat(3, auto);
    gap: .1rem .7rem;
    align-items: start;
    align-content: start;
    background: #fff;
    border: 1px solid var(--lp-linie);
    border-radius: 4px;
    padding: .6rem .7rem;
    margin-bottom: .6rem;
  }
  .lp-korb table tbody td, .lp-korb table tbody th {
    display: block; border: 0; padding: 0; grid-column: 2;
    font-size: .9rem; line-height: 1.35; text-align: left;
  }
  .lp-korb table tbody td.lp-tabelle__bild { grid-column: 1; grid-row: 1 / -1; width: 3.4rem; min-width: 0; }
  .lp-korb tbody td.lp-tabelle__sku { grid-row: 1; font-size: .76rem; color: var(--lp-ink-leise); }
  .lp-korb tbody th[scope="row"] { grid-row: 2; font-weight: 600; }
  .lp-korb tbody td.lp-korb__zelle-menge {
    grid-row: 3; display: flex; align-items: center; gap: .5rem; margin-top: .35rem;
  }
  .lp-korb tbody td.lp-korb__zelle-menge::before { content: "Menge"; font-size: .8rem; color: var(--lp-ink-leise); }
  .lp-korb tbody td.lp-korb__zelle-weg { grid-column: 3; grid-row: 1 / -1; }
}

/* ---------- Linkfarbe in Korb und Suche ---------- */

/*
 * Ohne eigene Regel greift Divis Hellblau #2ea3f2 - auf Weiß nur 2,8:1,
 * nötig sind 4,5:1. Links im Fließtext zusätzlich unterstrichen, damit sie
 * nicht allein an der Farbe zu erkennen sind.
 */
.lp-korb table a,
.lp-korb__formular a,
.lp-suche__hinweis a { color: var(--lp-akzent); }
.lp-korb__formular a,
.lp-suche__hinweis a { text-decoration: underline; }
.lp-korb table a:hover, .lp-korb table a:focus,
.lp-korb__formular a:hover, .lp-korb__formular a:focus,
.lp-suche__hinweis a:hover, .lp-suche__hinweis a:focus { color: var(--lp-akzent-dunkel); }

/* Brotkrumen auf der Produktseite: ohne eigene Regel Divis Hellblau, 2,74:1 auf Weiß. */
.lp-katalog > nav[aria-label] a { color: var(--lp-akzent); }
.lp-katalog > nav[aria-label] a:hover,
.lp-katalog > nav[aria-label] a:focus { color: var(--lp-akzent-dunkel); text-decoration: underline; }
