/* ============================================
   Jürgen & Nicolet — 60 im Allgäu
   Mobile-first · Alpine Warm Aesthetic
   Fonts: Cormorant Garamond + Outfit
   ============================================ */

:root {
    --green-deep:   #2e5228;
    --green-mid:    #4a7345;
    --green-light:  #7ec94a;
    --green-pale:   #e8f2e4;
    --cream:        #faf7f2;
    --gold:         #c8963c;
    --gold-light:   #f9d57a;
    --text:         #2c2c2c;
    --text-soft:    #5a5a5a;
    --white:        #ffffff;
    --card-shadow:  0 8px 40px rgba(46, 82, 40, 0.14);
    --radius-lg:    20px;
    --radius-md:    12px;
    --radius-sm:    8px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    color: var(--text);
    line-height: 1.6;
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   PASSWORD MODAL
   ============================================ */

.password-modal {
    position: fixed; inset: 0;
    background: rgba(20, 35, 20, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px;
}

.password-modal.hidden { display: none; }

.password-container {
    background: var(--cream);
    padding: 40px 32px 36px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    text-align: center;
    width: 100%;
    max-width: 340px;
    animation: slideUp 0.35s cubic-bezier(.22,.68,0,1.2);
}

.lock-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
}

.password-container h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 300;
    color: var(--green-deep);
    margin-bottom: 8px;
}

.password-container p {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 24px;
}

.password-container input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #d5cfc4;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    background: white;
    color: var(--text);
    margin-bottom: 14px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.password-container input:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(74,115,69,0.12);
}

.btn-password {
    width: 100%;
    padding: 13px;
    background: var(--green-deep);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-password:hover  { background: var(--green-mid); }
.btn-password:active { transform: scale(0.98); }

/* ============================================
   BACKGROUND SCENE
   ============================================ */

.bg-scene {
    position: fixed; inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-svg {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ============================================
   PAGE LAYOUT
   ============================================ */

.page {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 60px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    text-align: center;
    padding: 56px 16px 32px;
    width: 100%;
    max-width: 480px;
    animation: fadeDown 0.9s cubic-bezier(.22,.68,0,1) both;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.75);
    color: var(--green-deep);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(46,82,40,0.1);
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.2rem, 16vw, 5rem);
    font-weight: 300;
    line-height: 0.85;
    color: var(--green-deep);
    text-shadow: 0 2px 20px rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.hero-title em {
    font-style: italic;
    color: var(--green-deep);
}

.amp {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.7em;
    color: var(--gold);
    display: block;
    line-height: 0.9;
    margin: -6px 0;
}

.hero-60 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 6.5vw, 1.8rem);
    font-weight: 400;
    color: var(--green-mid);
    letter-spacing: 0.03em;
    margin-bottom: 16px;
}

.hero-60 span {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.hero-divider {
    width: 140px;
    margin: 0 auto 14px;
    opacity: 0.6;
}

.hero-sub {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    font-weight: 400;
    color: var(--green-mid);
    letter-spacing: 0.06em;
    opacity: 0.9;
}

/* ============================================
   CABIN BANNER
   ============================================ */

.cabin-banner {
    width: 100%;
    max-width: 480px;
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
    animation: fadeUp 0.9s 0.1s cubic-bezier(.22,.68,0,1) both;
}

.cabin-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.cabin-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px 16px 12px;
    background: linear-gradient(to top, rgba(20,40,20,0.65) 0%, transparent 100%);
    color: rgba(255,255,255,0.92);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

/* ============================================
   CARD
   ============================================ */

.card {
    width: 100%;
    max-width: 480px;
    background: rgba(250, 247, 242, 0.97);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    animation: fadeUp 0.9s 0.2s cubic-bezier(.22,.68,0,1) both;
    border: 1px solid rgba(255,255,255,0.8);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 32px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.section:last-of-type { border-bottom: none; }

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.45rem;
    color: var(--green-deep);
    margin-bottom: 6px;
    text-align: center;
}

.section-sub {
    font-size: 0.88rem;
    color: var(--text-soft);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ============================================
   INFO STACK (details)
   ============================================ */

.info-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--green-pale);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    transition: transform 0.2s;
}

.info-row:active { transform: scale(0.99); }

.info-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-row div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-row strong {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--green-deep);
}

.info-row span {
    font-size: 0.83rem;
    color: var(--text-soft);
}

/* ============================================
   INVITATION TEXT
   ============================================ */

.invite-section {
    background: linear-gradient(135deg, #f0f7ec 0%, #e8f2e4 100%);
}

.invite-lead {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--green-deep);
    line-height: 1.65;
    margin-bottom: 12px;
    text-align: center;
}

.invite-section p:last-child {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.7;
    text-align: center;
}

/* ============================================
   FORM
   ============================================ */

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-mid);
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid #d5cfc4;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;           /* 16px prevents iOS zoom */
    font-weight: 300;
    color: var(--text);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(74,115,69,0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

/* Date input icon color on iOS/Android */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    background: var(--green-deep);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(46,82,40,0.25);
    -webkit-tap-highlight-color: transparent;
}

.btn-submit svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.btn-submit:hover {
    background: var(--green-mid);
    box-shadow: 0 6px 24px rgba(46,82,40,0.3);
}

.btn-submit:hover svg { transform: translateX(3px); }
.btn-submit:active     { transform: scale(0.98); }

/* ============================================
   FORM SUCCESS
   ============================================ */

.form-success {
    display: none;
    padding: 16px 18px;
    background: #e6f4e0;
    border-left: 4px solid var(--green-light);
    border-radius: var(--radius-sm);
    color: var(--green-deep);
    font-size: 0.92rem;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.5;
}

.form-success.show {
    display: block;
    animation: slideUp 0.35s ease;
}

/* ============================================
   CARD FOOTER
   ============================================ */

.card-footer {
    padding: 28px 24px 32px;
    text-align: center;
    background: var(--green-deep);
    color: rgba(255,255,255,0.85);
}

.footer-cheers {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 10px;
}

.card-footer p:last-child {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

.card-footer a {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(249,213,122,0.35);
    transition: color 0.2s, border-color 0.2s;
}

.card-footer a:hover {
    color: white;
    border-color: white;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

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

/* ============================================
   TABLET+
   ============================================ */

@media (min-width: 480px) {
    .page { padding: 0 24px 80px; }
    .hero { padding-top: 64px; }
    .section { padding: 36px 32px; }
    .card-footer { padding: 32px 36px 40px; }
}

@media (min-width: 768px) {
    .hero { padding-top: 80px; }
}
