body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

h2 {
  font-size: .9rem; 
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: .8rem; 
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

header {
    background-color: #4478A8;
    color: white;
    padding: 1rem;
    text-align: center;
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 1rem;
    justify-content: center;
    background-color: #f9f9f9;
}

.search-container input, .search-container select, .search-container button {
    padding: 0.5rem;
    font-size: 1rem;
}

/* Auswahlfelder: Breite begrenzen (Typ enthält ~1000 teils sehr lange Werte) */
.search-container select {
    width: 11rem;
    max-width: 100%;
    text-overflow: ellipsis;
}
.search-container select#filter-typ { width: 9rem; }

.flex-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 3px solid #4478A8;
}

.header-image {
  height: 100px;
  
}

.header h1 {
  font-size: 1.8rem;
  margin: 0;
}

.header p {
  margin: 0.5rem 0 0 0;
  font-size: 1.1rem;
}

footer {
  text-align: center;
  font-size: 0.9em;
  color: #555;
  padding: 1em 1em 2em 1em;
  border-top: 1px solid #ccc;
  margin-top: 2em;
  background-color: #f9f9f9;
}
.footer-text a {
  color: #555;
  text-decoration: underline;
}
.footer-text a:hover {
  color: #b1452d;
}

#reset-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6em;
  padding: 0.2em 0.5em;
}
#reset-search-btn:hover {
  transform: scale(1.1);
}

.highlight-entry {
    background-color: #eee;
    border-left: 4px solid #4478A8;
    transition: background-color 0.5s ease;
}

a:link {
 color: #4478A8;
}

.highlight {
  background-color: yellow;
  font-weight: bold;
}

.hidden {
  display: none;
}

#map {
    height: 75vh;
    min-height: 520px;
    margin: 1rem;
}

.karten-legende {
    background: rgba(255,255,255,.92);
    padding: 6px 9px;
    font-size: 11px;
    line-height: 1.5;
    border-radius: 4px;
    box-shadow: 0 0 4px rgba(0,0,0,.3);
}
.karten-legende .lg-punkt {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    margin-right: 5px; border: 1px solid #fff; box-shadow: 0 0 1px #000;
}

#results {
    padding: 1rem;
}

.result-item {
    border-bottom: 1px solid #ccc;
    padding: 1rem 0;
}

.result-item h3 {
    color: #4478A8;
}

/* Hervorhebung des Suchterms in den Treffern */
mark.treffer {
    background-color: #ffe066;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}
.footnotes {
  font-size: 0.9em;
  border-top: 1px solid #aaa;
  margin-top: 1em;
  padding-top: 1em;
}
.footnotes ol {
  padding-left: 1.5em;
}
.footnotes li {
  margin-bottom: 0.5em;
}


/* Überlieferung / Originale */
details.originale { margin: 0.5em 0; }
details.originale summary { cursor: pointer; font-weight: bold; color: #4478A8; }
table.originale-tabelle { border-collapse: collapse; font-size: 0.8rem; margin-top: 0.4em; width: 100%; }
table.originale-tabelle th, table.originale-tabelle td { border: 1px solid #ccc; padding: 3px 5px; vertical-align: top; text-align: left; }
table.originale-tabelle th { background: #eef3f8; }
.vorlage-beleg { font-size: 0.85em; color: #555; }
.vorlage-methode { font-size: 0.8em; color: #888; }
.originale-wrap { overflow-x: auto; }

.vorlage-referat { background: #fff4e0; border-left: 3px solid #d98c00; padding: 4px 8px; margin: 4px 0; }

.karte-hell { filter: grayscale(0.85) brightness(1.08) contrast(0.9); }
