:root {
    --gold: #ffd700;
    --gold-light: #ffed4e;
    --dark-bg: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: Arial, sans-serif;
    background: var(--dark-bg);
    overflow: hidden;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.container::-webkit-scrollbar {
    display: none;
}

.page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    padding: 40px 30px;
    text-align: center;
}

/* Seite 1 */
.page-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.welcome-content {
    color: white;
    z-index: 10;
    animation: fadeInUp 1.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    font-weight: normal;
    letter-spacing: 3px;
}

.welcome-content p {
    font-size: 1.8rem;
    opacity: 0.95;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
    font-size: 1rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Seite 2 */
.page-2 {
    background: linear-gradient(to bottom, #1a1a2e 0%, #16213e 100%);
    padding: 20px 20px;
}

.invitation-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 28px 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 500px;
    animation: slideIn 1s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: cover;
    display: block;
}

.invitation-text {
    color: white;
}

.invitation-text h2 {
    font-size: 1.9rem;
    margin-bottom: 18px;
    color: var(--gold);
    font-weight: normal;
    letter-spacing: 1px;
}

.invitation-text > p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: left;
}

.details-box {
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--gold);
    padding: 16px;
    margin: 18px 0;
    border-radius: 8px;
}

.details-box p {
    color: white;
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.5;
    text-align: left;
}

.details-box p:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: var(--gold);
    font-weight: bold;
}

/* Seite 3 */
.page-3 {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.countdown-container {
    color: white;
}

.countdown-container h2 {
    font-size: 1.4rem;
    margin-bottom: 60px;
    color: var(--gold);
    font-weight: normal;
    letter-spacing: 2px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    max-width: 100%;
    padding: 0 30px;
}

.countdown-item {
    background: rgba(10, 10, 20, 0.8);
    border-radius: 12px;
    padding: 0;
    border: 2px solid;
    position: relative;
    overflow: hidden;
    min-width: 60px;
    flex: 1;
    max-width: 70px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(255, 0, 255, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { border-color: #00ffff; }
    25% { border-color: #ff00ff; }
    50% { border-color: #ffff00; }
    75% { border-color: #00ff00; }
    100% { border-color: #00ffff; }
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        linear-gradient(45deg, 
            transparent 30%, 
            rgba(0, 255, 255, 0.3) 50%, 
            transparent 70%);
    animation: neonSweep 3s linear infinite;
}

@keyframes neonSweep {
    0% { transform: rotate(0deg) translate(-50%, -50%); }
    100% { transform: rotate(360deg) translate(-50%, -50%); }
}

.countdown-number {
    font-size: 2.2rem;
    font-weight: bold;
    display: block;
    line-height: 1;
    padding: 15px 5px;
    font-family: Arial, sans-serif;
    position: relative;
    z-index: 2;
    text-align: center;
    background: linear-gradient(180deg, #00ffff 0%, #ff00ff 50%, #ffff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px #00ffff) 
            drop-shadow(0 0 15px #ff00ff) 
            drop-shadow(0 0 20px #ffff00);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { 
        opacity: 1;
        filter: drop-shadow(0 0 8px #00ffff) 
                drop-shadow(0 0 15px #ff00ff) 
                drop-shadow(0 0 20px #ffff00);
    }
    50% { 
        opacity: 0.8;
        filter: drop-shadow(0 0 15px #00ffff) 
                drop-shadow(0 0 30px #ff00ff) 
                drop-shadow(0 0 40px #ffff00);
    }
}

.countdown-label {
    font-size: 0.6rem;
    padding: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.8);
    border-top: 2px solid;
    border-image: linear-gradient(90deg, #00ffff, #ff00ff, #ffff00) 1;
    font-weight: bold;
    position: relative;
    z-index: 2;
    animation: labelGlow 3s linear infinite;
}

@keyframes labelGlow {
    0% { color: #00ffff; text-shadow: 0 0 10px #00ffff; }
    33% { color: #ff00ff; text-shadow: 0 0 10px #ff00ff; }
    66% { color: #ffff00; text-shadow: 0 0 10px #ffff00; }
    100% { color: #00ffff; text-shadow: 0 0 10px #00ffff; }
}

/* Seite 4 */
.page-4 {
    background: linear-gradient(to bottom, #232526 0%, #414345 100%);
}

.music-player {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 40px 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.music-player h2 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: normal;
    letter-spacing: 2px;
}

.album-art {
    width: 280px;
    height: 280px;
    border-radius: 20px;
    margin: 0 auto 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.2);
}

.song-info {
    color: white;
    margin-bottom: 30px;
}

.song-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.song-artist {
    font-size: 1.1rem;
    opacity: 0.7;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.control-btn {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid var(--gold);
    color: var(--gold);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 215, 0, 0.4);
    transform: scale(1.1);
}

.control-btn.play-pause {
    width: 90px;
    height: 90px;
    font-size: 2rem;
}

.progress-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
}

/* Seite 5 */
.page-5 {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    overflow-y: auto;
}

.rsvp-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 35px 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    max-height: 80vh;
    overflow-y: auto;
}

.rsvp-form h2 {
    color: var(--gold);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: normal;
    letter-spacing: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-size: 1rem;
    text-align: left;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.radio-group {
    display: flex;
    gap: 25px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.radio-option input[type="radio"] {
    width: auto;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    border-radius: 40px;
    color: #1e3c72;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(255,215,0,0.3);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255,215,0,0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Navigation */
.nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dot.active {
    background: var(--gold);
    border-color: white;
    transform: scale(1.3);
}
