/* Das Overlay, das den gesamten Bildschirm abdeckt */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Halbtransparentes Schwarz */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000; /* Es wird über allen anderen Inhalten angezeigt */
    overflow-y: auto; /* Erlaubt das Scrollen */
    padding: 20px; /* Damit der Inhalt etwas Abstand vom Rand hat */
}

/* Stellt sicher, dass das Scrollen nur innerhalb des Overlays möglich ist */
.overlay-content {
    text-align: center;
    max-width: 90%;
    margin: 0 20px;
    max-height: 90%; /* Maximale Höhe, um Überlauf zu vermeiden */
}

/* Der Rest des CSS bleibt gleich */

.overlay h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.overlay p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.button-container {
    display: center;
    gap: 20px;
}

.button {
    padding: 15px 30px;
    font-size: 1rem;
    cursor: pointer;
    background-color: #007BFF;
    border: none;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0056b3;
}
