/* Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", "Roboto", sans-serif;
  background: #f2f2f7;
  color: #1c1c1e;
  line-height: 1.5;
}
header.header {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
header.header .logo {
  height: 40px;
  margin-right: 15px;
}
header h1 {
  font-size: 1.5rem;
  font-weight: 600;
}
.back-link {
  margin-left: auto;
  color: #007aff;
  text-decoration: none;
  font-weight: 500;
}
.back-link:hover {
  text-decoration: underline;
}

/* Grid Produktliste */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  padding: 15px;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.product-card h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.product-card a {
  text-decoration: none;
  color: #007aff;
  font-weight: 500;
}

/* Produktdetail */
.product-detail {
  max-width: 600px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.product-image {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 15px;
}
.product-info table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}
.product-info th,
.product-info td {
  padding: 8px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  font-size: 0.95rem;
}

/* Button */
.btn {
  width: 100%;
  padding: 12px;
  background: #007aff;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 15px;
}
.btn:hover {
  background: #005bb5;
}

/* PDF Container */
#pdf-container {
  display: none;
  margin-top: 15px;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  color: #6e6e73;
}

/* Media Queries für Mobile */
@media (min-width: 500px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .product-detail {
    display: flex;
    flex-direction: column;
  }
}
