/* Skip-Link für Barrierefreiheit */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #faf8f3;
  color: #030303;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #030303;
  color: #faf8f3;
  text-align: center;
  letter-spacing: 1.2px;
  overflow: hidden;
  position: relative;
}

/* Dezentes animiertes Pixel-Grid als Hintergrund */
h1::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(250, 248, 243, 0.06) 0px, rgba(250, 248, 243, 0.06) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(90deg, rgba(250, 248, 243, 0.06) 0px, rgba(250, 248, 243, 0.06) 1px, transparent 1px, transparent 12px);
  background-size: 12px 12px;
  background-position: 0 0;
  opacity: 0;
  animation: gridFadeIn 0.7s ease forwards 0.5s, gridShift 18s linear infinite 1.2s;
}

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

@keyframes gridShift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 12px 12px;
  }
}

/* Light-Mode fein abdunkeln statt aufhellen */
@media (prefers-color-scheme: light) {
  body::after {
    background-image:
      repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0px, rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 12px),
      repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0px, rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 12px);
  }
}

/* Motion-respekt */
@media (prefers-reduced-motion: reduce) {
  h1::after {
    animation: gridFadeIn 0.7s ease forwards 0.5s;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  position: relative;
  z-index: 1;
}

#logoContainer {
  margin-bottom: 0.1em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.7s ease forwards 0.5s;
  position: relative;
  display: inline-block;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  outline: none;
}

#logoContainer:focus-visible {
  outline: 2px solid #faf8f3;
  outline-offset: 4px;
  border-radius: 50%;
}

#logoContainer:focus:not(:focus-visible) {
  outline: none;
}

#logoContainer svg {
  display: block;
  width: 90px;
  height: auto;
  position: relative;
  z-index: 1;
}

/* Glow-Ring um das Logo herum (nur im Circle-Modus) */
#logoContainer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 105px;
  height: 105px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  box-shadow: 0 0 10px rgba(250, 248, 243, 0.3),
              0 0 20px rgba(250, 248, 243, 0.2),
              0 0 35px rgba(250, 248, 243, 0.1);
  animation: glowFadeIn 1s ease forwards 2.5s;
  z-index: -1;
}

#logoContainer.logo-glow-active::after {
  opacity: 1;
}

#logoContainer:not(.logo-glow-inactive):not(.logo-glow-active)::after {
  animation: glowFadeIn 1s ease forwards 2.5s;
}

#logoContainer.logo-glow-inactive::after {
  opacity: 0 !important;
  animation: none;
}

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


h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.25em;
  line-height: 1.1;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards 1.2s;
}

p {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 1.4px;
  margin-top: 0;
  margin-bottom: 4.5em;
  color: #faf8f3;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards 1.5s;
}


a {
  text-decoration: none;
  color: #faf8f3;
  border: 1px solid #faf8f3;
  padding: 0.6em 1.2em;
  border-radius: 999px;
  transition: all 0.5s ease-out;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards 1.8s;
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  outline: none;
}

a:focus-visible {
  outline: 3px solid #faf8f3;
  outline-offset: 3px;
  background: rgba(250, 248, 243, 0.1);
}

a:focus:not(:focus-visible) {
  outline: none;
}

a .arrow {
  display: inline-block;
  width: 0;
  opacity: 0;
  transition: all 0.5s ease-out;
  margin-left: 0;
  font-weight: 300;
}

a:hover {
  background: #faf8f3;
  color: #030303;
  transform: scale(1.05);
  padding-right: 1.5em;
}

a:hover .arrow {
  width: auto;
  opacity: 1;
  margin-left: 0.5em;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

footer {
  width: 100%;
  padding: 20px 0;
  font-size: 0.85rem;
  font-weight: 300;
  color: #faf8f3;
  opacity: 0;
  letter-spacing: 1.2px;
  animation: fadeInFooter 1.2s ease forwards 2.1s;
  pointer-events: none;
}

@keyframes fadeInFooter {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.4;
  }
}

