/* Resets inspired by normalize.css */

/* 1. Correct the line height in all browsers. */
/* 2. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS. */

html {
  line-height: 1.15; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Remove the margin in all browsers (opinionated). */
body {
  margin: 0;
}

/* 1. Remove the gray background on active links in IE 10. */
/* 2. Remove gaps in links underline in iOS 8+ and Safari 8+. */

a {
  background-color: transparent; /* 1 */
  -webkit-text-decoration-skip: objects; /* 2 */
}

/* Prevent the duplicate application of `bolder` by the next rule in Safari 6. */

b,
strong {
  font-weight: inherit;
}

/* Remove the border on images inside links in IE 10-. */

img {
  border-style: none;
}

/* Hide the overflow in IE. */

svg:not(:root) {
  overflow: hidden;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  font-family: Arial, sans-serif;
  color: #5b5b5b;
  background: #fafafa;
}

.gradient {
  background: #fafafa; /* Old browsers */
  background: -moz-linear-gradient(-45deg, #e1e1e1 0%, #fafafa 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(-45deg, #e1e1e1 0%, #fafafa 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(135deg, #e1e1e1 0%, #fafafa 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e1e1e1', endColorstr='#fafafa', GradientType=1);
  background-position: fixed;
}

a {
  color: #5b5b5b;
}

h1 {
  margin:0;
  padding:0;
}

h2 {
  color: #ffffff;
  text-align: center;
  line-height: 1.3em;
}

#page-wrapper {
  position:relative;
  width:100%;
  min-height:100vh;
}

#header-wrapper {
  height: 80px;
  width: 100%;
  background: #ffffff;
}

#header {
  position: relative;
  max-width: 1700px;
  height: 80px;
  margin: 0 auto;
}

#logo {
  position: absolute;
  left: 25px;
  top: 0;
}

#logo img {
  height: 50px;
  width: auto;
  margin: 13px 0 17px 0;
}

#langnav {
  position: absolute;
  right: 25px;
  top: 0;
}

#langnav ul {
  padding: 0;
  margin: 0;
}

#langnav li {
  float: left;
  list-style: none;
  line-height: 80px;
}

#langnav li a {
  display: block;
  line-height: 80px;
  text-decoration: none;
  padding: 0 10px;
}

#content-container {
  width: 100%;
  margin-top:85px;
}

#content-wrapper {
  position: relative;
  max-width: 1350px;
  margin: 0 auto;
}

#title-wrapper {
  line-height: 50px;
  margin: 70px 25px 50px 25px;
}

/* Clearfix */
#title-wrapper:after {
  content: "";
  display: table;
  clear: both;
}

#title {
  float:left;
}

#deep-logo {
  float:right;
}

#maintenance-wrapper {
	text-align: center;
	font-weight: bold;
	color: #f00;
}

#app-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  float: left;
  position: relative;
  width: 280px;
  /*padding-bottom: 60px; For one Button */
  padding-bottom: 105px; /* Temp for multiple Buttons */
  margin-bottom: 50px;
  margin-left: 25px;
  margin-right: 25px;
  background: #ffffff;
}

.card__header {
  position: relative;
  height: 155px;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: url(../images/card-header-abacus.png);
}

.card__header--abacus {
  background: url(../images/card-header-abacus.png);
}

.card__header--myabacus {
  background: url(../images/card-header-myabacus.png);
}

.card__header--abaninja {
  background: url(../images/card-header-abaninja.png);
}

.card__header--deepbox {
  background: url(../images/card-header-deepbox.png);
}

.card__header h2 {
  display: inline-block;
}

.abacus-version {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: url(../images/icon-info.png);
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  cursor:pointer;
}

.card__content {
  padding: 20px 20px 0 20px;
  line-height: 24px;
}

.content--small {
  font-size: 12px;
  line-height: 18px;
  color: #000;
}

.card__button {
  position: absolute;
  text-align: center;
  width: 100%;
  bottom: 30px;
}

.button--login {
  display: inline-block;
  padding: 0 25px;
  background: #5b5b5b;
  border: 1px solid #444;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  line-height: 40px;
  margin-bottom:5px;
}

.button--login:hover {
  background: #f2f2f2;
  color: #000;
}

.shadow {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.19);
  -webkit-transition: all 0.5s; /* Safari */
  transition: all 0.5s;
}

.shadow:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 6px 6px rgba(0, 0, 0, 0.19);
}

#utils-wrapper {
  margin: 100px 25px 0 25px;
}

#utils {
  max-width:750px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
	background: #ffffff;
}

.item {
  width: 20%;
  padding: 0;
  margin: 0;
  float: left;
  text-decoration: none;
}

.item__content {
  padding: 25px;
  text-align: center;
}

.item__image-container {
  height: 60px;
}

.item__image {
  height: 40px;
	width: 40px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
	margin: 0 auto;
}

.item__content--java-download .item__image,
.item__content--abastart-download .item__image {
  background-image: url(../images/icon-download.svg);
}

.item__content--login-help .item__image {
  background-image: url(../images/icon-fragzeichen.svg);
}

.item__content--zertifikat .item__image {
  background-image: url(../images/icon-zertifikat.svg);
}

.item__content-newsletter .item__image {
  background-image: url(../images/icon-newsletter.svg);
}

.item__content-dataprotection .item__image {
  background-image: url(../images/icon-dataprotection.svg);
}

.item__content--java-download:hover .item__image,
.item__content--abastart-download:hover .item__image {
  background-image: url(../images/icon-download-filled.svg);
}

.item__content--login-help:hover .item__image {
  background-image: url(../images/icon-fragzeichen-filled.svg);
}

.item__content--zertifikat:hover .item__image {
  background-image: url(../images/icon-zertifikat-filled.svg);
}

.item__content-newsletter:hover .item__image {
  background-image: url(../images/icon-newsletter-filled.svg);
}

#version-container {
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  -webkit-transition: opacity 0.25s; /* Safari */
  transition: opacity 0.25s;
}

#version-container.show {
  opacity: 1;
  height: 100vh;
  width: 100%;
}

#version-container.hide {
  opacity: 0;
  height: 0;
  width: 0;
}

.version-background {
  position: absolute;
  height:100vh;
  width: 100%;
  background-color: rgba(0,0,0,0.4);
}

.version-box {
  position: relative;
  background: #fff;
  width: 600px;
  margin: 300px auto 0 auto;
  z-index: 10;
}

.version-box__header {
  padding:10px 25px;
}

.version-box__header--demo {
  background:#FFE44D;
}

.version-box__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 15px;
  height: 15px;
  background: url(../images/icon-close.svg);
  background-repeat: no-repeat;
  background-size: contain;
  cursor:pointer;
}

.version-box__content {
  padding:25px;
}

.version-box__content table {
  width:100%;
}

@media screen and (max-width : 1350px)  {
  #content-wrapper {
    max-width: 1050px;
  }

  #app-wrapper {
    flex-wrap: wrap;
  }

  .card {
    width: 250px;
  }
}

@media screen and (max-width : 750px)  {
  #app-wrapper {
    flex-direction: column;
  }
  .card {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #utils-wrapper {
   margin-top:25px;
    margin-bottom:50px;
  }
  #utils {
    width:300px;
    display:block;
    justify-content:flex-start;
  }
  .item {
    width:100%;
    float:none;
  }

}


@media screen and (max-width : 600px)  {
	#header-wrapper {
		height:120px;
	}
	#header {
		height:120px;
		padding:0 25px;
	}
	#logo {
		position:relative;
		width:100%;
		left:auto;
		text-align:center;
	}
	#langnav {
		position:relative;
		width:100%;
		right:auto;
		display:flex;
		justify-content: center;
	}
	#langnav li,
	#langnav li a {
		line-height:40px;
	}

	#title,
	#deep-logo {
		float:none;
	}

	#title h1,
	#deep-logo {
		text-align: center;
	}

  .version-box {
    width:100%;
    width: calc(100% - 20px);
    margin-top:200px;
  }
  .version-box__content tr {
    display:block;
    margin-bottom:5px;
  }
  .version-box__content td {
    display:block;
  }
  .version-box__content td:first-child {
    font-weight:bold;
  }
}

/* IE6/7 uses media, */

@media screen\9 {

  .item__content--java-download .item__image {
    background-image: url(../images/icon-download.png);
  }
  .item__content--abastart-download .item__image {
    background-image: url(../images/icon-download.png);
  }
  .item__content--login-help .item__image {
    background-image: url(../images/icon-fragezeichen.png);
  }
  .item__content--zertifikat .item__image {
    background-image: url(../images/icon-zertifikat.png);
  }
  .item__content-newsletter .item__image {
    background-image: url(../images/icon-newsletter.png);
  }

  .item__content--java-download:hover .item__image{
    background-image: url(../images/icon-download-filled.png);
  }
  .item__content--abastart-download:hover .item__image {
    background-image: url(../images/icon-download-filled.png);
  }
  .item__content--login-help:hover .item__image {
    background-image: url(../images/icon-fragezeichen-filled.png);
  }
  .item__content--zertifikat:hover .item__image {
    background-image: url(../images/icon-zertifikat-filled.png);
  }
  .item__content-newsletter:hover .item__image {
    background-image: url(../images/icon-newsletter-filled.png);
  }

	.abacus-version {
		background-image: url(../images/icon-info.png);
	}

	.version-box__close {
		background-image: url(../images/icon-close.png);
	}

}

/* IE8 uses \0 */

@media all\0 {

  .item__content--java-download .item__image {
    background-image: url(../images/icon-download.png);
  }
  .item__content--abastart-download .item__image {
    background-image: url(../images/icon-download.png);
  }
  .item__content--login-help .item__image {
    background-image: url(../images/icon-fragezeichen.png);
  }
  .item__content--zertifikat .item__image {
    background-image: url(../images/icon-zertifikat.png);
  }
  .item__content-newsletter .item__image {
    background-image: url(../images/icon-newsletter.png);
  }

 .item__content--java-download:hover .item__image{
    background-image: url(../images/icon-download-filled.png);
  }
  .item__content--abastart-download:hover .item__image {
    background-image: url(../images/icon-download-filled.png);
  }
  .item__content--login-help:hover .item__image {
    background-image: url(../images/icon-fragezeichen-filled.png);
  }
  .item__content--zertifikat:hover .item__image {
    background-image: url(../images/icon-zertifikat-filled.png);
  }
  .item__content-newsletter:hover .item__image {
    background-image: url(../images/icon-newsletter-filled.png);
  }

	.abacus-version {
		background-image: url(../images/icon-info.png);
	}

	.version-box__close {
		background-image: url(../images/icon-close.png);
	}


}