/* ====================================================================
   Cookie-Consent – wiederverwendbare Komponente (Finsweet fs-cc Markup)
   im hellen InLift-Branding. Wird von eigenständigen Seiten genutzt, die
   NICHT die große Webflow-CSS laden (z. B. /links und der Leitfaden-Funnel),
   damit der Banner überall gleich aussieht und zum hellen Seitendesign passt.

   Gleiches Markup wie auf der Hauptseite -> nur das Design unterscheidet sich.
   Variablen mit Fallback, damit die Datei auf jeder Seite eigenständig wirkt.
   ==================================================================== */
.cookiebanner {
  --cc-card: var(--card, #ffffff);
  --cc-text: var(--text, #1f1f1f);
  --cc-muted: var(--muted, #5f5f5f);
  --cc-line: var(--line, #e7e4e1);
  --cc-red: var(--red, #8b1e2d);
  --cc-red-bright: var(--red-bright, #b5293c);
  --cc-red-dark: var(--red-dark, #6f1623);
  --cc-red-soft: var(--red-soft, rgba(139, 30, 45, 0.1));
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: fixed;
  inset: auto auto 0 0;
  z-index: 9999;
}
.fs-cc_custom-code { display: none; }

/* ---------- Banner (Toast unten) ---------- */
.fs-cc_cookie-component {
  background: var(--cc-card);
  color: var(--cc-text);
  max-width: 25rem;
  margin: 18px;
  border: 1px solid var(--cc-line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(31, 31, 31, 0.16);
  overflow: hidden;
  animation: cc-slide-up 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cc-slide-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.fs-cc_modal { position: relative; display: flex; flex-direction: column; }
.fs_cc-modal-content { padding: 1.25rem 1.35rem 0.5rem; }
.fs-cc_title {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--cc-text);
}
.fs-cc_description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--cc-muted);
}
.fs-cc_description a { color: var(--cc-red); text-decoration: underline; }

/* ---------- Buttons ---------- */
.fs-cc_modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.1rem 1.35rem 1.35rem;
}
.fs-cc_button {
  flex: 1 1 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 1.1rem;
  border-radius: 11px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.15s ease, color 0.15s ease;
}
/* Primär: glühender Marken-Verlauf wie der CTA im Funnel/Linktree */
.fs-cc_button:not(.is-secondary) {
  background: linear-gradient(135deg, var(--cc-red-bright), var(--cc-red-dark));
  color: #fff;
  box-shadow: 0 8px 22px var(--red-glow, rgba(181, 41, 60, 0.4));
}
.fs-cc_button:not(.is-secondary):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(181, 41, 60, 0.55);
}
/* Sekundär: dezenter Umriss */
.fs-cc_button.is-secondary {
  background: var(--cc-card);
  color: var(--cc-text);
  border-color: var(--cc-line);
}
.fs-cc_button.is-secondary:hover {
  background: var(--cc-red-soft);
  border-color: rgba(139, 30, 45, 0.28);
  color: var(--cc-red);
}

/* ---------- Schließen (×) ---------- */
.fs-cc_close-button {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.fs-cc_close-button:hover { background: var(--cc-red-soft); }
.fs-cc_close-button-line {
  position: absolute;
  width: 0.85rem;
  height: 2px;
  border-radius: 2px;
  background: var(--cc-muted);
  transform: rotate(-45deg);
}
.fs-cc_close-button-line.is-2nd { transform: rotate(45deg); }
.fs-cc_screen-reader-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
}

/* ---------- Einstellungen-Modal (zentriert) ---------- */
.fs-cc_preference-component {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}
.cookie-preference_background {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 31, 0.5);
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.cookie-preference_wrapper {
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: 30rem;
  max-height: 100%;
  padding: 1.25rem;
  overflow: auto;
}
.cookie-preference_wrapper .fs-cc_modal {
  background: var(--cc-card);
  border: 1px solid var(--cc-line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(31, 31, 31, 0.28);
  padding-bottom: 0.25rem;
  overflow: hidden;
}

/* ---------- Auswahl (Checkboxen) ---------- */
.fs-cc_form { margin: 0; }
.fs-cc_preferences {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.25rem 1.35rem 0.5rem;
}
.fs-cc_checkbox {
  position: relative;
  margin: 0;
  padding-left: 2rem;
  cursor: pointer;
}
.fs-cc_checkbox.is--not-allowed { cursor: not-allowed; }
.fs-cc_checkbox-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cc-text);
}
.fs-cc_checkbox-description { font-size: 0.85rem; color: var(--cc-muted); }
.fs-cc_checkbox-button {
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0;
  border: 1.5px solid var(--cc-line);
  border-radius: 0.4rem;
  background: var(--cc-card);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.fs-cc_checkbox-button.w--redirected-checked,
.fs-cc_checkbox-button.is-required {
  background-color: var(--cc-red);
  border-color: var(--cc-red);
  background-image: url(../images/radio__checkmark.svg);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: 0.7rem;
}
.fs-cc_checkbox-button.is-required { opacity: 0.7; }
/* Ohne webflow.js setzt niemand w--redirected-checked: Zustand direkt vom Input lesen. */
.fs-cc_checkbox:has(input:checked) .fs-cc_checkbox-button {
  background-color: var(--cc-red);
  border-color: var(--cc-red);
  background-image: url(../images/radio__checkmark.svg);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: 0.7rem;
}
.fs-cc_preference-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.5rem 1.35rem 1.35rem;
}
.hide-all { display: none; }

/* Webflow-Checkbox-Grundgerüst */
.w-checkbox { display: block; margin-bottom: 5px; }
.w-checkbox::before, .w-checkbox::after { content: " "; display: table; }
.w-checkbox::after { clear: both; }

@media (max-width: 479px) {
  .fs-cc_cookie-component { max-width: 100%; margin: 0; border-radius: 18px 18px 0 0; }
  .fs-cc_preference-component { align-items: flex-end; }
  .cookie-preference_wrapper { padding: 0; }
  .cookie-preference_wrapper .fs-cc_modal { border-radius: 18px 18px 0 0; }
  .fs-cc_button { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .fs-cc_cookie-component { animation: none; }
}
