body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; }
.wrap { max-width: 980px; margin: 0 auto; padding: 18px; }
.bar { border-bottom: 1px solid #e6e6e6; background: #fafafa; }
.bar .wrap { display:flex; align-items:center; justify-content:space-between; gap:16px; }
nav a { margin-left: 12px; color:#333; text-decoration:none; }
nav a:hover { text-decoration:underline; }
.list { list-style:none; padding:0; margin:0; }
.list li { padding: 12px 0; border-bottom: 1px solid #eee; }
.muted { color:#666; font-size: 0.92rem; margin-top: 4px; }
.tags { margin-top: 6px; display:flex; gap:6px; flex-wrap:wrap; }
.tag { font-size: 0.8rem; padding: 2px 8px; border:1px solid #ddd; border-radius: 999px; color:#444; background:#fff; }
.code { background:#0b0f14; color:#d7e1ea; padding:14px; border-radius: 10px; overflow:auto; }
.card { border:1px solid #eee; padding:12px; border-radius: 10px; background:#fff; }

/* Markdown */
.md h1, .md h2, .md h3 { margin-top: 1.2em; }
.md p, .md ul, .md ol, .md blockquote { line-height: 1.55; }
.md a { text-decoration: underline; }
.md blockquote { border-left: 4px solid #ddd; padding-left: 12px; color: #444; margin-left: 0; }

/* Highlight.php uses hljs classes */
pre.code, pre.hljs {
  background:#0b0f14;
  color:#d7e1ea;
  padding:14px;
  border-radius:10px;
  overflow:auto;
}
code.hljs { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

/* A tiny readable default for tokens (optional but nice) */
.hljs-keyword, .hljs-selector-tag, .hljs-literal { font-weight: 600; }
.hljs-comment { opacity: 0.7; font-style: italic; }

.search { display:flex; gap:10px; align-items:center; margin: 14px 0; }
.search input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
}
.search button {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.search .clear { color:#333; text-decoration: none; border-bottom: 1px dotted #999; }
.search .clear:hover { border-bottom-style: solid; }

.btn {
  display:inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  text-decoration:none;
  color:#111;
  background:#fff;
}
.btn:hover { background:#f4f4f4; }

.search select {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background:#fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cardlink { text-decoration:none; color: inherit; }
.card { border:1px solid #eee; padding:12px; border-radius: 14px; background:#fff; }
.card:hover { border-color:#ddd; box-shadow: 0 1px 8px rgba(0,0,0,0.04); }

.cardtop { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.pill {
  font-size: 0.75rem;
  padding: 2px 8px;
  border: 1px solid #ddd;
  border-radius: 999px;
  color:#444;
  background:#fff;
  white-space: nowrap;
}

button {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
button:hover { background:#f4f4f4; }

.table { width:100%; border-collapse: collapse; }
.table th, .table td { text-align:left; padding: 10px 8px; border-bottom: 1px solid #eee; }
.table th { background:#fafafa; }

.grid2 {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.list.compact li { padding: 10px 0; }
.list.compact { margin: 0; }
.card h2 { font-size: 1.1rem; }

.check {
  display:flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background:#fff;
  font-size: 0.95rem;
}
.check input { margin:0; }

.codewrap { margin: 14px 0; }
.codetop {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #1b2530;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #0b0f14;
  color: #d7e1ea;
  font-size: 0.9rem;
}
.codelang { opacity: 0.85; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.codeactions { display:flex; gap: 8px; align-items:center; }

.copybtn {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #233141;
  background: transparent;
  color: #d7e1ea;
  cursor: pointer;
  text-decoration: none; 
  display:inline-block;
}
.copybtn:hover { background: rgba(255,255,255,0.06); }

.codepermalink {
  display:inline-block;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid #233141;
  color: #d7e1ea;
  text-decoration:none;
}
.codepermalink:hover { background: rgba(255,255,255,0.06); }

/* Damit <pre> optisch ans Header andockt */
pre.code, pre.hljs {
  border-radius: 0 0 10px 10px;
  margin-top: 0;
}
