/* Zaun-Lexikon – eigenes Stylesheet, greift auf die Design-Tokens der Seite zu. */
:root {
  --lx-primaer: #526925;
  --lx-salbei: #7B8862;
  --lx-dunkel: #354318;
  --lx-text: #312C2C;
  --lx-linie: #E1E1E1;
  --lx-flaeche: #F6F7F3;
}

.lx { font-family: "Maven Pro", sans-serif; color: var(--lx-text); }
.lx-innen { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Kopfbereich */
.lx-kopf { background: var(--lx-primaer); color: #fff; padding: 64px 0 56px; }
.lx-kopf h1 { font-family: "Playfair Display", serif; color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.15; margin: 0 0 14px; }
.lx-kopf p { font-size: 1.08rem; line-height: 1.65; margin: 0; max-width: 70ch; color: #EFF1EA; }
.lx-pfad { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 18px; color: #C9D2B6; }
.lx-pfad a { color: #C9D2B6; text-decoration: none; }
.lx-pfad a:hover { color: #fff; text-decoration: underline; }

/* Fließtext */
.lx-inhalt { padding: 56px 0 72px; }
.lx-text { max-width: 74ch; font-size: 1.02rem; line-height: 1.75; }
.lx-text h2 { font-family: "Playfair Display", serif; color: var(--lx-primaer); font-size: 1.7rem; line-height: 1.25; margin: 2.4em 0 .7em; }
.lx-text h3 { font-family: "Maven Pro", sans-serif; color: var(--lx-dunkel); font-size: 1.18rem; font-weight: 600; margin: 1.9em 0 .5em; }
.lx-text p { margin: 0 0 1.1em; }
.lx-text ul, .lx-text ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.lx-text li { margin-bottom: .45em; }
.lx-text strong { color: var(--lx-dunkel); }
.lx-text a { color: var(--lx-primaer); text-decoration: underline; text-underline-offset: 2px; }
.lx-text blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--lx-flaeche); border-left: 4px solid var(--lx-salbei); font-size: .97rem; }
.lx-text blockquote p:last-child { margin-bottom: 0; }

/* Tabellen */
.lx-tabelle-huelle { overflow-x: auto; margin: 1.6em 0; }
.lx-text table, table.lx-tabelle { border-collapse: collapse; width: 100%; font-size: .95rem; }
.lx-text table th, table.lx-tabelle th { background: var(--lx-flaeche); color: var(--lx-dunkel); text-align: left; font-weight: 600; }
.lx-text table th, .lx-text table td, table.lx-tabelle th, table.lx-tabelle td { border: 1px solid var(--lx-linie); padding: 9px 12px; vertical-align: top; }

/* Kennwerte-Kasten */
.lx-kennwerte { background: var(--lx-flaeche); border: 1px solid var(--lx-linie); padding: 22px 24px; margin: 0 0 36px; }
.lx-kennwerte h2 { font-family: "Maven Pro", sans-serif; font-size: 1rem; letter-spacing: .07em; text-transform: uppercase; color: var(--lx-salbei); margin: 0 0 14px; }
.lx-kennwerte dl { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; gap: 8px 20px; margin: 0; font-size: .95rem; }
.lx-kennwerte dt { color: var(--lx-salbei); }
.lx-kennwerte dd { margin: 0; color: var(--lx-text); }

/* Karten */
.lx-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 20px; margin: 34px 0 0; }
.lx-karte { display: flex; flex-direction: column; border: 1px solid var(--lx-linie); background: #fff; padding: 22px 24px; text-decoration: none; transition: border-color .2s, transform .2s; }
.lx-karte:hover { border-color: var(--lx-salbei); transform: translateY(-2px); }
.lx-karte h3 { font-family: "Playfair Display", serif; color: var(--lx-primaer); font-size: 1.25rem; margin: 0 0 8px; }
.lx-karte p { font-size: .93rem; line-height: 1.6; margin: 0; color: #55514F; }
.lx-karte span.lx-marke { margin-top: 14px; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--lx-salbei); }

/* Gruppenblöcke auf der Übersicht */
.lx-gruppe { margin: 0 0 56px; }
.lx-gruppe > h2 { font-family: "Playfair Display", serif; color: var(--lx-primaer); font-size: 1.9rem; margin: 0 0 6px; }
.lx-gruppe > p { max-width: 74ch; line-height: 1.65; margin: 0; color: #55514F; }

/* Suche und Filter */
.lx-werkzeuge { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 34px 0 6px; }
.lx-suche { flex: 1 1 260px; min-width: 220px; padding: 11px 14px; border: 1px solid var(--lx-linie); font: inherit; font-size: .97rem; background: #fff; }
.lx-suche:focus { outline: 2px solid var(--lx-salbei); outline-offset: -1px; }
.lx-filter { padding: 11px 14px; border: 1px solid var(--lx-linie); font: inherit; font-size: .97rem; background: #fff; }
.lx-treffer { font-size: .9rem; color: var(--lx-salbei); margin: 10px 0 0; }
.lx-liste { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--lx-linie); }
.lx-liste li { border-bottom: 1px solid var(--lx-linie); }
.lx-liste a { display: block; padding: 15px 4px; text-decoration: none; color: var(--lx-text); }
.lx-liste a:hover { background: var(--lx-flaeche); }
.lx-liste strong { display: block; font-family: "Playfair Display", serif; font-size: 1.1rem; color: var(--lx-primaer); margin-bottom: 3px; }
.lx-liste em { font-style: normal; font-size: .92rem; color: #55514F; }
.lx-liste .lx-gruppenmarke { float: right; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-salbei); margin-left: 14px; }

/* Vergleichstabelle */
.lx-vergleich th { cursor: pointer; user-select: none; white-space: nowrap; }
.lx-vergleich th[aria-sort="ascending"]::after { content: " ▲"; color: var(--lx-salbei); }
.lx-vergleich th[aria-sort="descending"]::after { content: " ▼"; color: var(--lx-salbei); }
.lx-vergleich td a { color: var(--lx-primaer); text-decoration: none; font-weight: 500; }
.lx-vergleich td a:hover { text-decoration: underline; }
.lx-balken { display: inline-block; width: 62px; height: 7px; background: var(--lx-linie); vertical-align: middle; }
.lx-balken i { display: block; height: 100%; background: var(--lx-salbei); }

/* Querverweise und Abschluss */
.lx-weiter { margin: 56px 0 0; padding-top: 30px; border-top: 1px solid var(--lx-linie); }
.lx-weiter h2 { font-family: "Playfair Display", serif; color: var(--lx-primaer); font-size: 1.45rem; margin: 0 0 4px; }
.lx-hinweis { margin: 44px 0 0; padding: 20px 24px; background: var(--lx-flaeche); border-left: 4px solid var(--lx-salbei); font-size: .92rem; line-height: 1.6; color: #55514F; }
.lx-cta { margin: 48px 0 0; padding: 30px 32px; background: var(--lx-primaer); color: #fff; }
.lx-cta h2 { font-family: "Playfair Display", serif; color: #fff; font-size: 1.5rem; margin: 0 0 8px; }
.lx-cta p { margin: 0 0 18px; line-height: 1.65; color: #EFF1EA; max-width: 62ch; }
.lx-cta a { display: inline-block; background: #fff; color: var(--lx-primaer); padding: 13px 26px; text-decoration: none; font-weight: 600; letter-spacing: .03em; }
.lx-cta a:hover { background: #EFF1EA; }

@media (max-width: 640px) {
  .lx-kopf { padding: 44px 0 38px; }
  .lx-kennwerte dl { grid-template-columns: 1fr; gap: 2px 0; }
  .lx-kennwerte dt { margin-top: 10px; }
}

/* ───────────────────────── Einstieg: Suche, Chips, A–Z ──────────────────────
   Achtung: Die Bestandsseite stylt `button` und `input` global (Kit-CSS).
   Deshalb sind die folgenden Regeln über `.lx` gescoped und setzen die
   umkämpften Eigenschaften bewusst mit !important. */

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

.lx .lx-einstieg { background: var(--lx-flaeche); border: 1px solid var(--lx-linie); padding: 26px 28px 24px; margin: 0 0 44px; }
.lx .lx-einstieg > * + * { margin-top: 18px; }

/* Suchfeld mit Lupe */
.lx .lx-suchhuelle { position: relative; }
.lx .lx-suchhuelle > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; stroke: var(--lx-salbei); fill: none; pointer-events: none; z-index: 1; }
.lx input.lx-suchfeld {
  width: 100% !important; box-sizing: border-box !important;
  padding: 15px 48px 15px 52px !important;
  border: 1px solid #CFD3C6 !important; border-radius: 2px !important;
  background: #fff !important; color: var(--lx-text) !important;
  font-family: "Maven Pro", sans-serif !important; font-size: 1.02rem !important; line-height: 1.4 !important;
  box-shadow: none !important; height: auto !important;
}
.lx input.lx-suchfeld::placeholder { color: #969C87 !important; opacity: 1; }
.lx input.lx-suchfeld:focus { outline: none !important; border-color: var(--lx-primaer) !important; box-shadow: 0 0 0 3px rgba(82,105,37,.15) !important; }
.lx input.lx-suchfeld::-webkit-search-cancel-button { display: none; }
.lx button.lx-leeren {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 30px !important; height: 30px !important; padding: 0 !important;
  border: 0 !important; border-radius: 50% !important;
  background: #E2E6D9 !important; color: #55514F !important;
  font-size: .95rem !important; line-height: 1 !important; cursor: pointer; display: none;
}
.lx button.lx-leeren:hover { background: var(--lx-salbei) !important; color: #fff !important; }
.lx button.lx-leeren.an { display: flex !important; align-items: center; justify-content: center; }

/* Zeilen mit Vorsatz-Label */
.lx .lx-zeile { display: grid; grid-template-columns: 126px minmax(0, 1fr); align-items: start; gap: 14px; }
.lx .lx-zeile > .lx-label { white-space: nowrap; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lx-salbei); padding-top: 8px; }
.lx .lx-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Chips */
.lx .lx-chip {
  display: inline-flex !important; align-items: baseline; gap: 6px;
  padding: 7px 15px !important; margin: 0 !important;
  border: 1px solid #CFD3C6 !important; border-radius: 999px !important;
  background: #fff !important; color: var(--lx-text) !important;
  font-family: "Maven Pro", sans-serif !important; font-size: .89rem !important;
  font-weight: 400 !important; line-height: 1.35 !important; letter-spacing: normal !important;
  text-transform: none !important; text-decoration: none !important;
  box-shadow: none !important; cursor: pointer; width: auto !important; height: auto !important;
  transition: background .15s, border-color .15s, color .15s;
}
.lx .lx-chip > b { font-weight: 600; font-size: .74rem; color: var(--lx-salbei); }
.lx .lx-chip:hover { border-color: var(--lx-salbei) !important; background: #fff !important; color: var(--lx-text) !important; }
.lx .lx-chip[aria-pressed="true"] { background: var(--lx-primaer) !important; border-color: var(--lx-primaer) !important; color: #fff !important; }
.lx .lx-chip[aria-pressed="true"] > b { color: #C9D2B6; }
.lx a.lx-chip--link:hover { background: var(--lx-primaer) !important; border-color: var(--lx-primaer) !important; color: #fff !important; }

/* A–Z-Register */
.lx .lx-az { display: flex; flex-wrap: wrap; gap: 2px; }
.lx .lx-az > button {
  width: 31px !important; height: 31px !important; padding: 0 !important; margin: 0 !important;
  border: 1px solid transparent !important; border-radius: 2px !important;
  background: transparent !important; color: var(--lx-text) !important;
  font-family: "Maven Pro", sans-serif !important; font-size: .9rem !important; font-weight: 500 !important;
  line-height: 1 !important; letter-spacing: normal !important; text-transform: none !important;
  box-shadow: none !important; cursor: pointer;
}
.lx .lx-az > button:hover:not(:disabled) { background: #E2E6D9 !important; }
.lx .lx-az > button[aria-pressed="true"] { background: var(--lx-primaer) !important; border-color: var(--lx-primaer) !important; color: #fff !important; }
.lx .lx-az > button:disabled { color: #C5C9BB !important; cursor: default; }

/* Trefferzeile */
.lx .lx-statuszeile[hidden] { display: none !important; }
.lx .lx-statuszeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 2px; }
.lx .lx-statuszeile .lx-treffer { margin: 0; font-size: .98rem; color: var(--lx-text); }
.lx button.lx-zuruecksetzen {
  border: 0 !important; background: none !important; padding: 0 !important; margin: 0 !important;
  color: var(--lx-primaer) !important; font-family: "Maven Pro", sans-serif !important;
  font-size: .9rem !important; font-weight: 500 !important; text-transform: none !important;
  letter-spacing: normal !important; text-decoration: underline !important;
  box-shadow: none !important; width: auto !important; height: auto !important; cursor: pointer;
}

/* Gruppenkarten */
.lx .lx-gruppe > h2 a { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lx .lx-anzahl { font-family: "Maven Pro", sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--lx-salbei); }
.lx a.lx-mehr { display: inline-block; margin-top: 18px; color: var(--lx-primaer); font-weight: 600; text-decoration: none; }
.lx a.lx-mehr:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .lx .lx-einstieg { padding: 18px 0 18px 16px; }
  .lx .lx-zeile { grid-template-columns: 1fr; gap: 4px; }
  .lx .lx-zeile > .lx-label { padding-top: 0; }
  .lx input.lx-suchfeld { font-size: .96rem !important; padding: 14px 44px 14px 46px !important; }
  /* Suchfeld und A–Z brauchen den rechten Rand, die Chip-Zeilen scrollen darüber hinaus */
  .lx .lx-suchhuelle, .lx .lx-zeile:last-child { padding-right: 16px; }
  /* Chips einzeilig und horizontal scrollbar – spart auf dem Handy rund 400 px Höhe */
  .lx .lx-chips {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding: 2px 16px 4px 0; margin-bottom: -2px;
  }
  .lx .lx-chips::-webkit-scrollbar { display: none; }
  .lx .lx-chip { flex: 0 0 auto; }
  .lx .lx-az { gap: 3px; }
  .lx .lx-az > button { width: 34px !important; height: 34px !important; }
}
