/* ===== ROOT & GENERAL STYLES ===== */
:root {
    --primary-color: #d4a574;
    --secondary-color: #1a3a52;
    --accent-color: #f5f1ed;
    --text-color: #1a3a52;
    --light-text: #4a5568;
    --bg-light: #f9f7f4;
    --bg-white: #ffffff;
    --border-color: #e0d5cc;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: none;
}

.navbar.scrolled {
    box-shadow: var(--shadow);
    padding: 0.8rem 0;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
    z-index: 1001;
    /* Damit Logo über Mobile Menu liegt */
}

/* Nav Links (Desktop) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.current {
    color: var(--primary-color);
    font-weight: 700;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    z-index: 1001;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--light-text);
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    border-radius: 4px;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f5f1ed 0%, #faf8f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 500;
    font-family: 'Georgia', serif;
}

.hero-title {
    font-size: 4.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
    font-family: 'Georgia', serif;
}

.hero-date {
    font-size: 1.3rem;
    color: var(--text-color);
    letter-spacing: 2px;
    font-family: 'Georgia', serif;
    margin-bottom: 2rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-image {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(1.1) contrast(1.1);
}

/* Countdown Styles */
.countdown-timer {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    font-family: 'Georgia', serif;
    color: var(--secondary-color);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 700;
    color: var(--primary-color);
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-family: 'Georgia', serif;
    font-weight: 400;
    color: var(--light-text);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    width: 100%;
    font-family: 'Georgia', serif;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
}

/* ===== VENUE SECTION (New 2-Col Layout) ===== */
.venue-section {
    background-color: var(--bg-light);
}

.venue-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.venue-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 100%;
    /* Match content height */
    min-height: 400px;
}

.venue-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.venue-image-wrapper:hover img {
    transform: scale(1.03);
}

.venue-details {
    background-color: var(--bg-white);
    padding: 3.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.venue-details h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Georgia', serif;
}

.venue-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.venue-details p {
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.venue-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    font-size: 1rem;
}

.venue-link:hover {
    border-bottom-color: var(--primary-color);
}

/* ===== SCHEDULE SECTION (VERTICAL TIMELINE) ===== */
.schedule-section {
    background-color: var(--bg-white);
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
    display: block;
}

/* The vertical line */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: transparent;
    width: 50%;
    box-sizing: border-box;
    display: block;
    border-bottom: none;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 3rem;
    animation: none;
}

/* The dots on the line */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-white);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: background-color 0.3s;
}

.timeline-item:hover::after {
    background-color: var(--primary-color);
}

/* Left side items (Odd) */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

/* Right side items (Even) */
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Fix circle position for even items */
.timeline-item:nth-child(even)::after {
    left: -10px;
}

/* Time Styling */
.timeline-time {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* Content Box Styling */
.timeline-content {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    display: inline-block;
    text-align: center;
    min-width: 220px;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    border-right: 4px solid var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: 4px solid var(--primary-color);
}

.timeline-content p {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 500;
    font-family: 'Lora', serif;
}

/* ===== TRAVEL SECTION ===== */
.travel-section {
    background: linear-gradient(135deg, #f5f1ed 0%, #faf8f5 100%);
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.travel-card {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.travel-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
    color: var(--secondary-color);
}

.travel-card p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1rem;
}

.travel-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.travel-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: var(--transition);
}

.travel-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== INFO SECTION ===== */
.info-section {
    background-color: var(--bg-white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: linear-gradient(135deg, #f9f7f4 0%, #faf8f5 100%);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.info-card p {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.whatsapp-button {
    display: inline-block;
    margin-top: 1rem;
    background-color: #25D366;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.whatsapp-button:hover {
    background-color: #20ba58;
    transform: translateY(-2px);
}

/* Gallery */
.gallery-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.gallery-title {
    font-size: 2rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Georgia', serif;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    filter: brightness(1.05);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    animation: zoom 0.4s;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== RSVP SECTION ===== */
.rsvp-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%);
    color: white;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rsvp-section .section-title {
    color: white;
}

.rsvp-section .section-title::after {
    background-color: var(--primary-color);
}

.rsvp-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.rsvp-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.rsvp-actions .travel-link {
    display: inline-block;
}

.rsvp-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rsvp-guests {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rsvp-guest-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
}

.rsvp-guest-row .guest-name {
    min-width: 0;
}

.rsvp-guest-row .guest-food {
    min-width: 0;
}

.rsvp-form.food-hidden .guest-food {
    display: none;
}

.rsvp-form.food-hidden .rsvp-guest-row {
    grid-template-columns: minmax(0, 1fr) auto;
}


.rsvp-add-guest {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.rsvp-add-guest:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.rsvp-remove {
    justify-self: end;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.rsvp-remove:hover {
    background: rgba(255, 255, 255, 0.15);
}

.rsvp-form label,
.rsvp-legend {
    font-weight: 600;
    color: white;
    text-align: left;
    letter-spacing: 0.5px;
}

.rsvp-input,
.rsvp-select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1rem;
}

.rsvp-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.rsvp-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.rsvp-options label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: white;
    font-weight: 500;
    cursor: pointer;
}

.rsvp-options input[type="radio"] {
    accent-color: var(--primary-color);
}

.rsvp-help {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.rsvp-form.food-hidden .rsvp-help {
    display: none;
}


.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.cta-button:hover {
    background-color: #e8d4c0;
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

.footer p {
    opacity: 0.8;
}

.footer-links {
    margin-top: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        align-items: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .countdown-timer {
        justify-content: center;
    }

    /* Venue Section Mobile */
    .venue-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .venue-details {
        padding: 2.5rem;
        text-align: center;
    }

    .venue-image-wrapper {
        min-height: 250px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    /* Timeline Mobile Fixes */
    .timeline::after {
        left: 30px;
        /* Line to the left */
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left;
        /* Always left align text */
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 20px;
        /* Align dot with line */
        right: auto;
    }

    .timeline-time {
        text-align: left;
        font-size: 2rem;
    }

    .timeline-content {
        display: block;
        width: 100%;
        text-align: left;
        border-right: none !important;
        border-left: 4px solid var(--primary-color) !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .countdown-timer {
        gap: 1rem;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .nav-container {
        width: 95%;
    }

    .rsvp-actions {
        width: 100%;
        gap: 1rem;
    }

    .rsvp-actions .travel-link {
        width: 100%;
        max-width: 320px;
        text-align: center;
        line-height: 1.2;
        white-space: normal;
    }
}
