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

body {
  background-color: #0d0d0d;
  color: #00ffae;
  font-family: 'Courier New', Courier, monospace;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

.terminal {
  text-align: center;
  padding: 3rem 1rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10; /* Facts liegen darunter */
  max-width: 800px;
  margin: 0 auto;
}

.typewriter {
  overflow: hidden;
  border-right: 0.15em solid #00ffae;
  white-space: nowrap;
  margin: 0 auto 1rem;
  font-size: 2rem;
  width: fit-content; /* <<< NEU: Begrenzung */
  animation: typing 3s steps(40, end) forwards, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  50% { border-color: transparent }
}

p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: #cccccc;
}

/* Der Bereich, in dem Fakten erlaubt sind */
#facts-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none; /* keine Klicks */
}

/* Unverändert */
.fact {
  position: absolute;
  background-color: rgba(0, 255, 174, 0.1);
  border: 1px solid #00ffae;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  max-width: 220px;
  animation: fadeIn 1s ease-in-out forwards;
  color: #00ffae;
  backdrop-filter: blur(3px);
}

/* Bereich für Fakten (außerhalb Terminal) */
.fact-safe-zone {
  position: absolute;
  top: 5vh;  /* Abstand vom oberen Rand */
  bottom: 25vh;  /* nicht über Footer oder Terminal */
  left: 5vw;
  right: 5vw;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 0.7rem;
  font-size: 0.85rem;
  color: #444;
  background-color: #000;
}
