/* allgemeine Layout- und Typografie */
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}
.container {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    padding: 2rem;
    max-width: 600px; /* Beschränke Gesamtbreite */
    margin: 0 auto; /* horizontale Zentrierung */
}

/* responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
        max-width: 90%;
    }
    h1 {
        font-size: 2.5rem;
    }
    p.message {
        font-size: 1.1rem;
    }
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}
h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
p.message {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Button-Stile (neu und lila) */
:root {
    --btn-radius: 0.4rem;
    --btn-padding-vertical: 0.45rem;
    --btn-padding-horizontal: 0.9rem;
    --btn-transition: 0.25s ease;
    --primary-gradient: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%); /* violett */
    --secondary-gradient: linear-gradient(135deg, #444 0%, #666 100%);
    --glow-color: rgba(142, 45, 226, 0.75);
}

.btn {
    --mouse-x: 50%;
    --mouse-y: 50%;
    display: inline-block;
    padding: var(--btn-padding-vertical) var(--btn-padding-horizontal);
    text-decoration: none;
    border-radius: var(--btn-radius);
    background: var(--primary-gradient);
    background-repeat: no-repeat;
    background-position: var(--mouse-x) var(--mouse-y);
    background-size: 200% 200%;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: transform var(--btn-transition), background-position 0.1s, background var(--btn-transition), box-shadow var(--btn-transition);
    max-width: 100%;
    white-space: nowrap;
}

/* ripple effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
}
.btn:active::before {
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: none;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px var(--glow-color);
    animation: purple-glow 2s ease-in-out infinite alternate;
}

/* primary/secondary variants */
.btn-primary {
    background: var(--primary-gradient);
}
.btn-secondary {
    background: var(--secondary-gradient);
}

.btn-secondary:hover,
.btn-primary:hover {
    filter: brightness(1.1);
}

/* add a subtle shine animation on hover */
.btn:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transform: skewX(-25deg);
    animation: shine 1s ease-in-out;
}

@keyframes shine {
    to { left: 125%; }
}

/* pulsing purple glow */
@keyframes purple-glow {
    0% { box-shadow: 0 0 10px var(--glow-color); }
    100% { box-shadow: 0 0 30px rgba(142, 45, 226, 1); }
}

/* pop animation for click */
.btn.clicked {
    animation: click-pop 0.5s ease-out forwards;
}

@keyframes click-pop {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.2) translateY(-3px); }
    100% { transform: scale(1) translateY(0); }
}

/* confetti pieces for JS effect */
.confetti-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

