:root {
  color-scheme: dark;
  background: #020b14;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #020b14;
}


/* =========================================================
   🌙 HERO
   ========================================================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;

  overflow: hidden;

  background: #020b14;
}


/* =========================================================
   🏰 HINTERGRUNDBILD
   ========================================================= */

.hero__image {
  display: block;

  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


/* =========================================================
   ✨ HOTSPOT-CONTAINER
   ========================================================= */

.hero__hotspots {
  position: absolute;

  top: 50%;
  left: 50%;

  width: max(
    100%,
    calc(100dvh * 1.7708333333)
  );

  height: max(
    100%,
    calc(100vw / 1.7708333333)
  );

  transform: translate(-50%, -50%);

  z-index: 999;
}


/* =========================================================
   ✨ HOTSPOT-BEREICHE
   ========================================================= */

.hero__hotspot {
  --hotspot-light: 174 145 224;
  --hotspot-hover: 241 232 207;
  --hotspot-delay: 0s;

  position: absolute;

  display: block;

  border: 0;
  padding: 0;

  background: transparent;

  cursor: pointer;
}


/* =========================================================
   🌫️ SANFTER LICHTSCHEIN BEIM HOVER
   ========================================================= */

.hero__hotspot::after {
  position: absolute;

  inset: -20%;

  content: "";

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse at center,
      rgb(var(--hotspot-hover) / 0.18),
      rgb(var(--hotspot-hover) / 0.055) 42%,
      transparent 72%
    );

  opacity: 0;

  transition:
    opacity 700ms ease;

  pointer-events: none;

  z-index: 1;
}


/* =========================================================
   ✨ MAGISCHER MITTELPUNKT
   ========================================================= */

.hero__hotspot-light {
  position: absolute;

  top: 50%;
  left: 50%;

  display: block;

  /*
     Bewusst größer:
     Der Lichtpunkt soll auf dem großen Bild
     eindeutig erkennbar sein.
  */

  width: clamp(
    0.72rem,
    0.95vw,
    1rem
  );

  height: clamp(
    0.72rem,
    0.95vw,
    1rem
  );

  border-radius: 50%;

  background:
    radial-gradient(
      circle,

      rgb(255 255 255 / 1) 0 18%,

      rgb(var(--hotspot-light) / 1) 36%,

      rgb(var(--hotspot-light) / 0.72) 56%,

      rgb(var(--hotspot-light) / 0.28) 76%,

      transparent 100%
    );

  box-shadow:

    0 0 0.45rem
      rgb(var(--hotspot-light) / 1),

    0 0 1rem
      rgb(var(--hotspot-light) / 0.9),

    0 0 2rem
      rgb(var(--hotspot-light) / 0.65),

    0 0 3.5rem
      rgb(var(--hotspot-light) / 0.32);

  opacity: 0.82;

  /*
     WICHTIG:
     Kein Scale mehr hier!
     Dadurch werden die Orbs nicht mitvergrößert.
  */

  transform:
    translate(-50%, -50%);

  animation:
    hotspot-pulse
    8s
    ease-in-out
    infinite
    var(--hotspot-delay);

  pointer-events: none;

  z-index: 9999;
}


/* =========================================================
   ○ SAUBERE MAGISCHE UMLAUFBAHN
   ========================================================= */

.hero__hotspot-light::before {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: clamp(
    2.6rem,
    4vw,
    4.2rem
  );

  height: clamp(
    2.6rem,
    4vw,
    4.2rem
  );

  transform:
    translate(-50%, -50%);

  border-radius: 50%;

  border:
    1px solid
    rgb(var(--hotspot-light) / 0.28);

  box-shadow:
    0 0 0.5rem
      rgb(var(--hotspot-light) / 0.18),

    inset 0 0 0.6rem
      rgb(var(--hotspot-light) / 0.08);

  opacity: 0.65;

  pointer-events: none;

  z-index: -1;
}


/* =========================================================
   ✨ KLEINE LICHTPARTIKEL
   ========================================================= */

.hero__hotspot-light::after {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  /*
     Ein einzelner sauberer Lichtpunkt.
     Die weiteren Punkte entstehen über box-shadow.
  */

  width: 0.24rem;
  height: 0.24rem;

  margin-left: -0.12rem;
  margin-top: -0.12rem;

  border-radius: 50%;

  background:
    rgb(255 255 255 / 0.95);

  box-shadow:

    /* Punkt oben */
    0 -1.7rem 0
      rgb(var(--hotspot-light) / 0.9),

    /* Punkt rechts */
    1.65rem -0.15rem 0
      rgb(var(--hotspot-light) / 0.8),

    /* Punkt unten rechts */
    0.95rem 1.35rem 0
      rgb(var(--hotspot-light) / 0.7),

    /* Punkt unten links */
    -1.2rem 1.25rem 0
      rgb(var(--hotspot-light) / 0.75),

    /* Punkt links */
    -1.7rem -0.35rem 0
      rgb(var(--hotspot-light) / 0.65),

    /* kleiner zusätzlicher Punkt */
    -0.75rem -1.45rem 0
      rgb(var(--hotspot-light) / 0.55);

  opacity: 0.65;

  filter:
    drop-shadow(
      0 0 0.3rem
      rgb(var(--hotspot-light) / 0.8)
    );

  animation:
    sparkle-orbit
    18s
    linear
    infinite
    var(--hotspot-delay);

  pointer-events: none;

  z-index: 2;
}


/* =========================================================
   🌟 SANFTES PULSIEREN DES MITTELPUNKTS
   ========================================================= */

@keyframes hotspot-pulse {

  0%,
  100% {
    opacity: 0.58;

    box-shadow:

      0 0 0.4rem
        rgb(var(--hotspot-light) / 0.85),

      0 0 0.9rem
        rgb(var(--hotspot-light) / 0.7),

      0 0 1.8rem
        rgb(var(--hotspot-light) / 0.45),

      0 0 3rem
        rgb(var(--hotspot-light) / 0.22);
  }

  25% {
    opacity: 0.78;

    box-shadow:

      0 0 0.5rem
        rgb(var(--hotspot-light) / 1),

      0 0 1.1rem
        rgb(var(--hotspot-light) / 0.85),

      0 0 2.1rem
        rgb(var(--hotspot-light) / 0.58),

      0 0 3.5rem
        rgb(var(--hotspot-light) / 0.28);
  }

  48% {
    opacity: 0.62;

    box-shadow:

      0 0 0.4rem
        rgb(var(--hotspot-light) / 0.9),

      0 0 0.95rem
        rgb(var(--hotspot-light) / 0.72),

      0 0 1.9rem
        rgb(var(--hotspot-light) / 0.48),

      0 0 3.2rem
        rgb(var(--hotspot-light) / 0.23);
  }

  67% {
    opacity: 0.92;

    box-shadow:

      0 0 0.55rem
        rgb(var(--hotspot-light) / 1),

      0 0 1.25rem
        rgb(var(--hotspot-light) / 0.95),

      0 0 2.4rem
        rgb(var(--hotspot-light) / 0.68),

      0 0 4rem
        rgb(var(--hotspot-light) / 0.32);
  }

  84% {
    opacity: 0.68;
  }
}


/* =========================================================
   ✨ LANGSAMER ORBIT DER PARTIKEL
   ========================================================= */

@keyframes sparkle-orbit {

  from {
    transform:
      rotate(0deg);
  }

  to {
    transform:
      rotate(360deg);
  }
}


/* =========================================================
   🖱️ HOVER
   ========================================================= */

.hero__hotspot:hover::after,
.hero__hotspot:focus-visible::after {
  opacity: 1;
}


.hero__hotspot:hover .hero__hotspot-light,
.hero__hotspot:focus-visible .hero__hotspot-light {

  opacity: 1;

  box-shadow:

    0 0 0.55rem
      rgb(255 255 255 / 1),

    0 0 1.1rem
      rgb(var(--hotspot-hover) / 1),

    0 0 2.2rem
      rgb(var(--hotspot-hover) / 0.85),

    0 0 3.8rem
      rgb(var(--hotspot-hover) / 0.5);
}


.hero__hotspot:hover .hero__hotspot-light::before,
.hero__hotspot:focus-visible .hero__hotspot-light::before {

  opacity: 0.95;

  border-color:
    rgb(var(--hotspot-hover) / 0.42);

  box-shadow:
    0 0 0.8rem
      rgb(var(--hotspot-hover) / 0.25),

    inset 0 0 0.8rem
      rgb(var(--hotspot-hover) / 0.12);
}


.hero__hotspot:hover .hero__hotspot-light::after,
.hero__hotspot:focus-visible .hero__hotspot-light::after {

  opacity: 1;

  filter:
    drop-shadow(
      0 0 0.45rem
      rgb(var(--hotspot-hover) / 0.95)
    );
}


/* =========================================================
   ♿ REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .hero__hotspot-light,
  .hero__hotspot-light::after {

    animation: none;
  }
}


/* =========================================================
   ✨ HOTSPOT-BEREICHE
   Bildkoordinaten in Prozent
   ========================================================= */

.hero__hotspot--personen {

  --hotspot-light: 174 145 224;
  --hotspot-delay: -2.4s;

  top: 38%;
  left: 39%;

  width: 20%;
  height: 31%;
}


.hero__hotspot--geschichten {

  --hotspot-light: 232 193 116;
  --hotspot-delay: -7.1s;

  top: 20%;
  left: 57%;

  width: 10%;
  height: 29%;
}


.hero__hotspot--mystery {

  --hotspot-light: 129 160 231;
  --hotspot-delay: -4.8s;

  top: 54%;
  left: 79%;

  width: 13%;
  height: 32%;
}


.hero__hotspot--orte {

  --hotspot-light: 98 194 183;
  --hotspot-delay: -9.2s;

  top: 48%;
  left: 5%;

  width: 30%;
  height: 34%;
}


/* =========================================================
   🏷️ LOGO
   ========================================================= */

.hero__logo {

  position: absolute;

  top: clamp(
    1.25rem,
    3vw,
    3rem
  );

  left: clamp(
    1.25rem,
    4vw,
    4rem
  );

  margin: 0;

  color: #f4f1e9;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(
    1.5rem,
    2.8vw,
    3.25rem
  );

  font-weight: 400;

  letter-spacing: 0.015em;

  line-height: 1;

  text-shadow:
    0 0.12em 0.55em
    rgba(0, 0, 0, 0.68);
}


/* =========================================================
   📱 MOBILE
   ========================================================= */

@media (max-width: 48rem) {

  .hero__image {
    object-position: 62% center;
  }
}