/**
 * @file
 * Orte Hub — taxonomy term pages für die "orte"-Vokabular.
 * Design passt zu den Suchbegriff-Relaunch-Seiten (--aa-* Variablen, gleiche Card-Styles).
 * Drei Ebenen: root (Bundesländer), bundesland (Orte), stadt (Services).
 */

/* ===== HERO ===== */
.oh-hero {
  background: var(--aa-dark);
  position: relative;
  padding: 4rem 0 3.5rem;
  overflow-x: clip;
  overflow-y: visible;
}

/* Wrapper für Pseudo-Elemente mit overflow:hidden, damit das Suchfeld-Dropdown nicht abgeschnitten wird */
.oh-hero::before,
.oh-hero::after {
  pointer-events: none;
}

.oh-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,11,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.oh-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(230,11,0,0.35), transparent);
}

.oh-hero .container { position: relative; z-index: 1; }

/* Breadcrumb (inside hero) */
.oh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}

.oh-breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .15s;
}

.oh-breadcrumb a:hover { color: #fff; }

.oh-breadcrumb__sep { font-size: 0.68rem; opacity: .4; }
.oh-breadcrumb__current { color: rgba(255,255,255,.85); font-weight: 600; }

/* Badge */
.oh-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230,11,0,0.15);
  color: #ff6b63;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

/* Title */
.oh-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

/* Subtitle */
.oh-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.68);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 1.75rem;
}

/* CTA buttons in hero */
.oh-hero__ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Trust items row (inside hero, below CTAs) */
.oh-hero__trust {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.oh-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.48);
  font-size: 0.83rem;
  font-weight: 500;
}

.oh-hero__trust-item i { color: var(--aa-whatsapp, #25d366); font-size: 0.95rem; }

@media (max-width: 768px) {
  .oh-hero { padding: 2.75rem 0 2.25rem; }
  .oh-hero__title { font-size: 1.75rem; }
  .oh-hero__sub { font-size: 0.95rem; }
  .oh-hero__trust { gap: 1rem; }
}

/* ===== STADTSUCHE ===== */
.oh-hero--with-search { padding-bottom: 3rem; }

.oh-search-wrap {
  max-width: 620px;
  margin: 0 0 2rem;
  text-align: left;
}

.oh-search-field-wrap {
  position: relative;
  z-index: 100;
}

.oh-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--aa-muted);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}

.oh-search-input {
  width: 100%;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 0.6rem;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--aa-body);
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.oh-search-input:focus {
  border-color: var(--aa-red);
  box-shadow: 0 4px 24px rgba(0,0,0,.25), 0 0 0 3px rgba(230,11,0,.12);
}

.oh-search-hint {
  color: rgba(255,255,255,.4);
  font-size: 0.78rem;
  margin: 0.6rem 0 0;
}

/* Search results dropdown */
.oh-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--aa-border);
  border-radius: 0.6rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
  text-align: left;
}

.oh-search-results li { margin: 0; }

.os-result-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--aa-body);
  transition: background 150ms ease;
}

.os-result-link:hover,
.os-result-link:focus {
  background: var(--aa-light);
  color: var(--aa-body);
  text-decoration: none;
  outline: none;
}

.os-result-name {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--aa-dark);
}

.os-result-name mark {
  background: rgba(230,11,0,.12);
  color: var(--aa-red);
  font-weight: 700;
  border-radius: 2px;
}

.os-result-bl {
  font-size: 0.78rem;
  color: var(--aa-muted);
  margin-left: 0.5rem;
  white-space: nowrap;
}

.os-noresult,
.os-more {
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: var(--aa-muted);
}

/* ===== FILTER (Bundesland-Seite) ===== */
.oh-filter-wrap {
  margin-bottom: 1.5rem;
  max-width: 380px;
}

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

.oh-filter-noresult {
  font-size: 0.85rem;
  color: var(--aa-muted);
  margin-top: 0.5rem;
}

/* ===== STATS / PROOF BAR ===== */
.oh-proof-bar {
  background: #fff;
  border-bottom: 1px solid var(--aa-border);
  padding: 1.25rem 0;
}

.oh-proof-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.oh-stat {
  text-align: center;
  padding: 0.4rem 2rem;
  border-right: 1px solid var(--aa-border);
}

.oh-stat:last-child { border-right: none; }

.oh-stat__num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--aa-dark);
  letter-spacing: -0.03em;
  line-height: 1;
}

.oh-stat__label {
  font-size: 0.79rem;
  color: var(--aa-muted);
  margin-top: 3px;
  font-weight: 500;
}

@media (max-width: 576px) {
  .oh-stat { padding: 0.4rem 1rem; }
  .oh-stat__num { font-size: 1.3rem; }
}

/* ===== SECTION WRAPPER ===== */
.oh-section {
  padding: 4rem 0;
}

.oh-section--light { background: var(--aa-light); }

.oh-section__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--aa-red);
  margin-bottom: 0.4rem;
}

.oh-section__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--aa-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.oh-section__sub {
  font-size: 1rem;
  color: var(--aa-muted);
  line-height: 1.6;
  margin: 0;
}

.oh-section__header { margin-bottom: 2.25rem; }

/* ===== BUNDESLAND CARDS (root level) ===== */
.oh-grid--bundesland {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.oh-bl-card {
  background: #fff;
  border: 1px solid var(--aa-border);
  border-radius: 0.75rem;
  padding: 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  text-decoration: none;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
  color: var(--aa-body);
}

.oh-bl-card:hover {
  border-color: var(--aa-red);
  box-shadow: 0 6px 24px rgba(230,11,0,0.08);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--aa-body);
}

.oh-bl-card__wappen {
  width: 48px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.oh-bl-card__wappen-placeholder {
  width: 48px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--aa-muted);
  margin-bottom: 0.5rem;
}

.oh-bl-card__name {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--aa-dark);
}

.oh-bl-card__count {
  font-size: 0.79rem;
  color: var(--aa-muted);
}

.oh-bl-card__cta {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--aa-red);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== STADT / ORT CARDS (bundesland level) ===== */
.oh-grid--stadt {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 0.85rem;
}

.oh-city-card {
  background: #fff;
  border: 1px solid var(--aa-border);
  border-radius: 0.75rem;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
  color: var(--aa-body);
}

.oh-city-card:hover {
  border-color: var(--aa-red);
  box-shadow: 0 6px 24px rgba(230,11,0,0.08);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--aa-body);
}

.oh-city-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 0.65rem;
  background: var(--aa-red-soft);
  color: var(--aa-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.oh-city-card__name {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--aa-dark);
}

.oh-city-card__count {
  font-size: 0.77rem;
  color: var(--aa-muted);
}

.oh-city-card__cta {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--aa-red);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

/* ===== SERVICE CARDS (stadt level) — vertical, vehicle-type-card style ===== */
.oh-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.oh-service-card {
  background: #fff;
  border: 1px solid var(--aa-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
  color: var(--aa-body);
  height: 100%;
}

.oh-service-card:hover {
  border-color: var(--aa-red);
  box-shadow: 0 4px 20px rgba(230,11,0,0.08);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--aa-body);
}

.oh-service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: var(--aa-red-soft);
  color: var(--aa-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.oh-service-card__category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aa-red);
  margin-bottom: 0.3rem;
}

.oh-service-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--aa-dark);
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.oh-service-card__desc {
  font-size: 0.85rem;
  color: var(--aa-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.oh-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 1rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--aa-red);
  transition: gap 150ms ease;
}

.oh-service-card:hover .oh-service-card__link { gap: 8px; }

/* Slug-specific icon colors */
.oh-service-card--lkw-verkaufen           .oh-service-card__icon { background: #eff6ff; color: #2563eb; }
.oh-service-card--gelaendewagen-verkaufen .oh-service-card__icon { background: #f0fdf4; color: #16a34a; }
.oh-service-card--unfallwagen-verkaufen   .oh-service-card__icon { background: #fff7ed; color: #d97706; }
.oh-service-card--auto-fuer-export-verkaufen .oh-service-card__icon { background: #fdf4ff; color: #9333ea; }
.oh-service-card--auto-schaetzen-lassen  .oh-service-card__icon { background: #f0fdfa; color: #0d9488; }
.oh-service-card--gabelstapler-ankauf    .oh-service-card__icon { background: #fefce8; color: #ca8a04; }

/* ===== PROCESS STEPS (stadt level) ===== */
.oh-process { padding: 4rem 0; }

.oh-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: start;
}

.oh-step-card {
  background: #fff;
  border: 1px solid var(--aa-border);
  border-radius: 0.75rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.oh-step-card:hover {
  border-color: var(--aa-red);
  box-shadow: 0 8px 32px rgba(230,11,0,0.08);
  transform: translateY(-4px);
}

.oh-step-card__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--aa-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 1.1rem;
  box-shadow: 0 4px 14px rgba(230,11,0,0.25);
}

.oh-step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--aa-dark);
  margin-bottom: 0.5rem;
}

.oh-step-card p {
  font-size: 0.86rem;
  color: var(--aa-muted);
  margin: 0;
  line-height: 1.55;
}

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

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

/* ===== EMPTY STATE ===== */
.oh-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--aa-muted);
}

.oh-empty .bi {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  color: var(--aa-border);
}

/* ===== BOTTOM CTA ===== */
.oh-cta {
  background: var(--aa-dark);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.oh-cta::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(230,11,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.oh-cta .container { position: relative; z-index: 1; }

.oh-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.oh-cta__text h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
}

.oh-cta__text p {
  color: rgba(255,255,255,.65);
  font-size: 0.97rem;
  margin: 0;
}

.oh-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== BUTTONS ===== */
.oh-btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--aa-red);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(230,11,0,0.3);
  transition: background 200ms ease, transform 150ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}

.oh-btn-phone:hover {
  background: var(--aa-red-hover, #c70a00);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,11,0,0.4);
}

.oh-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--aa-whatsapp, #25d366);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
  transition: background 200ms ease, transform 150ms ease;
  white-space: nowrap;
}

.oh-btn-whatsapp:hover {
  background: var(--aa-whatsapp-hover, #1da851);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.oh-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease, transform 150ms ease;
  white-space: nowrap;
}

.oh-btn-ghost:hover {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .oh-section { padding: 2.75rem 0; }
  .oh-process { padding: 2.75rem 0; }
  .oh-cta { padding: 2.5rem 0; }
  .oh-cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 576px) {
  .oh-grid--bundesland { grid-template-columns: repeat(2, 1fr); }
  .oh-grid--stadt { grid-template-columns: repeat(2, 1fr); }
  .oh-services-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .oh-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .oh-grid--bundesland { grid-template-columns: repeat(4, 1fr); }
  .oh-grid--stadt { grid-template-columns: repeat(5, 1fr); }
  .oh-services-grid { grid-template-columns: repeat(3, 1fr); }
}
