@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;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Hauptcontainer */
.details-container {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(156, 87, 22, 0.25);
  max-width: 800px;
  width: 100%;
  margin: 4rem auto;
  text-align: left;
}

/* Titel */
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 */
.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;
}

/* Produktbild */
.product-image {
  display: block;
  margin: 0 0 1.5rem 0;
  width: 200px;          
  height: auto;          
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(156, 87, 22, 0.25);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.product-image:hover {
  transform: scale(1.03);
}

/* Beschreibung */
.product-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #444;
}

/* Preis */
.product-price {
  font-weight: bold;
  font-size: 1.8rem;
  color: #A0522D;
  margin-bottom: 2rem;
}

/* Buttons */
.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;
}

/* Formular */
.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 */
.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;
}

/* Mobile responsive */
@media (max-width: 576px) {
  body {
    padding: 1rem; /* Abstand zum Bildschirmrand */
  }

  .details-container {
    padding: 1.5rem;
    margin: 1rem auto;     /* weniger Abstand oben/unten */
    border-radius: 0.8rem; /* etwas kompakter */
  }

  h2.product-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .product-image {
    width: 140px;        
    height: auto;        
    margin-bottom: 1rem;
  }

  .product-description,
  .product-price,
  .order-form {
    font-size: 1rem;
  }

  .styled-button,
  .order-button {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1rem;
    margin-top: 0.8rem;
  }
}
