/* Sponsor-Container */
#sponsor-video-container {
  position: fixed;
  top: 0.5rem;
  right: 3rem;
  left: calc(800px + 3.5rem);
  max-width: 1500px;
  height: calc(100% - 1rem);
  z-index: 99;
  opacity: 0;
  animation: sponsorFadeIn 2s ease-in-out forwards;
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2);
}

/* Sichtbar-Schaltung */
#sponsor-video-container.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Sponsor-Bild oder -Video */
#sponsor-video,
#sponsor-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Text-Overlay */
.sponsor-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 3.8rem;
  line-height: 3.2rem;
  letter-spacing: -1px;
  color: #f4f4f4;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  padding: 2rem;
  opacity: 0;
  border-radius: 0.5rem;
  box-sizing: border-box;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* Sichtbarkeitsanimation für Text */
.sponsor-overlay-text.animate-border {
  animation: fadeInText 0.8s ease 1s forwards;
}

/* Zusätzlicher Markenname */
.sponsor-overlay-text span.kln {
  display: block;
  font-size: 1.4rem;
  line-height: 1.5rem;
  letter-spacing: 1px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Linien-Stile */
.sponsor-overlay-text::before,
.sponsor-overlay-text::after,
.sponsor-overlay-text .line-right,
.sponsor-overlay-text .line-bottom {
  content: '';
  position: absolute;
  background: #f4f4f4;
  z-index: 0;
  display: block;
  pointer-events: none;
  transform: scaleX(0);
}

/* Top-Linie */
.sponsor-overlay-text.animate-border::before {
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  animation: drawTop 0.5s linear 1.2s forwards;
}

/* Rechte Linie */
.sponsor-overlay-text.animate-border .line-right {
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  animation: drawRight 0.5s linear 1.7s forwards;
}

/* Untere Linie */
.sponsor-overlay-text.animate-border::after {
  bottom: 0;
  right: 0;
  height: 2px;
  width: 100%;
  transform-origin: right;
  animation: drawBottom 0.5s linear 2.2s forwards;
}

/* Linke Linie */
.sponsor-overlay-text.animate-border .line-bottom {
  bottom: 0;
  left: 0;
  width: 2px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: drawLeft 0.5s linear 2.7s forwards;
}

/* Inhalt über Linien */
.sponsor-overlay-text > * {
  position: relative;
  z-index: 1;
}

/* Keyframes */
@keyframes sponsorFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInText {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawTop {
  to { transform: scaleX(1); }
}

@keyframes drawRight {
  to { transform: scaleY(1); }
}

@keyframes drawBottom {
  to { transform: scaleX(1); }
}

@keyframes drawLeft {
  to { transform: scaleY(1); }
}
