:root {
    --rose-gold: #d4a574;
    --rose-gold-light: #e8c4a0;
    --beige: #f5f1e8;
    --beige-dark: #e8e0d5;
    --sage: #9ca986;
    --terracotta: #c08470;
    --cream: #faf8f3;
    --brown: #6b5b4a;
}

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

body {
    font-family: 'Georgia', serif;
    background: var(--beige);
    overflow: hidden;
}

#petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.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: 32px 24px;
    text-align: center;
}

/* Seite 1 - Willkommen */
.page-1 {
    background: linear-gradient(135deg, var(--beige) 0%, var(--cream) 100%);
}

.welcome-content {
    color: var(--brown);
    z-index: 10;
    animation: fadeInUp 2s ease;
}

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

.ornament-top,
.ornament-bottom {
    font-size: 32px;
    color: var(--rose-gold);
    margin: 12px 0;
    opacity: 0.8;
}

.welcome-content h1 {
    font-size: 48px;
    margin: 18px 0;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--brown);
    font-family: 'Georgia', serif;
}

.divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rose-gold), transparent);
    margin: 18px auto;
}

.welcome-content p {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--brown);
    opacity: 0.9;
}

/* Seite 2 - Einladung */
.page-2 {
    background: linear-gradient(to bottom, var(--cream) 0%, var(--beige-dark) 100%);
}

.invitation-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px 18px;
    box-shadow: 0 20px 60px rgba(107, 91, 74, 0.15);
    border: 2px solid rgba(212, 165, 116, 0.2);
    width: 100%;
    max-width: 500px;
    animation: slideIn 1.2s ease;
}

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

.couple-image-container {
    margin-bottom: 20px;
}

.couple-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto;
    border: 3px solid var(--rose-gold);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 0.3);
    object-fit: cover;
    display: block;
}

.invitation-text {
    color: var(--brown);
}

.invitation-text h2 {
    font-size: 26px;
    margin-bottom: 14px;
    color: var(--rose-gold);
    font-weight: 300;
    letter-spacing: 2px;
}

.invitation-text > p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--brown);
    opacity: 0.9;
}

.details-box {
    background: rgba(212, 165, 116, 0.08);
    border-left: 3px solid var(--rose-gold);
    padding: 14px;
    margin: 16px 0;
    border-radius: 10px;
    text-align: left;
}

.details-box p {
    color: var(--brown);
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

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

.detail-label {
    color: var(--rose-gold);
    font-weight: bold;
    display: inline-block;
    min-width: 80px;
}

.love-quote {
    font-style: italic;
    opacity: 0.8;
    font-size: 14px;
    margin-top: 16px;
    color: var(--sage);
}

/* Seite 3 - Timeline */
.page-3 {
    background: linear-gradient(135deg, var(--beige-dark) 0%, var(--cream) 100%);
    overflow-y: auto;
    padding: 24px 20px;
}

.timeline-container {
    width: 100%;
    max-width: 600px;
    color: var(--brown);
}

.timeline-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--rose-gold);
    font-weight: 300;
    letter-spacing: 2px;
}

.timeline {
    position: relative;
    padding: 12px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 44px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--rose-gold), var(--sage));
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
    padding-left: 80px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-time {
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    font-size: 12px;
    font-weight: bold;
    color: var(--rose-gold);
    text-align: right;
}

.timeline-dot {
    position: absolute;
    left: 39px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rose-gold);
    border: 2px solid var(--cream);
    box-shadow: 0 0 0 2px var(--rose-gold-light);
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.6);
    padding: 10px 12px;
    border-radius: 10px;
    border-left: 3px solid var(--rose-gold);
    box-shadow: 0 5px 20px rgba(107, 91, 74, 0.1);
}

.timeline-content h3 {
    font-size: 14px;
    color: var(--brown);
    margin-bottom: 4px;
    font-weight: 500;
}

.timeline-content p {
    font-size: 12px;
    color: var(--brown);
    opacity: 0.8;
    line-height: 1.4;
}

/* Seite 4 - Countdown */
.page-4 {
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
}

.countdown-container {
    color: var(--brown);
}

.countdown-container h2 {
    font-size: 22px;
    margin-bottom: 36px;
    color: var(--rose-gold);
    font-weight: 300;
    letter-spacing: 2px;
}

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

.countdown-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 0;
    border: 2px solid var(--rose-gold);
    position: relative;
    overflow: hidden;
    min-width: 64px;
    flex: 1;
    max-width: 76px;
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-number {
    font-size: 32px;
    font-weight: 300;
    display: block;
    line-height: 1;
    padding: 16px 8px;
    font-family: 'Georgia', serif;
    color: var(--rose-gold);
    text-align: center;
}

.countdown-label {
    font-size: 11px;
    padding: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--rose-gold);
    color: white;
    font-weight: 600;
    display: block;
    text-align: center;
}

/* Seite 5 - RSVP */
.page-5 {
    background: linear-gradient(135deg, var(--beige) 0%, var(--beige-dark) 100%);
    overflow-y: auto;
    padding: 20px 16px;
}

.rsvp-form {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px 18px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(107, 91, 74, 0.15);
    border: 2px solid rgba(212, 165, 116, 0.2);
    max-height: 85vh;
    overflow-y: auto;
}

.rsvp-form h2 {
    color: var(--rose-gold);
    font-size: 22px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
}

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

.form-group label {
    display: block;
    color: var(--brown);
    margin-bottom: 5px;
    font-size: 13px;
    text-align: left;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid rgba(212, 165, 116, 0.3);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    color: var(--brown);
    font-size: 13px;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--rose-gold);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

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

.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 13px;
    color: var(--brown);
}

.radio-option input[type="radio"] {
    width: auto;
    cursor: pointer;
    accent-color: var(--rose-gold);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-light));
    border: none;
    border-radius: 28px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
    margin-top: 6px;
    font-family: 'Georgia', serif;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 165, 116, 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(212, 165, 116, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dot.active {
    background: var(--rose-gold);
    border-color: var(--cream);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

.nav-dot:hover {
    transform: scale(1.2);
    background: var(--rose-gold-light);
}

/* Floating Music Player */
.floating-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.player-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-gold), var(--rose-gold-light));
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px rgba(212, 165, 116, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.player-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(212, 165, 116, 0.7);
}

.player-toggle:active {
    transform: scale(0.95);
}

.music-icon {
    font-size: 28px;
    color: white;
    transition: all 0.3s ease;
}

.player-toggle.playing .music-icon {
    animation: musicPulse 1s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.15);
        opacity: 0.8;
    }
}

.player-toggle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--rose-gold);
    opacity: 0;
    animation: ripple 2s ease-out infinite;
}

.player-toggle.playing::after {
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive Anpassungen */
@media (max-width: 480px) {
    .welcome-content h1 {
        font-size: 36px;
        letter-spacing: 3px;
    }
    
    .timeline-container h2 {
        font-size: 24px;
    }
    
    .countdown-item {
        min-width: 56px;
        max-width: 66px;
    }
    
    .countdown-number {
        font-size: 28px;
        padding: 12px 6px;
    }
    
    .floating-player {
        bottom: 20px;
        right: 20px;
    }
    
    .player-toggle {
        width: 60px;
        height: 60px;
    }
    
    .music-icon {
        font-size: 24px;
    }
}
