/* hiess vormals kmr-master-tabs.css, renamed 20261118-175400 */

html,
body {
	height: 100%;
}

body {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}


.wrapper {
	max-width: 1200px;
	/* Maximale Breite des Inhalts */
	margin: 0 auto;
	/* Oben/Unten 0, Links/Rechts automatisch */
}

.indextitle {
	margin: 30px 0px 10px 0px;
}

.pageheader {
	display: flex;
	justify-content: center;
	/* Horizontal zentrieren */
	align-items: center;
	/* Vertikal zentrieren */
	/* height: 100vh;           /* Beispiel-Höhe des Containers */
	margin-bottom: 20px;
}

.master-karteiblaetter {
	display: flex;
	flex-direction: column;
	height: 100%;
	max-width: 1000px;
	justify-content: center;
	/* Horizontal zentrieren */
	align-items: center;
	/* Vertikal zentrieren */
}

#personen-archiv {
	min-width: 620px;
	height: 0;
	overflow: hidden;
}

/* neu eingefügt, um direkt nach der Tabelle noch etwas
/* Abstand einfügen zu können, KMR/hp 20260911-094100 */
.tabulator {
	margin-bottom: 20px;
}

.tabulator-row.tabulator-row-even {
    background-color: rgba(230, 235, 237, 0.25) !important;
}

.tabulator-row:hover {
    background-color: #f0f9f6 !important;
}

.tabulator-row {
	border-bottom: rgba(210, 215, 217, 0.75) solid 1px;;
}

/* Die folgenden zwei Blöcke eingefügt, um die Werte in den original Tabulator-Definitionen	*/
/* geringfügig ändern zu können (KMR/hp 20260904-104900																			*/
.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title {
	/* padding-right: 25px; */
	padding-right: 15px;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title {
	box-sizing: border-box;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
	white-space: nowrap;
	width: 100%;
	/* padding neu hinzugefügt, zur besseren Ausrichtung	*/
	/* über den Tabellen-Feldern (KMR/hp 20260904-105200)	*/
	padding-left: 3px;
}

:not(#master-karteiblaetter).tabulator .tabulator-row .tabulator-cell {
	overflow: visible;
}

/* in den Tabellenzellen mit Titel und Text
beides untereinander anordnen: */
.tabulator-cell div.title-text {
	display: flex;
	flex-direction: column;
}

/* Greift direkt in der Zelle, um das HTML-Paket flexibel umbrechen zu lassen */
.word-break,
.img-caption {
	/* Erlaubt Zeilenumbrüche */
	white-space: normal !important;
	/* Bricht lange Wörter um */
	word-break: break-word;
	/* Macht den umgebrochenen Text sichtbar */
	/* !!! UB: Unklar ob wir das brauchen */
	overflow: visible !important;
	text-overflow: clip !important;
	/* Entfernt die standardmäßige Ellipse (...) */
	hyphens: auto;
	/* DIE RETTUNG: Zwingt den Browser dazu, die Zelle trotz HTML-Inhalt 
       auf die von Tabulator berechnete Spaltenbreite zu begrenzen */
	min-width: 0 !important;
}

.word-break {
	/* neu eingefügt, für bessere Darstellung in Tabelle betr.
	/* senkrechter Ausrichtung der Zelleninhalte, KMR/hp 20261116-104600 */
    margin-left: 5px;
}


/* Verlauf zu transparent in Richtung unten in den beiden Textfeldern: */
body.is-mobile .shorten {
	max-height: 200px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 50%, transparent 100%);
}

/* Im Overlay muss der Text vollständig sichtbar sein,
deshalb kein Verlauf zu transparent: */
body.is-mobile .ovl-content .shorten{
	mask-image: unset;
}

label.custom-filter-label{
	max-width: 200px;
}

/* Ändert beim Zeilen-Hover die Schrift- und Symbolfarbe im Link zu weiss */
/* Da weiss kaum noch zu sehen auf aktueller HG-Farbe der Tabellen-Zeilen */
/* geändert auf grün und zusätzlich stärkere/fettere Schrift							*/
/* KMR/hp 20261025-1445	*/
.tabulator-row:hover a,
.tabulator-row:hover a .pfeilKarteiblatt,
.tabulator-row:hover a span {
	/* color: #ffffff !important; */
	color: #6cc5af !important;
	font-weight: 900;
}


/* Styles für die Toolbar mit Icons für Löschen und Sortieren: */
div.tabulator-col-content {
	display: grid;
	grid-template-columns: 1fr auto;
	min-height: 4em;
}

div.tabulator-col-title-holder {
	grid-column: 1/2;
	grid-row: 1/2;
	display: flex;
	align-items: center;
}

.custom-sort-icon {
	grid-column: 2/3;
	grid-row: 1/2;
	width: 2em;
	height: 2em;
	background-color: white;
	border: 2px solid #6cc5af;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.5;
}

.custom-sort-icon:not(.sorted) {
	line-height: 0.8;
	display: flex;
	align-items: baseline;
}

.custom-sort-icon.sorted {
	transform: translate(0, -0.1em);
	opacity: 1;
}

.button-group .btn-square-green {
	width: 1.5em;
	height: 1.5em;
	background-color: white;
	/* vorläufig mal deaktiviert, da Button-Ränder feiner ohne Deklaration */
	/* erstaunlicherweise stimmt Farbe trotzdem
	/* KMR/hp 20260903-202700 */
	/* border: 0.5px solid #6cc5af; */
	border-radius: 4px;
	margin-right: 0.2em;
	line-height: 1;
	padding: 0;
}

.btn-square-green.active {
	background-color: #6cc5af
}

/* Neu eingefügt, um die Buttons in der obersten Zeile anstatt untereinander	*/
/* neu nebeneinander anzuordnen. (KMR/hp 20260903-110300)											*/
.button-group {
	display: flex;
	flex-wrap: wrap;
	/* Bricht bei kleineren Bildschirmen sauber in die nächste Zeile um */
	gap: 10px;
	/* Abstand zwischen den einzelnen Labels */
	align-items: center;
	margin: 15px 0px 20rpx 0px;
}

/* Optional: Richtet den Button und den Text im Label vertikal mittig aus */
.button-group label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	/* Abstand zwischen dem grünen Button und dem Text */
	cursor: pointer;
}

/* Bestimmen der Höhe der Input-Felder, KMR/hp 20260903-210200			*/
/* Da Felder auf Seite "mnu0-kontakt.php" durch diese Anweisungen		*/
/* zu niedrig, hier wieder deaktiviert, bis klar wird, wo allen-		*/
/* falls in niedrigerer Schrift benötigt, KMR/hp 20261117-173700		*/
/* (dadurch wieder default aus main.css, 2450/2370 aktiv						*/
/* input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
select {
	height: 1.75em;
	font-size: 13px;
} */


label {
	display: flex;
	align-items: center;
	margin: 0.2em;
}

.tabulator-header-filter {
	grid-column: 1/3;
	grid-row: 2/3;
}

#tabelle-familientage {
	width: 100%;
}

.custom-clear-icon {
	grid-column: 2/3;
	grid-row: 2/3;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: white;
	position: relative;
	z-index: 1;
	margin: 0.3em;
	height: 1.2em;
}

.custom-clear-icon.hidden {
	color: white;
}

.tabulator-col-sorter {
	grid-column: 2/3;
	grid-row: 1/2;
	opacity: 0;
}

.tabulator-cell a {
	/* margin-top: -0.7em; */
	display: inline-block;
}

.tabulator-cell img {
	width: 100%;
	vertical-align: top;
}

.pfeilKarteiblatt {
	color: #6cc5af;
	font-size: 1.5em;
	transform: translateY(0.2em);
	display: inline-block;
	line-height: 0.5;
}

.danksagung {
	font-size: 13px;
	font-weight: bold;
	margin: 0 0 2em 0;
}

.instruction1 {
	font-size: 16px;
	font-weight: bold;
	margin: 0 0 2em 0;
}

body.is-mobile {
	#main>.inner {
		padding: 0.5em !important;
	}
}

body:not(.is-mobile) .hilfetext {
	display: none;
}

/* Wir begrenzen die Höhe der Tabellenzeile
		und aller Elemente darin: */
body.is-mobile #tabelle-familientage .tabulator-row,
body.is-mobile #tabelle-familientage .tabulator-row>* {
	max-height: 120px;
	overflow: hidden;
}

body.is-mobile #native-archiv-tabelle .tabulator-row,
body.is-mobile #native-archiv-tabelle .tabulator-row>* {
	max-height: 150px;
	overflow: hidden;
}

.zoom-btn {
	width: 34px;
	height: 34px;
	padding: 5px;
	/* Button unten im Container anordnen: */
	margin-top: auto;
}

.ovl-content .tabulator-cell .zoom-btn {
	margin-left: auto;
}

/* Zoom-Button ausblenden wenn es keine Mobilansicht ist: */
body:not(.is-mobile) .zoom-btn {
	display: none;
}

.tabulator-cell .zoom-btn-inside {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.ovl-content .tabulator-cell .zoom-btn-inside {
	flex-direction: row;
	align-items: start;
}


.ovl-container {
	position: fixed;
	width: 100%;
	height: 100vh;
	left: 0;
	top: 0;
	overflow: auto;
	z-index: 10;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	transform-origin: center;
	transform: scale(1, 1);
	transition: transform 0.5s linear;
}

.ovl-content {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: white;
	border: 0;
	border-radius: 0.375em;
	box-shadow: inset 0 0 0 2px #6cc5af;
	transform-origin: center;
	transform: scale(1, 1);
	transition: transform 0.5s linear;
}

.ovl-content>* {
	padding: 0.2em 0.5em;
}

.ovl-container:not(.contentVisi) {
	transform: scale(0, 0);
}

.ovl-container:not(.contentVisi) .ovl-content {
	transform: scale(0, 0);
}

.ovl-container>div>* {
	width: 100% !important;
	height: unset !important;
}

/* archiv-daten-ausgabe-ovl */


.ovl-content.archiv-daten-ausgabe-ovl {
	display: inline-grid;
	grid-template-columns: 1fr 2fr;
}

/* Datum */
.ovl-content.archiv-daten-ausgabe-ovl>div[tabulator-field="ada_datum"] {
	grid-row: 1/2;
	grid-column: 1/3;
}

/* Original */
.ovl-content.archiv-daten-ausgabe-ovl>div[tabulator-field="ada_ori_pdf_fn"] {
	grid-row: 2/3;
	grid-column: 1/2;
	text-align: center;
	height: auto;
	width: 100%;
	text-align: center;
}

/* Original mit Transkription */
.ovl-content.archiv-daten-ausgabe-ovl>div[tabulator-field="ada_omt_pdf_fn"] {
	grid-row: 2/3;
	grid-column: 2/3;
	text-align: center;
	height: auto;
	width: 100%;
	text-align: center;
}

/* Text */
.ovl-content.archiv-daten-ausgabe-ovl>div[tabulator-field="ada_text1"] {
	grid-column: 1/3;
	grid-row: 3/4;
}

/* Neue Styles für Customheader, später in globale CSS-Datei übernehmen */
.custom-header {
	display: grid;
	grid-template-columns: 1fr auto;
}

.custom-label {
	grid-row: 1/2;
	grid-column: 1/2;
}

.custom-col-sorter {
	grid-row: 1/2;
	grid-column: 2/3;
}

.custom-filter-label {
	grid-row: 2/3;
	grid-column: 1/3;
	position: relative;
}

.custom-filter-label input {
	padding: 0 0.5em;
}

.custom-clear-icon {
	position: absolute;
	right: 0.5em;
	top: 0;
	bottom: 0;
}

/* Die Elemente, die in der aktuellen Spalte nicht
    gebraucht werden, verbergen wir. */
.custom-header .hidden {
	opacity: 0;
}

/* Header-Elemente, die durch Tabulator angelegt wurden, löschen
    weil wir den Header selbst anlegen. */

.tabulator-col-sorter.tabulator-col-sorter-element {
	display: none !important;
}

.tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title {
	padding-right: unset !important;
}