﻿/* ------------------------------------------------------------------ blog ---
   Uebersicht (/blog) und Artikelseite (/blog/<artikel>).
   Nur eigene nb-blog-* / nb-post-* Klassen, damit theme.css unberuehrt bleibt.
--------------------------------------------------------------------------- */

.nb-blog-head { margin-bottom: 18px; }
.nb-blog-intro { color: var(--nb-muted); font-size: 15px; max-width: 760px; margin-top: 8px; }

.nb-blog-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.nb-blog-topic {
  display: inline-flex; align-items: center; height: 32px; padding-inline: 14px;
  border: 1px solid var(--nb-line); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 700; color: var(--nb-ink); text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.nb-blog-topic:hover { border-color: var(--nb-orange); color: var(--nb-orange); }
.nb-blog-topic.is-active { background: var(--nb-orange); border-color: var(--nb-orange); color: #fff; }

.nb-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nb-blog-grid-3 { grid-template-columns: repeat(3, 1fr); }

.nb-blog-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--nb-line); border-radius: 4px; overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
}
.nb-blog-card:hover { border-color: #d9d9d9; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }

.nb-blog-card-media { display: block; aspect-ratio: 16 / 9; background: #f5f5f5; overflow: hidden; }
.nb-blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.nb-blog-card:hover .nb-blog-card-media img { transform: scale(1.03); }
.nb-blog-card-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #c9c9c9; font-size: 34px; }

.nb-blog-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }

.nb-blog-card-topic {
  align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--nb-orange); text-decoration: none;
}
.nb-blog-card-topic:hover { text-decoration: none; }

.nb-blog-card-title { font-size: 16px; font-weight: 800; line-height: 1.35; margin: 0; }
.nb-blog-card-title a { color: var(--nb-ink); text-decoration: none; }
.nb-blog-card-title a:hover { color: var(--nb-orange); }

.nb-blog-card-date { font-size: 12px; color: var(--nb-muted); }
.nb-blog-card-text { font-size: 14px; color: #555; line-height: 1.55; margin: 0; }

.nb-blog-card-more {
  margin-top: auto; padding-top: 8px; align-self: flex-start;
  font-size: 13px; font-weight: 700; color: var(--nb-orange); text-decoration: none;
}
.nb-blog-card-more:hover { text-decoration: none; }
.nb-blog-card-more i { font-size: 12px; }

/* ---------------------------------------------------------- blaettern ---
   Der Kern liefert <ul class="pagination"><li class="page-item">; ohne
   Regeln blieb daraus eine Punktliste. Optik wie in der Kategorieliste. */

.nb-blog-pager { margin-top: 26px; display: flex; justify-content: center; }
.nb-blog-pager ul.pagination { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.nb-blog-pager .page-item { margin: 0; }
.nb-blog-pager .page-item > a,
.nb-blog-pager .page-item > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--nb-line, #EAEAEA); border-left-width: 0;
  background: #fff; color: var(--nb-ink, #222); font-weight: 700; font-size: 14px;
  text-decoration: none;
}
.nb-blog-pager .page-item:first-child > a,
.nb-blog-pager .page-item:first-child > span { border-left-width: 1px; border-radius: 4px 0 0 4px; }
.nb-blog-pager .page-item:last-child > a,
.nb-blog-pager .page-item:last-child > span { border-radius: 0 4px 4px 0; }
.nb-blog-pager .page-item.active > a,
.nb-blog-pager .page-item.active > span,
.nb-blog-pager .page-item > a:hover { background: var(--nb-orange, #FF7700); border-color: var(--nb-orange, #FF7700); color: #fff; }
.nb-blog-results { text-align: center; margin-top: 10px; font-size: 13px; }

@media (max-width: 575px) {
  .nb-blog-pager .page-item > a,
  .nb-blog-pager .page-item > span { min-width: 36px; height: 38px; padding: 0 8px; }
}

/* -------------------------------------------------------------- artikel --- */

.nb-post { max-width: 860px; margin-inline: auto; }
.nb-post-head { margin-bottom: 16px; }
.nb-post-title { margin: 6px 0 8px; line-height: 1.25; }
.nb-post-meta { font-size: 13px; color: var(--nb-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.nb-post-cover { margin: 0 0 22px; border: 1px solid var(--nb-line); border-radius: 4px; overflow: hidden; }
.nb-post-cover img { width: 100%; height: auto; display: block; }

.nb-post-body { font-size: 15px; line-height: 1.7; color: #333; }
.nb-post-body h2 { font-size: 21px; font-weight: 800; margin: 28px 0 12px; color: var(--nb-ink); }
.nb-post-body h3 { font-size: 17px; font-weight: 800; margin: 22px 0 10px; }
.nb-post-body p { margin: 0 0 14px; }
.nb-post-body ul, .nb-post-body ol { margin: 0 0 16px; padding-left: 22px; }
.nb-post-body ul { list-style: disc; }
.nb-post-body ol { list-style: decimal; }
.nb-post-body li { margin-bottom: 6px; }
.nb-post-body a { color: var(--nb-orange); text-decoration: none; font-weight: 600; }
.nb-post-body strong { font-weight: 800; color: var(--nb-ink); }
.nb-post-body img { max-width: 100%; height: auto; border-radius: 4px; margin: 8px 0 18px; }
.nb-post-body blockquote { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--nb-orange); background: #fafafa; }
.nb-post-body hr { margin: 24px 0; border-top: 1px solid var(--nb-line); }
.nb-post-body iframe { max-width: 100%; }

.nb-post-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.nb-post-body th, .nb-post-body td { border: 1px solid var(--nb-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.nb-post-body thead th { background: #f7f7f7; font-weight: 800; }
.nb-post-body tbody tr:nth-child(even) { background: #fcfcfc; }

.nb-post-foot { margin-top: 26px; }

.nb-post-related { margin-top: 40px; }

@media (max-width: 1024px) {
  .nb-blog-grid, .nb-blog-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nb-blog-grid, .nb-blog-grid-3 { grid-template-columns: 1fr; }
  .nb-post-body { font-size: 15px; }
}

