/* FinanzHub — Rechner-Hub
   Karten-Grid für alle Rechner/Planer-Tools.
   Namespace: .rh-* */

/* Spezifität anheben, damit padding nicht von
   body[class*="theme-"] .heat-main-host > .sheet { padding: 0 } überschrieben wird. */
body[class*="theme-"] .heat-main-host > .sheet.rh-sheet {
  padding: 36px 32px 160px;
}

.rh-header {
  max-width: 1080px;
  margin: 24px auto 32px;
  padding: 0 4px;
}

.rh-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #FFFFFF);
  margin-bottom: 14px;
}

.rh-h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 14px;
}

.rh-sub {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  max-width: 640px;
  margin: 0;
}

.rh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .rh-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body[class*="theme-"] .heat-main-host > .sheet.rh-sheet { padding: 24px 16px 180px; }
  .rh-grid { grid-template-columns: 1fr; gap: 14px; }
  .rh-header { margin: 12px auto 24px; }
}

.rh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 56px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  min-height: 168px;
}

.rh-card:hover,
.rh-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 40px -16px rgba(255, 255, 255, 0.35);
  outline: none;
}

.rh-card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  color: var(--accent, #FFFFFF);
}

.rh-card-icon svg {
  width: 22px;
  height: 22px;
}

.rh-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0;
}

.rh-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
}

.rh-card-hint {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent, #FFFFFF);
  margin-top: 4px;
}

.rh-card-arrow {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  transition: color 180ms ease, transform 180ms ease;
}

.rh-card:hover .rh-card-arrow {
  color: var(--accent, #FFFFFF);
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .rh-card,
  .rh-card-arrow {
    transition: none;
  }
  .rh-card:hover,
  .rh-card:focus-visible {
    transform: none;
  }
  .rh-card:hover .rh-card-arrow {
    transform: none;
  }
}
