/*** general styles ***/
body {
  margin: 0;
  overflow: hidden;
  font-family: sans-serif;
  background: #3070AA;
  justify-content: center;
  align-items: center;
  background-image: url(../images/RootSoup.svg);
  /* background-image: url(../images/moellersippe.svg); */
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  background-size: 100vh 100vh;
}

input {
  font-size: 15px;
}

h2 {
  color: white;
}

h3 {
  color: black;
}

/* all icons */
.icons {
  font-size: 12px;
  display: none;
}

/* shake anim if wrong credentials given */
.shake {
  animation-name: shake;
}

/* top menu bar */
.topmenu {
  position: absolute;
  float: right;
  z-index: 1000;
  height: auto;
  width: 100%;
  height: 40px;
}

/* vertical "book fold" line */
.midline {
  position: absolute;
  width: 4px;
  height: 100%;
  /* Oder fixe Höhe, je nach Layout */
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: 16px;
  background: rgb(255, 255, 255, 0.11);
  -webkit-box-shadow: 0 0 30px 20px rgb(255, 255, 255, 0.1);
  box-shadow: 0 0 30px 30px rgb(255, 255, 255, 0.1);
}





/*** main container ***/
#containerTree {
  position: absolute;
  top: 0px;
  left: 0;
  transform-origin: 0 0;
  cursor: grab;
  padding: 10px;
}

.overlayLoadingSpinner {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 9999;
  pointer-events: none;
  background: none;
}


/*** popups - general settings ***/
.popupRelationshipEditor,
.popupLiturgicContainer,
.popupPersonBrowser,
.popupProfileEditor,
.popupChronoBrowser,
.popupUserSettings,
.popupMediaEditor,
.popupPersonMerge,
.popupChangelogViewer,
.popupFanChart,
.popupPlausibilityBrowser,
.popupLiturgicalCalculator,
.popupChangelogTemplate,
.popupStats,

.popupUserManager {
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 19999;
  padding: 12px;
  font-family: sans-serif;
}

/* relationship editor */
.popupRelationshipEditor {
  position: absolute;
  min-width: 450px;
  max-width: 450px;
  cursor: default;
}

.popupRelationshipEditorHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.popupRelationshipEditorHeader:hover {
  background-color: #eee;
}

.popupRelationshipEditor label {
  cursor: default;
}

/* liturgic calculator */
.popupLiturgicContainer {
  position: absolute;
  left: 480px;
  top: -2px;
  width: 250px;
  background-color: #EEE;
  padding: 8px;
}

.popupLiturgicalCalculator {
  display: none;
  position: absolute;
  left: 730px;
  top: -2px;
  width: 250px;
  background-color: #EEE;
  padding: 8px;

}


.dynevent {
  background-color: #cce5ff;
}

/* person browser / search function */
.popupPersonBrowser {
  position: fixed;
  top: 5%;
  right: 16px;
  width: 1550px;
  height: 90%;
  display: flex;
  flex-direction: column;
}

.popupPersonBrowserHeader:hover {
  background-color: #eee;
}

/* profile editor - not the user profile! */
.popupProfileEditor {
  width: 700px;
  height: 670px;
  max-width: 90vw;
  position: absolute;
  cursor: default;
}

/* info about the logged in user - currently hidden */
.infoUserData {
  position: absolute;
  color: #5090CC;
  top: 4px;
  left: 16px;
  width: 1000px;
  height: 20px;
}

.infoSaveFeedback,
.infoStatusMessage {
  display: none;
  margin: 0.5em 1em;
  color: green;
}

/* chronological view list */
.popupChronoBrowser {
  position: fixed;
  top: 5%;
  right: 100px;
  width: 1550px;
  height: 90%;
  display: flex;
  flex-direction: column;
}

/* user settings */
.popupUserSettings {
  width: 350px;
  max-width: 90%;
}

/* media manager */
.popupMediaEditor {
  position: absolute;
  top: 60px;
  left: 16px;
  width: 900px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 900px;
  min-height: 90vh;
}

.resize-handle {
  width: 16px;
  height: 16px;
  position: absolute;
  right: 2px;
  bottom: 2px;
  cursor: se-resize;
  z-index: 1000;
}


/* fan chart diagram */
.popupFanChart {
  position: fixed;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  background: white;
  border: 2px solid #ccc;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  padding: 1em;
}

.popupFanchartHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.popupFanchartHeader:hover {
  background-color: #eee;
}

.popupFanchartContainer {
  overflow: hidden;
  width: 100%;
  height: calc(100% - 32px);
}

/* plausibility check */
.popupPlausibilityBrowser,
.popupChangelogViewer,
.popupStats {
  position: fixed;
  top: 5%;
  right: 100px;
  width: 900px;
  height: 70%;
  display: flex;
  flex-direction: column;
}

.popupPlausibilityBrowserHeader,
.popupChangelogHeader,
.popupStatsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.popupPlausibilityBrowserHeader:hover,
.popupChangelogHeader:hover,
.popupStatsHeader:hover {
  background-color: #eee;
}

.containerPlausibility {
  overflow-x: auto;
}

.tablePlausibility {
  width: 100%;
  border-collapse: collapse;
}

.tablePlausibility th,
.tablePlausibility td {
  border: 1px solid #ddd;
  padding: 8px;
}

.tablePlausibility th {
  background-color: #f2f2f2;
  text-align: left;
}


/*** tree structure styles ***/
/* personsbox */
.personBox {
  position: absolute;
  width: 200px;
  height: 120px;
  background: #f9f9f9;
  line-height: 1.2;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  padding: 5px;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: visible;
  z-index: 5;
}

.personBox:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.personBox.placeholder {
  opacity: 0.2;
  border: 1px dashed #ccc;
  font-style: italic;
}

.name {
  font-weight: normal;
  color: black;
  font-size: 14px;
}

.birth,
.birthplace,
.deathplace,
.marriageplace,
.death,
.marriage,
.marriagebreak {
  font-size: 12px;
  font-family: monospace;
  white-space: pre;
}

.birthicon::before {
  content: "\1F31E";
  font-size: 12px;
  display: none;
}

.deathicon::before {
  content: "\1F480";
  font-size: 12px;
  display: none;
}

.marriageicon::before {
  content: "\1F49E";
  font-size: 12px;
  display: none;
}

.showicon::before {
  display: inline;
  font-size: 12px;
}

.changelogicon::before {
  content: "📋";
}

.statsicon::before {
  content: "📊";
}

.childrenicon::before {
  content: "👦👧";
}

.chronologyicon::before {
  content: "📃";
}

.languageicon::before {
  content: "🌐";
}

.plausibilitycheckicon::before {
  content: "✅";
}

.passwordreseticon::before {
  content: "🔑";
}

.styleicon::before {
  content: "🎨";
}

.usermanagericon::before {
  content: "😃";
}

.birthplaceicon::before {
  content: "🌍";
}

.personsicon::before {
  content: "🔍";
}

.mysettingsicon::before {
  content: "🔨";
}

.backtostartidicon::before {
  content: "🏁";
}

.fancharticon::before {
  content: url("/images/fan.png") " ";

}

.calendaricon::before {
  content: "📆 ";
}


/* person id on lower left corner of the person box */
.id {
  position: absolute;
  top: 110px;
  left: 4px;
  color: black;
  font-size: 12px;
  background: #EEE;
  padding: 1px;
  padding-right: 4px;
  padding-left: 4px;
  border: 1px solid;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.gender-male {
  background-color: #cce5ff;
}

.gender-female {
  background-color: #F2E6DB;
}

.gender-unknown {
  background-color: #eee;
}

/* geometry */
.linePartner {
  position: absolute;
  height: 4px;
  background-color: rgba(255, 255, 255, 1);
  z-index: 0;
  cursor: pointer;
}

.linePartner:hover {
  position: absolute;
  height: 4px;
  background-color: rgba(127, 236, 255, 1);
  z-index: 0;
  -webkit-box-shadow: 0px 0px 13px 2px rgba(127, 236, 255, 0.9);
  -moz-box-shadow: 0px 0px 13px 2px rgba(127, 236, 255, 0.9);
  box-shadow: 0px 0px 13px 2px rgba(127, 236, 255, 0.9);
  cursor: pointer;
}

.geoLinePartner0 {
  background-color: rgba(255, 255, 255, 1);
}

.geoLinePartner1 {
  background-color: rgba(255, 255, 0, 1);
}

.geoLinePartner2 {
  background-color: #b576ad;
}

.geoLinePartner3 {
  background-color: #d08770;
}

.geoLinePartner4 {
  background-color: #a3be8c;
}

.geoLineVertical {
  position: absolute;
  width: 2px;
  background-color: rgba(255, 255, 255, 1);
  z-index: 12;
}

.geoLineHorizontal {
  position: absolute;
  height: 4px;
  background-color: rgba(255, 255, 255, 1);
  z-index: 0;
}

.geoLineVertical,
.geoLineHorizontal {
  position: absolute;
  background-color: rgba(255, 255, 255, 1);
  z-index: 0;
  pointer-events: none;
}

.geoLineVertical {
  width: 2px;
}

.geoLineHorizontal {
  height: 2px;
}


.geoLineGen0 {
  background: #FFF;
}

.geoLineGen2 {
  background: #BBB;
}

.geoLineGen3 {
  background: #FFF;
}

.geoLineGen4 {
  background: #BBB;
}

.geoLineGen5 {
  background: #FFF;
}

.geoLineGen6 {
  background: #BBB;
}

.geoLineGen7 {
  background: #FFF;
}

.geoLineGen8 {
  background: #BBB;
}

.geoLineGen9 {
  background: #FFF;
}

.geoLineGen10 {
  background: #BBB;
}

.geoLineGen11 {
  background: #FFF;
}

.geoLineGen12 {
  background: #BBB;
}

.geoLineGen13 {
  background: #FFF;
}

.geoLineGen14 {
  background: #BBB;
}


.containerPartnerInfo {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1em;
}

.containerPartner {
  flex: 1;
  margin-right: 1em;
  font-size: 0.9em;
  background: #f9f9f9;
  padding: 0.5em;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.edit-fields label {
  display: block;
  margin: 0.5em 0;
}

.place {
  width: 70%;
}




.autosave-status {
  float: right;
}





.inner {
  background-color: #FFF;
  width: 100px;
  height: 100px;
  margin: 5px;
  border-radius: 50px;
}

.edit-fields {
  margin-top: 40px;
}





.personBox.invisible {
  opacity: 0;
  pointer-events: none;
}



.popupPersonBrowserHeader {
  background-color: white;
  font-weight: bold;
}




.popupPersonBrowserContent {
  display: flex;
  gap: 2%;
  flex: 1;
  overflow-y: auto;
}

.seperatorCentury {
  margin: 1em 0 0.5em;
  font-weight: bold;
  text-align: center;
  color: #666;
  font-size: 0.9em;
  border-top: 1px solid #ccc;
}

/*

*/

.personRow {
  display: flex;
  padding: 2px 6px;
  cursor: pointer;
  font-family: sans-serif;
  font-size: 15px;
}

.personRowUnknown:nth-child(odd),
.personRowFemale:nth-child(odd),
.personRowMale:nth-child(odd) {
  display: flex;
  padding: 2px 6px;
  cursor: pointer;
  font-family: sans-serif;
  font-size: 17px;
  background-color: #f9f9f9;
}

.personRowUnknown:nth-child(even),
.personRowFemale:nth-child(even),
.personRowMale:nth-child(even) {
  display: flex;
  padding: 2px 6px;
  cursor: pointer;
  font-family: sans-serif;
  font-size: 17px;
  background-color: #ffffff;
}



.changeLogRow:nth-child(odd) {
  width: 100%;
  padding: 2px 6px;
  font-family: sans-serif;
  font-size: 17px;
  background-color: #f9f9f9;
}


.changeLogRow:nth-child(even) {
  width: 100%;
  padding: 2px 6px;
  font-family: sans-serif;
  font-size: 17px;
  background-color: #ffffff;
}

.changeLogColumn {
  padding: 8px;

}

.containerChangelog {
  height: 100%;
  overflow-y: auto;
}

.containerChangelogRows {
  overflow-y: auto;
}


.userListRow:nth-child(odd) {
  background-color: #ffc400;
}

.userListRow:nth-child(even) {
  background-color: #ffd900;
}

.personRowUnknown:hover {
  background: #eeeeee;
}

.personRowMale:hover {
  background: #cce5ff;
}

.personRowFemale:hover {
  background: #F2E6DB;
}

.personBirthdate,
.personDeathdate {
  width: 95px;
  flex-shrink: 0;

}

.hoverLine {}


.personName {
  flex-grow: 1;
  padding-left: 10px;
}

.personRowHeaderUnknown {
  display: flex;
  font-weight: bold;
  /* background: #f8f8f8; */
  background: #AAA;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.3em;
}

.personRowHeaderMale {
  display: flex;
  font-weight: bold;
  background: #cce5ff;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.3em;
}

.personRowHeaderFemale {
  display: flex;
  font-weight: bold;
  background: #F2E6DB;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.3em;
}


.column {
  width: 50%;
  border-left: 1px solid #ccc;
  padding-left: 1em;
}


.columnMale,
.columnFemale {
  margin-left: 4px;
  margin-right: 4px;
  width: 50%;
}

.person-entry {
  padding: 0.3em 0.2em;
  cursor: pointer;
  font-family: monospace;
  border-bottom: 1px dotted #ddd;
}

.person-entry:hover {
  background: #f0f0f0;
}








.searchInput {
  margin-top: 8px;
  width: 100%;
  padding: 0.4em 0.6em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.rel-year {
  width: 200px;

}




.profile-body,
.addPartner-body,
.addParent-body {
  width: 305px;


}

.headerProfile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.headerProfile:hover {
  background-color: #EEE;
}


.containerProfileFields,
.addPartner-fields,
.addParent-fields {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  /* oder 0.3em für noch dichter */
}


.addPartner-select,
.addParent-select {
  font-family: "Courier New", Courier, monospace;

}



.profile-partners,
.profile-parents {
  float: left;
  width: 330px;
  margin-top: 1em;
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 0.5em;
  font-size: 0.9em;
  height: 500px;
  overflow-y: auto;
}

.inputProfile,
.addPartner-input,
.addParent-input {
  width: 300px;
  height: 24px;

}



.partner-block {
  margin-top: 32px;
}


.save-mark {
  margin-left: 5px;
  color: green;
  white-space: nowrap;
  display: inline-block;
}


.selectAddpartner {
  font-family: monospace;
}



.children-list {
  margin: 0.3em 0 0 1em;
  padding: 0px;
  padding-left: 10px;
}

.partner-search-controls {
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.partner-search-controls label {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.partner-select {
  width: 100%;
  padding: 0.3em;
}

.age-range {
  width: 100%;
}


.addPartner-editor {
  position: absolute;
  top: 84px;
  left: 346px;
  width: 348px;
  margin-top: 1em;
  background: #fff;
  padding: 0.5em;
  font-size: 0.9em;
  height: 560px;
  overflow-y: auto;


}

.addPartner-footer {
  margin-top: 8px;
  padding-top: 8px;
  border: 1px solid;

}

.range-slider,
.age-range-slider {
  width: 710px;
}

.buttonLiturgical {
  margin-left: 4px;
  width: 28px;
  height: 24px;



}

.inputProfileDate,
.buttonLiturgical {
  flex-shrink: 0;
  min-width: 0;

}

.smallgap {
  height: 4px;
}

.popupChronoBrowserHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.popupChronoBrowserHeader:hover {
  background-color: #eee;
}

.containerChrono {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.columnChronoTree {
  flex: 3;
  overflow: auto;
  padding: 1em;
  border-right: 1px solid #ccc;
  font-family: monospace;
  white-space: pre-wrap;
  font-size: 17px;
}

.columnChronoLegend {
  flex: 1;
  padding: 1em;
  overflow: auto;
  background: #fafafa;
}

.listChronoLegend {
  list-style: none;
  padding: 0;
}

.listChronoLegend li {
  margin-bottom: 0.3em;
}

.generation {
  background-color: yellow;
  padding: 2px;
  font-weight: bold;
  font-size: 22px;
  width: 100%;
  border-bottom: 1px solid #000;
  margin-bottom: 4px;
}

.containerChronoRow {
  display: flex;
  gap: 0.5em;
  padding: 0.1em 0;
  align-items: baseline;
}

.containerChronoRow.child {
  padding-left: 2em;
  /* oder mehr, z. B. 3em für stärkere Einrückung */
}

.containerChronoRow span {
  white-space: nowrap;
}



.containerChronoRow:hover {
  background-color: #EEE;
}

.containerChronoRow.child {
  padding-left: 1.5em;
  opacity: 0.95;
}

.containerChronoRow.highlighted {
  font-weight: bold;
  outline: 1px dashed #222;
  background: #ffffdd !important;
}

.containerChronoRow.highlight {
  background: #AAFFAA;
}

.generation {
  font-weight: bold;
  margin: 1em 0 0.3em;
}

.chronogap {
  height: 20px;
  border-bottom: 1px solid #AAA;
}



.login-container {
  background: white;
  padding: 2em;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 300px;
  animation-duration: 0.4s;
}

.login-container h2 {
  margin-bottom: 1em;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 90%;
  padding: 0.5em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}

.login-container button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 0.7em 1.2em;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-container button:hover {
  background: #45a049;
}

.error-message {
  color: red;
  margin-bottom: 1em;
}

/* Shake Animation */
@keyframes shake {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-10px);
  }

  40% {
    transform: translateX(10px);
  }

  60% {
    transform: translateX(-6px);
  }

  80% {
    transform: translateX(6px);
  }

  100% {
    transform: translateX(0);
  }
}




.pw-vergessen-box {
  background: white;
  padding: 2em;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-width: 320px;
}

.pw-vergessen-input[type="email"] {
  padding: 0.6em;
  width: 90%;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.pw-vergessen-button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  cursor: pointer;
}

.pw-vergessen-msg {
  margin-bottom: 1em;
  color: #333;
}

.overlayUserSettings {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}



.portrait-img {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #000;
}


.media-icon-has_birth {
  position: absolute;
  left: 130px;
  top: 108px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  margin-right: 4px;
}

.media-icon-has_marriage {
  position: absolute;
  left: 150px;
  top: 108px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  margin-right: 4px;
}

.media-edit-icon {
  position: absolute;
  left: 150px;
  top: 108px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  margin-right: 4px;
}


.media-icon-has_death {
  position: absolute;
  left: 170px;
  top: 108px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  margin-right: 4px;
}








.popupMediaEditorHeader {
  background-color: white;
  font-weight: bold;
}

.popupMediaEditorHeader:hover {
  background-color: #eee;
}


.eventSelectionBar {
  margin: 0.5rem 0;
}

.mediaColumns {
  display: flex;
  flex: 1;
  gap: 1rem;
  min-height: 0;
}

.mediaThumbs {
  width: 132px;
  /* oder max-width: 132px; wenn du etwas flexibler bleiben willst */
  overflow-y: auto;
  border-right: 1px solid #ddd;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  flex-shrink: 0;
  /* verhindert, dass sie kleiner wird bei Platzmangel */
}

.mediaThumbs img {
  width: 100px;
  height: auto;
  align-self: center;
  cursor: pointer;
  border: 1px solid transparent;
}


.formMediaDate,
.formEvent-date {
  width: 200px;
  height: 24px;
}

.formMediaYear,
.formEvent-year {
  width: 240px;
  height: 24px;
}

.formMediaRigor,
.formEvent-rigor {
  width: 100px;
  height: 24px;
}

.formMediaTitle,
.formMediaAuthor,
.formMediaUpdater,
.formEventTitle,
.formEventAuthor,
.formEventUpdater {
  width: 700px;
  height: 24px;
}


.formEvent textarea {
  width: 700px;
  height: 200px;

}

.formMedia textarea {
  width: 700px;
  height: 100px;

}


.mediaThumbs img.active {
  border: 2px solid #007BFF;
}

.formMedia {
  flex: 1;
  /* nimmt einfach den restlichen Platz */
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

.popupMediaEditorZoomContainer {
  float: left;
  width: 90%;
  height: 320px;
  overflow: hidden;
  position: relative;
  border: 1px solid #ccc;
  background: #fafafa;
  cursor: grab;
}

.popupMediaEditorPreview {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  transition: transform 0.1s ease;
  user-select: none;
  pointer-events: none;
  /* damit das Dragging klappt */
}

.popupMediaEditorPerson {
  color: #3070AA;
}


.popupMediaEditorTools {
  position: relative;
  float: left;
  left: 16px;

  width: 16px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}


.popupMediaEditorTools .slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.popupMediaEditorTools input[type="range"] {
  writing-mode: bt-lr;
  /* vertical */
  transform: rotate(270deg);
  width: 60px;
  height: 60px;
}

.buttonOpenInTab {
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.invert-toggle-btn {
  width: 32px;
}


.tabsEventSpecial {
  margin: 0.5rem 0;
  display: flex;
  gap: 0.5rem;
}

.ereignis-tab {
  padding: 0.2rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #eee;
  cursor: pointer;
  font-size: 0.9rem;
}

.ereignis-tab.tab-exists {
  background: #c7f5cc;
  /* sanftes grün */
  border-color: #97e1a4;
}


.media-rotator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-toggle-btn {
  width: 32px;

}


.formEvent {
  background-color: #FFF;

}

.lineCreatePartnerHoverEnter {
  background: rgba(255, 150, 255, 0.3)
}


.lineCreatePartnerHover {
  position: absolute;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 0;


  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #FFF;
  font-size: 24px;
  opacity: 0;

}

@keyframes pulse-opacity {

  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

.lineCreatePartnerHover:hover {
  background: rgba(0, 150, 255, 0.3);
  animation: pulse-opacity 1.2s infinite;
}

@keyframes flashHighlight {
  0% {
    background-color: rgba(0, 255, 0, 0.8);
  }

  100% {
    background-color: transparent;
  }
}

.realLine.flash {
  animation: flashHighlight 0.5s ease;
}










#c {
  overflow: auto;
  cursor: grab;
}

#c:active {
  cursor: grabbing;
}



.error-row {
  background-color: #ffe0e0;
}

.error-row:hover {
  background-color: #eed0d0;
}

.warning-row {
  background-color: #fff6cc;
}

.warning-row:hover {
  background-color: #eee6bb;
}

.insertPlaceHolders {
  padding-left: 16px;
}

.useMultiColor {
  padding-left: 16px;
}

.popupUserManager {
  position: absolute;
  background-color: #FFEE00;
  top: 15%;
  left: 100px;
  width: 500px;
  height: 500px;
  display: flex;
  flex-direction: column;
  border: 1px solid;
}


.popupUserManagerHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popupUserManagerHeader:hover {
  display: flex;
  background-color: #ffdd00;
  justify-content: space-between;
  align-items: center;
}

.containerUserManager {
  overflow-y: auto;
  margin-top: 10px;
}

.userName,
.userEmail,
.userRole,
.userDelete {
  padding: 8px;
}


/*** buttons ***/

.buttonClosePlausibility {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.buttonClose,
.buttonClosePlausibility,
.buttonClosePersonBrowser {
  float: right;
}



.buttonDeleteMedia,
.buttonDeleteEvent {
  margin-right: 16px;
  margin-left: 400px;
}

.buttonAddPartner,
.buttonAddParents {
  float: right;
  background-color: #EEE;
  color: black;
  border: 1px solid #808080;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  height: 22px;
}

.buttonAddPartner:hover {
  background-color: #CCC;
}

.buttonDeletePerson {
  float: left;
}

.buttonZoom {
  position: absolute;
  width: 40px;
  height: 20px;
  border: 2px solid;
  border: 1px solid #505050;
  background-color: #EEE;
  color: black;
  font-size: 14px;
  font-weight: bold;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
  bottom: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 12;
  padding: 2px;
}

.buttonZoom:hover {
  background-color: #EEEE00;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.7);
  cursor: pointer;
}



.buttonSave,
.buttonSaveNewPartner,
.buttonSaveNewParent {
  background-color: #009000;
  color: white;
  border: 1px solid #808080;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  height: 22px;
}

.buttonSave:hover,
.buttonSaveNewPartner:hover,
.buttonSaveNewParent:hover {
  background-color: #007000;
}

.buttonSearch,
.buttonChrono,
.buttonFan,
.buttonCheck,
.buttonStats {
  float: right;
  margin-top: 16px;
  margin-right: 16px;
  height: 32px;
  font-size: 18px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.buttonUserProfile,
.buttonLogout,
.buttonUserManager,
.buttonBackToStartId {
  float: left;
  margin-top: 16px;
  margin-left: 16px;
  height: 32px;
  font-size: 18px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.buttonUserManager {
  display: none;
}

.buttonDeleteRelationship,
.button-remove-child,
.buttonDeletePerson,
.buttonDelete,
.buttonDeleteMedia,
.buttonDeleteEvent {
  float: right;
  font-size: 14px;
  border: 0px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  /* optional */
  padding: 0;
  /* verhindert Text-Verschiebung */
}

.buttonDeleteRelationship:hover,
.button-remove-child:hover,
.buttonDeletePerson:hover,
.buttonDelete:hover,
.buttonDeleteMedia:hover,
.buttonDeleteEvent:hover {
  background: #CCC;
  border: 0px;
  width: 18px;
  height: 18px;

}


.popupPersonMerge {
  position: absolute;
  top: 5vh;
  left: 10vw;
  width: 750px;
  height: 85%;

}


.popupChronoBrowserHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.popupPersonMergeHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}


.popupPersonMergeHeader:hover {
  background-color: #eee;
}


.mergeInstructions {
  padding: 0.5em 1em;
  font-size: 0.9em;
  color: #444;
}

.mergeContainer {
  display: flex;
  padding: 1em;
  gap: 1em;
}

.mergeColumn {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 1em;
}

.mergeColumn h3 {
  text-align: center;
  margin-top: 0;
}

.personDetails {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.mergeField {
  padding: 0.5em;
  border: 1px solid #ddd;
  background: #f9f9f9;
  cursor: grab;
  border-radius: 3px;
}

.mergeField:active {
  cursor: grabbing;
}

.mergeActions {
  display: flex;
  justify-content: flex-end;
  gap: 1em;
  padding: 1em;
  border-top: 1px solid #ccc;
}

.buttonConfirmMerge,
.buttonCancelMerge {
  padding: 0.5em 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.buttonConfirmMerge {
  background-color: #28a745;
  color: white;
}

.buttonCancelMerge {
  background-color: #dc3545;
  color: white;
}

.merge-side {
  border: 2px solid #ccc;
  margin: 0 10px;
  float: left;
  width: 40%;
  position: relative;
  padding: 4px;
}

.merge-content {
  overflow-y: auto;
  height: 90%;

}

.draggable-field-wrapper {
  margin-bottom: 8px;
}

.field-label {
  display: block;
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 2px;
}

.person-id-label {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}


.merge-side-header {
  background: #f0f0f0;
  text-align: center;
  font-weight: bold;
  padding: 5px;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
  user-select: none;
}

.merge-side.selected {
  border-color: #00d400;
}

.merge-side.selected .merge-side-header {
  background: #28c700;
  color: white;
}

.merge-relations {
  margin-top: 10px;
  font-size: 0.9em;
}

.relation-list {
  margin: 0;
  padding-left: 15px;
}

.relation-entry {
  background: #f5f5f5;
  margin: 2px 0;
  padding: 2px 6px;
  border-radius: 4px;
}

.dragfield {
  background: #eee;
  width: 200px;
  margin: 4px;
  border: 1px solid #009000;

}

.draggable-field {
  padding: 6px 10px;
  margin: 4px 0;
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 24px;
  cursor: grab;
  user-select: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.draggable-field:active {
  cursor: grabbing;
  background-color: #e0e0e0;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-panel {
  position: absolute;
  display: none;
  left: 400px;
}

.tab-panel.active {
  position: absolute;
  display: block;
  border: 1px solid;
  top: 68px;
  left: 342px;
  width: 360px;
  height: 600px;
  padding: 4px;

}

.tab-button {
  -moz-border-radius: 0px;
  -webkit-border-radius: 4px 4px 0px 0px;
  border-radius: 3px 3px 0px 0px;
  border: 1px solid;

  padding: 4px;
  margin-bottom: 0px;
  background-color: #eee;
}

.tab-button.active {
  font-weight: bold;
  background-color: #fff;
  -moz-border-radius: 0px;
  -webkit-border-radius: 4px 4px 0px 0px;
  border-radius: 3px 3px 0px 0px;
  border: 1px solid;
  border-color: #000000;
  border-bottom-color: #FFF;
  padding: 4px;
  margin-bottom: 0px;
  background-color: #ffffff;
}

.tab-header {
  left: 342px;
  top: 43px;
  position: absolute;

}


.field-group {
  margin-bottom: 2px;
}

.field-group span {
  display: block;
  margin-bottom: 0px;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.save-mark {
  color: green;
  font-size: 1.2em;
}

.personPhotoWrapper {
  display: none;
  position: absolute;
  top: -52px;
  left: 132px;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #505050;
  z-index: 1;
  background: #000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.personPhotoWrapper img.personPhoto {

  width: 100%;
  height: 100%;
  object-fit: cover;
}

.geoLineEven {
  background: #fff;
  /* stroke: #444;*/
}

.geoLineOdd {
  background: #aaa;
  /* stroke: #888;*/
}

.toastMessage {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  borderRadius: 8px;
  zIndex: 9999;
  fontSize: 14px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.toastError {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: rgb(255, 0, 0);
  padding: 8px 16px;
  borderRadius: 8px;
  zIndex: 9999;
  fontSize: 14px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.toastWarning {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: rgb(255, 255, 0);
  padding: 8px 16px;
  borderRadius: 8px;
  zIndex: 9999;
  fontSize: 14px;
  opacity: 0;
  transition: opacity 0.5s ease;
}


.changelog-table-wrapper {

  border: 1px solid #ccc;
}

.tableChangelog {
  width: 100%;

  border-collapse: collapse;
  table-layout: fixed;
}

.tableChangelog th,
.tableChangelog td {
  padding: 6px 8px;
  border: 1px solid #ccc;
  text-align: left;
  white-space: nowrap;
}

.tableChangelog th {
  position: sticky;
  top: 0;
  background: #f7f7f7;
  z-index: 2;
}

/* Spaltenbreiten */
.changeLogTime {
  width: 160px;
}

.changeLogType {
  width: 120px;

}

.changeLogTarget {
  width: 80px;
}

.changeLogTtitle {
  width: 120px;
}

.changeLogId {
  width: 50px;
}

.changeLogNote {
  width: 50px;
}

.changeLogUser {
  width: 120px;
}

.disabled-by-role {

  background-color: #DDD;
  pointer-events: none;
}

.tree-loader {
  padding: 16px;
  border: 1px solid;
  width: 110px;
  height: 110px;
  background-color: #FFF;
  border: 1px solid #FFFFFF;

  border-radius: 100px;
  box-shadow: 0 0 32px #FFFFFF;
  -webkit-animation: pulse 2s linear 1s infinite;
}

.pw-vergessen-msg,
.pw-reset-msg {
  color: white;

}

.password-reset-box {
  padding: 8px;
  text-align: center;
}

.colorBox {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin: 0 0.5em 0 0.5em;
  border-radius: 3px;
}

.statistikKategorie {
  background: #eee;
  padding: 4px;
}

.statistikWert {
  padding: 4px;

}


.containerStats {
  display: block;
}

.statistikRow {
  display: block;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
}

.firstperson {
  width: 400px;
  height: 120px;
  background: white;
  line-height: 1.2;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  padding: 5px;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: visible;
  z-index: 5;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.buttonSaveFirstPerson {
  display: none;
}

.buttonFirstPerson {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 20px;
  transform: translate(-50%, -50%);

}

#anecdote {
  height: 64px;
}

.ancestorshrink {
  box-shadow: 0px 0px 4px 4px rgb(2, 175, 255, 0.9);
}

.ancestorshrink:hover {
  box-shadow: 0px 0px 8px 8px rgba(255, 255, 0, 1);
}

.hovered-clone {
  box-shadow: 0px 0px 8px 8px rgba(255, 255, 0, 1);
}