/* @import url('https://fonts.googleapis.com/css?family=Roboto&display=swap'); */
/* @import url('https://fonts.googleapis.com/css?family=PT+Serif|Roboto&display=swap'); */
/* @import url('https://fonts.googleapis.com/css?family=Open+Sans|PT+Serif|Roboto&display=swap'); */
@import url("https://fonts.googleapis.com/css?family=PT+Serif|Lato:|Open+Sans|Roboto&display=swap");
html {
  margin-left: calc(100vw - 100%);
}

.preload {
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  display: hidden;
}

* {
  line-height: 1.5em;
}

body {
  font-size: 12pt;
  margin: 0;
  background-color: white;
  background-repeat: no-repeat;
  background-image: url("/forum/ws/images/kpd/background.jpg");
  background-position: center top;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  /* font-family: "Open sans", "Roboto", sans-serif; */
  /* font-family: "Roboto", "Roboto", sans-serif; */
  font-family: "Lato","Trebuchet MS", Helvetica, Arial, sans-serif;
  /* font-family: "PT Serif", serif; */
}

a,
a:hover,
a:link,
a:visited {
  color: #0060ff;
  text-decoration: underline;
}

a:hover {
  background-color: #f0f0fb;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: left;
  /* font-family: "Open Sans", sans-serif; */
  /* font-family: "Roboto", "Roboto", sans-serif; */
  border-top: solid #1b4Da0 medium;
  border-bottom: dotted #1b4Da0 thin;
  width: 100%;
  color: #1b4Da0;
}

main h1 {
  margin-top: 0;
}

div.wrapper {
  width: 100%;
  max-width: 960px;
  /* padding: 1em; */
  min-height: 100vh;
  margin: 0 auto;
  box-shadow: #555555 0 0 20px;
  -webkit-box-shadow: #555555 0 0 20px;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  background-color: white;
}

header {
  margin: 0;
  padding: 0;
  background-image: url("images/bgheader1.jpg");
  height: 199px;
  overflow: hidden;
  flex-direction: column;
  position: relative;
}

header img {
  margin-left: 60px;
  max-width: 100%;
  max-height: 100%;
  /* display: none; */
}

header h1 {
  font-variant: full-width;
  display: none;
  /* flex: 1; */
  /* text-transform: uppercase; */
  font-weight: bold;
  margin: 0 auto auto;
  text-align: center;
  /* font-family: "Trebuchet MS"; */
  color: white;
  font-size: 60px;
  text-shadow: 0 0 1px #0845b8, 3px 3px 0 rgba(0, 63, 148, 0.68), 4px 4px 0 rgba(0, 0, 0, 0.89);
}

header h2 {
  color: white;
  font-size: 30px;
  display: none;
  text-align: center;
  margin-bottom: 0;
}

header .link-ministerien {
  position: absolute;
  background: rgba(32, 148, 243, 0.73);
  border-radius: 105px 0 0 100px;
  overflow: hidden;
  bottom: calc(50% - 1em);
  right: 0;
  box-sizing: border-box;
  border: thin solid rgba(16, 118, 201, 0.73);
  border-right: none;
}

header .link-ministerien a,
header .link-ministerien a:link a:visited {
  color: white;
  text-decoration: none;
  display: block;
  padding: 0.1em 0.5em 0.1em 1.0em;
}

header .link-ministerien a:hover {
  background-color: white;
  color: #2196F3;
}

.link-pottyland {
  position: absolute;
  bottom: -14px;
  left: 0;
  color: white;
  display: block;
  width: 100%;
  height: 44px;
  font-size: 12px;
  color: white;
  font-family: Helvetica, Tahoma, "Trebuchet MS", Arial, Sans-Serif;
  background-image: url("/system/spotlightStyles/kpd2/images/breadcrumbs.png");
  background-position-y: -7px;
}

.link-pottyland a,
.link-pottyland a:link {
  text-decoration: none;
  line-height: 32px;
  font-size: 12px;
  color: white;
  margin-left: 10px;
  padding-right: 3.5px;
  text-shadow: 0 -1px 1px #222;
}

.link-pottyland a:hover,
.link-pottyland a:link:hover {
  background-color: transparent;
  text-decoration: underline;
}

h1 em,
h1 i,
h2 em,
h2 i,
h3 em,
h3 i {
  font-size: 0.6em;
  line-height: 2.5em;
  margin-left: 1em;
  margin-bottom: -1em;
}

nav {
  margin-right: -1px;
}

nav ul {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0;
  list-style-type: none;
  margin: 0;
  flex-wrap: wrap;
}

nav ul li {
  flex: 1;
  text-align: center;
  margin-bottom: 0.25em;
  height: 100%;
  border-left: 1px solid #464646;
}

nav a {
  display: block;
  padding: 0.65em 0.25em;
  font-size: 0.875em;
  background: #333333;
  color: white !important;
  text-decoration: none !important;
  text-shadow: 0 -1px 1px #222;
  border-bottom: 1px solid #222;
}

nav a:hover {
  background: #1b4Da0;
  color: white;
}

nav a.active {
  background-color: #4e555d;
}

main {
  display: block;
  margin: 0 auto;
  padding: 1em;
  margin-bottom: 2em;
  padding-bottom: 1.5em;
  text-align: justify;
}

article {
  display: flex;
  flex-direction: column;
  min-width: 50%;
  position: relative;
}

.put-aside {
  display: flex;
  flex-direction: row;
}

main section:not(:last-of-type) {
  margin-bottom: 2em;
}

.left {
  float: left;
  clear: left;
}

.right {
  float: right;
  clear: right;
}

.center {
  clear: both;
  margin: auto;
  text-align: center;
}

img.left {
  margin-right: 1em;
  margin-bottom: 1em;
  clear: left;
}

img.right {
  margin-left: 1em;
  margin-bottom: 1em;
  clear: right;
}

footer {
  clear: both;
  margin: 0 auto;
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
  font-size: 0.8em;
  color: #777;
}

.placeholder {
  font-style: italic;
  color: #0061f2;
}

img.placeholder {
  width: 200px;
  height: 300px;
  border: 1px solid #0061f2;
}

.person {
  border-radius: 3px;
  padding: 0 1em 1em;
  margin-bottom: 1em;
}

.person .person h2,
.person .person h3 {
  padding: 0.25em;
  margin-top: 1em;
  background: #f0f8ff;
  /* border: 1px solid grey; */
  margin-bottom: 1em;
}

.person .imgbox {
  max-width: 186px;
}

.person:after {
  content: "";
  display: table;
  clear: both;
}

.section-divider {
  padding-top: 1em;
  border-top: 1px solid lightgrey;
  margin-top: 2em;
}

.liste-politik li:not(:last-of-type),
.minister-historie li:not(:last-of-type) {
  margin-bottom: 0.5em;
}

aside.minister {
  float: right;
  display: block;
  padding: 0.5em;
  margin-left: 1em;
  box-shadow: 0 0 15px #acacac;
  background: white;
}

aside.minister ul {
  list-style-type: none;
  padding: 0;
  padding-inline-start: 0;
  margin-top: 0.25em;
  font-size: 0.725em;
}

aside.minister ul li span {
  display: block;
  float: left;
  text-align: left;
}

aside.minister ul li .minister-dates {
  width: 55%;
}

aside.minister h3 {
  margin-top: 0;
  margin-bottom: 0.25em;
  text-align: center;
}

aside.minister .imgbox {
  display: block;
  margin: auto auto 1em;
  border: 1px solid #d6d6d6;
  box-shadow: none;
}

aside.jobs,
aside.politik {
  float: right;
  display: flex;
  flex-direction: column;
  min-width: 40%;
  border: 1px dotted #1b4Da0;
  margin-left: 1em;
  padding: 1em;
  box-sizing: border-box;
  padding-top: 0;
}

aside.jobs section,
aside.politik section {
  margin-top: -1px;
}

aside.jobs ul,
aside.politik ul {
  padding-inline-start: 1.5em;
}

aside.jobs h1,
aside.jobs h2,
aside.jobs h3,
aside.politik h1,
aside.politik h2,
aside.politik h3 {
  background-color: #fafafa;
}

.jobs {
  text-align: left;
}

.dienstfahrzeuge img {
  display: block;
  margin: 1em auto;
  max-width: 800px;
  width: 100%;
}

.imgbox {
  border: 1px solid #999999;
  border-radius: 2px;
  padding: 0.5em;
  box-shadow: 0 0 5px #acacac;
  text-align: center;
  display: inline-block;
}

.imgbox img {
  margin: auto;
  display: block;
  width: 100%;
  border: 1px solid #f2f0f0;
  box-sizing: border-box;
}

.imgbox.right {
  margin-left: 0.5em;
}

.imgbox.left {
  margin-right: 0.5em;
}

.icon {
  height: 1em;
}

.lyric {
  border: dotted #1b4Da0 thin;
  padding: 1em;
  display: inline-block;
}

.lyric h1,
.lyric h2,
.lyric h3,
.lyric h4,
.lyric h5,
.lyric h6 {
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 1.2em;
}

.lyric p {
  margin-top: 0.5em;
  color: #222222;
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 100;
  font-style: italic;
}

.lyric p:last-of-type {
  margin-bottom: 0;
}

.news ul {
  padding-inline-start: 0;
  text-align: left;
  list-style-type: none;
}

.news ul li {
  border: 1px solid lightgrey;
  border-radius: 3px;
  background-color: #fffdfd;
  padding: 0.25em;
}

.news ul > li:not(:last-of-type) {
  margin-bottom: 0.25em;
}

.news div {
  display: flex;
}

.news div span {
  display: block;
  margin: auto 0;
  font-size: 0.90em;
}

.news .noflag {
  display: inline-block;
  height: 1.25em;
  line-height: 1.05em;
  background: #bbbbbb;
}

.news .flag,
.news .noflag {
  width: 33px;
  align-self: center;
  flex: 0 0 auto;
  margin-right: 0.25em;
  box-shadow: 0 0 2px lightgrey;
}

.country ul {
  list-style-type: none;
  padding-inline-start: 1em;
}

.country ul .icon {
  margin-right: 1em;
}

.country ul a {
  display: block;
  padding: 0.25em 0;
}

.document h1,
.document h2,
.document h3,
.document h4,
.document h5,
.document h6 {
  text-align: center;
  border: none;
  color: black;
  display: block;
}

.document h1 {
  font-size: 1.5em;
}

.document h2 {
  font-size: 1.25em;
}

.largetext {
  color: #393939;
  padding: 1em;
}

.largetext span {
  font-size: 2em;
  display: block;
  text-align: center;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.largetext em {
  padding-left: 4em;
  font-size: 0.8em;
}

.toc {
  float: right;
  width: 100%;
  background: white;
  right: 0;
  padding: 0 0.5em;
  max-width: 260px;
  box-sizing: border-box;
  position: absolute;
  display: block;
  border: 1px dotted;
  margin-left: 1em;
  text-align: left;
}

.toc ol {
  padding-inline-start: 1em;
  counter-reset: item;
}

.toc ol li {
  display: block;
}

.toc ol li:before {
  content: counters(item, ".") ". ";
  counter-increment: item;
}

.back-to-top {
  text-align: right;
}

.flex-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.alkohol section {
  clear: both;
}

.reinheitsgebot {
  text-align: center;
  border: 1px solid #dddddd;
  border-radius: 4px;
  background-color: #fffbed;
  margin: 0 auto;
  max-width: 340px;
}

.reinheitsgebot h2 {
  border: none;
  color: black;
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 0.1em;
}

.reinheitsgebot p {
  font-style: italic;
  margin-top: 0.25em;
}

@media screen and (min-width: 1560px) {
  .toc {
    position: fixed;
    right: initial;
    margin-left: 960px;
  }
  .back-to-top {
    display: none;
  }
}

@media screen and (max-width: 1559px) {
  #lebenslauf .toc {
    position: inherit;
    margin-left: 0.5em;
    margin-bottom: 0.5em;
  }
}

@media screen and (max-width: 940px) {
  html {
    margin: 0;
  }
  header .link-ministerien {
    top: inherit;
    bottom: 0;
    font-size: 0.8em;
  }
  header .link-pottyland {
    position: initial;
    /* bottom: -14px; */
    margin-bottom: -17px;
    margin-top: -17px;
    width: 100vw;
  }
}

@media screen and (max-width: 800px) {
  header {
    background-size: cover;
    height: auto;
    padding-right: 2em;
  }
  header img {
    margin: auto;
  }
  nav a {
    font-size: 0.85em;
  }
}

@media screen and (max-width: 750px) {
  .put-aside {
    flex-direction: column;
  }
  nav a {
    font-size: 0.72em;
    padding: 0.65em 0;
  }
  aside.politik {
    float: initial;
    max-width: 100%;
    margin: auto;
    padding: initial;
    border: none;
  }
}

@media screen and (max-width: 670px) {
  .toc {
    position: relative;
    margin: 0;
    max-width: 100%;
    border: none;
    padding: 0;
  }
}

@media screen and (max-width: 600px) {
  nav ul {
    flex-direction: column;
  }
  nav ul li {
    margin-bottom: 0;
  }
  nav a {
    font-size: 1em;
  }
  .wrapper {
    box-shadow: none;
  }
}

@media screen and (max-width: 460px) {
  aside.minister {
    float: none;
    margin: 0 auto 1em;
  }
  .reinheitsgebot {
    font-size: 0.8em;
  }
  header .link-ministerien {
    display: none;
  }
}

@media screen and (max-width: 370px) {
  header .link-pottyland a,
  header .link-pottyland a:link {
    font-size: 10px;
  }
}
