/* framer.css */

/* Grundlegende Resets für Body und HTML */
html, body {
  margin: 0;
  padding: 0;
  background: white;
  height: 100%;
  font-family: sans-serif;
  overflow: hidden;
  scrollbar-width: none;
}

body::-webkit-scrollbar,
.frame::-webkit-scrollbar,
.scroll-container::-webkit-scrollbar {
  display: none;
}

/* Nur wenn scroll aktiviert ist, soll die .frame scrollen */
body.allow-scroll .frame {
  overflow-y: scroll;
}

.scroll-container {
  flex: 1;
  overflow-y: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
body.allow-scroll .scroll-container { overflow-y: scroll; }

.frame-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 50px 0;   /* Abstand oben/unten */
  background: white;
  overflow: hidden;
  box-sizing: border-box;
}
.frame {
  position: relative;
  height: 100%;                /* Immer so hoch wie der Viewport */
  aspect-ratio: 9/16;           /* Breite wird automatisch berechnet */
  border-radius: 24px;
  background: white;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 100vw;             /* Falls Fenster schmaler als Frame wird */
  max-height: 100%;
  width: auto;
}

/* Video Section, Video etc. bleibt im HTML/CSS der jeweiligen Seite */

@media (max-width: 768px) {
  .frame-wrapper,
  .frame {
    width: 100vw;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  .frame-wrapper{
    padding: 0;
  }
}
