﻿/* ============================================================
   General Typography and Layout
   ============================================================ */
body {
  font-family: Georgia, "Times New Roman", Times, serif;
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #f9f9f9;
  font-weight: 300;
  color: #222;
  line-height: 1.45;
  text-align: justify;
}

/* Headings --------------------------------------------------- */
h1, h2, h3 {
  font-weight: normal;
  text-align: center;
  margin: 2em 0 1em;
}

h1 { font-size: 1.4em; }
h2 { font-size: 1.2em; }

/* Paragraphs -------------------------------------------------- */
p {
  margin: 0 0 1em;
  line-height: 1.45;
}

h3 + p {
  text-indent: 2em;
}

/* Optional wide spacing for selected German words */
span.space {
  letter-spacing: 0.13em;
}

/* ============================================================
   Dutch Translation Styling
   ============================================================ */
.translation {
  font-family: 'Work Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 0.95em;
  line-height: 1.45;
  color: #222;
  margin: 0.6em 0 1.6em;
  border-left: 3px solid #ddd;
  padding-left: 0.75em;
}
/* ============================================================
   Regular Text (same as .translation, but without visual markers)
   ============================================================ */
.textblock {
  font-family: 'Work Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 0.95em;
  line-height: 1.45;
  color: #222;
  margin: 0.6em 0 1.6em;
}


/* ============================================================
   Table of Contents (Collapsible)
   ============================================================ */
#new-toc {
  margin: 1em 0;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.3;
}

#new-toc h2 {
  margin: 0 0 0.5em;
  font-family: 'EB Garamond', serif;
  font-weight: normal;
  text-align: left;
}

#new-toc details {
  margin: 0.3em 0;
  border: 0;
}

#new-toc summary {
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  list-style: none;
}

#new-toc summary::marker,
#new-toc summary::-webkit-details-marker {
  display: none;
}

#new-toc .toc-jump {
  text-decoration: none;
  color: inherit;
  font-weight: normal;
  opacity: 0.7;
}

#new-toc .toc-jump:hover {
  text-decoration: underline;
  opacity: 1;
}

#new-toc ul {
  margin: 0.35em 0 0.6em;
  padding: 0;
}

#new-toc li {
  list-style: none;
  margin: 0.12em 0;
}

#new-toc a {
  color: inherit;
  text-decoration: none;
}

#new-toc a:hover {
  text-decoration: underline;
}

#new-toc details[open] summary a {
  font-style: italic;
}

/* ============================================================
   Links
   ============================================================ */
a {
  color: #003366;
  background-color: #eef3f7;
  padding: 0.05em 0.25em;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #001f4d;
  background-color: #dde8f0;
  text-decoration: underline;
}

a:visited {
  color: #554c80;
  background-color: #f0ecf7;
}

/* Internal anchor links (e.g., bookmarks like #erstes-buch) *
a[href^="#"] {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
}

a[href^="#"]:hover {
  text-decoration: underline;
  color: inherit;
  background: none;
}

/* ToC Links: Keep original look */
.toc a {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

.toc a:hover {
  background: none;
  color: #004c99;
}


/* ============================================================
   Print Optimization
   ============================================================ */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .translation {
    border-left: 2px solid #aaa;
    background: none;
  }

  nav#toc {
    border: none;
    box-shadow: none;
    background: #fff;
  }
}
