/* Nur die Statistikseite. Vorhandene Tabellen und Inhalte bleiben im Editor editierbar. */
body.ah-statistics-active {
  --ah-ink: #17332c;
  --ah-green: #17644e;
  --ah-line: #dce6e1;
}
body.ah-statistics-active :is(.entry-content, .wp-block-post-content) > h3 {
  clear: both;
  margin: 44px 0 16px;
  padding-left: 0;
  border-left: 0;
  color: var(--ah-ink);
  font: 650 clamp(18px, 2.1vw, 23px)/1.4 system-ui, sans-serif;
  text-wrap: pretty;
}
body.ah-statistics-active :is(.entry-content, .wp-block-post-content) > .wp-block-image {
  float: none;
  display: block;
  width: auto;
  max-width: 100%;
  margin: 28px 0;
}
body.ah-statistics-active :is(.entry-content, .wp-block-post-content) .wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 0 38px;
  overflow: auto;
  border: 1px solid var(--ah-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgb(23 51 44 / 5%);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-color: #92ada1 #eef4f0;
}
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table:focus-visible {
  outline: 3px solid var(--ah-green);
  outline-offset: 3px;
}
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table table {
  display: table;
  width: 100%;
  min-width: 600px;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 0;
  margin: 0;
  font: 14px/1.45 system-ui, -apple-system, sans-serif;
  color: var(--ah-ink);
  background: #fff;
}
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table thead {
  display: table-header-group;
  border: 0;
}
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table tbody { display: table-row-group; }
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table tr {
  display: table-row;
  position: static;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table :is(th, td) {
  display: table-cell;
  box-sizing: border-box;
  position: static;
  padding: 12px 10px;
  border: 0;
  border-bottom: 1px solid #e7eee9;
  text-align: right;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
  font-variant-numeric: tabular-nums;
  color: var(--ah-ink);
}
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table th {
  padding: 0;
  background: #edf4ef;
  border-bottom: 1px solid #c6d9ce;
  font-weight: 650;
  cursor: default;
}
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table th[aria-sort] { background: #deece2 !important; }
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table :is(th, td)::before,
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table :is(th, td)::after { content: none; display: none; }
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table td { background: #fff; }
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table tr:nth-child(even) td { background: #f7faf8; }
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table tbody tr:hover td { background: #eef5f0; }
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table tbody tr:last-child td { border-bottom: 0; }
body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table :is(th, td):first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 124px;
  white-space: nowrap;
  text-align: left;
  font-weight: 650;
  box-shadow: 1px 0 0 var(--ah-line);
}
body.ah-statistics-active .ah-statistics-sort {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-height: 58px;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  line-height: 1.3;
  text-align: inherit;
  text-transform: none;
  cursor: pointer;
}
body.ah-statistics-active th:first-child .ah-statistics-sort { justify-content: flex-start; }
body.ah-statistics-active .ah-statistics-sort:hover { background: #d9e9df; }
body.ah-statistics-active .ah-statistics-sort:focus-visible { outline: 3px solid var(--ah-green); outline-offset: -3px; }
body.ah-statistics-active .ah-statistics-sort-icon { flex: 0 0 10px; font-size: 12px; color: #6d8579; }
body.ah-statistics-active .ah-statistics-sort-icon::after { content: '↕'; }
body.ah-statistics-active th[aria-sort='descending'] .ah-statistics-sort-icon::after { content: '↓'; color: var(--ah-green); }
body.ah-statistics-active th[aria-sort='ascending'] .ah-statistics-sort-icon::after { content: '↑'; color: var(--ah-green); }
/* Twenty Ten hat ein festes Seitenraster. Auf dieser Seite mobil auflösen. */
@media screen and (max-width: 980px) {
  body.ah-statistics-active.wp-theme-twentyten #wrapper {
    width: auto; max-width: none; margin: 0; padding: 0 16px;
  }
  body.ah-statistics-active.wp-theme-twentyten :is(#branding, #main, #access, #colophon) { width: 100%; box-sizing: border-box; }
  body.ah-statistics-active.wp-theme-twentyten #access :is(.menu-header, div.menu) { width: auto; margin: 0; }
  body.ah-statistics-active.wp-theme-twentyten :is(#site-title, #site-description) { float: none; width: auto; }
  body.ah-statistics-active.wp-theme-twentyten #site-title { font-size: clamp(22px, 5vw, 30px); line-height: 1.25; }
  body.ah-statistics-active.wp-theme-twentyten #branding img { max-width: 100%; height: auto; }
  body.ah-statistics-active.wp-theme-twentyten #container { float: none; margin: 0; width: 100%; }
  body.ah-statistics-active.wp-theme-twentyten #content { margin: 0; min-width: 0; }
  body.ah-statistics-active.wp-theme-twentyten :is(#primary, #secondary) { float: none; clear: both; width: 100%; margin-top: 32px; }
  body.ah-statistics-active.wp-theme-twentyten #main .widget-area > ul { padding-right: 0; }
  body.ah-statistics-active.wp-theme-twentyten :is(#site-info, #site-generator) { float: none; width: auto; text-align: left; }
  body.ah-statistics-active.wp-theme-twentyten #footer-widget-area .widget-area { float: none; width: auto; margin-right: 0; }
}
@media print {
  body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table { overflow: visible; box-shadow: none; border-radius: 0; }
  body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table table { min-width: 0; font-size: 10px; }
  body.ah-statistics-active :is(#content, .wp-block-post-content) .wp-block-table :is(th, td):first-child { position: static; }
}
