/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    background: linear-gradient(135deg, #FBF8F3 0%, #FFFEF9 100%);
    color: #4A4A4A;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

h1, h2, h3 {
    color: #8B5A2B;
    font-family: 'Georgia', serif;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    letter-spacing: 1px;
}

h1 {
    font-size: 2.5rem;
    color: #D4AF37;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Menu Button (Pizza 🍕) */
.menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.menu-button:hover {
    transform: scale(1.1);
}

/* Menu */
.menu {
    position: fixed;
    top: 80px;
    left: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 99;
    min-width: 200px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.menu.hidden {
    display: none;
}

.menu a {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.menu a:hover {
    background: #f5f5f5;
}

.menu a:last-child {
    border-bottom: none;
}

/* Registration Page */
.registration-page {
    text-align: center;
}

.greeting {
    background: rgba(255,255,255,0.98);
    padding: 2.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #D4AF37;
    position: relative;
}

.greeting::before,
.greeting::after {
    content: "♦";
    position: absolute;
    color: #D4AF37;
    font-size: 1.2rem;
}

.greeting::before {
    top: 8px;
    left: 12px;
}

.greeting::after {
    bottom: 8px;
    right: 12px;
}

.greeting h2 {
    color: #8B5A2B;
    font-size: 1.8rem;
}

.registration-form {
    background: rgba(255,255,255,0.98);
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
    border: 2px solid #D4AF37;
    position: relative;
}

.registration-form::before,
.registration-form::after {
    content: "✦";
    position: absolute;
    color: #D4AF37;
    font-size: 1.5rem;
    font-weight: bold;
}

.registration-form::before {
    top: 10px;
    left: 15px;
}

.registration-form::after {
    bottom: 10px;
    right: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 1.05rem;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #fff;
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-nav {
    background: rgba(255,255,255,0.8);
    color: #333;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #ddd;
}

.btn-nav:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Gallery Page */
.gallery-page {
    text-align: center;
}

.gallery-container {
    background: rgba(255,255,255,0.98);
    padding: 2.5rem;
    border-radius: 10px;
    margin: 2rem auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 900px;
    border: 2px solid #D4AF37;
    position: relative;
}

.gallery-container::before,
.gallery-container::after {
    content: "✦";
    position: absolute;
    color: #D4AF37;
    font-size: 1.5rem;
    font-weight: bold;
}

.gallery-container::before {
    top: 10px;
    left: 15px;
}

.gallery-container::after {
    bottom: 10px;
    right: 15px;
}

.gallery {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.gallery-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-size: 4rem;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-text {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

#gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.gallery-controls.hidden {
    display: none;
}

#image-counter {
    font-weight: bold;
    min-width: 100px;
}

/* Timeline */
.timeline-container {
    margin-top: 2rem;
}

.timeline {
    position: relative;
    width: 100%;
    height: 60px;
    background: linear-gradient(to right, rgba(212,175,55,0.1), rgba(212,175,55,0.05));
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #D4AF37;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    position: absolute;
    width: 100%;
    top: 0;
}

.timeline-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #8B5A2B;
    font-family: 'Georgia', serif;
}

.timeline-slider {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30px;
    cursor: pointer;
}

.timeline-thumb {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 20px;
    height: 20px;
    background: transparent;
    border-radius: 50%;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.timeline-thumb::before {
    content: "❤️";
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .registration-form {
        padding: 1.5rem;
    }

    .gallery-controls {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .btn-nav {
        flex: 1;
        min-width: 100px;
    }

    .gallery-play-overlay {
        font-size: 3rem;
    }
}


/* Lade-Feedback Galerie */
#gallery-image.loading {
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.gallery-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.spinner-circle {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(212, 175, 55, 0.25);
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: gallery-spin 0.9s linear infinite;
}

@keyframes gallery-spin {
    to { transform: rotate(360deg); }
}
