/* ATZ Corporate Identity - Quelle: ATZ_CI_Extern.pdf */
:root {
  --atz-ci-blue: #04305e;
  --atz-ci-gray: #575756;
  --atz-ci-yellow: #ffed00;
  --atz-ci-white: #ffffff;
  --atz-ci-black: #000000;
  --atz-ci-gradient: linear-gradient(180deg, var(--atz-ci-blue) 0%, var(--atz-ci-black) 100%);
  --atz-font-family: "museo-sans", sans-serif;
}

html,
body,
button,
input,
select,
textarea,
label {
  font-family: var(--atz-font-family) !important;
}

body:not(.join-at-slide2) .welcome-box h1,
body:not(.join-at-slide2) .content-box h1,
body:not(.join-at-slide2) #loader h1,
body:not(.join-at-slide2) #loader2 h1 {
  font-weight: 900 !important;
}

body.join-at-slide2 #slide2 .slider-textbox h2,
body:not(.join-at-slide2) #loader h4,
body:not(.join-at-slide2) #loader2 h4 {
  font-weight: 300 !important;
}

body,
p,
label,
textarea,
input,
button,
.multiple-choice-hint,
.join-answer-def,
.footer-links a {
  font-weight: 500 !important;
}

strong,
b,
.highlight,
body.join-at-slide2 #slide2 .slider-textbox h2 .highlight {
  font-weight: 700 !important;
}

.highlight,
body.join-at-slide2 #slide2 .slider-textbox h2 .highlight {
  color: var(--atz-ci-yellow) !important;
}

body:not(.join-at-slide2) .content-box .box:has(> input[type="checkbox"]:checked),
body:not(.join-at-slide2) .content-box .box:has(> input[type="radio"]:checked),
body.join-form-fluid .content-box .box:has(> input[type="checkbox"]:checked),
body.join-form-fluid .content-box .box:has(> input[type="radio"]:checked) {
  background: var(--atz-ci-yellow) !important;
}

body:not(.join-at-slide2) .content-box .box input[type="checkbox"]:checked + label,
body:not(.join-at-slide2) .content-box .box input[type="radio"]:checked + label,
body.join-form-fluid .content-box .box input[type="checkbox"]:checked + label,
body.join-form-fluid .content-box .box input[type="radio"]:checked + label {
  background: var(--atz-ci-yellow) !important;
  color: var(--atz-ci-blue) !important;
}

#step3 .box input:checked + label,
#step4 .box input:checked + label,
#step5 .box input:checked + label,
#step6 .box input:checked + label {
  background: var(--atz-ci-yellow) !important;
  color: var(--atz-ci-blue) !important;
  text-shadow: none !important;
}

body:not(.join-at-slide2) .content-box .btn:hover,
body:not(.join-at-slide2) .content-box input[type="button"]:hover,
body:not(.join-at-slide2) .content-box input[type="submit"]:hover,
body.join-at-slide2 #slide2 .slider-btn:hover {
  background: var(--atz-ci-yellow) !important;
  border-color: var(--atz-ci-yellow) !important;
  color: var(--atz-ci-blue) !important;
}

body:not(.join-at-slide2) input:focus,
body:not(.join-at-slide2) textarea:focus,
body:not(.join-at-slide2) select:focus {
  border-color: var(--atz-ci-yellow) !important;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--atz-ci-yellow) !important;
}

.custom-loader {
  background: conic-gradient(transparent 10%, var(--atz-ci-yellow)) !important;
}

/* Rechts unten: Abstand zum Cookie-Banner links, ohne gemeinsamen Footer-Hintergrund. */
#legal-footer,
#legal-footer-slide2 {
  position: fixed !important;
  right: max(14px, env(safe-area-inset-right)) !important;
  left: auto !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
  top: auto !important;
  width: auto !important;
  max-width: calc(100vw - 28px) !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 2px !important;
  text-align: right !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  z-index: 1100 !important;
}

#legal-footer a,
#legal-footer-slide2 a {
  display: inline-block !important;
  padding: 0.35rem 0.5rem !important;
  color: var(--atz-ci-white) !important;
  opacity: 1 !important;
  border-radius: 7px !important;
  white-space: nowrap !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

#legal-footer a:hover,
#legal-footer a:focus-visible,
#legal-footer-slide2 a:hover,
#legal-footer-slide2 a:focus-visible {
  background: var(--atz-ci-yellow) !important;
  color: var(--atz-ci-blue) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

#legal-footer a:focus-visible,
#legal-footer-slide2 a:focus-visible {
  outline: 2px solid var(--atz-ci-yellow) !important;
  outline-offset: 2px !important;
}

@media (max-width: 600px) {
  #legal-footer,
  #legal-footer-slide2 {
    right: max(6px, env(safe-area-inset-right)) !important;
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
    max-width: calc(100vw - 12px) !important;
    padding: 0 !important;
  }

  #legal-footer a,
  #legal-footer-slide2 a {
    padding: 0.3rem 0.38rem !important;
    font-size: clamp(0.68rem, 3vw, 0.82rem) !important;
  }
}

/* Abschlussseite: Kernaussage bleibt auch ohne abgespieltes Video sichtbar. */
html body:not(.join-at-slide2) #user-info #step11 .join-success-message {
  max-width: 720px;
  margin: 12px auto 22px;
  color: #ffffff;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  font-weight: 400;
}

html body:not(.join-at-slide2) #user-info #step11 #player {
  width: min(820px, 92vw);
}

html body:not(.join-at-slide2) #user-info #step11 #player video {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border-radius: 24px;
}
