/* Hochzeit Antje & Sascha – Foto-Upload
   Palette: Eukalyptus/Salbei + Champagner-Gold auf warmem Creme */

:root {
  --bg:        #FAF6EF;
  --bg-warm:   #F3ECE0;
  --card:      #FFFFFF;
  --ink:       #36322B;
  --ink-soft:  #6E665A;
  --sage:      #7C8B6F;
  --sage-deep: #56624C;
  --gold:      #C2A05A;
  --gold-soft: #E6D7B0;
  --line:      #E3DACB;
  --error:     #9C5A4E;
  --radius:    18px;
  --shadow:    0 18px 50px rgba(86, 98, 76, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #FBF8F2 0%, #F3ECE0 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@font-face { font-family: "fallback"; src: local("Georgia"); }

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 22px 80px;
}

/* --- Kopf / Hero --- */

.hero { text-align: center; padding-top: 12px; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 500;
  margin-bottom: 18px;
}

.sprig { display: block; margin: 0 auto 10px; width: 92px; height: auto; color: var(--sage); }

.names {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.7rem, 12vw, 4.4rem);
  line-height: 1.02;
  margin: 6px 0 4px;
  color: var(--ink);
}
.names .amp {
  font-style: italic;
  color: var(--gold);
  font-size: 0.78em;
  padding: 0 0.08em;
}

.date {
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* --- Foto vom Paar --- */

.couple {
  margin: 30px auto 8px;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-warm);
  box-shadow: var(--shadow);
  position: relative;
}
.couple img { width: 100%; height: 100%; object-fit: cover; display: block; }
.couple .placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--ink-soft); text-align: center; padding: 20px;
}
.couple .placeholder span { font-size: 0.85rem; }

/* --- Einladungstext --- */

.lead {
  text-align: center;
  margin: 28px auto 6px;
  max-width: 480px;
}
.lead h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.lead p { color: var(--ink-soft); margin: 0; }

/* --- Upload-Karte --- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  margin-top: 26px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 8px;
}
.field input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.18s ease;
}
.field input[type="text"]:focus {
  outline: none;
  border-color: var(--sage);
}

/* Drop-Zone */
.dropzone {
  display: block;
  border: 2px dashed var(--gold-soft);
  border-radius: 14px;
  background: var(--bg);
  padding: 38px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.dropzone:hover, .dropzone:focus-within { border-color: var(--gold); background: #FBF6EA; }
.dropzone.dragover { border-color: var(--sage); background: #F1F4EC; }
.dropzone .ico { font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.dropzone strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.dropzone .hint { color: var(--ink-soft); font-size: 0.88rem; }
.dropzone input[type="file"] { display: none; }

/* Vorschau-Liste */
.preview { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.preview li {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border-radius: 12px; padding: 8px 10px;
}
.preview .thumb {
  width: 46px; height: 46px; border-radius: 9px; object-fit: cover;
  background: var(--bg-warm); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--sage);
}
.preview .meta { flex: 1; min-width: 0; }
.preview .fn { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview .bar { height: 5px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.preview .bar > i { display: block; height: 100%; width: 0; background: var(--sage); transition: width 0.2s ease; }
.preview .state { font-size: 0.78rem; color: var(--ink-soft); flex: none; min-width: 54px; text-align: right; }
.preview li.done .state { color: var(--sage-deep); }
.preview li.err .state { color: var(--error); }
.preview li.err .bar > i { background: var(--error); }
.preview .rm { flex: none; border: none; background: none; color: var(--ink-soft); cursor: pointer; font-size: 1.1rem; padding: 4px; }

/* Button */
.btn {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: var(--sage-deep);
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.08s ease;
}
.btn:hover { background: #46513D; }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--line); color: var(--ink-soft); cursor: default; }

/* Erfolgs-Banner */
.done-banner {
  display: none;
  text-align: center;
  background: #F1F4EC;
  border: 1.5px solid #D5DECB;
  border-radius: 14px;
  padding: 22px;
  margin-top: 20px;
}
.done-banner.show { display: block; }
.done-banner h3 { font-family: "Fraunces", serif; font-weight: 400; margin: 0 0 6px; font-size: 1.3rem; color: var(--sage-deep); }
.done-banner p { margin: 0 0 14px; color: var(--ink-soft); }
.done-banner button {
  border: 1.5px solid var(--sage); background: none; color: var(--sage-deep);
  padding: 10px 22px; border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 0.95rem;
}

/* Deko-Galerie (Platzhalter des Paares, KEINE Gästebilder) */
.gallery { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery figure {
  margin: 0; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: var(--bg-warm); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 0.8rem; text-align: center; padding: 12px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* Fuß */
.footer { text-align: center; margin-top: 46px; color: var(--ink-soft); }
.footer .sprig-sm { width: 56px; margin: 0 auto 12px; color: var(--sage); opacity: 0.7; }
.footer p { margin: 0; font-size: 0.86rem; }
.footer .sig { font-family: "Fraunces", serif; font-style: italic; font-size: 1.1rem; color: var(--ink); margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
