/* Read my Soul – Luna als Figur (v5.9.663) */

/* ── Chat-Avatare im Luna-Button/Popup und im [rms_luna]-Widget ── */
.lp-msg .lp-ic.ai,
.rms-lmsg .rms-lmico.ai {
  background: #0c0918 var(--rms-luna-img, none) center 20% / cover no-repeat;
  border-color: rgba(232, 201, 122, .55);
  font-size: 0; color: transparent;
}
.lp-msg .lp-ic.ai { width: 26px; height: 26px; }
.rms-luna-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-radius: 50%; }

/* ── 1) Quiz-Begleiterin (helles Quiz-Design) ── */
.rms-luna-say {
  display: flex; align-items: flex-end; gap: 12px;
  max-width: 560px; margin: 0 auto 22px;
  animation: rmsLunaIn .45s ease both;
}
.rms-luna-say__av {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  object-fit: cover; object-position: center 20%;
  border: 2px solid #E8C97A; box-shadow: 0 4px 14px rgba(26, 19, 38, .18);
}
.rms-luna-say__bub {
  position: relative; flex: 1; min-width: 0;
  background: #fff; border: 1px solid rgba(201, 168, 76, .45);
  border-radius: 16px 16px 16px 4px;
  padding: 11px 15px; box-shadow: 0 6px 20px rgba(26, 19, 38, .07);
  font-family: 'Jost', system-ui, sans-serif; font-size: 15.5px; line-height: 1.55; color: #2c2540;
  text-align: left;
}
.rms-luna-say__tag {
  display: block; margin-bottom: 3px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #7D5E12;
}
.rms-luna-say--still { animation: none; }
.rms-luna-say--intro { margin-top: 18px; margin-bottom: 8px; }
.rms-luna-say--intro .rms-luna-say__av { width: 64px; height: 64px; }
@media (max-width: 480px) {
  .rms-luna-say { gap: 9px; margin-bottom: 16px; }
  .rms-luna-say__av { width: 44px; height: 44px; }
  .rms-luna-say--intro .rms-luna-say__av { width: 54px; height: 54px; }
  .rms-luna-say__bub { font-size: 15px; padding: 10px 13px; }
}
@keyframes rmsLunaIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── 2) Wartescreen (#rms-loading) ── */
.rms-luna-wait { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.rms-luna-wait__av {
  position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px);
  border-radius: 50%; object-fit: cover; object-position: center 20%;
  box-shadow: 0 0 40px rgba(201, 168, 76, .25);
  animation: rmsLunaBreathe 4s ease-in-out infinite;
}
.rms-luna-wait__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(200, 169, 110, .18); border-top-color: #C9A84C;
  animation: rmsLunaSpin 1.4s linear infinite;
}
.rms-luna-wait__tag {
  margin: -4px 0 0; font-family: 'Cinzel', serif; font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(232, 201, 122, .75); text-align: center;
}
.rms-luna-wait__say {
  margin: 0; min-height: 1.6em; max-width: 420px; text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1.2rem; line-height: 1.5;
  color: rgba(237, 232, 224, .9); transition: opacity .35s ease;
}
.rms-luna-wait__say.is-fade { opacity: 0; }
@keyframes rmsLunaSpin { to { transform: rotate(360deg); } }
@keyframes rmsLunaBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

/* ── 3) Gruß am Buchanfang ── */
.rms-luna-intro {
  display: flex; gap: 18px; align-items: flex-start;
  margin: 0 0 2.2rem; padding: 1.3rem 1.4rem;
  background: linear-gradient(135deg, rgba(201, 168, 76, .09), rgba(124, 78, 170, .07));
  border: 1px solid rgba(201, 168, 76, .22); border-radius: 10px;
}
.rms-luna-intro__av {
  width: 76px; height: 76px; flex-shrink: 0; border-radius: 50%;
  object-fit: cover; object-position: center 20%; border: 2px solid rgba(232, 201, 122, .7);
}
.rms-luna-intro__h { margin: 0 0 .35rem; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; color: #E8C97A; line-height: 1.25; }
.rms-luna-intro__p { margin: 0 0 .6rem; font-size: .98rem; line-height: 1.75; color: rgba(237, 232, 224, .86); }
.rms-luna-intro__s { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1.05rem; color: #E8C97A; }
.rms-luna-intro__s span { font-family: inherit; font-style: normal; font-size: .78rem; letter-spacing: .06em; color: rgba(237, 232, 224, .5); }
@media (max-width: 520px) {
  .rms-luna-intro { gap: 13px; padding: 1.1rem; }
  .rms-luna-intro__av { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .rms-luna-say, .rms-luna-wait__av { animation: none; }
  .rms-luna-wait__ring { animation-duration: 3s; }
}

/* ── 4) Luna-Hero auf der Startseite (v5.9.666: ohne Rahmen/Karte, weich ins Dunkel geblendet) ── */
.rms-hero.rms-hero--luna { overflow: hidden; }
.rms-hero--luna .rms-hero__luna { position: relative; margin: 0 auto .4rem; width: min(78vw, 320px); animation: rmsfadeup .9s ease both; }
.rms-hero--luna .rms-hero__luna-frame { position: relative; aspect-ratio: 4 / 5; }
.rms-hero--luna .rms-hero__luna-frame img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  filter: saturate(.92) brightness(.94);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 66%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 66%, transparent 100%);
          mask-composite: intersect;
}
.rms-hero--luna .rms-hero__luna-say { margin: -2.2rem auto 0; position: relative; text-align: center; max-width: 320px; }
.rms-hero--luna .rms-hero__luna-name {
  display: block; font-family: 'Cinzel', serif; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: #E8C97A;
}
.rms-hero--luna .rms-hero__luna-name em {
  font-style: normal; font-family: inherit; letter-spacing: .14em; text-transform: none; color: rgba(237, 232, 224, .55);
}
.rms-hero--luna .rms-hero__luna-quote {
  display: block; margin-top: .3rem; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic;
  font-size: 1.08rem; line-height: 1.4; color: rgba(245, 240, 230, .82);
}

@media (min-width: 900px) {
  .rms-hero.rms-hero--luna {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem); max-width: 1240px; margin: 0 auto; text-align: left;
    padding-left: clamp(1.5rem, 4vw, 3rem); padding-right: clamp(1.5rem, 4vw, 3rem);
  }
  .rms-hero--luna .rms-hero__copy { grid-column: 1; grid-row: 1; }
  .rms-hero--luna .rms-hero__luna { grid-column: 2; grid-row: 1; width: min(100%, 500px); margin: 0 auto; }
  .rms-hero--luna .rms-hero__luna-quote { font-size: 1.2rem; }
  .rms-hero--luna .rms-hero__title { font-size: clamp(3rem, 6.2vw, 5.4rem); }
  .rms-hero--luna .rms-hero__desc,
  .rms-hero--luna .rms-hero__meta,
  .rms-hero--luna .rms-hero__trust { margin-left: 0; margin-right: 0; }
  .rms-hero--luna .rms-hero__buttons { justify-content: flex-start; }
  .rms-hero--luna .rms-hero__trust-privacy { text-align: left; }
}
@media (max-width: 899px) {
  .rms-hero.rms-hero--luna { padding-top: 4.25rem; }
  .rms-hero--luna .rms-hero__luna { width: min(66vw, 250px); }
  .rms-hero--luna .rms-hero__luna-say { margin-top: -1.8rem; margin-bottom: 1.2rem; }
  .rms-hero--luna .rms-hero__luna-quote { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .rms-hero--luna .rms-hero__luna { animation: none; } }

/* ── 5) Luna-Hero „Kino“ (v5.9.667): Bild großflächig im Hintergrund, Text darüber ── */
.rms-hero--cinema .rms-hero__luna-frame { aspect-ratio: auto; height: 100%; }
.rms-hero--cinema .rms-hero__luna-frame picture { display: block; width: 100%; height: 100%; }
.rms-hero--cinema .rms-hero__luna-frame img { filter: saturate(.9) brightness(.9); }
.rms-hero--cinema .rms-hero__luna-quote { font-size: 1.05rem; }

@media (min-width: 900px) {
  .rms-hero.rms-hero--cinema {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    max-width: none; text-align: left; min-height: 100svh;
    padding-left: max(1.5rem, calc((100vw - 1240px) / 2 + 1.5rem)); padding-right: 1.5rem;
  }
  .rms-hero--cinema .rms-hero__copy { position: relative; z-index: 2; max-width: 600px; }
  .rms-hero--cinema .rms-hero__luna {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(64vw, 1000px); margin: 0; z-index: 0; animation: rmsLunaFade 1.4s ease both;
  }
  .rms-hero--cinema .rms-hero__luna-frame img {
    object-position: 62% 28%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 22%, #000 48%), linear-gradient(to bottom, #000 0, #000 70%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.35) 22%, #000 48%), linear-gradient(to bottom, #000 0, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .rms-hero--cinema .rms-hero__luna-say {
    position: absolute; right: clamp(1.5rem, 4vw, 3.5rem); bottom: clamp(4.5rem, 10vh, 7rem); margin: 0;
    max-width: 290px; text-align: right;
  }
  .rms-hero--cinema .rms-hero__luna-quote { text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
  .rms-hero--cinema .rms-hero__title { font-size: clamp(3rem, 6vw, 5.4rem); }
}
@media (max-width: 899px) {
  .rms-hero.rms-hero--cinema { padding-top: 0; }
  .rms-hero--cinema .rms-hero__luna {
    width: calc(100% + 2rem); margin: 0 -1rem 0; height: 52svh; max-height: 500px; min-height: 340px;
  }
  .rms-hero--cinema .rms-hero__luna-frame img {
    object-position: 50% 22%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 50%, transparent 98%);
            mask-image: linear-gradient(to bottom, #000 0, #000 50%, transparent 98%);
  }
  .rms-hero--cinema .rms-hero__luna-say { position: absolute; left: 0; right: 0; bottom: .6rem; margin: 0 auto; padding: 0 1.25rem; max-width: 340px; }
  .rms-hero--cinema .rms-hero__luna-quote { text-shadow: 0 2px 14px rgba(0, 0, 0, .85); }
  .rms-hero--cinema .rms-hero__copy { position: relative; z-index: 2; margin-top: .4rem; }
}
@keyframes rmsLunaFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rms-hero--cinema .rms-hero__luna { animation: none; } }

/* ── 6) Kino-Hero dezenter (v5.9.671): Bild kleiner, dunkler, rundum weicher ausgeblendet ── */
.rms-hero--cinema .rms-hero__luna-frame img { filter: saturate(.8) brightness(.72); }
.rms-hero--cinema .rms-hero__luna-name { font-size: .68rem; }
.rms-hero--cinema .rms-hero__luna-quote { font-size: .98rem; color: rgba(245, 240, 230, .7); }
@media (min-width: 900px) {
  .rms-hero--cinema .rms-hero__luna { top: 8%; bottom: 8%; width: min(42vw, 620px); right: max(0px, calc((100vw - 1400px) / 2)); }
  .rms-hero--cinema .rms-hero__luna-frame img {
    object-position: 60% 25%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%, #000 82%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%, #000 70%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 38%, #000 82%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%, #000 70%, transparent 100%);
  }
  .rms-hero--cinema .rms-hero__luna-say { bottom: 3%; right: 12%; max-width: 260px; }
}
@media (max-width: 899px) {
  .rms-hero.rms-hero--cinema { padding-top: 3.5rem; }
  .rms-hero--cinema .rms-hero__luna { width: min(72vw, 300px); margin: 0 auto; height: 34svh; max-height: 300px; min-height: 220px; }
  .rms-hero--cinema .rms-hero__luna-frame img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 55%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 55%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .rms-hero--cinema .rms-hero__luna-say { bottom: 0; }
  .rms-hero--cinema .rms-hero__luna-quote { font-size: .92rem; }
}
@media (min-width: 900px) {
  .rms-hero--cinema .rms-hero__luna { top: 16%; bottom: 14%; width: min(34vw, 500px); right: max(1.5rem, calc((100vw - 1240px) / 2 + 1rem)); opacity: .9; }
  .rms-hero--cinema .rms-hero__luna-say { right: 50%; transform: translateX(50%); bottom: -1.5rem; text-align: center; width: 280px; }
}
