@font-face {
  font-family: "Rajdhani";
  src: url("/wp-content/uploads/Rajdhani-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("/wp-content/uploads/Rajdhani-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("/wp-content/uploads/Rajdhani-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("/wp-content/uploads/Rajdhani-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.mhf {
  --mhf-black: #000;
  --mhf-road: #2d2d2d;
  --mhf-white: #fff;
  --mhf-light: #d7d7d7;
  --mhf-scroll-height: 600vh;
  --mhf-world-height: 5200px;
  --mhf-top-gap: 100px;
  --mhf-header-overlap: 100px;
  --mhf-bottom-gap: 0px;
  --mhf-road-stroke: 200;
  --mhf-road-edge-stroke: 214;
  --mhf-popup-width: 1140px;
  --mhf-popup-edge: 15vw;
  --mhf-crash-width: 650px;
  --mhf-viewport-width: 100vw;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-top: var(--mhf-top-gap);
  padding-bottom: var(--mhf-bottom-gap);
  color: var(--mhf-white);
  background: var(--mhf-black);
  isolation: isolate;
  font-family: "Rajdhani", Arial, sans-serif;
  font-weight: 400;
  overflow-x: clip;
  overflow-y: visible;
}

/*
 * Der schwarze Hintergrund darf hinter den verschwindenden Header laufen,
 * ohne den Shortcode selbst per negativem Margin aus dem Dokumentfluss zu
 * ziehen. Dadurch funktionieren Spacer/Container vor dem Shortcode wieder.
 */
.mhf::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: calc(var(--mhf-header-overlap) * -1);
  height: var(--mhf-header-overlap);
  background: var(--mhf-black);
  pointer-events: none;
}

.mhf__scroll-space,
.mhf__fallback {
  position: relative;
  z-index: 1;
}

.mhf *,
.mhf *::before,
.mhf *::after {
  box-sizing: border-box;
}

.mhf button,
.mhf input,
.mhf textarea,
.mhf select {
  font: inherit;
}

.mhf img {
  display: block;
  max-width: 100%;
}

.mhf--contained {
  width: 100%;
  max-width: 100%;
}

/*
 * Die Animation darf aus einem boxed Elementor-Container ausbrechen.
 * Texte werden weiterhin an einer 1140-px-Inhaltsachse ausgerichtet,
 * Straße und Popups nutzen dagegen die volle Viewportbreite.
 */
.mhf--full-width {
  left: 50%;
  width: var(--mhf-viewport-width);
  max-width: var(--mhf-viewport-width);
  margin-left: calc(var(--mhf-viewport-width) / -2);
}

.mhf__scroll-space {
  position: relative;
  height: var(--mhf-scroll-height);
  min-height: 430vh;
}

.mhf__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--mhf-black);
}

.mhf__intro {
  position: absolute;
  z-index: 12;
  top: clamp(28px, 5vh, 68px);
  left: max(22px, calc((100% - min(1140px, calc(100% - 44px))) / 2));
  width: min(400px, 31vw);
  pointer-events: none;
  will-change: opacity, transform;
}

.mhf__eyebrow {
  display: block;
  color: var(--mhf-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.mhf__eyebrow::before {
  content: "/ ";
}

.mhf__heading {
  margin: 10px 0 0;
  color: var(--mhf-white);
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.88;
  text-transform: uppercase;
  text-wrap: balance;
}

.mhf__subtitle {
  max-width: 29ch;
  margin: 16px 0 0;
  color: var(--mhf-light);
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 300;
  line-height: 1.35;
  text-transform: uppercase;
}


.mhf__status[hidden],
.mhf__active-panel[hidden] {
  display: none !important;
}

.mhf__status {
  position: absolute;
  z-index: 12;
  top: clamp(28px, 5vh, 68px);
  right: max(22px, calc((100% - min(1140px, calc(100% - 44px))) / 2));
  display: grid;
  justify-items: end;
  text-align: right;
  pointer-events: none;
}

.mhf__status-label {
  color: var(--mhf-light);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mhf__status-year {
  color: var(--mhf-white);
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.mhf__status-count {
  margin-top: 8px;
  color: var(--mhf-white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

/*
 * Die Bühne bleibt viewport-hoch. Die Strecke selbst ist deutlich länger und
 * wird beim Scrollen durch diese Bühne geschoben. Dadurch werden die Punkte
 * nicht mehr in einen einzigen Bildschirm gequetscht.
 */
.mhf__canvas {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 0;
  width: min(700px, 54vw);
  height: var(--mhf-world-height);
  transform: translate3d(-50%, 0, 0);
  transform-origin: 50% 0;
  will-change: transform;
}

.mhf__route {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mhf__road-edge,
.mhf__road,
.mhf__road-center,
.mhf__motion-path {
  fill: none;
  stroke-linecap: butt;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mhf__road-edge {
  stroke: var(--mhf-white);
  stroke-width: var(--mhf-road-edge-stroke);
}

.mhf__road {
  stroke: var(--mhf-road);
  stroke-width: var(--mhf-road-stroke);
}

.mhf__road-center {
  stroke: var(--mhf-white);
  stroke-width: 5px;
  stroke-dasharray: 32 34;
}

.mhf__motion-path {
  stroke: transparent;
  stroke-width: 1px;
}

.mhf__car {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 58%;
  width: clamp(58px, 6vw, 96px);
  height: auto;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9)) drop-shadow(0 10px 10px rgba(0, 0, 0, 0.72));
  pointer-events: none;
  user-select: none;
  will-change: transform;
}


.mhf__crash {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 100%;
  width: min(var(--mhf-crash-width), 52vw);
  max-width: none;
  height: auto;
  max-height: 420px;
  max-height: min(42svh, 420px);
  object-fit: contain;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  filter: none;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  will-change: left, top, transform, opacity;
}

.mhf__markers {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
}

.mhf__marker {
  --mhf-x: 0px;
  --mhf-y: 0px;
  position: absolute;
  left: var(--mhf-x);
  top: var(--mhf-y);
  width: 0;
  height: 0;
  pointer-events: auto;
}

.mhf__pin {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  min-width: 64px;
  padding: 8px 10px 7px;
  border: 1px solid var(--mhf-white);
  border-radius: 0;
  color: var(--mhf-white);
  background: var(--mhf-black);
  box-shadow: none;
  line-height: 1;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease, background-color 180ms ease;
}

.mhf__pin:hover,
.mhf__pin:focus-visible {
  color: var(--mhf-black);
  background: var(--mhf-white);
  outline: 2px solid var(--mhf-white);
  outline-offset: 3px;
  transform: translate(-50%, -50%) scale(1.04);
}

.mhf__pin-dot {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 8px;
  height: 8px;
  margin: -3px 0 0 -4px;
  border: 1px solid var(--mhf-white);
  border-radius: 0;
  background: var(--mhf-black);
}

.mhf__pin-year {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mhf__pin-month {
  display: block;
  margin-top: 4px;
  color: var(--mhf-light);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mhf__marker:not(.is-active):not(.is-near) .mhf__pin {
  width: 12px;
  min-width: 12px;
  height: 12px;
  padding: 0;
  opacity: 0.42;
  transform: translate(-50%, -50%);
}

.mhf__marker:not(.is-active):not(.is-near) .mhf__pin-year,
.mhf__marker:not(.is-active):not(.is-near) .mhf__pin-month,
.mhf__marker:not(.is-active):not(.is-near) .mhf__pin-dot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mhf__marker.is-near .mhf__pin {
  opacity: 0.72;
  transform: translate(-50%, -50%) scale(0.86);
}

.mhf__marker.is-active .mhf__pin {
  color: var(--mhf-black);
  background: var(--mhf-white);
  transform: translate(-50%, -50%) scale(1.06);
}

.mhf__marker.is-active .mhf__pin-month {
  color: #3a3a3a;
}

.mhf__card-template {
  display: none;
}

.mhf__active-panel {
  position: absolute;
  z-index: 15;
  top: 50%;
  width: clamp(290px, 23vw, 370px);
  max-width: calc(50% - min(350px, 27vw) - 28px);
  max-height: min(68svh, 690px);
  overflow: auto;
  color: var(--mhf-black);
  background: var(--mhf-white);
  border: 1px solid var(--mhf-white);
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  transform: translateY(-50%);
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.mhf__active-panel::-webkit-scrollbar {
  display: none;
}

.mhf__active-panel[data-side="left"] {
  left: max(24px, var(--mhf-popup-edge));
}

.mhf__active-panel[data-side="right"] {
  right: max(24px, var(--mhf-popup-edge));
}

.mhf__active-panel.is-pop {
  animation: mhf-panel-pop 260ms ease-out;
}

@keyframes mhf-panel-pop {
  0% { opacity: 0; transform: translateY(-50%) translateY(14px); }
  100% { opacity: 1; transform: translateY(-50%) translateY(0); }
}

.mhf__card-inner {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--mhf-white);
}

.mhf__media {
  margin: 0;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background: #d5d5d5;
  border-bottom: 1px solid var(--mhf-black);
}

.mhf__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.mhf__card-copy {
  padding: clamp(20px, 2vw, 30px);
}

.mhf__date {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mhf-black);
}

.mhf__date span {
  color: var(--mhf-black);
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.85;
}

.mhf__date small {
  color: #3a3a3a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mhf__active-panel h3,
.mhf__card-copy h3 {
  margin: 0 0 12px;
  color: var(--mhf-black);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  text-transform: uppercase;
}

.mhf__text {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.mhf__text > :first-child {
  margin-top: 0;
}

.mhf__text > :last-child {
  margin-bottom: 0;
}

.mhf__link {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 0 4px;
  border-bottom: 1px solid var(--mhf-black);
  color: var(--mhf-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.mhf__link:hover,
.mhf__link:focus-visible {
  color: var(--mhf-black);
  border-bottom-width: 3px;
  outline: none;
}

.mhf__scroll-hint {
  position: absolute;
  z-index: 16;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mhf-white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.mhf__scroll-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, 10px);
}

.mhf__mouse {
  position: relative;
  width: 17px;
  height: 28px;
  border: 1px solid var(--mhf-white);
  border-radius: 0;
}

.mhf__mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 2px;
  height: 6px;
  background: var(--mhf-white);
  transform: translateX(-50%);
  animation: mhf-wheel 1.4s ease-in-out infinite;
}

@keyframes mhf-wheel {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 9px); }
}

.mhf__fallback {
  display: block;
  padding: clamp(50px, 8vw, 110px) clamp(20px, 6vw, 90px);
  color: var(--mhf-white);
  background: var(--mhf-black);
}

.mhf--enhanced .mhf__fallback {
  display: none;
}

.mhf__fallback-header {
  max-width: 760px;
  margin: 0 auto 58px;
}

.mhf__fallback-header span {
  color: var(--mhf-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mhf__fallback-header h2 {
  margin: 8px 0;
  color: var(--mhf-white);
  font-size: clamp(44px, 7vw, 86px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-transform: uppercase;
}

.mhf__fallback-header p {
  color: var(--mhf-light);
  font-size: 19px;
  font-weight: 300;
  text-transform: uppercase;
}

.mhf__fallback-list {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--mhf-white);
}

.mhf__fallback-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 34px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.mhf__fallback-date {
  display: grid;
  align-content: start;
}

.mhf__fallback-date strong {
  color: var(--mhf-white);
  font-size: 38px;
  font-weight: 700;
  line-height: 0.9;
}

.mhf__fallback-date span {
  margin-top: 6px;
  color: var(--mhf-light);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mhf__fallback-item h3 {
  margin: 0 0 10px;
  color: var(--mhf-white);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.mhf__fallback-item img {
  width: 100%;
  max-height: 360px;
  margin: 0 0 18px;
  object-fit: cover;
  border-radius: 0;
  filter: none;
}

.mhf--editor-preview {
  --mhf-top-gap: 0px;
  --mhf-header-overlap: 0px;
  margin-top: 0;
  padding-top: 0;
}

.mhf--editor-preview .mhf__scroll-space {
  height: 960px;
  min-height: 960px;
}

.mhf--editor-preview .mhf__stage {
  position: relative;
  height: 960px;
  min-height: 960px;
}

@media (max-width: 1280px) {
  .mhf__intro {
    width: min(330px, 28vw);
  }

  .mhf__canvas {
    width: min(660px, 55vw);
  }

  .mhf__active-panel {
    width: clamp(280px, 23vw, 330px);
  }

  .mhf {
    --mhf-road-stroke: 186;
    --mhf-road-edge-stroke: 200;
  }
}

@media (max-width: 1080px) {
  .mhf__intro {
    width: 260px;
  }

  .mhf__subtitle {
    font-size: 14px;
  }

  .mhf__canvas {
    width: min(620px, 66vw);
  }

  .mhf__car {
    top: 43%;
  }

  .mhf__active-panel,
  .mhf__active-panel[data-side="left"],
  .mhf__active-panel[data-side="right"] {
    top: auto;
    left: 24px;
    right: 24px;
    bottom: 24px;
    width: min(430px, calc(100% - 48px));
    max-width: calc(100% - 48px);
    max-height: 38svh;
    transform: none;
  }

  .mhf__active-panel.is-pop {
    animation-name: mhf-panel-pop-bottom;
  }

  @keyframes mhf-panel-pop-bottom {
    0% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 767px) {
  .mhf {
    --mhf-top-gap: 72px;
    --mhf-header-overlap: 72px;
    --mhf-road-stroke: 136;
    --mhf-road-edge-stroke: 148;
  }

  .mhf__stage {
    min-height: 580px;
  }

  .mhf__intro {
    top: 18px;
    left: 16px;
    width: calc(100% - 130px);
  }

  .mhf__eyebrow {
    font-size: 10px;
  }

  .mhf__heading {
    max-width: 230px;
    margin-top: 7px;
    font-size: clamp(28px, 8vw, 38px);
    line-height: 0.9;
  }

  .mhf__subtitle,
  .mhf__status-label {
    display: none;
  }

  .mhf__status {
    top: 19px;
    right: 16px;
  }

  .mhf__status-year {
    font-size: 36px;
  }

  .mhf__status-count {
    margin-top: 4px;
    font-size: 9px;
  }

  .mhf__canvas {
    width: min(92vw, 560px);
  }

  .mhf__car {
    top: 42%;
    width: clamp(48px, 14vw, 70px);
  }

  .mhf__road-center {
    stroke-width: 4px;
    stroke-dasharray: 23 25;
  }

  .mhf__pin {
    min-width: 50px;
    padding: 6px 7px 5px;
  }

  .mhf__pin-year {
    font-size: 12px;
  }

  .mhf__pin-month {
    display: none;
  }

  .mhf__marker:not(.is-active) .mhf__pin {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(0.78);
  }

  .mhf__active-panel,
  .mhf__active-panel[data-side="left"],
  .mhf__active-panel[data-side="right"] {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    max-height: 34svh;
    box-shadow: none;
  }

  .mhf__active-panel .mhf__card-inner:has(.mhf__media) {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .mhf__active-panel .mhf__media {
    min-height: 145px;
    height: 100%;
    aspect-ratio: auto;
    border-right: 1px solid var(--mhf-black);
    border-bottom: 0;
  }

  .mhf__active-panel .mhf__card-copy {
    padding: 14px 15px 16px;
  }

  .mhf__active-panel .mhf__date {
    margin-bottom: 7px;
    padding-bottom: 7px;
  }

  .mhf__active-panel .mhf__date span {
    font-size: 28px;
  }

  .mhf__active-panel .mhf__date small {
    font-size: 8px;
  }

  .mhf__active-panel h3 {
    margin-bottom: 7px;
    font-size: 20px;
  }

  .mhf__active-panel .mhf__text {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .mhf__active-panel .mhf__link {
    margin-top: 9px;
    font-size: 10px;
  }

  .mhf__scroll-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .mhf__active-panel .mhf__card-inner:has(.mhf__media) {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .mhf__active-panel .mhf__media {
    min-height: 128px;
  }

  .mhf__active-panel .mhf__text {
    -webkit-line-clamp: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mhf {
    --mhf-top-gap: 0px;
    --mhf-header-overlap: 0px;
    margin-top: 0;
    padding-top: 0;
  }

  .mhf__scroll-space {
    display: none;
  }

  .mhf__fallback {
    display: block !important;
  }

  .mhf *,
  .mhf *::before,
  .mhf *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 620px) {
  .mhf__fallback-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 1080px) {
  .mhf__crash {
    width: min(var(--mhf-crash-width), 62vw);
  }
}

@media (max-width: 767px) {
  .mhf__crash {
    width: min(var(--mhf-crash-width), 82vw);
  }
}
