/* YOGA AKTUELL – Popups (Ersatz für Brave Popup)
   Schriften: Die Website liefert nur Montserrat Regular und „Montserrat-Black“ (900) selbst aus. Fette Titel nutzen
   darum Montserrat-Black; 600/700 rechnet der Browser aus Regular. */
.ya-pop { --ya-orange: #dd6700; --ya-grau: #636363; --ya-hell: #9e9e9e; font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; box-sizing: border-box; }
.ya-pop *, .ya-pop *::before, .ya-pop *::after { box-sizing: border-box; }
.ya-pop[hidden] { display: none !important; }
html.ya-pop-sperre, html.ya-pop-sperre body { overflow: hidden; }

/* Modal-Grundgerüst */
.ya-pop--modal { position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ya-pop__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s ease; overflow: hidden; }
.ya-pop__box { position: relative; background: #fff; border-radius: 6px; box-shadow: 0 0 45px rgba(0, 0, 0, .4); opacity: 0; transform: scale(.85); transition: opacity .25s ease, transform .25s ease; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.ya-pop--offen .ya-pop__overlay, .ya-pop--offen .ya-pop__box { opacity: 1; transform: none; }
.ya-pop__zu { position: absolute; top: 6px; right: 8px; z-index: 2; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: #b9b9b9; font: 400 32px/36px Arial, sans-serif; cursor: pointer; border-radius: 50%; }
.ya-pop__zu:hover, .ya-pop__zu:focus-visible { color: #333; background: rgba(0, 0, 0, .06); outline: none; }
.ya-pop--heft .ya-pop__zu { background: rgba(255, 255, 255, .85); color: #777; }
.ya-pop--heft .ya-pop__zu:hover, .ya-pop--heft .ya-pop__zu:focus-visible { background: #fff; color: #333; }
.ya-pop__button { display: inline-block; min-width: 220px; padding: 11px 24px; border: 0; border-radius: 11px; background: var(--ya-orange); color: #fff !important; font: 700 13px/1.2 Montserrat, Arial, sans-serif; letter-spacing: .7px; text-align: center; text-decoration: none !important; text-transform: uppercase; cursor: pointer; transition: opacity .2s; }
.ya-pop__button:hover, .ya-pop__button:focus-visible { opacity: .85; color: #fff; }

/* Aktuelles Heft: Cover unscharf als Hintergrund, wie bei Brave */
.ya-pop--heft .ya-pop__overlay::before { content: ""; position: absolute; inset: -40px; background: var(--ya-pop-bild) center / cover no-repeat; filter: blur(10px); opacity: .9; }
.ya-pop--heft .ya-pop__overlay::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.ya-pop--heft .ya-pop__box { display: flex; width: 700px; max-width: 100%; min-height: 450px; overflow: hidden; }
.ya-pop-heft__bild { flex: 0 0 48%; display: block; background: #eee; }
.ya-pop-heft__bild img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ya-pop-heft__text { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 22px 20px; text-align: center; letter-spacing: .7px; overflow-y: auto; }
.ya-pop-heft__kopf { margin: 0 0 14px; color: var(--ya-grau); font-family: Montserrat-Black, Montserrat, Arial, sans-serif; font-size: 20px; font-weight: 400; line-height: 1.2; }
.ya-pop-heft__titel { margin: 0 0 16px; padding: 10px 14px; border: 2px dashed rgba(221, 103, 0, .5); background: rgba(221, 103, 0, .12); color: var(--ya-orange); font-family: Montserrat-Black, Montserrat, Arial, sans-serif; font-size: 30px; font-weight: 400; line-height: 1.15; }
.ya-pop-heft__themen { margin: 0 0 20px; color: var(--ya-hell); font-size: 14px; line-height: 1.3; }
.ya-pop-heft__themen p { margin: 0; }
.ya-pop-heft__hinweis { margin: 8px 0 0; color: var(--ya-hell); font-size: 12px; }
@media (max-width: 767px) {
  .ya-pop--heft .ya-pop__box { flex-direction: column; min-height: 0; overflow-y: auto; }
  .ya-pop-heft__bild { flex: none; height: 38vh; }
  .ya-pop-heft__kopf { font-size: 17px; }
  .ya-pop-heft__titel { font-size: 24px; }
}

/* Rechtstexte */
.ya-pop--recht .ya-pop__box { display: flex; flex-direction: column; width: 860px; max-width: 100%; height: calc(100vh - 32px); height: calc(100dvh - 32px); max-height: 900px; }
.ya-pop-recht__kopf { position: relative; flex: none; padding: 16px 56px 12px 24px; border-bottom: 1px solid #eee; }
.ya-pop-recht__titel { margin: 0; color: #000; font-family: Montserrat-Black, Montserrat, Arial, sans-serif; font-size: 20px; font-weight: 400; line-height: 1.3; }
.ya-pop-recht__inhalt { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px 24px 24px; color: #222; font: 400 15px/1.6 Verdana, Geneva, sans-serif; outline: none; }
.ya-pop-recht__inhalt h1 { margin: 22px 0 8px; font: 400 22px/1.3 Montserrat-Black, Montserrat, Arial, sans-serif; }
.ya-pop-recht__inhalt h2 { margin: 20px 0 8px; font: 400 19px/1.3 Montserrat-Black, Montserrat, Arial, sans-serif; }
.ya-pop-recht__inhalt h3, .ya-pop-recht__inhalt h4 { margin: 18px 0 6px; font: 400 16px/1.35 Montserrat-Black, Montserrat, Arial, sans-serif; }
.ya-pop-recht__inhalt p, .ya-pop-recht__inhalt ul, .ya-pop-recht__inhalt ol { margin: 0 0 12px; }
.ya-pop-recht__inhalt ul, .ya-pop-recht__inhalt ol { padding-left: 22px; }
.ya-pop-recht__inhalt a { color: var(--ya-orange); text-decoration: underline; }
.ya-pop-recht__inhalt hr { margin: 20px 0; border: 0; border-top: 1px solid #ddd; }
.ya-pop-recht__inhalt table { width: 100%; border-collapse: collapse; margin: 0 0 12px; }
.ya-pop-recht__inhalt td, .ya-pop-recht__inhalt th { padding: 4px 6px; border: 1px solid #ddd; vertical-align: top; }
.ya-pop-recht__laden { color: #888; }
.ya-pop-recht__fuss { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-top: 1px solid #eee; }
.ya-pop-recht__seite { color: #666; font-size: 13px; text-decoration: underline; }
.ya-pop-recht__fuss .ya-pop__button { min-width: 0; }
@media (max-width: 767px) {
  .ya-pop--recht { padding: 0; }
  .ya-pop--recht .ya-pop__box { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .ya-pop-recht__kopf { padding: 14px 52px 10px 16px; }
  .ya-pop-recht__inhalt { padding: 6px 16px 20px; font-size: 14px; }
  .ya-pop-recht__fuss { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
}

/* Bottom Bar */
.ya-pop--bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147482000; padding: 14px 48px calc(18px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); box-shadow: 0 0 44px rgba(0, 0, 0, .22); text-align: center; opacity: 0; transform: translateY(50px); transition: opacity .5s ease, transform .5s ease; }
.ya-pop--bar.ya-pop--offen { opacity: 1; transform: none; }
.ya-pop--bar .ya-pop__zu { color: #959595; }
.ya-pop-bar__titel { margin: 0 0 6px; color: #de6800; font-family: Montserrat-Black, Montserrat, Arial, sans-serif; font-size: 30px; font-weight: 400; line-height: 1.2; }
.ya-pop-bar__text { max-width: 1012px; margin: 0 auto 12px; color: #000; font-size: 16px; font-weight: 500; line-height: 1.5; }
.ya-pop-bar__zusatz { display: block; font-weight: 700; }
.ya-pop--bar .ya-pop__button { background: #de6800; border-radius: 13px; padding: 14px 24px; }
@media (max-width: 767px) {
  .ya-pop--bar { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .ya-pop-bar__titel { padding: 0 28px; font-size: 22px; }
  .ya-pop-bar__text { font-size: 14px; line-height: 1.6; }
  .ya-pop--bar .ya-pop__button { min-width: 0; width: 100%; max-width: 280px; }
}
