/* ==========================================================================
   Puels.legal · Pillar-Section
   Zwei thematische Säulen — visuell verbunden durch Connector + Hintergrund.
   Beispiel: Gesellschafterkonflikt + M&A (zwei komplementäre Bereiche).
   ========================================================================== */

.pillar-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Verbindender Hintergrund — sehr subtil, gold-cream haze unten */
.pillar-section::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  height: 80%;
  background: radial-gradient(ellipse at center,
    rgba(212, 179, 106, 0.08) 0%,
    rgba(212, 179, 106, 0.02) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container fuer die Saeulen-Anordnung */
.pillar-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  z-index: 1;
}

/* ===== Card ===== */
.pillar-card {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  background: #FFFFFF;
  border: 1px solid var(--border, #E6E0D2);
  border-radius: 22px;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 14px 36px -22px rgba(15, 17, 21, 0.12);
}

/* Subtiler radial gold haze top-right inside card */
.pillar-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at center, rgba(212, 179, 106, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold, #B08856);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 28px 56px -22px rgba(15, 17, 21, 0.20),
    0 6px 18px -10px rgba(176, 136, 86, 0.30);
}
.pillar-card:hover::before { opacity: 1; }

/* When one card is hovered, the other card subtly engages too */
.pillar-grid:hover .pillar-card:not(:hover) {
  border-color: rgba(176, 136, 86, 0.35);
}

/* ===== Card-Icon ===== */
.pillar-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 179, 106, 0.22), rgba(176, 136, 86, 0.10));
  border: 1px solid rgba(176, 136, 86, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold, #B08856);
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.35s ease;
}
.pillar-card-icon svg { width: 36px; height: 36px; }

.pillar-card:hover .pillar-card-icon {
  transform: rotate(-4deg) scale(1.06);
  color: var(--gold-bright, #D4B36A);
}

/* Card content sits above radial haze */
.pillar-card .eyebrow,
.pillar-card h2,
.pillar-card p,
.pillar-card .checklist {
  position: relative;
  z-index: 1;
}

.pillar-card h2 {
  margin-top: 0.3rem;
  margin-bottom: 1rem;
}

/* Eyebrow — without dash on cards (icon already conveys the section) */
.pillar-card .eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #B08856);
  margin-bottom: 0.4rem;
  display: inline-block;
}

/* Checklist refinement */
.pillar-card .checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pillar-card .checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(20, 33, 61, 0.86);
}
.pillar-card .checklist svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--gold, #B08856);
  margin-top: 2px;
}
.pillar-card .checklist strong {
  color: var(--navy, #14213D);
  font-weight: 700;
}

/* ===== Connector zwischen den Karten ===== */
.pillar-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0 1.4rem;
  position: relative;
  z-index: 2;
}

.pillar-connector-line {
  flex: 1;
  width: 1.5px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(176, 136, 86, 0.50) 30%,
    rgba(176, 136, 86, 0.50) 70%,
    transparent 100%);
}

.pillar-connector-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--gold, #B08856);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold, #B08856);
  flex: 0 0 auto;
  position: relative;
  box-shadow:
    0 6px 14px -6px rgba(176, 136, 86, 0.40),
    0 0 0 6px rgba(255, 255, 255, 0.60);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pillar-connector-badge svg { width: 22px; height: 22px; }
.pillar-grid:hover .pillar-connector-badge {
  transform: translateY(-2px) scale(1.06);
}
/* Subtle scale-balance "wiggle" when whole grid is hovered */
.pillar-grid:hover .pillar-connector-badge svg {
  animation: pillar-scale-wobble 1.6s ease-in-out infinite;
  transform-origin: 12px 7.5px;
}
@keyframes pillar-scale-wobble {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(2.5deg); }
  75%      { transform: rotate(-2.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pillar-grid:hover .pillar-connector-badge svg { animation: none; }
}

/* ===== Bottom unified CTA (after both cards) ===== */
.pillar-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding: 1.4rem 1.8rem;
  background: linear-gradient(135deg, rgba(245, 242, 234, 0.85), rgba(255, 255, 255, 0.95));
  border: 1px dashed rgba(176, 136, 86, 0.40);
  border-radius: 18px;
  position: relative;
  z-index: 1;
}
.pillar-cta > span {
  font-family: var(--font-sans, "Inter", system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy, #14213D);
  flex: 1 1 auto;
}
.pillar-cta .btn { flex: 0 0 auto; }

/* ============== Responsive ============== */
@media (max-width: 920px) {
  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pillar-card { border-radius: 18px; padding: 2rem 1.5rem 1.6rem; }
  .pillar-card-icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 1.1rem; }
  .pillar-card-icon svg { width: 32px; height: 32px; }

  /* Connector becomes horizontal short line + badge between stacked cards */
  .pillar-connector {
    flex-direction: row;
    padding: 1rem 0;
    gap: 0.5rem;
  }
  .pillar-connector-line {
    width: auto;
    height: 1.5px;
    flex: 1;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(176, 136, 86, 0.50) 30%,
      rgba(176, 136, 86, 0.50) 70%,
      transparent 100%);
  }
  .pillar-connector-badge {
    width: 42px; height: 42px;
  }

  .pillar-cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pillar-card,
  .pillar-card-icon,
  .pillar-connector-badge { transition: none !important; }
  .pillar-card:hover { transform: none; }
  .pillar-card:hover .pillar-card-icon,
  .pillar-grid:hover .pillar-connector-badge { transform: none; }
}
