html, body {
  min-height: 100%;
}

html {
  padding:4em 0 2em;
}


/* ********************** */
/* Layout
/* ********************** */

/* style for header area */
header {
  position: fixed;
  z-index:2;
  top:0;
  padding: 0.5em 1em;
  width: 100%;
  height:3.4em;
  background:white;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  display:table;
}

header > * {
  display:table-cell;
  vertical-align:middle;
}

header > *:empty {
  display: none;
}

header > * ~ * {
  padding-left:1em;
}

header a[href] {
  border:none;
}

header .logo a {
  display:block;
  margin-top:0.5em;
  margin-bottom:0.5em;
}

header .logo img {
  display:block;
  width:270px;
  height:22px;
}

/* beta */
header .logo sup {
  position: absolute;
  top: 8px;
  left: 2px;
  font-size: 60%;
}

header .breadcrumbs {
  line-height: 1em;
}

header .breadcrumbs span:empty {
  display: none;
}

header .breadcrumbs span {
  padding-left:0.5em;
  padding-right:0.5em;
}

header .breadcrumbs a {
  text-decoration:none;
  margin:0 5px;
}

header .breadcrumbs a:first-child {
  font-weight:bold;
}

header #current {
  padding-left:0.5em;
  font-size: 1.66em;
  font-weight: normal; /* 500; */
  border-left: 1px solid #CCC;
  overflow: hidden;
  text-overflow: ellipsis;
}

header #imprint_sitemap {
  text-align: center;
}
header #imprint_sitemap:hover a {
  color: inherit;
}
header #imprint_sitemap a:hover {
  color: #fab400;
}

header #imprint_sitemap a {
  margin-top: 0px;
  margin-bottom: 0px;
}

/* style for main area */
main {
  position: absolute;
  top: 3.4em;
  bottom: 1.9em;
  left: 0;
  right: 0;
  overflow: auto;
}

main table.fixed {
  top:3.4em;
}

main.nofooter {
  bottom:0;
}

section {
    padding:0 1em;
}

section > *:first-child {
  margin:1em 0;
}

.center {
    max-width: 995px;
    margin: 0px auto;
    padding:0 1em;
}

/* style for footer area */
footer {
  position: fixed;
  left: 0em;
  bottom: 0em;
  padding: 0.25em 1.33em;
  width: 100%;
  font-size:0.75em;
  border-top: 1px solid #aaa;
  background-color: #F5F5F5;
}

footer a[href] {
  margin:0 .5em;
  text-decoration: none;
  border:none;
}

footer img[align="middle"] {
  margin-top:-0.75em;
}

/* ********************** */
/* Elements
/* ********************** */


/* navigation bar (document viewer & bargraph) */
.navigation-bar-container {
  position: fixed;
  left: 0px;
  bottom: 0;
  width: 100%;
  height: 2.75em;
  overflow: hidden;
}
.navigation-bar-content {
  display: inline-block;
  padding: 0.25em 0.5em;
  width: 100%;
  overflow: auto;
  text-align: center;
}
.navigation-bar-content .pure-button {
  min-width:2.5em;
  padding: 0.5em 0.8em;
}

.navigation-bar-content .button-active {
  background-color: #F9CB9C;
}
.navigation-bar-content .navigation-button:hover {
  background-color: #F9CB9C;
}
.navigation-bar-content .facsimile {
  display: none;
  position: absolute;
  top: 0.25em;
  left: 0.5em;
}
.navigation-bar-content .page,
.navigation-bar-content .page div {
  display: inline-block;
}
.navigation-bar-content .page .pure-form input {
  padding-top:0.35em;
  padding-bottom:0.35em;
}
.navigation-bar-content .view {
  position: absolute;
  top: 0.25em;
  right: 0.5em;
}


/* *********************** */
/* External Links          */
/* *********************** */
a[href^="//"]:after, a[href^="https://"]:after, a[href^="http://"]:after {
  content: "\e832"; /* .fa-link-ext */
  font-family: FontAwesome;
  color: rgb(175,175,175);
  margin-left: 3px;
}
a[href^="http://beta.faustedition.net/"]:after, a.undecorated:after {
  display:none;
}
a.undecorated {
  border:none;
}


/* ********************** */
/* Print
/* ********************** */
@media print {
  html, body {
    padding:0;
    min-height:auto;
  }

  header {
    position:relative;
    border-bottom:1px solid grey;
    box-shadow: none;
    height:auto;
  }

  header #current {
    text-align:right;
    border:none;
  }

  main {
    position: relative;
    left:auto;
    right:auto;
    top:auto;
    bottom:auto;
    overflow:initial;
  }

  [class*="pure-g"], [class*="pure-u"] {
    display:initial; /* FIXME: hotfix - leads to cutt-offs on long texts in FF */
    max-width: none;
  }

  footer {
    position: relative;
    left:auto;
    bottom:auto;
    border-top:1px solid grey;
  }
}
