/**
 * OCM Landing Page - Pricing Table Styles
 * 
 * Styles für die Preistabelle
 */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-top: 32px;
}

.pricecard {
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  background: linear-gradient(135deg, #ffffff, #fdfffe);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 107, 77, 0.06);
}

.pricecard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricecard:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(15, 107, 77, 0.15);
  border-color: var(--accent);
}

.pricecard:hover::before {
  opacity: 1;
}

.pricehead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.pricehead h3 {
  margin: 0 0 12px 0;
  font-size: 24px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricehead h3 i {
  color: var(--accent);
}

.price {
  font-weight: 700;
  font-size: 28px;
  color: var(--brand);
  line-height: 1.2;
}

.price-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 400;
}

.price-subtitle.highlight {
  color: var(--orange);
  font-weight: 600;
}

.features {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  margin: 10px 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  padding-left: 28px;
  position: relative;
}

.features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 16px;
}

.pricecard .btns {
  margin-top: auto;
  padding-top: 20px;
}

/* Preis-Tabelle */
.pricing-table-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  margin: 48px 0 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 107, 77, 0.1);
  background: var(--card);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.pricing-table thead {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}

.pricing-table th {
  padding: 48px 16px;
  text-align: center;
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  vertical-align: middle;
  overflow: visible;
}

.pricing-table th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  z-index: 3;
}

.pricing-table .th-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.pricing-table .th-content-features {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.pricing-table .th-content-features i {
  font-size: 24px;
}

.pricing-table .th-content-features span {
  font-size: 20px;
  font-weight: 700;
}

.pricing-table .feature-column .th-content {
  align-items: flex-start;
}

.pricing-table .plan-icon {
  font-size: 36px;
  color: #fff;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-table .plan-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-table .plan-price {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

.pricing-table .plan-subtitle {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 400;
}

.pricing-table .plan-popular {
  background: linear-gradient(135deg, var(--orange), #ff9432);
  position: relative;
}

.pricing-table .popular-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--orange);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  z-index: 5;
}

.pricing-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.pricing-table tbody tr:hover {
  background: linear-gradient(135deg, #f0f8f5, var(--bg));
}

.pricing-table tbody td {
  padding: 16px;
  text-align: center;
  vertical-align: middle;
}

.pricing-table .feature-name {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  padding-left: 20px;
  position: sticky;
  left: 0;
  background: var(--card);
  z-index: 2;
}

.pricing-table tbody tr:hover .feature-name {
  background: linear-gradient(135deg, #f0f8f5, var(--bg));
}

.pricing-table .feature-check {
  color: var(--accent);
  font-size: 20px;
}

.pricing-table .feature-no {
  color: var(--muted);
  font-size: 20px;
  opacity: 0.3;
}

.pricing-table .feature-value {
  color: var(--brand);
  font-weight: 500;
  font-size: 14px;
}

.pricing-table .category-row td {
  background: linear-gradient(135deg, var(--border), #f0f8f5);
  padding: 12px 20px;
  font-weight: 600;
  color: var(--brand);
  text-align: left;
  border-top: 2px solid var(--accent);
}

.pricing-table .cta-row {
  background: var(--bg);
}

.pricing-table .cta-row td {
  padding: 20px 16px;
  border-top: 2px solid var(--border);
}

.btn-table {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--border);
  color: var(--text);
  background: transparent;
  transition: all 0.3s ease;
}

.btn-table:hover {
  background: var(--border);
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-table-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.btn-table-primary:hover {
  background: #c66508;
  border-color: #c66508;
  box-shadow: 0 4px 12px rgba(225, 119, 10, 0.3);
}

@media (max-width: 768px) {
  .pricing-table-wrapper {
    border-radius: 12px;
  }
  .pricing-table {
    font-size: 13px;
  }
  .pricing-table th {
    padding: 16px 12px;
  }
  .pricing-table tbody td {
    padding: 12px 10px;
  }
  .pricing-table .plan-name {
    font-size: 16px;
  }
  .pricing-table .plan-price {
    font-size: 18px;
  }
  .pricing-table .feature-name {
    font-size: 13px;
    padding-left: 12px;
  }
  .btn-table {
    padding: 8px 14px;
    font-size: 13px;
  }
}
