
@font-face {
	font-family: bitstream-vera;
	src: url("./fonts/BitstreamVera.woff");
}

html {
	text-size-adjust: none;
	-webkit-text-size-adjust: none;
	-moz-text-size-adjust: none;
	-ms-text-size-adjust: none;
}

body {
	color: #000000;
	background-color: #F0F0FF;
	background-image: url("./grafiken/hintergruende/clouds.jpg");
	font-family: bitstream-vera, Arial, Times New Roman;
	font-size: 20px;
	margin: 0em;
}

input, textarea, select, button {
	color: bitstream-vera, Arial, Times New Roman;
	border-style: solid;
	border-top-color: #C0C0C0;
	border-left-color: #C0C0C0;
	border-bottom-color: #A0A0A0;
	border-right-color: #A0A0A0;
	font-family: bitstream-vera, Arial, Times New Roman;
	font-size: 1em;
}

input, textarea, select {
	background-color: #F0F0FF;
	border-width: 0.05em;
}

input[type="button"], input[type="submit"], button {
	background-color: #F0F0F0;;
	border-width: 0.1em;
}

h1 {
	font-size: 2em;
	font-weight: bold;
}

h2 {
	font-size: 1.5em;
	font-weight: bold;
}

a {
	color: #0000FF;
}

a:hover {
	color: #0080E0;
}

p {
	line-height: 1.67em;
}

.big {
	margin: 1.0em;
	font-size: 1.25em;
}

nav.hauptmenue {
	background-color: rgba(255, 255, 255, 0.9);
	overflow: hidden;
	font-size: 1.0em;
	letter-spacing: -0.075em;
	z-index: 10;
}

nav.hauptmenue a {
	float: left;
	display: block;
	color: #000000;
	text-align: center;
	padding: 0.6em 0.7em;
	text-decoration: none;
}

nav.hauptmenue a:hover {
	background-color: #303030;
	color: #FFFFFF;
}

nav.hauptmenue a.icon {
	display: none;
	box-sizing: border-box;
	width: 2.2em;
	height: 2.2em;
	padding-top: 0.8em !important;
	padding-bottom: 0 !important;
	padding-left: calc(1em - 10px) !important;
	padding-right: 0 !important;
	float: right;
}

nav.hauptmenue a.icon > .bar {
	background-color: #000000;
	display: block;
	width: 25px;
	height: 3px;
	margin-top: 3px;
}

nav.hauptmenue a:hover.icon > .bar {
	background-color: #FFFFFF;
}

body > main {
	text-align: center;
	margin-top: 1em;
	padding-left: 0.5em;
	padding-right: 0.5em;
	position: relative;
}



/* *** Startseite *** */

#begruessungGrafikContainer {
	max-width: 30em;
	margin-left: auto;
	margin-right: auto;
}

#begruessungGrafikContainer > img {
	max-width: 30em;
}

.confetti {
	max-width: 100px;
}

@media screen and (max-width: 540px) {
	.confetti {
		display: none;
	}
}



@media screen and (max-width: 1220px) and (min-width: 801px) {
	nav.hauptmenue {
		letter-spacing: -0.125em;
	}
}

@media screen and (max-width: 1000px) and (min-width: 690px) {
	#begruessungGrafikContainer {
		max-width: 20em;
	}

	#begruessungGrafikContainer > img {
		max-width: 20em;
	}
}

@media screen and (max-width: 689px) {
	#begruessungGrafikContainer {
		max-width: 15em;
	}

	#begruessungGrafikContainer > img {
		max-width: 15em;
	}
}

@media screen and (max-width: 800px) {
	/*
	nav.hauptmenue a:not(:first-child) {
		display: none;
	}
	*/
	
	nav.hauptmenue {
		font-size: 1.75em;
	}
	
	nav.hauptmenue a {
		display: none;
	}
	
	nav.hauptmenue a.icon {
		display: block;
	}
	
	nav.hauptmenue.responsive {
		position: fixed;
		width: 100%;
		top: 0;
		left: 0;
		/*position: relative;*/
	}
	
	nav.hauptmenue + .dummybar {
		display: none;
		height: 77px;
	}
	
	nav.hauptmenue.responsive + .dummybar {
		display: block;
	}
	
	nav.hauptmenue.responsive a.icon {
		position: absolute;
		right: 0;
		top: 0;
	}
	
	nav.hauptmenue.responsive a {
		float: none;
		display: block;
		text-align: left;
		padding: 0.5em 0.5em;
		line-height: 1.2em;
	}
}

a.btn {
	text-decoration: none;
	font-size: 1em;
	color: #000000;
	display: inline-block;
	background-color: #F0F0F0;
	border: 0.05em solid #404040;
	border-radius: 8%;
	padding-left: 0.5em;
	padding-right: 0.5em;
	padding-top: 0.25em;
	padding-bottom: 0.25em;
	margin: 0.2em;
}

a.btn:hover {
	background-color: #C0C0C0;
}

a.btn.activated {
	color: #008000;
	border-color: #008000;
	background-color: #E0FFE0;
}

.clear {
	clear: both;
}



/* *** Steckbriefe *** */

.row {
	width: 30em;
}

.row .left,
.row .right {
	padding: 0.5em;
	float: left;
	box-sizing: border-box;
	border: 0.05em solid #A0A0A0;
	margin: 0.25em;
	background-color: rgba(160, 160, 160, 0.25);
}

.row .left {
	width: 8.0em;
	padding-right: 1em;
	text-align: right;
}

.row .right {
	width: 16em;
	padding-left: 1em;
	text-align: left;
}

.steckbrieffoto {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0.25em;
	border: 0.05em solid #A0A0A0;
	width: 8.5em;
	max-height: 34em;
}

.steckbrieffoto > img {
}

.verknuepfungsgraph {
	margin-top: 3em;
	width: 34em;
}

.verknuepfungsgraph .person {
	width: 10em;
	height: 6em;
	text-align: center;
	display: inline-block;
	background-color: rgba(160, 160, 160, 0.25);
}

.verknuepfungsgraph .person.betrachteteperson {
	background-color: rgba(160, 160, 160, 0.75);
}

.verknuepfungsgraph .person > .ueberschrift {
	font-weight: bold;
	font-size: 1em;
	height: 1.5em;
}

.verknuepfungsgraph .person > .bild {
	height: 3em;
}

.verknuepfungsgraph .person > .bild img {
	height: 2.75em;
}

.verknuepfungsgraph .person > .name {
	font-size: 0.8em;
}

.verknuepfungsgraph .person > .name > a {
	text-decoration: none;
}



/* *** Geburtstagskalender *** */

#geburtstagskalendertabelle {
	border-spacing: 0.33em;
}

#geburtstagskalendertabelle th, #geburtstagskalendertabelle td {
	padding: 0.25em;
	border: 0.05em solid #A0A0A0;
}

#geburtstagskalendertabelle tr.heutegeburtstag td {
	color: #008000;
	background-color: #E0FFE0;
	font-weight: bold;
}



/* *** Events *** */

ul#events {
	list-style: none;
	padding-left: 0;
}

ul#events > li {
	margin: 0.5em;
}



/* *** Stammbaum-Ansicht *** */

#stammbaumContainer {
	width: calc(100% + 1em);
	height: 20em;
	box-sizing: border-box;
	overflow-x: scroll; 
	overflow-y: scroll;
	margin-top: -1em; /* =(-main/@margin-top) */
	margin-left: -0.5em; /* =(-main/@padding-left) */
	margin-right: -0.5em; /* =(-main/@padding-right) */
	/*border: 2px solid #A0A0A0;*/
	background-color: #F0F0FF;
	
	position: relative;
	//-webkit-transform-origin: 0 0;
}

#stammbaumGrafik {
}

.zoombtn {
	display: block;
	width: 3em;
	height: 3em;
	/*background: #FF00FF;*/
	z-index: 5;
}



/* *** Stammbaum-Übersicht *** */

#stammbaumUebersicht {
	max-width: 24em;
	margin-left: auto;
	margin-right: auto;
}

#stammbaumUebersicht > * {
	margin-top: 1em;
	line-height: 1.6em;
}

#stammbaumUebersicht > :nth-child(2n+1) {
	text-align: left;
}

#stammbaumUebersicht > :nth-child(2n) {
	text-align: right;
}

#stammbaumUebersicht > * > img {
	width: 1.6em;
}

#stammbaumUebersicht > :nth-child(2n+1) > img {
	float: left;
	margin-right: 0.5em;
}

#stammbaumUebersicht > :nth-child(2n) > img {
	float: right;
	margin-left: 0.5em;
}



/* *** Paging *** */

.paging {
	margin: 1em;
}

.paging > * {
	display: inline-block;
	width: 2.25em;
	height: 2em;
	line-height: 2em;
	border: 0.05em #000000 solid;
	background: #F0F0F0;
}

.paging > .aktiviert {
	background: #000000;
	color: #FFFFFF;
	font-weight: bold;
}

.paging > .ausgeschaltet {
	color: #A0A0A0;
}

.paging > :not(.aktiviert) > a {
	width: 100%;
	height: 100%;
	display: block;
	text-decoration: none;
	font-weight: bold;
}

.paging > :not(.aktiviert) > a:hover {
	background: #C0C0C0;
}



/* *** Bildübersicht *** */

.bilduebersicht {
	max-width: 27em;
	margin-left: auto;
	margin-right: auto;
}

.bilduebersicht > :not(.clear) {
	/*box-sizing: border-box;*/
	width: 8.5em;
	height: 8.5em;
	margin: 0.25em;
	float: left;
	text-align: center;
}

.bilduebersicht > * img {
	max-width: 8.5em;
	max-height: 8.5em;
}



/* *** Nachruf *** */

#nachruf {
	border: 1px solid #000000;
	margin-top: 3em;
	padding: 1em;
	width: 27em;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	color: #FFFFFF;
	background-color: rgba(0, 0, 0, 0.8);
}

#nachruf > .kreuz {
	float: left;
	width: 8%;
	font-size: 3em;
	margin-top: -0.2em; 
}

#nachruf > .kreuz:first-child {
	text-align: left;
}

#nachruf > .kreuz:not(:first-child) {
	text-align: right;
}

#nachruf .text {
	float: left;
	width: 84%;
}
