/* ═══════════════════════════════════════════════════════════════
   Fabio & Milena — Hochzeit 19.09.2026
   Botanical / Eukalyptus Design
   ═══════════════════════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
    --c-cream:       #faf8f4;
    --c-cream-dark:  #f0ece4;
    --c-sage:        #7a9e7e;
    --c-sage-light:  #a8c5ab;
    --c-sage-dark:   #5b7f5e;
    --c-olive:       #6b7c5e;
    --c-green-deep:  #3d5a3e;
    --c-gold:        #b8a88a;
    --c-gold-light:  #d4c9b0;
    --c-text:        #3a3a3a;
    --c-text-light:  #6b6b6b;
    --c-white:       #ffffff;

    --ff-script:     'Great Vibes', cursive;
    --ff-serif:      'Lora', Georgia, serif;
    --ff-sans:       'Montserrat', 'Segoe UI', sans-serif;

    --max-width:     800px;
    --section-pad:   5rem 1.5rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ff-sans);
    font-weight: 300;
    color: var(--c-text);
    background: var(--c-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: var(--c-sage-dark); text-decoration: none; }
a:hover { color: var(--c-green-deep); }

/* ─── Utilities ─── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ─── Fade-in animation ─── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('img/hero.jpg') center center / cover no-repeat;
    overflow: hidden;
    text-align: center;
}

/* Dark overlay for text legibility */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(250, 248, 244, 0.55) 0%,
        rgba(250, 248, 244, 0.7) 35%,
        rgba(250, 248, 244, 0.75) 50%,
        rgba(250, 248, 244, 0.7) 65%,
        rgba(250, 248, 244, 0.55) 100%
    );
    z-index: 0;
}

/* ─── Decorative eucalyptus leaves along page sides ─── */
.deco-leaf {
    position: fixed;
    width: clamp(50px, 6vw, 80px);
    height: auto;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: leafFadeIn 2s ease forwards;
}
/* Left leaves */
.deco-leaf--l1 { left: 0; top: 8%;  animation-delay: 0.5s; }
.deco-leaf--l2 { left: 5px; top: 38%; animation-delay: 1.0s; }
.deco-leaf--l3 { left: -2px; top: 68%; animation-delay: 1.5s; }
/* Right leaves */
.deco-leaf--r1 { right: 0; top: 18%; animation-delay: 0.7s; }
.deco-leaf--r2 { right: 5px; top: 52%; animation-delay: 1.2s; }
.deco-leaf--r3 { right: -2px; top: 82%; animation-delay: 1.7s; }

@keyframes leafFadeIn {
    to { opacity: 1; }
}

@media (max-width: 900px) {
    .deco-leaf {
        width: clamp(35px, 5vw, 55px);
    }
}
@media (max-width: 600px) {
    .deco-leaf {
        width: 30px;
    }
    @keyframes leafFadeIn {
        to { opacity: 0.6; }
    }
}

.hero__content {
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: heroFadeIn 1.4s ease forwards 0.3s;
}

@keyframes heroFadeIn {
    to { opacity: 1; }
}

/* Responsive hero image */
@media (max-width: 600px) {
    .hero {
        background-image: url('img/hero-mobile.jpg');
    }
}

.hero__names {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero__name {
    font-family: var(--ff-script);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    color: var(--c-green-deep);
    line-height: 1.1;
}

.hero__name--amp {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--c-sage);
    line-height: 1;
}

.hero__subtitle {
    font-family: var(--ff-sans);
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-text-light);
    margin-bottom: 0.3rem;
}

.hero__date-hero {
    font-family: var(--ff-serif);
    font-size: 1.15rem;
    color: var(--c-text);
    font-weight: 400;
    margin-bottom: 0;
}

.hero__divider {
    margin: 1rem auto;
    color: var(--c-gold);
}

.hero__scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--c-sage-dark);
    opacity: 0.7;
    animation: bounce 2s ease infinite;
    transition: opacity 0.3s;
}
.hero__scroll-hint:hover { opacity: 1; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS (general)
   ═══════════════════════════════════════════════════════════════ */
.section {
    padding: var(--section-pad);
    text-align: center;
}

.section--alt {
    background: var(--c-cream-dark);
}

.section__heading {
    font-family: var(--ff-script);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: var(--c-green-deep);
    margin-bottom: 1.5rem;
}

.section__text {
    font-family: var(--ff-serif);
    font-size: 1.05rem;
    color: var(--c-text-light);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.icon-block {
    margin-bottom: 1rem;
}
.icon-block__icon {
    color: var(--c-sage);
}

/* ═══════════════════════════════════════════════════════════════
   COUNTDOWN
   ═══════════════════════════════════════════════════════════════ */
.countdown {
    background: var(--c-cream);
}

.countdown__grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown__number {
    font-family: var(--ff-serif);
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 600;
    color: var(--c-green-deep);
    line-height: 1;
}

.countdown__label {
    font-family: var(--ff-sans);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-text-light);
    margin-top: 0.4rem;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION-SPECIFIC: Decorative leaf accents
   ═══════════════════════════════════════════════════════════════ */
.schedule,
.dresscode,
.accommodation,
.gifts,
.contact {
    position: relative;
    overflow: hidden;
}

.schedule::before,
.gifts::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(ellipse at center, var(--c-sage-light) 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
    border-radius: 50%;
}

.dresscode::after,
.accommodation::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(ellipse at center, var(--c-sage-light) 0%, transparent 70%);
    opacity: 0.08;
    pointer-events: none;
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════════
   TIMELINE (Ablauf)
   ═══════════════════════════════════════════════════════════════ */
.timeline {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--c-sage-light);
}

.timeline__item {
    position: relative;
    margin-bottom: 3rem;
    text-align: left;
}

.timeline__item:last-child { margin-bottom: 0; }

.timeline__icon {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-sage);
    background: var(--c-cream-dark);
    border-radius: 50%;
}

.timeline__content {
    padding-left: 0.5rem;
}

.timeline__time {
    font-family: var(--ff-sans);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--c-green-deep);
    margin-bottom: 0.2rem;
}

.timeline__title {
    font-family: var(--ff-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 0.4rem;
}

.timeline__text {
    font-family: var(--ff-sans);
    font-size: 0.92rem;
    color: var(--c-text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.timeline__map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--c-sage-dark);
    transition: color 0.2s;
}
.timeline__map-link:hover { color: var(--c-green-deep); }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-block;
    font-family: var(--ff-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    border: 2px solid var(--c-sage);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary {
    background: var(--c-sage);
    color: var(--c-white);
    border-color: var(--c-sage);
}
.btn--primary:hover {
    background: var(--c-sage-dark);
    border-color: var(--c-sage-dark);
    color: var(--c-white);
}

.btn--outline {
    background: transparent;
    color: var(--c-sage-dark);
}
.btn--outline:hover {
    background: var(--c-sage);
    color: var(--c-white);
}

.btn--large {
    padding: 1rem 3rem;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   RSVP
   ═══════════════════════════════════════════════════════════════ */
.rsvp__step--hidden {
    display: none !important;
}

.rsvp__code-form {
    max-width: 400px;
    margin: 0 auto;
}

.rsvp__code-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.rsvp__label {
    display: block;
    font-family: var(--ff-sans);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--c-text);
    margin-bottom: 0.5rem;
    text-align: left;
}

.rsvp__input {
    font-family: var(--ff-sans);
    font-size: 1rem;
    padding: 0.7rem 1rem;
    border: 2px solid var(--c-gold-light);
    border-radius: 4px;
    background: var(--c-white);
    color: var(--c-text);
    width: 100%;
    transition: border-color 0.3s;
}
.rsvp__input:focus {
    outline: none;
    border-color: var(--c-sage);
}

.rsvp__input--code {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
}

.rsvp__input--textarea {
    resize: vertical;
    min-height: 80px;
}

.rsvp__hint {
    font-size: 0.82rem;
    color: var(--c-text-light);
    margin-top: 0.25rem;
}

.rsvp__error {
    color: #c0392b;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    min-height: 1.2em;
}

.rsvp__greeting {
    font-family: var(--ff-script);
    font-size: 1.8rem;
    color: var(--c-green-deep);
    margin-bottom: 1.5rem;
}

.rsvp__existing-hint {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 0.92rem;
    color: var(--c-sage-dark);
    margin-bottom: 1.5rem;
    padding: 0.8rem 1rem;
    background: rgba(122, 158, 126, 0.1);
    border-radius: 4px;
}

.rsvp__fieldset {
    border: none;
    margin-bottom: 1.5rem;
}

.rsvp__legend {
    font-family: var(--ff-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 0.75rem;
    text-align: left;
}

.rsvp__radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rsvp__radio {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border: 2px solid var(--c-gold-light);
    border-radius: 4px;
    transition: border-color 0.3s, background 0.3s;
}
.rsvp__radio:hover {
    border-color: var(--c-sage-light);
}
.rsvp__radio input:checked + .rsvp__radio-label {
    color: var(--c-green-deep);
    font-weight: 500;
}
.rsvp__radio:has(input:checked) {
    border-color: var(--c-sage);
    background: rgba(122, 158, 126, 0.08);
}

.rsvp__radio input[type="radio"] {
    accent-color: var(--c-sage);
    width: 18px;
    height: 18px;
}

.rsvp__radio-label {
    font-family: var(--ff-sans);
    font-size: 0.95rem;
}

.rsvp__details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.rsvp__field {
    text-align: left;
}

.rsvp__form {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.rsvp__success {
    font-family: var(--ff-serif);
    font-size: 1.1rem;
    color: var(--c-sage-dark);
    padding: 1.5rem;
    background: rgba(122, 158, 126, 0.1);
    border-radius: 8px;
    margin-top: 1.5rem;
}

.rsvp__success--decline {
    color: var(--c-text-light);
    background: rgba(0,0,0,0.04);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact__grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact__card {
    background: var(--c-white);
    border: 1px solid var(--c-gold-light);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    min-width: 200px;
    transition: box-shadow 0.3s;
}
.contact__card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.contact__name {
    font-family: var(--ff-script);
    font-size: 1.6rem;
    color: var(--c-green-deep);
    margin-bottom: 0.2rem;
}

.contact__role {
    font-family: var(--ff-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-text-light);
    margin-bottom: 0.6rem;
}

.contact__link {
    font-family: var(--ff-sans);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--c-sage-dark);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    padding: 2rem 1rem;
    text-align: center;
    background: var(--c-green-deep);
    color: var(--c-cream);
}

.footer__text {
    font-family: var(--ff-serif);
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    :root {
        --section-pad: 3.5rem 1rem;
    }

    .hero__name {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .countdown__grid {
        gap: 1.2rem;
    }

    .countdown__number {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 2.5rem;
    }

    .rsvp__code-row {
        flex-direction: column;
    }

    .contact__grid {
        flex-direction: column;
        align-items: center;
    }

    .contact__card {
        width: 100%;
        max-width: 280px;
    }
}
