/* =========================================================
   DATENSCHUTZFREUNDLICHE ZWEI-KLICK-VIDEOEINBINDUNG
   YouTube und TED – ohne Vorschaubild und ohne externe Verbindung
   vor der ausdrücklichen Zustimmung
   ========================================================= */

.yv2-video {
  width: 100%;
  max-width: var(--site-content-width, 780px);
  margin: 1.6rem 0 2rem;
  overflow: hidden;
  color: var(--site-text, #172033);
  background: var(--site-card-bg, #fff);
  border: 1px solid var(--site-border, rgb(0 62 121 / 16%));
  border-radius: var(--site-radius, 14px);
  box-shadow: var(--site-shadow-sm, 0 4px 14px rgb(0 35 80 / 6%));
}

.yv2-video [hidden] {
  display: none !important;
}

.yv2-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
  padding: 0.82rem 1rem;
  background: var(--site-card-bg, #fff);
  border-bottom: 1px solid var(--site-border, rgb(0 62 121 / 16%));
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
}

.yv2-title-label {
  flex: 0 0 auto;
  color: var(--site-video-accent, var(--site-accent, #e75112));
  font-weight: 800;
}

.yv2-title-text {
  min-width: 0;
  color: var(--site-primary-dark, #062d5c);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.yv2-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: #0b1726;
}

.yv2-placeholder,
.yv2-player,
.yv2-iframe,
.yv2-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Rein grafischer Platzhalter: kein Bild, kein Drittanbieterabruf. */
.yv2-placeholder {
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 28%, rgb(255 168 71 / 68%) 0 4%, transparent 12%),
    radial-gradient(circle at 78% 34%, rgb(231 81 18 / 62%) 0 5%, transparent 14%),
    radial-gradient(circle at 52% 76%, rgb(128 144 35 / 42%) 0 4%, transparent 15%),
    radial-gradient(circle at 60% 24%, rgb(107 151 224 / 50%) 0 5%, transparent 18%),
    linear-gradient(135deg, #071a35 0%, #173a72 48%, #091b34 100%);
}

.yv2-placeholder::before,
.yv2-placeholder::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(24px, 7%, 42px);
  background:
    repeating-linear-gradient(
      90deg,
      var(--site-video-accent, var(--site-accent, #e75112)) 0 6%,
      #fff 6% 9%,
      #102d5c 9% 15%
    );
  border-color: rgb(255 255 255 / 42%);
  border-style: solid;
  opacity: 0.9;
}

.yv2-placeholder::before {
  top: 0;
  border-width: 0 0 2px;
}

.yv2-placeholder::after {
  bottom: 0;
  border-width: 2px 0 0;
}

.yv2-placeholder__screen {
  display: grid;
  place-items: center;
  width: clamp(92px, 18vw, 142px);
  aspect-ratio: 1;
  border: clamp(5px, 0.7vw, 8px) solid rgb(255 255 255 / 88%);
  border-radius: 50%;
  background: rgb(3 17 34 / 28%);
  box-shadow: 0 12px 34px rgb(0 0 0 / 35%);
}

.yv2-placeholder__play {
  width: 0;
  height: 0;
  margin-left: 10%;
  border-top: clamp(18px, 3.5vw, 31px) solid transparent;
  border-bottom: clamp(18px, 3.5vw, 31px) solid transparent;
  border-left: clamp(29px, 5vw, 48px) solid rgb(255 255 255 / 92%);
  filter: drop-shadow(0 4px 8px rgb(0 0 0 / 25%));
}

.yv2-player {
  z-index: 2;
  background: #000;
}

.yv2-iframe {
  display: block;
  margin: 0;
  background: #000;
  border: 0;
}

.yv2-overlay {
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.75rem);
  text-align: center;
}

.yv2-overlay-load {
  background:
    radial-gradient(circle at center, rgb(3 13 25 / 4%) 0%, rgb(3 13 25 / 20%) 48%, rgb(3 13 25 / 58%) 100%);
}

.yv2-overlay-consent,
.yv2-overlay-error {
  background: rgb(3 13 25 / 90%);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.yv2-load-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: min(88%, 440px);
  margin: 0;
  padding: 1rem 1.15rem;
  color: #fff;
  background: rgb(5 20 37 / 78%);
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 34%);
  text-align: center;
}

.yv2-load-btn.btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 180px;
  min-height: 48px;
  margin: 0;
  padding: 0.7rem 1.25rem;
  color: #fff;
  background: var(--site-video-cta, var(--site-accent, #e75112));
  border: 2px solid rgb(255 255 255 / 96%);
  border-radius: var(--site-radius-sm, 8px);
  box-shadow: 0 8px 22px rgb(0 0 0 / 34%), 0 0 0 4px rgb(255 255 255 / 8%);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.yv2-load-btn.btn.btn-primary:hover,
.yv2-load-btn.btn.btn-primary:focus-visible {
  color: #fff;
  filter: brightness(0.9);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgb(0 0 0 / 40%), 0 0 0 5px rgb(255 255 255 / 14%);
}

.yv2-load-btn.btn.btn-primary:focus-visible,
.yv2-continue.btn.btn-primary:focus-visible,
.yv2-hide:focus-visible,
.yv2-provider-link:focus-visible,
.yv2-overlay-error .btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.yv2-play-icon {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}

.yv2-load-note {
  max-width: 370px;
  margin: 0;
  color: rgb(255 255 255 / 94%);
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.45;
  text-shadow: 0 1px 3px rgb(0 0 0 / 60%);
}

.yv2-provider-link {
  position: absolute;
  left: 0.8rem;
  bottom: 0.75rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.4rem 0.62rem;
  color: #fff;
  background: rgb(0 0 0 / 72%);
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.yv2-provider-link:hover,
.yv2-provider-link:focus-visible {
  color: #fff;
  background: rgb(0 0 0 / 92%);
  transform: translateY(-1px);
}

.yv2-provider-icon {
  position: relative;
  width: 20px;
  height: 14px;
  background: #f00;
  border-radius: 4px;
}

.yv2-provider-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #fff;
  transform: translate(-42%, -50%);
}

.yv2-provider-link--ted {
  background: rgb(220 0 0 / 88%);
  letter-spacing: 0.03em;
}

.yv2-consent-box {
  width: min(100%, 520px);
  max-height: calc(100% - 0.25rem);
  overflow-y: auto;
  padding: 1.2rem 1.3rem;
  color: var(--site-text, #172033);
  background: rgb(255 255 255 / 98%);
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: var(--site-radius, 14px);
  box-shadow: 0 18px 44px rgb(0 0 0 / 44%);
  text-align: left;
}

.yv2-consent-headline {
  margin: 0 0 0.55rem;
  color: var(--site-primary-dark, #062d5c);
  font-size: clamp(1.08rem, 2.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
}

.yv2-consent-text {
  margin: 0 0 1rem;
  color: var(--site-text, #172033);
  font-size: 0.95rem;
  line-height: 1.55;
}

.yv2-consent-text a {
  color: var(--site-primary, #003e79);
  font-weight: 700;
}

.yv2-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.yv2-continue.btn.btn-primary,
.yv2-overlay-error .btn.btn-primary {
  min-height: 44px;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--site-primary, #003e79);
  border-color: var(--site-primary, #003e79);
  border-radius: var(--site-radius-sm, 8px);
  font-weight: 800;
}

.yv2-continue.btn.btn-primary:hover,
.yv2-continue.btn.btn-primary:focus-visible,
.yv2-overlay-error .btn.btn-primary:hover,
.yv2-overlay-error .btn.btn-primary:focus-visible {
  color: #fff;
  filter: brightness(1.08);
}

.yv2-hide {
  min-height: 44px;
  padding: 0.62rem 0.78rem;
  color: var(--site-primary, #003e79);
  background: transparent;
  border: 0;
  border-radius: var(--site-radius-sm, 8px);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.yv2-hide:hover,
.yv2-hide:focus-visible {
  color: var(--site-accent, #e75112);
  background: var(--site-soft-accent, #fff5ef);
}

.yv2-fallback,
.yv2-noscript {
  margin: 1rem 0;
}

@supports not (aspect-ratio: 16 / 9) {
  .yv2-stage {
    height: 0;
    padding-bottom: 56.25%;
  }
}

@media (max-width: 575.98px) {
  .yv2-video {
    margin: 1.35rem 0 1.7rem;
    border-radius: 10px;
  }

  .yv2-heading {
    display: block;
    padding: 0.68rem 0.8rem;
    font-size: 0.925rem;
    line-height: 1.4;
  }

  .yv2-title-label {
    display: inline;
    margin-right: 0.18rem;
  }

  .yv2-title-text {
    display: inline;
  }

  .yv2-overlay {
    padding: 0.55rem;
  }

  .yv2-load-content {
    gap: 0.55rem;
    width: min(92%, 330px);
    padding: 0.75rem 0.8rem;
    border-radius: 9px;
  }

  .yv2-load-btn.btn.btn-primary {
    min-width: 150px;
    min-height: 44px;
    padding: 0.58rem 0.92rem;
    font-size: 0.925rem;
  }

  .yv2-load-note,
  .yv2-consent-text,
  .yv2-hide {
    font-size: 0.875rem;
  }

  .yv2-provider-link {
    left: 0.5rem;
    bottom: 0.45rem;
    min-height: 32px;
    padding: 0.36rem 0.5rem;
    font-size: 0.75rem;
  }

  .yv2-consent-box {
    padding: 0.85rem 0.9rem;
    border-radius: 9px;
  }

  .yv2-consent-headline {
    margin-bottom: 0.4rem;
    font-size: 1rem;
  }

  .yv2-consent-actions {
    gap: 0.4rem;
  }

  .yv2-continue.btn.btn-primary,
  .yv2-overlay-error .btn.btn-primary,
  .yv2-hide {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yv2-load-btn,
  .yv2-provider-link {
    transition: none;
  }
}

@media (forced-colors: active) {
  .yv2-placeholder__screen,
  .yv2-load-content,
  .yv2-consent-box {
    border: 2px solid CanvasText;
  }
}
