/* ============================================================
   COMPONENTS — Buttons, Cards, Tables, Forms, Pills
   ============================================================ */

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.95em 1.6em;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  border-radius: var(--r-2);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-2) var(--ease-out),
              background-color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--accent-hi);
  color: var(--on-accent);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hi);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hi);
}

.btn--bare {
  padding: 0.5em 0;
  background: transparent;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
}
.btn--bare:hover { color: var(--accent-hi); }

.btn--icon {
  padding: 0.7em;
  width: 2.5em;
  height: 2.5em;
  justify-content: center;
}

.btn--lg { padding: 1.15em 2em; font-size: var(--fs-base); }
.btn--sm { padding: 0.6em 1.1em; font-size: var(--fs-xs); }

.btn .arrow {
  display: inline-block;
  transition: transform var(--dur-2) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- PILLS / TAGS ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.35em 0.75em;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.pill--solid {
  background: var(--bg-card);
  color: var(--text-soft);
  border-color: var(--border-hi);
}
.pill--accent {
  border-color: var(--accent);
  color: var(--accent-hi);
  background: var(--forest-glow);
}
.pill--rust {
  border-color: var(--rust);
  color: var(--rust);
}

.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- CARDS ---------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out);
}
.card:hover { border-color: var(--border-hi); }

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  overflow: hidden;
}
.card__media img,
.card__media .placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card__body { padding: var(--s-5); }

/* ============================================================
   404 — Holziger Fehler
   ============================================================ */

.err404 {
  max-width: var(--container);
  margin: var(--s-8) auto var(--s-9);
  padding: 0 var(--gutter);
  text-align: center;
}

.err404__hero {
  position: relative;
  padding: clamp(var(--s-8), 10vw, var(--s-10)) var(--s-5);
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-4);
}

/* Foto-Variante: echtes Holzbestand-Bild als Hero-Hintergrund mit hellem Overlay,
   damit der Text dunkel und gut lesbar bleibt */
.err404__hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--err404-bg);
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.err404__hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(247, 241, 227, 0.78) 0%,
      rgba(247, 241, 227, 0.92) 100%);
  z-index: -1;
}
/* Fallback ohne Foto: dezente Forest-Glow-Aura */
.err404__hero:not(.err404__hero--photo)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, var(--forest-glow), transparent 70%);
  z-index: -1;
}

.err404__num {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-4xl), 18vw, var(--fs-6xl));
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  font-weight: 600;
  color: var(--forest);
  margin: 0 0 var(--s-4);
  text-shadow: 0 2px 24px rgba(247, 241, 227, 0.6);
}

.err404__headline {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 4vw, var(--fs-2xl));
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
  font-weight: 500;
  color: var(--text);
  margin: 0 auto var(--s-4);
  max-width: 32ch;
}

.err404__sub {
  font-size: var(--fs-md);
  color: var(--text-muted);
  font-style: italic;
  margin: 0 auto;
  max-width: 38ch;
}

.err404__divider {
  border: 0;
  height: 1px;
  background: var(--border);
  max-width: 360px;
  margin: var(--s-8) auto var(--s-7);
}

.err404__lead {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: var(--tr-snug);
  color: var(--text-soft);
  margin: 0 0 var(--s-6);
}

.err404__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
  margin-bottom: var(--s-7);
}

.err404__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
  text-align: left;
}

.err404__card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--sh-mid);
  color: var(--text);
}

.err404__card-icon {
  font-size: var(--fs-xl);
  line-height: 1;
}

.err404__card-title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: var(--tr-snug);
  margin: 0;
}

.err404__card-desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin: 0;
}

.err404__search {
  max-width: 480px;
  margin: 0 auto var(--s-6);
}

.err404__search form {
  display: flex;
  gap: var(--s-2);
}

.err404__search input[type="search"] {
  flex: 1;
  padding: 0.85em 1.1em;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--bg-elevated);
  color: var(--text);
}

.err404__search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.err404__home {
  margin-top: var(--s-3);
}

/* Embedded Map (Kontakt-Seite) — position:absolute auf iframe nötig,
   weil WP safecss_filter_attr position aus Inline-Styles strippt. */
.kontakt-map {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  margin: var(--s-5) 0;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: hidden;
}
.kontakt-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Holzart-Card: linker Akzent-Strich */
.card--holzart {
  display: flex;
  flex-direction: column;
  position: relative;
}
.card--holzart::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0.4);
  transform-origin: top;
  transition: transform var(--dur-3) var(--ease-out);
}
.card--holzart:hover::before { transform: scaleY(1); }
.card--holzart:hover { transform: translateY(-2px); }

.card--holzart .holzart-name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  letter-spacing: var(--tr-snug);
}
.card--holzart .holzart-latin {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  margin-top: 2px;
}
.card--holzart .holzart-stock {
  margin-top: var(--s-4);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: var(--s-4);
}
.card--holzart .stock-value {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  color: var(--accent);
  letter-spacing: var(--tr-mono);
}

/* ---------- TOOL CARD ---------- */

.tool-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  transition: border-color var(--dur-2) var(--ease-out),
              background-color var(--dur-2) var(--ease-out);
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--forest-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out);
  pointer-events: none;
}
.tool-card:hover {
  border-color: var(--accent);
}
.tool-card:hover::after { opacity: 1; }

.tool-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-2);
  color: var(--accent);
}
.tool-card__num {
  position: absolute;
  right: var(--s-5); top: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  letter-spacing: var(--tr-label);
}
.tool-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  letter-spacing: var(--tr-snug);
  margin-top: var(--s-2);
}
.tool-card__desc {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  flex: 1;
  margin: 0;
}
.tool-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--accent);
  font-weight: 500;
  font-size: var(--fs-sm);
}
.tool-card:hover .tool-card__cta { color: var(--accent-hi); }
.tool-card .arrow { transition: transform var(--dur-2) var(--ease-out); }
.tool-card:hover .arrow { transform: translateX(4px); }

/* ---------- TABLE ---------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: var(--bg-card);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
table.data thead th {
  position: sticky; top: 0;
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border-hi);
  white-space: nowrap;
}
table.data thead th.num { text-align: right; }
table.data tbody td {
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-soft);
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(79,163,125,0.04); }
table.data tbody td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  letter-spacing: var(--tr-mono);
  color: var(--text);
}
table.data tbody td.holzart {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  color: var(--text);
}
table.data tbody td.id {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  letter-spacing: var(--tr-mono);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}
.status::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}
.status--available::before { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.status--reserved::before  { background: var(--ember); }
.status--sold::before      { background: var(--text-dim); }

/* ---------- FORM ---------- */

.form-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .form-grid--2col { grid-template-columns: 1fr 1fr; }
  .form-grid--3col { grid-template-columns: 1fr 1fr 1fr; }
  .form-grid--4col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.field > label {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.field > .hint {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.85em 1em;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-base);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  transition: border-color var(--dur-2) var(--ease-out),
              background-color var(--dur-2) var(--ease-out);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: 0;
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--forest-glow);
}
.input--mono { font-family: var(--font-mono); letter-spacing: var(--tr-mono); }
.textarea { min-height: 6em; resize: vertical; }

.select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(1em + 4px),
    calc(100% - 13px) calc(1em + 4px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5em;
}

.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--s-3);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.checkbox input { accent-color: var(--accent); margin-top: 0.18em; }

/* Filter pills (toggle buttons) */
.filter-pill {
  padding: 0.5em 1em;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-mono);
  cursor: pointer;
  transition: all var(--dur-2) var(--ease-out);
}
.filter-pill:hover { color: var(--text); border-color: var(--border-hi); }
.filter-pill[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

/* ---------- BADGE / KPI ---------- */

.kpi {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.kpi__label {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--text-dim);
}
.kpi__value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  letter-spacing: var(--tr-tight);
  color: var(--text);
  font-variation-settings: "opsz" 144;
}
.kpi__unit {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-left: 0.25em;
}

/* ---------- LEISTUNG-SPALTEN (Sägewerk + Forst auf Startseite) ---------- */

.leistung-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .leistung-grid { grid-template-columns: 1fr 1fr; }
}

/* 3-Spalter — Sägewerk dominant, Forst und Werkstatt schmaler */
.leistung-grid--three { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .leistung-grid--three { grid-template-columns: 1fr 1fr; }
  .leistung-grid--three > .leistung-col:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .leistung-grid--three { grid-template-columns: 1.6fr 1fr 1fr; }
  .leistung-grid--three > .leistung-col:first-child { grid-column: auto; }
}

.leistung-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  position: relative;
  overflow: hidden;
}
@media (min-width: 1100px) {
  .leistung-col { padding: var(--s-7); }
}
.leistung-col::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.leistung-col__head { display: flex; flex-direction: column; gap: var(--s-3); }
.leistung-col__title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-lg), 2.4vw, var(--fs-2xl));
  letter-spacing: var(--tr-tight);
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
  hyphens: auto;
}
.leistung-col__title em { font-style: italic; color: var(--accent); }
.leistung-col__lead {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  margin: 0;
  max-width: 36ch;
}

.leistung-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  border-top: 1px solid var(--border);
  padding-top: var(--s-5);
}
.leistung-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  align-items: baseline;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  line-height: var(--lh-snug);
  padding-block: 2px;
}
.leistung-list .bullet {
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--accent);
  transform: translateY(-4px);
}

.leistung-col__cta {
  margin-top: auto;
  padding-top: var(--s-4);
}

/* ---------- KUNDEN-GRID ---------- */

.kunden-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .kunden-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px)  { .kunden-grid { grid-template-columns: repeat(3, 1fr); } }

.kunden-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color var(--dur-2) var(--ease-out);
}
.kunden-card:hover { border-color: var(--accent); }
.kunden-card h4 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: var(--tr-snug);
  font-variation-settings: "opsz" 72;
  margin: 0;
}
.kunden-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: var(--lh-snug);
}

/* ---------- CALLOUT ---------- */

.callout {
  padding: var(--s-5);
  border-left: 3px solid var(--accent);
  background: var(--forest-glow);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

/* Search-Results-Page */
.search-results__hero {
  background: var(--c-text, #2a2a2a);
  color: #fff;
  padding: var(--s-8) 0;
}
.search-results__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stihl-orange, #F37A1F);
  margin: 0 0 var(--s-2);
}
.search-results__hero .container-wide,
.search-results__hero h1,
.search-results__hero p { color: #fff; }
.search-results__title {
  margin: 0 0 var(--s-3);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #fff !important;
}
.search-results__count {
  margin: 0 0 var(--s-5);
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.search-results__form {
  display: flex;
  gap: var(--s-2);
  max-width: 600px;
}
.search-results__form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  background: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
}
.search-results__form input[type="search"]:focus {
  outline: 2px solid var(--stihl-orange, #F37A1F);
  outline-offset: 1px;
}
.search-results__form button {
  padding: 12px 20px;
  background: var(--stihl-orange, #F37A1F);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.search-results__form button:hover {
  background: #d8650a;
}

.search-results__hint,
.search-results__empty {
  padding: var(--s-8) 0;
  max-width: 600px;
}
.search-results__empty h2 {
  margin: 0 0 var(--s-3);
  font-size: 22px;
}
.search-results__empty ul {
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
}
.search-results__empty li {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-border, #e0dccf);
  font-size: 14px;
}
.search-results__empty li a {
  font-weight: 700;
  color: var(--stihl-orange, #F37A1F);
}

.search-group {
  margin: var(--s-8) 0;
}
.search-group__title {
  margin: 0 0 var(--s-4);
  font-size: 22px;
  font-weight: 700;
  border-left: 3px solid var(--stihl-orange, #F37A1F);
  padding-left: var(--s-3);
}
.search-group__count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stihl-grey-dark, #6e6e6e);
  margin-left: var(--s-2);
  font-weight: 400;
}
.search-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-3);
}

.search-hit {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--s-3);
  padding: var(--s-3);
  background: #fff;
  border: 1px solid var(--c-border, #e0dccf);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.search-hit:hover {
  border-color: var(--stihl-orange, #F37A1F);
  transform: translateY(-1px);
}
.search-hit__media {
  width: 72px;
  height: 72px;
  background: var(--c-bg-soft, #f3f2f0);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.search-hit__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.search-hit__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.search-hit__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.search-hit__excerpt {
  margin: 0;
  font-size: 13px;
  color: var(--c-text-soft, #555);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-group__ersatzteile {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-2);
}
.search-ersatzteil {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--s-3);
  align-items: baseline;
  padding: var(--s-2) var(--s-3);
  background: var(--c-bg-soft, #f3f2f0);
  border-left: 2px solid var(--stihl-orange, #F37A1F);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.search-ersatzteil:hover {
  background: #ecebe9;
}
.search-ersatzteil__artnr {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--stihl-orange, #F37A1F);
  grid-row: span 2;
  align-self: center;
}
.search-ersatzteil__name {
  font-size: 14px;
  line-height: 1.3;
}
.search-ersatzteil__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-soft, #6e6e6e);
}
