:root {
  --bg: #fdf5f3;                    /* zartes Puder-Rosé */
  --bg-card: #ffffff;                /* Karte weiß mit leichtem Schatten */
  --ink: #4a3540;                    /* warmes Aubergine statt hartem Schwarz */
  --ink-soft: #6d5560;
  --ink-faded: #9d8890;
  --accent: #c8927a;                 /* warmes Altrosa-Gold */
  --accent-deep: #8b5f4d;             /* dunkleres Altrosa für Kontrast */
  --accent-soft: rgba(200, 146, 122, 0.13);
  --sage: #a8b89a;                   /* zartes Salbeigrün für Blüten-Deko */
  --line: rgba(139, 95, 77, 0.20);
  --line-soft: rgba(139, 95, 77, 0.10);
  --shadow: 0 1px 3px rgba(139, 95, 77, 0.06), 0 12px 40px rgba(139, 95, 77, 0.08);
  --radius: 3px;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-script: 'Parisienne', 'Cormorant Garamond', cursive;
  --ff-body: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Blüten-Ecken */
.blossom {
  position: fixed;
  width: 140px;
  height: 140px;
  color: var(--sage);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}
.blossom--top-left { top: -20px; left: -20px; transform: rotate(-15deg); }
.blossom--bottom-right { bottom: -20px; right: -20px; transform: rotate(165deg); color: var(--accent); opacity: 0.4; }

@media (max-width: 640px) {
  .blossom { width: 90px; height: 90px; opacity: 0.4; }
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  position: relative;
  z-index: 2;
}

/* Hero mit "100"-Kranz */
.hero {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease-out;
}

.badge {
  position: relative;
  display: inline-block;
  width: 200px;
  height: 180px;
  margin-bottom: 1.2rem;
  color: var(--sage);
}
.badge__wreath { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge__number {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-script);
  font-size: 5.5rem;
  color: var(--accent-deep);
  line-height: 1;
  padding-top: 0.4rem;
}

.hero__eyebrow {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.hero__name {
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  color: var(--accent-deep);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.hero__date {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-soft);
  display: inline-block;
  padding: 0 1.5rem 1.2rem;
}

.hero__subtitle {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Karte */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.8s ease-out 0.15s both;
}

.card__intro {
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

/* Formular */
.field { margin-bottom: 1.5rem; }
.field__label {
  display: block;
  font-family: var(--ff-display);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--accent-deep);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.field__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
  font-family: var(--ff-body);
  font-size: 1.2rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
}
.field__input::placeholder { color: var(--ink-faded); font-style: italic; }
.field__input:focus { border-bottom-color: var(--accent); }

.dropzone {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.8rem; padding: 2rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(253, 245, 243, 0.5);
  text-align: center;
}
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone__icon { width: 36px; height: 36px; color: var(--accent); stroke-width: 1; }
.dropzone__title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
}
.dropzone__hint { font-style: italic; font-size: 0.95rem; color: var(--ink-faded); }

.filelist { list-style: none; margin: 1.5rem 0; }
.filelist__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem; align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease-out;
}
.filelist__item:last-child { border-bottom: none; }
.filelist__preview {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-deep);
  flex-shrink: 0; overflow: hidden;
}
.filelist__preview img, .filelist__preview video {
  width: 100%; height: 100%; object-fit: cover;
}
.filelist__preview svg { width: 20px; height: 20px; }
.filelist__info { min-width: 0; }
.filelist__name {
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}
.filelist__meta {
  font-size: 0.82rem; color: var(--ink-faded);
  font-family: var(--ff-display); letter-spacing: 0.1em; font-style: italic;
}
.filelist__progress {
  width: 80px; height: 2px;
  background: var(--line-soft); border-radius: 2px;
  overflow: hidden; position: relative;
}
.filelist__progress-bar {
  position: absolute; inset: 0;
  background: var(--accent);
  width: 0%; transition: width 0.3s;
}
.filelist__item.is-done .filelist__progress-bar { background: var(--sage); width: 100% !important; }
.filelist__item.is-error .filelist__progress-bar { background: #c47575; width: 100% !important; }
.filelist__remove {
  background: none; border: none; cursor: pointer;
  color: var(--ink-faded);
  padding: 0.2rem; display: flex;
  font-size: 1.3rem; line-height: 1;
  transition: color 0.2s;
}
.filelist__remove:hover { color: var(--accent-deep); }
.filelist__item.is-uploading .filelist__remove, .filelist__item.is-done .filelist__remove { display: none; }

/* Button */
.btn {
  width: 100%; padding: 1rem 2rem;
  background: var(--accent-deep);
  color: white;
  border: none; border-radius: var(--radius);
  font-family: var(--ff-display);
  font-size: 0.85rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer; transition: all 0.3s;
  position: relative; overflow: hidden;
}
.btn:not(:disabled):hover {
  background: var(--accent);
  letter-spacing: 0.4em;
}
.btn:disabled { background: var(--ink-faded); cursor: not-allowed; opacity: 0.6; }
.btn--ghost {
  background: transparent;
  color: var(--accent-deep);
  border: 1px solid var(--accent-deep);
  margin-top: 1.5rem;
}
.btn--ghost:not(:disabled):hover {
  background: var(--accent-deep);
  color: white;
}
.btn.is-loading .btn__label { opacity: 0.6; }
.btn.is-loading::after {
  content: '';
  position: absolute; top: 50%; right: 1.5rem;
  width: 12px; height: 12px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: spin 0.8s linear infinite;
}

.success { text-align: center; padding: 1rem 0; animation: fadeUp 0.5s ease-out; }
.success svg { width: 52px; height: 52px; color: var(--accent); margin-bottom: 1rem; stroke-width: 1; }
.success h2 {
  font-family: var(--ff-script);
  font-size: 2rem;
  color: var(--accent-deep);
  margin-bottom: 0.4rem;
}
.success p { font-style: italic; color: var(--ink-soft); font-size: 1.1rem; }

.footer {
  text-align: center; margin-top: 2.5rem;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--ink-faded);
  font-style: italic;
}
.footer a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.footer a:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }
.heart { color: #c96f6f; margin: 0 0.15em; font-style: normal; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

@media (max-width: 480px) {
  .page { padding: 2rem 1rem 1.5rem; }
  .card { padding: 2rem 1.25rem; }
}
