@import url(font-awesome.min.css);
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,400italic,600italic|Roboto+Slab:400,700");

.genealogiezeichen {
	font-family: Genealogie;
}

html {
	overflow-y: scroll;
	margin: 0;
	padding: 0;
}

body {
	color: #7f888f;
	font-family: "Open Sans", sans-serif;	
	/*font-size: 13pt;*/
	font-size: clamp(12px, 1.55vw, 17.33px);
	font-weight: 400;
	line-height: 1.65em;
}

main {
	/*max-width: 1200px;*/
	max-width: 1000px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	border-bottom: solid 3px #6cc5af;
}

h1, h2, h3, h4, h5, h6 {
	color: #3d4449;
	font-family: "Roboto Slab", serif;
	font-weight: 700;
	line-height: 1.5em;
	margin: 0 0 0 0;
	text-align: center;
}



.master-karteiblaetter {
	display: flex;
	flex-direction: column;
	height: 100%;
	max-width: 1000px;
  justify-content: center; /* Horizontal zentrieren */
  align-items: center;     /* Vertikal zentrieren */
}








/* ~~~ neuer footer mit zusätzlichem "footer p": ~~~ */

footer { 
	margin-top: 2em;
	font-family: "Open Sans", sans-serif;
	/*font-size: 10pt;*/
	font-size: clamp(11px, 1.55vw, 13.33px);
	font-weight: 400;
	line-height: 1.3em;
	/* text-align: center;*/
	display: flex;
	flex-direction: column;
	align-items: center;
	row-gap: 0.5em;
}

footer p { 
	max-width: 600px;
	text-align: center;
}

.karteiblatttitle {
	margin: 2em 0em 0.5em 0em;
	font-size: clamp(15px, 1.55vw, 20px);
}

.karteiblattsubtitle {
	margin: 0em 0em 0em 0em;
	font-size: clamp(13px, 1.55vw, 17.33px);
}

a {
	/* font-size: 1em; */
	color: #6cc5af;
}

/* maybe to be omitted as well, KMR/hp 03.04.2024 */
a.backHome {
	font-size: 7pt;
	color: #444444;
}

/* ~~~~~ Tabelle mit der Personeninformation ~~~~~ */

dl {
	margin: 0em;
}

dl.root {
	border-top: solid 3px #6cc5af;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	display: grid;
	grid-template-columns: 3fr 10fr 3fr 10fr;
	grid-template-rows: auto;
}

dt, dd {
	margin: 0em;
	padding: 0.5em 0.5em;
}

dd {
	/*margin: auto;*/ 
	padding: 0.5em 0.5em;
	font-weight: 700;
}

dt {
	text-align: right;
	font-style: italic;
}

dl.root .even {
	background-color: #eeeeee;
}

.labelLong {
	grid-column: 1 / 2;
}

.valueLong {
	grid-column: 2 / 5;
}



/* ~~~ Feldstile ~~~ */

.kommentar {
	font-style: italic;
}

.feldname {
	font-style: italic;
}

.uppercase {
	font-weight: bold;
	text-transform: uppercase;
}

.p-klein {
		font-size: 0.85em;
		font-weight: normal;
		margin: 0;						 /* optional: reset globale Abstände */
		padding: 0;
		display: inline;
}

.p-klein-kommentar {
		font-size: 0.85em;
		font-style: italic;					/* font-style: italic neu gesetzt, KMR/hp 20260818-155800 */
		margin: 0;
		padding: 0;
		display: -webkit-box;
		width: 100%;
		word-wrap: break-word;		/* trennt auch an nicht-normalen (überlangen) Stellen */
		/* text-align: justify;		/* Blocksatz für bessere Sichtbarkeit der Silbentrennung */
		-webkit-hyphens: auto;		/* Aktiviert die automatische Silbentrennung Safari 5+ */
		-moz-hyphens: auto;				/* Aktiviert die automatische Silbentrennung Firefox 6+ */
		-ms-hyphens: auto;				/* Aktiviert die automatische Silbentrennung IE 10+ & iOS 4.2+ */
		-o-hyphens: auto;					/* Aktiviert die automatische Silbentrennung */
		hyphens: auto;						/* Aktiviert die automatische Silbentrennung */
}

.p-klein-plus {
		font-size: 0.7em;
		/*font-weight: normal;
		font-style: normal;*/
		margin: 0;						 /* optional: reset globale Abstände */
		padding: 0;
		display: inline;
}



/* ~~~~~ Buttons ~~~~~ */

.button {
	-moz-appearance: none;
	-webkit-appearance: none;
	-ms-appearance: none;
	appearance: none;
	-moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
	-webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
	-ms-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
	transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
	background-color: transparent;
	border-radius: 0.375em;
	border: 0;
	box-shadow: inset 0 0 0 2px #6cc5af;
	color: #6cc5af !important;
	cursor: pointer;
	display: inline-block;
	font-family: "Roboto Slab", serif;
	font-size: 0.6em;
	/* vorher 0.8 */
	font-weight: 700;
	height: 3.5em;
	letter-spacing: 0.075em;
	line-height: 3.5em;
	padding: 0 2.25em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.button:hover {
	background-color: rgba(108, 197, 175, 0.05);
}

.button:active {
	background-color: rgba(108, 197, 175, 0.15);
}

.prev-next {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0.5em 0;
}

.prev-next .inactive {
	opacity: 0;
}





/* Für die rot blinkende Zeile (betr. Kopie von CSS-Datei) */
    .blink-rot {
        color: red;
        font-weight: bold;
        font-size: 1.2em;
        animation: blinken 1s linear infinite;
    }
    @keyframes blinken {
        0% { opacity: 1; }
        50% { opacity: 0; }
        100% { opacity: 1; }
    }
    .btn {
        padding: 10px 20px;
        font-size: 1em;
        cursor: pointer;
        margin-right: 10px;
        border: none;
        border-radius: 4px;
    }
    .btn-abbrechen { background-color: #dc3545; color: white; }
    .btn-weitermachen { background-color: #28a745; color: white; }








@media (max-width: 1020px) {
	main {
		margin: 0 10px;
	}
} 

@media (max-width: 700px) {
	dl.root {
		grid-template-columns: 1fr 3fr;
	}

	dl.root .even {
		background-color: white;
	}

	.labelLong {
		grid-column: 1 / 2;
	}

	.valueLong {
		grid-column: 2 / 3;
	}

	dl.root dt:nth-child(4n-1),
	dl.root dd:nth-child(4n) {
		background-color: #eeeeee;
	}
	.image.main {
		height: 6px;
		display: inline-block;
	}
	.image.main img {
		height: 100%;
		width: auto;									/* maintain aspect ratio */
		display: inline-block;
	}
 
}

@media (max-width: 500px) {
	.image.main img {
	height: auto;
	width: 20px;									/* maintain aspect ratio */
	display: block;
	}
	.image.main {
	display: flex;
	flex-direction: column;
	align-items: center;					/* center image and text horizontally */
	justify-content: center;
	height: auto;									/* optional, unless limiting size */
	}
	.class1 {
	display: contents;
	}
}

