/* ============================================================
   LIONIST MEDIA — Blog-Ergänzungen
   Nur Blog-spezifische Klassen; alle Tokens (Farben, Fonts,
   Abstände) kommen aus lionist.css / lionist-light.css.
   Wird ausschließlich von den generierten /blog/-Seiten geladen.
   ============================================================ */

/* ---------- Artikel-Layout ---------- */
.blog-article-sec { background: var(--paper); color: var(--ink); }
.theme-light .blog-article-sec { background: #FFFFFF; }
.blog-article { max-width: 720px; margin: 0 auto; }

.blog-h1 {
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.008em; margin-top: 20px;
}
.blog-meta {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute);
}
.blog-meta-sep { color: var(--gold); }

/* ---------- Artikel-Typografie: Lesbarkeit vor Dichte ---------- */
.blog-content { margin-top: 40px; font-size: 17.5px; line-height: 1.75; color: var(--ink-soft); }
.blog-content p { margin: 0 0 1.35em; }
.blog-content h2 {
  font-size: clamp(21px, 2.2vw, 27px); line-height: 1.2; text-transform: uppercase;
  letter-spacing: 0.005em; margin: 1.9em 0 0.75em; color: var(--ink);
}
.blog-content h3 {
  font-size: clamp(17.5px, 1.7vw, 20px); line-height: 1.3; font-weight: 700;
  margin: 1.6em 0 0.6em; color: var(--ink);
}
.blog-content ul, .blog-content ol { margin: 0 0 1.35em; padding-left: 1.3em; }
.blog-content li { margin-bottom: 0.5em; }
.blog-content a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.blog-content a:hover { color: var(--gold); }
.blog-content strong { color: var(--ink); }
/* Grafiken dürfen breiter sein als der Textlauf (~720px): Breakout auf 900px,
   zentriert; auf Mobile volle Breite. 16:9-Grafiken landen so bei ~506px Höhe
   auf Desktop (> geforderte ~380px Mindesthöhe). */
.blog-figure {
  width: min(900px, calc(100vw - 48px));
  margin: 2.2em 0 2.2em calc((100% - min(900px, calc(100vw - 48px))) / 2);
}
.blog-figure img { border-radius: 8px; width: 100%; }
.blog-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-mute); text-align: center; }

.blog-backlink { margin-top: 48px; font-family: var(--display); font-weight: 600; font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.blog-backlink a { color: var(--gold-deep); text-decoration: none; }
.blog-backlink a:hover { color: var(--gold); }

/* ---------- BILD-HINWEIS-Platzhalter (nur bis das Bild da ist) ---------- */
.bild-hinweis {
  margin: 2em 0; padding: 20px 22px; border: 2px dashed var(--gold);
  border-radius: 8px; background: rgba(212, 175, 55, 0.08);
}
.bild-hinweis-label {
  display: inline-block; font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px;
}
.bild-hinweis p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Video-Einbettung (klick-aktiviert, Klaro-Consent) ---------- */
.blog-video {
  position: relative; margin: 2.2em 0; aspect-ratio: 16 / 9; border-radius: 8px;
  overflow: hidden; cursor: pointer; background: var(--panel-2);
  box-shadow: 0 30px 60px -30px rgba(20, 16, 6, 0.35);
}
/* contain statt cover: Thumbnails enthalten Text; Restfläche dunkel wie ein Player
   (relevant, wenn YouTube nur das 4:3-hqdefault liefert). */
.blog-video img { width: 100%; height: 100%; object-fit: contain; background: #1C1C1A; }
.blog-video-thumb-fallback {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(212,175,55,0.25) 0%, #1C1C1A 70%);
}
.blog-video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 48px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; background: var(--gold-grad); color: #000;
  box-shadow: 0 16px 38px -12px rgba(212, 175, 55, 0.7); transition: transform 0.25s;
}
.blog-video:hover .blog-video-play { transform: translate(-50%, -50%) scale(1.07); }
.blog-video-hint {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.85); text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}
.blog-video.is-playing { cursor: default; }

/* Consent-Overlay: gleiche Optik wie .thumb-play-Overlay in lionist-light.css,
   dort aber auf .thumb-play gescoped — hier für .blog-video gespiegelt. */
.blog-video .yt-consent-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 22px;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(2px);
  color: #fff; text-align: center;
  z-index: 2;
}
.blog-video .yt-consent-text { margin: 0; font-size: 14.5px; line-height: 1.45; max-width: 44ch; }
.blog-video .yt-consent-btn {
  font-family: var(--display); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent; color: #fff; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.blog-video .yt-consent-btn:hover { background: var(--gold); color: #1a1407; border-color: var(--gold); }
.blog-video .yt-consent-overlay[aria-hidden="true"] { display: none; }
.blog-video .blog-video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- FAQ: leicht abgesetzt ---------- */
.blog-faq {
  margin: 2.4em 0; padding: 28px clamp(20px, 3vw, 32px); border-radius: 8px;
  background: var(--paper); border: 1px solid var(--hr-l);
}
.theme-light .blog-faq { background: #F4F1E9; }
.blog-faq > h2 { margin-top: 0; }
.blog-faq-item { border-top: 1px solid var(--hr-l); padding-top: 1.1em; margin-top: 1.1em; }
.blog-faq-item:first-of-type { border-top: 0; }
.blog-faq-q { margin: 0 0 0.4em !important; }
.blog-faq-a p:last-child { margin-bottom: 0; }

/* ---------- Weiterlesen-Box ---------- */
.blog-rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
@media (max-width: 760px) { .blog-rel-grid { grid-template-columns: 1fr; } }
.blog-rel-card { display: block; text-decoration: none; transition: transform 0.25s, box-shadow 0.25s; }
.blog-rel-card h3 { margin: 14px 0 10px; text-transform: uppercase; }
.blog-rel-card p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--ink-mute); }

.blog-card-meta {
  display: block; font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute);
}

/* ---------- Übersichtsseite ---------- */
.blog-list-sec { background: var(--paper); color: var(--ink); }
.theme-light .blog-list-sec { background: #FFFFFF; }
.blog-list-sec .sec-head .lead { max-width: 640px; }

/* Karten-Raster: 2 Spalten auf Desktop + Tablet (3 wären für Thumbnails mit
   Text zu gedrängt), 1 Spalte auf Mobile. Hover kommt von .pcard:hover
   (lionist.css: Schatten + Anhebung), die ganze Karte ist ein <a>. */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; padding: 24px 22px 26px; }
.blog-card h2 {
  margin: 14px 0 8px; text-transform: uppercase;
  font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.22;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card p {
  margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--ink-mute);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-body { display: block; }

/* Thumbnail immer vollständig sichtbar: fester 16:9-Container, contain statt
   cover (YouTube-Thumbnails enthalten Text — nichts darf abgeschnitten werden),
   Restfläche im hellen Seitenton. Karten sind durchgehend gestapelt:
   Bild oben in voller Kartenbreite, Text darunter. */
.blog-card-thumb {
  position: relative; display: block; margin: -24px -22px 18px; overflow: hidden;
  aspect-ratio: 16 / 9; background: #FBFAF7;
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Neuester Artikel: Featured-Karte über volle Breite oben, danach das Raster.
   max-height bremst das volle-Breite-Bild; contain hält es komplett sichtbar. */
.blog-card-featured { grid-column: 1 / -1; padding: 30px 28px 32px; }
.blog-card-featured .blog-card-thumb { aspect-ratio: auto; height: clamp(240px, 34vw, 480px); margin: -30px -28px 20px; }
.blog-card-featured h2 { -webkit-line-clamp: 3; }
.blog-card-featured p { -webkit-line-clamp: 3; }
@media (min-width: 821px) {
  .blog-card-featured h2 { font-size: clamp(21px, 2vw, 26px); }
  .blog-card-featured p { font-size: 16px; }
}
