@import url("https://fonts.googleapis.com/css?family=IBM%20Plex%20Sans:500|IBM%20Plex%20Sans:300");

:root {
  --m: 4rem;
  --logo-scale: 1; /* Skalierungsfaktor für das Logo */
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    overflow-x: hidden;
    color: white;
    color: #d5d5d5;
    font-size: calc(0.3 * var(--m));
    font-family: "IBM Plex Sans";
    flex-direction: column;
    font-weight: 300;
  }
  
  .logo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
    max-height: 100%;
  }
  
  footer {
    margin-top: 120vh;
    z-index: 2000; /* Footer bleibt über dem Logo und dem Backdrop */
    width: 100%;
    height: 60vh;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 5rem 2vw;
    position: relative;
    color: #ffffff; /* Textfarbe weiß */
  }

  footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      rgba(0, 0, 0, 0) 5%,
      rgba(0, 0, 0, 0.3) 20%,
      rgba(0, 0, 0, 0.6) 30%,
      rgba(0, 0, 0, 0.8) 40%,
      rgba(0, 0, 0, 1) 50%,
      rgb(0, 0, 0)
    );
    pointer-events: none;
    z-index: 1000;
  }

  .col {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(0.3 * var(--m)) calc(0.8 * var(--m));
    width: 28%;
    z-index: 3000;
  }
  
  .col2,
  .col3 {
    background: rgba(255, 255, 255, 0.1);
    border-radius: calc(0.5 * var(--m));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
  }

  .social {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
  }

  a {
    text-decoration: none;
    color: inherit;
  }
  
  .href {
    text-decoration: none;
    z-index: 4000;
  }
  
  .href:hover {
    text-decoration: underline;
  }
  
  .icon {
    width: calc(0.6 * var(--m));
    height: calc(0.6 * var(--m));
    fill: white;
  }
  
  .link {
    width: calc(1 * var(--m));
    height: calc(1 * var(--m));
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: calc(0.1 * var(--m));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000;
  }
  
  @media screen and (max-width: 1000px) {
    :root {
      --m: 3rem;
    }
  }
  
  @media screen and (max-width: 700px) {
    footer {
      flex-direction: column;
      padding: 5rem 20vw;
    }
    .col {
      width: 100%;
    }
  }
  
  .headline {
    text-decoration: underline;
  }
  
  #page-error {
    padding-top: 20px;
  }
  
  .s_logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
  }
  
  .gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    padding: 0;  /* Remove any padding or margins that might shift the gallery */
    box-sizing: border-box;
  }
  
  .gallery-wrapper {
    display: flex;
    align-items: center;
    transition: transform 0.5s ease;
    height: 100%;
    will-change: transform;
  }
  
  .gallery-item {
    flex: 0 0 80vw; /* Adjust to 80vw so that adjacent items are partially visible */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    transition: transform 0.5s ease;
    margin: 0 10vw; /* Adjust margin to add space between items */
    box-sizing: border-box;
  }
  
  .gallery-item img {
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    transform: scale(0.6); /* Start with smaller scale for all items */
    user-select: none;
  }
  
  .gallery-item.active img {
    transform: scale(1); /* Scale up the active item */
  }
  
  .gallery-name, .buy-button {
    margin-top: 20px;
    font-size: 20px;
    text-align: center;
    color: white;
  }
  
  @media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 90vw; /* Use more of the viewport width on smaller screens */
        margin: 0 5vw; /* Adjust margins to center the items better */
    }
  }
  
  .top-buttons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    position: absolute;
    top: 0;
    z-index: 10;
  }