/* ============================================================
   Fellgeliebt — Das Paradies
   Interaktives Wimmelbild: Pan/Zoom-Welt, Bewohner-Marker,
   „Seinen Platz wählen“-Modus. Tokens aus ../styles.css.
   ============================================================ */

.seite-paradies { background: var(--abend); }

.kopfleiste {
  background: var(--abend);
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem var(--pad-x);
}
.kopfleiste .wortmarke { color: var(--papier); }
.kopfleiste__links a {
  font-size: 0.88rem; font-weight: 600; text-decoration: none;
  color: rgba(242,236,225,0.82); border-bottom: 1px dashed rgba(242,236,225,0.35);
  padding-bottom: 1px;
}
.kopfleiste__links a:hover { color: var(--gold); border-color: var(--gold); }

/* Kopf */
.paradies-kopf { color: var(--papier); padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.6rem, 3vw, 2.5rem); }
.paradies-kopf__inner { max-width: 780px; text-align: center; }
.paradies-kopf__h1 {
  font-family: var(--display); font-weight: 500; font-style: italic;
  font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05;
  margin: 0.7rem 0 1rem; color: var(--papier);
}
.paradies-kopf__sub { color: rgba(242,236,225,0.85); }
.paradies-kopf__sub strong { color: var(--gold); }

/* ---------- Welt ---------- */
.welt-sektion { padding: 0 var(--pad-x) clamp(2.5rem, 4vw, 4rem); }
.welt-viewport {
  position: relative; max-width: 1280px; margin: 0 auto;
  height: min(72vh, 720px); overflow: hidden;
  border-radius: 18px; border: 1px solid rgba(223,167,92,0.4);
  box-shadow: 0 0 0 6px rgba(223,167,92,0.08), 0 30px 90px rgba(0,0,0,0.5);
  background: #1E2A32;
  touch-action: none; cursor: grab;
}
.welt-viewport.zieht { cursor: grabbing; }
.welt-viewport.platzwahl { cursor: crosshair; }
.welt { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.welt__bild { display: block; width: 2752px; max-width: none; height: auto; user-select: none; -webkit-user-drag: none; }

/* Bewohner */
.tier {
  position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: none;
}
.tier img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 2px rgba(255,253,247,0.85), 0 6px 18px rgba(0,0,0,0.45);
  transition: transform 0.25s cubic-bezier(.22,1,.36,1);
}
.tier:hover img, .tier:focus-visible img { transform: scale(1.12); }
.tier::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid rgba(223,167,92,0.55);
  animation: tierPuls 2.6s ease-in-out infinite;
}
@keyframes tierPuls {
  0%, 100% { transform: scale(0.92); opacity: 0.9; }
  50% { transform: scale(1.12); opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) { .tier::after { animation: none; } }

/* Platz-Marker (Feder) */
.platz-marker { position: absolute; width: 46px; margin: -40px 0 0 -23px; pointer-events: none; }
.platz-marker img { width: 100%; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }
.platz-marker::after {
  content: ""; position: absolute; left: 50%; bottom: -6px;
  width: 26px; height: 8px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(223,167,92,0.75), transparent);
  border-radius: 50%;
  animation: platzGlanz 2s ease-in-out infinite;
}
@keyframes platzGlanz { 0%,100% { opacity: 0.9; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .platz-marker::after { animation: none; } }

/* UI im Viewport */
.welt-hinweis {
  position: absolute; left: 50%; top: 0.9rem; transform: translateX(-50%);
  background: rgba(30,42,50,0.78); backdrop-filter: blur(4px);
  color: rgba(242,236,225,0.9); font-size: 0.78rem;
  padding: 0.4rem 1rem; border-radius: 999px; white-space: nowrap;
  pointer-events: none; max-width: 92%; overflow: hidden; text-overflow: ellipsis;
}
.welt-zoom {
  position: absolute; right: 1rem; bottom: 1rem;
  display: grid; gap: 0.45rem;
}
.welt-zoom button {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(223,167,92,0.6);
  background: rgba(30,42,50,0.85); color: var(--gold);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.welt-zoom button:hover { background: rgba(223,167,92,0.25); transform: scale(1.06); }
.welt-platz-cta { position: absolute; left: 1rem; bottom: 1rem; border-radius: 999px; }
.welt-platz-cta.aktiv { background: var(--papier); color: var(--tinte); }

/* Besuchs-/Platz-Karte */
.besuch {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  width: min(340px, calc(100% - 2rem));
  background: linear-gradient(175deg, #FFFDF7, #F3EBD8);
  border: 1px solid rgba(154,108,60,0.4); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  padding: 1rem 1.1rem 1.2rem; text-align: center;
  color: var(--tinte);
}
.besuch__zu {
  position: absolute; top: 0.4rem; right: 0.6rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: rgba(35,42,47,0.55);
  padding: 0.2rem;
}
.besuch__zu:hover { color: var(--tinte); }
.besuch__bild {
  width: 108px; height: 132px; object-fit: cover; object-position: top;
  border-radius: 10px; border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(35,42,47,0.3);
  margin: 0.2rem auto 0.6rem;
}
.besuch__plakette {
  width: fit-content; min-width: 130px; margin: 0 auto;
  padding: 0.3rem 1rem 0.35rem;
  background: linear-gradient(165deg, #D4A76C, #9A6C3C 55%, #C79B62);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 3px 10px rgba(35,42,47,0.3);
}
.besuch__name { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.05rem; color: #2E2415; }
.besuch--platz .besuch__name { color: var(--tinte); font-size: 1.2rem; margin-bottom: 0.3rem; }
.besuch__jahre { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(46,36,21,0.78); }
.besuch__jahre:empty { display: none; }
.besuch__zeile { font-size: 0.82rem; color: rgba(35,42,47,0.7); margin-top: 0.6rem; line-height: 1.55; }
.besuch__cta { margin-top: 0.9rem; font-size: 0.9rem; padding: 0.75rem 1.3rem; border-radius: 10px; display: inline-block; }

/* ---------- Erklärung ---------- */
.erklaerung { position: relative; padding-bottom: 0; }
.erklaerung .inner { padding-bottom: 1rem; }
.ornament { display: block; width: min(320px, 60%); height: auto; margin: 0 auto 0.4rem; opacity: 0.9; }
.h2--mitte { text-align: center; }
.erklaerung__spalten {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3.5vw, 3rem); margin-top: 1.8rem;
}
.erklaerung__spalten h3 {
  font-family: var(--display); font-weight: 500; font-size: 1.22rem; margin-bottom: 0.4rem;
}
.erklaerung__spalten p { font-size: 0.94rem; color: rgba(35,42,47,0.8); }
.erklaerung__hinweis {
  margin-top: 2.4rem; text-align: center; font-size: 0.88rem;
  font-style: italic; font-family: var(--display); color: rgba(35,42,47,0.65);
}

/* Reveal-Zustände (kein GSAP hier: sanft per CSS).
   Nur verstecken, wenn JS wirklich läuft (html.js) — sonst bleibt alles sichtbar. */
[data-load], [data-reveal] { transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22,1,.36,1); }
.js [data-load], .js [data-reveal] { opacity: 0; transform: translateY(16px); }
.js .sichtbar[data-load], .js .sichtbar[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-load], [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .erklaerung__spalten { grid-template-columns: 1fr; gap: 1.4rem; }
  .welt-viewport { height: min(64vh, 560px); }
}
@media (max-width: 560px) {
  .welt-hinweis { font-size: 0.7rem; top: 0.6rem; }
  .welt-platz-cta { left: 0.7rem; bottom: 0.7rem; font-size: 0.82rem; padding: 0.6rem 1rem; }
  .welt-zoom { right: 0.7rem; bottom: 0.7rem; }
  .tier { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
}
