/* MyGxPtraining – Cookie consent redesign */

.consent-banner[hidden],
.consent-settings[hidden] {
  display: none !important;
}

.consent-banner {
  position: fixed;
  z-index: 10001;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  width: min(610px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: 0;
  padding: clamp(24px, 4vw, 38px);
  background: #fff;
  color: #263344;
  border: 1px solid #e4eaf2;
  border-radius: 20px;
  box-shadow: 0 24px 90px rgba(5, 20, 48, .28);
}

.consent-banner h2 {
  margin: 0 0 18px;
  color: #071d50;
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.consent-banner p {
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 17px;
}

.consent-banner .consent-note {
  font-size: 13px;
  color: #64748b;
}

.consent-actions {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 24px;
}

.consent-actions button,
.consent-settings [data-save] {
  width: 100%;
  min-height: 49px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.consent-actions [data-all] {
  background: #071d50;
  color: #fff;
  border: 2px solid #071d50;
}

.consent-actions [data-necessary] {
  background: #fff;
  color: #071d50;
  border: 2px solid #071d50;
}

.consent-actions [data-settings] {
  background: transparent;
  border: 0;
  color: #071d50;
  text-decoration: underline;
}

.consent-actions button:focus-visible,
.consent-settings button:focus-visible {
  outline: 3px solid #3278cf;
  outline-offset: 3px;
}

.consent-settings {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e4eaf2;
}

.consent-settings label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.consent-settings input {
  accent-color: #071d50;
}

.consent-settings [data-save] {
  margin-top: 14px;
  background: #071d50;
  color: #fff;
  border: 0;
}

@media (max-width: 480px) {
  .consent-banner {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 23px 19px;
    border-radius: 16px;
  }

  .consent-banner h2 {
    font-size: 24px;
  }

  .consent-banner p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Hintergrundabdunkelung */
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 17, 43, 0.66);
  backdrop-filter: none;
}

.consent-overlay[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .consent-overlay {
    backdrop-filter: none;
  }
}

.consent-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 8px 0 4px !important;
  font-size: 13px !important;
}

.consent-legal-links a {
  color: #071d50;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-legal-links a:focus-visible {
  outline: 3px solid #3278cf;
  outline-offset: 3px;
}
