/* ============================= Accentcolour============================= */

h3 {
  color: #6cad01; 
}
.rollup {
  border: 2px solid #4caf50; 
}

.rollup h2 {
  color: #4caf50;
}

h3.insiderollup {
  font-size: 1.3rem;
  color: #4caf50;
  text-align: left;
  margin: 1rem;
}

.highlight {
  background-color: #88d88b;
}

  /*============================ Bubbles ============================= */

    .bubble-container {
      position: relative;
      width: 600px;
      height: 600px;
      margin: 50px auto;

}

    .bubble-wrapper {
      width: 100%;
      display: flex;
      justify-content: center;
      margin: 50px 0;
      position: relative;
      padding: 0;  
}

    .bubble {
      position: absolute;
      width: 150px;
      height: 150px;
      border-radius: 50%;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #000000;
      color: white;
      text-align: center;
      padding: 5px;              /* etwas Abstand innen */
      font-size: 16px;           /* Basisgröße */
      line-height: 1.2;
      transition: all 0.4s ease;
      box-shadow: 0 0 20px 5px rgba(0, 228, 0, 0.7), 0 0 0 4px #4caf50;
      border: 2px solid #4caf50;
    }

    .infobox {
      position: absolute;
      width: 150px;
      height: 150px;
      border-radius: 50%;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #000000;
      color: white;
      text-align: center;
      padding: 5px;              /* etwas Abstand innen */
      font-size: 16px;           /* Basisgröße */
      line-height: 1.2;
      transition: all 0.4s ease;
      box-shadow: 0 0 20px 5px rgba(0, 228, 0, 0.7), 0 0 0 4px #4caf50;
      border: 2px solid #4caf50;
      cursor: pointer;
    }

    .bubble img {
      max-width: 100px;
      max-height: 80px;
      object-fit: contain;
      border-radius: 20%;
    }

    .center-bubble img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      border-radius: 20%;
    }
    .bubble.active {
      width: 600px;
      height: 350px;
      z-index: 10;
    }

    .bubble h4 {
  font-size: 0.8em;  /* default small */
  width: 100px;
}

.bubble.active h4 {
  font-size: 1.5em;  /* bigger when clicked */
  width: 100%;
}
.bubble .content {
  text-align: center;
  font-size: 14px;
  padding: 5px;
  display: none;                 /* hidden by default */
  width: 550px;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 40px 30px 40px;
  box-sizing: border-box;
}

    .bubble.active .content {
      display: flex;            
    }

    /* zentrale Blase */
    .center-bubble {
        position: absolute;
        top: 50%; 
        left: 50%;
        transform: translate(-50%, -50%);
        width: 200px;
        height: 200px;
        background: #000;

    }

.infobox:hover {
  transform: translateY(-5px) translateX(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 10;
}

    /* kleine Blasen rundherum (Beispiel-Positionen im Kreis) */
.infobox:nth-child(2) { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(0deg) translate(220px) rotate(0deg); }
.infobox:nth-child(3) { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg) translate(220px) rotate(-45deg); }
.infobox:nth-child(4) { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(90deg) translate(220px) rotate(-90deg); }
.infobox:nth-child(5) { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(135deg) translate(220px) rotate(-135deg); }
.infobox:nth-child(6) { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(180deg) translate(220px) rotate(-180deg); }
.infobox:nth-child(7) { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(225deg) translate(220px) rotate(-225deg); }
.infobox:nth-child(8) { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(270deg) translate(220px) rotate(-270deg); }
.infobox:nth-child(9) { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(315deg) translate(220px) rotate(-315deg); }

.infobox:nth-child(2):hover { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(0deg) translate(220px) rotate(0deg) translate(0px, -10px); }
.infobox:nth-child(3):hover { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg) translate(220px) rotate(-45deg)  translate(0px, -10px); }
.infobox:nth-child(4):hover { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(90deg) translate(220px) rotate(-90deg)  translate(0px, -10px); }
.infobox:nth-child(5):hover { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(135deg) translate(220px) rotate(-135deg)  translate(0px, -10px); }
.infobox:nth-child(6):hover { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(180deg) translate(220px) rotate(-180deg)  translate(0px, -10px); }
.infobox:nth-child(7):hover { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(225deg) translate(220px) rotate(-225deg)  translate(0px, -10px); }
.infobox:nth-child(8):hover { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(270deg) translate(220px) rotate(-270deg)  translate(0px, -10px); }
.infobox:nth-child(9):hover { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(315deg) translate(220px) rotate(-315deg)  translate(0px, -10px); }



/* ============================= Responsive Design ============================= */

/* Grundlegende Sicherheit: Kein horizontales Scrollen */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}


/* Hauptcontainer anpassen */
.page-wrapper,
.main.content,
.bubble-container {
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 10px; /* etwas Innenabstand für Text */
}

/* Tablets (≤1024px) */
@media (max-width: 1024px) {
  .bubble-container {
    width: 450px;
    height: 450px;
  }

  .bubble, .infobox {
    width: 120px;
    height: 120px;
    font-size: 14px;
  }

  .center-bubble {
    width: 150px;
    height: 150px;
  }

  /* move bubbles slightly closer to center */
  .infobox:nth-child(n+2):nth-child(-n+9) {
    transform: translate(-50%, -50%) rotate(var(--angle)) translate(160px) rotate(calc(var(--angle) * -1));
  }
}

/* Phones (≤768px) */
@media (max-width: 768px) {
  .bubble-container {
    width: 300px;
    height: 300px;
  }

  .bubble, .infobox {
    width: 90px;
    height: 90px;
    font-size: 12px;
    padding: 4px;
  }

  .center-bubble {
    width: 100px;
    height: 100px;
  }

  /* Hide circular layout and stack bubbles instead */
  .bubble-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: static;
  }

  .infobox {
    position: static;
    transform: none !important;
  }

  .bubble.active {
    width: 90%;
    height: auto;
  }

  .bubble.active .content {
    width: 100%;
    height: auto;
    font-size: 0.9rem;
  }
}

/* Very small phones (≤480px) */
@media (max-width: 480px) {
  h2, h3 {
    font-size: 1rem;
  }

  .bubble-container {
    width: 100%;
    margin: 0 auto;
  }

  .bubble, .infobox {
    width: 80px;
    height: 80px;
    font-size: 11px;
  }

  .bubble.active {
    width: 100%;
  }

  .center-bubble {
    width: 90px;
    height: 90px;
  }

  .content {
    font-size: 0.8rem;
    padding: 10px;
  }
}
/* ============================= Ende ============================= */

.bubble, .infobox {
  transition: all 0.4s ease, transform 0.4s ease, width 0.4s ease, height 0.4s ease;
}

