/* ===== Pricing Table ===== */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.pricing-table:last-child {
  margin-bottom: 0;
}

.pricing-table caption {
  caption-side: top;
  text-align: left;
  margin-bottom: 0.5rem;
}

.pricing-table th,
.pricing-table td {
  border: 0;
}

/* horizontale Innenlinien */
.pricing-table tbody tr + tr td {
  border-top: 1px solid var(--gray-medium);
}

/* vertikale Innenlinien (optional) */
/*.pricing-table td + td,
.pricing-table th + th {
  border-left: 1px solid var(--gray-light);
}*/

.pricing-table thead th,
.pricing-table tbody td {
  padding: 0.6rem 0.8rem 0.75rem 0.8rem;
}

.pricing-table thead th {
  text-align: left;
  font-weight: 500;
}

.pricing-table thead th {
  background: var(--red);
  color: var(--white)
}

.pricing-table tbody tr:nth-child(odd) {
  background: var(--bg-off-white);
}

.pricing-table tbody tr:nth-child(even) {
  background: var(--bg-off-white);
}

/* Zahlen rechtsbündig */
.pricing-table .num,
.pricing-table td[data-type="num"] {
  text-align: right;
  white-space: nowrap;
}

/* Preisdarstellung */
.pricing-table .price {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.pricing-table .price .unit {
  font-weight: 400;
  margin-left: 0.25rem;
}

/* Kleinere Hinweise, nutzt vorhandene Utilities */
.pricing-table .note {
  display: block;
  margin-top: 0.2rem;
}

/* Kompaktere Variante bei Bedarf */
.pricing-table--compact thead th,
.pricing-table--compact tbody td {
  padding: 0.45rem 0.6rem;
}

/* Einheitliche Spaltenbreiten für Preistabellen */
.pricing-table {
  table-layout: fixed;
}


.pricing-table th:first-child,
.pricing-table td:first-child {
  width: 50%;
}

.pricing-table th:last-child,
.pricing-table td:last-child {
  width: 50%;
}

@media (max-width:768px) {
  .pricing-table th:first-child,
  .pricing-table td:first-child {
    width: 60%;
  }
  .pricing-table th:last-child,
  .pricing-table td:last-child {
    width: 40%;
  }
}

@media (max-width:480px) {
  .pricing-table th:first-child,
  .pricing-table td:first-child {
    width: 50%;
  }
  .pricing-table th:last-child,
  .pricing-table td:last-child {
    width: 50%;
  }
}

.pricing-table-wrap {
  border: 1px solid var(--gray-light);
  overflow: hidden;
}
.pricing-table-wrap:not(:last-child) {
  margin-bottom: 1rem;
}

/* Responsive: bei schmalen Viewports horizontales Scrollen erlauben */
@media (max-width: 480px) {
  .pricing-table-wrap { /* Wrapper zwingt Scrollen */
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pricing-table {
    min-width: 320px; /* genug Breite, damit gescrollt wird */
  }
  .pricing-table th,
  .pricing-table td {
    white-space: nowrap; /* verhindert Zeilenumbruch, kein Überlappen */
  }
}

@media (max-width: 480px) {
  .pricing-table thead th .wrap-mobile {
    white-space: normal;     /* überschreibt das geerbte nowrap */
    display: block;         /* Standard, nur der Klarheit halber */
  }
}
