/*
 * -----------------------------------
 * Copyright
 * COM.POSiTUM Multimedia-Agentur GmbH
 * -----------------------------------
 */

 /* ------------------------------------
 *  FONTS
 * ------------------------------------
 */

/* ------------------------------------
*  BASICS
* ------------------------------------
*/

:root {
	--pimary-color: #002c76;
	--secondary-color: #fff;
	--text: #343434;
	--gap: 2rem;

}

* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	border: 0 none;
}

html,
body {
	height: 100%;
}

html {
	font-size: 62.5%; /* 62.5% = 10px = 1rem */
	font-family: 'Open Sans', sans-serif;

}

body {
	background: var(--secondary-color);
	font-size: 1.6rem;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

p {
	line-height: 1.8;
}

table {
	border-collapse: collapse;
}

table td {
	min-width: 8rem;
	padding: 0.2rem 0;
}

/* ------------------------------------
*  TYPOGRAPHY
* ------------------------------------
*/
h1,
h2,
h3,
h4,
h5,
h6 {
	margin-bottom: 2.4rem;
	color: #002c76;
}

p {
	margin: 2.4rem 0;
	min-width: 55vw;
	max-width: 100%;
	width: 40rem;
}

p ~ h1,
p ~ h2,
p ~ h3,
p ~ h4,
p ~ h5,
p ~ h6 {
	margin-top: 4.8rem;
}

/* ------------------------------------
*  SCELETON
* ------------------------------------
*/
.page-wrapper {
	/* equal to footer height */
	min-height: 100%;
}

.page-wrapper::after {
	content: '';
	display: block;
	margin-bottom: -80px;
	height: 80px;
}

.content-wrapper {
	margin: 0 auto;
	/* min-height: 100%; */
	width: 86%;
	padding-bottom: 5rem;
}

/* ------------------------------------
*  HELPER CLASSES
* ------------------------------------
*/
.fixed {
	position: fixed;
	z-index: 10;
}

.rightalign {
	text-align: right;
}

/* ------------------------------------
*  HEADER
* ------------------------------------
*/
header {
	background: var(--secondary-color);
	color: var(--text);
	padding: 2rem 0;
	width: 100%;
}

header .content-wrapper {
	align-items: center;
	display: flex;
	justify-content: space-between;
}
header .content-wrapper.center{
	justify-content: center;
}

.logo-img {
	width: 25rem;
}

/* ------------------------------------
*  NAVIGATION
* ------------------------------------
*/
nav ul li {
	display: inline-block;
	list-style-type: none;
	margin: 0 3rem;
	position: relative;
}

nav ul li:last-child {
	margin-right: 0;
}

nav ul li a {
	transition: all 0.2s ease;
}

nav ul li a:hover {
	color: var(--pimary-color);
}

nav ul li ul {
	opacity: 0;
	padding-top: 2rem;
	position: absolute;
	transition: all 0.4s ease;
	visibility: hidden;
	z-index: 100;
}

nav ul li ul li {
	background: var(--secondary-color);
	border-bottom: 1px solid lightgrey;
	color: var(--text);
	display: block;
	margin: 0;
	padding: 1rem 1.5rem;
	transition: all 0.2s ease;
	width: 14rem;
}

nav ul li ul li:last-child {
	border-bottom: 0 none;
}

nav ul li ul li a:hover {
	color: var(--pimary-color);
}

nav ul li:hover ul {
	opacity: 1;
	visibility: visible;
}

/* ------------------------------------
*  HERO IMAGE
* ------------------------------------
*/
.hero-img {
	background: lightgrey;
	height: 50rem;
	overflow: hidden;
	width: 100%;
}

.hero-img div {
	background-attachment: fixed;
	background-image: url(../img/bg.jpg);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	height: 100%;
	transform: scale(1.25);
	width: 100%;
}

/* ------------------------------------
*  CONTENT
* ------------------------------------
*/
main {
	padding: 6rem 0;
}

/* ------------------------------------
*  FORMS
* ------------------------------------
*/

form {
	margin: 2em 0;
}

input,
textarea,
select {
	font: inherit;
	display: block;
	background: var(--grey, #e6e6e6);
	/* font-family: 'Source Sans Pro', sans-serif; */
	font-size: 1.6rem;
	padding: 1.5rem 1rem;
	margin: .5rem 0 0 0;
	width: 100%;
}

input:focus,
textarea:focus {
	outline: 0 none;
}

textarea {
	height: 14rem;
}
button[type="submit"],
input[type="submit"] {
	background: var(--pimary-color);
	color: var(--secondary-color);
	transition: all 0.4s ease;
	/* float: right; */
	margin-left: auto;
}
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: var(--pimary-color);
	cursor: pointer;
}

fieldset {
	display: flex;
	width: 100%;
	gap: 2rem;
	flex-direction: column;
}

legend{
	color: var(--pimary-color);
	font-weight: bold;
	font-size: 2rem;
	margin-bottom: 2rem;
}

.search-results {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	padding: .5em 1rem;
	border: 2px solid var(--grey, #e6e6e6);
}

.search-results li {
	cursor: pointer;
}

.search-results li span:first-of-type:before {
	content: '(';
}

.search-results li span:after {
	content: ', ';
}

.search-results li span:last-of-type:after {
	content: ')';
}


.search-results-wrapper .search-results{
	max-height: 50vh;
	overflow-y: auto;
	list-style: none;

}

/* ------------------------------------
*  BUTTONS
* ------------------------------------
*/
.btn,
button {
	background: var(--pimary-color);
	color: var(--secondary-color);
	display: block;
	font-size: 1.6rem;
	font-family: 'Source Sans Pro', sans-serif;
	margin: 1rem 0;
	padding: 1rem 3rem;
	transition: all 0.4s ease;
	text-align: center;
}

button:active,
button:focus {
	outline: 0 none;
}

button:hover {
	background: var(--pimary-color);
	cursor: pointer;
}

.button--border {
	background: transparent;
	border: 2px solid var(--pimary-color);
	color: var(--pimary-color);
}

.button--border:hover {
	background: var(--pimary-color);
	color: var(--secondary-color);
}

/* ------------------------------------
*  FOOTER
* ------------------------------------
*/
footer {
	background: var(--pimary-color);
	color: var(--secondary-color);
	height: 80px;
	padding: 3rem 0;
	width: 100%;
}

footer .content-wrapper {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

table{
	width: 100%;
}

table th{
	text-align: left;
	background-color: var(--pimary-color);
	color: var(--secondary-color);
}
table tbody tr td,
table tr th {
	padding: calc(var(--gap) /2);
}
table tr:first-child th:last-child {
	text-align: right;
}

table tbody tr td.flexbox{
	justify-content: flex-end;
}
table tbody tr:nth-child(even) {
  background-color: lightgray; /* example style */
}

.space-between{
	justify-content: space-between;
}



/* Error-Block */
.error-block {
  border: 1px solid #e74c3c;
  background-color: #fdecea;
  color: #c0392b;
  padding: 2rem;
  border-radius: 8px;
  max-width: 60rem;
  margin: 2rem auto;
}

.error-block h2 {
  margin-top: 0;
  font-size: 2rem;
}

.error-block p {
  margin: 1rem 0 0 0;
}

.error-block a {
  color: #c0392b;
  text-decoration: underline;
}