/* -------------------------------------------- */
/* Info-Button unten rechts in .bewertung */
.bewertung {
  position: relative;
}

.bastelvorlage {
  position: relative;
  width: 100%;
}

.info-tooltip {
  position: absolute;
  bottom: 30px;
  right: 10px;
  float: none;
  margin: 0;
  top: auto;
}

/* Icon Button */
.info-icon {
  position: absolute;
  bottom: 0px; /* über Icon/Close-Button */
  right: 0;
  background: #222;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  user-select: none;
  display: inline-block;
  cursor: pointer;
  z-index: 10;
}

.info-icon img {
  display: block;
  width: 20px;
  height: 20px;
}

/* Close Button */
.close-btn {
  width: 20px;
  height: 20px;
  background: #222;
  color: white;
  font-size: 18px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  padding: 0;
  user-select: none;
  transition: background-color 0.3s ease;
}

.close-btn:hover {
  background-color: #444;
}

.close-btn img {
  display: block;
  width: 20px;
  height: 20px;
}

.close-btn-container {
  position: absolute;
  bottom: -14px;
  right: -5px;
  z-index: 10002;
}

/* Tooltip Inhalt */
.tooltip-text {
  position: absolute;
  bottom: 7px;
  right: 5px;
  background: #222;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  width: 100px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.tooltip-visible {
  opacity: 1;
  pointer-events: auto;
}

/* -------------------------------------------- */
/* Tooltip nur auf mobilen Bildschirmen sichtbar */
@media (max-width: 768px) {
  .info-tooltip {
    display: block;
  }
}

/* Desktop: display none */
@media (min-width: 769px) {
  .info-tooltip {
    display: none;
  }
}
