/* === Grundstruktur === */
.bestellen {
  padding: 50px 0;
  max-width: 60vw;
  margin: 0 auto;
}

@media (max-width: 900px) {
    .bestellen {
      max-width: 65vw;
    }
  }

  @media (max-width: 800px) {
    .bestellen {
      max-width: 70vw;
      padding: 80px 0 0px 0;
    }
  }

  @media (max-width: 580px) {
    .bestellen {
      padding: 120px 0 0px 0;
    }
  }

  @media (max-width: 500px) {
    .bestellen {
      max-width: 85vw;
    }
  }

/* === Shirt preview === */
.bestellen-grid {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}

.shirt-right-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 50%;
}

@media (max-width: 650px) {
  .shirt-right-preview{
    max-width: 80%;
  }
}

.shirt-right-preview img {
  width: 100%;
}

.preis-info-block {
  text-align: center;
}

.preis-info-block h3{
  margin: 0;
}

.preis-info-block {
  .p-small {
    margin-bottom: 10px;
  }
}


.preis {
  font-size: 32px;
  font-weight: 700;
  color: #83C0E5;
}

@media (max-width: 900px) {
  .preis-info-block h3 {
    font-size: 24px;
    padding-bottom: 0;
  }
}

#step-1 {
  flex: 1;
  min-width: 0; /* Verhindert Überlauf */
}
@media (max-width: 650px) {
  .bestellen-grid {
    flex-direction: column;
  }

  .bestellen-grid #step-1,
  .bestellen-grid #step-2 {
    width: 100%;
  }
}

@media (max-width: 650px) {
  .bestellen-grid {
    flex-direction: column;
  }

  .shirt-right-preview {
    margin-top: 30px;
  }
}

/* Standardmäßig nur große Vorschau sichtbar */
.shirt-preview-inline {
  display: none;
  margin-top: 20px;
}

#shirt-preview-inline {
  width: 100%;
  max-width: 280px;
}

/* Für kleinere Geräte (<650px) große Vorschau verstecken, Inline-Vorschau anzeigen */
@media (max-width: 650px) {
  .shirt-right-preview {
    display: none;
  }

  .shirt-preview-inline {
    display: block;
    text-align: center;
    padding-bottom: 28px;
  }
}


/* === Formularfelder === */
.bestellformular label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .bestellformular label {
    font-size: 13px;
  }
}

.bestellformular input,
.bestellformular select {
  width: 100%;
  padding: 8px 16px;
  font-size: 18px;
  border: 2px solid #ccc;
  border-radius: 40px;
  background: transparent;
  color: #fff;
  margin-bottom: 20px;
}

@media (max-width: 1200px) {
  .bestellformular input {
    font-size: 16px;
  }
}
@media (max-width: 900px) {
  .bestellformular input {
    font-size: 13px;
    padding: 8px 12px;
    border: 1px solid #ccc;
  }

  .bestellformular select {
    border: 1px solid #ccc;
  }
}


.bestellformular input::placeholder {
  color: #888;
  font-family: Rubik, sans-serif;
  font-weight: 300;
}

.bestellformular input[type="file"] {
  background: #2b2b2b;
  color: #fff;
  border: 2px dashed #ccc;
  text-align: center;
  padding: 20px;
  border-radius: 20px;
}

.size-placeholder {
  color: #888;
  font-family: Rubik, sans-serif;
  font-weight: 300;
}

.bestellformular select {
padding-right: 4px;
}

.input-error {
  border: 2px solid #FF91C0 !important;
}

.error-message {
  font-size: 13px;
  color: #FF91C0;
  margin-top: -16px;
  margin-bottom: 20px;
}

input[type="file"].input-error {
  border: 2px solid #FF91C0 !important;
}

/* Fehlertext unter dem Upload-Feld */
.upload-error-message {
  font-size: 13px;
  color: #FF91C0;
  margin-top: 8px;
  margin-bottom: 10px;
}


/* === Farbauswahl === */
.farbwahl {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.farb-button {
  width: 24px;
  aspect-ratio: 1 / 1; /* Macht es immer quadratisch */  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
  background-color: transparent; /* wird von JS überschrieben */
}

.farb-button:hover {
  transform: scale(1.1);
}

.farb-button.selected {
  outline: 2px solid #fff;
}


/* === Vorschau Shirt === */
.shirt-vorschau {
  text-align: center;
  margin: 30px 0;
}

.shirt-vorschau img {
  max-width: 280px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* === Info-Bereich für Bildupload === */
.upload-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.upload-area {
  border: 2px solid #fff;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: 0.3s ease;
  align-items: center;
}

.upload-area.dragover {
  border-color: #83C0E5;
  background-color: rgba(131, 192, 229, 0.1);
}

@media (max-width: 900px) {
  .upload-area {
    padding: 20px 10px;
    border: 1px solid #fff;
  }
}

.upload-icon {
  width: 40px;
  margin-bottom: 16px;
}

.upload-area p {
  color: #fff;
  margin: 4px 0;
  text-align: center;
}

.upload-label-link {
  color: #83C0E5;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 300;
}

.upload-hint {
  font-size: 13px;
  color: #aaa;
  margin-top: 10px;
}

.upload-list {
  list-style: none;
  margin-top: 20px;
  padding: 0;
}

.upload-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #fff;
}

.upload-list img {
  width: 16px;
  height: 16px;
}

.upload-list button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  margin-left: auto;
  line-height: 1;
}

.hidden-file {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
}


#info-button {
  width: 20px;
  height: 20px;
  font-size: 13px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#info-button:hover {
  border-color: #83C0E5;
  color: #83C0E5;
}

.bild-info {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  margin-top: 0;
}

.bild-info.open {
  max-height: 1000px; /* genug für deinen Content */
  opacity: 1;
  margin-top: 40px;
}

/* === Preisblock === */
.preis {
  font-size: 32px;
  font-weight: 700;
  color: #83C0E5;
  margin: 20px 0 8px;
}

.preis-info {
  font-size: 16px;
  color: #ccc;
  line-height: 1.4;
}


/* === Responsive Layout === */
@media (min-width: 768px) {

  .shirt-vorschau {
    grid-column: span 2;
  }

  #step-2 {
    grid-column: span 2;
  }

  .cta-button {
    grid-column: span 2;
    justify-self: start;
  }
}


.step-2-inputs {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}

.step-2-inputs-left {
  flex: 1;
}
.step-2-inputs-right {
  flex: 1;
}

@media (max-width: 650px) {
  .step-2-inputs {
    flex-direction: column;
    gap: 0
  }
  .step-2-inputs-left,
  .step-2-inputs-right {
    width: 100%;
  }
}