body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f7f6f3;
  margin: 0;
  color: #222;
  
}
.shop-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(164,117,81,0.08);
  padding: 1.5rem 0 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.shop-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 2rem;
  flex-direction: row;
  justify-content: flex-start;
  gap: 1rem;
  padding-left: 0;
}
.shop-header h1 {
  font-size: 2rem;
  margin: 0;
  color: #a47551;
  text-align: left;
  flex: 1;
}
#produktsuche {
  flex: 1;
  max-width: 350px;
  padding: 0.7rem 1rem;
  border-radius: 2rem;
  border: 1px solid #c7a17a;
  font-size: 1rem;
  background: #f9f7f3;
}
.shop-main {
  display: flex;
  max-width: 1200px;
  margin: 2rem auto;
  gap: 2rem;
  padding: 0 2rem;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(164,117,81,0.08);
  padding: 1rem 2rem;
  margin-bottom: 2rem;
}
.filter-bar .filter-fields {
  display: flex;
  flex: 1 1 0;
  gap: 1rem;
}
.filter-bar .filter-fields > * {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  padding: 0.6rem 1rem;
  border-radius: 2rem;
  border: 1px solid #c7a17a;
  font-size: 1rem;
  background: #f9f7f3;
  box-sizing: border-box;
}

/* iOS Safari Dropdown-Fixes */
.filter-bar .filter-fields select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a47551' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 3rem;
  cursor: pointer;
}
.filter-bar > button {
  flex: 0 0 auto;
  height: 44px;
  margin-left: 1rem;
}
#filter-reset {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-left: 0.5rem;
}
#filter-reset:hover {
  background: #c7a17a;
}
#aktive-filter {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-chip {
  background: #a47551;
  color: #fff;
  border-radius: 2rem;
  padding: 0.3rem 1rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.97rem;
  cursor: pointer;
  gap: 0.5rem;
}
.filter-chip .chip-remove {
  font-weight: bold;
  margin-left: 0.3rem;
  cursor: pointer;
}
.shop-produkte {
  flex: 1;
  min-width: 0;
}
#produktgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.shop-produkt-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(164,117,81,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 1rem 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.shop-produkt-card:hover {
  box-shadow: 0 6px 24px rgba(164,117,81,0.13);
  transform: translateY(-4px) scale(1.02);
}
.shop-produkt-bild {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.shop-produkt-info {
  text-align: center;
}
.shop-produkt-name {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #a47551;
}
.shop-produkt-beschreibung {
  font-size: 0.97rem;
  color: #555;
  margin-bottom: 0.5rem;
}
.shop-produkt-preis {
  font-size: 1.1rem;
  color: #2e7d32;
  font-weight: bold;
}
.keine-treffer {
  grid-column: 1/-1;
  text-align: center;
  color: #a47551;
  font-size: 1.2rem;
  margin-top: 2rem;
}
@media (max-width: 700px) {
  .filter-toggle {
    display: block;
    width: 100%;
    background: #a47551;
    color: #fff;
    border: none;
    border-radius: 1rem;
    padding: 0.7rem 1rem;
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    cursor: pointer;
  }
  .filter-bar {
    display: none;
    transition: max-height 0.3s;
    padding: 0;
    margin-bottom: 0;
  }
  .filter-bar.open {
    display: flex;
    flex-direction: column;
    padding: 0.8rem 0.5rem;
    margin-bottom: 1rem;
    gap: 0.8rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(164,117,81,0.08);
  }
  .filter-bar .filter-fields {
    flex-direction: column;
    gap: 0.8rem;
  }
  .filter-bar .filter-fields > * {
    width: 100%;
    margin-bottom: 0;
    min-height: 44px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  /* Spezielle Regeln für Select-Elemente auf iOS */
  .filter-bar .filter-fields select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a47551' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    cursor: pointer;
  }
  .filter-bar > button,
  #filter-reset {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    padding: 0;
    margin-left: 0;
    margin-bottom: 0;
    align-self: center;
  }
}
@media (min-width: 701px) {
  .filter-toggle {
    display: none;
  }
}
@media (max-width: 600px) {
  .shop-header-inner {
    justify-content: space-between;
    padding: 0 0.5rem 1rem 0.5rem;
  }
  .shop-header h1 {
    flex: unset;
    font-size: 1.3rem;
  }
  .warenkorb-icon {
    font-size: 1.3em;
    display: inline-flex;
    align-items: center;
  }
  .warenkorb-badge {
    display: none !important;
  }
  .warenkorb-link span {
    background: none;
    color: inherit;
    border-radius: 0;
    padding: 0;
    font-size: inherit;
    margin-left: 0.2rem;
    display: inline-block;
  }
  .warenkorb-link::before {
    content: none !important;
  }
  .warenkorb-text {
    display: none;
  }
  /* Verbesserte Filter-Darstellung für sehr kleine Bildschirme */
  .filter-bar.open {
    padding: 1rem;
    margin: 0.5rem 0 1rem 0;
  }
  .filter-bar .filter-fields > * {
    font-size: 16px; /* Verhindert Zoom auf iOS */
    min-height: 48px; /* Touch-freundliche Mindestgröße */
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
  }
  .filter-bar .filter-fields select {
    padding-right: 3.5rem;
    background-size: 14px;
  }
}

/* Modal für Produkt-Details – Professionell überarbeitete Version */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
  animation: modal-fade-in 0.3s ease-out;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto;
}

@keyframes modal-fade-in {
  from { 
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to { 
    opacity: 1;
    backdrop-filter: blur(3px);
  }
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  position: relative;
  box-shadow: 0 15px 45px rgba(0,0,0,0.25), 0 6px 18px rgba(0,0,0,0.12);
  animation: modal-content-slide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  margin: auto;
}

@keyframes modal-content-slide {
  from { 
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to { 
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  border: none;
  box-shadow: 0 3px 9px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.modal-close:hover {
  background: #dc3545;
  color: #fff;
  transform: scale(1.1);
}

/* Bildbereich des Modals */
.modal-bilder-container {
  flex: 1;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.5rem;
  min-height: 320px;
}

.modal-produktbild {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background: #fff;
}

.modal-produktbild:hover {
  transform: scale(1.02);
}

/* Bildgalerie Thumbnails */
.modal-bildgalerie {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.modal-mini-bild {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.modal-mini-bild:hover {
  border-color: #c7a17a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(199,161,122,0.3);
}

.modal-mini-bild.aktiv {
  border-color: #a47551;
  box-shadow: 0 4px 16px rgba(164,117,81,0.4);
  transform: translateY(-2px);
}

/* Navigationspfeile für Bilder */
.modal-bild-navigation {
  position: absolute;
  top: 50%;
  left: 1rem;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.modal-nav-btn {
  background: rgba(255,255,255,0.95);
  border: 2px solid rgba(199,161,122,0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.2rem;
  color: #a47551;
  transition: all 0.3s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 9px rgba(0,0,0,0.12);
}

.modal-nav-btn:hover:not(:disabled) {
  background: #a47551;
  color: white;
  border-color: #a47551;
  transform: scale(1.1);
}

.modal-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Info-Bereich des Modals */
.modal-info {
  flex: 1;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  text-align: left;
}

#modal-produktname {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #222;
  line-height: 1.2;
}

#modal-produktbeschreibung {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.5;
}

#modal-produktthema {
  display: none;
}

#modal-produktpreis {
  font-size: 1.3rem;
  font-weight: 600;
  color: #27ae60;
  margin-bottom: 1.5rem;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(39,174,96,0.25);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #229954, #27ae60);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(39,174,96,0.35);
}

/* Responsive Design für Modal */
@media (max-width: 768px) {
  .modal {
    padding: 0.5rem;
  }
  
  .modal-content {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-bilder-container {
    min-height: 250px;
    padding: 1.25rem 1rem;
  }
  
  .modal-produktbild {
    max-height: 230px;
  }
  
  .modal-info {
    padding: 1.25rem;
  }
  
  #modal-produktname {
    font-size: 1.4rem;
  }
  
  .modal-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 0.25rem;
  }
  
  .modal-content {
    border-radius: 12px;
    max-height: 95vh;
  }
  
  .modal-bilder-container {
    min-height: 200px;
    padding: 1rem;
  }
  
  .modal-produktbild {
    max-height: 180px;
  }
  
  .modal-info {
    padding: 1rem;
  }
  
  #modal-produktname {
    font-size: 1.2rem;
  }
  
  #modal-produktbeschreibung {
    font-size: 0.9rem;
  }
  
  #modal-produktpreis {
    font-size: 1.1rem;
  }
  
  .add-to-cart-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .modal-mini-bild {
    width: 45px;
    height: 45px;
  }
  
  .modal-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

/* Verbesserte Animationen und Übergänge */
@media (prefers-reduced-motion: no-preference) {
  .modal {
    animation-duration: 0.3s;
  }
  
  .modal-content {
    animation-duration: 0.4s;
  }
  
  .modal-produktbild {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .modal-mini-bild {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .modal-nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .add-to-cart-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal {
    animation: none;
  }
  
  .modal-content {
    animation: none;
  }
  
  * {
    transition: none !important;
  }
} 

/* Pagination Styles */
#pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 1rem 0;
}
.pagination-btn {
  background: #fff;
  border: 1px solid #c7a17a;
  color: #a47551;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.pagination-btn.active,
.pagination-btn:hover {
  background: #c7a17a;
  color: #fff;
  border-color: #a47551;
} 
.pagination-btn#pagination-prev,
.pagination-btn#pagination-next {
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f3ede6;
  color: #c7a17a;
  border-color: #e0d3c0;
} 
.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: #c7a17a;
  font-size: 1.1rem;
  user-select: none;
  pointer-events: none;
} 

/* Warenkorb Link Styles */
.warenkorb-link {
  background: #a47551;
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
  display: inline-block;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto; /* Immer ganz rechts */
  position: relative;
}
.warenkorb-link:hover {
  background: #8b6446;
}

@media (min-width: 601px) {
  #warenkorb-anzahl {
    display: none;
  }
}

/* iPhone und sehr kleine Bildschirme */
@media (max-width: 480px) {
  .shop-header-inner {
    padding: 0 0.3rem 1rem 0.3rem;
    flex-direction: column;
    gap: 0.8rem;
    align-items: stretch;
  }
  
  .shop-header h1 {
    font-size: 1.2rem;
    text-align: center;
  }
  
  .warenkorb-link {
    align-self: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .filter-toggle {
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
  }
  
  .filter-bar.open {
    margin: 0.3rem 0 1rem 0;
    padding: 0.8rem 0.6rem;
  }
  
  .filter-bar .filter-fields > * {
    font-size: 16px !important; /* Verhindert automatisches Zoomen auf iOS */
    min-height: 50px;
    padding: 0.9rem 1rem;
    border-radius: 0.6rem;
  }
  
  .filter-bar .filter-fields select {
    padding-right: 3.8rem;
    background-size: 16px;
    background-position: right 1.2rem center;
  }
  
  #produktgrid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
  }
  
  .shop-produkt-card {
    padding: 1rem 0.8rem;
  }
  
  .shop-produkt-bild {
    width: 100px;
    height: 100px;
  }
}