/* ===== COOKIE BANNER =====
   Klassen bewusst neutral benannt um Adblocker-Filter zu umgehen
   ===================================================== */
#lmd-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(5, 15, 25, 0.97);
  border-top: 1px solid rgba(0, 242, 255, 0.35);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 30px rgba(0, 242, 255, 0.08);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

#lmd-consent-bar.visible {
  transform: translateY(0);
}

#lmd-consent-bar .consent-text {
  flex: 1;
  min-width: 260px;
  font-size: 0.82rem;
  color: rgba(200, 220, 235, 0.85);
  line-height: 1.55;
}

#lmd-consent-bar .consent-text a {
  color: rgb(0, 191, 255);
  text-decoration: underline;
}

#lmd-consent-bar .consent-text strong {
  color: #fff;
}

#lmd-consent-bar .consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.consent-btn {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  border: none;
  clip-path: polygon(7px 0%, calc(100% - 7px) 0%, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0% calc(100% - 7px), 0% 7px);
  transition: opacity 0.2s;
}

.consent-btn:hover { opacity: 0.85; }

/* Rahmen-Wrapper für Buttons mit Rand */
.consent-btn-wrap {
  display: inline-block;
  padding: 1px;
  clip-path: polygon(7px 0%, calc(100% - 7px) 0%, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0% calc(100% - 7px), 0% 7px);
}

.consent-btn-wrap-essential {
  background: rgba(0, 191, 255, 0.7);
}

.consent-btn-wrap-settings {
  background: rgba(200, 220, 235, 0.35);
}

.consent-btn-accept {
  background: rgb(0, 191, 255);
  color: #000;
}

.consent-btn-essential {
  background: rgba(0, 242, 255, 0.12);
  color: #000;
}

.consent-btn-settings {
  background: rgba(5, 15, 25, 0.9);
  color: rgba(200, 220, 235, 0.6);
  font-size: 0.7rem;
}

/* Settings Modal */
#lmd-consent-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#lmd-consent-modal.visible {
  display: flex;
}

#lmd-consent-modal .modal-box {
  background: rgb(7, 20, 37);
  outline: 1px solid rgba(0, 242, 255, 0.4);
  outline-offset: -1px;
  clip-path: polygon(15px 0%, calc(100% - 15px) 0%, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0% calc(100% - 15px), 0% 15px);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  color: rgba(200, 220, 235, 0.85);
  font-size: 0.85rem;
  line-height: 1.6;
}

#lmd-consent-modal h2 {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.consent-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 242, 255, 0.1);
}

.consent-option:last-of-type { border-bottom: none; }

.consent-option-text strong {
  display: block;
  color: #fff;
  margin-bottom: 0.2rem;
}

/* Toggle Switch */
.toggle {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(0, 242, 255, 0.15);
  border: 1px solid rgba(0, 242, 255, 0.3);
  cursor: pointer;
  transition: 0.3s;
  clip-path: polygon(4px 0%, calc(100% - 4px) 0%, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0% calc(100% - 4px), 0% 4px);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: rgba(0, 242, 255, 0.5);
  transition: 0.3s;
}

.toggle input:checked + .toggle-slider {
  background: rgba(0, 191, 255, 0.3);
  border-color: rgb(0, 191, 255);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: rgb(0, 191, 255);
}

.toggle input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
