/* =========================================
   style.new-blog.css — CI 2026 rev.2
   Echte Klassen: .blog-card-hover + .blog-content
   Scope: .theme-new
   ========================================= */

/* ════════════════════════════════════════
   BLOG-INDEX (/news)
   Echte Klassen: .blog-card-hover (Bootstrap .card)
   ════════════════════════════════════════ */

/* Übergeordneter Container — kein eigener, Bootstrap .container */
.theme-new .container > h1:first-of-type {
  font-family: var(--skw-font);
  font-size: var(--skw-fs-h1);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--skw-ink);
  margin-bottom: 28px;
}

/* Blog-Cards (.card.blog-card-hover) */
.theme-new .blog-card-hover {
  background: var(--skw-surface);
  border: 1px solid var(--skw-border) !important;
  border-radius: var(--skw-radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--skw-shadow-sm);
  transition: box-shadow var(--skw-dur) var(--skw-ease),
              transform var(--skw-dur) var(--skw-ease);
}

.theme-new .blog-card-hover:hover {
  box-shadow: var(--skw-shadow-md);
  transform: translateY(-2px);
}

/* Bild — 16:9 */
.theme-new .blog-card-hover .card-img-top {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  background: var(--skw-surface-2);
  transition: transform var(--skw-dur-slow) var(--skw-ease);
}
.theme-new .blog-card-hover:hover .card-img-top { transform: scale(1.03); }

.theme-new .blog-card-hover .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Datum (<small class="text-muted">) */
.theme-new .blog-card-hover .card-body small.text-muted {
  font-size: var(--skw-fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--skw-accent) !important;
}

/* Titel (<h5 class="card-title">) */
.theme-new .blog-card-hover .card-title {
  font-family: var(--skw-font);
  font-size: var(--skw-fs-h3);
  font-weight: 700;
  color: var(--skw-ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

/* Link (<a class="stretched-link">) */
.theme-new .blog-card-hover .stretched-link {
  color: var(--skw-ink);
  text-decoration: none;
}
.theme-new .blog-card-hover .stretched-link:hover { color: var(--skw-accent); }

/* Excerpt (<p class="card-text">) */
.theme-new .blog-card-hover .card-text {
  font-size: var(--skw-fs-small);
  color: var(--skw-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* ── Dark ── */
[data-bs-theme="dark"] .theme-new .blog-card-hover {
  background: var(--skw-surface);
  border-color: var(--skw-border) !important;
}
[data-bs-theme="dark"] .theme-new .blog-card-hover .card-title { color: var(--skw-ink); }


/* ════════════════════════════════════════
   BLOG-ARTIKEL (/news/<slug>)
   Echte Klasse: .blog-content (Markdown-Output)
   Kein Wrapper — Typografie direkt auf <article>
   ════════════════════════════════════════ */

/* Artikel-Container */
.theme-new article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 80px;
  font-family: var(--skw-font);
}

/* H1 Titel */
.theme-new article > h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--skw-ink);
  text-wrap: balance;
  margin-bottom: 10px;
}

/* Meta-Zeile (datum) */
.theme-new article > small.text-muted {
  font-size: var(--skw-fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--skw-accent) !important;
  display: block;
  margin-bottom: 18px;
}

/* Hero-Bild */
.theme-new article > img.img-fluid {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--skw-radius-xl);
  box-shadow: var(--skw-shadow-md);
  margin-bottom: 32px;
}

/* Markdown-Body (.blog-content) */
.theme-new .blog-content {
  font-family: var(--skw-font);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--skw-text);
}

.theme-new .blog-content h2 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--skw-ink);
  margin: 40px 0 14px;
  line-height: 1.2;
  text-wrap: balance;
}

.theme-new .blog-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--skw-ink);
  margin: 28px 0 10px;
  line-height: 1.3;
}

.theme-new .blog-content p {
  margin-bottom: 18px;
  text-wrap: pretty;
}

.theme-new .blog-content a {
  color: var(--skw-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color var(--skw-dur-fast);
}
.theme-new .blog-content a:hover { color: var(--skw-accent-h); }

.theme-new .blog-content ul,
.theme-new .blog-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.theme-new .blog-content li { margin-bottom: 6px; line-height: 1.65; }

.theme-new .blog-content img {
  max-width: 100%;
  border-radius: var(--skw-radius-lg);
  margin: 24px 0;
  box-shadow: var(--skw-shadow-md);
}

.theme-new .blog-content figure { margin: 24px 0; }
.theme-new .blog-content figcaption {
  font-size: var(--skw-fs-small);
  color: var(--skw-text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.theme-new .blog-content blockquote {
  border-left: 3px solid var(--skw-accent);
  margin: 24px 0;
  padding: 14px 20px;
  background: rgba(99,102,241,0.05);
  border-radius: 0 var(--skw-radius) var(--skw-radius) 0;
  color: var(--skw-ink);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.theme-new .blog-content blockquote p { margin: 0; }

.theme-new .blog-content code {
  font-family: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.875em;
  background: var(--skw-surface-2);
  color: var(--skw-accent);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--skw-border);
}

.theme-new .blog-content pre {
  background: #0F0F23;
  border-radius: var(--skw-radius-lg);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.theme-new .blog-content pre code {
  background: none;
  border: none;
  color: #E2E8F0;
  font-size: 0.875rem;
  padding: 0;
}

/* ── Dark ── */
[data-bs-theme="dark"] .theme-new .blog-content blockquote { background: rgba(99,102,241,0.08); }
[data-bs-theme="dark"] .theme-new .blog-content code { background: var(--skw-surface-2); }
[data-bs-theme="dark"] .theme-new article > h1 { color: var(--skw-ink); }
