/* --- bereits vorhandene Basis behalten --- */
.custom-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Tooltip-Box (deine vorhandene Regeln beibehalten, hier ergänzt) */
.custom-tooltip .tooltip-box {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;                /* default: zentriert */
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-size: 14px;
  max-width: min(350px, calc(100vw - 40px));
  width: max-content;
  white-space: normal;
  word-wrap: break-word;
  transition: opacity 0.3s ease;
  z-index: 1000;
  text-align: center;
}

/* Sichtbar beim Hover (bestehendes Verhalten) */
/*
.custom-tooltip:hover .tooltip-box {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}
*/

/* Pfeil (Standard: zentriert) */
.custom-tooltip .tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%); /* zentriert */
  border-width: 6px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
  pointer-events: none;
}

/* Wenn die Box an den linken Rand "klebt" -> Pfeil weiter links */
.custom-tooltip .tooltip-box.align-left::after {
  left: 20px;       /* Abstand vom linken Rand der Box */
  transform: none;  /* keine translate nötig */
}

/* Wenn die Box an den rechten Rand "klebt" -> Pfeil weiter rechts */
.custom-tooltip .tooltip-box.align-right::after {
  left: auto;
  right: 20px;
  transform: none;
}

/* Optional: kleinerer Abstand bei sehr kleinen Bildschirmen */
@media (max-width: 480px) {
  .custom-tooltip .tooltip-box { max-width: calc(100vw - 30px); padding: 8px 12px; }
  .custom-tooltip .tooltip-box.align-left::after { left: 12px; }
  .custom-tooltip .tooltip-box.align-right::after { right: 12px; }
}

.copy-button {
  /* Größe & Form */
  padding: 0px 2px;
  border-radius: 4px;
  
  /* Farbe & Glas-Effekt */
  background: rgba(0, 100, 180, 0.2); /* dunkleres Blau mit Transparenz */
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  
  /* Typografie & Layout */
  color: black;
  font-size: 13px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  
  /* Schatten & Übergänge */
  box-shadow:
    0 2px 12px rgba(0, 100, 180, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}

/* 💫 Glanz-Schimmer */
.copy-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

/* Hover-Effekte */
.copy-button:hover {
  background: rgba(0, 120, 220, 0.3);
  box-shadow:
    0 4px 20px rgba(0, 120, 220, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.copy-button:hover::after {
  left: 120%;
}

/* Klick-Effekt */
.copy-button:active {
  transform: scale(0.96);
  background: rgba(0, 120, 220, 0.35);
}



