
/* Reset */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; 
  font-family: Arial, sans-serif;
  background-image: url('https://www.schluesseldienst-rumanes.de/scripts/rumanes-wartung.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

/* Inhalte, die scrollen dürfen */
.content {
  flex: 1;
  overflow-y: auto; /* Falls du später Inhalte hast, die gescrollt werden sollen */
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Überschrift */
h1 {
  text-align: center;
  margin: 20px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Footer fixiert am unteren Rand */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
  flex-wrap: wrap;
  z-index: 1001;
}

/* Button Styling */
.footer button {
  margin: 5px 10px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background-color: #8a8072;
  color: #fff;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.footer button:hover {
  background-color: #665c51;
}

/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Modal anzeigen */
.modal.show {
  display: flex;
}

/* Modal Content mit Scrollmöglichkeit und Begrenzung der Maximalhöhe */
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  width: 400px;
  max-height: 80vh; /* Maximalhöhe: 80% des Viewports */
  overflow-y: auto; /* Bei langen Texten scrollen */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
  box-sizing: border-box;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  transition: color 0.3s;
}
.close-btn:hover {
  color: #000;
}

/* Responsive Anpassungen */
@media (max-width: 500px) {
  .modal-content {
    width: 90%;
  }
  .footer button {
    flex: 1 1 auto;
    min-width: 100px;
    margin: 5px;
  }
}
