/* Huggenknubbels Blog – Dark + Mint (Nachbau des Grav-Designs) */

:root {
  --bg-page:      #1a1a1a;
  --bg-header:    #0a0a0a;
  --mint:         #8ce4c9;
  --mint-title:   #5ecfb4;
  --mint-button:  #a5e8d0;
  --text:         #cfcfcf;
  --text-muted:   #8f8f8f;
  --border:       #555;
  --border-light: #e8e8e8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: "Mulish", "Nunito", "Segoe UI", system-ui, -apple-system,
               "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--mint); }
a:hover { color: #b8f0dd; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid #262626;
  padding: 1.2rem 0 1.6rem;
}
.site-title {
  text-align: center;
  margin: 0 0 1.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-title a { color: var(--mint-title); text-decoration: none; }
.site-title a:hover { color: var(--mint); }

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.3em;
  margin-right: 0.4em;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #b5b5b5;
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.15s, color 0.15s;
}
.nav-btn svg { width: 1em; height: 1em; }
.nav-btn:hover { color: #fff; border-color: var(--border); }
.nav-btn.active { color: #fff; border-color: var(--border-light); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6em;
  height: 2.6em;
  margin-left: 0.4em;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: #b5b5b5;
  transition: border-color 0.15s, color 0.15s;
}
.icon-btn svg { width: 1.1em; height: 1.1em; }
.icon-btn:hover { color: #fff; border-color: var(--border-light); }

/* ---------- Postliste ---------- */
main.container { padding-top: 2.5rem; padding-bottom: 3rem; }

.post-teaser { margin-bottom: 3rem; }

.post-title { line-height: 1.25; margin: 0 0 0.35rem; }
h2.post-title { font-size: 1.7rem; }
h1.post-title { font-size: 2rem; margin-bottom: 0.5rem; }
.post-title a { color: var(--mint); text-decoration: none; }
.post-title a:hover { color: #b8f0dd; }

.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
}
.post-meta time::before {
  content: "";
  display: inline-block;
  width: 0.95em; height: 0.95em;
  margin-right: 0.35em;
  vertical-align: -0.12em;
  background: var(--text-muted);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"/></svg>') no-repeat center / contain;
}
.meta-sep { margin: 0 0.5em; }
.post-tags a {
  color: var(--mint);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.post-tags a:hover { text-decoration: underline; }

.read-more {
  display: inline-block;
  padding: 0.65em 1.5em;
  margin-top: 0.6rem;
  background: var(--mint-button);
  color: #2b2b2b;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.read-more:hover { background: #c3f2e0; color: #2b2b2b; }

/* ---------- Einzelpost ---------- */
.post-content h1, .post-content h2, .post-content h3 { color: var(--mint); }
.post-content img { max-width: 100%; height: auto; border-radius: 4px; }
.post-content blockquote {
  border-left: 3px solid var(--mint);
  margin-left: 0;
  padding-left: 1rem;
  color: var(--text-muted);
}
.post-content code {
  background: #0f0f0f;
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.post-content pre {
  background: #0f0f0f;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}
.post-content pre code { padding: 0; background: none; }

/* ---------- Kommentare ---------- */
.comments { margin-top: 4rem; border-top: 1px solid #333; padding-top: 1.5rem; }
.comments h2 { color: var(--mint); }
.comments-hint, .comments-loading, .comments-empty { color: var(--text-muted); }
.comment {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  background: #202020;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
}
.comment header {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.5rem;
}
.comment-avatar { width: 2.2em; height: 2.2em; border-radius: 50%; }
.comment-author { font-weight: 600; text-decoration: none; }
.comment-date {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.comment-body { overflow-wrap: anywhere; }

/* ---------- Pagination & Footer ---------- */
.pagination {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  color: var(--text-muted);
}
footer.container {
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid #262626;
}
footer a { color: var(--text-muted); }

::selection { background: var(--mint); color: #1a1a1a; }

@media (max-width: 640px) {
  .site-nav { justify-content: center; }
  h2.post-title { font-size: 1.4rem; }
}
