.recipe-list { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; } .recipe-list-header { margin-bottom: 2rem; } .recipe-list-header h2 { color: #333; margin-bottom: 1rem; font-size: 2rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; } .searching-indicator { font-size: 1.2rem; animation: pulse 1.5s ease-in-out infinite; } @keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } } .filters { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; } .search-form { display: flex; gap: 0.5rem; flex: 1; min-width: 300px; } .search-input { flex: 1; padding: 0.75rem; border: 2px solid #e1e5e9; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s ease; } .search-input:focus { outline: none; border-color: #667eea; } .search-button { padding: 0.75rem 1rem; background: #667eea; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; transition: background-color 0.3s ease; } .search-button:hover { background: #5a6fd8; } .category-select { padding: 0.75rem; border: 2px solid #e1e5e9; border-radius: 8px; font-size: 1rem; background: white; cursor: pointer; min-width: 180px; } .category-select:focus { outline: none; border-color: #667eea; } .recipes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; margin-bottom: 2rem; } .recipe-card { background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; min-height: 450px; /* Stabile Mindesthöhe */ display: flex; flex-direction: column; } .recipe-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); } .recipe-image { height: 200px; overflow: hidden; position: relative; } .recipe-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; } .recipe-card:hover .recipe-image img { transform: scale(1.05); } .no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); font-size: 3rem; color: #999; } .recipe-content { padding: 1.5rem; flex: 1; /* Nimmt verfügbaren Platz ein */ display: flex; flex-direction: column; } .recipe-title { color: #333; margin: 0 0 0.5rem 0; font-size: 1.3rem; font-weight: 600; line-height: 1.3; min-height: 1.6em; /* Verhindert Layout-Sprünge */ display: -webkit-box; -webkit-line-clamp: 2; /* Begrenzt auf 2 Zeilen */ line-clamp: 2; /* Standard property für Kompatibilität */ -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; word-break: break-word; } .recipe-description { color: #666; margin: 0 0 1rem 0; line-height: 1.5; font-size: 0.95rem; min-height: 3em; /* Verhindert Layout-Sprünge */ display: -webkit-box; -webkit-line-clamp: 3; /* Begrenzt auf 3 Zeilen */ line-clamp: 3; /* Standard property für Kompatibilität */ -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; } .recipe-meta { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; } .recipe-category { background: #667eea; color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 500; } .recipe-servings { color: #666; font-size: 0.9rem; display: flex; align-items: center; gap: 0.25rem; } .recipe-lastused { background: #2f855a; color: #fff; padding: 0.25rem 0.6rem; border-radius: 16px; font-size: 0.7rem; font-weight: 600; letter-spacing: .5px; } .recipe-never { background: #e53e3e; color: #fff; padding: 0.25rem 0.6rem; border-radius: 16px; font-size: 0.7rem; font-weight: 600; letter-spacing: .5px; display: inline-flex; align-items: center; gap: 0.25rem; } .recipe-actions { display: flex; gap: 0.75rem; } .view-button, .edit-button { flex: 1; text-align: center; padding: 0.75rem; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: all 0.3s ease; } .view-button { background: #667eea; color: white; } .view-button:hover { background: #5a6fd8; transform: translateY(-1px); } .edit-button { background: #f8f9fa; color: #667eea; border: 2px solid #667eea; } .edit-button:hover { background: #667eea; color: white; transform: translateY(-1px); } .no-recipes { text-align: center; padding: 4rem 2rem; color: #666; } .no-recipes h3 { color: #333; margin-bottom: 1rem; font-size: 1.5rem; } .create-button { display: inline-block; margin-top: 1rem; padding: 0.75rem 1.5rem; background: #667eea; color: white; text-decoration: none; border-radius: 8px; font-weight: 500; transition: background-color 0.3s ease; } .create-button:hover { background: #5a6fd8; } .pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; } .pagination-button { padding: 0.75rem 1.5rem; background: #667eea; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 500; transition: background-color 0.3s ease; } .pagination-button:hover:not(:disabled) { background: #5a6fd8; } .pagination-button:disabled { background: #ccc; cursor: not-allowed; } .pagination-info { color: #666; font-weight: 500; } .loading, .error { text-align: center; padding: 4rem 2rem; } .loading { color: #666; font-size: 1.2rem; } .error { color: #e74c3c; } .error h3 { color: #e74c3c; margin-bottom: 1rem; } .retry-button { margin-top: 1rem; padding: 0.75rem 1.5rem; background: #e74c3c; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 500; transition: background-color 0.3s ease; } .retry-button:hover { background: #c0392b; } @media (max-width: 768px) { .recipe-list { padding: 1rem 0.5rem; } .filters { flex-direction: column; align-items: stretch; } .search-form { min-width: auto; } .recipes-grid { grid-template-columns: 1fr; gap: 1rem; } .recipe-actions { flex-direction: column; } .pagination { flex-direction: column; gap: 0.5rem; } }