/* RAMEDER – Landingpage "Anhängerkupplung für Elektroautos"
   Ablage: https://www.rameder.de/content/elektroauto/elektroauto.css
   Alle Regeln sind unter .rmd-ea gescoped, damit sie das Shop-CSS nicht beeinflussen. */

.rmd-ea {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  color: #0a3437;
  text-wrap: pretty;
  line-height: 1.5;
}
.rmd-ea *, .rmd-ea *::before, .rmd-ea *::after { box-sizing: border-box; }
.rmd-ea img { max-width: 100%; display: block; }
.rmd-ea a { color: #009d3b; text-decoration: none; }
.rmd-ea a:hover { color: #00b745; text-decoration: underline; }
.rmd-ea :focus-visible { outline: 3px solid #00b745; outline-offset: 2px; }

/* Layout */
/* Seitenabstand: am Desktop eigener Wert, bis 1023px erbt der Inhalt den
   Abstand des CMS-Containers (pad = 0), damit er exakt auf Breadcrumb und Footer sitzt */
.rmd-ea { --rmd-ea-pad: 24px; }
@media (max-width: 1023px) { .rmd-ea { --rmd-ea-pad: 0px; } }
.rmd-ea__wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--rmd-ea-pad); }
.rmd-ea__wrap--narrow { max-width: 860px; }
.rmd-ea__sec { padding: 64px 0 0; }
/* Graues Band: Hintergrund läuft über die volle Fensterbreite, ohne dass das Element
   selbst breiter wird (kein horizontales Scrollen). Inhalt bleibt im CMS-Raster. */
.rmd-ea__band {
  background: #f8f9f9;
  margin-top: 64px;
  padding-bottom: 64px;
  box-shadow: 0 0 0 100vmax #f8f9f9;
  clip-path: inset(0 -100vmax);
}

.rmd-ea__split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px; align-items: center; }
.rmd-ea__split--tight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.rmd-ea__cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 899px) { .rmd-ea__cols3 { grid-template-columns: minmax(0, 1fr); } }
.rmd-ea__cols-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1023px) { .rmd-ea__cols-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .rmd-ea__cols-stats { grid-template-columns: minmax(0, 1fr); } }

/* Typografie */
.rmd-ea h1 { font-size: clamp(30px, 5.2vw, 44px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 16px; }
.rmd-ea h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 16px; }
.rmd-ea h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0; }
.rmd-ea p { margin: 0 0 16px; }
.rmd-ea__lead { font-size: 17px; line-height: 1.6; color: #3b5d5f; max-width: 34em; }
.rmd-ea__body { font-size: 17px; line-height: 1.6; color: #3b5d5f; }
.rmd-ea__sub { color: #6c8587; margin: 0 0 32px; }
.rmd-ea__small { font-size: 13px; line-height: 1.5; color: #6c8587; }

/* Eyebrow */
.rmd-ea__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #e5f5eb; color: #009d3b;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}

/* Buttons */
.rmd-ea__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 55px; padding: 0 28px; border: none; border-radius: 999px;
  font: 600 16px/1.4 "Open Sans", Helvetica, Arial, sans-serif;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 160ms cubic-bezier(.4,0,.2,1), box-shadow 160ms cubic-bezier(.4,0,.2,1);
}
.rmd-ea a.rmd-ea__btn--primary, .rmd-ea button.rmd-ea__btn--primary { background: #009d3b; color: #fff; }
.rmd-ea a.rmd-ea__btn--primary:hover, .rmd-ea button.rmd-ea__btn--primary:hover { background: #00b745; color: #fff; text-decoration: none; }
.rmd-ea button.rmd-ea__btn--primary[disabled] { background: #99d8b1; color: #fff; cursor: not-allowed; }
.rmd-ea a.rmd-ea__btn--outline, .rmd-ea button.rmd-ea__btn--outline { background: transparent; color: #0a3437; box-shadow: inset 0 0 0 1px #0a3437; }
.rmd-ea a.rmd-ea__btn--outline:hover, .rmd-ea button.rmd-ea__btn--outline:hover { background: #f3f5f5; color: #0a3437; text-decoration: none; }
.rmd-ea a.rmd-ea__btn--ghost, .rmd-ea button.rmd-ea__btn--ghost { background: transparent; color: #009d3b; box-shadow: inset 0 0 0 1px #009d3b; }
.rmd-ea a.rmd-ea__btn--ghost:hover, .rmd-ea button.rmd-ea__btn--ghost:hover { background: #f2faf5; color: #009d3b; text-decoration: none; }
.rmd-ea__btn--full { width: 100%; }
.rmd-ea__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Karten */
.rmd-ea__card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: 12px; background: #fff;
  box-shadow: inset 0 0 0 1px #e6ebeb, 0 6px 32px -18px rgba(0,0,0,.25);
  transition: transform 160ms cubic-bezier(.4,0,.2,1), box-shadow 160ms cubic-bezier(.4,0,.2,1);
}
.rmd-ea__card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #e6ebeb, 0 10px 32px -12px rgba(0,0,0,.25); }
.rmd-ea__card p { margin: 0; flex: 1; }
.rmd-ea__stat { background: #fff; border-radius: 12px; padding: 24px; box-shadow: inset 0 0 0 1px #e6ebeb, 0 6px 32px -18px rgba(0,0,0,.25); }
.rmd-ea__stat b { display: block; font-size: clamp(32px, 5vw, 40px); font-weight: 700; letter-spacing: -0.02em; color: #009d3b; }
.rmd-ea__stat p { margin: 6px 0 0; color: #3b5d5f; }

/* Bauart-Icons */
.rmd-ea__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 50%; background: #f2faf5; flex: 0 0 auto;
}
.rmd-ea__ico > span {
  display: block; width: 54px; height: 54px; background: #009d3b;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.rmd-ea__ico--starr > span {
  -webkit-mask-image: url("https://www.rameder.de/content/elektroauto/ahk-starr.png");
  mask-image: url("https://www.rameder.de/content/elektroauto/ahk-starr.png");
}
.rmd-ea__ico--abnehmbar > span {
  -webkit-mask-image: url("https://www.rameder.de/content/elektroauto/ahk-abnehmbar.png");
  mask-image: url("https://www.rameder.de/content/elektroauto/ahk-abnehmbar.png");
}
.rmd-ea__ico--schwenkbar > span {
  -webkit-mask-image: url("https://www.rameder.de/content/elektroauto/ahk-schwenkbar.png");
  mask-image: url("https://www.rameder.de/content/elektroauto/ahk-schwenkbar.png");
}

.rmd-ea__card-head { display: flex; align-items: center; gap: 16px; }
.rmd-ea__card-head-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }

.rmd-ea__price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 16px; border-top: 1px solid #e6ebeb; }
.rmd-ea__price-scale { flex: 0 0 auto; white-space: nowrap; font-size: 18px; font-weight: 700; letter-spacing: 1px; line-height: 1; color: #ced6d7; }
.rmd-ea__price-scale b { color: #009d3b; font-weight: 700; }
.rmd-ea__price-label { flex: 0 0 auto; white-space: nowrap; font-size: 13px; font-weight: 600; color: #6c8587; }
.rmd-ea__price-link { margin-left: auto; white-space: nowrap; font-size: 13px; font-weight: 600; color: #009d3b; }

/* Chips */
.rmd-ea__chip { display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.rmd-ea__chip--ok { background: #e5f5eb; color: #01885f; }
.rmd-ea__chip--soon { background: #fefdf2; color: #8a7400; }

/* Häkchenliste */
.rmd-ea__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rmd-ea__checks li { display: flex; gap: 12px; font-size: 17px; line-height: 1.6; color: #3b5d5f; }
.rmd-ea__checks i { color: #009d3b; margin-top: 5px; }

/* Bilder */
.rmd-ea__media { border-radius: 12px; overflow: hidden; background: #fff; }
.rmd-ea__media img { width: 100%; height: 100%; object-fit: cover; }

/* Fahrzeugauswahl */
.rmd-ea__finder { background: #0a3437; border-radius: 12px; padding: clamp(24px, 4vw, 48px); color: #fff; }
.rmd-ea__finder h2 { color: #fff; }
.rmd-ea__finder p { color: #ced6d7; max-width: 46em; }
.rmd-ea__finder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: end; margin: 28px 0 0; }
.rmd-ea__field { display: flex; flex-direction: column; gap: 6px; }
.rmd-ea__field label { font-size: 16px; font-weight: 600; color: #fff; }
.rmd-ea__select { position: relative; display: flex; align-items: center; height: 52px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #ced6d7; }
.rmd-ea__select select {
  appearance: none; -webkit-appearance: none;
  flex: 1; height: 100%; border: none; outline: none; background: transparent;
  padding: 0 44px 0 16px; font: 400 16px "Open Sans", Helvetica, Arial, sans-serif;
  color: #0a3437; cursor: pointer; border-radius: 8px;
}
.rmd-ea__select select:disabled { background: #f3f5f5; color: #9daeaf; cursor: not-allowed; }
.rmd-ea__select::after {
  content: ""; position: absolute; right: 16px; width: 10px; height: 10px; pointer-events: none;
  border-right: 2px solid #6c8587; border-bottom: 2px solid #6c8587;
  transform: rotate(45deg) translateY(-2px);
}
.rmd-ea__finder-note { color: #9daeaf; margin: 20px 0 0; }
.rmd-ea__finder a { color: #fff; text-decoration: underline; }

/* Tabelle */
.rmd-ea__search { max-width: 420px; margin: 0 0 20px; }
.rmd-ea__search input {
  width: 100%; height: 52px; border-radius: 8px; border: none;
  box-shadow: inset 0 0 0 1px #ced6d7; padding: 0 16px;
  font: 400 16px "Open Sans", Helvetica, Arial, sans-serif; color: #0a3437;
}
.rmd-ea__tablewrap { overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px #e6ebeb; }
.rmd-ea table { width: 100%; min-width: 640px; border-collapse: collapse; }
.rmd-ea caption { caption-side: bottom; text-align: left; padding: 14px 20px; font-size: 13px; color: #6c8587; }
.rmd-ea thead tr { background: #f8f9f9; }
.rmd-ea th { text-align: left; padding: 14px 20px; font-size: 13px; font-weight: 600; color: #3b5d5f; border-bottom: 1px solid #e6ebeb; }
.rmd-ea td { padding: 14px 20px; border-bottom: 1px solid #e6ebeb; vertical-align: middle; }
.rmd-ea td.rmd-ea__td-marke { font-weight: 600; white-space: nowrap; }
.rmd-ea td.rmd-ea__td-modell { white-space: nowrap; }
.rmd-ea td.rmd-ea__td-status { white-space: nowrap; }
.rmd-ea td.rmd-ea__td-link { white-space: nowrap; }
.rmd-ea__td-link a { display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmd-ea__td-link span { color: #9daeaf; }

/* Kompaktliste mobil (Variante 2) – Spalten werden Zeilen, kein Querscrollen unter 768px */
.rmd-ea__list { display: none; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px #e6ebeb; }
.rmd-ea__list-letter {
  position: sticky; top: 0; z-index: 1; background: #f8f9f9; padding: 6px 16px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: #6c8587;
  border-bottom: 1px solid #e6ebeb;
}
.rmd-ea__list-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(116px, auto) 24px;
  column-gap: 12px; align-items: center; min-height: 56px; padding: 8px 16px;
  border-bottom: 1px solid #e6ebeb;
}
.rmd-ea__list-group:last-child .rmd-ea__list-row:last-child { border-bottom: none; }
.rmd-ea__list-row:active { background: #f8f9f9; }
.rmd-ea__list-marke { grid-column: 1; grid-row: 1; font-size: 12px; line-height: 1.4; color: #6c8587; }
.rmd-ea__list-modell { grid-column: 1; grid-row: 2; font-size: 16px; font-weight: 600; line-height: 1.3; }
.rmd-ea__list-status { grid-column: 2; grid-row: 1 / span 2; display: grid; justify-items: end; align-content: center; }
.rmd-ea__list-status > * { justify-self: end; }
.rmd-ea__list-go {
  grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; font-size: 26px; line-height: 1; color: #009d3b;
}
.rmd-ea__list-go:hover { text-decoration: none; }
.rmd-ea__list-go::after { content: ""; position: absolute; inset: 0; }
.rmd-ea__list-note { display: none; margin: 14px 0 0; }

@media (max-width: 768px) {
  .rmd-ea__tablewrap { display: none; }
  .rmd-ea__list { display: block; }
  .rmd-ea__list-note { display: block; }
}

/* Paginierung */
.rmd-ea__tablefoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 20px 0 0; }
.rmd-ea__pag { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.rmd-ea__pag button {
  min-width: 40px; height: 40px; padding: 0 10px; border: none; border-radius: 8px;
  background: transparent; box-shadow: inset 0 0 0 1px #ced6d7; color: #0a3437;
  font: 600 16px "Open Sans", Helvetica, Arial, sans-serif; cursor: pointer;
}
.rmd-ea__pag button[aria-current="page"] { background: #009d3b; box-shadow: none; color: #fff; font-weight: 700; }
.rmd-ea__pag button[disabled] { color: #9daeaf; cursor: not-allowed; }
.rmd-ea__pag span { min-width: 24px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: #9daeaf; }

/* FAQ – jede Frage in einem eigenen Rahmen, Pfeil schwarz, Antwort Teal 80.
   Bewusst hohe Spezifität + !important: das Shop-CSS bringt eigene Regeln für
   details/summary/p mit, die sonst gewinnen. */
.rmd-ea .rmd-ea__faq { display: flex !important; flex-direction: column !important; gap: 12px !important; border: 0 !important; }
.rmd-ea .rmd-ea__faq > details {
  margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 8px !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 1px #ced6d7 !important;
  overflow: hidden !important;
}
.rmd-ea .rmd-ea__faq > details[open] { box-shadow: inset 0 0 0 1px #9daeaf !important; }
.rmd-ea .rmd-ea__faq > details > summary {
  display: flex !important; align-items: center !important; justify-content: space-between !important;
  gap: 12px !important; margin: 0 !important; padding: 16px !important;
  border: 0 !important; background: transparent !important;
  font-family: inherit !important; font-size: 18px !important; font-weight: 600 !important;
  line-height: 1.4 !important; color: #0a3437 !important;
  cursor: pointer !important; list-style: none !important;
}
.rmd-ea .rmd-ea__faq > details > summary::marker { content: "" !important; }
.rmd-ea .rmd-ea__faq > details > summary::-webkit-details-marker { display: none !important; }
.rmd-ea .rmd-ea__faq > details > summary::before { content: none !important; display: none !important; }
.rmd-ea .rmd-ea__faq > details > summary::after {
  content: "" !important; display: block !important; flex: 0 0 auto !important;
  width: 9px !important; height: 9px !important; margin: 0 0 4px 0 !important;
  border: 0 !important;
  border-right: 2px solid #0a3437 !important; border-bottom: 2px solid #0a3437 !important;
  background: none !important; transform: rotate(45deg);
  transition: transform 160ms cubic-bezier(.4,0,.2,1);
}
.rmd-ea .rmd-ea__faq > details[open] > summary::after { margin: 4px 0 0 0 !important; transform: rotate(-135deg); }
.rmd-ea .rmd-ea__faq > details > p {
  margin: 0 !important; padding: 0 16px 16px !important;
  font-family: inherit !important; font-size: 16px !important; line-height: 1.6 !important;
  color: #3b5d5f !important;
}

/* CTA-Band */
.rmd-ea__cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px;
  background: #f2faf5; border-radius: 12px; padding: clamp(24px, 4vw, 40px);
  box-shadow: inset 0 0 0 1px #ccebd8;
}
.rmd-ea__cta > div { flex: 1 1 320px; min-width: 0; }
.rmd-ea__cta h3 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; }
.rmd-ea__cta p { margin: 0; color: #3b5d5f; }
.rmd-ea__legal { margin: 0; padding-top: 48px; }

/* Reveal beim Scrollen */

@media (prefers-reduced-motion: reduce) {
  .rmd-ea__card:hover { transform: none; }
}

/* Mobile */
@media (max-width: 599px) {
  .rmd-ea__sec { padding-top: 48px; }
  .rmd-ea__ctas { display: grid; grid-template-columns: minmax(0, 1fr); }
  .rmd-ea__ctas .rmd-ea__btn { width: 100%; }
  .rmd-ea__cta .rmd-ea__btn { width: 100%; }
  .rmd-ea__btn {
    white-space: normal; height: auto; min-height: 55px; padding: 12px 20px; text-align: center;
  }
  .rmd-ea__ctas .rmd-ea__btn--ghost, .rmd-ea__btn--ghost { width: 100%; }
}
