/* ============================================================
   Rechtsform-Duell – GmbH vs. UG als zwei gegenüberstehende
   Karten mit animierten Münz-Grafiken (ersetzt die Vergleichs-
   tabelle auf gruender.html).
   ============================================================ */

.rf-duel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 720px) { .rf-duel { grid-template-columns: 1fr; } }

/* "VS"-Marker zwischen den Karten */
.rf-duel { position: relative; }
.rf-duel::after {
  content: "VS";
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14213D 0%, #1f3258 100%);
  color: #D4B36A;
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  font-size: 1rem;
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.9), 0 8px 20px -8px rgba(20,33,61,0.4);
}
@media (max-width: 720px) { .rf-duel::after { display: none; } }

/* --- Card --- */
.rf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 10px 30px -18px rgba(20, 33, 61, 0.22);
  transition: transform 0.55s cubic-bezier(0.2,0.8,0.2,1),
              box-shadow 0.55s cubic-bezier(0.2,0.8,0.2,1),
              border-color 0.4s ease;
}
.rf-card.reveal { opacity: 0; }
.rf-card.reveal--left  { transform: translateX(-32px) translateY(14px); }
.rf-card.reveal--right { transform: translateX(32px)  translateY(14px); }
.rf-card.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
  transition: opacity 0.7s cubic-bezier(0.2,0.8,0.2,1),
              transform 0.7s cubic-bezier(0.2,0.8,0.2,1),
              box-shadow 0.55s ease, border-color 0.4s ease;
}
.rf-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 179, 106, 0.5);
  box-shadow: 0 28px 56px -24px rgba(20, 33, 61, 0.34);
}

/* --- Header --- */
.rf-card__head {
  position: relative;
  padding: 1.5rem 1.6rem 1.2rem;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  color: #14213D;
  border-bottom: 1px solid rgba(20, 33, 61, 0.07);
}
/* dünner Gold-Akzentstrich oben — gibt jeder Karte Charakter */
.rf-card__head::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #B08856 0%, #D4B36A 55%, #E4C988 100%);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
}
.rf-card:hover .rf-card__head::before { transform: scaleX(1); }
.rf-card__head::after {
  content: "";
  position: absolute;
  top: -50%; right: -25%;
  width: 70%; height: 200%;
  background: radial-gradient(circle, rgba(212,179,106,0.16) 0%, transparent 62%);
  z-index: -1;
  transition: transform 0.6s ease;
}
.rf-card:hover .rf-card__head::after { transform: scale(1.18) translate(-6%, 6%); }

.rf-card__label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: #B08856;
}
.rf-card__name {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  line-height: 1;
  margin: 0.25rem 0 0;
  color: #14213D;
}
.rf-card__name em { font-size: 0.6em; font-style: italic; opacity: 0.8; }

/* --- Graphic --- */
.rf-card__graphic {
  height: 104px;
  display: grid;
  place-items: center;
  margin-top: 0.4rem;
}
.rf-card__graphic svg { width: auto; height: 100px; display: block; }

/* --- Facts --- */
.rf-card__facts {
  padding: 0.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.rf-fact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: baseline;
  padding: 0.68rem 0;
  border-bottom: 1px solid rgba(20, 33, 61, 0.07);
  transition: background 0.3s ease;
}
.rf-fact:last-child { border-bottom: none; }
.rf-card__facts:hover .rf-fact { opacity: 0.55; transition: opacity 0.3s ease; }
.rf-card__facts:hover .rf-fact:hover {
  opacity: 1;
  background: linear-gradient(90deg, rgba(212,179,106,0.10), transparent 90%);
  border-radius: 7px;
}
.rf-fact__k {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7385;
  letter-spacing: -0.005em;
}
.rf-fact__v {
  font-size: 0.88rem;
  font-weight: 600;
  color: #14213D;
  text-align: right;
}
.rf-fact__v strong { color: #B08856; font-weight: 700; }
.rf-fact__v .dash {
  color: #9aa2b1;
  font-weight: 500;
  font-style: italic;
}

/* ============================================================
   Animationen der Münz-Grafiken
   ============================================================ */
/* GmbH — Münzstapel atmet + Funkeln */
.rf-stack {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: rf-breathe 3.6s ease-in-out infinite;
}
@keyframes rf-breathe {
  0%, 100% { transform: scale(1);    }
  50%      { transform: scale(1.045);}
}
.rf-sparkle {
  transform-box: fill-box;
  transform-origin: center;
  animation: rf-sparkle 2.4s ease-in-out infinite;
}
.rf-sparkle--2 { animation-delay: 1.2s; }
@keyframes rf-sparkle {
  0%, 100% { opacity: 0;   transform: scale(0.3) rotate(0deg);   }
  50%      { opacity: 1;   transform: scale(1)   rotate(45deg);  }
}

/* UG — Einzelmünze pulsiert, Wachstums-Ring dreht, Pfeil steigt */
.rf-coin-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: rf-coin-pulse 3s ease-in-out infinite;
}
@keyframes rf-coin-pulse {
  0%, 100% { transform: scale(1);    }
  50%      { transform: scale(1.06); }
}
.rf-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: rf-ring 14s linear infinite;
}
@keyframes rf-ring { to { transform: rotate(360deg); } }
.rf-arrow {
  transform-box: fill-box;
  transform-origin: center;
  animation: rf-arrow 2.3s ease-in-out infinite;
}
@keyframes rf-arrow {
  0%, 100% { transform: translateY(3px);  opacity: 0.45; }
  50%      { transform: translateY(-4px); opacity: 1;    }
}

/* --- Shared note below --- */
.rf-shared {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20,33,61,0.04) 0%, rgba(212,179,106,0.08) 100%);
  border: 1px solid rgba(212, 179, 106, 0.25);
}
.rf-shared__icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #14213D 0%, #1f3258 100%);
  color: #D4B36A;
}
.rf-shared__icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.rf-shared__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4b5366;
  margin: 0;
}
.rf-shared__text strong { color: #14213D; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .rf-card, .rf-card *,
  .rf-stack, .rf-sparkle, .rf-coin-pulse, .rf-ring, .rf-arrow {
    animation: none !important;
    transition: none !important;
  }
}
