.spin {
  animation: spin 2s linear definite;
}
@keyframes spin {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}
.spin-on-hover:hover {
  animation: spin 0.5s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
    body {
      margin: 0;
      font-family: Arial, sans-serif;
      color: #222;
      background-color: black;
    }
    .background-video {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
      filter: brightness(0.5);
    }
    header {
      background-color: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 1rem;
      position: sticky;
      top: 0;
      z-index: 1000;
    }
    .header-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
    }
    .logo {
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .logo img {
      height: 100px;
    }
    nav a {
      margin: 0 1rem;
      color:  #ff6300;
      text-decoration: none;
    }
    section {
		position: relative;
      padding: 2rem;
      max-width: 800px;
      margin: 4rem auto;
      scroll-margin-top: 135px;
      background-color: rgba(255, 255, 255, 0.85);
      border-radius: 10px;
    }
    a {
	  color:  #ff6300;
	  text-decoration: none;
	  
	  transition: color 0.3s ease, text-shadow 0.3s ease;
	}
	
	a:hover, a:focus {
	  color: #ff944d;
	  text-shadow: 0 0 5px  #ff6300;
	}
    h2 {
      border-bottom: 2px solid  #ff6300;
      padding-bottom: 0.5rem;
    }
    .gallery-container {
      position: relative;
      width: 100%;
      height: 400px;
      overflow: hidden;
    }
    .gallery-container img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      position: absolute;
      opacity: 0;
      transition: opacity 1s ease-in-out;
    }
    .gallery-container img.active {
      opacity: 1;
    }
    .gallery-buttons {
      text-align: center;
      margin-top: 1rem;
    }
    .gallery-buttons button {
      background-color:  #ff6300;
      color: white;
      border: none;
      padding: 0.5rem 1rem;
      margin: 0 0.5rem;
      cursor: pointer;
    }
    footer {
      background-color: rgba(240, 240, 240, 0.9);
      padding: 1rem;
      text-align: center;
      font-size: 0.9rem;
    }
    .social-links a {
      margin: 0 0.5rem;
      color: #555;
      text-decoration: none;
    }
    .social-links img {
      width: 60px;
      height: 45%;
      vertical-align: middle;
    }
    form input, form textarea {
      width: 100%;
      padding: 0.5rem;
      margin: 0.5rem 0;
      border: 1px solid #ccc;
    }
    form button {
      background-color:  #ff6300;
      color: white;
      border: none;
      padding: 0.5rem 1rem;
      cursor: pointer;
    }
    .portrait {
      width: 200px;
      height: 200px;
      object-fit: cover;
      object-position: top;
      border-radius: 50%;
    }
    .about-container {
      display: flex;
      align-items: center;
      gap: 2rem;
      flex-wrap: wrap;
    }
    .about-container p {
      flex: 1;
      min-width: 200px;
    }
.menu-toggle {
  background: none;
  border: none;
  color: #ff6300;
  font-size: 2rem;
  cursor: pointer;
  display: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  margin: 0.5rem 1rem;
}

  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    flex-direction: column;
  }
  .lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 3px solid #ff6300;
    border-radius: 8px;
  }
  .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #ff6300;
    text-decoration: none;
    cursor: pointer;
  }
  .lightbox-arrow {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: #ff6300;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    user-select: none;
  }
  .lightbox-arrow.left {
    left: 20px;
    transform: translateY(-50%);
  }
  .lightbox-arrow.right {
    right: 20px;
    transform: translateY(-50%);
  }

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem 0;
  }

  nav.show {
    display: flex;
  }

  nav a {
    margin: 1rem 0;
    text-align: center;
  }
}    

  /* Simple, responsive Layout: Video + Chat nebeneinander; auf Mobile untereinander */
  .twitch-grid {
    display: grid;
    gap: 16px;
  }
  @media (min-width: 1024px) {
    .twitch-grid {
      grid-template-columns: 2fr 1fr; /* Video breiter als Chat */
      align-items: start;
    }
  }
  .twitch-video, .twitch-chat {
    width: 100%;
    height: 540px; /* anpassen nach Wunsch */
  }
  /* Optional: Button um Chat ein/auszublenden (mobile freundlich) */
  .twitch-toolbar {
    display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px;
  }