@font-face {
  font-family: "PP Monument Extended";
  src: url("fonts/PPMonumentExtended-Black.woff2") format("woff2"),
       url("fonts/PPMonumentExtended-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --accent: #d9ff00;
  --gutter: 16px;
  /* Figma: Labels 24px, 16px Abstand zum Rand */
  --label-size: clamp(18px, 6.25vw, 24px);
  --label-offset: 16px;
  /* Platz, den die Labels oben/unten beanspruchen – das Bild bleibt frei davon */
  --label-space: calc(var(--label-offset) * 2 + var(--label-size) * 1.25);
  /* Figma: Bild 898 × 718 px auf 1440 × 1024 px Frame */
  --image-max: 898px;
  --image-ratio: 898 / 718;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  position: relative;
  background: var(--bg);
}

.label {
  position: absolute;
  font-family: "PP Monument Extended", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: var(--label-size);
  line-height: 1.25;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #000;
}

.label--top {
  top: var(--label-offset);
  left: var(--label-offset);
}

.label--bottom {
  right: var(--label-offset);
  bottom: var(--label-offset);
}

.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(var(--gutter), var(--label-space)) var(--gutter);
}

.hero {
  position: relative;
  margin: 0;
  /* so groß wie im Design, aber nie breiter oder höher als der Viewport */
  width: min(
    var(--image-max),
    100%,
    (100svh - 2 * max(var(--gutter), var(--label-space))) * 898 / 718
  );
  aspect-ratio: var(--image-ratio);
  container-type: inline-size;
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__title {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: "PP Monument Extended", "Arial Black", sans-serif;
  font-weight: 900;
  /* 56px bei 898px Bildbreite – skaliert mit dem Bild */
  font-size: 56px;
  font-size: clamp(18px, 6.236cqi, 56px);
  line-height: normal;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
}

@media (max-width: 767px) {
  .label--top,
  .label--bottom {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}
