.te-matrix {
  font-family: var(--e-global-typography-text-font-family, inherit);
  color: var(--e-global-color-text, #111);
  width: 100%;
}

/* Toolbar / Legende */
.te-matrix-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.te-matrix-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.te-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(0, 0, 0, .65);
}

.te-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--e-global-color-primary, #e30046);
}

/* Table reset */
.te-matrix .te-table,
.te-matrix .te-table * {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.te-matrix .te-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 16px;
  table-layout: fixed;
  margin: 0;
}

.te-matrix .te-table-wrap {
  background: transparent;
  width: 100%;
  margin: 0;
}

/* Column widths (Tables) */
.te-table col.te-col-feature {
  width: 44% !important;
}

.te-table col.te-col-plan {
  width: 18.666% !important;
}

/* Header (Icons/Titles/Subs) als Grid: gleiche Spalten wie Tabellen */
.te-head {
  margin-bottom: 8px;
}

.te-head-grid {
  display: grid;
  grid-template-columns: var(--te-col-feature, 44%) var(--te-col-plan, 18.666%) var(--te-col-plan, 18.666%) var(--te-col-plan, 18.666%);
  align-items: center;
}

.te-head-cell {
  padding: 10px 20px;
  text-align: center;
}

.te-head-feature {
  text-align: left;
}

/* Icons row */
.te-head-icons .te-head-cell {
  padding-top: 6px;
  padding-bottom: 6px;
}

.te-plan-icon {
  width: 78px;
  height: 78px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: inline-block;
}

.te-icon-premium {
  background-image: var(--te-icon-premium);
}

.te-icon-allstar {
  background-image: var(--te-icon-allstar);
}

.te-icon-allin {
  background-image: var(--te-icon-allin);
}

/* Sticky titles row (über ALLE Bereiche der Matrix) */
.te-head-titles {
  position: sticky;
  top: var(--te-sticky-top, 0px);
  z-index: 999;
  background: linear-gradient(-90deg, #ffffff 50%, transparent 100%);;
}

.te-plan-title {
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--e-global-color-primary);
  display: inline-block;
}

/* Subs row */
.te-plan-sub {
  font-size: 15px;
  font-weight: 400;
  color: rgba(0, 0, 0, .6);
  max-width: 34ch;
  text-align: center;
  display: inline-block;
}

/* Teilnehmerlimit Tabelle */
.te-table-head tbody td {
  padding: 18px 20px;
  background: #ffffff !important;
  font-size: 16px;
  text-align: center;
}

.te-feature {
  text-align: left !important;
  font-weight: 500;
}

.te-value {
  text-align: center;
}

/* Accordion */
.te-accordion {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 18px;
}

.te-group {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .06);
  padding: 0;
}

.te-group-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 16px;
  cursor: pointer;
}

.te-group-summary::-webkit-details-marker {
  display: none;
}

.te-group-chevron {
  width: 35px;
  height: 35px;
  position: relative;
  flex-shrink: 0;
  transition: transform .25s ease;
}

.te-group-chevron::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://tippevent.dev-pfeffermond.de/wp-content/uploads/2026/01/arrow-3.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
}

.te-group[open] .te-group-chevron {
  transform: rotate(180deg);
}

.te-group-title {
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-size: 24px;
  font-weight: 400;
  color: rgba(0, 0, 0, .9);
}

.te-group-meta {
  font-size: 16px;
  color: rgba(0, 0, 0, .6);
}

/* Inner tables */
.te-matrix table.te-table:not(.te-table-head) thead {
  display: none;
}

.te-matrix .te-table tbody td {
  padding: 18px 20px;
  font-size: 16px;
  color: rgba(0, 0, 0, .85);
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  line-height: 1;
}

.te-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.te-table tbody tr:nth-child(even) td {
  background: #e6e6e63b;
}

.te-incl::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: var(--te-check-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}


.te-matrix-legend {
  color: #8c8c8c;
  margin: 15px 0;
}

/* Mobile: horizontales Scrollen, ohne das Sticky (top) zu zerstören */
.te-xscroll {
  width: 100%;
}

.te-xscroll-inner {
  width: 100%;
}

@media (max-width: 768px) {
  .te-xscroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .te-xscroll-inner {
    min-width: 450px;
  }

  /* optional: Scrollbar sichtbarer */
  .te-xscroll {
    scrollbar-width: thin;
  }

  .te-xscroll::-webkit-scrollbar {
    height: 10px;
  }

  .te-xscroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .06);
    border-radius: 999px;
  }

  .te-xscroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .18);
    border-radius: 999px;
  }

  /* Sticky bleibt sticky im Viewport, und scrollt horizontal mit (weil im gleichen Wrapper) */
  .te-head-titles {
    top: 0px;
  }

  .te-plan-sub {
    display: none;
    ;
  }

  .te-plan-icon {
    width: 50px;
    height: 50px;
  }

  .te-plan-title {
    font-size: 18px;
    writing-mode: vertical-lr;
  }



  .te-matrix .te-table tbody td {
    padding: 10px 10px;
    font-size: 14px !important;
  }

  .te-incl::before {
    width: 20px;
    height: 20px;
  }

  .te-group-summary {
    gap: 10px;
    padding: 10px;
    height: 50px;
  }

  .te-group-chevron {
    width: 35px;
    height: 35px;
  }

  .te-group-chevron::before {
    background-size: 20px 20px;
  }

  .te-group-title {
    font-size: 18px;
  }
}