.postcard-wrapper {
    width: 100%;
    max-width: 800px; 
    margin: 20px auto;
    font-family: sans-serif;
}


#postcard {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    overflow: hidden; 
    background-color: #fff;
    line-height: 0; 
	container-type: inline-size;
    position: relative;
}
#postcard img {
    z-index: 1;
    pointer-events: none; /* Das Bild selbst muss keine Klicks abfangen */
}

#text-output-1, #text-output-2 {
    pointer-events: none; 
}

#postcard-qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

#postcard-qrcode img {
    max-width: 100% !important;
    height: auto !important;
}

#makePostcard {
    background-color: #0073aa; 
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: inline-block;
}

#makePostcard:hover {
    background-color: #005177;
    transform: scale(1.05); /* Leichter Zoom-Effekt beim Hover */
}

#makePostcard:active {
    transform: scale(0.98); /* Klick-Effekt */
}
/* Styling für die Eingabefelder des Gastes */
.guest-input {
    font-family: inherit; /* Nutzt die Schrift der Karte */
    outline: none;
    transition: background-color 0.3s;
    display: block;
    box-sizing: border-box;
}

.guest-input:hover {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: text;
}

.guest-input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px dashed rgba(0, 0, 0, 0.2) !important;
}
#text-output-1, 
#text-output-2, 
.guest-input {
    pointer-events: auto !important; /* Erlaubt Klicks und Auswahl */
    z-index: 10;                    /* Stellt sicher, dass sie über dem Bild liegen */
    position: absolute;             /* Notwendig für die Z-Index-Wirkung */
    cursor: text;                   /* Zeigt dem Gast, dass er hier schreiben kann */
    user-select: text !important;   /* Erlaubt das Markieren von Text */
	font-size: inherit;
    -webkit-user-select: text !important;
}

.guest-input::-webkit-scrollbar {
    display: none;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .postcard-wrapper {
        margin: 10px auto;
    }
    
    #makePostcard {
        width: 90%; /* Button fast volle Breite auf dem Handy */
        padding: 18px;
    }
}