/* ═══════════════════════════════════════════════
   Hochzeit Ralf & Saskia – main.css
   Auenland-Stil: Creme · Olivgrün · Gold
═══════════════════════════════════════════════ */

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

:root {
  --creme:      #F4EFE6;
  --creme-dark: #EDE5D8;
  --olive:      #6E7F5F;
  --green-dark: #3F4A3C;
  --gold:       #C8A96A;
  --gold-light: #DFC08A;
  --ink:        #2A2F28;
  --stone:      #8A8A7A;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--creme);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ────────────────────────────────────────────
   PASSWORD GATE
──────────────────────────────────────────── */
#gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dark);
  background-image:
    radial-gradient(ellipse at 30% 70%, rgba(110,127,95,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(63,74,60,0.4)   0%, transparent 55%);
}

#gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.gate-inner {
  position: relative;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.arch-wrap {
  width: 220px;
  height: 260px;
  position: relative;
  margin-bottom: 0.5rem;
}
.arch-wrap svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(200,169,106,0.25));
}

.gate-quote {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--creme);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.gate-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: var(--olive);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  max-width: 280px;
}

.gate-form input[type="password"] {
  background: rgba(244,239,230,0.08);
  border: 1px solid rgba(200,169,106,0.35);
  border-radius: 2px;
  padding: 0.75rem 1.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--creme);
  text-align: center;
  outline: none;
  letter-spacing: 0.15em;
  transition: border-color 0.3s;
  width: 100%;
}
.gate-form input[type="password"]::placeholder { color: rgba(244,239,230,0.35); letter-spacing: 0.1em; }
.gate-form input[type="password"]:focus { border-color: var(--gold); }

.gate-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: background 0.35s, color 0.35s;
  border-radius: 1px;
  width: 100%;
}
.gate-btn:hover { background: var(--gold); color: var(--green-dark); }

.gate-error {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: #c8896a;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.3s;
  min-height: 1.2em;
}
.gate-error.show { opacity: 1; }

.gate-hint {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: rgba(200,169,106,0.45);
  margin-top: 0.5rem;
}

/* ────────────────────────────────────────────
   NAVIGATION
──────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.2rem 2rem;
  background: linear-gradient(to bottom, rgba(63,74,60,0.85), transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.65);
  text-decoration: none;
  transition: color 0.3s;
}
nav a:hover { color: var(--gold); }

/* ────────────────────────────────────────────
   HERO
──────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: var(--green-dark);
}

.hero-hills {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 6rem 2rem 10rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

.hero-title {
  font-family: 'IM Fell English', serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: var(--creme);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.5rem 0;
}

.hero-names {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--gold);
  letter-spacing: 0.15em;
  font-weight: 500;
}

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(244,239,230,0.7);
  font-style: italic;
  line-height: 1.8;
}

.hero-date {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--olive);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.scroll-cue {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.4;
  animation: scrollBob 2.5s ease-in-out infinite;
}
.scroll-cue span {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
}
.scroll-cue svg { color: var(--gold); }

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

/* ────────────────────────────────────────────
   SECTIONS
──────────────────────────────────────────── */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 3rem);
  max-width: 800px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
  opacity: 0.4;
}

h2 {
  font-family: 'IM Fell English', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--green-dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #3a3f38;
  line-height: 1.85;
}

/* ────────────────────────────────────────────
   ORNAMENT / DIVIDER
──────────────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
  opacity: 0.45;
}
.ornament span { color: var(--gold); font-size: 1rem; }
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  max-width: 120px;
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* ────────────────────────────────────────────
   BOTANICAL
──────────────────────────────────────────── */
.botanical {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  opacity: 0.35;
  color: var(--olive);
}

/* ────────────────────────────────────────────
   SECTION BACKGROUNDS
──────────────────────────────────────────── */
.bg-creme-dark { background: var(--creme-dark); }
.bg-dark       { background: var(--green-dark); }

.bg-dark .section-label { color: var(--gold-light); }
.bg-dark h2             { color: var(--creme); }
.bg-dark p              { color: rgba(244,239,230,0.72); }
.bg-dark .ornament      { opacity: 0.25; }

/* ────────────────────────────────────────────
   TIMELINE
──────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1px 1fr;
  gap: 0 1.5rem;
  align-items: start;
  padding: 1.8rem 0;
  position: relative;
}
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(90px + 1.5rem);
  top: 3.6rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(110,127,95,0.4), transparent);
}

.tl-time {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 0.15rem;
  text-align: right;
}

.tl-dot {
  width: 1px;
  background: rgba(110,127,95,0.3);
  position: relative;
  display: flex;
  justify-content: center;
}
.tl-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--olive);
  border: 1.5px solid var(--gold);
  position: absolute;
  top: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
}

.tl-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--green-dark);
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.tl-content p {
  font-size: 0.95rem;
  color: var(--stone);
  font-style: italic;
}

/* ────────────────────────────────────────────
   ANFAHRT / LOCATION CARDS
──────────────────────────────────────────── */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.location-card {
  border: 1px solid rgba(110,127,95,0.2);
  padding: 1.8rem;
  position: relative;
}
.location-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 30px; height: 30px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.location-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.location-card address {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--stone);
  line-height: 1.7;
}
.location-card .map-placeholder {
  margin-top: 1.2rem;
  background: rgba(63,74,60,0.07);
  border: 1px dashed rgba(110,127,95,0.25);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  opacity: 0.6;
}

/* ────────────────────────────────────────────
   RSVP FORM
──────────────────────────────────────────── */
.deadline-note {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--olive);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(244,239,230,0.06);
  border: 1px solid rgba(200,169,106,0.25);
  border-radius: 1px;
  padding: 0.75rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--creme);
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(244,239,230,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(200,169,106,0.6); }
.form-group select option { background: var(--green-dark); color: var(--creme); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.9rem 2.5rem;
  cursor: pointer;
  transition: background 0.35s, color 0.35s;
  margin-top: 0.5rem;
}
.form-btn:hover { background: var(--gold); color: var(--green-dark); }
.form-btn:disabled { opacity: 0.5; cursor: default; }

.rsvp-success {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  padding: 2rem 0;
  text-align: center;
}

/* ────────────────────────────────────────────
   DETAIL CARDS
──────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.detail-card {
  padding: 2rem 1.8rem;
  border-top: 1px solid rgba(110,127,95,0.25);
}
.detail-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.detail-card p {
  font-size: 0.95rem;
  color: var(--stone);
  line-height: 1.8;
}

/* ────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────── */
footer {
  background: var(--green-dark);
  text-align: center;
  padding: 3rem 2rem;
}
footer .footer-names {
  font-family: 'IM Fell English', serif;
  font-size: 1.4rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 0.5rem;
}
footer p {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--olive);
  text-transform: uppercase;
}

/* ────────────────────────────────────────────
   FADE-IN
──────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.in-view { opacity: 1; transform: translateY(0); }

/* ────────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────────── */
@media (max-width: 580px) {
  .location-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  nav { gap: 1.2rem; }
  nav a { font-size: 0.55rem; letter-spacing: 0.15em; }
}

/* ────────────────────────────────────────────
   GATE OVERLAY (wenn Hintergrundbild gesetzt)
──────────────────────────────────────────── */
.gate-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 38, 28, 0.72);
  z-index: 0;
}
#gate .gate-inner { z-index: 1; }

/* ────────────────────────────────────────────
   PARKHINWEIS
──────────────────────────────────────────── */
.park-hinweis {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  background: rgba(200,169,106,0.08);
  border-left: 2px solid var(--gold);
  color: var(--stone);
}
.park-hinweis svg { color: var(--gold); }
.park-hinweis p {
  font-size: 0.95rem;
  color: #4a4a3a;
  line-height: 1.7;
  margin: 0;
}

/* ────────────────────────────────────────────
   GALERIE / CODE-EINBETTUNG
──────────────────────────────────────────── */
.galerie-embed {
  margin-top: 1rem;
  width: 100%;
}
.galerie-embed iframe,
.galerie-embed img {
  max-width: 100%;
  border-radius: 2px;
}

/* ────────────────────────────────────────────
   GATE OVERLAY
──────────────────────────────────────────── */
.gate-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 36, 26, 0.72);
  z-index: 0;
}
#gate .gate-inner { z-index: 1; }

/* ────────────────────────────────────────────
   PARKHINWEIS
──────────────────────────────────────────── */
.park-hinweis {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1.2rem 1.5rem;
  background: rgba(200,169,106,0.08);
  border-left: 2px solid var(--gold);
}
.park-hinweis svg { color: var(--gold); flex-shrink: 0; margin-top: .15rem; }
.park-hinweis p { font-size: 0.95rem; color: #4a4a3a; line-height: 1.7; margin: 0; }

/* ────────────────────────────────────────────
   TRAUZEUGEN
──────────────────────────────────────────── */
.trauzeugen {
  margin-top: 3.5rem;
}

.tz-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,169,106,0.3), transparent);
  margin-bottom: 2.5rem;
}

.tz-intro {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(244,239,230,0.65);
  line-height: 1.8;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.2rem;
}

.tz-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tz-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.8rem 2.2rem;
  border: 1px solid rgba(200,169,106,0.2);
  min-width: 180px;
  position: relative;
  text-align: center;
  transition: border-color 0.3s;
}
.tz-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 24px; height: 24px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.tz-card::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 24px; height: 24px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}

.tz-icon {
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 0.3rem;
}

.tz-name {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--creme);
  font-weight: 500;
  margin: 0;
  line-height: 1;
}

.tz-tel {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  margin-top: 0.2rem;
}
.tz-tel:hover { color: var(--gold-light); }

/* ────────────────────────────────────────────
   FOOTER FOTO
──────────────────────────────────────────── */
.footer-foto-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.footer-foto-img {
  width: 100%;
  height: clamp(280px, 40vw, 520px);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.footer-foto-fade-top,
.footer-foto-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 45%;
  pointer-events: none;
  z-index: 1;
}

.footer-foto-fade-top {
  top: 0;
  background: linear-gradient(to bottom, var(--creme) 0%, transparent 100%);
}

.footer-foto-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--green-dark) 0%, transparent 100%);
}

/* ────────────────────────────────────────────
   GALERIE EMBED
──────────────────────────────────────────── */
.galerie-embed {
  margin-top: 1rem;
  width: 100%;
}
.galerie-embed iframe,
.galerie-embed img { max-width: 100%; border-radius: 2px; }

/* ────────────────────────────────────────────
   GALERIE – QR-Code & Link
──────────────────────────────────────────── */
.galerie-intro {
  margin-bottom: 2.5rem;
}

.galerie-cta-wrap {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.galerie-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.galerie-qr {
  width: 160px;
  height: 160px;
  border-radius: 3px;
  border: 1px solid rgba(110,127,95,0.25);
  padding: 7px;
  background: var(--creme);
  display: block;
}

.galerie-qr-hint {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0;
}

.galerie-link-block {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  flex: 1;
  min-width: 220px;
}

.galerie-upload-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #3a3f38;
  line-height: 1.85;
  margin: 0;
}

.galerie-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--olive);
  color: var(--olive);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  text-decoration: none;
  transition: background 0.35s, color 0.35s;
}
.galerie-btn:hover {
  background: var(--olive);
  color: var(--creme);
}

@media (max-width: 500px) {
  .galerie-cta-wrap { gap: 2rem; }
  .galerie-qr { width: 130px; height: 130px; }
}
