/* Popup für Türchen 1: Bild links, Lösungswort-Eingabe rechts */
#uhno-popup {
    display: grid;
    /* Erste Spalte genau 600px, zweite Spalte nimmt den Rest (1fr) */
    grid-template-columns: 600px 1fr;
    width: 1000px;
    height: 600px; /* Gleiche Höhe wie das Bild */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: none !important;
    background-color: rgb(27, 14, 100); /* Oder eine weihnachtliche Farbe */
    border: 3px solid #333;
    border-radius: 15px;
    overflow: hidden; /* Damit das Bild an den Ecken nicht übersteht */
    z-index: 9;
}

/* Linke Spalte (Das Bild) */
.popup-bild-bereich {
    background-image: url('../bilder/Uhno.png');
    background-size: cover;
    background-position: center;
    width: 600px;
    height: 600px;
}

.popup-text-bereich {
    padding: 40px 30px; /* Oben/unten etwas mehr Platz für die Pik-Zeichen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #d80e0e;
    position: relative; /* Wichtig, damit wir die Pik-Zeichen platzieren können */
    overflow: hidden; /* Verhindert, dass die Zeichen über den Rand hinausschauen */
    border-top: 8px solid #f1c40f;
    border-bottom: 8px solid #f1c40f;
}

/* Das Pik-Muster für oben und unten */
.popup-text-bereich::before,
.popup-text-bereich::after {
    content: "♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠ ♠";
    color: #f1c40f; /* Dein Gold-Gelb */
    font-size: 40px;
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 5px;
}

.popup-text-bereich::before {
    top: 15px;
}

.popup-text-bereich::after {
    bottom: 15px;
}

#bestaetigen-btn {
    width: 80%;
    margin-top: 30px;
    padding: 15px 30px;
    background-color: #f1c40f;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: block;
}

#schliessen-btn {
    width: 80%;
    margin-top: 15px;
    padding: 15px 30px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: block;
}

#bestaetigen-btn:active {
    background-color: #d4a500;
}

#user-eingabe {
    width: 70%;
    height: 100px; /* Schön groß zum Schreiben */
    margin-top: 15px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    resize: none; /* User soll die Box nicht verziehen können */
}

/* Handy-Layout: Bild oben, Eingabe unten gestapelt */
@media (max-width: 768px) {
    #uhno-popup {
        width: 94vw;
        max-width: 500px;
        height: auto;
        max-height: 90vh;
        grid-template-columns: 1fr;
        grid-template-rows: 220px auto;
        overflow-y: auto;
    }

    .popup-bild-bereich {
        width: 100%;
        height: 220px;
    }

    .popup-text-bereich {
        padding: 30px 20px;
        border-top: 6px solid #f1c40f;
        border-bottom: 6px solid #f1c40f;
    }

    .popup-text-bereich::before,
    .popup-text-bereich::after {
        font-size: 22px;
        letter-spacing: 3px;
    }

    #user-eingabe {
        width: 90%;
        height: 80px;
    }

    #bestaetigen-btn {
        width: 90%;
        padding: 12px 20px;
        margin-top: 20px;
        font-size: 16px;
    }
}
