/* Kev-Gruppe — Einwilligung
 *
 * Reprend la charte du site : vert fonce #0D3C3E, vert vif #60D16A,
 * menthe #F5FCF4. Les deux boutons ont le MEME poids visuel : refuser doit
 * etre aussi facile qu'accepter, sinon l'einwilligung n'est pas libre.
 */

.kg-ein {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  padding: 16px;
  background: rgba(13, 60, 62, .28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.kg-ein[hidden] { display: none; }

.kg-ein__boite {
  width: 100%;
  max-width: 640px;
  background: #FEFFFE;
  border: 1px solid #DCE7E3;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(13, 60, 62, .22);
  padding: 26px 26px 20px;
  font: 400 15px/1.6 Mulish, system-ui, sans-serif;
  color: #2A3433;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.kg-ein__titel {
  margin: 0 0 10px;
  font: 800 20px/1.25 Mulish, system-ui, sans-serif;
  letter-spacing: -.02em;
  color: #0D3C3E;
}

.kg-ein__texte { margin: 0 0 18px; color: #38514C; }

/* ---------- categories ---------- */
.kg-ein__choix { margin: 0 0 18px; border-top: 1px solid #E6EFEC; }
.kg-ein__choix[hidden] { display: none; }

.kg-ein__ligne {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid #E6EFEC;
  cursor: pointer;
}
.kg-ein__ligne--fixe { cursor: default; opacity: .72; }
.kg-ein__ligne input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: #0D3C3E; }
.kg-ein__ligne strong { display: block; font-weight: 700; color: #2A3433; }
.kg-ein__ligne small { display: block; margin-top: 2px; font-size: 13.5px; color: #5C7571; }

/* ---------- boutons : poids identique ---------- */
.kg-ein__pied { display: flex; gap: 12px; }

.kg-ein__btn {
  flex: 1 1 0;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 2px solid transparent;
  font: 700 15px/1.2 Mulish, system-ui, sans-serif;
  cursor: pointer;
  transition: .15s;
}
.kg-ein__btn--oui { background: #60D16A; color: #0D3C3E; }
.kg-ein__btn--oui:hover { background: #4CC257; }
.kg-ein__btn--non { background: #FFFFFF; color: #0D3C3E; border-color: #0D3C3E; }
.kg-ein__btn--non:hover { background: #F0F6F4; }
.kg-ein__btn:focus-visible { outline: 3px solid #0D3C3E; outline-offset: 2px; }

/* ---------- liens secondaires ---------- */
.kg-ein__sous {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #E6EFEC;
}
.kg-ein__lien {
  background: none;
  border: 0;
  padding: 0;
  font: 600 13.5px/1.4 Mulish, system-ui, sans-serif;
  color: #38514C;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.kg-ein__lien:hover { color: #0D3C3E; }
.kg-ein__lien[hidden] { display: none; }
.kg-ein__lien:focus-visible { outline: 2px solid #0D3C3E; outline-offset: 2px; }

/* ---------- rappel pour revenir sur son choix ---------- */
.kg-ein__rappel {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99998;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #DCE7E3;
  background: #FEFFFE;
  color: #0D3C3E;
  box-shadow: 0 4px 14px rgba(13, 60, 62, .16);
  cursor: pointer;
  opacity: .62;
  transition: .15s;
}
.kg-ein__rappel:hover { opacity: 1; }
.kg-ein__rappel[hidden] { display: none; }
.kg-ein__rappel:focus-visible { outline: 3px solid #0D3C3E; outline-offset: 2px; opacity: 1; }

@media (max-width: 560px) {
  .kg-ein { padding: 0; }
  .kg-ein__boite { border-radius: 16px 16px 0 0; padding: 22px 20px 16px; }
  .kg-ein__pied { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .kg-ein__btn, .kg-ein__rappel { transition: none; }
}
