.tabelle {
  padding: 2rem;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tabelle-titel {
  margin: 0 0 1.5rem;
  font-family: "SuisseIntl SemiBold";
  font-size: 26px;
}

.tabelle-filter {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 0 1rem;
}

.tabelle-filter-input {
  display: block;
  width: 100%;
  padding: 0.6rem 2.2rem 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-family: "SuisseNeue Light";
  font-size: 16px;
}

.tabelle-filter-input:focus {
  outline: none;
  border-color: var(--color-abteilung);
}

.tabelle-filter-input::-webkit-search-cancel-button {
  display: none;
}

.tabelle-filter-clear {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);

  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;

  font-size: 18px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.tabelle-filter-clear:hover,
.tabelle-filter-clear:focus-visible {
  color: var(--color-abteilung);
}

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

.tabelle-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  font-family: "SuisseIntl SemiBold";
  font-size: 18px;
  color: white;
  background: var(--color-abteilung);
}

.tabelle-table th:first-child {
  border-top-left-radius: 6px;
}

.tabelle-table th:last-child {
  border-top-right-radius: 6px;
}

.tabelle--biber .tabelle-table th {
  background: var(--color-biber);
  color: black;
}

.tabelle--woelfe .tabelle-table th {
  background: var(--color-woelfe);
}

.tabelle--pfadis .tabelle-table th {
  background: var(--color-pfadis);
}

.tabelle--pios .tabelle-table th {
  background: var(--color-pios);
}

.tabelle--rover .tabelle-table th {
  background: var(--color-rover);
}

.tabelle--elternrat .tabelle-table th {
  background: var(--color-komitee);
}

.tabelle-table td {
  padding: 0.8rem 1rem;
  font-family: "SuisseNeue Light";
  font-size: 18px;
}

.tabelle-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--color-abteilung) 12%, white);
}

.tabelle--biber .tabelle-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--color-biber) 15%, white);
}

.tabelle--woelfe .tabelle-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--color-woelfe) 12%, white);
}

.tabelle--pfadis .tabelle-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--color-pfadis) 12%, white);
}

.tabelle--pios .tabelle-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--color-pios) 12%, white);
}

.tabelle--rover .tabelle-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--color-rover) 12%, white);
}

.tabelle--elternrat .tabelle-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--color-komitee) 12%, white);
}

@media (max-width: 600px) {
  .tabelle {
    padding: 1rem;
  }

  .tabelle-table thead {
    display: none;
  }

  .tabelle-table,
  .tabelle-table tbody,
  .tabelle-table tr,
  .tabelle-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .tabelle-table tr {
    padding: 0.6rem 0;
  }

  .tabelle-table td {
    padding: 0.3rem 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .tabelle-table td::before {
    content: attr(data-label) ": ";
    font-family: "SuisseIntl SemiBold";
  }
}
