/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/*
	@TODO: Add to theme: new division fix for updated sass package.
*/
/**==================================================================================================================================
BREAKPOINT
@TODO: remove? What is use case?? either use simple global points or write custom line. why does first breakpoint have to be 0?
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 700;
  position: fixed;
  left: 0;
  bottom: 3.125rem;
  transform: translateX(-45px);
  transition: all 0.4s;
}

span.edit-link a {
  display: block;
  padding: 0.9375rem;
}

span.edit-link:hover {
  transform: translateX(0);
}

/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * Block section background colors.
 * Include the background options ACF fields group to use these.
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
/*
	Variables for legacy dc plugins
*/
section.key-figures .section_title h2.heading-size-large {
  font-size: 2.625rem;
  font-weight: 200;
  line-height: 128%;
}

section.key-figures .section_title h3.heading-size-small {
  font-size: 1.25rem;
  font-weight: 200;
  line-height: 128%;
}

section.key-figures .key_figures__number {
  font-size: 7.5rem;
  font-weight: 200;
  color: #fff;
  line-height: 100%;
}

@media screen and (max-width: 1440px) {
  section.key-figures .key_figures__number {
    font-size: 6.25rem;
  }
}
@media screen and (max-width: 1024px) {
  section.key-figures .key_figures__number {
    font-size: 5rem;
  }
}
@media screen and (max-width: 960px) {
  section.key-figures .key_figures__number {
    font-size: 3.75rem;
  }
}
section.key-figures .title {
  font-size: 2.625rem;
  line-height: 110%;
  font-weight: 200;
  color: #fff;
  margin-top: 0.625rem;
}

@media screen and (max-width: 1440px) {
  section.key-figures .title {
    font-size: 2rem;
  }
}
@media screen and (max-width: 1024px) {
  section.key-figures .title {
    font-size: 1.625rem;
  }
}
section.key-figures .short-info {
  font-size: 1.25rem;
  font-weight: 200;
  color: #fff;
  margin-top: auto;
}

section.key-figures .key-figures__grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  grid-auto-rows: 16.25rem;
}

@media screen and (max-width: 420px) {
  section.key-figures .key-figures__grid {
    display: block;
  }
  section.key-figures .key-figures__grid .key-figures__grid-item {
    margin-bottom: 1.5rem;
  }
}
section.key-figures .key-figures__grid-item {
  grid-column: span 4;
  padding: 2rem 2.5rem;
  border-radius: 1.25rem;
  background-color: #293d56;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

@media screen and (max-width: 1024px) {
  section.key-figures .key-figures__grid-item {
    padding: 1.5rem 2rem;
  }
}
@media screen and (max-width: 960px) {
  section.key-figures .key-figures__grid-item {
    padding: 1rem 1.5rem;
  }
}
section.key-figures .key-figures__grid-item:after {
  content: "";
  filter: blur(100px);
  border-radius: 100px;
  position: absolute;
  height: 15rem;
  width: 15rem;
  background: rgba(148, 203, 197, 0.5);
}

section.key-figures .key-figures__grid-item.has-blue-background-color {
  background: linear-gradient(135deg, rgba(0, 108, 255, 0.3), rgba(0, 185, 255, 0.3)), #1f3b62;
}

section.key-figures .key-figures__grid-item.has-green-background-color {
  background: linear-gradient(135deg, rgba(148, 203, 197, 0.5), rgba(104, 145, 158, 0.4), rgba(255, 255, 255, 0.15)), #375172;
}

section.key-figures .key-figures__grid-item p {
  line-height: 1;
  align-items: baseline;
  margin: 0;
  color: #fff;
}

section.key-figures .key-figures__grid-item p span:first-child {
  white-space: nowrap;
}

@media only screen and (max-width: 1500px) {
  section.key-figures .key-figures__grid-item p .heading-size-small {
    font-size: 1.8rem;
  }
}
section.key-figures .key-figures__grid-item .key_figures__figure-holder {
  display: flex;
  flex-direction: column;
}

section.key-figures .key-figures__grid-item .key_figures__figure-holder svg {
  width: 90%;
  height: auto;
  max-width: 25rem;
  max-height: 11.25rem;
}

section.key-figures .key-figures__grid-item.size-medium {
  grid-column: span 8;
}

section.key-figures .key-figures__grid-item.size-wide {
  grid-column: span 12;
}

section.key-figures .key-figures__grid-item.height-tall {
  grid-row: span 2;
}

section.key-figures .key-figures__grid-item.height-tall .key_figures__figure-holder {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
}

@media screen and (max-width: 1024px) {
  section.key-figures .key-figures__grid-item.height-tall {
    grid-row: span 1;
  }
}
@media screen and (max-width: 767px) {
  section.key-figures .key-figures__grid-item {
    grid-column: span 12 !important;
  }
}
@media (max-width: 850px) {
  section.key-figures .key-figures__grid {
    grid-auto-rows: 13.125rem;
  }
}
@media (max-width: 650px) {
  section.key-figures .key-figures__grid {
    grid-auto-rows: initial;
  }
  section.key-figures .key-figures__grid-item {
    grid-column: span 12;
    min-height: 13.75rem;
  }
  section.key-figures .key-figures__grid-item p span {
    flex: 0 0 100%;
  }
  section.key-figures .key-figures__grid-item .key_figure-decor {
    display: none;
  }
  section.key-figures .key-figures__grid-item .big {
    font-size: 6.25rem;
  }
}
@keyframes move-blob {
  0% {
    left: -80%;
    top: 0;
  }
  50% {
    left: 80%;
    top: 60%;
  }
  100% {
    left: -80%;
    top: 23%;
  }
}
.key-figures__grid-item:nth-child(5n+1):after {
  animation: move-blob-1 8s infinite ease-in-out;
}

.key-figures__grid-item:nth-child(5n+2):after {
  animation: move-blob-2 9s infinite ease-in-out;
}

.key-figures__grid-item:nth-child(5n+3):after {
  animation: move-blob-3 10s infinite ease-in-out;
}

.key-figures__grid-item:nth-child(5n+4):after {
  animation: move-blob-4 11s infinite ease-in-out;
}

.key-figures__grid-item:nth-child(5n+5):after {
  animation: move-blob-5 12s infinite ease-in-out;
}

@keyframes move-blob-1 {
  0% {
    top: 0%;
    left: 10%;
  }
  30% {
    top: 8%;
    left: 15%;
  }
  50% {
    top: 18%;
    left: 5%;
  }
  50% {
    top: 18%;
    left: 20%;
  }
  100% {
    top: 0%;
    left: 10%;
  }
}
@keyframes move-blob-2 {
  0% {
    top: 5%;
    right: 12%;
  }
  30% {
    top: 14%;
    right: 20%;
  }
  50% {
    top: 20%;
    right: 30%;
  }
  70% {
    top: 30%;
    right: 40%;
  }
  100% {
    top: 5%;
    right: 12%;
  }
}
@keyframes move-blob-3 {
  0% {
    top: 10%;
    left: 16%;
  }
  30% {
    top: 18%;
    left: 20%;
  }
  60% {
    top: 24%;
    left: 8%;
  }
  60% {
    top: 40%;
    left: 30%;
  }
  100% {
    top: 10%;
    left: 16%;
  }
}
@keyframes move-blob-4 {
  0% {
    top: 6%;
    right: 18%;
  }
  30% {
    top: 16%;
    right: 12%;
  }
  50% {
    top: 22%;
    right: 30%;
  }
  70% {
    top: 36%;
    right: 10%;
  }
  100% {
    top: 6%;
    right: 18%;
  }
}
@keyframes move-blob-5 {
  0% {
    top: 4%;
    left: 20%;
  }
  30% {
    top: 15%;
    left: 30%;
  }
  50% {
    top: 25%;
    left: 20%;
  }
  70% {
    top: 18%;
    left: 10%;
  }
  100% {
    top: 4%;
    left: 20%;
  }
}
