/* publication.css – gemeinsame Basis für wissenschaftliche Webpublikationen
   Version 0.29
*/

:root {
  --pub-version: "0.29";
  --pub-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  --pub-text: #222;
  --pub-link: #0645ad;
  --pub-border: #9aa4ad;
  --pub-edition-bg: #f1f1ee;
  --pub-edition-border: #888;
  --pub-edition-mark: #c13f73;
  --pub-abstract-bg: #e8edf1;
  --pub-target: #fff3b8;
  --pub-radius: 9px;
}

/* Grundlayout */
.pub {
  width: auto;
  max-width: 78rem;
  margin: 0;
  padding: 0 15px;
  color: var(--pub-text);
  font-family: var(--pub-font);
  font-size: 1rem;
  line-height: 1.5;
}

.pub *,
.pub *::before,
.pub *::after {
  box-sizing: border-box;
}

.pub p { margin-block: 0 .82rem; hyphens: auto; }
.pub ul,
.pub ol { margin-top: 0; }
.pub em { font-style: italic; font-weight: normal; }
.pub a { color: var(--pub-link); }

/* Publikationskopf */
.pub__header { margin-bottom: 2rem; }

.pub__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 2.4rem;
  margin-bottom: 1rem;
  padding: .4rem .8rem;
  color: var(--pub-bar-text, #fff);
  background: var(--pub-bar-bg, var(--pub-accent));
  font-size: .95rem;
  font-weight: 700;
}

.pub__oa {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 1;
}

.pub__oa svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.pub__bar-title {
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.pub__bar-label {
  text-align: right;
  white-space: nowrap;
}

.pub__source,
.pub__note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--pub-edition-bg);
  border: 1px solid var(--pub-edition-border);
  border-left: 6px solid var(--pub-edition-mark);
  border-radius: var(--pub-radius);
}

.pub__source p:last-child,
.pub__note p:last-child { margin-bottom: 0; }

/* Zusammenfassung */
.pub__abstract {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background: var(--pub-abstract-bg);
  border: 1px solid var(--pub-accent);
  border-radius: 0;
}

.pub__abstract > h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.pub__abstract p:last-child { margin-bottom: 0; }

/* Überschriften */
.pub h2 {
  margin: 2.4rem 0 .5rem;
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--pub-border);
  color: var(--pub-accent, inherit);
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 600;
  break-after: avoid;
  scroll-margin-top: 1rem;
}
.pub h3 {
  margin: 1.7rem 0 .45rem;
  color: var(--pub-text);
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
  break-after: avoid;
  scroll-margin-top: 1rem;
}

.pub__note h2,
.pub__note h3 {
  margin: 0 0 .5rem;
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
}
.pub__body > h2:first-child { margin-top: 0; }


/* Kernaussagen des Journals */
.pub__keypoints {
  margin: 2rem 0;
  padding: 1rem 0;
}
.pub__keypoint + .pub__keypoint { margin-top: 1.15rem; }
.pub__keypoint h3 { margin: 0 0 .3rem; }
.pub__keypoint p { margin-bottom: 0; }

/* Inhaltsverzeichnis */
.pub__toc {
  margin: 2rem 0 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--pub-edition-bg);
  border: 1px solid var(--pub-edition-border);
  border-left: 6px solid var(--pub-accent);
  border-radius: var(--pub-radius);
}

.pub__toc h2 { margin-top: 0; }
.pub__toc ol { margin: 0; padding-left: 1.6em; }
.pub__toc li { margin: .25em 0; break-inside: avoid; }
.pub__toc a { text-decoration: none; }
.pub__toc a:hover,
.pub__toc a:focus { text-decoration: underline; }

/* Abbildungen */
.pub__figure,
.pub__figure-block,
.pub__table-wrap { margin: 2rem 0; }
.pub__figure img { display: block; width: auto; max-width: 100%; height: auto; margin: auto; }
.pub__figure figcaption,
.pub__figure-caption,
.pub__caption,
.pub__table-note { font-size: .92em; line-height: 1.4; }
.pub__figure figcaption { margin: .6rem auto 0; text-align: left; }

.pub__figure--medium img,
.pub__figure--medium figcaption {
  max-width: 60%;
}
.pub__figure-caption,
.pub__caption { max-width: 92%; margin: .6rem auto 1.5rem; text-align: left; }
.pub__caption p { margin: 0 0 .55rem; text-align: left; }
.pub__caption p:last-child { margin-bottom: 0; }
.pub-wide { width: 100%; }

/* Tabellen */
.pub__table-wrap { overflow-x: auto; }
.pub__table-wrap--continuation { margin-top: -2rem; border-top: 0; }
.pub__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pub-table-bg, #f8f8f6);
  font-size: var(--pub-table-size, 1em);
  line-height: 1.35;
}
.pub__table th,
.pub__table td {
  padding: var(--pub-cell-pad, .35rem .45rem);
  border: 1px solid var(--pub-table-border, #aaa);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}
.pub__table thead th {
  background: var(--pub-table-head, #ececec);
  font-weight: 700;
}
.pub__table caption {
  caption-side: top;
  margin-bottom: .5em;
  font-weight: normal;
  line-height: 1.4;
  text-align: left;
}
.pub__table caption strong { font-weight: 700; color: var(--pub-accent, inherit); }
.pub__group th,
.pub__case-head th { background: var(--pub-table-group, #e5e5e5); font-weight: 600; }
.pub__table td.pub__indent { padding-left: 1.5rem; }

.pub__marker::before { content: "\25B6"; display: inline-block; margin-right: .35em; font-size: .82em; line-height: 1; }
.pub__table--outcomes { min-width: 42rem; }

/* Literatur */
.pub__refs { margin: 1.5em 0; padding-left: 2.4em; font-size: .9em; line-height: 1.45; }
.pub__refs li { margin-bottom: .7em; padding-left: .25em; break-inside: avoid; }
.pub__refs li:target { scroll-margin-top: 1.5em; background: var(--pub-target); }
.pub__refs a { overflow-wrap: anywhere; }
.pub__doi { white-space: nowrap; text-decoration: none; }
.pub__doi:hover,
.pub__doi:focus { text-decoration: underline; }
.litref-group { font-size: .85em; font-variant-numeric: lining-nums; white-space: nowrap; }
.pub__body a[href^="#ref-"],
.pub figcaption a[href^="#ref-"],
.pub table caption a[href^="#ref-"],
.litref-group .litref { text-decoration: none; }
.pub__body a[href^="#ref-"]:hover,
.pub__body a[href^="#ref-"]:focus,
.pub figcaption a[href^="#ref-"]:hover,
.pub figcaption a[href^="#ref-"]:focus,
.pub table caption a[href^="#ref-"]:hover,
.pub table caption a[href^="#ref-"]:focus,
.litref-group .litref:hover,
.litref-group .litref:focus { text-decoration: underline; }

/* Publikationsangaben */
.pub__details p { text-align: left; }
.pub__details strong { color: var(--pub-accent, inherit); }

/* Responsive */
@media (max-width: 820px) {
  .pub__bar {
    gap: .6rem;
  }

  .pub__bar-title { font-size: .9rem; }

  .pub { line-height: 1.55; }
  .pub__source,
  .pub__note,
  .pub__abstract,
  .pub__toc { padding: .9rem; }
  .pub__body p,
  .pub__abstract p { text-align: left; }

  .pub__figure--medium img,
  .pub__figure--medium figcaption {
    max-width: 100%;
  }

}

/* Druck */
@media print {
  .pub {
    font-size: .88em;
  }

  .pub__header h1,
  .pub__title h1 {
    font-size: 1.8rem;
    line-height: 1.12;
  }

  .pub,
  .pub * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

.page-tools a {
    display: none !important;
  }
.pub {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .pub__table-wrap {
    overflow: visible;
    break-inside: auto;
  }

  .pub .pub__table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: .88em;
  }

  .pub__table th,
  .pub__table td {
    padding: .22rem .28rem;
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .pub__table thead {
    display: table-header-group;
  }

  .pub__table tr {
    break-inside: avoid;
  }
  
  .pub a {
    text-decoration: none;
  }

  .pub__figure,
  .pub__figure-block {
    break-inside: avoid;
  }
  
  
}


/* Unified captions for figures and tables */
.pub__figure figcaption,
.pub__figure-caption,
.pub__caption,
.pub__table caption,
.pub__table-note {
  max-width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
}