
    /* Reset */
    * { box-sizing: border-box; margin:0; padding:0; }

    @font-face {
  font-family: 'a700';
  src:  url('data/700.woff2') format('woff2'),
        url('data/700.woff') format('woff');
}

    /* Make body NOT scrollable — single scroller is .scroll-container */
    html, body {
      height: 100%;
      overflow: hidden;
      -webkit-overflow-scrolling: touch;
      background: #000;
      font-family: a700, "Helvetica", Arial, sans-serif;
      overscroll-behavior: none;
      overscroll-behavior-y: none;
      position: fixed;
      width: 100%;
    }
    
    html {
      position: relative;
    }

    /* Responsive typography - mobile a bit bigger, desktop fullscreen a bit smaller */
    p {
      font-size: clamp(0.8rem, 1.9vw, 2.1rem);
      line-height: clamp(0.9rem, 2vw, 2.15rem);

    }

    /* The single scrolling container */
    .scroll-container {
      height: 100dvh;
      width: 100%;
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
      overscroll-behavior: none;
      overscroll-behavior-y: contain;
      touch-action: pan-y;
      -webkit-touch-callout: none;
      background: #000;
    }

    /* Sections */
    section {
      height: 100dvh;
      width: 100%;
      position: relative;
    }

    /* TOP — p5 canvas container */
    #top-section {
      position: sticky; /* remains visually pinned while scrolling inside scroll-container */
      top: 0;
      height: 100dvh;
      width: 100%;
      overflow: hidden;
      z-index: 2;
      /* IMPORTANT: top is fixed, bottom will move upward when scaling.
         transform-origin set in-line below and in JS too for clarity */
      transform-origin: top center;
      will-change: transform;
      background: #000;
    }

    /* p5 canvas wrapper */
    #p5-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    /* CONTENT */
    #content-section {
      background: #000;
      color: #fff;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: flex-start;
      padding: 3dvh 2vw calc(env(safe-area-inset-bottom) + 1dvh);
      scroll-snap-stop: always;              /* strongly snap here */
      -webkit-scroll-snap-stop: always;
      overscroll-behavior: none;
      overscroll-behavior-y: none;
      touch-action: pan-y;
      min-height: 100dvh;
    }

    /* small layout pieces */
    .header { height: 6vh; display:flex; align-items:center; justify-content:center; }
    .logo { height: 4vh; cursor: pointer; }
    .about-us {
      padding: 3vh 0;
      height: 88dvh;
      overscroll-behavior: none;
      overscroll-behavior-y: none;
    }
    
      .about-us-text {
        flex: 1;
        margin-bottom: 2vh;
      }

.timeline-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 clamp(0.5rem, 1.5vw, 1rem);
}

.timeline-item {
  display: contents;
  position: relative;
}


.timeline-year {
  font-size: clamp(0.8rem, 1.9vw, 2.1rem);
      line-height: clamp(0.9rem, 2vw, 2.15rem);
      font-variant-numeric: proportional-nums;
  font-kerning: normal;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
  align-self: start;
}

.timeline-text {
  color: #fff;
  align-self: start;
}
      
    p { color:#fff; }

    /* Optional: visualize top-section during testing */
    /* #top-section { background: linear-gradient(180deg,#2b2 0%, #000 100%); } */

    /* Content footer */
    .content-footer {
      height: 4dvh;
      display: flex;
      align-items: center;
      justify-content: space-between;
      text-decoration: none;
      list-style: none;
      flex: 0 0 auto;
    }
    
    /* Hide footer items on mobile until properly initialized */
    @media screen and (max-width: 1024px) {
      .content-footer .footer-item {
        opacity: 0;
      }
    }

    .content-footer a {
      text-decoration: none;
      color: white;
    }

    /* Footer text stretched vertically */
    .footer-item {
      font-size: 1rem;
      display: inline-block;
      transform: scaleX(0.5);
      transform-origin: left;
      color: white;
    }

    .overlay {
      position: fixed;
      inset: 5vw;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      z-index: 10000;
    }

    /* Overlay image containers */
    .overlay-image,
    .overlay-video {
      position: absolute;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
    }

.image-inner {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;          /* verhindert Stretching */
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

.image-inner img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85dvh;
  object-fit: contain;
}

    /* Unified photo credit style */
    .photo-credit {
      display: none;
      position: absolute;
      right: 6px;
      bottom: 6px;
      font-size: clamp(0.5rem, 1vw, 0.8rem);
      color: rgba(255, 255, 255, 0.8);
      background: rgba(0, 0, 0, 0.5);
      padding: 3px 6px;
      border-radius: 3px;
      pointer-events: none;
      z-index: 10;
      white-space: nowrap;
    }


    /* Image and video wrappers for photo credit positioning */
    .image-wrapper,
    .video-wrapper {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      max-width: 100%;
      max-height: 100%;
    }

    /* Photo credit is styled globally via .photo-credit */

    .insta-post {
      display: none;
      flex-direction: column;
      padding: 20px;
    }

    .opening-times-container {
      height: 100%;
      width: 100%;
      display: none;
      margin-left: auto;
      margin-right: auto;
      flex-direction: column;
      padding: 20px;
    }

    .opening-times {
      width: 100%;
    }

    .dots {
      height: 1em;
      overflow: hidden;
      word-wrap: break-all;
      color: #000000;
    }

    .dots:after {
      content: '....................................................................................................................................................................................................................................................................................................................';
    }
    .opening-times-title{
      flex: 1;
    }
    .opening-times-title img{
      width: 100%;       /* 👈 stretch to match div’s width */
      height: 100%;      /* 👈 stretch to match div’s height */
      padding-bottom: 10px;
    }

    .opening-times .row {
      display: flex;
      align-items: center;
      text-wrap: nowrap;
    }

    .opening-times .row p {
      text-wrap: nowrap;
      text-align: left;
      margin: 0;
      font-size: clamp(0.8rem, 2.2vw, 2.1rem);
      line-height: clamp(0.9rem, 2.3vw, 2.15rem);
      transform-origin: left;
      color: rgb(0, 0, 0);
    }
     .extra-info{
      color: rgb(0, 0, 0);
      font-size: clamp(0.5rem, 1vw, 1rem) ;
    }

    /* Desktop only hover effects */
    @media screen and (min-width: 840px) {
      .content-footer p:hover {
        transition: transform .2s;
        display: inline-block;
        transform: scale(1,1);
        transform-origin: left;
      }
    }

    
    /* Desktop footer behavior */
    @media screen and (min-width: 840px) {
      /* Hovering the anniversary text shows the anniversary overlay */
      #content-section:has(.anniversary-hover:hover) .overlay {
        opacity: 1;
        /* Keep non-interactive to avoid hover loss flicker */
        pointer-events: none;
      }

      #content-section:has(.anniversary-hover:hover) .overlay .anniversary-overlay {
        display: flex;
      }

      .content-footer:has(.adresse:hover) ~ .overlay {
        opacity: 1;
        pointer-events: all;
      }

      .content-footer:has(.adresse:hover) ~ .overlay .address-overlay {
        display: flex;
      }

      .content-footer:has(.tel:hover) ~ .overlay {
        opacity: 1;
        pointer-events: all;
      }

      .content-footer:has(.tel:hover) ~ .overlay .phone-overlay {
        display: flex;
      }

      .content-footer:has(.mail:hover) ~ .overlay {
        opacity: 1;
        pointer-events: all;
      }

      .content-footer:has(.mail:hover) ~ .overlay .email-overlay {
        display: flex;
      }

      .content-footer:has(.insta:hover) ~ .overlay {
        opacity: 1;
        pointer-events: all;
        inset: 10vh 10vw 10vh 10vw;
      }

      .content-footer:has(.insta:hover) ~ .overlay .instagram-overlay {
        display: flex;
      }

      .content-footer:has(.insta:hover) ~ .overlay .instagram-overlay #video-overlay {
        display: block;
      }

      .content-footer:has(.times:hover) ~ .overlay {
        opacity: 1;
        pointer-events: all;
        height: 62%;
        width: 60%;
        margin: auto;
        background: rgb(255, 255, 255);
      }

      .content-footer:has(.times:hover) ~ .overlay .opening-times-container {
        display: flex;
      }

      .content-footer:has(.times:hover) ~ .overlay .photo-credit {
        display: flex;
      }
    }

    /* Mobile - no hover effects */
    @media screen and (max-width: 1024px){
    .arrows {
      margin: 0 10px 0 10px;
      height: 13px;
      object-fit: contain;
    }
        /* Hovering the anniversary text shows its own overlay (CSS fallback if JS not available) */
        .timeline-item:has(.anniversary-hover:hover) .overlay {
          opacity: 0 !important;
          pointer-events: none !important;
        }
  
        .timeline-item:has(.anniversary-hover:hover) .overlay .anniversary-overlay {
          display: none !important;
        }

      .content-footer:has(.adresse:hover) ~ .overlay {
        opacity: 0 !important;
        pointer-events: none !important;
      }

      .content-footer:has(.adresse:hover) ~ .overlay .address-overlay {
        display: none !important;
      }

      .content-footer:has(.tel:hover) ~ .overlay {
        opacity: 0 !important;
        pointer-events: none !important;
      }

      .content-footer:has(.tel:hover) ~ .overlay .phone-overlay {
        display: none !important;
      }

      .content-footer:has(.mail:hover) ~ .overlay {
        opacity: 0 !important;
        pointer-events: none !important;
      }

      .content-footer:has(.mail:hover) ~ .overlay .email-overlay {
        display: none !important;
      }

      .content-footer:has(.insta:hover) ~ .overlay {
        opacity: 0 !important;
        pointer-events: none !important;
      }

      .content-footer:has(.insta:hover) ~ .overlay .instagram-overlay {
        display: none !important;
      }

      .content-footer:has(.insta:hover) ~ .overlay .instagram-overlay #video-overlay {
        display: none !important;
      }

      .content-footer:has(.times:hover) ~ .overlay {
        opacity: 0 !important;
        pointer-events: none !important;
      }
      
      /* Disable Instagram hover on mobile */
      .content-footer:has(.insta:hover) ~ .overlay {
        opacity: 0 !important;
        pointer-events: none !important;
      }
      
      .content-footer:has(.insta:hover) ~ .overlay .instagram-overlay {
        display: none !important;
      }
      
      .content-footer:has(.insta:hover) ~ .overlay .instagram-overlay #video-overlay {
        display: none !important;
      }

      .content-footer:has(.times:hover) ~ .overlay .opening-times-container {
        display: none !important;
      }
      
      /* Ensure mobile opening times work with .active class */
      .content-footer:has(.times.active) ~ .overlay {
        opacity: 1 !important;
        pointer-events: all !important;
        height: 50%;
        width: 90%;
        margin: auto;
        background: rgb(255, 255, 255);
      }

      .content-footer:has(.times.active) ~ .overlay .opening-times-container {
        display: flex !important;
      }

      .content-footer:has(.times.active) ~ .overlay .photo-credit {
        display: none !important;
      }
    }

    /* Opening hours overlay - works on both desktop and mobile */
    .content-footer:has(.times.active) ~ .overlay {
      opacity: 1 !important;
      pointer-events: all !important;
      height: 62%;
      width: 60%;
      margin: auto;
      background: rgb(255, 255, 255);
    }

    .content-footer:has(.times.active) ~ .overlay .opening-times-container {
      display: flex !important;
    }

    .content-footer:has(.times.active) ~ .overlay .photo-credit {
      display: none;
    }

    #video-overlay {
      display: none;
      width: 100%;
      height: 100%;
    }

    /* Mobile footer trigger */
    .mobile-footer-trigger {
      display: none;
    }

    /* Scroll slideshow styles */
    .scroll-slideshow {
      display: none;
    }
    
    /* Force hide slideshow on desktop */
    .scroll-slideshow.desktop-hidden {
      display: none !important;
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }

    /* iOS specific niceties */
    @media (max-width: 1024px) {
      /* Enable snap scroll on mobile only */


      #content-section {
        padding: 3vh 4vw 1vh;
      }
      .scroll-container {
        scroll-snap-type: y mandatory;
      }
      
      section {
        scroll-snap-align: start;
        -webkit-scroll-snap-align: start;
        scroll-snap-stop: always;
      }
      
      .about-us {
        height: calc(var(--dvh, 1dvh) * 90);
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      
      .about-us-text {
        font-size: clamp(0.75rem, 2.5vw, 2rem);
        line-height: clamp(0.75rem, 2.5vw, 2rem);
        flex: 1;
        margin-bottom: 2vh;
      }
      
     
      
      /* Mobile footer trigger */
      .mobile-footer-trigger {
        display: block;
        height: calc(var(--dvh, 1dvh) * 10);
        display: flex;
        align-items: center;
        justify-content: center;
        background: black;
        cursor: pointer;
        user-select: none;
        position: sticky;
        bottom: 0;
        z-index: 999;
        padding-bottom: env(safe-area-inset-bottom);
      }
      
      .mobile-footer-trigger .footer-item {
        font-size: 1rem;
        transform: scaleX(0.5);
        transform-origin: center;
        color: white;
        transition: transform 0.2s;
      }
      
      .mobile-footer-trigger .footer-item:active {
        transform: scale(1, 1);
      }
      
      /* Mobile footer overlay - drawer-style transition */
      .content-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        max-height: 70dvh;
        background: rgba(0, 0, 0, 1);
        z-index: 10000;
        transform: translateY(100%);
        pointer-events: none;
        transition: transform 0.3s ease-in-out;
        padding: 0vh 4vw 0vh 4vw;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto;
      }
      
      /* Show footer items when drawer is visible */
      .content-footer.visible .footer-item {
        opacity: 1;
      }
      
      .content-footer.visible {
        transform: translateY(0);
        pointer-events: all;
      }
      
      /* Remove CSS-generated header; we'll move the trigger inside as header */
      .content-footer::before { content: none; }
      
      /* Mobile footer items - pure links, no hover effects */
      .content-footer .footer-item {
        font-size: 1rem;
        text-align: center;
        transform: scaleX(0.5);
        transform-origin: center center;
        color: white;
        transition: transform 0.3s ease-in-out;
        text-decoration: none;
        display: inline-block;
        padding: 1vh 0;
        width: 100%;
        box-sizing: border-box;
        position: relative;
      }

      /* Trigger when used as header inside drawer */
      .content-footer .mobile-footer-trigger.header-in-overlay {
        position: sticky;
        top: 0;
        z-index: 1;
        width: 100%;
        background: #000;
        padding-top: 1.5vh;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .content-footer .mobile-footer-trigger.header-in-overlay .footer-item {
        transform: scaleX(0.5);
        transform-origin: center;
      }
      
      .content-footer .footer-item:active,
      .content-footer .footer-item.clicking {
        transform: scaleX(1);
        transform-origin: center center;
      }
      
      /* Completely disable hover on mobile */
      .content-footer .footer-item:hover {
        transform: scaleX(0.5) !important;
        transform-origin: center center !important;
      }
      
      /* Opening hours special behavior */
      .content-footer .times {
        cursor: pointer;
      }
      
      .content-footer .times:active {
        transform: scaleX(1);
        transform-origin: center center;
      }
      
      /* Mobile scaling for opening hours overlay */
      .content-footer:has(.times.active) ~ .overlay {
        height: 50%;
        width: 90%;
        margin: auto;
      }
      
      .opening-times-container {
        padding: 10px;
      }
      
      /* Scroll-based slideshow - si.html style */
      .scroll-slideshow {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        pointer-events: none;
        z-index: 9999;
        display: none;
        overflow: hidden;
        margin: auto;
      }

.image-inner {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;          /* verhindert Stretching */
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

.image-inner img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85dvh;
  object-fit: contain;
}

/* Photo credit is styled globally via .photo-credit */

      
      .scroll-slide {
        position: absolute;
        top: 50%;
        left: 150%;
        transform: translate(-50%, -50%);
        width: 100%;
        max-width: 90%;
        opacity: 0;
        transition: left 0.8s ease-in-out, opacity 0.8s ease-in-out;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .scroll-slide.active {
        left: 50%;
        opacity: 1;
      }
      
      .scroll-slide.exit-left {
        left: -50%;
        opacity: 0;
      }
      
      .scroll-slide.exit-right {
        left: 150%;
        opacity: 0;
      }
      
      .scroll-slide img,
      .scroll-slide video {
        width: 100%;
        height: auto;
        max-height: 60dvh;
        object-fit: contain;
        display: block;
        margin: 0 auto;
      }
      
      /* Lazy loading styles */
      .lazy-image,
      .lazy-video {
        background: #f0f0f0;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666;
        font-size: 14px;
      }
      
      .lazy-image.loaded,
      .lazy-video.loaded {
        background: none;
        min-height: auto;
      }
      
      .scroll-slide video {
        background: #000;
        cursor: pointer;
        pointer-events: auto;
      }
      
      /* Mobile video controls - only show when controls attribute is present */
      .scroll-slide video[controls]::-webkit-media-controls-panel {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(0, 0, 0, 0.7) !important;
      }
      
      .scroll-slide video[controls]::-webkit-media-controls-play-button,
      .scroll-slide video[controls]::-webkit-media-controls-volume-slider,
      .scroll-slide video[controls]::-webkit-media-controls-fullscreen-button,
      .scroll-slide video[controls]::-webkit-media-controls-timeline {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
      }
      
      /* Hide controls when not set */
      .scroll-slide video:not([controls])::-webkit-media-controls {
        display: none !important;
      }
      
      /* Ensure video is clickable when no controls */
      .scroll-slide video:not([controls]) {
        cursor: pointer;
      }

.image-inner {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;          /* verhindert Stretching */
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

.image-inner img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85dvh;
  object-fit: contain;
}

.image-inner .photo-credit {
  position: absolute;
  right: 6px;
  bottom: 6px;
  font-size: clamp(0.5rem, 1vw, 0.8rem);
  color: rgba(255, 255, 255, 0.2);
  padding: 3px 6px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

    }