/* Größentabelle /paper-and-frame-size-chart/ (Baubüro bau_s6stydldf9ayprzve48oebbo): Kurzantwort-Kasten (Muster
   vavuro/size-quick-answer) und Tabellen aus inc/features/size-chart.php. */

/* Kasten und Tabellen scrollen nur in ihrem Rahmen, nie die Seite; per Tab erreichbar (tabindex), Pfeiltasten scrollen. */
.vv-size-answer,
.vv-size-table {
  overflow-x: auto;
  margin-block: var(--wp--preset--spacing--40, 1.5rem);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 12px;
  background: var(--wp--preset--color--surface);
}
.vv-size-answer {
  border: 2px solid var(--wp--preset--color--gold);
  background: var(--wp--preset--color--accent-soft);
}
.vv-size-answer:focus-visible,
.vv-size-table:focus-visible,
.vv-size-chart-link a:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
}

.vv-size-answer table,
.vv-size-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}
/* Die Kurzantwort hat keine Mindestbreite: bei 375 px brechen die Zellen um, statt abgeschnitten zu werden. */
.vv-size-table table {
  min-width: 34rem;
}
.vv-size-answer caption,
.vv-size-table caption {
  padding: 0.75rem 1rem 0.5rem;
  color: var(--wp--preset--color--muted);
  font-size: 0.9rem;
  text-align: left;
}
.vv-size-answer th,
.vv-size-answer td,
.vv-size-table th,
.vv-size-table td {
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--wp--preset--color--line);
  text-align: left;
  vertical-align: top;
}
.vv-size-answer thead th,
.vv-size-table thead th {
  border-top: 0;
  border-bottom: 2px solid var(--wp--preset--color--gold);
  font-family: var(--wp--preset--font-family--caps);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}
.vv-size-answer tbody th,
.vv-size-table tbody th {
  color: var(--wp--preset--color--ink);
  font-weight: 600;
}
.vv-size-answer tbody th {
  white-space: nowrap;
}
.vv-size-table tbody tr:nth-child(odd) {
  background: var(--wp--preset--color--accent-soft);
}

/* Handy: engere Zellen, damit die Kurzantwort bei 375 px einzeilig bleibt (live mit Webfonts gemessen: 331 px Kasten,
   331 px Inhalt). Unter 370 px dürfen die Zellen wieder umbrechen, damit nichts abgeschnitten wird. */
@media (max-width: 480px) {
  .vv-size-answer table {
    font-size: 0.8rem;
  }
  .vv-size-answer th,
  .vv-size-answer td {
    padding: 0.5rem 0.25rem;
  }
  .vv-size-answer th:first-child,
  .vv-size-answer td:first-child {
    padding-left: 0.6rem;
  }
}
@media (min-width: 370px) and (max-width: 480px) {
  .vv-size-answer td {
    white-space: nowrap;
  }
}
