/* Einfaches, freundliches Weihnachts-Design */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #0b1726, #16324f);
    color: #fdfdfd;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Schneeflocken-Overlay */
.snow {
    pointer-events: none;
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.snow::before,
.snow::after {
    content: "";
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.65;
}

/* Zwei Ebenen mit leicht unterschiedlicher Geschwindigkeit für mehr Tiefe */
.snow::before {
    background-image:
        radial-gradient(3px 3px at 20px 20px, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
        radial-gradient(2px 2px at 80px 60px, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
        radial-gradient(2px 2px at 140px 120px, rgba(255, 255, 255, 0.9) 50%, transparent 51%);
    animation: snow-fall 18s linear infinite;
}

.snow::after {
    background-image:
        radial-gradient(2px 2px at 40px 40px, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
        radial-gradient(3px 3px at 120px 80px, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
        radial-gradient(2px 2px at 160px 150px, rgba(255, 255, 255, 0.75) 50%, transparent 51%);
    animation: snow-fall 26s linear infinite;
}

@keyframes snow-fall {
    0% {
        transform: translate3d(0, -100px, 0);
    }
    100% {
        transform: translate3d(-60px, 100vh, 0);
    }
}

.header {
    text-align: center;
    padding: 2.5rem 1.5rem 1.5rem;
}

.header h1 {
    margin: 0 0 0.5rem;
    font-size: 2.2rem;
}

.header p {
    margin: 0;
    color: #d6e4ff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem 2.5rem;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.card {
    background: rgba(9, 16, 30, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

textarea,
select,
input[type="text"] {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.6rem 0.75rem;
    background: rgba(7, 15, 32, 0.95);
    color: #fdfdfd;
    font: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

textarea:focus,
select:focus,
input[type="text"]:focus {
    border-color: #ffcd4f;
    box-shadow: 0 0 0 1px rgba(255, 205, 79, 0.4);
    background: rgba(10, 18, 36, 0.98);
}

textarea[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #ffcd4f, #ff8b3d);
    color: #201200;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.6);
    filter: brightness(1.05);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #f4f6ff;
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.reset-form {
    margin-top: 0.75rem;
}

.draw-form {
    margin-top: 0.75rem;
}

.draw-form select {
    margin-bottom: 0.5rem;
}

.alert {
    max-width: 960px;
    margin: 0 1.5rem 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(255, 82, 82, 0.16);
    border: 1px solid rgba(255, 138, 138, 0.6);
    color: #ffe9e9;
}

.alert-success {
    background: rgba(96, 255, 186, 0.12);
    border: 1px solid rgba(96, 255, 186, 0.55);
    color: #e4fff7;
}

.info-text {
    font-size: 0.9rem;
    color: #d6e4ff;
    margin-bottom: 0.9rem;
}

.result {
    margin-top: 1.1rem;
    padding: 1rem;
    border-radius: 0.9rem;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 55%),
                rgba(10, 20, 40, 0.95);
    border: 1px solid rgba(255, 205, 79, 0.6);
    text-align: center;
}

.result-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0.4rem;
}

.footer {
    margin-top: auto;
    padding: 0.75rem 1.5rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #9fb3da;
}

@media (max-width: 600px) {
    .header {
        padding-top: 2rem;
        padding-bottom: 1.25rem;
    }

    .header h1 {
        font-size: 1.8rem;
    }
}


