/*** SLUB Webdesign Template ***/
body, html {
	height: 100%;
	margin: 0px;
}
body {
	font-family: 			"VisSansBook", "Segoe UI", sans-serif;
	color: 					black;
	margin: 				0px;
	background: 			url('../img/bg.svg');
	background-size: 		cover;
	background-attachment: 	fixed;
	background-position: 	center;
	text-align: 			center;
}

/*** Title (Logo) & Subtitle ***/
#container {
	margin-top: 		75px;
	display: 			inline-block;
	position: 			relative;
}
#logo {
	/* The "real" image will be moved out of view (using
	   "object-position") and a background image is used
	   to show the logo. This is done in order to change
	   the logo (i.e. the background image) in dark mode. */
	object-position: 	-99999px 99999px;
	width: 				250px;
	height: 			71px;
	background-image: 	url('../img/logo.svg');
}
#title {
	display: 			flex;
	justify-content: 	space-between;
	align-items: 		center;
}
#subtitle {
	line-height: 		1.4em;
}
#subtitle p:first-child {
	margin-top: 		0px;
}

/*** Dialog Box ***/
#splash {
	width: 					650px;
	padding: 				50px 60px;
	border-radius: 			2px;
	display: 				inline-block;
	text-align: 			left;
	position: 				relative;
	overflow: 				hidden;
	backdrop-filter: 		blur(3px);

	/* angepasst für Monitore der Öffentlichkeitsplätze ("mehr Grün") */
	/* bei neuen Monitoren evtl. wieder zurücksetzen */
	background-color: 		rgba(232,247,243,0.5);
	/*background-color Original: rgba(242,250,250, 0.65)*/

	-webkit-box-shadow: 	0px 1px 3px 0px rgba(0,0,0,0.2);
	-moz-box-shadow: 		0px 1px 3px 0px rgba(0,0,0,0.2);
	box-shadow: 			0px 1px 3px 0px rgba(0,0,0,0.2);
}
#splash.login {
	width: 					480px;
}
#splash > *:first-child {
	margin-top: 			0px;
}
#splash > *:last-child {
	margin-bottom: 			0px;
}
#splash.big {
	width: 					650px;
}
#splashloading {
	position: 				absolute;
	top: 					calc(50% - 50px);
	left: 					0px;
	right: 					0px;
	opacity: 				0;
	z-index: 				999;
	visibility: 			collapse;
}


/*** Links ***/
a {
	text-decoration: 	none;
	color: 				#00afc8;
	cursor: 			pointer;
}
a:hover {
	text-decoration: 	underline;
}
.cursorhelp {
	cursor: 			help;
}
a.document {
	font-style: 		italic;
}


/*** SLUB Buttons ***/
.slubbutton {
	display: 			inline-block;
	font-family: 		"VisSansBold";
	min-width: 			120px;
	padding: 			10px 10px;
	text-align: 		center;
	text-transform: 	uppercase;
	cursor: 			pointer;
	background-color: 	#00afc8;
	color: 				#FFFFFF;
	border: 			1px solid #87cdd7;
	border-bottom: 		3px solid #87cdd7;
	font-size: 			inherit;
}
.slubbutton:hover {
	background-color: 	#87cdd7;
	color: 				#FFFFFF;
	border: 			1px solid #00afc8;
	border-bottom: 		3px solid #00afc8;
}
.slubbutton:not(.blink):focus {
	outline: 			2px dashed #cc0000;
	outline-offset: 	2px;
}
.slubbutton.secondary {
	background-color: 	#f2fafa;
	color: 				#00afc8;
	border: 			1px solid #00afc8;
	border-bottom: 		3px solid #00afc8;
}
.slubbutton.secondary:hover {
	background-color: 	#87cdd7;
	color: 				#FFFFFF;
}
.slubbutton.destructive {
	background-color: 	#FFFFFF;
	color: 				#cc0000;
	border: 			1px solid #cc0000;
	border-bottom: 		3px solid #cc0000;
}
.slubbutton.destructive:hover {
	background-color: 	#cc0000;
	color: 				#FFFFFF;
}
.slubbutton:disabled {
	background-color: 	#f2fafa !important;
	color: 				#87cdd7 !important;
	border-color: 		#87cdd7 !important;
	cursor: 			not-allowed;
}
#logoutbutton {
	width: 				calc(100% - 24px);
	text-decoration: 	none;
}
a.slubbutton {
	text-decoration: 	none;
}
.slubbutton:hover img {
	filter: brightness(999%);
}

/*** Top Menu & Footer ***/
#topmenu {
	position: 	fixed;
	top: 		0px;
	right: 		0px;
	left: 		0px;
	padding: 	10px;
	text-align: center;
}
#topmenu > *:first-child {
	float: 		left;
}
#topmenu > *:last-child {
	float: 		right;
}
#footer {
	margin-top: 		10px;
	margin-bottom: 		50px;
	display: 			flex;
	flex-direction: 	row;
	flex-wrap: 			nowrap;
	justify-content: 	space-between;
	align-items: 		center;
}
#footer .version {
	font-weight: bold;
}
#footer > *:first-child {
	text-align: left;
}
#footer > *:last-child {
	text-align: right;
}
#footer > *:not(:first-child):not(:last-child) {
	color: gray;
}

/*** Input Styling ***/
textarea, select, input {
	box-sizing: 			border-box;
	font-family: 			inherit;
	font-size: 				inherit;
}
textarea, select, input[type=text], input[type=password], input[type=file], input[type=date], input[type=month], input[type=time], input[type=email], input[type=number] {
	padding: 				10px;
	border-radius: 			0px;
	outline: 				none;
	background-color: 		white;
	border: 				2px solid #87cdd7;
}
textarea {
	font-family: 			monospace;
}
textarea:active, select:active, input[type=text]:active, input[type=password]:active, input[type=email]:active, input[type=file]:active, input[type=date]:active, input[type=month]:active, input[type=time]:active, input[type=email]:active, input[type=number]:active,
textarea:focus, select:focus, input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=file]:focus, input[type=date]:focus, input[type=month]:focus, input[type=time]:focus, input[type=email]:focus, input[type=number]:focus {
	border: 				2px solid #00afc8;
}
input.valid, select.valid, textarea.valid {
	color: 					#009900 !important;
	border: 				2px solid #009900 !important;
}
input.warn, select.warn, textarea.warn {
	border: 				2px solid #969600;
	background-color: 		#FFA500;
	color: 					white;
	font-weight: 			bold;
}
input.error, select.error, textarea.error {
	color: 					#cc0000 !important;
	border: 				2px solid #cc0000 !important;
}
textarea[disabled], select[disabled], input[disabled],
textarea[readonly], select[readonly], input[readonly],
a.disabled {
	background-color: 	#f2fafa !important;
	color: 				rgba(0,0,0,0.75) !important;
	cursor: 			not-allowed !important;
	border-color: 		#87cdd7 !important;
}
select {
	background-color: white;
}
.inputwithicon {
	display: 			inline-block;
	position: 			relative;
}
.inputwithicon img {
	pointer-events: 	none;
	position: 			absolute;
	top: 				11px;
	right: 				14px;
	width: 				22px;
	height: 			22px;
}


/*** Animations ***/
/* Opening Animation */
@keyframes splash {
	from {
		opacity: 		0.4;
	}
	to {
		opacity: 		1;
	}
}
#splash {
	animation-name: 	splash;
	animation-duration: 0.5s;
}

/* Closing Animation */
@keyframes exit {
	from {
		opacity: 		1;
	}
	to {
		opacity: 		0.4;
	}
}
@keyframes load {
	from 	{ opacity: 		0; }
	to 		{ opacity: 		1; }
}
#splash.out {
	animation: 		exit 0.9s forwards;
}
#splash.out-fast {
	animation: 		exit 0.2s forwards;
}
#splashloading.load {
	visibility: 	visible;
	animation: 		load 0.9s forwards;
}


/*** Various ***/
.first {
	margin-top: 0px;
}
.last {
	margin-bottom: 0px;
}
.hand {
	cursor: pointer;
}
.fullwidth {
	box-sizing: border-box;
	width: 100%;
}
.margintop {
	margin-top: 10px !important;
}
.marginbottom {
	margin-bottom: 10px !important;
}
.inlineblock {
	display: inline-block !important;
}
.right {
	float: right;
}
.left {
	float: left;
}
.middle {
	text-align: center;
	vertical-align: middle;
}
table.borderTable {
	width: 100%;
	border-collapse: collapse;
}
table.borderTable th,
table.borderTable td {
	border: 1px solid rgb(30,30,30);
	padding: 4px;
}


/*** Infobox ***/
.infobox {
	padding: 			10px;
	margin-bottom: 		10px;
	font-weight: 		bold;
}
.infobox.error {
	background-color: 	rgb(204,0,0);
	color: 				white;
	border: 			2px solid rgb(150,0,0);
}
.infobox.warn {
	background-color: 	orange;
	color: 				white;
	border: 			2px solid rgb(150,150,0);
}
.infobox.ok {
	background-color: 	rgb(76,175,80);
	color: 				white;
	border: 			2px solid rgb(48,139,52);
}
.infobox.info {
	background-color: 	white;
	color: 				rgb(77,114,222);
	border: 			2px solid rgb(47,84,192);
}
.infobox.hint {
	background-color: 	white;
	color: 				rgb(0, 175, 200);
	border: 			2px solid rgb(0, 175, 200);
}
.infobox.hint a {
	text-decoration: 	underline;
}
.infobox .normaltext {
	font-weight: 		normal;
}


/*** Tooltip ***/
.tooltip { /* Tooltip container */
	position: relative;
}
.tooltip .tooltiptext { /* Tooltip text */
	/*visibility: 		hidden;*/
	width: 				280px;
	background-color: 	rgba(0,175,200,1);
	box-shadow: 		0px 0px 15px rgba(0,0,0,0.3);
	color: 				white;
	text-align: 		center;
	padding: 			8px;
	border-radius: 		4px;
	box-sizing: 		border-box;

	/* Position the tooltip text */
	position: 			absolute;
	z-index: 			1;
	bottom: 			90%;
	left: 				50%;
	margin-left: 		-140px;

	/* Fade in */
	opacity: 			0;
	transition: 		opacity 0.3s ease, bottom 0.3s ease;
}
.tooltip .tooltiptext::after { /* Tooltip arrow */
	content: 			"";
	position: 			absolute;
	top: 				100%;
	left: 				50%;
	margin-left: 		-5px;
	border-width: 		5px;
	border-style: 		solid;
	border-color: 		rgba(0,175,200,0.9) transparent transparent transparent;
}
.tooltip .tooltiptext > *, .tooltip .tooltiptext {
	pointer-events: 	none;
}
/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
	/*visibility: 		visible;*/
	opacity: 			1;
	bottom: 			110%;
}


/*** Dark Mode ***/
@media (prefers-color-scheme: dark) {
	body {
		color: white;
		background-color: black;
	}
	#logo {
		background-image: url('../img/logo.white.svg');
	}
	#splash {
		background-color: rgba(60,60,60,0.6);
	}

	.slubbutton {
		background-color: #008CA0;
		border-color: #266771;
		color: white;
	}
	.slubbutton:hover {
		background-color: #25656e;
	}
	.slubbutton.secondary {
		background-color: #112D2D;
		border-color: #00ABC3;
		color: #40E7FF;
	}
	.slubbutton.secondary:hover {
		background-color: #25656e;
	}
	.slubbutton.destructive {
		background-color: #181A1B;
		border-color: #C20000;
		color: #FF3D3D;
	}
	.slubbutton.destructive:hover {
		background-color: #a30000;
	}
	.slubbutton:disabled {
		background-color: 	#112D2D !important;
		color: 				#85CCD6 !important;
		border-color: 		#266771 !important;
	}

	textarea, select, input[type=text], input[type=password], input[type=number], input[type=date], input[type=month], input[type=time], input[type=email], input[type=file] {
		color: white;
		background-color: #181A1B;
		border-color: #266771;
	}
	textarea[disabled], select[disabled], input[disabled],
	textarea[readonly], select[readonly], input[readonly] {
		color: gray !important;
		background-color: #112D2D !important;
		border-color: #266771 !important;
	}
	select option,
	select optgroup {
		background-color: black;
	}
	input.valid, select.valid, textarea.valid {
		color: #339437 !important;
		border-color: #339437 !important;
	}
	input.error, select.error, textarea.error {
		color: #FF3D3D !important;
		border-color: #D20000 !important;
	}

	.infobox.error {
		background-color: #A30000;
		border-color: #D20000;
	}
	.infobox.warn {
		background-color: #CC8400;
		border-color: #D2D200;
	}
	.infobox.ok {
		background-color: #327334;
		border-color: #339437;
	}
	.infobox.info {
		background-color: #181A1B;
		border-color: #244093;
	}
	.infobox.hint {
		background-color: #181A1B;
		border-color: #00ABC3;
	}

	.tipicon {
		background-color: rgba(255,255,255,1);
		border-radius: 4px;
	}
	table.borderTable th,
	table.borderTable td {
		border: 1px solid rgb(255,255,255);
	}
}
