* {
  margin: 0;
  padding: 0;
  font-size: 22px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
  overflow-x: visible;
  overflow-y: visible;
}

:root {
  --backround-color: #008B00;
}

body {
  margin: 0;
  background-image: url(IMG/backrground/bg.jpg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-blend-mode: lighten;
  background-color: rgb(70, 67, 67);
}

/* Animation */
@keyframes animate {
  0% { transform: scale(1.0); }
  16.6% { transform: scale(1.3); }
  33.2% { transform: scale(1.0); }
  100% { transform: scale(1.0); }
}

/* Navigation */
nav {
  height: 60px;
  background: var(--backround-color);
  position: fixed;
  justify-content: space-between;
  top: 0px;
  left: 0px;
  width: 100vw;
  z-index: 5;
}

nav ul {
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  text-decoration: none;
}

nav li {
  height: 100%;
  width: 120px;
  text-align: center;
  position: relative;
}

nav li:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

nav ul a {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

nav input[type="checkbox"] {
  display: none;
}

.toggle_button {
  width: 30px;
  height: 23px;
  position: absolute;
  top: 25px;
  right: 25px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}

.bar {
  height: 4px;
  width: 100%;
  border-radius: 100px;
  background-color: white;
}

/* Logo */
.Logo {
  right: 3%;
  display: flex;
  top: 70px;
  max-width: 300px;
  z-index: 20;
  position: fixed;
}

/* Circle Layout Title */
.title {
  margin-top: 70px;
  margin-bottom: 50px;
  font-size: 1.6rem;
  color: white;
  text-align: center;
  z-index: 1;
}

/* Kreis-Anordnung */
.circle-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 80vh;  /* NEU: Höhe abhängig vom Viewport */
  margin: -50px auto 0 auto
  
}

.circle-item {
  position: absolute;
  top: 50%;
  left: 48%;
  margin: -80px;
  transform-origin: center center;
  
  width: 190px;
  height: 190px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden; /* ensures image stays inside the circle */
  


}

.circle-item:nth-child(1) { transform: rotate(0deg) translateX(230px) rotate(-0deg); }
.circle-item:nth-child(2) { transform: rotate(60deg) translateX(230px) rotate(-60deg); }
.circle-item:nth-child(3) { transform: rotate(120deg) translateX(230px) rotate(-120deg); }
.circle-item:nth-child(4) { transform: rotate(180deg) translateX(230px) rotate(-180deg); }
.circle-item:nth-child(5) { transform: rotate(240deg) translateX(230px) rotate(-240deg); }
.circle-item:nth-child(6) { transform: rotate(300deg) translateX(230px) rotate(-300deg); }

.circle-item img {
 
  width: 190px;
  height: 190px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;

  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;

}

.circle-item span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 25px;
  font-weight: bold;
  pointer-events: none; /* damit der Text Klicks nicht blockiert */
}


.circle-item img:hover {
  transform: scale(1.3);
}




/* Responsive Design */
@media (max-width: 1200px) {
  body {
  margin: 0;
  background-image: url(IMG/backrground/bg.jpg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-blend-mode: lighten;
  background-color: rgb(70, 67, 67);
}
  .bartxt {
    font-size: 80%;
  }

  .Logo {
    max-width: 200px;
  }
 
  .title{
    font-size: 1.4rem;
  
}
}

@media (max-width: 850px) {
  
  * {
    color: black;
  }

  body {
    background-image: url(IMG/backrground/bg.jpg);
    background-size: cover;
    background-attachment: scroll;
    
  }

  .toggle_button {
    display: flex;
    right: 25px;
  }

  nav ul {
    height: min-content;
    width: 100%;
    background-color: #008B00;
    display: none;
    position: absolute;
    top: 60px;
    z-index: 2;
  }

  nav li {
    height: min-content;
    width: 100%;
    z-index: 2;
  }

  nav ul a {
    padding: 15px;
    justify-content: left;
    z-index: 2;
  }

  #toggle_button:checked ~ ul {
    display: block;
  }

  .Logo {
    top: 4px;
    height: 55px;
    z-index: 5;
    left: 0%;
  }

  .circle-container {
    width: 300px;
    aspect-ratio: 1 / 1;
    border-radius: 45%;
  }

  .circle-item {
    width: 150px;
    height: 150px;
    transform-origin: 120px 120px;
    
  }

  .circle-item img {
    width: 150px;
    height: 150px;
  }

  .circle-item span {
    font-size: 20px;
  }
}
/* Mobile Anpassung */
@media (max-width: 600px) {
  body {
  margin: 0;
  background-image: url(IMG/backrground/bg.jpg);
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center;
  background-size: cover;
  background-blend-mode: lighten;
  background-color: rgb(70, 67, 67);
}
  .title {
  font-size: 1rem;
}
  .circle-container {
    width: 300px;
    aspect-ratio: 1 / 1;
  }

  .circle-item {
    width: 100px;
    height: 100px;
    margin: -40px;
  }

  .circle-item img {
    width: 100px;
    height: 100px;
 
  }

  .circle-item span {
    font-size: 15px;
  }

  .circle-item:nth-child(1) { transform: rotate(0deg) translateX(110px) rotate(-0deg); }
  .circle-item:nth-child(2) { transform: rotate(60deg) translateX(110px) rotate(-60deg); }
  .circle-item:nth-child(3) { transform: rotate(120deg) translateX(110px) rotate(-120deg); }
  .circle-item:nth-child(4) { transform: rotate(180deg) translateX(110px) rotate(-180deg); }
  .circle-item:nth-child(5) { transform: rotate(240deg) translateX(110px) rotate(-240deg); }
  .circle-item:nth-child(6) { transform: rotate(300deg) translateX(110px) rotate(-300deg); }
}
@media (max-width: 350px) {
   body {
  margin: 0;
  background-image: url(IMG/backrground/bg.jpg);
  background-repeat: no-repeat;
  background-attachment:scroll;
  background-position: center;
  background-size: cover;
  background-blend-mode: lighten;
  background-color: rgb(70, 67, 67);
}
.circle-item {
    width: 70px;
    height: 70px;
    margin: -40px;
  }

  .circle-item img {
    width: 70px;
    height: 70px;
 
  }
  .circle-item span{
    font-size: 10px;
  }

}
@media (max-width: 275px) {
 body {
  margin: 0;
  background-image: url(IMG/backrground/bg.jpg);
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center;
  background-size: cover;
  background-blend-mode: lighten;
  background-color: rgb(70, 67, 67);
}
.circle-item {
    width: 50px;
    height: 50px;
    margin: -40px;
  }

  .circle-item img {
    width: 50px;
    height: 50px;
  
  }
  .circle-item span{
    font-size: 8px;
  }

}