/* ===========================
   FEEDBACK FAB – FINAL
=========================== */

#feedback-fab {
  position: fixed;
  right: 0;
  top: 40%;

  width: 56px;
  height: 150px;

  background: linear-gradient(180deg, #B30000, #7a0000);
  color: #C9F1FF;

  border-radius: 10px 0 0 10px;
  font-weight: 700;

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

  writing-mode: vertical-rl;
  letter-spacing: 2px;

  box-shadow: 0 6px 18px rgba(0,0,0,.6);
  cursor: pointer;
  z-index: 10000;
}

/* ===========================
   FEEDBACK PANEL – BASIS
=========================== */

#feedback-panel {
  position: fixed;
  top: 0;
  right: -360px;

  width: 340px;
  height: 100vh;

  background: #121212; /* 🔥 klarer Hintergrund */
  color: #C9F1FF;

  display: flex;
  flex-direction: column;

  box-shadow: -6px 0 24px rgba(0,0,0,.75);
  z-index: 10001;

  transition: right .35s ease;
}

#feedback-panel.open {
  right: 0;
}

/* ===========================
   HEADER
=========================== */

.feedback-header {
  background: linear-gradient(90deg, #B30000, #ff4d4d);
  color: #fff;

  padding: 14px 16px;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

#feedback-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===========================
   INHALT
=========================== */

.feedback-average {
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);

  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
}

.feedback-average .stars i {
  color: gold;
}

#feedback-form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Slider */
#feedback-slider {
  width: 100%;
}

/* Textarea */
#feedback-form textarea {
  background: #1e1e1e;
  color: #C9F1FF;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 8px;
  resize: vertical;
}

/* Button */
#feedback-form button {
  background: linear-gradient(90deg, #B30000, #ff4d4d);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
}

#feedback-form button:hover {
  filter: brightness(1.1);
}

/* ===========================
   FEHLER MELDUNG
=========================== */

.error-message {
  padding: 16px;
  color: #ff8080;
  font-weight: 600;
}

/* ===========================
   MOBILE
=========================== */

@media (max-width: 700px) {

  #feedback-fab {
    top: auto;
    right: 14px;
    bottom: 88px;

    width: auto;
    height: 44px;
    padding: 0 16px;

    writing-mode: horizontal-tb;
    border-radius: 22px;
    letter-spacing: 1px;
    font-size: .9rem;
  }

  #feedback-panel {
    top: auto;
    bottom: -100%;
    right: 0;

    width: 100%;
    height: 88vh;

    border-radius: 18px 18px 0 0;
    transition: bottom .35s ease;
  }

  #feedback-panel.open {
    bottom: 0;
  }
}
