/* ============================================================
   BUSSGELDRETTER – Cookie-Banner Styles
   Passt zum Beige/Braun-Farbkonzept der Webseite
   ============================================================ */

/* ---- Overlay-Banner (unten fixiert) ---- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #2C1A0E;
  border-top: 2px solid #B8860B;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-banner.cookie-banner--visible {
  transform: translateY(0);
}

#cookie-banner.cookie-banner--hidden {
  transform: translateY(100%);
}

/* ---- Innerer Container ---- */
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
}

/* ---- Text-Bereich ---- */
.cookie-banner__title {
  font-size: 1rem;
  font-weight: 700;
  color: #FAF0E6;
  margin: 0 0 6px 0;
  letter-spacing: 0.02em;
}

.cookie-banner__desc {
  font-size: 0.875rem;
  color: #C8B89A;
  margin: 0;
  line-height: 1.6;
}

.cookie-banner__link {
  color: #B8860B;
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-banner__link:hover {
  color: #D4A017;
}

/* ---- Aktions-Buttons ---- */
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
  font-family: inherit;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

/* Primär: Gold */
.cookie-btn--primary {
  background: #B8860B;
  color: #fff;
  border-color: #B8860B;
}

.cookie-btn--primary:hover {
  background: #D4A017;
  border-color: #D4A017;
}

/* Sekundär: Umriss */
.cookie-btn--secondary {
  background: transparent;
  color: #FAF0E6;
  border-color: #FAF0E6;
}

.cookie-btn--secondary:hover {
  background: rgba(250, 240, 230, 0.1);
}

/* Ghost: nur Text */
.cookie-btn--ghost {
  background: transparent;
  color: #C8B89A;
  border-color: transparent;
  padding-left: 8px;
  padding-right: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-btn--ghost:hover {
  color: #FAF0E6;
  transform: none;
}

/* ---- Einstellungs-Panel ---- */
.cookie-settings-panel {
  border-top: 1px solid rgba(184, 134, 11, 0.3);
  margin-top: 16px;
  padding-top: 16px;
}

.cookie-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(250, 240, 230, 0.08);
}

.cookie-settings-row:last-of-type {
  border-bottom: none;
}

.cookie-settings-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cookie-settings-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #FAF0E6;
}

.cookie-settings-desc {
  font-size: 0.8rem;
  color: #C8B89A;
  line-height: 1.5;
}

/* ---- Toggle-Switch ---- */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: #4A3728;
  border-radius: 24px;
  transition: background 0.25s;
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #C8B89A;
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: #B8860B;
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
  background: #fff;
}

.cookie-toggle--disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .cookie-banner__inner {
    padding: 16px 20px;
  }

  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

  .cookie-settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
