/* Zusätze für Beiträge ab November 2026: Tabellen und Bildnachweis.
   Eigene Datei, damit style.css (und dessen Versionsnummer auf allen Seiten) unberührt bleibt. */

/* Tabelle: zwei Linienstärken, kein Kasten. Auf schmalen Bildschirmen scrollt nur die Tabelle, nie die Seite. */
.post-content .post-table {
  margin: 1.9rem 0 2.3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.post-content .post-table:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; }
.post-content .post-table table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: .95rem;
  line-height: 1.5;
}
.post-content .post-table th {
  text-align: left;
  vertical-align: bottom;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--plum);
  padding: 0 1.25rem .7rem 0;
  border-bottom: 1px solid var(--plum-300);
}
.post-content .post-table td {
  vertical-align: top;
  color: var(--ink);
  padding: .8rem 1.25rem .8rem 0;
  border-bottom: 1px solid var(--line);
}
.post-content .post-table td:first-child { color: var(--plum); font-weight: 600; }
.post-content .post-table th:last-child,
.post-content .post-table td:last-child { padding-right: 0; }
.post-content .post-table td strong { color: var(--plum); }

/* Schmale Bildschirme: jede Zeile wird ein Block, die erste Zelle ist ihre Überschrift,
   jede weitere Zelle trägt ihren Spaltennamen (data-label). So bleibt keine Spalte außer Sicht. */
@media (max-width: 560px) {
  .post-content .post-table { overflow-x: visible; }
  .post-content .post-table table,
  .post-content .post-table tbody,
  .post-content .post-table tr,
  .post-content .post-table td { display: block; width: 100%; min-width: 0; }
  .post-content .post-table table { font-size: .95rem; border-top: 1px solid var(--plum-300); }
  .post-content .post-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .post-content .post-table tr { padding: 1rem 0 1.05rem; border-bottom: 1px solid var(--line); }
  .post-content .post-table td { padding: 0; border: 0; }
  .post-content .post-table td:first-child {
    font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; line-height: 1.3;
    margin-bottom: .45rem;
  }
  .post-content .post-table td + td { margin-top: .55rem; }
  .post-content .post-table td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .1rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--muted);
  }
}

/* Bildnachweis unter den Quellen */
.post-sources .post-credit {
  margin: 1.1rem 0 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
}
.post-sources .post-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.post-sources .post-credit a:hover,
.post-sources .post-credit a:focus-visible { color: var(--terra-700); }
