$stage-switch-breakpoint: 600px;

:root {
  --stage-background-color: transparent;
  --stage-logo-width: 40rem;
  --stage-logo-height: 30rem;
  --stage-min-height: 0;
  --stage-content-align: flex-start;

  @include use-responsive-sizing(--stage-image-size, (
    xs: 100%,
    ($stage-switch-breakpoint): 40%,
    m: 45%,
    l: 50%,
  ));
}

.stage {
  background-color: var(--stage-background-color);
}

.stage--center {
  --stage-content-align: center;

  @include use-responsive-sizing(--stage-min-height, (xs: 37.5rem, xl: 45rem));
}

.stage__inner {
  display: grid;
  grid-auto-rows: auto;
  min-block-size: var(--stage-min-height);

  @include use-container();
  @include use-responsive-sizing(column-gap, $gaps);

  @include mq($from: $stage-switch-breakpoint) {
    grid-template-columns: 1fr 1fr;
  }
}

.stage__content {
  align-items: stretch;
  display: flex;
  flex-direction: column;

  &:not(:only-child) {
    --stage-content-gap: calc(var(--stage-breadcrumb-gap) * 2);
  }

  @include use-responsive-sizing(padding-block, responsive-map(xs 3rem, l 5rem));
  @include use-responsive-sizing(--stage-breadcrumb-gap, (xs: 2.4rem, xl: 5rem));
}

.stage__breadcrumb {
  margin-block-end: var(--stage-breadcrumb-gap);
}

.stage__text-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: var(--stage-content-align);

  @include mq($from: $stage-switch-breakpoint) {
    padding-block-end: var(--stage-content-gap, var(--stage-breadcrumb-gap));
  }
}

.stage__headline {
  --line-clamp: 4;
}

.stage__text {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: var(--line-height-default);
  margin-block-start: 3rem;
}

.stage__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-block-start: 3rem;
}

.stage__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-block-start: 3rem;
}

.stage__detail {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.stage__detail-label {
  flex-shrink: 0;
  font-size: 3rem;
}

.stage__detail-text {
  font-size: 1.6rem;
  line-height: var(--line-height-default);
}

.stage__image-container {
  align-self: stretch;
  display: flex;
  flex-direction: column-reverse;
  flex-grow: 1;
  flex-shrink: 0;
  justify-content: stretch;

  @include mq($until: $stage-switch-breakpoint) {
    @include use-break-out();
  }

  @include mq($from: $stage-switch-breakpoint) {
    transform: translateX(var(--body-padding));
  }
}

.stage__image {
  flex-shrink: 0;
  position: relative;
}

.stage__copyright {
  inset-block-end: 0;
  inset-inline-end: 0;
  position: absolute;
  z-index: 2;
}

.stage__logo {
  --image-max-width: var(--stage-logo-width);
  --image-max-height: var(--stage-logo-height);

  align-items: center;
  background-color: var(--color-white);
  display: flex;
  flex-grow: 1;
  justify-content: center;
  padding-block: 5rem;

  @include use-responsive-sizing(padding-inline, responsive-map(xs 2rem, xl 5rem));
}
