/* ==== Top-Video: full-width bis 1799px ==== */
.post-top-video {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.post-top-video__ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}
.post-top-video__ratio iframe,
.post-top-video__ratio embed {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important; /* übersteuert globale iframe-Regeln */
  border: 0;
  display: block;
}

/* Hero nur bei YouTube-Posts ausblenden */
body.has-top-video .single-hero-image { display: none !important; }

/* ≥1800px: zentriert, max 1170px */
@media (min-width: 1800px) {
  .post-top-video {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
  }
}

/* ==== Consent-Platzhalter ==== */
.yt-consent { position: relative; width: 100%; max-width: 100%; margin: 1rem 0; }
.yt-consent__inner {
  position: relative; width: 100%; padding-top: 56.25%;
  background-size: cover; background-position: center;
  border-radius: 8px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.yt-consent iframe {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important;
  border: 0; display: block;
}
.yt-consent__btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  padding: .7rem 1rem; border-radius: 999px; border: 0; cursor: pointer;
  background: #ff0000; color: #fff; font-weight: 600;
}
.yt-consent__note {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .75rem;
  font-size: .85rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65));
  text-align: center;
}

/* Top-Video ohne Rundungen */
.post-top-video .yt-consent,
.post-top-video iframe { border-radius: 0; }

/* ==== Form/Consent Kleinkram ==== */
.comment-form-cookies-consent { display: flex; align-items: baseline; font-weight: 300; }
#wp-comment-cookies-consent { margin-right: 5px; }
label["wp-comment-cookies-consent"], .mc4wp-checkbox-wp-comment-form { font-weight: 300 !important; }
#comments label { font-weight: 300; }

/* ==== Eingebettete YouTube-IFRAMES im Content (NICHT Top-Video/Consent) ==== */
.entry-content .wp-block-embed-youtube iframe,
.entry-content iframe[src*="youtube.com"],
.entry-content iframe[src*="youtu.be"] {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  display: block;
  /* kein object-fit nötig */
}
