/* paper-style.css — Leselayout für lange Papers */

/* Basis */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #222;
  line-height: 1.75;
}

/* Lesebreite */
main, .paper, body > div, body {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Innenabstand */
body {
  padding: 48px 20px;
}

/* Überschriften */
h1 {
  font-size: 2.2rem;
  margin: 0 0 0.6em 0;
  font-weight: 650;
  letter-spacing: 0.2px;
}

h2 {
  font-size: 1.5rem;
  margin: 2.2em 0 0.8em 0;
  font-weight: 650;
  line-height: 1.25;
}

h3 {
  font-size: 1.15rem;
  margin: 1.8em 0 0.6em 0;
  font-weight: 650;
}

/* Text */
p {
  margin: 0 0 1.1em 0;
  hyphens: auto;
}

/* Links */
a {
  color: #003366;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Inhaltsverzeichnis (LibreOffice) */
#Inhaltsverzeichnis1 {
  margin: 2em 0;
  padding: 18px 18px;
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
}

#Inhaltsverzeichnis1 p {
  margin: 6px 0;
  line-height: 1.35;
}

/* Fußnoten/kleine Metadaten wirken oft als Zentrierblock bei LO */
p[align="center"] {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

/* Trennelemente aus LO (viele <br><br>) etwas entschärfen */
br + br {
  display: none;
}

/* Optional: Druckansicht bleibt ok */
@media print {
  body {
    padding: 0;
    max-width: none;
  }
  a {
    text-decoration: underline;
  }
}

.paper-meta {
    text-align: center;
    white-space: normal;
    display: block;
}

.paper-meta br {
    display: block;
    margin-top: 0.3rem;
}