/* R4W Easy Tabellen Frontend */
.r4w-wrap,
.r4w-wrap * {
  box-sizing: border-box;
}

.r4w-wrap {
  width: 100%;
  margin: 0 0 24px;
  overflow-x: auto;
}

.r4w-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-color, #d1d5db);
  background: var(--row1, #fff);
}

.r4w-table th,
.r4w-table td {
  padding: 12px 14px;
  border: 1px solid var(--border-color, #d1d5db);
  vertical-align: top;
}

.r4w-table th {
  background: var(--header-bg, #eceff3);
  color: var(--header-color, #1f2937);
  font-size: var(--header-font-size, 16px) !important;
  line-height: 1.35;
  font-weight: 800;
  text-align: var(--header-align, left) !important;
}

.r4w-table td {
  color: inherit;
  font-size: var(--body-font-size, 16px) !important;
  line-height: 1.55;
  text-align: var(--body-align, left) !important;
}

.r4w-table tbody tr:nth-child(odd) td {
  background: var(--row1, #fff);
}

.r4w-table tbody tr:nth-child(even) td {
  background: var(--row2, #f8fafc);
}

.r4w-table a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .r4w-wrap {
    overflow-x: visible;
  }

  .r4w-table,
  .r4w-table thead,
  .r4w-table tbody,
  .r4w-table th,
  .r4w-table td,
  .r4w-table tr {
    display: block;
    width: 100%;
  }

  .r4w-table {
    border: 0;
    background: transparent;
  }

  .r4w-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .r4w-table tbody tr {
    margin: 0 0 14px;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 14px;
    background: var(--mobile-card-bg, #fff);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.055);
  }

  .r4w-table tbody tr:nth-child(odd) td,
  .r4w-table tbody tr:nth-child(even) td,
  .r4w-table td {
    display: grid;
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--border-color, #d1d5db);
    background: var(--mobile-card-bg, #fff);
    color: var(--mobile-text-color, #1f2937);
    font-size: var(--mobile-body-font-size, 15px) !important;
    line-height: 1.5;
    text-align: left !important;
  }

  .r4w-table td:last-child {
    border-bottom: 0;
  }

  .r4w-table td::before {
    content: attr(data-label);
    color: var(--mobile-label-color, #f68826);
    font-size: var(--mobile-label-font-size, 13px);
    line-height: 1.35;
    font-weight: 800;
    word-break: normal;
  }
}

@media (max-width: 420px) {
  .r4w-table tbody tr:nth-child(odd) td,
  .r4w-table tbody tr:nth-child(even) td,
  .r4w-table td {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
