body.neuer-eintrag {
  margin: 0;
  padding: 0;
  background: url("/static/images/Kaser2.jpg") no-repeat center center fixed;
  background-size: cover;
  font-family: sans-serif;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay-form {
  background: url("/static/images/pergament.png") no-repeat center center;
  background-size: cover;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  color: #2a1f14;
  font-family: 'EB Garamond', serif;
}

input[type="text"],
input[type="email"],
textarea,
input[type="file"],
select {
  background-color: #fdf6e3;
  color: #2a1f14;
  border: 1px solid #ccc;
}

textarea[name="comment"] {
  width: 100%;
  max-width: 500px;
  height: 200px;
  resize: vertical;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  padding: 0.6rem;
  background-color: #fdf6e3;
  color: #2a1f14;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

input[type="submit"] {
  background-color: #8c6b41;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

input[type="submit"]:hover {
  background-color: #7a5a38;
}

.page-footer {
  text-align: center;
  background-color: rgba(96, 72, 48, 0.9);
  padding: 1rem 0;
  color: #fef9f5;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  margin-top: 2rem;
  border-top: 1px solid #c4b49a;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.page-footer a {
  color: #f5e5c8;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s ease;
}

.page-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- Responsive Anpassungen --- */
@media (max-width: 1024px) {
  .overlay-form {
    max-width: 90%;
    padding: 1.5rem;
  }

  textarea[name="comment"] {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  body.neuer-eintrag {
    background-attachment: scroll; /* Fix-Problem auf mobilen Geräten */
  }

  .overlay-form {
    padding: 1rem;
    border-radius: 8px;
  }

  input[type="submit"] {
    width: 100%;
    font-size: 1rem;
  }

  textarea[name="comment"] {
    height: 150px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .overlay-form {
    padding: 0.8rem;
  }

  input[type="text"],
  input[type="email"],
  textarea,
  input[type="file"],
  select {
    font-size: 0.9rem;
  }

  textarea[name="comment"] {
    height: 120px;
  }

  .page-footer {
    font-size: 0.85rem;
  }
}
