#toast-container {
  position: fixed;
  bottom: 90px;          /* oberhalb der Bottombar */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;  /* Container selbst nicht klickbar */
  width: max-content;
  max-width: calc(100vw - 32px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
  pointer-events: all;
  cursor: default;
  min-width: 220px;
  max-width: 380px;

  /* Start-State: unsichtbar + leicht nach unten verschoben */
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.toast.toast-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.toast-hide {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}

/* ── Typen ── */
.toast-success {
  background: rgba(30, 30, 30, 0.92);
  color: #d4f5d4;
  border: 1px solid rgba(100, 220, 100, 0.25);
}

.toast-error {
  background: rgba(30, 30, 30, 0.92);
  color: #fcd4d4;
  border: 1px solid rgba(220, 80, 80, 0.35);
}

.toast-info {
  background: rgba(30, 30, 30, 0.92);
  color: #d4e8fc;
  border: 1px solid rgba(80, 160, 220, 0.30);
}

.toast-warning {
  background: rgba(30, 30, 30, 0.92);
  color: #fcecd4;
  border: 1px solid rgba(220, 160, 60, 0.35);
}

/* ── Icon ── */
.toast-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}

.toast-success .toast-icon { color: #6ddb6d; }
.toast-error   .toast-icon { color: #e85b5b; }
.toast-info    .toast-icon { color: #5baae8; }
.toast-warning .toast-icon { color: #e8a83a; }

/* ── Text ── */
.toast-msg {
  flex: 1;
  line-height: 1.4;
}

/* ── Schließen-Button ── */
.toast-close {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.45;
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.toast-close:hover {
  opacity: 0.9;
}

#closeBtn {
  position: absolute; 
  top: 10px;  
  left: 120px;

  color: black; 
  background: none; 
  border: none;
  font-size: 16px; 
  cursor: pointer;
  font-weight: bold;
}

#closeBtn:hover {
  color: #555;
}

#settings-box{
  position: relative;
}

#impressumHTML{
  font-size: 12px;
  padding: 8px;
}