/* IMEA Reservierung — Markenoptik nach Original-Referenz (dark premium).
   Obsidian #0D1F2D · Slate #1C2F3E · Steel #3A4A60 · Amber #C8AA6E ·
   Smaragd #129B63 (NUR Erfolg) · Off-White #FAFAF8 · Muted #A3B1C2.
   Playfair Display (Serif-Headline) · DM Sans (UI) · Barlow Condensed (Zahlen). */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: #0D1F2D;
  color: #FAFAF8;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Kopf / Fuß ── */
.header {
  padding: 18px 28px;
  border-bottom: 1px solid rgba(58, 74, 96, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Logo 1:1 wie Check-in (ImeaLogo, variant=light, size=sm) */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-word { display: flex; flex-direction: column; gap: 1px; }
.logo-imea { font-family: 'Bebas Neue', sans-serif; font-weight: 300; font-size: 18px; letter-spacing: 0.22em; color: #FAFAF8; line-height: 1; text-transform: uppercase; }
.logo-invest { font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 7px; letter-spacing: 0.30em; color: #C8AA6E; line-height: 1; text-transform: uppercase; }
.header-right { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #A3B1C2; }
.footer { padding: 18px 24px; text-align: center; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #5E7186; border-top: 1px solid rgba(58, 74, 96, 0.3); }

.main { flex: 1; width: 100%; max-width: 660px; margin: 0 auto; padding: 34px 20px 64px; }

/* ── Stepper ── */
.stepper { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-bottom: 36px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 86px; }
.step .dot {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid #3A4A60; color: #C8AA6E;
  display: flex; align-items: center; justify-content: center;
}
.step .dot svg { display: block; }
.step.done .dot { border-color: #C8AA6E; }
.step.active .dot { border-color: #C8AA6E; }
.step.active .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #C8AA6E; }
.step.pending .dot { border-color: #3A4A60; }
.step .lbl { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #5E7186; white-space: nowrap; }
.step.done .lbl, .step.active .lbl { color: #C8AA6E; }
.step.active .lbl { color: #FAFAF8; }
.connector { flex: 0 0 26px; height: 1px; background: #3A4A60; margin-top: 13px; }

/* ── Hero (Schritt 1) ── */
.hero { text-align: center; margin: 6px 0 30px; }
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: #FAFAF8;
}
.hero .sub { margin-top: 14px; font-size: 16px; color: #C8AA6E; }

/* ── Karten ── */
.card {
  background: rgba(28, 47, 62, 0.55);
  border: 1px solid rgba(200, 170, 110, 0.28);
  border-radius: 8px;
  padding: 26px 28px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(250, 250, 248, 0.05);
}
.card + .card, .card + .quote, .quote + .card, .quote + .btn, .card + .btn { margin-top: 18px; }
.center { text-align: center; }
.muted { color: #A3B1C2; font-size: 14px; line-height: 1.6; }

.card-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: #C8AA6E; padding-bottom: 12px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(200, 170, 110, 0.35);
}

/* Label/Wert-Zeilen (Original-Stil) */
.kv-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 15px 2px; border-bottom: 1px solid rgba(58, 74, 96, 0.45);
}
.kv-row:last-child { border-bottom: none; padding-bottom: 4px; }
.kv-row .k { color: #A3B1C2; font-size: 14.5px; flex-shrink: 0; }
.kv-row .v { color: #FAFAF8; font-size: 15.5px; font-weight: 600; text-align: right; }
.kv-row .v.amber { color: #C8AA6E; font-family: 'Barlow Condensed', sans-serif; font-size: 19px; letter-spacing: 0.02em; }

/* Zitat */
.quote {
  border-left: 2px solid rgba(200, 170, 110, 0.7);
  background: rgba(28, 47, 62, 0.45);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  color: #C8AA6E;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ── Formular (Schritt 2) ── */
.field { margin-top: 18px; }
.field label { display: block; font-size: 13.5px; color: #A3B1C2; margin-bottom: 8px; }
.field input {
  width: 100%;
  background: rgba(13, 31, 45, 0.7);
  border: 1px solid #3A4A60;
  border-radius: 8px;
  padding: 15px 16px;
  color: #FAFAF8;
  font-family: 'DM Sans', sans-serif;
  font-size: 15.5px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field input::placeholder { color: #5E7186; }
.field input:focus { border-color: #C8AA6E; }
.static-value { font-size: 15.5px; color: #FAFAF8; padding: 4px 2px 0; }

/* ── Erklärung (Schritt 3) ── */
.legal p { font-size: 15px; line-height: 1.7; color: #E6E9EC; padding: 14px 2px; }
.legal p.fine { color: #A3B1C2; font-size: 14px; }
.legal .quote { margin: 6px 0; }

/* Unterschrift */
.sign-meta { font-size: 14.5px; color: #E6E9EC; padding: 12px 2px 4px; }
.sign-label { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #C8AA6E; margin: 18px 0 10px; }
.sign-box { position: relative; border: 1px solid #3A4A60; border-radius: 8px; background: rgba(13, 31, 45, 0.7); }
.sign-box canvas { display: block; width: 100%; height: 150px; border-radius: 8px; touch-action: none; cursor: crosshair; }
.sign-hint {
  position: absolute; left: 20px; right: 20px; bottom: 22px;
  border-top: 1px dashed rgba(163, 177, 194, 0.5);
  padding-top: 8px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #5E7186;
  pointer-events: none;
}
.sign-clear {
  display: block; margin-left: auto; margin-top: 10px;
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: #A3B1C2;
}
.sign-clear:hover { color: #C8AA6E; }

/* ── Buttons ── */
.btn {
  display: block; width: 100%;
  margin-top: 22px;
  padding: 18px 24px;
  background: linear-gradient(180deg, #D4B87A 0%, #C8AA6E 100%);
  color: #0D1F2D;
  border: none; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.15s ease;
  box-shadow: 0 10px 26px rgba(200, 170, 110, 0.22);
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { background: rgba(200, 170, 110, 0.22); color: #7E8FA2; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-secondary {
  display: block; width: 100%;
  margin-top: 12px;
  padding: 16px 24px;
  background: transparent;
  color: #E6E9EC;
  border: 1px solid #3A4A60; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover { border-color: #C8AA6E; color: #C8AA6E; }

.error-box { margin-top: 16px; border: 1px solid rgba(220, 80, 60, 0.4); background: rgba(220, 80, 60, 0.08); border-radius: 8px; padding: 13px 16px; font-size: 13.5px; color: #DC503C; }

/* ── Erfolg (Smaragd NUR hier) ── */
.success-ring { width: 76px; height: 76px; margin: 6px auto 24px; border-radius: 50%; border: 2px solid #129B63; background: rgba(18, 155, 99, 0.12); display: flex; align-items: center; justify-content: center; }
.success-ring svg { stroke: #129B63; }
.success-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #129B63; margin-bottom: 12px; }
.success-h { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 30px; line-height: 1.25; margin-bottom: 12px; }
.ts { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; color: #FAFAF8; margin-top: 16px; }

.spinner { width: 38px; height: 38px; margin: 8px auto 16px; border: 3px solid rgba(200, 170, 110, 0.25); border-top-color: #C8AA6E; border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 540px) {
  .hero h1 { font-size: 30px; }
  .card { padding: 22px 18px; }
  .step { min-width: 64px; }
  .step .lbl { font-size: 9px; }
  .header-right { display: none; }
}
