/* custom.css */
body {
  background-color: #f8f9fa;
}
.card {
  margin-bottom: 1.5rem;
}

.card-img-top {
  background-color: #e9ecef;
}
.card {
  transition: transform 0.15s ease-in-out;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
}

/* Syntax-Highlighting */
pre code.hljs {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1rem;
  border-radius: 0.5rem;
  display: block;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.hljs-comment, .hljs-quote { color: #6a9955; }
.hljs-keyword, .hljs-selector-tag { color: #569cd6; }
.hljs-string, .hljs-regexp { color: #ce9178; }
.hljs-number { color: #b5cea8; }
.hljs-title { color: #dcdcaa; }
.hljs-function { color: #dcdcaa; }
.hljs-built_in { color: #4ec9b0; }
.hljs-symbol { color: #d16969; }
.hljs-literal { color: #d16969; }

/* Zeilennummern verbessern */
pre {
  counter-reset: line;
  position: relative;
}

pre code {
  padding-left: 4.5em !important;
}

pre code::before {
  content: counter(line) " ";
  counter-increment: line;
  position: absolute;
  left: 0.8em;
  color: #858585;
  text-align: right;
  width: 3em;
  user-select: none;
}