/* MERO-LABS Altersabfrage (Popup Maker, Popup 31), auf allen Seiten geladen.
   The faces are declared here too, because pages outside the new homepage do not load them. */
@font-face { font-family: 'Rokkitt'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/rokkitt-800-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/literata-400-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

#pum-31 {
  --ag-ink: #0b2048;
  --ag-muted: #4e5d78;
  --ag-accent: #0a6cf0;
  --ag-ease: cubic-bezier(0.23, 1, 0.32, 1);
  background: rgba(11, 32, 72, .88) !important;
  /* On short screens the answer buttons must stay reachable: the overlay scrolls. */
  overflow-y: auto !important;
  overscroll-behavior: contain;
}
#pum-31 .pum-container { top: max(16px, 4vh) !important; margin-bottom: 16px !important; }
@media (max-height: 640px) {
  .mag__logo { width: min(180px, 50%); }
  .mag__title { margin-top: 18px; }
  .mag__actions { margin-top: 20px; }
}
#pum-31 .pum-container {
  width: min(560px, calc(100vw - 32px)) !important;
  left: 50% !important;
  margin-left: calc(min(560px, calc(100vw - 32px)) / -2) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--ag-ink);
  font-family: Literata, Georgia, serif;
}
/* No close button: the gate only closes through an answer. */
#pum-31 .pum-close { display: none !important; }
#pum-31 .pum-content { padding: 0; }
#pum-31 .pum-content > * { margin: 0; }

.mag { padding: clamp(24px, 6vw, 44px); }
.mag__logo { display: block; width: min(260px, 70%); height: auto; mix-blend-mode: multiply; }
.mag__title {
  margin: 28px 0 0;
  font-family: Rokkitt, Georgia, serif;
  font-weight: 800;
  font-size: clamp(30px, 6vw, 42px);
  line-height: .95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ag-ink);
}
.mag__text { margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: var(--ag-ink); }
.mag__actions { display: grid; gap: 10px; margin-top: 28px; }
.mag__yes, .mag__no {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 24px;
  font: 600 18px/1.2 Literata, Georgia, serif;
  text-align: center; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 0;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: background-color 200ms ease, transform 140ms var(--ag-ease);
}
.mag__yes { background: var(--ag-accent); color: #ffffff; }
.mag__no { background: #f2f4f7; color: var(--ag-ink); }
.mag__yes:active, .mag__no:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .mag__yes:hover { background: #0857c4; }
  .mag__no:hover { background: #e4eefb; }
}
.mag__yes:focus-visible, .mag__no:focus-visible { outline: 3px solid var(--ag-accent); outline-offset: 3px; }
.mag__fine { margin: 24px 0 0; font-size: 14px; line-height: 1.5; color: var(--ag-muted); }
.mag__fine strong { color: var(--ag-ink); }
@media (prefers-reduced-motion: reduce) {
  .mag__yes, .mag__no, .mreg__primary, .mreg__secondary { transition: none; }
}

/* ---------- Research-Zugang (Popup Maker, Popup 210), opens only on click ---------- */
#pum-210 { background: rgba(11, 32, 72, .72) !important; overflow-y: auto !important; overscroll-behavior: contain; }
#pum-210 .pum-container {
  width: min(600px, calc(100vw - 32px)) !important;
  left: 50% !important;
  margin-left: calc(min(600px, calc(100vw - 32px)) / -2) !important;
  top: max(16px, 6vh) !important;
  margin-bottom: 16px !important;
  padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: #ffffff !important; color: #0b2048; font-family: Literata, Georgia, serif;
}
#pum-210 .pum-content { padding: 0; }
#pum-210 .pum-content > * { margin: 0; }
/* An optional dialog keeps its close button, drawn in the page's style. */
#pum-210 .pum-close {
  top: 12px !important; right: 12px !important; left: auto !important; bottom: auto !important;
  width: 44px !important; height: 44px !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: #f2f4f7 !important; color: #0b2048 !important;
  font: 400 26px/44px Literata, Georgia, serif !important; text-align: center !important;
}
.mreg { padding: clamp(24px, 6vw, 44px); }
.mreg__title { margin: 0 56px 0 0; font-family: Rokkitt, Georgia, serif; font-weight: 800; font-size: clamp(30px, 6vw, 44px); line-height: .95; letter-spacing: -0.01em; text-transform: uppercase; color: #0b2048; }
.mreg__lead { margin: 16px 0 0; font-size: 18px; line-height: 1.55; }
.mreg__steps { margin: 24px 0 0; padding: 0 0 0 1.4em; display: grid; gap: 12px; font-size: 17px; line-height: 1.45; }
.mreg__steps li::marker { color: #0a6cf0; font-weight: 600; }
.mreg__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.mreg__primary, .mreg__secondary {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 20px;
  font: 600 18px/1.2 Literata, Georgia, serif; text-align: center; text-decoration: none;
  touch-action: manipulation; transition: background-color 200ms ease, transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
.mreg__primary { background: #0a6cf0; color: #ffffff; }
.mreg__secondary { background: #f2f4f7; color: #0b2048; }
.mreg__primary:active, .mreg__secondary:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .mreg__primary:hover { background: #0857c4; color: #ffffff; }
  .mreg__secondary:hover { background: #e4eefb; }
}
.mreg__fine { margin: 20px 0 0; font-size: 14px; line-height: 1.5; color: #4e5d78; }
@media (max-width: 520px) { .mreg__actions { grid-template-columns: 1fr; } }
