/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
  background: #121212;
  color: #e0e0e0;
  overflow-x: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

/* Button Gruppe */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  z-index: 2;
}

.button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 250px;
}

.main-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f2937;
  color: #e0e0e0;
  padding: 18px 20px;
  border-radius: 8px;
  transition: background 0.3s ease;
  cursor: pointer;
  user-select: none;
  width: 100%;
  gap: 12px; /* Abstand zwischen Text und Icon */
  position: relative;
  font-weight: 600;
  font-size: 1rem;
}

.main-button:hover {
  background: #374151;
}


.open-link-button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
  transition: background 0.3s ease;
  flex-shrink: 0;
  font-size: 1rem;
}

.open-link-button:hover {
  background: #1e40af;
}

/* How to use Button */
.howto-button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #4b5563;
  color: #e0e0e0;
  border: none;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  width: 100%;
  z-index: 3;
  cursor: pointer; /* Klickbarkeit sichtbar */
}

.howto-button:hover {
  background: #6b7280; /* sanfter Hover-Ton */
}

/* Sichtbarkeit bei Hover */
.button-wrapper:hover .howto-button,
.button-wrapper.show-howto .howto-button {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* How to use Textfeld unter Buttons */
.howto-text {
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.3s ease;
  width: 100%;
  max-width: 1200px;
  opacity: 1;
  margin-top: 5px; /* Abstand reduziert */
}

.howto-text.hidden {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.howto-content {
  background: #1f2937;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  max-height: 300px;
  overflow-y: auto;
}

/* Embed Container */
.embed-container {
  margin-top: 40px;
  width: 90%;
  max-width: 1400px;
  height: 70vh;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  transition: opacity 0.5s ease, max-height 0.5s ease;
  position: relative; /* wichtig für howto-embed Positionierung */
  z-index: 1;
  background: #1f2937;
  display: flex;
  flex-direction: column;
}

.embed-container.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  flex: 1;
}

/* How to use in Embed */
.howto-embed {
  background: transparent;
  padding: 15px;
  z-index: 999;
  position: absolute; /* schwebend innerhalb embed-container */
  top: 0;
  left: 0;
  width: 100%;
}

.howto-embed.hidden {
  display: none;
}

/* Scrollbar Styling */
.howto-content::-webkit-scrollbar {
  width: 8px;
}
.howto-content::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}
.howto-content::-webkit-scrollbar-track {
  background: #1f2937;
}
