/* ============================================================================
   Einwilligung — Gestaltung für die BürgerGuide-Landingpages.
   Gehört zu consent.js. Farben und Schrift kommen aus colors_and_type.css der
   jeweiligen Seite, damit der Dialog nicht wie ein Fremdkörper wirkt; Aufbau
   und Wortlaut sind absichtlich dieselben wie auf klink-ai.com.
   ============================================================================ */

/* --- Klick-Schranke vor eingebetteten Diensten --- */
.lp-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 22px;
  text-align: center;
  z-index: 2;
}
.lp-gate p {
  max-width: 46ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.lp-gate-btn {
  border: 0;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  transition: opacity 0.2s;
}
.lp-gate-btn:hover { opacity: 0.88; }
.lp-gate-note { font-size: 12px; opacity: 0.75; }

/* auf dem dunklen Avatar-Feld */
.sol-live { position: relative; }
.sol-live .lp-gate { color: rgba(255, 255, 255, 0.92); background: linear-gradient(160deg, #0B2545, #133a6b); }
.sol-live .lp-gate-btn { background: var(--klink-amber-400); color: var(--klink-blue-900); }

/* in der weißen Terminkarte */
.calendly { position: relative; }
.calendly .lp-gate {
  position: static;
  min-height: 320px;
  border-radius: 10px;
  color: var(--neutral-600);
  background: var(--neutral-50, #f6f7f9);
}
.calendly .lp-gate-btn { background: var(--klink-blue-900); color: #fff; }
.calendly iframe { width: 100%; min-width: 320px; height: 700px; border: 0; border-radius: 10px; display: block; }

/* --- Dialog --- */
.lp-consent {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  z-index: 2147483000;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  color: var(--neutral-800);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--neutral-200);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.lp-consent.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.lp-consent:focus { outline: none; }
.lp-consent h2 {
  margin: 0 0 10px 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--klink-blue-900);
}
.lp-consent-p { margin: 0 0 18px 0; font-size: 14px; line-height: 1.6; color: var(--neutral-600); }
.lp-consent-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 20px; }
.lp-consent-cats label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.lp-consent-cats label:has(input:disabled) { cursor: default; }
.lp-consent-cats input { width: 16px; height: 16px; accent-color: var(--klink-blue-500); }
.lp-consent-cats em { font-style: normal; font-size: 12px; color: var(--neutral-500); }
.lp-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-btn {
  flex: 1 1 auto;
  border: 1px solid var(--neutral-200);
  background: #fff;
  cursor: pointer;
  padding: 11px 16px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--neutral-800);
  transition: background 0.2s, border-color 0.2s;
}
.lp-btn--quiet:hover { background: var(--neutral-50, #f6f7f9); border-color: var(--neutral-300, #d6d9de); }
.lp-btn--primary { background: var(--klink-amber-400); border-color: var(--klink-amber-400); color: var(--klink-blue-900); }
.lp-btn--primary:hover { background: var(--klink-amber-500); border-color: var(--klink-amber-500); }
.lp-consent-foot { display: flex; gap: 18px; margin-top: 16px; font-size: 13px; }
.lp-consent-foot a { color: var(--neutral-500); text-decoration: underline; }
.lp-consent-foot a:hover { color: var(--klink-blue-600); }

@media (max-width: 520px) {
  .lp-consent { bottom: 12px; padding: 20px; }
  .lp-consent-cats { grid-template-columns: 1fr; }
}
