/* CFT Mainz: granularer Cookie-Consent (cft-consent.js), Website-Stil: Dunkelgrau, Gelb #fada5f, Jost. */
.cft-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; padding: 0 16px 16px; font-family: "Jost", sans-serif; }
.cft-consent[hidden], .cft-consent-modal[hidden], .cft-consent-fab[hidden] { display: none !important; }
.cft-consent__card { max-width: 720px; margin: 0 auto; background: #1a1a1a; color: #fff; border-radius: 12px; box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35); padding: 20px 22px; }
.cft-consent__title { font-family: "JostBold", sans-serif; font-size: 1.05rem; margin: 0 0 8px; color: #fada5f; }
.cft-consent__text { font-size: 0.92rem; line-height: 1.5; margin: 0; hyphens: none; }
.cft-consent__text a, .cft-consent-modal__foot a { color: #fada5f; text-decoration: underline; text-underline-offset: 2px; }
.cft-consent__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; justify-content: flex-end; }
.cft-consent__btn { cursor: pointer; border: 2px solid transparent; border-radius: 8px; padding: 11px 18px; font-family: "JostBold", sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.02em;
  white-space: normal; hyphens: none; -webkit-hyphens: none; word-break: normal; line-height: 1.25; text-align: center; }
.cft-consent__btn--primary { background: #fada5f; color: #1a1a1a; border-color: #fada5f; }
.cft-consent__btn--outline { background: transparent; color: #fff; border-color: #777; }
.cft-consent-modal__card .cft-consent__btn--outline { color: #1a1a1a; border-color: #1a1a1a; }
.cft-consent__btn:hover { filter: brightness(1.08); }
.cft-consent__btn:focus-visible, .cft-consent-modal__close:focus-visible, .cft-consent-fab:focus-visible { outline: 2px solid #fada5f; outline-offset: 2px; }
@media (max-width: 600px) {
  .cft-consent { padding: 0 10px 10px; }
  .cft-consent__card { padding: 16px; }
  .cft-consent__btns { flex-direction: column; }
  .cft-consent__btn { width: 100%; }
}

/* Dialog */
.cft-consent-modal { position: fixed; inset: 0; z-index: 99995; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: "Jost", sans-serif; }
.cft-consent-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.cft-consent-modal__card { position: relative; width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; background: #fff; color: #1a1a1a; border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); padding: 22px 24px; }
.cft-consent-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cft-consent-modal__head h2 { font-family: "JostBold", sans-serif; font-size: 1.25rem; margin: 0 0 12px; }
.cft-consent-modal__close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: #555; margin: -6px -6px 0 0; padding: 4px 8px; }
.cft-consent__need { background: #fff7d6; border-left: 4px solid #fada5f; padding: 10px 14px; border-radius: 6px; font-size: 0.92rem; margin: 0 0 14px; }
.cft-consent__cats { list-style: none; margin: 0; padding: 0; }
.cft-consent__cat { border: 1px solid #e3e3e3; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.cft-consent__cat--need { border-color: #fada5f; box-shadow: 0 0 0 2px rgba(250, 218, 95, 0.4); }
.cft-consent__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; cursor: pointer; }
.cft-consent__row input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: #d8b93a; cursor: pointer; }
.cft-consent__row input[disabled] { cursor: not-allowed; }
.cft-consent__catname, .cft-consent__svc { display: block; font-family: "JostBold", sans-serif; font-size: 0.98rem; }
.cft-consent__svc { font-size: 0.9rem; }
.cft-consent__desc { display: block; font-size: 0.85rem; color: #555; line-height: 1.45; margin-top: 2px; }
.cft-consent__details { margin-top: 10px; }
.cft-consent__details summary { cursor: pointer; list-style: none; font-family: "JostBold", sans-serif; font-size: 0.85rem; color: #333; text-decoration: underline; text-decoration-color: #fada5f; text-underline-offset: 3px; }
.cft-consent__details summary::-webkit-details-marker { display: none; }
.cft-consent__details .cft-consent__hide, .cft-consent__details[open] .cft-consent__show { display: none; }
.cft-consent__details[open] .cft-consent__hide { display: inline; }
.cft-consent__details ul { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid #e3e3e3; }
.cft-consent__details li + li { margin-top: 10px; }
.cft-consent-modal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.cft-consent-modal__foot .cft-consent__btns { margin-top: 0; }
.cft-consent-modal__foot a { color: #1a1a1a; text-decoration-color: #fada5f; font-size: 0.9rem; }
@media (max-width: 600px) {
  .cft-consent-modal { padding: 10px; align-items: flex-end; }
  .cft-consent-modal__card { padding: 18px 16px; max-height: 92vh; }
  .cft-consent-modal__foot { flex-direction: column-reverse; align-items: stretch; }
  .cft-consent-modal__foot .cft-consent__btns { flex-direction: column; }
  .cft-consent-modal__foot .cft-consent__btn { width: 100%; }
}
body.cft-consent-open { overflow: hidden; }
.cft-consent-modal__card, .cft-consent__card { hyphens: manual; -webkit-hyphens: manual; }

/* Wiederöffnen-Knopf unten links nach einer Wahl */
.cft-consent-fab { position: fixed; left: 14px; bottom: 14px; z-index: 99980; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #333; background: #1a1a1a; color: #fada5f; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.cft-consent-fab:hover { background: #2c2c2c; }
@media print { .cft-consent, .cft-consent-modal, .cft-consent-fab { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .cft-consent__btn { transition: none; } }
