/* =========================================
   Globale & Notice Styles
========================================= */
.notice-warning {
  position: relative;
  text-align: center;
  color: #f1dede;
  font-size: clamp(10px, 2vw, 12px);
  line-height: 1.4;
  padding: 0 70px;
}
.notice-warning::before,
.notice-warning::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 60px;
  background: linear-gradient(
    160deg,
    transparent 0%,
    transparent 20%,
    #ff3b3b 20%,
    #ff3b3b 32%,
    transparent 32%,
    transparent 45%,
    #ff3b3b 45%,
    #ff3b3b 60%,
    transparent 60%
  );
  filter: drop-shadow(0 0 6px rgba(255, 60, 60, 0.8)) drop-shadow(0 0 14px rgba(255, 60, 60, 0.6));
  transform: translateY(-50%) skewX(-12deg);
  opacity: 0.85;
  animation: lightning-flicker 2.8s infinite;
}
.notice-warning::before {
  left: 0;
}
.notice-warning::after {
  right: 0;
  transform: translateY(-50%) scaleX(-1) skewX(-12deg);
  animation-delay: 1.4s;
}
@keyframes lightning-flicker {
  0%, 100% { opacity: 0.85; }
  45% { opacity: 0.4; }
  50% { opacity: 1; }
  55% { opacity: 0.6; }
}
.notice-warning h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  text-shadow: 0 0 6px rgba(255, 60, 60, 0.9), 0 0 14px rgba(255, 60, 60, 0.6), 0 0 22px rgba(255, 60, 60, 0.4);
}
.notice-warning p {
  margin: 0;
  color: #ffd6d6;
  text-shadow: 0 0 6px rgba(255, 40, 40, 0.35);
}
@media (max-width: 600px) {
  .notice-warning {
    padding: 1.2rem 2rem;
  }
  .notice-warning::before,
  .notice-warning::after {
    width: 40px;
  }
}

/* =========================================
   Testament Card
========================================= */
#testament.panel.card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 4vw, 28px);
  border-radius: 22px;
  background: radial-gradient(1200px 500px at 20% 10%, rgba(255, 255, 255, 0.08), transparent 60%),
              radial-gradient(900px 450px at 80% 30%, rgba(255, 60, 60, 0.09), transparent 65%),
              linear-gradient(180deg, rgba(18, 20, 28, 0.92), rgba(10, 12, 18, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#testament.panel.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 500px at 50% 0%, rgba(0, 0, 0, 0.25), transparent 60%),
              radial-gradient(900px 600px at 50% 100%, rgba(0, 0, 0, 0.35), transparent 65%),
              repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 6px);
  opacity: 0.55;
  animation: candleFlicker 5.2s linear infinite;
}
#testament.panel.card::after {
  content: "";
  position: absolute;
  inset: -40px;
  pointer-events: none;
  background: radial-gradient(260px 260px at 10% 18%, rgba(255, 40, 40, 0.22), transparent 65%),
              radial-gradient(300px 300px at 92% 22%, rgba(255, 40, 40, 0.18), transparent 70%),
              radial-gradient(340px 340px at 50% 110%, rgba(124, 92, 255, 0.1), transparent 70%);
  filter: blur(2px);
  animation: sigilPulse 3.6s ease-in-out infinite;
}
#testament h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 4.8vw, 2.1rem);
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 60, 60, 0.18);
}
#testament h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}
#testament h2::after {
  content: "";
  display: block;
  height: 1px;
  width: min(420px, 90%);
  margin: 0.9rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(255, 60, 60, 0.55), transparent);
  box-shadow: 0 0 14px rgba(255, 60, 60, 0.25);
}
#testament p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.72;
  font-size: clamp(0.95rem, 3.4vw, 1.05rem);
  margin: 0.8rem 0;
}
#testament p:first-of-type::first-letter {
  float: left;
  font-size: 2em;
  line-height: 1.6;
  padding: 0 0.1em 0 0;
  margin-top: -0.4em;
  margin-bottom: 0.6em;
  font-weight: 400;
  color: #ff4d4d;
  text-shadow: 0 0 10px rgba(255, 60, 60, 0.55), 0 0 22px rgba(255, 60, 60, 0.25);
}
#testament ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0.5rem;
  display: grid;
  gap: 0.85rem;
  counter-reset: codex;
}
#testament li {
  position: relative;
  padding: 0.85rem 0.95rem 0.85rem 2.4rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 25px rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.82);
}
#testament li::after {
  counter-increment: codex;
  content: "§" counter(codex);
  position: absolute;
  left: 0.5rem;
  top: 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ff4d4d;
  animation: sigilBreath 3.8s ease-in-out infinite;
}
#testament li b {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 10px rgba(255, 60, 60, 0.12);
}
#testament h3 {
  margin: 1.8rem 0 0.5rem;
  font-size: clamp(1.05rem, 3.6vw, 1.25rem);
  text-align: center;
  color: #ff4d4d;
  text-shadow: 0 0 8px rgba(255, 60, 60, 0.8), 0 0 18px rgba(255, 60, 60, 0.35);
}
#testament h3 + p {
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 60, 60, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 60, 60, 0.18);
  box-shadow: 0 0 18px rgba(255, 60, 60, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#testament p:last-of-type {
  position: relative;
  z-index: 100;
}
#testament p:last-of-type::after,
#testament p:last-of-type::before {
  content: "";
  position: absolute;
  right: -33px;
  top: -50px;
  width: 100px;
  height: 180px;
  background: url("http://riko-keil.de/asset/img/.thumbs/engel__420x420.png") no-repeat center / contain;
  pointer-events: none;
  z-index: 300;
  opacity: 0.95;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55));
}
#testament p:last-of-type::before {
  transform: scaleX(-1);
  left: -33px;
}
@media (max-width: 520px) {
  #testament h3 + p::after {
    right: -18px;
    width: 120px;
    height: 180px;
    opacity: 0.85;
  }
  #testament li {
    padding-left: 2.2rem;
  }
}
@keyframes sigilBreath {
  0% { opacity: 0.55; transform: translateY(-50%) scale(1); text-shadow: 0 0 6px rgba(255, 60, 60, 0.6), 0 0 14px rgba(255, 60, 60, 0.35); }
  50% { opacity: 0.95; transform: translateY(-50%) scale(1.12); text-shadow: 0 0 10px rgba(255, 80, 80, 0.9), 0 0 26px rgba(255, 80, 80, 0.6), 0 0 44px rgba(255, 80, 80, 0.35); }
  100% { opacity: 0.55; transform: translateY(-50%) scale(1); text-shadow: 0 0 6px rgba(255, 60, 60, 0.6), 0 0 14px rgba(255, 60, 60, 0.35); }
}
@keyframes sigilPulse {
  0% { opacity: 0.45; transform: scale(1); filter: blur(2px); }
  50% { opacity: 0.7; transform: scale(1.02); filter: blur(1px); }
  100% { opacity: 0.45; transform: scale(1); filter: blur(2px); }
}
@keyframes candleFlicker {
  0% { opacity: 0.1; transform: translate3d(-1px, 0, 0) scale(1); }
  20% { opacity: 0.14; transform: translate3d(1px, -1px, 0) scale(1.01); }
  45% { opacity: 0.09; transform: translate3d(0px, 1px, 0) scale(1); }
  70% { opacity: 0.16; transform: translate3d(1px, 0px, 0) scale(1.015); }
  100% { opacity: 0.11; transform: translate3d(-1px, 0px, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #testament.panel.card::after,
  #testament.panel.card::before {
    animation: none !important;
  }
}

/* =========================================
   Holy Dove Animation
========================================= */
.holy-dove {
  position: fixed;
  top: 14vh;
  left: -140px;
  width: 72px;
  height: auto;
  z-index: 50;
  pointer-events: auto;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.25));
  
}
@keyframes dove-fly {
  0% { opacity: 0; transform: translateX(0) translateY(0); }
  60% { opacity: 0; }
  62% { opacity: 0.92; }
  70% { transform: translateX(35vw) translateY(-10px); }
  78% { transform: translateX(70vw) translateY(8px); }
  82% { opacity: 0; transform: translateX(120vw) translateY(0); }
  100% { opacity: 0; }
}
.dove-drops {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 49;
}
.dove-poop {
  position: fixed;
  width: 14px;
  height: 16px;
  border-radius: 9px 9px 10px 10px;
  background: rgba(235, 235, 235, 0.95);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -50%);
}
.dove-poop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 10px 10px 6px 6px;
  background: rgba(245, 245, 245, 0.95);
}
@keyframes poop-drop {
  0% { opacity: 0; transform: translate(-50%, -50%) translateY(0) scale(0.8); }
  10% { opacity: 1; transform: translate(-50%, -50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) translateY(520px) rotate(-10deg); }
}
.dove-splat {
  position: fixed;
  bottom: 8px;
  transform: translateX(-50%);
  width: 34px;
  height: 6px;
  border-radius: 18px 16px 14px 12px;
  background: rgba(240, 240, 240, 0.96);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.18), inset 0 -2px 0 rgba(0, 0, 0, 0.14);
  opacity: 0;
  animation: splash-pop 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) forwards, splat-out 0.7s ease-in forwards 9.3s;
}
.dove-splat::before,
.dove-splat::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 10px;
  height: 8px;
  background: rgba(245, 245, 245, 0.96);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  border-radius: 10px 10px 8px 8px;
  opacity: 0.95;
}
.dove-splat::before {
  left: -10px;
  transform: rotate(-14deg);
  animation: drip-left 0.55s ease-out forwards;
}
.dove-splat::after {
  right: -12px;
  transform: rotate(18deg);
  animation: drip-right 0.55s ease-out forwards;
}
@keyframes splash-pop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.55, 0.85); filter: blur(0.2px); }
  70% { opacity: 1; transform: translateX(-50%) scale(1.1, 0.95); }
  100% { opacity: 1; transform: translateX(-50%) scale(1, 1); filter: blur(0); }
}
@keyframes drip-left {
  0% { transform: translate(0, 0) rotate(-14deg) scale(0.7); }
  60% { transform: translate(-6px, -3px) rotate(-22deg) scale(1); }
  100% { transform: translate(-4px, 0) rotate(-16deg) scale(0.95); }
}
@keyframes drip-right {
  0% { transform: translate(0, 0) rotate(18deg) scale(0.7); }
  60% { transform: translate(7px, -4px) rotate(28deg) scale(1); }
  100% { transform: translate(5px, 0) rotate(20deg) scale(0.95); }
}
@keyframes splat-out {
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .holy-dove { animation: none; opacity: 0.9; left: 12px; top: 12px; }
}

/* =========================================
   Reveal, Snake-Text & Toast
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(2px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
  will-change: opacity, transform, filter;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
.snake-text {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  gap: 0.04em;
  white-space: nowrap;
}
.snake-text span {
  display: inline-block;
  transform-origin: center bottom;
  animation: snakeWave 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.08s);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}
@keyframes snakeWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .snake-text span { animation: none; }
}


/* =========================================
   RK2 Chronicle / Sigils
========================================= */
.rk-chronicle2 { padding: 22px 16px; }
.rk2-wrap {
  max-width: var(--max, 1100px);
  margin: 0 auto;
  position: relative;
}
.rk2-aura {
  position: absolute;
  inset: -18px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(560px 320px at 18% 22%, color-mix(in srgb, var(--rk2-a1) 22%, transparent), transparent 60%),
              radial-gradient(640px 360px at 82% 24%, color-mix(in srgb, var(--rk2-a2) 18%, transparent), transparent 62%),
              radial-gradient(720px 420px at 50% 120%, rgba(0, 0, 0, 0.55), transparent 62%);
  filter: blur(2px);
  opacity: 0.9;
  animation: rk2-aura 7.5s ease-in-out infinite;
}
@keyframes rk2-aura {
  0%, 100% { transform: translateY(0); opacity: 0.82; }
  50% { transform: translateY(-6px); opacity: 0.98; }
}
.rk2-scroll {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--rk2-r) + 6px);
  background: radial-gradient(900px 520px at 20% 10%, rgba(124, 92, 255, 0.1), transparent 60%),
              radial-gradient(820px 480px at 85% 25%, rgba(61, 214, 208, 0.08), transparent 60%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
              linear-gradient(180deg, var(--rk2-panel), var(--rk2-panel2));
  border: 1px solid var(--rk2-line);
  padding: 18px 18px 14px;
  overflow: hidden;
}
.rk2-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rk2-title {
  margin: 0;
  font-size: clamp(18px, 3vw, 28px);
  letter-spacing: 0.6px;
  color: var(--rk2-text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-weight: 800;
}
.rk2-sub {
  margin: 4px 0 0 0;
  color: rgba(170, 179, 197, 0.85);
  font-size: 12.5px;
  text-align: center;
}
.rk2-rule {
  height: 1px;
  margin: 10px 2px 14px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}
.rk2-text {
  color: #fff;
  text-align: justify;
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: 0.2px;
  text-wrap: pretty;
}
.rk2-text p { margin: 0; }
.rk2-text p:first-of-type::first-letter {
  font-family: "Cinzel", serif;
  font-size: 2.2em;
  float: left;
  line-height: 0.7;
  color: #7a5a1a;
}
.rk2-text strong {
  color: #7a5a1a;
}
.rk2-text img {
  display: block;
  max-width: 70%;
  margin: auto;
}
.rk2-ink {
  color: #f0d48a !important;
  text-align: justify;
  text-shadow: 0 0 18px color-mix(in srgb, var(--rk2-a1) 24%, transparent),
               0 0 26px color-mix(in srgb, var(--rk2-a2) 14%, transparent);
}
.rk2-sigil {
  width: 60px; height: 44px;
  border-radius: 16px;
  padding-left: 4px;
  display: grid; place-items: center;
  border: 1px solid var(--rk2-line);
  background: rgba(255, 255, 255, 0.03);
}
.rk-sigil-c {
  position: relative;
  display: inline-block;
  font-family: "Arial", "EB Garamond", serif;
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 60, 60, 0.6);
  text-shadow: 0 0 16px rgba(124, 92, 255, 0.22);
  filter: drop-shadow(0 0 8px rgba(124, 92, 255, 0.35));
}
.rk-sigil-c::before {
  content: "k";
  position: absolute;
  left: -2px;
  top: 0px;
  width: -8px;
  font-size: 28px;
  height: 100%;
  border-radius: 2px;
  background: transparent;
  opacity: 0.55;
  color: #d6b46a;
}
@media (max-width: 520px) {
  .rk2-scroll { padding: 16px 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rk2-aura { animation: none !important; }
}

/* =========================================
   Saint Card & Pergament Variables
========================================= */
.saint-wrap,
#pergament {
  --s-bg0: #050608;
  --s-bg1: #020203;
  --s-text: #f3efe2;
  --s-muted: #e3d8b8;
  --s-gold1: #ffe08a;
  --s-gold2: #d4b04b;
  --s-gold3: #9a7a1f;
  --s-line: rgba(255, 224, 138, 0.18);
  --s-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  --s-radius: 22px;
  --s-max: 980px;
}
.saint-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem;
  color: var(--s-text);
  text-align: center;
  background: radial-gradient(900px 520px at 50% 12%, rgba(255, 224, 138, 0.28), transparent 62%),
              radial-gradient(700px 460px at 15% 75%, rgba(212, 176, 75, 0.12), transparent 60%),
              linear-gradient(180deg, var(--s-bg0), var(--s-bg1));
}
.saint-wrap,
.saint-wrap * { box-sizing: border-box; }
.saint-card {
  width: min(var(--s-max), 100%);
  border-radius: var(--s-radius);
  background: radial-gradient(1200px 600px at 50% 10%, rgba(255, 224, 138, 0.1), transparent 60%),
              linear-gradient(180deg, rgba(43, 36, 24, 0.9), rgba(31, 26, 18, 0.92));
  border: 1px solid var(--s-line);
  box-shadow: var(--s-shadow);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
}
.saint-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 20%, rgba(255, 224, 138, 0.14), transparent 45%),
              radial-gradient(circle at 70% 40%, rgba(212, 176, 75, 0.1), transparent 50%);
  transform: rotate(-8deg);
  pointer-events: none;
}
.saint-head { position: relative; }
.saint-title {
  margin: 0;
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--s-gold1);
  text-shadow: 0 0 18px rgba(255, 224, 138, 0.35), 0 0 44px rgba(212, 176, 75, 0.18);
}
.saint-sub {
  margin: 0.65rem 0 0;
  color: var(--s-muted);
  opacity: 0.92;
  line-height: 1.55;
  font-size: 1.02rem;
}
.saint-btn {
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  display: inline-block;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  color: #2a2200;
  background: linear-gradient(135deg, var(--s-gold1), var(--s-gold2));
  border: 1px solid rgba(255, 224, 138, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 10px 30px rgba(255, 224, 138, 0.2);
}
.saint-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(255, 224, 138, 0.28);
  filter: saturate(1.06);
}
.saint-btn:focus { outline: none; }
.saint-btn:focus-visible {
  outline: 2px solid rgba(255, 224, 138, 0.55);
  outline-offset: 3px;
}
.saint-btn--ghost {
  background: transparent;
  color: var(--s-gold1);
  border: 1px solid rgba(255, 224, 138, 0.28);
  box-shadow: none;
}

/* =========================================
   Swipe Gallery (Horizontal)
========================================= */
.swipe-gallery {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 1.35rem auto 0;
  overflow: hidden;
  touch-action: pan-y;
}
.swipe-track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  gap: 0;
  will-change: transform;
  transition: transform 0.35s ease;
}
.swipe-slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  position: relative;
}
.swipe-slide img {
  display: block;
  max-width: 70%;
  margin: auto;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), 0 0 26px rgba(255, 224, 138, 0.38), 0 0 60px rgba(212, 176, 75, 0.28);
  filter: drop-shadow(0 -10px 28px rgba(255, 224, 138, 0.35)) drop-shadow(0 -18px 48px rgba(212, 176, 75, 0.28));
  animation: holyGlow 4.8s ease-in-out infinite;
}
.swipe-slide img::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 15%, rgba(255, 224, 138, 0.35), transparent 60%);
  z-index: -1;
  pointer-events: none;
}
@keyframes holyGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.05); }
}
.swipe-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
  padding: 0.4rem 0.7rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 224, 138, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.swipe-dots button {
  appearance: none;
  border: none;
  cursor: pointer;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}
.swipe-dots button.active {
  background: #ffe08a;
  box-shadow: 0 0 0 1px rgba(154, 122, 31, 0.65) inset, 0 0 14px rgba(255, 224, 138, 0.35);
}

/* =========================================
   Pergament Overlay
========================================= */
body.pergament-open { overflow: hidden !important; }
body.pergament-open .swipe-gallery { pointer-events: none !important; }
#pergament { pointer-events: auto; }
#pergament.pergament-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  padding: 0.75rem;
  overflow: hidden;
}
#pergament.pergament-overlay.is-open { display: block; }
#pergament .pergament-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
#pergament .pergament-close {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: calc(env(safe-area-inset-right, 0px) + 14px);
  z-index: 10;
  border: 1px solid rgba(255, 224, 138, 0.22);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}
#pergament .pergament-roll {
  position: relative;
  width: min(980px, 94vw);
  height: 100%;
  margin: 0 auto;
}
#pergament .pergament-scroll {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 80px 56px 90px;
  box-sizing: border-box;
}
#pergament .pergament-hero {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.2rem 0;
}
#pergament .pergament-hero-img {
  width: min(1100px, 92vw);
  max-height: calc(100dvh - 2.4rem);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
  object-fit: contain;
}
#pergament .pergament-paper {
  width: min(900px, 62vw);
  margin: 0 auto;
  --bleed-x: clamp(30px, 9.5vw, 80px);
  --bleed-y: clamp(30px, 10.5vh, 80px);
  --ink-title: #2a1b0f;
  --ink-quote: #3a2614;
  --ink-body: #3b2a1a;
  --gold: #d2b067;
  position: relative;
  padding: 34px 34px 30px;
  box-sizing: border-box;
}
#pergament .pergament-paper::before {
  content: "";
  position: absolute;
  inset: calc(var(--bleed-y) * -1) calc(var(--bleed-x) * -1);
  z-index: 0;
  background: url("/inc/.thumbs/pergament__800x800.webp") center / contain no-repeat;
  border-radius: 26px;
  opacity: 0.95;
  filter: saturate(1.03) contrast(1.06) drop-shadow(0 18px 60px rgba(0, 0, 0, 0.55));
}
#pergament .pergament-paper::after {
  content: "";
  position: absolute;
  inset: calc(var(--bleed-y) * -1) calc(var(--bleed-x) * -1);
  z-index: 1;
  background: radial-gradient(ellipse at 50% 35%, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.18) 70%, rgba(0, 0, 0, 0.22) 100%);
  border-radius: 26px;
}
#pergament .pergament-paper > * {
  position: relative;
  z-index: 2;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}
#pergament .pergament-title {
  margin-top: 10%;
  font-weight: 900;
  font-size: clamp(1.1rem, 2.8vw, 1.8rem);
  line-height: 1.08;
  color: var(--ink-title);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.32), 0 2px 4px rgba(0, 0, 0, 0.28);
}
#pergament .pergament-title::after {
  content: "";
  display: block;
  height: 2px;
  width: min(260px, 62%);
  margin-top: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(210, 176, 103, 0.85), transparent);
}
#pergament .pergament-quote {
  font-style: italic;
  font-size: clamp(1.02rem, 2.7vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-quote);
  padding-left: 1.05rem;
  border-left: 3px solid rgba(210, 176, 103, 0.7);
}
#pergament .pergament-body {
  font-size: clamp(1.03rem, 2.8vw, 1.18rem);
  line-height: 1.75;
  color: var(--ink-body);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.26), 0 2px 3px rgba(0, 0, 0, 0.22);
}
#pergament .pergament-body::first-letter {
  float: left;
  font-weight: 900;
  font-size: 3.35em;
  line-height: 0.9;
  margin: 0.05em 0.18em 0 0;
  color: rgba(210, 176, 103, 0.95);
}

@media (max-width: 780px) {
  .saint-wrap {
    padding: 2.25rem 1rem;
    min-height: 100svh;
  }
  .saint-card {
    padding: 1.1rem;
    border-radius: 18px;
  }
  .saint-title {
    font-size: clamp(1.55rem, 7vw, 2.4rem);
    letter-spacing: 0.05em;
  }
  .saint-sub { font-size: 0.98rem; }
  
  #pergament .pergament-scroll { padding: 32px 18px 44px; }
  #pergament .pergament-paper { width: min(820px, 92vw); padding: 22px 18px 20px; }
  #pergament .pergament-paper > * { max-width: 58ch; }
}

@media (max-width: 520px) {
  #pergament .pergament-scroll { padding: 24px 12px 38px; }
  #pergament .pergament-paper { width: 94vw; padding: 20px 16px 18px; }
  #pergament .pergament-paper > * { max-width: 20ch; }
}
@media (prefers-reduced-motion: reduce) {
  #pergament .pergament-scroll { scroll-behavior: auto; }
}

/* =========================================
   Slideshow 
========================================= */
.rk-slideshow {
  width: 100%;
  position: relative;
  margin: auto;
  overflow: hidden;
}
.rk-slide {
  display: none;
  width: 100%;
}
.rk-slide img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Manuelle Navigation (Pfeile) */
.rk-prev,
.rk-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.3s ease;
  border-radius: 0 4px 4px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
}
.rk-next {
  right: 0;
  border-radius: 4px 0 0 4px;
}
.rk-prev:hover,
.rk-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.fade {
  animation-name: fade-anim;
  animation-duration: 1s;
}
@keyframes fade-anim {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Blendet die Pfeile auf Geräten mit Touchscreen (Smartphones etc.) aus */
@media (hover: none) and (pointer: coarse) {
  .rk-prev,
  .rk-next {
    display: none;
  }
}
