body {
  background-color: #00a494;
  overflow: hidden;
}

model-viewer {
  width: 100%;
  height: 100vh;
}

.Hotspot {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: none;
  background-color: transparent;
  box-shadow: none;
  box-sizing: border-box;
  background-image: url("linie.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translate(30px, -10px);
  cursor: pointer;
}

.hidden {
  opacity: 0;
  display: none;
}

.Hotspot.pos1 {
  transform: translate(30px, 0px) scaleY(1) scaleX(1);
}

.Hotspot.pos1 .HotspotAnnotation {
  transform: translate(53px, -30px) scaleY(1) scaleX(1);
}

.Hotspot.pos2 {
  transform: translate(30px, 0px) scaleY(-1);
}

.Hotspot.pos2 .HotspotAnnotation {
  transform: translate(53px, -110%) scaleY(-1);
}

.Hotspot.pos3 {
  transform: translate(-24px, 0px) scaleY(1) scaleX(-1);
}

.Hotspot.pos3 .HotspotAnnotation {
  transform: translate(53px, -110%) scaleY(1) scaleX(-1);
}

.Hotspot.pos4 {
  transform: translate(-24px, 0px) scaleY(-1) scaleX(-1);
}

.Hotspot.pos4 .HotspotAnnotation {
  transform: translate(53px, -110%) scaleY(-1) scaleX(-1);
}

.HotspotAnnotation {
  font-family: Roboto, sans-serif;
  text-transform: uppercase;
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  background-color: #00000063;
  position: absolute;
  border-radius: 5px;
  padding: 5px;
  width: max-content;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
}

.HotspotAnnotation:hover {
  background: #233d52;
}
.hover {
  background: #233d52;
}

.radiogroup {
  border-style: solid;
  border-width: 1px;
  border-color: #ffffff33;
  margin: 0;
  padding: 5px;
}

/*Loader*/

#loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00a494;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s, z-index 0s 0.5s;
}

#loading.invisible {
  opacity: 0;
  z-index: -1;
}

.loader-ani,
.loader-ani div {
  box-sizing: border-box;
}
.loader-ani {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.loader-ani div {
  position: absolute;
  top: 33.33333px;
  width: 13.33333px;
  height: 13.33333px;
  border-radius: 50%;
  background: currentColor;
  color: #ffffff50;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.loader-ani div:nth-child(1) {
  left: 8px;
  animation: loader-ani1 0.6s infinite;
}
.loader-ani div:nth-child(2) {
  left: 8px;
  animation: loader-ani2 0.6s infinite;
}
.loader-ani div:nth-child(3) {
  left: 32px;
  animation: loader-ani2 0.6s infinite;
}
.loader-ani div:nth-child(4) {
  left: 56px;
  animation: loader-ani3 0.6s infinite;
}
@keyframes loader-ani1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes loader-ani3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes loader-ani2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

/* Detail Overlay */

.detailBG {
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 300;
  width: 500px;
  height: 500px;
  position: absolute;
  right: -540px;
  bottom: 10px;
  background-color: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.2) 1px 1px 3px 1px;
  color: #111111;
  padding: 10px;
  margin: 10px;
  border-radius: 5px;
  outline: #000;
  opacity: 0.95;
  transition: right 0.5s ease;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.detailBG.hover {
  right: 10px; /* Endposition im Bild */
}

.detailBG #title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.detailBG #copy {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 10px;
}

.detailBG #detail {
  font-size: 16px;
  font-weight: 300;
  padding-top: 10px;
  border-top: 1px;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  border-style: solid;
  border-color: #ccc;
}

.detailBG #image {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detailBG #image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.link {
  text-transform: none;
  line-height: 25px;
  background-color: #233d5283;
  font-weight: 100;
}
.link .boxheadline {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  pointer-events: none;
  white-space: pre-wrap;
}

.product {
  height: 50px;
  text-transform: none;
  line-height: 25px;
  background-color: rgba(90, 90, 90, 0.637);
  font-weight: 500;
}
.product_small {
  text-transform: none;
  line-height: 25px;
  background-color: rgba(90, 90, 90, 0.637);
  font-weight: 500;
}
.product .boxheadline {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 100;
}

/* Container for step buttons */
#steps-container {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

/* Default style for step buttons */
.step-button {
  margin-right: 5px;
  margin-top: 5px;
  font-family: Roboto, sans-serif;
  font-weight: 300;
  font-size: 12px;
  color: #fff;
  background-color: #233d52;
  width: 140px;
  height: 30px;
  text-align: center;
  border: none;
  box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 3px 0px;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effect for step buttons */
.step-button:hover {
  transform: scale(1.05);
}

/* Active step button style */
.step-button.active-step {
  background-color: #2c608b;
}

/*********************** download Option ***********************/

#downloadBox {
  position: fixed;
  right: 10px;
  top: 0;
  padding: 10px;
  padding-top: 4px;
  margin-top: 10px;
  background-color: rgba(0, 0, 0, 0);
  color: #444;
  font-family: monospace;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
  z-index: 500;
  cursor: pointer;
  width: 80px; /* Breite bleibt fix */
  max-height: 10px; /* Anfangszustand */
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

#downloadBox:hover {
  max-height: 500px; /* ein hoher Wert, der genug Platz bietet */
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
}

#downloadBox a {
  display: block;
  margin-top: 10px;
  color: #00bcd4;
  text-decoration: none;
}

#downloadBox a:hover {
  color: #ff9800;
  text-decoration: underline;
}

/*********************** Nur für die Hotspot.js ***********************/

.materialList {
  position: fixed;
  right: 10px;
  bottom: 10px;
  list-style: none;
  font-family: monospace;
}
