/* page-blog.css - Blog styles (banner, grid, post, TOC, body, figures, video, sources, author, callout, newsletter CTA, next article, responsive) */

  /* ══════════════════════════════════════
     BLOG
     ══════════════════════════════════════ */

  /* ══ Blog Banner ══ */
  .blog-banner {
    margin-top: var(--nav-height);
    position: relative;
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
  }

  .blog-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
  }

  .blog-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.3) 50%, transparent 100%);
  }

  .blog-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-bottom: 2rem;
  }

  .blog-banner-slug {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
  }

  .blog-banner h1 {
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
  }

  /* ══ Blog Grid (Übersichtsseite) ══ */
  .blog-listing {
    background: var(--bg-light);
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .blog-listing .container,
  .home-blog .container,
  .about-blog .container {
    max-width: 1300px;
  }

  .blog-grid:not(.carousel) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    text-align: left;
  }

  .blog-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
  }

  .blog-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.1);
  }

  .blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0f4c75);
  }

  .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

  .blog-card-image.blog-card-image-contain {
    background: #f0f2f5;
  }

  .blog-card-image-contain img {
    object-fit: contain;
    padding: 0.5rem;
  }

  .blog-card:hover .blog-card-image img {
    transform: scale(1.04);
  }

  .blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-muted);
  }

  .blog-card-tag {
    background: rgba(52, 211, 153, 0.12);
    color: #059669;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .blog-card h2,
  .blog-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 0.6rem;
  }

  .blog-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
  }

  .blog-card-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-top: 1rem;
    transition: color 0.2s;
  }

  .blog-card:hover .blog-card-link {
    color: #2563eb;
  }

  @media (max-width: 768px) {
    .blog-grid {
      grid-template-columns: 1fr;
      max-width: 480px;
      margin: 0 auto;
    }

    .blog-card-image {
      height: 180px;
    }

    .blog-banner {
      height: 220px;
    }

    .blog-banner-slug {
      font-size: 0.75rem;
    }
  }

  /* ══ Blog Post (Einzelartikel) ══ */
  .blog-post-banner {
    margin-top: var(--nav-height);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 3.5rem 2rem 2.5rem;
    min-height: 300px;
    overflow: hidden;
  }

  .blog-post-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
  }

  .blog-post-meta-top {
    margin-bottom: 1.5rem;
  }

  .blog-back-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
  }

  .blog-back-link:hover {
    color: #34d399;
  }

  .blog-post-banner h1 {
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
  }

  .blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
  }

  /* ══ Blog Post Layout (TOC fixed links, Body zentriert) ══ */
  article.blog-post {
    padding: 1.5rem 2rem 4rem;
  }

  .blog-post-layout {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
  }

  /* ══ Blog TOC (fixed am linken Viewport-Rand) ══ */
  .blog-toc {
    position: fixed;
    top: calc(var(--nav-height) + 2rem);
    left: max(1rem, calc((100vw - 680px) / 2 - 240px));
    width: 190px;
    z-index: 100;
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .blog-toc.blog-toc-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .blog-toc-inner {
    display: flex;
    flex-direction: column;
  }

  .blog-toc-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
  }

  .blog-toc-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-left: 2px solid var(--border-light);
    line-height: 1.4;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }

  .blog-toc-link:hover {
    color: var(--text-dark);
  }

  .blog-toc-link.active {
    color: #047857;
    font-weight: 700;
    border-left: 3px solid #34d399;
    background: rgba(52, 211, 153, 0.08);
    border-radius: 0 4px 4px 0;
  }

  /* Sub-Links (eingerückt) */
  .blog-toc-sub {
    display: flex;
    flex-direction: column;
  }

  .blog-toc-sublink {
    padding-left: 1.5rem;
    font-size: 0.74rem;
  }

  /* ══ Blog Post Body ══ */
  .blog-post-body {
    max-width: 680px;
    text-align: left;
  }

  .blog-lead {
    font-size: 1.15rem;
    color: #5c5347;
    font-style: italic;
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 2.5rem;
    padding: 0.8rem 1.2rem;
    background: #f5f0eb;
    border-left: 3px solid #c9b99a;
    border-radius: 2px;
  }

  .blog-post-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
  }

  .blog-post-body h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  .blog-post-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2.25rem;
    margin-bottom: 0.6rem;
    padding-left: 0.75rem;
    border-left: 3px solid #34d399;
  }

  .blog-post-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: #3a3a4e;
    margin-bottom: 1rem;
  }

  .blog-post-body ul,
  .blog-post-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
  }

  .blog-post-body li {
    font-size: 1rem;
    line-height: 1.8;
    color: #3a3a4e;
    margin-bottom: 0.35rem;
  }

  .blog-post-body blockquote {
    background: var(--bg-light);
    border-left: 3px solid #34d399;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
  }

  .blog-post-body a {
    color: var(--accent-blue);
    text-decoration: none;
  }

  .blog-post-body a:hover {
    text-decoration: underline;
  }

  /* Blog Figures */
  .blog-figure {
    margin: 1.5rem 0 2rem;
  }

  .blog-figure img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-light);
  }

  .blog-figure figcaption {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.5;
  }

  .blog-figure figcaption a {
    color: var(--text-muted);
    border-bottom: 1px dotted var(--border-light);
    text-decoration: none;
  }

  .blog-figure figcaption a:hover {
    color: var(--accent-blue);
    text-decoration: none;
  }

  .blog-post-body strong {
    color: var(--text-dark);
  }

  /* Video (Click-to-Play) */
  .blog-video {
    margin: 2rem 0 0.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    position: relative;
    cursor: pointer;
  }

  .blog-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .blog-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s, filter 0.2s;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  }

  .blog-video:hover .blog-video-play {
    transform: translate(-50%, -50%) scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  }

  .blog-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    inset: 0;
  }

  .blog-video-fallback {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
  }

  .blog-video-fallback a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dotted var(--border-light);
    transition: color 0.2s;
  }

  .blog-video-fallback a:hover {
    color: var(--accent-blue);
  }

  /* Sources */
  .blog-sources {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
  }

  .blog-sources h2 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
  }

  .blog-sources ol {
    padding-left: 1.25rem;
  }

  .blog-sources li {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
  }

  /* Author Box */
  .blog-author-box {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }

  .blog-author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
  }

  .blog-author-box p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 0;
  }

  /* Blog Callout Box */
  .blog-callout {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(52, 211, 153, 0.08);
    border-left: 4px solid #34d399;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
  }
  .blog-callout a {
    display: inline-block;
    margin-top: 0.5rem;
    color: #34d399;
    font-weight: 600;
    text-decoration: none;
  }
  .blog-callout a:hover {
    text-decoration: underline;
  }

  /* Newsletter CTA (lr-box Style) */
  .blog-newsletter-cta {
    margin-top: 3rem;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    overflow: hidden;
  }

  .blog-newsletter-icon {
    display: block;
    width: 2.8em;
    height: 2.8em;
    margin: 0 auto 1rem;
    filter: brightness(0) invert(1);
  }

  .blog-newsletter-cta h3 {
    color: #34d399;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    border-left: none;
    padding-left: 0;
  }

  .blog-newsletter-cta p {
    color: #94a3b8;
    margin-bottom: 1.75rem;
    line-height: 1.65;
    text-align: center;
  }

  .blog-newsletter-form .wpcf7-form p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
  }

  .blog-newsletter-form .wpcf7-form p br {
    display: none;
  }

  .blog-newsletter-form input[type="email"] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: #ffffff;
    font-size: 0.9rem;
    width: 260px;
    transition: border-color 0.2s;
  }

  .blog-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.35);
  }

  .blog-newsletter-form input[type="email"]:focus {
    border-color: #34d399;
    outline: none;
  }

  .blog-newsletter-form input[type="submit"] {
    background: var(--accent);
    color: #0F172A;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
  }

  .blog-newsletter-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
  }

  .blog-newsletter-form .wpcf7-response-output {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.4rem 0 0;
    padding: 0;
    border: none;
    text-align: center;
  }

  /* Next Article */
  .blog-next {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius);
    text-align: center;
  }

  .blog-next-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
  }

  .blog-next-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: #34d399;
    text-decoration: none;
    transition: color 0.2s;
  }

  .blog-next-link:hover {
    color: #5eeab4;
  }

  @media (max-width: 1200px) {
    .blog-toc {
      display: none;
    }
  }

  @media (max-width: 768px) {

    .blog-post-banner {
      padding: 2.5rem 1.25rem 2rem;
    }

    .blog-post-banner h1 {
      font-size: 1.5rem;
    }

    article.blog-post {
      padding: 2rem 1.25rem 3rem;
    }

    .blog-post-body h2 {
      font-size: 1.2rem;
    }

    .blog-post-body p,
    .blog-post-body li {
      font-size: 0.95rem;
    }

    .blog-author-box {
      flex-direction: column;
      text-align: center;
    }
  }

