/* =========================================================
   STYLE.CSS – Jan Cronauer (home-v3)
   Optimierte, kommentierte Version
   ========================================================= */

/* =========================================================
   LOKALE WEBFONTS – keine Verbindung zu Google
   Pfade relativ zu assets/css/style.css
   ========================================================= */
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-ext-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-ext-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-ext-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-ext-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-ext-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-ext-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-ext-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-ext-800-italic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("../fonts/comic-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("../fonts/comic-neue-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("../fonts/comic-neue-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("../fonts/comic-neue-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

/* ---------- RESET & GLOBAL ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Farben & Layoutvariablen */
  --bg-url: url("../images/background/Hintergrund.png");
  --color-text: #fff;
  --color-link: #3b83d5;
  --color-link-hover: #dcdc1c;
  --overlay-bg: rgba(0,0,0,0.6);
  --nav-bg: rgba(0,0,0,0.9);
  --transition-speed: 0.8s;

  /* Rechtliche Navigation */
  --legal-font: "arial", Garamond, Georgia, serif;
  --legal-size: 16px;
  --legal-color: #d8d8d8;
  --legal-hover: #ffffff;
}

html, body {
  overflow: hidden;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: #000;
}
.viewport {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

/* ---------- BACKGROUND ---------- */
.background {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.background img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- RÄUME ---------- */
.room {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}
.room[data-room="1"] { top: 0vh; }
.room[data-room="2"] { top: 100vh; }
.room[data-room="3"] { top: 200vh; }
.room[data-room="4"] { top: 300vh; }
.room[data-room="5"] { top: 400vh; }
.room[data-room="6"] { top: 500vh; }
.room[data-room="7"] { top: 600vh; }


/* ---------- HOTSPOTS ---------- */
.hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}
.hotspot {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.hotspot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Hover nur auf Geräten mit Maus aktivieren */
@media (hover: hover) and (pointer: fine) {
  .hotspot:hover img {
    filter: brightness(1.0) contrast(1.1);
    transform: scale(1.10);
  }
}

/* ---------- OVERLAY ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  display: none;
  z-index: 1000;
}
.overlay.active {
  display: block;
}
.overlay-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  perspective: 1200px;
}
.card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--transition-speed) ease;
  cursor: pointer;
}
.card.flipped {
  transform: rotateY(180deg);
}
.card-face {
  backface-visibility: hidden;
}
.card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

.toggle-text {
  pointer-events: none;
}

#overlayFront, #overlayBack {
  width: 100%;
  height: auto;
  display: block;
}
#overlayText {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
  color: var(--color-text);
  font-weight: 100;
  font-size: clamp(0.8rem, 1em, 1.1rem);
  line-height: clamp(1.3, 1.4, 1.6);
  background: rgba(0,0,0,0.55);
  padding: clamp(8px, 1.4em, 14px);
  border-radius: 6px;
}
#overlayText a:link,
#overlayText a:visited {
  color: var(--color-link);
  text-decoration: underline;
  font-weight: 600;
}
#overlayText a:hover {
  color: var(--color-link-hover);
}

.overlay-text-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.overlay-text-copy {
  display: inline;
}

.overlay-video-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.2s ease, background 0.2s ease;
}

.overlay-video-trigger:hover {
  transform: scale(1.08);
  background: rgba(0,0,0,0.7);
}

.overlay-video-icon {
  font-size: 1rem;
  line-height: 1;
  margin-left: 0.1rem;
}

/* Für Slide-Show */
.slideshow-img {
  transition: opacity 0.15s ease;
}




/* ---------- FONTS ---------- */
.font-times { font-family: Times, serif; }
.font-arial { font-family: Arial, Helvetica, sans-serif; }
.font-verdana { font-family: Verdana, Geneva, Tahoma, sans-serif; }
.font-comic { font-family: "Comic Neue", "Comic Sans MS", "Comic Sans", cursive; }
.font-georgia { font-family: Georgia, serif; }

/* ---------- BURGER MENU ---------- */
.burger {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 5000;
  width: 32px;
  height: 24px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 4px;
  margin: 5px 0;
  background: #fff;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.nav-overlay {
  position: fixed;
  top: 56px;
  right: 16px;
  background: var(--nav-bg);
  border-radius: 8px;
  padding: 6px 10px;
  width: max-content;
  z-index: 5000;
  display: none;
  font-family:Arial, Helvetica, sans-serif
}
.nav-overlay.active { display: block; }
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li { margin: 6px 0; }
.nav-menu a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
}

/* ===============================
   VIDEO-FENSTER
   =============================== */
.video-window {
  position: absolute;
  background: rgba(0,0,0,0.85);
  border: 2px solid #fff;
  border-radius: 8px;
  overflow: hidden;
  z-index: 99999;
  display: none;
}

.video-window video {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===============================
   Video-Schließen-Button
   =============================== */
.video-close {
  position: absolute;
  top: 6px;
  right: 10px;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  z-index: 100000;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease;
}

.video-close:hover {
  transform: scale(1.3);
  color: #ff5555;
}

.toggle-text .red {
  color: #ff3333;
}
.toggle-text .blue {
  color: #33aaff;
}


/* --------HEADER UND FOOTER ---fix------- */
header {
  position: fixed;
  left: 0;
  transform: none;
  width: 100%;                  /* schmälerer Bereich */
  max-width: 1920px;           /* optional: obere Grenze */
  z-index: 10;
  text-align: center;
  background: rgba(0, 0, 0, 0.0);
  color: #070707;
  font-family: sans-serif;
  padding: 10px 0;
  border-radius: 10px;          /* leicht abgerundet */
/*  backdrop-filter: blur(4px);   /* moderner Glas-Effekt (optional) */
}

footer {
  position: fixed;
  left: 0;
  transform: none;
  width: 100%;                  /* schmälerer Bereich */
  max-width: 1920px;           /* optional: obere Grenze */
  z-index: 10;
  text-align: center;
  background: rgba(0, 0, 0, 0.0);
  color: #080808;
  font-family: sans-serif;
  padding: 10px 0;
  border-radius: 10px;          /* leicht abgerundet */
/*  backdrop-filter: blur(4px);   /* moderner Glas-Effekt (optional) */
}

footer { font-size: 0.5rem; line-height: 1.0; }
header h1, header h2 { font-size: 0.7rem; line-height: 1.0; }

/* 📱 Handy (bis 768px Breite) */
@media (max-width: 768px) {
  header h2,
  footer h2 {
    font-size: 0.5rem; /* ca. 14px */
  }
}

/* 📟 Tablet (zwischen 769px und 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  header h2,
  footer h2 {
    font-size: 0.5rem; /* ca. 14px */
  }
}

header { top: 0; }
footer { bottom: 0; }





/* ===============================
   🌍 LANGUAGE SWITCH
   =============================== */
.language-switch {
  position: fixed;
  top: 14px;
  right: 64px; /* sits left of burger */
  z-index: 6000;
  display: flex;
  gap: 6px;
}

.language-switch button {
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .language-switch button:hover {
    background: rgba(0,0,0,0.75);
  }
}


/* ==========================================
   Slideshow Navigation (Minimal SVG)
   ========================================== */

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: rgba(0,0,0,0.25);
  border-radius: 50%;
}

.slideshow-nav svg {
  width: 16px;
  height: 16px;
}

.slideshow-prev { left: 12px; }
.slideshow-next { right: 12px; }

.hotspot.slideshow-active:hover .slideshow-nav {
  opacity: 1;
}

@media (hover: none) {
  .hotspot.slideshow-active .slideshow-nav {
    opacity: 1;
  }
}


/* ===============================
   SLIDESHOW FINAL STABLE LAYOUT
   =============================== */

.slide-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}


.slide-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.slideshow-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: none;

  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 1.5rem;
  box-sizing: border-box;
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.slideshow-prev { left: 6px; }
.slideshow-next { right: 6px; }

.slideshow-nav svg {
  width: 14px;
  height: 14px;
}

.slideshow-active .slideshow-nav {
  opacity: 1;
  z-index: 50;
}


/* ===============================
   📱 MOBILE VIEW SWITCH
   =============================== */
.mobile-switch {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 6000;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  display: none;
}

@media (max-width: 768px) {
  .mobile-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (hover: hover) and (pointer: fine) {
  .mobile-switch:hover {
    background: rgba(0,0,0,0.75);
  }
}

/* ===============================
   SCENE VIDEO (TV-Rahmen ohne alten Popup-Rand)
   =============================== */
.scene-video,
.scene-video-frame,
.scene-video-close {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.scene-video {
  display: block;
  object-fit: cover;
  border-radius: 0 !important;
}

.scene-video-frame {
  display: block;
  object-fit: fill;
  pointer-events: none;
  border-radius: 0 !important;
}

.scene-video-close {
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
  pointer-events: auto;
}

/* =========================================================
   OPTIONALE WEBFONT-ABSICHERUNG
   "font": "Garamond" in hotspots.json wird per script.js auf EB Garamond gemappt.
   Diese CSS-Regeln sind zusätzliche Sicherheit.
   ========================================================= */
.font-garamond,
.font-Garamond,
[data-font-name="garamond"],
[data-font-name="garamond"] * {
  font-family: "EB Garamond", Garamond, Georgia, serif !important;
  font-synthesis: none !important;
}

/* =========================================================
   VERSION 4.0 – ZENTRALE ABSICHERUNGEN
   ========================================================= */

.font-garamond,
.font-Garamond,
[data-font-name="garamond"],
[data-font-name="garamond"] * {
  font-family: "EB Garamond", Garamond, Georgia, serif !important;
  font-synthesis: none !important;
}

.language-switch[aria-hidden="true"] {
  display: none !important;
}


/* ===============================
   ✉️ MAIL-ADRESSAUSWAHL
   =============================== */
.mail-choice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0.55);
  box-sizing: border-box;
}

.mail-choice-dialog {
  width: min(90vw, 420px);
  padding: 24px;
  border-radius: 12px;
  background: rgba(0,0,0,0.82);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
  font-family: Arial, Helvetica, sans-serif;
}

.mail-choice-title {
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 700;
}

.mail-choice-options {
  display: grid;
  gap: 10px;
}

.mail-choice-option,
.mail-choice-close {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.mail-choice-option:hover,
.mail-choice-close:hover {
  background: rgba(255,255,255,0.18);
}

.mail-choice-close {
  margin-top: 16px;
  opacity: 0.85;
}

/* =========================================================
   COMIC FONT HARD FIX
   ========================================================= */
.font-comic,
.font-comic *,
.font-Comic,
.font-Comic *,
[data-font-name="comic"],
[data-font-name="comic"] *,
[data-font-name="comic sans"],
[data-font-name="comic sans"] *,
[data-font-name="comic sans ms"],
[data-font-name="comic sans ms"] *,
[data-font-name="comic neue"],
[data-font-name="comic neue"] * {
  font-family: "Comic Neue", "Comic Sans MS", "Comic Sans", cursive !important;
  font-synthesis: none !important;
}



/* =========================================================
   VERSION 4.1 – KONSOLIDIERTE DIALOGE
   Kalender + Mail
   ========================================================= */

/* Beide Dialoge: gleiche Grundlogik */
.calendar-dialog,
.mail-choice-dialog {
  position: relative !important;
  box-sizing: border-box !important;
  max-width: 92vw !important;
  overflow-x: hidden !important;
}

/* Kalender: keine waagrechte Scrollleiste */
.calendar-dialog {
  overflow-x: hidden !important;
}

/* Inhalt darf nie breiter als der schwarze Hintergrund werden */
.calendar-dialog *,
.mail-choice-dialog * {
  box-sizing: border-box !important;
  max-width: 100%;
}

/* Einheitliches weißes X oben rechts */
.dialog-x-close,
.calendar-x-close,
.mail-choice-x-close {
  position: absolute !important;
  top: 8px !important;
  right: 10px !important;
  z-index: 1000 !important;

  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  color: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;

  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.dialog-x-close:hover,
.calendar-x-close:hover,
.mail-choice-x-close:hover {
  color: #e5e5e5 !important;
  background: transparent !important;
  transform: scale(1.08);
}

/* Abstand, damit Titel nicht mit dem X kollidiert */
.calendar-box,
.mail-choice-title {
  padding-right: 42px !important;
}

/* Mail-Liste bleibt im Dialog */
.mail-choice-options {
  width: 100% !important;
  box-sizing: border-box !important;
}

.mail-choice-option {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: normal !important;
  line-height: 1.35 !important;
}

.mail-choice-option a {
  color: var(--color-link, #3b83d5);
  text-decoration: underline;
  font-weight: 700;
}

/* Alte untere Schließen-Buttons sicher ausblenden, falls Browsercache alte HTML-Reste hat */
.calendar-close,
.mail-choice-close {
  display: none !important;
}


/* ==========================================
   Slideshow Punkt-Navigation / Pagination
   ========================================== */

.hotspot.slideshow-hotspot:not(.slideshow-active):hover img {
  filter: brightness(1.0) contrast(1.1);
  transform: scale(1.10);
}

.hotspot.slideshow-hotspot.slideshow-active:hover img {
  filter: none !important;
  transform: none !important;
}

.hotspot.slideshow-hotspot:not(.slideshow-active) .slide-wrapper {
  overflow: visible !important;
}

.hotspot.slideshow-hotspot.slideshow-active .slide-wrapper {
  overflow: hidden !important;
}

.slideshow-dots {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: 90vw;
  white-space: nowrap;
  z-index: 80;
  pointer-events: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.42);
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
  line-height: 0;
}

.slideshow-active .slideshow-dots {
  display: flex;
}

.slideshow-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 9px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  opacity: 0.9;
}

.slideshow-dot.active {
  background: rgba(255,255,255,0.96);
  opacity: 1;
  transform: none;
}

.slideshow-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .slideshow-dots {
    top: calc(100% + 7px);
    gap: 9px;
    padding: 7px 11px;
  }

  .slideshow-dot {
    width: 11px;
    height: 11px;
    min-width: 11px;
    min-height: 11px;
  }
}


/* ==========================================
   Slideshow Hintergrund-Abdunklung – stabil
   ========================================== */

/* Während einer Slideshow wird die Hotspot-Ebene angehoben,
   damit die aktive Slideshow über der Abdunklung liegen kann. */
.background.slideshow-mode .hotspots {
  z-index: 1000 !important;
}

/* Separater Abdunklungs-Layer in der Szene.
   Er nutzt exakt dieselbe Farbe wie normale Overlays. */
.slideshow-scene-dim {
  position: absolute;
  inset: 0;
  z-index: 900;
  background: var(--overlay-bg);
  pointer-events: none;
}

/* Nur die aktive Slideshow liegt über der Abdunklung. */
.hotspot.slideshow-active {
  z-index: 1200 !important;
}



/* =========================================================
   KALENDERBLATT – per hotspots.json steuerbar
   ========================================================= */
.calendar-today-badge {
  top: var(--calendar-badge-top, 47%);
  width: var(--calendar-badge-width, 78%);
  max-width: var(--calendar-badge-width, 78%);
}

.calendar-today-date {
  font-size: var(--calendar-today-size, 32px);
}

.calendar-today-time {
  font-size: var(--calendar-time-size, 16px);
}

.calendar-today-title {
  font-size: var(--calendar-title-size, 18px);
}

.calendar-day-number {
  font-size: var(--calendar-day-size, 54px);
}

.calendar-day-month {
  font-size: var(--calendar-month-size, 22px);
}

/* =========================================================
   STATISCHE SZENENOBJEKTE: image + label
   Dauerhaft sichtbar, ohne Hover und ohne Interaktion.
   ========================================================= */
.static-object {
  pointer-events: none !important;
  cursor: default !important;
  user-select: none;
  box-sizing: border-box;
  will-change: transform, opacity;
}

.static-image-object img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  pointer-events: none;
  transition: none !important;
  filter: none !important;
  transform: none !important;
}

.static-label-object {
  width: auto;
  overflow-wrap: break-word;
  word-break: normal;
  pointer-events: none;
}

.static-label-object.static-label-has-links {
  pointer-events: none !important;
  user-select: text;
}

.static-label-object.static-label-has-links a {
  color: var(--static-link-color, var(--color-link, #3b83d5));
  text-decoration: var(--static-link-decoration, underline);
  pointer-events: auto !important;
  cursor: pointer !important;
  transition: color 0.2s ease;
}

.static-label-object.static-label-has-links a:visited {
  color: var(--static-link-color, var(--color-link, #3b83d5));
}

@media (hover: hover) and (pointer: fine) {
  .static-label-object.static-label-has-links a:hover {
    color: var(--static-link-hover-color, var(--color-link-hover, #dcdc1c));
  }
}

.static-label-object.static-label-has-links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Der globale Hotspot-Hover darf statische Bilder niemals verändern. */
@media (hover: hover) and (pointer: fine) {
  .hotspot.static-object:hover,
  .hotspot.static-object:hover img {
    cursor: default !important;
    filter: none !important;
  }

  .hotspot.static-image-object:hover img {
    transform: none !important;
  }
}

@keyframes staticObjectFadeIn {
  from { opacity: 0; }
}

@keyframes staticObjectFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -10px; }
}

@keyframes staticObjectPulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.04; }
}

@keyframes staticObjectGentleRotate {
  0%, 100% { rotate: -1deg; }
  50% { rotate: 1deg; }
}

.static-animation-fadeIn {
  animation: staticObjectFadeIn var(--static-animation-duration, 1s) ease both;
  animation-delay: var(--static-animation-delay, 0s);
}

.static-animation-float {
  animation: staticObjectFloat var(--static-animation-duration, 3s) ease-in-out infinite;
  animation-delay: var(--static-animation-delay, 0s);
}

.static-animation-pulse {
  animation: staticObjectPulse var(--static-animation-duration, 3s) ease-in-out infinite;
  animation-delay: var(--static-animation-delay, 0s);
}

.static-animation-gentleRotate {
  animation: staticObjectGentleRotate var(--static-animation-duration, 4s) ease-in-out infinite;
  animation-delay: var(--static-animation-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .static-object {
    animation: none !important;
  }
}


/* =========================================================
   RECHTLICHE SEITEN – Dialog, Footer- und Menünavigation
   ========================================================= */
body.legal-dialog-open { overflow: hidden; }

.legal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 36px);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.legal-dialog {
  position: relative;
  width: min(94vw, 880px);
  max-height: 90dvh;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  background: rgba(14,14,14,0.96);
  color: #f5f5f5;
  box-shadow: 0 18px 60px rgba(0,0,0,0.58);
  font-family: "EB Garamond", Garamond, Georgia, serif;
}

.legal-dialog-title {
  margin: 0 42px 1rem 0;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.08;
  font-weight: 700;
  text-align: left;
}

.legal-dialog-content {
  max-height: calc(90dvh - 125px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 10px 18px 0;
  font-size: clamp(1rem, 1.8vw, 1.13rem);
  line-height: 1.55;
  text-align: left;
  scrollbar-gutter: stable;
}

.legal-dialog-content h2 { margin: 1.5em 0 0.45em; font-size: 1.35em; line-height: 1.18; }
.legal-dialog-content h3 { margin: 1.2em 0 0.35em; font-size: 1.12em; }
.legal-dialog-content p { margin: 0 0 0.9em; }
.legal-dialog-content ul { margin: 0 0 1em 1.25em; }
.legal-dialog-content li { margin: 0.25em 0; }
.legal-dialog-content address { margin-bottom: 1em; font-style: normal; }
.legal-dialog-content a { color: var(--color-link, #70aef0); text-decoration: underline; }
.legal-dialog-content a:hover { color: var(--color-link-hover, #dcdc1c); }
.legal-dialog-content .legal-note { padding: 0.8em 1em; border-left: 3px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }
.legal-load-error { color: #ffb4b4; }

.legal-footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.22rem;
  margin-top: 0.25rem;
  pointer-events: auto;
}

.legal-footer-link,
.legal-menu-link {
  border: 0;
  padding: 0;
  background: transparent;
  font-family: var(--legal-font);
  font-size: var(--legal-size);
  font-weight: 500;
  color: var(--legal-color);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.legal-footer-link:hover,
.legal-menu-link:hover {
  color: var(--legal-hover);
}

.legal-footer-separator {
  color: var(--legal-color);
  opacity: 0.65;
}

.legal-menu-link {
  font-size: 16px;
}

@media (max-width: 768px) {
  .legal-backdrop { padding: 8px; align-items: stretch; }
  .legal-dialog { width: 100%; max-height: 100dvh; border-radius: 10px; padding: 20px 16px; }
  .legal-dialog-content { max-height: calc(100dvh - 92px); padding-right: 4px; }
  .legal-dialog-title { font-size: 1.55rem; }
  .legal-footer-nav { font-size: 0.62rem; }
}


/* Toggle Replace: Klicks sicher durchlassen – insbesondere iPad/Safari.
   JS setzt data-replace-pointer-events="none" am aktiven Toggle. */
.hotspot[data-state="on"][data-replace-pointer-events="none"] > .toggle-replace-image,
.hotspot[data-state="on"][data-replace-pointer-events="none"] .static-object-animation-layer {
  pointer-events: none !important;
}
