/* Grundlayout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1em;
  color: #fff;
  background-color: #f0f0f0;
}

/* Seitenstruktur */
.page {
  position: relative;
  display: table;
  table-layout: fixed;
  width: 100%;
  height: 100%;
  text-align: center;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.page::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #333;
  opacity: 0.4;
  z-index: 0;
}

.container {
  position: relative;
  display: table-cell;
  width: 100%;
  vertical-align: middle;
  padding: 1em 2em;
  z-index: 1;
}

.content {
  max-width: 900px;
  margin: 0 auto;
}

h1, h2, h3, h4, h5 {
  line-height: 1.3;
  font-weight: normal;
}

/* Navigation */
nav ul {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

nav li {
  display: inline-block;
  margin: 0 10px;
}

nav a {
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.3s ease-in-out;
}

nav a:hover,
nav a:focus,
nav a:active {
  opacity: 1;
}

/* Bilder */
img {
  max-width: 100%;
  height: auto;
}

/* Social Links */
.social-links {
  padding: 1em 0;
  vertical-align: middle;
}

.social-links:empty {
  outline: 1px solid yellow;
}

.social-links a {
  padding: 0 0.3em;
  line-height: normal;
}

/* Hosting Info (falls verwendet) */
.hosting-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1em;
  font-size: 0.8em;
}

.hosting-info p {
  margin: 0;
  padding: 0;
  font-size: 12px;
}

/* Hintergrundbild */
@media screen {
  .page[class] {
    background-image: url("/index_background_tmp.jpg?1762114088");
  }
}

/* Responsive Anpassungen */
@media screen and (max-width: 640px) {
  h1 {
    font-size: 2em;
  }
  ul, ol {
    max-width: none;
  }
  .page {
    min-width: 300px;
  }
  .page .container {
    padding: 3em;
  }
}

@media screen and (min-width: 641px) and (max-width: 1199px),
       screen and (min-height: 500px) and (max-height: 1199px) {
  body.debug:after {
    content: "medium";
  }
}

@media screen and (min-width: 1200px) {
  body.debug:after {
    content: "large";
  }
}

.page .fallback-bg {
  display: none;
}

.ie8 .page .fallback-bg {
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  max-width: inherit;
  z-index: 0;
}
