$css = ' .lhkw-wrap { margin: 20px 0; } .lhkw-menu { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px 0; } .lhkw-menu a { display: inline-block; padding: 10px 16px; border: 1px solid #d8d8d8; border-radius: 999px; text-decoration: none; background: #fff; color: #333; transition: all .2s ease; font-size: 15px; line-height: 1.25; font-weight: 600; } .lhkw-menu a:hover, .lhkw-menu a.lhkw-active { background: #f5f5f5; border-color: #bdbdbd; } .lhkw-empty { padding: 20px; background: #fafafa; border: 1px solid #e5e5e5; border-radius: 12px; } .lhkw-count { margin: 0 0 14px 0; color: #666; font-size: 14px; } /* ===== Produkt-Grid: sauber, ruhig, ohne Columns ===== */ .lhkw-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; align-items: start; } @media (max-width: 1700px) { .lhkw-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } } @media (max-width: 1350px) { .lhkw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } } @media (max-width: 1024px) { .lhkw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 767px) { .lhkw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } } .lhkw-card { margin: 0; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); display: flex; flex-direction: column; height: 100%; } .lhkw-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; } .lhkw-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; display: block; background: #f6f6f6; } .lhkw-card-body { padding: 10px 12px 12px; min-height: 90px; } .lhkw-card-title { font-size: 14px; line-height: 1.35; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } @media (max-width: 1350px) { .lhkw-card-title { font-size: 13px; } .lhkw-card-body { min-height: 84px; } } /* ===== Modal Desktop ===== */ .lhkw-modal { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,0.72); padding: 28px 18px; overflow: auto; } .lhkw-modal.is-open { display: block; } .lhkw-modal-content { max-width: 1180px; width: 100%; margin: 0 auto; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.2); position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr); align-items: stretch; max-height: calc(100vh - 56px); } .lhkw-modal-close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border: none; border-radius: 999px; background: rgba(255,255,255,0.92); cursor: pointer; font-size: 26px; line-height: 1; z-index: 3; } .lhkw-modal-image { background: #f6f6f6; display: flex; align-items: center; justify-content: center; min-width: 0; } .lhkw-modal-image img { display: block; width: 100%; height: 100%; max-height: calc(100vh - 56px); object-fit: contain; } .lhkw-modal-body { padding: 22px 22px 24px; overflow-y: auto; display: flex; flex-direction: column; min-width: 0; } .lhkw-modal-title { margin: 0 0 14px; font-size: 21px; line-height: 1.3; } .lhkw-modal-text { margin: 0 0 22px; line-height: 1.65; color: #444; white-space: pre-line; font-size: 16px; } .lhkw-shop-btn { display: inline-block; padding: 14px 22px; border-radius: 16px; text-decoration: none; background: #111; color: #fff; margin-top: auto; text-align: center; } /* ===== Tablet ===== */ @media (max-width: 900px) { .lhkw-modal-content { grid-template-columns: 1fr; max-width: 760px; max-height: calc(100vh - 36px); } .lhkw-modal-image img { max-height: 52vh; } .lhkw-modal-body { max-height: none; } } /* ===== Mobile ===== */ @media (max-width: 767px) { .lhkw-wrap { margin: 12px 0; } .lhkw-menu { gap: 8px; margin: 0 0 14px 0; } .lhkw-menu a { padding: 8px 12px; font-size: 13px; line-height: 1.2; border-radius: 999px; } .lhkw-count { margin: 0 0 10px 0; font-size: 13px; } .lhkw-card { border-radius: 16px; } .lhkw-card-body { padding: 8px 10px 10px; min-height: 72px; } .lhkw-card-title { font-size: 12.5px; line-height: 1.3; -webkit-line-clamp: 3; } .lhkw-modal { padding: 10px; } .lhkw-modal-content { max-width: 100%; border-radius: 22px; max-height: calc(100vh - 20px); grid-template-columns: 1fr; } .lhkw-modal-close { top: 10px; right: 10px; width: 42px; height: 42px; font-size: 24px; } .lhkw-modal-image img { width: auto; max-width: 100%; max-height: 42vh; height: auto; object-fit: contain; margin: 0 auto; } .lhkw-modal-body { padding: 14px 14px 18px; } .lhkw-modal-title { font-size: 17px; line-height: 1.3; margin-bottom: 10px; } .lhkw-modal-text { font-size: 14px; line-height: 1.55; margin-bottom: 16px; } .lhkw-shop-btn { width: 100%; padding: 13px 16px; border-radius: 14px; } } @media (max-width: 420px) { .lhkw-menu a { padding: 7px 11px; font-size: 12px; } .lhkw-card-title { font-size: 12px; } .lhkw-modal-image img { max-height: 38vh; } } ';