/* Firmenrechtsschutz Apple Coverage Table */

.firma-coverage-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.firma-coverage-table {
  display: grid;
  grid-template-columns: minmax(190px, 0.95fr) repeat(3, minmax(132px, 0.82fr));
  min-width: 700px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.045);
}

.firma-coverage-cell {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.firma-coverage-cell:nth-child(4n) {
  border-right: 0;
}

.firma-coverage-cell:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.firma-coverage-head {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.085);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #fff;
}

.firma-coverage-head:first-child {
  justify-content: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.54);
}

.firma-coverage-label {
  display: flex;
  min-height: 106px;
  flex-direction: column;
  justify-content: center;
  color: #f5f5f7;
}

.firma-coverage-label strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.firma-coverage-label span {
  display: block;
  margin-top: 0.45rem;
  max-width: 22ch;
  overflow-wrap: break-word;
  hyphens: auto;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.50);
}

.firma-coverage-value {
  display: flex;
  min-height: 106px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  overflow-wrap: anywhere;
  font-size: clamp(0.82rem, 1.15vw, 0.98rem);
  font-weight: 760;
  line-height: 1.2;
}

.firma-coverage-value.is-yes {
  color: #7ee07f;
}

.firma-coverage-value.is-optional {
  color: #f2c879;
}

.firma-coverage-value.is-no {
  color: rgba(255, 255, 255, 0.46);
  font-size: 1.35rem;
}

.firma-coverage-icon {
  display: inline-grid;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(48, 209, 88, 0.14);
  color: #7ee07f;
  font-size: 1.15rem;
  font-weight: 900;
}

.firma-coverage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.68);
}

.firma-coverage-card {
  transition:
    transform 750ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 750ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 750ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .firma-coverage-card:hover {
    transform: translateY(-4px) scale(1.006);
    background: rgba(255, 255, 255, 0.062);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  }
}

@media (max-width: 640px) {
  .firma-coverage-table {
    min-width: 640px;
    grid-template-columns: minmax(168px, 0.95fr) repeat(3, minmax(118px, 0.8fr));
    border-radius: 1.45rem;
  }

  .firma-coverage-cell {
    padding: 0.82rem;
  }

  .firma-coverage-head {
    min-height: 58px;
  }

  .firma-coverage-label,
  .firma-coverage-value {
    min-height: 96px;
  }

  .firma-coverage-icon {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .firma-coverage-card {
    transition: none !important;
  }

  .firma-coverage-card:hover {
    transform: none !important;
  }
}
