:root {
  --size: 300px;
  --bg: #050505;

  --accent1: #ffffff;
  /* coral */
  --accent2: #ffffff;
  /* mint */
  --accent3: #ffffff;
  /* purple */
  --accent4: #ffffff;
  /* yellow */
}

/* ================= Service Slider ================= */

.scene {
  position: relative;
  justify-content: center;
  width: 1440px;
  height: 400px;
}

/* --- Ovale (nur als Rahmen sichtbar) --- */
.oval {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.oval3 {
  border: 2px solid white;
}

.oval1 {
  border: 2px white dotted;
  width: 400px;
  height: 240px;
  top: 60px;
  left: 60px;
}

.oval2 {
  border: 2px white dashed;
  width: 240px;
  height: 240px;
  top: 60px;
  left: 410px;
}

.oval3 {
  width: 520px;
  height: 240px;
  top: 60px;
  left: 600px;
}

.oval4 {
  border: 2px dotted white;
  width: 240px;
  height: 240px;
  top: 60px;
  left: 1070px;
}

/* --- Punkt, der sich entlang der Ovalbahn bewegt --- */
.dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  offset-rotate: 0deg;
}

/* Animationen für jede Bahn */
.dot1 {
  offset-path: ellipse(200px 120px at 260px 180px);
  animation: move1 8s linear infinite;
}

.dot2 {
  offset-path: ellipse(120px 120px at 540px 180px);
  animation: move2 4s linear infinite;
}

.dot3 {
  offset-path: ellipse(260px 120px at 860px 180px);
  animation: move3 10s linear infinite;
}

.dot4 {
  offset-path: ellipse(120px 120px at 1180px 180px);
  animation: move4 8s linear infinite;
}

@keyframes move1 {
  to {
    offset-distance: 100%;
  }
}

@keyframes move2 {
  to {
    offset-distance: 100%;
  }
}

@keyframes move3 {
  to {
    offset-distance: 100%;
  }
}

@keyframes move4 {
  to {
    offset-distance: 100%;
  }
}

.service-box img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}


.service-box hr {
  border: none;
  margin-bottom: 12px;
}

.service-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-box ul li {
  border-top: 1px solid #2c2c2c;
  text-decoration: none;
  padding-top: 12px;
  margin-bottom: 6px;
  color: #ffffff;
}

/* Animationen */
@keyframes spin-right {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-left {
  100% {
    transform: rotate(-360deg);
  }
}

/* Punkte */
.dot {
  position: absolute;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  right: -6px;
  /* immer rechts außen */
}

.example {
  width: var(--size);
  height: var(--size);
  position: relative;
  border-radius: 6px;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

/* ================= Grafik 1 ================= */

#g1 {
  justify-content: center;
}

#g1 .orbit-left {
  position: absolute;
  width: 160px;
  height: 160px;
  top: 60px;
  left: 60px;
  border: 2px solid white;
  border-radius: 50%;
  animation: spin-right 6s linear infinite;
}

#g1 .orbit-right {
  position: absolute;
  width: 160px;
  height: 160px;
  top: 60px;
  left: 30px;
  border: 2px dotted white;
  border-radius: 50%;
  animation: spin-right 16s linear infinite;
}

#g1 .orbit-mid {
  position: absolute;
  width: 160px;
  height: 160px;
  top: 60px;
  left: 110px;
  border: 2px dashed white;
  border-radius: 50%;
  animation: spin-right 10s linear infinite;
}

#g1 .orbit-left .dot {
  background: var(--accent3);
  top: calc(50% - 6px);
}

#g1 .orbit-right .dot {
  background: var(--accent1);
  top: calc(40% - 6px);
}

#g1 .orbit-mid .dot {
  background: var(--accent2);
  top: calc(40% - 6px);
}

/* ================= Grafik 2 ================= */

#g2 .orbit-a {
  position: absolute;
  width: 140px;
  height: 140px;
  top: 90px;
  left: 110px;
  border: 2px solid white;
  border-radius: 50%;
  animation: spin-right 12s linear infinite;
}

#g2 .orbit-b {
  position: absolute;
  width: 140px;
  height: 140px;
  top: 90px;
  left: 40px;
  border: 2px dotted white;
  border-radius: 50%;
  animation: spin-left 12s linear infinite;
}

#g2 .orbit-c {
  position: absolute;
  width: 140px;
  height: 140px;
  top: 30px;
  left: 80px;
  border: 2px dashed white;
  border-radius: 50%;
  animation: spin-right 20s linear infinite;
}

#g2 .orbit-a .dot {
  background: var(--accent3);
  top: calc(50% - 6px);
}

#g2 .orbit-b .dot {
  background: var(--accent1);
  top: calc(50% - 6px);
}

#g2 .orbit-c .dot {
  background: var(--accent1);
  top: calc(45% - 6px);
}

/* ================= Grafik 3 ================= */

#g3 .o-left {
  position: absolute;
  width: 160px;
  height: 160px;
  top: 60px;
  left: 30px;
  border: 2px solid white;
  border-radius: 50%;
  animation: spin-right 14s linear infinite;
}

#g3 .o-right {
  position: absolute;
  width: 160px;
  height: 160px;
  top: 60px;
  left: 100px;
  border: 2px dotted var(--accent1);
  border-radius: 50%;
  animation: spin-left 18s linear infinite;
}

#g3 .o-left .dot {
  background: var(--accent3);
  top: calc(40% - 6px);
}

#g3 .o-right .dot {
  background: var(--accent1);
  top: calc(60% - 6px);
}


/* ================= Grafik 4 ================= */

#g4 .outer {
  position: absolute;
  width: 160px;
  height: 160px;
  top: 60px;
  left: 70px;
  border: 2px solid var(--accent4);
  border-radius: 50%;
  animation: spin-right 16s linear infinite;
}

#g4 .mid {
  position: absolute;
  width: 120px;
  height: 120px;
  top: 80px;
  left: 70px;
  border: 2px dotted white;
  border-radius: 50%;
  animation: spin-right 12s linear infinite;
}

#g4 .inner-small {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 110px;
  left: 70px;
  border: 2px solid white;
  border-radius: 50%;
  animation: spin-right 8s linear infinite;
}

#g4 .outer .dot {
  background: var(--accent4);
  top: calc(45% - 6px);
  width: 10px;
  height: 10px;
}

#g4 .mid .dot {
  background: #ffffff;
  top: calc(60% - 6px);
  width: 10px;
  height: 10px;
}

#g4 .inner-small .dot {
  background: var(--accent3);
  top: calc(45% - 6px);
  width: 10px;
  height: 10px;
}

/* ---------- Animation ---------- */

@-webkit-keyframes spin-right {
  100% {
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {


  /* Für mobile Ansicht (unter 768px) -> Slider */
/*#intro {
  display: flex;
  margin-bottom: -5rem;
}

  #circle-orbit-container {
    position: relative;
    margin: 0 auto;
    align-items: center;
    height: 300px;
    width: 300px;
  }

  /* ---------- Inner orbit - This is the circles closest to the central point ---------- */

  /*#inner-orbit {
    position: absolute;
    top: 75px;
    left: 75px;
    width: 150px;
    height: 150px;
    border: 2px #ffffff dashed;
    border-radius: 100%;
    -webkit-animation: spin-right 10s linear infinite;
    animation: spin-right 10s linear infinite;
  }

  /* ---------- Repeating styles for the inner orbiting circles ---------- */

  *.inner-orbit-cirlces {
    position: absolute;
    top: 62px;
    left: -6px;
    height: 10px;
    width: 10px;
    border-radius: 100%;
    background-color: #ffffff;
  }

  /* ---------- Middle orbit - This is the circles second closest to the central point ---------- */

  #middle-orbit {
    position: absolute;
    top: 35px;
    left: 35px;
    width: 225px;
    height: 225px;
    border: 2px #ffffff dashed;
    border-radius: 100%;
    -webkit-animation: spin-right 15s linear infinite;
    animation: spin-right 15s linear infinite;
  }

  /* ---------- Repeating styles for the inner orbiting circles ---------- */

  .middle-orbit-cirlces {
    position: absolute;
    top: 25px;
    left: 17px;
    height: 20px;
    width: 20px;
    border-radius: 100%;
    background-color: rgb(80, 251, 220)
  }

  /* ---------- Outer orbit - This is the circles furthest away from the central point ---------- */
  #outer-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 294px;
    height: 294px;
    border: 2px #ffffff dashed;
    border-radius: 100%;
    -webkit-animation: spin-right 20s linear infinite;
    animation: spin-right 20s linear infinite;
  }

  /* ---------- Repeating styles for the outer orbiting circles ---------- */

  .outer-orbit-cirlces {
    position: absolute;
    top: -17px;
    left: 125px;
    height: 30px;
    width: 30px;
    border-radius: 100%;
    background-color: #8E7DFF;
  }

  #circle-orbit-container1 {
    position: relative;
    margin: 20px auto;
    height: 300px;
    width: 300px;
  }

  /* Inner Orbit */

  #inner-orbit1 {
    position: absolute;
    top: 75px;
    left: 75px;
    width: 150px;
    height: 150px;
    border: 2px dashed #ff5733;
    /* orange */
    border-radius: 100%;
    animation: spin-right 10s linear infinite;
  }

  .inner-orbit-circles {
    position: absolute;
    top: 65px;
    left: -6px;
    height: 15px;
    width: 15px;
    border-radius: 100%;
    background-color: #ff5733;
  }

  /* Middle Orbit */

  #middle-orbit1 {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 200px;
    height: 200px;
    border: 2px dashed #33c1ff;
    /* blau */
    border-radius: 100%;
    animation: spin-right 14s linear infinite;
  }

  .middle-orbit-circles {
    position: absolute;
    top: 25px;
    left: 15px;
    height: 20px;
    width: 20px;
    border-radius: 100%;
    background-color: #33c1ff;
  }


  .service-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* flüssiger auf iOS */
    scrollbar-width: none;
    /* Firefox Scrollbar ausblenden */
  }

  .service-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari Scrollbar ausblenden */
  }

  .service-slider h4 {
    font-weight: 400;
  }

  .service-box {
    min-width: 100%;
    scroll-snap-align: start;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .example {
    margin: 0 auto;
    /* das Bild selbst mittig */
  }

  .scene {
    position: relative;
    justify-content: center;
    width: 100%;
    height: 300px;
  }

  /* --- Ovale (nur als Rahmen sichtbar) --- */
  .oval {
    position: absolute;
    border: 2px dashed white;
    border-radius: 50%;
    pointer-events: none;
  }

  .oval3 {
    border: 2px solid var(--accent3);
  }

  .oval1 {
    border: 2px white dotted;
    width: 80px;
    height: 160px;
    top: 60px;
    left: 40px;
  }

  .oval2 {
    width: 50px;
    height: 160px;
    top: 60px;
    left: 110px;
  }

  .oval3 {
    width: 120px;
    height: 160px;
    top: 60px;
    left: 150px;
  }

  .oval4 {
    border: 2px white dotted;
    width: 50px;
    height: 160px;
    top: 60px;
    left: 260px;
  }

  /* --- Punkt, der sich entlang der Ovalbahn bewegt --- */
  .dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    offset-rotate: 0deg;
  }

  .dot1 {
    offset-path: ellipse(40px 80px at 80px 140px);
    animation: move1 8s linear infinite;
  }

  .dot2 {
    offset-path: ellipse(25px 80px at 135px 140px);
    animation: move2 6s linear infinite;
  }

  .dot3 {
    offset-path: ellipse(60px 80px at 210px 140px);
    animation: move3 10s linear infinite;
  }

  .dot4 {
    offset-path: ellipse(25px 80px at 285px 140px);
    animation: move4 8s linear infinite;
  }

  @keyframes move1 {
    to {
      offset-distance: 100%;
    }
  }

  @keyframes move2 {
    to {
      offset-distance: 100%;
    }
  }

  @keyframes move3 {
    to {
      offset-distance: 100%;
    }
  }

  @keyframes move4 {
    to {
      offset-distance: 100%;
    }
  }
}