/* FinanzHub — Jahresrückblick (Wrapped) Vollbild-Overlay */

.wrapped-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: radial-gradient(circle at 50% 30%, #1a1a2e 0%, #050505 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 48px;
  padding-top: max(64px, env(safe-area-inset-top, 0px) + 40px);
  padding-bottom: max(48px, env(safe-area-inset-bottom, 0px) + 32px);
  overflow: hidden;
  font-family: Manrope, Inter, sans-serif;
}
body.wrapped-open { overflow: hidden; }

/* ── Progress-Bar oben (Position-Indikator, kein Auto-Advance) ── */
.wrapped-progress {
  position: absolute;
  top: max(18px, env(safe-area-inset-top, 0px) + 12px);
  left: 16px; right: 16px;
  display: flex;
  gap: 4px;
  z-index: 10;
}
.wrapped-progress-seg {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  transition: background .3s ease;
}
.wrapped-progress-seg.is-done { background: rgba(255,255,255,0.85); }
.wrapped-progress-seg.is-active { background: var(--lime, #b6f84c); }

/* ── Header-Buttons ── */
.wrapped-close, .wrapped-share {
  position: absolute;
  top: max(36px, env(safe-area-inset-top, 0px) + 28px);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(250,250,247,0.85);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 12;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  font-family: inherit;
}
.wrapped-close { right: 16px; }
.wrapped-share { right: 60px; }
.wrapped-close:hover, .wrapped-share:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

/* ── Tap-Zonen ── */
.wrapped-tap-left, .wrapped-tap-right {
  position: absolute;
  top: 0; bottom: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
}
.wrapped-tap-left  { left: 0;  width: 30%; }
.wrapped-tap-right { right: 0; width: 70%; }

/* ── Karten ── */
.wrapped-card {
  text-align: center;
  max-width: 460px;
  width: 100%;
  position: relative;
  z-index: 6;
  pointer-events: none;
  animation: wrapped-slide-in .35s cubic-bezier(.22,.61,.36,1);
}
.wrapped-card * { pointer-events: auto; }
@keyframes wrapped-slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wrapped-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.wrapped-eyebrow {
  color: var(--lime, #b6f84c);
  font: 700 11px/1 Manrope, Inter, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.wrapped-h1 {
  color: #fff;
  font: 800 44px/1.05 Manrope, Inter, sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}
.wrapped-h1 .it {
  font-style: normal;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}
.wrapped-label {
  color: rgba(250,250,247,0.55);
  font: 500 14px/1.4 Manrope, Inter, sans-serif;
  margin: 0;
}
.wrapped-number {
  color: #fff;
  font: 800 64px/1 Manrope, Inter, sans-serif;
  letter-spacing: -0.03em;
  margin: 4px 0;
}
.wrapped-number.pos { color: var(--lime, #b6f84c); }
.wrapped-number-mid {
  color: #fff;
  font: 700 36px/1 Manrope, Inter, sans-serif;
  letter-spacing: -0.02em;
  margin: 4px 0;
}
.wrapped-category {
  font: 800 38px/1.1 Manrope, Inter, sans-serif;
  letter-spacing: -0.02em;
  margin: 4px 0;
}
.wrapped-cat-glyph {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin-bottom: 4px;
}
.wrapped-sub {
  color: rgba(250,250,247,0.7);
  font: 500 15px/1.4 Manrope, Inter, sans-serif;
  margin: 4px 0 0;
  max-width: 380px;
}
.wrapped-sub strong { color: #fff; font-weight: 700; }
.wrapped-merchant {
  color: #fff;
  font: 700 22px/1.2 Manrope, Inter, sans-serif;
  letter-spacing: -0.005em;
  margin: 4px 0;
}
.wrapped-praise {
  color: #fff;
  font: 600 22px/1.2 Manrope, Inter, sans-serif;
  margin-top: 6px;
}

/* Split (Best/Worst Monat) */
.wrapped-split {
  display: flex;
  gap: 32px;
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}
.wrapped-split-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wrapped-split-lbl {
  color: rgba(250,250,247,0.5);
  font: 500 11px/1.2 Manrope, Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
}
.wrapped-month {
  font: 800 26px/1.1 Manrope, Inter, sans-serif;
  margin: 0;
}
.wrapped-month.pos { color: #34d399; }
.wrapped-month.neg { color: #f87171; }
.wrapped-split-amt {
  color: rgba(250,250,247,0.7);
  font: 600 16px/1.2 Manrope, Inter, sans-serif;
  margin: 0;
}

/* Buttons */
.wrapped-btn {
  background: var(--lime, #b6f84c);
  color: #0a0a0a;
  border: 0;
  padding: 14px 28px;
  border-radius: 999px;
  font: 700 15px/1 Manrope, Inter, sans-serif;
  cursor: pointer;
  margin-top: 12px;
  transition: transform .12s, box-shadow .12s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.wrapped-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(182,248,76,0.32);
}
.wrapped-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  padding: 14px 28px;
  border-radius: 999px;
  font: 600 15px/1 Manrope, Inter, sans-serif;
  cursor: pointer;
  font-family: inherit;
}
.wrapped-btn-outline:hover {
  background: rgba(255,255,255,0.06);
}
.wrapped-outro-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

/* Empty / Threshold */
.wrapped-empty {
  text-align: center;
  padding: 80px 24px;
  color: rgba(250,250,247,0.7);
}
.wrapped-empty h1 {
  font: 700 22px/1.3 Manrope, Inter, sans-serif;
  color: rgba(250,250,247,0.95);
  margin: 0 0 12px;
}
.wrapped-empty p { font: 500 15px/1.5 Manrope, Inter, sans-serif; margin: 0 0 22px; }
.wrapped-empty-btn {
  display: inline-block;
  background: var(--lime, #b6f84c);
  color: #0a0a0a;
  padding: 12px 22px;
  border-radius: 999px;
  font: 700 14px/1 Manrope, Inter, sans-serif;
  text-decoration: none;
}

/* Wrapped-Toast (Share Fallback) */
.wrapped-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,20,20,0.96);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--lime, #b6f84c);
  font: 600 13.5px/1 Manrope, Inter, sans-serif;
  z-index: 600;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.wrapped-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Reports-CTA Button (Einstiegspunkt) ── */
.reports-wrapped-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  margin: 20px 0;
  background: linear-gradient(135deg, rgba(182,248,76,0.10), rgba(96,165,250,0.06));
  border: 1px solid rgba(182,248,76,0.22);
  border-radius: 16px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .12s;
}
.reports-wrapped-cta:hover {
  border-color: rgba(182,248,76,0.42);
  background: linear-gradient(135deg, rgba(182,248,76,0.16), rgba(96,165,250,0.10));
  transform: translateY(-1px);
}
.reports-wrapped-cta-text {
  display: flex; flex-direction: column; gap: 4px;
}
.reports-wrapped-cta-eyebrow {
  font: 700 11px/1 Manrope, Inter, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime, #b6f84c);
}
.reports-wrapped-cta-title {
  font: 700 16px/1.2 Manrope, Inter, sans-serif;
  color: rgba(250,250,247,0.95);
}
.reports-wrapped-cta-sub {
  font: 500 12.5px/1.3 Manrope, Inter, sans-serif;
  color: rgba(250,250,247,0.6);
}
.reports-wrapped-cta-arrow {
  font-size: 22px;
  color: var(--lime, #b6f84c);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 520px) {
  .wrapped-h1 { font-size: 36px; }
  .wrapped-number { font-size: 48px; }
  .wrapped-category { font-size: 32px; }
  .wrapped-split { gap: 18px; }
  .wrapped-month { font-size: 22px; }
}
