.scrollimage .imagefullwidth {
  height: 75vh;
  max-height: 500px;
  width: 100%;
}

.scrollimage__overlay,
.scrollimage {
  position: relative;
  height: 75vh;
  max-height: 500px;
}

.scrollimage__image {
  grid-column: span 5 !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Der Textkasten hält Abstand zu den Bildkanten. Seitlich sind es dieselben
   4%, mit denen das Raster des Templates arbeitet. */
.scrollimage__text {
  max-width: 92%;
  min-width: 200px;
  display: flex;
  justify-content: flex-start;
  z-index: 1;
  flex-flow: row wrap;
  position: absolute;
  bottom: 2rem;
  left: 4%;
  align-items: center;
}

.scrollimage__text.-right {
  right: 4%;
  left: auto;
}

.scrollimage__text,
.scrollimage__text a,
.scrollimage__text h1,
.scrollimage__text h2,
.scrollimage__text h3,
.scrollimage__text h4 {
  color: rgb(var(--c-neutral-lightest));
}

/* Touch-Geräte stellen background-attachment: fixed nicht dar, das Bild würde
   dort verzerrt oder gar nicht erscheinen. Bis TYPO3 v14 hat das ein Script
   über die Klasse .mobileimagefullwidth erledigt. */
@media (hover: none) and (pointer: coarse) {
  .scrollimage .imagefullwidth {
    background-attachment: scroll;
  }
}

/* =============================================================================
   Media Queries
   ========================================================================== */

@media (min-width: 1024px) {
  .scrollimage__text {
    max-width: 50%;
  }

  .scrollimage .imagefullwidth,
  .scrollimage__overlay,
  .scrollimage {
    height: 34vw;
    max-height: 700px;
  }
}

@media (min-width: 1280px) {
  .scrollimage__text {
    max-width: 35%;
  }
}