/* ===== VARIABLES ===== */
:root {
  --sage: #5C6B47;
  --sage-light: #849673;
  --sage-pale: #EBF0E5;
  --gold: #B8965A;
  --gold-light: #D4B07A;
  --cream: #FAF7F0;
  --cream-dark: #F0EBE0;
  --text: #2C2418;
  --text-light: #6B6B6B;
  --white: #FFFFFF;
  --border: #E8E0D0;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Great Vibes', cursive;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== LAYOUT ===== */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--cream-dark); }

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--sage);
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.navbar.scrolled {
  background: rgba(250, 247, 240, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 0.6rem 0;
}
.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--white);
  transition: color 0.3s;
}
.navbar.scrolled .nav-logo { color: var(--sage); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s;
  text-transform: uppercase;
}
.navbar.scrolled .nav-link { color: var(--text); }
.nav-link:hover { color: var(--gold-light); }
.navbar.scrolled .nav-link:hover { color: var(--sage); }
.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--gold-light); color: var(--white) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; }
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: background 0.3s;
}
.navbar.scrolled .hamburger span { background: var(--text); }

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  background-image: url('../images/hero.jpeg');
  background-color: #2d3a1e;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 2rem;
}
.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
.hero-names {
  font-family: var(--font-script);
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-date {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.hero-location {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}
.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.countdown-item { text-align: center; }
.countdown-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
}
.countdown-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-top: 0.25rem;
}
.countdown-sep {
  font-size: 1.5rem;
  opacity: 0.5;
  padding-top: 0;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  animation: bounce 2s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  text-align: center;
}
.btn-hero {
  background: var(--gold);
  color: var(--white);
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.btn-hero:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary {
  background: var(--sage);
  color: var(--white);
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}
.btn-primary:hover { background: var(--sage-light); }
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--white);
}
.btn-outline:hover { border-color: var(--sage); color: var(--sage); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ===== EVENT CARDS (FAHRPLAN) ===== */
.event-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.event-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.event-card-bottom {
  margin-top: auto;
}
.event-card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.event-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 1rem;
}
.event-time {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.event-timeline { text-align: left; margin-bottom: 1.5rem; }
.tl-item {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.tl-item:last-child { border-bottom: none; }
.tl-time {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 3.5rem;
  color: var(--sage);
}
.tl-text { color: var(--text-light); }
.tl-highlight .tl-text { color: var(--gold); font-weight: 700; }
.event-location {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.5;
}
.event-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ===== SECTION HINT ===== */
.section-hint {
  text-align: center;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  color: var(--sage);
  font-size: 1rem;
  font-style: italic;
  background: var(--sage-pale);
  border-radius: 8px;
}

/* ===== INFO BLOCKS (ANREISE) ===== */
.info-block {
  margin-bottom: 2.5rem;
}
.info-block h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--sage);
}
.info-block p { margin-bottom: 0.5rem; }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.hotel-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.hotel-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.hotel-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.hotel-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; }

/* ===== GIFT GRID (WUNSCHLISTE) ===== */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.gift-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gift-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.gift-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.gift-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.gift-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.75rem; }
.gift-amount {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sage);
}
.gift-card-fun { border: 2px dashed var(--gold-light); }

/* ===== BANK TRANSFER ===== */
.bank-transfer {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
}
.bank-transfer h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 0.5rem;
}
.bank-transfer > p { color: var(--text-light); margin-bottom: 2rem; }
.bank-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.bank-info table { text-align: left; border-collapse: collapse; }
.bank-info td { padding: 0.4rem 1rem 0.4rem 0; vertical-align: top; }
.bank-info td:first-child { color: var(--text-light); white-space: nowrap; }
.qr-code-wrap { text-align: center; }
.qr-code-wrap canvas, .qr-code-wrap img { border-radius: 8px; }
.qr-label { font-size: 0.8rem; color: var(--text-light); margin-top: 0.5rem; }

/* ===== RSVP STEPS ===== */
.rsvp-step { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.step-greeting {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.search-results {
  margin-top: 0.5rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.search-results:empty { box-shadow: none; }
.search-result-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--sage-pale); }
.search-result-item .result-name { font-weight: 700; }
.field-error { color: #c0392b; font-size: 0.85rem; margin-top: 0.4rem; }
.btn-back {
  margin-top: 0.5rem;
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 0.5rem;
}
.btn-back:hover { color: var(--sage); }

/* ===== RSVP FORM ===== */
.rsvp-form { margin-top: 1rem; }
.form-group { margin-bottom: 1.75rem; }
.form-group > label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.label-detail { font-weight: 400; color: var(--text-light); font-size: 0.85rem; }
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  font-size: 1rem;
  transition: border-color 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--sage); }
.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  flex: 1;
  min-width: 120px;
}
.radio-label:has(input:checked) {
  border-color: var(--sage);
  background: var(--sage-pale);
}
.radio-label input[type="radio"] { accent-color: var(--sage); }
.form-message {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}
.form-success {
  background: var(--sage-pale);
  color: var(--sage);
}
.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.form-error {
  background: #fdecea;
  color: #c0392b;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--sage);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}
.footer-names {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.footer-heart {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 0;
  }
  .nav-links.open .nav-link {
    color: var(--text);
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    border-bottom: none;
  }
  .hamburger { display: flex; }

  .hero-names { font-size: 3rem; }
  .hero-date { font-size: 1.3rem; }
  .countdown-number { font-size: 1.8rem; }

  .section { padding: 3.5rem 0; }
  .section-title { font-size: 2rem; }

  .event-cards { grid-template-columns: 1fr; }
  .hotel-cards { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .gift-grid { grid-template-columns: 1fr 1fr; }

  .bank-details { flex-direction: column; gap: 2rem; }
}

@media (max-width: 480px) {
  .hero-names { font-size: 2.4rem; }
  .gift-grid { grid-template-columns: 1fr; }
  .countdown { gap: 0.4rem; }
  .countdown-number { font-size: 1.5rem; }
  .radio-group { flex-direction: column; }
}
