/* ═══════════════════════════════════════════════════════
   VBVG Rechner — Markant Design (Shell + Overrides)
   Wird von index.html und vbvg-rechner-2026.html geladen.
   Muss NACH den .vr-* Basis-Styles eingebunden werden,
   damit die Overrides greifen.
   ═══════════════════════════════════════════════════════ */

@keyframes shimmerBar {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes goldGlow {
  0%, 100% { box-shadow: 0 0 28px rgba(251,191,36,0.18), 0 0 48px rgba(251,191,36,0.08); }
  50%      { box-shadow: 0 0 36px rgba(251,191,36,0.28), 0 0 64px rgba(251,191,36,0.14); }
}

/* ─── Markanter Container ─── */
.rechner-shell {
  max-width: 760px;
  margin: 48px auto 0;
  border-radius: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--teal-50) 100%);
  border: 2px solid var(--teal-500);
  box-shadow:
    0 0 30px rgba(20,184,166,0.15),
    0 0 60px rgba(20,184,166,0.08),
    0 12px 40px rgba(15,118,110,0.10);
  overflow: hidden;
  position: relative;
}
.rechner-shell::after {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 24px; pointer-events: none;
  background: linear-gradient(135deg, rgba(20,184,166,0), rgba(20,184,166,0.05), rgba(45,212,191,0));
  z-index: 0;
}

.rechner-header-bar {
  background: linear-gradient(135deg, #0F766E, #14B8A6, #2DD4BF);
  background-size: 200% 200%;
  animation: shimmerBar 8s ease infinite;
  padding: 28px 32px;
  color: white;
  position: relative;
}
.rechner-header-bar::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.rechner-header-title {
  font-size: 26px; font-weight: 800; letter-spacing: -0.8px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 8px;
  position: relative; line-height: 1.2;
}
.rechner-header-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  backdrop-filter: blur(8px);
}
.rechner-header-sub {
  font-size: 14px; font-weight: 500; opacity: 0.88;
  font-family: var(--font-mono); letter-spacing: 0.3px;
  position: relative;
}

.rechner-body { padding: 32px; position: relative; }

/* ─── Override: vbvg-rechner sitzt jetzt im Shell ─── */
.rechner-shell .vbvg-rechner { max-width: 100%; margin: 0; }

/* ─── Override: Step-Nummern als große Teal-Gradient-Kreise ─── */
.rechner-shell .vr-step-header { gap: 10px; margin-bottom: 12px; }
.rechner-shell .vr-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: white; font-size: 13px; font-weight: 800;
  box-shadow: 0 2px 8px rgba(20,184,166,0.25);
  transition: all 0.3s;
}
.rechner-shell .vr-step-num.done {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  box-shadow: 0 4px 14px rgba(20,184,166,0.4);
}
.rechner-shell .vr-step-label { font-size: 16px; font-weight: 700; }
.rechner-shell .vr-step-ref { margin-left: auto; font-family: var(--font-mono); font-size: 12px; }

/* ─── Override: Cards luftiger und größer ─── */
.rechner-shell .vr-options { gap: 14px; }
.rechner-shell .vr-card {
  min-width: 180px; padding: 20px 22px; border-radius: 14px;
}
.rechner-shell .vr-card:hover { transform: translateY(-1px); }
.rechner-shell .vr-card.selected { border-radius: 14px; }
.rechner-shell .vr-card-check { width: 28px; height: 28px; border-radius: 0 12px 0 12px; font-size: 14px; }
.rechner-shell .vr-card-icon { margin-bottom: 10px; }
.rechner-shell .vr-card-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.rechner-shell .vr-card-desc { font-size: 13px; color: var(--slate-500); line-height: 1.5; }

/* ─── Override: Ergebnis-Box mit Gold-Glow ─── */
.rechner-shell #vr-result {
  margin-top: 32px;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--gold-50), #FFFFFF);
  border: 2px solid var(--gold-200);
  animation: goldGlow 4s ease-in-out infinite;
}
.rechner-shell #vr-result > div:first-child { display: none; } /* alter Trenner-Strich raus */
.rechner-shell .vr-result-label {
  color: var(--gold-500);
  margin-bottom: 16px;
  font-size: 12px;
}
.rechner-shell .vr-pulse-dot { width: 10px; height: 10px; background: var(--gold-400); }

.rechner-shell .vr-result-cards { gap: 14px; margin-bottom: 20px; }
.rechner-shell .vr-result-card {
  min-width: 170px; padding: 24px 22px; border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.rechner-shell .vr-result-card-value { font-size: 38px; color: var(--teal-700); }
.rechner-shell .vr-result-highlight {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900)) !important;
  border: none !important; color: white !important;
  box-shadow: 0 12px 36px rgba(15,118,110,0.35) !important;
  flex: 1.4 !important;
}
.rechner-shell .vr-result-highlight .vr-result-card-value {
  color: white;
  font-size: 56px;
}
.rechner-shell .vr-result-label { font-size: 13px; margin-bottom: 18px; }
.rechner-shell .vr-result-card-label { margin-bottom: 10px; font-size: 11px; }
.rechner-shell .vr-result-card-sub { margin-top: 10px; font-size: 12px; }

.rechner-shell .vr-summary { padding: 14px 18px; border-radius: 12px; margin-bottom: 14px; }
.rechner-shell .vr-summary-tags { gap: 8px; }
.rechner-shell .vr-tag { padding: 5px 12px; font-weight: 700; }

.rechner-shell .vr-info-banners { gap: 12px; margin-bottom: 22px; }
.rechner-shell .vr-info { padding: 16px 18px; border-radius: 12px; }
.rechner-shell .vr-info-icon { font-size: 20px; }
.rechner-shell .vr-info-title { font-size: 14px; margin-bottom: 5px; }
.rechner-shell .vr-info-text { font-size: 14px; line-height: 1.6; }
.rechner-shell .vr-info-text a { color: var(--teal-600); font-weight: 700; text-decoration: underline; }
.rechner-shell .vr-info.gold .vr-info-text a { color: var(--gold-500); }

.rechner-shell .vr-table-toggle { padding: 16px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.rechner-shell .vr-table-toggle:hover { border-color: var(--teal-300); }
.rechner-shell .vr-table-section-header { padding: 12px 16px; font-size: 13px; }
.rechner-shell .vr-table { font-size: 13px; }
.rechner-shell .vr-summary-label { font-size: 12px; }
.rechner-shell .vr-tag { font-size: 12px; padding: 6px 14px; }
.rechner-shell .vr-reset-btn { padding: 14px; font-size: 14px; }
.rechner-shell .vr-legal { font-size: 12px; line-height: 1.65; padding: 18px; }

/* ─── Mobile ─── */
@media (max-width: 900px) {
  .rechner-shell { margin: 32px auto 0; }
  .rechner-body { padding: 24px 20px; }
  .rechner-header-bar { padding: 22px 22px; }
  .rechner-header-title { font-size: 18px; }
  .rechner-shell .vr-result-highlight .vr-result-card-value { font-size: 36px; }
}
@media (max-width: 600px) {
  .rechner-shell .vr-step-ref { display: none; }
}
