body { margin: 0; }


/* Beispiel: Hauptschrift = Bricolage, Fallbacks folgen */
html, body {
  font-family: "PT Sans Narrow", "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 400; /* 200..800 sind verfügbar, je nach Bedarf */
}

/* Überschriften in PT Sans Narrow z. B.: */
h1, h2, h3 {
  font-family: "PT Sans Narrow", "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: large;
}

p {
  font-family: "PT Sans Narrow", "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 400;
  font-size: medium;
}

a {
  font-family: "PT Sans Narrow", "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 400;
  font-size: medium;
  text-decoration: none;
  color: black;
}

li {
  font-family: "PT Sans Narrow", "Bricolage Grotesque", Arial, sans-serif;
  font-weight: 400;
  font-size: medium;
  margin-top: 1.25em;
}

/* Sticky Navbar */
.sticky-nav {
  position: sticky !important;
  top: 0;
  z-index: 500;
  /*background: #ffffff;*/
}


/* NAVBAR */
.navimage {
  position: relative;
  width: 100%;
}

#navImg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .15s ease;
  cursor: url('../assets/cursor.png') 48 48, pointer;
}

#mapOverlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#hotspotDebug,
#hotspotHover {
  position: absolute;
  display: none;
}

/* FULLSCREEN MENU */
#menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(2px);
  display: none;
  z-index: 9999;
}

#menuPanel {
  position: absolute;
  right: 0;
  top: -150vh;
  transition: top .55s cubic-bezier(0.23,1,0.32,1);
    left: auto; /* NEU */

}


#menuPanel.show {
  top: 0;
}

#menuImg {
  display: block;
  max-height: 100vh;
  width: auto;
  object-fit: contain;
}

/* FOOTER IMAGE */
.footer-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.footer-image {
  height: auto; 
  display: block;
  max-width: 30%;
}





/* Baseline (XS <576px) */
.image_about {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;

  /* Fallback: vh */
  max-height: calc(75vh - var(--nav-h) - var(--gap));
  /* Besser auf Mobile: svh */
  max-height: calc(75svh - var(--nav-h) - var(--gap));
}

/* SM ≥576px */
@media (min-width: 576px) {
  .image_about {
    max-height: calc(80vh - var(--nav-h) - var(--gap));
    max-height: calc(80svh - var(--nav-h) - var(--gap));
  }

  .footer-image {
    max-width: 30%;
  }
}

/* MD ≥768px */
@media (min-width: 768px) {
  .image_about {
    max-height: calc(60vh - var(--nav-h) - var(--gap));
    max-height: calc(60svh - var(--nav-h) - var(--gap));
  }
  .footer-image {
    max-width: 20%;
  }
}

/* LG ≥992px */
@media (min-width: 992px) {
  .image_about {
    max-height: 60vh;
    max-height: 60vsh;
  }
  .footer-image {
    max-width: 15%;
  }
}

/* XL ≥1200px */
@media (min-width: 1200px) {
  .image_about {
    max-height: 70vh;
    max-height: 70svh;
  }
  .footer-image {
    max-width: 15%;
  }
}

/* XXL ≥1400px */
@media (min-width: 1400px) {
  .image_about {
    max-height: 60vh;
    max-height: 60svh;
  }

  .footer-image {
    max-width: 10%;
  }
}

:root {
  --galerie-max-width: 1200px; /* default */
  --tile-gap: 12px;
  --tile-min: 240px;           /* etwas größer als vorher (220px) */
  --row-height: 8px;
  --caption-padding: 12px;
  --caption-fg: #fff;
  --caption-bg-from: rgba(28, 26, 26, 0.65);
  --caption-bg-to: rgba(0,0,0,0);
  --hover-speed: .25s;
}

.galerie-wrapper {
  max-width: var(--galerie-max-width);
  margin-inline: auto;
}

.galerie-scroll {
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile-min), 1fr));
  grid-auto-rows: var(--row-height);
  gap: var(--tile-gap);
}

.tile {
  margin: 0;
  position: relative;
  overflow: hidden;
  transition: transform .08s ease;
  contain: layout;        /* Performance-Optimierung */
  min-height: 80px;       /* Fallback: verhindert "zu flach" */
}
.tile:active { transform: scale(.995); }

.tile img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.tile video {  
  display: block;  
  width: 100%;  
  height: auto;  
  object-fit: contain;      /* verhindert Beschnitt */  
}

/* Caption unten einblenden */
.tile__caption {
  position: absolute;
  pointer-events: none;
  inset-inline: 0;
  bottom: 0;
  color: var(--caption-fg);
  padding: var(--caption-padding);
  background: linear-gradient(to top, var(--caption-bg-from), var(--caption-bg-to));
  transform: translateY(100%);
  transition: transform var(--hover-speed) ease;
}

/* Titel + Text */
.tile__title {
  font: 600 1rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0 0 4px;
}
.tile__desc {
  font: 400 .9rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  opacity: .95;
}

/* Hover/Fokus zeigt Caption (Fokus via Tastatur auf <figure> möglich) */
.tile:hover .tile__caption,
.tile:focus-within .tile__caption {
  transform: translateY(0);
}

/* Tablet aufwärts etwas breiter */
@media (min-width: 768px) {
  :root {
    --galerie-max-width: 1400px;
    --tile-min: 280px;
  }
}

/* Größere Laptops/Desktops */
@media (min-width: 1200px) {
  :root {
    --galerie-max-width: 1600px;
    --tile-min: 320px;  /* deutlich größere Kacheln */
    --optimized_menu-max-width: 600px;
    --optimized_menu-max-height: 1200px;
  }
}

/* Sehr große Screens */
@media (min-width: 1600px) {
  :root {
    --galerie-max-width: 1800px;
    --tile-min: 360px;
  }
}

/* Mobile bleibt kleiner */
@media (max-width: 600px) {
  :root { --tile-min: 160px; }

  .about-content {
   max-width: 100%;
  }
}

.bottom-spacing {
  margin-bottom: 20vh;
}

.about-content {
  max-width: 70vw;
}

.centered-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.optimized_menu {
  max-width: 100%;

}


/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 60px 80px; /* Platz für Pfeile + Close */
  box-sizing: border-box;
}

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

#lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px 20px;
  color: white;
  text-align: center;

  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 0.7;
}


/* Ganze Seite */
.video-page {
  min-height: 100vh;
  padding: 40px 20px; /* Abstand zum Rand */
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  text-align: center;
  box-sizing: border-box;
}

/* Video */
.video-page video {
  max-width: 100%;
  max-height: 70vh; /* verhindert Abschneiden */
  
  width: auto;
  height: auto;
  
  object-fit: contain;
  
  margin-top: 20px;
}