/**
 * @file
 * Automarke — Marken-Katalog Taxonomie-Seiten.
 * Prefix: am-*
 * Reuses: oh-* (orte-hub), fz-* (fahrzeug), sl-* (suchbegriff-relaunch).
 */

/* ===== HERO EXTENSIONS ===== */
.am-hero--hub .oh-hero__title { max-width: 640px; }

.am-hero__logo {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

.am-hero__logo img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}

/* ===== PROCESS STEPS ===== */
.am-steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.am-steps-grid .oh-step-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .am-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .am-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FILTER / SEARCH ===== */
.am-filter-wrap {
  max-width: 480px;
  margin: 0 0 1.5rem;
}

.am-filter-field-wrap {
  position: relative;
}

.am-filter-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.45);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}

.am-filter-input {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #fff;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.am-filter-input::placeholder { color: rgba(255,255,255,.35); }

.am-filter-input:focus {
  border-color: var(--aa-red, #e60b00);
  box-shadow: 0 0 0 3px rgba(230,11,0,.15);
  background: rgba(255,255,255,.12);
}

/* Light variant (used on white section backgrounds) */
.am-filter-input--light {
  background: #fff;
  border: 2px solid var(--aa-border, #e5e7eb);
  color: var(--aa-body, #2d3748);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.am-filter-input--light::placeholder { color: #999; }

.am-filter-input--light:focus {
  border-color: var(--aa-red, #e60b00);
  box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 0 0 3px rgba(230,11,0,.08);
}

.am-filter-field-wrap:has(.am-filter-input--light) .am-filter-icon {
  color: #999;
}

.am-filter-noresult {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  padding: 2rem 0;
}

.am-filter-help {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,.78);
}

.am-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.am-quick-links__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
}

.am-quick-links__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.am-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.am-quick-link:hover,
.am-quick-link:focus-visible {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

/* ===== BRAND CARD (hub page) ===== */
.am-brand-card {
  scroll-margin-top: 7rem;
}

.am-brand-card.is-filter-match,
.am-brand-card:focus-visible {
  border-color: var(--aa-red, #e60b00);
  box-shadow: 0 0 0 3px rgba(230,11,0,.12), 0 10px 24px rgba(24,49,83,.10);
  outline: none;
}

.am-brand-card__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

.am-brand-card__hint {
  color: #6b7280;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .am-quick-links {
    align-items: flex-start;
  }

  .am-quick-links__label,
  .am-quick-links__items {
    width: 100%;
  }
}

/* ===== MODEL CARD (parent + child term pages) ===== */
.am-model-card {
  background: #fff;
  border: 1px solid var(--aa-border, #e5e7eb);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  display: flex;
  flex-direction: column;
}

.am-model-card:hover {
  border-color: var(--aa-red, #e60b00);
  box-shadow: 0 4px 16px rgba(230,11,0,.08);
}

.am-model-card__top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.am-model-card__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.am-model-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: var(--aa-red-soft, rgba(230,11,0,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--aa-red, #e60b00);
}

.am-model-card__body { min-width: 0; }

.am-model-card__brand {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--aa-red, #e60b00);
  margin-bottom: 0.1rem;
}

.am-model-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--aa-dark, #183153);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-model-card__count {
  font-size: 0.78rem;
  color: #888;
  margin-top: 0.15rem;
}

.am-model-card__actions {
  display: flex;
  border-top: 1px solid var(--aa-border, #e5e7eb);
}

.am-model-card__cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.am-model-card__cta--primary {
  color: var(--aa-dark, #183153);
  background: transparent;
}

.am-model-card__cta--primary:hover {
  background: var(--aa-light, #f8f9fa);
  color: var(--aa-red, #e60b00);
}

.am-model-card__cta--secondary {
  color: var(--aa-red, #e60b00);
  background: var(--aa-red-soft, rgba(230,11,0,0.06));
  border-left: 1px solid var(--aa-border, #e5e7eb);
}

.am-model-card__cta--secondary:hover {
  background: var(--aa-red, #e60b00);
  color: #fff;
}

/* ===== FAHRZEUG CARD ACTIONS (child level, within fz-related-card) ===== */
.am-fz-card__actions {
  display: flex;
  border-top: 1px solid var(--aa-border, #e5e7eb);
}

.am-fz-card__cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.am-fz-card__cta--primary {
  color: #fff;
  background: var(--aa-red, #e60b00);
}

.am-fz-card__cta--primary:hover {
  background: #c50a00;
  color: #fff;
}

.am-fz-card__cta--secondary {
  color: var(--aa-dark, #183153);
  background: transparent;
  border-left: 1px solid var(--aa-border, #e5e7eb);
}

.am-fz-card__cta--secondary:hover {
  color: var(--aa-red, #e60b00);
  background: var(--aa-light, #f8f9fa);
}

/* Override fz-rc-cta (single CTA) when we use am-fz-card__actions instead */
.fz-related-card:has(.am-fz-card__actions) .fz-rc-cta { display: none; }

/* ===== EMPTY STATE ===== */
.am-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #888;
}

.am-empty i { font-size: 2rem; color: #ccc; margin-bottom: 0.75rem; display: block; }
.am-empty p { font-size: 0.95rem; max-width: 420px; margin: 0 auto 1rem; line-height: 1.6; }

.am-empty--prominent {
  background: var(--aa-light, #f8f9fa);
  border: 2px dashed var(--aa-border, #e5e7eb);
  border-radius: 1rem;
  padding: 3rem 2rem;
}

.am-empty--prominent h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--aa-dark, #183153);
  margin-bottom: 0.75rem;
}

.am-empty--prominent p {
  color: #666;
  max-width: 520px;
}

.am-empty__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(230,11,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: var(--aa-red, #e60b00);
}

.am-empty__ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.am-empty__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1rem;
}

.am-empty__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  color: var(--aa-dark, #183153);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.am-empty__meta-item i {
  color: var(--aa-red, #e60b00);
  font-size: 0.72rem;
}

.am-empty__cta-wrap {
  margin-top: 1.25rem;
}

.am-empty__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  background: var(--aa-red, #e60b00);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(230,11,0,.14);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.am-empty__cta-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
}

.am-empty__cta-btn:hover {
  background: #c50a00;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(230,11,0,.16);
}

/* ===== FAQ EXTENSIONS ===== */
.am-faq-section {
  background: linear-gradient(180deg, #fff 0%, #fcfcfd 100%);
}

.am-faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: start;
}

.am-faq-intro {
  position: sticky;
  top: 96px;
}

.am-faq-intro .oh-section__title {
  margin-bottom: 0.75rem;
  max-width: 14ch;
}

.am-faq-intro .oh-section__sub {
  margin: 0;
  max-width: 34rem;
}

.am-faq-list {
  width: 100%;
  max-width: 980px;
  margin: 0;
}

.am-faq-list .fz-faq-item {
  margin-bottom: 0.85rem;
  border-radius: 0.9rem;
  box-shadow: 0 4px 16px rgba(24,49,83,.04);
}

.am-faq-list .fz-faq-question {
  padding: 1.1rem 1.25rem;
  gap: 1rem;
}

.am-faq-list .fz-faq-question span {
  display: block;
  line-height: 1.45;
}

.am-faq-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--aa-red, #e60b00);
  text-decoration: none;
  margin-top: 0.75rem;
  transition: gap 150ms ease;
}

.am-faq-link:hover { gap: 0.5rem; }

@media (max-width: 991.98px) {
  .am-faq-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .am-faq-intro {
    position: static;
  }

  .am-faq-intro .oh-section__title {
    max-width: none;
  }
}

/* ===== SEO CONTENT ===== */
.am-seo-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--aa-body, #2d3748);
}

.am-seo-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--aa-dark, #183153);
  margin: 2rem 0 0.75rem;
}

.am-seo-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--aa-dark, #183153);
  margin: 1.5rem 0 0.5rem;
}

.am-seo-content p { margin-bottom: 1rem; }

.am-seo-content ul {
  padding-left: 0;
  list-style: none;
}

.am-seo-content ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.am-seo-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aa-red, #e60b00);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767.98px) {
  .am-hero__logo {
    width: 56px;
    height: 56px;
  }

  .am-hero__logo img {
    max-width: 40px;
    max-height: 40px;
  }

  .am-model-card__top { padding: 0.75rem; gap: 0.65rem; }
  .am-model-card__logo { width: 36px; height: 36px; }
  .am-model-card__icon { width: 36px; height: 36px; font-size: 1rem; }
  .am-model-card__name { font-size: 0.85rem; }
  .am-model-card__cta { font-size: 0.72rem; padding: 0.5rem 0.25rem; }

  .am-fz-card__cta { font-size: 0.68rem; padding: 0.45rem 0.2rem; }

  .am-brand-card__logo { width: 40px; height: 40px; }

  .am-empty--prominent { padding: 2rem 1rem; }
  .am-empty--prominent h2 { font-size: 1.15rem; }
  .am-empty__ctas { flex-direction: column; align-items: center; }
}
