.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 100px;
  resize: vertical;
}
/* Base and Variables */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --bg-color-light: #f8f9fa;
  --text-color: #333;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Arial, sans-serif;
  color: var(--text-color);
  background: var(--bg-color-light);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary-color);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.nav-links a {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 2rem;
  /* Hintergrundbild für Hero-Section; bitte samples/hero-bg.jpg hinzufügen */
  background: url('../css/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  /* Text heller darstellen auf dunklem Hintergrund */
  color: rgba(255,255,255,0.85);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: #0056b3;
}
.btn-secondary {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: background 0.3s;
}
.btn-secondary:hover {
  background: #545b62;
}
.btn-tertiary {
  background: transparent;
  color: var(--secondary-color);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .overlay {
  opacity: 1;
}

/* Product Detail */
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.product-image {
  flex: 1 1 400px;
}
.product-image img {
  width: 100%;
  border-radius: 4px;
}
.product-info {
  flex: 1 1 300px;
}
.product-info h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.product-info .price {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.product-info label {
  display: block;
  margin-bottom: 0.5rem;
}
.product-info input[type="number"] {
  width: 60px;
  padding: 0.25rem;
  margin-right: 1rem;
}

/* Cart */
.cart {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.cart-table th,
.cart-table td {
  border-bottom: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}
.cart-thumb {
  width: 80px;
  border-radius: 4px;
}
.inline-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-summary {
  text-align: right;
}

/* Categories Navigation */
.categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  background: #fff;
}
.categories a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.categories a:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.categories a.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Checkout & Confirmation */
.checkout,
.confirmation {
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.checkout h2,
.confirmation h2 {
  margin-bottom: 1rem;
  text-align: center;
}
.errors {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}
.form-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #fff;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .product-detail {
    flex-direction: column;
  }
  .nav-links {
    display: none;
  }
}