/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

/* ================= BODY ================= */
body {
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
body::-webkit-scrollbar {
  display: none;
}

body {
  background-image: url("../footage/bg/BG01-1.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "le-havre", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* ================= CONTENT ================= */
.container {
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
  padding: 24px;

  text-transform: uppercase;

  /* optische Korrektur wegen Footer */
  transform: translateY(-18px);

  opacity: 0;
  will-change: opacity, transform;
  position: relative;
  z-index: 1;
}

.container.is-ready {
  opacity: 1;
  transform: translateY(-18px);
  transition: opacity 1800ms ease, transform 1800ms ease;
}

.container h1 {
  font-size: 48px;
  letter-spacing: 7px;
  margin-bottom: 10px;
  font-weight: 400;
}

.container h2 {
  font-size: 40px;
  letter-spacing: 5px;
  font-weight: 400;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .container {
    transform: translateY(-12px);
  }
  .container.is-ready {
    transform: translateY(-12px);
  }
  .container h1 {
    font-size: 35px;
  }
  .container h2 {
    font-size: 48px;
  }
}

/* ================= SPLIT REVEAL ================= */
.reveal {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
}

.reveal__half {
  flex: 1;
  background: #f3f1ec;
  will-change: transform;
}

.reveal.is-open .reveal__half--left {
  transform: translateX(-105%);
  transition: transform 1600ms cubic-bezier(0.77, 0, 0.18, 1);
}

.reveal.is-open .reveal__half--right {
  transform: translateX(105%);
  transition: transform 1600ms cubic-bezier(0.77, 0, 0.18, 1);
}

/* ================= WOBBLE ================= */
.wobble {
  display: inline-block;
  white-space: pre;
}

.container.wobble-on .wobble {
  animation: wobbleBand 2800ms cubic-bezier(.34,1.56,.64,1) infinite;
  animation-delay: var(--d, 0ms);
}

@keyframes wobbleBand {
  0%, 100% { transform: translateY(0); }
  25%      { transform: translateY(-2px); }
  50%      { transform: translateY(1px); }
  75%      { transform: translateY(-1px); }
}

/* ================= FOOTER (ANIMIERT) ================= */
.corner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;

  z-index: 5;

  background: #f3f1ec;
  padding: 10px 18px 12px 18px;


  font-size: 12px;
  letter-spacing: 1.2px;
  color: #5a5a5a;

  text-align: center;
  user-select: none;

  /* Startzustand: unsichtbar */
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}

.corner.is-ready {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1200ms ease, transform 1200ms ease;
}

.corner a {
  color: #8fa3b8;
  text-decoration: none;
  font-weight: bold;
  transition: color 800ms ease, border-color 800ms ease;
	font-size: 13px!important;
	margin-left: 0px;
}

.corner a:hover {
  color: #5f7f9f;
  font-weight: bold;
	text-decoration: none!important;
	font-size: 13px!important;
	margin-left: 0px;
}

/* ================= ACCESSIBILITY ================= */
@media (prefers-reduced-motion: reduce) {
  .container {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .reveal {
    display: none !important;
  }

  .container.wobble-on .wobble {
    animation: none !important;
  }

  .corner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
