/* Grundlayout */
body {
  font-family: Georgia, "Times New Roman", serif;
  margin: 1.5rem;
  line-height: 1.5;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* Container für das Transformations-Ergebnis */
#output {
  border: 1px solid #ccc;
  padding: 1.25rem;
  margin-top: 1rem;
}

/* Container für Bild + Text */
.page-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

/* Spalten */
.image-column,
.text-column {
  flex: 1 1 320px;   /* wächst, schrumpft, Mindestbreite ca. 320px */
  min-width: 0;
}

/* Bild responsiv */
.image-column img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ccc;
}

/* Textspalte */
.text-column {
  font-size: 1rem;
}

/* Umschalt-Buttons für die Ansichten */
.view-toggle {
  margin-bottom: 1rem;
}

.view-toggle button {
  margin-right: 0.5rem;
}

/* einzelne Text-Views */
.text-view {
  /* nur als logischer Block; Sichtbarkeit wird per JS gesteuert */
}

/* Datumszeile */
.dateline {
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* Inline-Stile für Entitäten */
.underline {
  text-decoration: underline;
}

.person {
  color: #003399;
  font-weight: 500;
}

.place {
  color: #006633;
}

.event {
  color: #990000;
}

/* Fußnoten inline (für diese kleine Edition) */
.footnote {
  font-size: 0.85rem;
  color: #444;
}

/* Block für Fußnoten / Kommentar */
.footnotes-block {
  margin-top: 1.5rem;
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;      /* kleiner als Haupttext (1rem) */
  background-color: #f7f7f7;
  border-radius: 6px;
}

.footnotes-block h2 {
  font-size: 1rem;         /* ebenfalls kleiner als h1 */
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Entitäten-Legende unten auf der Seite */
.entity-legend {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 6px;
  font-size: 0.95rem;
}

.entity-legend h2 {
  margin-top: 0;
}

.legend-section {
  margin-bottom: 1rem;
}

.legend-section h3 {
  margin-bottom: 0.25rem;
}

/* Responsiv: auf sehr kleinen Screens einspaltig */
@media (max-width: 768px) {
  .page-container {
    flex-direction: column;
  }
}
