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

html,
body {
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
  line-height: 1.6;
}

:root {
  --bg-01: #d1d1d1;
  --bg-02: #292929;
  --link: rgb(0, 255, 255);
}

@font-face {
  font-family: 'Iceland';
  src: url('../fonts/Iceland-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

a,
a:visited,
a:hover,
a:active {
  text-decoration: none;
  color: var(--link);
}

dl {
  margin: 0 20px 30px;
}

dt {
  font-weight: bold;
}

dd {
  margin-left: 15px;
  margin-bottom: 30px;
}

pre {
  margin: 0 20px;
  white-space: pre-wrap;
  word-break: break-all;
}

code {
  font-size: 0.8rem;
}

kbd {
  background: #efefef;
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid silver;
  text-transform: uppercase;
  font-size: 0.8rem;
  box-shadow: 3px 3px 10px -4px rgba(0, 0, 0, 0.79);
}

figure {
  background-color: rgb(237, 237, 237);
  border: 1px solid black;
  margin: 10px 0 30px;
  padding: 10px;
}

li {
  list-style-type: none;
}

p {
  hyphens: auto;
  text-align: justify;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.2rem;
}

/* 1. Standard-Marker für Chrome, Edge, Firefox und Safari entfernen */
details summary {
  display: flex;
  /* Ersetzt das Standard-Listen-Layout */
  align-items: center;
  list-style: none;
  /* Standard-Weg für Firefox/Chrome */
  cursor: pointer;
}

/* 2. Spezieller Fix für Safari (sehr wichtig!) */
summary::-webkit-details-marker {
  display: none !important;
}

/* 3. Dein eigenes Dreieck */
summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.3s ease;
  font-size: 0.8em;
}

/* 4. Rotation */
details[open]>summary::before {
  transform: rotate(90deg);
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(300px, auto) 1fr;
  align-items: center;
  height: 115px;
  background-color: var(--bg-01);
  padding: 20px;
  text-align: center;
  z-index: 1;
}

header h1 {
  line-height: 1;
  justify-self: start;
  text-align: left;
  font-size: 2em;
}

header h2 {
  font-size: 1.2em;
  font-weight: normal;
  justify-self: start;
  text-align: left;
  margin-top: 10px;
}

header img {
  height: 70px;
  width: auto;
  margin: 0 10px;
}

.header-left,
.header-right {
  flex: 1;
}

nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: fixed;
  top: 115px;
  width: 300px;
  height: calc(100vh - 115px - 80px);
  background-color: var(--bg-02);
  padding: 10px;
  color: white;
  overflow-y: auto;
}

nav ul {
  list-style: inside "▶ ";
}

nav li {
  list-style: none;
  margin-left: 20px;
  width: fit-content;
}

main {
  /* Platz für Sidebar (300px) und Header (115px) */
  margin-top: 110px;
  margin-left: 300px;

  /* Zentrierung des Inhalts innerhalb des verfügbaren Platzes */
  margin-right: auto;
  max-width: 1050px;

  padding: 20px;
  /* Kein fixed, kein overflow hier! */
}

main a,
main a:visited {
  color: #0000ff;
}

main a:hover {
  color: #0000ff;
  text-shadow: 3px 3px 20px #00FFFF, -3px -3px 20px #00FFFF;
}

article {
  margin: 10px 20px 20px;
  hyphens: auto;
}

article hr {
  margin-bottom: 15px;
}

article ul {
  margin-left: 20px;
}

body>footer {
  position: fixed;
  height: 80px;
  bottom: 0;
  width: 100%;
  background-color: var(--bg-01);
  padding: 20px;
  text-align: center;
}

.spacer {
  height: 100px;
}

video::cue {
  display: block;
  background-color: rgba(0, 0, 0, 0.8);
  /* Schwarzer, leicht transparenter Hintergrund */
  color: #f1c40f;
  /* Rockiges Gelb */
  font-family: "Arial Black", sans-serif;
  font-size: 20px;
  text-shadow: 2px 2px 2px #000;
}

video::cue(.balken) {
  display: block;
  padding: 0 20px
}

video::-webkit-media-text-track-display {
  background-color: rgba(0, 0, 0, 0.8);
  width: 100% !important;
  overflow: visible;
}