/* ==========================================================================
   Grundstruktur
   ========================================================================== */

html {
  font-size: 1em;
  line-height: 1;
  -ms-webkit-text-size-adjust: 100%; 
  cursor: url("../img/cursor.png"),
  auto;
  height: 100%;
}

body {
  margin: 0 auto;
  padding: 0 0;
  position: relative;
  /*display: block;*/
  max-width: 60em;
  color: #333333;
  text-shadow: none;
  min-height: 100%;
}

body::after {
  content: '';
  display: block;
  height: 7.6em; /* Set same as footer's height */
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}



/* ==========================================================================
   Textstruktur
   ========================================================================== */

a, h1, h2, h3, h4, h5, h6, p {
  font-family: akzidenz grotesk, helvetica;
  padding: 0;
  margin: 0;
  color: black;
}

a {
  background-color: transparent;
}

a:hover,
a:focus {
  cursor: url("../img/pointer.png"),
  pointer;
}

h1 {
  font-size: 1.5em;
  line-height: 1.3;
  margin-bottom: .4em;
}

hr {
  border: none;
  background-color: black;
  margin: 0;
  height: .03em;
  width: 100%;
  padding: 0;
}

p {
  font-size: 1em;
  line-height: 1.3;
}

p.info {
  margin-bottom: .4em;
}

p.footer_text {
  text-align: center;
  padding: .5em 0;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

b,
strong {
  font-weight: bolder;
}



/* ==========================================================================
   Seitenstruktur
   ========================================================================== */

/* header */
div.topbar {
  margin: 0 .3em 40px .3em;
  display: grid;
  /*width: 100%;*/
}
header {
  margin: .8em 0 0 0;
  /*border: 1px solid;*/
}

/* Skip-Link*/
#skip-link {
  position: absolute;
  left: 0;
  top: -1.6em;
  background: lightgrey;
  color: black;
  padding: 0.25em;
  transform: translateY(-100%);
  transition: 0.2s transform;
  z-index: 10001;
}
#skip-link:focus {
  transform: translateY(0);
}

/* Seitennavigation */
#sitenav *,
#sitenav a {
  /*background-color: lightgray;*/
  /*color: black;
  cursor:  url("../img/pointer.png"), auto;*/
}
#sitenav > details {
  background-color: white;
}
#sitenav {
  /*position: absolute;
  top: 35px;
  left: 0;*/
}
#sitenav ul {
  list-style-type: none;
  margin: 0;
  padding: /*.2em*/ 0;
  border: 1px solid black;
  border-radius: 2px;
  background-color: white;
}
#sitenav li a {
  display: inline-block;
  margin-top: .1em;
  margin-bottom: .1em;
  padding: .5em;
  margin: .3em;
  outline: none;
  text-decoration: none;
  font-size: 1.2em;
  /*font-weight: bold;*/
}
#sitenav li a:hover,
#sitenav li a:focus {
  text-decoration: underline;
  cursor: url("../img/pointer.png"),
  auto;*/
}
#sitenav li {
  padding: 0;
  white-space: nowrap;
  vertical-align: middle;
}
#sitenav > details > summary::before {
  content: "☰";
  font-size: 27.5px;
}
#sitenav > details {
  border: 1px solid black;
  border-radius: .2em;
  max-width: -webkit-max-content;
  max-width: -moz-max-content;
  max-width: max-content;
  padding: .2em;
}
#sitenav > details > ul {
  margin-left: -.5em;
  margin-top: .3em;
}
#sitenav summary {
  cursor: url("../img/pointer.png"),
  auto;
  max-width: -webkit-max-content;
  max-width: -moz-max-content;
  max-width: max-content;
}
#sitenav summary::-webkit-details-marker {
  display: none;
}
#sitenav summary {
  list-style-type: none;
}
#sitenav.withjs > details > ul > li[aria-current] {
  /*border-left: 3px solid black;*/
  font-weight: bold;
}
#sitenav.withjs {
  position: absolute;
  z-index: 9;
}
#sitenav.withjs ul {
  position: absolute;
}
#sitenav.large {
  position: relative;
  top: -3.5em;
  left: 0;
  right: 0;
  max-width: 60em;
}
#sitenav.large > details {
  border: none;
  border-radius: 0;
  padding: 0;
}
#sitenav.large > details > ul {
  display: flex;
  flex-direction: row;
  border-top: 1px solid black;
  border-left: none;
  border-bottom: 1px solid black;
  border-right: none;
}
#sitenav.large > details > ul > li {
  display: flex;
  flex: 1;
  /*border: 1px solid;*/
  justify-content: center;
  font-size: 1em;
}
#sitenav.large > details > ul {
  width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-top: 0;
  padding: 0;
  border-radius: 0;
}
#sitenav.large > details > ul > li[aria-current] {
  /*border-bottom: 4px solid black;
  border-left: 1px solid;*/
  font-weight: bold;
}

main {
  margin-top: 1em;
  margin-bottom: 4em;
  margin-left: .3em;
  margin-right: .3em;
  display: grid;
  grid-row-gap: 2em;
}

/* Artikel */
article {
/*  border: 1px solid;*/
  margin: 0.3em 0;
  padding: 0; 
  display: grid; /* check i.e.! */
  grid-row-gap: 1em;
}

img {
  border-style: none;
  width: 100%;
}

div.past {
  margin: 0.3em 0;
  padding: 0; 
  display: grid; /* check i.e.! */
  grid-row-gap: 1em;
  grid-template-columns: repeat(auto-fill, minmax(16em, 1fr));
  grid-column-gap: 1em;

}

/* footer */
footer {
  margin: 0 0 .3em 0;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 8.8em;
}

/* ==========================================================================
   Media Query
   ========================================================================== */

/*@media screen and (max-width: 35em) {
  #sitenav.large   {
    visibility: hidden;
  }
}*/

@media screen and (min-width: 35em) {
  header {
    margin-bottom: 5em; 
  }
  article {
    /*grid-template-columns: 1fr 1fr;*/
    grid-template-columns: 38.2% 1fr;
    grid-column-gap: 1em;
  }
  /*div.past {
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 1em;
  }*/
}


@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */


.hidden {
  display: none !important;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}


/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* tomi s */