/* ============================================================
   COOKIE-CONSENT-BANNER
   Eigenständige Datei, damit die Consent-Logik/-Optik unabhängig
   vom Rest der Seite prüf- und wartbar bleibt.
   ============================================================ */

#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 500;
  background: #FFFFFF;
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
  padding: 24px 24px 20px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
}

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

#cookie-banner.is-hidden {
  display: none;
}

/* Desktop: Text links, Buttons kompakt rechts daneben;
   Settings-Toggle + Kategorien brechen darunter auf volle Breite um */
.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
}

.cookie-banner__text {
  flex: 1 1 380px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: #1C1C1E;
  margin: 0;
}

.cookie-banner__text a {
  color: #8B2E1A;
  text-decoration: underline;
}

.cookie-banner__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Beide Buttons bewusst GLEICH gewichtet — kein Button ist optisch "die
   empfohlene" Wahl. Nur ein dezenter Rand-/Fülle-Unterschied für Lesbarkeit. */
.cookie-banner__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 100px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.cookie-banner__btn:hover { opacity: 0.85; transform: translateY(-1px); }

.cookie-banner__btn--accept {
  border: none;
  background: #1C1C1E;
  color: #FFFFFF;
}

.cookie-banner__btn--necessary {
  border: 1.5px solid #1C1C1E;
  background: transparent;
  color: #1C1C1E;
}

.cookie-banner__settings-toggle {
  flex: 0 0 100%;
  display: block;
  margin-top: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(28,28,30,0.55);
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

.cookie-banner__settings-toggle:hover { color: #1C1C1E; }

.cookie-banner__categories {
  flex: 0 0 100%;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}

.cookie-banner__categories.is-open {
  max-height: 300px;
  opacity: 1;
  margin-top: 8px;
}

.cookie-banner__category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.cookie-banner__category-label {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 4px;
}

.cookie-banner__category-desc {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(28,28,30,0.6);
  line-height: 1.5;
}

/* Einfacher Toggle-Switch, kein externes Icon-Set */
.cookie-banner__switch {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border-radius: 100px;
  background: rgba(28,28,30,0.2);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-banner__switch::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.2s;
}

.cookie-banner__switch.is-on {
  background: #8B2E1A;
}

.cookie-banner__switch.is-on::before {
  transform: translateX(18px);
}

.cookie-banner__switch:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.cookie-banner__save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  height: 44px;
  padding: 0 28px;
  border: none;
  border-radius: 100px;
  background: #8B2E1A;
  color: #FFFFFF;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cookie-banner__save:hover { opacity: 0.9; }

@media (max-width: 640px) {
  #cookie-banner { padding: 20px 20px 18px; }
  .cookie-banner__inner { display: block; }
  .cookie-banner__text { margin-bottom: 16px; }
  .cookie-banner__actions { flex-direction: column; }
  .cookie-banner__btn { width: 100%; }
  .cookie-banner__settings-toggle { margin-top: 14px; }
}
