/* ==========================================================================
   YouTube consent dialog + gated embeds
   The dialog is German-only in every language version and always LTR.
   Colours follow the site palette (brown, not green).
   ========================================================================== */

.ytc {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.ytc.is-open {
  display: flex;
}

.ytc[hidden] {
  display: none !important;
}

.ytc__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 22, 17, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: ytc-fade .2s ease both;
}

html.ytc-open,
html.ytc-open body {
  overflow: hidden;
}

.ytc__card {
  position: relative;
  z-index: 1;
  width: min(452px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(24px, 4.5vw, 34px);
  background: #ffffff;
  color: #1b1b1b;
  border-radius: 20px;
  box-shadow:
    0 28px 70px -18px rgba(32, 22, 17, .45),
    0 4px 14px rgba(32, 22, 17, .10);
  direction: ltr;
  text-align: left;
  animation: ytc-rise .24s cubic-bezier(.2, .8, .3, 1) both;
  outline: none;
}

.ytc__card:focus {
  outline: none;
}

.ytc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #f4ece1;
  color: #70432d;
}

.ytc__icon svg {
  width: 26px;
  height: 26px;
}

.ytc__eyebrow {
  margin: 0 0 6px;
  font-family: "Barlow Condensed", "Work Sans", system-ui, sans-serif;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a6a52;
}

.ytc__title {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 4vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #4a2e1d;
}

.ytc__text {
  margin: 0 0 10px;
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: .95rem;
  line-height: 1.55;
  color: #3d3430;
}

.ytc__text--small {
  font-size: .82rem;
  line-height: 1.5;
  color: #8a6a52;
}

.ytc__status {
  margin: 14px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f7f2ea;
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: .8rem;
  color: #3d3430;
}

.ytc__actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.ytc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.ytc__btn--primary {
  background: #70432d;
  border: 1px solid #70432d;
  color: #ffffff;
}

.ytc__btn--primary:hover {
  background: #56301f;
  border-color: #56301f;
}

.ytc__btn--secondary {
  background: #ffffff;
  border: 1px solid #70432d;
  color: #70432d;
}

.ytc__btn--secondary:hover {
  background: #f4ece1;
}

.ytc__btn:focus-visible,
.ytc__links a:focus-visible {
  outline: 2px solid #70432d;
  outline-offset: 2px;
}

.ytc__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 18px 0 0;
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: .78rem;
  color: #9b8676;
}

.ytc__links a {
  color: #70432d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ytc__links a:hover {
  text-decoration: none;
}

.ytc__hint {
  margin: 10px 0 0;
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: .74rem;
  line-height: 1.5;
  color: #9b8676;
}

@media (min-width: 520px) {
  .ytc__actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .ytc {
    padding: 12px;
    align-items: flex-end;
  }

  .ytc__card {
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }

  .ytc__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }
}

@keyframes ytc-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ytc-rise {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ytc__backdrop,
  .ytc__card {
    animation: none;
  }
}

/* ------------------------------------------------------ gated embeds --- */
.yt-embed {
  margin: 1.7rem 0;
}

.yt-embed__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1c2b26;
}

.yt-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-embed__facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 1.2rem;
  text-align: center;
  color: var(--cream);
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(185, 37, 43, .35) 0%, transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(240, 216, 174, .18) 0%, transparent 60%),
    #20211c;
}

.yt-embed.is-loaded .yt-embed__facade {
  display: none;
}

.yt-embed__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--dark);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}

.yt-embed__play:hover {
  transform: scale(1.06);
  background: #ffffff;
}

.yt-embed__play:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.yt-embed__play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

html[dir="rtl"] .yt-embed__play svg {
  margin-left: 0;
  margin-right: 3px;
}

.yt-embed__text {
  max-width: 42ch;
  margin: 0;
  font-size: .84rem;
  line-height: 1.5;
  color: rgba(253, 247, 234, .86);
}

.yt-embed__settings {
  padding: .2rem 0;
  border: 0;
  border-bottom: 1px solid rgba(253, 247, 234, .45);
  background: none;
  color: var(--cream);
  font-family: var(--font-condensed);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.yt-embed__settings:hover {
  border-bottom-color: var(--cream);
}

.yt-embed__settings:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
