/* LOSAGA Eröffnungs-Popup */
body.popup-open {
  overflow: hidden;
}

.losaga-popup {
  width: min(1180px, 96vw);
  max-width: none;
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}

.losaga-popup::backdrop {
  background: rgba(24, 36, 18, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.losaga-popup-box {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  max-height: 90vh;
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.losaga-popup-text {
  padding: clamp(30px, 4vw, 58px);
  overflow-y: auto;
}

.losaga-popup-kicker {
  margin: 0 0 10px;
  color: #8b5a20;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.losaga-popup h2 {
  margin: 0 0 12px;
  color: #587c2b;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.losaga-popup-lead {
  margin: 0 0 24px;
  color: #8b5a20;
  font-size: clamp(1.1rem, 1.8vw, 1.38rem);
  line-height: 1.4;
  font-weight: 700;
}

.losaga-popup-text > p:not(.losaga-popup-kicker):not(.losaga-popup-lead):not(.losaga-popup-note) {
  margin: 0 0 18px;
  color: #343a32;
  font-size: 1.02rem;
  line-height: 1.7;
}

.losaga-popup-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border-left: 4px solid #e1b944;
  border-radius: 0 12px 12px 0;
  background: #f7f8f3;
  color: #343a32;
  font-weight: 700;
}

.losaga-popup-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e5e8df;
  color: #343a32;
  font-size: .95rem;
  line-height: 1.7;
}

.losaga-popup-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.losaga-popup-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(90vh - 52px);
  object-fit: contain;
}

.losaga-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #3a4f24;
  font-size: 30px;
  line-height: 40px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.losaga-popup-close:hover,
.losaga-popup-close:focus-visible {
  background: #fff;
  transform: scale(1.06);
  outline: 3px solid rgba(225,185,68,.5);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .losaga-popup {
    width: calc(100% - 28px);
    max-height: calc(100vh - 28px);
  }

  .losaga-popup-box {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    border-radius: 18px;
  }

  .losaga-popup-text {
    padding: 30px 24px 24px;
    overflow: visible;
  }

  .losaga-popup-image {
    padding: 0 24px 28px;
  }

  .losaga-popup-image img {
    width: min(420px, 100%);
    max-height: none;
  }

  .losaga-popup-close {
    position: fixed;
    top: 22px;
    right: 22px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .losaga-popup[open] .losaga-popup-box {
    animation: losagaPopupIn .32s ease-out both;
  }

  @keyframes losagaPopupIn {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to   { opacity: 1; transform: none; }
  }
}
