/* Blog-Beiträge mit echten Inhalten (Karten „Live-Blogbeiträge …“, „Live-Projekte …“, „100100365“, „Konzeptseite CU.Office“, 13.11.2026).
   Ergänzt assets/post.css nur um das, was die Vorlage noch nicht kann: Video oben, Hochformat-Bilder,
   Bilderpaare, YouTube erst nach Klick (youtube-nocookie) und die Projekt-Eckdaten. post.css bleibt unverändert. */

.post-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: var(--gray-light);
}

/* >>> Bilder im Text im eigenen Seitenverhältnis (Karte „Bilder nicht anschneiden“, 18.11.2026, Alex/MacBook).
   Ruben: Bilder im Text werden nie angeschnitten. Vorher erzwangen .bild-hoch und .bilder-paar 4:5 mit object-fit: cover
   (z. B. Hochformat 2:3 um 17 % beschnitten, quadratisches Paar um 20 %). Jetzt: jedes Bild ganz, Höhe aus dem Bild selbst.
   Nur die Raster-Kacheln (Blog-Liste, Weitere Projekte) bleiben einheitlich hochkant, die stehen nicht hier. */

/* Hochformat im Text: ganz, im eigenen Format; höchstens 40rem breit (post.css) */
/* aspect-ratio: revert-layer = Platz vorab aus width/height am <img> (sonst bis zum Laden 0 px hoch, die Seite springt) */
.post-body figure.bild-hoch :is(img, video) { aspect-ratio: auto; aspect-ratio: revert-layer; height: auto; object-fit: contain; background: none; }

/* Zwei Bilder nebeneinander (ab 600 px) in gleicher Höhe, jedes ganz: Die Breite folgt dem Seitenverhältnis
   (flex-grow = --ar = Breite / Höhe am <img>; ohne Angabe 1, das passt für zwei Bilder im selben Format).
   Unter 600 px untereinander, jedes ganz in voller Breite. Darunter eine Bildunterschrift. Vorbild: der-wolf-bilder.css. */
.post-body .bilder-paar { display: flex; flex-direction: column; gap: 12px; }
.post-body .bilder-paar :is(img, video) { display: block; width: 100%; min-width: 0; aspect-ratio: auto; aspect-ratio: revert-layer; height: auto; object-fit: contain; background: none; }
@media (min-width: 600px) {
  .post-body .bilder-paar { flex-flow: row wrap; align-items: flex-start; }
  .post-body .bilder-paar > :is(img, video) { flex: var(--ar, 1) 1 0; width: auto; }
}
.post-body .bilder-paar > figcaption { flex: 0 0 100%; }
/* <<< Bilder im Text im eigenen Seitenverhältnis */

/* Kundenstimme im Projekt */
.post-body blockquote.stimme { margin: 2em 0; }

/* Links in den Metadaten (Kunde, Presse) */
.post-meta a { color: inherit; }

/* YouTube: lädt erst nach Klick, über youtube-nocookie.com (assets/blog-beitraege-yt.js) */
.yt-klick {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.yt-klick img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.yt-klick:hover img,
.yt-klick:focus-visible img { opacity: 0.45; }
.yt-klick__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
}
.yt-klick__play svg { width: 26px; height: 26px; margin-left: 4px; }
.yt-klick__hinweis {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-size: 12px;
  line-height: 1.4;
}
.yt-rahmen {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
}

/* Bildunterschrift unter Video bzw. YouTube oben */
.post-media figcaption { margin-top: 8px; font-size: 13px; color: var(--gray-dark); }
@media (max-width: 480px) {
  .yt-klick__play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .yt-klick__play svg { width: 20px; height: 20px; }
  .yt-klick__hinweis { font-size: 11px; left: 12px; right: 12px; bottom: 10px; }
}

/* Offene Stellen sichtbar gelb (nur dev, vor dem Go-live entfernen) – für alle Beitragsseiten nutzbar: <mark class="offen">[OFFEN …]</mark> */
mark.offen { background: #fff1a8; color: inherit; padding: 0 0.2em; border-radius: 3px; font-size: 0.9em; }

/* Karte „Live-Projekte von ceeju.io …“ (MacBook, 13.11.2026): Bilder haben jetzt width/height (gegen Springen beim Laden).
   Damit das Höhen-Attribut das Bild oben nicht verzerrt: Höhe aus dem Seitenverhältnis. bild-ganz = Bild ungeschnitten
   (z. B. Geräte-Ansichten, die im 16:9-Zuschnitt oben abgeschnitten wären). */
.post-media img { height: auto; }
.post-body figure.bild-ganz :is(img, video) { aspect-ratio: auto; aspect-ratio: revert-layer; } /* revert-layer: Platz vorab aus width/height (18.11.2026) */

/* >>> Play-Knopf je Video verschiebbar (Karte „Abnahme – 100-100-365“, Video-Vorschaubild A, 18.11.2026, Alex/MacBook).
   Standard bleibt mittig. Am Element z. B. style="--play-x: 25%; --play-x-handy: 18%", damit der Knopf kein Gesicht verdeckt;
   --play-x-handy gilt unter 768 px (dort 4:3), sonst --play-x. Ebenso --play-y / --play-y-handy. */
.yt-klick__play { left: var(--play-x, 50%); top: var(--play-y, 50%); }
@media (max-width: 767.98px) {
  .yt-klick__play { left: var(--play-x-handy, var(--play-x, 50%)); top: var(--play-y-handy, var(--play-y, 50%)); }
}
/* <<< Play-Knopf je Video verschiebbar */
