/* Custom Fonts */
@font-face {
    font-family: 'ThePicnicClub';
    src: url('fonts/ThePicnicClub-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ThePicnicClub';
    src: url('fonts/ThePicnicClub-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'CaliforniaPalms';
    src: url('fonts/CaliforniaPalms.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Ensure local fonts are used across the site and load with swap for better UX */
@font-face {
    font-family: 'ThePicnicClub';
    src: url('fonts/ThePicnicClub-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'ThePicnicClub';
    src: url('fonts/ThePicnicClub-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'CaliforniaPalms';
    src: url('fonts/CaliforniaPalms.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Color Palette - Inspired by Bali destination wedding */
:root {
    --primary-color: #d4a574;        /* Warm gold */
    --secondary-color: #c9a690;      /* Soft terracotta */
    --accent-color: #b89b7e;         /* Muted gold */
    --text-dark: #3a3a3a;            /* Dark gray */
    --text-light: #6b6b6b;           /* Medium gray */
    --bg-light: #faf8f5;             /* Warm white */
    --bg-cream: #f5f1eb;             /* Cream */
    --bali-blue: #1e5f74;            /* Tropical blue */
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* account for fixed navbar when using anchors */
}

body {
    font-family: 'ThePicnicClub', 'CaliforniaPalms', cursive, serif;
    color: var(--text-dark);
    line-height: 1.232;
    background-color: var(--bg-light);
    /* Prevent horizontal scroll */
    overflow-x: hidden;
}

/* Utility class for preventing scroll when modal is open */
body.modal-open {
    overflow: hidden;
    /* Prevent shift when scrollbar disappears */
    padding-right: var(--scrollbar-width, 0);
}

/* Ensure form controls, links and interactive elements also use the custom font */
button, input, textarea, select, a {
    font-family: inherit;
}

/* Headings should use the decorative heading font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'CaliforniaPalms', 'ThePicnicClub', serif, cursive;
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 999;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'CaliforniaPalms', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
    transform-origin: center; /* prepare for X animation */
}

/* Hamburger to X animation */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    #background: linear-gradient(135deg, rgba(212, 165, 116, 0.5), rgba(245, 241, 235, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
}

.names {
    font-size: clamp(2rem, 10vw, 5rem);
    font-weight: 300;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: clamp(2.5rem, 12vw, 6.8rem);
    font-weight: 300;
    color: var(--white);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.wedding-date {
    font-size: 2rem;
    font-family: 'CaliforniaPalms', 'ThePicnicClub', serif, cursive;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.wedding-location {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 300;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.cta-button:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

/* Section Styles */
section {
    padding: 100px 0;
    scroll-margin-top: 80px; /* account for fixed navbar */
    /* animation defaults: sections start hidden and slide up into view */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

/* when a section enters viewport we add the class `in-view` */
section.in-view {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: clamp(2.1rem, 7vw, 4.2rem);
    text-align: center;
    margin-bottom: -1rem;
    color: var(--primary-color);
    font-weight: 300;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 7vw, 3.8rem);
    color: var(--text-light);
    font-weight: 300;
}

/* Top Secret Section - Image with Overlay */
.top-secret-container {
    position: relative;
    width: 100%;
    height: 80vh;
    max-height: 720px;
    margin: 3rem 0;
    border-radius: 10px;
    overflow: hidden;
}

.top-secret-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-secret-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}

.top-secret-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    font-family: 'CaliforniaPalms', 'ThePicnicClub', serif, cursive;
}

.top-secret-text {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: white;
    max-width: 700px;
    line-height: 1.6;
    font-weight: 300;
}

/* Section intro: centered with consistent spacing before and after next element */
.section-intro {
    max-width: 900px;
    margin: 1.5rem auto 2.5rem; /* top, horizontal center, bottom spacing */
    padding: 0 20px;
    text-align: center;
    color: var(--text-light);
    line-height: 1.309;
    font-size: clamp(1rem, 3vw, 1.5rem);
}
.section-intro p {
    margin-bottom: 0.6rem;
}

/* Ensure emphasized headings inside section-intro appear visibly bold
   Some decorative fonts (e.g. 'ThePicnicClub') contain only a single weight
   so explicit font-family fallback + weight ensures bold rendering. */
.section-intro p strong,
.section-intro p b {
    /* Increase size rather than relying on bold weight */
    font-weight: 400; /* keep original font weight */
    font-size: 1.5rem; /* larger label */
    line-height: 0.924;
    display: block; /* ensure it sits on its own line */
    margin-bottom: 0.25rem;
}

@media (max-width: 480px) {
    .section-intro p strong,
    .section-intro p b {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .section-intro {
        margin: 1rem auto 1.6rem;
        padding: 0 12px;
    }
}

.welcome-message {
    background-color: var(--accent-color);
    padding-top: 25px;
    padding-bottom: 25px;
}

.welcome-box {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    text-align: center;
    color: var(--text-dark);
    max-width: 72%;
    margin: 0 auto 3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.welcome-message .welcome-box {
    color: white;
}

.welcome-message .welcome-box strong {
    color: white;
    font-weight: 600;
}

.welcome-box strong {
    font-weight: 600;
    color: var(--primary-color);
}

/* small reusable fade-in utility for cards and other elements */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}
.fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* optimize hero content rendering for transforms/opacity */
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
}

/* Timeline Section (Ablauf) */
.ablauf {
    background-color: var(--bg-light);
}

.early-arrival-info {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(201, 166, 144, 0.1) 100%);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 50px;
    border-left: 5px solid var(--primary-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.early-arrival-info p {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.early-arrival-info p:last-child {
    margin-bottom: 0;
}

/* Ablauf Cards */
.ablauf-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.ablauf-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 3px 15px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-align: center;
    border-top: 4px solid var(--primary-color);
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ablauf-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px 20px;
}

.ablauf-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-top-color: var(--secondary-color);
}

.ablauf-card.highlight {
    /* Match standard card appearance so highlight only affects content if needed */
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 3px 15px var(--shadow);
}

.ablauf-card.highlight .card-content {
    background: var(--white);
}

.card-icon {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 15px;
}

.ablauf-card h3 {
    font-family: 'CaliforniaPalms', 'ThePicnicClub', serif, cursive;
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: 5px;
}

.card-date {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Title for the small card previews in Ablauf */
.card-title {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 6px 0 8px;
}

.card-subtitle {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.card-more {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.ablauf-card:hover .card-more {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
    /* Smooth scrolling for modal content */
    -webkit-overflow-scrolling: touch;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-cream);
}

.modal-icon {
    font-size: clamp(2.5rem, 7vw, 4rem);
    margin-bottom: 15px;
}

.modal-header h2 {
    font-family: 'CaliforniaPalms', 'ThePicnicClub', serif, cursive;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Modal-specific: keep the card title casing as written (no uppercase) */
.modal-header h2.card-title {
    text-transform: none;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body {
    color: var(--text-dark);
    line-height: 1.386;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body strong {
    color: var(--primary-color);
}

.modal-body em {
    color: var(--text-light);
    font-style: italic;
    display: block;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-cream);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    width: 45%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    width: 45%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-content {
    background: var(--bg-cream);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Location Section */
.location {
    background-color: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.location-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
}

.location-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.location-card h3 {
    font-family: 'CaliforniaPalms', 'ThePicnicClub', serif, cursive;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.location-info .place-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.location-info .address {
    color: var(--text-light);
    line-height: 1.232;
    margin-bottom: 1rem;
}

.location-map {
    margin-top: 40px;
    margin-bottom: 60px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.location-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.btn-small {
    margin-top: 15px;
}

.btn-small a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-small a:hover {
    background-color: var(--accent-color);
}

/* Dresscode Section */
.dresscode {
    background-color: var(--bg-light);
}

.dresscode-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.dresscode-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    border-left: 6px solid var(--primary-color);
}

.dresscode-card.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
    gap: 24px;
}

.dresscode-text h3 {
    font-family: 'CaliforniaPalms', 'ThePicnicClub', serif, cursive;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.dresscode-text ul {
    list-style: none;
    padding-left: 0;
}

.dresscode-text ul li {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.232;
}

.dresscode-text strong {
    font-weight: 600;
    color: var(--primary-color);
}

.dresscode-text ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.dresscode-visual {
    text-align: center;
}

.dresscode-swatch {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05), 0 8px 20px var(--shadow);
}

.dresscode-swatch.frau {
    background: linear-gradient(90deg, #f3e4d8 0%, #e9d2c3 33%, #d8e2d3 66%, #f5e7cf 100%);
}

.dresscode-swatch.mann {
    background: linear-gradient(90deg, #f6ede1 0%, #e8ddcf 33%, #d7dfd3 66%, #d1c7ba 100%);
}

.dresscode-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow);
    object-fit: cover;
}

.swatch-caption {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Anreise Section */
.anreise {
    background-color: var(--bg-cream);
}

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

.anreise-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.anreise-card h3 {
    font-family: 'CaliforniaPalms', 'ThePicnicClub', serif, cursive;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.anreise-card p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.386;
    font-size: 1rem;
}

.anreise-card strong {
    font-weight: 600;
    color: var(--primary-color);
}

.anreise-card ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.anreise-card ul li {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.386;
}

.anreise-card ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.anreise-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.anreise-card a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.anreise-card-image {
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 400px;
}

.anreise-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

/* Gästeliste styles removed: section removed from HTML */

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.label-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'ThePicnicClub', 'CaliforniaPalms', cursive, serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-light);
}

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

.radio-label span,
.checkbox-label span {
    font-size: 1rem;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.submit-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.form-message {
    margin-top: 1.5rem;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Add-Ons Section */
.addons {
    background-color: var(--bg-cream);
}

.addon-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.addon-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 3px 15px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.addon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.addon-card:hover .card-image img {
    transform: scale(1.1);
}

.addon-card .card-content {
    padding: 24px;
}

.addon-card h3 {
    font-family: 'CaliforniaPalms', 'ThePicnicClub', serif, cursive;
    /* Make Addon headings responsive and readable on small screens */
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.addon-card .card-date {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.addon-card .card-subtitle {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.addon-card .card-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.addon-card .card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.addon-card .image-placeholder {
    background: linear-gradient(135deg, rgba(212,165,116,0.25), rgba(201,166,144,0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* FAQ Section */
.faq {
    background-color: var(--bg-light);
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 14px var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    min-height: clamp(50px, auto, 100%);
}

.accordion-button {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: clamp(14px, 3vw, 18px) clamp(16px, 4vw, 20px);
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
    min-height: clamp(44px, 8vw, 56px);
}

.accordion-button:hover {
    background-color: rgba(212,165,116,0.08);
}

.accordion-icon {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    padding: 0 clamp(16px, 4vw, 20px);
}

.accordion-content p {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 clamp(10px, 2vw, 16px) 0;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.accordion-content strong {
    font-weight: 600;
    color: var(--primary-color);
}

.accordion-item.active .accordion-content {
    max-height: none;
    overflow: visible;
    padding-top: clamp(12px, 2vw, 16px);
    padding-bottom: clamp(12px, 2vw, 16px);
}

/* Sub-Accordion (nested accordions within FAQ items) */
.sub-accordion-item {
    background: rgba(212,165,116,0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212,165,116,0.2);
    margin-bottom: 10px;
}

.sub-accordion-button {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
}

.sub-accordion-button:hover {
    background-color: rgba(212,165,116,0.12);
}

.sub-accordion-icon {
    font-size: 1.1rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.sub-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    padding: 0 16px;
}

.sub-accordion-content p,
.sub-accordion-content ol,
.sub-accordion-content ul {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 12px 0;
    font-size: 0.9rem;
}

.sub-accordion-content ol {
    padding-left: 20px;
}

.sub-accordion-content ol li {
    margin-bottom: 8px;
}

.sub-accordion-content ul {
    padding-left: 20px;
    list-style-type: disc;
}

.sub-accordion-content ul li {
    margin-bottom: 6px;
}

.sub-accordion-item.active .sub-accordion-content {
    max-height: none;
    overflow: visible;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Media Section */
.media {
    background-color: var(--white);
}

.media-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 3rem;
}

.media-placeholder.single {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background-image: url('Media/wedding-party.webp');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    min-height: 500px;
}

.placeholder-content {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
}

.media-placeholder.single .placeholder-content {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.media-placeholder.single .placeholder-content h3,
.media-placeholder.single .placeholder-content p {
    color: white;
}

.placeholder-content h3 {
    font-family: 'CaliforniaPalms', 'ThePicnicClub', serif, cursive;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.placeholder-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.emoji {
    font-size: 2rem;
    margin-top: 1rem;
}

/* About Bali styles removed: section removed from HTML */

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-light);
    text-align: center;
    padding: 50px 0;
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-footer {
    margin-top: 1.5rem;
    font-size: 1rem;
}

.contact-footer a {
    color: var(--primary-color);
}

.contact-footer a:hover {
    color: var(--secondary-color);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 900px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 100px);
        margin-left: 100px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-dot {
        left: 30px;
    }

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

/* Tablet devices (769px to 1024px) - Improved responsive text sizing */
@media (max-width: 1024px) and (min-width: 769px) {
    .section-title {
        font-size: 5rem;
    }
    
    .section-subtitle {
        font-size: 3.2rem;
    }
    
    .welcome-box {
        font-size: 1.2rem;
        max-width: 68%;
    }
    
    .ablauf-card h3 {
        font-size: 2.4rem;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-subtitle {
        font-size: 0.9rem;
    }
    
    .modal-header h2 {
        font-size: 1.8rem;
    }
    
    .modal-body {
        font-size: 1rem;
    }
    
    .section-intro {
        font-size: 1.3rem;
    }
    
    .accordion-button {
        font-size: clamp(0.95rem, 2.2vw, 1rem);
        padding: 16px 18px;
        gap: 10px;
    }
    
    .accordion-icon {
        font-size: clamp(1rem, 2.2vw, 1.2rem);
    }
    
    .accordion-content {
        font-size: clamp(0.9rem, 2vw, 0.98rem);
        padding: 0 18px;
    }
    
    .accordion-item.active .accordion-content {
        padding-top: 14px;
        padding-bottom: 14px;
    }
}

/* Final Image Section */
.final-image-section {
    padding: 3rem 0 0 0;
}

.final-image-container {
    position: relative;
    width: 100%;
    height: 80vh;
    max-height: 720px;
    margin: 0 auto;
    border-radius: 0px;
    overflow: hidden;
}

.final-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

.final-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}

.final-image-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    font-family: 'CaliforniaPalms', 'ThePicnicClub', serif, cursive;
}

.final-image-text {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: white;
    max-width: 700px;
    line-height: 1.6;
    font-weight: 300;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 15px 0;
    }

    .nav-link::after {
        display: none;
    }

    .names {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .wedding-date {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }

    .wedding-location {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    
    .tagline {
        font-size: clamp(0.85rem, 2vw, 1rem);
    }
    
    .section-title {
        font-size: clamp(3.6rem, 8vw, 4.4rem);
    }
    
    .section-subtitle {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .welcome-box {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        max-width: 90%;
    }
    
    .welcome-box p {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem) !important;
    }
    
    .ablauf-card h3 {
        font-size: clamp(4.8rem, 12vw, 7.2rem);
    }
    
    .addon-card h3 {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-subtitle {
        font-size: 0.85rem;
    }
    
    .modal-header h2 {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
    }
    
    .modal-body {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }
    
    .section-intro {
        font-size: clamp(1rem, 3vw, 1.3rem);
    }
    
    section {
        padding: 60px 0;
    }

    .location-grid,
    .extensions-grid,
    .anreise-grid,
    .faq-grid,
    .media-placeholder {
        grid-template-columns: 1fr;
    }

    /* Modal responsive improvements for tablets */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 30px 25px;
    }

    .modal-header h2 {
        font-size: 1.6rem;
    }

    .modal-body {
        font-size: 0.95rem;
    }

    /* Card layouts for tablets */
    .ablauf-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .addon-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .dresscode-card.two-column {
        flex-direction: column;
    }

    .dresscode-text,
    .dresscode-visual {
        width: 100%;
    }
    
    /* Tablet accordion improvements */
    .accordion-button {
        font-size: clamp(0.95rem, 2.2vw, 1rem);
        padding: 16px 18px;
    }
    
    .accordion-content {
        font-size: clamp(0.9rem, 2vw, 0.95rem);
        padding: 0 18px;
    }
}

@media (max-width: 480px) {
    .names {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: clamp(2.8rem, 8vw, 3.6rem);
    }

    .section-subtitle {
        font-size: clamp(2rem, 5vw, 2.8rem);
        margin-bottom: 2rem;
    }

    .section-intro {
        font-size: clamp(0.95rem, 3vw, 1.2rem);
    }
    
    .welcome-box {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
        max-width: 95%;
    }
    
    .welcome-box p {
        font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
    }
    
    .welcome-box p em {
        font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
    }
    
    .ablauf-card h3 {
        font-size: clamp(1.6rem, 5vw, 2.4rem);
    }
    
    .addon-card h3 {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .dresscode-card h3,
    .dresscode-text h3,
    .anreise-card h3,
    .extension-card h3 {
        font-size: clamp(3rem, 9vw, 3.6rem);
    }
    
    .card-title {
        font-size: 0.85rem;
    }
    
    .card-subtitle {
        font-size: 0.8rem;
    }

    /* Modal optimizations for mobile */
    .modal-content {
        width: 95%;
        max-height: 92vh;
        padding: 25px 20px;
        border-radius: 15px;
    }

    .modal-close {
        font-size: 1.8rem;
        top: 10px;
        right: 15px;
        padding: 5px;
        /* Larger touch target */
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .modal-header h2 {
        font-size: clamp(1.2rem, 3vw, 1.4rem);
        line-height: 1.001;
    }
    
    .modal-body {
        font-size: clamp(0.9rem, 2vw, 0.98rem);
    }    .modal-subtitle {
        font-size: 0.9rem;
    }

    .modal-body {
        font-size: 0.9rem;
        line-height: 1.232;
    }

    .modal-body p {
        margin-bottom: 12px;
    }

    /* Single column layout for cards on mobile */
    .ablauf-cards,
    .addon-cards,
    .dresscode-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Better touch targets for cards */
    .ablauf-card,
    .addon-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(212, 165, 116, 0.2);
    }

    /* Optimize welcome box for mobile */
    .welcome-box {
        font-size: 1.1rem;
        max-width: 100%;
        margin: 0 auto 2rem;
    }

    /* Better accordion spacing on mobile */
    .accordion-button {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
        padding: 12px;
        gap: 8px;
        min-height: clamp(40px, 7vw, 48px);
    }
    
    .accordion-icon {
        font-size: clamp(1rem, 2vw, 1.1rem);
        min-width: 20px;
        text-align: center;
    }

    .accordion-content {
        padding: 0 12px;
        font-size: clamp(0.85rem, 2.2vw, 0.9rem);
    }
    
    .accordion-item.active .accordion-content {
        padding-top: 10px;
        padding-bottom: 12px;
    }

    /* Hero section adjustments for small screens */
    .hero {
        height: 100svh; /* Use small viewport height for better mobile support */
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

/* Extra small devices (< 360px) */
@media (max-width: 360px) {
    .names {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .section-title {
        font-size: clamp(2.4rem, 6vw, 3.2rem);
        margin-bottom: 2rem;
    }

    .section-subtitle {
        font-size: clamp(1.8rem, 4vw, 2.4rem);
    }

    .nav-brand {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }
    
    .welcome-box {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin: 0 auto 2rem;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .welcome-box p {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }
    
    .welcome-box p em {
        font-size: clamp(1.2rem, 4.5vw, 1.5rem) !important;
    }
    
    .section-intro {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
    
    .ablauf-card h3 {
        font-size: clamp(3.6rem, 9vw, 4.8rem);
    }
    
    .addon-card h3 {
        font-size: clamp(3.6rem, 9vw, 4.8rem);
    }
    
    .dresscode-card h3,
    .dresscode-text h3 {
        font-size: clamp(2.6rem, 7vw, 3.2rem);
    }
    
    /* Extra small accordion optimization */
    .accordion-button {
        font-size: clamp(0.8rem, 2vw, 0.85rem);
        padding: 10px;
        min-height: 38px;
    }
    
    .accordion-icon {
        font-size: 1rem;
    }
    
    .accordion-content {
        padding: 0 10px;
        font-size: clamp(0.8rem, 2vw, 0.85rem);
    }
    
    .accordion-content p {
        margin: 0 0 10px 0;
    }
    
    .accordion-item.active .accordion-content {
        padding-top: 8px;
        padding-bottom: 10px;
    }

    .modal-content {
        padding: 20px 15px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .welcome-box {
        font-size: 1rem;
        margin: 0 auto 2rem;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .final-image-section {
        padding: 2rem 0;
    }

    .final-image-container {
        height: 50vh;
        max-height: 500px;
    }

    .final-image-title {
        font-size: 1.8rem;
    }

    .final-image-text {
        font-size: 1rem;
    }
}
