/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.md-header {
  background-color: #0d1117 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: none !important;
}

.md-header__title {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}

.md-tabs {
  background-color: #0d1117 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: #79c0ff !important;
}

.md-nav__item {
  font-size: 0.72rem;
}

.md-nav__link--active {
  color: #79c0ff !important;
}

/* ============================================
   HINTERGRUND
   ============================================ */

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0d1117;
  --md-default-bg-color--light: #161b22;
  --md-default-bg-color--lighter: #1c2128;
  --md-default-bg-color--lightest: #21262d;
}

.md-sidebar {
  background-color: #0d1117;
}

.md-content {
  background-color: #0d1117;
}

/* ============================================
   LINKS & AKZENTFARBE
   ============================================ */

.md-typeset a {
  color: #79c0ff;
}

.md-typeset a:hover {
  color: #a5d6ff;
}

/* ============================================
   INHALTSBREITE
   ============================================ */

.md-grid {
  max-width: 1440px;
}

/* ============================================
   CODE
   ============================================ */

code, pre {
  border-radius: 6px !important;
}

.md-typeset code {
  background-color: #161b22 !important;
}

.md-typeset pre {
  background-color: #161b22 !important;
}

/* ============================================
   ADMONITIONS
   ============================================ */

.admonition {
  border-radius: 6px !important;
}

/* ============================================
   TAG-LINKS (inline in Artikeln)
   ============================================ */

.md-typeset .md-tags .md-tag {
  border-radius: 20px !important;
  font-size: 0.75rem !important;
  padding: 4px 12px !important;
  background: rgba(121, 192, 255, 0.2) !important;
  border: 1px solid #79c0ff !important;
  color: #79c0ff !important;
  transition: all 0.2s !important;
}

.md-typeset .md-tags .md-tag:hover {
  background: rgba(121, 192, 255, 0.35) !important;
  color: #a5d6ff !important;
}

/* ============================================
   TAGS-SEITE: SUCHFELD
   ============================================ */

.tag-search-wrap {
  margin: 1.5rem 0 0.5rem;
}

.tag-search-wrap input {
  width: 100%;
  max-width: 360px;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 0.5px solid rgba(255,255,255,0.15);
  background: var(--md-code-bg-color);
  color: var(--md-default-fg-color);
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
}

.tag-search-wrap input:focus {
  border-color: #79c0ff;
}

/* ============================================
   TAGS-SEITE: CLOUD
   ============================================ */

#tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.25rem 0 2rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid #79c0ff;
  background: rgba(121, 192, 255, 0.2);
  color: #79c0ff;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.15s;
}

.tag-pill:hover {
  border-color: #a5d6ff;
  background: rgba(121, 192, 255, 0.35);
  color: #a5d6ff;
}

.tag-pill .count {
  font-size: 10px;
  opacity: 0.5;
}

.tag-pill.hidden {
  display: none !important;
}

.tag-pill.active {
  background: rgba(121, 192, 255, 0.35) !important;
  color: #cae8ff !important;
  border-color: #a5d6ff !important;
}

/* ============================================
   TAGS-SEITE: KATEGORIEN
   ============================================ */

.tag-section {
  margin-bottom: 2rem;
}

.tag-section-title {
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  opacity: 0.6;
}

.tag-section-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-section-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: all 0.15s;
}

.tag-section-tag:hover {
  border-color: #79c0ff;
  color: #79c0ff;
}

/* ============================================
   TAGS-SEITE: ARTIKEL-LISTE
   ============================================ */

.tag-results {
  margin-top: 1rem;
}

.tag-results-title {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1rem;
  color: #79c0ff;
}

.tag-results-title span {
  font-size: 0.75rem;
  font-weight: normal;
  opacity: 0.5;
  color: var(--md-default-fg-color);
}

.tag-articles {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tag-article-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  border: 0.5px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: var(--md-default-fg-color--light);
  font-size: 0.85rem;
  transition: all 0.15s;
}

.tag-article-card:hover {
  background: rgba(121, 192, 255, 0.06);
  border-color: rgba(121, 192, 255, 0.3);
  color: #79c0ff;
}

.tag-article-card .arrow {
  opacity: 0.3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}