/* ===== CSS Variables ===== */
:root {
    --color-primary: #5D4E42;
    --color-secondary: #8B7B6B;
    --color-accent: #9B8B7B;
    --color-bg: #FDF8F4;
    --color-bg-alt: #B8ADA3;
    --color-text: #5D4E42;
    --color-text-light: #7D6E62;
    --color-blush: #F5E6DC;
    --color-sage: #8B9B7A;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, sans-serif;
}

/* ===== Password Gate ===== */
.password-gate {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-box {
    text-align: center;
    padding: 3rem;
    background: var(--color-blush);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(93, 78, 66, 0.15);
    max-width: 350px;
}

.password-box h2 {
    font-family: var(--font-serif);
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.password-box p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.password-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-secondary);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-sans);
    margin-bottom: 1rem;
    text-align: center;
}

.password-box input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.password-box button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-blush);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.password-box button:hover {
    opacity: 0.9;
}

.password-error {
    color: #C75B7A;
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0 !important;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    position: relative;
    text-align: center;
    padding: 2rem;
}

/* Background image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('1 - Hochzeit_Jonas-Anna-Lisa-1.jpg');
    background-size: cover;
    background-position: center 20%;
    opacity: 0.5;
}

/* Soft overlay for better text readability */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(253, 251, 247, 0.7) 0%, rgba(245, 241, 235, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    margin-top: 25vh;
}

.save-the-date {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.names {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.date {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-style: italic;
    color: var(--color-accent);
}

.scroll-indicator {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-secondary);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* ===== Sections ===== */
.section {
    padding: 5rem 1.5rem;
}

.section-alt {
    background-color: var(--color-bg-alt);
    color: #FDF8F4;
}

.section-alt h2,
.section-alt h3 {
    color: #FDF8F4;
}

.section-alt p,
.section-alt .section-intro {
    color: rgba(253, 248, 244, 0.9);
}

.section-alt a {
    color: #FDF8F4;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.section-alt strong {
    color: #FDF8F4;
}

/* Decorative botanical divider */
.section h2::after {
    content: '— ✿ —';
    display: block;
    margin-top: 0.75rem;
    font-size: 1rem;
    color: var(--color-sage);
    letter-spacing: 0.5em;
}

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

.section-intro {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* ===== Event Details ===== */
.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: var(--color-blush);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(93, 78, 66, 0.1);
    border: 1px solid rgba(93, 78, 66, 0.1);
}

/* Location card with backdrop */
.card-location {
    position: relative;
    overflow: hidden;
    background: transparent;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.card-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: sepia(30%) saturate(60%) brightness(105%) contrast(90%);
    z-index: 0;
}

.card-backdrop::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(245, 230, 220, 0.25) 0%,
        rgba(184, 173, 163, 0.2) 100%
    );
}

.card-location .card-backdrop {
    background-image: url('unnamed123.jpg');
}

.card-location .card-content,
.card-zeitplan .card-content {
    position: relative;
    z-index: 1;
    background: rgba(253, 248, 244, 0.5);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    width: 65%;
    margin: 0 auto;
}

/* Zeitplan card with backdrop */
.card-zeitplan {
    position: relative;
    overflow: hidden;
    background: transparent;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.card-zeitplan .card-backdrop {
    background-image: url('switzerland.jpeg');
    background-position: center;
}

.detail-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.location-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.timeline {
    list-style: none;
    text-align: left;
}

.timeline li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(93, 78, 66, 0.15);
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.timeline li .time {
    flex-shrink: 0;
}

.timeline li .timeline-icon {
    flex-shrink: 0;
}

.timeline-text {
    flex: 1;
}

.timeline li:last-child {
    border-bottom: none;
}

.time {
    font-weight: 500;
    color: var(--color-primary);
    margin-right: 0.75rem;
    display: inline-block;
    min-width: 65px;
}

.timeline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.timeline-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
    stroke-width: 1.5;
    fill: none;
}

/* ===== Dresscode ===== */
.dresscode-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.dresscode-video {
    flex-shrink: 0;
    width: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(93, 78, 66, 0.2);
}

.dresscode-video video {
    width: 100%;
    height: auto;
    display: block;
}

.dresscode-video.video-jonas video {
    transform: scale(1.15);
}

.dresscode-content {
    flex: 1;
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -10%;
}

@media (max-width: 768px) {
    .dresscode-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .dresscode-video {
        width: 120px;
    }

    .dresscode-layout {
        flex-direction: column;
    }

    .dresscode-video:first-child {
        order: 1;
    }

    .dresscode-content {
        order: 0;
    }

    .dresscode-video:last-child {
        order: 2;
    }
}

.dresscode-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-blush);
    margin: 0 0 0.5rem 0;
    font-style: italic;
}

.dresscode-content p {
    margin: 0;
}

.highlight-pink {
    color: #E8A0B5;
    font-weight: 400;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 0.5rem;
}

.color {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color:hover {
    transform: scale(1.1);
}

.color-hint {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* ===== Hotels ===== */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.hotel-card {
    background: var(--color-blush);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(93, 78, 66, 0.1);
    border: 1px solid rgba(93, 78, 66, 0.1);
}

.hotel-distance {
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hotel-price {
    font-weight: 500;
    margin: 1rem 0;
}

.btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: transparent;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-blush);
    opacity: 1;
}

/* ===== Info Grid ===== */
.info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.info-grid .info-item {
    flex: 0 1 280px;
}

.info-item {
    text-align: center;
    padding: 1rem;
}

.info-item h3 {
    margin-bottom: 0.75rem;
}

/* ===== Contact ===== */
#contact {
    text-align: center;
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-illustration {
    margin-top: 2rem;
    max-width: 250px;
    height: auto;
}

/* ===== Footer ===== */
footer {
    background: var(--color-primary);
    color: var(--color-blush);
    text-align: center;
    padding: 3rem 1.5rem;
}

.footer-names {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

footer p:last-child {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .section {
        padding: 3.5rem 1rem;
    }

    .detail-card,
    .hotel-card {
        padding: 1.5rem;
    }

    .color {
        width: 40px;
        height: 40px;
    }
}
