/* --- Fonts --- */
@font-face {
    font-family: "Lumier W01 Regular";
    src: url("https://db.onlinewebfonts.com/t/f74a8aef59d9cd773480310e9eba0d40.woff2") format("woff2"),
         url("https://db.onlinewebfonts.com/t/f74a8aef59d9cd773480310e9eba0d40.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DiamondRing-Bold";
    src: url("https://db.onlinewebfonts.com/t/6b54f983c7e4b931ce2a72eeddb920f2.woff2") format("woff2"),
         url("https://db.onlinewebfonts.com/t/6b54f983c7e4b931ce2a72eeddb920f2.woff") format("woff");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* --- Global Styles --- */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden; /* kein horizontaler Scroll */
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, #0e0a5f, #661bda);
    text-align: center;
    cursor: default;
    box-sizing: border-box;
}

/* --- Poster Container --- */
.poster {
    max-width: 95vw;
    padding: 0 2vw;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
}

/* --- Wedding Text --- */
.wedding {
    color: #ffe406;
    margin-bottom: 1rem;
    font-family: "Lumier W01 Regular";
    font-size: clamp(1rem, 5vw, 2rem);
    text-transform: uppercase;
}

/* --- Names --- */
.names {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 2vw, 3rem);
    color: #ffe406;
    justify-content: center;
    font-family: "Lumier W01 Regular";
    font-size: clamp(1rem, 5vw, 2rem);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* --- Save-the-date --- */
.save-the-date {
    margin: 1rem;
    color: #796fb8;
    font-family: "DiamondRing-Bold";
    font-size: clamp(10rem, 30vw, 12rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1; 
    word-break: break-word; /* verhindert Overflow bei sehr langen Texten */
}

/* --- Date --- */
.date {
    color: #bab1f5;
    font-family: "Lumier W01 Regular";
    font-size: clamp(1rem, 5vw, 2rem);
}

/* --- Stars Background --- */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden; /* verhindert, dass Sterne rauslaufen */
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.2; }
}

/* --- Media Queries für kleine Geräte --- */
@media (max-width: 480px) {
    .wedding, .names, .date {
        font-size: clamp(1rem, 6vw, 2.5rem);
    }

    .save-the-date {
        font-size: clamp(5rem, 25vw, 10rem);
    }

    .names {
        gap: 1rem;
    }
}
