main {
  position: relative;
}

/* Global overflow fixes applied on html/body later */
/* Expand Hero Section */
.expand-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: white; /* creates the surrounding dark frame initially */
}

.expand-hero__frame {
  position: relative;
  /* initial: smaller inset rounded container like screenshot */
  width: calc(100vw - 24vw);
  height: calc(100vh - 24vh);
  margin: 6vh 6vw; /* stronger inset around the frame */
  overflow: hidden;
  background: white; /* fallback in case image not loaded */
}

.expand-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: center;
  /* start with no zoom; we animate only the frame on scroll */
  transform: none;
}

.expand-hero__title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  font-size: clamp(3rem, 12vw, 9rem);
  mix-blend-mode: normal;
  padding: 0 4vw;
  text-align: center;
}

@media (max-width: 512px) {
  .expand-hero__title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .expand-hero__frame {
    width: calc(100vw - 28vw);
    height: calc(100vh - 32vh);
    margin: 16vh 14vw;
  }
}

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

html,
body {
  .expand-links {
    display: grid;
    grid-template-rows: 100vh 100vh 100vh;
  }

  .expand-link {
    position: relative;
    display: grid;
    place-items: center;
    height: 100vh;
    text-decoration: none;
    color: black; /* inverted scheme: light text on dark or vice versa */
    background: white; /* base white background */
    overflow: hidden;
  }

  .expand-link__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform-origin: center;
    margin: 3vh 3vw; /* create black frame around */
    width: calc(100% - 6vw);
    height: calc(100% - 6vh);
    transform: scale(0.85);
  }

  .expand-link__title {
    position: relative;
    z-index: 2;
    font-family: AlphaLyrae, system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 12vw, 14rem);
    letter-spacing: 0.02em;
    color: black; /* inverted: black text over white container */
    top: var(--inset-v);
    bottom: var(--inset-v);
    left: var(--inset-h);
    right: var(--inset-h);
  }

  @media (max-width: 900px) {
    .expand-link__bg {
      margin: 2vh 4vw;
      width: calc(100% - 8vw);
      height: calc(100% - 4vh);
      transform: scale(0.9);
    }
    .expand-link__title {
      font-size: clamp(2.4rem, 14vw, 8rem);
    }
  }
  overflow-x: hidden;
  width: 100vw;
}

:root {
  font-size: 14px;
  --color-text: #111;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f6f6;
  --color-link: #0b0b0b;
  --color-link-hover: #ffcb0c;
  --color-title: #111;
}

body {
  margin: 0;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
  cursor: pointer;
}

a:hover {
  color: var(--color-link-hover);
  outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
  /* Provide a fallback style for browsers
	 that don't support :focus-visible */
  outline: none;
  background: lightgrey;
}

a:focus:not(:focus-visible) {
  /* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
  background: transparent;
}

a:focus-visible {
  /* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
  outline: 2px solid red;
  background: transparent;
}

.unbutton {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.unbutton:focus {
  outline: none;
}

.content__title {
  font-size: 2rem;
  font-weight: normal;
}

.content-wrap {
  display: grid;
  gap: 40vh;
}

.content {
  flex: none;
  display: grid;
  place-items: center;
  line-height: 1.2;
  grid-template-areas: "title" "layout" "...";
  grid-template-rows: 3.5vw auto 3.5vw;
  gap: 1rem;
}

.content--intro {
  grid-area: intro;
}

.content__img-wrap {
  grid-area: layout;
}

.content__img {
  --img-width: 80vw;
  --img-height: 40vh;
  --img-ar: auto;
  --img-inner-margin-x: 0px;
  --img-inner-margin-y: 0px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: var(--img-width);
  height: var(--img-height);
  aspect-ratio: var(--img-ar);
}

.content__img--2 {
  --img-width: 100vw;
  --img-height: 100vh;
}

.content__img-inner {
  grid-area: 1 / -1;
  width: calc(100% + var(--img-inner-margin-x) * 2);
  height: calc(100% + var(--img-inner-margin-y) * 2);
  background-size: cover;
  background-position: 50% 50%;
}
.content__img-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content__img-inner {
  position: relative;
}
.video-mobile {
  display: none;
}
@media (max-width: 900px) {
  .video-desktop {
    display: none;
  }
  .video-mobile {
    display: block;
  }
}

.content__img-inner--hidden {
  opacity: 0;
}

.content__text {
  font-family: Arial, sans-serif;
  position: relative;
  z-index: 100;
  grid-area: title;
  text-transform: uppercase;
  font-size: 52px;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-weight: bold;
  font-family: Arial, sans-serif;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .content__text {
    font-size: 30px;
  }
}

.content__text span span {
  display: inline-block;
}

.content__text span span.whitespace {
  white-space: pre;
}

.content__text span:nth-child(3n) {
  font-feature-settings: "ss01" 1;
}

.content__text--large {
  font-size: clamp(2rem, 7vw, 6rem);
}

.content__text--center {
  text-align: center;
  align-self: stretch;
  justify-content: space-between;
  grid-row: 1 / span 3;
}

.content__text--left {
  justify-self: start;
  padding: 3rem;
  grid-area: layout;
  align-self: center;
  width: 100%;
}

.content__text-tiny {
  text-transform: none;
  font-family: "Tenon", sans-serif;
  font-size: 1.3rem;
  font-weight: 300;
  max-width: min(500px, 90%);
  line-height: 1.2;
  margin-top: 0px;
  color: #65a518;
  background-color: white;
  padding: 2rem;
  font-weight: bold;
  margin-top: -1rem;
}

@media screen and (min-width: 53em) {
  .frame {
    grid-template-columns: 1fr auto auto auto;
    grid-template-areas: "title back prev sponsor";
    justify-items: start;
    grid-gap: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  .frame__prev {
    justify-self: end;
  }

  .title {
    font-size: clamp(2rem, 15vw, 9rem);
  }

  .content__img--4 {
    --img-width: 30vw;
  }

  .content__img--5 {
    --img-width: 40vw;
  }

  .card-wrap {
    grid-template-columns: repeat(3, 250px);
  }

  body #cdawrap {
    justify-self: end;
  }
}

/* =============================
   Footer
   ============================= */
.site-footer {
  margin: 0 auto;
  color: var(--color-text);
  margin-top: -8rem;
  z-index: 100;
  position: relative;
  display: flex;
  justify-content: center;
  position: absolute;
  width: 100%;
  bottom: 0;
  margin-top: -3rem;
}
.site-footer__inner {
  display: flex;
  align-items: center; /* left aligned */
  gap: 2rem;
}
.site-footer__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-footer__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: #111;
  opacity: 0.9;
}
.site-footer__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.site-footer__icon:hover {
  opacity: 1;
}
.site-footer__link {
  color: var(--color-link);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-footer__link:hover {
  color: var(--color-link-hover);
}
.site-footer__sep {
  opacity: 0.4;
  padding: 0 0.25rem;
}

.content__img--2 {
  position: relative;
  cursor: pointer;
}

.img__tease {
  content: "Jetzt ganzen Spot ansehen";
  position: absolute;
  background: white;
  color: black;
  bottom: 0px;
  right: 0px;
  font-size: 32px;
  font-weight: bold;
  padding: 1rem 2rem;
}

.hero__title {
  color: white;
  background-color: #65a518;
  padding: 2rem;
  margin-left: 2rem;
  margin-bottom: 0px;
  width: fit-content;
  z-index: 10;
}

.slider__title {
  margin-bottom: 4rem;
}

.bg-gray {
  background-color: #f9f9fa;
}

.story__link {
  text-decoration: none;
}

.story__link:hover {
  text-decoration: underline;
  color: white;
}

.headline {
  color: white;
  position: absolute;
  display: block;
  left: calc(50% - 40vw);
  font-size: 52px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .headline {
    font-size: 30px;
  }
}

.hero-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hero-play__icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent white;
  margin-left: 5px;
}
.hero-play[aria-pressed="true"] .hero-play__icon {
  border-width: 0 0 0 0;
  width: 20px;
  height: 20px;
  background: white;
  position: relative;
}
.hero-play[aria-pressed="true"] .hero-play__icon::before,
.hero-play[aria-pressed="true"] .hero-play__icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 6px;
  height: 20px;
  background: white;
}
.hero-play[aria-pressed="true"] .hero-play__icon::before {
  left: 0;
}
.hero-play[aria-pressed="true"] .hero-play__icon::after {
  right: 0;
}
