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

html {
  scroll-behavior: smooth;
}

body { font-family: system-ui, sans-serif; overflow-x: hidden; }

/* Responsive Horizontal Section Heights */
:root {
  --horizontal-section-height: 100dvh;  /* Desktop: volle Höhe */
}

.section {
    height: 100dvh; /* statt 100vh: stabiler auf Mobile */
    display: grid;
    place-items: center;
    font-size: 2rem;
    background: #ffffff;
    overflow: hidden;
}

#content {
  width: 60%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1.6;
  text-align: center;
}

.logo-wrapper {
  width: 80vw;
  aspect-ratio: 1 / 1;       /* macht das Div quadratisch */
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;          /* optional: Hintergrund */
  overflow: hidden;           /* schneidet Überstände ab */
}

.logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* SVG bleibt vollständig sichtbar */
}

/* Der Wrapper erzeugt die vertikale Scrollstrecke */
.pin-wrap {
    position: relative;
    height: var(--scrollLen, 100dvh); /* wird per JS gesetzt */
}

/* Dieser Bereich bleibt im Viewport „kleben“ */
.pin {
    position: sticky;
    top: calc((100dvh - var(--horizontal-section-height)) / 2);
    height: var(--horizontal-section-height);
    overflow: hidden;             /* kein echtes horizontales Scrollen */
    background: #f5f5f5;          /* verhindert „weisse Lücke" */
}

/* Der eigentliche horizontale Content */
.hori {
    display: flex;
    height: 100%;
    will-change: transform;
    transform: translateX(0);     /* wird per JS animiert */
}

.panel {
    flex: 0 0 calc(var(--horizontal-section-height) * 1.6);  /* proportionale Breite */
    height: var(--horizontal-section-height);
    display: grid;
    place-items: flex-start;
    font-size: 3rem;
    background: url(../assets/images/bg-kids-01.jpg) center/cover no-repeat;
}

#wall-of-fortune {
  background: url(../assets/images/example-wof.webp) center/cover no-repeat;
}

#snake {
  background: url(../assets/images/example-snake.webp) center/cover no-repeat;
}

#pong {
  background: url(../assets/images/example-pong.webp) center/cover no-repeat;
}

#kontakt-circle {
  --circle-size: min(100vw, 70vh);
  --circle-color: #019EE4;
}

#kontakt-content {
  padding: 0 70px;
}

#buttonwall-description {
  --circle-size: min(80vw, 80vh);
  padding: 8rem; 
  font-size: 0.3rem;
}

/* Tablet: reduziert */
@media (max-width: 768px) {
  :root {
    --horizontal-section-height: 70dvh;  
  }
  #content {
    width: 100%;
    max-width: 100%;
    padding: 0 4rem;
    font-size: 1.4rem;
    line-height: 1.5;
  }
  
  #kontakt-circle, #buttonwall-description {
    --circle-size: min(100vw, 100vh) !important;
  }

  #buttonwall-description {
    padding: 0; 
    font-size: 0.3rem;
  }

  #kontakt-content {
    padding: 0 40px;
    font-size: 1.4rem;
  }
  .logo-wrapper {
    width: 90vw;
  }
}

/* Mobile: noch kleiner */
@media (max-width: 480px) {
  :root {
    --horizontal-section-height: 60dvh;  
  }
  #kontakt-content {
    padding: 0 40px;
    font-size: 1.1rem;
  }
  .logo-wrapper {
    width: 100vw;
  }
}