/* Only loaded by the German and English homepages. */
html:has(.logo-viewer[open]) { overflow: hidden; scrollbar-gutter: auto; }
body.logo-viewer-open { overflow: hidden; }
.logo-viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  color-scheme: dark;
  overflow: hidden;
}
.logo-viewer::backdrop { background: #000; }
.logo-viewer[open] { display: grid; }
.logo-viewer-stage {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 64px clamp(12px, 3vw, 72px);
}
.logo-viewer-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 2170px;
  max-height: 725px;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
.logo-viewer-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #666;
  border-radius: 5px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.logo-viewer-close span { font-size: 25px; line-height: 1; }
.logo-viewer-close:hover { background: #252525; border-color: #aaa; }
.logo-viewer-close:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media print { .logo-viewer { display: none !important; } }

/* Hide only the restored focus; Tab or blur restores the normal keyboard outline. */
[data-logo-open].logo-focus-return:focus { outline: none; }
