/* Allgemeine Stile */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

html {
    /* Hintergrundfarbe und Farbverlauf für das html-Element */
    background: #833ab4; /* Fallback */
    background: -webkit-linear-gradient(to bottom right, #833ab4, #fd1d1d, #fcb045); /* Safari */
    background: linear-gradient(to bottom right, #833ab4, #fd1d1d, #fcb045); /* Standard */
}

body {
    font-family: Arial, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden; /* Verhindert Scrollen */
    position: relative;
}

/* Hintergrundbilder */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* Desktop: 8 Bilder */
    gap: 10px; /* Abstand zwischen Bildern */
    z-index: -1; /* Hinter den restlichen Inhalten */
    pointer-events: none; /* Verhindert Interaktion mit den Bildern */
}

.background-overlay img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Immer quadratisch */
    object-fit: cover;
    opacity: 0.4; /* Transparenz */
    border-radius: 5px;
}

/* Responsive Anpassung für kleinere Geräte */
@media (max-width: 1024px) {
    .background-overlay {
        grid-template-columns: repeat(4, 1fr); /* Tablet & Handy: 4 Bilder */
    }
}

/* Container */
.container {
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Fragen und Antworten */
h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.question {
    margin: 25px 0;
}

.answers button {
    background: #ffffff;
    color: #421e71;
    border: 2px solid #421e71;
    padding: 12px 20px;
    margin: 10px 5px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.answers button:hover {
    background: #421e71;
    color: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Registrierung */
.hidden {
    display: none;
}

.register input {
    width: calc(100% - 20px);
    max-width: 360px;
    padding: 12px;
    margin: 12px auto;
    border: 2px solid #421e71;
    border-radius: 8px;
    font-size: 1em;
    display: block;
    background: #fff;
    color: #000;
    text-align: center;
}

.register button {
    background: #421e71;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    max-width: 360px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 12px auto;
    display: block;
}

.register button:hover {
    background: #2e154e;
}

/* OneSignal Cancel Button verstecken */
div.onesignal-slidedown-cancel-button,
div.onesignal-slidedown-cancel-button * {
    display: none !important;
}

/* Safari-spezifisches Styling */
@supports (-webkit-touch-callout: none) {
    html {
        background: -webkit-linear-gradient(to bottom right, #833ab4, #fd1d1d, #fcb045);
    }
}
