/* Cookie banner (Klaro) of the public pages, AccountPilot's overrides: the
   notice clamps its text to four lines with a „Mehr lesen“ toggle, buttons
   in the Mühelos purple. Klaro reads its colours from
   these custom properties. */
.klaro {
  --font-family: "Inter", system-ui, sans-serif;
  --title-font-family: "Inter", system-ui, sans-serif;
  --dark1: #14141d;
  --dark2: #2c2c3a;
  --dark3: #9898a8;
  --green1: #7a58b8;
  --green2: #8a69c6;
  --green3: #c9b8f5;
  --blue1: #7a58b8;
  --blue2: #c9b8f5;
  --border-radius: 8px;
}

.klaro .cookie-notice:not(.cookie-modal-notice) {
  z-index: 100000;
  max-height: none !important;
  overflow: visible !important;
}

.klaro .cookie-notice .cn-body,
.klaro .cookie-notice .cn-body p,
.klaro .cookie-notice .cn-ok,
.klaro .cookie-modal .cm-header,
.klaro .cookie-modal .cm-header h1,
.klaro .cookie-modal .cm-body,
.klaro .cookie-modal .cm-body p,
.klaro .cookie-modal .cm-footer,
.klaro .cookie-modal .cm-list-label,
.klaro .cookie-modal .cm-list-description,
.klaro .cookie-modal .cm-list-title {
  color: #ffffff !important;
}

.klaro .cookie-notice .cn-body,
.klaro .cookie-notice .cn-body p {
  font-size: 13px;
  line-height: 1.5;
}

.klaro .cookie-notice .cn-body a,
.klaro .cookie-modal .cm-header a,
.klaro .cookie-modal .cm-body a {
  color: #c9b8f5 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Clamp the notice paragraph to four lines */
.klaro .cookie-notice .cn-body > p#id-cookie-notice,
.klaro .cookie-notice .cn-body > p:first-of-type {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 4 !important;
  line-clamp: 4 !important;
  overflow: hidden !important;
  max-height: calc(1.5em * 4) !important;
}

.klaro .cookie-notice.is-expanded .cn-body > p#id-cookie-notice,
.klaro .cookie-notice.is-expanded .cn-body > p:first-of-type {
  display: block !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  overflow: visible !important;
  max-height: none !important;
}

/* One actions row: „Mehr lesen“ left, Einstellungen/Ablehnen/Zustimmen right */
.klaro .cookie-notice .cn-ok {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-top: 12px !important;
}

.mh-consent-toggle {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #c9b8f5 !important;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer !important;
  flex-shrink: 0;
}

.mh-consent-toggle:hover {
  color: #ffffff !important;
}

.klaro .cookie-notice .cn-buttons {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px !important;
  margin: 0 0 0 auto !important;
  padding: 0;
}

.klaro .cookie-notice .cn-buttons button,
.klaro .cookie-notice .cn-decline {
  margin: 0 !important;
}

.klaro .cookie-modal .cm-body {
  max-height: min(55vh, 480px);
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.55;
}

@media (min-width: 1024px) {
  .klaro .cookie-notice:not(.cookie-modal-notice) {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    max-width: min(720px, calc(100vw - 40px)) !important;
  }
}
