.tva-fees-panel.kachel-unsichtbar {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.tabelle-beitraege th:nth-child(2),
.tabelle-beitraege th:nth-child(3),
.tabelle-beitraege td:nth-child(2),
.tabelle-beitraege td:nth-child(3) {
  min-width: 120px;
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.table-einfache-preisliste-2preise thead th:nth-child(2),
.table-einfache-preisliste-2preise thead th:nth-child(3),
.table-einfache-preisliste-2preise thead th:nth-child(4),
.table-einfache-preisliste-2preise thead th:nth-child(5) {
  text-align: center !important;
}

.table-einfache-preisliste-2preise tbody td:nth-child(2),
.table-einfache-preisliste-2preise tbody td:nth-child(3),
.table-einfache-preisliste-2preise tbody td:nth-child(4),
.table-einfache-preisliste-2preise tbody td:nth-child(5) {
  min-width: 110px;
  text-align: right !important;
  white-space: nowrap;
  font-weight: 400 !important;
}

/* Tennis-Tabelle: Aktiv/Passiv Spalten gleich breit */
.tva-fees-table-tennis .fees-table th:nth-child(2),
.tva-fees-table-tennis .fees-table th:nth-child(3),
.tva-fees-table-tennis .fees-table td:nth-child(2),
.tva-fees-table-tennis .fees-table td:nth-child(3) {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}
/* Weniger Abstand vor Tennis-Kachel */
#grundbeitraege > .content-card.tva-fees-panel:nth-of-type(5) {
  margin-top: 0.5em;
}
/* Mehr Abstand zwischen den Buttons im Hero-Panel */
.tva-fees-hero__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.tva-fees-hero__actions > .button {
  margin-right: 0;
}
.tva-fees-hero__actions > .button + .button {
  margin-left: 0.6rem;
}
/* Kachel 'Abteilungsbeiträge für Tennisabteilung' transparent */
#grundbeitraege > .content-card.tva-fees-panel:nth-of-type(5) {
  background: transparent;
  box-shadow: none;
  border: none;
}
/* Kachel 'Abteilungsbeiträge für Mädchenturnen am Talentstützpunkt' transparent */
#grundbeitraege > .content-card.tva-fees-panel:nth-of-type(4) {
  background: transparent;
  box-shadow: none;
  border: none;
}
/* Kachel 'Einfache Abteilungsbeiträge' transparent */
#grundbeitraege > .content-card.tva-fees-panel:nth-of-type(3) {
  background: transparent;
  box-shadow: none;
  border: none;
}
/* Kachel 'Im Mitgliedbeitrag enthaltene Sportabteilungen' transparent */
#grundbeitraege > .content-card.tva-fees-panel:nth-of-type(2) {
  background: transparent;
  box-shadow: none;
  border: none;
}
/* Mitgliedsbeiträge-Kachel transparent */
#grundbeitraege > .content-card.tva-fees-panel:first-of-type {
  background: transparent;
  box-shadow: none;
  border: none;
}
.tva-fees-table-tennis .fees-table tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}
/* TVA-TEST: Hover-Effekt für Zeile und Spalte in Tennis-Tabelle */


.tva-fees-table-tennis .fees-table td {
  /* Only for Aktiv/Passiv columns (2-5) */
}
.tva-fees-table-tennis .fees-table th:nth-child(2),
.tva-fees-table-tennis .fees-table th:nth-child(3),
.tva-fees-table-tennis .fees-table th:nth-child(4),
.tva-fees-table-tennis .fees-table th:nth-child(5),
.tva-fees-table-tennis .fees-table td:nth-child(2),
.tva-fees-table-tennis .fees-table td:nth-child(3),
.tva-fees-table-tennis .fees-table td:nth-child(4),
.tva-fees-table-tennis .fees-table td:nth-child(5) {
  min-width: 110px;
  max-width: 140px;
}
/* TVA-TEST: Geldzellen in Tennis-Tabelle mittig */
.tva-fees-table-tennis .fees-table td:not(:first-child),
.tva-fees-table-tennis .fees-table th:not(:first-child) {
  text-align: center;
}
/* Modernes Aussehen für Tennis-Tabelle */
.tva-fees-table-tennis .fees-table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px 0 rgba(30,40,60,0.07);
  border: 1.5px solid var(--line);
}
.tva-fees-table-tennis .fees-table th,
.tva-fees-table-tennis .fees-table td {
  border: none;
}
.tva-fees-table-tennis .fees-table th {
  background: var(--chip-bg, #eaf3fa);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.04em;
  padding-top: 1.1em;
  padding-bottom: 1.1em;
}
.tva-fees-table-tennis .fees-table td {
  background: transparent;
  font-size: 1.01em;
  padding-top: 0.95em;
  padding-bottom: 0.95em;
  border-bottom: 1px solid var(--line);
}
.tva-fees-table-tennis .fees-table tbody tr:last-child td {
  border-bottom: none;
}
.tva-fees-table-tennis .fees-table td:first-child {
  text-align: left;
}
.tva-fees-table-tennis .fees-table td:not(:first-child) {
  text-align: center;
}
/* Tennis-Tabelle volle Breite im Artikel */
.tva-fees-table-tennis {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
/* Tennis-Tabelle volle Breite in Kachel */
/* Remove custom width for Tennis table, use default card width */
/* Result row: label left, value right */
.tva-fees-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
  margin-bottom: 0.2rem;
}
.tva-fees-result-label {
  font-size: 1.08rem;
  color: var(--ink);
  font-weight: 500;
}
.tva-fees-result-row strong {
  font-size: 1.18rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
}
[data-theme="dark"] .tva-fees-result-label,
[data-theme="dark"] .tva-fees-result-row strong {
  color: var(--ink);
}
@media (max-width: 600px) {
  .tva-fees-result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }
  .tva-fees-result-row strong {
    margin-left: 0;
  }
}
/* Reduce gap between calculator action buttons */
.tva-fees-hero__actions {
  gap: 0 !important;
}
/* Calculator: label left, select right */
/* Kompakte Felder für Mädchenturnen-Rechner */
/* Noch engere Felder für Mädchenturnen-Rechner */
.tva-fees-calculator__form .tva-fees-field-row {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  margin-bottom: 0.12rem;
  width: 100%;
}
/* Größere Mindestbreite für Label, damit kein Zeilenumbruch bei längeren Texten wie 'Gruppentraining pro Woche' */
/* Noch größere Mindestbreite für Label, damit kein Zeilenumbruch bei längeren Texten wie 'Gruppentraining pro Woche' */
.tva-fees-calculator__form .tva-fees-field-row label {
  flex: 0 0 220px;
  min-width: 200px;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0;
}
[data-theme="dark"] .tva-fees-calculator__form .tva-fees-field-row label {
  color: var(--ink);
}
@media (max-width: 600px) {
  .tva-fees-calculator__form .tva-fees-field-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .tva-fees-calculator__form .tva-fees-field-row label {
    min-width: 0;
    width: 100%;
    margin-bottom: 0.1rem;
  }
}
/*
 * TVA-Custom-Select: ersetzt das native <select> im Rechner. Angelehnt an
 * ein Uiverse.io-Template (3bdel3ziz-T), Farben aber wie bei .checkbox-box
 * (tva-checkbox.css) auf die TVA-Design-Tokens (--ink/--accent-solid/--line)
 * umgestellt statt der festen Vorlagenfarben, damit es in Hell- und
 * Dunkelmodus passt. Da die Optionen aus Supabase kommen (variable Anzahl),
 * öffnet/schließt ein Button per Klick statt per CSS-Hover, und der
 * angezeigte Text wird per JS gesetzt statt über CSS-`:has()`-Tricks.
 */
.tva-custom-select {
  position: relative;
  flex: 1 1 180px;
  min-width: 120px;
  max-width: 320px;
}
.tva-fees-calculator__form .tva-fees-field-row .tva-custom-select {
  /* Gleiche Breite wie das aufgeklappte Options-Panel (max-width dort),
     damit das geschlossene Feld nicht schmaler wirkt als sein Pulldown. */
  flex: 1 1 80px;
  min-width: 60px;
  max-width: min(240px, 90vw);
}
.tva-custom-select__selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: #203040;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s, color 0.2s;
}
.tva-fees-calculator__form .tva-fees-field-row .tva-custom-select__selected {
  min-height: 26px;
  max-height: 30px;
  padding: 2px 6px;
}
[data-theme="dark"] .tva-custom-select__selected {
  background: rgba(15, 27, 37, 0.94);
  color: var(--ink);
}
.tva-custom-select__selected:focus-visible {
  outline: 2px solid var(--accent-solid);
  outline-offset: 2px;
}
.tva-custom-select__selected-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tva-custom-select__arrow {
  width: 0.75em;
  height: 0.75em;
  flex-shrink: 0;
  fill: currentColor;
  transition: transform 0.2s ease;
}
.tva-custom-select--open .tva-custom-select__arrow {
  transform: rotate(180deg);
}
.tva-custom-select__options {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 20;
  padding: 4px;
  /* Exakt so breit wie der Trigger-Button (dessen max-width ist auf
     denselben Wert gesetzt, siehe .tva-fees-field-row .tva-custom-select) -
     Feld und Pulldown sind damit immer gleich breit. */
  width: 100%;
  max-height: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}
[data-theme="dark"] .tva-custom-select__options {
  background: rgba(15, 27, 37, 0.98);
}
.tva-custom-select--open .tva-custom-select__options {
  display: flex;
}
.tva-custom-select__option-item {
  /* Flex-Kind im Column-Flex-Container: ohne min-width:0 verhindert der
     automatische Flex-Mindestinhalt (min-width:auto) den Zeilenumbruch des
     Labels und erzwingt stattdessen horizontales Überlaufen/Scrollen. */
  min-width: 0;
}
.tva-custom-select__options input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tva-custom-select__option {
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--ink);
  font-size: 0.95em;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background 0.15s ease;
}
.tva-custom-select__option:hover {
  background: var(--chip-bg);
}
.tva-custom-select__options input[type="radio"]:checked + .tva-custom-select__option {
  background: var(--chip-bg);
  color: var(--accent-solid);
  font-weight: 700;
}
.tva-custom-select__options input[type="radio"]:focus-visible + .tva-custom-select__option {
  outline: 2px solid var(--accent-solid);
  outline-offset: -2px;
}
@media (max-width: 600px) {
  .tva-fees-calculator__form .tva-fees-field-row .tva-custom-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .tva-fees-calculator__form .tva-fees-field-row .tva-custom-select__selected {
    width: 100%;
    min-height: 28px;
    max-height: 32px;
    padding: 4px 8px;
  }
}
/* Stack calculator fields vertically */
.tva-fees-calculator-fields-vertical {
  /* .tva-fees-calculator__form ist ab 768px ein 3-spaltiges CSS-Grid; ohne
     grid-column: 1 / -1 bleibt dieser einzelne Wrapper auf Spalte 1
     beschränkt (~1/3 der Formularbreite) und die Rechner-Felder haben kaum
     Platz - unabhängig davon, wie breit ihr max-width erlaubt. */
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
  margin-bottom: 1.2rem;
}
.tva-fees-calculator-fields-vertical .tva-fees-field {
  width: 100%;
  margin: 0;
}
/* Transparenter Hintergrund für den Ergebnisbereich des Mädchenturnen-Rechners */
#tva-fees-result {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
/* Auch Tabellenkopf der Abteilungsbeiträge-Tabelle vor Zeilenumbruch schützen */
.content-card .fees-table[aria-label="Einfache Abteilungsbeiträge"] th:last-child {
  min-width: 170px;
  white-space: nowrap;
}
/* Größere Mindestbreite für Abteilungsbeiträge-Tabelle rechte Spalte */
.content-card .fees-table[aria-label="Einfache Abteilungsbeiträge"] td:last-child {
  min-width: 170px;
}
/* Card-Grid: Artikel linksbündig für Abteilungsbeiträge-Tabelle */
.card-grid > .content-card.tva-fees-panel {
  align-items: flex-start;
  text-align: left;
}

/* Padding links für Tabelle im Card-Artikel entfernen */
.content-card.tva-fees-panel .tva-fees-table-wrap--inline {
  margin-left: 0;
}
/* Tabelle für Abteilungsbeiträge nur so breit wie nötig */


/* Weniger Abstand nach letzter Kachel im Mitgliedsbeiträge-Abschnitt */
#grundbeitraege .content-card.tva-fees-panel:last-child {
  margin-bottom: 1.5rem;
}
/* Zweispaltige Liste für Sportabteilungen im Mitgliedbeitrag */
.tva-fees-list-2col {
  columns: 2 16em;
  -webkit-columns: 2 16em;
  -moz-columns: 2 16em;
  column-gap: 2rem;
  margin: 1.5rem 0 1rem 0;
  padding-left: 1.2em;
  list-style: disc inside;
}
.tva-fees-list-2col li {
  break-inside: avoid;
  margin-bottom: 0.3em;
  font-size: 1rem;
}
@media (max-width: 767px) {
  .tva-fees-list-2col {
    columns: 1 100%;
    -webkit-columns: 1 100%;
    -moz-columns: 1 100%;
  }
}
.tva-fees-intro-text {
  width: 100%;
  max-width: none;
  margin: 0 0 1.5rem 0;
  font-size: 1.1rem;
  color: var(--tva-text-secondary, #444);
}
/* Volle Breite für Mitgliedsbeiträge-Text und Tabelle */
.tva-fees-heading--fullwidth {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.tva-fees-table--fullwidth {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.tva-fees-hero {
  display: grid;
  gap: 1.5rem;
  overflow: hidden;
}

.tva-fees-hero__copy,
.tva-fees-hero__facts {
  position: relative;
  z-index: 1;
}

.tva-fees-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tva-fees-hero__facts {
  display: grid;
  gap: 0.9rem;
}

.tva-fees-fact-card,
.tva-fees-panel,
.tva-fees-mini-table,
.tva-fees-result {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 251, 253, 0.96));
  box-shadow: var(--shadow);
}

[data-theme="dark"] .tva-fees-fact-card,
[data-theme="dark"] .tva-fees-panel,
[data-theme="dark"] .tva-fees-mini-table,
[data-theme="dark"] .tva-fees-result {
  background: linear-gradient(180deg, rgba(18, 34, 45, 0.94), rgba(14, 27, 37, 0.98));
}

.tva-fees-fact-card {
  padding: 1rem 1.1rem;
}

.tva-fees-fact-card strong {
  display: block;
  margin: 0.25rem 0 0.15rem;
  font-family: "Newsreader", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.tva-fees-fact-card p,
.tva-fees-fact-card__label,
.tva-fees-footnote {
  color: var(--muted);
}

.tva-fees-fact-card__label,
.tva-fees-result__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tva-fees-panel {
  padding: 1.2rem;
}

.tva-fees-panel h3 {
  margin-top: 0;
}

.tva-fees-panel--accent {
  background: linear-gradient(135deg, rgba(223, 238, 247, 0.98), rgba(255, 248, 242, 0.98));
}

[data-theme="dark"] .tva-fees-panel--accent {
  background: linear-gradient(135deg, rgba(24, 45, 60, 0.98), rgba(17, 31, 42, 0.98));
}

.tva-fees-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tva-fees-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  font-weight: 600;
}

.tva-fees-pill--caution {
  background: rgba(207, 77, 92, 0.12);
  border-color: rgba(207, 77, 92, 0.28);
}

.tva-fees-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--membership-cta-bg);
  border-radius: var(--radius-md);
  background: rgba(207, 77, 92, 0.08);
}

.tva-fees-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.tva-fees-table {
  width: 100%;
  border-collapse: collapse;
}

.tva-fees-table th,
.tva-fees-table td {
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.tva-fees-table th {
  font-size: 0.92rem;
  color: var(--muted);
}

.tva-fees-table td:last-child,
.tva-fees-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.tva-fees-table--matrix td:not(:first-child),
.tva-fees-table--matrix th:not(:first-child) {
  text-align: right;
}

.tva-fees-table tbody tr:last-child td {
  border-bottom: 0;
}

.tva-fees-split,
.tva-fees-matrix-grid,
.tva-fees-calculator__form {
  display: grid;
  gap: 1rem;
}

.tva-fees-split h4,
.tva-fees-mini-table h4 {
  margin: 0 0 0.5rem;
}

.tva-fees-mini-table {
  padding: 1rem;
}

.tva-fees-mini-table ul,
.tva-fees-split ul {
  margin: 0;
  padding-left: 1.1rem;
}

.tva-fees-field {
  display: grid;
  gap: 0.4rem;
}

.tva-fees-field span {
  font-weight: 700;
}



.tva-fees-result {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
}

.tva-fees-result strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "Newsreader", serif;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1;
}

.tva-fees-result p {
  margin-bottom: 0;
}

.tva-fees-result__annual {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.tva-fees-result__annual strong {
  margin-top: 0;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .tva-fees-hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    align-items: center;
  }

  .tva-fees-hero__facts,
  .tva-fees-split,
  .tva-fees-matrix-grid,
  .tva-fees-calculator__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tva-fees-matrix-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tva-fees-calculator__form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tva-fees-table thead {
    display: none;
  }

  .tva-fees-table,
  .tva-fees-table tbody,
  .tva-fees-table tr,
  .tva-fees-table td {
    display: block;
    width: 100%;
  }

  .tva-fees-table tr {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .tva-fees-table tbody tr:last-child {
    border-bottom: 0;
  }

  .tva-fees-table td {
    padding: 0.25rem 0;
    border-bottom: 0;
    text-align: left;
    white-space: normal;
  }

  .tva-fees-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.12rem;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
  }

  .tva-fees-table td:last-child,
  .tva-fees-table--matrix td:not(:first-child) {
    text-align: left;
  }

  .tva-fees-result__annual {
    flex-direction: column;
    align-items: flex-start;
  }
}