/*
 * Styles für <privacy-yt>. Gehört EINMALIG in die index.html
 * (z. B. neben /style.css eingebunden), NICHT in die einzelnen
 * content/*.html-Fragmente.
 */

privacy-yt {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 6px;
}

.privacy-yt__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.privacy-yt__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(0, 0, 0, 0.75);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.privacy-yt__play:hover,
.privacy-yt__play:focus-visible {
  background: rgba(204, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.05);
}

.privacy-yt--loading .privacy-yt__play {
  opacity: 0.5;
  pointer-events: none;
}

.privacy-yt__frame {
  width: 100%;
  height: calc(100% - 26px);
  border: 0;
  display: block;
}

.privacy-yt__switch {
  display: block;
  width: 100%;
  height: 26px;
  background: #111;
  color: #999;
  border: none;
  border-top: 1px solid #2a2a2a;
  font-size: 0.75rem;
  cursor: pointer;
}

.privacy-yt__switch:hover {
  background: #1a1a1a;
  color: #ccc;
}

.privacy-yt__fallback {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 1.5rem;
  text-align: center;
  color: #eee;
  background: #1a1a1a;
}

.privacy-yt__warning {
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.privacy-yt__ytlink {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: #cc0000;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.privacy-yt__ytlink:hover {
  background: #a00000;
}

.privacy-yt__hint {
  font-size: 0.8rem;
  color: #aaa;
  max-width: 40ch;
  margin: 0;
}

.privacy-yt__hint a {
  color: #ccc;
}

/* Optionales Grid für mehrere Videos untereinander/nebeneinander im
   Artikel - nach Bedarf im jeweiligen content/*.html verwenden */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}