
/* =========================================================
   WEBSITE LOADER
   ========================================================= */

#website-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #0a0a0a;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

#website-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.website-loader-content {
  width: min(380px, 80vw);

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.website-loader-logo {
  width: 180px;
  max-width: 70%;
  height: auto;

  display: block;
  margin-bottom: 35px;

  object-fit: contain;
}

.website-loader-bar {
  width: 100%;
  height: 4px;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.website-loader-progress {
  width: 0%;
  height: 100%;

  background: #ffffff;
  border-radius: inherit;

  transition:
    width 0.35s ease;
}

#website-loader-text {
  margin: 16px 0 0;

  color: rgba(255, 255, 255, 0.7);

  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Während des Ladens kein Scrollen */

html.loading,
html.loading body {
  overflow: hidden;
}