.grid-display {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-background);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: transparent;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: pink;
  opacity: 0.6;
}

.first-block {
  position: relative;
  z-index: 2;
  display: inline-block;
  /* transparent statt solider Box: die Kinder (h1, p, ...) behalten ihre
     eigene Hintergrundfarbe aus der globalen "*"-Regel in base.css, wie
     an anderen Stellen der Seite auch (z.B. Footer-Items, Pricing-Badges) */
  background-color: transparent;
  padding: 10% 0 2% 25%;
  overflow: visible;
  transform: translate(100px, -100px);
}

/* Ein gemeinsamer Container für alle Text-/Icon-Elemente rechts,
   damit sie alle die gleiche Breite wie h1 haben */
.hero-content {
  width: min(95%, 55rem);
  padding: 8px 20px;
  background-color: rgba(255, 99, 71, 0.1);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.hero-content>* {
  width: 100%;
}

p.brand-name span {
  color: var(--color-background);
  background-color: transparent;
  font-size: clamp(1.5rem, 5vw, 3rem);
}

p.brand-name {
  padding-top: 1rem;
  background-color: var(--color-secondary);
  color: var(--color-accent-dark);
  text-shadow: 1px 1px 4px black;

  opacity: 0;
  transform: translate(-60px, -60px);
  animation: slideInFromTopLeft 0.9s ease-out 0.3s forwards;
}

.hero-title {
  padding-bottom: 1rem;
  line-height: min(2.5rem, 6vw);
  background-color: transparent;

  /* Animation */
  opacity: 0;
  transform: translate(-60px, -60px); /* Startposition: links oben */
  animation: slideInFromTopLeft 0.9s ease-out forwards;
}

@keyframes slideInFromTopLeft {
  from {
    opacity: 0;
    transform: translate(-60px, -60px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}
h1 {
  color: var(--color-accent-dark);
  font-size: min(9rem, 25vw);
  padding: 0;
  margin: 0;
  line-height: min(10rem, 20vw);
  font-weight: bold;
  background-color: transparent;
  text-shadow: 2px 2px 4px var(--color-secondary);
  border: 3px solid #000000;
}
/* Einheitliche Transparenz für alle Text-Boxen über dem Video,
   scoped auf die Hero-Section, damit der Rest der Seite unberührt bleibt */
.grid-display h1,
.grid-display p,
.grid-display a {
  opacity: 0.85;
}

.hero-subtitle p {
  /* color: var(--color-primary); */
  font-size: min(2.2rem, 6vw);
  line-height: min(0.5rem, 1vw);
  padding: min(0.5rem, 2vw);
  margin: 0;
  color: pink;
}

.hero-description {
  padding: min(2%, 4rem) 0rem;
  line-height: clamp(1rem, 1.5rem, 2rem);
  background-color: var(--color-background);
  color: var(--color-accent-dark);
  font-weight: 300;
  padding: 20px;
  /* text-shadow: 2px 2px 4px var(--color-secondary); */
  text-align: center;
}

.hero-description p {
  font-size: clamp(1rem, 1.3rem, 3rem);
  background-color: transparent;
  line-height: 40px;
}

.hero-content p {
  background-color: transparent;
}

.linkAnfragen {
  display: flex;
  width: fit-content;
  padding: clamp(2%, 2rem, 10%) 0;
  transform: translateX(clamp(10px, 4vw, 150px));
  background-color: transparent;
  flex-direction: row;
  border-radius: 5%;
}


.linkAnfragen a {
  background-color: var(--color-secondary);
  padding: 1rem;
  text-decoration: none;
  color: white;
  display: inline-block;
  transition: transform 0.3s ease;
  font-family: 'ZeitungPro-Black-_1_';
  color: var(--color-primary);
  transform: scale(1.1);
}

.anfragen {
  text-shadow: 2px 2px 4px var(--color-secondary);
  font-size: clamp(1.5rem, 2.5vw, 3rem);
}


.round-element {
  position: absolute;
  top: clamp(1rem, 8vh, 5rem);
  right: clamp(1rem, 6vw, 8rem);
  width: clamp(110px, 15vw, 250px);
  height: clamp(110px, 15vw, 250px);
  border-radius: 50%;
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  z-index: 10; /* vor dem schwarzen Frame (h1) und dem Video */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.round-element p {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 50%;
  text-align: center;
  color: white;
  font-size: clamp(0.7rem, 1.2vw, 1.2rem);
  box-sizing: border-box;
  /* position: absolute;
  bottom: clamp(1.5rem, 5vw, 3rem);
  right: clamp(1.5rem, 5vw, 3rem); */
  font-weight: 800;
  z-index: 1;
  padding: 0.5rem;
}

/* Tablets */
@media (max-width: 992px) {
  .first-block {
    display: block;
    width: 100%;
    padding: 18% 5% 5% 5%;
    transform: none;
  }

  .hero-content {
    width: 100%;
    margin: 0 auto;
  }
}

/* Smartphones */
@media (max-width: 768px) {
  .first-block {
    padding: 28% 4% 6% 4%;
  }

  .hero-media {
    display: none;
  }

  .round-element {
    top: 1rem;
    right: 1rem;
    width: 100px;
    height: 100px;
  }

  .round-element p {
    font-size: 0.65rem;
  }

  .hero-description p {
    line-height: 1.6;
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  p.brand-name,
  .hero-title {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
