/* Hero-Section für Preise-Seite */
/* Hero background image is now defined inline in Preise.html */
.hero-section {
  position: relative;
  height: var(--hero-height);
  /* Use consistent variable */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-upload-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.upload-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#uploadModel {
  padding: 0.8rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

#uploadModel::file-selector-button {
  background: var(--c1);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-right: 1rem;
  cursor: pointer;
}

#uploadButton {
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#uploadButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.help-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Help Overlay */
.help-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.help-overlay.closed {
  opacity: 0;
  visibility: hidden;
}

.help-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #eee;
  background: var(--c1);
  color: white;
  border-radius: 12px 12px 0 0;
}

.help-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.help-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.help-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.help-body {
  padding: 2rem;
}

.help-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.help-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.help-text strong {
  display: block;
  color: var(--c2);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.help-text p {
  margin: 0;
  line-height: 1.5;
  color: #666;
}

.help-ui-guide {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.help-ui-guide h4 {
  color: var(--c2);
  margin-bottom: 1rem;
}

.help-ui-guide ul {
  list-style: none;
  padding: 0;
}

.help-ui-guide li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.help-ui-guide li:last-child {
  border-bottom: none;
}

.help-ui-guide strong {
  color: var(--c1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-upload-section {
    flex-direction: column;
  }

  .upload-controls {
    flex-direction: column;
    width: 100%;
  }

  #uploadModel,
  #uploadButton {
    width: 100%;
  }

  .help-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }

  .help-body {
    padding: 1rem;
  }

  .help-step {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Upload section above viewer - entfernt da jetzt im Hero */

/* Viewer container */
#viewer {
  position: relative;
  width: 80vw;
  height: 80vh;
  border: 1px solid #ccc;
  margin: 1rem auto;
}

/* Overlay boxes (info, price calc, calc params) */
.overlayBox {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem;
  border-radius: 5px;
  font-size: 0.8rem;
}

#flowbox {
  z-index: 20;
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
}

#last {
  padding: 1rem;
  text-align: center;
}

/* Toggles: top center inside viewer */
#togglesSection {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

#togglesSection h3 {
  margin: 0 0 0.5rem;
  color: var(--c1);
}

/* Camera controls: left sidemenu, vertically centered */
#cameraControls {
  left: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem;
  border-radius: 4px;
}

#cameraControls h3 {
  margin-top: 0;
  color: var(--c1);
}

/* Variable inputs: bottom right controls box */
#varControls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  z-index: 20;
}

/* Close button inside varControls */
#closeVarControls {
  position: absolute;
  top: 5px;
  right: 5px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Wrench icon (to toggle varControls) */
#toggleControlsIcon {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  padding: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 20;
  display: none;
}

/* Form element styling within controls */
.control-section label {
  display: block;
  margin-bottom: 0.5rem;
}

.control-section input[type="range"],
.control-section select {
  width: 100%;
  margin-top: 0.3rem;
}

.control-section button {
  margin: 0.3rem 0.3rem 0.3rem 0;
}

#toolSelection {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.2rem;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  justify-content: space-around;
}

#toolSelection.button {
  padding-left: 1rem;
  padding-right: 1rem;
}