/* Consortium Vault v0.41.2 – Mobile Table Scroll Fix */

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.12);
  margin: 18px 0;
}

.table-scroll table {
  display: table !important;
  width: max-content !important;
  min-width: 780px !important;
  max-width: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.table-scroll th,
.table-scroll td {
  min-width: 180px !important;
  max-width: 320px !important;
  vertical-align: top !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

.table-scroll th:first-child,
.table-scroll td:first-child {
  min-width: 160px !important;
}

.table-scroll::after {
  content: "← seitlich schieben →";
  display: none;
  padding: 10px 14px;
  color: rgba(242, 214, 117, 0.84);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.22);
}

/* Wichtig: Body darf nicht horizontal scrollen, nur die Tabellenbox */
body {
  overflow-x: hidden !important;
}

/* Handy und Tablet */
@media (max-width: 820px) {
  .table-scroll {
    border-radius: 18px;
    margin-left: 0;
    margin-right: 0;
    scrollbar-width: thin;
  }

  .table-scroll::after {
    display: block;
  }

  .table-scroll table {
    min-width: 860px !important;
  }

  .table-scroll th,
  .table-scroll td {
    min-width: 190px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .table-scroll th {
    font-size: 12px !important;
    letter-spacing: 0.09em !important;
  }
}

/* Kleine Handys */
@media (max-width: 520px) {
  .table-scroll {
    width: 100% !important;
    max-width: 100% !important;
  }

  .table-scroll table {
    min-width: 900px !important;
  }

  .table-scroll th,
  .table-scroll td {
    min-width: 200px !important;
    padding: 13px !important;
  }
}
