﻿/* ===== OVERLAY ===== */
.bubble-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.6);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;

  z-index: 9999;
}

/* sichtbar */
.bubble-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* ===== BUBBLE POSITION ===== */
.info-bubble {
  margin: 30px;
  transform: translateY(40px) scale(0.95);
  opacity: 0;
  transition: all 0.4s ease;
}

/* Animation rein */
.bubble-overlay.show .info-bubble {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ===== BUBBLE DESIGN ===== */
.bubble-inner {
  background: rgba(10, 40, 35, 0.95);
  backdrop-filter: blur(12px);
  color: #fff;

  padding: 18px;
  border-radius: 18px;
  width: 320px;

  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);

  position: relative;
}

/* ===== SPEECH ARROW (Comic Effekt) ===== */
.bubble-inner::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 20px;

  width: 20px;
  height: 20px;

  background: rgba(10, 40, 35, 0.95);
  transform: rotate(45deg);
}

/* ===== HEADER ===== */
.bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.bubble-title {
  font-weight: 600;
  letter-spacing: 1px;
}

/* ===== CLOSE BUTTON ===== */
.close-bubble {
  cursor: pointer;
  font-size: 18px;
  opacity: 0.7;
  transition: 0.2s;
}

.close-bubble:hover {
  opacity: 1;
}

/* ===== CONTENT ===== */
.bubble-body p {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.bubble-body ul {
  padding-left: 18px;
  margin: 0;
}

.bubble-body li {
  margin-bottom: 5px;
  font-size: 0.85rem;
}

/* ===== BUTTONS ===== */
.bubble-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.bubble-btn {
  flex: 1;
  text-align: center;
  padding: 10px;

  background: linear-gradient(135deg, gold, #ffd700);
  color: #000;

  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;

  transition: all 0.2s;
}

.bubble-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,215,0,0.4);
}

.bubble-btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .info-bubble {
    margin: 15px;
    width: 100%;
  }

  .bubble-inner {
    width: 100%;
  }
}