/* STIHL-Ersatzteile — Styles fuer Archive, WG-Index, Detail-Page + Anfrage-Modal */

.stihl-ersatzteil-detail,
.stihl-ersatzteile-wg,
.stihl-ersatzteile-archive {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1a1a1a;
}

.breadcrumb { font-size: .9rem; color: #555; margin-bottom: 1.5rem; }
.breadcrumb a { color: #555; text-decoration: none; }
.breadcrumb a:hover { color: #F37A1F; text-decoration: underline; }

.ste-disclaimer-inline,
.ste-disclaimer {
  background: #fff3e0;
  border-left: 3px solid #F37A1F;
  padding: .75rem 1rem;
  margin: 1.5rem 0;
  font-size: .9rem;
  color: #4a3a1a;
}

.ste-b2b-hinweis {
  background: #fff8e1;
  border-left: 4px solid #f7a800;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  border-radius: 4px;
}
.ste-b2b-hinweis h3 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  color: #5a4500;
}
.ste-b2b-hinweis p {
  margin: .25rem 0;
  font-size: .95rem;
  line-height: 1.5;
  color: #4a3a1a;
}
.ste-b2b-hinweis a {
  color: #5a4500;
  text-decoration: underline;
}

/* === Detail-Page === */
.ste-hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.ste-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  color: #F37A1F;
  font-weight: 600;
  margin: 0 0 1rem;
}
.ste-hero-artnr {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
  font-feature-settings: 'tnum';
}
.ste-hero-bez { font-size: 1.4rem; color: #555; margin: 0; }

.ste-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ste-box {
  padding: 1.5rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
}
.ste-box-label {
  display: block;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .08em;
  color: #888;
  margin-bottom: .5rem;
}
.ste-box-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.ste-box-sub { display: block; font-size: .85rem; color: #666; }
.ste-box-bestand.is-stock .ste-box-value { color: #2e7d32; }
.ste-box-bestand.is-preorder .ste-box-value { color: #6a4500; }
.ste-box-bestand.is-gone .ste-box-value { color: #b91c1c; }

.ste-manual-note {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-left: 4px solid #F37A1F;
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.ste-manual-note p:last-child { margin-bottom: 0; }
.ste-manual-note img { max-width: 100%; height: auto; border-radius: 4px; margin: 0.5rem 0; }

.ste-cta { text-align: center; margin: 2rem 0; }
.ste-cta-btn {
  background: #F37A1F;
  color: #fff;
  border: 0;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s;
}
.ste-cta-btn:hover { background: #d96a14; }

.ste-boilerplate { margin: 2rem 0; line-height: 1.6; color: #333; }
.ste-related { margin-top: 3rem; border-top: 1px solid #e8e8e8; padding-top: 2rem; }
.ste-related h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.ste-related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .5rem; }
.ste-related a {
  display: grid; grid-template-columns: 1fr auto; grid-gap: .5rem;
  padding: .75rem; border: 1px solid #e8e8e8; border-radius: 4px;
  color: inherit; text-decoration: none; transition: border-color .2s;
}
.ste-related a:hover { border-color: #F37A1F; }
.ste-related-artnr { font-family: ui-monospace, monospace; font-size: .85rem; color: #666; grid-column: 1 / -1; }
.ste-related-bez { font-size: .95rem; }
.ste-related-preis { font-weight: 600; }

/* === Archive + WG-Index === */
.ste-archive-grid { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; margin-top: 2rem; }
@media (max-width: 800px) { .ste-archive-grid { grid-template-columns: 1fr; } }

.ste-sidebar h2 { font-size: 1rem; margin: 1rem 0 .5rem; }
.ste-sidebar ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.ste-sidebar li { padding: .25rem 0; }
.ste-sidebar label { font-size: .9rem; cursor: pointer; display: flex; align-items: center; gap: .5rem; }
.ste-sidebar .cnt { color: #888; font-size: .8rem; margin-left: auto; }

#ste-search {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: .5rem;
}
.ste-result-count { color: #666; font-size: .9rem; margin: 0 0 1rem; }

.ste-table { width: 100%; border-collapse: collapse; }
.ste-table th, .ste-table td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid #eee; font-size: .9rem; }
.ste-table th { background: #fafafa; font-weight: 600; }
.ste-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ste-table a { color: #1a1a1a; text-decoration: none; font-family: ui-monospace, monospace; }
.ste-table a:hover { color: #F37A1F; }

/* === Anfrage-Modal === */
.ste-modal[hidden] { display: none; }
.ste-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ste-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.ste-modal-dialog { position: relative; background: #fff; max-width: 540px; width: 100%; max-height: 90vh; overflow: auto; padding: 2rem; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.ste-modal-close { position: absolute; top: .75rem; right: 1rem; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: #888; line-height: 1; }
.ste-modal h2 { margin: 0 0 1rem; }
.ste-modal label { display: block; margin-bottom: .75rem; font-size: .9rem; }
.ste-modal label input, .ste-modal label textarea { width: 100%; padding: .5rem; border: 1px solid #d0d0d0; border-radius: 4px; font-size: 1rem; margin-top: .25rem; box-sizing: border-box; }
.ste-modal button[type=submit] { background: #F37A1F; color: #fff; border: 0; padding: .75rem 2rem; font-size: 1rem; border-radius: 4px; cursor: pointer; margin-top: 1rem; }
.ste-modal-success { text-align: center; padding: 2rem; color: #2e7d32; }
