/* =========================================================
   365-Rechtsschutz: moderne Entscheidungs-Sektion
   Scoped Fix für Lesbarkeit + Premium-Look auf dunklen Cards
   Diese Datei muss nach premium-typografie-patch.css geladen werden.
   ========================================================= */

.decision-modern-section {
  background:
    radial-gradient(circle at 8% 8%, rgba(37, 99, 235, .08), transparent 28%),
    radial-gradient(circle at 94% 8%, rgba(16, 185, 129, .09), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

.decision-modern-section .index-apple-compare-shell {
  background: transparent !important;
}

.decision-modern-section .index-apple-compare-head .index-apple-compare-kicker {
  color: #2563eb !important;
  background: rgba(37, 99, 235, .09) !important;
  border: 1px solid rgba(37, 99, 235, .14) !important;
}

.decision-modern-section .index-apple-compare-head h2,
.decision-modern-section .index-apple-compare-head p {
  color: #071024 !important;
}

.decision-modern-section .index-apple-compare-head p {
  color: #475569 !important;
}

.decision-modern-section .index-apple-compare-grid {
  gap: 1.55rem !important;
  align-items: stretch !important;
}

.decision-modern-section .index-compare-card {
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, .18), transparent 32%),
    linear-gradient(135deg, #071024 0%, #0b1730 55%, #071024 100%) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  box-shadow: 0 34px 90px rgba(15, 23, 42, .20) !important;
  color: #ffffff !important;
  overflow: hidden !important;
}

.decision-modern-section .index-compare-card *,
.decision-modern-section .index-compare-card-top *,
.decision-modern-section .index-compare-split *,
.decision-modern-section .index-apple-compare-text * {
  color: inherit;
}

.decision-modern-section .index-compare-card h2,
.decision-modern-section .index-compare-card h3,
.decision-modern-section .index-compare-card h4,
.decision-modern-section .index-compare-card strong,
.decision-modern-section .index-apple-compare-text strong {
  color: #ffffff !important;
  opacity: 1 !important;
}

.decision-modern-section .index-compare-card h3 {
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.08) !important;
}

.decision-modern-section .index-compare-card p,
.decision-modern-section .index-apple-compare-text p,
.decision-modern-section .index-compare-card li {
  color: rgba(255, 255, 255, .76) !important;
  opacity: 1 !important;
}

.decision-modern-section .index-compare-mini-kicker {
  color: rgba(255, 255, 255, .82) !important;
  opacity: 1 !important;
}

.decision-modern-section .index-compare-icon {
  background: rgba(255, 255, 255, .09) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  color: #ffffff !important;
}

.decision-modern-section .index-compare-icon iconify-icon {
  color: #ffffff !important;
}

.decision-modern-section .index-compare-split {
  background: transparent !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
}

.decision-modern-section .index-compare-half.is-negative {
  background: rgba(127, 29, 29, .34) !important;
}

.decision-modern-section .index-compare-half.is-positive {
  background: rgba(6, 78, 59, .42) !important;
}

.decision-modern-section .index-compare-half h4 {
  color: #ffffff !important;
}

.decision-modern-section .index-compare-half p {
  color: rgba(255, 255, 255, .70) !important;
}

.decision-modern-section .compare-pill {
  border: 1px solid rgba(255,255,255,.08) !important;
}

.decision-modern-section .compare-pill-red {
  color: #fb923c !important;
  background: rgba(251, 146, 60, .15) !important;
}

.decision-modern-section .compare-pill-green {
  color: #86efac !important;
  background: rgba(34, 197, 94, .16) !important;
}

.decision-modern-section .index-apple-compare-actions .btn-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff7a18, #ff8f2c) !important;
  border-color: transparent !important;
  box-shadow: 0 18px 38px rgba(255, 122, 24, .28) !important;
}

.decision-modern-section .index-apple-compare-actions .btn-outline-dark {
  color: #071024 !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, .10) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08) !important;
}

@media (max-width: 991.98px) {
  .decision-modern-section .index-apple-compare-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   365-Rechtsschutz: Hover & Micro-Interaction Upgrade
   Sanfte Premium-Effekte ohne Layout-/Grid-Änderungen
   ========================================================= */

.decision-modern-section .index-compare-card {
  position: relative !important;
  isolation: isolate !important;
  transform: translateZ(0) !important;
  transition:
    transform .38s cubic-bezier(.16, 1, .3, 1),
    box-shadow .38s cubic-bezier(.16, 1, .3, 1),
    border-color .38s cubic-bezier(.16, 1, .3, 1),
    background .38s cubic-bezier(.16, 1, .3, 1) !important;
}

.decision-modern-section .index-compare-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background:
    radial-gradient(circle at 22% 0%, rgba(96, 165, 250, .34), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(34, 197, 94, .22), transparent 30%);
  transition: opacity .38s cubic-bezier(.16, 1, .3, 1) !important;
  pointer-events: none;
}

.decision-modern-section .index-compare-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.10) 42%, transparent 70%);
  transform: translateX(-120%);
  transition: opacity .25s ease, transform .72s cubic-bezier(.16, 1, .3, 1) !important;
  pointer-events: none;
}

.decision-modern-section .index-compare-card > * {
  position: relative;
  z-index: 1;
}

.decision-modern-section .index-compare-card:hover {
  transform: translateY(-8px) scale(1.012) !important;
  border-color: rgba(147, 197, 253, .28) !important;
  box-shadow: 0 42px 110px rgba(15, 23, 42, .30), 0 0 0 1px rgba(255,255,255,.08) inset !important;
}

.decision-modern-section .index-compare-card:hover::before {
  opacity: 1;
}

.decision-modern-section .index-compare-card:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.decision-modern-section .index-compare-icon {
  transition:
    transform .35s cubic-bezier(.16, 1, .3, 1),
    background .35s cubic-bezier(.16, 1, .3, 1),
    border-color .35s cubic-bezier(.16, 1, .3, 1) !important;
}

.decision-modern-section .index-compare-card:hover .index-compare-icon {
  transform: translateY(-3px) rotate(-3deg) scale(1.04) !important;
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.20) !important;
}

.decision-modern-section .index-compare-half {
  transition:
    background .35s cubic-bezier(.16, 1, .3, 1),
    transform .35s cubic-bezier(.16, 1, .3, 1) !important;
}

.decision-modern-section .index-compare-card:hover .index-compare-half.is-negative,
.decision-modern-section .index-compare-card:hover .index-compare-half.is-positive {
  transform: translateY(-2px) !important;
}

.decision-modern-section .index-apple-compare-actions .btn {
  position: relative !important;
  overflow: hidden !important;
  transition:
    transform .28s cubic-bezier(.16, 1, .3, 1),
    box-shadow .28s cubic-bezier(.16, 1, .3, 1),
    background .28s cubic-bezier(.16, 1, .3, 1) !important;
}

.decision-modern-section .index-apple-compare-actions .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.30) 46%, transparent 72%);
  transform: translateX(-130%);
  transition: transform .58s cubic-bezier(.16, 1, .3, 1) !important;
  pointer-events: none;
}

.decision-modern-section .index-apple-compare-actions .btn:hover {
  transform: translateY(-3px) scale(1.015) !important;
}

.decision-modern-section .index-apple-compare-actions .btn:hover::after {
  transform: translateX(130%);
}

.decision-modern-section .index-apple-compare-actions .btn-primary:hover {
  box-shadow: 0 24px 52px rgba(255, 122, 24, .38) !important;
}

.decision-modern-section .index-apple-compare-actions .btn-outline-dark:hover {
  box-shadow: 0 22px 48px rgba(15, 23, 42, .14) !important;
}

@media (prefers-reduced-motion: reduce) {
  .decision-modern-section .index-compare-card,
  .decision-modern-section .index-compare-card::before,
  .decision-modern-section .index-compare-card::after,
  .decision-modern-section .index-compare-icon,
  .decision-modern-section .index-compare-half,
  .decision-modern-section .index-apple-compare-actions .btn,
  .decision-modern-section .index-apple-compare-actions .btn::after {
    transition: none !important;
    transform: none !important;
  }
}
