/* Reset & Grundgerüst */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #f8fafc;
  background-color: #020617;
}

body {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 1.5rem 0;
  user-select: none;
  overflow-x: hidden;
}

/* 1. Hintergrundbild: gestochen scharf ohne Weichzeichner */
.bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('img/background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 2. Abdunkelung: Klar abgedunkelt (50% Schwarz), kein Blur */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-color: rgba(2, 6, 23, 0.88);
}

/* 3. Puffer oben */
.spacer-top {
  position: relative;
  z-index: 2;
  height: 2.5rem;
}

/* Mitte: Logo exakt auf voller Breite ausrichten */
.logo-container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo-img {
  width: 11rem;
  max-width: 80vw;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .logo-img {
    width: 15rem;
  }
}

@media (min-width: 768px) {
  .logo-img {
    width: 18rem;
  }
}

/* Footer: Exakte Zentrierung */
.footer-container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}

.hosted-by {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2e8f0;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.sponsor-link {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sponsor-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.sponsor-img {
  border-radius: 3px;
  display: block;
}

.copyright {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 0.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}