/* Home — responsive switch + menu (Karte) viewer.
   Mobile layout under 760px, desktop layout at/above — mirrors the
   prototype's `isMobile = window.innerWidth < 760` switch. */

.home--mobile  { display: block; }
.home--desktop { display: none; }

@media (min-width: 760px) {
  .home--mobile  { display: none; }
  .home--desktop { display: block; }
}

/* Karte preview thumbnail (page 1 of the PDF, filled in by JS) */
.karte-preview {
  width: 100%;
  aspect-ratio: 0.72;
  border: 2px solid #ffffff;
  background-color: #ffffff;
  background-size: cover;
  background-position: top center;
}

/* Fullscreen scrollable PDF viewer */
.karte-viewer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 4, 10, 0.92);
  z-index: 1000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.karte-viewer.is-open { display: block; }

.karte-viewer__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1001;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  border: 2px solid #ffffff;
}

.karte-viewer__pages {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 12px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.karte-page {
  width: 100%;
  aspect-ratio: 0.707;
  background-color: #ffffff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
