@font-face {
  font-family: 'Inter Regular';
  src: url('../fonts/Inter-4.1/web/Inter-Regular.woff2');
}

@font-face {
  font-family: 'Inter Light';
  src: url('../fonts/Inter-4.1/web/Inter-Light.woff2');
}

@font-face {
  font-family: 'Inter ExtraLight';
  src: url('../fonts/Inter-4.1/web/Inter-ExtraLight.woff2');
}

@font-face {
  font-family: 'Roboto Mono Regular';
  src: url('../fonts/Roboto_Mono/static/RobotoMono-Regular.ttf');
}

@media print {
  header,
  main,
  footer {
    padding: 0 2rem;
  }

  .sidebar {
    display: none;
  }
}

:root {
  --primary-color: #006890;
  --primary-color-dark: #004f6e;
  --secondary-color: #deae00;
  --text-color: #333;
  --white-text-color: #fff;
  --bg-color: #f5f5f5;
  --border-color: #ddd;

  --code-red: #c44814;
  --code-green: #7ba01e;
  --code-blue: #008ac0;
  --code-yellow: #deae00;
  --code-purple: #7e3f73;
  --code-grey: #9d9d9d;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter ExtraLight', sans-serif;
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.5;
  margin: 2rem auto;
  padding: 0 1rem;
  max-width: 75ch;
  position: relative;
}

@media (min-width: 62rem) {
  body {
    margin: 4rem auto;
    padding: 0 2rem;
  }
}

header {
  margin: 4rem 0;
}

@media (min-width: 62rem) {
  header {
    -webkit-transform: translateX(-5rem);
    -moz-transform: translateX(-5rem);
    -ms-transform: translateX(-5rem);
    -o-transform: translateX(-5rem);
    transform: translateX(-5rem);
  }
}

.title-container {
  display: flex;
  column-gap: 1.5rem;
  align-items: center;
}

.title-img {
  flex: 0 0 auto;
  width: 6rem;
  /* filter kann entfernt werden, wenn Originalbilder farblich an das Corporate Design angepasst werden! */
  filter: hue-rotate(200deg);
}

.citation p {
  padding: 0;
}

@media (min-width: 62rem) {
  main {
    -webkit-transform: translateX(-5rem);
    -moz-transform: translateX(-5rem);
    -ms-transform: translateX(-5rem);
    -o-transform: translateX(-5rem);
    transform: translateX(-5rem);
  }
}

.content {
  position: relative;
  max-width: 100%;
}

.content p {
  clear: both;
}

.paragraph-number {
  float: left;
  margin-left: 0;
  padding-right: .4rem;
  font-size: 0.8rem;
  color: var(--code-grey);
  text-decoration: none;
}

.paragraph-number:hover {
  color: var(--text-color);
}

@media (min-width: 48rem) {
  .paragraph-number {
    margin-left: -2rem;
    padding-right: 0;
  }
}

h1,
h2,
h3,
h4 {
  font-family: 'Inter Light', sans-serif;
  color: var(--primary-color-dark);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 1rem;
}

p {
  padding-bottom: 1rem;
}

p + * {
  padding-bottom: 1rem;
}

@media (min-width: 62rem) {
  h1,
  h2,
  h3,
  h4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  h4 {
    font-size: 1rem;
  }

  p {
    padding-bottom: 2rem;
  }

  p + * {
    padding-bottom: 2rem;
  }
}

a {
  position: relative;
  color: var(--primary-color-dark);
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

a:hover {
  color: var(--primary-color);
}

a:not(.sidebar a):not(.footnote-ref):not(.footnote-back) {
  position: relative;
}

a:not(.sidebar a):not(.footnote-ref):not(.footnote-back)::after {
  content: attr(href);
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-color);
  color: var(--white-text-color);
  padding: 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s;
  -moz-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

a:not(.sidebar a):not(.footnote-ref):not(.footnote-back):hover::after {
  opacity: 1;
  visibility: visible;
}

[id] {
  scroll-margin-top: 4rem;
}

ul,
ol {
  padding-bottom: 2rem;
  list-style: none;
}

li {
  padding-bottom: 1rem;
}

li:last-child {
  padding-bottom: 0;
}

dt {
  font-family: 'Inter Regular', sans-serif;
  color: var(--primary-color-dark);
  margin-top: 1rem;
}

dt:first-child {
  margin-top: 0;
}

dd {
  padding-left: 1rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1rem 0;
}

blockquote {
  margin: 0 0 2rem 1rem;
  padding-left: 1rem;
  font-style: italic;
  border-left: 2px solid var(--border-color);
}

blockquote p {
  padding-bottom: 0;
}

figure img {
  max-width: 100%;
}

.aside figure img {
  width: 10rem;
}

figcaption {
  font-size: 0.8rem;
  color: var(--text-color);
}

.aside figcaption {
  text-align: left;
  color: var(--text-color);
}

@media (min-width: 62rem) {
  figure img {
    width: 60%;
    max-width: 100%;
    height: auto;
  }
}

.fullwidth-block {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 62rem) {
  .fullwidth-block {
    width: calc(100% + 16rem);
    max-width: unset;
  }
}

.aside + figure,
.aside,
.note {
  position: relative;
  left: 0;
  width: 100%;
  max-width: 100%;
  margin: 1rem 0 2rem;
  padding: 1rem;
  background-color: var(--bg-color);
  border-left: 2px solid var(--primary-color);
  color: var(--text-color);
  font-size: 0.8rem;
}

.aside p,
.note p {
  padding-bottom: 0;
}

@media (min-width: 62rem) {
  .aside + figure,
  .aside,
  .note {
    position: absolute;
    left: calc(100% + 2rem);
    width: 10rem;
    padding: 0;
    background-color: transparent;
    border-left: none;
    opacity: 0.7;
    -webkit-transition: opacity 0.2s;
    -moz-transition: opacity 0.2s;
    -o-transition: opacity 0.2s;
    transition: opacity 0.2s;
    cursor: default;
  }

  .aside:hover {
    opacity: 1;
  }

  .note {
    padding: 1rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-left: 2px solid var(--primary-color);
    opacity: 1;
  }
}

.sidebar-toggle-button {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--white-text-color);
  border: none;
  border-radius: 50%;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sidebar-toggle-icon {
  position: absolute;
  width: 2rem;
  height: 2px;
  margin-top: -4px;
  background-color: var(--text-color);
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.sidebar-toggle-icon::after {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 1.5rem;
  height: 2px;
  background-color: var(--text-color);
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.sidebar-toggle-icon.active {
  width: 1.5rem;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.sidebar-toggle-icon.active::after {
  top: 0;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
}

@media (min-width: 62rem) {
  .sidebar-toggle-button {
    cursor: default;
  }

  .sidebar-toggle-area {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6rem;
    background: transparent;
    z-index: 98;
  }

  .sidebar-toggle-area:hover .sidebar-toggle-icon,
  .sidebar:hover .sidebar-toggle-icon {
    width: 1.5rem;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  .sidebar-toggle-area:hover .sidebar-toggle-icon::after,
  .sidebar:hover .sidebar-toggle-icon::after {
    top: 0;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
  }

  .sidebar-toggle-area:hover + .sidebar,
  .sidebar:hover {
    left: 0;
  }
}

.sidebar {
  position: fixed;
  left: -16rem;
  top: 0;
  bottom: 0;
  width: 16rem;
  padding: 1rem;
  font-size: 0.8rem;
  overflow-y: auto;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
  background-color: var(--white-text-color);
  -webkit-transition: left 0.3s ease-in-out;
  -moz-transition: left 0.3s ease-in-out;
  -o-transition: left 0.3s ease-in-out;
  transition: left 0.3s ease-in-out;
  z-index: 99;
}

.sidebar.sidebar-open {
  left: 0;
}

@media (min-width: 62rem) {
  .sidebar {
    font-size: 1rem;
    width: 20rem;
    left: -20rem;
  }
}

.sidebar::-webkit-scrollbar {
  width: 2px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.sidebar nav {
  padding-top: 4rem;
}

.sidebar ul,
.sidebar ol {
  padding-bottom: 0;
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.sidebar a {
  display: block;
  color: var(--primary-color-dark);
  text-decoration: none;
  padding: 6px;
  -webkit-transition: padding 0.3s;
  -moz-transition: padding 0.3s;
  -o-transition: padding 0.3s;
  transition: padding 0.3s;
}

.sidebar a:hover {
  color: var(--primary-color);
  padding-left: 14px;
}

code {
  font-family: 'Roboto Mono Regular', monospace;
  font-size: 0.8rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  padding: 2px 4px;
}

.sourceCode:first-child {
  background-color: var(--bg-color);
  overflow-x: auto;
}

pre.sourceCode {
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  white-space: pre;
}

@media (min-width: 62rem) {
  pre.sourceCode {
    padding: 1rem 2rem;
  }
}

.sourceCode .co {
  color: var(--code-grey);
  font-style: italic;
}

.sourceCode .bu {
  color: var(--code-blue);
  font-weight: bold;
}

.sourceCode .st {
  color: var(--code-red);
}

.sourceCode .kw {
  color: var(--primary-color);
  font-weight: bold;
}

.sourceCode .dt {
  color: var(--code-green);
}

.sourceCode .op {
  color: var(--code-red);
}

.sourceCode .fu {
  color: var(--code-green);
}

.sourceCode .va {
  color: var(--code-yellow);
}

.sourceCode .pp {
  color: var(--code-purple);
}

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  margin: 2rem 0;
  font-size: 0.8rem;
  border-collapse: collapse;
}

table caption {
  caption-side: bottom;
  padding-top: 0.5rem;
  text-align: left;
  color: var(--code-grey);
}

table thead tr th,
table tbody tr td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--primary-color);
}

table thead tr th {
  vertical-align: bottom;
  color: var(--primary-color);
}

footer {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
  padding-bottom: 1rem;
  overflow-x: hidden;
}

footer .author {
  padding-top: 1rem;
}

@media (min-width: 62rem) {
  footer {
    margin: 2rem 0;
    padding-bottom: 2rem;
    -webkit-transform: translateX(-5rem);
    -moz-transform: translateX(-5rem);
    -ms-transform: translateX(-5rem);
    -o-transform: translateX(-5rem);
    transform: translateX(-5rem);
  }

  footer .author {
    padding-top: 2rem;
  }
}

footer .author h4 {
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

footer .author p {
  padding: 0;
}

footer p.author-info {
  padding-top: 0.5rem;
}

.footnote-ref sup::before {
  content: '[';
}

.footnote-ref sup::after {
  content: ']';
}

.footnote-ref sup {
  vertical-align: baseline;
  font-size: inherit;
}

.footnote-ref {
  position: relative;
  display: inline-block;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--primary-color-dark);
}

.inline-footnote {
  max-width: 90vw;
  width: auto;
  left: 0;
  right: 0;
}

@media (min-width: 62rem) {
  .footnote-ref {
    font-size: 1rem;
  }

  .inline-footnote {
    display: none;
    position: absolute;
    max-width: 50vw;
    width: 15rem;
    left: 0;
    right: auto;
    top: 100%;
    background-color: var(--bg-color);
    border-left: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
}

.inline-footnote p {
  padding: 0.25rem;
}

.footnote-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary-color-dark);
  -webkit-transition: color 0.2s;
  -moz-transition: color 0.2s;
  -o-transition: color 0.2s;
  transition: color 0.2s;
}

.footnote-close:hover {
  color: var(--primary-color);
}

.footnotes hr {
  display: none;
}

.footnotes ol {
  list-style: none;
  padding-left: 0;
  counter-reset: footnote;
}

@media (max-width: 48rem) {
  .footnotes ol {
    padding-bottom: 0;
  }
}

.footnotes li {
  counter-increment: footnote;
  position: relative;
  padding-left: 2rem;
}

.footnotes li::before {
  content: '[' counter(footnote) '] ';
  position: absolute;
  left: 0;
  color: var(--primary-color-dark);
}

.footnotes li p {
  font-size: 14px;
  padding-bottom: 0;
}

.footnote-back {
  opacity: 0;
  position: absolute;
  width: 2rem;
  height: 1.5rem;
  left: 0;
  top: 0;
}

.footnote-back[href^='#fnref'] {
  scroll-margin-top: 4rem;
}
