/* Separate lokale Vergleichsversion V4.
   Nur die sechs freigegebenen visuellen Anpassungen.
   Header, Footer, Formular und bestehende Stylesheets bleiben unverändert. */

/* 1. Gleich hohe, größere Bildfelder für die beiden Hochformatmotive.
   Die Originalbilder bleiben vollständig sichtbar und unverändert. */
#hauptinhalt .media-v2-applications img[src*="/e-scooter-"],
#hauptinhalt .media-v2-applications img[src*="/kuehlgeraet-"] {
  aspect-ratio: auto;
  height: clamp(340px, 32vw, 440px);
  max-height: none;
  object-fit: contain;
  background: var(--magnet-white);
}

/* 2. Bildtitel und erklärende Unterzeilen klarer lesbar machen. */
#hauptinhalt .media-v2-card:not(.media-v2-hero) figcaption {
  padding: 22px 24px;
  font-size: 16px;
  line-height: 1.55;
}

#hauptinhalt .media-v2-card:not(.media-v2-hero):not(.media-v2-wide) figcaption strong {
  margin-bottom: 6px;
  color: var(--magnet-blue-dark);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

#hauptinhalt .media-v2-card:not(.media-v2-hero) figcaption span {
  color: #23334b;
}

/* 3. Reine Inhaltsabschnitte kompakter staffeln. Kein Eingriff ins Formular. */
#hauptinhalt .priority-section,
#hauptinhalt #wertklassen,
#hauptinhalt #fachwissen > section.section,
#hauptinhalt #ablauf,
#hauptinhalt #fragen {
  padding-block: 72px;
}

#hauptinhalt .priority-section .section-heading,
#hauptinhalt #wertklassen .section-heading,
#hauptinhalt #fachwissen .section-heading,
#hauptinhalt #ablauf .section-heading,
#hauptinhalt #fragen .section-heading {
  margin-bottom: 26px;
}

#hauptinhalt .media-v2-shapes,
#hauptinhalt .media-v2-identification {
  padding-bottom: 48px;
}

#hauptinhalt #top {
  padding-block: 40px 56px;
}

#hauptinhalt #top .hero-grid {
  padding-block: 20px;
}

/* 4. Dezente Zeilenführung; dunkle Tabellenköpfe bleiben unverändert. */
#hauptinhalt .data-table tbody tr:nth-child(odd) > th,
#hauptinhalt .data-table tbody tr:nth-child(odd) > td {
  background-color: var(--magnet-white);
}

#hauptinhalt .data-table tbody tr:nth-child(even) > th,
#hauptinhalt .data-table tbody tr:nth-child(even) > td {
  background-color: var(--magnet-soft);
}

#hauptinhalt .data-table tbody th[scope="row"] {
  color: var(--magnet-blue-dark);
  font-size: 14px;
  font-weight: 800;
}

#hauptinhalt .data-table .relevance {
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.35;
}

/* 5. Ankauf als Hauptaktion, vorhandener Preislink direkt daneben. */
#hauptinhalt #top .hero-actions {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: start;
  justify-content: start;
  gap: 10px 12px;
  margin-top: 26px;
}

#hauptinhalt #top .hero-actions > .button-primary {
  min-height: 56px;
  padding-inline: 22px;
  font-size: 16px;
}

#hauptinhalt #top .comparison-price-link {
  min-height: 56px;
  padding-inline: 22px;
  border: 1px solid var(--magnet-blue);
  border-radius: 16px;
  background: var(--magnet-white);
  color: var(--magnet-blue-dark);
  box-shadow: none;
  font-size: 16px;
  font-weight: 700;
}

#hauptinhalt #top .comparison-price-link:hover {
  background: var(--magnet-soft);
}

#hauptinhalt #top .comparison-price-link:focus-visible {
  outline: 3px solid var(--magnet-blue);
  outline-offset: 4px;
}

#hauptinhalt #top .hero-actions > .whatsapp-button {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 44px;
  padding: 10px 14px;
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* 6. Ruhigere helle Karten. Dunkle Karten/Akzente werden nicht umgefärbt. */
#hauptinhalt .media-v2-card,
#hauptinhalt .priority-card:not(.priority-card-featured),
#hauptinhalt .knowledge-cards article,
#hauptinhalt .faq-grid details {
  border-color: #dce3ea;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(16, 47, 56, 0.04);
}

#hauptinhalt .priority-card:not(.priority-card-featured),
#hauptinhalt .knowledge-cards article {
  padding: 28px;
}

@media (max-width: 700px) {
  #hauptinhalt .priority-section,
  #hauptinhalt #wertklassen,
  #hauptinhalt #fachwissen > section.section,
  #hauptinhalt #ablauf,
  #hauptinhalt #fragen {
    padding-block: 52px;
  }

  #hauptinhalt #top {
    padding-block: 28px 40px;
  }

  #hauptinhalt #top .hero-grid {
    padding-block: 12px;
  }

  #hauptinhalt #top .hero-actions {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  #hauptinhalt #top .hero-actions > .button-primary,
  #hauptinhalt #top .comparison-price-link {
    width: 100%;
    padding-inline: 14px;
    font-size: 15px;
  }

  #hauptinhalt .media-v2-applications img[src*="/e-scooter-"],
  #hauptinhalt .media-v2-applications img[src*="/kuehlgeraet-"] {
    height: clamp(320px, 85vw, 420px);
  }

  #hauptinhalt .media-v2-card:not(.media-v2-hero) figcaption {
    padding: 20px;
  }

  #hauptinhalt .media-v2-shapes,
  #hauptinhalt .media-v2-identification {
    padding-bottom: 32px;
  }

  #hauptinhalt .priority-card:not(.priority-card-featured),
  #hauptinhalt .knowledge-cards article {
    padding: 24px;
  }
}
