/* ==========================================================================
   Cookie-Consent — Bottom-Bar + Einstellungen-Panel
   Beide Wege (Alle akzeptieren / Nur notwendige) sind bewusst gleich groß
   und gleich betont — TTDSG/DSGVO verlangt gleiche Klickbarkeit, kein Dark
   Pattern. Nutzt Tokens aus /styles.css.
   ========================================================================== */

#cc-root {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

#cc-root[hidden] { display: none; }

.cc-card {
  pointer-events: auto;
  width: 100%;
  max-width: 640px;
  background: #fff;
  border: 1px solid var(--border-card, #E9EAEC);
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(11, 21, 36, .35);
  padding: 20px 22px;
  font-family: var(--font-sans, system-ui, sans-serif);
  color: var(--ink, #1D1D1F);
  animation: cc-in .35s cubic-bezier(.2, .7, .2, 1);
}

@keyframes cc-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cc-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft, #3A4048);
  margin: 0 0 16px;
}

.cc-text a { color: var(--blue, #1E5BA8); text-decoration: underline; text-underline-offset: 2px; }

/* -------------------------------------------------- Aktionen (Ebene 1) */
.cc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cc-btn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s var(--ease, ease), background .15s var(--ease, ease);
}

.cc-btn:active { transform: scale(.98); }

/* Gleiches Gewicht für Annehmen/Ablehnen: gleiche Größe, gleiche Zeile,
   nur die Füllung unterscheidet sich (Standardkontrast Primär/Sekundär). */
.cc-btn-accept { background: var(--blue, #1E5BA8); color: #fff; }
.cc-btn-reject { background: #fff; color: var(--ink, #1D1D1F); border-color: var(--border, #E4E5E9); }

.cc-link-row { margin-top: 12px; text-align: center; }

.cc-settings-link {
  background: none;
  border: 0;
  padding: 4px;
  font: inherit;
  font-size: 13px;
  color: var(--muted, #8A9099);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cc-settings-link:hover { color: var(--blue, #1E5BA8); }

/* -------------------------------------------------- Einstellungen (Ebene 2) */
.cc-panel-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 14px;
}

.cc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-hair, #EEEFF1);
}

.cc-row:first-of-type { border-top: 0; }

.cc-row-copy strong { display: block; font-size: 14px; color: var(--ink, #1D1D1F); margin-bottom: 3px; }
.cc-row-copy span { display: block; font-size: 12.5px; line-height: 1.5; color: var(--muted, #8A9099); }

.cc-switch {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--chip, #F0F1F3);
  border: 0;
  cursor: pointer;
}

.cc-switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .18s var(--ease, ease);
}

.cc-switch[data-on="true"] { background: var(--blue, #1E5BA8); }
.cc-switch[data-on="true"]::after { transform: translateX(18px); }

.cc-switch[disabled] { opacity: .55; cursor: not-allowed; }

.cc-panel-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 480px) {
  .cc-card { padding: 18px; }
  .cc-btn { min-width: 0; }
}
