* {
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #000;
  color: #fff;
}
body > header {
  background: #1a1a1a;
  color: #33abc9;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #333;
}
body > header h1 {
  margin: 0;
  font-size: 2rem;
  color: #33abc9;
}
body > nav {
  background: #1a1a1a;
  padding: 10px 20px;
  border-bottom: 1px solid #333;
}
body > nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
body > nav ul li {
  margin: 0 10px;
}
body > nav ul a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}
body > nav ul a:hover {
  background: #33abc9;
  color: #000;
}
body > footer {
  background: #1a1a1a;
  color: #ddd;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  border-top: 1px solid #333;
}
main {
  max-width: 1000px;
  margin: 20px auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
main header, main section {
  margin-bottom: 20px;
  padding: 20px;
  background: #1a1a1a;
  border-radius: 8px;
}
main header > *:first-child, main section > *:first-child {
  margin-top: 0 !important;
}
main header > *:last-child, main section > *:last-child {
  margin-bottom: 0 !important;
}
main header h2, main header h3, main header h4, main section h2, main section h3, main section h4 {
  color: #33abc9;
  margin-top: 20px;
  margin-bottom: 10px;
  border-bottom: 2px solid #800080;
  padding-bottom: 5px;
}
main header h2, main section h2 {
  font-size: 1.8rem;
}
main header h3, main section h3 {
  font-size: 1.4rem;
}
main header h4, main section h4 {
  font-size: 1.1rem;
  border-bottom-width: 1px;
}
main header p, main section p {
  margin-top: 20px;
  margin-bottom: 0;
  text-align: justify;
  color: #ddd;
}
main header ul, main header ol, main section ul, main section ol {
  margin: 10px 0;
  padding-left: 20px;
}
main header ul li, main header ol li, main section ul li, main section ol li {
  margin-bottom: 5px;
}
main header pre, main section pre {
  background: #121212;
  /* Korrekte Code-Hintergrundfarbe */
  color: inherit;
  border-left: 5px solid #800080;
  padding: 10px 20px;
  font-family: monospace;
  font-size: 0.95rem;
  overflow-x: auto;
  margin-bottom: 20px;
  position: relative;
  border-radius: 8px;
}
main header pre[data-code]::before, main section pre[data-code]::before {
  content: attr(data-code);
  position: absolute;
  top: 0;
  right: 0;
  background: #800080;
  color: #fff;
  padding: 4px 7px;
  font-size: 0.75rem;
  border-radius: 8px;
  text-transform: uppercase;
  z-index: 1;
}
main header pre.code-block, main section pre.code-block {
  background: #121212;
  /* Konsistente Code-Hintergrundfarbe */
  color: #33abc9;
  padding: 10px 20px;
  overflow-x: auto;
  white-space: pre-wrap;
}
main header pre code, main section pre code {
  background: #121212;
  /* Konsistente Hintergrundfarbe */
  color: #33abc9;
  display: block;
  border-radius: 0;
}
main header code, main section code {
  background: #121212;
  /* Korrekte Hintergrundfarbe */
  color: #33abc9;
  padding: 2px 6px;
  /* Optimales Padding */
  border-radius: 8px;
  font-size: 0.9rem;
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}
