/* =============================== */ /* PRODUCT GRID */ /* =============================== */ .product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; padding: 2rem; } /* =============================== */ /* PRODUCT CARD – Apple Style */ /* =============================== */ .product-card { background-color: #2d3b50; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); transition: transform 0.25s ease, box-shadow 0.25s ease; /* Einheitliche Card-Größe */ display: flex; flex-direction: column; height: 250px; text-decoration: none; color: inherit; } /* Hover – Apple-like Lift */ .product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); } .product-card:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; } /* Bild */ .product-card img { width: 100%; height: 160px; object-fit: contain; object-position: center; display: block; flex: 0 0 auto; background-color: #ffffff; } /* Content */ .product-card__content { padding: 1rem 1.25rem; /* sorgt dafür, dass der Content-Bereich den Rest der Card füllt */ flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; } /* Titel */ .product-card__content h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; color: #ffffff; /* Apple Schwarz */ /* verhindert, dass lange Titel die Card-Höhe sprengen */ overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } /* Beschreibung */ .product-card__content p { font-size: 0.85rem; color: #ffffff; margin-bottom: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; word-break: break-word; } /* Preis */ .product-card__content .price { font-size: 0.95rem; font-weight: 600; color: #0071e3; /* Apple Blau */ } /* =============================== */ /* PRODUCT SECTIONS (Vertical) */ /* =============================== */ .product-section { padding: 1.5rem 0; } /* Überschrift */ .product-section h2 { margin-left: 2rem; margin-bottom: 0.75rem; font-size: 1.2rem; font-weight: 600; color: #d8d8ee; } /* =============================== */ /* HORIZONTAL PRODUCT SCROLL */ /* =============================== */ .product-scroll { display: flex; gap: 1.5rem; padding: 0 2rem 1.5rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; } /* fixe Breite pro Card im horizontalen Scroll */ .product-scroll .product-card { flex: 0 0 260px; scroll-snap-align: start; } .product-scroll::-webkit-scrollbar { display: none; }