/* Cookie-Einstellungen: Banner und Dialog (assets/js/consent.js) */
.fac-banner,
.fac-dialog {
  font-family: Manrope, sans-serif;
  color: #14233A;
  box-sizing: border-box;
}
.fac-banner *,
.fac-dialog * { box-sizing: border-box; }

.fac-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #E6EBF2;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(20, 35, 58, 0.06), 0 32px 64px -24px rgba(20, 35, 58, 0.35);
}

.fac-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.fac-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}
.fac-text a,
.fac-note a {
  color: #B4561A;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fac-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* Ablehnen und Zustimmen bewusst gleich gestaltet: gleichwertige Wahl */
.fac-btn {
  flex: 1 1 180px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid #14233A;
  background: #14233A;
  color: #FFFFFF;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.fac-btn:hover { background: #22385A; border-color: #22385A; }

.fac-link {
  min-height: 48px;
  padding: 12px 8px;
  border: 0;
  background: none;
  color: #14233A;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.fac-link:hover { color: #B4561A; }

.fac-btn:focus-visible,
.fac-link:focus-visible,
.fac-close:focus-visible,
.fac-switch:focus-visible,
.fac-dialog summary:focus-visible {
  outline: 3px solid #E07A2E;
  outline-offset: 2px;
}

/* Dialog */
.fac-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid #E6EBF2;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 32px 64px -24px rgba(20, 35, 58, 0.45);
}
.fac-dialog::backdrop { background: rgba(20, 35, 58, 0.55); }
.fac-dialog-inner { padding: 28px; }

.fac-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.fac-dialog-head .fac-title { font-size: 22px; }
.fac-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin: -8px -8px 0 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #14233A;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.fac-close:hover { background: #F1F5F9; }

.fac-note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #ECFDF3;
  color: #14532D;
  font-size: 15px;
  line-height: 1.6;
}

.fac-cat {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid #E6EBF2;
  border-radius: 14px;
  background: #F8FAFC;
}
.fac-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.fac-cat-head label {
  font-size: 16px;
  font-weight: 700;
}
.fac-badge {
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #E6EBF2;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

/* Schalter */
.fac-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 999px;
  background: #CBD5E1;
  cursor: pointer;
  transition: background 0.15s;
}
.fac-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(20, 35, 58, 0.3);
  transition: transform 0.15s;
}
.fac-switch:checked { background: #14233A; }
.fac-switch:checked::after { transform: translateX(20px); }
.fac-switch:disabled { cursor: not-allowed; opacity: 0.6; }

.fac-dialog details { margin-top: 10px; }
.fac-dialog summary {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #B4561A;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fac-services {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fac-service {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E6EBF2;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}
.fac-service strong { color: #14233A; }

@media (max-width: 520px) {
  .fac-banner { padding: 20px; }
  .fac-dialog-inner { padding: 22px 18px; }
  .fac-btn { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fac-switch, .fac-switch::after { transition: none; }
}
