/*
 * =========================================================
 * ECHELONX – DATENSCHUTZ- UND COOKIE-EINWILLIGUNG
 * Version 1.0
 * =========================================================
 */

/*
 * =========================================================
 * GRUNDLAGE
 * =========================================================
 */

.ex-consent-lock {
  overflow: hidden;
}

.ex-consent-hidden {
  display: none !important;
}

/*
 * =========================================================
 * HINTERGRUND
 * =========================================================
 */

.ex-consent-backdrop {
  position: fixed;
  z-index: 99990;
  inset: 0;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  padding:
    clamp(18px, 3vw, 42px);

  background:
    rgba(20, 18, 15, 0.42);

  backdrop-filter:
    blur(12px);

  -webkit-backdrop-filter:
    blur(12px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 280ms ease,
    visibility 280ms ease;
}

.ex-consent-backdrop.ex-consent-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/*
 * =========================================================
 * DIALOG
 * =========================================================
 */

.ex-consent-dialog {
  position: relative;

  width:
    min(100%, 1180px);

  max-height:
    calc(100vh - 36px);

  overflow-y: auto;
  overscroll-behavior: contain;

  color:
    #171612;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.99),
      rgba(249, 245, 238, 0.99)
    );

  border:
    1px solid rgba(198, 161, 102, 0.34);

  border-radius:
    30px;

  box-shadow:
    0 32px 90px rgba(19, 17, 14, 0.28);

  transform:
    translateY(36px)
    scale(0.985);

  opacity: 0;

  transition:
    opacity 360ms
      cubic-bezier(0.22, 1, 0.36, 1),

    transform 360ms
      cubic-bezier(0.22, 1, 0.36, 1);
}

.ex-consent-visible
.ex-consent-dialog {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

/*
 * =========================================================
 * OBERER BEREICH
 * =========================================================
 */

.ex-consent-header {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap:
    24px;

  align-items:
    start;

  padding:
    clamp(26px, 4vw, 48px)
    clamp(24px, 5vw, 60px)
    clamp(22px, 3vw, 34px);

  border-bottom:
    1px solid rgba(17, 17, 15, 0.12);
}

.ex-consent-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;

  margin-bottom:
    24px;
}

.ex-consent-brand-mark {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  color:
    #c6a166;

  background:
    #11110f;

  border:
    1px solid rgba(198, 161, 102, 0.52);

  border-radius:
    13px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    25px;

  line-height:
    1;

  box-shadow:
    0 10px 28px rgba(17, 17, 15, 0.16);
}

.ex-consent-brand-word {
  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size:
    17px;

  font-weight:
    700;

  letter-spacing:
    0.19em;

  text-transform:
    lowercase;
}

.ex-consent-eyebrow {
  margin:
    0 0 13px;

  color:
    #9f7336;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size:
    11px;

  font-weight:
    700;

  letter-spacing:
    0.2em;

  text-transform:
    uppercase;
}

.ex-consent-title {
  max-width:
    760px;

  margin:
    0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(32px, 4.5vw, 60px);

  font-weight:
    400;

  line-height:
    0.98;

  letter-spacing:
    -0.04em;
}

.ex-consent-close {
  display: none;

  width:
    44px;

  height:
    44px;

  padding:
    0;

  color:
    #11110f;

  background:
    rgba(255, 255, 255, 0.84);

  border:
    1px solid rgba(17, 17, 15, 0.14);

  border-radius:
    50%;

  font-size:
    24px;

  line-height:
    1;

  cursor:
    pointer;

  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.ex-consent-close:hover {
  background:
    #ffffff;

  transform:
    rotate(5deg);
}

.ex-consent-close.ex-consent-close-visible {
  display: grid;
  place-items: center;
}

/*
 * =========================================================
 * INHALT
 * =========================================================
 */

.ex-consent-body {
  display: grid;

  grid-template-columns:
    minmax(0, 1.3fr)
    minmax(310px, 0.7fr);

  gap:
    clamp(28px, 5vw, 70px);

  padding:
    clamp(24px, 4vw, 44px)
    clamp(24px, 5vw, 60px);
}

.ex-consent-copy {
  max-width:
    720px;
}

.ex-consent-copy p {
  margin:
    0 0 18px;

  color:
    #615c54;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size:
    clamp(15px, 1.3vw, 17px);

  line-height:
    1.75;
}

.ex-consent-copy strong {
  color:
    #171612;
}

.ex-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;

  margin-top:
    24px;
}

.ex-consent-links a,
.ex-consent-links button {
  padding:
    0;

  color:
    #171612;

  background:
    transparent;

  border:
    0;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size:
    13px;

  font-weight:
    700;

  text-decoration:
    underline;

  text-decoration-color:
    rgba(198, 161, 102, 0.75);

  text-underline-offset:
    5px;

  cursor:
    pointer;
}

/*
 * =========================================================
 * KATEGORIEN
 * =========================================================
 */

.ex-consent-categories {
  display:
    grid;

  gap:
    13px;

  align-content:
    start;
}

.ex-consent-category {
  display:
    grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap:
    18px;

  align-items:
    center;

  padding:
    19px 20px;

  background:
    rgba(255, 255, 255, 0.72);

  border:
    1px solid rgba(17, 17, 15, 0.11);

  border-radius:
    18px;

  box-shadow:
    0 10px 28px rgba(17, 17, 15, 0.045);
}

.ex-consent-category-text strong {
  display:
    block;

  margin-bottom:
    5px;

  color:
    #171612;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size:
    14px;

  font-weight:
    700;
}

.ex-consent-category-text span {
  display:
    block;

  color:
    #777168;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size:
    12px;

  line-height:
    1.55;
}

.ex-consent-status {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  min-width:
    91px;

  min-height:
    32px;

  padding:
    7px 11px;

  color:
    #42694f;

  background:
    rgba(92, 153, 108, 0.12);

  border:
    1px solid rgba(92, 153, 108, 0.22);

  border-radius:
    999px;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size:
    10px;

  font-weight:
    800;

  letter-spacing:
    0.1em;

  text-transform:
    uppercase;
}

/*
 * =========================================================
 * SCHALTER
 * =========================================================
 */

.ex-consent-switch {
  position:
    relative;

  display:
    inline-flex;

  flex: 0 0 auto;

  width:
    56px;

  height:
    32px;
}

.ex-consent-switch input {
  position:
    absolute;

  width:
    1px;

  height:
    1px;

  opacity:
    0;

  pointer-events:
    none;
}

.ex-consent-switch-track {
  position:
    absolute;

  inset:
    0;

  background:
    #d9d5ce;

  border:
    1px solid rgba(17, 17, 15, 0.13);

  border-radius:
    999px;

  cursor:
    pointer;

  transition:
    background-color 200ms ease,
    border-color 200ms ease;
}

.ex-consent-switch-track::after {
  content:
    "";

  position:
    absolute;

  top:
    4px;

  left:
    4px;

  width:
    22px;

  height:
    22px;

  background:
    #ffffff;

  border-radius:
    50%;

  box-shadow:
    0 4px 12px rgba(17, 17, 15, 0.2);

  transition:
    transform 220ms
      cubic-bezier(0.22, 1, 0.36, 1);
}

.ex-consent-switch input:checked
+ .ex-consent-switch-track {
  background:
    #11110f;

  border-color:
    #11110f;
}

.ex-consent-switch input:checked
+ .ex-consent-switch-track::after {
  transform:
    translateX(24px);

  background:
    #c6a166;
}

.ex-consent-switch input:focus-visible
+ .ex-consent-switch-track {
  outline:
    3px solid rgba(198, 161, 102, 0.32);

  outline-offset:
    3px;
}

/*
 * =========================================================
 * AKTIONSBEREICH
 * =========================================================
 */

.ex-consent-actions {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    12px;

  align-items:
    center;

  padding:
    0
    clamp(24px, 5vw, 60px)
    clamp(26px, 4vw, 44px);
}

.ex-consent-button {
  min-height:
    54px;

  padding:
    15px 24px;

  border-radius:
    8px;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size:
    11px;

  font-weight:
    800;

  letter-spacing:
    0.13em;

  text-transform:
    uppercase;

  cursor:
    pointer;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.ex-consent-button:hover {
  transform:
    translateY(-2px);
}

.ex-consent-button-primary {
  color:
    #f8f3ea;

  background:
    #11110f;

  border:
    1px solid #11110f;

  box-shadow:
    0 15px 30px rgba(17, 17, 15, 0.15);
}

.ex-consent-button-primary:hover {
  box-shadow:
    0 18px 36px rgba(17, 17, 15, 0.22);
}

.ex-consent-button-secondary {
  color:
    #171612;

  background:
    #ffffff;

  border:
    1px solid rgba(17, 17, 15, 0.18);
}

.ex-consent-button-settings {
  color:
    #715632;

  background:
    transparent;

  border:
    1px solid rgba(198, 161, 102, 0.45);
}

/*
 * =========================================================
 * DETAILANSICHT
 * =========================================================
 */

.ex-consent-details {
  display:
    none;

  margin:
    0
    clamp(24px, 5vw, 60px)
    26px;

  padding:
    clamp(20px, 3vw, 30px);

  background:
    rgba(17, 17, 15, 0.035);

  border:
    1px solid rgba(17, 17, 15, 0.1);

  border-radius:
    20px;
}

.ex-consent-details.ex-consent-details-visible {
  display:
    block;
}

.ex-consent-details h3 {
  margin:
    0 0 14px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(24px, 3vw, 34px);

  font-weight:
    400;

  line-height:
    1.1;
}

.ex-consent-details p {
  margin:
    0 0 12px;

  color:
    #625d55;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size:
    14px;

  line-height:
    1.7;
}

/*
 * =========================================================
 * FESTER EINSTELLUNGSBUTTON
 * =========================================================
 */

.ex-consent-settings-button {
  position:
    fixed;

  z-index:
    99970;

  left:
    20px;

  bottom:
    20px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  width:
    48px;

  height:
    48px;

  padding:
    0;

  color:
    #c6a166;

  background:
    #11110f;

  border:
    1px solid rgba(198, 161, 102, 0.48);

  border-radius:
    50%;

  box-shadow:
    0 14px 34px rgba(17, 17, 15, 0.22);

  font-size:
    19px;

  cursor:
    pointer;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.ex-consent-settings-button:hover {
  transform:
    translateY(-2px)
    rotate(8deg);

  box-shadow:
    0 18px 38px rgba(17, 17, 15, 0.28);
}

.ex-consent-settings-button:focus-visible {
  outline:
    3px solid rgba(198, 161, 102, 0.36);

  outline-offset:
    4px;
}

/*
 * =========================================================
 * FOKUS UND BARRIEREFREIHEIT
 * =========================================================
 */

.ex-consent-dialog button:focus-visible,
.ex-consent-dialog a:focus-visible {
  outline:
    3px solid rgba(198, 161, 102, 0.42);

  outline-offset:
    4px;
}

/*
 * =========================================================
 * TABLET
 * =========================================================
 */

@media (max-width: 900px) {
  .ex-consent-body {
    grid-template-columns:
      1fr;
  }

  .ex-consent-copy {
    max-width:
      none;
  }

  .ex-consent-categories {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .ex-consent-actions {
    align-items:
      stretch;
  }

  .ex-consent-button {
    flex:
      1 1 220px;
  }
}

/*
 * =========================================================
 * SMARTPHONE
 * =========================================================
 */

@media (max-width: 640px) {
  .ex-consent-backdrop {
    align-items:
      flex-end;

    padding:
      0;
  }

  .ex-consent-dialog {
    width:
      100%;

    max-height:
      94vh;

    border-radius:
      24px 24px 0 0;
  }

  .ex-consent-header {
    gap:
      14px;

    padding:
      24px 20px 20px;
  }

  .ex-consent-brand {
    margin-bottom:
      18px;
  }

  .ex-consent-title {
    font-size:
      clamp(31px, 10vw, 43px);
  }

  .ex-consent-body {
    gap:
      24px;

    padding:
      22px 20px;
  }

  .ex-consent-categories {
    grid-template-columns:
      1fr;
  }

  .ex-consent-category {
    padding:
      17px;
  }

  .ex-consent-actions {
    display:
      grid;

    grid-template-columns:
      1fr;

    padding:
      0 20px 25px;
  }

  .ex-consent-button {
    width:
      100%;
  }

  .ex-consent-details {
    margin:
      0 20px 22px;

    padding:
      19px;
  }

  .ex-consent-settings-button {
    left:
      14px;

    bottom:
      14px;

    width:
      44px;

    height:
      44px;
  }
}

/*
 * =========================================================
 * REDUZIERTE BEWEGUNG
 * =========================================================
 */

@media (prefers-reduced-motion: reduce) {
  .ex-consent-backdrop,
  .ex-consent-dialog,
  .ex-consent-button,
  .ex-consent-close,
  .ex-consent-settings-button,
  .ex-consent-switch-track,
  .ex-consent-switch-track::after {
    transition:
      none !important;

    animation:
      none !important;
  }
}