/* =========================================================================
   Revenue Reactivation – Consent Banner
   Farben an die Website angepasst (Navy #0B1120 / Akzent #FACC15).
   Alle Klassen sind mit "rrc-" gekapselt, damit nichts mit dem
   bestehenden Stylesheet kollidiert.
   ========================================================================= */

.rrc-root {
  --rrc-bg: #0F172A;
  --rrc-bg-soft: #16213C;
  --rrc-border: rgba(255, 255, 255, 0.12);
  --rrc-text: #E2E8F0;
  --rrc-title: #FFFFFF;
  --rrc-muted: #94A3B8;
  --rrc-accent: #FACC15;
  --rrc-accent-hover: #FDE047;
  --rrc-accent-ink: #0B1120;
  --rrc-link: #93C5FD;

  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.rrc-root[hidden] { display: none; }

/* --- Abdunkelung: signalisiert, dass eine Entscheidung nötig ist -------- */
.rrc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: auto; /* Klick schließt bewusst NICHT */
}

/* --- Karte ------------------------------------------------------------- */
.rrc-panel {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: var(--rrc-bg);
  color: var(--rrc-text);
  border: 1px solid var(--rrc-border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
  padding: 26px 28px 22px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.rrc-root.is-visible .rrc-backdrop { opacity: 1; }
.rrc-root.is-visible .rrc-panel { opacity: 1; transform: translateY(0); }

/* --- Kopf -------------------------------------------------------------- */
.rrc-panel .rrc-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--rrc-title);
  margin: 0 0 10px;
  padding: 0;
}

.rrc-panel .rrc-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--rrc-text);
  margin: 0;
  padding: 0;
}

/* --- Schließen --------------------------------------------------------- */
.rrc-panel .rrc-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rrc-border);
  border-radius: 10px;
  color: var(--rrc-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rrc-panel .rrc-close:hover {
  color: var(--rrc-title);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.rrc-panel .rrc-close[hidden] { display: none; }

/* --- Einstellungen ----------------------------------------------------- */
.rrc-panel .rrc-details {
  margin-top: 18px;
  border-top: 1px solid var(--rrc-border);
  padding-top: 6px;
}

.rrc-panel .rrc-details[hidden] { display: none; }

.rrc-panel .rrc-opt {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rrc-panel .rrc-opt:last-child { border-bottom: 0; }

.rrc-panel .rrc-opt-txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rrc-panel .rrc-opt-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--rrc-title);
}

.rrc-panel .rrc-opt-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--rrc-muted);
}

/* --- Schalter ---------------------------------------------------------- */
.rrc-panel .rrc-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  margin-top: 2px;
  cursor: pointer;
}

.rrc-panel .rrc-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.rrc-panel .rrc-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #334155;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}

.rrc-panel .rrc-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E2E8F0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.rrc-panel .rrc-switch input:checked + .rrc-slider {
  background: var(--rrc-accent);
  border-color: var(--rrc-accent);
}

.rrc-panel .rrc-switch input:checked + .rrc-slider::after {
  transform: translateX(20px);
  background: var(--rrc-accent-ink);
}

.rrc-panel .rrc-switch input:focus-visible + .rrc-slider {
  outline: 2px solid var(--rrc-accent);
  outline-offset: 3px;
}

.rrc-panel .rrc-switch.is-locked { cursor: not-allowed; opacity: 0.75; }
.rrc-panel .rrc-switch.is-locked input { cursor: not-allowed; }

/* --- Buttons ----------------------------------------------------------- */
.rrc-panel .rrc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.rrc-panel .rrc-actions[hidden] { display: none; }

.rrc-panel .rrc-btn {
  flex: 1 1 190px;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  padding: 14px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.rrc-panel .rrc-btn:active { transform: translateY(1px); }

.rrc-panel .rrc-btn:focus-visible {
  outline: 2px solid var(--rrc-accent);
  outline-offset: 3px;
}

/* Akzeptieren und Ablehnen sind bewusst gleich groß und gleich prominent. */
.rrc-panel .rrc-btn-primary {
  background: var(--rrc-accent);
  color: var(--rrc-accent-ink);
}

.rrc-panel .rrc-btn-primary:hover { background: var(--rrc-accent-hover); }

.rrc-panel .rrc-btn-secondary {
  background: var(--rrc-bg-soft);
  color: var(--rrc-title);
  border-color: rgba(255, 255, 255, 0.18);
}

.rrc-panel .rrc-btn-secondary:hover {
  background: #1E2B4A;
  border-color: rgba(255, 255, 255, 0.32);
}

.rrc-panel .rrc-btn-ghost {
  flex: 0 1 auto;
  background: transparent;
  color: var(--rrc-muted);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rrc-panel .rrc-btn-ghost:hover { color: var(--rrc-title); }

/* --- Rechtliche Links -------------------------------------------------- */
.rrc-panel .rrc-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--rrc-muted);
}

.rrc-panel .rrc-legal a {
  color: var(--rrc-link);
  text-decoration: none;
}

.rrc-panel .rrc-legal a:hover { text-decoration: underline; }

/* --- Mobile ------------------------------------------------------------ */
@media (max-width: 600px) {
  .rrc-root { padding: 0; align-items: flex-end; }

  .rrc-panel {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 22px 20px 0;
    max-height: 88vh;
  }

  .rrc-panel .rrc-title { font-size: 18px; }
  .rrc-panel .rrc-desc { font-size: 14px; }

  /* Reihenfolge so, dass die Buttons als letztes Element unten kleben */
  .rrc-panel .rrc-head { order: 1; }
  .rrc-panel .rrc-details { order: 2; }
  .rrc-panel .rrc-legal { order: 3; margin-bottom: 4px; }
  .rrc-panel .rrc-actions { order: 4; }

  /* Buttons bleiben immer sichtbar, auch wenn der Inhalt scrollt. */
  .rrc-panel .rrc-actions {
    position: sticky;
    bottom: 0;
    flex-direction: column;
    gap: 9px;
    margin: 16px -20px 0;
    padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--rrc-bg);
    box-shadow: 0 -14px 20px -14px rgba(2, 6, 23, 0.9);
  }

  .rrc-panel .rrc-btn { flex: 1 1 auto; width: 100%; }
  .rrc-panel .rrc-btn-ghost { padding: 10px 18px; }

  .rrc-panel .rrc-opt { gap: 14px; }
}

/* --- Reduzierte Bewegung ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .rrc-backdrop,
  .rrc-panel,
  .rrc-panel .rrc-btn,
  .rrc-panel .rrc-slider,
  .rrc-panel .rrc-slider::after {
    transition: none !important;
  }
  .rrc-panel { transform: none; }
}

/* =========================================================================
   Footer-Link "Cookie-Einstellungen"
   ========================================================================= */

/* Startseite: nutzt die bestehende .footer-links-Optik automatisch. */

/* Rechtsseiten (impressum / datenschutz / agb): dort steht der Link im
   schlichten <footer> und erbt dessen a-Styles. Button-Reset für den Fall,
   dass der Trigger als <button> eingesetzt wird. */
button[data-cookie-settings] {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

a[data-cookie-settings] { cursor: pointer; }
