@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Poppins&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f9dfcd 0%, #FFF5EE 100%);
  color: #212121;
  margin: 0;
  min-height: 100vh;
}

.details-container {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 24px  rgba(156, 87, 22, 0.25);
  max-width: 800px;
  margin: 4rem auto;
  text-align: left; 
}

h2.product-title {
  font-family:Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #A0522D;
  text-align: left; 
}

/* Zurück-Button linksbündig */
.back-link {
  display: inline-block;
  background-color: #A0522D;
  color: white;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 1rem;
}

.back-link:hover {
  transform: scale(1.05);
  background-color: #bb7533;
}

.product-image {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 20px  rgba(156, 87, 22, 0.25);
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: transform 0.25s ease;
  width: auto;
}

.product-image:hover {
  transform: scale(1.03);
}

.product-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #444;
}

.product-price {
  font-weight: bold;
  font-size: 1.8rem;
  color: #A0522D;
  margin-bottom: 2rem;
}

/* Buttons im Stil der Index-Seite */
.styled-button, .order-button {
  background-color: #A0522D;
  color: white;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 1rem;
  text-decoration: none;
  margin-top: 1rem;
}

.styled-button:hover, .order-button:hover {
  transform: scale(1.05);
  background-color: #bb7533;
}

.order-form {
  text-align: left;
  margin-top: 2rem;
}

.order-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.order-input, .order-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.5px solid #eee;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
}

.order-input:focus, .order-textarea:focus {
  border-color: #eee;
  outline: none;
}

/* Modal-Stil */
.image-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(156, 87, 22, 0.25);
  border: 5px solid #eee;
}

@media (max-width: 576px) {
  .details-container {
    padding: 1.5rem;
  }

  h2.product-title {
    font-size: 1.8rem;
  }

  .product-image {
    max-height: 250px;
  }

  .styled-button, .order-button {
    width: 100%;
  }
}
