/* ==========================================================================
   /hot-rod – Der Hot Rod im Detail. Baut auf gutscheine.css auf (.gs, gs-in,
   gs-eye, gs-hell, gs-dunkel, gs-schluss) und ergänzt nur das Seiteneigene.
   ========================================================================== */

.hr {
  --hr-kupfer-dunkel: #a8481f; /* Kupfer für Text auf hellem Grund (Kontrast ≥ 4,5:1) */
  --hr-leise: #d9d4cb;
  --hr-karte-text: #494949;
  --hr-pill: #efe9df;
}
.hr .gs-eye--kupfer {
  color: var(--hr-kupfer-dunkel);
}
.hr .gs-lead {
  font-size: 17px;
  color: var(--hr-leise);
}

/* --------------------------------------------------------------------------
   Hero: Foto unten ausgerichtet, Text oben über dem Auto
   -------------------------------------------------------------------------- */
.hr-hero {
  position: relative;
  display: flex;
  min-height: clamp(600px, 62vw, 860px);
  overflow: hidden;
  background: var(--gs-schwarz);
}
.hr-hero__bild,
.hr-hero__bild picture,
.hr-hero__bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hr-hero__bild img {
  object-fit: cover;
  object-position: 50% 100%;
}
.hr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(14, 14, 15, 0.92) 0%, rgba(14, 14, 15, 0.6) 30%, rgba(14, 14, 15, 0) 58%),
    linear-gradient(0deg, rgba(14, 14, 15, 0.55) 0%, rgba(14, 14, 15, 0) 16%);
}
.hr-hero__text {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(48px, 6vw, 84px);
  text-align: center;
}
.hr-hero h1 {
  font-size: clamp(25px, 5.6vw, 68px);
  letter-spacing: -0.3px;
  hyphens: manual;
}

/* --------------------------------------------------------------------------
   Eckdaten
   -------------------------------------------------------------------------- */
.hr-eckdaten {
  background:
    radial-gradient(70% 60% at 0% 0%, #2a1c14 0%, transparent 60%),
    var(--gs-schwarz);
}
.hr h2,
.hr h1 {
  letter-spacing: -0.3px;
}
.hr-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.hr .hr-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--gs-linie);
  border-radius: 999px;
  background: var(--gs-kohle);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.hr-pill__punkt {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gs-gold);
}
.hr-pill__punkt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gs-gold);
  animation: hr-puls 1.8s ease-out infinite;
}
@keyframes hr-puls {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(3);
    opacity: 0;
  }
}

.hr-raster {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}
.hr-stapel {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* sehr schmale Handys: Karten nicht breiter als der Bildschirm */
  gap: 20px;
}

/* Weiße Karten */
.hr-karte {
  position: relative;
  hyphens: auto;
  padding: 24px 26px 26px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbe3cf 0%, #fff 34%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  color: var(--hr-karte-text);
}
.hr .hr-karte__titel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--gs-schwarz);
}
.hr-karte__pfeil {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: var(--gs-schwarz);
  color: var(--gs-gold);
}
.hr .hr-gross {
  margin-top: 14px;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.3px;
  color: var(--gs-schwarz);
  font-variant-numeric: tabular-nums;
}
.hr-gross__einheit {
  font-size: 0.5em;
  color: var(--hr-kupfer-dunkel);
}
.hr .hr-karte__info {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
}

/* Tacho */
.hr-karte--tacho {
  display: flex;
  flex-direction: column;
}
.hr-tacho {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: auto auto 0; /* Tacho und Knopf mittig im freien Platz, wenn die rechte Spalte höher ist */
  padding-top: 12px;
}
.hr-tacho__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.hr-tacho__spur,
.hr-tacho__bogen {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
}
.hr-tacho__spur {
  stroke: #ece7df;
}
.hr-tacho__bogen {
  stroke: url(#hr-tacho-verlauf);
  stroke-dasharray: 100;
}
.hr-tacho__skala line {
  stroke: #b9b2a7;
  stroke-width: 2;
  stroke-linecap: round;
}
.hr-tacho__skala line.gross {
  stroke: var(--gs-schwarz);
  stroke-width: 3;
}
.hr-tacho__skala text {
  fill: var(--hr-karte-text);
  font: 700 13px "Montserrat", sans-serif;
  text-anchor: middle;
  dominant-baseline: central;
}
.hr-tacho__nadel {
  fill: var(--gs-schwarz);
}
.hr .hr-tacho__digital {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  transform: translateX(-50%);
  line-height: 1;
  white-space: nowrap;
}
.hr-tacho__zahl {
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--gs-schwarz);
  font-variant-numeric: tabular-nums;
}
.hr-tacho__einheit {
  font-size: 15px;
  font-weight: 800;
  color: var(--hr-kupfer-dunkel);
}
.hr-nochmal {
  align-self: center;
  min-height: 44px;
  margin: 22px 0 auto;
  padding: 12px 22px;
  border: 2px solid var(--gs-schwarz);
  border-radius: 4px;
  background: transparent;
  color: var(--gs-schwarz);
  font: 800 12px/1.1 "Montserrat", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s;
}
.hr-nochmal:hover {
  background: var(--gs-schwarz);
  color: #fff;
}
.hr-nochmal:focus-visible {
  outline: 3px solid var(--gs-gold);
  outline-offset: 3px;
}
.kein-js .hr-nochmal,
.hr-nochmal[hidden] {
  display: none;
}

/* Leuchtleiste: 20 Segmente, --f = Füllgrad 0…1 */
.hr-leiste {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 4px;
  margin-top: 18px;
}
.hr-leiste span {
  position: relative;
  height: 22px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(226, 144, 41, 0.14);
}
.hr-leiste span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f0a443, var(--gs-gold) 55%, #c9631f);
  transform: scaleX(var(--f, 0));
  transform-origin: left;
}

/* Motor mit Takten */
.hr-motor {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 0 18px;
  align-items: center;
}
.hr-motor .hr-karte__titel {
  grid-column: 1 / -1;
}
.hr-takte {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.hr-takte li {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--hr-pill);
  color: var(--hr-karte-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.3s, color 0.3s;
}
.hr-motor[data-takt="1"] .hr-takte li:nth-child(1),
.hr-motor[data-takt="2"] .hr-takte li:nth-child(2),
.hr-motor[data-takt="3"] .hr-takte li:nth-child(3),
.hr-motor[data-takt="4"] .hr-takte li:nth-child(4) {
  background: var(--gs-schwarz);
  color: #fff;
}
.hr-zylinder {
  width: 86px;
  height: auto;
  align-self: end;
}
.hr-zylinder__wand {
  fill: #f6f1ea;
  stroke: var(--gs-schwarz);
  stroke-width: 3;
}
.hr-zylinder__kerze {
  fill: var(--gs-schwarz);
}
.hr-zylinder__kurbel {
  fill: none;
  stroke: #b9b2a7;
  stroke-width: 3;
}
.hr-zylinder__kolben {
  fill: var(--gs-schwarz);
  stroke: var(--gs-schwarz);
  transition: transform 0.9s ease-in-out;
}
.hr-zylinder__kolben line {
  stroke-width: 6;
  stroke-linecap: round;
}
.hr-zylinder__kolben circle {
  fill: var(--gs-gold);
  stroke: none;
}
/* Kolben: Takt 1 und 3 unten, 2 und 4 oben (Hub 34 Einheiten) */
.hr-motor[data-takt="1"] .hr-zylinder__kolben,
.hr-motor[data-takt="3"] .hr-zylinder__kolben {
  transform: translateY(34px);
}
.hr-zylinder__funke {
  fill: var(--gs-gold);
  opacity: 0;
  filter: drop-shadow(0 0 5px #e29029);
  transition: opacity 0.25s;
}
.hr-motor[data-takt="3"] .hr-zylinder__funke {
  opacity: 1;
}

/* Bauweise */
.hr-bauweise {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.45;
}
.hr-bauweise li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hr-bauweise b {
  display: block;
  font-weight: 800;
  color: var(--gs-schwarz);
}
.hr-haken {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gs-gold);
  color: var(--gs-schwarz);
}
.hr-haken svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Entstehung und Antrieb
   -------------------------------------------------------------------------- */
.hr-zwei {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hr-foto {
  margin: 0;
}
.hr-foto picture,
.hr-foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}
.gs-dunkel .hr-foto img {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.hr-foto figcaption {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gs-grau);
}

/* Zeitstrahl */
.hr-zeit {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.hr-zeit li {
  position: relative;
  min-height: 44px;
  padding: 0 0 28px 64px;
}
.hr-zeit li:last-child {
  padding-bottom: 0;
}
.hr-zeit li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--gs-gold);
}
.hr-zeit__n {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gs-schwarz);
  color: var(--gs-gold);
  font-size: 18px;
  font-weight: 900;
}
.hr-zeit li:last-child .hr-zeit__n {
  background: var(--gs-gold);
  color: var(--gs-schwarz);
}
.hr-zeit h3 {
  padding-top: 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hr-zeit p {
  margin-top: 4px;
  font-size: 16px;
}

/* Abschluss */
.hr-schluss .gs-eye {
  color: var(--gs-schwarz);
}
.hr-schluss h2 {
  max-width: 22em;
  margin: 0 auto;
  text-wrap: balance;
}
.hr-schluss .hr-schluss__link {
  margin: 18px auto 0;
  font-size: 15px;
  font-weight: 700;
}
.gs-schluss .hr-schluss__link a {
  gap: 6px;
  color: var(--gs-schwarz);
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Tablet und Handy
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hr-raster,
  .hr-zwei {
    grid-template-columns: 1fr;
  }
  .hr-zwei {
    gap: 40px;
  }
}
@media (max-width: 600px) {
  .hr-karte {
    padding: 20px 18px 22px;
  }
  .hr-leiste {
    gap: 3px;
  }
  .hr-motor {
    grid-template-columns: 1fr 64px;
    gap: 0 12px;
  }
  .hr-zylinder {
    width: 64px;
  }
  .hr-zeit li {
    padding-left: 58px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hr-pill__punkt::after {
    animation: none;
    opacity: 0;
  }
  .hr-zylinder__kolben {
    transition: none;
  }
}
