body {
  background-color: #ffffff;
  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;
}

.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;
}
/* Overlay fürs DEMO*/

.controls {
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 300;
  width: 290px;

  background-color: #e5f2f0;
  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.7;
}

.controlsBG {
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 300;
  width: 290px;

  background-color: #e5f2f0;
  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.7;
}

.controlsState {
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 300;
  width: 290px;
  background-color: #e5f2f0;
  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.7;
}

.buttonContainer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.numberBox {
  width: 70px;
  height: 21px;
  margin-right: 5px;
}

.btn {
  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;
  transition: 200ms;
  transform: translateY(0);
  cursor: pointer;
  text-transform: uppercase;
}

.btn:hover {
  transition: 200ms;
  transform: translateY(-0px);
  opacity: 0.9;
  color: #b9b9b9;
  border: none;
}

.slider {
  width: 230px;
}

#colorControls {
  position: absolute;
  top: 20px;
  left: -300px;
  opacity: 0; /* Startzustand: unsichtbar */
  left: -100px; /* Startposition: links außerhalb des Bildschirms */
  transition: opacity 0.5s, left 0.5s; /* Definiert die Dauer der Transition */
}

#colorControls.visible {
  opacity: 1; /* Endzustand: vollständig sichtbar */
  left: 0px; /* Endposition: Ursprungsposition */
}

.fade-in {
  opacity: 0;
  transition: all 1.5s ease-in-out;
}

#MaterialList {
  opacity: 0;
  font-family: Roboto, sans-serif;
  position: absolute;
  list-style: none;
  top: 20px;
  right: 20px;
}

/*Loader*/

#loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  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: -100000;
}

.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: #ee1c29;
  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;
  
}

.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; /* Nimmt den verbleibenden Platz ein */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detailBG #image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.link {
  height: 50px;
  text-transform: none;
  line-height: 25px;
  background-color: rgba(255, 102, 0, 0.678);
  font-weight: 100;
}
.link .boxheadline {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
}

.product {
  height: 50px;
  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;
}
