@font-face {
	font-family: 'GesType';
	font-style: normal;
	src: url(\css\GesZeich.eot) format('eot'),
		url(\css\GesZeich.woff) format('woff');
}
body {
	background-color: #f8f9fa;
	padding: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	height: auto;
	flex-direction: column;
}
/* Content pages (Person, NamensListe, ahnentafel, nachfahren) use body.page-content */
body.page-content {
	align-items: flex-start;
	justify-content: flex-start;
	padding: 10px;
}
/* Tabelle insgesamt */
table {
    border-spacing: 0; /* Kein Abstand zwischen den Zellen */
    border-collapse: collapse; /* Ränder der Zellen zusammenführen */
    width: 100%;
}

.table {
    border-spacing: 0; /* Kein Abstand zwischen den Zellen */
    border-collapse: collapse; /* Ränder der Zellen zusammenführen */
    width: 100%;
}
/* Tabellenzellen (td und th) */
.table td, .table th {
    padding: 1px; /* Weniger Innenabstand */
    margin: 0; /* Kein äußerer Abstand */
    line-height: 1.0; /* Kleinere Zeilenhöhe */
}

.login-container {
	max-width: 400px;
	padding: 20px;
	background: white;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
}
.login-container img {
	width: 200px;
	display: block;
	margin: 0 auto 20px;
}
.error {
   color: red;
  margin-top: 20px;
}
.settings-container {
	width: 100%;
	max-width: 800px;
	background: white;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	overflow-y: auto;
	max-height: 100vh;
}
.settings-group {
	margin-bottom: 20px;
}
.password-change-container {
	max-width: 500px;
	width: 100%;
	background: white;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
}
.confirmation-container {
	max-width: 500px;
	width: 100%;
	background: white;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
}
.registration-container {
	max-width: 500px;
	width: 100%;
	background: white;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
}
.search-container {
	max-width: 600px;
	width: 100%;
	background: white;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup {
    background-color: white;
    padding: 20px;
    border-width: 5px;
    border-style: solid;
    border-color: black;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    text-align: left;
}

.popup h2 {
    margin-top: 0;
    background-color: white;
}
.popup p {
    margin-top: 0;
    background-color: white;
}
.results-container {
	max-width: 100%;
	margin: 0 auto;
	background: white;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
}
.results-table {
	width: 100%;
	margin-top: 2px;
	table-layout: auto;
}
.results-table th, .results-table td {
	padding: 2px;
	text-align: left;
}
.details-container {
	max-width: 100%;
	width: 100%;
	margin: 0 auto;
	background: white;
	padding: 2px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	overflow-y: auto;
	max-height: 100vh;
}
.details-header {
	margin-bottom: 2px;
}
.block {
	margin-bottom: 2px;
}
.block-title {
	background-color: #007bff;
	color: white;
	padding: 10px;
	border-radius: 4px;
}
@media (max-width: 767px) {
	.table-responsive {
		overflow-x: auto;
	}
}

.listpersonname { font-family:Arial, Microsoft Sans Serif, Garamond, Serif;  text-align:left;   }
.listpersonvorname {font-family:Arial, Microsoft Sans Serif, Garamond, Serif;  text-align:left;   }
.listpersonpersnr { font-family:Arial, Microsoft Sans Serif, Garamond, Serif;  text-align:left;   }
.listpersonpersnr a { font-family:Arial, Microsoft Sans Serif, Garamond, Serif; color:#ff0000 !important;  }

/* Listen */
ul {
	list-style-type: none;
	padding-left: 20px;
}

ul li {
	display:inline;
}

ul li:after {
	content: ';';
}

.M:before {
    font-family:'GesType';
	content: '\F06D';
	color:#0000ff; 
	font-size:16pt; 
	font-weight:bold; 
}

.F:before {
    font-family:'GesType';
	content: '\F066';
	color:#ff0000; 
	font-size:16pt; 
	font-weight:bold; 
}

ul li:last-child:after {
	content: ' ';
}

ul.sex li.M {
	content: 'M';
}

ul.sex li.F {
	content: 'F';
}

ul.events {
	padding-left: 2px;
}

/* Kinder */
ol.kinder {
	list-style-type: decimal;
}


/* Event Liste */

/* Hier bei Listen*/
ul.events li:before {
	content: '';
	padding-right: 5px;
	display: inline-block;
	/* 	background-image: url(); */
}

.geburt:before {
    font-family:'GesType';
	content: '\F047';
}

.geburt-unehelich:before {
    font-family:'GesType';
	content: '\F055';
}

.taufe-unehelich:before {
    font-family:'GesType';
	content: '\F054';
}

.taufe:before {
    font-family:'GesType';
	content: '\F054';
}

.heirat:before {
    font-family:'GesType';
	content: '\F048';
}

.standesamt:before {
    font-family:'GesType';
	content: '\F048;';
}

.geburt-tod:before {
    font-family:'GesType';
	content: '\F067';
}

.geburt-todamgleichentag:before {
    font-family:'GesType';
	content: '\F074';
}

.heimat:before {
    font-family:'GesType';
	content: '\F068';
}

.reli1:before {
    font-family:'GesType';
	content: '\F048';
}

.reli2:before {
    font-family:'GesType';
	content: '\F052';
}

.tod:before {
    font-family:'GesType';
	content: '\F044';
}

.tod-gefallen:before {
    font-family:'GesType';
	content: '\F046';
}

.tod-vermisst:before {
    font-family:'GesType';
	content: '\F055';
}

.tod-imkriegvermisst:before {
    font-family:'GesType';
	content: '\F068';
}

.tod-juedisch:before {
    font-family:'GesType';
	content: '\F06A';
}

.tod-muslemisch:before {
    font-family:'GesType';
	content: '\F075';
}

.tod-buddhistisch:before {
    font-family:'GesType';
	content: '\F062';
}

.tod-eingeaeschert:before {
    font-family:'GesType';
	content: '\F073';
}

.begraben:before {
    font-family:'GesType';
	content: '\F042';
}

.scheidung:before {
    font-family:'GesType';
	content: '\F053';
}

.nichtehelich:before {
    font-family:'GesType';
	content: '\F04E';
}

.verlobt:before {
    font-family:'GesType';
	content: '\F06F';
}

ul.events li.geburt:before {
    font-family:'GesType';
	content: '\F047';
}

ul.events li.geburt-unehelich:before {
    font-family:'GesType';
	content: '\F055';
}

ul.events li.taufe-unehelich:before {
    font-family:'GesType';
	content: '\F054';
}

ul.events li.taufe:before {
    font-family:'GesType';
	content: '\F054';
}

ul.events li.heirat:before {
    font-family:'GesType';
	content: '\F048';
}

ul.events li.standesamt:before {
    font-family:'GesType';
	content: '\F048;';
}

ul.events li.geburt-tod:before {
    font-family:'GesType';
	content: '\F067';
}

ul.events li.geburt-todamgleichentag:before {
    font-family:'GesType';
	content: '\F074';
}

ul.events li.heimat:before {
    font-family:'GesType';
	content: '\F068';
}

ul.events li.reli1:before {
    font-family:'GesType';
	content: '\F048';
}

ul.events li.reli2:before {
    font-family:'GesType';
	content: '\F052';
}

ul.events li.tod:before {
    font-family:'GesType';
	content: '\F044';
}

ul.events li.tod-gefallen:before {
    font-family:'GesType';
	content: '\F046';
}

ul.events li.tod-vermisst:before {
    font-family:'GesType';
	content: '\F055';
}

ul.events li.tod-imkriegvermisst:before {
    font-family:'GesType';
	content: '\F068';
}

ul.events li.tod-juedisch:before {
    font-family:'GesType';
	content: '\F06A';
}

ul.events li.tod-muslemisch:before {
    font-family:'GesType';
	content: '\F075';
}

ul.events li.tod-buddhistisch:before {
    font-family:'GesType';
	content: '\F062';
}

ul.events li.tod-eingeaeschert:before {
    font-family:'GesType';
	content: '\F073';
}

ul.events li.begraben:before {
    font-family:'GesType';
	content: '\F042';
}

ul.events li.scheidung:before {
    font-family:'GesType';
	content: '\F053';
}

ul.events li.nichtehelich:before {
    font-family:'GesType';
	content: '\F04E';
}

ul.events li.verlobt:before {
    font-family:'GesType';
	content: '\F06F';
}

body div.person {  text-align:left;background-color:white; color:black; font-size:8.75pt; font-family:Microsoft Sans Serif, Garamond, Serif;  }
body div.person  a   { text-decoration:none; color:black; background-color:#ffffff; }
body div.person td    { background-color:white; color:black; font-size:8.75pt; vertical-align:top; overflow:hidden; text-align:left; }
body div.person  table { table-layout:fixed; border-spacing:0px }
.personname { font-size:11.75pt;font-weight:normal; font-style:italic; text-transform:uppercase; font-weight:bold;   text-align:left;   }
.personvorname { font-size:11.75pt;font-weight:normal; font-style:italic; text-align:left;   }
.personpersnr {font-size:11.75pt; font-style:italic;color:#ff0000; font-weight:normal;  text-align:left;  }
.personpersnr a {font-size:10pt; font-style:italic;color:#ff0000 !important; font-weight:normal;   }


/* Historie */
.historie { font-style:italic; text-align:left;  }
.historie:before {
	content: "Historie: \A";
	white-space: pre;
	font-weight: normal;
}
.paten { font-style:normal; text-align:left; font-size:9pt;font-weight: lighter; }
.paten:before {
	content: "P:";
	white-space: pre;
	font-style:normal; 
	font-size:9pt;
	font-weight: lighter;
}

/* Dokumente */
table.documents a { text-decoration:underline;
}
/* Link beim Datum */
.urlvorhanden {
	text-decoration: underline;
}

/* Name */
.rufname {
	text-decoration: underline;
}
/* Portrait */
img.portrait {
	height: 75px;
	float: right;
	clear: right;
}
/* Familienbild */
img.famportrait {
	height: 300px;
	float: center;
	clear: Center;
}

/* Preview */
img.preview {
	height: 50px;
	float: left;
	clear: left;
}
img.portrait.large {
	height: 300px;
}

.tree-container {
	width: 100%;
	height: 100%;
	overflow: auto;
	flex-grow: 1; /* Ensures the container grows to fill the remaining space */
}
.tree {
	display: table;
	margin: 0 auto;
	overflow: auto;
	width: 100%;
	height: 100%;
	flex-grow: 1; /* Ensures the container grows to fill the remaining space */
}
.tree ul {
	padding-top: 20px;
	position: relative;
	white-space: nowrap;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}
.tree ul ul {
	padding-left: 20px;
}
.tree li {
	display: table-cell;
	vertical-align: top;
	text-align: center;
	list-style-type: none;
	position: relative;
	padding: 20px 5px 0 5px;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}
.tree li::before, .tree li::after {
	content: '';
	position: absolute;
	top: 0;
	border-top: 2px solid #ccc;
	width: 50%;
	height: 20px;
}
.tree li::before {
	right: 50%;
	border-right: 2px solid #ccc;
}
.tree li::after {
	left: 50%;
	border-left: 2px solid #ccc;
}
.tree li:only-child::after, .tree li:only-child::before {
	display: none;
}
.tree li:only-child {
	padding-top: 0;
}
.tree li:first-child::before, .tree li:last-child::after {
	border: 0 none;
}
.tree li:last-child::before {
	border-right: 2px solid #ccc;
	border-radius: 0 5px 0 0;
}
.tree li:first-child::after {
	border-radius: 5px 0 0 0;
}
.tree ul ul::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	border-left: 2px solid #ccc;
	width: 0;
	height: 20px;
}
.tree li a {
	display: inline-block;
	border: 2px solid #ccc;
	padding: 5px 10px;
	text-decoration: none;
	color: #666;
	font-family: arial, verdana, tahoma;
	font-size: 11px;
	border-radius: 5px;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}
.tree li a.male {
	border-color: blue;
}
.tree li a.female {
	border-color: red;
}
.tree li a:hover, .tree li a:hover+ul li a {
	background: #c8e4f8;
	color: #000;
	border: 2px solid #94a0b4;
}
.tree li a:hover+ul li::after, 
.tree li a:hover+ul li::before, 
.tree li a:hover+ul::before, 
.tree li a:hover+ul ul::before {
	border-color: #94a0b4;
}
.persportrait {
	width: 50px;
	height: 70px;
	/*border-radius: 70%;*/
	margin-left: 10px;
	vertical-align: middle;
    object-fit: cover; /* Ensures the image covers the element without distortion */
    aspect-ratio: 1 / 1; /* Ensures the image maintains its aspect ratio */
 	
}
.person-info {
	display: flex;
	align-items: center;
}

.descendants-container {
	width: 100%;
	height: 100%;
	overflow: auto;
	flex-grow: 1; /* Ensures the container grows to fill the remaining space */
}
.descendants {
	display: table;
	justify-content: center;
	align-items: center;
	overflow: auto;
	width: 100%;
	height: 100%;
	flex-grow: 1; /* Ensures the container grows to fill the remaining space */
}
.descendants ul {
	padding-top: 20px;
	position: relative;
	white-space: nowrap;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}
.descendants ul ul {
	padding-left: 20px;
}
.descendants li {
	display: table-cell;
	vertical-align: top;
	text-align: center;
	list-style-type: none;
	position: relative;
	padding: 20px 5px 0 5px;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}
.descendants li::before, .descendants li::after {
	content: '';
	position: absolute;
	top: 0;
	border-top: 2px solid #ccc;
	width: 50%;
	height: 20px;
}
.descendants li::before {
	right: 50%;
	border-right: 2px solid #ccc;
}
.descendants li::after {
	left: 50%;
	border-left: 2px solid #ccc;
}
.descendants li:only-child::after, .descendants li:only-child::before {
	display: none;
}
.descendants li:only-child {
	padding-top: 0;
}
.descendants li:first-child::before, .descendants li:last-child::after {
	border: 0 none;
}
.descendants li:last-child::before {
	border-right: 2px solid #ccc;
	border-radius: 0 5px 0 0;
}
.descendants li:first-child::after {
	border-radius: 5px 0 0 0;
}
.descendants ul ul::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	border-left: 2px solid #ccc;
	width: 0;
	height: 20px;
}
.descendants li a {
	display: inline-block;
	border: 2px solid #ccc;
	padding: 5px 10px;
	text-decoration: none;
	color: #666;
	font-family: arial, verdana, tahoma;
	font-size: 11px;
	border-radius: 5px;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}
.descendants li a.male {
	border-color: blue;
}
.descendants li a.female {
	border-color: red;
}
.descendants li a:hover, .descendants li a:hover+ul li a {
	background: #c8e4f8;
	color: #000;
	border: 2px solid #94a0b4;
}
.descendants li a:hover+ul li::after, 
.descendants li a:hover+ul li::before, 
.descendants li a:hover+ul::before, 
.descendants li a:hover+ul ul::before {
	border-color: #94a0b4;
}
.marriage-date {
	display: block;
	border-bottom: 1px solid #ccc;
	margin-bottom: 5px;
	padding-bottom: 5px;
}
.person-text {
	text-align: left;
}
.tree-table {
	border-collapse: collapse;
}
.tree-table td, .tree-table th {
	border: none; /* No border */
    padding: 0; /* No space between text and border */
}
.tree-table th, .tree-table td {
	text-align: left;
	vertical-align: middle;
}
.tree-table td {
	padding-left: 5px; /* Adjust as needed for slight spacing */
}

/* ── Ladeindikator (loading.js) ───────────────────────────────────── */
#loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    color: #fff;
    font-size: 1.1rem;
    font-family: inherit;
}
#loading-overlay.active {
    display: flex;
}
.loading-spinner {
    width: 52px;
    height: 52px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loading-spin 0.75s linear infinite;
}
@keyframes loading-spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive / Mobile improvements ────────────────────────────── */

/* Tablet (≤ 991px) */
@media (max-width: 991px) {
    body {
        padding: 12px;
    }
    .search-container,
    .login-container,
    .password-change-container,
    .confirmation-container,
    .registration-container {
        max-width: 100%;
    }
    .settings-container {
        max-width: 100%;
    }
    .details-container {
        max-height: none;
    }
    .tree-container,
    .descendants-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    body.page-content {
        align-items: flex-start;
        justify-content: flex-start;
    }
}

/* Mobile (≤ 575px) */
@media (max-width: 575px) {
    body {
        padding: 8px;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 100vh;
        height: auto;
    }
    /* Login/form pages keep centred layout, push down from top */
    body:not(.page-content) {
        padding-top: 20px;
    }
    /* Font sizes: minimum 14px for readability */
    body div.person,
    body div.person td {
        font-size: 14px !important;
    }
    .personname,
    .personvorname,
    .personpersnr {
        font-size: 15px;
    }
    /* Touch targets: buttons and links */
    .btn,
    .dropdown-item,
    .tree li a,
    .descendants li a {
        min-height: 44px;
        line-height: 44px;
        padding-top: 0;
        padding-bottom: 0;
    }
    /* Override for tree links that must stay compact */
    .tree li a,
    .descendants li a {
        line-height: 1.4;
        padding: 10px 8px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    /* Input-group stacking on small screens */
    .input-group {
        flex-direction: column;
    }
    .input-group .form-control,
    .input-group .input-group-append,
    .input-group .input-group-append .custom-select {
        width: 100%;
        border-radius: 4px !important;
    }
    .input-group .input-group-append {
        margin-top: 4px;
    }
    .input-group > .form-control:not(:last-child) {
        border-bottom-right-radius: 4px !important;
        border-top-right-radius: 4px !important;
    }
    /* Portrait image: no float, full width */
    img.famportrait {
        max-width: 100%;
        width: 100%;
        height: auto !important;
        float: none !important;
        clear: none !important;
        display: block;
        margin: 8px 0;
    }
    img.portrait {
        float: none;
        clear: none;
        display: inline-block;
        vertical-align: middle;
        height: 60px;
    }
    /* Table scrolling */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Results container / details no internal scroll on mobile */
    .details-container {
        max-height: none;
        overflow-y: visible;
    }
    /* Tree containers: allow horizontal scroll */
    .tree-container,
    .descendants-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    /* Block title readable */
    .block-title {
        font-size: 15px;
    }
    /* Reduce container padding on mobile */
    .results-container,
    .details-container {
        padding: 8px;
    }
    .search-container,
    .settings-container {
        padding: 12px;
    }
}




		



