body {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 15px;
  background-color: rgb(216, 216, 211);
  color: #333;
}

#main {
  max-height: 100vh;
  overflow-y: auto;
  padding-bottom: 8em; /* Platz für .bemerkung-block */
}

h2 {
  font-size: 1.5em;
  font-style: italic;
  margin-left: 1.1em;
  margin-bottom: 0em;
  padding-top: 0.1em;
  padding-bottom: 0em;
  color: rgb(54, 55, 56);
}

input,
textarea {
  display: block;
  width: 60%;
}

label {
  display: block;
  margin: 12px 0;
}

/* in intern.php, monasterium.php, statuta_ausgabe.php*/
section {
  margin: 2em auto;
  max-width: 700px;
  padding: 1em;
  background-color: #f8f8f8;
  border-left: 4px solid #4a6fa5;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1em;
  background-color: #eee7e7;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

th {
  background-color: #eee;
  text-align: left;
  padding: 6px;
  font-weight: bold;
}

td {
  padding: 8px;
  border-top: 1px solid #ccc;
}

form {
  display: block;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

form label {
  display: block;
}

form label input,
form label textarea {
  display: block;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
width: auto;
  box-sizing: border-box;
}

form button {
  padding: 0.1em 0.1em;
}

form button:hover {
  background-color: #666;
}

form.nav-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
  margin: 1em 0;
  padding: 0.5em;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

/* für button-Leiste in monasterium.php */
.button {
  background-color: bisque;
  background-color: transparent;
  color: black;
  padding: 5px 8px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: normal;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #3b5c85;
}

/* in index.htm, intern.php*/
.button-link {
  display: inline-block;
  padding-left: 5px;
  padding-right: 5px;
  background-color: aliceblue;
  border: 1px solid #999;
  border-radius: 4px;
  text-decoration: none;
  color: black;
}

.deutsch-text {
  font-style: normal;
  font-size: 0.95em;
  line-height: 1.5;
  color: #444;
  margin-top: 0.5em;
  padding-left: 1em;
  border-left: 2px solid #eee;
}

/* in bearbeiten_statut.php*/
.feldgruppe {
  margin-bottom: 1.5em;
  padding: 0.5em 1em;
  border-left: 4px solid #999;
  background-color: #f9f9f6;
}

.feldgruppe legend {
  color: #8b0000;
  /* Dunkles Rubrikrot */
  font-variant: small-caps;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.5em;
}

/* in monasterium.php */
.filiae-toggle {
  cursor: pointer;
  color: #005;
  text-decoration: underline;
}
.filiae-toggle:hover {
  color: #00a;
}

.formular-aktionen {
  text-align: right;
}

.jahr-auswahl {
  margin: 1em 0;
  font-family: serif;
}

.jahr-liste {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.jahr-liste li a {
  text-decoration: none;
  padding: 0.3em 0.6em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
  transition: background-color 0.2s;
}

.jahr-liste li a:hover {
  background-color: #e0e0e0;
}

.jahrgangsnavi {
  text-align: center;
  margin-bottom: 1.5em;
  font-size: 1.1em;
  border: 1px solid #aaa;
  border-radius: 4px;
}

.jahrgangsnavi a {
  margin: 0 6px;
  text-decoration: none;
  color: #004488;
}

.jahrgangsnavi a:hover {
  text-decoration: underline;
}

.jahrgangsnavi .aktiv {
  font-weight: bold;
  color: #000;
  margin: 0 6px;
}

.janauschek-nr {
    color: #666;
}

.kloster-name {
    font-weight: bold;
}

.kloester-liste {
    padding: 0em;
    margin: 0em;
    list-style: none;
    padding-left: 3em;
    font-family: serif;
}

.kloester-liste li {
    margin: 0em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.kopf {
  position: sticky;
  top: 0;
  background-color: gainsboro;
  height: fit-content;
  width: auto;
}

.kopf h1 {
  font-size: 1.4em;
  font-style: italic;
  font-variant: normal;
  background-color: gainsboro;
  border-style: inset;
  padding: 0.1em;
}

.kopf p {
  font-size: 1em;
  font-style: normal;
  font-variant: normal;
  background-color: gainsboro;
  color: black;
  padding: 0.2em;
  margin-bottom: 0.1em;
}

.logo {
  width: 30px;
  vertical-align: bottom;
  margin-right: 0.5em;
}

.latein-text {
  font-style: italic;
  font-size: 0.95em;
  line-height: 1.5;
  color: #333;
  margin-top: 0.5em;
  padding-left: 1em;
  border-left: 2px solid #ccc;
}

.monst-button {
    text-decoration: none;
    padding: 0.1em 0.1em;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.8em;
}

.monst-button:hover {
    background-color: #ddd;
}

.monasterium-edit {
  border-collapse: collapse;
  width: 100%;
  max-width: 900px;
  margin: 1em auto;
}

.monasterium-edit td {
  padding: 0.5em;
  vertical-align: top;
}

.monasterium-edit label {
  font-weight: bold;
  display: inline-block;
  min-width: 160px;
}

.monasterium-edit input,
.monasterium-edit select,
.monasterium-edit textarea {
  width: 100%;
  box-sizing: border-box;
  font-size: 1em;
}

.popover {
    position: absolute;
    background-color: #fdf6e3; /* Sanftes Elfenbein, angenehm fürs Auge */
    border: 1px solid #444;
    padding: 1em;
    max-width: 800px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.popover-keys {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 1em;
    z-index: 100;
    max-width: 40em;

 }


.speichern-button {
  background-color: #3a5f5f;
  color: #fff;
  border: none;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.statut {
  margin-bottom: 0em;
  border-left: 4px solid #ccc;
  padding-left: 1em;
}

.statut-button {
  background-color: aliceblue;
  border: 1px solid #999;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 0.5em;
  width: 100px;
}

.statut-details {
  margin-top: 0.5em;
  padding-left: 1em;
  border-left: 2px solid #ccc;
  font-size: 0.95em;
}

.statut-formular {
  background-color: #fdfaf3;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  max-width: 800px;
} 

.statut-popover {
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 0.5em;
  margin: 0.5em;
  max-width: 800px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.statut-popover.popover-aktiv {
    background-color: #ddd;
    border: 1px solid #666;
}

.statuta-liste {
  margin-left: 1em;
  text-align: left;
  list-style: none;
  padding-left: 1em;
}

.statuta-tabelle {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 2em;
}

.statuta-tabelle th, .statuta-tabelle td {
    border: 1px solid #ccc;
    padding: 0.5em;
    text-align: left;
}

.statuta-tabelle th {
    background-color: #f0f0f0;
}

.textblock {
  width: 100%;
  font-family: "Linux Libertine", serif;
  font-size: 1em;
  line-height: 1.4;
  background-color: #f8fff8;
  border: 1px solid #b5d1b5;
  padding: 0.5em;
  border-radius: 4px;
}

/* in suchetext.php */
.trefferzeile {
  display: flex;
  align-items: center;
  gap: 1em;
  margin: 1em 0;
}
.trefferzeile form {
  margin: 0;
}
.trefferzeile button {
  font-size: 0.8em;
  padding: 0.2em 0.4em;
  background-color: #f0f0f0;
  border: 1px solid #999;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
}

.vorschau {
  cursor: pointer;
  color: #555;
  font-style: italic;
}

.kloster-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 2em;
}

.kloster-daten {
  text-align: center;
  flex: 1 1 300px;
  min-width: 250px;
  border-style: inset;
  border: 1px solid #999;
  border-radius: 4px;
  padding-bottom: 2em;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.kloster-bild {
  flex: 0 1 400px;
  text-align: center;
}

.kloster-bild img {
  width: 400px;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.bildunterschrift {
  font-style: italic;
  margin-top: 0.5em;
}

.lizenz {
  display: block;
  margin-top: 0.3em;
  font-size: 0.9em;
  color: #666;
}

.lizenz-button {
    margin-top: 8px;
    font-size: 0.9em;
    cursor: pointer;
    background-color: #eee;
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 4px;
}

.lizenz-text {
    margin-top: 4px;
    font-size: 0.8em;
    color: #555;
}

.bild-als-button {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.bild-als-button:hover {
    border-color: #ccc;
}

/* Fuss-Bereich monasterium */
.button-container {
  position: fixed;
  bottom: 10px;
  right: 20px;
  z-index: 9999;
  display: flex;
  gap: 3px;
  background-color: rgba(255, 255, 255, 0.95);
  background-color: transparent;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 5px;
}

.bemerkung-block {
  position: fixed;
  bottom: 8px;
  left: 16px;
  z-index: 9999;
  text-align: left;
  display: block; 
  max-width: 55ch;
  margin: 3px;
  background-color: rgba(255, 255, 255, 0.95);
  background-color: transparent;
  border-left: 3px solid #999;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  opacity: 0.92;
}

aside {
  position: fixed;       /* bleibt am Rand stehen */
  top: 0;
  right: 0;              /* rechts platzieren */
  width: 350px;
  height: 100vh;         /* volle Höhe */
  overflow-y: auto;      /* eigene Scrollbar */
  
  /* dezente Gestaltung */
  background: #fdfdfd;   /* leicht abgesetztes Weiß */
  border-left: 2px solid #ddd; /* schmaler Rahmen */
  padding: 1rem;
  
  /* kleine optische Details */
  box-shadow: -2px 0 5px rgba(0,0,0,0.05); /* sanfter Schatten */
  font-size: 0.95rem;    /* etwas kleiner als Haupttext */
}

aside h2 {
  font-size: 1.1rem;
  margin-top: 0;
  color: #444;           /* dezenter Titel */
}


