/* --- Grundlayout --- */
body {
  background: url('/images/background.png');
  background-size: cover;
  font-family: 'Georgia', serif;
  color: #2b1d0e;
  padding: 2rem;
  line-height: 1.7;
  text-align: center; /* wichtig für außenliegenden Text */
}

/* --- Schriftrolle --- */
.scroll {
  max-width: 700px;
  margin: auto;
  background-color: rgba(255, 255, 240, 0.85);
  padding: 2rem;
  border: 2px solid #3a2d1f;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

/* --- Überschrift --- */
h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* --- Textbereich --- */
.section p {
  text-align: center;
  font-size: 1.1rem;
}

/* --- Input zentrieren --- */
#codewort {
  display: block;
  margin: 1.5rem auto 0 auto;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #3a2d1f;
  border-radius: 6px;
  background-color: #fffef5;
  text-align: center;
}

/* --- Nachrichtenzeile außerhalb --- */
.msg,
body > :not(.scroll):not(script) {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  color: darkred;
}


/* --- Warnnachricht (außen) --- */
.msg {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  font-family: 'Georgia', serif;
  color: darkred;

  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* sichtbar + pulsierend */
.msg.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  animation: pulseWarning 2.5s infinite;
}

/* Puls-Animation: langsam, atmend, nicht hektisch */
@keyframes pulseWarning {
  0% {
    text-shadow: 0 0 0 rgba(139, 0, 0, 0.2);
  }
  50% {
    text-shadow: 0 0 18px rgba(139, 0, 0, 0.8);
  }
  100% {
    text-shadow: 0 0 0 rgba(139, 0, 0, 0.2);
  }
}


/* --- 404 Seite --- */
body.notfound {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

body.notfound .scroll {
  text-align: center;
}
body.notfound .scroll h1{
  animation: pulseWarning 1s infinite;
}
